|
|
import{a as e,i as t,n,r,t as i}from"./rolldown-runtime-BYbx6iT9.js";import{$t as a,At as o,C as s,D as c,Dt as l,Et as u,Ht as d,I as f,It as p,Jt as m,Lt as h,Mt as g,Nt as _,O as v,Ot as y,Q as b,Qt as x,Rt as S,S as C,Ut as w,V as T,Vt as E,W as D,Wt as O,Xt as ee,Y as k,Yt as A,Z as j,Zt as te,_t as M,an as ne,at as re,b as ie,bt as ae,ct as oe,g as se,i as ce,in as N,jt as le,k as ue,kt as de,nn as fe,nt as pe,o as me,ot as he,p as ge,q as _e,qt as ve,rn as ye,st as P,w as be,x as F,xt as xe}from"./vue.runtime.esm-bundler-OsdSFvn7.js";import{b as Se,d as Ce,f as I,i as we,l as L,n as Te,u as Ee}from"./index-hRul7OAA.js";import{t as De}from"./_plugin-vue_export-helper-CXTkFu_Z.js";import{c as Oe,i as ke,l as Ae,n as je,o as Me,r as Ne,s as Pe,t as Fe}from"./competitions-CBmIUMn-.js";import{t as Ie}from"./adminCompetition-D5Dcfwmz.js";import{n as Le,r as Re,t as ze}from"./competitionBranding-DKFkcrfF.js";import{n as Be,r as Ve}from"./datetimeShanghai-B0jGVWUG.js";import{n as He}from"./publicSourceChannels-3CUhVpWj.js";import{i as Ue,n as We,r as Ge,t as Ke}from"./signupChannels-CctdsoB9.js";import{a as qe,n as Je,o as Ye,r as Xe,t as Ze}from"./applications-BQFmlDmu.js";async function Qe(e,t){let{data:n}=await we.get(`/competitions/${e}/form-schemas`,{params:t?{purpose:t}:{}}),r=n;return{data:r.data??[],signupFieldRegistry:r.meta?.signup_field_registry}}async function $e(e,t){let{data:n}=await we.get(`/competitions/${e}/form-schemas/${t}`),r=n?.data??n;if(!r||typeof r!=`object`||!(`id`in r))throw Error(`表单详情无效`);return r}async function et(e,t){let{data:n}=await we.post(`/competitions/${e}/form-schemas`,t);return n}async function tt(e,t,n){let{data:r}=await we.patch(`/competitions/${e}/form-schemas/${t}`,n);return r}async function nt(e,t){await we.delete(`/competitions/${e}/form-schemas/${t}`)}var rt=`commitment_accepted`,it=`commitment_promise`,at={scalar_field_keys:[`player_name`,`school`,`degree`,`contact_email`,`contact_mobile`,`entry_group`,`company_name`,`project_name`,`track`,`location_country`,`location_province`,`location_city`,`oversea_country`,`intro`,`recommend`],file_field_keys:[...[`plan`,`supporting`]],commitment_field_key:rt,scalar_type_hints:{player_name:[`text`],school:[`text`],degree:[`select`],contact_email:[`email`,`text`],contact_mobile:[`tel`,`text`],entry_group:[`select`],company_name:[`text`],project_name:[`text`],track:[`select`],location_country:[`select`],location_province:[`select`,`text`],location_city:[`select`,`text`],oversea_country:[`text`],intro:[`textarea`,`text`],recommend:[`text`,`textarea`]},generic_scalar_types:[`text`,`textarea`,`email`,`tel`,`select`,`number`,`date`],all_supported_form_keys:[]};at.all_supported_form_keys=[...at.scalar_field_keys,...at.file_field_keys,at.commitment_field_key];var ot=at;function st(e){e&&Array.isArray(e.scalar_field_keys)&&(ot=e)}function ct(e){let t=ot;return t.scalar_type_hints[e]??t.generic_scalar_types}function lt(e,t){let n=e.trim(),r=t.trim();if(!n)return`存在未填写「字段 key」的项(须与 applications 表列名一致)`;let i=ot;if(n===i.commitment_field_key)return r===`checkbox`||r===`commitment_promise`?null:`参赛承诺书字段须为 checkbox 类型`;if(i.file_field_keys.includes(n))return r===`file`?null:`附件字段「${n}」须为 file 类型`;if(!i.scalar_field_keys.includes(n))return`字段 key「${n}」不是 applications 表可填列,请使用:${i.all_supported_form_keys.join(`、`)}(新增列请先做数据库迁移并加入 Application.$fillable)`;let a=ct(n);return!r||!a.includes(r)?`字段「${n}」类型须为:${a.join(` / `)}`:null}function ut(e){Object.getOwnPropertySymbols(e).forEach(t=>{vi[t]=e[t]})}function dt(e,t=``){return{type:0,source:t,children:e,helpers:new Set,components:[],directives:[],hoists:[],imports:[],cached:[],temps:0,codegenNode:void 0,loc:Ci}}function ft(e,t,n,r,i,a,o,s=!1,c=!1,l=!1,u=Ci){return e&&(s?(e.helper(Rr),e.helper(At(e.inSSR,l))):e.helper(kt(e.inSSR,l)),o&&e.helper(Xr)),{type:13,tag:t,props:n,children:r,patchFlag:i,dynamicProps:a,directives:o,isBlock:s,disableTracking:c,isComponent:l,loc:u}}function pt(e,t=Ci){return{type:17,loc:t,elements:e}}function mt(e,t=Ci){return{type:15,loc:t,properties:e}}function ht(e,t){return{type:16,loc:Ci,key:A(e)?gt(e,!0):e,value:t}}function gt(e,t=!1,n=Ci,r=0){return{type:4,loc:n,content:e,isStatic:t,constType:t?3:r}}function _t(e,t){return{type:5,loc:t,content:A(e)?gt(e,!1,t):e}}function vt(e,t=Ci){return{type:8,loc:t,children:e}}function yt(e,t=[],n=Ci){return{type:14,loc:n,callee:e,arguments:t}}function bt(e,t=void 0,n=!1,r=!1,i=Ci){return{type:18,params:e,returns:t,newline:n,isSlot:r,loc:i}}function xt(e,t,n,r=!0){return{type:19,test:e,consequent:t,alternate:n,newline:r,loc:Ci}}function St(e,t,n=!1,r=!1){return{type:20,index:e,value:t,needPauseTracking:n,inVOnce:r,needArraySpread:!1,loc:Ci}}function Ct(e){return{type:21,body:e,loc:Ci}}function wt(e){return{type:22,elements:e,loc:Ci}}function Tt(e,t,n){return{type:23,test:e,consequent:t,alternate:n,loc:Ci}}function Et(e,t){return{type:24,left:e,right:t,loc:Ci}}function Dt(e){return{type:25,expressions:e,loc:Ci}}function Ot(e){return{type:26,returns:e,loc:Ci}}function kt(e,t){return e||t?Vr:Hr}function At(e,t){return e||t?zr:Br}function jt(e,{helper:t,removeHelper:n,inSSR:r}){e.isBlock||(e.isBlock=!0,n(kt(r,e.isComponent)),t(Rr),t(At(r,e.isComponent)))}function Mt(e){return e>=97&&e<=122||e>=65&&e<=90}function Nt(e){return e===32||e===10||e===9||e===12||e===13}function Pt(e){return e===47||e===62||Nt(e)}function Ft(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}function It(e,{compatConfig:t}){let n=t&&t[e];return e===`MODE`?n||3:n}function Lt(e,t){let n=It(`MODE`,t),r=It(e,t);return n===3?r===!0:r!==!1}function Rt(e,t,n,...r){return Lt(e,t)}function zt(e,t,n,...r){if(It(e,t)===`suppress-warning`)return;let{message:i,link:a}=ki[e],o=`(deprecation ${e}) ${typeof i==`function`?i(...r):i}${a?`
|
|
|
Details: ${a}`:``}`,s=SyntaxError(o);s.code=e,n&&(s.loc=n),t.onWarn(s)}function Bt(e){throw e}function Vt(e){}function Ht(e,t,n,r){let i=`https://vuejs.org/error-reference/#compiler-${e}`,a=SyntaxError(String(i));return a.code=e,a.loc=t,a}function Ut(e,t,n=!1,r=[],i=Object.create(null)){}function Wt(e,t,n){return!1}function Gt(e,t){if(e&&(e.type===`ObjectProperty`||e.type===`ArrayPattern`)){let e=t.length;for(;e--;){let n=t[e];if(n.type===`AssignmentExpression`)return!0;if(n.type!==`ObjectProperty`&&!n.type.endsWith(`Pattern`))break}}return!1}function Kt(e){let t=e.length;for(;t--;){let n=e[t];if(n.type===`NewExpression`)return!0;if(n.type!==`MemberExpression`)break}return!1}function qt(e,t){for(let n of e.params)for(let e of Qt(n))t(e)}function Jt(e,t){let n=e.type===`SwitchCase`?e.consequent:e.body;for(let e of n)if(e.type===`VariableDeclaration`){if(e.declare)continue;for(let n of e.declarations)for(let e of Qt(n.id))t(e)}else if(e.type===`FunctionDeclaration`||e.type===`ClassDeclaration`){if(e.declare||!e.id)continue;t(e.id)}else Yt(e)?Xt(e,!0,t):e.type===`SwitchStatement`&&Zt(e,!0,t)}function Yt(e){return e.type===`ForOfStatement`||e.type===`ForInStatement`||e.type===`ForStatement`}function Xt(e,t,n){let r=e.type===`ForStatement`?e.init:e.left;if(r&&r.type===`VariableDeclaration`&&(r.kind===`var`?t:!t))for(let e of r.declarations)for(let t of Qt(e.id))n(t)}function Zt(e,t,n){for(let r of e.cases){for(let e of r.consequent)if(e.type===`VariableDeclaration`&&(e.kind===`var`?t:!t))for(let t of e.declarations)for(let e of Qt(t.id))n(e);Jt(r,n)}}function Qt(e,t=[]){switch(e.type){case`Identifier`:t.push(e);break;case`MemberExpression`:let n=e;for(;n.type===`MemberExpression`;)n=n.object;t.push(n);break;case`ObjectPattern`:for(let n of e.properties)n.type===`RestElement`?Qt(n.argument,t):Qt(n.value,t);break;case`ArrayPattern`:e.elements.forEach(e=>{e&&Qt(e,t)});break;case`RestElement`:Qt(e.argument,t);break;case`AssignmentPattern`:Qt(e.left,t);break}return t}function $t(e){return Fi.includes(e.type)?$t(e.expression):e}function en(e){switch(e){case`Teleport`:case`teleport`:return Pr;case`Suspense`:case`suspense`:return Fr;case`KeepAlive`:case`keep-alive`:return Ir;case`BaseTransition`:case`base-transition`:return Lr}}function tn(e,t,n=t.length){return nn({offset:e.offset,line:e.line,column:e.column},t,n)}function nn(e,t,n=t.length){let r=0,i=-1;for(let e=0;e<n;e++)t.charCodeAt(e)===10&&(r++,i=e);return e.offset+=n,e.line+=r,e.column=i===-1?e.column+n:n-i,e}function rn(e,t){if(!e)throw Error(t||`unexpected compiler condition`)}function an(e,t,n=!1){for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&(n||i.exp)&&(A(t)?i.name===t:t.test(i.name)))return i}}function on(e,t,n=!1,r=!1){for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===6){if(n)continue;if(a.name===t&&(a.value||r))return a}else if(a.name===`bind`&&(a.exp||r)&&sn(a.arg,t))return a}}function sn(e,t){return!!(e&&Ii(e)&&e.content===t)}function cn(e){return e.props.some(e=>e.type===7&&e.name===`bind`&&(!e.arg||e.arg.type!==4||!e.arg.isStatic))}function ln(e){return e.type===5||e.type===2}function un(e){return e.type===7&&e.name===`pre`}function dn(e){return e.type===7&&e.name===`slot`}function fn(e){return e.type===1&&e.tagType===3}function pn(e){return e.type===1&&e.tagType===2}function mn(e,t=[]){if(e&&!A(e)&&e.type===14){let n=e.callee;if(!A(n)&&Xi.has(n))return mn(e.arguments[0],t.concat(e))}return[e,t]}function hn(e,t,n){let r,i=e.type===13?e.props:e.arguments[2],a=[],o;if(i&&!A(i)&&i.type===14){let e=mn(i);i=e[0],a=e[1],o=a[a.length-1]}if(i==null||A(i))r=mt([t]);else if(i.type===14){let e=i.arguments[0];!A(e)&&e.type===15?gn(t,e)||e.properties.unshift(t):i.callee===oi?r=yt(n.helper(ti),[mt([t]),i]):i.arguments.unshift(mt([t])),!r&&(r=i)}else i.type===15?(gn(t,i)||i.properties.unshift(t),r=i):(r=yt(n.helper(ti),[mt([t]),i]),o&&o.callee===ai&&(o=a[a.length-2]));e.type===13?o?o.arguments[0]=r:e.props=r:o?o.arguments[0]=r:e.arguments[2]=r}function gn(e,t){let n=!1;if(e.key.type===4){let r=e.key.content;n=t.properties.some(e=>e.key.type===4&&e.key.content===r)}return n}function _n(e,t){return`_${t}_${e.replace(/[^\w]/g,(t,n)=>t===`-`?`_`:e.charCodeAt(n).toString())}`}function vn(e,t){if(!e||Object.keys(t).length===0)return!1;switch(e.type){case 1:for(let n=0;n<e.props.length;n++){let r=e.props[n];if(r.type===7&&(vn(r.arg,t)||vn(r.exp,t)))return!0}return e.children.some(e=>vn(e,t));case 11:return vn(e.source,t)?!0:e.children.some(e=>vn(e,t));case 9:return e.branches.some(e=>vn(e,t));case 10:return vn(e.condition,t)?!0:e.children.some(e=>vn(e,t));case 4:return!e.isStatic&&Ri(e.content)&&!!t[e.content];case 8:return e.children.some(e=>w(e)&&vn(e,t));case 5:case 12:return vn(e.content,t);case 2:case 3:case 20:return!1;default:return!1}}function yn(e){return e.type===14&&e.callee===gi?e.arguments[1].returns:e}function bn(e){for(let t=0;t<e.length;t++)if(!Nt(e.charCodeAt(t)))return!1;return!0}function xn(e){return e.type===2&&bn(e.content)||e.type===12&&xn(e.content)}function Sn(e){return e.type===3||xn(e)}function Cn(e){let t=e.loc,n=e.content,r=n.match(Zi);if(!r)return;let[,i,a]=r,o=(e,n,r=!1)=>{let i=t.start.offset+n;return Vn(e,!1,Ln(i,i+e.length),0,+!!r)},s={source:o(a.trim(),n.indexOf(a,i.length)),value:void 0,key:void 0,index:void 0,finalized:!1},c=i.trim().replace(pa,``).trim(),l=i.indexOf(c),u=c.match(fa);if(u){c=c.replace(fa,``).trim();let e=u[1].trim(),t;if(e&&(t=n.indexOf(e,l+c.length),s.key=o(e,t,!0)),u[2]){let r=u[2].trim();r&&(s.index=o(r,n.indexOf(r,s.key?t+e.length:l+c.length),!0))}}return c&&(s.value=o(c,l,!0)),s}function wn(e,t){return ta.slice(e,t)}function Tn(e){da.inSFCRoot&&(na.innerLoc=Ln(e+1,e+1)),In(na);let{tag:t,ns:n}=na;n===0&&$i.isPreTag(t)&&sa++,$i.isVoidTag(t)?Dn(na,e):(ua.unshift(na),(n===1||n===2)&&(da.inXML=!0)),na=null}function En(e,t,n){{let t=ua[0]&&ua[0].tag;t!==`script`&&t!==`style`&&e.includes(`&`)&&(e=$i.decodeEntities(e,!1))}let r=ua[0]||ea,i=r.children[r.children.length-1];i&&i.type===2?(i.content+=e,zn(i.loc,n)):r.children.push({type:2,content:e,loc:Ln(t,n)})}function Dn(e,t,n=!1){n?zn(e.loc,kn(t,60)):zn(e.loc,On(t,62)+1),da.inSFCRoot&&(e.children.length?e.innerLoc.end=g({},e.children[e.children.length-1].loc.end):e.innerLoc.end=g({},e.innerLoc.start),e.innerLoc.source=wn(e.innerLoc.start.offset,e.innerLoc.end.offset));let{tag:r,ns:i,children:a}=e;if(ca||(r===`slot`?e.tagType=2:An(e)?e.tagType=3:jn(e)&&(e.tagType=1)),da.inRCDATA||(e.children=Nn(a)),i===0&&$i.isIgnoreNewlineTag(r)){let e=a[0];e&&e.type===2&&(e.content=e.content.replace(/^\r?\n/,``))}i===0&&$i.isPreTag(r)&&sa--,la===e&&(ca=da.inVPre=!1,la=null),da.inXML&&(ua[0]?ua[0].ns:$i.ns)===0&&(da.inXML=!1);{let t=e.props;if(!da.inSFCRoot&&Lt(`COMPILER_NATIVE_TEMPLATE`,$i)&&e.tag===`template`&&!An(e)){let t=ua[0]||ea,n=t.children.indexOf(e);t.children.splice(n,1,...e.children)}let n=t.find(e=>e.type===6&&e.name===`inline-template`);n&&Rt(`COMPILER_INLINE_TEMPLATE`,$i,n.loc)&&e.children.length&&(n.value={type:2,content:wn(e.children[0].loc.start.offset,e.children[e.children.length-1].loc.end.offset),loc:n.loc})}}function On(e,t){let n=e;for(;ta.charCodeAt(n)!==t&&n<ta.length-1;)n++;return n}function kn(e,t){let n=e;for(;ta.charCodeAt(n)!==t&&n>=0;)n--;return n}function An({tag:e,props:t}){if(e===`template`){for(let e=0;e<t.length;e++)if(t[e].type===7&&ma.has(t[e].name))return!0}return!1}function jn({tag:e,props:t}){if($i.isCustomElement(e))return!1;if(e===`component`||Mn(e.charCodeAt(0))||en(e)||$i.isBuiltInComponent&&$i.isBuiltInComponent(e)||$i.isNativeTag&&!$i.isNativeTag(e))return!0;for(let e=0;e<t.length;e++){let n=t[e];if(n.type===6){if(n.name===`is`&&n.value&&(n.value.content.startsWith(`vue:`)||Rt(`COMPILER_IS_ON_ELEMENT`,$i,n.loc)))return!0}else if(n.name===`bind`&&sn(n.arg,`is`)&&Rt(`COMPILER_IS_ON_ELEMENT`,$i,n.loc))return!0}return!1}function Mn(e){return e>64&&e<91}function Nn(e){let t=$i.whitespace!==`preserve`,n=!1;for(let r=0;r<e.length;r++){let i=e[r];if(i.type===2)if(sa)i.content=i.content.replace(ha,`
|
|
|
`);else if(bn(i.content)){let a=e[r-1]&&e[r-1].type,o=e[r+1]&&e[r+1].type;!a||!o||t&&(a===3&&(o===3||o===1)||a===1&&(o===3||o===1&&Pn(i.content)))?(n=!0,e[r]=null):i.content=` `}else t&&(i.content=Fn(i.content))}return n?e.filter(Boolean):e}function Pn(e){for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);if(n===10||n===13)return!0}return!1}function Fn(e){let t=``,n=!1;for(let r=0;r<e.length;r++)Nt(e.charCodeAt(r))?n||=(t+=` `,!0):(t+=e[r],n=!1);return t}function In(e){(ua[0]||ea).children.push(e)}function Ln(e,t){return{start:da.getPos(e),end:t==null?t:da.getPos(t),source:t==null?t:wn(e,t)}}function Rn(e){return Ln(e.start.offset,e.end.offset)}function zn(e,t){e.end=da.getPos(t),e.source=wn(e.start.offset,t)}function Bn(e){let t={type:6,name:e.rawName,nameLoc:Ln(e.loc.start.offset,e.loc.start.offset+e.rawName.length),value:void 0,loc:e.loc};if(e.exp){let n=e.exp.loc;n.end.offset<e.loc.end.offset&&(n.start.offset--,n.start.column--,n.end.offset++,n.end.column++),t.value={type:2,content:e.exp.content,loc:n}}return t}function Vn(e,t=!1,n,r=0,i=0){return gt(e,t,n,r)}function Hn(e,t,n){$i.onError(Ht(e,Ln(t,t),void 0,n))}function Un(){da.reset(),na=null,ra=null,ia=``,aa=-1,oa=-1,ua.length=0}function Wn(e,t){if(Un(),ta=e,$i=g({},Qi),t){let e;for(e in t)t[e]!=null&&($i[e]=t[e])}da.mode=$i.parseMode===`html`?1:$i.parseMode===`sfc`?2:0,da.inXML=$i.ns===1||$i.ns===2;let n=t&&t.delimiters;n&&(da.delimiterOpen=Ft(n[0]),da.delimiterClose=Ft(n[1]));let r=ea=dt([],e);return da.parse(ta),r.loc=Ln(0,e.length),r.children=Nn(r.children),ea=null,r}function eee(e,t){Kn(e,void 0,t,!!Gn(e))}function Gn(e){let t=e.children.filter(e=>e.type!==3);return t.length===1&&t[0].type===1&&!pn(t[0])?t[0]:null}function Kn(e,t,n,r=!1,i=!1){let{children:a}=e,o=[];for(let t=0;t<a.length;t++){let s=a[t];if(s.type===1&&s.tagType===0){let e=r?0:qn(s,n);if(e>0){if(e>=2){s.codegenNode.patchFlag=-1,o.push(s);continue}}else{let e=s.codegenNode;if(e.type===13){let t=e.patchFlag;if((t===void 0||t===512||t===1)&&Yn(s,n)>=2){let t=Xn(s);t&&(e.props=n.hoist(t))}e.dynamicProps&&=n.hoist(e.dynamicProps)}}}else if(s.type===12&&(r?0:qn(s,n))>=2){s.codegenNode.type===14&&s.codegenNode.arguments.length>0&&s.codegenNode.arguments.push(`-1`),o.push(s);continue}if(s.type===1){let t=s.tagType===1;t&&n.scopes.vSlot++,Kn(s,e,n,!1,i),t&&n.scopes.vSlot--}else if(s.type===11)Kn(s,e,n,s.children.length===1,!0);else if(s.type===9)for(let t=0;t<s.branches.length;t++)Kn(s.branches[t],e,n,s.branches[t].children.length===1,i)}let s=!1;if(o.length===a.length&&e.type===1){if(e.tagType===0&&e.codegenNode&&e.codegenNode.type===13&&h(e.codegenNode.children))e.codegenNode.children=c(pt(e.codegenNode.children)),s=!0;else if(e.tagType===1&&e.codegenNode&&e.codegenNode.type===13&&e.codegenNode.children&&!h(e.codegenNode.children)&&e.codegenNode.children.type===15){let t=l(e.codegenNode,`default`);t&&(t.returns=c(pt(t.returns)),s=!0)}else if(e.tagType===3&&t&&t.type===1&&t.tagType===1&&t.codegenNode&&t.codegenNode.type===13&&t.codegenNode.children&&!h(t.codegenNode.children)&&t.codegenNode.children.type===15){let n=an(e,`slot`,!0),r=n&&n.arg&&l(t.codegenNode,n.arg);r&&(r.returns=c(pt(r.returns)),s=!0)}}if(!s)for(let e of o)e.codegenNode=n.cache(e.codegenNode);function c(e){let t=n.cache(e);return t.needArraySpread=!0,t}function l(e,t){if(e.children&&!h(e.children)&&e.children.type===15){let n=e.children.properties.find(e=>e.key===t||e.key.content===t);return n&&n.value}}o.length&&n.transformHoist&&n.transformHoist(a,n,e)}function qn(e,t){let{constantCache:n}=t;switch(e.type){case 1:if(e.tagType!==0)return 0;let r=n.get(e);if(r!==void 0)return r;let i=e.codegenNode;if(i.type!==13||i.isBlock&&e.tag!==`svg`&&e.tag!==`foreignObject`&&e.tag!==`math`)return 0;if(i.patchFlag===void 0){let r=3,a=Yn(e,t);if(a===0)return n.set(e,0),0;a<r&&(r=a);for(let i=0;i<e.children.length;i++){let a=qn(e.children[i],t);if(a===0)return n.set(e,0),0;a<r&&(r=a)}if(r>1)for(let i=0;i<e.props.length;i++){let a=e.props[i];if(a.type===7&&a.name===`bind`&&a.exp){let i=qn(a.exp,t);if(i===0)return n.set(e,0),0;i<r&&(r=i)}}if(i.isBlock){for(let t=0;t<e.props.length;t++)if(e.props[t].type===7)return n.set(e,0),0;t.removeHelper(Rr),t.removeHelper(At(t.inSSR,i.isComponent)),i.isBlock=!1,t.helper(kt(t.inSSR,i.isComponent))}return n.set(e,r),r}else return n.set(e,0),0;case 2:case 3:return 3;case 9:case 11:case 10:return 0;case 5:case 12:return qn(e.content,t);case 4:return e.constType;case 8:let a=3;for(let n=0;n<e.children.length;n++){let r=e.children[n];if(A(r)||ee(r))continue;let i=qn(r,t);if(i===0)return 0;i<a&&(a=i)}return a;case 20:return 2;default:return 0}}function Jn(e,t){if(e.type===14&&!A(e.callee)&&ga.has(e.callee)){let n=e.arguments[0];if(n.type===4)return qn(n,t);if(n.type===14)return Jn(n,t)}return 0}function Yn(e,t){let n=3,r=Xn(e);if(r&&r.type===15){let{properties:e}=r;for(let r=0;r<e.length;r++){let{key:i,value:a}=e[r],o=qn(i,t);if(o===0)return o;o<n&&(n=o);let s;if(s=a.type===4?qn(a,t):a.type===14?Jn(a,t):0,s===0)return s;s<n&&(n=s)}}return n}function Xn(e){let t=e.codegenNode;if(t.type===13)return t.props}function Zn(e,{filename:t=``,prefixIdentifiers:n=!1,hoistStatic:r=!1,hmr:i=!1,cacheHandlers:a=!1,nodeTransforms:s=[],directiveTransforms:c={},transformHoist:u=null,isBuiltInComponent:d=de,isCustomElement:f=de,expressionPlugins:p=[],scopeId:m=null,slotted:h=!0,ssr:g=!1,inSSR:_=!1,ssrCssVars:v=``,bindingMetadata:y=l,inline:b=!1,isTS:x=!1,onError:S=Bt,onWarn:C=Vt,compatConfig:w}){let T=t.replace(/\?.*$/,``).match(/([^/\\]+)\.\w+$/),E={filename:t,selfName:T&&le(o(T[1])),prefixIdentifiers:n,hoistStatic:r,hmr:i,cacheHandlers:a,nodeTransforms:s,directiveTransforms:c,transformHoist:u,isBuiltInComponent:d,isCustomElement:f,expressionPlugins:p,scopeId:m,slotted:h,ssr:g,inSSR:_,ssrCssVars:v,bindingMetadata:y,inline:b,isTS:x,onError:S,onWarn:C,compatConfig:w,root:e,helpers:new Map,components:new Set,directives:new Set,hoists:[],imports:[],cached:[],constantCache:new WeakMap,temps:0,identifiers:Object.create(null),scopes:{vFor:0,vSlot:0,vPre:0,vOnce:0},parent:null,grandParent:null,currentNode:e,childIndex:0,inVOnce:!1,helper(e){let t=E.helpers.get(e)||0;return E.helpers.set(e,t+1),e},removeHelper(e){let t=E.helpers.get(e);if(t){let n=t-1;n?E.helpers.set(e,n):E.helpers.delete(e)}},helperString(e){return`_${vi[E.helper(e)]}`},replaceNode(e){E.parent.children[E.childIndex]=E.currentNode=e},removeNode(e){let t=E.parent.children,n=e?t.indexOf(e):E.currentNode?E.childIndex:-1;!e||e===E.currentNode?(E.currentNode=null,E.onNodeRemoved()):E.childIndex>n&&(E.childIndex--,E.onNodeRemoved()),E.parent.children.splice(n,1)},onNodeRemoved:de,addIdentifiers(e){},removeIdentifiers(e){},hoist(e){A(e)&&(e=gt(e)),E.hoists.push(e);let t=gt(`_hoisted_${E.hoists.length}`,!1,e.loc,2);return t.hoisted=e,t},cache(e,t=!1,n=!1){let r=St(E.cached.length,e,t,n);return E.cached.push(r),r}};return E.filters=new Set,E}function Qn(e,t){let n=Zn(e,t);$n(e,n),t.hoistStatic&&eee(e,n),t.ssr||tee(e,n),e.helpers=new Set([...n.helpers.keys()]),e.components=[...n.components],e.directives=[...n.directives],e.imports=n.imports,e.hoists=n.hoists,e.temps=n.temps,e.cached=n.cached,e.transformed=!0,e.filters=[...n.filters]}function tee(e,t){let{helper:n}=t,{children:r}=e;if(r.length===1){let n=Gn(e);if(n&&n.codegenNode){let r=n.codegenNode;r.type===13&&jt(r,t),e.codegenNode=r}else e.codegenNode=r[0]}else r.length>1&&(e.codegenNode=ft(t,n(Nr),void 0,e.children,64,void 0,void 0,!0,void 0,!1))}function nee(e,t){let n=0,r=()=>{n--};for(;n<e.children.length;n++){let i=e.children[n];A(i)||(t.grandParent=t.parent,t.parent=e,t.childIndex=n,t.onNodeRemoved=r,$n(i,t))}}function $n(e,t){t.currentNode=e;let{nodeTransforms:n}=t,r=[];for(let i=0;i<n.length;i++){let a=n[i](e,t);if(a&&(h(a)?r.push(...a):r.push(a)),t.currentNode)e=t.currentNode;else return}switch(e.type){case 3:t.ssr||t.helper(Ur);break;case 5:t.ssr||t.helper(ei);break;case 9:for(let n=0;n<e.branches.length;n++)$n(e.branches[n],t);break;case 10:case 11:case 1:case 0:nee(e,t);break}t.currentNode=e;let i=r.length;for(;i--;)r[i]()}function er(e,t){let n=A(e)?t=>t===e:t=>e.test(t);return(e,r)=>{if(e.type===1){let{props:i}=e;if(e.tagType===3&&i.some(dn))return;let a=[];for(let o=0;o<i.length;o++){let s=i[o];if(s.type===7&&n(s.name)){i.splice(o,1),o--;let n=t(e,s,r);n&&a.push(n)}}return a}}}function ree(e,{mode:t=`function`,prefixIdentifiers:n=t===`module`,sourceMap:r=!1,filename:i=`template.vue.html`,scopeId:a=null,optimizeImports:o=!1,runtimeGlobalName:s=`Vue`,runtimeModuleName:c=`vue`,ssrRuntimeModuleName:l=`vue/server-renderer`,ssr:u=!1,isTS:d=!1,inSSR:f=!1}){let p={mode:t,prefixIdentifiers:n,sourceMap:r,filename:i,scopeId:a,optimizeImports:o,runtimeGlobalName:s,runtimeModuleName:c,ssrRuntimeModuleName:l,ssr:u,isTS:d,inSSR:f,source:e.source,code:``,column:1,line:1,offset:0,indentLevel:0,pure:!1,map:void 0,helper(e){return`_${vi[e]}`},push(e,t=-2,n){p.code+=e},indent(){m(++p.indentLevel)},deindent(e=!1){e?--p.indentLevel:m(--p.indentLevel)},newline(){m(p.indentLevel)}};function m(e){p.push(`
|
|
|
`+` `.repeat(e),0)}return p}function tr(e,t={}){let n=ree(e,t);t.onContextCreated&&t.onContextCreated(n);let{mode:r,push:i,prefixIdentifiers:a,indent:o,deindent:s,newline:c,scopeId:l,ssr:u}=n,d=Array.from(e.helpers),f=d.length>0,p=!a&&r!==`module`;if(iee(e,n),i(`function ${u?`ssrRender`:`render`}(${(u?[`_ctx`,`_push`,`_parent`,`_attrs`]:[`_ctx`,`_cache`]).join(`, `)}) {`),o(),p&&(i(`with (_ctx) {`),o(),f&&(i(`const { ${d.map(va).join(`, `)} } = _Vue
|
|
|
`,-1),c())),e.components.length&&(nr(e.components,`component`,n),(e.directives.length||e.temps>0)&&c()),e.directives.length&&(nr(e.directives,`directive`,n),e.temps>0&&c()),e.filters&&e.filters.length&&(c(),nr(e.filters,`filter`,n),c()),e.temps>0){i(`let `);for(let t=0;t<e.temps;t++)i(`${t>0?`, `:``}_temp${t}`)}return(e.components.length||e.directives.length||e.temps)&&(i(`
|
|
|
`,0),c()),u||i(`return `),e.codegenNode?ar(e.codegenNode,n):i(`null`),p&&(s(),i(`}`)),s(),i(`}`),{ast:e,code:n.code,preamble:``,map:n.map?n.map.toJSON():void 0}}function iee(e,t){let{ssr:n,prefixIdentifiers:r,push:i,newline:a,runtimeModuleName:o,runtimeGlobalName:s,ssrRuntimeModuleName:c}=t,l=s,u=Array.from(e.helpers);u.length>0&&(i(`const _Vue = ${l}
|
|
|
`,-1),e.hoists.length&&i(`const { ${[Vr,Hr,Ur,Wr,Gr].filter(e=>u.includes(e)).map(va).join(`, `)} } = _Vue
|
|
|
`,-1)),aee(e.hoists,t),a(),i(`return `)}function nr(e,t,{helper:n,push:r,newline:i,isTS:a}){let o=n(t===`filter`?Yr:t===`component`?Kr:Jr);for(let n=0;n<e.length;n++){let s=e[n],c=s.endsWith(`__self`);c&&(s=s.slice(0,-6)),r(`const ${_n(s,t)} = ${o}(${JSON.stringify(s)}${c?`, true`:``})${a?`!`:``}`),n<e.length-1&&i()}}function aee(e,t){if(!e.length)return;t.pure=!0;let{push:n,newline:r}=t;r();for(let i=0;i<e.length;i++){let a=e[i];a&&(n(`const _hoisted_${i+1} = `),ar(a,t),r())}t.pure=!1}function rr(e,t){let n=e.length>3||!1;t.push(`[`),n&&t.indent(),ir(e,t,n),n&&t.deindent(),t.push(`]`)}function ir(e,t,n=!1,r=!0){let{push:i,newline:a}=t;for(let o=0;o<e.length;o++){let s=e[o];A(s)?i(s,-3):h(s)?rr(s,t):ar(s,t),o<e.length-1&&(n?(r&&i(`,`),a()):r&&i(`, `))}}function ar(e,t){if(A(e)){t.push(e,-3);return}if(ee(e)){t.push(t.helper(e));return}switch(e.type){case 1:case 9:case 11:ar(e.codegenNode,t);break;case 2:oee(e,t);break;case 4:or(e,t);break;case 5:see(e,t);break;case 12:ar(e.codegenNode,t);break;case 8:sr(e,t);break;case 3:lee(e,t);break;case 13:uee(e,t);break;case 14:fee(e,t);break;case 15:pee(e,t);break;case 17:mee(e,t);break;case 18:hee(e,t);break;case 19:gee(e,t);break;case 20:_ee(e,t);break;case 21:ir(e.body,t,!0,!1);break;case 22:break;case 23:break;case 24:break;case 25:break;case 26:break;case 10:break;default:}}function oee(e,t){t.push(JSON.stringify(e.content),-3,e)}function or(e,t){let{content:n,isStatic:r}=e;t.push(r?JSON.stringify(n):n,-3,e)}function see(e,t){let{push:n,helper:r,pure:i}=t;i&&n(_a),n(`${r(ei)}(`),ar(e.content,t),n(`)`)}function sr(e,t){for(let n=0;n<e.children.length;n++){let r=e.children[n];A(r)?t.push(r,-3):ar(r,t)}}function cee(e,t){let{push:n}=t;e.type===8?(n(`[`),sr(e,t),n(`]`)):e.isStatic?n(Ri(e.content)?e.content:JSON.stringify(e.content),-2,e):n(`[${e.content}]`,-3,e)}function lee(e,t){let{push:n,helper:r,pure:i}=t;i&&n(_a),n(`${r(Ur)}(${JSON.stringify(e.content)})`,-3,e)}function uee(e,t){let{push:n,helper:r,pure:i}=t,{tag:a,props:o,children:s,patchFlag:c,dynamicProps:l,directives:u,isBlock:d,disableTracking:f,isComponent:p}=e,m;c&&(m=String(c)),u&&n(r(Xr)+`(`),d&&n(`(${r(Rr)}(${f?`true`:``}), `),i&&n(_a),n(r(d?At(t.inSSR,p):kt(t.inSSR,p))+`(`,-2,e),ir(dee([a,o,s,m,l]),t),n(`)`),d&&n(`)`),u&&(n(`, `),ar(u,t),n(`)`))}function dee(e){let t=e.length;for(;t--&&e[t]==null;);return e.slice(0,t+1).map(e=>e||`null`)}function fee(e,t){let{push:n,helper:r,pure:i}=t,a=A(e.callee)?e.callee:r(e.callee);i&&n(_a),n(a+`(`,-2,e),ir(e.arguments,t),n(`)`)}function pee(e,t){let{push:n,indent:r,deindent:i,newline:a}=t,{properties:o}=e;if(!o.length){n(`{}`,-2,e);return}let s=o.length>1||!1;n(s?`{`:`{ `),s&&r();for(let e=0;e<o.length;e++){let{key:r,value:i}=o[e];cee(r,t),n(`: `),ar(i,t),e<o.length-1&&(n(`,`),a())}s&&i(),n(s?`}`:` }`)}function mee(e,t){rr(e.elements,t)}function hee(e,t){let{push:n,indent:r,deindent:i}=t,{params:a,returns:o,body:s,newline:c,isSlot:l}=e;l&&n(`_${vi[pi]}(`),n(`(`,-2,e),h(a)?ir(a,t):a&&ar(a,t),n(`) => `),(c||s)&&(n(`{`),r()),o?(c&&n(`return `),h(o)?rr(o,t):ar(o,t)):s&&ar(s,t),(c||s)&&(i(),n(`}`)),l&&(e.isNonScopedSlot&&n(`, undefined, true`),n(`)`))}function gee(e,t){let{test:n,consequent:r,alternate:i,newline:a}=e,{push:o,indent:s,deindent:c,newline:l}=t;if(n.type===4){let e=!Ri(n.content);e&&o(`(`),or(n,t),e&&o(`)`)}else o(`(`),ar(n,t),o(`)`);a&&s(),t.indentLevel++,a||o(` `),o(`? `),ar(r,t),t.indentLevel--,a&&l(),a||o(` `),o(`: `);let u=i.type===19;u||t.indentLevel++,ar(i,t),u||t.indentLevel--,a&&c(!0)}function _ee(e,t){let{push:n,helper:r,indent:i,deindent:a,newline:o}=t,{needPauseTracking:s,needArraySpread:c}=e;c&&n(`[...(`),n(`_cache[${e.index}] || (`),s&&(i(),n(`${r(ui)}(-1`),e.inVOnce&&n(`, true`),n(`),`),o(),n(`(`)),n(`_cache[${e.index}] = `),ar(e.value,t),s&&(n(`).cacheIndex = ${e.index},`),o(),n(`${r(ui)}(1),`),o(),n(`_cache[${e.index}]`),a()),n(`)`),c&&n(`)]`)}function cr(e,t,n=!1,r=!1,i=Object.create(t.identifiers)){return e}function lr(e){return A(e)?e:e.type===4?e.content:e.children.map(lr).join(``)}function ur(e,t,n,r){if(t.name!==`else`&&(!t.exp||!t.exp.content.trim())){let r=t.exp?t.exp.loc:e.loc;n.onError(Ht(28,t.loc)),t.exp=gt(`true`,!1,r)}if(t.name===`if`){let i=dr(e,t),a={type:9,loc:Rn(e.loc),branches:[i]};if(n.replaceNode(a),r)return r(a,i,!0)}else{let i=n.parent.children,a=i.indexOf(e);for(;a-->=-1;){let o=i[a];if(o&&Sn(o)){n.removeNode(o);continue}if(o&&o.type===9){(t.name===`else-if`||t.name===`else`)&&o.branches[o.branches.length-1].condition===void 0&&n.onError(Ht(30,e.loc)),n.removeNode();let i=dr(e,t);o.branches.push(i);let a=r&&r(o,i,!1);$n(i,n),a&&a(),n.currentNode=null}else n.onError(Ht(30,e.loc));break}}}function dr(e,t){let n=e.tagType===3;return{type:10,loc:e.loc,condition:t.name===`else`?void 0:t.exp,children:n&&!an(e,`for`)?e.children:[e],userKey:on(e,`key`),isTemplateIf:n}}function fr(e,t,n){return e.condition?xt(e.condition,pr(e,t,n),yt(n.helper(Ur),[`""`,`true`])):pr(e,t,n)}function pr(e,t,n){let{helper:r}=n,i=ht(`key`,gt(`${t}`,!1,Ci,2)),{children:a}=e,o=a[0];if(a.length!==1||o.type!==1)if(a.length===1&&o.type===11){let e=o.codegenNode;return hn(e,i,n),e}else return ft(n,r(Nr),mt([i]),a,64,void 0,void 0,!0,!1,!1,e.loc);else{let e=o.codegenNode,t=yn(e);return t.type===13&&jt(t,n),hn(t,i,n),e}}function mr(e){for(;;)if(e.type===19)if(e.alternate.type===19)e=e.alternate;else return e;else e.type===20&&(e=e.value)}function hr(e,t,n,r){if(!t.exp){n.onError(Ht(31,t.loc));return}let i=t.forParseResult;if(!i){n.onError(Ht(32,t.loc));return}gr(i,n);let{addIdentifiers:a,removeIdentifiers:o,scopes:s}=n,{source:c,value:l,key:u,index:d}=i,f={type:11,loc:t.loc,source:c,valueAlias:l,keyAlias:u,objectIndexAlias:d,parseResult:i,children:fn(e)?e.children:[e]};n.replaceNode(f),s.vFor++;let p=r&&r(f);return()=>{s.vFor--,p&&p()}}function gr(e,t){e.finalized||=!0}function _r({value:e,key:t,index:n},r=[]){return vee([e,t,n,...r])}function vee(e){let t=e.length;for(;t--&&!e[t];);return e.slice(0,t+1).map((e,t)=>e||gt(`_`.repeat(t+1),!1))}function vr(e,t,n=Ta){t.helper(pi);let{children:r,loc:i}=e,a=[],o=[],s=t.scopes.vSlot>0||t.scopes.vFor>0,c=an(e,`slot`,!0);if(c){let{arg:e,exp:t}=c;e&&!Ii(e)&&(s=!0),a.push(ht(e||gt(`default`,!0),n(t,void 0,r,i)))}let l=!1,u=!1,d=[],f=new Set,p=0;for(let e=0;e<r.length;e++){let i=r[e],m;if(!fn(i)||!(m=an(i,`slot`,!0))){i.type!==3&&d.push(i);continue}if(c){t.onError(Ht(37,m.loc));break}l=!0;let{children:h,loc:g}=i,{arg:_=gt(`default`,!0),exp:v,loc:y}=m,b;Ii(_)?b=_?_.content:`default`:s=!0;let x=an(i,`for`),S=n(v,x,h,g),C,w;if(C=an(i,`if`))s=!0,o.push(xt(C.exp,yr(_,S,p++),Sa));else if(w=an(i,/^else(?:-if)?$/,!0)){let n=e,i;for(;n--&&(i=r[n],Sn(i)););if(i&&fn(i)&&an(i,/^(?:else-)?if$/)){let e=o[o.length-1];for(;e.alternate.type===19;)e=e.alternate;e.alternate=w.exp?xt(w.exp,yr(_,S,p++),Sa):yr(_,S,p++)}else t.onError(Ht(30,w.loc))}else if(x){s=!0;let e=x.forParseResult;e?(gr(e,t),o.push(yt(t.helper(Zr),[e.source,bt(_r(e),yr(_,S),!0)]))):t.onError(Ht(32,x.loc))}else{if(b){if(f.has(b)){t.onError(Ht(38,y));continue}f.add(b),b===`default`&&(u=!0)}a.push(ht(_,S))}}if(!c){let e=(e,r)=>{let a=n(e,void 0,r,i);return t.compatConfig&&(a.isNonScopedSlot=!0),ht(`default`,a)};l?d.length&&!d.every(xn)&&(u?t.onError(Ht(39,d[0].loc)):a.push(e(void 0,d))):a.push(e(void 0,r))}let m=s?2:br(e.children)?3:1,h=mt(a.concat(ht(`_`,gt(m+``,!1))),i);return o.length&&(h=yt(t.helper($r),[h,pt(o)])),{slots:h,hasDynamicSlots:s}}function yr(e,t,n){let r=[ht(`name`,e),ht(`fn`,t)];return n!=null&&r.push(ht(`key`,gt(String(n),!0))),mt(r)}function br(e){for(let t=0;t<e.length;t++){let n=e[t];switch(n.type){case 1:if(n.tagType===2||br(n.children))return!0;break;case 9:if(br(n.branches))return!0;break;case 10:case 11:if(br(n.children))return!0;break}}return!1}function xr(e,t,n=!1){let{tag:r}=e,i=Er(r),a=on(e,`is`,!1,!0);if(a)if(i||Lt(`COMPILER_IS_ON_ELEMENT`,t)){let e;if(a.type===6?e=a.value&>(a.value.content,!0):(e=a.exp,e||=gt(`is`,!1,a.arg.loc)),e)return yt(t.helper(qr),[e])}else a.type===6&&a.value.content.startsWith(`vue:`)&&(r=a.value.content.slice(4));let o=en(r)||t.isBuiltInComponent(r);return o?(n||t.helper(o),o):(t.helper(Kr),t.components.add(r),_n(r,`component`))}function Sr(e,t,n=e.props,r,i,a=!1){let{tag:o,loc:s,children:c}=e,l=[],u=[],d=[],f=c.length>0,p=!1,m=0,h=!1,g=!1,_=!1,v=!1,y=!1,b=!1,x=[],C=e=>{l.length&&(u.push(mt(Cr(l),s)),l=[]),e&&u.push(e)},w=()=>{t.scopes.vFor>0&&l.push(ht(gt(`ref_for`,!0),gt(`true`)))},T=({key:e,value:n})=>{if(Ii(e)){let a=e.content,o=O(a);if(o&&(!r||i)&&a.toLowerCase()!==`onclick`&&a!==`onUpdate:modelValue`&&!ve(a)&&(v=!0),o&&ve(a)&&(b=!0),o&&n.type===14&&(n=n.arguments[0]),n.type===20||(n.type===4||n.type===8)&&qn(n,t)>0)return;a===`ref`?h=!0:a===`class`?g=!0:a===`style`?_=!0:a!==`key`&&!x.includes(a)&&x.push(a),r&&(a===`class`||a===`style`)&&!x.includes(a)&&x.push(a)}else y=!0};for(let i=0;i<n.length;i++){let c=n[i];if(c.type===6){let{loc:e,name:n,nameLoc:r,value:i}=c;if(n===`ref`&&(h=!0,w()),n===`is`&&(Er(o)||i&&i.content.startsWith(`vue:`)||Lt(`COMPILER_IS_ON_ELEMENT`,t)))continue;l.push(ht(gt(n,!0,r),gt(i?i.content:``,!0,i?i.loc:e)))}else{let{name:n,arg:i,exp:h,loc:g,modifiers:_}=c,v=n===`bind`,b=n===`on`;if(n===`slot`){r||t.onError(Ht(40,g));continue}if(n===`once`||n===`memo`||n===`is`||v&&sn(i,`is`)&&(Er(o)||Lt(`COMPILER_IS_ON_ELEMENT`,t))||b&&a)continue;if((v&&sn(i,`key`)||b&&f&&sn(i,`vue:before-update`))&&(p=!0),v&&sn(i,`ref`)&&w(),!i&&(v||b)){if(y=!0,h)if(v){if(C(),Lt(`COMPILER_V_BIND_OBJECT_ORDER`,t)){u.unshift(h);continue}w(),C(),u.push(h)}else C({type:14,loc:g,callee:t.helper(oi),arguments:r?[h]:[h,`true`]});else t.onError(Ht(v?34:35,g));continue}v&&_.some(e=>e.content===`prop`)&&(m|=32);let x=t.directiveTransforms[n];if(x){let{props:n,needRuntime:r}=x(c,e,t);!a&&n.forEach(T),b&&i&&!Ii(i)?C(mt(n,s)):l.push(...n),r&&(d.push(c),ee(r)&&Ea.set(c,r))}else S(n)||(d.push(c),f&&(p=!0))}}let E;if(u.length?(C(),E=u.length>1?yt(t.helper(ti),u,s):u[0]):l.length&&(E=mt(Cr(l),s)),y?m|=16:(g&&!r&&(m|=2),_&&!r&&(m|=4),x.length&&(m|=8),v&&(m|=32)),!p&&(m===0||m===32)&&(h||b||d.length>0)&&(m|=512),!t.inSSR&&E)switch(E.type){case 15:let e=-1,n=-1,r=!1;for(let t=0;t<E.properties.length;t++){let i=E.properties[t].key;Ii(i)?i.content===`class`?e=t:i.content===`style`&&(n=t):i.isHandlerKey||(r=!0)}let i=E.properties[e],a=E.properties[n];r?E=yt(t.helper(ii),[E]):(i&&!Ii(i.value)&&(i.value=yt(t.helper(ni),[i.value])),a&&(_||a.value.type===4&&a.value.content.trim()[0]===`[`||a.value.type===17)&&(a.value=yt(t.helper(ri),[a.value])));break;case 14:break;default:E=yt(t.helper(ii),[yt(t.helper(ai),[E])]);break}return{props:E,directives:d,patchFlag:m,dynamicPropNames:x,shouldUseBlock:p}}function Cr(e){let t=new Map,n=[];for(let r=0;r<e.length;r++){let i=e[r];if(i.key.type===8||!i.key.isStatic){n.push(i);continue}let a=i.key.content,o=t.get(a);o?(a===`style`||a===`class`||O(a))&&yee(o,i):(t.set(a,i),n.push(i))}return n}function yee(e,t){e.value.type===17?e.value.elements.push(t.value):e.value=pt([e.value,t.value],e.loc)}function wr(e,t){let n=[],r=Ea.get(e);r?n.push(t.helperString(r)):(t.helper(Jr),t.directives.add(e.name),n.push(_n(e.name,`directive`)));let{loc:i}=e;if(e.exp&&n.push(e.exp),e.arg&&(e.exp||n.push(`void 0`),n.push(e.arg)),Object.keys(e.modifiers).length){e.arg||(e.exp||n.push(`void 0`),n.push(`void 0`));let t=gt(`true`,!1,i);n.push(mt(e.modifiers.map(e=>ht(e,t)),i))}return pt(n,e.loc)}function Tr(e){let t=`[`;for(let n=0,r=e.length;n<r;n++)t+=JSON.stringify(e[n]),n<r-1&&(t+=`, `);return t+`]`}function Er(e){return e===`component`||e===`Component`}function Dr(e,t){let n=`"default"`,r,i=[];for(let t=0;t<e.props.length;t++){let r=e.props[t];r.type===6?r.value&&(r.name===`name`?n=JSON.stringify(r.value.content):(r.name=o(r.name),i.push(r))):r.name===`bind`&&sn(r.arg,`name`)?r.exp?n=r.exp:r.arg&&r.arg.type===4&&(n=r.exp=gt(o(r.arg.content),!1,r.arg.loc)):(r.name===`bind`&&r.arg&&Ii(r.arg)&&(r.arg.content=o(r.arg.content)),i.push(r))}if(i.length>0){let{props:n,directives:a}=Sr(e,t,i,!1,!1);r=n,a.length&&t.onError(Ht(36,a[0].loc))}return{slotName:n,slotProps:r}}function Or(e=[]){return{props:e}}function kr(e,t){if(e.type===4)Ar(e,t);else for(let n=0;n<e.children.length;n++){let r=e.children[n];typeof r==`object`&&(r.type===4?Ar(r,t):r.type===8?kr(e,t):r.type===5&&kr(r.content,t))}}function Ar(e,t){let n=e.content,r=!1,i=!1,a=!1,o=!1,s=0,c=0,l=0,u=0,d,f,p,m,h=[];for(p=0;p<n.length;p++)if(f=d,d=n.charCodeAt(p),r)d===39&&f!==92&&(r=!1);else if(i)d===34&&f!==92&&(i=!1);else if(a)d===96&&f!==92&&(a=!1);else if(o)d===47&&f!==92&&(o=!1);else if(d===124&&n.charCodeAt(p+1)!==124&&n.charCodeAt(p-1)!==124&&!s&&!c&&!l)m===void 0?(u=p+1,m=n.slice(0,p).trim()):g();else{switch(d){case 34:i=!0;break;case 39:r=!0;break;case 96:a=!0;break;case 40:l++;break;case 41:l--;break;case 91:c++;break;case 93:c--;break;case 123:s++;break;case 125:s--;break}if(d===47){let e=p-1,t;for(;e>=0&&(t=n.charAt(e),t===` `);e--);(!t||!Ia.test(t))&&(o=!0)}}m===void 0?m=n.slice(0,p).trim():u!==0&&g();function g(){h.push(n.slice(u,p).trim()),u=p+1}if(h.length){for(p=0;p<h.length;p++)m=bee(m,h[p],t);e.content=m,e.ast=void 0}}function bee(e,t,n){n.helper(Yr);let r=t.indexOf(`(`);if(r<0)return n.filters.add(t),`${_n(t,`filter`)}(${e})`;{let i=t.slice(0,r),a=t.slice(r+1);return n.filters.add(i),`${_n(i,`filter`)}(${e}${a===`)`?a:`,`+a}`}}function jr(e){return[[Ba,Pa,ba,za,xa,...[La],...[],Oa,Da,Ca,Ma],{on:ka,bind:Aa,model:Fa}]}function Mr(e,t={}){let n=t.onError||Bt,r=t.mode===`module`;t.prefixIdentifiers===!0?n(Ht(48)):r&&n(Ht(49)),t.cacheHandlers&&n(Ht(50)),t.scopeId&&!r&&n(Ht(51));let i=g({},t,{prefixIdentifiers:!1}),a=A(e)?Wn(e,i):e,[o,s]=jr();return Qn(a,g({},i,{nodeTransforms:[...o,...t.nodeTransforms||[]],directiveTransforms:g({},s,t.directiveTransforms||{})})),tr(a,i)}var Nr,Pr,Fr,Ir,Lr,Rr,zr,Br,Vr,Hr,Ur,Wr,Gr,Kr,qr,Jr,Yr,Xr,Zr,Qr,$r,ei,ti,ni,ri,ii,ai,oi,si,ci,li,ui,di,fi,pi,mi,hi,gi,_i,vi,yi,bi,xi,Si,Ci,wi,Ti,Ei,Di,Oi,ki,Ai,ji,Mi,Ni,Pi,Fi,Ii,Li,Ri,zi,Bi,Vi,Hi,Ui,Wi,Gi,Ki,qi,Ji,Yi,Xi,Zi,Qi,$i,ea,ta,na,ra,ia,aa,oa,sa,ca,la,ua,da,fa,pa,ma,ha,ga,_a,va,ya,ba,xa,Sa,Ca,wa,Ta,Ea,Da,Oa,ka,Aa,ja,Ma,Na,Pa,Fa,Ia,La,Ra,za,Ba,Va,Ha,Ua=n((()=>{p(),Nr=Symbol(``),Pr=Symbol(``),Fr=Symbol(``),Ir=Symbol(``),Lr=Symbol(``),Rr=Symbol(``),zr=Symbol(``),Br=Symbol(``),Vr=Symbol(``),Hr=Symbol(``),Ur=Symbol(``),Wr=Symbol(``),Gr=Symbol(``),Kr=Symbol(``),qr=Symbol(``),Jr=Symbol(``),Yr=Symbol(``),Xr=Symbol(``),Zr=Symbol(``),Qr=Symbol(``),$r=Symbol(``),ei=Symbol(``),ti=Symbol(``),ni=Symbol(``),ri=Symbol(``),ii=Symbol(``),ai=Symbol(``),oi=Symbol(``),si=Symbol(``),ci=Symbol(``),li=Symbol(``),ui=Symbol(``),di=Symbol(``),fi=Symbol(``),pi=Symbol(``),mi=Symbol(``),hi=Symbol(``),gi=Symbol(``),_i=Symbol(``),vi={[Nr]:`Fragment`,[Pr]:`Teleport`,[Fr]:`Suspense`,[Ir]:`KeepAlive`,[Lr]:`BaseTransition`,[Rr]:`openBlock`,[zr]:`createBlock`,[Br]:`createElementBlock`,[Vr]:`createVNode`,[Hr]:`createElementVNode`,[Ur]:`createCommentVNode`,[Wr]:`createTextVNode`,[Gr]:`createStaticVNode`,[Kr]:`resolveComponent`,[qr]:`resolveDynamicComponent`,[Jr]:`resolveDirective`,[Yr]:`resolveFilter`,[Xr]:`withDirectives`,[Zr]:`renderList`,[Qr]:`renderSlot`,[$r]:`createSlots`,[ei]:`toDisplayString`,[ti]:`mergeProps`,[ni]:`normalizeClass`,[ri]:`normalizeStyle`,[ii]:`normalizeProps`,[ai]:`guardReactiveProps`,[oi]:`toHandlers`,[si]:`camelize`,[ci]:`capitalize`,[li]:`toHandlerKey`,[ui]:`setBlockTracking`,[di]:`pushScopeId`,[fi]:`popScopeId`,[pi]:`withCtx`,[mi]:`unref`,[hi]:`isRef`,[gi]:`withMemo`,[_i]:`isMemoSame`},yi={HTML:0,0:`HTML`,SVG:1,1:`SVG`,MATH_ML:2,2:`MATH_ML`},bi={ROOT:0,0:`ROOT`,ELEMENT:1,1:`ELEMENT`,TEXT:2,2:`TEXT`,COMMENT:3,3:`COMMENT`,SIMPLE_EXPRESSION:4,4:`SIMPLE_EXPRESSION`,INTERPOLATION:5,5:`INTERPOLATION`,ATTRIBUTE:6,6:`ATTRIBUTE`,DIRECTIVE:7,7:`DIRECTIVE`,COMPOUND_EXPRESSION:8,8:`COMPOUND_EXPRESSION`,IF:9,9:`IF`,IF_BRANCH:10,10:`IF_BRANCH`,FOR:11,11:`FOR`,TEXT_CALL:12,12:`TEXT_CALL`,VNODE_CALL:13,13:`VNODE_CALL`,JS_CALL_EXPRESSION:14,14:`JS_CALL_EXPRESSION`,JS_OBJECT_EXPRESSION:15,15:`JS_OBJECT_EXPRESSION`,JS_PROPERTY:16,16:`JS_PROPERTY`,JS_ARRAY_EXPRESSION:17,17:`JS_ARRAY_EXPRESSION`,JS_FUNCTION_EXPRESSION:18,18:`JS_FUNCTION_EXPRESSION`,JS_CONDITIONAL_EXPRESSION:19,19:`JS_CONDITIONAL_EXPRESSION`,JS_CACHE_EXPRESSION:20,20:`JS_CACHE_EXPRESSION`,JS_BLOCK_STATEMENT:21,21:`JS_BLOCK_STATEMENT`,JS_TEMPLATE_LITERAL:22,22:`JS_TEMPLATE_LITERAL`,JS_IF_STATEMENT:23,23:`JS_IF_STATEMENT`,JS_ASSIGNMENT_EXPRESSION:24,24:`JS_ASSIGNMENT_EXPRESSION`,JS_SEQUENCE_EXPRESSION:25,25:`JS_SEQUENCE_EXPRESSION`,JS_RETURN_STATEMENT:26,26:`JS_RETURN_STATEMENT`},xi={ELEMENT:0,0:`ELEMENT`,COMPONENT:1,1:`COMPONENT`,SLOT:2,2:`SLOT`,TEMPLATE:3,3:`TEMPLATE`},Si={NOT_CONSTANT:0,0:`NOT_CONSTANT`,CAN_SKIP_PATCH:1,1:`CAN_SKIP_PATCH`,CAN_CACHE:2,2:`CAN_CACHE`,CAN_STRINGIFY:3,3:`CAN_STRINGIFY`},Ci={start:{line:1,column:1,offset:0},end:{line:1,column:1,offset:0},source:``},wi=new Uint8Array([123,123]),Ti=new Uint8Array([125,125]),Ei={Cdata:new Uint8Array([67,68,65,84,65,91]),CdataEnd:new Uint8Array([93,93,62]),CommentEnd:new Uint8Array([45,45,62]),ScriptEnd:new Uint8Array([60,47,115,99,114,105,112,116]),StyleEnd:new Uint8Array([60,47,115,116,121,108,101]),TitleEnd:new Uint8Array([60,47,116,105,116,108,101]),TextareaEnd:new Uint8Array([60,47,116,101,120,116,97,114,101,97])},Di=class{constructor(e,t){this.stack=e,this.cbs=t,this.state=1,this.buffer=``,this.sectionStart=0,this.index=0,this.entityStart=0,this.baseState=1,this.inRCDATA=!1,this.inXML=!1,this.inVPre=!1,this.newlines=[],this.mode=0,this.delimiterOpen=wi,this.delimiterClose=Ti,this.delimiterIndex=-1,this.currentSequence=void 0,this.sequenceIndex=0}get inSFCRoot(){return this.mode===2&&this.stack.length===0}reset(){this.state=1,this.mode=0,this.buffer=``,this.sectionStart=0,this.index=0,this.baseState=1,this.inRCDATA=!1,this.currentSequence=void 0,this.newlines.length=0,this.delimiterOpen=wi,this.delimiterClose=Ti}getPos(e){let t=1,n=e+1,r=this.newlines.length,i=-1;if(r>100){let t=-1,n=r;for(;t+1<n;){let r=t+n>>>1;this.newlines[r]<e?t=r:n=r}i=t}else for(let t=r-1;t>=0;t--)if(e>this.newlines[t]){i=t;break}return i>=0&&(t=i+2,n=e-this.newlines[i]),{column:n,line:t,offset:e}}peek(){return this.buffer.charCodeAt(this.index+1)}stateText(e){e===60?(this.index>this.sectionStart&&this.cbs.ontext(this.sectionStart,this.index),this.state=5,this.sectionStart=this.index):!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e))}stateInterpolationOpen(e){if(e===this.delimiterOpen[this.delimiterIndex])if(this.delimiterIndex===this.delimiterOpen.length-1){let e=this.index+1-this.delimiterOpen.length;e>this.sectionStart&&this.cbs.ontext(this.sectionStart,e),this.state=3,this.sectionStart=e}else this.delimiterIndex++;else this.inRCDATA?(this.state=32,this.stateInRCDATA(e)):(this.state=1,this.stateText(e))}stateInterpolation(e){e===this.delimiterClose[0]&&(this.state=4,this.delimiterIndex=0,this.stateInterpolationClose(e))}stateInterpolationClose(e){e===this.delimiterClose[this.delimiterIndex]?this.delimiterIndex===this.delimiterClose.length-1?(this.cbs.oninterpolation(this.sectionStart,this.index+1),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):this.delimiterIndex++:(this.state=3,this.stateInterpolation(e))}stateSpecialStartSequence(e){let t=this.sequenceIndex===this.currentSequence.length;if(!(t?Pt(e):(e|32)===this.currentSequence[this.sequenceIndex]))this.inRCDATA=!1;else if(!t){this.sequenceIndex++;return}this.sequenceIndex=0,this.state=6,this.stateInTagName(e)}stateInRCDATA(e){if(this.sequenceIndex===this.currentSequence.length){if(e===62||Nt(e)){let t=this.index-this.currentSequence.length;if(this.sectionStart<t){let e=this.index;this.index=t,this.cbs.ontext(this.sectionStart,t),this.index=e}this.sectionStart=t+2,this.stateInClosingTagName(e),this.inRCDATA=!1;return}this.sequenceIndex=0}(e|32)===this.currentSequence[this.sequenceIndex]?this.sequenceIndex+=1:this.sequenceIndex===0?this.currentSequence===Ei.TitleEnd||this.currentSequence===Ei.TextareaEnd&&!this.inSFCRoot?!this.inVPre&&e===this.delimiterOpen[0]&&(this.state=2,this.delimiterIndex=0,this.stateInterpolationOpen(e)):this.fastForwardTo(60)&&(this.sequenceIndex=1):this.sequenceIndex=Number(e===60)}stateCDATASequence(e){e===Ei.Cdata[this.sequenceIndex]?++this.sequenceIndex===Ei.Cdata.length&&(this.state=28,this.currentSequence=Ei.CdataEnd,this.sequenceIndex=0,this.sectionStart=this.index+1):(this.sequenceIndex=0,this.state=23,this.stateInDeclaration(e))}fastForwardTo(e){for(;++this.index<this.buffer.length;){let t=this.buffer.charCodeAt(this.index);if(t===10&&this.newlines.push(this.index),t===e)return!0}return this.index=this.buffer.length-1,!1}stateInCommentLike(e){e===this.currentSequence[this.sequenceIndex]?++this.sequenceIndex===this.currentSequence.length&&(this.currentSequence===Ei.CdataEnd?this.cbs.oncdata(this.sectionStart,this.index-2):this.cbs.oncomment(this.sectionStart,this.index-2),this.sequenceIndex=0,this.sectionStart=this.index+1,this.state=1):this.sequenceIndex===0?this.fastForwardTo(this.currentSequence[0])&&(this.sequenceIndex=1):e!==this.currentSequence[this.sequenceIndex-1]&&(this.sequenceIndex=0)}startSpecial(e,t){this.enterRCDATA(e,t),this.state=31}enterRCDATA(e,t){this.inRCDATA=!0,this.currentSequence=e,this.sequenceIndex=t}stateBeforeTagName(e){e===33?(this.state=22,this.sectionStart=this.index+1):e===63?(this.state=24,this.sectionStart=this.index+1):Mt(e)?(this.sectionStart=this.index,this.mode===0?this.state=6:this.inSFCRoot?this.state=34:this.inXML?this.state=6:e===116?this.state=30:this.state=e===115?29:6):e===47?this.state=8:(this.state=1,this.stateText(e))}stateInTagName(e){Pt(e)&&this.handleTagName(e)}stateInSFCRootTagName(e){if(Pt(e)){let t=this.buffer.slice(this.sectionStart,this.index);t!==`template`&&this.enterRCDATA(Ft(`</`+t),0),this.handleTagName(e)}}handleTagName(e){this.cbs.onopentagname(this.sectionStart,this.index),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)}stateBeforeClosingTagName(e){Nt(e)||(e===62?(this.state=1,this.sectionStart=this.index+1):(this.state=Mt(e)?9:27,this.sectionStart=this.index))}stateInClosingTagName(e){(e===62||Nt(e))&&(this.cbs.onclosetag(this.sectionStart,this.index),this.sectionStart=-1,this.state=10,this.stateAfterClosingTagName(e))}stateAfterClosingTagName(e){e===62&&(this.state=1,this.sectionStart=this.index+1)}stateBeforeAttrName(e){e===62?(this.cbs.onopentagend(this.index),this.inRCDATA?this.state=32:this.state=1,this.sectionStart=this.index+1):e===47?this.state=7:e===60&&this.peek()===47?(this.cbs.onopentagend(this.index),this.state=5,this.sectionStart=this.index):Nt(e)||this.handleAttrStart(e)}handleAttrStart(e){e===118&&this.peek()===45?(this.state=13,this.sectionStart=this.index):e===46||e===58||e===64||e===35?(this.cbs.ondirname(this.index,this.index+1),this.state=14,this.sectionStart=this.index+1):(this.state=12,this.sectionStart=this.index)}stateInSelfClosingTag(e){e===62?(this.cbs.onselfclosingtag(this.index),this.state=1,this.sectionStart=this.index+1,this.inRCDATA=!1):Nt(e)||(this.state=11,this.stateBeforeAttrName(e))}stateInAttrName(e){(e===61||Pt(e))&&(this.cbs.onattribname(this.sectionStart,this.index),this.handleAttrNameEnd(e))}stateInDirName(e){e===61||Pt(e)?(this.cbs.ondirname(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===58?(this.cbs.ondirname(this.sectionStart,this.index),this.state=14,this.sectionStart=this.index+1):e===46&&(this.cbs.ondirname(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDirArg(e){e===61||Pt(e)?(this.cbs.ondirarg(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===91?this.state=15:e===46&&(this.cbs.ondirarg(this.sectionStart,this.index),this.state=16,this.sectionStart=this.index+1)}stateInDynamicDirArg(e){e===93?this.state=14:(e===61||Pt(e))&&(this.cbs.ondirarg(this.sectionStart,this.index+1),this.handleAttrNameEnd(e))}stateInDirModifier(e){e===61||Pt(e)?(this.cbs.ondirmodifier(this.sectionStart,this.index),this.handleAttrNameEnd(e)):e===46&&(this.cbs.ondirmodifier(this.sectionStart,this.index),this.sectionStart=this.index+1)}handleAttrNameEnd(e){this.sectionStart=this.index,this.state=17,this.cbs.onattribnameend(this.index),this.stateAfterAttrName(e)}stateAfterAttrName(e){e===61?this.state=18:e===47||e===62?(this.cbs.onattribend(0,this.sectionStart),this.sectionStart=-1,this.state=11,this.stateBeforeAttrName(e)):Nt(e)||(this.cbs.onattribend(0,this.sectionStart),this.handleAttrStart(e))}stateBeforeAttrValue(e){e===34?(this.state=19,this.sectionStart=this.index+1):e===39?(this.state=20,this.sectionStart=this.index+1):Nt(e)||(this.sectionStart=this.index,this.state=21,this.stateInAttrValueNoQuotes(e))}handleInAttrValue(e,t){(e===t||this.fastForwardTo(t))&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(t===34?3:2,this.index+1),this.state=11)}stateInAttrValueDoubleQuotes(e){this.handleInAttrValue(e,34)}stateInAttrValueSingleQuotes(e){this.handleInAttrValue(e,39)}stateInAttrValueNoQuotes(e){Nt(e)||e===62?(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=-1,this.cbs.onattribend(1,this.index),this.state=11,this.stateBeforeAttrName(e)):(e===39||e===60||e===61||e===96)&&this.cbs.onerr(18,this.index)}stateBeforeDeclaration(e){e===91?(this.state=26,this.sequenceIndex=0):this.state=e===45?25:23}stateInDeclaration(e){(e===62||this.fastForwardTo(62))&&(this.state=1,this.sectionStart=this.index+1)}stateInProcessingInstruction(e){(e===62||this.fastForwardTo(62))&&(this.cbs.onprocessinginstruction(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeComment(e){e===45?(this.state=28,this.currentSequence=Ei.CommentEnd,this.sequenceIndex=2,this.sectionStart=this.index+1):this.state=23}stateInSpecialComment(e){(e===62||this.fastForwardTo(62))&&(this.cbs.oncomment(this.sectionStart,this.index),this.state=1,this.sectionStart=this.index+1)}stateBeforeSpecialS(e){e===Ei.ScriptEnd[3]?this.startSpecial(Ei.ScriptEnd,4):e===Ei.StyleEnd[3]?this.startSpecial(Ei.StyleEnd,4):(this.state=6,this.stateInTagName(e))}stateBeforeSpecialT(e){e===Ei.TitleEnd[3]?this.startSpecial(Ei.TitleEnd,4):e===Ei.TextareaEnd[3]?this.startSpecial(Ei.TextareaEnd,4):(this.state=6,this.stateInTagName(e))}startEntity(){}stateInEntity(){}parse(e){for(this.buffer=e;this.index<this.buffer.length;){let e=this.buffer.charCodeAt(this.index);switch(e===10&&this.state!==33&&this.newlines.push(this.index),this.state){case 1:this.stateText(e);break;case 2:this.stateInterpolationOpen(e);break;case 3:this.stateInterpolation(e);break;case 4:this.stateInterpolationClose(e);break;case 31:this.stateSpecialStartSequence(e);break;case 32:this.stateInRCDATA(e);break;case 26:this.stateCDATASequence(e);break;case 19:this.stateInAttrValueDoubleQuotes(e);break;case 12:this.stateInAttrName(e);break;case 13:this.stateInDirName(e);break;case 14:this.stateInDirArg(e);break;case 15:this.stateInDynamicDirArg(e);break;case 16:this.stateInDirModifier(e);break;case 28:this.stateInCommentLike(e);break;case 27:this.stateInSpecialComment(e);break;case 11:this.stateBeforeAttrName(e);break;case 6:this.stateInTagName(e);break;case 34:this.stateInSFCRootTagName(e);break;case 9:this.stateInClosingTagName(e);break;case 5:this.stateBeforeTagName(e);break;case 17:this.stateAfterAttrName(e);break;case 20:this.stateInAttrValueSingleQuotes(e);break;case 18:this.stateBeforeAttrValue(e);break;case 8:this.stateBeforeClosingTagName(e);break;case 10:this.stateAfterClosingTagName(e);break;case 29:this.stateBeforeSpecialS(e);break;case 30:this.stateBeforeSpecialT(e);break;case 21:this.stateInAttrValueNoQuotes(e);break;case 7:this.stateInSelfClosingTag(e);break;case 23:this.stateInDeclaration(e);break;case 22:this.stateBeforeDeclaration(e);break;case 25:this.stateBeforeComment(e);break;case 24:this.stateInProcessingInstruction(e);break;case 33:this.stateInEntity();break}this.index++}this.cleanup(),this.finish()}cleanup(){this.sectionStart!==this.index&&(this.state===1||this.state===32&&this.sequenceIndex===0?(this.cbs.ontext(this.sectionStart,this.index),this.sectionStart=this.index):(this.state===19||this.state===20||this.state===21)&&(this.cbs.onattribdata(this.sectionStart,this.index),this.sectionStart=this.index))}finish(){this.handleTrailingData(),this.cbs.onend()}handleTrailingData(){let e=this.buffer.length;this.sectionStart>=e||(this.state===28?this.currentSequence===Ei.CdataEnd?this.cbs.oncdata(this.sectionStart,e):this.cbs.oncomment(this.sectionStart,e):this.state===6||this.state===11||this.state===18||this.state===17||this.state===12||this.state===13||this.state===14||this.state===15||this.state===16||this.state===20||this.state===19||this.state===21||this.state===9||this.cbs.ontext(this.sectionStart,e))}emitCodePoint(e,t){}},Oi={COMPILER_IS_ON_ELEMENT:`COMPILER_IS_ON_ELEMENT`,COMPILER_V_BIND_SYNC:`COMPILER_V_BIND_SYNC`,COMPILER_V_BIND_OBJECT_ORDER:`COMPILER_V_BIND_OBJECT_ORDER`,COMPILER_V_ON_NATIVE:`COMPILER_V_ON_NATIVE`,COMPILER_V_IF_V_FOR_PRECEDENCE:`COMPILER_V_IF_V_FOR_PRECEDENCE`,COMPILER_NATIVE_TEMPLATE:`COMPILER_NATIVE_TEMPLATE`,COMPILER_INLINE_TEMPLATE:`COMPILER_INLINE_TEMPLATE`,COMPILER_FILTERS:`COMPILER_FILTERS`},ki={COMPILER_IS_ON_ELEMENT:{message:`Platform-native elements with "is" prop will no longer be treated as components in Vue 3 unless the "is" value is explicitly prefixed with "vue:".`,link:`https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html`},COMPILER_V_BIND_SYNC:{message:e=>`.sync modifier for v-bind has been removed. Use v-model with argument instead. \`v-bind:${e}.sync\` should be changed to \`v-model:${e}\`.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-model.html`},COMPILER_V_BIND_OBJECT_ORDER:{message:`v-bind="obj" usage is now order sensitive and behaves like JavaScript object spread: it will now overwrite an existing non-mergeable attribute that appears before v-bind in the case of conflict. To retain 2.x behavior, move v-bind to make it the first attribute. You can also suppress this warning if the usage is intended.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-bind.html`},COMPILER_V_ON_NATIVE:{message:`.native modifier for v-on has been removed as is no longer necessary.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-on-native-modifier-removed.html`},COMPILER_V_IF_V_FOR_PRECEDENCE:{message:`v-if / v-for precedence when used on the same element has changed in Vue 3: v-if now takes higher precedence and will no longer have access to v-for scope variables. It is best to avoid the ambiguity with <template> tags or use a computed property that filters v-for data source.`,link:`https://v3-migration.vuejs.org/breaking-changes/v-if-v-for.html`},COMPILER_NATIVE_TEMPLATE:{message:`<template> with no special directives will render as a native template element instead of its inner content in Vue 3.`},COMPILER_INLINE_TEMPLATE:{message:`"inline-template" has been removed in Vue 3.`,link:`https://v3-migration.vuejs.org/breaking-changes/inline-template-attribute.html`},COMPILER_FILTERS:{message:`filters have been removed in Vue 3. The "|" symbol will be treated as native JavaScript bitwise OR operator. Use method calls or computed properties instead.`,link:`https://v3-migration.vuejs.org/breaking-changes/filters.html`}},Ai={ABRUPT_CLOSING_OF_EMPTY_COMMENT:0,0:`ABRUPT_CLOSING_OF_EMPTY_COMMENT`,CDATA_IN_HTML_CONTENT:1,1:`CDATA_IN_HTML_CONTENT`,DUPLICATE_ATTRIBUTE:2,2:`DUPLICATE_ATTRIBUTE`,END_TAG_WITH_ATTRIBUTES:3,3:`END_TAG_WITH_ATTRIBUTES`,END_TAG_WITH_TRAILING_SOLIDUS:4,4:`END_TAG_WITH_TRAILING_SOLIDUS`,EOF_BEFORE_TAG_NAME:5,5:`EOF_BEFORE_TAG_NAME`,EOF_IN_CDATA:6,6:`EOF_IN_CDATA`,EOF_IN_COMMENT:7,7:`EOF_IN_COMMENT`,EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT:8,8:`EOF_IN_SCRIPT_HTML_COMMENT_LIKE_TEXT`,EOF_IN_TAG:9,9:`EOF_IN_TAG`,INCORRECTLY_CLOSED_COMMENT:10,10:`INCORRECTLY_CLOSED_COMMENT`,INCORRECTLY_OPENED_COMMENT:11,11:`INCORRECTLY_OPENED_COMMENT`,INVALID_FIRST_CHARACTER_OF_TAG_NAME:12,12:`INVALID_FIRST_CHARACTER_OF_TAG_NAME`,MISSING_ATTRIBUTE_VALUE:13,13:`MISSING_ATTRIBUTE_VALUE`,MISSING_END_TAG_NAME:14,14:`MISSING_END_TAG_NAME`,MISSING_WHITESPACE_BETWEEN_ATTRIBUTES:15,15:`MISSING_WHITESPACE_BETWEEN_ATTRIBUTES`,NESTED_COMMENT:16,16:`NESTED_COMMENT`,UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME:17,17:`UNEXPECTED_CHARACTER_IN_ATTRIBUTE_NAME`,UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE:18,18:`UNEXPECTED_CHARACTER_IN_UNQUOTED_ATTRIBUTE_VALUE`,UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME:19,19:`UNEXPECTED_EQUALS_SIGN_BEFORE_ATTRIBUTE_NAME`,UNEXPECTED_NULL_CHARACTER:20,20:`UNEXPECTED_NULL_CHARACTER`,UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME:21,21:`UNEXPECTED_QUESTION_MARK_INSTEAD_OF_TAG_NAME`,UNEXPECTED_SOLIDUS_IN_TAG:22,22:`UNEXPECTED_SOLIDUS_IN_TAG`,X_INVALID_END_TAG:23,23:`X_INVALID_END_TAG`,X_MISSING_END_TAG:24,24:`X_MISSING_END_TAG`,X_MISSING_INTERPOLATION_END:25,25:`X_MISSING_INTERPOLATION_END`,X_MISSING_DIRECTIVE_NAME:26,26:`X_MISSING_DIRECTIVE_NAME`,X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END:27,27:`X_MISSING_DYNAMIC_DIRECTIVE_ARGUMENT_END`,X_V_IF_NO_EXPRESSION:28,28:`X_V_IF_NO_EXPRESSION`,X_V_IF_SAME_KEY:29,29:`X_V_IF_SAME_KEY`,X_V_ELSE_NO_ADJACENT_IF:30,30:`X_V_ELSE_NO_ADJACENT_IF`,X_V_FOR_NO_EXPRESSION:31,31:`X_V_FOR_NO_EXPRESSION`,X_V_FOR_MALFORMED_EXPRESSION:32,32:`X_V_FOR_MALFORMED_EXPRESSION`,X_V_FOR_TEMPLATE_KEY_PLACEMENT:33,33:`X_V_FOR_TEMPLATE_KEY_PLACEMENT`,X_V_BIND_NO_EXPRESSION:34,34:`X_V_BIND_NO_EXPRESSION`,X_V_ON_NO_EXPRESSION:35,35:`X_V_ON_NO_EXPRESSION`,X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET:36,36:`X_V_SLOT_UNEXPECTED_DIRECTIVE_ON_SLOT_OUTLET`,X_V_SLOT_MIXED_SLOT_USAGE:37,37:`X_V_SLOT_MIXED_SLOT_USAGE`,X_V_SLOT_DUPLICATE_SLOT_NAMES:38,38:`X_V_SLOT_DUPLICATE_SLOT_NAMES`,X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN:39,39:`X_V_SLOT_EXTRANEOUS_DEFAULT_SLOT_CHILDREN`,X_V_SLOT_MISPLACED:40,40:`X_V_SLOT_MISPLACED`,X_V_MODEL_NO_EXPRESSION:41,41:`X_V_MODEL_NO_EXPRESSION`,X_V_MODEL_MALFORMED_EXPRESSION:42,42:`X_V_MODEL_MALFORMED_EXPRESSION`,X_V_MODEL_ON_SCOPE_VARIABLE:43,43:`X_V_MODEL_ON_SCOPE_VARIABLE`,X_V_MODEL_ON_PROPS:44,44:`X_V_MODEL_ON_PROPS`,X_V_MODEL_ON_CONST:45,45:`X_V_MODEL_ON_CONST`,X_INVALID_EXPRESSION:46,46:`X_INVALID_EXPRESSION`,X_KEEP_ALIVE_INVALID_CHILDREN:47,47:`X_KEEP_ALIVE_INVALID_CHILDREN`,X_PREFIX_ID_NOT_SUPPORTED:48,48:`X_PREFIX_ID_NOT_SUPPORTED`,X_MODULE_MODE_NOT_SUPPORTED:49,49:`X_MODULE_MODE_NOT_SUPPORTED`,X_CACHE_HANDLER_NOT_SUPPORTED:50,50:`X_CACHE_HANDLER_NOT_SUPPORTED`,X_SCOPE_ID_NOT_SUPPORTED:51,51:`X_SCOPE_ID_NOT_SUPPORTED`,X_VNODE_HOOKS:52,52:`X_VNODE_HOOKS`,X_V_BIND_INVALID_SAME_NAME_ARGUMENT:53,53:`X_V_BIND_INVALID_SAME_NAME_ARGUMENT`,__EXTEND_POINT__:54,54:`__EXTEND_POINT__`},ji={0:`Illegal comment.`,1:`CDATA section is allowed only in XML context.`,2:`Duplicate attribute.`,3:`End tag cannot have attributes.`,4:`Illegal '/' in tags.`,5:`Unexpected EOF in tag.`,6:`Unexpected EOF in CDATA section.`,7:`Unexpected EOF in comment.`,8:`Unexpected EOF in script.`,9:`Unexpected EOF in tag.`,10:`Incorrectly closed comment.`,11:`Incorrectly opened comment.`,12:`Illegal tag name. Use '<' to print '<'.`,13:`Attribute value was expected.`,14:`End tag name was expected.`,15:`Whitespace was expected.`,16:`Unexpected '<!--' in comment.`,17:`Attribute name cannot contain U+0022 ("), U+0027 ('), and U+003C (<).`,18:`Unquoted attribute value cannot contain U+0022 ("), U+0027 ('), U+003C (<), U+003D (=), and U+0060 (\`).`,19:`Attribute name cannot start with '='.`,21:`'<?' is allowed only in XML context.`,20:`Unexpected null character.`,22:`Illegal '/' in tags.`,23:`Invalid end tag.`,24:`Element is missing end tag.`,25:`Interpolation end sign was not found.`,27:`End bracket for dynamic directive argument was not found. Note that dynamic directive argument cannot contain spaces.`,26:`Legal directive name was expected.`,28:`v-if/v-else-if is missing expression.`,29:`v-if/else branches must use unique keys.`,30:`v-else/v-else-if has no adjacent v-if or v-else-if.`,31:`v-for is missing expression.`,32:`v-for has invalid expression.`,33:`<template v-for> key should be placed on the <template> tag.`,34:`v-bind is missing expression.`,53:`v-bind with same-name shorthand only allows static argument.`,35:`v-on is missing expression.`,36:`Unexpected custom directive on <slot> outlet.`,37:`Mixed v-slot usage on both the component and nested <template>. When there are multiple named slots, all slots should use <template> syntax to avoid scope ambiguity.`,38:`Duplicate slot names found. `,39:`Extraneous children found when component already has explicitly named default slot. These children will be ignored.`,40:`v-slot can only be used on components or <template> tags.`,41:`v-model is missing expression.`,42:`v-model value must be a valid JavaScript member expression.`,43:`v-model cannot be used on v-for or v-slot scope variables because they are not writable.`,44:`v-model cannot be used on a prop, because local prop bindings are not writable.
|
|
|
Use a v-bind binding combined with a v-on listener that emits update:x event instead.`,45:`v-model cannot be used on a const binding because it is not writable.`,46:`Error parsing JavaScript expression: `,47:`<KeepAlive> expects exactly one child component.`,52:`@vnode-* hooks in templates are no longer supported. Use the vue: prefix instead. For example, @vnode-mounted should be changed to @vue:mounted. @vnode-* hooks support has been removed in 3.4.`,48:`"prefixIdentifiers" option is not supported in this build of compiler.`,49:`ES module mode is not supported in this build of compiler.`,50:`"cacheHandlers" option is only supported when the "prefixIdentifiers" option is enabled.`,51:`"scopeId" option is only supported in module mode.`,54:``},Mi=e=>/Function(?:Expression|Declaration)$|Method$/.test(e.type),Ni=e=>e&&(e.type===`ObjectProperty`||e.type===`ObjectMethod`)&&!e.computed,Pi=(e,t)=>Ni(t)&&t.key===e,Fi=[`TSAsExpression`,`TSTypeAssertion`,`TSNonNullExpression`,`TSInstantiationExpression`,`TSSatisfiesExpression`],Ii=e=>e.type===4&&e.isStatic,Li=/^$|^\d|[^\$\w\xA0-\uFFFF]/,Ri=e=>!Li.test(e),zi=/[A-Za-z_$\xA0-\uFFFF]/,Bi=/[\.\?\w$\xA0-\uFFFF]/,Vi=/\s+[.[]\s*|\s*[.[]\s+/g,Hi=e=>e.type===4?e.content:e.loc.source,Ui=e=>{let t=Hi(e).trim().replace(Vi,e=>e.trim()),n=0,r=[],i=0,a=0,o=null;for(let e=0;e<t.length;e++){let s=t.charAt(e);switch(n){case 0:if(s===`[`)r.push(n),n=1,i++;else if(s===`(`)r.push(n),n=2,a++;else if(!(e===0?zi:Bi).test(s))return!1;break;case 1:s===`'`||s===`"`||s==="`"?(r.push(n),n=3,o=s):s===`[`?i++:s===`]`&&(--i||(n=r.pop()));break;case 2:if(s===`'`||s===`"`||s==="`")r.push(n),n=3,o=s;else if(s===`(`)a++;else if(s===`)`){if(e===t.length-1)return!1;--a||(n=r.pop())}break;case 3:s===o&&(n=r.pop(),o=null);break}}return!i&&!a},Wi=de,Gi=Ui,Ki=/^\s*(?:async\s*)?(?:\([^)]*?\)|[\w$_]+)\s*(?::[^=]+)?=>|^\s*(?:async\s+)?function(?:\s+[\w$]+)?\s*\(/,qi=e=>Ki.test(Hi(e)),Ji=de,Yi=qi,Xi=new Set([ii,ai]),Zi=/([\s\S]*?)\s+(?:in|of)\s+(\S[\s\S]*)/,Qi={parseMode:`base`,ns:0,delimiters:[`{{`,`}}`],getNamespace:()=>0,isVoidTag:y,isPreTag:y,isIgnoreNewlineTag:y,isCustomElement:y,onError:Bt,onWarn:Vt,comments:!1,prefixIdentifiers:!1},$i=Qi,ea=null,ta=``,na=null,ra=null,ia=``,aa=-1,oa=-1,sa=0,ca=!1,la=null,ua=[],da=new Di(ua,{onerr:Hn,ontext(e,t){En(wn(e,t),e,t)},ontextentity(e,t,n){En(e,t,n)},oninterpolation(e,t){if(ca)return En(wn(e,t),e,t);let n=e+da.delimiterOpen.length,r=t-da.delimiterClose.length;for(;Nt(ta.charCodeAt(n));)n++;for(;Nt(ta.charCodeAt(r-1));)r--;let i=wn(n,r);i.includes(`&`)&&(i=$i.decodeEntities(i,!1)),In({type:5,content:Vn(i,!1,Ln(n,r)),loc:Ln(e,t)})},onopentagname(e,t){let n=wn(e,t);na={type:1,tag:n,ns:$i.getNamespace(n,ua[0],$i.ns),tagType:0,props:[],children:[],loc:Ln(e-1,t),codegenNode:void 0}},onopentagend(e){Tn(e)},onclosetag(e,t){let n=wn(e,t);if(!$i.isVoidTag(n)){let r=!1;for(let e=0;e<ua.length;e++)if(ua[e].tag.toLowerCase()===n.toLowerCase()){r=!0,e>0&&Hn(24,ua[0].loc.start.offset);for(let n=0;n<=e;n++)Dn(ua.shift(),t,n<e);break}r||Hn(23,kn(e,60))}},onselfclosingtag(e){let t=na.tag;na.isSelfClosing=!0,Tn(e),ua[0]&&ua[0].tag===t&&Dn(ua.shift(),e)},onattribname(e,t){ra={type:6,name:wn(e,t),nameLoc:Ln(e,t),value:void 0,loc:Ln(e)}},ondirname(e,t){let n=wn(e,t),r=n===`.`||n===`:`?`bind`:n===`@`?`on`:n===`#`?`slot`:n.slice(2);if(!ca&&r===``&&Hn(26,e),ca||r===``)ra={type:6,name:n,nameLoc:Ln(e,t),value:void 0,loc:Ln(e)};else if(ra={type:7,name:r,rawName:n,exp:void 0,arg:void 0,modifiers:n===`.`?[gt(`prop`)]:[],loc:Ln(e)},r===`pre`){ca=da.inVPre=!0,la=na;let e=na.props;for(let t=0;t<e.length;t++)e[t].type===7&&(e[t]=Bn(e[t]))}},ondirarg(e,t){if(e===t)return;let n=wn(e,t);if(ca&&!un(ra))ra.name+=n,zn(ra.nameLoc,t);else{let r=n[0]!==`[`;ra.arg=Vn(r?n:n.slice(1,-1),r,Ln(e,t),r?3:0)}},ondirmodifier(e,t){let n=wn(e,t);if(ca&&!un(ra))ra.name+=`.`+n,zn(ra.nameLoc,t);else if(ra.name===`slot`){let e=ra.arg;e&&(e.content+=`.`+n,zn(e.loc,t))}else{let r=gt(n,!0,Ln(e,t));ra.modifiers.push(r)}},onattribdata(e,t){ia+=wn(e,t),aa<0&&(aa=e),oa=t},onattribentity(e,t,n){ia+=e,aa<0&&(aa=t),oa=n},onattribnameend(e){let t=ra.loc.start.offset,n=wn(t,e);ra.type===7&&(ra.rawName=n),na.props.some(e=>(e.type===7?e.rawName:e.name)===n)&&Hn(2,t)},onattribend(e,t){if(na&&ra){if(zn(ra.loc,t),e!==0)if(ia.includes(`&`)&&(ia=$i.decodeEntities(ia,!0)),ra.type===6)ra.name===`class`&&(ia=Fn(ia).trim()),e===1&&!ia&&Hn(13,t),ra.value={type:2,content:ia,loc:e===1?Ln(aa,oa):Ln(aa-1,oa+1)},da.inSFCRoot&&na.tag===`template`&&ra.name===`lang`&&ia&&ia!==`html`&&da.enterRCDATA(Ft(`</template`),0);else{ra.exp=Vn(ia,!1,Ln(aa,oa),0,0),ra.name===`for`&&(ra.forParseResult=Cn(ra.exp));let e=-1;ra.name===`bind`&&(e=ra.modifiers.findIndex(e=>e.content===`sync`))>-1&&Rt(`COMPILER_V_BIND_SYNC`,$i,ra.loc,ra.arg.loc.source)&&(ra.name=`model`,ra.modifiers.splice(e,1))}(ra.type!==7||ra.name!==`pre`)&&na.props.push(ra)}ia=``,aa=oa=-1},oncomment(e,t){$i.comments&&In({type:3,content:wn(e,t),loc:Ln(e-4,t+3)})},onend(){let e=ta.length;for(let t=0;t<ua.length;t++)Dn(ua[t],e-1),Hn(24,ua[t].loc.start.offset)},oncdata(e,t){ua[0].ns===0?Hn(1,e-9):En(wn(e,t),e,t)},onprocessinginstruction(e){(ua[0]?ua[0].ns:$i.ns)===0&&Hn(21,e-1)}}),fa=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,pa=/^\(|\)$/g,ma=new Set([`if`,`else`,`else-if`,`for`,`slot`]),ha=/\r\n/g,ga=new Set([ni,ri,ii,ai]),_a=`/*@__PURE__*/`,va=e=>`${vi[e]}: _${vi[e]}`,RegExp(`\\b`+`arguments,await,break,case,catch,class,const,continue,debugger,default,delete,do,else,export,extends,finally,for,function,if,import,let,new,return,super,switch,throw,try,var,void,while,with,yield`.split(`,`).join(`\\b|\\b`)+`\\b`),ya=(e,t)=>{if(e.type===5)e.content=cr(e.content,t);else if(e.type===1){let n=an(e,`memo`);for(let r=0;r<e.props.length;r++){let i=e.props[r];if(i.type===7&&i.name!==`for`){let e=i.exp,r=i.arg;e&&e.type===4&&!(i.name===`on`&&r)&&!(n&&r&&r.type===4&&r.content===`key`)&&(i.exp=cr(e,t,i.name===`slot`)),r&&r.type===4&&!r.isStatic&&(i.arg=cr(r,t))}}}},ba=er(/^(?:if|else|else-if)$/,(e,t,n)=>ur(e,t,n,(e,t,r)=>{let i=n.parent.children,a=i.indexOf(e),o=0;for(;a-->=0;){let e=i[a];e&&e.type===9&&(o+=e.branches.length)}return()=>{if(r)e.codegenNode=fr(t,o,n);else{let r=mr(e.codegenNode);r.alternate=fr(t,o+e.branches.length-1,n)}}})),xa=er(`for`,(e,t,n)=>{let{helper:r,removeHelper:i}=n;return hr(e,t,n,t=>{let a=yt(r(Zr),[t.source]),o=fn(e),s=an(e,`memo`),c=on(e,`key`,!1,!0);c&&c.type;let l=c&&(c.type===6?c.value?gt(c.value.content,!0):void 0:c.exp),u=c&&l?ht(`key`,l):null,d=t.source.type===4&&t.source.constType>0,f=d?64:c?128:256;return t.codegenNode=ft(n,r(Nr),void 0,a,f,void 0,void 0,!0,!d,!1,e.loc),()=>{let c,{children:f}=t,p=f.length!==1||f[0].type!==1,m=pn(e)?e:o&&e.children.length===1&&pn(e.children[0])?e.children[0]:null;if(m?(c=m.codegenNode,o&&u&&hn(c,u,n)):p?c=ft(n,r(Nr),u?mt([u]):void 0,e.children,64,void 0,void 0,!0,void 0,!1):(c=f[0].codegenNode,o&&u&&hn(c,u,n),c.isBlock!==!d&&(c.isBlock?(i(Rr),i(At(n.inSSR,c.isComponent))):i(kt(n.inSSR,c.isComponent))),c.isBlock=!d,c.isBlock?(r(Rr),r(At(n.inSSR,c.isComponent))):r(kt(n.inSSR,c.isComponent))),s){let e=bt(_r(t.parseResult,[gt(`_cached`)]));e.body=Ct([vt([`const _memo = (`,s.exp,`)`]),vt([`if (_cached && _cached.el`,...l?[` && _cached.key === `,l]:[],` && ${n.helperString(_i)}(_cached, _memo)) return _cached`]),vt([`const _item = `,c]),gt(`_item.memo = _memo`),gt(`return _item`)]),a.arguments.push(e,gt(`_cache`),gt(String(n.cached.length))),n.cached.push(null)}else a.arguments.push(bt(_r(t.parseResult),c,!0))}})}),Sa=gt(`undefined`,!1),Ca=(e,t)=>{if(e.type===1&&(e.tagType===1||e.tagType===3)){let n=an(e,`slot`);if(n)return n.exp,t.scopes.vSlot++,()=>{t.scopes.vSlot--}}},wa=(e,t)=>{let n;if(fn(e)&&e.props.some(dn)&&(n=an(e,`for`))){let e=n.forParseResult;if(e){gr(e,t);let{value:n,key:r,index:i}=e,{addIdentifiers:a,removeIdentifiers:o}=t;return n&&a(n),r&&a(r),i&&a(i),()=>{n&&o(n),r&&o(r),i&&o(i)}}}},Ta=(e,t,n,r)=>bt(e,n,!1,!0,n.length?n[0].loc:r),Ea=new WeakMap,Da=(e,t)=>function(){if(e=t.currentNode,!(e.type===1&&(e.tagType===0||e.tagType===1)))return;let{tag:n,props:r}=e,i=e.tagType===1,a=i?xr(e,t):`"${n}"`,o=w(a)&&a.callee===qr,s,c,l=0,u,d,f,p=o||a===Pr||a===Fr||!i&&(n===`svg`||n===`foreignObject`||n===`math`);if(r.length>0){let n=Sr(e,t,void 0,i,o);s=n.props,l=n.patchFlag,d=n.dynamicPropNames;let r=n.directives;f=r&&r.length?pt(r.map(e=>wr(e,t))):void 0,n.shouldUseBlock&&(p=!0)}if(e.children.length>0)if(a===Ir&&(p=!0,l|=1024),i&&a!==Pr&&a!==Ir){let{slots:n,hasDynamicSlots:r}=vr(e,t);c=n,r&&(l|=1024)}else if(e.children.length===1&&a!==Pr){let n=e.children[0],r=n.type,i=r===5||r===8;i&&qn(n,t)===0&&(l|=1),c=i||r===2?n:e.children}else c=e.children;d&&d.length&&(u=Tr(d)),e.codegenNode=ft(t,a,s,c,l===0?void 0:l,u,f,!!p,!1,i,e.loc)},Oa=(e,t)=>{if(pn(e)){let{children:n,loc:r}=e,{slotName:i,slotProps:a}=Dr(e,t),o=[t.prefixIdentifiers?`_ctx.$slots`:`$slots`,i,`{}`,`undefined`,`true`],s=2;a&&(o[2]=a,s=3),n.length&&(o[3]=bt([],n,!1,!1,r),s=4),t.scopeId&&!t.slotted&&(s=5),o.splice(s),e.codegenNode=yt(t.helper(Qr),o,r)}},ka=(e,t,n,r)=>{let{loc:i,modifiers:a,arg:s}=e;!e.exp&&!a.length&&n.onError(Ht(35,i));let c;if(s.type===4)if(s.isStatic){let e=s.content;e.startsWith(`vue:`)&&(e=`vnode-${e.slice(4)}`),c=gt(t.tagType!==0||e.startsWith(`vnode`)||!/[A-Z]/.test(e)?ne(o(e)):`on:${e}`,!0,s.loc)}else c=vt([`${n.helperString(li)}(`,s,`)`]);else c=s,c.children.unshift(`${n.helperString(li)}(`),c.children.push(`)`);let l=e.exp;l&&!l.content.trim()&&(l=void 0);let u=n.cacheHandlers&&!l&&!n.inVOnce;if(l){let e=Gi(l),t=!(e||Yi(l)),n=l.content.includes(`;`);(t||u&&e)&&(l=vt([`${t?`$event`:`(...args)`} => ${n?`{`:`(`}`,l,n?`}`:`)`]))}let d={props:[ht(c,l||gt(`() => {}`,!1,i))]};return r&&(d=r(d)),u&&(d.props[0].value=n.cache(d.props[0].value)),d.props.forEach(e=>e.key.isHandlerKey=!0),d},Aa=(e,t,n)=>{let{modifiers:r,loc:i}=e,a=e.arg,{exp:s}=e;return s&&s.type===4&&!s.content.trim()&&(s=void 0),a.type===4?a.isStatic||(a.content=a.content?`${a.content} || ""`:`""`):(a.children.unshift(`(`),a.children.push(`) || ""`)),r.some(e=>e.content===`camel`)&&(a.type===4?a.isStatic?a.content=o(a.content):a.content=`${n.helperString(si)}(${a.content})`:(a.children.unshift(`${n.helperString(si)}(`),a.children.push(`)`))),n.inSSR||(r.some(e=>e.content===`prop`)&&ja(a,`.`),r.some(e=>e.content===`attr`)&&ja(a,`^`)),{props:[ht(a,s)]}},ja=(e,t)=>{e.type===4?e.isStatic?e.content=t+e.content:e.content=`\`${t}\${${e.content}}\``:(e.children.unshift(`'${t}' + (`),e.children.push(`)`))},Ma=(e,t)=>{if(e.type===0||e.type===1||e.type===11||e.type===10)return()=>{let n=e.children,r,i=!1;for(let e=0;e<n.length;e++){let t=n[e];if(ln(t)){i=!0;for(let i=e+1;i<n.length;i++){let a=n[i];if(ln(a))r||=n[e]=vt([t],t.loc),r.children.push(` + `,a),n.splice(i,1),i--;else{r=void 0;break}}}}if(!(!i||n.length===1&&(e.type===0||e.type===1&&e.tagType===0&&!e.props.find(e=>e.type===7&&!t.directiveTransforms[e.name])&&e.tag!==`template`)))for(let e=0;e<n.length;e++){let r=n[e];if(ln(r)||r.type===8){let i=[];(r.type!==2||r.content!==` `)&&i.push(r),!t.ssr&&qn(r,t)===0&&i.push(`1`),n[e]={type:12,content:r,loc:r.loc,codegenNode:yt(t.helper(Wr),i)}}}}},Na=new WeakSet,Pa=(e,t)=>{if(e.type===1&&an(e,`once`,!0))return Na.has(e)||t.inVOnce||t.inSSR?void 0:(Na.add(e),t.inVOnce=!0,t.helper(ui),()=>{t.inVOnce=!1;let e=t.currentNode;e.codegenNode&&=t.cache(e.codegenNode,!0,!0)})},Fa=(e,t,n)=>{let{exp:r,arg:i}=e;if(!r)return n.onError(Ht(41,e.loc)),Or();let a=r.loc.source.trim(),s=r.type===4?r.content:a,c=n.bindingMetadata[a];if(c===`props`||c===`props-aliased`)return n.onError(Ht(44,r.loc)),Or();if(c===`literal-const`||c===`setup-const`)return n.onError(Ht(45,r.loc)),Or();if(!s.trim()||!Gi(r))return n.onError(Ht(42,r.loc)),Or();let l=i||gt(`modelValue`,!0),u=i?Ii(i)?`onUpdate:${o(i.content)}`:vt([`"onUpdate:" + `,i]):`onUpdate:modelValue`,d;d=vt([`${n.isTS?`($event: any)`:`$event`} => ((`,r,`) = $event)`]);let f=[ht(l,e.exp),ht(u,d)];if(e.modifiers.length&&t.tagType===1){let t=e.modifiers.map(e=>e.content).map(e=>(Ri(e)?e:JSON.stringify(e))+`: true`).join(`, `),n=i?Ii(i)?`${i.content}Modifiers`:vt([i,` + "Modifiers"`]):`modelModifiers`;f.push(ht(n,gt(`{ ${t} }`,!1,e.loc,2)))}return Or(f)},Ia=/[\w).+\-_$\]]/,La=(e,t)=>{Lt(`COMPILER_FILTERS`,t)&&(e.type===5?kr(e.content,t):e.type===1&&e.props.forEach(e=>{e.type===7&&e.name!==`for`&&e.exp&&kr(e.exp,t)}))},Ra=new WeakSet,za=(e,t)=>{if(e.type===1){let n=an(e,`memo`);return!n||Ra.has(e)||t.inSSR?void 0:(Ra.add(e),()=>{let r=e.codegenNode||t.currentNode.codegenNode;r&&r.type===13&&(e.tagType!==1&&jt(r,t),e.codegenNode=yt(t.helper(gi),[n.exp,bt(void 0,r),`_cache`,String(t.cached.length)]),t.cached.push(null))})}},Ba=(e,t)=>{if(e.type===1){for(let n of e.props)if(n.type===7&&n.name===`bind`&&(!n.exp||n.exp.type===4&&!n.exp.content.trim())&&n.arg){let e=n.arg;if(e.type!==4||!e.isStatic)t.onError(Ht(53,e.loc)),n.exp=gt(``,!0,e.loc);else{let t=o(e.content);(zi.test(t[0])||t[0]===`-`)&&(n.exp=gt(t,!1,e.loc))}}}},Va={DATA:`data`,PROPS:`props`,PROPS_ALIASED:`props-aliased`,SETUP_LET:`setup-let`,SETUP_CONST:`setup-const`,SETUP_REACTIVE_CONST:`setup-reactive-const`,SETUP_MAYBE_REF:`setup-maybe-ref`,SETUP_REF:`setup-ref`,OPTIONS:`options`,LITERAL_CONST:`literal-const`},Ha=()=>({props:[]})})),xee=r({BASE_TRANSITION:()=>Lr,BindingTypes:()=>Va,CAMELIZE:()=>si,CAPITALIZE:()=>ci,CREATE_BLOCK:()=>zr,CREATE_COMMENT:()=>Ur,CREATE_ELEMENT_BLOCK:()=>Br,CREATE_ELEMENT_VNODE:()=>Hr,CREATE_SLOTS:()=>$r,CREATE_STATIC:()=>Gr,CREATE_TEXT:()=>Wr,CREATE_VNODE:()=>Vr,CompilerDeprecationTypes:()=>Oi,ConstantTypes:()=>Si,DOMDirectiveTransforms:()=>xo,DOMErrorCodes:()=>ao,DOMErrorMessages:()=>oo,DOMNodeTransforms:()=>bo,ElementTypes:()=>xi,ErrorCodes:()=>Ai,FRAGMENT:()=>Nr,GUARD_REACTIVE_PROPS:()=>ai,IS_MEMO_SAME:()=>_i,IS_REF:()=>hi,KEEP_ALIVE:()=>Ir,MERGE_PROPS:()=>ti,NORMALIZE_CLASS:()=>ni,NORMALIZE_PROPS:()=>ii,NORMALIZE_STYLE:()=>ri,Namespaces:()=>yi,NodeTypes:()=>bi,OPEN_BLOCK:()=>Rr,POP_SCOPE_ID:()=>fi,PUSH_SCOPE_ID:()=>di,RENDER_LIST:()=>Zr,RENDER_SLOT:()=>Qr,RESOLVE_COMPONENT:()=>Kr,RESOLVE_DIRECTIVE:()=>Jr,RESOLVE_DYNAMIC_COMPONENT:()=>qr,RESOLVE_FILTER:()=>Yr,SET_BLOCK_TRACKING:()=>ui,SUSPENSE:()=>Fr,TELEPORT:()=>Pr,TO_DISPLAY_STRING:()=>ei,TO_HANDLERS:()=>oi,TO_HANDLER_KEY:()=>li,TRANSITION:()=>$a,TRANSITION_GROUP:()=>eo,TS_NODE_TYPES:()=>Fi,UNREF:()=>mi,V_MODEL_CHECKBOX:()=>Ka,V_MODEL_DYNAMIC:()=>Ya,V_MODEL_RADIO:()=>Ga,V_MODEL_SELECT:()=>Ja,V_MODEL_TEXT:()=>qa,V_ON_WITH_KEYS:()=>Za,V_ON_WITH_MODIFIERS:()=>Xa,V_SHOW:()=>Qa,WITH_CTX:()=>pi,WITH_DIRECTIVES:()=>Xr,WITH_MEMO:()=>gi,advancePositionWithClone:()=>tn,advancePositionWithMutation:()=>nn,assert:()=>rn,baseCompile:()=>Mr,baseParse:()=>Wn,buildDirectiveArgs:()=>wr,buildProps:()=>Sr,buildSlots:()=>vr,checkCompatEnabled:()=>Rt,compile:()=>Cee,convertToBlock:()=>jt,createArrayExpression:()=>pt,createAssignmentExpression:()=>Et,createBlockStatement:()=>Ct,createCacheExpression:()=>St,createCallExpression:()=>yt,createCompilerError:()=>Ht,createCompoundExpression:()=>vt,createConditionalExpression:()=>xt,createDOMCompilerError:()=>Wa,createForLoopParams:()=>_r,createFunctionExpression:()=>bt,createIfStatement:()=>Tt,createInterpolation:()=>_t,createObjectExpression:()=>mt,createObjectProperty:()=>ht,createReturnStatement:()=>Ot,createRoot:()=>dt,createSequenceExpression:()=>Dt,createSimpleExpression:()=>gt,createStructuralDirectiveTransform:()=>er,createTemplateLiteral:()=>wt,createTransformContext:()=>Zn,createVNodeCall:()=>ft,errorMessages:()=>ji,extractIdentifiers:()=>Qt,findDir:()=>an,findProp:()=>on,forAliasRE:()=>Zi,generate:()=>tr,generateCodeFrame:()=>_,getBaseTransformPreset:()=>jr,getConstantType:()=>qn,getMemoedVNodeCall:()=>yn,getVNodeBlockHelper:()=>At,getVNodeHelper:()=>kt,hasDynamicKeyVBind:()=>cn,hasScopeRef:()=>vn,helperNameMap:()=>vi,injectProp:()=>hn,isAllWhitespace:()=>bn,isCommentOrWhitespace:()=>Sn,isCoreComponent:()=>en,isFnExpression:()=>Yi,isFnExpressionBrowser:()=>qi,isFnExpressionNode:()=>Ji,isFunctionType:()=>Mi,isInDestructureAssignment:()=>Gt,isInNewExpression:()=>Kt,isMemberExpression:()=>Gi,isMemberExpressionBrowser:()=>Ui,isMemberExpressionNode:()=>Wi,isReferencedIdentifier:()=>Wt,isSimpleIdentifier:()=>Ri,isSlotOutlet:()=>pn,isStaticArgOf:()=>sn,isStaticExp:()=>Ii,isStaticProperty:()=>Ni,isStaticPropertyKey:()=>Pi,isTemplateNode:()=>fn,isText:()=>ln,isVPre:()=>un,isVSlot:()=>dn,isWhitespaceText:()=>xn,locStub:()=>Ci,noopDirectiveTransform:()=>Ha,parse:()=>wee,parserOptions:()=>no,processExpression:()=>cr,processFor:()=>hr,processIf:()=>ur,processSlotOutlet:()=>Dr,registerRuntimeHelpers:()=>ut,resolveComponentType:()=>xr,stringifyExpression:()=>lr,toValidAssetId:()=>_n,trackSlotScopes:()=>Ca,trackVForSlotScopes:()=>wa,transform:()=>Qn,transformBind:()=>Aa,transformElement:()=>Da,transformExpression:()=>ya,transformModel:()=>Fa,transformOn:()=>ka,transformStyle:()=>ro,transformVBindShorthand:()=>Ba,traverseNode:()=>$n,unwrapTSNode:()=>$t,validFirstIdentCharRE:()=>zi,walkBlockDeclarations:()=>Jt,walkFunctionParams:()=>qt,walkIdentifiers:()=>Ut,warnDeprecation:()=>zt});function See(e,t=!1){return to||=document.createElement(`div`),t?(to.innerHTML=`<div foo="${e.replace(/"/g,`"`)}">`,to.children[0].getAttribute(`foo`)):(to.innerHTML=e,to.textContent)}function Wa(e,t){return Ht(e,t,void 0)}function Cee(e,t={}){return Mr(e,g({},no,t,{nodeTransforms:[yo,...bo,...t.nodeTransforms||[]],directiveTransforms:g({},xo,t.directiveTransforms||{}),transformHoist:null}))}function wee(e,t={}){return Wn(e,g({},no,t))}var Ga,Ka,qa,Ja,Ya,Xa,Za,Qa,$a,eo,to,no,ro,io,ao,oo,so,co,lo,uo,fo,po,mo,ho,go,_o,vo,yo,bo,xo,So=n((()=>{Ua(),Ua(),p(),Ga=Symbol(``),Ka=Symbol(``),qa=Symbol(``),Ja=Symbol(``),Ya=Symbol(``),Xa=Symbol(``),Za=Symbol(``),Qa=Symbol(``),$a=Symbol(``),eo=Symbol(``),ut({[Ga]:`vModelRadio`,[Ka]:`vModelCheckbox`,[qa]:`vModelText`,[Ja]:`vModelSelect`,[Ya]:`vModelDynamic`,[Xa]:`withModifiers`,[Za]:`withKeys`,[Qa]:`vShow`,[$a]:`Transition`,[eo]:`TransitionGroup`}),no={parseMode:`html`,isVoidTag:te,isNativeTag:e=>E(e)||m(e)||d(e),isPreTag:e=>e===`pre`,isIgnoreNewlineTag:e=>e===`pre`||e===`textarea`,decodeEntities:See,isBuiltInComponent:e=>{if(e===`Transition`||e===`transition`)return $a;if(e===`TransitionGroup`||e===`transition-group`)return eo},getNamespace(e,t,n){let r=t?t.ns:n;if(t&&r===2)if(t.tag===`annotation-xml`){if(e===`svg`)return 1;t.props.some(e=>e.type===6&&e.name===`encoding`&&e.value!=null&&(e.value.content===`text/html`||e.value.content===`application/xhtml+xml`))&&(r=0)}else /^m(?:[ions]|text)$/.test(t.tag)&&e!==`mglyph`&&e!==`malignmark`&&(r=0);else t&&r===1&&(t.tag===`foreignObject`||t.tag===`desc`||t.tag===`title`)&&(r=0);if(r===0){if(e===`svg`)return 1;if(e===`math`)return 2}return r}},ro=e=>{e.type===1&&e.props.forEach((t,n)=>{t.type===6&&t.name===`style`&&t.value&&(e.props[n]={type:7,name:`bind`,arg:gt(`style`,!0,t.loc),exp:io(t.value.content,t.loc),modifiers:[],loc:t.loc})})},io=(e,t)=>{let n=fe(e);return gt(JSON.stringify(n),!1,t,3)},ao={X_V_HTML_NO_EXPRESSION:54,54:`X_V_HTML_NO_EXPRESSION`,X_V_HTML_WITH_CHILDREN:55,55:`X_V_HTML_WITH_CHILDREN`,X_V_TEXT_NO_EXPRESSION:56,56:`X_V_TEXT_NO_EXPRESSION`,X_V_TEXT_WITH_CHILDREN:57,57:`X_V_TEXT_WITH_CHILDREN`,X_V_MODEL_ON_INVALID_ELEMENT:58,58:`X_V_MODEL_ON_INVALID_ELEMENT`,X_V_MODEL_ARG_ON_ELEMENT:59,59:`X_V_MODEL_ARG_ON_ELEMENT`,X_V_MODEL_ON_FILE_INPUT_ELEMENT:60,60:`X_V_MODEL_ON_FILE_INPUT_ELEMENT`,X_V_MODEL_UNNECESSARY_VALUE:61,61:`X_V_MODEL_UNNECESSARY_VALUE`,X_V_SHOW_NO_EXPRESSION:62,62:`X_V_SHOW_NO_EXPRESSION`,X_TRANSITION_INVALID_CHILDREN:63,63:`X_TRANSITION_INVALID_CHILDREN`,X_IGNORED_SIDE_EFFECT_TAG:64,64:`X_IGNORED_SIDE_EFFECT_TAG`,__EXTEND_POINT__:65,65:`__EXTEND_POINT__`},oo={54:`v-html is missing expression.`,55:`v-html will override element children.`,56:`v-text is missing expression.`,57:`v-text will override element children.`,58:`v-model can only be used on <input>, <textarea> and <select> elements.`,59:`v-model argument is not supported on plain elements.`,60:`v-model cannot be used on file inputs since they are read-only. Use a v-on:change listener instead.`,61:`Unnecessary value binding used alongside v-model. It will interfere with v-model's behavior.`,62:`v-show is missing expression.`,63:`<Transition> expects exactly one child element or component.`,64:`Tags with side effect (<script> and <style>) are ignored in client component templates.`},so=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Wa(54,i)),t.children.length&&(n.onError(Wa(55,i)),t.children.length=0),{props:[ht(gt(`innerHTML`,!0,i),r||gt(``,!0))]}},co=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Wa(56,i)),t.children.length&&(n.onError(Wa(57,i)),t.children.length=0),{props:[ht(gt(`textContent`,!0),r?qn(r,n)>0?r:yt(n.helperString(ei),[r],i):gt(``,!0))]}},lo=(e,t,n)=>{let r=Fa(e,t,n);if(!r.props.length||t.tagType===1)return r;e.arg&&n.onError(Wa(59,e.arg.loc));let{tag:i}=t,a=n.isCustomElement(i);if(i===`input`||i===`textarea`||i===`select`||a){let o=qa,s=!1;if(i===`input`||a){let r=on(t,`type`);if(r){if(r.type===7)o=Ya;else if(r.value)switch(r.value.content){case`radio`:o=Ga;break;case`checkbox`:o=Ka;break;case`file`:s=!0,n.onError(Wa(60,e.loc));break;default:break}}else cn(t)&&(o=Ya)}else i===`select`&&(o=Ja);s||(r.needRuntime=n.helper(o))}else n.onError(Wa(58,e.loc));return r.props=r.props.filter(e=>!(e.key.type===4&&e.key.content===`modelValue`)),r},uo=x(`passive,once,capture`),fo=x(`stop,prevent,self,ctrl,shift,alt,meta,exact,middle`),po=x(`left,right`),mo=x(`onkeyup,onkeydown,onkeypress`),ho=(e,t,n,r)=>{let i=[],a=[],o=[];for(let s=0;s<t.length;s++){let c=t[s].content;c===`native`&&Rt(`COMPILER_V_ON_NATIVE`,n,r)||uo(c)?o.push(c):po(c)?Ii(e)?mo(e.content.toLowerCase())?i.push(c):a.push(c):(i.push(c),a.push(c)):fo(c)?a.push(c):i.push(c)}return{keyModifiers:i,nonKeyModifiers:a,eventOptionModifiers:o}},go=(e,t)=>Ii(e)&&e.content.toLowerCase()===`onclick`?gt(t,!0):e.type===4?e:vt([`(`,e,`) === "onClick" ? "${t}" : (`,e,`)`]),_o=(e,t,n)=>ka(e,t,n,t=>{let{modifiers:r}=e;if(!r.length)return t;let{key:i,value:a}=t.props[0],{keyModifiers:o,nonKeyModifiers:s,eventOptionModifiers:c}=ho(i,r,n,e.loc);if(s.includes(`right`)&&(i=go(i,`onContextmenu`)),s.includes(`middle`)&&(i=go(i,`onMouseup`)),s.length&&(a=yt(n.helper(Xa),[a,JSON.stringify(s)])),o.length&&(!Ii(i)||mo(i.content.toLowerCase()))&&(a=yt(n.helper(Za),[a,JSON.stringify(o)])),c.length){let e=c.map(le).join(``);i=Ii(i)?gt(`${i.content}${e}`,!0):vt([`(`,i,`) + "${e}"`])}return{props:[ht(i,a)]}}),vo=(e,t,n)=>{let{exp:r,loc:i}=e;return r||n.onError(Wa(62,i)),{props:[],needRuntime:n.helper(Qa)}},yo=(e,t)=>{e.type===1&&e.tagType===0&&(e.tag===`script`||e.tag===`style`)&&t.removeNode()},bo=[ro,...[]],xo={cloak:Ha,html:so,text:co,model:lo,on:_o,show:vo}})),Tee=i((e=>{Object.defineProperty(e,`__esModule`,{value:!0});var n=(So(),t(xee)),r=(ce(),t(me)),i=(p(),t(ye));function a(e){var t=Object.create(null);if(e)for(var n in e)t[n]=e[n];return t.default=e,Object.freeze(t)}var o=a(r),s=Object.create(null);function c(e,t){if(!i.isString(e))if(e.nodeType)e=e.innerHTML;else return i.NOOP;let r=i.genCacheKey(e,t),a=s[r];if(a)return a;if(e[0]===`#`){let t=document.querySelector(e);e=t?t.innerHTML:``}let c=i.extend({hoistStatic:!0,onError:void 0,onWarn:i.NOOP},t);!c.isCustomElement&&typeof customElements<`u`&&(c.isCustomElement=e=>!!customElements.get(e));let{code:l}=n.compile(e,c),u=Function(`Vue`,l)(o);return u._rc=!0,s[r]=u}r.registerRuntimeCompiler(c),e.compile=c,Object.keys(r).forEach(function(t){t!==`default`&&!Object.prototype.hasOwnProperty.call(e,t)&&(e[t]=r[t])})})),Co=i(((e,t)=>{t.exports=Tee()})),wo=r({MultiDrag:()=>qee,Sortable:()=>ns,Swap:()=>Gee,default:()=>ns});function To(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 Eo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?To(Object(n),!0).forEach(function(t){Eee(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):To(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Do(e){"@babel/helpers - typeof";return Do=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},Do(e)}function Eee(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oo(){return Oo=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oo.apply(this,arguments)}function Dee(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a<r.length;a++)i=r[a],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function Oee(e,t){if(e==null)return{};var n=Dee(e,t),r,i;if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);for(i=0;i<a.length;i++)r=a[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function kee(e){return Aee(e)||jee(e)||Mee(e)||Nee()}function Aee(e){if(Array.isArray(e))return ko(e)}function jee(e){if(typeof Symbol<`u`&&e[Symbol.iterator]!=null||e[`@@iterator`]!=null)return Array.from(e)}function Mee(e,t){if(e){if(typeof e==`string`)return ko(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ko(e,t)}}function ko(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function Nee(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ao(e){if(typeof window<`u`&&window.navigator)return!!navigator.userAgent.match(e)}function jo(e,t,n){e.addEventListener(t,n,!vs&&ws)}function Mo(e,t,n){e.removeEventListener(t,n,!vs&&ws)}function No(e,t){if(t){if(t[0]===`>`&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Po(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Fo(e,t,n,r){if(e){n||=document;do{if(t!=null&&(t[0]===`>`?e.parentNode===n&&No(e,t):No(e,t))||r&&e===n)return e;if(e===n)break}while(e=Po(e))}return null}function Io(e,t,n){e&&t&&(e.classList?e.classList[n?`add`:`remove`](t):e.className=((` `+e.className+` `).replace(Ts,` `).replace(` `+t+` `,` `)+(n?` `+t:``)).replace(Ts,` `))}function Lo(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,``):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf(`webkit`)===-1&&(t=`-webkit-`+t),r[t]=n+(typeof n==`string`?``:`px`)}}function Ro(e,t){var n=``;if(typeof e==`string`)n=e;else do{var r=Lo(e,`transform`);r&&r!==`none`&&(n=r+` `+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function zo(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,a=r.length;if(n)for(;i<a;i++)n(r[i],i);return r}return[]}function Bo(){return document.scrollingElement||document.documentElement}function Vo(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var a,o,s,c,l,u,d;if(e!==window&&e.parentNode&&e!==Bo()?(a=e.getBoundingClientRect(),o=a.top,s=a.left,c=a.bottom,l=a.right,u=a.height,d=a.width):(o=0,s=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i||=e.parentNode,!vs))do if(i&&i.getBoundingClientRect&&(Lo(i,`transform`)!==`none`||n&&Lo(i,`position`)!==`static`)){var f=i.getBoundingClientRect();o-=f.top+parseInt(Lo(i,`border-top-width`)),s-=f.left+parseInt(Lo(i,`border-left-width`)),c=o+a.height,l=s+a.width;break}while(i=i.parentNode);if(r&&e!==window){var p=Ro(i||e),m=p&&p.a,h=p&&p.d;p&&(o/=h,s/=m,d/=m,u/=h,c=o+u,l=s+d)}return{top:o,left:s,bottom:c,right:l,width:d,height:u}}}function Ho(e,t,n){for(var r=qo(e,!0),i=Vo(e)[t];r;){var a=Vo(r)[n],o=void 0;if(o=n===`top`||n===`left`?i>=a:i<=a,!o)return r;if(r===Bo())break;r=qo(r,!1)}return!1}function Uo(e,t,n,r){for(var i=0,a=0,o=e.children;a<o.length;){if(o[a].style.display!==`none`&&o[a]!==ns.ghost&&(r||o[a]!==ns.dragged)&&Fo(o[a],n.draggable,e,!1)){if(i===t)return o[a];i++}a++}return null}function Wo(e,t){for(var n=e.lastElementChild;n&&(n===ns.ghost||Lo(n,`display`)===`none`||t&&!No(n,t));)n=n.previousElementSibling;return n||null}function Go(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!==`TEMPLATE`&&e!==ns.clone&&(!t||No(e,t))&&n++;return n}function Ko(e){var t=0,n=0,r=Bo();if(e)do{var i=Ro(e),a=i.a,o=i.d;t+=e.scrollLeft*a,n+=e.scrollTop*o}while(e!==r&&(e=e.parentNode));return[t,n]}function Pee(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function qo(e,t){if(!e||!e.getBoundingClientRect)return Bo();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Lo(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX==`auto`||i.overflowX==`scroll`)||n.clientHeight<n.scrollHeight&&(i.overflowY==`auto`||i.overflowY==`scroll`)){if(!n.getBoundingClientRect||n===document.body)return Bo();if(r||t)return n;r=!0}}while(n=n.parentNode);return Bo()}function Fee(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Jo(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}function Yo(e,t){return function(){if(!Es){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Es=setTimeout(function(){Es=void 0},t)}}}function Iee(){clearTimeout(Es),Es=void 0}function Xo(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Zo(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Qo(e,t){Lo(e,`position`,`absolute`),Lo(e,`top`,t.top),Lo(e,`left`,t.left),Lo(e,`width`,t.width),Lo(e,`height`,t.height)}function $o(e){Lo(e,`position`,``),Lo(e,`top`,``),Lo(e,`left`,``),Lo(e,`width`,``),Lo(e,`height`,``)}function Lee(){var e=[],t;return{captureAnimationState:function(){e=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if(!(Lo(t,`display`)===`none`||t===ns.ghost)){e.push({target:t,rect:Vo(t)});var n=Eo({},e[e.length-1].rect);if(t.thisAnimationDuration){var r=Ro(t,!0);r&&(n.top-=r.f,n.left-=r.e)}t.fromRect=n}})},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(Pee(e,{target:t}),1)},animateAll:function(n){var r=this;if(!this.options.animation){clearTimeout(t),typeof n==`function`&&n();return}var i=!1,a=0;e.forEach(function(e){var t=0,n=e.target,o=n.fromRect,s=Vo(n),c=n.prevFromRect,l=n.prevToRect,u=e.rect,d=Ro(n,!0);d&&(s.top-=d.f,s.left-=d.e),n.toRect=s,n.thisAnimationDuration&&Jo(c,s)&&!Jo(o,s)&&(u.top-s.top)/(u.left-s.left)===(o.top-s.top)/(o.left-s.left)&&(t=zee(u,c,l,r.options)),Jo(s,o)||(n.prevFromRect=o,n.prevToRect=s,t||=r.options.animation,r.animate(n,u,s,t)),t&&(i=!0,a=Math.max(a,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout(function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null},t),n.thisAnimationDuration=t)}),clearTimeout(t),i?t=setTimeout(function(){typeof n==`function`&&n()},a):typeof n==`function`&&n(),e=[]},animate:function(e,t,n,r){if(r){Lo(e,`transition`,``),Lo(e,`transform`,``);var i=Ro(this.el),a=i&&i.a,o=i&&i.d,s=(t.left-n.left)/(a||1),c=(t.top-n.top)/(o||1);e.animatingX=!!s,e.animatingY=!!c,Lo(e,`transform`,`translate3d(`+s+`px,`+c+`px,0)`),this.forRepaintDummy=Ree(e),Lo(e,`transition`,`transform `+r+`ms`+(this.options.easing?` `+this.options.easing:``)),Lo(e,`transform`,`translate3d(0,0,0)`),typeof e.animated==`number`&&clearTimeout(e.animated),e.animated=setTimeout(function(){Lo(e,`transition`,``),Lo(e,`transform`,``),e.animated=!1,e.animatingX=!1,e.animatingY=!1},r)}}}}function Ree(e){return e.offsetWidth}function zee(e,t,n,r){return Math.sqrt((t.top-e.top)**2+(t.left-e.left)**2)/Math.sqrt((t.top-n.top)**2+(t.left-n.left)**2)*r.animation}function es(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,a=e.cloneEl,o=e.toEl,s=e.fromEl,c=e.oldIndex,l=e.newIndex,u=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,m=e.extraEventProperties;if(t||=n&&n[Ds],t){var h,g=t.options,_=`on`+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!vs&&!ys?h=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(h=document.createEvent(`Event`),h.initEvent(r,!0,!0)),h.to=o||n,h.from=s||n,h.item=i||n,h.clone=a,h.oldIndex=c,h.newIndex=l,h.oldDraggableIndex=u,h.newDraggableIndex=d,h.originalEvent=f,h.pullMode=p?p.lastPutMode:void 0;var v=Eo(Eo({},m),As.getEventProperties(r,t));for(var y in v)h[y]=v[y];n&&n.dispatchEvent(h),g[_]&&g[_].call(t,h)}}function ts(e){es(Eo({putSortable:Gs,cloneEl:Rs,targetEl:R,rootEl:Fs,oldIndex:Bs,oldDraggableIndex:Hs,newIndex:Vs,newDraggableIndex:Us},e))}function ns(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Oo({},t),e[Ds]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?`>li`:`>*`,swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return gc(e,this.options)},ghostClass:`sortable-ghost`,chosenClass:`sortable-chosen`,dragClass:`sortable-drag`,ignore:`a, img`,filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData(`Text`,t.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:`data-id`,delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:`sortable-fallback`,fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:ns.supportPointer!==!1&&`PointerEvent`in window&&!xs,emptyInsertThreshold:5};for(var r in As.initializePlugins(this,e,n),n)!(r in t)&&(t[r]=n[r]);for(var i in yc(t),this)i.charAt(0)===`_`&&typeof this[i]==`function`&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:mc,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?jo(e,`pointerdown`,this._onTapStart):(jo(e,`mousedown`,this._onTapStart),jo(e,`touchstart`,this._onTapStart)),this.nativeDraggable&&(jo(e,`dragover`,this),jo(e,`dragenter`,this)),Js.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Oo(this,Lee())}function Bee(e){e.dataTransfer&&(e.dataTransfer.dropEffect=`move`),e.cancelable&&e.preventDefault()}function rs(e,t,n,r,i,a,o,s){var c,l=e[Ds],u=l.options.onMove,d;return window.CustomEvent&&!vs&&!ys?c=new CustomEvent(`move`,{bubbles:!0,cancelable:!0}):(c=document.createEvent(`Event`),c.initEvent(`move`,!0,!0)),c.to=t,c.from=e,c.dragged=n,c.draggedRect=r,c.related=i||t,c.relatedRect=a||Vo(t),c.willInsertAfter=s,c.originalEvent=o,e.dispatchEvent(c),u&&(d=u.call(l,c,o)),d}function is(e){e.draggable=!1}function Vee(){lc=!1}function Hee(e,t,n){var r=Vo(Uo(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function Uee(e,t,n){var r=Vo(Wo(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function Wee(e,t,n,r,i,a,o,s){var c=r?e.clientY:e.clientX,l=r?n.height:n.width,u=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!o){if(s&&oc<l*i){if(!ic&&(rc===1?c>u+l*a/2:c<d-l*a/2)&&(ic=!0),ic)f=!0;else if(rc===1?c<u+oc:c>d-oc)return-rc}else if(c>u+l*(1-i)/2&&c<d-l*(1-i)/2)return as(t)}return f||=o,f&&(c<u+l*a/2||c>d-l*a/2)?c>u+l/2?1:-1:0}function as(e){return Go(R)<Go(e)?1:-1}function os(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function ss(e){uc.length=0;for(var t=e.getElementsByTagName(`input`),n=t.length;n--;){var r=t[n];r.checked&&uc.push(r)}}function cs(e){return setTimeout(e,0)}function ls(e){return clearTimeout(e)}function us(){function e(){for(var e in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)e.charAt(0)===`_`&&typeof this[e]==`function`&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted:function(e){var t=e.originalEvent;this.sortable.nativeDraggable?jo(document,`dragover`,this._handleAutoScroll):this.options.supportPointer?jo(document,`pointermove`,this._handleFallbackAutoScroll):t.touches?jo(document,`touchmove`,this._handleFallbackAutoScroll):jo(document,`mousemove`,this._handleFallbackAutoScroll)},dragOverCompleted:function(e){var t=e.originalEvent;!this.options.dragOverBubble&&!t.rootEl&&this._handleAutoScroll(t)},drop:function(){this.sortable.nativeDraggable?Mo(document,`dragover`,this._handleAutoScroll):(Mo(document,`pointermove`,this._handleFallbackAutoScroll),Mo(document,`touchmove`,this._handleFallbackAutoScroll),Mo(document,`mousemove`,this._handleFallbackAutoScroll)),fs(),ds(),Iee()},nulling:function(){Ac=Ec=Tc=Dc=jc=Oc=kc=null,wc.length=0},_handleFallbackAutoScroll:function(e){this._handleAutoScroll(e,!0)},_handleAutoScroll:function(e,t){var n=this,r=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=document.elementFromPoint(r,i);if(Ac=e,t||this.options.forceAutoScrollFallback||ys||vs||xs){Mc(e,this.options,a,t);var o=qo(a,!0);Dc&&(!jc||r!==Oc||i!==kc)&&(jc&&fs(),jc=setInterval(function(){var a=qo(document.elementFromPoint(r,i),!0);a!==o&&(o=a,ds()),Mc(e,n.options,a,t)},10),Oc=r,kc=i)}else{if(!this.options.bubbleScroll||qo(a,!0)===Bo()){ds();return}Mc(e,this.options,qo(a,!1),!1)}}},Oo(e,{pluginName:`scroll`,initializeByDefault:!0})}function ds(){wc.forEach(function(e){clearInterval(e.pid)}),wc=[]}function fs(){clearInterval(jc)}function ps(){}function ms(){}function Gee(){function e(){this.defaults={swapClass:`sortable-swap-highlight`}}return e.prototype={dragStart:function(e){Pc=e.dragEl},dragOverValid:function(e){var t=e.completed,n=e.target,r=e.onMove,i=e.activeSortable,a=e.changed,o=e.cancel;if(i.options.swap){var s=this.sortable.el,c=this.options;if(n&&n!==s){var l=Pc;r(n)===!1?Pc=null:(Io(n,c.swapClass,!0),Pc=n),l&&l!==Pc&&Io(l,c.swapClass,!1)}a(),t(!0),o()}},drop:function(e){var t=e.activeSortable,n=e.putSortable,r=e.dragEl,i=n||this.sortable,a=this.options;Pc&&Io(Pc,a.swapClass,!1),Pc&&(a.swap||n&&n.options.swap)&&r!==Pc&&(i.captureAnimationState(),i!==t&&t.captureAnimationState(),Kee(r,Pc),i.animateAll(),i!==t&&t.animateAll())},nulling:function(){Pc=null}},Oo(e,{pluginName:`swap`,eventProperties:function(){return{swapItem:Pc}}})}function Kee(e,t){var n=e.parentNode,r=t.parentNode,i,a;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Go(e),a=Go(t),n.isEqualNode(r)&&i<a&&a++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[a]))}function qee(){function e(e){for(var t in this)t.charAt(0)===`_`&&typeof this[t]==`function`&&(this[t]=this[t].bind(this));e.options.supportPointer?jo(document,`pointerup`,this._deselectMultiDrag):(jo(document,`mouseup`,this._deselectMultiDrag),jo(document,`touchend`,this._deselectMultiDrag)),jo(document,`keydown`,this._checkKeyDown),jo(document,`keyup`,this._checkKeyUp),this.defaults={selectedClass:`sortable-selected`,multiDragKey:null,setData:function(t,n){var r=``;Fc.length&&Rc===e?Fc.forEach(function(e,t){r+=(t?`, `:``)+e.textContent}):r=n.textContent,t.setData(`Text`,r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(e){Hc=e.dragEl},delayEnded:function(){this.isMultiDrag=~Fc.indexOf(Hc)},setupClone:function(e){var t=e.sortable,n=e.cancel;if(this.isMultiDrag){for(var r=0;r<Fc.length;r++)Ic.push(Zo(Fc[r])),Ic[r].sortableIndex=Fc[r].sortableIndex,Ic[r].draggable=!1,Ic[r].style[`will-change`]=``,Io(Ic[r],this.options.selectedClass,!1),Fc[r]===Hc&&Io(Ic[r],this.options.chosenClass,!1);t._hideClone(),n()}},clone:function(e){var t=e.sortable,n=e.rootEl,r=e.dispatchSortableEvent,i=e.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Fc.length&&Rc===t&&(hs(!0,n),r(`clone`),i()))},showClone:function(e){var t=e.cloneNowShown,n=e.rootEl,r=e.cancel;this.isMultiDrag&&(hs(!1,n),Ic.forEach(function(e){Lo(e,`display`,``)}),t(),Wc=!1,r())},hideClone:function(e){var t=this;e.sortable;var n=e.cloneNowHidden,r=e.cancel;this.isMultiDrag&&(Ic.forEach(function(e){Lo(e,`display`,`none`),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)}),n(),Wc=!0,r())},dragStartGlobal:function(e){e.sortable,!this.isMultiDrag&&Rc&&Rc.multiDrag._deselectMultiDrag(),Fc.forEach(function(e){e.sortableIndex=Go(e)}),Fc=Fc.sort(function(e,t){return e.sortableIndex-t.sortableIndex}),Vc=!0},dragStarted:function(e){var t=this,n=e.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Fc.forEach(function(e){e!==Hc&&Lo(e,`position`,`absolute`)});var r=Vo(Hc,!1,!0,!0);Fc.forEach(function(e){e!==Hc&&Qo(e,r)}),Bc=!0,zc=!0}n.animateAll(function(){Bc=!1,zc=!1,t.options.animation&&Fc.forEach(function(e){$o(e)}),t.options.sort&&gs()})}},dragOver:function(e){var t=e.target,n=e.completed,r=e.cancel;Bc&&~Fc.indexOf(t)&&(n(!1),r())},revert:function(e){var t=e.fromSortable,n=e.rootEl,r=e.sortable,i=e.dragRect;Fc.length>1&&(Fc.forEach(function(e){r.addAnimationState({target:e,rect:Bc?Vo(e):i}),$o(e),e.fromRect=i,t.removeAnimationState(e)}),Bc=!1,Jee(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(e){var t=e.sortable,n=e.isOwner,r=e.insertion,i=e.activeSortable,a=e.parentEl,o=e.putSortable,s=this.options;if(r){if(n&&i._hideClone(),zc=!1,s.animation&&Fc.length>1&&(Bc||!n&&!i.options.sort&&!o)){var c=Vo(Hc,!1,!0,!0);Fc.forEach(function(e){e!==Hc&&(Qo(e,c),a.appendChild(e))}),Bc=!0}if(!n)if(Bc||gs(),Fc.length>1){var l=Wc;i._showClone(t),i.options.animation&&!Wc&&l&&Ic.forEach(function(e){i.addAnimationState({target:e,rect:Uc}),e.fromRect=Uc,e.thisAnimationDuration=null})}else i._showClone(t)}},dragOverAnimationCapture:function(e){var t=e.dragRect,n=e.isOwner,r=e.activeSortable;if(Fc.forEach(function(e){e.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Uc=Oo({},t);var i=Ro(Hc,!0);Uc.top-=i.f,Uc.left-=i.e}},dragOverAnimationComplete:function(){Bc&&(Bc=!1,gs())},drop:function(e){var t=e.originalEvent,n=e.rootEl,r=e.parentEl,i=e.sortable,a=e.dispatchSortableEvent,o=e.oldIndex,s=e.putSortable,c=s||this.sortable;if(t){var l=this.options,u=r.children;if(!Vc)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Io(Hc,l.selectedClass,!~Fc.indexOf(Hc)),~Fc.indexOf(Hc))Fc.splice(Fc.indexOf(Hc),1),Lc=null,es({sortable:i,rootEl:n,name:`deselect`,targetEl:Hc,originalEvt:t});else{if(Fc.push(Hc),es({sortable:i,rootEl:n,name:`select`,targetEl:Hc,originalEvt:t}),t.shiftKey&&Lc&&i.el.contains(Lc)){var d=Go(Lc),f=Go(Hc);if(~d&&~f&&d!==f){var p,m;for(f>d?(m=d,p=f):(m=f,p=d+1);m<p;m++)~Fc.indexOf(u[m])||(Io(u[m],l.selectedClass,!0),Fc.push(u[m]),es({sortable:i,rootEl:n,name:`select`,targetEl:u[m],originalEvt:t}))}}else Lc=Hc;Rc=c}if(Vc&&this.isMultiDrag){if(Bc=!1,(r[Ds].options.sort||r!==n)&&Fc.length>1){var h=Vo(Hc),g=Go(Hc,`:not(.`+this.options.selectedClass+`)`);if(!zc&&l.animation&&(Hc.thisAnimationDuration=null),c.captureAnimationState(),!zc&&(l.animation&&(Hc.fromRect=h,Fc.forEach(function(e){if(e.thisAnimationDuration=null,e!==Hc){var t=Bc?Vo(e):h;e.fromRect=t,c.addAnimationState({target:e,rect:t})}})),gs(),Fc.forEach(function(e){u[g]?r.insertBefore(e,u[g]):r.appendChild(e),g++}),o===Go(Hc))){var _=!1;Fc.forEach(function(e){if(e.sortableIndex!==Go(e)){_=!0;return}}),_&&a(`update`)}Fc.forEach(function(e){$o(e)}),c.animateAll()}Rc=c}(n===r||s&&s.lastPutMode!==`clone`)&&Ic.forEach(function(e){e.parentNode&&e.parentNode.removeChild(e)})}},nullingGlobal:function(){this.isMultiDrag=Vc=!1,Ic.length=0},destroyGlobal:function(){this._deselectMultiDrag(),Mo(document,`pointerup`,this._deselectMultiDrag),Mo(document,`mouseup`,this._deselectMultiDrag),Mo(document,`touchend`,this._deselectMultiDrag),Mo(document,`keydown`,this._checkKeyDown),Mo(document,`keyup`,this._checkKeyUp)},_deselectMultiDrag:function(e){if(!(Vc!==void 0&&Vc)&&Rc===this.sortable&&!(e&&Fo(e.target,this.options.draggable,this.sortable.el,!1))&&!(e&&e.button!==0))for(;Fc.length;){var t=Fc[0];Io(t,this.options.selectedClass,!1),Fc.shift(),es({sortable:this.sortable,rootEl:this.sortable.el,name:`deselect`,targetEl:t,originalEvt:e})}},_checkKeyDown:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Oo(e,{pluginName:`multiDrag`,utils:{select:function(e){var t=e.parentNode[Ds];!t||!t.options.multiDrag||~Fc.indexOf(e)||(Rc&&Rc!==t&&(Rc.multiDrag._deselectMultiDrag(),Rc=t),Io(e,t.options.selectedClass,!0),Fc.push(e))},deselect:function(e){var t=e.parentNode[Ds],n=Fc.indexOf(e);!t||!t.options.multiDrag||!~n||(Io(e,t.options.selectedClass,!1),Fc.splice(n,1))}},eventProperties:function(){var e=this,t=[],n=[];return Fc.forEach(function(r){t.push({multiDragElement:r,index:r.sortableIndex});var i=Bc&&r!==Hc?-1:Bc?Go(r,`:not(.`+e.options.selectedClass+`)`):Go(r);n.push({multiDragElement:r,index:i})}),{items:kee(Fc),clones:[].concat(Ic),oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey:function(e){return e=e.toLowerCase(),e===`ctrl`?e=`Control`:e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function Jee(e,t){Fc.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function hs(e,t){Ic.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function gs(){Fc.forEach(function(e){e!==Hc&&e.parentNode&&e.parentNode.removeChild(e)})}var _s,vs,ys,bs,xs,Ss,Cs,ws,Ts,Es,Ds,Os,ks,As,js,Ms,R,Ns,Ps,Fs,Is,Ls,Rs,zs,Bs,Vs,Hs,Us,Ws,Gs,Ks,qs,Js,Ys,Xs,Zs,Qs,$s,ec,tc,nc,rc,ic,ac,oc,sc,cc,lc,uc,dc,fc,pc,mc,hc,gc,_c,vc,yc,bc,xc,Sc,Cc,wc,Tc,Ec,Dc,Oc,kc,Ac,jc,Mc,Nc,Pc,Fc,Ic,Lc,Rc,zc,Bc,Vc,Hc,Uc,Wc,Gc=n((()=>{_s=`1.14.0`,vs=Ao(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ys=Ao(/Edge/i),bs=Ao(/firefox/i),xs=Ao(/safari/i)&&!Ao(/chrome/i)&&!Ao(/android/i),Ss=Ao(/iP(ad|od|hone)/i),Cs=Ao(/chrome/i)&&Ao(/android/i),ws={capture:!1,passive:!1},Ts=/\s+/g,Ds=`Sortable`+new Date().getTime(),Os=[],ks={initializeByDefault:!0},As={mount:function(e){for(var t in ks)ks.hasOwnProperty(t)&&!(t in e)&&(e[t]=ks[t]);Os.forEach(function(t){if(t.pluginName===e.pluginName)throw`Sortable: Cannot mount plugin ${e.pluginName} more than once`}),Os.push(e)},pluginEvent:function(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};var i=e+`Global`;Os.forEach(function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](Eo({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](Eo({sortable:t},n)))})},initializePlugins:function(e,t,n,r){for(var i in Os.forEach(function(r){var i=r.pluginName;if(!(!e.options[i]&&!r.initializeByDefault)){var a=new r(e,t,e.options);a.sortable=e,a.options=e.options,e[i]=a,Oo(n,a.defaults)}}),e.options)if(e.options.hasOwnProperty(i)){var a=this.modifyOption(e,i,e.options[i]);a!==void 0&&(e.options[i]=a)}},getEventProperties:function(e,t){var n={};return Os.forEach(function(r){typeof r.eventProperties==`function`&&Oo(n,r.eventProperties.call(t[r.pluginName],e))}),n},modifyOption:function(e,t,n){var r;return Os.forEach(function(i){e[i.pluginName]&&i.optionListeners&&typeof i.optionListeners[t]==`function`&&(r=i.optionListeners[t].call(e[i.pluginName],n))}),r}},js=[`evt`],Ms=function(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=n.evt,i=Oee(n,js);As.pluginEvent.bind(ns)(e,t,Eo({dragEl:R,parentEl:Ns,ghostEl:Ps,rootEl:Fs,nextEl:Is,lastDownEl:Ls,cloneEl:Rs,cloneHidden:zs,dragStarted:tc,putSortable:Gs,activeSortable:ns.active,originalEvent:r,oldIndex:Bs,oldDraggableIndex:Hs,newIndex:Vs,newDraggableIndex:Us,hideGhostForTarget:bc,unhideGhostForTarget:xc,cloneNowHidden:function(){zs=!0},cloneNowShown:function(){zs=!1},dispatchSortableEvent:function(e){ts({sortable:t,name:e,originalEvent:r})}},i))},Ks=!1,qs=!1,Js=[],ic=!1,ac=!1,cc=[],lc=!1,uc=[],dc=typeof document<`u`,fc=Ss,pc=ys||vs?`cssFloat`:`float`,mc=dc&&!Cs&&!Ss&&`draggable`in document.createElement(`div`),hc=function(){if(dc){if(vs)return!1;var e=document.createElement(`x`);return e.style.cssText=`pointer-events:auto`,e.style.pointerEvents===`auto`}}(),gc=function(e,t){var n=Lo(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Uo(e,0,t),a=Uo(e,1,t),o=i&&Lo(i),s=a&&Lo(a),c=o&&parseInt(o.marginLeft)+parseInt(o.marginRight)+Vo(i).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+Vo(a).width;if(n.display===`flex`)return n.flexDirection===`column`||n.flexDirection===`column-reverse`?`vertical`:`horizontal`;if(n.display===`grid`)return n.gridTemplateColumns.split(` `).length<=1?`vertical`:`horizontal`;if(i&&o.float&&o.float!==`none`){var u=o.float===`left`?`left`:`right`;return a&&(s.clear===`both`||s.clear===u)?`vertical`:`horizontal`}return i&&(o.display===`block`||o.display===`flex`||o.display===`table`||o.display===`grid`||c>=r&&n[pc]===`none`||a&&n[pc]===`none`&&c+l>r)?`vertical`:`horizontal`},_c=function(e,t,n){var r=n?e.left:e.top,i=n?e.right:e.bottom,a=n?e.width:e.height,o=n?t.left:t.top,s=n?t.right:t.bottom,c=n?t.width:t.height;return r===o||i===s||r+a/2===o+c/2},vc=function(e,t){var n;return Js.some(function(r){var i=r[Ds].options.emptyInsertThreshold;if(!(!i||Wo(r))){var a=Vo(r),o=e>=a.left-i&&e<=a.right+i,s=t>=a.top-i&&t<=a.bottom+i;if(o&&s)return n=r}}),n},yc=function(e){function t(e,n){return function(r,i,a,o){var s=r.options.group.name&&i.options.group.name&&r.options.group.name===i.options.group.name;if(e==null&&(n||s))return!0;if(e==null||e===!1)return!1;if(n&&e===`clone`)return e;if(typeof e==`function`)return t(e(r,i,a,o),n)(r,i,a,o);var c=(n?r:i).options.group.name;return e===!0||typeof e==`string`&&e===c||e.join&&e.indexOf(c)>-1}}var n={},r=e.group;(!r||Do(r)!=`object`)&&(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},bc=function(){!hc&&Ps&&Lo(Ps,`display`,`none`)},xc=function(){!hc&&Ps&&Lo(Ps,`display`,``)},dc&&document.addEventListener(`click`,function(e){if(qs)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),qs=!1,!1},!0),Sc=function(e){if(R){e=e.touches?e.touches[0]:e;var t=vc(e.clientX,e.clientY);if(t){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=e[r]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[Ds]._onDragOver(n)}}},Cc=function(e){R&&R.parentNode[Ds]._isOutsideThisEl(e.target)},ns.prototype={constructor:ns,_isOutsideThisEl:function(e){!this.el.contains(e)&&e!==this.el&&(nc=null)},_getDirection:function(e,t){return typeof this.options.direction==`function`?this.options.direction.call(this,e,t,R):this.options.direction},_onTapStart:function(e){if(e.cancelable){var t=this,n=this.el,r=this.options,i=r.preventOnFilter,a=e.type,o=e.touches&&e.touches[0]||e.pointerType&&e.pointerType===`touch`&&e,s=(o||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=r.filter;if(ss(n),!R&&!(/mousedown|pointerdown/.test(a)&&e.button!==0||r.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&xs&&s&&s.tagName.toUpperCase()===`SELECT`)&&(s=Fo(s,r.draggable,n,!1),!(s&&s.animated)&&Ls!==s)){if(Bs=Go(s),Hs=Go(s,r.draggable),typeof l==`function`){if(l.call(this,e,s,this)){ts({sortable:t,rootEl:c,name:`filter`,targetEl:s,toEl:n,fromEl:n}),Ms(`filter`,t,{evt:e}),i&&e.cancelable&&e.preventDefault();return}}else if(l&&(l=l.split(`,`).some(function(r){if(r=Fo(c,r.trim(),n,!1),r)return ts({sortable:t,rootEl:r,name:`filter`,targetEl:s,fromEl:n,toEl:n}),Ms(`filter`,t,{evt:e}),!0}),l)){i&&e.cancelable&&e.preventDefault();return}r.handle&&!Fo(c,r.handle,n,!1)||this._prepareDragStart(e,o,s)}}},_prepareDragStart:function(e,t,n){var r=this,i=r.el,a=r.options,o=i.ownerDocument,s;if(n&&!R&&n.parentNode===i){var c=Vo(n);if(Fs=i,R=n,Ns=R.parentNode,Is=R.nextSibling,Ls=n,Ws=a.group,ns.dragged=R,Ys={target:R,clientX:(t||e).clientX,clientY:(t||e).clientY},$s=Ys.clientX-c.left,ec=Ys.clientY-c.top,this._lastX=(t||e).clientX,this._lastY=(t||e).clientY,R.style[`will-change`]=`all`,s=function(){if(Ms(`delayEnded`,r,{evt:e}),ns.eventCanceled){r._onDrop();return}r._disableDelayedDragEvents(),!bs&&r.nativeDraggable&&(R.draggable=!0),r._triggerDragStart(e,t),ts({sortable:r,name:`choose`,originalEvent:e}),Io(R,a.chosenClass,!0)},a.ignore.split(`,`).forEach(function(e){zo(R,e.trim(),is)}),jo(o,`dragover`,Sc),jo(o,`mousemove`,Sc),jo(o,`touchmove`,Sc),jo(o,`mouseup`,r._onDrop),jo(o,`touchend`,r._onDrop),jo(o,`touchcancel`,r._onDrop),bs&&this.nativeDraggable&&(this.options.touchStartThreshold=4,R.draggable=!0),Ms(`delayStart`,this,{evt:e}),a.delay&&(!a.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ys||vs))){if(ns.eventCanceled){this._onDrop();return}jo(o,`mouseup`,r._disableDelayedDrag),jo(o,`touchend`,r._disableDelayedDrag),jo(o,`touchcancel`,r._disableDelayedDrag),jo(o,`mousemove`,r._delayedDragTouchMoveHandler),jo(o,`touchmove`,r._delayedDragTouchMoveHandler),a.supportPointer&&jo(o,`pointermove`,r._delayedDragTouchMoveHandler),r._dragStartTimer=setTimeout(s,a.delay)}else s()}},_delayedDragTouchMoveHandler:function(e){var t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){R&&is(R),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var e=this.el.ownerDocument;Mo(e,`mouseup`,this._disableDelayedDrag),Mo(e,`touchend`,this._disableDelayedDrag),Mo(e,`touchcancel`,this._disableDelayedDrag),Mo(e,`mousemove`,this._delayedDragTouchMoveHandler),Mo(e,`touchmove`,this._delayedDragTouchMoveHandler),Mo(e,`pointermove`,this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t||=e.pointerType==`touch`&&e,!this.nativeDraggable||t?this.options.supportPointer?jo(document,`pointermove`,this._onTouchMove):t?jo(document,`touchmove`,this._onTouchMove):jo(document,`mousemove`,this._onTouchMove):(jo(R,`dragend`,this),jo(Fs,`dragstart`,this._onDragStart));try{document.selection?cs(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(e,t){if(Ks=!1,Fs&&R){Ms(`dragStarted`,this,{evt:t}),this.nativeDraggable&&jo(document,`dragover`,Cc);var n=this.options;!e&&Io(R,n.dragClass,!1),Io(R,n.ghostClass,!0),ns.active=this,e&&this._appendGhost(),ts({sortable:this,name:`start`,originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(Xs){this._lastX=Xs.clientX,this._lastY=Xs.clientY,bc();for(var e=document.elementFromPoint(Xs.clientX,Xs.clientY),t=e;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(Xs.clientX,Xs.clientY),e!==t);)t=e;if(R.parentNode[Ds]._isOutsideThisEl(e),t)do{if(t[Ds]){var n=void 0;if(n=t[Ds]._onDragOver({clientX:Xs.clientX,clientY:Xs.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);xc()}},_onTouchMove:function(e){if(Ys){var t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,i=e.touches?e.touches[0]:e,a=Ps&&Ro(Ps,!0),o=Ps&&a&&a.a,s=Ps&&a&&a.d,c=fc&&sc&&Ko(sc),l=(i.clientX-Ys.clientX+r.x)/(o||1)+(c?c[0]-cc[0]:0)/(o||1),u=(i.clientY-Ys.clientY+r.y)/(s||1)+(c?c[1]-cc[1]:0)/(s||1);if(!ns.active&&!Ks){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(Ps){a?(a.e+=l-(Zs||0),a.f+=u-(Qs||0)):a={a:1,b:0,c:0,d:1,e:l,f:u};var d=`matrix(${a.a},${a.b},${a.c},${a.d},${a.e},${a.f})`;Lo(Ps,`webkitTransform`,d),Lo(Ps,`mozTransform`,d),Lo(Ps,`msTransform`,d),Lo(Ps,`transform`,d),Zs=l,Qs=u,Xs=i}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!Ps){var e=this.options.fallbackOnBody?document.body:Fs,t=Vo(R,!0,fc,!0,e),n=this.options;if(fc){for(sc=e;Lo(sc,`position`)===`static`&&Lo(sc,`transform`)===`none`&&sc!==document;)sc=sc.parentNode;sc!==document.body&&sc!==document.documentElement?(sc===document&&(sc=Bo()),t.top+=sc.scrollTop,t.left+=sc.scrollLeft):sc=Bo(),cc=Ko(sc)}Ps=R.cloneNode(!0),Io(Ps,n.ghostClass,!1),Io(Ps,n.fallbackClass,!0),Io(Ps,n.dragClass,!0),Lo(Ps,`transition`,``),Lo(Ps,`transform`,``),Lo(Ps,`box-sizing`,`border-box`),Lo(Ps,`margin`,0),Lo(Ps,`top`,t.top),Lo(Ps,`left`,t.left),Lo(Ps,`width`,t.width),Lo(Ps,`height`,t.height),Lo(Ps,`opacity`,`0.8`),Lo(Ps,`position`,fc?`absolute`:`fixed`),Lo(Ps,`zIndex`,`100000`),Lo(Ps,`pointerEvents`,`none`),ns.ghost=Ps,e.appendChild(Ps),Lo(Ps,`transform-origin`,$s/parseInt(Ps.style.width)*100+`% `+ec/parseInt(Ps.style.height)*100+`%`)}},_onDragStart:function(e,t){var n=this,r=e.dataTransfer,i=n.options;if(Ms(`dragStart`,this,{evt:e}),ns.eventCanceled){this._onDrop();return}Ms(`setupClone`,this),ns.eventCanceled||(Rs=Zo(R),Rs.draggable=!1,Rs.style[`will-change`]=``,this._hideClone(),Io(Rs,this.options.chosenClass,!1),ns.clone=Rs),n.cloneId=cs(function(){Ms(`clone`,n),!ns.eventCanceled&&(n.options.removeCloneOnHide||Fs.insertBefore(Rs,R),n._hideClone(),ts({sortable:n,name:`clone`}))}),!t&&Io(R,i.dragClass,!0),t?(qs=!0,n._loopId=setInterval(n._emulateDragOver,50)):(Mo(document,`mouseup`,n._onDrop),Mo(document,`touchend`,n._onDrop),Mo(document,`touchcancel`,n._onDrop),r&&(r.effectAllowed=`move`,i.setData&&i.setData.call(n,r,R)),jo(document,`drop`,n),Lo(R,`transform`,`translateZ(0)`)),Ks=!0,n._dragStartId=cs(n._dragStarted.bind(n,t,e)),jo(document,`selectstart`,n),tc=!0,xs&&Lo(document.body,`user-select`,`none`)},_onDragOver:function(e){var t=this.el,n=e.target,r,i,a,o=this.options,s=o.group,c=ns.active,l=Ws===s,u=o.sort,d=Gs||c,f,p=this,m=!1;if(lc)return;function h(o,s){Ms(o,p,Eo({evt:e,isOwner:l,axis:f?`vertical`:`horizontal`,revert:a,dragRect:r,targetRect:i,canSort:u,fromSortable:d,target:n,completed:_,onMove:function(n,i){return rs(Fs,t,R,r,n,Vo(n),e,i)},changed:v},s))}function g(){h(`dragOverAnimationCapture`),p.captureAnimationState(),p!==d&&d.captureAnimationState()}function _(r){return h(`dragOverCompleted`,{insertion:r}),r&&(l?c._hideClone():c._showClone(p),p!==d&&(Io(R,Gs?Gs.options.ghostClass:c.options.ghostClass,!1),Io(R,o.ghostClass,!0)),Gs!==p&&p!==ns.active?Gs=p:p===ns.active&&Gs&&(Gs=null),d===p&&(p._ignoreWhileAnimating=n),p.animateAll(function(){h(`dragOverAnimationComplete`),p._ignoreWhileAnimating=null}),p!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(n===R&&!R.animated||n===t&&!n.animated)&&(nc=null),!o.dragoverBubble&&!e.rootEl&&n!==document&&(R.parentNode[Ds]._isOutsideThisEl(e.target),!r&&Sc(e)),!o.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),m=!0}function v(){Vs=Go(R),Us=Go(R,o.draggable),ts({sortable:p,name:`change`,toEl:t,newIndex:Vs,newDraggableIndex:Us,originalEvent:e})}if(e.preventDefault!==void 0&&e.cancelable&&e.preventDefault(),n=Fo(n,o.draggable,t,!0),h(`dragOver`),ns.eventCanceled)return m;if(R.contains(e.target)||n.animated&&n.animatingX&&n.animatingY||p._ignoreWhileAnimating===n)return _(!1);if(qs=!1,c&&!o.disabled&&(l?u||(a=Ns!==Fs):Gs===this||(this.lastPutMode=Ws.checkPull(this,c,R,e))&&s.checkPut(this,c,R,e))){if(f=this._getDirection(e,n)===`vertical`,r=Vo(R),h(`dragOverValid`),ns.eventCanceled)return m;if(a)return Ns=Fs,g(),this._hideClone(),h(`revert`),ns.eventCanceled||(Is?Fs.insertBefore(R,Is):Fs.appendChild(R)),_(!0);var y=Wo(t,o.draggable);if(!y||Uee(e,f,this)&&!y.animated){if(y===R)return _(!1);if(y&&t===e.target&&(n=y),n&&(i=Vo(n)),rs(Fs,t,R,r,n,i,e,!!n)!==!1)return g(),t.appendChild(R),Ns=t,v(),_(!0)}else if(y&&Hee(e,f,this)){var b=Uo(t,0,o,!0);if(b===R)return _(!1);if(n=b,i=Vo(n),rs(Fs,t,R,r,n,i,e,!1)!==!1)return g(),t.insertBefore(R,b),Ns=t,v(),_(!0)}else if(n.parentNode===t){i=Vo(n);var x=0,S,C=R.parentNode!==t,w=!_c(R.animated&&R.toRect||r,n.animated&&n.toRect||i,f),T=f?`top`:`left`,E=Ho(n,`top`,`top`)||Ho(R,`top`,`top`),D=E?E.scrollTop:void 0;nc!==n&&(S=i[T],ic=!1,ac=!w&&o.invertSwap||C),x=Wee(e,n,i,f,w?1:o.swapThreshold,o.invertedSwapThreshold==null?o.swapThreshold:o.invertedSwapThreshold,ac,nc===n);var O;if(x!==0){var ee=Go(R);do ee-=x,O=Ns.children[ee];while(O&&(Lo(O,`display`)===`none`||O===Ps))}if(x===0||O===n)return _(!1);nc=n,rc=x;var k=n.nextElementSibling,A=!1;A=x===1;var j=rs(Fs,t,R,r,n,i,e,A);if(j!==!1)return(j===1||j===-1)&&(A=j===1),lc=!0,setTimeout(Vee,30),g(),A&&!k?t.appendChild(R):n.parentNode.insertBefore(R,A?k:n),E&&Xo(E,0,D-E.scrollTop),Ns=R.parentNode,S!==void 0&&!ac&&(oc=Math.abs(S-Vo(n)[T])),v(),_(!0)}if(t.contains(R))return _(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Mo(document,`mousemove`,this._onTouchMove),Mo(document,`touchmove`,this._onTouchMove),Mo(document,`pointermove`,this._onTouchMove),Mo(document,`dragover`,Sc),Mo(document,`mousemove`,Sc),Mo(document,`touchmove`,Sc)},_offUpEvents:function(){var e=this.el.ownerDocument;Mo(e,`mouseup`,this._onDrop),Mo(e,`touchend`,this._onDrop),Mo(e,`pointerup`,this._onDrop),Mo(e,`touchcancel`,this._onDrop),Mo(document,`selectstart`,this)},_onDrop:function(e){var t=this.el,n=this.options;if(Vs=Go(R),Us=Go(R,n.draggable),Ms(`drop`,this,{evt:e}),Ns=R&&R.parentNode,Vs=Go(R),Us=Go(R,n.draggable),ns.eventCanceled){this._nulling();return}Ks=!1,ac=!1,ic=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),ls(this.cloneId),ls(this._dragStartId),this.nativeDraggable&&(Mo(document,`drop`,this),Mo(t,`dragstart`,this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),xs&&Lo(document.body,`user-select`,``),Lo(R,`transform`,``),e&&(tc&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),Ps&&Ps.parentNode&&Ps.parentNode.removeChild(Ps),(Fs===Ns||Gs&&Gs.lastPutMode!==`clone`)&&Rs&&Rs.parentNode&&Rs.parentNode.removeChild(Rs),R&&(this.nativeDraggable&&Mo(R,`dragend`,this),is(R),R.style[`will-change`]=``,tc&&!Ks&&Io(R,Gs?Gs.options.ghostClass:this.options.ghostClass,!1),Io(R,this.options.chosenClass,!1),ts({sortable:this,name:`unchoose`,toEl:Ns,newIndex:null,newDraggableIndex:null,originalEvent:e}),Fs===Ns?Vs!==Bs&&Vs>=0&&(ts({sortable:this,name:`update`,toEl:Ns,originalEvent:e}),ts({sortable:this,name:`sort`,toEl:Ns,originalEvent:e})):(Vs>=0&&(ts({rootEl:Ns,name:`add`,toEl:Ns,fromEl:Fs,originalEvent:e}),ts({sortable:this,name:`remove`,toEl:Ns,originalEvent:e}),ts({rootEl:Ns,name:`sort`,toEl:Ns,fromEl:Fs,originalEvent:e}),ts({sortable:this,name:`sort`,toEl:Ns,originalEvent:e})),Gs&&Gs.save()),ns.active&&((Vs==null||Vs===-1)&&(Vs=Bs,Us=Hs),ts({sortable:this,name:`end`,toEl:Ns,originalEvent:e}),this.save()))),this._nulling()},_nulling:function(){Ms(`nulling`,this),Fs=R=Ns=Ps=Is=Rs=Ls=zs=Ys=Xs=tc=Vs=Us=Bs=Hs=nc=rc=Gs=Ws=ns.dragged=ns.ghost=ns.clone=ns.active=null,uc.forEach(function(e){e.checked=!0}),uc.length=Zs=Qs=0},handleEvent:function(e){switch(e.type){case`drop`:case`dragend`:this._onDrop(e);break;case`dragenter`:case`dragover`:R&&(this._onDragOver(e),Bee(e));break;case`selectstart`:e.preventDefault();break}},toArray:function(){for(var e=[],t,n=this.el.children,r=0,i=n.length,a=this.options;r<i;r++)t=n[r],Fo(t,a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||os(t));return e},sort:function(e,t){var n={},r=this.el;this.toArray().forEach(function(e,t){var i=r.children[t];Fo(i,this.options.draggable,r,!1)&&(n[e]=i)},this),t&&this.captureAnimationState(),e.forEach(function(e){n[e]&&(r.removeChild(n[e]),r.appendChild(n[e]))}),t&&this.animateAll()},save:function(){var e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return Fo(e,t||this.options.draggable,this.el,!1)},option:function(e,t){var n=this.options;if(t===void 0)return n[e];var r=As.modifyOption(this,e,t);r===void 0?n[e]=t:n[e]=r,e===`group`&&yc(n)},destroy:function(){Ms(`destroy`,this);var e=this.el;e[Ds]=null,Mo(e,`mousedown`,this._onTapStart),Mo(e,`touchstart`,this._onTapStart),Mo(e,`pointerdown`,this._onTapStart),this.nativeDraggable&&(Mo(e,`dragover`,this),Mo(e,`dragenter`,this)),Array.prototype.forEach.call(e.querySelectorAll(`[draggable]`),function(e){e.removeAttribute(`draggable`)}),this._onDrop(),this._disableDelayedDragEvents(),Js.splice(Js.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!zs){if(Ms(`hideClone`,this),ns.eventCanceled)return;Lo(Rs,`display`,`none`),this.options.removeCloneOnHide&&Rs.parentNode&&Rs.parentNode.removeChild(Rs),zs=!0}},_showClone:function(e){if(e.lastPutMode!==`clone`){this._hideClone();return}if(zs){if(Ms(`showClone`,this),ns.eventCanceled)return;R.parentNode==Fs&&!this.options.group.revertClone?Fs.insertBefore(Rs,R):Is?Fs.insertBefore(Rs,Is):Fs.appendChild(Rs),this.options.group.revertClone&&this.animate(R,Rs),Lo(Rs,`display`,``),zs=!1}}},dc&&jo(document,`touchmove`,function(e){(ns.active||Ks)&&e.cancelable&&e.preventDefault()}),ns.utils={on:jo,off:Mo,css:Lo,find:zo,is:function(e,t){return!!Fo(e,t,e,!1)},extend:Fee,throttle:Yo,closest:Fo,toggleClass:Io,clone:Zo,index:Go,nextTick:cs,cancelNextTick:ls,detectDirection:gc,getChild:Uo},ns.get=function(e){return e[Ds]},ns.mount=function(){var e=[...arguments];e[0].constructor===Array&&(e=e[0]),e.forEach(function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(ns.utils=Eo(Eo({},ns.utils),e.utils)),As.mount(e)})},ns.create=function(e,t){return new ns(e,t)},ns.version=_s,wc=[],Dc=!1,Mc=Yo(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,a=(e.touches?e.touches[0]:e).clientY,o=t.scrollSensitivity,s=t.scrollSpeed,c=Bo(),l=!1,u;Ec!==n&&(Ec=n,ds(),Tc=t.scroll,u=t.scrollFn,Tc===!0&&(Tc=qo(n,!0)));var d=0,f=Tc;do{var p=f,m=Vo(p),h=m.top,g=m.bottom,_=m.left,v=m.right,y=m.width,b=m.height,x=void 0,S=void 0,C=p.scrollWidth,w=p.scrollHeight,T=Lo(p),E=p.scrollLeft,D=p.scrollTop;p===c?(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`||T.overflowX===`visible`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`||T.overflowY===`visible`)):(x=y<C&&(T.overflowX===`auto`||T.overflowX===`scroll`),S=b<w&&(T.overflowY===`auto`||T.overflowY===`scroll`));var O=x&&(Math.abs(v-i)<=o&&E+y<C)-(Math.abs(_-i)<=o&&!!E),ee=S&&(Math.abs(g-a)<=o&&D+b<w)-(Math.abs(h-a)<=o&&!!D);if(!wc[d])for(var k=0;k<=d;k++)wc[k]||(wc[k]={});(wc[d].vx!=O||wc[d].vy!=ee||wc[d].el!==p)&&(wc[d].el=p,wc[d].vx=O,wc[d].vy=ee,clearInterval(wc[d].pid),(O!=0||ee!=0)&&(l=!0,wc[d].pid=setInterval(function(){r&&this.layer===0&&ns.active._onTouchMove(Ac);var t=wc[this.layer].vy?wc[this.layer].vy*s:0,n=wc[this.layer].vx?wc[this.layer].vx*s:0;typeof u==`function`&&u.call(ns.dragged.parentNode[Ds],n,t,e,Ac,wc[this.layer].el)!==`continue`||Xo(wc[this.layer].el,n,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==c&&(f=qo(f,!1)));Dc=l}},30),Nc=function(e){var t=e.originalEvent,n=e.putSortable,r=e.dragEl,i=e.activeSortable,a=e.dispatchSortableEvent,o=e.hideGhostForTarget,s=e.unhideGhostForTarget;if(t){var c=n||i;o();var l=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(l.clientX,l.clientY);s(),c&&!c.el.contains(u)&&(a(`spill`),this.onSpill({dragEl:r,putSortable:n}))}},ps.prototype={startIndex:null,dragStart:function(e){var t=e.oldDraggableIndex;this.startIndex=t},onSpill:function(e){var t=e.dragEl,n=e.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=Uo(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:Nc},Oo(ps,{pluginName:`revertOnSpill`}),ms.prototype={onSpill:function(e){var t=e.dragEl,n=e.putSortable||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:Nc},Oo(ms,{pluginName:`removeOnSpill`}),Fc=[],Ic=[],zc=!1,Bc=!1,Vc=!1,ns.mount(new us),ns.mount(ms,ps)})),Kc=e(i(((e,n)=>{(function(r,i){typeof e==`object`&&typeof n==`object`?n.exports=i(Co(),(Gc(),t(wo))):typeof define==`function`&&define.amd?define([,`sortablejs`],i):typeof e==`object`?e.vuedraggable=i(Co(),(Gc(),t(wo))):r.vuedraggable=i(r.Vue,r.Sortable)})(typeof self<`u`?self:e,function(e,t){return(function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){typeof Symbol<`u`&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:`Module`}),Object.defineProperty(e,`__esModule`,{value:!0})},n.t=function(e,t){if(t&1&&(e=n(e)),t&8||t&4&&typeof e==`object`&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,`default`,{enumerable:!0,value:e}),t&2&&typeof e!=`string`)for(var i in e)n.d(r,i,function(t){return e[t]}.bind(null,i));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,`a`,t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p=``,n(n.s=`fb15`)})({"00ee":(function(e,t,n){var r=n(`b622`)(`toStringTag`),i={};i[r]=`z`,e.exports=String(i)===`[object z]`}),"0366":(function(e,t,n){var r=n(`1c0b`);e.exports=function(e,t,n){if(r(e),t===void 0)return e;switch(n){case 0:return function(){return e.call(t)};case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}}}),"057f":(function(e,t,n){var r=n(`fc6a`),i=n(`241c`).f,a={}.toString,o=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch{return o.slice()}};e.exports.f=function(e){return o&&a.call(e)==`[object Window]`?s(e):i(r(e))}}),"06cf":(function(e,t,n){var r=n(`83ab`),i=n(`d1e7`),a=n(`5c6c`),o=n(`fc6a`),s=n(`c04e`),c=n(`5135`),l=n(`0cfb`),u=Object.getOwnPropertyDescriptor;t.f=r?u:function(e,t){if(e=o(e),t=s(t,!0),l)try{return u(e,t)}catch{}if(c(e,t))return a(!i.f.call(e,t),e[t])}}),"0cfb":(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`cc12`);e.exports=!r&&!i(function(){return Object.defineProperty(a(`div`),`a`,{get:function(){return 7}}).a!=7})}),"13d5":(function(e,t,n){var r=n(`23e7`),i=n(`d58f`).left,a=n(`a640`),o=n(`ae40`),s=a(`reduce`),c=o(`reduce`,{1:0});r({target:`Array`,proto:!0,forced:!s||!c},{reduce:function(e){return i(this,e,arguments.length,arguments.length>1?arguments[1]:void 0)}})}),"14c3":(function(e,t,n){var r=n(`c6b6`),i=n(`9263`);e.exports=function(e,t){var n=e.exec;if(typeof n==`function`){var a=n.call(e,t);if(typeof a!=`object`)throw TypeError(`RegExp exec method returned something other than an Object or null`);return a}if(r(e)!==`RegExp`)throw TypeError(`RegExp#exec called on incompatible receiver`);return i.call(e,t)}}),"159b":(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`17c2`),o=n(`9112`);for(var s in i){var c=r[s],l=c&&c.prototype;if(l&&l.forEach!==a)try{o(l,`forEach`,a)}catch{l.forEach=a}}}),"17c2":(function(e,t,n){var r=n(`b727`).forEach,i=n(`a640`),a=n(`ae40`),o=i(`forEach`),s=a(`forEach`);e.exports=!o||!s?function(e){return r(this,e,arguments.length>1?arguments[1]:void 0)}:[].forEach}),"1be4":(function(e,t,n){e.exports=n(`d066`)(`document`,`documentElement`)}),"1c0b":(function(e,t){e.exports=function(e){if(typeof e!=`function`)throw TypeError(String(e)+` is not a function`);return e}}),"1c7e":(function(e,t,n){var r=n(`b622`)(`iterator`),i=!1;try{var a=0,o={next:function(){return{done:!!a++}},return:function(){i=!0}};o[r]=function(){return this},Array.from(o,function(){throw 2})}catch{}e.exports=function(e,t){if(!t&&!i)return!1;var n=!1;try{var a={};a[r]=function(){return{next:function(){return{done:n=!0}}}},e(a)}catch{}return n}}),"1d80":(function(e,t){e.exports=function(e){if(e==null)throw TypeError(`Can't call method on `+e);return e}}),"1dde":(function(e,t,n){var r=n(`d039`),i=n(`b622`),a=n(`2d00`),o=i(`species`);e.exports=function(e){return a>=51||!r(function(){var t=[],n=t.constructor={};return n[o]=function(){return{foo:1}},t[e](Boolean).foo!==1})}}),"23cb":(function(e,t,n){var r=n(`a691`),i=Math.max,a=Math.min;e.exports=function(e,t){var n=r(e);return n<0?i(n+t,0):a(n,t)}}),"23e7":(function(e,t,n){var r=n(`da84`),i=n(`06cf`).f,a=n(`9112`),o=n(`6eeb`),s=n(`ce4e`),c=n(`e893`),l=n(`94ca`);e.exports=function(e,t){var n=e.target,u=e.global,d=e.stat,f,p=u?r:d?r[n]||s(n,{}):(r[n]||{}).prototype,m,h,g,_;if(p)for(m in t){if(g=t[m],e.noTargetGet?(_=i(p,m),h=_&&_.value):h=p[m],f=l(u?m:n+(d?`.`:`#`)+m,e.forced),!f&&h!==void 0){if(typeof g==typeof h)continue;c(g,h)}(e.sham||h&&h.sham)&&a(g,`sham`,!0),o(p,m,g,e)}}}),"241c":(function(e,t,n){var r=n(`ca84`),i=n(`7839`).concat(`length`,`prototype`);t.f=Object.getOwnPropertyNames||function(e){return r(e,i)}}),"25f0":(function(e,t,n){var r=n(`6eeb`),i=n(`825a`),a=n(`d039`),o=n(`ad6d`),s=`toString`,c=RegExp.prototype,l=c[s],u=a(function(){return l.call({source:`a`,flags:`b`})!=`/a/b`}),d=l.name!=s;(u||d)&&r(RegExp.prototype,s,function(){var e=i(this),t=String(e.source),n=e.flags,r=String(n===void 0&&e instanceof RegExp&&!(`flags`in c)?o.call(e):n);return`/`+t+`/`+r},{unsafe:!0})}),"2ca0":(function(e,t,n){var r=n(`23e7`),i=n(`06cf`).f,a=n(`50c4`),o=n(`5a34`),s=n(`1d80`),c=n(`ab13`),l=n(`c430`),u=``.startsWith,d=Math.min,f=c(`startsWith`);r({target:`String`,proto:!0,forced:!(!l&&!f&&function(){var e=i(String.prototype,`startsWith`);return e&&!e.writable}())&&!f},{startsWith:function(e){var t=String(s(this));o(e);var n=a(d(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return u?u.call(t,r,n):t.slice(n,n+r.length)===r}})}),"2d00":(function(e,t,n){var r=n(`da84`),i=n(`342f`),a=r.process,o=a&&a.versions,s=o&&o.v8,c,l;s?(c=s.split(`.`),l=c[0]+c[1]):i&&(c=i.match(/Edge\/(\d+)/),(!c||c[1]>=74)&&(c=i.match(/Chrome\/(\d+)/),c&&(l=c[1]))),e.exports=l&&+l}),"342f":(function(e,t,n){e.exports=n(`d066`)(`navigator`,`userAgent`)||``}),"35a1":(function(e,t,n){var r=n(`f5df`),i=n(`3f8c`),a=n(`b622`)(`iterator`);e.exports=function(e){if(e!=null)return e[a]||e[`@@iterator`]||i[r(e)]}}),"37e8":(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`825a`),o=n(`df75`);e.exports=r?Object.defineProperties:function(e,t){a(e);for(var n=o(t),r=n.length,s=0,c;r>s;)i.f(e,c=n[s++],t[c]);return e}}),"3bbe":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e)&&e!==null)throw TypeError(`Can't set `+String(e)+` as a prototype`);return e}}),"3ca3":(function(e,t,n){var r=n(`6547`).charAt,i=n(`69f3`),a=n(`7dd0`),o=`String Iterator`,s=i.set,c=i.getterFor(o);a(String,`String`,function(e){s(this,{type:o,string:String(e),index:0})},function(){var e=c(this),t=e.string,n=e.index,i;return n>=t.length?{value:void 0,done:!0}:(i=r(t,n),e.index+=i.length,{value:i,done:!1})})}),"3f8c":(function(e,t){e.exports={}}),4160:(function(e,t,n){var r=n(`23e7`),i=n(`17c2`);r({target:`Array`,proto:!0,forced:[].forEach!=i},{forEach:i})}),"428f":(function(e,t,n){e.exports=n(`da84`)}),"44ad":(function(e,t,n){var r=n(`d039`),i=n(`c6b6`),a=``.split;e.exports=r(function(){return!Object(`z`).propertyIsEnumerable(0)})?function(e){return i(e)==`String`?a.call(e,``):Object(e)}:Object}),"44d2":(function(e,t,n){var r=n(`b622`),i=n(`7c73`),a=n(`9bf2`),o=r(`unscopables`),s=Array.prototype;s[o]??a.f(s,o,{configurable:!0,value:i(null)}),e.exports=function(e){s[o][e]=!0}}),"44e7":(function(e,t,n){var r=n(`861d`),i=n(`c6b6`),a=n(`b622`)(`match`);e.exports=function(e){var t;return r(e)&&((t=e[a])===void 0?i(e)==`RegExp`:!!t)}}),4930:(function(e,t,n){var r=n(`d039`);e.exports=!!Object.getOwnPropertySymbols&&!r(function(){return!String(Symbol())})}),"4d64":(function(e,t,n){var r=n(`fc6a`),i=n(`50c4`),a=n(`23cb`),o=function(e){return function(t,n,o){var s=r(t),c=i(s.length),l=a(o,c),u;if(e&&n!=n){for(;c>l;)if(u=s[l++],u!=u)return!0}else for(;c>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}}),"4de4":(function(e,t,n){var r=n(`23e7`),i=n(`b727`).filter,a=n(`1dde`),o=n(`ae40`),s=a(`filter`),c=o(`filter`);r({target:`Array`,proto:!0,forced:!s||!c},{filter:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),"4df4":(function(e,t,n){var r=n(`0366`),i=n(`7b0b`),a=n(`9bdd`),o=n(`e95a`),s=n(`50c4`),c=n(`8418`),l=n(`35a1`);e.exports=function(e){var t=i(e),n=typeof this==`function`?this:Array,u=arguments.length,d=u>1?arguments[1]:void 0,f=d!==void 0,p=l(t),m=0,h,g,_,v,y,b;if(f&&(d=r(d,u>2?arguments[2]:void 0,2)),p!=null&&!(n==Array&&o(p)))for(v=p.call(t),y=v.next,g=new n;!(_=y.call(v)).done;m++)b=f?a(v,d,[_.value,m],!0):_.value,c(g,m,b);else for(h=s(t.length),g=new n(h);h>m;m++)b=f?d(t[m],m):t[m],c(g,m,b);return g.length=m,g}}),"4fad":(function(e,t,n){var r=n(`23e7`),i=n(`6f53`).entries;r({target:`Object`,stat:!0},{entries:function(e){return i(e)}})}),"50c4":(function(e,t,n){var r=n(`a691`),i=Math.min;e.exports=function(e){return e>0?i(r(e),9007199254740991):0}}),5135:(function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}}),5319:(function(e,t,n){var r=n(`d784`),i=n(`825a`),a=n(`7b0b`),o=n(`50c4`),s=n(`a691`),c=n(`1d80`),l=n(`8aa5`),u=n(`14c3`),d=Math.max,f=Math.min,p=Math.floor,m=/\$([$&'`]|\d\d?|<[^>]*>)/g,h=/\$([$&'`]|\d\d?)/g,g=function(e){return e===void 0?e:String(e)};r(`replace`,2,function(e,t,n,r){var _=r.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,v=r.REPLACE_KEEPS_$0,y=_?`$`:`$0`;return[function(n,r){var i=c(this),a=n?.[e];return a===void 0?t.call(String(i),n,r):a.call(n,i,r)},function(e,r){if(!_&&v||typeof r==`string`&&r.indexOf(y)===-1){var a=n(t,e,this,r);if(a.done)return a.value}var c=i(e),p=String(this),m=typeof r==`function`;m||(r=String(r));var h=c.global;if(h){var x=c.unicode;c.lastIndex=0}for(var S=[];;){var C=u(c,p);if(C===null||(S.push(C),!h))break;String(C[0])===``&&(c.lastIndex=l(p,o(c.lastIndex),x))}for(var w=``,T=0,E=0;E<S.length;E++){C=S[E];for(var D=String(C[0]),O=d(f(s(C.index),p.length),0),ee=[],k=1;k<C.length;k++)ee.push(g(C[k]));var A=C.groups;if(m){var j=[D].concat(ee,O,p);A!==void 0&&j.push(A);var te=String(r.apply(void 0,j))}else te=b(D,p,O,ee,A,r);O>=T&&(w+=p.slice(T,O)+te,T=O+D.length)}return w+p.slice(T)}];function b(e,n,r,i,o,s){var c=r+e.length,l=i.length,u=h;return o!==void 0&&(o=a(o),u=m),t.call(s,u,function(t,a){var s;switch(a.charAt(0)){case`$`:return`$`;case`&`:return e;case"`":return n.slice(0,r);case`'`:return n.slice(c);case`<`:s=o[a.slice(1,-1)];break;default:var u=+a;if(u===0)return t;if(u>l){var d=p(u/10);return d===0?t:d<=l?i[d-1]===void 0?a.charAt(1):i[d-1]+a.charAt(1):t}s=i[u-1]}return s===void 0?``:s})}})}),5692:(function(e,t,n){var r=n(`c430`),i=n(`c6cd`);(e.exports=function(e,t){return i[e]||(i[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.6.5`,mode:r?`pure`:`global`,copyright:`© 2020 Denis Pushkarev (zloirock.ru)`})}),"56ef":(function(e,t,n){var r=n(`d066`),i=n(`241c`),a=n(`7418`),o=n(`825a`);e.exports=r(`Reflect`,`ownKeys`)||function(e){var t=i.f(o(e)),n=a.f;return n?t.concat(n(e)):t}}),"5a34":(function(e,t,n){var r=n(`44e7`);e.exports=function(e){if(r(e))throw TypeError(`The method doesn't accept regular expressions`);return e}}),"5c6c":(function(e,t){e.exports=function(e,t){return{enumerable:!(e&1),configurable:!(e&2),writable:!(e&4),value:t}}}),"5db7":(function(e,t,n){var r=n(`23e7`),i=n(`a2bf`),a=n(`7b0b`),o=n(`50c4`),s=n(`1c0b`),c=n(`65f0`);r({target:`Array`,proto:!0},{flatMap:function(e){var t=a(this),n=o(t.length),r;return s(e),r=c(t,0),r.length=i(r,t,t,n,0,1,e,arguments.length>1?arguments[1]:void 0),r}})}),6547:(function(e,t,n){var r=n(`a691`),i=n(`1d80`),a=function(e){return function(t,n){var a=String(i(t)),o=r(n),s=a.length,c,l;return o<0||o>=s?e?``:void 0:(c=a.charCodeAt(o),c<55296||c>56319||o+1===s||(l=a.charCodeAt(o+1))<56320||l>57343?e?a.charAt(o):c:e?a.slice(o,o+2):(c-55296<<10)+(l-56320)+65536)}};e.exports={codeAt:a(!1),charAt:a(!0)}}),"65f0":(function(e,t,n){var r=n(`861d`),i=n(`e8b5`),a=n(`b622`)(`species`);e.exports=function(e,t){var n;return i(e)&&(n=e.constructor,typeof n==`function`&&(n===Array||i(n.prototype))?n=void 0:r(n)&&(n=n[a],n===null&&(n=void 0))),new(n===void 0?Array:n)(t===0?0:t)}}),"69f3":(function(e,t,n){var r=n(`7f9a`),i=n(`da84`),a=n(`861d`),o=n(`9112`),s=n(`5135`),c=n(`f772`),l=n(`d012`),u=i.WeakMap,d,f,p,m=function(e){return p(e)?f(e):d(e,{})},h=function(e){return function(t){var n;if(!a(t)||(n=f(t)).type!==e)throw TypeError(`Incompatible receiver, `+e+` required`);return n}};if(r){var g=new u,_=g.get,v=g.has,y=g.set;d=function(e,t){return y.call(g,e,t),t},f=function(e){return _.call(g,e)||{}},p=function(e){return v.call(g,e)}}else{var b=c(`state`);l[b]=!0,d=function(e,t){return o(e,b,t),t},f=function(e){return s(e,b)?e[b]:{}},p=function(e){return s(e,b)}}e.exports={set:d,get:f,has:p,enforce:m,getterFor:h}}),"6eeb":(function(e,t,n){var r=n(`da84`),i=n(`9112`),a=n(`5135`),o=n(`ce4e`),s=n(`8925`),c=n(`69f3`),l=c.get,u=c.enforce,d=String(String).split(`String`);(e.exports=function(e,t,n,s){var c=s?!!s.unsafe:!1,l=s?!!s.enumerable:!1,f=s?!!s.noTargetGet:!1;if(typeof n==`function`&&(typeof t==`string`&&!a(n,`name`)&&i(n,`name`,t),u(n).source=d.join(typeof t==`string`?t:``)),e===r){l?e[t]=n:o(t,n);return}else c?!f&&e[t]&&(l=!0):delete e[t];l?e[t]=n:i(e,t,n)})(Function.prototype,`toString`,function(){return typeof this==`function`&&l(this).source||s(this)})}),"6f53":(function(e,t,n){var r=n(`83ab`),i=n(`df75`),a=n(`fc6a`),o=n(`d1e7`).f,s=function(e){return function(t){for(var n=a(t),s=i(n),c=s.length,l=0,u=[],d;c>l;)d=s[l++],(!r||o.call(n,d))&&u.push(e?[d,n[d]]:n[d]);return u}};e.exports={entries:s(!0),values:s(!1)}}),"73d9":(function(e,t,n){n(`44d2`)(`flatMap`)}),7418:(function(e,t){t.f=Object.getOwnPropertySymbols}),"746f":(function(e,t,n){var r=n(`428f`),i=n(`5135`),a=n(`e538`),o=n(`9bf2`).f;e.exports=function(e){var t=r.Symbol||={};i(t,e)||o(t,e,{value:a.f(e)})}}),7839:(function(e,t){e.exports=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`]}),"7b0b":(function(e,t,n){var r=n(`1d80`);e.exports=function(e){return Object(r(e))}}),"7c73":(function(e,t,n){var r=n(`825a`),i=n(`37e8`),a=n(`7839`),o=n(`d012`),s=n(`1be4`),c=n(`cc12`),l=n(`f772`),u=`>`,d=`<`,f=`prototype`,p=`script`,m=l(`IE_PROTO`),h=function(){},g=function(e){return d+p+u+e+d+`/`+p+u},_=function(e){e.write(g(``)),e.close();var t=e.parentWindow.Object;return e=null,t},v=function(){var e=c(`iframe`),t=`java`+p+`:`,n;return e.style.display=`none`,s.appendChild(e),e.src=String(t),n=e.contentWindow.document,n.open(),n.write(g(`document.F=Object`)),n.close(),n.F},y,b=function(){try{y=document.domain&&new ActiveXObject(`htmlfile`)}catch{}b=y?_(y):v();for(var e=a.length;e--;)delete b[f][a[e]];return b()};o[m]=!0,e.exports=Object.create||function(e,t){var n;return e===null?n=b():(h[f]=r(e),n=new h,h[f]=null,n[m]=e),t===void 0?n:i(n,t)}}),"7dd0":(function(e,t,n){var r=n(`23e7`),i=n(`9ed3`),a=n(`e163`),o=n(`d2bb`),s=n(`d44e`),c=n(`9112`),l=n(`6eeb`),u=n(`b622`),d=n(`c430`),f=n(`3f8c`),p=n(`ae93`),m=p.IteratorPrototype,h=p.BUGGY_SAFARI_ITERATORS,g=u(`iterator`),_=`keys`,v=`values`,y=`entries`,b=function(){return this};e.exports=function(e,t,n,u,p,x,S){i(n,t,u);var C=function(e){if(e===p&&O)return O;if(!h&&e in E)return E[e];switch(e){case _:return function(){return new n(this,e)};case v:return function(){return new n(this,e)};case y:return function(){return new n(this,e)}}return function(){return new n(this)}},w=t+` Iterator`,T=!1,E=e.prototype,D=E[g]||E[`@@iterator`]||p&&E[p],O=!h&&D||C(p),ee=t==`Array`&&E.entries||D,k,A,j;if(ee&&(k=a(ee.call(new e)),m!==Object.prototype&&k.next&&(!d&&a(k)!==m&&(o?o(k,m):typeof k[g]!=`function`&&c(k,g,b)),s(k,w,!0,!0),d&&(f[w]=b))),p==v&&D&&D.name!==v&&(T=!0,O=function(){return D.call(this)}),(!d||S)&&E[g]!==O&&c(E,g,O),f[t]=O,p)if(A={values:C(v),keys:x?O:C(_),entries:C(y)},S)for(j in A)(h||T||!(j in E))&&l(E,j,A[j]);else r({target:t,proto:!0,forced:h||T},A);return A}}),"7f9a":(function(e,t,n){var r=n(`da84`),i=n(`8925`),a=r.WeakMap;e.exports=typeof a==`function`&&/native code/.test(i(a))}),"825a":(function(e,t,n){var r=n(`861d`);e.exports=function(e){if(!r(e))throw TypeError(String(e)+` is not an object`);return e}}),"83ab":(function(e,t,n){e.exports=!n(`d039`)(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})}),8418:(function(e,t,n){var r=n(`c04e`),i=n(`9bf2`),a=n(`5c6c`);e.exports=function(e,t,n){var o=r(t);o in e?i.f(e,o,a(0,n)):e[o]=n}}),"861d":(function(e,t){e.exports=function(e){return typeof e==`object`?e!==null:typeof e==`function`}}),8875:(function(e,t,n){var r,i,a;(function(n,o){i=[],r=o,a=typeof r==`function`?r.apply(t,i):r,a!==void 0&&(e.exports=a)})(typeof self<`u`?self:this,function(){function e(){var t=Object.getOwnPropertyDescriptor(document,`currentScript`);if(!t&&`currentScript`in document&&document.currentScript||t&&t.get!==e&&document.currentScript)return document.currentScript;try{throw Error()}catch(e){var n=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(e.stack)||/@([^@]*):(\d+):(\d+)\s*$/gi.exec(e.stack),r=n&&n[1]||!1,i=n&&n[2]||!1,a=document.location.href.replace(document.location.hash,``),o,s,c,l=document.getElementsByTagName(`script`);r===a&&(o=document.documentElement.outerHTML,s=RegExp(`(?:[^\\n]+?\\n){0,`+(i-2)+`}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*`,`i`),c=o.replace(s,`$1`).trim());for(var u=0;u<l.length;u++)if(l[u].readyState===`interactive`||l[u].src===r||r===a&&l[u].innerHTML&&l[u].innerHTML.trim()===c)return l[u];return null}}return e})}),8925:(function(e,t,n){var r=n(`c6cd`),i=Function.toString;typeof r.inspectSource!=`function`&&(r.inspectSource=function(e){return i.call(e)}),e.exports=r.inspectSource}),"8aa5":(function(e,t,n){var r=n(`6547`).charAt;e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}}),"8bbf":(function(t,n){t.exports=e}),"90e3":(function(e,t){var n=0,r=Math.random();e.exports=function(e){return`Symbol(`+String(e===void 0?``:e)+`)_`+(++n+r).toString(36)}}),9112:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`),a=n(`5c6c`);e.exports=r?function(e,t,n){return i.f(e,t,a(1,n))}:function(e,t,n){return e[t]=n,e}}),9263:(function(e,t,n){var r=n(`ad6d`),i=n(`9f7f`),a=RegExp.prototype.exec,o=String.prototype.replace,s=a,c=(function(){var e=/a/,t=/b*/g;return a.call(e,`a`),a.call(t,`a`),e.lastIndex!==0||t.lastIndex!==0})(),l=i.UNSUPPORTED_Y||i.BROKEN_CARET,u=/()??/.exec(``)[1]!==void 0;(c||u||l)&&(s=function(e){var t=this,n,i,s,d,f=l&&t.sticky,p=r.call(t),m=t.source,h=0,g=e;return f&&(p=p.replace(`y`,``),p.indexOf(`g`)===-1&&(p+=`g`),g=String(e).slice(t.lastIndex),t.lastIndex>0&&(!t.multiline||t.multiline&&e[t.lastIndex-1]!==`
|
|
|
`)&&(m=`(?: `+m+`)`,g=` `+g,h++),i=RegExp(`^(?:`+m+`)`,p)),u&&(i=RegExp(`^`+m+`$(?!\\s)`,p)),c&&(n=t.lastIndex),s=a.call(f?i:t,g),f?s?(s.input=s.input.slice(h),s[0]=s[0].slice(h),s.index=t.lastIndex,t.lastIndex+=s[0].length):t.lastIndex=0:c&&s&&(t.lastIndex=t.global?s.index+s[0].length:n),u&&s&&s.length>1&&o.call(s[0],i,function(){for(d=1;d<arguments.length-2;d++)arguments[d]===void 0&&(s[d]=void 0)}),s}),e.exports=s}),"94ca":(function(e,t,n){var r=n(`d039`),i=/#|\.prototype\./,a=function(e,t){var n=s[o(e)];return n==l?!0:n==c?!1:typeof t==`function`?r(t):!!t},o=a.normalize=function(e){return String(e).replace(i,`.`).toLowerCase()},s=a.data={},c=a.NATIVE=`N`,l=a.POLYFILL=`P`;e.exports=a}),"99af":(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`e8b5`),o=n(`861d`),s=n(`7b0b`),c=n(`50c4`),l=n(`8418`),u=n(`65f0`),d=n(`1dde`),f=n(`b622`),p=n(`2d00`),m=f(`isConcatSpreadable`),h=9007199254740991,g=`Maximum allowed index exceeded`,_=p>=51||!i(function(){var e=[];return e[m]=!1,e.concat()[0]!==e}),v=d(`concat`),y=function(e){if(!o(e))return!1;var t=e[m];return t===void 0?a(e):!!t};r({target:`Array`,proto:!0,forced:!_||!v},{concat:function(e){var t=s(this),n=u(t,0),r=0,i,a,o,d,f;for(i=-1,o=arguments.length;i<o;i++)if(f=i===-1?t:arguments[i],y(f)){if(d=c(f.length),r+d>h)throw TypeError(g);for(a=0;a<d;a++,r++)a in f&&l(n,r,f[a])}else{if(r>=h)throw TypeError(g);l(n,r++,f)}return n.length=r,n}})}),"9bdd":(function(e,t,n){var r=n(`825a`);e.exports=function(e,t,n,i){try{return i?t(r(n)[0],n[1]):t(n)}catch(t){var a=e.return;throw a!==void 0&&r(a.call(e)),t}}}),"9bf2":(function(e,t,n){var r=n(`83ab`),i=n(`0cfb`),a=n(`825a`),o=n(`c04e`),s=Object.defineProperty;t.f=r?s:function(e,t,n){if(a(e),t=o(t,!0),a(n),i)try{return s(e,t,n)}catch{}if(`get`in n||`set`in n)throw TypeError(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}}),"9ed3":(function(e,t,n){var r=n(`ae93`).IteratorPrototype,i=n(`7c73`),a=n(`5c6c`),o=n(`d44e`),s=n(`3f8c`),c=function(){return this};e.exports=function(e,t,n){var l=t+` Iterator`;return e.prototype=i(r,{next:a(1,n)}),o(e,l,!1,!0),s[l]=c,e}}),"9f7f":(function(e,t,n){var r=n(`d039`);function i(e,t){return RegExp(e,t)}t.UNSUPPORTED_Y=r(function(){var e=i(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null}),t.BROKEN_CARET=r(function(){var e=i(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})}),a2bf:(function(e,t,n){var r=n(`e8b5`),i=n(`50c4`),a=n(`0366`),o=function(e,t,n,s,c,l,u,d){for(var f=c,p=0,m=u?a(u,d,3):!1,h;p<s;){if(p in n){if(h=m?m(n[p],p,t):n[p],l>0&&r(h))f=o(e,t,h,i(h.length),f,l-1)-1;else{if(f>=9007199254740991)throw TypeError(`Exceed the acceptable array length`);e[f]=h}f++}p++}return f};e.exports=o}),a352:(function(e,n){e.exports=t}),a434:(function(e,t,n){var r=n(`23e7`),i=n(`23cb`),a=n(`a691`),o=n(`50c4`),s=n(`7b0b`),c=n(`65f0`),l=n(`8418`),u=n(`1dde`),d=n(`ae40`),f=u(`splice`),p=d(`splice`,{ACCESSORS:!0,0:0,1:2}),m=Math.max,h=Math.min,g=9007199254740991,_=`Maximum allowed length exceeded`;r({target:`Array`,proto:!0,forced:!f||!p},{splice:function(e,t){var n=s(this),r=o(n.length),u=i(e,r),d=arguments.length,f,p,v,y,b,x;if(d===0?f=p=0:d===1?(f=0,p=r-u):(f=d-2,p=h(m(a(t),0),r-u)),r+f-p>g)throw TypeError(_);for(v=c(n,p),y=0;y<p;y++)b=u+y,b in n&&l(v,y,n[b]);if(v.length=p,f<p){for(y=u;y<r-p;y++)b=y+p,x=y+f,b in n?n[x]=n[b]:delete n[x];for(y=r;y>r-p+f;y--)delete n[y-1]}else if(f>p)for(y=r-p;y>u;y--)b=y+p-1,x=y+f-1,b in n?n[x]=n[b]:delete n[x];for(y=0;y<f;y++)n[y+u]=arguments[y+2];return n.length=r-p+f,v}})}),a4d3:(function(e,t,n){var r=n(`23e7`),i=n(`da84`),a=n(`d066`),o=n(`c430`),s=n(`83ab`),c=n(`4930`),l=n(`fdbf`),u=n(`d039`),d=n(`5135`),f=n(`e8b5`),p=n(`861d`),m=n(`825a`),h=n(`7b0b`),g=n(`fc6a`),_=n(`c04e`),v=n(`5c6c`),y=n(`7c73`),b=n(`df75`),x=n(`241c`),S=n(`057f`),C=n(`7418`),w=n(`06cf`),T=n(`9bf2`),E=n(`d1e7`),D=n(`9112`),O=n(`6eeb`),ee=n(`5692`),k=n(`f772`),A=n(`d012`),j=n(`90e3`),te=n(`b622`),M=n(`e538`),ne=n(`746f`),re=n(`d44e`),ie=n(`69f3`),ae=n(`b727`).forEach,oe=k(`hidden`),se=`Symbol`,ce=`prototype`,N=te(`toPrimitive`),le=ie.set,ue=ie.getterFor(se),de=Object[ce],fe=i.Symbol,pe=a(`JSON`,`stringify`),me=w.f,he=T.f,ge=S.f,_e=E.f,ve=ee(`symbols`),ye=ee(`op-symbols`),P=ee(`string-to-symbol-registry`),be=ee(`symbol-to-string-registry`),F=ee(`wks`),xe=i.QObject,Se=!xe||!xe[ce]||!xe[ce].findChild,Ce=s&&u(function(){return y(he({},`a`,{get:function(){return he(this,`a`,{value:7}).a}})).a!=7})?function(e,t,n){var r=me(de,t);r&&delete de[t],he(e,t,n),r&&e!==de&&he(de,t,r)}:he,I=function(e,t){var n=ve[e]=y(fe[ce]);return le(n,{type:se,tag:e,description:t}),s||(n.description=t),n},we=l?function(e){return typeof e==`symbol`}:function(e){return Object(e)instanceof fe},L=function(e,t,n){e===de&&L(ye,t,n),m(e);var r=_(t,!0);return m(n),d(ve,r)?(n.enumerable?(d(e,oe)&&e[oe][r]&&(e[oe][r]=!1),n=y(n,{enumerable:v(0,!1)})):(d(e,oe)||he(e,oe,v(1,{})),e[oe][r]=!0),Ce(e,r,n)):he(e,r,n)},Te=function(e,t){m(e);var n=g(t);return ae(b(n).concat(Ae(n)),function(t){(!s||De.call(n,t))&&L(e,t,n[t])}),e},Ee=function(e,t){return t===void 0?y(e):Te(y(e),t)},De=function(e){var t=_(e,!0),n=_e.call(this,t);return this===de&&d(ve,t)&&!d(ye,t)?!1:n||!d(this,t)||!d(ve,t)||d(this,oe)&&this[oe][t]?n:!0},Oe=function(e,t){var n=g(e),r=_(t,!0);if(!(n===de&&d(ve,r)&&!d(ye,r))){var i=me(n,r);return i&&d(ve,r)&&!(d(n,oe)&&n[oe][r])&&(i.enumerable=!0),i}},ke=function(e){var t=ge(g(e)),n=[];return ae(t,function(e){!d(ve,e)&&!d(A,e)&&n.push(e)}),n},Ae=function(e){var t=e===de,n=ge(t?ye:g(e)),r=[];return ae(n,function(e){d(ve,e)&&(!t||d(de,e))&&r.push(ve[e])}),r};c||(fe=function(){if(this instanceof fe)throw TypeError(`Symbol is not a constructor`);var e=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),t=j(e),n=function(e){this===de&&n.call(ye,e),d(this,oe)&&d(this[oe],t)&&(this[oe][t]=!1),Ce(this,t,v(1,e))};return s&&Se&&Ce(de,t,{configurable:!0,set:n}),I(t,e)},O(fe[ce],`toString`,function(){return ue(this).tag}),O(fe,`withoutSetter`,function(e){return I(j(e),e)}),E.f=De,T.f=L,w.f=Oe,x.f=S.f=ke,C.f=Ae,M.f=function(e){return I(te(e),e)},s&&(he(fe[ce],`description`,{configurable:!0,get:function(){return ue(this).description}}),o||O(de,`propertyIsEnumerable`,De,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:fe}),ae(b(F),function(e){ne(e)}),r({target:se,stat:!0,forced:!c},{for:function(e){var t=String(e);if(d(P,t))return P[t];var n=fe(t);return P[t]=n,be[n]=t,n},keyFor:function(e){if(!we(e))throw TypeError(e+` is not a symbol`);if(d(be,e))return be[e]},useSetter:function(){Se=!0},useSimple:function(){Se=!1}}),r({target:`Object`,stat:!0,forced:!c,sham:!s},{create:Ee,defineProperty:L,defineProperties:Te,getOwnPropertyDescriptor:Oe}),r({target:`Object`,stat:!0,forced:!c},{getOwnPropertyNames:ke,getOwnPropertySymbols:Ae}),r({target:`Object`,stat:!0,forced:u(function(){C.f(1)})},{getOwnPropertySymbols:function(e){return C.f(h(e))}}),pe&&r({target:`JSON`,stat:!0,forced:!c||u(function(){var e=fe();return pe([e])!=`[null]`||pe({a:e})!=`{}`||pe(Object(e))!=`{}`})},{stringify:function(e,t,n){for(var r=[e],i=1,a;arguments.length>i;)r.push(arguments[i++]);if(a=t,!(!p(t)&&e===void 0||we(e)))return f(t)||(t=function(e,t){if(typeof a==`function`&&(t=a.call(this,e,t)),!we(t))return t}),r[1]=t,pe.apply(null,r)}}),fe[ce][N]||D(fe[ce],N,fe[ce].valueOf),re(fe,se),A[oe]=!0}),a630:(function(e,t,n){var r=n(`23e7`),i=n(`4df4`);r({target:`Array`,stat:!0,forced:!n(`1c7e`)(function(e){Array.from(e)})},{from:i})}),a640:(function(e,t,n){var r=n(`d039`);e.exports=function(e,t){var n=[][e];return!!n&&r(function(){n.call(null,t||function(){throw 1},1)})}}),a691:(function(e,t){var n=Math.ceil,r=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?r:n)(e)}}),ab13:(function(e,t,n){var r=n(`b622`)(`match`);e.exports=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[r]=!1,`/./`[e](t)}catch{}}return!1}}),ac1f:(function(e,t,n){var r=n(`23e7`),i=n(`9263`);r({target:`RegExp`,proto:!0,forced:/./.exec!==i},{exec:i})}),ad6d:(function(e,t,n){var r=n(`825a`);e.exports=function(){var e=r(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}}),ae40:(function(e,t,n){var r=n(`83ab`),i=n(`d039`),a=n(`5135`),o=Object.defineProperty,s={},c=function(e){throw e};e.exports=function(e,t){if(a(s,e))return s[e];t||={};var n=[][e],l=a(t,`ACCESSORS`)?t.ACCESSORS:!1,u=a(t,0)?t[0]:c,d=a(t,1)?t[1]:void 0;return s[e]=!!n&&!i(function(){if(l&&!r)return!0;var e={length:-1};l?o(e,1,{enumerable:!0,get:c}):e[1]=1,n.call(e,u,d)})}}),ae93:(function(e,t,n){var r=n(`e163`),i=n(`9112`),a=n(`5135`),o=n(`b622`),s=n(`c430`),c=o(`iterator`),l=!1,u=function(){return this},d,f,p;[].keys&&(p=[].keys(),`next`in p?(f=r(r(p)),f!==Object.prototype&&(d=f)):l=!0),d??={},!s&&!a(d,c)&&i(d,c,u),e.exports={IteratorPrototype:d,BUGGY_SAFARI_ITERATORS:l}}),b041:(function(e,t,n){var r=n(`00ee`),i=n(`f5df`);e.exports=r?{}.toString:function(){return`[object `+i(this)+`]`}}),b0c0:(function(e,t,n){var r=n(`83ab`),i=n(`9bf2`).f,a=Function.prototype,o=a.toString,s=/^\s*function ([^ (]*)/,c=`name`;r&&!(c in a)&&i(a,c,{configurable:!0,get:function(){try{return o.call(this).match(s)[1]}catch{return``}}})}),b622:(function(e,t,n){var r=n(`da84`),i=n(`5692`),a=n(`5135`),o=n(`90e3`),s=n(`4930`),c=n(`fdbf`),l=i(`wks`),u=r.Symbol,d=c?u:u&&u.withoutSetter||o;e.exports=function(e){return a(l,e)||(s&&a(u,e)?l[e]=u[e]:l[e]=d(`Symbol.`+e)),l[e]}}),b64b:(function(e,t,n){var r=n(`23e7`),i=n(`7b0b`),a=n(`df75`);r({target:`Object`,stat:!0,forced:n(`d039`)(function(){a(1)})},{keys:function(e){return a(i(e))}})}),b727:(function(e,t,n){var r=n(`0366`),i=n(`44ad`),a=n(`7b0b`),o=n(`50c4`),s=n(`65f0`),c=[].push,l=function(e){var t=e==1,n=e==2,l=e==3,u=e==4,d=e==6,f=e==5||d;return function(p,m,h,g){for(var _=a(p),v=i(_),y=r(m,h,3),b=o(v.length),x=0,S=g||s,C=t?S(p,b):n?S(p,0):void 0,w,T;b>x;x++)if((f||x in v)&&(w=v[x],T=y(w,x,_),e)){if(t)C[x]=T;else if(T)switch(e){case 3:return!0;case 5:return w;case 6:return x;case 2:c.call(C,w)}else if(u)return!1}return d?-1:l||u?u:C}};e.exports={forEach:l(0),map:l(1),filter:l(2),some:l(3),every:l(4),find:l(5),findIndex:l(6)}}),c04e:(function(e,t,n){var r=n(`861d`);e.exports=function(e,t){if(!r(e))return e;var n,i;if(t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e))||typeof(n=e.valueOf)==`function`&&!r(i=n.call(e))||!t&&typeof(n=e.toString)==`function`&&!r(i=n.call(e)))return i;throw TypeError(`Can't convert object to primitive value`)}}),c430:(function(e,t){e.exports=!1}),c6b6:(function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}}),c6cd:(function(e,t,n){var r=n(`da84`),i=n(`ce4e`),a=`__core-js_shared__`;e.exports=r[a]||i(a,{})}),c740:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).findIndex,a=n(`44d2`),o=n(`ae40`),s=`findIndex`,c=!0,l=o(s);s in[]&&[,][s](function(){c=!1}),r({target:`Array`,proto:!0,forced:c||!l},{findIndex:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(s)}),c8ba:(function(e,t){var n=(function(){return this})();try{n||=Function(`return this`)()}catch{typeof window==`object`&&(n=window)}e.exports=n}),c975:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).indexOf,a=n(`a640`),o=n(`ae40`),s=[].indexOf,c=!!s&&1/[1].indexOf(1,-0)<0,l=a(`indexOf`),u=o(`indexOf`,{ACCESSORS:!0,1:0});r({target:`Array`,proto:!0,forced:c||!l||!u},{indexOf:function(e){return c?s.apply(this,arguments)||0:i(this,e,arguments.length>1?arguments[1]:void 0)}})}),ca84:(function(e,t,n){var r=n(`5135`),i=n(`fc6a`),a=n(`4d64`).indexOf,o=n(`d012`);e.exports=function(e,t){var n=i(e),s=0,c=[],l;for(l in n)!r(o,l)&&r(n,l)&&c.push(l);for(;t.length>s;)r(n,l=t[s++])&&(~a(c,l)||c.push(l));return c}}),caad:(function(e,t,n){var r=n(`23e7`),i=n(`4d64`).includes,a=n(`44d2`);r({target:`Array`,proto:!0,forced:!n(`ae40`)(`indexOf`,{ACCESSORS:!0,1:0})},{includes:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}}),a(`includes`)}),cc12:(function(e,t,n){var r=n(`da84`),i=n(`861d`),a=r.document,o=i(a)&&i(a.createElement);e.exports=function(e){return o?a.createElement(e):{}}}),ce4e:(function(e,t,n){var r=n(`da84`),i=n(`9112`);e.exports=function(e,t){try{i(r,e,t)}catch{r[e]=t}return t}}),d012:(function(e,t){e.exports={}}),d039:(function(e,t){e.exports=function(e){try{return!!e()}catch{return!0}}}),d066:(function(e,t,n){var r=n(`428f`),i=n(`da84`),a=function(e){return typeof e==`function`?e:void 0};e.exports=function(e,t){return arguments.length<2?a(r[e])||a(i[e]):r[e]&&r[e][t]||i[e]&&i[e][t]}}),d1e7:(function(e,t,n){var r={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor;t.f=i&&!r.call({1:2},1)?function(e){var t=i(this,e);return!!t&&t.enumerable}:r}),d28b:(function(e,t,n){n(`746f`)(`iterator`)}),d2bb:(function(e,t,n){var r=n(`825a`),i=n(`3bbe`);e.exports=Object.setPrototypeOf||(`__proto__`in{}?function(){var e=!1,t={},n;try{n=Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set,n.call(t,[]),e=t instanceof Array}catch{}return function(t,a){return r(t),i(a),e?n.call(t,a):t.__proto__=a,t}}():void 0)}),d3b7:(function(e,t,n){var r=n(`00ee`),i=n(`6eeb`),a=n(`b041`);r||i(Object.prototype,`toString`,a,{unsafe:!0})}),d44e:(function(e,t,n){var r=n(`9bf2`).f,i=n(`5135`),a=n(`b622`)(`toStringTag`);e.exports=function(e,t,n){e&&!i(e=n?e:e.prototype,a)&&r(e,a,{configurable:!0,value:t})}}),d58f:(function(e,t,n){var r=n(`1c0b`),i=n(`7b0b`),a=n(`44ad`),o=n(`50c4`),s=function(e){return function(t,n,s,c){r(n);var l=i(t),u=a(l),d=o(l.length),f=e?d-1:0,p=e?-1:1;if(s<2)for(;;){if(f in u){c=u[f],f+=p;break}if(f+=p,e?f<0:d<=f)throw TypeError(`Reduce of empty array with no initial value`)}for(;e?f>=0:d>f;f+=p)f in u&&(c=n(c,u[f],f,l));return c}};e.exports={left:s(!1),right:s(!0)}}),d784:(function(e,t,n){n(`ac1f`);var r=n(`6eeb`),i=n(`d039`),a=n(`b622`),o=n(`9263`),s=n(`9112`),c=a(`species`),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}),u=(function(){return`a`.replace(/./,`$0`)===`$0`})(),d=a(`replace`),f=(function(){return/./[d]?/./[d](`a`,`$0`)===``:!1})(),p=!i(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`});e.exports=function(e,t,n,d){var m=a(e),h=!i(function(){var t={};return t[m]=function(){return 7},``[e](t)!=7}),g=h&&!i(function(){var t=!1,n=/a/;return e===`split`&&(n={},n.constructor={},n.constructor[c]=function(){return n},n.flags=``,n[m]=/./[m]),n.exec=function(){return t=!0,null},n[m](``),!t});if(!h||!g||e===`replace`&&!(l&&u&&!f)||e===`split`&&!p){var _=/./[m],v=n(m,``[e],function(e,t,n,r,i){return t.exec===o?h&&!i?{done:!0,value:_.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}},{REPLACE_KEEPS_$0:u,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:f}),y=v[0],b=v[1];r(String.prototype,e,y),r(RegExp.prototype,m,t==2?function(e,t){return b.call(e,this,t)}:function(e){return b.call(e,this)})}d&&s(RegExp.prototype[m],`sham`,!0)}}),d81d:(function(e,t,n){var r=n(`23e7`),i=n(`b727`).map,a=n(`1dde`),o=n(`ae40`),s=a(`map`),c=o(`map`);r({target:`Array`,proto:!0,forced:!s||!c},{map:function(e){return i(this,e,arguments.length>1?arguments[1]:void 0)}})}),da84:(function(e,t,n){(function(t){var n=function(e){return e&&e.Math==Math&&e};e.exports=n(typeof globalThis==`object`&&globalThis)||n(typeof window==`object`&&window)||n(typeof self==`object`&&self)||n(typeof t==`object`&&t)||Function(`return this`)()}).call(this,n(`c8ba`))}),dbb4:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`56ef`),o=n(`fc6a`),s=n(`06cf`),c=n(`8418`);r({target:`Object`,stat:!0,sham:!i},{getOwnPropertyDescriptors:function(e){for(var t=o(e),n=s.f,r=a(t),i={},l=0,u,d;r.length>l;)d=n(t,u=r[l++]),d!==void 0&&c(i,u,d);return i}})}),dbf1:(function(e,t,n){(function(e){n.d(t,`a`,function(){return i});function r(){return typeof window<`u`?window.console:e.console}var i=r()}).call(this,n(`c8ba`))}),ddb0:(function(e,t,n){var r=n(`da84`),i=n(`fdbc`),a=n(`e260`),o=n(`9112`),s=n(`b622`),c=s(`iterator`),l=s(`toStringTag`),u=a.values;for(var d in i){var f=r[d],p=f&&f.prototype;if(p){if(p[c]!==u)try{o(p,c,u)}catch{p[c]=u}if(p[l]||o(p,l,d),i[d]){for(var m in a)if(p[m]!==a[m])try{o(p,m,a[m])}catch{p[m]=a[m]}}}}}),df75:(function(e,t,n){var r=n(`ca84`),i=n(`7839`);e.exports=Object.keys||function(e){return r(e,i)}}),e01a:(function(e,t,n){var r=n(`23e7`),i=n(`83ab`),a=n(`da84`),o=n(`5135`),s=n(`861d`),c=n(`9bf2`).f,l=n(`e893`),u=a.Symbol;if(i&&typeof u==`function`&&(!(`description`in u.prototype)||u().description!==void 0)){var d={},f=function(){var e=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),t=this instanceof f?new u(e):e===void 0?u():u(e);return e===``&&(d[t]=!0),t};l(f,u);var p=f.prototype=u.prototype;p.constructor=f;var m=p.toString,h=String(u(`test`))==`Symbol(test)`,g=/^Symbol\((.*)\)[^)]+$/;c(p,`description`,{configurable:!0,get:function(){var e=s(this)?this.valueOf():this,t=m.call(e);if(o(d,e))return``;var n=h?t.slice(7,-1):t.replace(g,`$1`);return n===``?void 0:n}}),r({global:!0,forced:!0},{Symbol:f})}}),e163:(function(e,t,n){var r=n(`5135`),i=n(`7b0b`),a=n(`f772`),o=n(`e177`),s=a(`IE_PROTO`),c=Object.prototype;e.exports=o?Object.getPrototypeOf:function(e){return e=i(e),r(e,s)?e[s]:typeof e.constructor==`function`&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?c:null}}),e177:(function(e,t,n){e.exports=!n(`d039`)(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}),e260:(function(e,t,n){var r=n(`fc6a`),i=n(`44d2`),a=n(`3f8c`),o=n(`69f3`),s=n(`7dd0`),c=`Array Iterator`,l=o.set,u=o.getterFor(c);e.exports=s(Array,`Array`,function(e,t){l(this,{type:c,target:r(e),index:0,kind:t})},function(){var e=u(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`),a.Arguments=a.Array,i(`keys`),i(`values`),i(`entries`)}),e439:(function(e,t,n){var r=n(`23e7`),i=n(`d039`),a=n(`fc6a`),o=n(`06cf`).f,s=n(`83ab`),c=i(function(){o(1)});r({target:`Object`,stat:!0,forced:!s||c,sham:!s},{getOwnPropertyDescriptor:function(e,t){return o(a(e),t)}})}),e538:(function(e,t,n){t.f=n(`b622`)}),e893:(function(e,t,n){var r=n(`5135`),i=n(`56ef`),a=n(`06cf`),o=n(`9bf2`);e.exports=function(e,t){for(var n=i(t),s=o.f,c=a.f,l=0;l<n.length;l++){var u=n[l];r(e,u)||s(e,u,c(t,u))}}}),e8b5:(function(e,t,n){var r=n(`c6b6`);e.exports=Array.isArray||function(e){return r(e)==`Array`}}),e95a:(function(e,t,n){var r=n(`b622`),i=n(`3f8c`),a=r(`iterator`),o=Array.prototype;e.exports=function(e){return e!==void 0&&(i.Array===e||o[a]===e)}}),f5df:(function(e,t,n){var r=n(`00ee`),i=n(`c6b6`),a=n(`b622`)(`toStringTag`),o=i(function(){return arguments}())==`Arguments`,s=function(e,t){try{return e[t]}catch{}};e.exports=r?i:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=s(t=Object(e),a))==`string`?n:o?i(t):(r=i(t))==`Object`&&typeof t.callee==`function`?`Arguments`:r}}),f772:(function(e,t,n){var r=n(`5692`),i=n(`90e3`),a=r(`keys`);e.exports=function(e){return a[e]||(a[e]=i(e))}}),fb15:(function(e,t,n){if(n.r(t),typeof window<`u`){var r=window.document.currentScript,i=n(`8875`);r=i(),`currentScript`in document||Object.defineProperty(document,`currentScript`,{get:i});var a=r&&r.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);a&&(n.p=a[1])}n(`99af`),n(`4de4`),n(`4160`),n(`c975`),n(`d81d`),n(`a434`),n(`159b`),n(`a4d3`),n(`e439`),n(`dbb4`),n(`b64b`);function o(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(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 c(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?s(Object(n),!0).forEach(function(t){o(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function l(e){if(Array.isArray(e))return e}n(`e01a`),n(`d28b`),n(`e260`),n(`d3b7`),n(`3ca3`),n(`ddb0`);function u(e,t){if(!(typeof Symbol>`u`||!(Symbol.iterator in Object(e)))){var n=[],r=!0,i=!1,a=void 0;try{for(var o=e[Symbol.iterator](),s;!(r=(s=o.next()).done)&&(n.push(s.value),!(t&&n.length===t));r=!0);}catch(e){i=!0,a=e}finally{try{!r&&o.return!=null&&o.return()}finally{if(i)throw a}}return n}}n(`a630`),n(`fb6a`),n(`b0c0`),n(`25f0`);function d(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function f(e,t){if(e){if(typeof e==`string`)return d(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n===`Object`&&e.constructor&&(n=e.constructor.name),n===`Map`||n===`Set`)return Array.from(e);if(n===`Arguments`||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return d(e,t)}}function p(){throw TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function m(e,t){return l(e)||u(e,t)||f(e,t)||p()}function h(e){if(Array.isArray(e))return d(e)}function g(e){if(typeof Symbol<`u`&&Symbol.iterator in Object(e))return Array.from(e)}function _(){throw TypeError(`Invalid attempt to spread non-iterable instance.
|
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function v(e){return h(e)||g(e)||f(e)||_()}var y=n(`a352`),b=n.n(y);function x(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function S(e,t,n){var r=n===0?e.children[0]:e.children[n-1].nextSibling;e.insertBefore(t,r)}var C=n(`dbf1`);n(`13d5`),n(`4fad`),n(`ac1f`),n(`5319`);function w(e){var t=Object.create(null);return function(n){return t[n]||(t[n]=e(n))}}var T=/-(\w)/g,E=w(function(e){return e.replace(T,function(e,t){return t.toUpperCase()})});n(`5db7`),n(`73d9`);var D=[`Start`,`Add`,`Remove`,`Update`,`End`],O=[`Choose`,`Unchoose`,`Sort`,`Filter`,`Clone`],ee=[`Move`],k=[ee,D,O].flatMap(function(e){return e}).map(function(e){return`on${e}`}),A={manage:ee,manageAndEmit:D,emit:O};function j(e){return k.indexOf(e)!==-1}n(`caad`),n(`2ca0`);var te=`a.abbr.address.area.article.aside.audio.b.base.bdi.bdo.blockquote.body.br.button.canvas.caption.cite.code.col.colgroup.data.datalist.dd.del.details.dfn.dialog.div.dl.dt.em.embed.fieldset.figcaption.figure.footer.form.h1.h2.h3.h4.h5.h6.head.header.hgroup.hr.html.i.iframe.img.input.ins.kbd.label.legend.li.link.main.map.mark.math.menu.menuitem.meta.meter.nav.noscript.object.ol.optgroup.option.output.p.param.picture.pre.progress.q.rb.rp.rt.rtc.ruby.s.samp.script.section.select.slot.small.source.span.strong.style.sub.summary.sup.svg.table.tbody.td.template.textarea.tfoot.th.thead.time.title.tr.track.u.ul.var.video.wbr`.split(`.`);function M(e){return te.includes(e)}function ne(e){return[`transition-group`,`TransitionGroup`].includes(e)}function re(e){return[`id`,`class`,`role`,`style`].includes(e)||e.startsWith(`data-`)||e.startsWith(`aria-`)||e.startsWith(`on`)}function ie(e){return e.reduce(function(e,t){var n=m(t,2),r=n[0];return e[r]=n[1],e},{})}function ae(e){var t=e.$attrs,n=e.componentData,r=n===void 0?{}:n;return c(c({},ie(Object.entries(t).filter(function(e){var t=m(e,2),n=t[0];return t[1],re(n)}))),r)}function oe(e){var t=e.$attrs,n=e.callBackBuilder,r=ie(se(t));Object.entries(n).forEach(function(e){var t=m(e,2),n=t[0],i=t[1];A[n].forEach(function(e){r[`on${e}`]=i(e)})});var i=`[data-draggable]${r.draggable||``}`;return c(c({},r),{},{draggable:i})}function se(e){return Object.entries(e).filter(function(e){var t=m(e,2),n=t[0];return t[1],!re(n)}).map(function(e){var t=m(e,2),n=t[0],r=t[1];return[E(n),r]}).filter(function(e){var t=m(e,2),n=t[0];return t[1],!j(n)})}n(`c740`);function ce(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function N(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 le(e,t,n){return t&&N(e.prototype,t),n&&N(e,n),e}var ue=function(e){return e.el},de=function(e,t){return e.__draggable_context=t},fe=function(e){return e.__draggable_context},pe=function(){function e(t){var n=t.nodes,r=n.header,i=n.default,a=n.footer,o=t.root,s=t.realList;ce(this,e),this.defaultNodes=i,this.children=[].concat(v(r),v(i),v(a)),this.externalComponent=o.externalComponent,this.rootTransition=o.transition,this.tag=o.tag,this.realList=s}return le(e,[{key:`render`,value:function(e,t){var n=this.tag,r=this.children;return e(n,t,this._isRootComponent?{default:function(){return r}}:r)}},{key:`updated`,value:function(){var e=this.defaultNodes,t=this.realList;e.forEach(function(e,n){de(ue(e),{element:t[n],index:n})})}},{key:`getUnderlyingVm`,value:function(e){return fe(e)}},{key:`getVmIndexFromDomIndex`,value:function(e,t){var n=this.defaultNodes,r=n.length,i=t.children,a=i.item(e);if(a===null)return r;var o=fe(a);if(o)return o.index;if(r===0)return 0;var s=ue(n[0]);return e<v(i).findIndex(function(e){return e===s})?0:r}},{key:`_isRootComponent`,get:function(){return this.externalComponent||this.rootTransition}}]),e}(),me=n(`8bbf`);function he(e,t){var n=e[t];return n?n():[]}function ge(e){var t=e.$slots,n=e.realList,r=e.getKey,i=n||[],a=m([`header`,`footer`].map(function(e){return he(t,e)}),2),o=a[0],s=a[1],l=t.item;if(!l)throw Error(`draggable element must have an item slot`);var u=i.flatMap(function(e,t){return l({element:e,index:t}).map(function(t){return t.key=r(e),t.props=c(c({},t.props||{}),{},{"data-draggable":!0}),t})});if(u.length!==i.length)throw Error(`Item slot must have only one child`);return{header:o,footer:s,default:u}}function _e(e){var t=ne(e),n=!M(e)&&!t;return{transition:t,externalComponent:n,tag:n?(0,me.resolveComponent)(e):t?me.TransitionGroup:e}}function ve(e){var t=e.$slots,n=e.tag,r=e.realList,i=e.getKey;return new pe({nodes:ge({$slots:t,realList:r,getKey:i}),root:_e(n),realList:r})}function ye(e,t){var n=this;(0,me.nextTick)(function(){return n.$emit(e.toLowerCase(),t)})}function P(e){var t=this;return function(n,r){if(t.realList!==null)return t[`onDrag${e}`](n,r)}}function be(e){var t=this,n=P.call(this,e);return function(r,i){n.call(t,r,i),ye.call(t,e,r)}}var F=null,xe={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(e){return e}},tag:{type:String,default:`div`},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Se=[`update:modelValue`,`change`].concat(v([].concat(v(A.manageAndEmit),v(A.emit)).map(function(e){return e.toLowerCase()})));t.default=(0,me.defineComponent)({name:`draggable`,inheritAttrs:!1,props:xe,emits:Se,data:function(){return{error:!1}},render:function(){try{this.error=!1;var e=this.$slots,t=this.$attrs,n=this.tag,r=this.componentData,i=this.realList,a=this.getKey,o=ve({$slots:e,tag:n,realList:i,getKey:a});this.componentStructure=o;var s=ae({$attrs:t,componentData:r});return o.render(me.h,s)}catch(e){return this.error=!0,(0,me.h)(`pre`,{style:{color:`red`}},e.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&C.a.error(`modelValue and list props are mutually exclusive! Please set one or another.`)},mounted:function(){var e=this;if(!this.error){var t=this.$attrs,n=this.$el;this.componentStructure.updated();var r=oe({$attrs:t,callBackBuilder:{manageAndEmit:function(t){return be.call(e,t)},emit:function(t){return ye.bind(e,t)},manage:function(t){return P.call(e,t)}}}),i=n.nodeType===1?n:n.parentElement;this._sortable=new b.a(i,r),this.targetDomElement=i,i.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){return this.list||this.modelValue},getKey:function(){var e=this.itemKey;return typeof e==`function`?e:function(t){return t[e]}}},watch:{$attrs:{handler:function(e){var t=this._sortable;t&&se(e).forEach(function(e){var n=m(e,2),r=n[0],i=n[1];t.option(r,i)})},deep:!0}},methods:{getUnderlyingVm:function(e){return this.componentStructure.getUnderlyingVm(e)||null},getUnderlyingPotencialDraggableComponent:function(e){return e.__draggable_component__},emitChanges:function(e){var t=this;(0,me.nextTick)(function(){return t.$emit(`change`,e)})},alterList:function(e){if(this.list){e(this.list);return}var t=v(this.modelValue);e(t),this.$emit(`update:modelValue`,t)},spliceList:function(){var e=arguments;this.alterList(function(t){return t.splice.apply(t,v(e))})},updatePosition:function(e,t){this.alterList(function(n){return n.splice(t,0,n.splice(e,1)[0])})},getRelatedContextFromMoveEvent:function(e){var t=e.to,n=e.related,r=this.getUnderlyingPotencialDraggableComponent(t);if(!r)return{component:r};var i=r.realList,a={list:i,component:r};return t!==n&&i?c(c({},r.getUnderlyingVm(n)||{}),a):a},getVmIndexFromDomIndex:function(e){return this.componentStructure.getVmIndexFromDomIndex(e,this.targetDomElement)},onDragStart:function(e){this.context=this.getUnderlyingVm(e.item),e.item._underlying_vm_=this.clone(this.context.element),F=e.item},onDragAdd:function(e){var t=e.item._underlying_vm_;if(t!==void 0){x(e.item);var n=this.getVmIndexFromDomIndex(e.newIndex);this.spliceList(n,0,t);var r={element:t,newIndex:n};this.emitChanges({added:r})}},onDragRemove:function(e){if(S(this.$el,e.item,e.oldIndex),e.pullMode===`clone`){x(e.clone);return}var t=this.context,n=t.index,r=t.element;this.spliceList(n,1);var i={element:r,oldIndex:n};this.emitChanges({removed:i})},onDragUpdate:function(e){x(e.item),S(e.from,e.item,e.oldIndex);var t=this.context.index,n=this.getVmIndexFromDomIndex(e.newIndex);this.updatePosition(t,n);var r={element:this.context.element,oldIndex:t,newIndex:n};this.emitChanges({moved:r})},computeFutureIndex:function(e,t){if(!e.element)return 0;var n=v(t.to.children).filter(function(e){return e.style.display!==`none`}),r=n.indexOf(t.related),i=e.component.getVmIndexFromDomIndex(r);return n.indexOf(F)!==-1||!t.willInsertAfter?i:i+1},onDragMove:function(e,t){var n=this.move,r=this.realList;if(!n||!r)return!0;var i=this.getRelatedContextFromMoveEvent(e),a=this.computeFutureIndex(i,e),o=c(c({},this.context),{},{futureIndex:a});return n(c(c({},e),{},{relatedContext:i,draggedContext:o}),t)},onDragEnd:function(){F=null}}})}),fb6a:(function(e,t,n){var r=n(`23e7`),i=n(`861d`),a=n(`e8b5`),o=n(`23cb`),s=n(`50c4`),c=n(`fc6a`),l=n(`8418`),u=n(`b622`),d=n(`1dde`),f=n(`ae40`),p=d(`slice`),m=f(`slice`,{ACCESSORS:!0,0:0,1:2}),h=u(`species`),g=[].slice,_=Math.max;r({target:`Array`,proto:!0,forced:!p||!m},{slice:function(e,t){var n=c(this),r=s(n.length),u=o(e,r),d=o(t===void 0?r:t,r),f,p,m;if(a(n)&&(f=n.constructor,typeof f==`function`&&(f===Array||a(f.prototype))?f=void 0:i(f)&&(f=f[h],f===null&&(f=void 0)),f===Array||f===void 0))return g.call(n,u,d);for(p=new(f===void 0?Array:f)(_(d-u,0)),m=0;u<d;u++,m++)u in n&&l(p,m,n[u]);return p.length=m,p}})}),fc6a:(function(e,t,n){var r=n(`44ad`),i=n(`1d80`);e.exports=function(e){return r(i(e))}}),fdbc:(function(e,t){e.exports={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}}),fdbf:(function(e,t,n){e.exports=n(`4930`)&&!Symbol.sham&&typeof Symbol.iterator==`symbol`})}).default})}))(),1),qc=[{value:`text`,label:`单行文本`},{value:`email`,label:`邮箱`},{value:`tel`,label:`手机/电话`},{value:`textarea`,label:`多行文本`},{value:`number`,label:`数字`},{value:`select`,label:`下拉选择`},{value:`checkbox`,label:`勾选确认(通用)`},{value:it,label:`签署承诺书`},{value:`file`,label:`文件上传`},{value:`date`,label:`日期`}],Yee=[{value:`number`,label:`数字(打分维度)`},{value:`textarea`,label:`多行文本(评语等)`},{value:`text`,label:`单行文本`}],Jc=[{value:``,label:`不设置预填`},{value:`user.name`,label:`用户资料:姓名(users.name)`},{value:`user.mobile`,label:`用户资料:手机号(users.mobile)`},{value:`user.email`,label:`用户资料:邮箱(users.email)`},{value:`user.company`,label:`用户资料:公司(users.company)`}];function Yc(){return globalThis.crypto?.randomUUID?.()??`f_${Date.now()}_${Math.random().toString(36).slice(2)}`}function Xc(e,t){let n=e===`review`?`number`:`text`;return{__uid:Yc(),key:e===`review`?`dim_${t+1}`:`field_${t+1}`,type:n,label:e===`review`?`评分维度 ${t+1}`:`字段 ${t+1}`,required:e!==`review`,titleSupplement:``,placeholder:``,help:``,options:[],prefillFrom:``,requiredWhenField:``,requiredWhenValuesLines:``,fileExtensionsLines:``,fileMaxCount:``}}function Xee(e){return Array.isArray(e)?e.map(e=>typeof e==`object`&&e&&`label`in e&&`value`in e?{label:String(e.label),value:String(e.value)}:typeof e==`string`?{label:e,value:e}:null).filter(e=>e!=null&&e.label!==``):[]}function Zc(e,t){return Array.isArray(e)?e.map((e,n)=>{if(typeof e!=`object`||!e)return Xc(t,n);let r=e,i=String(r.key??(t===`review`?`dim_${n+1}`:`field_${n+1}`)),a=String(r.type??(t===`review`?`number`:`text`)),o=t===`signup`&&i===`commitment_accepted`&&a===`checkbox`?it:a,s=``,c=``;if(t===`signup`){let e=r.required_when;if(typeof e==`object`&&e&&!Array.isArray(e)){let t=e;s=String(t.field??``).trim();let n=t.values;Array.isArray(n)&&(c=n.map(e=>String(e).trim()).filter(Boolean).join(`
|
|
|
`))}}return{__uid:Yc(),key:i,type:o,label:String(r.label??`字段 ${n+1}`),required:!!r.required,titleSupplement:r.title_supplement==null?``:String(r.title_supplement),placeholder:r.placeholder==null?``:String(r.placeholder),help:r.help==null?``:String(r.help),options:o===`select`?Xee(r.options):[],prefillFrom:t===`signup`&&r.prefill_from!=null?String(r.prefill_from).trim():``,requiredWhenField:s,requiredWhenValuesLines:c,fileExtensionsLines:(()=>{if(o!==`file`)return``;let e=r.file_extensions;return Array.isArray(e)?e.map(e=>String(e).trim().toLowerCase().replace(/^\./,``)).filter(Boolean).join(`
|
|
|
`):``})(),fileMaxCount:(()=>{if(o!==`file`)return``;let e=r.file_max_count;if(e==null||e===``)return``;let t=typeof e==`number`?e:parseInt(String(e),10);return Number.isFinite(t)&&t>=1?String(Math.floor(t)):``})()}}):[Xc(t,0)]}function Qc(e,t){return e.map(e=>{let n=e.type===it,r={key:n?`commitment_accepted`:e.key.trim(),type:n?`checkbox`:e.type,label:e.label.trim(),required:e.required};if(e.placeholder?.trim()&&(r.placeholder=e.placeholder.trim()),e.help?.trim()&&(r.help=e.help.trim()),e.titleSupplement?.trim()&&(r.title_supplement=e.titleSupplement.trim()),t===`signup`&&!n&&e.type!==`file`&&e.prefillFrom?.trim()&&(r.prefill_from=e.prefillFrom.trim()),e.type===`file`){let t=String(e.fileExtensionsLines??``).split(`
|
|
|
`).map(e=>e.trim().toLowerCase().replace(/^\./,``)).filter(Boolean);t.length&&(r.file_extensions=[...new Set(t)]);let n=parseInt(String(e.fileMaxCount??``).trim(),10);Number.isFinite(n)&&n>=1&&(r.file_max_count=n)}if(e.type===`select`&&e.options?.length&&(r.options=e.options.filter(e=>e.value!==``||e.label!==``)),t===`signup`&&!n&&e.requiredWhenField?.trim()&&e.requiredWhenValuesLines?.trim()){let t=e.requiredWhenValuesLines.split(`
|
|
|
`).map(e=>e.trim()).filter(Boolean);t.length&&(r.required_when={field:e.requiredWhenField.trim(),values:t})}return r})}function Zee(e,t){let n=new Set;for(let r of e){let e=r.key.trim();if(!e)return`存在未填写「字段 key」的项(须为英文/数字/下划线,与存储键一致)`;if(n.has(e))return`字段 key「${e}」重复`;if(n.add(e),!r.label.trim())return`字段「${e}」缺少显示标签`;if(t===`signup`){let t=r.type===`commitment_promise`?`checkbox`:r.type,n=lt(r.type===`commitment_promise`?`commitment_accepted`:e,t);if(n)return n}if(t===`signup`&&r.type!==`commitment_promise`&&r.requiredWhenField?.trim()&&!r.requiredWhenValuesLines?.trim())return`字段「${e}」填写了条件必填依赖,但未填写「当取值」列表`}return null}var Qee={class:`form-schema-visual-editor`},$c={class:`toolbar`},el={class:`field-card-row`},$ee={class:`field-card-body`},ete={class:`prefill-mapping`},tte={class:`prefill-mapping-header`},nte={class:`prefill-mapping-desc`},rte={class:`prefill-mapping-result`},ite={class:`prefill-source-label`},ate=De(ue({__name:`FormSchemaVisualEditor`,props:f({purpose:{}},{modelValue:{required:!0},modelModifiers:{}}),emits:[`update:modelValue`],setup(e){let t=e,n=pe(e,`modelValue`),r=ie(()=>t.purpose===`review`?Yee:qc);function i(){n.value=[...n.value,Xc(t.purpose,n.value.length)]}function a(e){let t=n.value[e];if(!t)return;let r={...t,__uid:globalThis.crypto?.randomUUID?.()??`f_${Date.now()}`,key:`${t.key}_copy`,label:`${t.label}(副本)`},i=[...n.value];i.splice(e+1,0,r),n.value=i}function o(e){n.value.length<=1||(n.value=n.value.filter((t,n)=>n!==e))}function l(e){e.type===`commitment_promise`?(e.key=`commitment_accepted`,e.options=[],e.prefillFrom=``,e.requiredWhenField=``,e.requiredWhenValuesLines=``,e.label.trim()||(e.label=`本人已阅读并同意《参赛承诺书》的全部内容`),e.required=!0):e.type!==`select`&&(e.options=[]),e.type===`file`&&(e.prefillFrom=``)}function d(e){return(e??[]).map(e=>`${e.label}|${e.value}`).join(`
|
|
|
`)}function f(e,t){e.options=t.split(`
|
|
|
`).map(e=>{let t=e.indexOf(`|`);if(t===-1){let t=e.trim();return t?{label:t,value:t}:null}let n=e.slice(0,t).trim(),r=e.slice(t+1).trim()||n;return n||r?{label:n||r,value:r||n}:null}).filter(e=>e!=null)}function p(e){return Jc.find(t=>t.value===e)?.label??`不设置预填`}return(t,m)=>{let h=j(`el-alert`),g=j(`el-button`),_=j(`el-option`),y=j(`el-select`),b=j(`el-col`),x=j(`el-input`),S=j(`el-tag`),w=j(`el-row`),T=j(`el-switch`),E=j(`el-card`);return _e(),be(`div`,Qee,[e.purpose===`signup`?(_e(),C(h,{key:0,type:`info`,closable:!1,class:`prefill-rule-alert`,title:`报名侧预填对照关系由后端配置`,description:`在每个报名字段中设置「预填对照关系」。选手进入报名页加载当前报名记录时,后端只会在该报名字段为空时按对照关系补值,已填写或已保存的内容不会被覆盖。`})):s(``,!0),F(`div`,$c,[v(g,{type:`primary`,onClick:i},{default:P(()=>[...m[1]||=[c(`添加字段`,-1)]]),_:1}),m[2]||=F(`span`,{class:`hint`},`拖拽左侧把手调整顺序`,-1)]),v(u(Kc.default),{modelValue:n.value,"onUpdate:modelValue":m[0]||=e=>n.value=e,"item-key":`__uid`,handle:`.drag-handle`,animation:200,tag:`div`,class:`schema-draggable-list`},{item:P(({element:t,index:i})=>[v(E,{shadow:`hover`,class:`field-card`},{default:P(()=>[F(`div`,el,[m[23]||=F(`span`,{class:`drag-handle`,title:`拖动排序`},`⠿`,-1),F(`div`,$ee,[v(w,{gutter:12},{default:P(()=>[v(b,{xs:24,sm:8},{default:P(()=>[m[3]||=F(`div`,{class:`field-label`},`类型`,-1),v(y,{modelValue:t.type,"onUpdate:modelValue":e=>t.type=e,class:`w-100`,onChange:e=>l(t)},{default:P(()=>[(_e(!0),be(se,null,k(r.value,e=>(_e(),C(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`onUpdate:modelValue`,`onChange`])]),_:2},1024),v(b,{xs:24,sm:8},{default:P(()=>[m[4]||=F(`div`,{class:`field-label`},`显示标签`,-1),v(x,{modelValue:t.label,"onUpdate:modelValue":e=>t.label=e,placeholder:`如:参赛作品名称`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),v(b,{xs:24,sm:8},{default:P(()=>[m[5]||=F(`div`,{class:`field-label`},`字段 key(英文)`,-1),v(x,{modelValue:t.key,"onUpdate:modelValue":e=>t.key=e,disabled:t.type===u(it),placeholder:`如 project_name`},null,8,[`modelValue`,`onUpdate:modelValue`,`disabled`])]),_:2},1024),v(b,{span:24},{default:P(()=>[m[6]||=F(`div`,{class:`field-label`},`标题补充`,-1),v(x,{modelValue:t.titleSupplement,"onUpdate:modelValue":e=>t.titleSupplement=e,placeholder:`可选,展示在标题后;必填项时显示在 * 后面`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),v(b,{xs:24,sm:12},{default:P(()=>[m[7]||=F(`div`,{class:`field-label`},`占位提示`,-1),v(x,{modelValue:t.placeholder,"onUpdate:modelValue":e=>t.placeholder=e,placeholder:`可选`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),v(b,{xs:24,sm:12},{default:P(()=>[m[8]||=F(`div`,{class:`field-label`},`填报说明`,-1),v(x,{modelValue:t.help,"onUpdate:modelValue":e=>t.help=e,placeholder:`可选,展示在表单项下方`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024),e.purpose===`signup`&&t.type!==`file`&&t.type!==u(`commitment_promise`)?(_e(),C(b,{key:0,span:24},{default:P(()=>[F(`div`,ete,[F(`div`,tte,[m[9]||=F(`span`,null,`预填对照关系`,-1),v(S,{size:`small`,type:t.prefillFrom?`success`:`info`,effect:`plain`},{default:P(()=>[c(N(t.prefillFrom?`已设置`:`未设置`),1)]),_:2},1032,[`type`])]),F(`p`,nte,[m[10]||=c(` 后端将报名字段 `,-1),F(`code`,null,N(t.key||`未填写 key`),1),m[11]||=c(` 对照到指定用户资料来源; 报名侧只消费后端返回值,且仅空值时补入。 `,-1)]),v(w,{gutter:12},{default:P(()=>[v(b,{xs:24,sm:12},{default:P(()=>[m[12]||=F(`div`,{class:`field-label`},`目标报名字段(schema key)`,-1),v(x,{"model-value":t.key,disabled:``,placeholder:`请先填写字段 key`},null,8,[`model-value`])]),_:2},1024),v(b,{xs:24,sm:12},{default:P(()=>[m[13]||=F(`div`,{class:`field-label`},`来源用户资料(prefill_from)`,-1),v(y,{modelValue:t.prefillFrom,"onUpdate:modelValue":e=>t.prefillFrom=e,class:`w-100`},{default:P(()=>[(_e(!0),be(se,null,k(u(Jc),e=>(_e(),C(_,{key:e.value,label:e.label,value:e.value},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)]),_:2},1024),F(`div`,rte,[m[14]||=F(`span`,null,`当前关系:`,-1),F(`code`,null,N(t.key||`报名字段 key`),1),m[15]||=F(`span`,null,` ← `,-1),F(`code`,null,N(t.prefillFrom||`未绑定来源`),1),F(`span`,ite,N(p(t.prefillFrom)),1)])])]),_:2},1024)):s(``,!0),e.purpose===`signup`&&t.type===`file`?(_e(),C(b,{key:1,span:24},{default:P(()=>[m[16]||=F(`div`,{class:`field-label`},`文件格式限制(可选)`,-1),v(x,{modelValue:t.fileExtensionsLines,"onUpdate:modelValue":e=>t.fileExtensionsLines=e,type:`textarea`,rows:2,placeholder:`每行一个扩展名(不含点),如 pdf;不填则不额外收紧(仍仅能上传系统全局允许的格式)`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):s(``,!0),e.purpose===`signup`&&t.type===`file`?(_e(),C(b,{key:2,xs:24,sm:8},{default:P(()=>[m[17]||=F(`div`,{class:`field-label`},`最多上传文件数(可选)`,-1),v(x,{modelValue:t.fileMaxCount,"onUpdate:modelValue":e=>t.fileMaxCount=e,placeholder:`不填则不限制个数`,inputmode:`numeric`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):s(``,!0),t.type===`select`?(_e(),C(b,{key:3,span:24},{default:P(()=>[m[18]||=F(`div`,{class:`field-label`},`选项(每行:显示文本|值)`,-1),v(x,{type:`textarea`,rows:4,"model-value":d(t.options),placeholder:`每行:本科|undergraduate`,onInput:e=>f(t,e)},null,8,[`model-value`,`onInput`])]),_:2},1024)):s(``,!0),e.purpose===`signup`&&t.type!==u(`commitment_promise`)?(_e(),C(b,{key:4,span:24},{default:P(()=>[m[19]||=F(`div`,{class:`field-label`},`条件必填(可选)`,-1),m[20]||=F(`p`,{class:`cond-hint`},` 当下方「依赖字段」取值为列表中任一值时,本字段视为必填(示例:企业名称依赖「参赛组别」为「创业组」)。 `,-1),v(x,{modelValue:t.requiredWhenField,"onUpdate:modelValue":e=>t.requiredWhenField=e,class:`mb-2`,placeholder:`依赖字段 key,如 entry_group`},null,8,[`modelValue`,`onUpdate:modelValue`]),v(x,{modelValue:t.requiredWhenValuesLines,"onUpdate:modelValue":e=>t.requiredWhenValuesLines=e,type:`textarea`,rows:3,placeholder:`依赖取值,每行一个,例如:
|
|
|
创业组`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:2},1024)):s(``,!0),v(b,{span:24,class:`field-actions`},{default:P(()=>[v(T,{modelValue:t.required,"onUpdate:modelValue":e=>t.required=e,"active-text":`必填`},null,8,[`modelValue`,`onUpdate:modelValue`]),v(g,{size:`small`,onClick:e=>a(i)},{default:P(()=>[...m[21]||=[c(`复制`,-1)]]),_:1},8,[`onClick`]),v(g,{size:`small`,type:`danger`,plain:``,disabled:n.value.length<=1,onClick:e=>o(i)},{default:P(()=>[...m[22]||=[c(` 删除 `,-1)]]),_:1},8,[`disabled`,`onClick`])]),_:2},1024)]),_:2},1024)])])]),_:2},1024)]),_:1},8,[`modelValue`])])}}}),[[`__scopeId`,`data-v-c5fa7cb4`]]),tl=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function ote(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function nl(e){var t={exports:{}};return e(t,t.exports),t.exports}var rl,il,al=function(e){return e&&e.Math==Math&&e},ol=al(typeof globalThis==`object`&&globalThis)||al(typeof window==`object`&&window)||al(typeof self==`object`&&self)||al(typeof tl==`object`&&tl)||function(){return this}()||Function(`return this`)(),sl=Function.prototype,cl=sl.apply,ll=sl.bind,ul=sl.call,dl=typeof Reflect==`object`&&Reflect.apply||(ll?ul.bind(cl):function(){return ul.apply(cl,arguments)}),fl=Function.prototype,pl=fl.bind,ml=fl.call,ste=pl&&pl.bind(ml),hl=pl?function(e){return e&&ste(ml,e)}:function(e){return e&&function(){return ml.apply(e,arguments)}},gl=function(e){return typeof e==`function`},_l=function(e){try{return!!e()}catch{return!0}},vl=!_l((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),yl=Function.prototype.call,bl=yl.bind?yl.bind(yl):function(){return yl.apply(yl,arguments)},xl={}.propertyIsEnumerable,Sl=Object.getOwnPropertyDescriptor,Cl={f:Sl&&!xl.call({1:2},1)?function(e){var t=Sl(this,e);return!!t&&t.enumerable}:xl},wl=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},cte=hl({}.toString),lte=hl(``.slice),Tl=function(e){return lte(cte(e),8,-1)},El=ol.Object,ute=hl(``.split),Dl=_l((function(){return!El(`z`).propertyIsEnumerable(0)}))?function(e){return Tl(e)==`String`?ute(e,``):El(e)}:El,dte=ol.TypeError,Ol=function(e){if(e==null)throw dte(`Can't call method on `+e);return e},kl=function(e){return Dl(Ol(e))},Al=function(e){return typeof e==`object`?e!==null:gl(e)},jl={},Ml=function(e){return gl(e)?e:void 0},Nl=function(e,t){return arguments.length<2?Ml(jl[e])||Ml(ol[e]):jl[e]&&jl[e][t]||ol[e]&&ol[e][t]},Pl=hl({}.isPrototypeOf),Fl=Nl(`navigator`,`userAgent`)||``,Il=ol.process,Ll=ol.Deno,Rl=Il&&Il.versions||Ll&&Ll.version,zl=Rl&&Rl.v8;zl&&(il=(rl=zl.split(`.`))[0]>0&&rl[0]<4?1:+(rl[0]+rl[1])),!il&&Fl&&(!(rl=Fl.match(/Edge\/(\d+)/))||rl[1]>=74)&&(rl=Fl.match(/Chrome\/(\d+)/))&&(il=+rl[1]);var Bl,Vl=il,Hl=!!Object.getOwnPropertySymbols&&!_l((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Vl&&Vl<41})),Ul=Hl&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Wl=ol.Object,Gl=Ul?function(e){return typeof e==`symbol`}:function(e){var t=Nl(`Symbol`);return gl(t)&&Pl(t.prototype,Wl(e))},Kl=ol.String,ql=function(e){try{return Kl(e)}catch{return`Object`}},Jl=ol.TypeError,Yl=function(e){if(gl(e))return e;throw Jl(ql(e)+` is not a function`)},Xl=function(e,t){var n=e[t];return n==null?void 0:Yl(n)},Zl=ol.TypeError,Ql=Object.defineProperty,$l=ol[`__core-js_shared__`]||function(e,t){try{Ql(ol,e,{value:t,configurable:!0,writable:!0})}catch{ol[e]=t}return t}(`__core-js_shared__`,{}),eu=nl((function(e){(e.exports=function(e,t){return $l[e]||($l[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),tu=ol.Object,nu=function(e){return tu(Ol(e))},ru=hl({}.hasOwnProperty),iu=Object.hasOwn||function(e,t){return ru(nu(e),t)},au=0,ou=Math.random(),su=hl(1 .toString),cu=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+su(++au+ou,36)},lu=eu(`wks`),uu=ol.Symbol,du=uu&&uu.for,fte=Ul?uu:uu&&uu.withoutSetter||cu,fu=function(e){if(!iu(lu,e)||!Hl&&typeof lu[e]!=`string`){var t=`Symbol.`+e;Hl&&iu(uu,e)?lu[e]=uu[e]:lu[e]=Ul&&du?du(t):fte(t)}return lu[e]},pte=ol.TypeError,mte=fu(`toPrimitive`),hte=function(e,t){if(!Al(e)||Gl(e))return e;var n,r=Xl(e,mte);if(r){if(t===void 0&&(t=`default`),n=bl(r,e,t),!Al(n)||Gl(n))return n;throw pte(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&gl(n=e.toString)&&!Al(r=bl(n,e))||gl(n=e.valueOf)&&!Al(r=bl(n,e))||t!==`string`&&gl(n=e.toString)&&!Al(r=bl(n,e)))return r;throw Zl(`Can't convert object to primitive value`)}(e,t)},pu=function(e){var t=hte(e,`string`);return Gl(t)?t:t+``},mu=ol.document,gte=Al(mu)&&Al(mu.createElement),hu=function(e){return gte?mu.createElement(e):{}},gu=!vl&&!_l((function(){return Object.defineProperty(hu(`div`),`a`,{get:function(){return 7}}).a!=7})),_u=Object.getOwnPropertyDescriptor,vu={f:vl?_u:function(e,t){if(e=kl(e),t=pu(t),gu)try{return _u(e,t)}catch{}if(iu(e,t))return wl(!bl(Cl.f,e,t),e[t])}},_te=/#|\.prototype\./,yu=function(e,t){var n=yte[vte(e)];return n==xte||n!=bte&&(gl(t)?_l(t):!!t)},vte=yu.normalize=function(e){return String(e).replace(_te,`.`).toLowerCase()},yte=yu.data={},bte=yu.NATIVE=`N`,xte=yu.POLYFILL=`P`,Ste=yu,bu=hl(hl.bind),xu=function(e,t){return Yl(e),t===void 0?e:bu?bu(e,t):function(){return e.apply(t,arguments)}},Cte=ol.String,wte=ol.TypeError,Su=function(e){if(Al(e))return e;throw wte(Cte(e)+` is not an object`)},Tte=ol.TypeError,Cu=Object.defineProperty,wu={f:vl?Cu:function(e,t,n){if(Su(e),t=pu(t),Su(n),gu)try{return Cu(e,t,n)}catch{}if(`get`in n||`set`in n)throw Tte(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Tu=vl?function(e,t,n){return wu.f(e,t,wl(1,n))}:function(e,t,n){return e[t]=n,e},Ete=vu.f,Dte=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 dl(e,this,arguments)};return t.prototype=e.prototype,t},Eu=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?ol:f?ol[u]:(ol[u]||{}).prototype,h=d?jl:jl[u]||Tu(jl,u,{})[u],g=h.prototype;for(i in t)n=!Ste(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&iu(m,i),o=h[i],n&&(s=e.noTargetGet?(l=Ete(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?xu(a,ol):e.wrap&&n?Dte(a):p&&gl(a)?hl(a):a,(e.sham||a&&a.sham||o&&o.sham)&&Tu(c,`sham`,!0),Tu(h,i,c),p&&(iu(jl,r=u+`Prototype`)||Tu(jl,r,{}),Tu(jl[r],i,a),e.real&&g&&!g[i]&&Tu(g,i,a)))},Du=eu(`keys`),Ou=function(e){return Du[e]||(Du[e]=cu(e))},Ote=!_l((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ku=Ou(`IE_PROTO`),Au=ol.Object,kte=Au.prototype,ju=Ote?Au.getPrototypeOf:function(e){var t=nu(e);if(iu(t,ku))return t[ku];var n=t.constructor;return gl(n)&&t instanceof n?n.prototype:t instanceof Au?kte:null},Ate=ol.String,jte=ol.TypeError,Mu=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=hl(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Su(n),function(e){if(typeof e==`object`||gl(e))return e;throw jte(`Can't set `+Ate(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Mte=Math.ceil,Nte=Math.floor,Nu=function(e){var t=+e;return t!=t||t===0?0:(t>0?Nte:Mte)(t)},Pte=Math.max,Fte=Math.min,Pu=function(e,t){var n=Nu(e);return n<0?Pte(n+t,0):Fte(n,t)},Ite=Math.min,Fu=function(e){return(t=e.length)>0?Ite(Nu(t),9007199254740991):0;var t},Iu=function(e){return function(t,n,r){var i,a=kl(t),o=Fu(a),s=Pu(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}},Lte={includes:Iu(!0),indexOf:Iu(!1)},Lu={},Rte=Lte.indexOf,Ru=hl([].push),zu=function(e,t){var n,r=kl(e),i=0,a=[];for(n in r)!iu(Lu,n)&&iu(r,n)&&Ru(a,n);for(;t.length>i;)iu(r,n=t[i++])&&(~Rte(a,n)||Ru(a,n));return a},Bu=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],zte=Bu.concat(`length`,`prototype`),Vu={f:Object.getOwnPropertyNames||function(e){return zu(e,zte)}},Hu={f:Object.getOwnPropertySymbols},Bte=hl([].concat),Vte=Nl(`Reflect`,`ownKeys`)||function(e){var t=Vu.f(Su(e)),n=Hu.f;return n?Bte(t,n(e)):t},Uu=Object.keys||function(e){return zu(e,Bu)},Wu=vl?Object.defineProperties:function(e,t){Su(e);for(var n,r=kl(t),i=Uu(t),a=i.length,o=0;a>o;)wu.f(e,n=i[o++],r[n]);return e},Gu=Nl(`document`,`documentElement`),Ku=Ou(`IE_PROTO`),qu=function(){},Ju=function(e){return`<script>`+e+`<\/script>`},Yu=function(e){e.write(Ju(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Xu=function(){try{Bl=new ActiveXObject(`htmlfile`)}catch{}var e,t;Xu=typeof document<`u`?document.domain&&Bl?Yu(Bl):((t=hu(`iframe`)).style.display=`none`,Gu.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Ju(`document.F=Object`)),e.close(),e.F):Yu(Bl);for(var n=Bu.length;n--;)delete Xu.prototype[Bu[n]];return Xu()};Lu[Ku]=!0;var Zu=Object.create||function(e,t){var n;return e===null?n=Xu():(qu.prototype=Su(e),n=new qu,qu.prototype=null,n[Ku]=e),t===void 0?n:Wu(n,t)},Qu=function(e,t,n){var r=pu(t);r in e?wu.f(e,r,wl(0,n)):e[r]=n},$u=ol.Array,ed=Math.max,td=function(e,t,n){for(var r=Fu(e),i=Pu(t,r),a=Pu(n===void 0?r:n,r),o=$u(ed(a-i,0)),s=0;i<a;i++,s++)Qu(o,s,e[i]);return o.length=s,o},nd=hl(``.replace),rd=hl(``.split),id=hl([].join),ad=String(Error(`zxcasd`).stack),od=/\n\s*at [^:]*:[^\n]*/,sd=od.test(ad),cd=/@[^\n]*\n/.test(ad)&&!/zxcasd/.test(ad),ld=function(e,t){if(typeof e!=`string`)return e;if(sd)for(;t--;)e=nd(e,od,``);else if(cd)return id(td(rd(e,`
|
|
|
`),t),`
|
|
|
`);return e},ud=function(e,t){Al(t)&&`cause`in t&&Tu(e,`cause`,t.cause)},dd={},fd=fu(`iterator`),pd=Array.prototype,md={};md[fu(`toStringTag`)]=`z`;var hd=String(md)===`[object z]`,gd=fu(`toStringTag`),_d=ol.Object,vd=Tl(function(){return arguments}())==`Arguments`,yd=hd?Tl: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=_d(e),gd))==`string`?n:vd?Tl(t):(r=Tl(t))==`Object`&&gl(t.callee)?`Arguments`:r},bd=fu(`iterator`),xd=function(e){if(e!=null)return Xl(e,bd)||Xl(e,`@@iterator`)||dd[yd(e)]},Hte=ol.TypeError,Sd=function(e,t,n){var r,i;Su(e);try{if(!(r=Xl(e,`return`))){if(t===`throw`)throw n;return n}r=bl(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Su(r),n},Ute=ol.TypeError,Cd=function(e,t){this.stopped=e,this.result=t},wd=Cd.prototype,Wte=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=xu(t,u),h=function(e){return r&&Sd(r,`normal`,e),new Cd(!0,e)},g=function(e){return d?(Su(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=xd(e)))throw Ute(ql(e)+` is not iterable`);if(function(e){return e!==void 0&&(dd.Array===e||pd[fd]===e)}(i)){for(a=0,o=Fu(e);o>a;a++)if((s=g(e[a]))&&Pl(wd,s))return s;return new Cd(!1)}r=function(e,t){var n=arguments.length<2?xd(e):t;if(Yl(n))return Su(bl(n,e));throw Hte(ql(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=bl(c,r)).done;){try{s=g(l.value)}catch(e){Sd(r,`throw`,e)}if(typeof s==`object`&&s&&Pl(wd,s))return s}return new Cd(!1)},Gte=ol.String,Td=function(e){if(yd(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Gte(e)},Kte=function(e,t){return e===void 0?arguments.length<2?``:t:Td(e)},qte=!_l((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,wl(1,7)),e.stack!==7)})),Jte=fu(`toStringTag`),Ed=ol.Error,Yte=[].push,Dd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=Pl(Od,this);Mu?n=Mu(new Ed(void 0),i?ju(this):Od):(n=i?this:Zu(Od),Tu(n,Jte,`Error`)),Tu(n,`message`,Kte(t,``)),qte&&Tu(n,`stack`,ld(n.stack,1)),ud(n,r);var a=[];return Wte(e,Yte,{that:a}),Tu(n,`errors`,a),n};Mu?Mu(Dd,Ed):function(e,t){for(var n=Vte(t),r=wu.f,i=vu.f,a=0;a<n.length;a++){var o=n[a];iu(e,o)||r(e,o,i(t,o))}}(Dd,Ed);var Od=Dd.prototype=Zu(Ed.prototype,{constructor:wl(1,Dd),message:wl(1,``),name:wl(1,`AggregateError`)});Eu({global:!0},{AggregateError:Dd});var Xte=hl(Function.toString);gl($l.inspectSource)||($l.inspectSource=function(e){return Xte(e)});var kd,Ad,jd,Md=$l.inspectSource,Nd=ol.WeakMap,Zte=gl(Nd)&&/native code/.test(Md(Nd)),Pd=ol.TypeError,Qte=ol.WeakMap;if(Zte||$l.state){var Fd=$l.state||=new Qte,$te=hl(Fd.get),Id=hl(Fd.has),ene=hl(Fd.set);kd=function(e,t){if(Id(Fd,e))throw new Pd(`Object already initialized`);return t.facade=e,ene(Fd,e,t),t},Ad=function(e){return $te(Fd,e)||{}},jd=function(e){return Id(Fd,e)}}else{var Ld=Ou(`state`);Lu[Ld]=!0,kd=function(e,t){if(iu(e,Ld))throw new Pd(`Object already initialized`);return t.facade=e,Tu(e,Ld,t),t},Ad=function(e){return iu(e,Ld)?e[Ld]:{}},jd=function(e){return iu(e,Ld)}}var Rd,zd,Bd,Vd={set:kd,get:Ad,has:jd,enforce:function(e){return jd(e)?Ad(e):kd(e,{})},getterFor:function(e){return function(t){var n;if(!Al(t)||(n=Ad(t)).type!==e)throw Pd(`Incompatible receiver, `+e+` required`);return n}}},Hd=Function.prototype,tne=vl&&Object.getOwnPropertyDescriptor,Ud=iu(Hd,`name`),nne={EXISTS:Ud,PROPER:Ud&&function(){}.name===`something`,CONFIGURABLE:Ud&&(!vl||vl&&tne(Hd,`name`).configurable)},Wd=function(e,t,n,r){r&&r.enumerable?e[t]=n:Tu(e,t,n)},Gd=fu(`iterator`),Kd=!1;[].keys&&(`next`in(Bd=[].keys())?(zd=ju(ju(Bd)))!==Object.prototype&&(Rd=zd):Kd=!0),Rd=Rd==null||_l((function(){var e={};return Rd[Gd].call(e)!==e}))?{}:Zu(Rd),gl(Rd[Gd])||Wd(Rd,Gd,(function(){return this}));var qd={IteratorPrototype:Rd,BUGGY_SAFARI_ITERATORS:Kd},rne=hd?{}.toString:function(){return`[object `+yd(this)+`]`},ine=wu.f,Jd=fu(`toStringTag`),Yd=function(e,t,n,r){if(e){var i=n?e:e.prototype;iu(i,Jd)||ine(i,Jd,{configurable:!0,value:t}),r&&!hd&&Tu(i,`toString`,rne)}},ane=qd.IteratorPrototype,one=function(){return this},sne=nne.PROPER,Xd=qd.BUGGY_SAFARI_ITERATORS,Zd=fu(`iterator`),cne=function(){return this},Qd=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Zu(ane,{next:wl(+!r,n)}),Yd(e,i,!1,!0),dd[i]=one})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Xd&&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[Zd]||p[`@@iterator`]||i&&p[i],h=!Xd&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=ju(g.call(new e)))!==Object.prototype&&s.next&&(Yd(s,d,!0,!0),dd[d]=cne),sne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return bl(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Xd||f||!(l in p))&&Wd(p,l,c[l]);else Eu({target:t,proto:!0,forced:Xd||f},c);return o&&p[Zd]!==h&&Wd(p,Zd,h,{name:i}),dd[t]=h,c},lne=Vd.set,une=Vd.getterFor(`Array Iterator`);Qd(Array,`Array`,(function(e,t){lne(this,{type:`Array Iterator`,target:kl(e),index:0,kind:t})}),(function(){var e=une(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`),dd.Arguments=dd.Array;var dne=hl(``.charAt),$d=hl(``.charCodeAt),fne=hl(``.slice),ef=function(e){return function(t,n){var r,i,a=Td(Ol(t)),o=Nu(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=$d(a,o))<55296||r>56319||o+1===s||(i=$d(a,o+1))<56320||i>57343?e?dne(a,o):r:e?fne(a,o,o+2):i-56320+(r-55296<<10)+65536}},pne={codeAt:ef(!1),charAt:ef(!0)}.charAt,mne=Vd.set,hne=Vd.getterFor(`String Iterator`);Qd(String,`String`,(function(e){mne(this,{type:`String Iterator`,string:Td(e),index:0})}),(function(){var e,t=hne(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=pne(n,r),t.index+=e.length,{value:e,done:!1})}));var gne=jl.AggregateError,tf=fu(`toStringTag`);for(var nf 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 rf=ol[nf],af=rf&&rf.prototype;af&&yd(af)!==tf&&Tu(af,tf,nf),dd[nf]=dd.Array}var of,sf,_ne=gne,cf=function(e){return e&&e.Math==Math&&e},lf=cf(typeof globalThis==`object`&&globalThis)||cf(typeof window==`object`&&window)||cf(typeof self==`object`&&self)||cf(typeof tl==`object`&&tl)||function(){return this}()||Function(`return this`)(),uf=function(e){try{return!!e()}catch{return!0}},df=!uf((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),ff=Function.prototype.call,pf=ff.bind?ff.bind(ff):function(){return ff.apply(ff,arguments)},mf={}.propertyIsEnumerable,hf=Object.getOwnPropertyDescriptor,vne={f:hf&&!mf.call({1:2},1)?function(e){var t=hf(this,e);return!!t&&t.enumerable}:mf},gf=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_f=Function.prototype,vf=_f.bind,yf=_f.call,yne=vf&&vf.bind(yf),bf=vf?function(e){return e&&yne(yf,e)}:function(e){return e&&function(){return yf.apply(e,arguments)}},bne=bf({}.toString),xne=bf(``.slice),xf=function(e){return xne(bne(e),8,-1)},Sf=lf.Object,Sne=bf(``.split),Cf=uf((function(){return!Sf(`z`).propertyIsEnumerable(0)}))?function(e){return xf(e)==`String`?Sne(e,``):Sf(e)}:Sf,Cne=lf.TypeError,wf=function(e){if(e==null)throw Cne(`Can't call method on `+e);return e},Tf=function(e){return Cf(wf(e))},Ef=function(e){return typeof e==`function`},Df=function(e){return typeof e==`object`?e!==null:Ef(e)},wne=function(e){return Ef(e)?e:void 0},Of=function(e,t){return arguments.length<2?wne(lf[e]):lf[e]&&lf[e][t]},kf=bf({}.isPrototypeOf),Af=Of(`navigator`,`userAgent`)||``,jf=lf.process,Mf=lf.Deno,Nf=jf&&jf.versions||Mf&&Mf.version,Pf=Nf&&Nf.v8;Pf&&(sf=(of=Pf.split(`.`))[0]>0&&of[0]<4?1:+(of[0]+of[1])),!sf&&Af&&(!(of=Af.match(/Edge\/(\d+)/))||of[1]>=74)&&(of=Af.match(/Chrome\/(\d+)/))&&(sf=+of[1]);var Ff=sf,If=!!Object.getOwnPropertySymbols&&!uf((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Ff&&Ff<41})),Lf=If&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Tne=lf.Object,Rf=Lf?function(e){return typeof e==`symbol`}:function(e){var t=Of(`Symbol`);return Ef(t)&&kf(t.prototype,Tne(e))},Ene=lf.String,zf=function(e){try{return Ene(e)}catch{return`Object`}},Dne=lf.TypeError,Bf=function(e){if(Ef(e))return e;throw Dne(zf(e)+` is not a function`)},Vf=function(e,t){var n=e[t];return n==null?void 0:Bf(n)},One=lf.TypeError,kne=Object.defineProperty,Hf=function(e,t){try{kne(lf,e,{value:t,configurable:!0,writable:!0})}catch{lf[e]=t}return t},Uf=lf[`__core-js_shared__`]||Hf(`__core-js_shared__`,{}),Wf=nl((function(e){(e.exports=function(e,t){return Uf[e]||(Uf[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ane=lf.Object,Gf=function(e){return Ane(wf(e))},jne=bf({}.hasOwnProperty),Kf=Object.hasOwn||function(e,t){return jne(Gf(e),t)},Mne=0,Nne=Math.random(),Pne=bf(1 .toString),qf=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Pne(++Mne+Nne,36)},Jf=Wf(`wks`),Yf=lf.Symbol,Xf=Yf&&Yf.for,Fne=Lf?Yf:Yf&&Yf.withoutSetter||qf,Zf=function(e){if(!Kf(Jf,e)||!If&&typeof Jf[e]!=`string`){var t=`Symbol.`+e;If&&Kf(Yf,e)?Jf[e]=Yf[e]:Jf[e]=Lf&&Xf?Xf(t):Fne(t)}return Jf[e]},Ine=lf.TypeError,Lne=Zf(`toPrimitive`),Rne=function(e,t){if(!Df(e)||Rf(e))return e;var n,r=Vf(e,Lne);if(r){if(t===void 0&&(t=`default`),n=pf(r,e,t),!Df(n)||Rf(n))return n;throw Ine(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Ef(n=e.toString)&&!Df(r=pf(n,e))||Ef(n=e.valueOf)&&!Df(r=pf(n,e))||t!==`string`&&Ef(n=e.toString)&&!Df(r=pf(n,e)))return r;throw One(`Can't convert object to primitive value`)}(e,t)},Qf=function(e){var t=Rne(e,`string`);return Rf(t)?t:t+``},$f=lf.document,zne=Df($f)&&Df($f.createElement),ep=function(e){return zne?$f.createElement(e):{}},tp=!df&&!uf((function(){return Object.defineProperty(ep(`div`),`a`,{get:function(){return 7}}).a!=7})),np=Object.getOwnPropertyDescriptor,rp={f:df?np:function(e,t){if(e=Tf(e),t=Qf(t),tp)try{return np(e,t)}catch{}if(Kf(e,t))return gf(!pf(vne.f,e,t),e[t])}},Bne=lf.String,Vne=lf.TypeError,ip=function(e){if(Df(e))return e;throw Vne(Bne(e)+` is not an object`)},Hne=lf.TypeError,ap=Object.defineProperty,op={f:df?ap:function(e,t,n){if(ip(e),t=Qf(t),ip(n),tp)try{return ap(e,t,n)}catch{}if(`get`in n||`set`in n)throw Hne(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},sp=df?function(e,t,n){return op.f(e,t,gf(1,n))}:function(e,t,n){return e[t]=n,e},Une=bf(Function.toString);Ef(Uf.inspectSource)||(Uf.inspectSource=function(e){return Une(e)});var cp,lp,up,dp=Uf.inspectSource,fp=lf.WeakMap,Wne=Ef(fp)&&/native code/.test(dp(fp)),pp=Wf(`keys`),mp=function(e){return pp[e]||(pp[e]=qf(e))},hp={},gp=lf.TypeError,Gne=lf.WeakMap;if(Wne||Uf.state){var _p=Uf.state||=new Gne,Kne=bf(_p.get),vp=bf(_p.has),qne=bf(_p.set);cp=function(e,t){if(vp(_p,e))throw new gp(`Object already initialized`);return t.facade=e,qne(_p,e,t),t},lp=function(e){return Kne(_p,e)||{}},up=function(e){return vp(_p,e)}}else{var yp=mp(`state`);hp[yp]=!0,cp=function(e,t){if(Kf(e,yp))throw new gp(`Object already initialized`);return t.facade=e,sp(e,yp,t),t},lp=function(e){return Kf(e,yp)?e[yp]:{}},up=function(e){return Kf(e,yp)}}var bp={set:cp,get:lp,has:up,enforce:function(e){return up(e)?lp(e):cp(e,{})},getterFor:function(e){return function(t){var n;if(!Df(t)||(n=lp(t)).type!==e)throw gp(`Incompatible receiver, `+e+` required`);return n}}},xp=Function.prototype,Jne=df&&Object.getOwnPropertyDescriptor,Sp=Kf(xp,`name`),Cp={EXISTS:Sp,PROPER:Sp&&function(){}.name===`something`,CONFIGURABLE:Sp&&(!df||df&&Jne(xp,`name`).configurable)},wp=nl((function(e){var t=Cp.CONFIGURABLE,n=bp.get,r=bp.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;Ef(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Kf(a,`name`)||t&&a.name!==d)&&sp(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===lf?l?e[n]=a:Hf(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:sp(e,n,a))})(Function.prototype,`toString`,(function(){return Ef(this)&&n(this).source||dp(this)}))})),Yne=Math.ceil,Xne=Math.floor,Tp=function(e){var t=+e;return t!=t||t===0?0:(t>0?Xne:Yne)(t)},Zne=Math.max,Qne=Math.min,Ep=function(e,t){var n=Tp(e);return n<0?Zne(n+t,0):Qne(n,t)},$ne=Math.min,Dp=function(e){return e>0?$ne(Tp(e),9007199254740991):0},Op=function(e){return Dp(e.length)},kp=function(e){return function(t,n,r){var i,a=Tf(t),o=Op(a),s=Ep(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}},ere={includes:kp(!0),indexOf:kp(!1)}.indexOf,Ap=bf([].push),jp=function(e,t){var n,r=Tf(e),i=0,a=[];for(n in r)!Kf(hp,n)&&Kf(r,n)&&Ap(a,n);for(;t.length>i;)Kf(r,n=t[i++])&&(~ere(a,n)||Ap(a,n));return a},Mp=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],tre=Mp.concat(`length`,`prototype`),nre={f:Object.getOwnPropertyNames||function(e){return jp(e,tre)}},rre={f:Object.getOwnPropertySymbols},ire=bf([].concat),are=Of(`Reflect`,`ownKeys`)||function(e){var t=nre.f(ip(e)),n=rre.f;return n?ire(t,n(e)):t},Np=function(e,t){for(var n=are(t),r=op.f,i=rp.f,a=0;a<n.length;a++){var o=n[a];Kf(e,o)||r(e,o,i(t,o))}},ore=/#|\.prototype\./,Pp=function(e,t){var n=cre[sre(e)];return n==ure||n!=lre&&(Ef(t)?uf(t):!!t)},sre=Pp.normalize=function(e){return String(e).replace(ore,`.`).toLowerCase()},cre=Pp.data={},lre=Pp.NATIVE=`N`,ure=Pp.POLYFILL=`P`,dre=Pp,fre=rp.f,Fp=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?lf:l?lf[s]||Hf(s,{}):(lf[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=fre(n,r))&&o.value:n[r],!dre(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Np(a,i)}(e.sham||i&&i.sham)&&sp(a,`sham`,!0),wp(n,r,a,e)}},Ip={};Ip[Zf(`toStringTag`)]=`z`;var Lp,Rp=String(Ip)===`[object z]`,pre=Zf(`toStringTag`),mre=lf.Object,hre=xf(function(){return arguments}())==`Arguments`,zp=Rp?xf: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=mre(e),pre))==`string`?n:hre?xf(t):(r=xf(t))==`Object`&&Ef(t.callee)?`Arguments`:r},gre=lf.String,Bp=function(e){if(zp(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return gre(e)},_re=function(){var e=ip(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},Vp=lf.RegExp,Hp=uf((function(){var e=Vp(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),vre=Hp||uf((function(){return!Vp(`a`,`y`).sticky})),yre={BROKEN_CARET:Hp||uf((function(){var e=Vp(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:vre,UNSUPPORTED_Y:Hp},bre=Object.keys||function(e){return jp(e,Mp)},xre=df?Object.defineProperties:function(e,t){ip(e);for(var n,r=Tf(t),i=bre(t),a=i.length,o=0;a>o;)op.f(e,n=i[o++],r[n]);return e},Sre=Of(`document`,`documentElement`),Up=mp(`IE_PROTO`),Wp=function(){},Gp=function(e){return`<script>`+e+`<\/script>`},Kp=function(e){e.write(Gp(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qp=function(){try{Lp=new ActiveXObject(`htmlfile`)}catch{}var e,t;qp=typeof document<`u`?document.domain&&Lp?Kp(Lp):((t=ep(`iframe`)).style.display=`none`,Sre.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Gp(`document.F=Object`)),e.close(),e.F):Kp(Lp);for(var n=Mp.length;n--;)delete qp.prototype[Mp[n]];return qp()};hp[Up]=!0;var Jp,Yp,Xp=Object.create||function(e,t){var n;return e===null?n=qp():(Wp.prototype=ip(e),n=new Wp,Wp.prototype=null,n[Up]=e),t===void 0?n:xre(n,t)},Cre=lf.RegExp,Zp=uf((function(){var e=Cre(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),Qp=lf.RegExp,$p=uf((function(){var e=Qp(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),wre=bp.get,Tre=Wf(`native-string-replace`,String.prototype.replace),em=RegExp.prototype.exec,tm=em,nm=bf(``.charAt),rm=bf(``.indexOf),Ere=bf(``.replace),im=bf(``.slice),am=(Yp=/b*/g,pf(em,Jp=/a/,`a`),pf(em,Yp,`a`),Jp.lastIndex!==0||Yp.lastIndex!==0),om=yre.BROKEN_CARET,sm=/()??/.exec(``)[1]!==void 0;(am||sm||om||Zp||$p)&&(tm=function(e){var t,n,r,i,a,o,s,c=this,l=wre(c),u=Bp(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=pf(tm,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=om&&c.sticky,m=pf(_re,c),h=c.source,g=0,_=u;if(p&&(m=Ere(m,`y`,``),rm(m,`g`)===-1&&(m+=`g`),_=im(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&nm(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),sm&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),am&&(r=c.lastIndex),i=pf(em,p?n:c,_),p?i?(i.input=im(i.input,g),i[0]=im(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:am&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),sm&&i&&i.length>1&&pf(Tre,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=Xp(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var cm=tm;Fp({target:`RegExp`,proto:!0,forced:/./.exec!==cm},{exec:cm});var Dre=Zf(`species`),lm=RegExp.prototype,Ore=bf(``.charAt),um=bf(``.charCodeAt),dm=bf(``.slice),fm=function(e){return function(t,n){var r,i,a=Bp(wf(t)),o=Tp(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=um(a,o))<55296||r>56319||o+1===s||(i=um(a,o+1))<56320||i>57343?e?Ore(a,o):r:e?dm(a,o,o+2):i-56320+(r-55296<<10)+65536}},pm={codeAt:fm(!1),charAt:fm(!0)},mm=pm.charAt,hm=function(e,t,n){return t+(n?mm(e,t).length:1)},gm=lf.TypeError,_m=function(e,t){var n=e.exec;if(Ef(n)){var r=pf(n,e,t);return r!==null&&ip(r),r}if(xf(e)===`RegExp`)return pf(cm,e,t);throw gm(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Zf(e),a=!uf((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!uf((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Dre]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=bf(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=bf(e),c=t.exec;return c===cm||c===lm.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));wp(String.prototype,e,c[0]),wp(lm,i,c[1])}r&&sp(lm[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=wf(this),r=t==null?void 0:Vf(t,e);return r?pf(r,t,n):new RegExp(t)[e](Bp(n))},function(e){var r=ip(this),i=Bp(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return _m(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=_m(r,i))!==null;){var u=Bp(s[0]);c[l]=u,u===``&&(r.lastIndex=hm(i,Dp(r.lastIndex),o)),l++}return l===0?null:c}]})),Fp({global:!0},{globalThis:lf});var vm=!uf((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),ym=mp(`IE_PROTO`),bm=lf.Object,kre=bm.prototype,xm=vm?bm.getPrototypeOf:function(e){var t=Gf(e);if(Kf(t,ym))return t[ym];var n=t.constructor;return Ef(n)&&t instanceof n?n.prototype:t instanceof bm?kre:null},Are=lf.String,jre=lf.TypeError,Sm=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=bf(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return ip(n),function(e){if(typeof e==`object`||Ef(e))return e;throw jre(`Can't set `+Are(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Mre=lf.Array,Nre=Math.max,Pre=bf(``.replace),Fre=bf(``.split),Ire=bf([].join),Cm=String(Error(`zxcasd`).stack),wm=/\n\s*at [^:]*:[^\n]*/,Lre=wm.test(Cm),Rre=/@[^\n]*\n/.test(Cm)&&!/zxcasd/.test(Cm),zre=function(e,t){if(typeof e!=`string`)return e;if(Lre)for(;t--;)e=Pre(e,wm,``);else if(Rre)return Ire(function(e,t,n){for(var r,i,a,o,s=Op(e),c=Ep(t,s),l=Ep(n===void 0?s:n,s),u=Mre(Nre(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=Qf(i))in r?op.f(r,o,gf(0,a)):r[o]=a;return u.length=d,u}(Fre(e,`
|
|
|
`),t),`
|
|
|
`);return e},Bre=function(e,t){Df(t)&&`cause`in t&&sp(e,`cause`,t.cause)},Tm=bf(bf.bind),Em=function(e,t){return Bf(e),t===void 0?e:Tm?Tm(e,t):function(){return e.apply(t,arguments)}},Dm={},Om=Zf(`iterator`),km=Array.prototype,Am=Zf(`iterator`),jm=function(e){if(e!=null)return Vf(e,Am)||Vf(e,`@@iterator`)||Dm[zp(e)]},Mm=lf.TypeError,Nm=function(e,t,n){var r,i;ip(e);try{if(!(r=Vf(e,`return`))){if(t===`throw`)throw n;return n}r=pf(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return ip(r),n},Pm=lf.TypeError,Fm=function(e,t){this.stopped=e,this.result=t},Im=Fm.prototype,Lm=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=Em(t,u),h=function(e){return r&&Nm(r,`normal`,e),new Fm(!0,e)},g=function(e){return d?(ip(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=jm(e)))throw Pm(zf(e)+` is not iterable`);if(function(e){return e!==void 0&&(Dm.Array===e||km[Om]===e)}(i)){for(a=0,o=Op(e);o>a;a++)if((s=g(e[a]))&&kf(Im,s))return s;return new Fm(!1)}r=function(e,t){var n=arguments.length<2?jm(e):t;if(Bf(n))return ip(pf(n,e));throw Mm(zf(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=pf(c,r)).done;){try{s=g(l.value)}catch(e){Nm(r,`throw`,e)}if(typeof s==`object`&&s&&kf(Im,s))return s}return new Fm(!1)},Vre=function(e,t){return e===void 0?arguments.length<2?``:t:Bp(e)},Hre=!uf((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,`stack`,gf(1,7)),e.stack!==7)})),Ure=Zf(`toStringTag`),Rm=lf.Error,Wre=[].push,zm=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=kf(Bm,this);Sm?n=Sm(new Rm(void 0),i?xm(this):Bm):(n=i?this:Xp(Bm),sp(n,Ure,`Error`)),sp(n,`message`,Vre(t,``)),Hre&&sp(n,`stack`,zre(n.stack,1)),Bre(n,r);var a=[];return Lm(e,Wre,{that:a}),sp(n,`errors`,a),n};Sm?Sm(zm,Rm):Np(zm,Rm);var Bm=zm.prototype=Xp(Rm.prototype,{constructor:gf(1,zm),message:gf(1,``),name:gf(1,`AggregateError`)});Fp({global:!0},{AggregateError:zm});var Vm=Zf(`unscopables`),Hm=Array.prototype;Hm[Vm]??op.f(Hm,Vm,{configurable:!0,value:Xp(null)});var Um,Wm,Gm,Km=function(e){Hm[Vm][e]=!0},qm=Zf(`iterator`),Jm=!1;[].keys&&(`next`in(Gm=[].keys())?(Wm=xm(xm(Gm)))!==Object.prototype&&(Um=Wm):Jm=!0),(Um==null||uf((function(){var e={};return Um[qm].call(e)!==e})))&&(Um={}),Ef(Um[qm])||wp(Um,qm,(function(){return this}));var Ym={IteratorPrototype:Um,BUGGY_SAFARI_ITERATORS:Jm},Gre=op.f,Xm=Zf(`toStringTag`),Zm=function(e,t,n){e&&!Kf(e=n?e:e.prototype,Xm)&&Gre(e,Xm,{configurable:!0,value:t})},Kre=Ym.IteratorPrototype,qre=function(){return this},Jre=Cp.PROPER,Yre=Cp.CONFIGURABLE,Qm=Ym.IteratorPrototype,$m=Ym.BUGGY_SAFARI_ITERATORS,eh=Zf(`iterator`),Xre=function(){return this},th=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Xp(Kre,{next:gf(+!r,n)}),Zm(e,i,!1),Dm[i]=qre})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!$m&&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[eh]||p[`@@iterator`]||i&&p[i],h=!$m&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=xm(g.call(new e)))!==Object.prototype&&s.next&&(xm(s)!==Qm&&(Sm?Sm(s,Qm):Ef(s[eh])||wp(s,eh,Xre)),Zm(s,d,!0)),Jre&&i==`values`&&m&&m.name!==`values`&&(Yre?sp(p,`name`,`values`):(f=!0,h=function(){return pf(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)($m||f||!(l in p))&&wp(p,l,c[l]);else Fp({target:t,proto:!0,forced:$m||f},c);return p[eh]!==h&&wp(p,eh,h,{name:i}),Dm[t]=h,c},Zre=bp.set,Qre=bp.getterFor(`Array Iterator`),nh=th(Array,`Array`,(function(e,t){Zre(this,{type:`Array Iterator`,target:Tf(e),index:0,kind:t})}),(function(){var e=Qre(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`);Dm.Arguments=Dm.Array,Km(`keys`),Km(`values`),Km(`entries`);var $re=pm.charAt,eie=bp.set,tie=bp.getterFor(`String Iterator`);th(String,`String`,(function(e){eie(this,{type:`String Iterator`,string:Bp(e),index:0})}),(function(){var e,t=tie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=$re(n,r),t.index+=e.length,{value:e,done:!1})}));var rh,ih={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},ah=ep(`span`).classList,oh=ah&&ah.constructor&&ah.constructor.prototype,sh=oh===Object.prototype?void 0:oh,ch=Zf(`iterator`),lh=Zf(`toStringTag`),uh=nh.values,dh=function(e,t){if(e){if(e[ch]!==uh)try{sp(e,ch,uh)}catch{e[ch]=uh}if(e[lh]||sp(e,lh,t),ih[t]){for(var n in nh)if(e[n]!==nh[n])try{sp(e,n,nh[n])}catch{e[n]=nh[n]}}}};for(var fh in ih)dh(lf[fh]&&lf[fh].prototype,fh);dh(sh,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
|
|
|
Sorry, wangEditor V5+ versions do not support IE browser.`),ph(),mh()):global&&(rh=global.navigator)!=null&&rh.userAgent.match(`QQBrowser`)&&(ph(),mh());function ph(){typeof globalThis>`u`&&(window.globalThis=window)}function mh(){_ne===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var hh,gh=Array.isArray||function(e){return Tl(e)==`Array`},_h=function(){},nie=[],vh=Nl(`Reflect`,`construct`),yh=/^\s*(?:class|function)\b/,rie=hl(yh.exec),iie=!yh.exec(_h),bh=function(e){if(!gl(e))return!1;try{return vh(_h,nie,e),!0}catch{return!1}},aie=!vh||_l((function(){var e;return bh(bh.call)||!bh(Object)||!bh((function(){e=!0}))||e}))?function(e){if(!gl(e))return!1;switch(yd(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return iie||!!rie(yh,Md(e))}:bh,oie=fu(`species`),xh=ol.Array,Sh=function(e,t){return new(function(e){var t;return gh(e)&&(t=e.constructor,(aie(t)&&(t===xh||gh(t.prototype))||Al(t)&&(t=t[oie])===null)&&(t=void 0)),t===void 0?xh:t}(e))(t===0?0:t)},sie=fu(`species`),Ch=fu(`isConcatSpreadable`),wh=ol.TypeError,cie=Vl>=51||!_l((function(){var e=[];return e[Ch]=!1,e.concat()[0]!==e})),lie=(hh=`concat`,Vl>=51||!_l((function(){var e=[];return(e.constructor={})[sie]=function(){return{foo:1}},e[hh](Boolean).foo!==1}))),uie=function(e){if(!Al(e))return!1;var t=e[Ch];return t===void 0?gh(e):!!t};Eu({target:`Array`,proto:!0,forced:!cie||!lie},{concat:function(e){var t,n,r,i,a,o=nu(this),s=Sh(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(uie(a=t===-1?o:arguments[t])){if(c+(i=Fu(a))>9007199254740991)throw wh(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Qu(s,c,a[n])}else{if(c>=9007199254740991)throw wh(`Maximum allowed index exceeded`);Qu(s,c++,a)}return s.length=c,s}});var Th=Vu.f,Eh=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Dh={f:function(e){return Eh&&Tl(e)==`Window`?function(e){try{return Th(e)}catch{return td(Eh)}}(e):Th(kl(e))}},die=hl([].slice),Oh={f:fu},fie=wu.f,kh=function(e){var t=jl.Symbol||={};iu(t,e)||fie(t,e,{value:Oh.f(e)})},Ah=hl([].push),jh=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=nu(c),h=Dl(m),g=xu(l,u),_=Fu(h),v=0,y=d||Sh,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:Ah(b,f)}else switch(e){case 4:return!1;case 7:Ah(b,f)}return a?-1:r||i?i:b}},Mh={forEach:jh(0),map:jh(1),filter:jh(2),some:jh(3),every:jh(4),find:jh(5),findIndex:jh(6),filterReject:jh(7)}.forEach,Nh=Ou(`hidden`),Ph=fu(`toPrimitive`),pie=Vd.set,Fh=Vd.getterFor(`Symbol`),Ih=Object.prototype,Lh=ol.Symbol,Rh=Lh&&Lh.prototype,zh=ol.TypeError,Bh=ol.QObject,Vh=Nl(`JSON`,`stringify`),Hh=vu.f,Uh=wu.f,Wh=Dh.f,mie=Cl.f,Gh=hl([].push),Kh=eu(`symbols`),qh=eu(`op-symbols`),Jh=eu(`string-to-symbol-registry`),Yh=eu(`symbol-to-string-registry`),hie=eu(`wks`),Xh=!Bh||!Bh.prototype||!Bh.prototype.findChild,Zh=vl&&_l((function(){return Zu(Uh({},`a`,{get:function(){return Uh(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Hh(Ih,t);r&&delete Ih[t],Uh(e,t,n),r&&e!==Ih&&Uh(Ih,t,r)}:Uh,Qh=function(e,t){var n=Kh[e]=Zu(Rh);return pie(n,{type:`Symbol`,tag:e,description:t}),vl||(n.description=t),n},$h=function(e,t,n){e===Ih&&$h(qh,t,n),Su(e);var r=pu(t);return Su(n),iu(Kh,r)?(n.enumerable?(iu(e,Nh)&&e[Nh][r]&&(e[Nh][r]=!1),n=Zu(n,{enumerable:wl(0,!1)})):(iu(e,Nh)||Uh(e,Nh,wl(1,{})),e[Nh][r]=!0),Zh(e,r,n)):Uh(e,r,n)},eg=function(e,t){Su(e);var n=kl(t);return Mh(Uu(n).concat(ig(n)),(function(t){vl&&!bl(tg,n,t)||$h(e,t,n[t])})),e},tg=function(e){var t=pu(e),n=bl(mie,this,t);return!(this===Ih&&iu(Kh,t)&&!iu(qh,t))&&(!(n||!iu(this,t)||!iu(Kh,t)||iu(this,Nh)&&this[Nh][t])||n)},ng=function(e,t){var n=kl(e),r=pu(t);if(n!==Ih||!iu(Kh,r)||iu(qh,r)){var i=Hh(n,r);return!i||!iu(Kh,r)||iu(n,Nh)&&n[Nh][r]||(i.enumerable=!0),i}},rg=function(e){var t=Wh(kl(e)),n=[];return Mh(t,(function(e){iu(Kh,e)||iu(Lu,e)||Gh(n,e)})),n},ig=function(e){var t=e===Ih,n=Wh(t?qh:kl(e)),r=[];return Mh(n,(function(e){!iu(Kh,e)||t&&!iu(Ih,e)||Gh(r,Kh[e])})),r};if(Hl||(Rh=(Lh=function(){if(Pl(Rh,this))throw zh(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Td(arguments[0]):void 0,t=cu(e),n=function(e){this===Ih&&bl(n,qh,e),iu(this,Nh)&&iu(this[Nh],t)&&(this[Nh][t]=!1),Zh(this,t,wl(1,e))};return vl&&Xh&&Zh(Ih,t,{configurable:!0,set:n}),Qh(t,e)}).prototype,Wd(Rh,`toString`,(function(){return Fh(this).tag})),Wd(Lh,`withoutSetter`,(function(e){return Qh(cu(e),e)})),Cl.f=tg,wu.f=$h,vu.f=ng,Vu.f=Dh.f=rg,Hu.f=ig,Oh.f=function(e){return Qh(fu(e),e)},vl&&Uh(Rh,`description`,{configurable:!0,get:function(){return Fh(this).description}})),Eu({global:!0,wrap:!0,forced:!Hl,sham:!Hl},{Symbol:Lh}),Mh(Uu(hie),(function(e){kh(e)})),Eu({target:`Symbol`,stat:!0,forced:!Hl},{for:function(e){var t=Td(e);if(iu(Jh,t))return Jh[t];var n=Lh(t);return Jh[t]=n,Yh[n]=t,n},keyFor:function(e){if(!Gl(e))throw zh(e+` is not a symbol`);if(iu(Yh,e))return Yh[e]},useSetter:function(){Xh=!0},useSimple:function(){Xh=!1}}),Eu({target:`Object`,stat:!0,forced:!Hl,sham:!vl},{create:function(e,t){return t===void 0?Zu(e):eg(Zu(e),t)},defineProperty:$h,defineProperties:eg,getOwnPropertyDescriptor:ng}),Eu({target:`Object`,stat:!0,forced:!Hl},{getOwnPropertyNames:rg,getOwnPropertySymbols:ig}),Eu({target:`Object`,stat:!0,forced:_l((function(){Hu.f(1)}))},{getOwnPropertySymbols:function(e){return Hu.f(nu(e))}}),Vh&&Eu({target:`JSON`,stat:!0,forced:!Hl||_l((function(){var e=Lh();return Vh([e])!=`[null]`||Vh({a:e})!=`{}`||Vh(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=die(arguments),i=t;if((Al(t)||e!==void 0)&&!Gl(e))return gh(t)||(t=function(e,t){if(gl(i)&&(t=bl(i,this,e,t)),!Gl(t))return t}),r[1]=t,dl(Vh,null,r)}}),!Rh[Ph]){var gie=Rh.valueOf;Wd(Rh,Ph,(function(e){return bl(gie,this)}))}Yd(Lh,`Symbol`),Lu[Nh]=!0,kh(`asyncIterator`),kh(`hasInstance`),kh(`isConcatSpreadable`),kh(`iterator`),kh(`match`),kh(`matchAll`),kh(`replace`),kh(`search`),kh(`species`),kh(`split`),kh(`toPrimitive`),kh(`toStringTag`),kh(`unscopables`),Yd(ol.JSON,`JSON`,!0);var _ie=jl.Symbol;kh(`asyncDispose`),kh(`dispose`),kh(`matcher`),kh(`metadata`),kh(`observable`),kh(`patternMatch`),kh(`replaceAll`);var ag=_ie,vie=Oh.f(`iterator`),yie=ote(nl((function(e){function t(n){return typeof ag==`function`&&typeof vie==`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 ag==`function`&&e.constructor===ag&&e!==ag.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}))),og=rp.f,bie=uf((function(){og(1)}));if(Fp({target:`Object`,stat:!0,forced:!df||bie,sham:!df},{getOwnPropertyDescriptor:function(e,t){return og(Tf(e),t)}}),(typeof global>`u`?`undefined`:yie(global))===`object`){var xie=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!xie.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 sg(e){return Object.prototype.toString.call(e)===`[object Object]`}function cg(e){var t,n;return!1!==sg(e)&&((t=e.constructor)===void 0||!1!==sg(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function lg(e){var t=[...arguments].slice(1);throw Error(`[Immer] minified error nr: `+e+(t.length?` `+t.map((function(e){return`'`+e+`'`})).join(`,`):``)+`. Find the full error at: https://bit.ly/3cXEKWf`)}function ug(e){return!!e&&!!e[Yg]}function dg(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)===Xg}(e)||Array.isArray(e)||!!e[Jg]||!!e.constructor[Jg]||gg(e)||_g(e))}function fg(e,t,n){n===void 0&&(n=!1),pg(e)===0?(n?Object.keys:Zg)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function pg(e){var t=e[Yg];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:gg(e)?2:_g(e)?3:0}function mg(e,t){return pg(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function hg(e,t,n){var r=pg(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function gg(e){return Wg&&e instanceof Map}function _g(e){return Gg&&e instanceof Set}function vg(e){return e.o||e.t}function yg(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Qg(e);delete t[Yg];for(var n=Zg(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 bg(e,t){return t===void 0&&(t=!1),Sg(e)||ug(e)||!dg(e)||(pg(e)>1&&(e.set=e.add=e.clear=e.delete=xg),Object.freeze(e),t&&fg(e,(function(e,t){return bg(t,!0)}),!0)),e}function xg(){lg(2)}function Sg(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Cg(e){var t=$g[e];return t||lg(18,e),t}function wg(){return Hg}function Tg(e,t){t&&(Cg(`Patches`),e.u=[],e.s=[],e.v=t)}function Eg(e){Dg(e),e.p.forEach(kg),e.p=null}function Dg(e){e===Hg&&(Hg=e.l)}function Og(e){return Hg={p:[],l:Hg,h:e,m:!0,_:0}}function kg(e){var t=e[Yg];t.i===0||t.i===1?t.j():t.O=!0}function Ag(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Cg(`ES5`).S(t,e,r),r?(n[Yg].P&&(Eg(t),lg(4)),dg(e)&&(e=jg(t,e),t.l||Ng(t,e)),t.u&&Cg(`Patches`).M(n[Yg],e,t.u,t.s)):e=jg(t,n,[]),Eg(t),t.u&&t.v(t.u,t.s),e===qg?void 0:e}function jg(e,t,n){if(Sg(t))return t;var r=t[Yg];if(!r)return fg(t,(function(i,a){return Mg(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Ng(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=yg(r.k):r.o;fg(r.i===3?new Set(i):i,(function(t,a){return Mg(e,r,i,t,a,n)})),Ng(e,i,!1),n&&e.u&&Cg(`Patches`).R(r,n,e.u,e.s)}return r.o}function Mg(e,t,n,r,i,a){if(ug(i)){var o=jg(e,i,a&&t&&t.i!==3&&!mg(t.D,r)?a.concat(r):void 0);if(hg(n,r,o),!ug(o))return;e.m=!1}if(dg(i)&&!Sg(i)){if(!e.h.F&&e._<1)return;jg(e,i),t&&t.A.l||Ng(e,i)}}function Ng(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&bg(t,n)}function Pg(e,t){var n=e[Yg];return(n?vg(n):e)[t]}function Fg(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 Ig(e){e.P||(e.P=!0,e.l&&Ig(e.l))}function Lg(e){e.o||=yg(e.t)}function Rg(e,t,n){var r=gg(t)?Cg(`MapSet`).N(t,n):_g(t)?Cg(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:wg(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=e_;n&&(i=[r],a=t_);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Cg(`ES5`).J(t,n);return(n?n.A:wg()).p.push(r),r}function zg(e){return ug(e)||lg(22,e),function e(t){if(!dg(t))return t;var n,r=t[Yg],i=pg(t);if(r){if(!r.P&&(r.i<4||!Cg(`ES5`).K(r)))return r.t;r.I=!0,n=Bg(t,i),r.I=!1}else n=Bg(t,i);return fg(n,(function(t,i){r&&function(e,t){return pg(e)===2?e.get(t):e[t]}(r.t,t)===i||hg(n,t,e(i))})),i===3?new Set(n):n}(e)}function Bg(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yg(e)}var Vg,Hg,Ug=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Wg=typeof Map<`u`,Gg=typeof Set<`u`,Kg=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,qg=Ug?Symbol.for(`immer-nothing`):((Vg={})[`immer-nothing`]=!0,Vg),Jg=Ug?Symbol.for(`immer-draftable`):`__$immer_draftable`,Yg=Ug?Symbol.for(`immer-state`):`__$immer_state`,Xg=``+Object.prototype.constructor,Zg=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Qg=Object.getOwnPropertyDescriptors||function(e){var t={};return Zg(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},$g={},e_={get:function(e,t){if(t===Yg)return e;var n=vg(e);if(!mg(n,t))return function(e,t,n){var r=Fg(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||!dg(r)?r:r===Pg(e.t,t)?(Lg(e),e.o[t]=Rg(e.A.h,r,e)):r},has:function(e,t){return t in vg(e)},ownKeys:function(e){return Reflect.ownKeys(vg(e))},set:function(e,t,n){var r=Fg(vg(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Pg(vg(e),t),a=i?.[Yg];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||mg(e.t,t)))return!0;Lg(e),Ig(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 Pg(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Lg(e),Ig(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=vg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){lg(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){lg(12)}},t_={};fg(e_,(function(e,t){t_[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),t_.deleteProperty=function(e,t){return e_.deleteProperty.call(this,e[0],t)},t_.set=function(e,t,n){return e_.set.call(this,e[0],t,n,e[0])};var n_=new(function(){function e(e){var t=this;this.g=Kg,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);var r=[...arguments].slice(1);return a.produce(e,(function(e){var i;return(i=n).call.apply(i,[t,e].concat(r))}))}}var o;if(typeof n!=`function`&&lg(6),r!==void 0&&typeof r!=`function`&&lg(7),dg(e)){var s=Og(t),c=Rg(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Eg(s):Dg(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return Tg(s,r),Ag(e,s)}),(function(e){throw Eg(s),e})):(Tg(s,r),Ag(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===qg?void 0:(o===void 0&&(o=e),t.F&&bg(o,!0),o);lg(21,e)},this.produceWithPatches=function(e,n){return typeof e==`function`?function(n){var r=[...arguments].slice(1);return t.produceWithPatches(n,(function(t){return e.apply(void 0,[t].concat(r))}))}:[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){dg(e)||lg(8),ug(e)&&(e=zg(e));var t=Og(this),n=Rg(this,e,void 0);return n[Yg].C=!0,Dg(t),n},t.finishDraft=function(e,t){var n=(e&&e[Yg]).A;return Tg(n,t),Ag(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Kg&&lg(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=Cg(`Patches`).$;return ug(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),r_=n_.produce;n_.produceWithPatches.bind(n_),n_.setAutoFreeze.bind(n_),n_.setUseProxies.bind(n_),n_.applyPatches.bind(n_);var i_=n_.createDraft.bind(n_),a_=n_.finishDraft.bind(n_);function o_(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s_=new WeakMap,c_=new WeakMap,l_=new WeakMap,u_=new WeakMap,d_=new WeakMap,f_=new WeakMap;function p_(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 m_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?p_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of B.pathRefs(e))Qie.transform(n,t);for(var r of B.pointRefs(e))$ie.transform(r,t);for(var i of B.rangeRefs(e))tae.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=s_.get(e)||[],l=Cie(t);for(var u of c)s(H.transform(u,t));for(var d of l)s(d);s_.set(e,o),G.transform(e,t),e.operations.push(t),B.normalize(e),t.type===`set_selection`&&(e.marks=null),c_.get(e)||(c_.set(e,!0),Promise.resolve().then((()=>{c_.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(U.isExpanded(r)?G.setNodes(e,{[t]:n},{match:W.isText,split:!0}):(e.marks=m_(m_({},B.marks(e)||{}),{},{[t]:n}),c_.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&U.isCollapsed(n)&&G.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&U.isCollapsed(n)&&G.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&U.isExpanded(n)&&G.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?V.fragment(e,t):[]},insertBreak:()=>{G.splitNodes(e,{always:!0})},insertFragment:t=>{G.insertFragment(e,t)},insertNode:t=>{G.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=m_({text:t},r);G.insertNodes(e,i)}else G.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!W.isText(n))if(z.isElement(n)&&n.children.length===0)G.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!B.isEditor(n)&&z.isElement(n)&&(e.isInline(n)||n.children.length===0||W.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=V.get(e,r);if(!W.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(W.isText(c)||z.isElement(c)&&e.isInline(c))===i?z.isElement(c)?e.isInline(c)&&(l!=null&&W.isText(l)?u&&(G.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(G.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&W.isText(l)&&(W.equals(c,l,{loose:!0})?(G.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(G.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(G.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(G.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(U.isExpanded(n))G.unsetNodes(e,t,{match:W.isText,split:!0});else{var r=m_({},B.marks(e)||{});delete r[t],e.marks=r,c_.get(e)||e.onChange()}}};return e},Cie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return H.levels(t);case`insert_node`:var{node:n,path:r}=e,i=H.levels(r),a=W.isText(n)?[]:Array.from(V.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...H.ancestors(o),H.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(H.equals(s,c))return[];var l=[],u=[];for(var d of H.ancestors(s)){var f=H.transform(d,e);l.push(f)}for(var p of H.ancestors(c)){var m=H.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[...H.ancestors(v)];case`split_node`:var{path:y}=e;return[...H.levels(y),H.next(y)];default:return[]}};function h_(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 g_,__=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Oie(e):e,i=g_.None,a=g_.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=Bie(c,l);if([i,a]=n?[a,u]:[u,i],y_(i,g_.ZWJ)&&y_(a,g_.ExtPict)&&!Wie(n?e.substring(0,o):e.substring(0,e.length-o))||y_(i,g_.RI)&&y_(a,g_.RI)&&!(s=s===null?!!n||Kie(e.substring(0,e.length-o)):!s)||i!==g_.None&&a!==g_.None&&Hie(i,a))break;o+=c.length}return o||1},wie=/\s/,Tie=/[\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]/,Eie=/['\u2018\u2019]/,v_=(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)]},Die=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(wie.test(t))return!1;if(Eie.test(t)){var[i,a]=v_(n,__(n,r),r);if(e(i,a,r))return!0}return!Tie.test(t)},Oie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Aie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(kie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},kie=e=>e>=55296&&e<=56319,Aie=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`})(g_||={});var jie=/^(?:[\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])$/,Mie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Nie=/^(?:[\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])$/,Pie=/^[\u1100-\u115F\uA960-\uA97C]$/,Fie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Iie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Lie=/^[\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]$/,Rie=/^[\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]$/,zie=/^(?:[\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])$/,Bie=(e,t)=>{var n=g_.Any;return e.search(jie)!==-1&&(n|=g_.Extend),t===8205&&(n|=g_.ZWJ),t>=127462&&t<=127487&&(n|=g_.RI),e.search(Mie)!==-1&&(n|=g_.Prepend),e.search(Nie)!==-1&&(n|=g_.SpacingMark),e.search(Pie)!==-1&&(n|=g_.L),e.search(Fie)!==-1&&(n|=g_.V),e.search(Iie)!==-1&&(n|=g_.T),e.search(Lie)!==-1&&(n|=g_.LV),e.search(Rie)!==-1&&(n|=g_.LVT),e.search(zie)!==-1&&(n|=g_.ExtPict),n};function y_(e,t){return(e&t)!=0}var Vie=[[g_.L,g_.L|g_.V|g_.LV|g_.LVT],[g_.LV|g_.V,g_.V|g_.T],[g_.LVT|g_.T,g_.T],[g_.Any,g_.Extend|g_.ZWJ],[g_.Any,g_.SpacingMark],[g_.Prepend,g_.Any],[g_.ZWJ,g_.ExtPict],[g_.RI,g_.RI]];function Hie(e,t){return Vie.findIndex((n=>y_(e,n[0])&&y_(t,n[1])))===-1}var Uie=/(?:[\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$/,Wie=e=>e.search(Uie)!==-1,Gie=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,Kie=e=>{var t=e.match(Gie);return t!==null&&t[0].length/2%2==1},b_=e=>cg(e)&&V.isNodeList(e.children)&&!B.isEditor(e),z={isAncestor:e=>cg(e)&&V.isNodeList(e.children),isElement:b_,isElementList:e=>Array.isArray(e)&&e.every((e=>z.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 b_(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},qie=[`text`],Jie=[`text`];function x_(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 S_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?x_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var C_=new WeakMap,B={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=B.path(e,r),o=n===`lowest`;for(var[s,c]of B.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!W.isText(s)&&!H.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:B.point(e,t,{edge:`end`}),focus:B.end(e,[])},{distance:a=1}=r,o=0;for(var s of B.positions(e,S_(S_({},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:B.start(e,[]),focus:B.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of B.positions(e,S_(S_({},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)=>[B.start(e,t),B.end(e,t)],end:(e,t)=>B.point(e,t,{edge:`end`}),first(e,t){var n=B.path(e,t,{edge:`start`});return B.node(e,n)},fragment(e,t){var n=B.range(e,t);return V.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>B.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>W.isText(t)||B.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>W.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)=>z.isElement(t)&&!e.isInline(t),isEditor(e){if(!cg(e))return!1;var t=C_.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||cg(e.marks))&&(e.selection===null||U.isRange(e.selection))&&V.isNodeList(e.children)&&D_.isOperationList(e.operations);return C_.set(e,n),n},isEnd(e,t,n){var r=B.end(e,n);return A_.equals(t,r)},isEdge:(e,t,n)=>B.isStart(e,t,n)||B.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&W.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>z.isElement(t)&&e.isInline(t),isNormalizing(e){var t=l_.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=B.start(e,n);return A_.equals(t,r)},isVoid:(e,t)=>z.isElement(t)&&e.isVoid(t),last(e,t){var n=B.path(e,t,{edge:`end`});return B.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n);return[V.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=B.path(e,n);for(var[c,l]of V.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&B.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(U.isExpanded(n)){var[r]=B.nodes(e,{match:W.isText});if(r){var[i]=r;return h_(i,qie)}return{}}var{anchor:a}=n,{path:o}=a,[s]=B.leaf(e,o);if(a.offset===0){var c=B.previous(e,{at:o,match:W.isText}),l=B.above(e,{match:t=>B.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;H.isAncestor(f,d)&&(s=u)}}return h_(s,Jie)},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=B.after(e,a,{voids:r});if(o){var[,s]=B.last(e,[]),c=[o.path,s];if(H.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(H.isPath(a)){var[l]=B.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=B.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=B.path(e,t,n);return[V.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(Yie.isSpan(n))c=n[0],l=n[1];else{var u=B.path(e,n,{edge:`start`}),d=B.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=V.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&B.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&H.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&&!_&&W.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=>s_.get(e)||[];if(B.isNormalizing(e)){if(t){var r=Array.from(V.nodes(e),(e=>{var[,t]=e;return t}));s_.set(e,r)}n(e).length!==0&&B.withoutNormalizing(e,(()=>{for(var t of n(e))if(V.has(e,t)){var r=B.node(e,t),[i,a]=r;z.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(`
|
|
|
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.
|
|
|
`);var c=n(e).pop();if(V.has(e,c)){var l=B.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.path(e,t,n),i=H.parent(r);return B.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(H.isPath(t)){if(r===`start`){var[,i]=V.first(e,t);t=i}else if(r===`end`){var[,a]=V.last(e,t);t=a}}return U.isRange(t)&&(t=r===`start`?U.start(t):r===`end`?U.end(t):H.common(t.anchor.path,t.focus.path)),A_.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>V.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 B.pathRefs(e).delete(r),r.current=null,t}};return B.pathRefs(e).add(r),r},pathRefs(e){var t=u_.get(e);return t||(t=new Set,u_.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(H.isPath(t)){var r;if(n===`end`){var[,i]=V.last(e,t);r=i}else{var[,a]=V.first(e,t);r=a}var o=V.get(e,r);if(!W.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(U.isRange(t)){var[s,c]=U.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 B.pointRefs(e).delete(r),r.current=null,t}};return B.pointRefs(e).add(r),r},pointRefs(e){var t=d_.get(e);return t||(t=new Set,d_.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=B.range(e,t),[o,s]=U.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of B.nodes(e,{at:t,reverse:r,voids:i})){if(z.isElement(m)){if(!i&&e.isVoid(m)){yield B.start(e,h);continue}if(e.isInline(m))continue;if(B.hasInlines(e,m)){var g=H.isAncestor(h,s.path)?s:B.end(e,h),_=H.isAncestor(h,o.path)?o:B.start(e,h);u=B.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(W.isText(m)){var v=H.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=v_(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`?__(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=__(e,t),[a,o]=v_(e,i,t);if(Die(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=B.before(e,a,{voids:r});if(o){var[,s]=B.first(e,[]),c=[o.path,s];if(H.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(H.isPath(a)){var[l]=B.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=B.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>U.isRange(t)&&!n?t:{anchor:B.start(e,t),focus:B.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 B.rangeRefs(e).delete(r),r.current=null,t}};return B.rangeRefs(e).add(r),r},rangeRefs(e){var t=f_.get(e);return t||(t=new Set,f_.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){l_.set(e,t)},start:(e,t)=>B.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=B.range(e,t),[i,a]=U.edges(r),o=``;for(var[s,c]of B.nodes(e,{at:r,match:W.isText,voids:n})){var l=s.text;H.equals(c,a.path)&&(l=l.slice(0,a.offset)),H.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]=U.edges(t);if(r.offset!==0||i.offset!==0||U.isCollapsed(t))return t;var a=B.above(e,{at:i,match:t=>B.isBlock(e,t)}),o=a?a[1]:[],s={anchor:B.start(e,[]),focus:i},c=!0;for(var[l,u]of B.nodes(e,{at:s,match:W.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||H.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 B.above(e,S_(S_({},t),{},{match:t=>B.isVoid(e,t)}))},withoutNormalizing(e,t){var n=B.isNormalizing(e);B.setNormalizing(e,!1);try{t()}finally{B.setNormalizing(e,n)}B.normalize(e)}},Yie={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(H.isPath)},Xie=[`children`],Zie=[`text`],w_=new WeakMap,V={ancestor(e,t){var n=V.get(e,t);if(W.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 H.ancestors(t,n))yield[V.ancestor(e,r),r]},child(e,t){if(W.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=V.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[V.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=H.common(t,n);return[V.get(e,r),r]},descendant(e,t){var n=V.get(e,t);if(B.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 V.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 V.nodes(e,t))z.isElement(n)&&(yield[n,r])},extractProps:e=>z.isAncestor(e)?h_(e,Xie):h_(e,Zie),first(e,t){for(var n=t.slice(),r=V.get(e,n);r&&!W.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(W.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return r_({children:e.children},(e=>{var[n,r]=U.edges(t);for(var[,i]of V.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!U.includes(t,n)}})){if(!U.includes(t,i)){var a=V.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(H.equals(i,r.path)){var s=V.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(H.equals(i,n.path)){var c=V.leaf(e,i);c.text=c.text.slice(n.offset)}}B.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(W.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(W.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>W.isText(e)||z.isElement(e)||B.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=w_.get(e);if(t!==void 0)return t;var n=e.every((e=>V.isNode(e)));return w_.set(e,n),n},last(e,t){for(var n=t.slice(),r=V.get(e,n);r&&!W.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=V.get(e,t);if(!W.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 H.levels(t,n))yield[V.get(e,r),r]},matches:(e,t)=>z.isElement(e)&&z.isElementProps(t)&&z.matches(e,t)||W.isText(e)&&W.isTextProps(t)&&W.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?H.isBefore(s,a):H.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||W.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=H.next(s);if(V.has(e,l)){s=l,c=V.get(e,s);continue}}r&&s[s.length-1]!==0?(s=H.previous(s),c=V.get(e,s)):(s=H.parent(s),c=V.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;H.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=V.get(e,s)}},parent(e,t){var n=H.parent(t),r=V.get(e,n);if(W.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>W.isText(e)?e.text:e.children.map(V.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of V.nodes(e,t))W.isText(n)&&(yield[n,r])}};function T_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?T_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var D_={isNodeOperation:e=>D_.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!cg(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return H.isPath(e.path)&&V.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&H.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&H.isPath(e.path)&&cg(e.properties);case`move_node`:return H.isPath(e.path)&&H.isPath(e.newPath);case`set_node`:return H.isPath(e.path)&&cg(e.properties)&&cg(e.newProperties);case`set_selection`:return e.properties===null&&U.isRange(e.newProperties)||e.newProperties===null&&U.isRange(e.properties)||cg(e.properties)&&cg(e.newProperties);case`split_node`:return H.isPath(e.path)&&typeof e.position==`number`&&cg(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>D_.isOperation(e))),isSelectionOperation:e=>D_.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>D_.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return E_(E_({},e),{},{type:`remove_node`});case`insert_text`:return E_(E_({},e),{},{type:`remove_text`});case`merge_node`:return E_(E_({},e),{},{type:`split_node`,path:H.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(H.equals(t,n))return e;if(H.isSibling(n,t))return E_(E_({},e),{},{path:t,newPath:n});var r=H.transform(n,e),i=H.transform(H.next(n),e);return E_(E_({},e),{},{path:r,newPath:i});case`remove_node`:return E_(E_({},e),{},{type:`insert_node`});case`remove_text`:return E_(E_({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return E_(E_({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return E_(E_({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return E_(E_({},e),{},{type:`merge_node`,path:H.next(e.path)})}}},H={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=H.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 H.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return H.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 H.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)=>H.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&H.compare(e,t)===0,isBefore:(e,t)=>H.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&H.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&H.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&H.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&H.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]&&H.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(!H.isAncestor(t,e)&&!H.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 r_(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;(H.equals(a,r)||H.endsBefore(a,r)||H.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(H.equals(o,r)||H.isAncestor(o,r))return null;H.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;H.equals(s,r)||H.endsBefore(s,r)?--r[s.length-1]:H.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(H.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else H.endsBefore(l,r)?r[l.length-1]+=1:H.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(H.equals(d,f))return;if(H.isAncestor(d,r)||H.equals(d,r)){var p=f.slice();return H.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}H.isSibling(d,f)&&(H.isAncestor(f,r)||H.equals(f,r))?H.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:H.endsBefore(f,r)||H.equals(f,r)||H.isAncestor(f,r)?(H.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):H.endsBefore(d,r)&&(H.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},Qie={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=H.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}};function O_(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 k_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?O_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var A_={compare(e,t){var n=H.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>A_.compare(e,t)===1,isBefore:(e,t)=>A_.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&H.equals(e.path,t.path),isPoint:e=>cg(e)&&typeof e.offset==`number`&&H.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r_(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=H.transform(i,t,n);break;case`insert_text`:H.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:H.equals(t.path,i)&&(e.offset+=t.position),e.path=H.transform(i,t,n);break;case`remove_text`:H.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(H.equals(t.path,i)||H.isAncestor(t.path,i))return null;e.path=H.transform(i,t,n);break;case`split_node`:if(H.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=H.transform(i,t,k_(k_({},n),{},{affinity:`forward`})))}else e.path=H.transform(i,t,n)}}))}},$ie={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=A_.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},eae=[`anchor`,`focus`];function j_(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 U={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return U.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=U.edges(e);return t},equals:(e,t)=>A_.equals(e.anchor,t.anchor)&&A_.equals(e.focus,t.focus),includes(e,t){if(U.isRange(t)){if(U.includes(e,t.anchor)||U.includes(e,t.focus))return!0;var[n,r]=U.edges(e),[i,a]=U.edges(t);return A_.isBefore(n,i)&&A_.isAfter(r,a)}var[o,s]=U.edges(e),c=!1,l=!1;return A_.isPoint(t)?(c=A_.compare(t,o)>=0,l=A_.compare(t,s)<=0):(c=H.compare(t,o.path)>=0,l=H.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=h_(e,eae),[r,i]=U.edges(e),[a,o]=U.edges(t),s=A_.isBefore(r,a)?a:r,c=A_.isBefore(i,o)?i:o;return A_.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?j_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(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 A_.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return A_.equals(t,n)},isExpanded:e=>!U.isCollapsed(e),isForward:e=>!U.isBackward(e),isRange:e=>cg(e)&&A_.isPoint(e.anchor)&&A_.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=U.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return r_(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=U.isCollapsed(e);U.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?U.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=A_.transform(e.anchor,t,{affinity:r}),c=A_.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},tae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=U.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},M_=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(cg(r)&&cg(i)){if(!M_(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},nae=[`text`],rae=[`anchor`,`focus`];function N_(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 P_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?N_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var W={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return h_(e,nae)}return M_(n?r(e):e,n?r(t):t)},isText:e=>cg(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>W.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=[P_({},e)];for(var r of t){var i=h_(r,rae),[a,o]=U.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=P_(P_({},f),{},{text:f.text.slice(h)}),f=P_(P_({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=P_(P_({},f),{},{text:f.text.slice(0,g)}),f=P_(P_({},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 F_(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 I_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?F_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var iae={transform(e,t){e.children=i_(e.children);var n=e.selection&&i_(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=V.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 U.points(t))t[c]=A_.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=V.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 U.points(t))t[g]=A_.transform(h,n);break;case`merge_node`:var{path:_}=n,v=V.get(e,_),y=H.previous(_),b=V.get(e,y),x=V.parent(e,_),S=_[_.length-1];if(W.isText(v)&&W.isText(b))b.text+=v.text;else{if(W.isText(v)||W.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 U.points(t))t[w]=A_.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(H.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=V.get(e,T),O=V.parent(e,T),ee=T[T.length-1];O.children.splice(ee,1);var k=H.transform(T,n),A=V.get(e,H.parent(k)),j=k[k.length-1];if(A.children.splice(j,0,D),t)for(var[te,M]of U.points(t))t[M]=A_.transform(te,n);break;case`remove_node`:var{path:ne}=n,re=ne[ne.length-1];if(V.parent(e,ne).children.splice(re,1),t)for(var[ie,ae]of U.points(t)){var oe=A_.transform(ie,n);if(t!=null&&oe!=null)t[ae]=oe;else{var se=void 0,ce=void 0;for(var[N,le]of V.texts(e)){if(H.compare(le,ne)!==-1){ce=[N,le];break}se=[N,le]}var ue=!1;se&&ce&&(ue=H.equals(ce[1],ne)?!H.hasPrevious(ce[1]):H.common(se[1],ne).length<H.common(ce[1],ne).length),se&&!ue?(ie.path=se[1],ie.offset=se[0].text.length):ce?(ie.path=ce[1],ie.offset=0):t=null}}break;case`remove_text`:var{path:de,offset:fe,text:pe}=n;if(pe.length===0)break;var me=V.leaf(e,de);if(me.text=me.text.slice(0,fe)+me.text.slice(fe+pe.length),t)for(var[he,ge]of U.points(t))t[ge]=A_.transform(he,n);break;case`set_node`:var{path:_e,properties:ve,newProperties:ye}=n;if(_e.length===0)throw Error(`Cannot set properties on the root node!`);var P=V.get(e,_e);for(var be in ye){if(be===`children`||be===`text`)throw Error(`Cannot set the "${be}" property of nodes!`);var F=ye[be];F==null?delete P[be]:P[be]=F}for(var xe in ve)ye.hasOwnProperty(xe)||delete P[xe];break;case`set_selection`:var{newProperties:Se}=n;if(Se==null)t=Se;else{if(t==null){if(!U.isRange(Se))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(Se)} when there is no current selection.`);t=I_({},Se)}for(var Ce in Se){var I=Se[Ce];if(I==null){if(Ce===`anchor`||Ce===`focus`)throw Error(`Cannot remove the "${Ce}" selection property`);delete t[Ce]}else t[Ce]=I}}break;case`split_node`:var{path:we,position:L,properties:Te}=n;if(we.length===0)throw Error(`Cannot apply a "split_node" operation at path [${we}] because the root node cannot be split.`);var Ee,De=V.get(e,we),Oe=V.parent(e,we),ke=we[we.length-1];if(W.isText(De)){var Ae=De.text.slice(0,L),je=De.text.slice(L);De.text=Ae,Ee=I_(I_({},Te),{},{text:je})}else{var Me=De.children.slice(0,L),Ne=De.children.slice(L);De.children=Me,Ee=I_(I_({},Te),{},{children:Ne})}if(Oe.children.splice(ke+1,0,Ee),t)for(var[Pe,Fe]of U.points(t))t[Fe]=A_.transform(Pe,n)}return t})(e,n,t)}finally{e.children=a_(e.children),e.selection=n?ug(n)?a_(n):n:null}}},aae=[`text`],oae=[`children`];function L_(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 R_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?L_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):L_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var sae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(V.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?B.end(e,[]):[0],c=!0),c??=!1,U.isRange(o))if(r||(o=B.unhangRange(e,o)),U.isCollapsed(o))o=o.anchor;else{var[,u]=U.edges(o),d=B.pointRef(e,u);G.delete(e,{at:o}),o=d.unref()}if(A_.isPoint(o)){s??=W.isText(l)?e=>W.isText(e):e.isInline(l)?t=>W.isText(t)||B.isInline(e,t):t=>B.isBlock(e,t);var[f]=B.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=B.pathRef(e,p),h=B.isEnd(e,o,p);G.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?H.next(g):g}var _=H.parent(o),v=o[o.length-1];if(i||!B.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=H.next(o)}if(o=H.previous(o),c){var x=B.end(e,o);x&&G.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=H.isPath(n)?B_(e,n):t=>B.isBlock(e,t),n){var o=B.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return B.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]=B.node(e,H.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=H.next(u);G.moveNodes(e,{at:c,to:p,voids:i}),G.removeNodes(e,{at:u,voids:i})}else if(d===0)G.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=H.next(u);G.moveNodes(e,{at:c,to:m,voids:i})}else{var h=H.next(c),g=H.next(u);G.splitNodes(e,{at:h,voids:i}),G.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.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(H.isPath(r)){var[s]=B.parent(e,r);n=e=>s.children.includes(e)}else n=t=>B.isBlock(e,t);if(!i&&U.isRange(r)&&(r=B.unhangRange(e,r)),U.isRange(r))if(U.isCollapsed(r))r=r.anchor;else{var[,c]=U.edges(r),l=B.pointRef(e,c);G.delete(e,{at:r}),r=l.unref(),t.at??G.select(e,r)}var[u]=B.nodes(e,{at:r,match:n,voids:a,mode:o}),d=B.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=H.next(h),y=H.common(p,h),b=H.isSibling(p,h),x=Array.from(B.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=B.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&z_(e,t)}),C=S&&B.pathRef(e,S[1]);if(W.isText(f)&&W.isText(m)){var w=h_(f,aae);_=m.text.length,g=w}else{if(!z.isElement(f)||!z.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=h_(f,oae),_=m.children.length,g=w}b||G.moveNodes(e,{at:p,to:v,voids:a}),C&&G.removeNodes(e,{at:C.current,voids:a}),z.isElement(m)&&B.isEmpty(e,m)||W.isText(m)&&m.text===``&&h[h.length-1]!==0?G.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){B.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=H.isPath(r)?B_(e,r):t=>B.isBlock(e,t);var s=B.pathRef(e,n),c=B.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return B.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&H.isSibling(d,u)&&H.isAfter(d,u)&&(s.current=H.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=H.isPath(a)?B_(e,a):t=>B.isBlock(e,t),!n&&U.isRange(a)&&(a=B.unhangRange(e,a));var s=B.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return B.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=B.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]:{};B.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??=H.isPath(i)?B_(e,i):t=>B.isBlock(e,t),!a&&U.isRange(i)&&(i=B.unhangRange(e,i)),s&&U.isRange(i)){if(U.isCollapsed(i)&&B.leaf(e,i.anchor)[0].text.length>0)return;var l=B.rangeRef(e,i,{affinity:`inward`}),[u,d]=U.edges(i),f=o===`lowest`?`lowest`:`highest`,p=B.isEnd(e,d,d.path);G.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=B.isStart(e,u,u.path);G.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??G.select(e,i)}for(var[h,g]of B.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]:{};B.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=>B.isBlock(e,t),U.isRange(a)&&(a=cae(e,a)),H.isPath(a)){var c=a,l=B.point(e,c),[u]=B.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=B.pointRef(e,a,{affinity:`backward`}),[f]=B.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=B.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(z.isElement(m)&&e.isInline(m)){var g=B.after(e,h);if(!g){var _=H.next(h);G.insertNodes(e,{text:``},{at:_,voids:r}),g=B.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=B.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 B.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&B.isVoid(e,C))break;var E=d.current,D=B.isEnd(e,E,w);if(s||!d||!B.isEdge(e,E,w)){T=!0;var O=V.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 ee=v.current||B.end(e,[]);G.select(e,ee)}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;G.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=H.isPath(a)?B_(e,a):t=>B.isBlock(e,t),H.isPath(a)&&(a=B.range(e,a));var s=U.isRange(a)?B.rangeRef(e,a):null,c=B.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return B.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=B.node(e,n),o=B.range(e,n);r&&s&&(o=U.intersection(s.current,o)),G.liftNodes(e,{at:o,match:e=>z.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]:{};B.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=H.isPath(s)?B_(e,s):e.isInline(t)?t=>B.isInline(e,t)||W.isText(t):t=>B.isBlock(e,t),i&&U.isRange(s)){var[c,l]=U.edges(s),u=B.rangeRef(e,s,{affinity:`inward`});G.splitNodes(e,{at:l,match:o,voids:a}),G.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??G.select(e,s)}for(var[,d]of Array.from(B.nodes(e,{at:s,match:e.isInline(t)?t=>B.isBlock(e,t):e=>B.isEditor(e),mode:`lowest`,voids:a}))){var f=U.isRange(s)?U.intersection(s,B.range(e,d)):s;if(f){var p=Array.from(B.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=H.equals(i,o)?H.parent(i):H.common(i,o),c=B.range(e,i,o),[l]=B.node(e,s),u=s.length+1,d=H.next(o.slice(0,u)),f=R_(R_({},t),{},{children:[]});G.insertNodes(e,f,{at:d,voids:a}),G.moveNodes(e,{at:c,match:e=>z.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},z_=(e,t)=>{if(z.isElement(t)){var n=t;return!!B.isVoid(e,t)||n.children.length===1&&z_(e,n.children[0])}return!B.isEditor(t)},cae=(e,t)=>{if(U.isCollapsed(t))return t.anchor;var[,n]=U.edges(t),r=B.pointRef(e,n);return G.delete(e,{at:t}),r.unref()},B_=(e,t)=>{var[n]=B.node(e,t);return e=>e===n};function V_(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 H_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?V_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var lae={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)G.select(e,n.anchor);else if(t===`focus`)G.select(e,n.focus);else if(t===`start`){var[r]=U.edges(n);G.select(e,r)}else if(t===`end`){var[,i]=U.edges(n);G.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=U.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=U.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?B.before(e,s,l):B.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?B.before(e,c,l):B.after(e,c,l);f&&(u.focus=f)}G.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=B.range(e,t),n)G.setSelection(e,t);else{if(!U.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=U.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=U.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;G.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:H_(H_({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!A_.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!A_.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})}}},uae={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};B.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(U.isRange(o)&&U.isCollapsed(o)&&(o=o.anchor),A_.isPoint(o)){var c=B.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?B.before(e,o,u)||B.start(e,[]):B.after(e,o,u)||B.end(e,[])},s=!0}}if(H.isPath(o))G.removeNodes(e,{at:o,voids:a});else if(!U.isCollapsed(o)){if(!s){var[,d]=U.edges(o),f=B.end(e,[]);A_.equals(d,f)||(o=B.unhangRange(e,o,{voids:a}))}var[p,m]=U.edges(o),h=B.above(e,{match:t=>B.isBlock(e,t),at:p,voids:a}),g=B.above(e,{match:t=>B.isBlock(e,t),at:m,voids:a}),_=h&&g&&!H.equals(h[1],g[1]),v=H.equals(p.path,m.path),y=a?null:B.void(e,{at:p,mode:`highest`}),b=a?null:B.void(e,{at:m,mode:`highest`});if(y){var x=B.before(e,p);x&&h&&H.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=B.after(e,m);S&&g&&H.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of B.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&H.compare(D,C)===0||(!a&&B.isVoid(e,E)||!H.isCommon(D,p.path)&&!H.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return B.pathRef(e,n)})),ee=B.pointRef(e,p),k=B.pointRef(e,m);if(!v&&!y){var A=ee.current,[j]=B.leaf(e,A),{path:te}=A,{offset:M}=p,ne=j.text.slice(M);ne.length>0&&e.apply({type:`remove_text`,path:te,offset:M,text:ne})}for(var re of O){var ie=re.unref();G.removeNodes(e,{at:ie,voids:a})}if(!b){var ae=k.current,[oe]=B.leaf(e,ae),{path:se}=ae,ce=v?p.offset:0,N=oe.text.slice(ce,m.offset);N.length>0&&e.apply({type:`remove_text`,path:se,offset:ce,text:N})}!v&&_&&k.current&&ee.current&&G.mergeNodes(e,{at:k.current,hanging:!0,voids:a});var le=n?ee.unref()||k.unref():k.unref()||ee.unref();t.at==null&&le&&G.select(e,le)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(U.isRange(a))if(r||(a=B.unhangRange(e,a)),U.isCollapsed(a))a=a.anchor;else{var[,o]=U.edges(a);if(!i&&B.void(e,{at:o}))return;var s=B.pointRef(e,o);G.delete(e,{at:a}),a=s.unref()}else H.isPath(a)&&(a=B.start(e,a));if(i||!B.void(e,{at:a})){var c=B.above(e,{at:a,match:t=>B.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;B.isEnd(e,a,l)?a=B.after(e,l):B.isStart(e,a,l)&&(a=B.before(e,l))}var[,u]=B.above(e,{match:t=>B.isBlock(e,t),at:a,voids:i}),d=B.isStart(e,a,u),f=B.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=V.first({children:t},[]),[,_]=V.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&H.isAncestor(r,g)&&z.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&H.isAncestor(r,_)&&z.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of V.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)z.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=B.nodes(e,{at:a,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,ee=B.isStart(e,a,O),k=B.isEnd(e,a,O),A=B.pathRef(e,f?H.next(u):u),j=B.pathRef(e,k?H.next(O):O),te=B.pathRef(e,u);G.splitNodes(e,{at:a,match:t=>T?B.isBlock(e,t):W.isText(t)||B.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var M=B.pathRef(e,!ee||ee&&k?H.next(O):O);if(G.insertNodes(e,x,{at:M.current,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&G.delete(e,{at:te.unref(),voids:i}),G.insertNodes(e,S,{at:A.current,match:t=>B.isBlock(e,t),mode:`lowest`,voids:i}),G.insertNodes(e,C,{at:j.current,match:t=>W.isText(t)||B.isInline(e,t),mode:`highest`,voids:i}),!n.at){var ne=C.length>0?H.previous(j.current):S.length>0?H.previous(A.current):H.previous(M.current),re=B.end(e,ne);G.select(e,re)}M.unref(),A.unref(),j.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};B.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(H.isPath(i)&&(i=B.range(e,i)),U.isRange(i))if(U.isCollapsed(i))i=i.anchor;else{var a=U.end(i);if(!r&&B.void(e,{at:a}))return;var o=B.pointRef(e,a);G.delete(e,{at:i,voids:r}),i=o.unref(),G.setSelection(e,{anchor:i,focus:i})}if(r||!B.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 U_(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 W_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?U_(Object(n),!0).forEach((function(t){o_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G=W_(W_(W_(W_({},iae),sae),lae),uae),G_=`[object Map]`,K_=`[object Set]`,dae=/^\[object .+?Constructor\]$/,fae=/^(?:0|[1-9]\d*)$/,pae=`[\\ud800-\\udfff]`,q_=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,J_=`\\ud83c[\\udffb-\\udfff]`,Y_=`[^\\ud800-\\udfff]`,X_=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Z_=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Q_=`(?:`+q_+`|`+J_+`)?`,mae=`[\\ufe0e\\ufe0f]?`+Q_+(`(?:\\u200d(?:`+[Y_,X_,Z_].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Q_+`)*`),hae=`(?:`+[Y_+q_+`?`,q_,X_,Z_,pae].join(`|`)+`)`,gae=RegExp(J_+`(?=`+J_+`)|`+hae+mae,`g`),_ae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),vae=typeof tl==`object`&&tl&&tl.Object===Object&&tl,yae=typeof self==`object`&&self&&self.Object===Object&&self,$_=vae||yae||Function(`return this`)();function bae(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 xae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Sae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Cae(e){return function(e){return _ae.test(e)}(e)?function(e){return e.match(gae)||[]}(e):function(e){return e.split(``)}(e)}var ev,tv,wae=Function.prototype,nv=Object.prototype,rv=$_[`__core-js_shared__`],iv=function(){var e=/[^.]+$/.exec(rv&&rv.keys&&rv.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),av=wae.toString,ov=nv.hasOwnProperty,sv=nv.toString,Tae=RegExp(`^`+av.call(ov).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),cv=$_.Symbol,lv=cv?cv.iterator:void 0,Eae=nv.propertyIsEnumerable,Dae=(ev=Object.keys,tv=Object,function(e){return ev(tv(e))}),uv=hv($_,`DataView`),dv=hv($_,`Map`),fv=hv($_,`Promise`),pv=hv($_,`Set`),mv=hv($_,`WeakMap`),Oae=_v(uv),kae=_v(dv),Aae=_v(fv),jae=_v(pv),Mae=_v(mv);function Nae(e,t){var n=vv(e)||function(e){return function(e){return Sv(e)&&yv(e)}(e)&&ov.call(e,`callee`)&&(!Eae.call(e,`callee`)||sv.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&&!ov.call(e,a)||i&&(a==`length`||Iae(a,r))||n.push(a);return n}function Pae(e){return!xv(e)||function(e){return!!iv&&iv in e}(e)?!1:(bv(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?Tae:dae).test(_v(e))}function Fae(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||nv,t!==r)return Dae(e);var t,n,r,i=[];for(var a in Object(e))ov.call(e,a)&&a!=`constructor`&&i.push(a);return i}function hv(e,t){var n=function(e,t){return e?.[t]}(e,t);return Pae(n)?n:void 0}var gv=function(e){return sv.call(e)};function Iae(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||fae.test(e))&&e>-1&&e%1==0&&e<t}function _v(e){if(e!=null){try{return av.call(e)}catch{}try{return e+``}catch{}}return``}(uv&&gv(new uv(new ArrayBuffer(1)))!=`[object DataView]`||dv&&gv(new dv)!=G_||fv&&gv(fv.resolve())!=`[object Promise]`||pv&&gv(new pv)!=K_||mv&&gv(new mv)!=`[object WeakMap]`)&&(gv=function(e){var t=sv.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?_v(n):void 0;if(r)switch(r){case Oae:return`[object DataView]`;case kae:return G_;case Aae:return`[object Promise]`;case jae:return K_;case Mae:return`[object WeakMap]`}return t});var vv=Array.isArray;function yv(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!bv(e)}function bv(e){var t=xv(e)?sv.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function xv(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Sv(e){return!!e&&typeof e==`object`}function Lae(e){return e?bae(e,function(e){return yv(e)?Nae(e):Fae(e)}(e)):[]}var Cv=function(e){if(!e)return[];if(yv(e))return function(e){return typeof e==`string`||!vv(e)&&Sv(e)&&sv.call(e)==`[object String]`}(e)?Cae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(lv&&e[lv])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[lv]());var t=gv(e);return(t==G_?xae:t==K_?Sae:Lae)(e)};function wv(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function Tv(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:wv(t[n])&&wv(e[n])&&Object.keys(t[n]).length>0&&Tv(e[n],t[n])}))}var Ev={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 Dv(){var e=typeof document<`u`?document:{};return Tv(e,Ev),e}var Rae={document:Ev,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 Ov(){var e=typeof window<`u`?window:{};return Tv(e,Rae),e}function kv(e){return kv=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},kv(e)}function Av(e,t){return Av=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Av(e,t)}function zae(){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 jv(e,t,n){return jv=zae()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Av(i,n.prototype),i},jv.apply(null,arguments)}function Mv(e){var t=typeof Map==`function`?new Map:void 0;return Mv=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 jv(e,arguments,kv(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Av(n,e)},Mv(e)}var Nv=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}(Mv(Array));function Pv(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Pv(e)):t.push(e)})),t}function Fv(e,t){return Array.prototype.filter.call(e,t)}function K(e,t){var n=Ov(),r=Dv(),i=[];if(!t&&e instanceof Nv)return e;if(!e)return new Nv(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 Nv)return e;i=e}return new Nv(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 Iv(){var e=Pv([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function Lv(){var e=Pv([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function Rv(){var e=Pv([...arguments].map((function(e){return e.split(` `)})));return Fv(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function zv(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 Bv(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function Vv(){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 Hv(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 Uv(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];function a(e){var t=e.target;if(t){var i=e.target.dom7EventData||[];if(i.indexOf(e)<0&&i.unshift(e),K(t).is(n))r.apply(t,i);else for(var a=K(t).parents(),o=0;o<a.length;o+=1)K(a[o]).is(n)&&r.apply(a[o],i)}}function o(e){var t=e&&e.target&&e.target.dom7EventData||[];t.indexOf(e)<0&&t.unshift(e),r.apply(this,t)}typeof e[1]==`function`&&(t=e[0],r=e[1],i=e[2],n=void 0),i||=!1;for(var s,c=t.split(` `),l=0;l<this.length;l+=1){var u=this[l];if(n)for(s=0;s<c.length;s+=1){var d=c[s];u.dom7LiveListeners||={},u.dom7LiveListeners[d]||(u.dom7LiveListeners[d]=[]),u.dom7LiveListeners[d].push({listener:r,proxyListener:a}),u.addEventListener(d,a,i)}else for(s=0;s<c.length;s+=1){var f=c[s];u.dom7Listeners||={},u.dom7Listeners[f]||(u.dom7Listeners[f]=[]),u.dom7Listeners[f].push({listener:r,proxyListener:o}),u.addEventListener(f,o,i)}}return this}function Wv(){var e=[...arguments],t=e[0],n=e[1],r=e[2],i=e[3];typeof e[1]==`function`&&(t=e[0],r=e[1],i=e[2],n=void 0),i||=!1;for(var a=t.split(` `),o=0;o<a.length;o+=1)for(var s=a[o],c=0;c<this.length;c+=1){var l=this[c],u=void 0;if(!n&&l.dom7Listeners?u=l.dom7Listeners[s]:n&&l.dom7LiveListeners&&(u=l.dom7LiveListeners[s]),u&&u.length)for(var d=u.length-1;d>=0;--d){var f=u[d];r&&f.listener===r||r&&f.listener&&f.listener.dom7proxy&&f.listener.dom7proxy===r?(l.removeEventListener(s,f.proxyListener,i),u.splice(d,1)):r||(l.removeEventListener(s,f.proxyListener,i),u.splice(d,1))}}return this}function Gv(){var e=Ov();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Kv(){var e=Ov();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function qv(){if(this.length>0){var e=Ov(),t=Dv(),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 Jv(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function Yv(){for(var e=Ov(),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 Xv(e,t){var n,r=Ov();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 Zv(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function Qv(e){return K(Fv(this,e))}function $v(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 ey(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 ty(e){var t,n,r=Ov(),i=Dv(),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=K(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 Nv){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function ny(){for(var e,t=Dv(),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 Nv)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function ry(e){var t,n,r=Dv();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 Nv)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 iy(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?K(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return K(t)}function ay(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?K(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return K(t)}function oy(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 K(t)}function sy(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&&!K(r[i]).is(e)||t.push(r[i]);return K(t)}function cy(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function ly(){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}K.fn=Nv.prototype;var uy=`resize scroll`.split(` `);function dy(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)uy.indexOf(e)<0&&(e in this[n]?this[n][e]():K(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var fy=dy(`click`),py=dy(`focus`),my=`[object GeneratorFunction]`,hy=/^(?:0|[1-9]\d*)$/;function gy(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var _y=Object.prototype,vy=_y.hasOwnProperty,yy=_y.toString,by=_y.propertyIsEnumerable,xy=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Sy(e,t){var n=ky(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Ay(e)}(e)&&vy.call(e,`callee`)&&(!by.call(e,`callee`)||yy.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&&!vy.call(e,a)||i&&(a==`length`||Oy(a,r))||n.push(a);return n}var Cy,wy,Ty=(Cy=function(e,t){return e&&Ey(e,t,jy)},function(e,t){if(e==null)return e;if(!Ay(e))return Cy(e,t);for(var n=e.length,r=wy?n:-1,i=Object(e);(wy?r--:++r<n)&&!1!==t(i[r],r,i););return e}),Ey=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 Dy(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||_y,t!==r)return xy(e);var t,n,r,i=[];for(var a in Object(e))vy.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Oy(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||hy.test(e))&&e>-1&&e%1==0&&e<t}var ky=Array.isArray;function Ay(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)?yy.call(e):``;return t==`[object Function]`||t==my}(e)}function jy(e){return Ay(e)?Sy(e):Dy(e)}function My(e){return e}var Ny=function(e,t){return(ky(e)?gy:Ty)(e,typeof t==`function`?t:My)},Py=(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},Fy=/^\s+|\s+$/g,Iy=/^[-+]0x[0-9a-f]+$/i,Ly=/^0b[01]+$/i,Ry=/^0o[0-7]+$/i,zy=parseInt,By=typeof tl==`object`&&tl&&tl.Object===Object&&tl,Vy=typeof self==`object`&&self&&self.Object===Object&&self,Hy=By||Vy||Function(`return this`)(),Uy=Object.prototype.toString,Wy=Math.max,Gy=Math.min,Ky=function(){return Hy.Date.now()};function qy(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=Ky();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Gy(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=Ky(),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=Yy(t)||0,Jy(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Wy(Yy(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:_(Ky())},v}function Jy(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Yy(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Uy.call(e)==`[object Symbol]`}(e))return NaN;if(Jy(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Jy(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Fy,``);var n=Ly.test(e);return n||Ry.test(e)?zy(e.slice(2),n?2:8):Iy.test(e)?NaN:+e}var Xy=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return Jy(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),qy(e,t,{leading:r,maxWait:t,trailing:i})},Zy={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 Qy(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 $y=Array.isArray;function eb(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function tb(e){return e===void 0}function nb(e){return e!==void 0}var rb=Qy(``,{},[],void 0,void 0);function ib(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function ab(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 ob=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function sb(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?Zy:t;for(let t of ob)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 Qy(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;nb(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)tb(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=nb(s)&&nb(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](rb,e);if($y(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else eb(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;nb(g)&&((i=g.create)==null||i.call(g,rb,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(nb(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;nb(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)}tb(t.text)?nb(h)&&nb(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]:ib(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):ib(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):ib(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):ib(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=ab(t,p,h)),c=a[y.key],tb(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):nb(g)?(nb(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):nb(h)?l(m,h,0,h.length-1):nb(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(nb(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)),ib(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 cb(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&&cb(n,t[e].children,t[e].sel)}}function lb(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&($y(t)?r=t:eb(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),$y(n)?r=n:eb(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)eb(r[a])&&(r[a]=Qy(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]!==`#`||cb(o,r,e),Qy(e,o,r,i,void 0)}function ub(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 db={create:ub,update:ub};function fb(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 pb={create:fb,update:fb},mb=/[A-Z]/g;function hb(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(mb,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(mb,`-$&`).toLowerCase(),a[r]))}var gb={create:hb,update:hb};function _b(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++)_b(e[r],t,n)}function vb(e,t){let n=e.type,r=t.data.on;r&&r[n]&&_b(r[n],t,e)}function yb(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){vb(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 bb={create:yb,update:yb,destroy:yb};function xb(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 Sb={create:xb,update:xb},Cb=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,wb=!1;function Tb(e,t,n){(function(e){Cb((function(){Cb(e)}))})((function(){e[t]=n}))}function Eb(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]||Tb(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var Db={pre:function(){wb=!1},create:Eb,update:Eb,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;wb||=(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 Ob(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?Ob(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(Qy(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function kb(e,t,...n){let r=Ob(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?lb(e,t,r[0].text):lb(e,t,r)}kb||={};var Ab=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jb=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Mb=`\\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`,Nb=`[\\ud800-\\udfff]`,Pb=`[`+Mb+`]`,Fb=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Ib=`\\d+`,Lb=`[\\u2700-\\u27bf]`,Rb=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,zb=`[^\\ud800-\\udfff`+Mb+Ib+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,Bb=`\\ud83c[\\udffb-\\udfff]`,Vb=`[^\\ud800-\\udfff]`,Hb=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ub=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Wb=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Gb=`(?:`+Rb+`|`+zb+`)`,Kb=`(?:`+Wb+`|`+zb+`)`,qb=`(?:`+Fb+`|`+Bb+`)?`,Jb=`[\\ufe0e\\ufe0f]?`+qb+(`(?:\\u200d(?:`+[Vb,Hb,Ub].join(`|`)+`)[\\ufe0e\\ufe0f]?`+qb+`)*`),Yb=`(?:`+[Lb,Hb,Ub].join(`|`)+`)`+Jb,Xb=`(?:`+[Vb+Fb+`?`,Fb,Hb,Ub,Nb].join(`|`)+`)`,Zb=RegExp(`['’]`,`g`),Qb=RegExp(Fb,`g`),$b=RegExp(Bb+`(?=`+Bb+`)|`+Xb+Jb,`g`),ex=RegExp([Wb+`?`+Rb+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[Pb,Wb,`$`].join(`|`)+`)`,Kb+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[Pb,Wb+Gb,`$`].join(`|`)+`)`,Wb+`?`+Gb+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,Wb+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,Ib,Yb].join(`|`),`g`),tx=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),nx=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rx=typeof tl==`object`&&tl&&tl.Object===Object&&tl,ix=typeof self==`object`&&self&&self.Object===Object&&self,ax=rx||ix||Function(`return this`)(),ox,sx=(ox={À:`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 ox?.[e]});function cx(e){return tx.test(e)}function lx(e){return cx(e)?function(e){return e.match($b)||[]}(e):function(e){return e.split(``)}(e)}var ux=Object.prototype.toString,dx=ax.Symbol,fx=dx?dx.prototype:void 0,px=fx?fx.toString:void 0;function Bae(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&ux.call(e)==`[object Symbol]`}(e))return px?px.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Vae(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 mx(e){return e==null?``:Bae(e)}for(var hx,Hae=(hx=function(e,t,n){return t=t.toLowerCase(),e+(n?Uae(mx(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=mx(e),(t=n?void 0:t)===void 0?function(e){return nx.test(e)}(e)?function(e){return e.match(ex)||[]}(e):function(e){return e.match(Ab)||[]}(e):e.match(t)||[]}(function(e){return(e=mx(e))&&e.replace(jb,sx).replace(Qb,``)}(e).replace(Zb,``)),hx,``)}),gx,Uae=(gx=`toUpperCase`,function(e){var t=cx(e=mx(e))?lx(e):void 0,n=t?t[0]:e.charAt(0),r=t?Vae(t,1).join(``):e.slice(1);return n[gx]()+r}),Wae=Hae,Gae=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),_x={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},vx={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:Gae?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},yx={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},bx=1;bx<20;bx++)yx[`f`+bx]=111+bx;function xx(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 _x)r[_x[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=Sx(f),h=_x[m];if(f.length>1&&!h&&!vx[f]&&!yx[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Kae(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 Kae(e){return e=Sx(e),yx[e]||e.toUpperCase().charCodeAt(0)}function Sx(e){return e=e.toLowerCase(),e=vx[e]||e}var qae=xx,Cx=function(e,t){return xx(e,{byKey:!0},t)},Jae=/^\s+|\s+$/g,Yae=/^[-+]0x[0-9a-f]+$/i,Xae=/^0b[01]+$/i,Zae=/^0o[0-7]+$/i,Qae=parseInt,$ae=typeof tl==`object`&&tl&&tl.Object===Object&&tl,eoe=typeof self==`object`&&self&&self.Object===Object&&self,toe=$ae||eoe||Function(`return this`)(),noe=Object.prototype.toString,roe=Math.max,ioe=Math.min,wx=function(){return toe.Date.now()};function Tx(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ex(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&noe.call(e)==`[object Symbol]`}(e))return NaN;if(Tx(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Tx(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Jae,``);var n=Xae.test(e);return n||Zae.test(e)?Qae(e.slice(2),n?2:8):Yae.test(e)?NaN:+e}var Dx,Ox=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=wx();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?ioe(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=wx(),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=Ex(t)||0,Tx(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?roe(Ex(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:_(wx())},v},kx=nl((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]`,ee=/\w*$/,k=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,j={};j[i]=j[`[object Array]`]=j[v]=j[y]=j[a]=j[o]=j[b]=j[x]=j[S]=j[C]=j[w]=j[l]=j[u]=j[d]=j[p]=j[m]=j[h]=j[g]=j[T]=j[E]=j[D]=j[O]=!0,j[`[object Error]`]=j[s]=j[_]=!1;var te=typeof tl==`object`&&tl&&tl.Object===Object&&tl,M=typeof self==`object`&&self&&self.Object===Object&&self,ne=te||M||Function(`return this`)(),re=t&&!t.nodeType&&t,ie=re&&e&&!e.nodeType&&e,ae=ie&&ie.exports===re;function oe(e,t){return e.set(t[0],t[1]),e}function se(e,t){return e.add(t),e}function ce(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 N(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function le(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ue(e,t){return function(n){return e(t(n))}}function de(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var fe=Array.prototype,pe=Function.prototype,me=Object.prototype,he=ne[`__core-js_shared__`],ge=function(){var e=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),_e=pe.toString,ve=me.hasOwnProperty,ye=me.toString,P=RegExp(`^`+_e.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),be=ae?ne.Buffer:void 0,F=ne.Symbol,xe=ne.Uint8Array,Se=ue(Object.getPrototypeOf,Object),Ce=Object.create,I=me.propertyIsEnumerable,we=fe.splice,L=Object.getOwnPropertySymbols,Te=be?be.isBuffer:void 0,Ee=ue(Object.keys,Object),De=Qe(ne,`DataView`),Oe=Qe(ne,`Map`),ke=Qe(ne,`Promise`),Ae=Qe(ne,`Set`),je=Qe(ne,`WeakMap`),Me=Qe(Object,`create`),Ne=rt(De),Pe=rt(Oe),Fe=rt(ke),Ie=rt(Ae),Le=rt(je),Re=F?F.prototype:void 0,ze=Re?Re.valueOf:void 0;function Be(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 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){this.__data__=new Ve(e)}function We(e,t){var n=at(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&ot(e)}(e)&&ve.call(e,`callee`)&&(!I.call(e,`callee`)||ye.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&&!ve.call(e,o)||a&&(o==`length`||tt(o,r))||n.push(o);return n}function Ge(e,t,n){var r=e[t];ve.call(e,t)&&it(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function Ke(e,t){for(var n=e.length;n--;)if(it(e[n][0],t))return n;return-1}function qe(e,t,n,r,f,_,k){var A;if(r&&(A=_?r(e,f,_,k):r(e)),A!==void 0)return A;if(!lt(e))return e;var te=at(e);if(te){if(A=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&ve.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,A)}else{var M=et(e),ne=M==s||M==c;if(st(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(M==d||M==i||ne&&!_){if(N(e))return _?e:{};if(A=function(e){return typeof e.constructor!=`function`||nt(e)?{}:(t=Se(e),lt(t)?Ce(t):{});var t}(ne?{}:e),!t)return function(e,t){return Xe(e,$e(e),t)}(e,function(e,t){return e&&Xe(t,ut(t),e)}(A,e))}else{if(!j[M])return _?e:{};A=function(e,t,n,r){var i=e.constructor;switch(t){case v:return Ye(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?Ye(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?Ye(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return ce(t?n(le(e),!0):le(e),oe,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,ee.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return ce(t?n(de(e),!0):de(e),se,new e.constructor)}(e,r,n);case g:return function(e){return ze?Object(ze.call(e)):{}}(e)}}(e,M,qe,t)}}k||=new Ue;var re=k.get(e);if(re)return re;if(k.set(e,A),!te)var ie=n?function(e){return function(e,t,n){var r=t(e);return at(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,ut,$e)}(e):ut(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(ie||e,(function(i,a){ie&&(i=e[a=i]),Ge(A,a,qe(i,t,n,r,a,e,k))})),A}function Je(e){return!(!lt(e)||function(e){return!!ge&&ge in e}(e))&&(ct(e)||N(e)?P:k).test(rt(e))}function Ye(e){var t=new e.constructor(e.byteLength);return new xe(t).set(new xe(e)),t}function Xe(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;Ge(n,o,s===void 0?e[o]:s)}return n}function Ze(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 Qe(e,t){var n=function(e,t){return e?.[t]}(e,t);return Je(n)?n:void 0}Be.prototype.clear=function(){this.__data__=Me?Me(null):{}},Be.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Be.prototype.get=function(e){var t=this.__data__;if(Me){var r=t[e];return r===n?void 0:r}return ve.call(t,e)?t[e]:void 0},Be.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==void 0:ve.call(t,e)},Be.prototype.set=function(e,t){return this.__data__[e]=Me&&t===void 0?n:t,this},Ve.prototype.clear=function(){this.__data__=[]},Ve.prototype.delete=function(e){var t=this.__data__,n=Ke(t,e);return!(n<0)&&(n==t.length-1?t.pop():we.call(t,n,1),!0)},Ve.prototype.get=function(e){var t=this.__data__,n=Ke(t,e);return n<0?void 0:t[n][1]},Ve.prototype.has=function(e){return Ke(this.__data__,e)>-1},Ve.prototype.set=function(e,t){var n=this.__data__,r=Ke(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},He.prototype.clear=function(){this.__data__={hash:new Be,map:new(Oe||Ve),string:new Be}},He.prototype.delete=function(e){return Ze(this,e).delete(e)},He.prototype.get=function(e){return Ze(this,e).get(e)},He.prototype.has=function(e){return Ze(this,e).has(e)},He.prototype.set=function(e,t){return Ze(this,e).set(e,t),this},Ue.prototype.clear=function(){this.__data__=new Ve},Ue.prototype.delete=function(e){return this.__data__.delete(e)},Ue.prototype.get=function(e){return this.__data__.get(e)},Ue.prototype.has=function(e){return this.__data__.has(e)},Ue.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ve){var r=n.__data__;if(!Oe||r.length<199)return r.push([e,t]),this;n=this.__data__=new He(r)}return n.set(e,t),this};var $e=L?ue(L,Object):function(){return[]},et=function(e){return ye.call(e)};function tt(e,t){return!!(t??=r)&&(typeof e==`number`||A.test(e))&&e>-1&&e%1==0&&e<t}function nt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||me)}function rt(e){if(e!=null){try{return _e.call(e)}catch{}try{return e+``}catch{}}return``}function it(e,t){return e===t||e!=e&&t!=t}(De&&et(new De(new ArrayBuffer(1)))!=y||Oe&&et(new Oe)!=l||ke&&et(ke.resolve())!=f||Ae&&et(new Ae)!=m||je&&et(new je)!=_)&&(et=function(e){var t=ye.call(e),n=t==d?e.constructor:void 0,r=n?rt(n):void 0;if(r)switch(r){case Ne:return y;case Pe:return l;case Fe:return f;case Ie:return m;case Le:return _}return t});var at=Array.isArray;function ot(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!ct(e)}var st=Te||function(){return!1};function ct(e){var t=lt(e)?ye.call(e):``;return t==s||t==c}function lt(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function ut(e){return ot(e)?We(e):function(e){if(!nt(e))return Ee(e);var t=[];for(var n in Object(e))ve.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return qe(e,!0,!0)}}));function Ax(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var aoe=0;function ooe(e){return`__private_`+ aoe+++`_`+e}function soe(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 jx(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=soe(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var Mx=(Dx=ooe(`apply`),class{constructor(e){Object.defineProperty(this,Dx,{value:coe}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(Ax(this,Dx)[Dx],this):Ax(this,Dx)[Dx](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 jx(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 jx(n,t)}});function coe(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 Nx=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:loe}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},Px=e=>crypto.getRandomValues(new Uint8Array(e)),Fx=(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}}},uoe={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)=>Fx(e,t,Px),customRandom:Fx,urlAlphabet:loe,random:Px},Ix=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 Lx(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}Lx.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 doe=/[\/\+\.]/,foe=function(e,t){function n(t){var n=function(e,t,n){var r=new Lx(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,doe);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},poe=0;function moe(e){return`__private_`+ poe+++`_`+e}var Rx=moe(`publish`),zx=class{constructor(){Object.defineProperty(this,Rx,{value:hoe}),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,Rx)[Rx](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function hoe(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}zx.VERSION=`2.0.3`;var Bx=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)}},Vx={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 Hx(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var goe=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 Ux(e){return e<10?`0${e}`:e.toString()}var Wx=function(){let e=new Date;return`${Ux(e.getHours())}:${Ux(e.getMinutes())}:${Ux(e.getSeconds())}`},Gx={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Wx()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${Wx()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${Wx()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${Wx()}]`,...e)}}},_oe={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}`}}},Kx=uoe,qx,Jx;function q(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var voe=0;function Yx(e){return`__private_`+ voe+++`_`+e}var{nanoid:yoe}=Kx,{justErrorsLogger:boe,debugLogger:xoe}=Gx,Xx=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 Soe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},Zx=Yx(`plugins`),Qx=Yx(`storeUnsubscribe`),$x=Yx(`emitter`),eS=Yx(`preProcessors`),tS=Yx(`uploaders`),nS=Yx(`postProcessors`),rS=Yx(`checkRestrictions`),iS=Yx(`checkMinNumberOfFiles`),aS=Yx(`checkRequiredMetaFieldsOnFile`),oS=Yx(`checkRequiredMetaFields`),sS=Yx(`showOrLogErrorAndThrow`),cS=Yx(`assertNewUploadAllowed`),lS=Yx(`checkAndCreateFileStateObject`),uS=Yx(`startIfAutoProceed`),dS=Yx(`addListeners`),fS=Yx(`updateOnlineStatus`),pS=Yx(`createUpload`),mS=Yx(`getUpload`),hS=Yx(`removeUpload`),gS=Yx(`runUpload`);qx=Symbol.for(`uppy test: getPlugins`),Jx=Symbol.for(`uppy test: createUpload`);var _S=class{constructor(e){Object.defineProperty(this,gS,{value:Foe}),Object.defineProperty(this,hS,{value:Poe}),Object.defineProperty(this,mS,{value:Noe}),Object.defineProperty(this,pS,{value:Moe}),Object.defineProperty(this,dS,{value:joe}),Object.defineProperty(this,uS,{value:Aoe}),Object.defineProperty(this,lS,{value:koe}),Object.defineProperty(this,cS,{value:Ooe}),Object.defineProperty(this,sS,{value:Doe}),Object.defineProperty(this,oS,{value:Eoe}),Object.defineProperty(this,aS,{value:Toe}),Object.defineProperty(this,iS,{value:woe}),Object.defineProperty(this,rS,{value:Coe}),Object.defineProperty(this,Zx,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Qx,{writable:!0,value:void 0}),Object.defineProperty(this,$x,{writable:!0,value:Nx()}),Object.defineProperty(this,eS,{writable:!0,value:new Set}),Object.defineProperty(this,tS,{writable:!0,value:new Set}),Object.defineProperty(this,nS,{writable:!0,value:new Set}),Object.defineProperty(this,fS,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=_oe;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 zx,logger:boe,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=xoe),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=Xy(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:goe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),q(this,Qx)[Qx]=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),q(this,dS)[dS]()}emit(e){var t=[...arguments].slice(1);q(this,$x)[$x].emit(e,...t)}on(e,t){return q(this,$x)[$x].on(e,t),this}once(e,t){return q(this,$x)[$x].once(e,t),this}off(e,t){return q(this,$x)[$x].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 Mx([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){q(this,eS)[eS].add(e)}removePreProcessor(e){return q(this,eS)[eS].delete(e)}addPostProcessor(e){q(this,nS)[nS].add(e)}removePostProcessor(e){return q(this,nS)[nS].delete(e)}addUploader(e){q(this,tS)[tS].add(e)}removeUploader(e){return q(this,tS)[tS].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 q(this,rS)[rS](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){q(this,cS)[cS](e);let{files:t}=this.getState(),n=q(this,lS)[lS](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}`),q(this,uS)[uS](),n.id}addFiles(e){q(this,cS)[cS]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=q(this,lS)[lS](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&&q(this,uS)[uS](),r.length>0){let e=`Multiple errors occurred while adding files:
|
|
|
`;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=q(this,pS)[pS](t,{forceAllowNewUpload:!0});return q(this,gS)[gS](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=q(this,pS)[pS]([e],{forceAllowNewUpload:!0});return q(this,gS)[gS](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 q(this,Zx)[Zx]?q(this,Zx)[Zx][n.type].push(n):q(this,Zx)[Zx][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(q(this,Zx)[Zx])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[qx](e){return q(this,Zx)[Zx][e]}iteratePlugins(e){Object.values(q(this,Zx)[Zx]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=q(this,Zx)[Zx][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(),q(this,Qx)[Qx](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,q(this,fS)[fS]),window.removeEventListener(`offline`,q(this,fS)[fS]))}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]?q(this,gS)[gS](e):(q(this,hS)[hS](e),Promise.reject(Error(`Nonexistent upload`)))}[Jx](){return q(this,pS)[pS](...arguments)}addResultData(e,t){if(!q(this,mS)[mS](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=q(this,Zx)[Zx].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((()=>{q(this,iS)[iS](t),q(this,oS)[oS](t)})).catch((e=>{q(this,sS)[sS](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=q(this,pS)[pS](r);return q(this,gS)[gS](i)})).catch((e=>{q(this,sS)[sS](e,{showInformer:!1})})))}};function Coe(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 Xx(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&foe(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new Xx(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 Xx(this.i18n(`exceedsSize`,{size:Ix(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Xx(this.i18n(`exceedsSize`,{size:Ix(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Xx(this.i18n(`inferiorSize`,{size:Ix(r)}))}function woe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Xx(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function Toe(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 Xx(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),q(this,sS)[sS](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function Eoe(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return q(this,aS)[aS](t)}));if(t.length)throw new Soe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function Doe(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 Ooe(e){let{allowNewUpload:t}=this.getState();!1===t&&q(this,sS)[sS](new Xx(this.i18n(`noMoreFilesAllowed`)),{file:e})}function koe(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?Bx(e.name).extension?.toLowerCase():null;return t&&t in Vx?Vx[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=Bx(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${Hx(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${Hx(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 Xx(this.i18n(`noDuplicates`,{fileName:r}));q(this,sS)[sS](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?q(this,sS)[sS](new Xx(`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]));q(this,rS)[rS](l,t)}catch(e){q(this,sS)[sS](e,{file:l})}return l}function Aoe(){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 joe(){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}),q(this,sS)[sS](e,{throwErr:!1})}else q(this,sS)[sS](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:q(this,nS)[nS].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&&q(this,aS)[aS](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,q(this,fS)[fS]),window.addEventListener(`offline`,q(this,fS)[fS]),setTimeout(q(this,fS)[fS],3e3))}function Moe(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=yoe();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 Noe(e){let{currentUploads:t}=this.getState();return t[e]}function Poe(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Foe(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...q(this,eS)[eS],...q(this,tS)[tS],...q(this,nS)[nS]];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),q(this,hS)[hS](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),q(this,hS)[hS](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}_S.VERSION=`2.1.3`;var vS=_S,Ioe=nl((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,k(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),A(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}k(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)),M(S[f],S[f]));if(x)for(f=0;f<x.length;f++)te(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?ee:O,a):e.removeEventListener(t,a?ee: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 ee(e){this.l[e.type+!0](r.event?r.event(e):e)}function k(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=ne),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=j(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 A(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 j(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 te(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function M(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||te(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]&&M(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function ne(e,t,n){return this.constructor(e,n)}function re(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],k(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),A(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){re(t,n,e)},t.isValidElement=a,t.options=r,t.render=re,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}})),Loe=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},yS=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 Mx([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 bS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Roe=0;function zoe(e){return`__private_`+ Roe+++`_`+e}var{render:xS}=Ioe,SS=zoe(`updateUI`),Boe=class e extends yS{constructor(){super(...arguments),Object.defineProperty(this,SS,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Loe(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return bS(this,SS)[SS]=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)&&(xS(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),xS(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=bS(this,SS))[SS])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Voe}=Gx,CS=vS,Hoe=vS,Uoe=Boe,Woe=yS,Goe=Voe;CS.Uppy=Hoe,CS.UIPlugin=Uoe,CS.BasePlugin=Woe,CS.debugLogger=Goe;var wS=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}},TS=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new wS(e)}))},Koe=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},ES,DS,OS,kS,AS,qoe=Koe;function jS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Joe=0;function MS(e){return`__private_`+ Joe+++`_`+e}async function NS(e){if(e.status===401)throw new qoe;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 PS=(DS=MS(`getPostResponseFunc`),OS=MS(`getUrl`),kS=MS(`errorHandler`),AS=ES=class e{constructor(e,t){Object.defineProperty(this,kS,{value:Xoe}),Object.defineProperty(this,OS,{value:Yoe}),Object.defineProperty(this,DS,{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(jS(this,OS)[OS](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=>TS(jS(this,OS)[OS](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(jS(this,DS)[DS](t)).then(NS).catch(jS(this,kS)[kS](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>TS(jS(this,OS)[OS](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(jS(this,DS)[DS](n)).then(NS).catch(jS(this,kS)[kS](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>TS(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(jS(this,DS)[DS](n)).then(NS).catch(jS(this,kS)[kS](r,e))}},ES.VERSION=`2.0.4`,ES.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${ES.VERSION}`},AS);function Yoe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Xoe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${jS(this,OS)[OS](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Zoe={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()}))},FS,IS,LS,RS,zS,BS,VS;function HS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Qoe=0;function US(e){return`__private_`+ Qoe+++`_`+e}var $oe=(FS=US(`queued`),IS=US(`emitter`),LS=US(`isOpen`),RS=US(`socket`),zS=US(`handleMessage`),BS=Symbol.for(`uppy test: getSocket`),VS=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,FS,{writable:!0,value:[]}),Object.defineProperty(this,IS,{writable:!0,value:Nx()}),Object.defineProperty(this,LS,{writable:!0,value:!1}),Object.defineProperty(this,RS,{writable:!0,value:void 0}),Object.defineProperty(this,zS,{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 HS(this,LS)[LS]}[BS](){return HS(this,RS)[RS]}[VS](){return HS(this,FS)[FS]}open(){HS(this,RS)[RS]=new WebSocket(this.opts.target),HS(this,RS)[RS].onopen=()=>{for(HS(this,LS)[LS]=!0;HS(this,FS)[FS].length>0&&HS(this,LS)[LS];){let e=HS(this,FS)[FS].shift();this.send(e.action,e.payload)}},HS(this,RS)[RS].onclose=()=>{HS(this,LS)[LS]=!1},HS(this,RS)[RS].onmessage=HS(this,zS)[zS]}close(){var e;(e=HS(this,RS)[RS])==null||e.close()}send(e,t){HS(this,LS)[LS]?HS(this,RS)[RS].send(JSON.stringify({action:e,payload:t})):HS(this,FS)[FS].push({action:e,payload:t})}on(e,t){HS(this,IS)[IS].on(e,t)}emit(e,t){HS(this,IS)[IS].emit(e,t)}once(e,t){HS(this,IS)[IS].once(e,t)}}),ese={RequestClient:PS,Provider:class extends PS{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||Zoe}},SearchProvider:class extends PS{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:$oe},WS,GS,tse=Xy((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 KS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var nse=0;function qS(e){return`__private_`+ nse+++`_`+e}var JS=(WS=qS(`emitter`),GS=qS(`events`),class{constructor(e){Object.defineProperty(this,WS,{writable:!0,value:void 0}),Object.defineProperty(this,GS,{writable:!0,value:[]}),KS(this,WS)[WS]=e}on(e,t){return KS(this,GS)[GS].push([e,t]),KS(this,WS)[WS].on(e,t)}remove(){for(let[e,t]of KS(this,GS)[GS].splice(0))KS(this,WS)[WS].off(e,t)}});function YS(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var rse=0;function XS(e){return`__private_`+ rse+++`_`+e}var ZS=XS(`aliveTimer`),QS=XS(`isDone`),$S=XS(`onTimedOut`),eC=XS(`timeout`),tC=class{constructor(e,t){Object.defineProperty(this,ZS,{writable:!0,value:void 0}),Object.defineProperty(this,QS,{writable:!0,value:!1}),Object.defineProperty(this,$S,{writable:!0,value:void 0}),Object.defineProperty(this,eC,{writable:!0,value:void 0}),YS(this,eC)[eC]=e,YS(this,$S)[$S]=t}progress(){YS(this,QS)[QS]||YS(this,eC)[eC]>0&&(clearTimeout(YS(this,ZS)[ZS]),YS(this,ZS)[ZS]=setTimeout(YS(this,$S)[$S],YS(this,eC)[eC]))}done(){YS(this,QS)[QS]||(clearTimeout(YS(this,ZS)[ZS]),YS(this,ZS)[ZS]=null,YS(this,QS)[QS]=!0)}};function nC(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var ise=0;function rC(e){return`__private_`+ ise+++`_`+e}function ase(){return Error(`Cancelled`)}var iC=rC(`activeRequests`),aC=rC(`queuedHandlers`),oC=rC(`call`),sC=rC(`queueNext`),cC=rC(`next`),lC=rC(`queue`),uC=rC(`dequeue`);function ose(e){nC(this,iC)[iC]+=1;let t,n=!1;try{t=e()}catch(e){throw--nC(this,iC)[iC],e}return{abort:()=>{n||(n=!0,--nC(this,iC)[iC],t(),nC(this,sC)[sC]())},done:()=>{n||(n=!0,--nC(this,iC)[iC],nC(this,sC)[sC]())}}}function sse(){queueMicrotask((()=>nC(this,cC)[cC]()))}function cse(){if(nC(this,iC)[iC]>=this.limit||nC(this,aC)[aC].length===0)return;let e=nC(this,aC)[aC].shift(),t=nC(this,oC)[oC](e.fn);e.abort=t.abort,e.done=t.done}function lse(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{nC(this,uC)[uC](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=nC(this,aC)[aC].findIndex((e=>n.priority>e.priority));return r===-1?nC(this,aC)[aC].push(n):nC(this,aC)[aC].splice(r,0,n),n}function use(e){let t=nC(this,aC)[aC].indexOf(e);t!==-1&&nC(this,aC)[aC].splice(t,1)}var dse={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,uC,{value:use}),Object.defineProperty(this,lC,{value:lse}),Object.defineProperty(this,cC,{value:cse}),Object.defineProperty(this,sC,{value:sse}),Object.defineProperty(this,oC,{value:ose}),Object.defineProperty(this,iC,{writable:!0,value:0}),Object.defineProperty(this,aC,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return nC(this,iC)[iC]<this.limit?nC(this,oC)[oC](e):nC(this,lC)[lC](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=ase()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},dC,fC,pC=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},fse={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:pse}=Kx,{Provider:mse,RequestClient:hse,Socket:gse}=ese,{RateLimitedQueue:_se,internalRateLimitedQueue:mC}=dse;function hC(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})),pC(e)?(n=new wS(n,e),n):(n.request=e,n)}function gC(e){return e.data.slice(0,e.data.size,e.meta.type)}var vse=(fC=dC=class extends yS{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=fse;let n={formData:!0,fieldName:t.bundle?`files[]`:`file`,method:`post`,metaFields:null,responseUrlFieldName:`url`,bundle:!1,headers:{},timeout:3e4,limit:5,withCredentials:!1,responseType:``,getResponseData(t){let n={};try{n=JSON.parse(t)}catch(t){e.log(t)}return n},getResponseError(e,t){let n=Error(`Upload error`);return pC(t)&&(n=new wS(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),mC in this.opts?this.requests=this.opts[mC]:this.requests=new _se(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=gC(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=gC(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 JS(this.uppy);let o=new tC(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=pse();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=hC(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=hC(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?mse:hse)(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 gse({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 JS(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=>tse(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 tC(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[mC]||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)}},dC.VERSION=`2.0.6`,fC),_C=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function vC(e){var t={exports:{}};return e(t,t.exports),t.exports}var yC,bC,xC=function(e){return e&&e.Math==Math&&e},J=xC(typeof globalThis==`object`&&globalThis)||xC(typeof window==`object`&&window)||xC(typeof self==`object`&&self)||xC(typeof _C==`object`&&_C)||function(){return this}()||Function(`return this`)(),yse=Object.defineProperty,SC=function(e,t){try{yse(J,e,{value:t,configurable:!0,writable:!0})}catch{J[e]=t}return t},CC=J[`__core-js_shared__`]||SC(`__core-js_shared__`,{}),wC=vC((function(e){(e.exports=function(e,t){return CC[e]||(CC[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),TC=Function.prototype,EC=TC.bind,DC=TC.call,bse=EC&&EC.bind(DC),Y=EC?function(e){return e&&bse(DC,e)}:function(e){return e&&function(){return DC.apply(e,arguments)}},xse=J.TypeError,OC=function(e){if(e==null)throw xse(`Can't call method on `+e);return e},Sse=J.Object,kC=function(e){return Sse(OC(e))},Cse=Y({}.hasOwnProperty),AC=Object.hasOwn||function(e,t){return Cse(kC(e),t)},wse=0,Tse=Math.random(),Ese=Y(1 .toString),jC=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Ese(++wse+Tse,36)},MC=function(e){return typeof e==`function`},Dse=function(e){return MC(e)?e:void 0},NC=function(e,t){return arguments.length<2?Dse(J[e]):J[e]&&J[e][t]},PC=NC(`navigator`,`userAgent`)||``,FC=J.process,IC=J.Deno,LC=FC&&FC.versions||IC&&IC.version,RC=LC&&LC.v8;RC&&(bC=(yC=RC.split(`.`))[0]>0&&yC[0]<4?1:+(yC[0]+yC[1])),!bC&&PC&&(!(yC=PC.match(/Edge\/(\d+)/))||yC[1]>=74)&&(yC=PC.match(/Chrome\/(\d+)/))&&(bC=+yC[1]);var zC=bC,BC=function(e){try{return!!e()}catch{return!0}},VC=!!Object.getOwnPropertySymbols&&!BC((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&zC&&zC<41})),HC=VC&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,UC=wC(`wks`),WC=J.Symbol,GC=WC&&WC.for,Ose=HC?WC:WC&&WC.withoutSetter||jC,KC=function(e){if(!AC(UC,e)||!VC&&typeof UC[e]!=`string`){var t=`Symbol.`+e;VC&&AC(WC,e)?UC[e]=WC[e]:UC[e]=HC&&GC?GC(t):Ose(t)}return UC[e]},qC={};qC[KC(`toStringTag`)]=`z`;var JC=String(qC)===`[object z]`,YC=!BC((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XC=function(e){return typeof e==`object`?e!==null:MC(e)},ZC=J.document,kse=XC(ZC)&&XC(ZC.createElement),QC=function(e){return kse?ZC.createElement(e):{}},$C=!YC&&!BC((function(){return Object.defineProperty(QC(`div`),`a`,{get:function(){return 7}}).a!=7})),Ase=J.String,jse=J.TypeError,ew=function(e){if(XC(e))return e;throw jse(Ase(e)+` is not an object`)},tw=Function.prototype.call,nw=tw.bind?tw.bind(tw):function(){return tw.apply(tw,arguments)},rw=Y({}.isPrototypeOf),Mse=J.Object,iw=HC?function(e){return typeof e==`symbol`}:function(e){var t=NC(`Symbol`);return MC(t)&&rw(t.prototype,Mse(e))},Nse=J.String,aw=function(e){try{return Nse(e)}catch{return`Object`}},Pse=J.TypeError,ow=function(e){if(MC(e))return e;throw Pse(aw(e)+` is not a function`)},sw=function(e,t){var n=e[t];return n==null?void 0:ow(n)},Fse=J.TypeError,Ise=J.TypeError,Lse=KC(`toPrimitive`),cw=function(e){var t=function(e,t){if(!XC(e)||iw(e))return e;var n,r=sw(e,Lse);if(r){if(t===void 0&&(t=`default`),n=nw(r,e,t),!XC(n)||iw(n))return n;throw Ise(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&MC(n=e.toString)&&!XC(r=nw(n,e))||MC(n=e.valueOf)&&!XC(r=nw(n,e))||t!==`string`&&MC(n=e.toString)&&!XC(r=nw(n,e)))return r;throw Fse(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return iw(t)?t:t+``},Rse=J.TypeError,lw=Object.defineProperty,uw={f:YC?lw:function(e,t,n){if(ew(e),t=cw(t),ew(n),$C)try{return lw(e,t,n)}catch{}if(`get`in n||`set`in n)throw Rse(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},dw=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},fw=YC?function(e,t,n){return uw.f(e,t,dw(1,n))}:function(e,t,n){return e[t]=n,e},zse=Y(Function.toString);MC(CC.inspectSource)||(CC.inspectSource=function(e){return zse(e)});var pw,mw,hw,gw=CC.inspectSource,_w=J.WeakMap,vw=MC(_w)&&/native code/.test(gw(_w)),yw=wC(`keys`),bw=function(e){return yw[e]||(yw[e]=jC(e))},xw={},Sw=J.TypeError,Bse=J.WeakMap;if(vw||CC.state){var Cw=CC.state||=new Bse,Vse=Y(Cw.get),ww=Y(Cw.has),Hse=Y(Cw.set);pw=function(e,t){if(ww(Cw,e))throw new Sw(`Object already initialized`);return t.facade=e,Hse(Cw,e,t),t},mw=function(e){return Vse(Cw,e)||{}},hw=function(e){return ww(Cw,e)}}else{var Tw=bw(`state`);xw[Tw]=!0,pw=function(e,t){if(AC(e,Tw))throw new Sw(`Object already initialized`);return t.facade=e,fw(e,Tw,t),t},mw=function(e){return AC(e,Tw)?e[Tw]:{}},hw=function(e){return AC(e,Tw)}}var Ew={set:pw,get:mw,has:hw,enforce:function(e){return hw(e)?mw(e):pw(e,{})},getterFor:function(e){return function(t){var n;if(!XC(t)||(n=mw(t)).type!==e)throw Sw(`Incompatible receiver, `+e+` required`);return n}}},Dw=Function.prototype,Use=YC&&Object.getOwnPropertyDescriptor,Ow=AC(Dw,`name`),kw={EXISTS:Ow,PROPER:Ow&&function(){}.name===`something`,CONFIGURABLE:Ow&&(!YC||YC&&Use(Dw,`name`).configurable)},Aw=vC((function(e){var t=kw.CONFIGURABLE,n=Ew.get,r=Ew.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;MC(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!AC(a,`name`)||t&&a.name!==d)&&fw(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===J?l?e[n]=a:SC(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:fw(e,n,a))})(Function.prototype,`toString`,(function(){return MC(this)&&n(this).source||gw(this)}))})),Wse=Y({}.toString),Gse=Y(``.slice),jw=function(e){return Gse(Wse(e),8,-1)},Kse=KC(`toStringTag`),qse=J.Object,Jse=jw(function(){return arguments}())==`Arguments`,Mw=JC?jw: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=qse(e),Kse))==`string`?n:Jse?jw(t):(r=jw(t))==`Object`&&MC(t.callee)?`Arguments`:r},Yse=JC?{}.toString:function(){return`[object `+Mw(this)+`]`};JC||Aw(Object.prototype,`toString`,Yse,{unsafe:!0});var Nw={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},Pw=QC(`span`).classList,Fw=Pw&&Pw.constructor&&Pw.constructor.prototype,Iw=Fw===Object.prototype?void 0:Fw,Lw=Y(Y.bind),Rw=function(e,t){return ow(e),t===void 0?e:Lw?Lw(e,t):function(){return e.apply(t,arguments)}},zw=J.Object,Xse=Y(``.split),Bw=BC((function(){return!zw(`z`).propertyIsEnumerable(0)}))?function(e){return jw(e)==`String`?Xse(e,``):zw(e)}:zw,Zse=Math.ceil,Qse=Math.floor,Vw=function(e){var t=+e;return t!=t||t===0?0:(t>0?Qse:Zse)(t)},$se=Math.min,Hw=function(e){return e>0?$se(Vw(e),9007199254740991):0},Uw=function(e){return Hw(e.length)},Ww=Array.isArray||function(e){return jw(e)==`Array`},Gw=function(){},ece=[],Kw=NC(`Reflect`,`construct`),qw=/^\s*(?:class|function)\b/,tce=Y(qw.exec),nce=!qw.exec(Gw),Jw=function(e){if(!MC(e))return!1;try{return Kw(Gw,ece,e),!0}catch{return!1}},Yw=!Kw||BC((function(){var e;return Jw(Jw.call)||!Jw(Object)||!Jw((function(){e=!0}))||e}))?function(e){if(!MC(e))return!1;switch(Mw(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return nce||!!tce(qw,gw(e))}:Jw,rce=KC(`species`),Xw=J.Array,Zw=function(e,t){return new(function(e){var t;return Ww(e)&&(t=e.constructor,(Yw(t)&&(t===Xw||Ww(t.prototype))||XC(t)&&(t=t[rce])===null)&&(t=void 0)),t===void 0?Xw:t}(e))(t===0?0:t)},Qw=Y([].push),$w=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=kC(c),h=Bw(m),g=Rw(l,u),_=Uw(h),v=0,y=d||Zw,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:Qw(b,f)}else switch(e){case 4:return!1;case 7:Qw(b,f)}return a?-1:r||i?i:b}},eT={forEach:$w(0),map:$w(1),filter:$w(2),some:$w(3),every:$w(4),find:$w(5),findIndex:$w(6),filterReject:$w(7)},tT=function(e,t){var n=[][e];return!!n&&BC((function(){n.call(null,t||function(){throw 1},1)}))},ice=eT.forEach,nT=tT(`forEach`)?[].forEach:function(e){return ice(this,e,arguments.length>1?arguments[1]:void 0)},rT=function(e){if(e&&e.forEach!==nT)try{fw(e,`forEach`,nT)}catch{e.forEach=nT}};for(var iT in Nw)Nw[iT]&&rT(J[iT]&&J[iT].prototype);rT(Iw);var aT={}.propertyIsEnumerable,oT=Object.getOwnPropertyDescriptor,sT={f:oT&&!aT.call({1:2},1)?function(e){var t=oT(this,e);return!!t&&t.enumerable}:aT},cT=function(e){return Bw(OC(e))},lT=Object.getOwnPropertyDescriptor,uT={f:YC?lT:function(e,t){if(e=cT(e),t=cw(t),$C)try{return lT(e,t)}catch{}if(AC(e,t))return dw(!nw(sT.f,e,t),e[t])}},ace=Math.max,oce=Math.min,dT=function(e,t){var n=Vw(e);return n<0?ace(n+t,0):oce(n,t)},fT=function(e){return function(t,n,r){var i,a=cT(t),o=Uw(a),s=dT(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}},pT={includes:fT(!0),indexOf:fT(!1)},sce=pT.indexOf,mT=Y([].push),hT=function(e,t){var n,r=cT(e),i=0,a=[];for(n in r)!AC(xw,n)&&AC(r,n)&&mT(a,n);for(;t.length>i;)AC(r,n=t[i++])&&(~sce(a,n)||mT(a,n));return a},gT=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],cce=gT.concat(`length`,`prototype`),_T={f:Object.getOwnPropertyNames||function(e){return hT(e,cce)}},vT={f:Object.getOwnPropertySymbols},lce=Y([].concat),uce=NC(`Reflect`,`ownKeys`)||function(e){var t=_T.f(ew(e)),n=vT.f;return n?lce(t,n(e)):t},dce=function(e,t){for(var n=uce(t),r=uw.f,i=uT.f,a=0;a<n.length;a++){var o=n[a];AC(e,o)||r(e,o,i(t,o))}},fce=/#|\.prototype\./,yT=function(e,t){var n=mce[pce(e)];return n==gce||n!=hce&&(MC(t)?BC(t):!!t)},pce=yT.normalize=function(e){return String(e).replace(fce,`.`).toLowerCase()},mce=yT.data={},hce=yT.NATIVE=`N`,gce=yT.POLYFILL=`P`,bT=yT,_ce=uT.f,xT=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?J:l?J[s]||SC(s,{}):(J[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=_ce(n,r))&&o.value:n[r],!bT(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;dce(a,i)}(e.sham||i&&i.sham)&&fw(a,`sham`,!0),Aw(n,r,a,e)}},ST=Object.keys||function(e){return hT(e,gT)},vce=BC((function(){ST(1)}));function CT(e){return Object.prototype.toString.call(e)===`[object Object]`}xT({target:`Object`,stat:!0,forced:vce},{keys:function(e){return ST(kC(e))}});var yce={isHistory(e){return!1!==CT(t=e)&&((n=t.constructor)===void 0||!1!==CT(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||D_.isOperationList(e.redos[0]))&&(e.undos.length===0||D_.isOperationList(e.undos[0]));var t,n,r}},wT=new WeakMap,TT=new WeakMap,ET={isHistoryEditor:e=>yce.isHistory(e.history)&&B.isEditor(e),isMerging:e=>TT.get(e),isSaving:e=>wT.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=ET.isMerging(e);TT.set(e,!1),t(),TT.set(e,n)},withoutSaving(e,t){var n=ET.isSaving(e);wT.set(e,!1),t(),wT.set(e,n)}},bce=J.String,DT=function(e){if(Mw(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return bce(e)},OT=function(){var e=ew(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},xce=kw.PROPER,kT=RegExp.prototype,AT=kT.toString,Sce=Y(OT),Cce=BC((function(){return AT.call({source:`a`,flags:`b`})!=`/a/b`})),wce=xce&&AT.name!=`toString`;(Cce||wce)&&Aw(RegExp.prototype,`toString`,(function(){var e=ew(this),t=DT(e.source),n=e.flags;return`/`+t+`/`+DT(n===void 0&&rw(kT,e)&&!(`flags`in kT)?Sce(e):n)}),{unsafe:!0});var jT,Tce=YC?Object.defineProperties:function(e,t){ew(e);for(var n,r=cT(t),i=ST(t),a=i.length,o=0;a>o;)uw.f(e,n=i[o++],r[n]);return e},MT=NC(`document`,`documentElement`),NT=bw(`IE_PROTO`),PT=function(){},FT=function(e){return`<script>`+e+`<\/script>`},IT=function(e){e.write(FT(``)),e.close();var t=e.parentWindow.Object;return e=null,t},LT=function(){try{jT=new ActiveXObject(`htmlfile`)}catch{}var e,t;LT=typeof document<`u`?document.domain&&jT?IT(jT):((t=QC(`iframe`)).style.display=`none`,MT.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(FT(`document.F=Object`)),e.close(),e.F):IT(jT);for(var n=gT.length;n--;)delete LT.prototype[gT[n]];return LT()};xw[NT]=!0;var RT=Object.create||function(e,t){var n;return e===null?n=LT():(PT.prototype=ew(e),n=new PT,PT.prototype=null,n[NT]=e),t===void 0?n:Tce(n,t)},zT=KC(`unscopables`),BT=Array.prototype;BT[zT]??uw.f(BT,zT,{configurable:!0,value:RT(null)});var VT=function(e){BT[zT][e]=!0},Ece=pT.includes;xT({target:`Array`,proto:!0},{includes:function(e){return Ece(this,e,arguments.length>1?arguments[1]:void 0)}}),VT(`includes`);var Dce=KC(`match`),HT=function(e){var t;return XC(e)&&((t=e[Dce])===void 0?jw(e)==`RegExp`:!!t)},Oce=J.TypeError,UT=function(e){if(HT(e))throw Oce(`The method doesn't accept regular expressions`);return e},kce=KC(`match`),WT=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[kce]=!1,`/./`[e](t)}catch{}}return!1},Ace=Y(``.indexOf);xT({target:`String`,proto:!0,forced:!WT(`includes`)},{includes:function(e){return!!~Ace(DT(OC(this)),DT(UT(e)),arguments.length>1?arguments[1]:void 0)}});var jce=/"/g,Mce=Y(``.replace);xT({target:`String`,proto:!0,forced:BC((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=DT(OC(this)),r=`<a`,(r+=` name="`+Mce(DT(t),jce,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var GT=function(e,t,n){var r,i;ew(e);try{if(!(r=sw(e,`return`))){if(t===`throw`)throw n;return n}r=nw(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return ew(r),n},Nce=function(e,t,n,r){try{return r?t(ew(n)[0],n[1]):t(n)}catch(t){GT(e,`throw`,t)}},KT={},Pce=KC(`iterator`),Fce=Array.prototype,qT=function(e){return e!==void 0&&(KT.Array===e||Fce[Pce]===e)},JT=function(e,t,n){var r=cw(t);r in e?uw.f(e,r,dw(0,n)):e[r]=n},Ice=KC(`iterator`),YT=function(e){if(e!=null)return sw(e,Ice)||sw(e,`@@iterator`)||KT[Mw(e)]},Lce=J.TypeError,XT=function(e,t){var n=arguments.length<2?YT(e):t;if(ow(n))return ew(nw(n,e));throw Lce(aw(e)+` is not iterable`)},ZT=J.Array,QT=KC(`iterator`),$T=!1;try{var Rce=0,eE={next:function(){return{done:!!Rce++}},return:function(){$T=!0}};eE[QT]=function(){return this},Array.from(eE,(function(){throw 2}))}catch{}var tE=function(e,t){if(!t&&!$T)return!1;var n=!1;try{var r={};r[QT]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};xT({target:`Array`,stat:!0,forced:!tE((function(e){Array.from(e)}))},{from:function(e){var t=kC(e),n=Yw(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=Rw(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=YT(t),p=0;if(!f||this==ZT&&qT(f))for(o=Uw(t),s=n?new this(o):ZT(o);o>p;p++)d=a?i(t[p],p):t[p],JT(s,p,d);else for(u=(l=XT(t,f)).next,s=n?new this:[];!(c=nw(u,l)).done;p++)d=a?Nce(l,i,[c.value,p],!0):c.value,JT(s,p,d);return s.length=p,s}});var nE,rE,iE,zce=Y(``.charAt),aE=Y(``.charCodeAt),Bce=Y(``.slice),oE=function(e){return function(t,n){var r,i,a=DT(OC(t)),o=Vw(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=aE(a,o))<55296||r>56319||o+1===s||(i=aE(a,o+1))<56320||i>57343?e?zce(a,o):r:e?Bce(a,o,o+2):i-56320+(r-55296<<10)+65536}},sE={codeAt:oE(!1),charAt:oE(!0)},Vce=!BC((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cE=bw(`IE_PROTO`),lE=J.Object,Hce=lE.prototype,uE=Vce?lE.getPrototypeOf:function(e){var t=kC(e);if(AC(t,cE))return t[cE];var n=t.constructor;return MC(n)&&t instanceof n?n.prototype:t instanceof lE?Hce:null},dE=KC(`iterator`),fE=!1;[].keys&&(`next`in(iE=[].keys())?(rE=uE(uE(iE)))!==Object.prototype&&(nE=rE):fE=!0),(nE==null||BC((function(){var e={};return nE[dE].call(e)!==e})))&&(nE={}),MC(nE[dE])||Aw(nE,dE,(function(){return this}));var pE={IteratorPrototype:nE,BUGGY_SAFARI_ITERATORS:fE},Uce=uw.f,mE=KC(`toStringTag`),hE=function(e,t,n){e&&!AC(e=n?e:e.prototype,mE)&&Uce(e,mE,{configurable:!0,value:t})},Wce=pE.IteratorPrototype,Gce=function(){return this},Kce=J.String,qce=J.TypeError,gE=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Y(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return ew(n),function(e){if(typeof e==`object`||MC(e))return e;throw qce(`Can't set `+Kce(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Jce=kw.PROPER,Yce=kw.CONFIGURABLE,_E=pE.IteratorPrototype,vE=pE.BUGGY_SAFARI_ITERATORS,yE=KC(`iterator`),Xce=function(){return this},bE=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=RT(Wce,{next:dw(1,n)}),hE(e,i,!1),KT[i]=Gce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!vE&&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[yE]||p[`@@iterator`]||i&&p[i],h=!vE&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=uE(g.call(new e)))!==Object.prototype&&s.next&&(uE(s)!==_E&&(gE?gE(s,_E):MC(s[yE])||Aw(s,yE,Xce)),hE(s,d,!0)),Jce&&i==`values`&&m&&m.name!==`values`&&(Yce?fw(p,`name`,`values`):(f=!0,h=function(){return nw(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(vE||f||!(l in p))&&Aw(p,l,c[l]);else xT({target:t,proto:!0,forced:vE||f},c);return p[yE]!==h&&Aw(p,yE,h,{name:i}),KT[t]=h,c},Zce=sE.charAt,Qce=Ew.set,$ce=Ew.getterFor(`String Iterator`);bE(String,`String`,(function(e){Qce(this,{type:`String Iterator`,string:DT(e),index:0})}),(function(){var e,t=$ce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Zce(n,r),t.index+=e.length,{value:e,done:!1})}));var xE,ele=uT.f,SE=Y(``.endsWith),tle=Y(``.slice),nle=Math.min,CE=WT(`endsWith`);xT({target:`String`,proto:!0,forced:!!(CE||(xE=ele(String.prototype,`endsWith`),!xE||xE.writable))&&!CE},{endsWith:function(e){var t=DT(OC(this));UT(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:nle(Hw(n),r),a=DT(e);return SE?SE(t,a,i):tle(t,i-a.length,i)===a}});var rle=Y([].join),ile=Bw!=Object,ale=tT(`join`,`,`);xT({target:`Array`,proto:!0,forced:ile||!ale},{join:function(e){return rle(cT(this),e===void 0?`,`:e)}});var ole=KC(`species`),wE=function(e){return zC>=51||!BC((function(){var t=[];return(t.constructor={})[ole]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},sle=eT.map;xT({target:`Array`,proto:!0,forced:!wE(`map`)},{map:function(e){return sle(this,e,arguments.length>1?arguments[1]:void 0)}});var TE=J.RegExp,EE=BC((function(){var e=TE(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),cle=EE||BC((function(){return!TE(`a`,`y`).sticky})),DE={BROKEN_CARET:EE||BC((function(){var e=TE(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:cle,UNSUPPORTED_Y:EE},lle=J.RegExp,OE=BC((function(){var e=lle(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),ule=J.RegExp,kE=BC((function(){var e=ule(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),dle=Ew.get,fle=wC(`native-string-replace`,String.prototype.replace),AE=RegExp.prototype.exec,jE=AE,ple=Y(``.charAt),mle=Y(``.indexOf),hle=Y(``.replace),ME=Y(``.slice),NE=function(){var e=/a/,t=/b*/g;return nw(AE,e,`a`),nw(AE,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),PE=DE.BROKEN_CARET,FE=/()??/.exec(``)[1]!==void 0;(NE||FE||PE||OE||kE)&&(jE=function(e){var t,n,r,i,a,o,s,c=this,l=dle(c),u=DT(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=nw(jE,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=PE&&c.sticky,m=nw(OT,c),h=c.source,g=0,_=u;if(p&&(m=hle(m,`y`,``),mle(m,`g`)===-1&&(m+=`g`),_=ME(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ple(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),FE&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),NE&&(r=c.lastIndex),i=nw(AE,p?n:c,_),p?i?(i.input=ME(i.input,g),i[0]=ME(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:NE&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),FE&&i&&i.length>1&&nw(fle,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=RT(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var IE=jE;xT({target:`RegExp`,proto:!0,forced:/./.exec!==IE},{exec:IE});var LE=Function.prototype,RE=LE.apply,gle=LE.bind,zE=LE.call,BE=typeof Reflect==`object`&&Reflect.apply||(gle?zE.bind(RE):function(){return zE.apply(RE,arguments)}),_le=KC(`species`),VE=RegExp.prototype,HE=function(e,t,n,r){var i=KC(e),a=!BC((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!BC((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[_le]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Y(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Y(e),c=t.exec;return c===IE||c===VE.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Aw(String.prototype,e,c[0]),Aw(VE,i,c[1])}r&&fw(VE[i],`sham`,!0)},vle=sE.charAt,UE=function(e,t,n){return t+(n?vle(e,t).length:1)},yle=Math.floor,WE=Y(``.charAt),ble=Y(``.replace),GE=Y(``.slice),xle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Sle=/\$([$&'`]|\d{1,2})/g,Cle=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Sle;return i!==void 0&&(i=kC(i),c=xle),ble(a,c,(function(a,c){var l;switch(WE(c,0)){case`$`:return`$`;case`&`:return e;case"`":return GE(t,0,n);case`'`:return GE(t,o);case`<`:l=i[GE(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=yle(u/10);return d===0?a:d<=s?r[d-1]===void 0?WE(c,1):r[d-1]+WE(c,1):a}l=r[u-1]}return l===void 0?``:l}))},wle=J.TypeError,KE=function(e,t){var n=e.exec;if(MC(n)){var r=nw(n,e,t);return r!==null&&ew(r),r}if(jw(e)===`RegExp`)return nw(IE,e,t);throw wle(`RegExp#exec called on incompatible receiver`)},qE=KC(`replace`),Tle=Math.max,Ele=Math.min,Dle=Y([].concat),JE=Y([].push),YE=Y(``.indexOf),XE=Y(``.slice),Ole=`a`.replace(/./,`$0`)===`$0`,ZE=!!/./[qE]&&/./[qE](`a`,`$0`)===``;HE(`replace`,(function(e,t,n){var r=ZE?`$`:`$0`;return[function(e,n){var r=OC(this),i=e==null?void 0:sw(e,qE);return i?nw(i,e,r,n):nw(t,DT(r),e,n)},function(e,i){var a=ew(this),o=DT(e);if(typeof i==`string`&&YE(i,r)===-1&&YE(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=MC(i);c||(i=DT(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=KE(a,o);if(f===null||(JE(d,f),!l))break;DT(f[0])===``&&(a.lastIndex=UE(o,Hw(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=DT((f=d[g])[0]),v=Tle(Ele(Vw(f.index),o.length),0),y=[],b=1;b<f.length;b++)JE(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Dle([_],y,v,o);x!==void 0&&JE(S,x);var C=DT(BE(i,void 0,S))}else C=Cle(_,o,v,y,x,i);v>=h&&(m+=XE(o,h,v)+C,h=v+_.length)}return m+XE(o,h)}]}),!!BC((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Ole||ZE);var QE=function(e,t){return QE=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])},QE(e,t)};function $E(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}QE(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var eD=function(){return eD=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},eD.apply(this,arguments)};function tD(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 nD(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 rD(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var kle=0,iD=function(){this.id=``+ kle++},Ale=Ew.set,jle=Ew.getterFor(`Array Iterator`),aD=bE(Array,`Array`,(function(e,t){Ale(this,{type:`Array Iterator`,target:cT(e),index:0,kind:t})}),(function(){var e=jle(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`);KT.Arguments=KT.Array,VT(`keys`),VT(`values`),VT(`entries`);var oD=function(e,t,n){for(var r in t)Aw(e,r,t[r],n);return e},Mle=J.Array,Nle=Math.max,sD=function(e,t,n){for(var r=Uw(e),i=dT(t,r),a=dT(n===void 0?r:n,r),o=Mle(Nle(a-i,0)),s=0;i<a;i++,s++)JT(o,s,e[i]);return o.length=s,o},cD=_T.f,lD=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ple={f:function(e){return lD&&jw(e)==`Window`?function(e){try{return cD(e)}catch{return sD(lD)}}(e):cD(cT(e))}},uD=BC((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),dD=Object.isExtensible,fD=BC((function(){dD(1)}))||uD?function(e){return!!XC(e)&&(!uD||jw(e)!=`ArrayBuffer`)&&(!dD||dD(e))}:dD,Fle=!BC((function(){return Object.isExtensible(Object.preventExtensions({}))})),pD=vC((function(e){var t=uw.f,n=!1,r=jC(`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=_T.f,t=Y([].splice),i={};i[r]=1,e(i).length&&(_T.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},xT({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Ple.f}))},fastKey:function(e,t){if(!XC(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!AC(e,r)){if(!fD(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!AC(e,r)){if(!fD(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Fle&&n&&fD(e)&&!AC(e,r)&&a(e),e}};xw[r]=!0})),Ile=J.TypeError,mD=function(e,t){this.stopped=e,this.result=t},hD=mD.prototype,gD=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=Rw(t,u),h=function(e){return r&>(r,`normal`,e),new mD(!0,e)},g=function(e){return d?(ew(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=YT(e)))throw Ile(aw(e)+` is not iterable`);if(qT(i)){for(a=0,o=Uw(e);o>a;a++)if((s=g(e[a]))&&rw(hD,s))return s;return new mD(!1)}r=XT(e,i)}for(c=r.next;!(l=nw(c,r)).done;){try{s=g(l.value)}catch(e){GT(r,`throw`,e)}if(typeof s==`object`&&s&&rw(hD,s))return s}return new mD(!1)},Lle=J.TypeError,_D=function(e,t){if(rw(t,e))return e;throw Lle(`Incorrect invocation`)},vD=function(e,t,n){var r,i;return gE&&MC(r=t.constructor)&&r!==n&&XC(i=r.prototype)&&i!==n.prototype&&gE(e,i),e},yD=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=J[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Y(s[e]);Aw(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!XC(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!XC(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!XC(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(bT(e,!MC(o)||!(i||s.forEach&&!BC((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),pD.enable();else if(bT(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=BC((function(){d.has(1)})),m=tE((function(e){new o(e)})),h=!i&&BC((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){_D(e,s);var n=vD(new o,e,c);return t!=null&&gD(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,xT({global:!0,forced:c!=o},l),hE(c,e),i||n.setStrong(c,e,r),c},bD=pD.getWeakData,Rle=Ew.set,zle=Ew.getterFor,xD=eT.find,Ble=eT.findIndex,Vle=Y([].splice),Hle=0,SD=function(e){return e.frozen||=new CD},CD=function(){this.entries=[]},wD=function(e,t){return xD(e.entries,(function(e){return e[0]===t}))};CD.prototype={get:function(e){var t=wD(this,e);if(t)return t[1]},has:function(e){return!!wD(this,e)},set:function(e,t){var n=wD(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Ble(this.entries,(function(t){return t[0]===e}));return~t&&Vle(this.entries,t,1),!!~t}};var TD,ED={getConstructor:function(e,t,n,r){var i=e((function(e,i){_D(e,a),Rle(e,{type:t,id:Hle++,frozen:void 0}),i!=null&&gD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=zle(t),s=function(e,t,n){var r=o(e),i=bD(ew(t),!0);return!0===i?SD(r).set(t,n):i[r.id]=n,e};return oD(a,{delete:function(e){var t=o(this);if(!XC(e))return!1;var n=bD(e);return!0===n?SD(t).delete(e):n&&AC(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!XC(e))return!1;var n=bD(e);return!0===n?SD(t).has(e):n&&AC(n,t.id)}}),oD(a,n?{get:function(e){var t=o(this);if(XC(e)){var n=bD(e);return!0===n?SD(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}},DD=Ew.enforce,Ule=!J.ActiveXObject&&`ActiveXObject`in J,OD=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Wle=yD(`WeakMap`,OD,ED);if(vw&&Ule){TD=ED.getConstructor(OD,`WeakMap`,!0),pD.enable();var kD=Wle.prototype,AD=Y(kD.delete),jD=Y(kD.has),MD=Y(kD.get),ND=Y(kD.set);oD(kD,{delete:function(e){if(XC(e)&&!fD(e)){var t=DD(this);return t.frozen||=new TD,AD(this,e)||t.frozen.delete(e)}return AD(this,e)},has:function(e){if(XC(e)&&!fD(e)){var t=DD(this);return t.frozen||=new TD,jD(this,e)||t.frozen.has(e)}return jD(this,e)},get:function(e){if(XC(e)&&!fD(e)){var t=DD(this);return t.frozen||=new TD,jD(this,e)?MD(this,e):t.frozen.get(e)}return MD(this,e)},set:function(e,t){if(XC(e)&&!fD(e)){var n=DD(this);n.frozen||=new TD,jD(this,e)?ND(this,e,t):n.frozen.set(e,t)}else ND(this,e,t);return this}})}var PD=KC(`iterator`),FD=KC(`toStringTag`),ID=aD.values,LD=function(e,t){if(e){if(e[PD]!==ID)try{fw(e,PD,ID)}catch{e[PD]=ID}if(e[FD]||fw(e,FD,t),Nw[t]){for(var n in aD)if(e[n]!==aD[n])try{fw(e,n,aD[n])}catch{e[n]=aD[n]}}}};for(var RD in Nw)LD(J[RD]&&J[RD].prototype,RD);LD(Iw,`DOMTokenList`);var zD=new WeakMap,BD=new WeakMap,VD=new WeakMap,HD=new WeakMap,UD=new WeakMap,WD=new WeakMap,GD=new WeakMap,KD=new WeakMap,qD=new WeakMap,JD=new WeakMap,YD=new WeakMap,XD=new WeakMap,ZD=new WeakMap,QD=new WeakMap,$D=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,iO=new WeakMap,aO=new WeakMap,oO=new WeakMap,sO=new WeakMap,cO=new WeakMap,lO=new WeakMap,Gle=eT.find,uO=!0;`find`in[]&&[,].find((function(){uO=!1})),xT({target:`Array`,proto:!0,forced:uO},{find:function(e){return Gle(this,e,arguments.length>1?arguments[1]:void 0)}}),VT(`find`),xT({global:!0},{globalThis:J});var Kle=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];Xv&&(K.fn.css=Xv),ny&&(K.fn.append=ny),Iv&&(K.fn.addClass=Iv),Lv&&(K.fn.removeClass=Lv),Rv&&(K.fn.hasClass=Rv),Uv&&(K.fn.on=Uv),py&&(K.fn.focus=py),zv&&(K.fn.attr=zv),Bv&&(K.fn.removeAttr=Bv),Jv&&(K.fn.hide=Jv),Yv&&(K.fn.show=Yv),qv&&(K.fn.offset=qv),Gv&&(K.fn.width=Gv),Kv&&(K.fn.height=Kv),iy&&(K.fn.parent=iy),ay&&(K.fn.parents=ay),ty&&(K.fn.is=ty),Vv&&(K.fn.dataset=Vv),Hv&&(K.fn.val=Hv),ey&&(K.fn.text=ey),$v&&(K.fn.html=$v),sy&&(K.fn.children=sy),cy&&(K.fn.remove=cy),oy&&(K.fn.find=oy),Zv&&(K.fn.each=Zv),ly&&(K.fn.empty=ly);var dO,fO,pO=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},mO=function(e){return hO(e)&&e.nodeType===1},hO=function(e){var t=pO(e);return!!t&&e instanceof t.Node},gO=function(e){var t=e&&e.anchorNode&&pO(e.anchorNode);return!!t&&e instanceof t.Selection},_O=function(e){return hO(e)&&e.nodeType===3},vO=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},yO=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(hO(r=a)&&r.nodeType===8||mO(a)&&a.childNodes.length===0||mO(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]},qle=function(e,t,n){return nD(yO(e,t,n),1)[0]},Jle=function e(t){var n,r,i=``;if(_O(t)&&t.nodeValue)return t.nodeValue;if(mO(t)){try{for(var a=tD(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+=`
|
|
|
`)}return i};function bO(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||bO(i,t)}}function xO(e){if(e.length===0)return``;var t=e[0];return t.nodeType===dO.ELEMENT_NODE?t.tagName.toLowerCase():``}(fO=dO||={})[fO.ELEMENT_NODE=1]=`ELEMENT_NODE`,fO[fO.TEXT_NODE=3]=`TEXT_NODE`,fO[fO.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,fO[fO.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,fO[fO.COMMENT_NODE=8]=`COMMENT_NODE`,fO[fO.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,fO[fO.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,fO[fO.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 SO=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),CO=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 wO=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Yle=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Xle=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),TO=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var EO=!Xle&&!Yle&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=aO.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=iO.get(t);return n||(n=new iD,iO.set(t,n)),n},setNewKey:function(e){var t=new iD;iO.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=$D.get(r);if(i==null){if(B.isEditor(r))return n;break}var a=QD.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=X.toDOMNode(e,e),n=t.getRootNode();return(n instanceof Document||n instanceof ShadowRoot)&&n.getSelection!=null?n:t.ownerDocument},getParentNode:function(e,t){return $D.get(t)||null},getParentsNodes:function(e,t){for(var n=[],r=t;r!==e&&r!=null;){var i=X.getParentNode(e,r);if(i==null)break;n.push(i),r=i}return n},getTopNode:function(e,t){var n=[X.findPath(e,t)[0]];return V.get(e,n)},toDOMNode:function(e,t){var n;if(B.isEditor(t))n=eO.get(e);else{var r=X.findKey(e,t);n=nO.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=X.toDOMNode(e,e);try{r=mO(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=U.isBackward(t),a=X.toDOMPoint(e,n),o=U.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=nD(i?o:a,2),l=c[0],u=c[1],d=nD(i?a:o,2),f=d[0],p=d[1],m=!!(mO(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(mO(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=nD(B.node(e,t.path),1)[0],o=X.toDOMNode(e,a);B.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=tD(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=mO(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?tO.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=X.toSlateNode(e,t.target),s=X.findPath(e,o);if(B.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=B.point(e,s,{edge:l?`start`:`end`}),d=l?B.before(e,u):B.after(e,u);if(d)return B.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 X.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((gO(t)?t.anchorNode:t.startContainer)&&(gO(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=TO&&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=X.toSlatePoint(e,[r,i],{exactMatch:c,suppressThrow:l});if(!u)return null;var d=s?u:X.toSlatePoint(e,[a,o],{exactMatch:c,suppressThrow:l});if(!d)return null;var f={anchor:u,focus:d};return U.isExpanded(f)&&U.isForward(f)&&mO(a)&&B.void(e,{at:f.focus,mode:`highest`})&&(f=B.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=nD(i?t:function(e){var t,n=nD(e,2),r=n[0],i=n[1];if(mO(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=nD(yO(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;mO(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=qle(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=X.getWindow(e).document.createRange();h.setStart(u,0),h.setEnd(s,c);var g=h.cloneContents();rD(rD([],nD(Cv(g.querySelectorAll(`[data-slate-zero-width]`)))),nD(Cv(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`)||CO&&(r=m.textContent)!=null&&r.endsWith(`
|
|
|
`))&&d--}if(!u){if(a)return null;throw Error(`Cannot resolve a Slate point from DOM point: `+t)}var _=X.toSlateNode(e,u);return{path:X.findPath(e,_),offset:d}},hasRange:function(e,t){var n=t.anchor,r=t.focus;return B.hasPath(e,n.path)&&B.hasPath(e,r.path)},getNodeType:function(e){return z.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return V.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=B.nodes(e,{universal:!0});try{for(var a=tD(i),o=a.next();!o.done;o=a.next()){var s=nD(o.value,1)[0];z.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=nD(B.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=nD(B.nodes(e,{match:function(e){return W.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=nD(B.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&nD(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(B.isEnd(e,n.anchor,t)||B.isEnd(e,n.focus,t))},getTextarea:function(e){var t=zD.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return HD.get(e)||null},getHoverbar:function(e){return WD.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=X.getTextarea(e).$textArea?.[0].childNodes;if(a)try{for(var o=tD(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=B.nodes(e,{match:function(t){return!(!z.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=tD(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];bO(X.toDOMNode(e,p),(function(e,t){var n=K(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=B.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=tD(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||U.isExpanded(t))return!1;var n=X.getSelectedNodeByType(e,`paragraph`);if(n===null)return!1;var r=n.children;return r.length===1&&(r[0].text===``||void 0)},isEmptyPath:function(e,t){var n=B.node(e,t);if(n==null)return!1;var r=nD(n,1)[0].children;return r.length===1&&r[0].text===``}},Zle=1,DO={},OO={},Qle=eT.filter;xT({target:`Array`,proto:!0,forced:!wE(`filter`)},{filter:function(e){return Qle(this,e,arguments.length>1?arguments[1]:void 0)}});var kO=`
|
|
|
\v\f\r \xA0 \u2028\u2029`,AO=Y(``.replace),jO=`[`+kO+`]`,$le=RegExp(`^`+jO+jO+`*`),eue=RegExp(jO+jO+`*$`),MO=function(e){return function(t){var n=DT(OC(t));return 1&e&&(n=AO(n,$le,``)),2&e&&(n=AO(n,eue,``)),n}},tue={start:MO(1),end:MO(2),trim:MO(3)},nue=kw.PROPER,rue=tue.trim;xT({target:`String`,proto:!0,forced:function(e){return BC((function(){return!!kO[e]()||`
`[e]()!==`
`||nue&&kO[e].name!==e}))}(`trim`)},{trim:function(){return rue(this)}});var NO=[],PO={};function iue(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var FO,IO,LO,RO,zO=J.Promise,BO=KC(`species`),VO=function(e){var t=NC(e),n=uw.f;YC&&t&&!t[BO]&&n(t,BO,{configurable:!0,get:function(){return this}})},HO=J.TypeError,UO=KC(`species`),WO=function(e,t){var n,r=ew(e).constructor;return r===void 0||(n=ew(r)[UO])==null?t:function(e){if(Yw(e))return e;throw HO(aw(e)+` is not a constructor`)}(n)},GO=Y([].slice),KO=/(?:ipad|iphone|ipod).*applewebkit/i.test(PC),qO=jw(J.process)==`process`,JO=J.setImmediate,YO=J.clearImmediate,XO=J.process,ZO=J.Dispatch,QO=J.Function,$O=J.MessageChannel,ek=J.String,tk=0,nk={};try{FO=J.location}catch{}var rk=function(e){if(AC(nk,e)){var t=nk[e];delete nk[e],t()}},ik=function(e){return function(){rk(e)}},ak=function(e){rk(e.data)},ok=function(e){J.postMessage(ek(e),FO.protocol+`//`+FO.host)};JO&&YO||(JO=function(e){var t=GO(arguments,1);return nk[++tk]=function(){BE(MC(e)?e:QO(e),void 0,t)},IO(tk),tk},YO=function(e){delete nk[e]},qO?IO=function(e){XO.nextTick(ik(e))}:ZO&&ZO.now?IO=function(e){ZO.now(ik(e))}:$O&&!KO?(RO=(LO=new $O).port2,LO.port1.onmessage=ak,IO=Rw(RO.postMessage,RO)):J.addEventListener&&MC(J.postMessage)&&!J.importScripts&&FO&&FO.protocol!==`file:`&&!BC(ok)?(IO=ok,J.addEventListener(`message`,ak,!1)):IO=`onreadystatechange`in QC(`script`)?function(e){MT.appendChild(QC(`script`)).onreadystatechange=function(){MT.removeChild(this),rk(e)}}:function(e){setTimeout(ik(e),0)});var sk,ck,lk,uk,dk,fk,pk,mk,hk={set:JO,clear:YO},aue=/ipad|iphone|ipod/i.test(PC)&&J.Pebble!==void 0,oue=/web0s(?!.*chrome)/i.test(PC),sue=uT.f,gk=hk.set,_k=J.MutationObserver||J.WebKitMutationObserver,vk=J.document,yk=J.process,bk=J.Promise,xk=sue(J,`queueMicrotask`),Sk=xk&&xk.value;Sk||(sk=function(){var e,t;for(qO&&(e=yk.domain)&&e.exit();ck;){t=ck.fn,ck=ck.next;try{t()}catch(e){throw ck?uk():lk=void 0,e}}lk=void 0,e&&e.enter()},KO||qO||oue||!_k||!vk?!aue&&bk&&bk.resolve?((pk=bk.resolve(void 0)).constructor=bk,mk=Rw(pk.then,pk),uk=function(){mk(sk)}):qO?uk=function(){yk.nextTick(sk)}:(gk=Rw(gk,J),uk=function(){gk(sk)}):(dk=!0,fk=vk.createTextNode(``),new _k(sk).observe(fk,{characterData:!0}),uk=function(){fk.data=dk=!dk}));var Ck,wk,Tk,Ek,Dk=Sk||function(e){var t={fn:e,next:void 0};lk&&(lk.next=t),ck||(ck=t,uk()),lk=t},cue=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=ow(t),this.reject=ow(n)},Ok={f:function(e){return new cue(e)}},kk=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},lue=typeof window==`object`,Ak=hk.set,uue=KC(`species`),jk=`Promise`,Mk=Ew.getterFor(jk),due=Ew.set,fue=Ew.getterFor(jk),Nk=zO&&zO.prototype,Pk=zO,Fk=Nk,Ik=J.TypeError,Lk=J.document,Rk=J.process,zk=Ok.f,pue=zk,mue=!!(Lk&&Lk.createEvent&&J.dispatchEvent),Bk=MC(J.PromiseRejectionEvent),Vk=!1,Hk=bT(jk,(function(){var e=gw(Pk),t=e!==String(Pk);if(!t&&zC===66)return!0;if(zC>=51&&/native code/.test(e))return!1;var n=new Pk((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[uue]=r,!(Vk=n.then((function(){}))instanceof r)||!t&&lue&&!Bk})),hue=Hk||!tE((function(e){Pk.all(e).catch((function(){}))})),Uk=function(e){var t;return!(!XC(e)||!MC(t=e.then))&&t},Wk=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;Dk((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&&_ue(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(Ik(`Promise-chain cycle`)):(s=Uk(o))?nw(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&gue(e)}))}},Gk=function(e,t,n){var r,i;mue?((r=Lk.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),J.dispatchEvent(r)):r={promise:t,reason:n},!Bk&&(i=J[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=J.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},gue=function(e){nw(Ak,J,(function(){var t,n=e.facade,r=e.value;if(Kk(e)&&(t=kk((function(){qO?Rk.emit(`unhandledRejection`,r,n):Gk(`unhandledrejection`,n,r)})),e.rejection=qO||Kk(e)?2:1,t.error))throw t.value}))},Kk=function(e){return e.rejection!==1&&!e.parent},_ue=function(e){nw(Ak,J,(function(){var t=e.facade;qO?Rk.emit(`rejectionHandled`,t):Gk(`rejectionhandled`,t,e.value)}))},qk=function(e,t,n){return function(r){e(t,r,n)}},Jk=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Wk(e,!0))},Yk=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw Ik(`Promise can't be resolved itself`);var r=Uk(t);r?Dk((function(){var n={done:!1};try{nw(r,t,qk(Yk,n,e),qk(Jk,n,e))}catch(t){Jk(n,t,e)}})):(e.value=t,e.state=1,Wk(e,!1))}catch(t){Jk({done:!1},t,e)}}};if(Hk&&(Fk=(Pk=function(e){_D(this,Fk),ow(e),nw(Ck,this);var t=Mk(this);try{e(qk(Yk,t),qk(Jk,t))}catch(e){Jk(t,e)}}).prototype,(Ck=function(e){due(this,{type:jk,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=oD(Fk,{then:function(e,t){var n=fue(this),r=n.reactions,i=zk(WO(this,Pk));return i.ok=!MC(e)||e,i.fail=MC(t)&&t,i.domain=qO?Rk.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Wk(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),wk=function(){var e=new Ck,t=Mk(e);this.promise=e,this.resolve=qk(Yk,t),this.reject=qk(Jk,t)},Ok.f=zk=function(e){return e===Pk||e===Tk?new wk(e):pue(e)},MC(zO)&&Nk!==Object.prototype)){Ek=Nk.then,Vk||(Aw(Nk,`then`,(function(e,t){var n=this;return new Pk((function(e,t){nw(Ek,n,e,t)})).then(e,t)}),{unsafe:!0}),Aw(Nk,`catch`,Fk.catch,{unsafe:!0}));try{delete Nk.constructor}catch{}gE&&gE(Nk,Fk)}xT({global:!0,wrap:!0,forced:Hk},{Promise:Pk}),hE(Pk,jk,!1),VO(jk),Tk=NC(jk),xT({target:jk,stat:!0,forced:Hk},{reject:function(e){var t=zk(this);return nw(t.reject,void 0,e),t.promise}}),xT({target:jk,stat:!0,forced:Hk},{resolve:function(e){return function(e,t){if(ew(e),XC(t)&&t.constructor===e)return t;var n=Ok.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),xT({target:jk,stat:!0,forced:hue},{all:function(e){var t=this,n=zk(t),r=n.resolve,i=n.reject,a=kk((function(){var n=ow(t.resolve),a=[],o=0,s=1;gD(e,(function(e){var c=o++,l=!1;s++,nw(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=zk(t),r=n.reject,i=kk((function(){var i=ow(t.resolve);gD(e,(function(e){nw(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Xk=DE.UNSUPPORTED_Y,vue=Math.min,Zk=[].push,yue=Y(/./.exec),Qk=Y(Zk),$k=Y(``.slice);function eA(e){Promise.resolve().then(e)}function tA(e,t){return z.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=B.isVoid(t,e),s=``;o||(s=a.map((function(e){return tA(e,t)})).join(``));var c=function(e){return PO[e]||iue}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||NO.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=X.getParentsNodes(t,e).some((function(e){return X.getNodeType(e)===`pre`}));if(i||(r=r.replace(/\r\n|\r|\n/g,`<br>`)),i&&(r=r.replace(/ /g,` `)),r===``){var a=X.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return NO.forEach((function(t){return r=t(e,r)})),r}(e,t)}function nA(e){return`w-e-element-`+e}HE(`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=DT(OC(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!HT(e))return nw(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=nw(IE,d,r))&&!((o=d.lastIndex)>u&&(Qk(c,$k(r,u,a.index)),a.length>1&&a.index<r.length&&BE(Zk,c,sD(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&yue(d,``)||Qk(c,``):Qk(c,$k(r,u)),c.length>i?sD(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:nw(t,this,e,n)}:t,[function(t,n){var i=OC(this),a=t==null?void 0:sw(t,e);return a?nw(a,t,i,n):nw(r,DT(i),t,n)},function(e,i){var a=ew(this),o=DT(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=WO(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(Xk?`g`:`y`),d=new c(Xk?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return KE(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=Xk?0:m;var g,_=KE(d,Xk?$k(o,m):o);if(_===null||(g=vue(Hw(d.lastIndex+(Xk?m:0)),o.length))===p)m=UE(o,m,l);else{if(Qk(h,$k(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(Qk(h,_[v]),h.length===f)return h;m=p=g}}return Qk(h,$k(o,p)),h}]}),!!BC((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`})),Xk);var rA=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},iA=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return rA(r,i)&&rA(i,r)},aA=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],oA=[],sA=[],cA={},bue=uw.f,xue=_T.f,Sue=Ew.enforce,Cue=KC(`match`),lA=J.RegExp,uA=lA.prototype,wue=J.SyntaxError,Tue=Y(OT),Eue=Y(uA.exec),dA=Y(``.charAt),fA=Y(``.replace),pA=Y(``.indexOf),Due=Y(``.slice),Oue=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,mA=/a/g,hA=/a/g,kue=new lA(mA)!==mA,gA=DE.MISSED_STICKY,_A=DE.UNSUPPORTED_Y;if(bT(`RegExp`,YC&&(!kue||gA||OE||kE||BC((function(){return hA[Cue]=!1,lA(mA)!=mA||lA(hA)==hA||lA(mA,`i`)!=`/a/i`}))))){for(var vA=function(e,t){var n,r,i,a,o,s,c=rw(uA,this),l=HT(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===vA)return e;if((l||rw(uA,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:Tue(f))),e=e===void 0?``:DT(e),t=t===void 0?``:DT(t),f=e,OE&&`dotAll`in mA&&(r=!!t&&pA(t,`s`)>-1)&&(t=fA(t,/s/g,``)),n=t,gA&&`sticky`in mA&&(i=!!t&&pA(t,`y`)>-1)&&_A&&(t=fA(t,/y/g,``)),kE&&(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=dA(e,r))===`\\`)t+=dA(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:Eue(Oue,Due(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||AC(o,u))throw new wue(`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=vD(lA(e,t),c?this:uA,vA),(r||i||d.length)&&(s=Sue(o),r&&(s.dotAll=!0,s.raw=vA(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=dA(e,r))===`\\`?i+=t+dA(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{fw(o,`source`,f===``?`(?:)`:f)}catch{}return o},yA=function(e){e in vA||bue(vA,e,{configurable:!0,get:function(){return lA[e]},set:function(t){lA[e]=t}})},bA=xue(lA),xA=0;bA.length>xA;)yA(bA[xA++]);uA.constructor=vA,vA.prototype=uA,Aw(J,`RegExp`,vA)}VO(`RegExp`);var SA=RegExp(`\xA0`,`g`);function CA(e){return e.replace(SA,` `)}function wA(e,t){var n=e.length;if(n){var r=e[n-1];if(W.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function TA(e,t,n){return{type:`paragraph`,children:[{text:K(e).text().replace(/\s+/gm,` `)}]}}function EA(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!==dO.ELEMENT_NODE){if(e.nodeType===dO.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
|
|
|
`)>=0)return;r&&(r=CA(r),wA(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(wA(n,`
|
|
|
`)||n.push({text:`
|
|
|
`}));var i=OA(K(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 cA)if(e[0].matches(t))return cA[t];return TA}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){B.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),sA.forEach((function(n){r=n(e[0],r,t)})))})),r}function DA(e,t){e.parents(`pre`).length===0&&(e[0].innerHTML=e[0].innerHTML.replace(/\s+/gm,` `).replace(/<br>/g,`
|
|
|
`));var n=e[0].textContent||``;n=function(e){return e.replace(/ /g,` `).replace(/</g,`<`).replace(/>/g,`>`).replace(/®/g,`®`).replace(/©/g,`©`).replace(/™/g,`™`).replace(/"/g,`"`)}(n);var r={text:n=CA(n)};return sA.forEach((function(n){r=n(e[0],r,t)})),r}function OA(e,t){oA.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=K(r(e[0])))}));var n=xO(e);return n===`span`?e.attr(`data-w-e-type`)?EA(e,t):DA(e,t):n===`code`?xO(e.parent())===`pre`?EA(e,t):DA(e,t):aA.includes(n)?DA(e,t):EA(e,t)}function kA(e,t,n){var r=K(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function AA(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=K(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=OA(K(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var jA=uw.f,MA=pD.fastKey,NA=Ew.set,PA=Ew.getterFor;yD(`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){_D(e,a),NA(e,{type:t,index:RT(null),first:void 0,last:void 0,size:0}),YC||(e.size=0),i!=null&&gD(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=PA(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=MA(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),YC?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=MA(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return oD(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,YC?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),YC?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=Rw(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)}}),oD(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)}}),YC&&jA(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=PA(t),a=PA(r);bE(e,t,(function(e,t){NA(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),VO(t)}});var FA=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function IA(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):G.insertNodes(e,t,{mode:`highest`})}var LA=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=nD(U.edges(n),2),i=r[0],a=r[1],o=B.void(t,{at:i.path}),s=B.void(t,{at:a.path});if(!U.isCollapsed(n)||o){var c=X.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=nD(s,1)[0],f=c.cloneRange(),p=X.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`?`
|
|
|
`:``})),_O(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`,Jle(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=tD(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&G.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},RA=function(e){return e!=null},zA={object:!0,function:!0,undefined:!0},BA=/^\s*class[\s{/}]/,VA=Function.prototype.toString,HA=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!!RA(e)&&hasOwnProperty.call(zA,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!BA.test(VA.call(e))},UA=function(e){return e!=null},WA=Object.keys,GA=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return WA(UA(e)?Object(e):e)},KA=function(e){if(!UA(e))throw TypeError(`Cannot use null or undefined`);return e},qA=Math.max,JA=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=qA(arguments.length,2);for(e=Object(KA(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)GA(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},YA=Array.prototype.forEach,XA=Object.create,ZA=function(e,t){for(var n in e)t[n]=e[n]},QA=function(e){var t=XA(null);return YA.call(arguments,(function(e){UA(e)&&ZA(Object(e),t)})),t},$A=`razdwatrzy`,ej=String.prototype.indexOf,tj=typeof $A.contains==`function`&&!0===$A.contains(`dwa`)&&!1===$A.contains(`foo`)?String.prototype.contains:function(e){return ej.call(this,e,arguments[1])>-1},nj=vC((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],RA(e)?(n=tj.call(e,`c`),r=tj.call(e,`e`),i=tj.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?JA(QA(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),RA(t)?HA(t)?RA(n)?HA(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,RA(e)?(r=tj.call(e,`c`),i=tj.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?JA(QA(a),o):o}})),rj=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},ij=vC((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 rj(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 rj(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(rj(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]: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:nj(n),once:nj(r),off:nj(i),emit:nj(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function aj(e){var t=cO.get(e);return t??(t=ij(),cO.set(e,t)),t}var oj=new WeakMap;function sj(e,t){var n=oj.get(e);n??(n=new Set,oj.set(e,n)),n.add(t)}function cj(e){return oj.get(e)||new Set}function lj(e){oj.set(e,new Set)}function uj(e){var t=X.getTextarea(e).$textAreaContainer,n=t.width(),r=t.height(),i=t.offset();return{top:i.top,left:i.left,width:n,height:r}}function dj(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=uj(e);if(r==null)return t;var i=r.top,a=r.left,o=r.width,s=r.height,c=X.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 fj(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=z.isElement(t)&&e.isVoid(t),a=z.isElement(t)&&e.isInline(t),o=rO.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(Kle.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=uj(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 pj(e,t){eA((function(){var n=uj(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 Aue=wE(`slice`),jue=KC(`species`),mj=J.Array,Mue=Math.max;xT({target:`Array`,proto:!0,forced:!Aue},{slice:function(e,t){var n,r,i,a=cT(this),o=Uw(a),s=dT(e,o),c=dT(t===void 0?o:t,o);if(Ww(a)&&(n=a.constructor,(Yw(n)&&(n===mj||Ww(n.prototype))||XC(n)&&(n=n[jue])===null)&&(n=void 0),n===mj||n===void 0))return GO(a,s,c);for(r=new(n===void 0?mj:n)(Mue(c-s,0)),i=0;s<c;s++,i++)s in a&&JT(r,i,a[s]);return r.length=i,r}});var Nue=uT.f,hj=Y(``.startsWith),Pue=Y(``.slice),Fue=Math.min,gj=WT(`startsWith`);xT({target:`String`,proto:!0,forced:!(!gj&&function(){var e=Nue(String.prototype,`startsWith`);return e&&!e.writable}())&&!gj},{startsWith:function(e){var t=DT(OC(this));UT(e);var n=Hw(Fue(arguments.length>1?arguments[1]:void 0,t.length)),r=DT(e);return hj?hj(t,r,n):Pue(t,n,n+r.length)===r}});var _j=Object.assign,vj=Object.defineProperty,Iue=Y([].concat),yj=!_j||BC((function(){if(YC&&_j({b:1},_j(vj({},`a`,{enumerable:!0,get:function(){vj(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})),_j({},e)[n]!=7||ST(_j({},t)).join(``)!=r}))?function(e,t){for(var n=kC(e),r=arguments.length,i=1,a=vT.f,o=sT.f;r>i;)for(var s,c=Bw(arguments[i++]),l=a?Iue(ST(c),a(c)):ST(c),u=l.length,d=0;u>d;)s=l[d++],YC&&!nw(o,c,s)||(n[s]=c[s]);return n}:_j;xT({target:`Object`,stat:!0,forced:Object.assign!==yj},{assign:yj});var Lue=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function bj(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(!Lue.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Wae(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`&&bj(e)}))}var xj=[],Sj={};function Rue(e,t,n){return kb(n.isInline(e)?`span`:`div`,null,t)}function Cj(e,t){return t===void 0&&(t=!1),kb(`span`,{"data-slate-string":!0},t?e+`
|
|
|
`:e)}function wj(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),kb(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?kb(`br`,null):null)}function Tj(e,t,n,r){return QD.set(e,t),$D.set(e,n),z.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=B.isVoid(t,e),o=nA(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 Sj[e]||Rue}(c);n=a?null:u.map((function(n,r){return Tj(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=nD(nD(V.texts(e),1)[0],1)[0],h=kb(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},Tj(m,0,e,t));f=kb(p,{style:{position:`relative`}},f,h),QD.set(m,0),$D.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return xj.forEach((function(r){n=r(e,t)})),n}(e,f)),eA((function(){var t=vO(o);t!=null&&(nO.set(r,t),rO.set(e,t),tO.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=X.findKey(n,e),i=n.getConfig().decorate;if(i==null)throw Error(`Can not get config.decorate`);var a=i([e,X.findPath(n,e)]),o=W.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=X.findPath(i,n),s=H.parent(o);if(B.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?wj(V.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||B.string(i,s)!==``?a===``?wj():t&&a.slice(-1)===`
|
|
|
`?Cj(a,!0):Cj(a):wj(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return xj.forEach((function(t){n=t(e,n)})),n}(r,a),kb(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=kb(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return eA((function(){var t=vO(c);t!=null&&(nO.set(r,t),rO.set(e,t),tO.set(t,e))})),l}(e,n,r)}function zue(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),lb(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=Tj(e,n,t,t);return bj(r),r}));var l=YD.get(e);if(l??=!0,l){var u=function(e,t){return K(`<div
|
|
|
id="`+e+`"
|
|
|
data-slate-editor
|
|
|
data-slate-node="value"
|
|
|
suppressContentEditableWarning
|
|
|
role="textarea"
|
|
|
spellCheck="true"
|
|
|
autoCorrect="true"
|
|
|
autoCapitalize="true"
|
|
|
></div>`)}(i);r.append(u),e.$textArea=u,n=u[0],(f=sb([pb,Sb,Db,gb,bb,db]))(n,c),YD.set(e,!1),XD.set(e,f)}else{var d=ZD.get(e),f=XD.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=vO(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=pO(n);p&&aO.set(t,p)}eO.set(t,n),rO.set(t,n),tO.set(n,t),ZD.set(e,c)}}function Ej(e){return typeof e==`object`&&!!e&&e.nodeType===1}function Dj(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function Oj(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return Dj(n.overflowY,t)||Dj(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 kj(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 Aj(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(!Ej(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;Ej(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&Oj(d)&&!Oj(document.documentElement)||d!=null&&Oj(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(),ee=O.height,k=O.width,A=O.top,j=O.right,te=O.bottom,M=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=A&&x<=te&&S>=M&&b<=j)return T;var ne=getComputedStyle(D),re=parseInt(ne.borderLeftWidth,10),ie=parseInt(ne.borderTopWidth,10),ae=parseInt(ne.borderRightWidth,10),oe=parseInt(ne.borderBottomWidth,10),se=0,ce=0,N=`offsetWidth`in D?D.offsetWidth-D.clientWidth-re-ae:0,le=`offsetHeight`in D?D.offsetHeight-D.clientHeight-ie-oe:0;if(l===D)se=i===`start`?C:i===`end`?C-p:i===`nearest`?kj(h,h+p,p,ie,oe,h+C,h+C+_,_):C-p/2,ce=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:kj(m,m+f,f,re,ae,m+w,m+w+v,v),se=Math.max(0,se+h),ce=Math.max(0,ce+m);else{se=i===`start`?C-A-ie:i===`end`?C-te+oe+le:i===`nearest`?kj(A,te,ee,ie,oe+le,C,C+_,_):C-(A+ee/2)+le/2,ce=a===`start`?w-M-re:a===`center`?w-(M+k/2)+N/2:a===`end`?w-j+ae+N:kj(M,j,k,re,ae+N,w,w+v,v);var ue=D.scrollLeft,de=D.scrollTop;C+=de-(se=Math.max(0,Math.min(de+se,D.scrollHeight-ee+le))),w+=ue-(ce=Math.max(0,Math.min(ue+ce,D.scrollWidth-k+N)))}T.push({el:D,top:se,left:ce})}return T}function jj(e){return e===Object(e)&&Object.keys(e).length!==0}function Mj(e,t){return hO(t)&&X.hasDOMNode(e,t,{editable:!0})}function Nj(e,t){if(e.getConfig().readOnly)return!1;var n=Pj(e,t)&&X.toSlateNode(e,t);return B.isVoid(e,n)}function Pj(e,t){return hO(t)&&X.hasDOMNode(e,t)}function Fj(e,t,n){n===void 0&&(n=!1);var r=t.selection,i=t.getConfig(),a=X.findDocumentOrShadowRoot(t).getSelection();if(a&&(!e.isComposing||n)&&t.isFocused()){var o=a.type!==`None`;if(r||o){var s=eO.get(t),c=!1;if(s.contains(a.anchorNode)&&s.contains(a.focusNode)&&(c=!0),o&&c&&r){var l=X.toSlateRange(t,a,{exactMatch:!0,suppressThrow:!0});if(l&&U.equals(l,r)){var u=!0;if(U.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||X.hasRange(t,r)){e.isUpdatingSelection=!0;var h=r&&X.toDOMRange(t,r);if(h){U.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(jj(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:Aj(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:jj(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)}))})(Aj(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&&CO&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var Ij=new WeakMap,Lj=new WeakMap,Bue={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`},Vue={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`},Hue={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},Rj=function(e){var t=Bue[e],n=Vue[e],r=Hue[e],i=t&&Cx(t),a=n&&Cx(n),o=r&&Cx(r);return function(e){return!(!i||!i(e))||!!(SO&&a&&a(e))||!(SO||!o||!o(e))}},zj={isBold:Rj(`bold`),isCompose:Rj(`compose`),isMoveBackward:Rj(`moveBackward`),isMoveForward:Rj(`moveForward`),isDeleteBackward:Rj(`deleteBackward`),isDeleteForward:Rj(`deleteForward`),isDeleteLineBackward:Rj(`deleteLineBackward`),isDeleteLineForward:Rj(`deleteLineForward`),isDeleteWordBackward:Rj(`deleteWordBackward`),isDeleteWordForward:Rj(`deleteWordForward`),isExtendBackward:Rj(`extendBackward`),isExtendForward:Rj(`extendForward`),isExtendLineBackward:Rj(`extendLineBackward`),isExtendLineForward:Rj(`extendLineForward`),isItalic:Rj(`italic`),isMoveLineBackward:Rj(`moveLineBackward`),isMoveLineForward:Rj(`moveLineForward`),isMoveWordBackward:Rj(`moveWordBackward`),isMoveWordForward:Rj(`moveWordForward`),isRedo:Rj(`redo`),isSplitBlock:Rj(`splitBlock`),isTransposeCharacter:Rj(`transposeCharacter`),isUndo:Rj(`undo`),isTab:Rj(`tab`),isSelectAll:Rj(`selectAll`)};function Bj(e){e.preventDefault()}var Uue={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(EO&&!i&&Mj(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=nD(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&U.equals(a,l)||G.select(n,l)}}if(a&&U.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;B.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:B.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:B.deleteForward(n);break;case`deleteContentBackward`:B.deleteBackward(n);break;case`deleteEntireSoftLine`:B.deleteBackward(n,{unit:`line`}),B.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:B.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:B.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:B.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:B.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:B.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:B.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:B.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!lO.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&B.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&Mj(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||mO(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&hO(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(z.isElement(c)&&!n.isVoid(c))return}wO&&o.getSelection()?.removeAllRanges(),oO.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,CO&&e.target!==r?r.focus():oO.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&Pj(n,e.target)&&hO(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(B.hasPath(n,i)&&V.get(n,i)===r){var a=B.start(n,i),o=B.end(n,i),s=B.void(n,{at:a}),c=B.void(n,{at:o});if(s&&c&&H.equals(s[1],c[1])){var l=B.range(n,a);G.select(n,l)}}}},compositionstart:function(e,t,n){if(Mj(n,e.target)){var r=n.selection;if(r&&U.isExpanded(r)&&(B.deleteFragment(n),Promise.resolve().then((function(){Fj(t,n,!0)}))),r&&U.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;Ij.set(n,a),Lj.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(Mj(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(TO||CO)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=U.isBackward(i)?i.focus:i.anchor,o=nD(B.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=nD(B.node(n,a.path.slice(0,s+1)),1)[0];if(z.isElement(c)&&((wO||CO)&&c.type===`link`||c.type===`code`)){X.setNewKey(o);break}}var l=r.data;if(l){if(n.getConfig().maxLength){var u=X.getLeftLengthOfMaxLength(n);u<l.length?(X.toDOMRange(n,i).startContainer.textContent=Ij.get(n)||``,u>0&&B.insertText(n,l.slice(0,u)),t.changeViewState()):B.insertText(n,l)}else B.insertText(n,l);wO||setTimeout((function(){var e=n.selection;if(e!=null){var t=Lj.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=Ij.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){Mj(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&Mj(n,r.target)){if(function(e,t){var n=HD.get(e),r=n&&n.getMenus(),i=WD.get(e),a=i&&i.getMenus(),o=eD(eD({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&qae(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),zj.isTab(r))return Bj(r),void n.handleTab();if(zj.isRedo(r))return Bj(r),void(typeof n.redo==`function`&&n.redo());if(zj.isUndo(r))return Bj(r),void(typeof n.undo==`function`&&n.undo());if(zj.isMoveLineBackward(r))return Bj(r),void G.move(n,{unit:`line`,reverse:!0});if(zj.isMoveLineForward(r))return Bj(r),void G.move(n,{unit:`line`});if(zj.isExtendLineBackward(r))return Bj(r),void G.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(zj.isExtendLineForward(r))return Bj(r),void G.move(n,{unit:`line`,edge:`focus`});if(zj.isMoveBackward(r))return Bj(r),void(i&&U.isCollapsed(i)?G.move(n,{reverse:!0}):G.collapse(n,{edge:`start`}));if(zj.isMoveForward(r))return Bj(r),void(i&&U.isCollapsed(i)?G.move(n):G.collapse(n,{edge:`end`}));if(zj.isMoveWordBackward(r))return Bj(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`,reverse:!0});if(zj.isMoveWordForward(r))return Bj(r),i&&U.isExpanded(i)&&G.collapse(n,{edge:`focus`}),void G.move(n,{unit:`word`});if(zj.isSelectAll(r))return Bj(r),void n.selectAll();if(EO){if((TO||wO)&&i&&(zj.isDeleteBackward(r)||zj.isDeleteForward(r))&&U.isCollapsed(i)){var a=V.parent(n,i.anchor.path);if(z.isElement(a)&&B.isVoid(n,a)&&B.isInline(n,a))return r.preventDefault(),void G.delete(n,{unit:`block`})}}else{if(zj.isBold(r)||zj.isItalic(r)||zj.isTransposeCharacter(r))return void Bj(r);if(zj.isSplitBlock(r))return Bj(r),void B.insertBreak(n);if(zj.isDeleteBackward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n));if(zj.isDeleteForward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n));if(zj.isDeleteLineBackward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`line`}));if(zj.isDeleteLineForward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`line`}));if(zj.isDeleteWordBackward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`backward`}):B.deleteBackward(n,{unit:`word`}));if(zj.isDeleteWordForward(r))return Bj(r),void(i&&U.isExpanded(i)?B.deleteFragment(n,{direction:`forward`}):B.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!EO&&!n.getConfig().readOnly&&Mj(n,e.target)){e.preventDefault();var r=e.key;B.insertText(n,r)}},copy:function(e,t,n){var r=e;if(Mj(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&&Mj(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(U.isExpanded(i))B.deleteFragment(n);else{var o=V.parent(n,i.anchor.path);B.isVoid(n,o)&&G.delete(n)}}},paste:function(e,t,n){lO.set(n,!0);var r=e;if(!n.getConfig().readOnly&&Mj(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void lO.set(n,!1);if(!EO||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(Pj(n,e.target)){var r=X.toSlateNode(n,e.target);B.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(Pj(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(B.isVoid(n,i)||B.void(n,{at:a,voids:!0})){var o=B.range(n,a);G.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&&Pj(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&Pj(n,r.target)&&i!=null&&!(EO&&wO&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);G.select(n,o),t.isDraggingInternally&&=(a&&G.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},Wue=1,Gue=function(){function e(e){var t=this;this.id=Wue++,this.$textArea=null,this.$progressBar=K(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=K(`<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=Xy((function(){(function(e,t){var n=e.isComposing,r=e.isUpdatingSelection,i=e.isDraggingInternally;if(!(t.getConfig().readOnly||n||r||i)){var a=X.findDocumentOrShadowRoot(t),o=a.activeElement,s=X.toDOMNode(t,t),c=a.getSelection();if(o===s?(e.latestElement=o,oO.set(t,!0)):oO.delete(t),!c)return G.deselect(t);var l=c.anchorNode,u=c.focusNode,d=Mj(t,l)||Nj(t,l),f=Mj(t,u)||Nj(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});G.select(t,p)}else G.deselect(t)}})(t,t.editorInstance)}),100);var n=K(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=K(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=K(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,eA((function(){var e=t.editorInstance,n=X.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=BD.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&&(Ny(Uue,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,Xy((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-X.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;zue(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=K(`<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),eA((function(){Fj(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function Vj(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&&Vj(t)}function Hj(){return K(`<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 Uj(){return K(`<div class="w-e-bar-divider"></div>`)}function Wj(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=SO?`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+`
|
|
|
`+r:n;e.attr(`data-tooltip`,o),e.addClass(`w-e-menu-tooltip-v5`)}}}HE(`match`,(function(e,t,n){return[function(t){var n=OC(this),r=t==null?void 0:sw(t,e);return r?nw(r,t,n):new RegExp(t)[e](DT(n))},function(e){var r=ew(this),i=DT(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return KE(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=KE(r,i))!==null;){var u=DT(s[0]);c[l]=u,u===``&&(r.lastIndex=UE(i,Hw(r.lastIndex),o)),l++}return l===0?null:c}]}));var Gj=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=K(`<div class="w-e-bar-item"></div>`),this.$button=K(`<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=K(u);Vj(f),d.append(f)}else d.text(o);Wj(d,u,o,c,n),n&&u&&d.append(K(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),eA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),Zj(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Zj(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Zj(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Zj(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}(),Kue=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return $E(t,e),t.prototype.onButtonClick=function(){},t}(Gj),Kj=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=KD.get(e);t??(t=new Set,KD.set(e,t)),t.add(this),qD.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=qD.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=qD.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),que=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=K(`<div class="w-e-drop-panel"></div>`),n}return $E(t,e),t.prototype.genSelfElem=function(){return null},t}(Kj),Jue=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=Hj();i.$button.append(a)}return i}return $E(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=Zj(this);if(this.dropPanel==null){var n=new que(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}(Gj),Yue=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=K(`<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 $E(t,e),t.prototype.genSelfElem=function(){var e=this,t=K(`<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=qD.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}(Kj);function qj(e,t,n){var r=K(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=K(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function Jj(e,t){var n=K(`<div class="button-container"></div>`),r=K(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var Xue=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=K(`body`),i.modal=null,i.menu=n,i}return $E(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Zj(this),t=this.menu.getModalPositionNode(e);return z.isElement(t)?fj(e,t,`modal`):dj(e)},t.prototype.handleModal=function(){var e=Zj(this),t=this.menu;if(this.modal==null){var n=new Yue(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=Zj(this),r=this.menu;if(r.getModalContentElem!=null){var i=X.getTextarea(n),a=(X.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||pj(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(Gj),Zue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=K(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return $E(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=K(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=K(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=K(`<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(K(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(Kj),Que=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=K(`<div class="w-e-bar-item"></div>`),this.$button=K(`<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),Wj(d,c,a,u,n),this.$elem.append(d),this.menu=t,eA((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),Zj(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Zj(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Zue(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=K(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=Zj(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Zj(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=Hj();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=Zj(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}(),Yj=function(){function e(e){this.$elem=K(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=K(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=K(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=K(n);Vj(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=Hj();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){K(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),Xj=new WeakMap;function Zj(e){var t=GD.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function Qj(e,t,n){n===void 0&&(n=!1);var r=Xj.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Jue(e,t,n):o?new Xue(e,t,n):new Kue(e,t,n)}if(i===`select`&&(r=new Que(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return Xj.set(t,r),r}function $ue(e,t){var n=e.selection;return n!=null&&!U.isCollapsed(n)&&!X.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=t.type;return!![`pre`,`code`,`table`].includes(n)||void 0}))&&!!W.isText(t)}var ede=function(){function e(){var e=this;this.$elem=K(`<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=Ox((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&&z.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),eA((function(){var t=e.getEditorInstance(),n=e.$elem;n.on(`mousedown`,(function(e){return e.preventDefault()}),{passive:!1}),X.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;eA((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=Uj();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=OO[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=Qj(e,r);this.hoverbarItems.push(a),GD.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),z.isElement(e)){var r=fj(t,e,`bar`);n.css(r),pj(t,n);return}if(W.isText(e))return r=dj(t),n.css(r),void pj(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 X.checkNodeType(t,i)},u=nD(B.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=UD.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=$ue),t},e.prototype.isSamePath=function(e,t){if(e==null||t==null)return!1;var n=X.findPath(null,e),r=X.findPath(null,t);return H.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function $j(e,t,n,r){if(QD.set(e,t),$D.set(e,n),z.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return $j(t,n,e,r)})),B.isVoid(r,e)){var a=nD(nD(V.texts(e),1)[0],1)[0];QD.set(a,0),$D.set(a,e)}}}function tde(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];ET.withoutSaving(t,(()=>{B.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];ET.withoutSaving(t,(()=>{B.withoutNormalizing(t,(()=>{for(var e of r.map(D_.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=ET.isSaving(t),u=ET.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||!H.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!H.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=X.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=X.getLeftLengthOfMaxLength(t);n<=0||n<V.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(X.getLeftLengthOfMaxLength(t)<V.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=X.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===dO.TEXT_NODE?e+(t.textContent||``):n===dO.ELEMENT_NODE?FA.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=aj(t);if(r.on(e,n),e===`destroyed`&&sj(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),sj(t,i)}},t.once=function(e,n){aj(t).once(e,n)},t.off=function(e,n){aj(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=aj(t);r.emit.apply(r,rD([e],nD(n))),e===`destroyed`&&(cj(t).forEach((function(e){return r.off(`destroyed`,e)})),lj(t))},t}(function(e){var t=e;return t.select=function(e){G.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&G.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||G.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=sO.get(t);e!=null&&(t.focus(),G.select(t,e))},t.getSelectionPosition=function(){return dj(t)},t.getNodePosition=function(e){return fj(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=nD(U.edges(e),2),r=n[0],i=n[1],a=nD(B.edges(t,[]),2),o=a[0],s=a[1];return!(!A_.equals(r,o)||!A_.equals(i,s))},t.selectAll=function(){var e=B.start(t,[]),n=B.end(t,[]);G.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=tD(B.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=nD(p.value,2),h=m[0],g=m[1],_=X.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=tD(B.levels(t,{at:H.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=nD(y.value,2);h=b[0],g=b[1],_=X.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=tD(B.levels(t,{at:H.common(H.parent(e.path),H.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=nD(S.value,2);h=C[0],g=C[1],_=X.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=tD(d),T=w.next();!T.done;T=w.next()){var E=nD(T.value,2);g=E[0],_=E[1],h=nD(B.node(t,g),1)[0],iO.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&&U.isCollapsed(e.selection)){var r=B.above(e,{match:function(t){return B.isBlock(e,t)},at:e.selection});if(r){var i=nD(r,2)[1],o=function(e,t){var n=B.range(e,U.end(t)),r=Array.from(B.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(iA(e,B.range(e,r[i]),n))return B.range(e,r[i],n);if(r.length<2)return B.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)iA(e,B.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return B.range(e,r[a],n)}(t,B.range(e,i,e.selection.anchor));U.isCollapsed(o)||G.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&sO.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 tA(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return V.string(e)})).join(`
|
|
|
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:B.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=B.nodes(t,{at:[],universal:!0});try{for(var s=tD(o),c=s.next();!c.done;c=s.next()){var l=nD(c.value,1)[0];if(z.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=nA(X.findKey(t,l).id);a.push(eD(eD({},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(z.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||W.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){G.delete(t,{at:{anchor:B.start(t,[]),focus:B.end(t,[])}}),t.children.length===0&&G.insertNodes(t,[{type:`paragraph`,children:[{text:``}]}])},t.getParentNode=function(e){return X.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===dO.TEXT_NODE||t===dO.ELEMENT_NODE&&!FA.has(n.toLowerCase())})),i.length!==0){var a=t.selection;if(a!=null){var o=null;X.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!==dO.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(aA.includes(r.toLowerCase()))c=!0;else for(var l in cA)if(o.matches(l)){c=!0;break}if(c){var u=OA(K(o),t);Array.isArray(u)?(u.forEach((function(e){return IA(t,e)})),s++):(IA(t,u),s++),X.isSelectedVoidNode(t)&&t.move(1);return}var d=window.getComputedStyle(o).display;X.isSelectedEmptyParagraph(t)||d.indexOf(`inline`)<0&&t.insertBreak(),t.dangerouslyInsertHtml(o.innerHTML,!0)}else t.insertText(`
|
|
|
`);else{if(!a||!a.trim())return;t.insertNode({text:a})}})),s&&o&&X.isEmptyPath(t,o)&&G.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=AA(t,e);if(G.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(B.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in OO)e.push(t);return e},t.getConfig=function(){var e=JD.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=LA(Sie());return t.id=`wangEditor-`+ Zle++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),oO.set(t,!0),e){var n=B.end(t,[]);G.select(t,n)}else{var r=sO.get(t);r?G.select(t,r):G.select(t,B.start(t,[]))}},t.isFocused=function(){return!!oO.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),G.deselect(t),oO.set(t,!1)},t.updateView=function(){X.getTextarea(t).changeViewState();var e=X.getToolbar(t);e&&e.changeToolbarState();var n=X.getHoverbar(t);n&&n.changeHoverbarState()},t.destroy=function(){if(!t.isDestroyed){var e=X.getTextarea(t);e.destroy(),zD.delete(t),BD.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),HD.delete(t),VD.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),WD.delete(t),UD.delete(r)),t.isDestroyed=!0,t.emit(`destroyed`)}},t.scrollToElem=function(e){if(!t.getConfig().scroll){var n=`编辑器禁用了 scroll ,编辑器内容无法滚动,请自行实现该功能`;n+=`
|
|
|
You has disabled editor scroll, please do this yourself`,console.warn(n);return}var r=K(`#`+e);if(r.length!==0){var i=r[0];if(!X.hasDOMNode(t,i))return n=`Element (found by id is '`+e+`') is not in editor DOM`,n+=`
|
|
|
通过 id '`+e+`' 找到的 element 不在 editor DOM 之内`,void console.error(n,i);var a=X.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||X.getTextarea(t).changeProgress(e)},t.hidePanelOrModal=function(){KD.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 X.toDOMNode(t,e)},t.fullScreen=function(){if(!t.isFullScreen){var e=null,n=X.getToolbar(t);n&&(e=n.$box);var r=X.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
|
|
|
不能设置全屏,因为 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=X.getTextarea(t).$box.parent();setTimeout((function(){e.removeClass(`w-e-full-screen-container`),t.isFullScreen=!1,t.emit(`unFullScreen`)}),200)}},t.getEditableContainer=function(){return X.getTextarea(t).$textAreaContainer[0]},t}()))))));if(n&&function(e,t){return kA(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=kx(DO),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return Ny(t,(function(e,t){n[t]=eD(eD({},e),i[t]||{})})),delete e.MENU_CONF,eD({scroll:!0,readOnly:!1,autoFocus:!0,decorate:function(){return[]},maxLength:0,MENU_CONF:n,hoverbarKeys:{},customAlert:function(e,t){window.alert(t+`:
|
|
|
`+e)}},e)}(i);JD.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=AA(l,o)),a&&a.length&&(l.children=a),l.children.length===0&&(l.children=[{type:`paragraph`,children:[{text:``}]}]),X.normalizeContent(l),n){var p=new Gue(n);zD.set(l,p),BD.set(p,l),p.changeViewState(),eA((function(){var e=p.$scroll;e!=null&&e.height()<300&&console.warn(`编辑区域高度 < 300px 这可能会导致 modal hoverbar 定位异常
|
|
|
Textarea height < 300px . This may be cause modal and hoverbar position error`,e)}));var m=void 0;Object.keys(f).length>0&&(m=new ede,UD.set(m,l),WD.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return $j(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)})),eA((function(){return l.emit(`created`)})),l}var nde=wE(`splice`),rde=J.TypeError,ide=Math.max,ade=Math.min;xT({target:`Array`,proto:!0,forced:!nde},{splice:function(e,t){var n,r,i,a,o,s,c=kC(this),l=Uw(c),u=dT(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=ade(ide(Vw(t),0),l-u)),l+n-r>9007199254740991)throw rde(`Maximum allowed length exceeded`);for(i=Zw(c,r),a=0;a<r;a++)(o=u+a)in c&&JT(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 ode=function(){function e(e,t){var n=this;this.$toolbar=K(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Ox((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=K(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),eA((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=kx(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=Uj();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 Yj(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 Yj,i=this.menus,a=i[e];if(a==null){var o=OO[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+`'
|
|
|
重复注册了菜单栏 menu '`+e+`'`);var s=Qj(e,a,r);this.toolbarItems.push(s),GD.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=VD.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}(),sde=kw.EXISTS,cde=uw.f,eM=Function.prototype,lde=Y(eM.toString),tM=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,ude=Y(tM.exec);function nM(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
|
|
|
没有配置上传地址`);if(!i)throw Error(`Cannot get fieldName
|
|
|
没有配置 fieldName`);var D=n;f&&(D=function(e,t){var n=nD(e.split(`#`),2),r=n[0],i=n[1],a=[];Ny(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 CS({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(vse,{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 rM(e){return rM=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},rM(e)}function dde(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function iM(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){dde(e,t,n[t])}))}return e}function aM(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function oM(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 sM(e,t,n){return t&&oM(e.prototype,t),n&&oM(e,n),e}function cM(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function lM(e,t){if(t&&(rM(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return cM(e)}function uM(e){return uM=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},uM(e)}function dM(e,t){return dM=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},dM(e,t)}function fM(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&&dM(e,t)}YC&&!sde&&cde(eM,`name`,{configurable:!0,get:function(){try{return ude(tM,lde(this))[1]}catch{return``}}});var fde={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)}},pM=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};aM(this,e),this.init(t,n)}return sM(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||fde,this.options=t,this.debug=t.debug}},{key:`setDebug`,value:function(e){this.debug=e}},{key:`log`,value:function(){var e=[...arguments];return this.forward(e,`log`,``,!0)}},{key:`warn`,value:function(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}},{key:`error`,value:function(){var e=[...arguments];return this.forward(e,`error`,``)}},{key:`deprecate`,value:function(){var e=[...arguments];return this.forward(e,`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,iM({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),mM=function(){function e(){aM(this,e),this.observers={}}return sM(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){var t=[...arguments].slice(1);this.observers[e]&&[].concat(this.observers[e]).forEach((function(e){e.apply(void 0,t)})),this.observers[`*`]&&[].concat(this.observers[`*`]).forEach((function(n){n.apply(n,[e].concat(t))}))}}]),e}();function hM(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function gM(e){return e==null?``:``+e}function pde(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function _M(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 vM(e,t,n){var r=_M(e,t,Object);r.obj[r.k]=n}function yM(e,t){var n=_M(e,t),r=n.obj,i=n.k;if(r)return r[i]}function bM(e,t,n){var r=yM(e,n);return r===void 0?yM(t,n):r}function xM(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]):xM(e[r],t[r],n):e[r]=t[r]);return e}function SM(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var mde={"&":`&`,"<":`<`,">":`>`,'"':`"`,"'":`'`,"/":`/`};function hde(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return mde[e]})):e}var CM=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function wM(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?wM(c,l,n):void 0}i=i[r[a]]}return i}}var gde=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return aM(this,t),n=lM(this,uM(t).call(this)),CM&&mM.call(cM(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 fM(t,mM),sM(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=yM(this.data,o);return s||!a||typeof n!=`string`?s:wM(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),vM(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=yM(this.data,o)||{};r?xM(s,n,i):s=iM({},s,n),vM(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`?iM({},{},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}(),TM={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}},EM={},DM=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return aM(this,t),n=lM(this,uM(t).call(this)),CM&&mM.call(cM(n)),pde([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,cM(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=pM.create(`translator`),n}return fM(t,mM),sM(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(rM(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,iM({},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,iM({},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),ee=D?this.pluralResolver.getSuffix(u,n.count):``,k=n[`defaultValue${ee}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=k),this.isValidLookup(p)||(E=!0,p=s);var A=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,j=O&&k!==p&&this.options.updateMissing;if(E||T||j){if(this.logger.log(j?`updateKey`:`missingKey`,u,l,s,j?k:p),a){var te=this.resolve(s,iM({},n,{keySeparator:!1}));te&&te.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 M=[],ne=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&ne&&ne[0])for(var re=0;re<ne.length;re++)M.push(ne[re]);else this.options.saveMissingTo===`all`?M=this.languageUtils.toResolveHierarchy(n.lng||this.language):M.push(n.lng||this.language);var ie=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,j?r:A,j,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,j?r:A,j,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?M.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){ie([e],s+t,n[`defaultValue${t}`]||k)}))})):ie(M,s,k))}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(iM({},n,{interpolation:iM({},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=iM({},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(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate.apply(a,e.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=TM.handle(f,e,t,this.options&&this.options.postProcessPassResolved?iM({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,!EM[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(EM[`${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 OM(e){return e.charAt(0).toUpperCase()+e.slice(1)}var _de=function(){function e(t){aM(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=pM.create(`languageUtils`)}return sM(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]=OM(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]=OM(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=OM(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}(),vde=[{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}],yde={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 bde(){var e={};return vde.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:yde[t.fc]}}))})),e}var xde=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};aM(this,e),this.languageUtils=t,this.options=n,this.logger=pM.create(`pluralResolver`),this.rules=bde()}return sM(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}(),Sde=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};aM(this,e),this.logger=pM.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return sM(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?hde:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?SM(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?SM(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?SM(t.nestingPrefix):t.nestingPrefixEscaped||SM(`$t(`),this.nestingSuffix=t.nestingSuffix?SM(t.nestingSuffix):t.nestingSuffixEscaped||SM(`)`),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=bM(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,iM({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(bM(t,c,o),l,n,iM({},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=gM(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=iM({},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=iM({},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=gM(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,iM({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Cde=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return aM(this,t),i=lM(this,uM(t).call(this)),CM&&mM.call(cM(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=pM.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return fM(t,mM),sM(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=_M(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,iM({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function wde(){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(rM(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),rM(e[2])===`object`||rM(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 kM(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 AM(){}var jM=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(aM(this,t),e=lM(this,uM(t).call(this)),CM&&mM.call(cM(e)),e.options=kM(n),e.services={},e.logger=pM,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),lM(e,cM(e));setTimeout((function(){e.init(n,r)}),0)}return e}return fM(t,mM),sM(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=iM({},wde(),this.options,kM(t)),this.format=this.options.interpolation.format,n||=AM,!this.options.isClone){this.modules.logger?pM.init(r(this.modules.logger),this.options):pM.init(null,this.options);var i=new _de(this.options);this.store=new gde(this.options.resources,this.options);var a=this.services;a.logger=pM,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new xde(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Sde(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Cde(r(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,(function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))})),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 DM(this.services,this.options),this.translator.on(`*`,(function(t){var n=[...arguments].slice(1);e.emit.apply(e,[t].concat(n))})),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=hM(),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]:AM,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=hM();return e||=this.languages,t||=this.options.ns,n||=AM,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`&&TM.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=hM();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(rM(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=iM({},i);a.lng=a.lng||e.lng,a.lngs=a.lngs||e.lngs,a.ns=a.ns||e.ns;var s=r.options.keySeparator||`.`,c=n?`${n}${s}${t}`:t;return r.t(c,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=hM();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=hM();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]:AM,i=iM({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=iM({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new DM(a.services,a.options),a.translator.on(`*`,(function(e){var t=[...arguments].slice(1);a.emit.apply(a,[e].concat(t))})),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 MM(e,t){jM.addResourceBundle(e,`translation`,t,!0,!0)}jM.init({lng:`zh-CN`,resources:{}});var Z=jM.t.bind(jM);MM(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),MM(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var Tde=Rp?{}.toString:function(){return`[object `+zp(this)+`]`};Rp||wp(Object.prototype,`toString`,Tde,{unsafe:!0});var NM=Array.isArray||function(e){return xf(e)==`Array`},PM=function(){},Ede=[],FM=Of(`Reflect`,`construct`),IM=/^\s*(?:class|function)\b/,Dde=bf(IM.exec),Ode=!IM.exec(PM),LM=function(e){if(!Ef(e))return!1;try{return FM(PM,Ede,e),!0}catch{return!1}},kde=!FM||uf((function(){var e;return LM(LM.call)||!LM(Object)||!LM((function(){e=!0}))||e}))?function(e){if(!Ef(e))return!1;switch(zp(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Ode||!!Dde(IM,dp(e))}:LM,Ade=Zf(`species`),RM=lf.Array,jde=function(e,t){return new(function(e){var t;return NM(e)&&(t=e.constructor,(kde(t)&&(t===RM||NM(t.prototype))||Df(t)&&(t=t[Ade])===null)&&(t=void 0)),t===void 0?RM:t}(e))(t===0?0:t)},zM=bf([].push),BM=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=Gf(c),h=Cf(m),g=Em(l,u),_=Op(h),v=0,y=d||jde,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:zM(b,f)}else switch(e){case 4:return!1;case 7:zM(b,f)}return a?-1:r||i?i:b}},Mde={forEach:BM(0),map:BM(1),filter:BM(2),some:BM(3),every:BM(4),find:BM(5),findIndex:BM(6),filterReject:BM(7)}.forEach,VM=function(e,t){var n=[][e];return!!n&&uf((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return Mde(this,e,arguments.length>1?arguments[1]:void 0)},HM=function(e){if(e&&e.forEach!==VM)try{sp(e,`forEach`,VM)}catch{e.forEach=VM}};for(var UM in ih)ih[UM]&&HM(lf[UM]&&lf[UM].prototype);HM(sh),MM(`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`}}),MM(`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 Nde={type:`paragraph`,renderElem:function(e,t,n){return kb(`p`,null,t)}},WM=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function GM(e){var t={exports:{}};return e(t,t.exports),t.exports}var KM,qM,JM=function(e){return e&&e.Math==Math&&e},YM=JM(typeof globalThis==`object`&&globalThis)||JM(typeof window==`object`&&window)||JM(typeof self==`object`&&self)||JM(typeof WM==`object`&&WM)||function(){return this}()||Function(`return this`)(),XM=function(e){try{return!!e()}catch{return!0}},ZM=!XM((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),QM=Function.prototype.call,$M=QM.bind?QM.bind(QM):function(){return QM.apply(QM,arguments)},eN={}.propertyIsEnumerable,tN=Object.getOwnPropertyDescriptor,nN={f:tN&&!eN.call({1:2},1)?function(e){var t=tN(this,e);return!!t&&t.enumerable}:eN},rN=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},iN=Function.prototype,aN=iN.bind,oN=iN.call,Pde=aN&&aN.bind(oN),sN=aN?function(e){return e&&Pde(oN,e)}:function(e){return e&&function(){return oN.apply(e,arguments)}},Fde=sN({}.toString),Ide=sN(``.slice),cN=function(e){return Ide(Fde(e),8,-1)},lN=YM.Object,Lde=sN(``.split),uN=XM((function(){return!lN(`z`).propertyIsEnumerable(0)}))?function(e){return cN(e)==`String`?Lde(e,``):lN(e)}:lN,Rde=YM.TypeError,dN=function(e){if(e==null)throw Rde(`Can't call method on `+e);return e},fN=function(e){return uN(dN(e))},pN=function(e){return typeof e==`function`},mN=function(e){return typeof e==`object`?e!==null:pN(e)},zde=function(e){return pN(e)?e:void 0},hN=function(e,t){return arguments.length<2?zde(YM[e]):YM[e]&&YM[e][t]},gN=sN({}.isPrototypeOf),_N=hN(`navigator`,`userAgent`)||``,vN=YM.process,yN=YM.Deno,bN=vN&&vN.versions||yN&&yN.version,xN=bN&&bN.v8;xN&&(qM=(KM=xN.split(`.`))[0]>0&&KM[0]<4?1:+(KM[0]+KM[1])),!qM&&_N&&(!(KM=_N.match(/Edge\/(\d+)/))||KM[1]>=74)&&(KM=_N.match(/Chrome\/(\d+)/))&&(qM=+KM[1]);var SN=qM,CN=!!Object.getOwnPropertySymbols&&!XM((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&SN&&SN<41})),wN=CN&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,TN=YM.Object,EN=wN?function(e){return typeof e==`symbol`}:function(e){var t=hN(`Symbol`);return pN(t)&&gN(t.prototype,TN(e))},DN=YM.String,ON=function(e){try{return DN(e)}catch{return`Object`}},kN=YM.TypeError,AN=function(e){if(pN(e))return e;throw kN(ON(e)+` is not a function`)},jN=function(e,t){var n=e[t];return n==null?void 0:AN(n)},MN=YM.TypeError,NN=Object.defineProperty,PN=function(e,t){try{NN(YM,e,{value:t,configurable:!0,writable:!0})}catch{YM[e]=t}return t},FN=YM[`__core-js_shared__`]||PN(`__core-js_shared__`,{}),IN=GM((function(e){(e.exports=function(e,t){return FN[e]||(FN[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),LN=YM.Object,RN=function(e){return LN(dN(e))},zN=sN({}.hasOwnProperty),BN=Object.hasOwn||function(e,t){return zN(RN(e),t)},VN=0,HN=Math.random(),UN=sN(1 .toString),WN=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+UN(++VN+HN,36)},GN=IN(`wks`),KN=YM.Symbol,qN=KN&&KN.for,JN=wN?KN:KN&&KN.withoutSetter||WN,YN=function(e){if(!BN(GN,e)||!CN&&typeof GN[e]!=`string`){var t=`Symbol.`+e;CN&&BN(KN,e)?GN[e]=KN[e]:GN[e]=wN&&qN?qN(t):JN(t)}return GN[e]},XN=YM.TypeError,ZN=YN(`toPrimitive`),QN=function(e){var t=function(e,t){if(!mN(e)||EN(e))return e;var n,r=jN(e,ZN);if(r){if(t===void 0&&(t=`default`),n=$M(r,e,t),!mN(n)||EN(n))return n;throw XN(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&pN(n=e.toString)&&!mN(r=$M(n,e))||pN(n=e.valueOf)&&!mN(r=$M(n,e))||t!==`string`&&pN(n=e.toString)&&!mN(r=$M(n,e)))return r;throw MN(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return EN(t)?t:t+``},$N=YM.document,eP=mN($N)&&mN($N.createElement),tP=function(e){return eP?$N.createElement(e):{}},nP=!ZM&&!XM((function(){return Object.defineProperty(tP(`div`),`a`,{get:function(){return 7}}).a!=7})),rP=Object.getOwnPropertyDescriptor,iP={f:ZM?rP:function(e,t){if(e=fN(e),t=QN(t),nP)try{return rP(e,t)}catch{}if(BN(e,t))return rN(!$M(nN.f,e,t),e[t])}},aP=YM.String,oP=YM.TypeError,sP=function(e){if(mN(e))return e;throw oP(aP(e)+` is not an object`)},cP=YM.TypeError,lP=Object.defineProperty,uP={f:ZM?lP:function(e,t,n){if(sP(e),t=QN(t),sP(n),nP)try{return lP(e,t,n)}catch{}if(`get`in n||`set`in n)throw cP(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},dP=ZM?function(e,t,n){return uP.f(e,t,rN(1,n))}:function(e,t,n){return e[t]=n,e},fP=sN(Function.toString);pN(FN.inspectSource)||(FN.inspectSource=function(e){return fP(e)});var pP,mP,hP,gP=FN.inspectSource,_P=YM.WeakMap,vP=pN(_P)&&/native code/.test(gP(_P)),yP=IN(`keys`),bP=function(e){return yP[e]||(yP[e]=WN(e))},xP={},SP=YM.TypeError,CP=YM.WeakMap;if(vP||FN.state){var wP=FN.state||=new CP,TP=sN(wP.get),EP=sN(wP.has),DP=sN(wP.set);pP=function(e,t){if(EP(wP,e))throw new SP(`Object already initialized`);return t.facade=e,DP(wP,e,t),t},mP=function(e){return TP(wP,e)||{}},hP=function(e){return EP(wP,e)}}else{var OP=bP(`state`);xP[OP]=!0,pP=function(e,t){if(BN(e,OP))throw new SP(`Object already initialized`);return t.facade=e,dP(e,OP,t),t},mP=function(e){return BN(e,OP)?e[OP]:{}},hP=function(e){return BN(e,OP)}}var kP={set:pP,get:mP,has:hP,enforce:function(e){return hP(e)?mP(e):pP(e,{})},getterFor:function(e){return function(t){var n;if(!mN(t)||(n=mP(t)).type!==e)throw SP(`Incompatible receiver, `+e+` required`);return n}}},AP=Function.prototype,jP=ZM&&Object.getOwnPropertyDescriptor,MP=BN(AP,`name`),NP={EXISTS:MP,PROPER:MP&&function(){}.name===`something`,CONFIGURABLE:MP&&(!ZM||ZM&&jP(AP,`name`).configurable)},PP=GM((function(e){var t=NP.CONFIGURABLE,n=kP.get,r=kP.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;pN(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!BN(a,`name`)||t&&a.name!==d)&&dP(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===YM?l?e[n]=a:PN(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:dP(e,n,a))})(Function.prototype,`toString`,(function(){return pN(this)&&n(this).source||gP(this)}))})),FP=Math.ceil,IP=Math.floor,LP=function(e){var t=+e;return t!=t||t===0?0:(t>0?IP:FP)(t)},RP=Math.max,zP=Math.min,BP=function(e,t){var n=LP(e);return n<0?RP(n+t,0):zP(n,t)},VP=Math.min,HP=function(e){return e>0?VP(LP(e),9007199254740991):0},UP=function(e){return HP(e.length)},WP=function(e){return function(t,n,r){var i,a=fN(t),o=UP(a),s=BP(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}},GP={includes:WP(!0),indexOf:WP(!1)},KP=GP.indexOf,qP=sN([].push),JP=function(e,t){var n,r=fN(e),i=0,a=[];for(n in r)!BN(xP,n)&&BN(r,n)&&qP(a,n);for(;t.length>i;)BN(r,n=t[i++])&&(~KP(a,n)||qP(a,n));return a},YP=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],XP=YP.concat(`length`,`prototype`),ZP={f:Object.getOwnPropertyNames||function(e){return JP(e,XP)}},QP={f:Object.getOwnPropertySymbols},$P=sN([].concat),eF=hN(`Reflect`,`ownKeys`)||function(e){var t=ZP.f(sP(e)),n=QP.f;return n?$P(t,n(e)):t},tF=function(e,t){for(var n=eF(t),r=uP.f,i=iP.f,a=0;a<n.length;a++){var o=n[a];BN(e,o)||r(e,o,i(t,o))}},nF=/#|\.prototype\./,rF=function(e,t){var n=aF[iF(e)];return n==sF||n!=oF&&(pN(t)?XM(t):!!t)},iF=rF.normalize=function(e){return String(e).replace(nF,`.`).toLowerCase()},aF=rF.data={},oF=rF.NATIVE=`N`,sF=rF.POLYFILL=`P`,cF=rF,lF=iP.f,uF=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?YM:l?YM[s]||PN(s,{}):(YM[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=lF(n,r))&&o.value:n[r],!cF(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;tF(a,i)}(e.sham||i&&i.sham)&&dP(a,`sham`,!0),PP(n,r,a,e)}},dF=sN(sN.bind),fF=Array.isArray||function(e){return cN(e)==`Array`},pF={};pF[YN(`toStringTag`)]=`z`;var mF=String(pF)===`[object z]`,hF=YN(`toStringTag`),gF=YM.Object,_F=cN(function(){return arguments}())==`Arguments`,vF=mF?cN: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=gF(e),hF))==`string`?n:_F?cN(t):(r=cN(t))==`Object`&&pN(t.callee)?`Arguments`:r},yF=function(){},bF=[],xF=hN(`Reflect`,`construct`),SF=/^\s*(?:class|function)\b/,CF=sN(SF.exec),wF=!SF.exec(yF),TF=function(e){if(!pN(e))return!1;try{return xF(yF,bF,e),!0}catch{return!1}},EF=!xF||XM((function(){var e;return TF(TF.call)||!TF(Object)||!TF((function(){e=!0}))||e}))?function(e){if(!pN(e))return!1;switch(vF(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return wF||!!CF(SF,gP(e))}:TF,DF=YN(`species`),OF=YM.Array,kF=function(e,t){return new(function(e){var t;return fF(e)&&(t=e.constructor,(EF(t)&&(t===OF||fF(t.prototype))||mN(t)&&(t=t[DF])===null)&&(t=void 0)),t===void 0?OF:t}(e))(t===0?0:t)},AF=sN([].push),jF=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=RN(c),h=uN(m),g=function(e,t){return AN(e),t===void 0?e:dF?dF(e,t):function(){return e.apply(t,arguments)}}(l,u),_=UP(h),v=0,y=d||kF,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:AF(b,f)}else switch(e){case 4:return!1;case 7:AF(b,f)}return a?-1:r||i?i:b}},MF={forEach:jF(0),map:jF(1),filter:jF(2),some:jF(3),every:jF(4),find:jF(5),findIndex:jF(6),filterReject:jF(7)},NF=YN(`species`),PF=function(e){return SN>=51||!XM((function(){var t=[];return(t.constructor={})[NF]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},FF=MF.filter;uF({target:`Array`,proto:!0,forced:!PF(`filter`)},{filter:function(e){return FF(this,e,arguments.length>1?arguments[1]:void 0)}});var IF=mF?{}.toString:function(){return`[object `+vF(this)+`]`};mF||PP(Object.prototype,`toString`,IF,{unsafe:!0});var LF,Bde=YM.String,RF=function(e){if(vF(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Bde(e)},zF=function(){var e=sP(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},BF=YM.RegExp,VF=XM((function(){var e=BF(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Vde=VF||XM((function(){return!BF(`a`,`y`).sticky})),HF={BROKEN_CARET:VF||XM((function(){var e=BF(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Vde,UNSUPPORTED_Y:VF},UF=Object.keys||function(e){return JP(e,YP)},Hde=ZM?Object.defineProperties:function(e,t){sP(e);for(var n,r=fN(t),i=UF(t),a=i.length,o=0;a>o;)uP.f(e,n=i[o++],r[n]);return e},Ude=hN(`document`,`documentElement`),WF=bP(`IE_PROTO`),GF=function(){},KF=function(e){return`<script>`+e+`<\/script>`},qF=function(e){e.write(KF(``)),e.close();var t=e.parentWindow.Object;return e=null,t},JF=function(){try{LF=new ActiveXObject(`htmlfile`)}catch{}var e,t;JF=typeof document<`u`?document.domain&&LF?qF(LF):((t=tP(`iframe`)).style.display=`none`,Ude.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(KF(`document.F=Object`)),e.close(),e.F):qF(LF);for(var n=YP.length;n--;)delete JF.prototype[YP[n]];return JF()};xP[WF]=!0;var YF,XF,ZF=Object.create||function(e,t){var n;return e===null?n=JF():(GF.prototype=sP(e),n=new GF,GF.prototype=null,n[WF]=e),t===void 0?n:Hde(n,t)},Wde=YM.RegExp,Gde=XM((function(){var e=Wde(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),Kde=YM.RegExp,qde=XM((function(){var e=Kde(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Jde=kP.get,Yde=IN(`native-string-replace`,String.prototype.replace),QF=RegExp.prototype.exec,$F=QF,Xde=sN(``.charAt),Zde=sN(``.indexOf),Qde=sN(``.replace),eI=sN(``.slice),tI=(XF=/b*/g,$M(QF,YF=/a/,`a`),$M(QF,XF,`a`),YF.lastIndex!==0||XF.lastIndex!==0),nI=HF.BROKEN_CARET,rI=/()??/.exec(``)[1]!==void 0;(tI||rI||nI||Gde||qde)&&($F=function(e){var t,n,r,i,a,o,s,c=this,l=Jde(c),u=RF(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=$M($F,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=nI&&c.sticky,m=$M(zF,c),h=c.source,g=0,_=u;if(p&&(m=Qde(m,`y`,``),Zde(m,`g`)===-1&&(m+=`g`),_=eI(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Xde(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),rI&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),tI&&(r=c.lastIndex),i=$M(QF,p?n:c,_),p?i?(i.input=eI(i.input,g),i[0]=eI(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:tI&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),rI&&i&&i.length>1&&$M(Yde,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=ZF(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var iI=$F;uF({target:`RegExp`,proto:!0,forced:/./.exec!==iI},{exec:iI});var aI=Function.prototype,oI=aI.apply,$de=aI.bind,sI=aI.call,cI=typeof Reflect==`object`&&Reflect.apply||($de?sI.bind(oI):function(){return sI.apply(oI,arguments)}),efe=YN(`species`),lI=RegExp.prototype,uI=function(e,t,n,r){var i=YN(e),a=!XM((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!XM((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[efe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=sN(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=sN(e),c=t.exec;return c===iI||c===lI.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));PP(String.prototype,e,c[0]),PP(lI,i,c[1])}r&&dP(lI[i],`sham`,!0)},tfe=sN(``.charAt),dI=sN(``.charCodeAt),nfe=sN(``.slice),rfe=function(e){return function(t,n){var r,i,a=RF(dN(t)),o=LP(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=dI(a,o))<55296||r>56319||o+1===s||(i=dI(a,o+1))<56320||i>57343?e?tfe(a,o):r:e?nfe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),fI=function(e,t,n){return t+(n?rfe(e,t).length:1)},ife=Math.floor,pI=sN(``.charAt),afe=sN(``.replace),mI=sN(``.slice),ofe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,sfe=/\$([$&'`]|\d{1,2})/g,cfe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=sfe;return i!==void 0&&(i=RN(i),c=ofe),afe(a,c,(function(a,c){var l;switch(pI(c,0)){case`$`:return`$`;case`&`:return e;case"`":return mI(t,0,n);case`'`:return mI(t,o);case`<`:l=i[mI(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=ife(u/10);return d===0?a:d<=s?r[d-1]===void 0?pI(c,1):r[d-1]+pI(c,1):a}l=r[u-1]}return l===void 0?``:l}))},lfe=YM.TypeError,hI=function(e,t){var n=e.exec;if(pN(n)){var r=$M(n,e,t);return r!==null&&sP(r),r}if(cN(e)===`RegExp`)return $M(iI,e,t);throw lfe(`RegExp#exec called on incompatible receiver`)},gI=YN(`replace`),ufe=Math.max,dfe=Math.min,ffe=sN([].concat),_I=sN([].push),vI=sN(``.indexOf),yI=sN(``.slice),pfe=`a`.replace(/./,`$0`)===`$0`,bI=!!/./[gI]&&/./[gI](`a`,`$0`)===``;uI(`replace`,(function(e,t,n){var r=bI?`$`:`$0`;return[function(e,n){var r=dN(this),i=e==null?void 0:jN(e,gI);return i?$M(i,e,r,n):$M(t,RF(r),e,n)},function(e,i){var a=sP(this),o=RF(e);if(typeof i==`string`&&vI(i,r)===-1&&vI(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=pN(i);c||(i=RF(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=hI(a,o);if(f===null||(_I(d,f),!l))break;RF(f[0])===``&&(a.lastIndex=fI(o,HP(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=RF((f=d[g])[0]),v=ufe(dfe(LP(f.index),o.length),0),y=[],b=1;b<f.length;b++)_I(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=ffe([_],y,v,o);x!==void 0&&_I(S,x);var C=RF(cI(i,void 0,S))}else C=cfe(_,o,v,y,x,i);v>=h&&(m+=yI(o,h,v)+C,h=v+_.length)}return m+yI(o,h)}]}),!!XM((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!pfe||bI);var xI=YN(`unscopables`),SI=Array.prototype;SI[xI]??uP.f(SI,xI,{configurable:!0,value:ZF(null)});var CI=function(e){SI[xI][e]=!0},mfe=MF.find,wI=!0;`find`in[]&&[,].find((function(){wI=!1})),uF({target:`Array`,proto:!0,forced:wI},{find:function(e){return mfe(this,e,arguments.length>1?arguments[1]:void 0)}}),CI(`find`);var hfe=YN(`match`),TI=function(e){var t;return mN(e)&&((t=e[hfe])===void 0?cN(e)==`RegExp`:!!t)},gfe=YM.TypeError,_fe=YN(`species`),EI=function(e,t,n){var r=QN(t);r in e?uP.f(e,r,rN(0,n)):e[r]=n},vfe=YM.Array,yfe=Math.max,DI=function(e,t,n){for(var r=UP(e),i=BP(t,r),a=BP(n===void 0?r:n,r),o=vfe(yfe(a-i,0)),s=0;i<a;i++,s++)EI(o,s,e[i]);return o.length=s,o},OI=HF.UNSUPPORTED_Y,bfe=Math.min,kI=[].push,xfe=sN(/./.exec),AI=sN(kI),jI=sN(``.slice);uI(`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=RF(dN(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!TI(e))return $M(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=$M(iI,d,r))&&!((o=d.lastIndex)>u&&(AI(c,jI(r,u,a.index)),a.length>1&&a.index<r.length&&cI(kI,c,DI(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&xfe(d,``)||AI(c,``):AI(c,jI(r,u)),c.length>i?DI(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:$M(t,this,e,n)}:t,[function(t,n){var i=dN(this),a=t==null?void 0:jN(t,e);return a?$M(a,t,i,n):$M(r,RF(i),t,n)},function(e,i){var a=sP(this),o=RF(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=sP(e).constructor;return r===void 0||(n=sP(r)[_fe])==null?t:function(e){if(EF(e))return e;throw gfe(ON(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(OI?`g`:`y`),d=new c(OI?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return hI(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=OI?0:m;var g,_=hI(d,OI?jI(o,m):o);if(_===null||(g=bfe(HP(d.lastIndex+(OI?m:0)),o.length))===p)m=fI(o,m,l);else{if(AI(h,jI(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(AI(h,_[v]),h.length===f)return h;m=p=g}}return AI(h,jI(o,p)),h}]}),!!XM((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`})),OI);var MI=`
|
|
|
\v\f\r \xA0 \u2028\u2029`,NI=sN(``.replace),PI=`[`+MI+`]`,Sfe=RegExp(`^`+PI+PI+`*`),Cfe=RegExp(PI+PI+`*$`),FI=function(e){return function(t){var n=RF(dN(t));return 1&e&&(n=NI(n,Sfe,``)),2&e&&(n=NI(n,Cfe,``)),n}},wfe={start:FI(1),end:FI(2),trim:FI(3)},Tfe=NP.PROPER,Efe=wfe.trim;function II(e){return K(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function LI(e){return e.length===0?``:e[0].outerHTML}function RI(e){return e.length?e[0].tagName.toLowerCase():``}function zI(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}uF({target:`String`,proto:!0,forced:XM((function(){return!!MI.trim()||Tfe&&MI.trim.name!==`trim`}))},{trim:function(){return Efe(this)}}),uF({global:!0},{globalThis:YM}),Xv&&(K.fn.css=Xv),ny&&(K.fn.append=ny),ry&&(K.fn.prepend=ry),Iv&&(K.fn.addClass=Iv),Lv&&(K.fn.removeClass=Lv),Rv&&(K.fn.hasClass=Rv),Uv&&(K.fn.on=Uv),Wv&&(K.fn.off=Wv),py&&(K.fn.focus=py),zv&&(K.fn.attr=zv),Bv&&(K.fn.removeAttr=Bv),Jv&&(K.fn.hide=Jv),Yv&&(K.fn.show=Yv),ay&&(K.fn.parents=ay),Vv&&(K.fn.dataset=Vv),Hv&&(K.fn.val=Hv),ey&&(K.fn.text=ey),$v&&(K.fn.html=$v),sy&&(K.fn.children=sy),cy&&(K.fn.remove=cy),oy&&(K.fn.find=oy),Gv&&(K.fn.width=Gv),Kv&&(K.fn.height=Kv),Qv&&(K.fn.filter=Qv),ly&&(K.fn.empty=ly);var Dfe={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},BI=function(e,t){return BI=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])},BI(e,t)};function VI(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}BI(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var HI=function(){return HI=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},HI.apply(this,arguments)};function UI(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 WI(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 GI(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 KI(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 qI(e){var t=KI(B.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!z.isElement(n)||n.type===`paragraph`||V.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!W.isText(i[0])&&(G.setNodes(e,{type:`paragraph`}),!0)}var Ofe={renderElems:[Nde],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[Dfe],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){qI(r)||t(e)},r.deleteForward=function(e){qI(r)||n(e)},r}},kfe=/"/g,Afe=sN(``.replace),JI=function(e,t,n,r){var i=RF(dN(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Afe(RF(r),kfe,`"`)+`"`),a+`>`+i+`</`+t+`>`},YI=function(e){return XM((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function XI(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 ZI(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}uF({target:`String`,proto:!0,forced:YI(`bold`)},{bold:function(){return JI(this,`b`,``,``)}}),uF({target:`String`,proto:!0,forced:YI(`italics`)},{italics:function(){return JI(this,`i`,``,``)}}),uF({target:`String`,proto:!0,forced:YI(`sub`)},{sub:function(){return JI(this,`sub`,``,``)}}),uF({target:`String`,proto:!0,forced:YI(`sup`)},{sup:function(){return JI(this,`sup`,``,``)}});var QI={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},$I=tP(`span`).classList,eL=$I&&$I.constructor&&$I.constructor.prototype,jfe=eL===Object.prototype?void 0:eL,tL=function(e,t){var n=[][e];return!!n&&XM((function(){n.call(null,t||function(){throw 1},1)}))},Mfe=MF.forEach,nL=tL(`forEach`)?[].forEach:function(e){return Mfe(this,e,arguments.length>1?arguments[1]:void 0)},rL=function(e){if(e&&e.forEach!==nL)try{dP(e,`forEach`,nL)}catch{e.forEach=nL}};for(var iL in QI)QI[iL]&&rL(YM[iL]&&YM[iL].prototype);function aL(e,t){return e.selection==null||!!KI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]}function Nfe(e,t){Object.keys(t).forEach((function(t){t!==`text`&&B.removeMark(e,t)}))}rL(jfe),uF({target:`Object`,stat:!0,forced:XM((function(){UF(1)}))},{keys:function(e){return UF(RN(e))}});var oL=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=B.marks(e);return n?n[t]:!!KI(B.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 aL(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}(),Pfe=`<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>`,Ffe=`<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>`,Ife=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Lfe=`<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>`,Rfe=`<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>`,sL=`<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>`,cL=`<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>`,zfe=`<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>`,Bfe=`<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>`,Vfe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,Hfe=`<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>`,Ufe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,Wfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,Gfe=`<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>`,Kfe=`<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>`,qfe=`<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>`,Jfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,Yfe=`<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>`,Xfe=`<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>`,Zfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Pfe,t.hotkey=`mod+b`,t}return VI(t,e),t}(oL),Qfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Rfe,t.hotkey=`mod+e`,t}return VI(t,e),t}(oL),$fe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=Ife,t.hotkey=`mod+i`,t}return VI(t,e),t}(oL),epe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Lfe,t.hotkey=`mod+shift+x`,t}return VI(t,e),t}(oL),tpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Ffe,t.hotkey=`mod+u`,t}return VI(t,e),t}(oL),npe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sub`,t.marksNeedToRemove=[`sup`],t.title=Z(`textStyle.sub`),t.iconSvg=Xfe,t.hotkey=``,t}return VI(t,e),t}(oL),rpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`sup`,t.marksNeedToRemove=[`sub`],t.title=Z(`textStyle.sup`),t.iconSvg=Yfe,t.hotkey=``,t}return VI(t,e),t}(oL),ipe=function(){function e(){this.title=Z(`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 aL(e)},e.prototype.exec=function(e,t){var n,r,i=B.nodes(e,{match:function(e){return W.isText(e)},universal:!0});try{for(var a=GI(i),o=a.next();!o.done;o=a.next())Nfe(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}(),ape={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=kb(`strong`,null,u)),o&&(u=kb(`code`,null,u)),i&&(u=kb(`em`,null,u)),a&&(u=kb(`u`,null,u)),s&&(u=kb(`s`,null,u)),c&&(u=kb(`sub`,null,u)),l&&(u=kb(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new Zfe}},{key:`underline`,factory:function(){return new tpe}},{key:`italic`,factory:function(){return new $fe}},{key:`through`,factory:function(){return new epe}},{key:`code`,factory:function(){return new Qfe}},{key:`sub`,factory:function(){return new npe}},{key:`sup`,factory:function(){return new rpe}},{key:`clearStyle`,factory:function(){return new ipe}}],styleToHtml:function(e,t){if(!W.isText(e))return t;if(II(t))return XI(e,t);var n=K(t);if(RI(n)===`br`)return XI(e,`<br>`);var r=n.html();return r=XI(e,r),n.html(r),LI(n)},parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t;return ZI(r,`b,strong`)&&(i.bold=!0),ZI(r,`i,em`)&&(i.italic=!0),ZI(r,`u`)&&(i.underline=!0),ZI(r,`s,strike`)&&(i.through=!0),ZI(r,`sub`)&&(i.sub=!0),ZI(r,`sup`)&&(i.sup=!0),ZI(r,`code`)&&(i.code=!0),i}};function lL(e){return function(t,n,r){return kb(`h`+e,null,n)}}var ope={type:`header1`,renderElem:lL(1)},spe={type:`header2`,renderElem:lL(2)},cpe={type:`header3`,renderElem:lL(3)},lpe={type:`header4`,renderElem:lL(4)},upe={type:`header5`,renderElem:lL(5)},dpe=NP.PROPER,uL=RegExp.prototype,dL=uL.toString,fpe=sN(zF),ppe=XM((function(){return dL.call({source:`a`,flags:`b`})!=`/a/b`})),mpe=dpe&&dL.name!=`toString`;(ppe||mpe)&&PP(RegExp.prototype,`toString`,(function(){var e=sP(this),t=RF(e.source),n=e.flags;return`/`+t+`/`+RF(n===void 0&&gN(uL,e)&&!(`flags`in uL)?fpe(e):n)}),{unsafe:!0});var fL,hpe=YM.TypeError,pL=function(e){if(TI(e))throw hpe(`The method doesn't accept regular expressions`);return e},gpe=YN(`match`),mL=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[gpe]=!1,`/./`[e](t)}catch{}}return!1},_pe=iP.f,hL=sN(``.startsWith),vpe=sN(``.slice),ype=Math.min,gL=mL(`startsWith`);function _L(e){var t=KI(B.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=KI(t,1)[0];return X.getNodeType(n)}function vL(e){return e.selection==null||!KI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function yL(e,t){t&&G.setNodes(e,{type:t})}uF({target:`String`,proto:!0,forced:!(!gL&&(fL=_pe(String.prototype,`startsWith`),fL&&!fL.writable)||gL)},{startsWith:function(e){var t=RF(dN(this));pL(e);var n=HP(ype(arguments.length>1?arguments[1]:void 0,t.length)),r=RF(e);return hL?hL(t,r,n):vpe(t,n,n+r.length)===r}});var bpe=function(){function e(){this.title=Z(`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:Z(`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 _L(e)},e.prototype.isDisabled=function(e){return vL(e)},e.prototype.exec=function(e,t){yL(e,t.toString())},e}(),bL=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return _L(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return vL(e)},e.prototype.exec=function(e,t){var n=this.type;yL(e,t===n?`paragraph`:n)},e}(),xpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return VI(t,e),t}(bL),Spe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return VI(t,e),t}(bL),Cpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return VI(t,e),t}(bL),wpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return VI(t,e),t}(bL),Tpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return VI(t,e),t}(bL),Epe={key:`headerSelect`,factory:function(){return new bpe}},Dpe={key:`header1`,factory:function(){return new xpe}},Ope={key:`header2`,factory:function(){return new Spe}},kpe={key:`header3`,factory:function(){return new Cpe}},Ape={key:`header4`,factory:function(){return new wpe}},jpe={key:`header5`,factory:function(){return new Tpe}};function xL(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function SL(e){return function(t,n,r){var i=K(t);return(n=n.filter((function(e){return!!W.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Mpe={renderElems:[ope,spe,cpe,lpe,upe],elemsToHtml:[{type:`header1`,elemToHtml:xL(1)},{type:`header2`,elemToHtml:xL(2)},{type:`header3`,elemToHtml:xL(3)},{type:`header4`,elemToHtml:xL(4)},{type:`header5`,elemToHtml:xL(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:SL(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:SL(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:SL(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:SL(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:SL(5)}],menus:[Epe,Dpe,Ope,kpe,Ape,jpe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=KI(B.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?G.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},CL=Object.assign,wL=Object.defineProperty,Npe=sN([].concat),TL=!CL||XM((function(){if(ZM&&CL({b:1},CL(wL({},`a`,{enumerable:!0,get:function(){wL(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})),CL({},e)[n]!=7||UF(CL({},t)).join(``)!=r}))?function(e,t){for(var n=RN(e),r=arguments.length,i=1,a=QP.f,o=nN.f;r>i;)for(var s,c=uN(arguments[i++]),l=a?Npe(UF(c),a(c)):UF(c),u=l.length,d=0;u>d;)s=l[d++],ZM&&!$M(o,c,s)||(n[s]=c[s]);return n}:CL;function EL(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}uF({target:`Object`,stat:!0,forced:Object.assign!==TL},{assign:TL});var Ppe={selector:`font`,preParseHtml:function(e){var t=K(e);if(RI(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},DL=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=B.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||!!KI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=K(`<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=K(r).attr(`data-value`);i===`0`?B.removeMark(e,t):B.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=K(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=K(`<li data-value="`+e+`"></li>`);i===e&&n.addClass(`active`),n.append(t),r.append(n)}));var o=``;t===`color`&&(o=Z(`color.default`)),t===`bgColor`&&(o=Z(`color.clear`));var s=K(`
|
|
|
<li data-value="0" class="clear">
|
|
|
<svg viewBox="0 0 1024 1024"><path d="M236.8 128L896 787.2V128H236.8z m614.4 704L192 172.8V832h659.2zM192 64h704c38.4 0 64 25.6 64 64v704c0 38.4-25.6 64-64 64H192c-38.4 0-64-25.6-64-64V128c0-38.4 25.6-64 64-64z"></path></svg>
|
|
|
`+o+`
|
|
|
</li>
|
|
|
`);return r.prepend(s),r[0]},e}(),Fpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=zfe,t.mark=`color`,t}return VI(t,e),t}(DL),Ipe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=Bfe,t.mark=`bgColor`,t}return VI(t,e),t}(DL),OL=`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(`.`),Lpe={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&EL(a,{color:r}),i&&EL(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!W.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((II(t)||RI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),LI(n)):t},preParseHtml:[Ppe],parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t,a=zI(r,`color`);a&&(i.color=a);var o=zI(r,`background-color`);return o||=zI(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Fpe},config:{colors:OL}},{key:`bgColor`,factory:function(){return new Ipe},config:{colors:OL}}]},Rpe=/^(?:\w+:)?\/\/(\S+)$/,zpe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Bpe=/^[^\s\.]+\.\S{2,}$/,Vpe=GP.includes;function kL(e){return e===void 0&&(e=`r`),e+`-`+Py()}function AL(e){return e.replace(/</g,`<`).replace(/>/g,`>`)}function jL(e,t,n,r){return UI(this,void 0,void 0,(function(){var i,a;return WI(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 ML(e,t,n){return UI(this,void 0,void 0,(function(){var r;return WI(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 NL(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){var n=t.type;return!!e.isVoid(t)||!![`pre`,`code`,`link`].includes(n)||void 0}))}function PL(e,t){return{type:`link`,url:AL(e),children:t?[{text:t}]:[]}}function FL(e,t,n){return UI(this,void 0,void 0,(function(){var r,i,a;return WI(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),NL(e)?[2]:[4,jL(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,ML(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(U.isCollapsed(i)?(e.insertText(` `),a=PL(r,t),G.insertNodes(e,a),e.insertFragment([{text:` `}])):B.string(e,i)===t?(a=PL(r),G.wrapNodes(e,a,{split:!0}),G.collapse(e,{edge:`end`})):(e.deleteFragment(),a=PL(r,t),G.insertNodes(e,a))),[2]}}))}))}uF({target:`Array`,proto:!0},{includes:function(e){return Vpe(this,e,arguments.length>1?arguments[1]:void 0)}}),CI(`includes`);var Hpe={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return kb(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},Upe={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.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 IL(){return kL(`w-e-insert-link`)}var Wpe=function(){function e(){this.title=Z(`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=IL(),this.urlInputId=IL(),this.buttonId=IL()}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 NL(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=KI(qj(Z(`link.text`),r),2),s=o[0],c=K(o[1]),l=KI(qj(Z(`link.url`),i),2),u=l[0],d=K(l[1]),f=KI(Jj(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=K(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),FL(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||U.isCollapsed(t))c.val(``);else{var h=B.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function LL(){return kL(`w-e-update-link`)}var Gpe=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=sL,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=LL(),this.buttonId=LL()}return e.prototype.getSelectedLinkElem=function(e){return X.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 X.getSelectedNodeByType(e,`link`)},e.prototype.getModalContentElem=function(e){var t=this.urlInputId,n=this.buttonId,r=KI(qj(Z(`link.url`),t),2),i=r[0],a=K(r[1]),o=KI(Jj(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=K(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){UI(this,void 0,void 0,(function(){var r,i;return WI(this,(function(a){switch(a.label){case 0:return n?[4,jL(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,ML(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:AL(r)},G.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?V.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}(),Kpe=function(){function e(){this.title=Z(`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||X.getSelectedNodeByType(e,`link`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),qpe=function(){function e(){this.title=Z(`link.view`),this.iconSvg=cL,this.tag=`button`}return e.prototype.getSelectedLinkElem=function(e){return X.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}(),RL={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},Jpe={renderElems:[Hpe],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:[Upe],menus:[{key:`insertLink`,factory:function(){return new Wpe},config:RL},{key:`editLink`,factory:function(){return new Gpe},config:RL},{key:`unLink`,factory:function(){return new Kpe}},{key:`viewLink`,factory:function(){return new qpe}}],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(Rpe);if(!t)return!1;var n=t[1];return!(!n||!zpe.test(n)&&!Bpe.test(n))}(t)){if(!NL(i)){var r=i.selection;r!=null&&FL(i,B.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=KI(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&V.string(n)===``?G.removeNodes(i,{at:a}):r([n,a])},i}},Ype=sN(1 .valueOf),Xpe=YM.RangeError,Zpe=YM.RangeError,zL=YM.String,BL=Math.floor,VL=sN((function(e){var t=RF(dN(this)),n=``,r=LP(e);if(r<0||r==1/0)throw Xpe(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),HL=sN(``.slice),UL=sN(1 .toFixed),WL=function(e,t,n){return t===0?n:t%2==1?WL(e,t-1,n*e):WL(e*e,t/2,n)},GL=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=BL(i/1e7)},KL=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=BL(r/t),r=r%t*1e7},qL=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=zL(e[t]);n=n===``?r:n+VL(`0`,7-r.length)+r}return n};function JL(e,t){return`w-e-image-container-`+X.findKey(e,t).id}uF({target:`Number`,proto:!0,forced:XM((function(){return UL(8e-5,3)!==`0.000`||UL(.9,0)!==`1`||UL(1.255,2)!==`1.25`||UL(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!XM((function(){UL({})}))},{toFixed:function(e){var t,n,r,i,a=Ype(this),o=LP(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw Zpe(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return zL(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*WL(2,69,1))-69)<0?a*WL(2,-t,1):a/WL(2,t,1),n*=4503599627370496,(t=52-t)>0){for(GL(s,0,n),r=o;r>=7;)GL(s,1e7,0),r-=7;for(GL(s,WL(10,r,1),0),r=t-1;r>=23;)KL(s,1<<23),r-=23;KL(s,1<<r),GL(s,1,1),KL(s,2),l=qL(s)}else GL(s,0,n),GL(s,1<<-t,0),l=qL(s)+VL(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+VL(`0`,o-i)+l:HL(l,0,i-o)+`.`+HL(l,i-o)):c+l}});var Qpe={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=X.isNodeSelected(n,e),g={};f&&(g.width=`100%`),m&&(g.height=`100%`);var _=kb(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=K(`body`),a=JL(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=K(`#`+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=X.getHoverbar(e);r&&r.hideAndClean()}var m=Xy((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:HI(HI({},t.style),{width:r+`px`,height:a+`px`})};G.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),kb(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=K(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,kb(`div`,{className:`w-e-image-dragger left-top`}),kb(`div`,{className:`w-e-image-dragger right-top`}),kb(`div`,{className:`w-e-image-dragger left-bottom`}),kb(`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),kb(`div`,{id:JL(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},$pe={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:zI(r,`width`),height:zI(r,`height`)},children:[{text:``}]}}};function YL(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),UI(this,void 0,void 0,(function(){var a,o;return WI(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 XL(e,t,n){return UI(this,void 0,void 0,(function(){var r;return WI(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 ZL(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),UI(this,void 0,void 0,(function(){var i,a,o;return WI(this,(function(s){switch(s.label){case 0:return[4,YL(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,XL(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:AL(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),QL(e)||(G.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function QL(e){var t=e.selection;return t==null||!U.isCollapsed(t)||!!KI(B.nodes(e,{match:function(t){var n=X.getNodeType(t);return n===`code`||n===`pre`||n===`link`||n===`list-item`||!!n.startsWith(`header`)||n===`blockquote`||!!B.isVoid(e,t)},universal:!0}),1)[0]}function $L(){return kL(`w-e-insert-image`)}var eme=function(){function e(){this.title=Z(`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=$L(),this.altInputId=$L(),this.hrefInputId=$L(),this.buttonId=$L()}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 QL(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=KI(qj(Z(`image.src`),r),2),c=s[0],l=K(s[1]),u=KI(qj(Z(`image.desc`),i),2),d=u[0],f=K(u[1]),p=KI(qj(Z(`image.link`),a),2),m=p[0],h=K(p[1]),g=KI(Jj(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=K(`<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)||ZL(e,t,n,r))},e}(),tme=function(){function e(){this.title=Z(`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||X.getSelectedNodeByType(e,`image`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function eR(){return kL(`w-e-edit-image`)}var nme=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=sL,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=eR(),this.altInputId=eR(),this.hrefInputId=eR(),this.buttonId=eR()}return e.prototype.getValue=function(e){return``},e.prototype.getImageNode=function(e){return X.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||!U.isCollapsed(t)||X.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=KI(qj(Z(`image.src`),r),2),l=c[0],u=K(c[1]),d=KI(qj(Z(`image.desc`),i),2),f=d[0],p=K(d[1]),m=KI(qj(Z(`image.link`),a),2),h=m[0],g=K(m[1]),_=KI(Jj(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=K(`<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={}),UI(this,void 0,void 0,(function(){var a,o,s,c,l,u;return WI(this,(function(d){switch(d.label){case 0:return[4,YL(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,XL(`editImage`,e,t)]:[2];case 2:return a=d.sent(),(o=X.getSelectedNodeByType(e,`image`))==null||(s=o.style,c={src:a,alt:n,href:r,style:HI(HI({},s===void 0?{}:s),i)},G.setNodes(e,c,{match:function(e){return X.checkNodeType(e,`image`)}}),l=X.getSelectedNodeByType(e,`image`),(u=e.getMenuConfig(`editImage`).onUpdatedImage)&&u(l)),[2]}}))}))}(e,t,n,r,i))},e}(),rme=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=cL,this.tag=`button`}return e.prototype.getValue=function(e){var t=X.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}(),tR=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 X.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=X.getHoverbar(e);r&&r.hideAndClean();var i=n.style,a={style:HI(HI({},i===void 0?{}:i),{width:this.value,height:``})};G.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),ime=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return VI(t,e),t}(tR),ame=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return VI(t,e),t}(tR),ome=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return VI(t,e),t}(tR),nR={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},sme={renderElems:[Qpe],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:[$pe],menus:[{key:`insertImage`,factory:function(){return new eme},config:nR},{key:`deleteImage`,factory:function(){return new tme}},{key:`editImage`,factory:function(){return new nme},config:nR},{key:`viewImageLink`,factory:function(){return new rme}},{key:`imageWidth30`,factory:function(){return new ime}},{key:`imageWidth50`,factory:function(){return new ame}},{key:`imageWidth100`,factory:function(){return new ome}}],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}},cme={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),kb(`div`,{style:{margin:`5px 0`}},kb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},kb(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};G.setNodes(n,i,{at:r})}}})),kb(`span`,null,t))}},lme=function(){function e(){this.title=Z(`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!!X.getSelectedNodeByType(e,`todo`)},e.prototype.isDisabled=function(e){return e.selection==null||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.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);G.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),ume={renderElems:[cme],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=K(e).find(`li`),n=K(`<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=K(e);(t=t.filter((function(e){return!!W.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 lme}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&U.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&V.string(i).length===0)return void G.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},dme={type:`blockquote`,renderElem:function(e,t,n){return kb(`blockquote`,null,t)}},fme={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},pme=function(){function e(){this.title=Z(`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!!X.getSelectedNodeByType(e,`blockquote`)},e.prototype.isDisabled=function(e){return e.selection==null||!KI(B.nodes(e,{match:function(e){var t=X.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`;G.setNodes(e,{type:n},{mode:`highest`})}},e}(),mme={key:`blockquote`,factory:function(){return new pme}},hme=sN([].slice),gme=PF(`slice`),_me=YN(`species`),rR=YM.Array,vme=Math.max;uF({target:`Array`,proto:!0,forced:!gme},{slice:function(e,t){var n,r,i,a=fN(this),o=UP(a),s=BP(e,o),c=BP(t===void 0?o:t,o);if(fF(a)&&(n=a.constructor,(EF(n)&&(n===rR||fF(n.prototype))||mN(n)&&(n=n[_me])===null)&&(n=void 0),n===rR||n===void 0))return hme(a,s,c);for(r=new(n===void 0?rR:n)(vme(c-s,0)),i=0;s<c;s++,i++)s in a&&EI(r,i,a[s]);return r.length=i,r}});var yme={renderElems:[dme],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[fme],menus:[mme],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=KI(B.nodes(e,{match:function(e){return X.checkNodeType(e,`blockquote`)},universal:!0}),1)[0];if(!a)return t();var o=a[0],s=X.findPath(e,o),c=B.end(e,s);if(A_.equals(c,i.focus)){var l=V.string(o);if(l&&l.slice(-1)===`
|
|
|
`)return e.deleteBackward(`character`),void G.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
|
|
|
`)},r}},bme=function(){function e(){this.title=Z(`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||!!KI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=K(`<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=K(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=K(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),xme={menus:[{key:`emotion`,factory:function(){return new bme},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},Sme={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Cme={selector:`font`,preParseHtml:function(e){var t=K(e);if(RI(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,Sme[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},wme=sN(``.indexOf);uF({target:`String`,proto:!0,forced:!mL(`includes`)},{includes:function(e){return!!~wme(RF(dN(this)),RF(pL(e)),arguments.length>1?arguments[1]:void 0)}});var iR,aR,oR=function(e){return e&&e.Math==Math&&e},sR=oR(typeof globalThis==`object`&&globalThis)||oR(typeof window==`object`&&window)||oR(typeof self==`object`&&self)||oR(typeof WM==`object`&&WM)||function(){return this}()||Function(`return this`)(),cR=Function.prototype,lR=cR.apply,Tme=cR.bind,uR=cR.call,dR=typeof Reflect==`object`&&Reflect.apply||(Tme?uR.bind(lR):function(){return uR.apply(lR,arguments)}),fR=Function.prototype,pR=fR.bind,mR=fR.call,Eme=pR&&pR.bind(mR),hR=pR?function(e){return e&&Eme(mR,e)}:function(e){return e&&function(){return mR.apply(e,arguments)}},gR=function(e){return typeof e==`function`},_R=function(e){try{return!!e()}catch{return!0}},vR=!_R((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),yR=Function.prototype.call,bR=yR.bind?yR.bind(yR):function(){return yR.apply(yR,arguments)},xR={}.propertyIsEnumerable,SR=Object.getOwnPropertyDescriptor,CR={f:SR&&!xR.call({1:2},1)?function(e){var t=SR(this,e);return!!t&&t.enumerable}:xR},wR=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Dme=hR({}.toString),Ome=hR(``.slice),TR=function(e){return Ome(Dme(e),8,-1)},ER=sR.Object,kme=hR(``.split),DR=_R((function(){return!ER(`z`).propertyIsEnumerable(0)}))?function(e){return TR(e)==`String`?kme(e,``):ER(e)}:ER,Ame=sR.TypeError,OR=function(e){if(e==null)throw Ame(`Can't call method on `+e);return e},kR=function(e){return DR(OR(e))},AR=function(e){return typeof e==`object`?e!==null:gR(e)},jR={},MR=function(e){return gR(e)?e:void 0},NR=function(e,t){return arguments.length<2?MR(jR[e])||MR(sR[e]):jR[e]&&jR[e][t]||sR[e]&&sR[e][t]},PR=hR({}.isPrototypeOf),FR=NR(`navigator`,`userAgent`)||``,IR=sR.process,LR=sR.Deno,RR=IR&&IR.versions||LR&&LR.version,zR=RR&&RR.v8;zR&&(aR=(iR=zR.split(`.`))[0]>0&&iR[0]<4?1:+(iR[0]+iR[1])),!aR&&FR&&(!(iR=FR.match(/Edge\/(\d+)/))||iR[1]>=74)&&(iR=FR.match(/Chrome\/(\d+)/))&&(aR=+iR[1]);var BR=aR,VR=!!Object.getOwnPropertySymbols&&!_R((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&BR&&BR<41})),HR=VR&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,jme=sR.Object,UR=HR?function(e){return typeof e==`symbol`}:function(e){var t=NR(`Symbol`);return gR(t)&&PR(t.prototype,jme(e))},Mme=sR.String,Nme=sR.TypeError,WR=function(e){if(gR(e))return e;throw Nme(function(e){try{return Mme(e)}catch{return`Object`}}(e)+` is not a function`)},Pme=sR.TypeError,Fme=Object.defineProperty,GR=sR[`__core-js_shared__`]||function(e,t){try{Fme(sR,e,{value:t,configurable:!0,writable:!0})}catch{sR[e]=t}return t}(`__core-js_shared__`,{}),KR=GM((function(e){(e.exports=function(e,t){return GR[e]||(GR[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Ime=sR.Object,qR=function(e){return Ime(OR(e))},Lme=hR({}.hasOwnProperty),JR=Object.hasOwn||function(e,t){return Lme(qR(e),t)},Rme=0,zme=Math.random(),Bme=hR(1 .toString),YR=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Bme(++Rme+zme,36)},XR=KR(`wks`),ZR=sR.Symbol,QR=ZR&&ZR.for,Vme=HR?ZR:ZR&&ZR.withoutSetter||YR,$R=function(e){if(!JR(XR,e)||!VR&&typeof XR[e]!=`string`){var t=`Symbol.`+e;VR&&JR(ZR,e)?XR[e]=ZR[e]:XR[e]=HR&&QR?QR(t):Vme(t)}return XR[e]},Hme=sR.TypeError,Ume=$R(`toPrimitive`),ez=function(e){var t=function(e,t){if(!AR(e)||UR(e))return e;var n,r,i=(n=e[Ume])==null?void 0:WR(n);if(i){if(t===void 0&&(t=`default`),r=bR(i,e,t),!AR(r)||UR(r))return r;throw Hme(`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)&&!AR(r=bR(n,e))||gR(n=e.valueOf)&&!AR(r=bR(n,e))||t!==`string`&&gR(n=e.toString)&&!AR(r=bR(n,e)))return r;throw Pme(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return UR(t)?t:t+``},tz=sR.document,Wme=AR(tz)&&AR(tz.createElement),nz=function(e){return Wme?tz.createElement(e):{}},rz=!vR&&!_R((function(){return Object.defineProperty(nz(`div`),`a`,{get:function(){return 7}}).a!=7})),iz=Object.getOwnPropertyDescriptor,az={f:vR?iz:function(e,t){if(e=kR(e),t=ez(t),rz)try{return iz(e,t)}catch{}if(JR(e,t))return wR(!bR(CR.f,e,t),e[t])}},Gme=/#|\.prototype\./,oz=function(e,t){var n=qme[Kme(e)];return n==Yme||n!=Jme&&(gR(t)?_R(t):!!t)},Kme=oz.normalize=function(e){return String(e).replace(Gme,`.`).toLowerCase()},qme=oz.data={},Jme=oz.NATIVE=`N`,Yme=oz.POLYFILL=`P`,Xme=oz,sz=hR(hR.bind),cz=function(e,t){return WR(e),t===void 0?e:sz?sz(e,t):function(){return e.apply(t,arguments)}},Zme=sR.String,Qme=sR.TypeError,lz=function(e){if(AR(e))return e;throw Qme(Zme(e)+` is not an object`)},$me=sR.TypeError,uz=Object.defineProperty,dz={f:vR?uz:function(e,t,n){if(lz(e),t=ez(t),lz(n),rz)try{return uz(e,t,n)}catch{}if(`get`in n||`set`in n)throw $me(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},fz=vR?function(e,t,n){return dz.f(e,t,wR(1,n))}:function(e,t,n){return e[t]=n,e},ehe=az.f,the=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 dR(e,this,arguments)};return t.prototype=e.prototype,t},pz=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?sR:f?sR[u]:(sR[u]||{}).prototype,h=d?jR:jR[u]||fz(jR,u,{})[u],g=h.prototype;for(i in t)n=!Xme(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&JR(m,i),o=h[i],n&&(s=e.noTargetGet?(l=ehe(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?cz(a,sR):e.wrap&&n?the(a):p&&gR(a)?hR(a):a,(e.sham||a&&a.sham||o&&o.sham)&&fz(c,`sham`,!0),fz(h,i,c),p&&(JR(jR,r=u+`Prototype`)||fz(jR,r,{}),fz(jR[r],i,a),e.real&&g&&!g[i]&&fz(g,i,a)))},mz=Array.isArray||function(e){return TR(e)==`Array`},nhe=Math.ceil,rhe=Math.floor,hz=function(e){var t=+e;return t!=t||t===0?0:(t>0?rhe:nhe)(t)},ihe=Math.min,gz=function(e){return(t=e.length)>0?ihe(hz(t),9007199254740991):0;var t},_z=function(e,t,n){var r=ez(t);r in e?dz.f(e,r,wR(0,n)):e[r]=n},vz={};vz[$R(`toStringTag`)]=`z`;var yz=String(vz)===`[object z]`,ahe=$R(`toStringTag`),ohe=sR.Object,she=TR(function(){return arguments}())==`Arguments`,bz=yz?TR: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=ohe(e),ahe))==`string`?n:she?TR(t):(r=TR(t))==`Object`&&gR(t.callee)?`Arguments`:r},che=hR(Function.toString);gR(GR.inspectSource)||(GR.inspectSource=function(e){return che(e)});var xz=GR.inspectSource,Sz=function(){},lhe=[],Cz=NR(`Reflect`,`construct`),wz=/^\s*(?:class|function)\b/,uhe=hR(wz.exec),dhe=!wz.exec(Sz),Tz=function(e){if(!gR(e))return!1;try{return Cz(Sz,lhe,e),!0}catch{return!1}},fhe=!Cz||_R((function(){var e;return Tz(Tz.call)||!Tz(Object)||!Tz((function(){e=!0}))||e}))?function(e){if(!gR(e))return!1;switch(bz(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return dhe||!!uhe(wz,xz(e))}:Tz,phe=$R(`species`),Ez=sR.Array,Dz=function(e,t){return new(function(e){var t;return mz(e)&&(t=e.constructor,(fhe(t)&&(t===Ez||mz(t.prototype))||AR(t)&&(t=t[phe])===null)&&(t=void 0)),t===void 0?Ez:t}(e))(t===0?0:t)},mhe=$R(`species`),Oz=$R(`isConcatSpreadable`),kz=sR.TypeError,hhe=BR>=51||!_R((function(){var e=[];return e[Oz]=!1,e.concat()[0]!==e})),ghe=BR>=51||!_R((function(){var e=[];return(e.constructor={})[mhe]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),_he=function(e){if(!AR(e))return!1;var t=e[Oz];return t===void 0?mz(e):!!t};pz({target:`Array`,proto:!0,forced:!hhe||!ghe},{concat:function(e){var t,n,r,i,a,o=qR(this),s=Dz(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(_he(a=t===-1?o:arguments[t])){if(c+(i=gz(a))>9007199254740991)throw kz(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&_z(s,c,a[n])}else{if(c>=9007199254740991)throw kz(`Maximum allowed index exceeded`);_z(s,c++,a)}return s.length=c,s}});var Az,vhe=sR.String,jz=function(e){if(bz(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return vhe(e)},yhe=Math.max,bhe=Math.min,Mz=function(e,t){var n=hz(e);return n<0?yhe(n+t,0):bhe(n,t)},Nz=function(e){return function(t,n,r){var i,a=kR(t),o=gz(a),s=Mz(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}},xhe={includes:Nz(!0),indexOf:Nz(!1)},Pz={},She=xhe.indexOf,Fz=hR([].push),Iz=function(e,t){var n,r=kR(e),i=0,a=[];for(n in r)!JR(Pz,n)&&JR(r,n)&&Fz(a,n);for(;t.length>i;)JR(r,n=t[i++])&&(~She(a,n)||Fz(a,n));return a},Lz=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Rz=Object.keys||function(e){return Iz(e,Lz)},Che=vR?Object.defineProperties:function(e,t){lz(e);for(var n,r=kR(t),i=Rz(t),a=i.length,o=0;a>o;)dz.f(e,n=i[o++],r[n]);return e},whe=NR(`document`,`documentElement`),zz=KR(`keys`),Bz=function(e){return zz[e]||(zz[e]=YR(e))},Vz=Bz(`IE_PROTO`),Hz=function(){},Uz=function(e){return`<script>`+e+`<\/script>`},Wz=function(e){e.write(Uz(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Gz=function(){try{Az=new ActiveXObject(`htmlfile`)}catch{}var e,t;Gz=typeof document<`u`?document.domain&&Az?Wz(Az):((t=nz(`iframe`)).style.display=`none`,whe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Uz(`document.F=Object`)),e.close(),e.F):Wz(Az);for(var n=Lz.length;n--;)delete Gz.prototype[Lz[n]];return Gz()};Pz[Vz]=!0;var Kz,qz,Jz,Yz=Object.create||function(e,t){var n;return e===null?n=Gz():(Hz.prototype=lz(e),n=new Hz,Hz.prototype=null,n[Vz]=e),t===void 0?n:Che(n,t)},The=Lz.concat(`length`,`prototype`),Xz={f:Object.getOwnPropertyNames||function(e){return Iz(e,The)}},Ehe=sR.Array,Dhe=Math.max,Zz=Xz.f,Qz=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$z={f:function(e){return Qz&&TR(e)==`Window`?function(e){try{return Zz(e)}catch{return function(e,t,n){for(var r=gz(e),i=Mz(void 0,r),a=Mz(r,r),o=Ehe(Dhe(a-i,0)),s=0;i<a;i++,s++)_z(o,s,e[i]);return o.length=s,o}(Qz)}}(e):Zz(kR(e))}},eB={f:Object.getOwnPropertySymbols},Ohe=hR([].slice),tB=function(e,t,n,r){r&&r.enumerable?e[t]=n:fz(e,t,n)},nB={f:$R},khe=dz.f,rB=function(e){var t=jR.Symbol||={};JR(t,e)||khe(t,e,{value:nB.f(e)})},Ahe=yz?{}.toString:function(){return`[object `+bz(this)+`]`},jhe=dz.f,iB=$R(`toStringTag`),aB=function(e,t,n,r){if(e){var i=n?e:e.prototype;JR(i,iB)||jhe(i,iB,{configurable:!0,value:t}),r&&!yz&&fz(i,`toString`,Ahe)}},oB=sR.WeakMap,Mhe=gR(oB)&&/native code/.test(xz(oB)),sB=sR.TypeError,Nhe=sR.WeakMap;if(Mhe||GR.state){var cB=GR.state||=new Nhe,Phe=hR(cB.get),lB=hR(cB.has),Fhe=hR(cB.set);Kz=function(e,t){if(lB(cB,e))throw new sB(`Object already initialized`);return t.facade=e,Fhe(cB,e,t),t},qz=function(e){return Phe(cB,e)||{}},Jz=function(e){return lB(cB,e)}}else{var uB=Bz(`state`);Pz[uB]=!0,Kz=function(e,t){if(JR(e,uB))throw new sB(`Object already initialized`);return t.facade=e,fz(e,uB,t),t},qz=function(e){return JR(e,uB)?e[uB]:{}},Jz=function(e){return JR(e,uB)}}var dB={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(!AR(t)||(n=qz(t)).type!==e)throw sB(`Incompatible receiver, `+e+` required`);return n}}},fB=hR([].push),pB=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=qR(c),h=DR(m),g=cz(l,u),_=gz(h),v=0,y=d||Dz,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:fB(b,f)}else switch(e){case 4:return!1;case 7:fB(b,f)}return a?-1:r||i?i:b}},mB=[pB(0),pB(1),pB(2),pB(3),pB(4),pB(5),pB(6),pB(7)][0],hB=Bz(`hidden`),gB=$R(`toPrimitive`),Ihe=dB.set,_B=dB.getterFor(`Symbol`),vB=Object.prototype,yB=sR.Symbol,bB=yB&&yB.prototype,xB=sR.TypeError,SB=sR.QObject,CB=NR(`JSON`,`stringify`),wB=az.f,TB=dz.f,EB=$z.f,Lhe=CR.f,DB=hR([].push),OB=KR(`symbols`),kB=KR(`op-symbols`),AB=KR(`string-to-symbol-registry`),jB=KR(`symbol-to-string-registry`),Rhe=KR(`wks`),MB=!SB||!SB.prototype||!SB.prototype.findChild,NB=vR&&_R((function(){return Yz(TB({},`a`,{get:function(){return TB(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=wB(vB,t);r&&delete vB[t],TB(e,t,n),r&&e!==vB&&TB(vB,t,r)}:TB,PB=function(e,t){var n=OB[e]=Yz(bB);return Ihe(n,{type:`Symbol`,tag:e,description:t}),vR||(n.description=t),n},FB=function(e,t,n){e===vB&&FB(kB,t,n),lz(e);var r=ez(t);return lz(n),JR(OB,r)?(n.enumerable?(JR(e,hB)&&e[hB][r]&&(e[hB][r]=!1),n=Yz(n,{enumerable:wR(0,!1)})):(JR(e,hB)||TB(e,hB,wR(1,{})),e[hB][r]=!0),NB(e,r,n)):TB(e,r,n)},IB=function(e,t){lz(e);var n=kR(t);return mB(Rz(n).concat(BB(n)),(function(t){vR&&!bR(LB,n,t)||FB(e,t,n[t])})),e},LB=function(e){var t=ez(e),n=bR(Lhe,this,t);return!(this===vB&&JR(OB,t)&&!JR(kB,t))&&(!(n||!JR(this,t)||!JR(OB,t)||JR(this,hB)&&this[hB][t])||n)},RB=function(e,t){var n=kR(e),r=ez(t);if(n!==vB||!JR(OB,r)||JR(kB,r)){var i=wB(n,r);return!i||!JR(OB,r)||JR(n,hB)&&n[hB][r]||(i.enumerable=!0),i}},zB=function(e){var t=EB(kR(e)),n=[];return mB(t,(function(e){JR(OB,e)||JR(Pz,e)||DB(n,e)})),n},BB=function(e){var t=e===vB,n=EB(t?kB:kR(e)),r=[];return mB(n,(function(e){!JR(OB,e)||t&&!JR(vB,e)||DB(r,OB[e])})),r};if(VR||(bB=(yB=function(){if(PR(bB,this))throw xB(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?jz(arguments[0]):void 0,t=YR(e),n=function(e){this===vB&&bR(n,kB,e),JR(this,hB)&&JR(this[hB],t)&&(this[hB][t]=!1),NB(this,t,wR(1,e))};return vR&&MB&&NB(vB,t,{configurable:!0,set:n}),PB(t,e)}).prototype,tB(bB,`toString`,(function(){return _B(this).tag})),tB(yB,`withoutSetter`,(function(e){return PB(YR(e),e)})),CR.f=LB,dz.f=FB,az.f=RB,Xz.f=$z.f=zB,eB.f=BB,nB.f=function(e){return PB($R(e),e)},vR&&TB(bB,`description`,{configurable:!0,get:function(){return _B(this).description}})),pz({global:!0,wrap:!0,forced:!VR,sham:!VR},{Symbol:yB}),mB(Rz(Rhe),(function(e){rB(e)})),pz({target:`Symbol`,stat:!0,forced:!VR},{for:function(e){var t=jz(e);if(JR(AB,t))return AB[t];var n=yB(t);return AB[t]=n,jB[n]=t,n},keyFor:function(e){if(!UR(e))throw xB(e+` is not a symbol`);if(JR(jB,e))return jB[e]},useSetter:function(){MB=!0},useSimple:function(){MB=!1}}),pz({target:`Object`,stat:!0,forced:!VR,sham:!vR},{create:function(e,t){return t===void 0?Yz(e):IB(Yz(e),t)},defineProperty:FB,defineProperties:IB,getOwnPropertyDescriptor:RB}),pz({target:`Object`,stat:!0,forced:!VR},{getOwnPropertyNames:zB,getOwnPropertySymbols:BB}),pz({target:`Object`,stat:!0,forced:_R((function(){eB.f(1)}))},{getOwnPropertySymbols:function(e){return eB.f(qR(e))}}),CB&&pz({target:`JSON`,stat:!0,forced:!VR||_R((function(){var e=yB();return CB([e])!=`[null]`||CB({a:e})!=`{}`||CB(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Ohe(arguments),i=t;if((AR(t)||e!==void 0)&&!UR(e))return mz(t)||(t=function(e,t){if(gR(i)&&(t=bR(i,this,e,t)),!UR(t))return t}),r[1]=t,dR(CB,null,r)}}),!bB[gB]){var zhe=bB.valueOf;tB(bB,gB,(function(e){return bR(zhe,this)}))}aB(yB,`Symbol`),Pz[hB]=!0,rB(`asyncIterator`),rB(`hasInstance`),rB(`isConcatSpreadable`),rB(`iterator`),rB(`match`),rB(`matchAll`),rB(`replace`),rB(`search`),rB(`species`),rB(`split`),rB(`toPrimitive`),rB(`toStringTag`),rB(`unscopables`),aB(sR.JSON,`JSON`,!0);var VB,HB,UB,Bhe=jR.Symbol,WB={},GB=Function.prototype,Vhe=vR&&Object.getOwnPropertyDescriptor,KB=JR(GB,`name`),Hhe={EXISTS:KB,PROPER:KB&&function(){}.name===`something`,CONFIGURABLE:KB&&(!vR||vR&&Vhe(GB,`name`).configurable)},Uhe=!_R((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),qB=Bz(`IE_PROTO`),JB=sR.Object,Whe=JB.prototype,YB=Uhe?JB.getPrototypeOf:function(e){var t=qR(e);if(JR(t,qB))return t[qB];var n=t.constructor;return gR(n)&&t instanceof n?n.prototype:t instanceof JB?Whe:null},XB=$R(`iterator`),ZB=!1;[].keys&&(`next`in(UB=[].keys())?(HB=YB(YB(UB)))!==Object.prototype&&(VB=HB):ZB=!0),VB=VB==null||_R((function(){var e={};return VB[XB].call(e)!==e}))?{}:Yz(VB),gR(VB[XB])||tB(VB,XB,(function(){return this}));var QB={IteratorPrototype:VB,BUGGY_SAFARI_ITERATORS:ZB},Ghe=QB.IteratorPrototype,Khe=function(){return this};sR.String,sR.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{hR(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var qhe=Hhe.PROPER,$B=QB.BUGGY_SAFARI_ITERATORS,eV=$R(`iterator`),Jhe=function(){return this},tV=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Yz(Ghe,{next:wR(1,n)}),aB(e,i,!1,!0),WB[i]=Khe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!$B&&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[eV]||p[`@@iterator`]||i&&p[i],h=!$B&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=YB(g.call(new e)))!==Object.prototype&&s.next&&(aB(s,d,!0,!0),WB[d]=Jhe),qhe&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return bR(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)($B||f||!(l in p))&&tB(p,l,c[l]);else pz({target:t,proto:!0,forced:$B||f},c);return o&&p[eV]!==h&&tB(p,eV,h,{name:i}),WB[t]=h,c},Yhe=dB.set,Xhe=dB.getterFor(`Array Iterator`);tV(Array,`Array`,(function(e,t){Yhe(this,{type:`Array Iterator`,target:kR(e),index:0,kind:t})}),(function(){var e=Xhe(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`),WB.Arguments=WB.Array;var nV=$R(`toStringTag`);for(var rV 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 iV=sR[rV],aV=iV&&iV.prototype;aV&&bz(aV)!==nV&&fz(aV,nV,rV),WB[rV]=WB.Array}var Zhe=Bhe;rB(`asyncDispose`),rB(`dispose`),rB(`matcher`),rB(`metadata`),rB(`observable`),rB(`patternMatch`),rB(`replaceAll`);var oV=Zhe,Qhe=hR(``.charAt),sV=hR(``.charCodeAt),$he=hR(``.slice),ege=function(e){return function(t,n){var r,i,a=jz(OR(t)),o=hz(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=sV(a,o))<55296||r>56319||o+1===s||(i=sV(a,o+1))<56320||i>57343?e?Qhe(a,o):r:e?$he(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),tge=dB.set,nge=dB.getterFor(`String Iterator`);tV(String,`String`,(function(e){tge(this,{type:`String Iterator`,string:jz(e),index:0})}),(function(){var e,t=nge(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ege(n,r),t.index+=e.length,{value:e,done:!1})}));var rge=nB.f(`iterator`),cV=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(GM((function(e){function t(n){return typeof oV==`function`&&typeof rge==`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 oV==`function`&&e.constructor===oV&&e!==oV.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}))),ige=NP.EXISTS,age=uP.f,lV=Function.prototype,oge=sN(lV.toString),uV=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,sge=sN(uV.exec);ZM&&!ige&&age(lV,`name`,{configurable:!0,get:function(){try{return sge(uV,oge(this))[1]}catch{return``}}});var dV=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=B.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!KI(B.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!B.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}(),cge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=Vfe,t.mark=`fontSize`,t}return VI(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontSizeList,r=n===void 0?[]:n;t.push({text:Z(`fontSize.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e});else if(cV(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}(dV),lge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=Hfe,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return VI(t,e),t.prototype.getOptions=function(e){var t=[],n=e.getMenuConfig(this.mark).fontFamilyList,r=n===void 0?[]:n;t.push({text:Z(`fontFamily.default`),value:``}),r.forEach((function(e){if(typeof e==`string`)t.push({text:e,value:e,styleForRenderMenuList:{"font-family":e}});else if(cV(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}(dV),uge={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&EL(a,{fontSize:r}),i&&EL(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!W.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((II(t)||RI(n=K(t))!==`span`)&&(n=K(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),LI(n)):t},preParseHtml:[Cme],parseStyleHtml:function(e,t,n){var r=K(e);if(!W.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=zI(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=zI(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 cge},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 lge},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},dge={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=K(e),n=zI(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]}},fV=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=KI(B.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:KI(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=KI(B.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0];return t==null?null:t[0]},e}(),fge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=Ufe,t}return VI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){G.setNodes(e,{indent:null},{match:function(e){return z.isElement(e)}})},t}(fV),pge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=Wfe,t}return VI(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){G.setNodes(e,{indent:`2em`},{match:function(e){return z.isElement(e)},mode:`highest`})},t}(fV),mge={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.indent,r=t;return n&&EL(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.indent;if(!n)return t;var r=K(t);return r.css(`text-indent`,n),LI(r)},preParseHtml:[dge],parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=zI(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new pge}},{key:`delIndent`,factory:function(){return new fge}}]},pV=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=KI(B.nodes(e,{match:function(e){var t=X.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||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),hge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=Gfe,t}return VI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`left`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(pV),gge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=Kfe,t}return VI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`right`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(pV),_ge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=qfe,t}return VI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`center`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(pV),vge=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=Jfe,t}return VI(t,e),t.prototype.exec=function(e,t){G.setNodes(e,{textAlign:`justify`},{match:function(t){return z.isElement(t)&&!e.isInline(t)}})},t}(pV),yge={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.textAlign,r=t;return n&&EL(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=K(t);return r.css(`text-align`,n),LI(r)},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=zI(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new hge}},{key:`justifyRight`,factory:function(){return new gge}},{key:`justifyCenter`,factory:function(){return new _ge}},{key:`justifyJustify`,factory:function(){return new vge}}]},bge=function(){function e(){this.title=Z(`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:Z(`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=KI(B.nodes(e,{match:function(e){var t=X.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?``:z.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){G.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),xge={renderStyle:function(e,t){if(!z.isElement(e))return t;var n=e.lineHeight,r=t;return n&&EL(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!z.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=K(t);return r.css(`line-height`,n),LI(r)},parseStyleHtml:function(e,t,n){var r=K(e);if(!z.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=zI(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new bge},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},Sge=function(){function e(){this.title=Z(`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}(),Cge=function(){function e(){this.title=Z(`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}(),wge={menus:[{key:`redo`,factory:function(){return new Sge}},{key:`undo`,factory:function(){return new Cge}}]},Tge={type:`divider`,renderElem:function(e,t,n){return lb(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[lb(`hr`)])}},Ege=function(){function e(){this.title=Z(`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||!!X.getSelectedElems(e).some((function(t){if(e.isVoid(t))return!0;var n=X.getNodeType(t);return n===`table`||n===`pre`||void 0}))},e.prototype.exec=function(e,t){G.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),Dge={renderElems:[Tge],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 Ege}}],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=KI(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&G.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},Oge=MF.map;uF({target:`Array`,proto:!0,forced:!PF(`map`)},{map:function(e){return Oge(this,e,arguments.length>1?arguments[1]:void 0)}});var kge=sN([].join),Age=uN!=Object,jge=tL(`join`,`,`);uF({target:`Array`,proto:!0,forced:Age||!jge},{join:function(e){return kge(fN(this),e===void 0?`,`:e)}});var Mge=function(){function e(){this.title=Z(`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=X.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=X.getParentNode(e,t);return n==null||X.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=X.getSelectedElems(e);return!!t.some((function(t){return e.isVoid(t)}))||!t.some((function(e){var t=X.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=V.string(t);G.removeNodes(e,{mode:`highest`});var r=n.split(`
|
|
|
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));G.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=B.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=GI(a),s=o.next();!s.done;s=o.next()){var c=KI(s.value,1)[0];c&&i.push(V.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}G.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
|
|
|
`)}]}]};G.insertNodes(e,l,{mode:`highest`})},e}(),Nge={key:`codeBlock`,factory:function(){return new Mge}};uF({target:`String`,proto:!0,forced:YI(`anchor`)},{anchor:function(e){return JI(this,`a`,`name`,e)}}),uI(`match`,(function(e,t,n){return[function(t){var n=dN(this),r=t==null?void 0:jN(t,e);return r?$M(r,t,n):new RegExp(t)[e](RF(n))},function(e){var r=sP(this),i=RF(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return hI(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=hI(r,i))!==null;){var u=RF(s[0]);c[l]=u,u===``&&(r.lastIndex=fI(i,HP(r.lastIndex),o)),l++}return l===0?null:c}]}));var Pge={menus:[Nge],editorPlugin:function(e){var t=e.insertBreak,n=e.normalizeNode,r=e.insertData;e.insertNode;var i=e;return i.insertBreak=function(){var e=X.getSelectedNodeByType(i,`code`);if(e!=null){var n=function(e,t){var n=t.selection;if(n==null)return``;var r=V.string(e),i=n.anchor.offset,a=r.slice(0,i).split(`
|
|
|
`),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(`
|
|
|
`+a);return}}i.insertText(`
|
|
|
`)}else t()},i.normalizeNode=function(e){var t=KI(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&G.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&G.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(G.unwrapNodes(i),G.setNodes(i,{type:`paragraph`},{mode:`highest`}))),n([r,a])},i.insertData=function(e){if(X.getSelectedNodeByType(i,`code`)!=null){var t=e.getData(`text/plain`);B.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return kb(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return kb(`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=K(e);if(RI(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:K(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);return(t=t.filter((function(e){return X.getNodeType(e)===`code`}))).length===0&&(t=[{type:`code`,language:``,children:[{text:r[0].textContent||``}]}]),{type:`pre`,children:t.filter((function(e){return X.getNodeType(e)===`code`}))}}}]},mV=function(){function e(){this.title=Z(`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}(),hV={menus:[{key:`fullScreen`,factory:function(){return new mV}}]},gV=function(){function e(){this.title=Z(`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||!!U.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];G.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(B.start(e,r))}},e}(),_V=[ape,Lpe,uge,mge,yge,xge,sme,Dge,xme,Jpe,Pge,yme,Mpe,Ofe,ume,wge,hV,{menus:[{key:`enter`,factory:function(){return new gV}}]}];MM(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),MM(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var vV=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function yV(e){var t={exports:{}};return e(t,t.exports),t.exports}var bV,xV,SV=function(e){return e&&e.Math==Math&&e},CV=SV(typeof globalThis==`object`&&globalThis)||SV(typeof window==`object`&&window)||SV(typeof self==`object`&&self)||SV(typeof vV==`object`&&vV)||function(){return this}()||Function(`return this`)(),wV=Function.prototype,TV=wV.bind,EV=wV.call,DV=TV&&TV.bind(EV),OV=TV?function(e){return e&&DV(EV,e)}:function(e){return e&&function(){return EV.apply(e,arguments)}},kV=function(e){try{return!!e()}catch{return!0}},AV=OV({}.toString),jV=OV(``.slice),MV=function(e){return jV(AV(e),8,-1)},NV=CV.Object,PV=OV(``.split),FV=kV((function(){return!NV(`z`).propertyIsEnumerable(0)}))?function(e){return MV(e)==`String`?PV(e,``):NV(e)}:NV,IV=CV.TypeError,LV=function(e){if(e==null)throw IV(`Can't call method on `+e);return e},RV=function(e){return FV(LV(e))},zV=Object.defineProperty,BV=function(e,t){try{zV(CV,e,{value:t,configurable:!0,writable:!0})}catch{CV[e]=t}return t},VV=CV[`__core-js_shared__`]||BV(`__core-js_shared__`,{}),HV=yV((function(e){(e.exports=function(e,t){return VV[e]||(VV[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),UV=CV.Object,WV=function(e){return UV(LV(e))},GV=OV({}.hasOwnProperty),KV=Object.hasOwn||function(e,t){return GV(WV(e),t)},qV=0,JV=Math.random(),YV=OV(1 .toString),XV=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+YV(++qV+JV,36)},ZV=function(e){return typeof e==`function`},QV=function(e){return ZV(e)?e:void 0},$V=function(e,t){return arguments.length<2?QV(CV[e]):CV[e]&&CV[e][t]},eH=$V(`navigator`,`userAgent`)||``,tH=CV.process,nH=CV.Deno,rH=tH&&tH.versions||nH&&nH.version,iH=rH&&rH.v8;iH&&(xV=(bV=iH.split(`.`))[0]>0&&bV[0]<4?1:+(bV[0]+bV[1])),!xV&&eH&&(!(bV=eH.match(/Edge\/(\d+)/))||bV[1]>=74)&&(bV=eH.match(/Chrome\/(\d+)/))&&(xV=+bV[1]);var aH,oH=xV,sH=!!Object.getOwnPropertySymbols&&!kV((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&oH&&oH<41})),cH=sH&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,lH=HV(`wks`),uH=CV.Symbol,dH=uH&&uH.for,fH=cH?uH:uH&&uH.withoutSetter||XV,pH=function(e){if(!KV(lH,e)||!sH&&typeof lH[e]!=`string`){var t=`Symbol.`+e;sH&&KV(uH,e)?lH[e]=uH[e]:lH[e]=cH&&dH?dH(t):fH(t)}return lH[e]},mH=function(e){return typeof e==`object`?e!==null:ZV(e)},hH=CV.String,gH=CV.TypeError,_H=function(e){if(mH(e))return e;throw gH(hH(e)+` is not an object`)},vH=!kV((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),yH=CV.document,bH=mH(yH)&&mH(yH.createElement),xH=function(e){return bH?yH.createElement(e):{}},SH=!vH&&!kV((function(){return Object.defineProperty(xH(`div`),`a`,{get:function(){return 7}}).a!=7})),CH=Function.prototype.call,wH=CH.bind?CH.bind(CH):function(){return CH.apply(CH,arguments)},TH=OV({}.isPrototypeOf),EH=CV.Object,DH=cH?function(e){return typeof e==`symbol`}:function(e){var t=$V(`Symbol`);return ZV(t)&&TH(t.prototype,EH(e))},OH=CV.String,kH=function(e){try{return OH(e)}catch{return`Object`}},AH=CV.TypeError,jH=function(e){if(ZV(e))return e;throw AH(kH(e)+` is not a function`)},MH=function(e,t){var n=e[t];return n==null?void 0:jH(n)},NH=CV.TypeError,PH=CV.TypeError,FH=pH(`toPrimitive`),IH=function(e){var t=function(e,t){if(!mH(e)||DH(e))return e;var n,r=MH(e,FH);if(r){if(t===void 0&&(t=`default`),n=wH(r,e,t),!mH(n)||DH(n))return n;throw PH(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ZV(n=e.toString)&&!mH(r=wH(n,e))||ZV(n=e.valueOf)&&!mH(r=wH(n,e))||t!==`string`&&ZV(n=e.toString)&&!mH(r=wH(n,e)))return r;throw NH(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return DH(t)?t:t+``},LH=CV.TypeError,RH=Object.defineProperty,zH={f:vH?RH:function(e,t,n){if(_H(e),t=IH(t),_H(n),SH)try{return RH(e,t,n)}catch{}if(`get`in n||`set`in n)throw LH(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},BH=Math.ceil,VH=Math.floor,HH=function(e){var t=+e;return t!=t||t===0?0:(t>0?VH:BH)(t)},UH=Math.max,WH=Math.min,GH=function(e,t){var n=HH(e);return n<0?UH(n+t,0):WH(n,t)},KH=Math.min,qH=function(e){return e>0?KH(HH(e),9007199254740991):0},JH=function(e){return qH(e.length)},YH=function(e){return function(t,n,r){var i,a=RV(t),o=JH(a),s=GH(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}},XH={includes:YH(!0),indexOf:YH(!1)},ZH={},QH=XH.indexOf,$H=OV([].push),eU=function(e,t){var n,r=RV(e),i=0,a=[];for(n in r)!KV(ZH,n)&&KV(r,n)&&$H(a,n);for(;t.length>i;)KV(r,n=t[i++])&&(~QH(a,n)||$H(a,n));return a},tU=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],nU=Object.keys||function(e){return eU(e,tU)},rU=vH?Object.defineProperties:function(e,t){_H(e);for(var n,r=RV(t),i=nU(t),a=i.length,o=0;a>o;)zH.f(e,n=i[o++],r[n]);return e},iU=$V(`document`,`documentElement`),aU=HV(`keys`),oU=function(e){return aU[e]||(aU[e]=XV(e))},sU=oU(`IE_PROTO`),cU=function(){},lU=function(e){return`<script>`+e+`<\/script>`},uU=function(e){e.write(lU(``)),e.close();var t=e.parentWindow.Object;return e=null,t},dU=function(){try{aH=new ActiveXObject(`htmlfile`)}catch{}var e,t;dU=typeof document<`u`?document.domain&&aH?uU(aH):((t=xH(`iframe`)).style.display=`none`,iU.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(lU(`document.F=Object`)),e.close(),e.F):uU(aH);for(var n=tU.length;n--;)delete dU.prototype[tU[n]];return dU()};ZH[sU]=!0;var fU=Object.create||function(e,t){var n;return e===null?n=dU():(cU.prototype=_H(e),n=new cU,cU.prototype=null,n[sU]=e),t===void 0?n:rU(n,t)},pU=pH(`unscopables`),mU=Array.prototype;mU[pU]??zH.f(mU,pU,{configurable:!0,value:fU(null)});var hU=function(e){mU[pU][e]=!0},gU={},_U=OV(Function.toString);ZV(VV.inspectSource)||(VV.inspectSource=function(e){return _U(e)});var vU,yU,bU,xU=VV.inspectSource,SU=CV.WeakMap,CU=ZV(SU)&&/native code/.test(xU(SU)),wU=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},TU=vH?function(e,t,n){return zH.f(e,t,wU(1,n))}:function(e,t,n){return e[t]=n,e},EU=CV.TypeError,DU=CV.WeakMap;if(CU||VV.state){var OU=VV.state||=new DU,kU=OV(OU.get),AU=OV(OU.has),jU=OV(OU.set);vU=function(e,t){if(AU(OU,e))throw new EU(`Object already initialized`);return t.facade=e,jU(OU,e,t),t},yU=function(e){return kU(OU,e)||{}},bU=function(e){return AU(OU,e)}}else{var MU=oU(`state`);ZH[MU]=!0,vU=function(e,t){if(KV(e,MU))throw new EU(`Object already initialized`);return t.facade=e,TU(e,MU,t),t},yU=function(e){return KV(e,MU)?e[MU]:{}},bU=function(e){return KV(e,MU)}}var NU,PU,FU,IU={set:vU,get:yU,has:bU,enforce:function(e){return bU(e)?yU(e):vU(e,{})},getterFor:function(e){return function(t){var n;if(!mH(t)||(n=yU(t)).type!==e)throw EU(`Incompatible receiver, `+e+` required`);return n}}},LU={}.propertyIsEnumerable,RU=Object.getOwnPropertyDescriptor,zU={f:RU&&!LU.call({1:2},1)?function(e){var t=RU(this,e);return!!t&&t.enumerable}:LU},BU=Object.getOwnPropertyDescriptor,VU={f:vH?BU:function(e,t){if(e=RV(e),t=IH(t),SH)try{return BU(e,t)}catch{}if(KV(e,t))return wU(!wH(zU.f,e,t),e[t])}},HU=Function.prototype,UU=vH&&Object.getOwnPropertyDescriptor,WU=KV(HU,`name`),GU={EXISTS:WU,PROPER:WU&&function(){}.name===`something`,CONFIGURABLE:WU&&(!vH||vH&&UU(HU,`name`).configurable)},KU=yV((function(e){var t=GU.CONFIGURABLE,n=IU.get,r=IU.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;ZV(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!KV(a,`name`)||t&&a.name!==d)&&TU(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===CV?l?e[n]=a:BV(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:TU(e,n,a))})(Function.prototype,`toString`,(function(){return ZV(this)&&n(this).source||xU(this)}))})),qU=tU.concat(`length`,`prototype`),JU={f:Object.getOwnPropertyNames||function(e){return eU(e,qU)}},YU={f:Object.getOwnPropertySymbols},XU=OV([].concat),ZU=$V(`Reflect`,`ownKeys`)||function(e){var t=JU.f(_H(e)),n=YU.f;return n?XU(t,n(e)):t},QU=function(e,t){for(var n=ZU(t),r=zH.f,i=VU.f,a=0;a<n.length;a++){var o=n[a];KV(e,o)||r(e,o,i(t,o))}},$U=/#|\.prototype\./,eW=function(e,t){var n=nW[tW(e)];return n==iW||n!=rW&&(ZV(t)?kV(t):!!t)},tW=eW.normalize=function(e){return String(e).replace($U,`.`).toLowerCase()},nW=eW.data={},rW=eW.NATIVE=`N`,iW=eW.POLYFILL=`P`,aW=eW,oW=VU.f,sW=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?CV:l?CV[s]||BV(s,{}):(CV[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=oW(n,r))&&o.value:n[r],!aW(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;QU(a,i)}(e.sham||i&&i.sham)&&TU(a,`sham`,!0),KU(n,r,a,e)}},cW=!kV((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),lW=oU(`IE_PROTO`),uW=CV.Object,dW=uW.prototype,fW=cW?uW.getPrototypeOf:function(e){var t=WV(e);if(KV(t,lW))return t[lW];var n=t.constructor;return ZV(n)&&t instanceof n?n.prototype:t instanceof uW?dW:null},pW=pH(`iterator`),mW=!1;[].keys&&(`next`in(FU=[].keys())?(PU=fW(fW(FU)))!==Object.prototype&&(NU=PU):mW=!0),(NU==null||kV((function(){var e={};return NU[pW].call(e)!==e})))&&(NU={}),ZV(NU[pW])||KU(NU,pW,(function(){return this}));var hW={IteratorPrototype:NU,BUGGY_SAFARI_ITERATORS:mW},gW=zH.f,_W=pH(`toStringTag`),vW=function(e,t,n){e&&!KV(e=n?e:e.prototype,_W)&&gW(e,_W,{configurable:!0,value:t})},yW=hW.IteratorPrototype,bW=function(){return this},xW=CV.String,SW=CV.TypeError,CW=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=OV(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return _H(n),function(e){if(typeof e==`object`||ZV(e))return e;throw SW(`Can't set `+xW(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),wW=GU.PROPER,TW=GU.CONFIGURABLE,EW=hW.IteratorPrototype,DW=hW.BUGGY_SAFARI_ITERATORS,OW=pH(`iterator`),kW=function(){return this},AW=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=fU(yW,{next:wU(1,n)}),vW(e,i,!1),gU[i]=bW})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!DW&&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[OW]||p[`@@iterator`]||i&&p[i],h=!DW&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=fW(g.call(new e)))!==Object.prototype&&s.next&&(fW(s)!==EW&&(CW?CW(s,EW):ZV(s[OW])||KU(s,OW,kW)),vW(s,d,!0)),wW&&i==`values`&&m&&m.name!==`values`&&(TW?TU(p,`name`,`values`):(f=!0,h=function(){return wH(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(DW||f||!(l in p))&&KU(p,l,c[l]);else sW({target:t,proto:!0,forced:DW||f},c);return p[OW]!==h&&KU(p,OW,h,{name:i}),gU[t]=h,c},jW=IU.set,MW=IU.getterFor(`Array Iterator`),NW=AW(Array,`Array`,(function(e,t){jW(this,{type:`Array Iterator`,target:RV(e),index:0,kind:t})}),(function(){var e=MW(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`);gU.Arguments=gU.Array,hU(`keys`),hU(`values`),hU(`entries`);var PW={};PW[pH(`toStringTag`)]=`z`;var FW=String(PW)===`[object z]`,IW=pH(`toStringTag`),LW=CV.Object,RW=MV(function(){return arguments}())==`Arguments`,zW=FW?MV: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=LW(e),IW))==`string`?n:RW?MV(t):(r=MV(t))==`Object`&&ZV(t.callee)?`Arguments`:r},BW=FW?{}.toString:function(){return`[object `+zW(this)+`]`};FW||KU(Object.prototype,`toString`,BW,{unsafe:!0});var VW=CV.String,HW=function(e){if(zW(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return VW(e)},UW=OV(``.charAt),WW=OV(``.charCodeAt),GW=OV(``.slice),KW=function(e){return function(t,n){var r,i,a=HW(LV(t)),o=HH(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=WW(a,o))<55296||r>56319||o+1===s||(i=WW(a,o+1))<56320||i>57343?e?UW(a,o):r:e?GW(a,o,o+2):i-56320+(r-55296<<10)+65536}},qW={codeAt:KW(!1),charAt:KW(!0)},JW=qW.charAt,YW=IU.set,XW=IU.getterFor(`String Iterator`);AW(String,`String`,(function(e){YW(this,{type:`String Iterator`,string:HW(e),index:0})}),(function(){var e,t=XW(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=JW(n,r),t.index+=e.length,{value:e,done:!1})}));var ZW=function(e,t,n){for(var r in t)KU(e,r,t[r],n);return e},QW=CV.Array,$W=Math.max,eG=JU.f,tG=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nG={f:function(e){return tG&&MV(e)==`Window`?function(e){try{return eG(e)}catch{return function(e,t,n){for(var r,i,a,o,s=JH(e),c=GH(void 0,s),l=GH(s,s),u=QW($W(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=IH(i))in r?zH.f(r,o,wU(0,a)):r[o]=a;return u.length=d,u}(tG)}}(e):eG(RV(e))}},rG=kV((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),iG=Object.isExtensible,aG=kV((function(){iG(1)}))||rG?function(e){return!!mH(e)&&(!rG||MV(e)!=`ArrayBuffer`)&&(!iG||iG(e))}:iG,oG=!kV((function(){return Object.isExtensible(Object.preventExtensions({}))})),sG=yV((function(e){var t=zH.f,n=!1,r=XV(`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=JU.f,t=OV([].splice),i={};i[r]=1,e(i).length&&(JU.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},sW({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:nG.f}))},fastKey:function(e,t){if(!mH(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!KV(e,r)){if(!aG(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!KV(e,r)){if(!aG(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return oG&&n&&aG(e)&&!KV(e,r)&&a(e),e}};ZH[r]=!0})),cG=OV(OV.bind),lG=function(e,t){return jH(e),t===void 0?e:cG?cG(e,t):function(){return e.apply(t,arguments)}},uG=pH(`iterator`),dG=Array.prototype,fG=pH(`iterator`),pG=function(e){if(e!=null)return MH(e,fG)||MH(e,`@@iterator`)||gU[zW(e)]},mG=CV.TypeError,hG=function(e,t,n){var r,i;_H(e);try{if(!(r=MH(e,`return`))){if(t===`throw`)throw n;return n}r=wH(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return _H(r),n},gG=CV.TypeError,_G=function(e,t){this.stopped=e,this.result=t},vG=_G.prototype,yG=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=lG(t,d),g=function(e){return r&&hG(r,`normal`,e),new _G(!0,e)},_=function(e){return f?(_H(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=pG(e)))throw gG(kH(e)+` is not iterable`);if((u=i)!==void 0&&(gU.Array===u||dG[uG]===u)){for(a=0,o=JH(e);o>a;a++)if((s=_(e[a]))&&TH(vG,s))return s;return new _G(!1)}r=function(e,t){var n=arguments.length<2?pG(e):t;if(jH(n))return _H(wH(n,e));throw mG(kH(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=wH(c,r)).done;){try{s=_(l.value)}catch(e){hG(r,`throw`,e)}if(typeof s==`object`&&s&&TH(vG,s))return s}return new _G(!1)},bG=CV.TypeError,xG=function(e,t){if(TH(t,e))return e;throw bG(`Incorrect invocation`)},SG=pH(`iterator`),CG=!1;try{var wG=0,TG={next:function(){return{done:!!wG++}},return:function(){CG=!0}};TG[SG]=function(){return this},Array.from(TG,(function(){throw 2}))}catch{}var EG=Array.isArray||function(e){return MV(e)==`Array`},DG=function(){},OG=[],kG=$V(`Reflect`,`construct`),AG=/^\s*(?:class|function)\b/,jG=OV(AG.exec),MG=!AG.exec(DG),NG=function(e){if(!ZV(e))return!1;try{return kG(DG,OG,e),!0}catch{return!1}},PG=!kG||kV((function(){var e;return NG(NG.call)||!NG(Object)||!NG((function(){e=!0}))||e}))?function(e){if(!ZV(e))return!1;switch(zW(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return MG||!!jG(AG,xU(e))}:NG,FG=pH(`species`),IG=CV.Array,LG=function(e,t){return new(function(e){var t;return EG(e)&&(t=e.constructor,(PG(t)&&(t===IG||EG(t.prototype))||mH(t)&&(t=t[FG])===null)&&(t=void 0)),t===void 0?IG:t}(e))(t===0?0:t)},RG=OV([].push),zG=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=WV(c),h=FV(m),g=lG(l,u),_=JH(h),v=0,y=d||LG,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:RG(b,f)}else switch(e){case 4:return!1;case 7:RG(b,f)}return a?-1:r||i?i:b}},BG={forEach:zG(0),map:zG(1),filter:zG(2),some:zG(3),every:zG(4),find:zG(5),findIndex:zG(6),filterReject:zG(7)},VG=sG.getWeakData,HG=IU.set,UG=IU.getterFor,WG=BG.find,GG=BG.findIndex,KG=OV([].splice),qG=0,JG=function(e){return e.frozen||=new YG},YG=function(){this.entries=[]},XG=function(e,t){return WG(e.entries,(function(e){return e[0]===t}))};YG.prototype={get:function(e){var t=XG(this,e);if(t)return t[1]},has:function(e){return!!XG(this,e)},set:function(e,t){var n=XG(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=GG(this.entries,(function(t){return t[0]===e}));return~t&&KG(this.entries,t,1),!!~t}};var ZG,QG={getConstructor:function(e,t,n,r){var i=e((function(e,i){xG(e,a),HG(e,{type:t,id:qG++,frozen:void 0}),i!=null&&yG(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=UG(t),s=function(e,t,n){var r=o(e),i=VG(_H(t),!0);return!0===i?JG(r).set(t,n):i[r.id]=n,e};return ZW(a,{delete:function(e){var t=o(this);if(!mH(e))return!1;var n=VG(e);return!0===n?JG(t).delete(e):n&&KV(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!mH(e))return!1;var n=VG(e);return!0===n?JG(t).has(e):n&&KV(n,t.id)}}),ZW(a,n?{get:function(e){var t=o(this);if(mH(e)){var n=VG(e);return!0===n?JG(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}},$G=IU.enforce,eK=!CV.ActiveXObject&&`ActiveXObject`in CV,tK=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},nK=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=CV[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=OV(s[e]);KU(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!mH(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!mH(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!mH(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(aW(e,!ZV(o)||!(i||s.forEach&&!kV((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),sG.enable();else if(aW(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=kV((function(){d.has(1)})),m=function(e,t){if(!CG)return!1;var n=!1;try{var r={};r[SG]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&kV((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){xG(e,s);var n=function(e,t,n){var r,i;return CW&&ZV(r=t.constructor)&&r!==n&&mH(i=r.prototype)&&i!==n.prototype&&CW(e,i),e}(new o,e,c);return t!=null&&yG(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,sW({global:!0,forced:c!=o},l),vW(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,tK,QG);if(CU&&eK){ZG=QG.getConstructor(tK,`WeakMap`,!0),sG.enable();var rK=nK.prototype,iK=OV(rK.delete),aK=OV(rK.has),oK=OV(rK.get),sK=OV(rK.set);ZW(rK,{delete:function(e){if(mH(e)&&!aG(e)){var t=$G(this);return t.frozen||=new ZG,iK(this,e)||t.frozen.delete(e)}return iK(this,e)},has:function(e){if(mH(e)&&!aG(e)){var t=$G(this);return t.frozen||=new ZG,aK(this,e)||t.frozen.has(e)}return aK(this,e)},get:function(e){if(mH(e)&&!aG(e)){var t=$G(this);return t.frozen||=new ZG,aK(this,e)?oK(this,e):t.frozen.get(e)}return oK(this,e)},set:function(e,t){if(mH(e)&&!aG(e)){var n=$G(this);n.frozen||=new ZG,aK(this,e)?sK(this,e,t):n.frozen.set(e,t)}else sK(this,e,t);return this}})}var cK={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},lK=xH(`span`).classList,uK=lK&&lK.constructor&&lK.constructor.prototype,dK=uK===Object.prototype?void 0:uK,fK=pH(`iterator`),pK=pH(`toStringTag`),mK=NW.values,hK=function(e,t){if(e){if(e[fK]!==mK)try{TU(e,fK,mK)}catch{e[fK]=mK}if(e[pK]||TU(e,pK,t),cK[t]){for(var n in NW)if(e[n]!==NW[n])try{TU(e,n,NW[n])}catch{e[n]=NW[n]}}}};for(var gK in cK)hK(CV[gK]&&CV[gK].prototype,gK);hK(dK,`DOMTokenList`);var _K=new WeakMap,vK={type:`list-item`,renderElem:function(e,t,n){_K.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=X.findPath(e,l);if(u[0]===0)return 1;for(;u[0]>0;){var d=H.previous(u),f=B.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];W.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return kb(`div`,{style:s},kb(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),kb(`span`,null,t))}},yK=function(e,t){return yK=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])},yK(e,t)};function bK(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}yK(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function xK(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 SK(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 CK(e){return B.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var wK=XH.includes;sW({target:`Array`,proto:!0},{includes:function(e){return wK(this,e,arguments.length>1?arguments[1]:void 0)}}),hU(`includes`);var TK,EK,DK=function(){var e=_H(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},OK=CV.RegExp,kK=kV((function(){var e=OK(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),AK=kK||kV((function(){return!OK(`a`,`y`).sticky})),jK={BROKEN_CARET:kK||kV((function(){var e=OK(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:AK,UNSUPPORTED_Y:kK},MK=CV.RegExp,NK=kV((function(){var e=MK(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),PK=CV.RegExp,FK=kV((function(){var e=PK(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),IK=IU.get,LK=HV(`native-string-replace`,String.prototype.replace),RK=RegExp.prototype.exec,zK=RK,BK=OV(``.charAt),VK=OV(``.indexOf),HK=OV(``.replace),UK=OV(``.slice),WK=(EK=/b*/g,wH(RK,TK=/a/,`a`),wH(RK,EK,`a`),TK.lastIndex!==0||EK.lastIndex!==0),GK=jK.BROKEN_CARET,KK=/()??/.exec(``)[1]!==void 0;(WK||KK||GK||NK||FK)&&(zK=function(e){var t,n,r,i,a,o,s,c=this,l=IK(c),u=HW(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=wH(zK,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=GK&&c.sticky,m=wH(DK,c),h=c.source,g=0,_=u;if(p&&(m=HK(m,`y`,``),VK(m,`g`)===-1&&(m+=`g`),_=UK(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&BK(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),KK&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),WK&&(r=c.lastIndex),i=wH(RK,p?n:c,_),p?i?(i.input=UK(i.input,g),i[0]=UK(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:WK&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),KK&&i&&i.length>1&&wH(LK,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=fU(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var qK=zK;sW({target:`RegExp`,proto:!0,forced:/./.exec!==qK},{exec:qK});var JK=function(){function e(){this.type=`list-item`,this.tag=`button`}return e.prototype.getListNode=function(e){var t=this.type;return X.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||!!X.getSelectedElems(e).some((function(t){if(B.isVoid(e,t)&&B.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)?G.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):G.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),YK=`<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>`,XK=`<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>`,ZK=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=YK,t}return bK(t,e),t}(JK),QK=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=XK,t}return bK(t,e),t}(JK),$K={key:`bulletedList`,factory:function(){return new ZK}},eq={key:`numberedList`,factory:function(){return new QK}},tq=[],nq={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=_K.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=X.findPath(t,e);if(c[0]===0)return s+1;var l=H.previous(c),u=B.node(t,l);if(!u)return 0;var d=SK(u,1)[0];if(X.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+`>`,tq.push(a);var c=function(e){var t=_K.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=X.findPath(t,e);if(c[0]===t.children.length-1)return s+1;var l=H.next(c),u=B.node(t,l);if(!u)return 0;var d=SK(u,1)[0];if(X.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+=`</`+tq.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},rq=pH(`species`),iq=BG.filter;sW({target:`Array`,proto:!0,forced:!(oH>=51||!kV((function(){var e=[];return(e.constructor={})[rq]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return iq(this,e,arguments.length>1?arguments[1]:void 0)}});var aq=Function.prototype,oq=aq.apply,sq=aq.bind,cq=aq.call,lq=typeof Reflect==`object`&&Reflect.apply||(sq?cq.bind(oq):function(){return cq.apply(oq,arguments)}),uq=(pH(`species`),RegExp.prototype),dq=qW.charAt,fq=function(e,t,n){return t+(n?dq(e,t).length:1)},pq=Math.floor,mq=OV(``.charAt),hq=OV(``.replace),gq=OV(``.slice),_q=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vq=/\$([$&'`]|\d{1,2})/g,yq=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=vq;return i!==void 0&&(i=WV(i),c=_q),hq(a,c,(function(a,c){var l;switch(mq(c,0)){case`$`:return`$`;case`&`:return e;case"`":return gq(t,0,n);case`'`:return gq(t,o);case`<`:l=i[gq(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=pq(u/10);return d===0?a:d<=s?r[d-1]===void 0?mq(c,1):r[d-1]+mq(c,1):a}l=r[u-1]}return l===void 0?``:l}))},bq=CV.TypeError,xq=function(e,t){var n=e.exec;if(ZV(n)){var r=wH(n,e,t);return r!==null&&_H(r),r}if(MV(e)===`RegExp`)return wH(qK,e,t);throw bq(`RegExp#exec called on incompatible receiver`)},Sq=pH(`replace`),Fge=Math.max,Ige=Math.min,Lge=OV([].concat),Cq=OV([].push),wq=OV(``.indexOf),Tq=OV(``.slice),Rge=`a`.replace(/./,`$0`)===`$0`,Eq=!!/./[Sq]&&/./[Sq](`a`,`$0`)===``;(function(e,t,n,r){var i=pH(e),a=!kV((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!kV((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=OV(/./[i]),c=function(e,t,n){var r=Eq?`$`:`$0`;return[function(e,n){var r=LV(this),i=e==null?void 0:MH(e,Sq);return i?wH(i,e,r,n):wH(t,HW(r),e,n)},function(e,i){var a=_H(this),o=HW(e);if(typeof i==`string`&&wq(i,r)===-1&&wq(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ZV(i);c||(i=HW(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=xq(a,o);if(f===null||(Cq(d,f),!l))break;HW(f[0])===``&&(a.lastIndex=fq(o,qH(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=HW((f=d[g])[0]),v=Fge(Ige(HH(f.index),o.length),0),y=[],b=1;b<f.length;b++)Cq(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Lge([_],y,v,o);x!==void 0&&Cq(S,x);var C=HW(lq(i,void 0,S))}else C=yq(_,o,v,y,x,i);v>=h&&(m+=Tq(o,h,v)+C,h=v+_.length)}return m+Tq(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=OV(e),c=t.exec;return c===qK||c===uq.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));KU(String.prototype,e,c[0]),KU(uq,i,c[1])}})(`replace`,0,!!kV((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Rge||Eq);var zge=CV.TypeError,Dq=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&lG(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&EG(c))l=JH(c),u=Dq(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw zge(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},Bge=Dq;function Oq(e){return e.length?e[0].tagName.toLowerCase():``}sW({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=WV(this),n=JH(t),r=LG(t,0);return r.length=Bge(r,t,t,n,0,e===void 0?1:HH(e)),r}}),hU(`flat`),sW({global:!0},{globalThis:CV}),ny&&(K.fn.append=ny),zv&&(K.fn.attr=zv),iy&&(K.fn.parent=iy);var Vge={renderElems:[vK],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(U.isExpanded(n))t(e);else{var r=X.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?G.setNodes(i,{level:o-1}):G.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(U.isCollapsed(o)){var s=X.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;G.setNodes(i,{level:l+1});return}}if(U.isExpanded(o)){var u=0,d=!1;try{for(var f=xK(CK(i)),p=f.next();!p.done;p=f.next()){var m=SK(p.value,1)[0];X.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=xK(CK(i)),g=h.next();!g.done;g=h.next()){var _=SK(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,G.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=SK(e,2),n=t[0],a=t[1],o=X.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||G.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[$K,eq],elemsToHtml:[nq],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=K(e);return(t=t.filter((function(e){return!!W.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return Oq(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=Oq(n);r===`ul`||r===`ol`;)r=Oq(n=n.parent()),t++;return t-1}(r),children:t}}}]},kq=nl((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 tl==`object`&&tl&&tl.Object===Object&&tl,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,ee=O&&O.exports===D,k=ee&&w.process,A=function(){try{return k&&k.binding&&k.binding(`util`)}catch{}}(),j=A&&A.isTypedArray;function te(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 M(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ne(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var re=Array.prototype,ie=Function.prototype,ae=Object.prototype,oe=E[`__core-js_shared__`],se=ie.toString,ce=ae.hasOwnProperty,N=function(){var e=/[^.]+$/.exec(oe&&oe.keys&&oe.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),le=ae.toString,ue=RegExp(`^`+se.call(ce).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),de=ee?E.Buffer:void 0,fe=E.Symbol,pe=E.Uint8Array,me=ae.propertyIsEnumerable,he=re.splice,ge=fe?fe.toStringTag:void 0,_e=Object.getOwnPropertySymbols,ve=de?de.isBuffer:void 0,ye=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),P=We(E,`DataView`),be=We(E,`Map`),F=We(E,`Promise`),xe=We(E,`Set`),Se=We(E,`WeakMap`),Ce=We(Object,`create`),I=Je(P),we=Je(be),L=Je(F),Te=Je(xe),Ee=Je(Se),De=fe?fe.prototype:void 0,Oe=De?De.valueOf:void 0;function ke(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 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.__data__=new je;++t<n;)this.add(e[t])}function Ne(e){var t=this.__data__=new Ae(e);this.size=t.size}function Pe(e,t){var n=Ze(e),r=!n&&Xe(e),i=!n&&!r&&Qe(e),a=!n&&!r&&!i&&rt(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&&!ce.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||qe(l,c))||s.push(l);return s}function Fe(e,t){for(var n=e.length;n--;)if(Ye(e[n][0],t))return n;return-1}function Ie(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:ge&&ge in Object(e)?function(e){var t=ce.call(e,ge),n=e[ge];try{e[ge]=void 0;var r=!0}catch{}var i=le.call(e);return r&&(t?e[ge]=n:delete e[ge]),i}(e):function(e){return le.call(e)}(e)}function Le(e){return nt(e)&&Ie(e)==i}function Re(e,t,n,r,l){return e===t||(e==null||t==null||!nt(e)&&!nt(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var v=Ze(e),x=Ze(t),S=v?a:Ke(e),C=x?a:Ke(t),w=(S=S==i?f:S)==f,T=(C=C==i?f:C)==f,E=S==C;if(E&&Qe(e)){if(!Qe(t))return!1;v=!0,w=!1}if(E&&!w)return p||=new Ne,v||rt(e)?Ve(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 pe(e),new pe(t)));case o:case s:case d:return Ye(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=M;case h:var p=1&r;if(f||=ne,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=Ve(f(e),f(t),r,i,a,l);return l.delete(e),x;case _:if(Oe)return Oe.call(e)==Oe.call(t)}return!1}(e,t,S,n,r,l,p);if(!(1&n)){var D=w&&ce.call(e,`__wrapped__`),O=T&&ce.call(t,`__wrapped__`);if(D||O){var ee=D?e.value():e,k=O?t.value():t;return p||=new Ne,l(ee,k,n,r,p)}}return E?(p||=new Ne,function(e,t,n,r,i,a){var o=1&n,s=He(e),c=s.length;if(c!=He(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:ce.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,Re,l))}function ze(e){return!(!tt(e)||function(e){return!!N&&N in e}(e))&&($e(e)?ue:x).test(Je(e))}function Be(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ae,t!==r)return ye(e);var t,n,r,i=[];for(var a in Object(e))ce.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Ve(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 Me: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(!te(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 He(e){return function(e,t,n){var r=t(e);return Ze(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,it,Ge)}function Ue(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 We(e,t){var n=function(e,t){return e?.[t]}(e,t);return ze(n)?n:void 0}ke.prototype.clear=function(){this.__data__=Ce?Ce(null):{},this.size=0},ke.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},ke.prototype.get=function(e){var t=this.__data__;if(Ce){var r=t[e];return r===n?void 0:r}return ce.call(t,e)?t[e]:void 0},ke.prototype.has=function(e){var t=this.__data__;return Ce?t[e]!==void 0:ce.call(t,e)},ke.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=Ce&&t===void 0?n:t,this},Ae.prototype.clear=function(){this.__data__=[],this.size=0},Ae.prototype.delete=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0)&&(n==t.length-1?t.pop():he.call(t,n,1),--this.size,!0)},Ae.prototype.get=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ae.prototype.has=function(e){return Fe(this.__data__,e)>-1},Ae.prototype.set=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},je.prototype.clear=function(){this.size=0,this.__data__={hash:new ke,map:new(be||Ae),string:new ke}},je.prototype.delete=function(e){var t=Ue(this,e).delete(e);return this.size-=+!!t,t},je.prototype.get=function(e){return Ue(this,e).get(e)},je.prototype.has=function(e){return Ue(this,e).has(e)},je.prototype.set=function(e,t){var n=Ue(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Me.prototype.add=Me.prototype.push=function(e){return this.__data__.set(e,n),this},Me.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.clear=function(){this.__data__=new Ae,this.size=0},Ne.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Ne.prototype.get=function(e){return this.__data__.get(e)},Ne.prototype.has=function(e){return this.__data__.has(e)},Ne.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Ae){var r=n.__data__;if(!be||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new je(r)}return n.set(e,t),this.size=n.size,this};var Ge=_e?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}(_e(e),(function(t){return me.call(e,t)})))}:function(){return[]},Ke=Ie;function qe(e,t){return!!(t??=r)&&(typeof e==`number`||S.test(e))&&e>-1&&e%1==0&&e<t}function Je(e){if(e!=null){try{return se.call(e)}catch{}try{return e+``}catch{}}return``}function Ye(e,t){return e===t||e!=e&&t!=t}(P&&Ke(new P(new ArrayBuffer(1)))!=b||be&&Ke(new be)!=u||F&&Ke(F.resolve())!=p||xe&&Ke(new xe)!=h||Se&&Ke(new Se)!=v)&&(Ke=function(e){var t=Ie(e),n=t==f?e.constructor:void 0,r=n?Je(n):``;if(r)switch(r){case I:return b;case we:return u;case L:return p;case Te:return h;case Ee:return v}return t});var Xe=Le(function(){return arguments}())?Le:function(e){return nt(e)&&ce.call(e,`callee`)&&!me.call(e,`callee`)},Ze=Array.isArray,Qe=ve||function(){return!1};function $e(e){if(!tt(e))return!1;var t=Ie(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function et(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function tt(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function nt(e){return typeof e==`object`&&!!e}var rt=j?function(e){return function(t){return e(t)}}(j):function(e){return nt(e)&&et(e.length)&&!!C[Ie(e)]};function it(e){return(t=e)!=null&&et(t.length)&&!$e(t)?Pe(e):Be(e);var t}e.exports=function(e,t){return Re(e,t)}}));MM(`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`}}),MM(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var Aq=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function jq(e){var t={exports:{}};return e(t,t.exports),t.exports}var Mq,Nq,Pq=function(e){return e&&e.Math==Math&&e},Fq=Pq(typeof globalThis==`object`&&globalThis)||Pq(typeof window==`object`&&window)||Pq(typeof self==`object`&&self)||Pq(typeof Aq==`object`&&Aq)||function(){return this}()||Function(`return this`)(),Iq=function(e){try{return!!e()}catch{return!0}},Lq=!Iq((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Rq=Function.prototype.call,zq=Rq.bind?Rq.bind(Rq):function(){return Rq.apply(Rq,arguments)},Bq={}.propertyIsEnumerable,Vq=Object.getOwnPropertyDescriptor,Hge={f:Vq&&!Bq.call({1:2},1)?function(e){var t=Vq(this,e);return!!t&&t.enumerable}:Bq},Hq=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Uq=Function.prototype,Wq=Uq.bind,Gq=Uq.call,Uge=Wq&&Wq.bind(Gq),Kq=Wq?function(e){return e&&Uge(Gq,e)}:function(e){return e&&function(){return Gq.apply(e,arguments)}},Wge=Kq({}.toString),Gge=Kq(``.slice),qq=function(e){return Gge(Wge(e),8,-1)},Jq=Fq.Object,Kge=Kq(``.split),Yq=Iq((function(){return!Jq(`z`).propertyIsEnumerable(0)}))?function(e){return qq(e)==`String`?Kge(e,``):Jq(e)}:Jq,qge=Fq.TypeError,Xq=function(e){if(e==null)throw qge(`Can't call method on `+e);return e},Zq=function(e){return Yq(Xq(e))},Qq=function(e){return typeof e==`function`},$q=function(e){return typeof e==`object`?e!==null:Qq(e)},Jge=function(e){return Qq(e)?e:void 0},eJ=function(e,t){return arguments.length<2?Jge(Fq[e]):Fq[e]&&Fq[e][t]},tJ=Kq({}.isPrototypeOf),nJ=eJ(`navigator`,`userAgent`)||``,rJ=Fq.process,iJ=Fq.Deno,aJ=rJ&&rJ.versions||iJ&&iJ.version,oJ=aJ&&aJ.v8;oJ&&(Nq=(Mq=oJ.split(`.`))[0]>0&&Mq[0]<4?1:+(Mq[0]+Mq[1])),!Nq&&nJ&&(!(Mq=nJ.match(/Edge\/(\d+)/))||Mq[1]>=74)&&(Mq=nJ.match(/Chrome\/(\d+)/))&&(Nq=+Mq[1]);var sJ=Nq,cJ=!!Object.getOwnPropertySymbols&&!Iq((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sJ&&sJ<41})),lJ=cJ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Yge=Fq.Object,uJ=lJ?function(e){return typeof e==`symbol`}:function(e){var t=eJ(`Symbol`);return Qq(t)&&tJ(t.prototype,Yge(e))},Xge=Fq.String,dJ=function(e){try{return Xge(e)}catch{return`Object`}},Zge=Fq.TypeError,fJ=function(e){if(Qq(e))return e;throw Zge(dJ(e)+` is not a function`)},pJ=function(e,t){var n=e[t];return n==null?void 0:fJ(n)},Qge=Fq.TypeError,$ge=Object.defineProperty,mJ=function(e,t){try{$ge(Fq,e,{value:t,configurable:!0,writable:!0})}catch{Fq[e]=t}return t},hJ=Fq[`__core-js_shared__`]||mJ(`__core-js_shared__`,{}),gJ=jq((function(e){(e.exports=function(e,t){return hJ[e]||(hJ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),e_e=Fq.Object,_J=function(e){return e_e(Xq(e))},t_e=Kq({}.hasOwnProperty),vJ=Object.hasOwn||function(e,t){return t_e(_J(e),t)},n_e=0,r_e=Math.random(),i_e=Kq(1 .toString),yJ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+i_e(++n_e+r_e,36)},bJ=gJ(`wks`),xJ=Fq.Symbol,SJ=xJ&&xJ.for,a_e=lJ?xJ:xJ&&xJ.withoutSetter||yJ,CJ=function(e){if(!vJ(bJ,e)||!cJ&&typeof bJ[e]!=`string`){var t=`Symbol.`+e;cJ&&vJ(xJ,e)?bJ[e]=xJ[e]:bJ[e]=lJ&&SJ?SJ(t):a_e(t)}return bJ[e]},o_e=Fq.TypeError,s_e=CJ(`toPrimitive`),wJ=function(e){var t=function(e,t){if(!$q(e)||uJ(e))return e;var n,r=pJ(e,s_e);if(r){if(t===void 0&&(t=`default`),n=zq(r,e,t),!$q(n)||uJ(n))return n;throw o_e(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Qq(n=e.toString)&&!$q(r=zq(n,e))||Qq(n=e.valueOf)&&!$q(r=zq(n,e))||t!==`string`&&Qq(n=e.toString)&&!$q(r=zq(n,e)))return r;throw Qge(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return uJ(t)?t:t+``},TJ=Fq.document,c_e=$q(TJ)&&$q(TJ.createElement),EJ=function(e){return c_e?TJ.createElement(e):{}},DJ=!Lq&&!Iq((function(){return Object.defineProperty(EJ(`div`),`a`,{get:function(){return 7}}).a!=7})),OJ=Object.getOwnPropertyDescriptor,kJ={f:Lq?OJ:function(e,t){if(e=Zq(e),t=wJ(t),DJ)try{return OJ(e,t)}catch{}if(vJ(e,t))return Hq(!zq(Hge.f,e,t),e[t])}},l_e=Fq.String,u_e=Fq.TypeError,AJ=function(e){if($q(e))return e;throw u_e(l_e(e)+` is not an object`)},d_e=Fq.TypeError,jJ=Object.defineProperty,MJ={f:Lq?jJ:function(e,t,n){if(AJ(e),t=wJ(t),AJ(n),DJ)try{return jJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw d_e(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},NJ=Lq?function(e,t,n){return MJ.f(e,t,Hq(1,n))}:function(e,t,n){return e[t]=n,e},f_e=Kq(Function.toString);Qq(hJ.inspectSource)||(hJ.inspectSource=function(e){return f_e(e)});var PJ,FJ,IJ,LJ=hJ.inspectSource,RJ=Fq.WeakMap,p_e=Qq(RJ)&&/native code/.test(LJ(RJ)),zJ=gJ(`keys`),BJ=function(e){return zJ[e]||(zJ[e]=yJ(e))},VJ={},HJ=Fq.TypeError,m_e=Fq.WeakMap;if(p_e||hJ.state){var UJ=hJ.state||=new m_e,h_e=Kq(UJ.get),WJ=Kq(UJ.has),g_e=Kq(UJ.set);PJ=function(e,t){if(WJ(UJ,e))throw new HJ(`Object already initialized`);return t.facade=e,g_e(UJ,e,t),t},FJ=function(e){return h_e(UJ,e)||{}},IJ=function(e){return WJ(UJ,e)}}else{var GJ=BJ(`state`);VJ[GJ]=!0,PJ=function(e,t){if(vJ(e,GJ))throw new HJ(`Object already initialized`);return t.facade=e,NJ(e,GJ,t),t},FJ=function(e){return vJ(e,GJ)?e[GJ]:{}},IJ=function(e){return vJ(e,GJ)}}var KJ={set:PJ,get:FJ,has:IJ,enforce:function(e){return IJ(e)?FJ(e):PJ(e,{})},getterFor:function(e){return function(t){var n;if(!$q(t)||(n=FJ(t)).type!==e)throw HJ(`Incompatible receiver, `+e+` required`);return n}}},qJ=Function.prototype,__e=Lq&&Object.getOwnPropertyDescriptor,JJ=vJ(qJ,`name`),YJ={EXISTS:JJ,PROPER:JJ&&function(){}.name===`something`,CONFIGURABLE:JJ&&(!Lq||Lq&&__e(qJ,`name`).configurable)},XJ=jq((function(e){var t=YJ.CONFIGURABLE,n=KJ.get,r=KJ.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;Qq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!vJ(a,`name`)||t&&a.name!==d)&&NJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Fq?l?e[n]=a:mJ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:NJ(e,n,a))})(Function.prototype,`toString`,(function(){return Qq(this)&&n(this).source||LJ(this)}))})),v_e=Math.ceil,y_e=Math.floor,ZJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?y_e:v_e)(t)},b_e=Math.max,x_e=Math.min,QJ=function(e,t){var n=ZJ(e);return n<0?b_e(n+t,0):x_e(n,t)},S_e=Math.min,$J=function(e){return e>0?S_e(ZJ(e),9007199254740991):0},eY=function(e){return $J(e.length)},C_e=function(e){return function(t,n,r){var i,a=Zq(t),o=eY(a),s=QJ(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),tY=Kq([].push),nY=function(e,t){var n,r=Zq(e),i=0,a=[];for(n in r)!vJ(VJ,n)&&vJ(r,n)&&tY(a,n);for(;t.length>i;)vJ(r,n=t[i++])&&(~C_e(a,n)||tY(a,n));return a},rY=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],w_e=rY.concat(`length`,`prototype`),T_e={f:Object.getOwnPropertyNames||function(e){return nY(e,w_e)}},E_e={f:Object.getOwnPropertySymbols},D_e=Kq([].concat),O_e=eJ(`Reflect`,`ownKeys`)||function(e){var t=T_e.f(AJ(e)),n=E_e.f;return n?D_e(t,n(e)):t},k_e=function(e,t){for(var n=O_e(t),r=MJ.f,i=kJ.f,a=0;a<n.length;a++){var o=n[a];vJ(e,o)||r(e,o,i(t,o))}},A_e=/#|\.prototype\./,iY=function(e,t){var n=M_e[j_e(e)];return n==P_e||n!=N_e&&(Qq(t)?Iq(t):!!t)},j_e=iY.normalize=function(e){return String(e).replace(A_e,`.`).toLowerCase()},M_e=iY.data={},N_e=iY.NATIVE=`N`,P_e=iY.POLYFILL=`P`,F_e=iY,I_e=kJ.f,aY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Fq:l?Fq[s]||mJ(s,{}):(Fq[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=I_e(n,r))&&o.value:n[r],!F_e(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;k_e(a,i)}(e.sham||i&&i.sham)&&NJ(a,`sham`,!0),XJ(n,r,a,e)}},oY={};oY[CJ(`toStringTag`)]=`z`;var sY=String(oY)===`[object z]`,L_e=CJ(`toStringTag`),R_e=Fq.Object,z_e=qq(function(){return arguments}())==`Arguments`,cY=sY?qq: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=R_e(e),L_e))==`string`?n:z_e?qq(t):(r=qq(t))==`Object`&&Qq(t.callee)?`Arguments`:r},B_e=Fq.String,lY=function(e){if(cY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return B_e(e)},V_e=/"/g,H_e=Kq(``.replace);aY({target:`String`,proto:!0,forced:Iq((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=lY(Xq(this)),r=`<a`,(r+=` name="`+H_e(lY(t),V_e,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var uY,dY=function(){var e=AJ(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},fY=Fq.RegExp,pY=Iq((function(){var e=fY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),U_e=pY||Iq((function(){return!fY(`a`,`y`).sticky})),mY={BROKEN_CARET:pY||Iq((function(){var e=fY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:U_e,UNSUPPORTED_Y:pY},W_e=Object.keys||function(e){return nY(e,rY)},G_e=Lq?Object.defineProperties:function(e,t){AJ(e);for(var n,r=Zq(t),i=W_e(t),a=i.length,o=0;a>o;)MJ.f(e,n=i[o++],r[n]);return e},K_e=eJ(`document`,`documentElement`),hY=BJ(`IE_PROTO`),gY=function(){},_Y=function(e){return`<script>`+e+`<\/script>`},vY=function(e){e.write(_Y(``)),e.close();var t=e.parentWindow.Object;return e=null,t},yY=function(){try{uY=new ActiveXObject(`htmlfile`)}catch{}var e,t;yY=typeof document<`u`?document.domain&&uY?vY(uY):((t=EJ(`iframe`)).style.display=`none`,K_e.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(_Y(`document.F=Object`)),e.close(),e.F):vY(uY);for(var n=rY.length;n--;)delete yY.prototype[rY[n]];return yY()};VJ[hY]=!0;var bY,xY,SY=Object.create||function(e,t){var n;return e===null?n=yY():(gY.prototype=AJ(e),n=new gY,gY.prototype=null,n[hY]=e),t===void 0?n:G_e(n,t)},q_e=Fq.RegExp,J_e=Iq((function(){var e=q_e(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),Y_e=Fq.RegExp,X_e=Iq((function(){var e=Y_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Z_e=KJ.get,Q_e=gJ(`native-string-replace`,String.prototype.replace),CY=RegExp.prototype.exec,wY=CY,$_e=Kq(``.charAt),eve=Kq(``.indexOf),tve=Kq(``.replace),TY=Kq(``.slice),EY=(xY=/b*/g,zq(CY,bY=/a/,`a`),zq(CY,xY,`a`),bY.lastIndex!==0||xY.lastIndex!==0),DY=mY.BROKEN_CARET,OY=/()??/.exec(``)[1]!==void 0;(EY||OY||DY||J_e||X_e)&&(wY=function(e){var t,n,r,i,a,o,s,c=this,l=Z_e(c),u=lY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=zq(wY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=DY&&c.sticky,m=zq(dY,c),h=c.source,g=0,_=u;if(p&&(m=tve(m,`y`,``),eve(m,`g`)===-1&&(m+=`g`),_=TY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&$_e(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),OY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),EY&&(r=c.lastIndex),i=zq(CY,p?n:c,_),p?i?(i.input=TY(i.input,g),i[0]=TY(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:EY&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),OY&&i&&i.length>1&&zq(Q_e,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=SY(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var kY=wY;aY({target:`RegExp`,proto:!0,forced:/./.exec!==kY},{exec:kY});var AY=Array.isArray||function(e){return qq(e)==`Array`},jY=function(){},nve=[],MY=eJ(`Reflect`,`construct`),NY=/^\s*(?:class|function)\b/,rve=Kq(NY.exec),ive=!NY.exec(jY),PY=function(e){if(!Qq(e))return!1;try{return MY(jY,nve,e),!0}catch{return!1}},FY=!MY||Iq((function(){var e;return PY(PY.call)||!PY(Object)||!PY((function(){e=!0}))||e}))?function(e){if(!Qq(e))return!1;switch(cY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return ive||!!rve(NY,LJ(e))}:PY,IY=function(e,t,n){var r=wJ(t);r in e?MJ.f(e,r,Hq(0,n)):e[r]=n},ave=CJ(`species`),LY=function(e){return sJ>=51||!Iq((function(){var t=[];return(t.constructor={})[ave]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},ove=Kq([].slice),sve=LY(`slice`),cve=CJ(`species`),RY=Fq.Array,lve=Math.max;function zY(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 BY(e){var t=e.selection;if(t==null)return!1;var n=zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=zY(n,2)[1],i=B.start(e,r);if(A_.equals(t.anchor,i))return!0}return!1}function VY(e,t){var n,r,i=B.nodes(e,{at:t,match:function(e){return X.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}aY({target:`Array`,proto:!0,forced:!sve},{slice:function(e,t){var n,r,i,a=Zq(this),o=eY(a),s=QJ(e,o),c=QJ(t===void 0?o:t,o);if(AY(a)&&(n=a.constructor,(FY(n)&&(n===RY||AY(n.prototype))||$q(n)&&(n=n[cve])===null)&&(n=void 0),n===RY||n===void 0))return ove(a,s,c);for(r=new(n===void 0?RY:n)(lve(c-s,0)),i=0;s<c;s++,i++)s in a&&IY(r,i,a[s]);return r.length=i,r}});var HY=Kq(Kq.bind),uve=CJ(`species`),UY=Fq.Array,dve=function(e,t){return new(function(e){var t;return AY(e)&&(t=e.constructor,(FY(t)&&(t===UY||AY(t.prototype))||$q(t)&&(t=t[uve])===null)&&(t=void 0)),t===void 0?UY:t}(e))(t===0?0:t)},WY=Kq([].push),GY=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=_J(c),h=Yq(m),g=function(e,t){return fJ(e),t===void 0?e:HY?HY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=eY(h),v=0,y=d||dve,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:WY(b,f)}else switch(e){case 4:return!1;case 7:WY(b,f)}return a?-1:r||i?i:b}},KY={forEach:GY(0),map:GY(1),filter:GY(2),some:GY(3),every:GY(4),find:GY(5),findIndex:GY(6),filterReject:GY(7)},fve=KY.map;aY({target:`Array`,proto:!0,forced:!LY(`map`)},{map:function(e){return fve(this,e,arguments.length>1?arguments[1]:void 0)}});var pve=sY?{}.toString:function(){return`[object `+cY(this)+`]`};function qY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function JY(e){return qY(e).every((function(e){return!!e.isHeader}))}sY||XJ(Object.prototype,`toString`,pve,{unsafe:!0});var mve=YJ.PROPER,YY=RegExp.prototype,XY=YY.toString,hve=Kq(dY),gve=Iq((function(){return XY.call({source:`a`,flags:`b`})!=`/a/b`})),_ve=mve&&XY.name!=`toString`;(gve||_ve)&&XJ(RegExp.prototype,`toString`,(function(){var e=AJ(this),t=lY(e.source),n=e.flags;return`/`+t+`/`+lY(n===void 0&&tJ(YY,e)&&!(`flags`in YY)?hve(e):n)}),{unsafe:!0});var ZY=CJ(`unscopables`),QY=Array.prototype;QY[ZY]??MJ.f(QY,ZY,{configurable:!0,value:SY(null)});var vve=KY.find,$Y=!0;`find`in[]&&[,].find((function(){$Y=!1})),aY({target:`Array`,proto:!0,forced:$Y},{find:function(e){return vve(this,e,arguments.length>1?arguments[1]:void 0)}}),QY[ZY].find=!0;var eX=Function.prototype,tX=eX.apply,nX=eX.bind,rX=eX.call,iX=typeof Reflect==`object`&&Reflect.apply||(nX?rX.bind(tX):function(){return rX.apply(tX,arguments)}),yve=CJ(`species`),aX=RegExp.prototype,oX=function(e,t,n,r){var i=CJ(e),a=!Iq((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Iq((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[yve]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Kq(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Kq(e),c=t.exec;return c===kY||c===aX.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));XJ(String.prototype,e,c[0]),XJ(aX,i,c[1])}r&&NJ(aX[i],`sham`,!0)},bve=CJ(`match`),xve=Fq.TypeError,Sve=CJ(`species`),Cve=Kq(``.charAt),sX=Kq(``.charCodeAt),wve=Kq(``.slice),Tve=function(e){return function(t,n){var r,i,a=lY(Xq(t)),o=ZJ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=sX(a,o))<55296||r>56319||o+1===s||(i=sX(a,o+1))<56320||i>57343?e?Cve(a,o):r:e?wve(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),cX=function(e,t,n){return t+(n?Tve(e,t).length:1)},Eve=Fq.Array,Dve=Math.max,lX=function(e,t,n){for(var r=eY(e),i=QJ(t,r),a=QJ(n===void 0?r:n,r),o=Eve(Dve(a-i,0)),s=0;i<a;i++,s++)IY(o,s,e[i]);return o.length=s,o},Ove=Fq.TypeError,uX=function(e,t){var n=e.exec;if(Qq(n)){var r=zq(n,e,t);return r!==null&&AJ(r),r}if(qq(e)===`RegExp`)return zq(kY,e,t);throw Ove(`RegExp#exec called on incompatible receiver`)},dX=mY.UNSUPPORTED_Y,kve=Math.min,fX=[].push,Ave=Kq(/./.exec),pX=Kq(fX),mX=Kq(``.slice);oX(`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=lY(Xq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!$q(r=e)||!((i=r[bve])===void 0?qq(r)==`RegExp`:i))return zq(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=zq(kY,p,a))&&!((c=p.lastIndex)>f&&(pX(u,mX(a,f,s.index)),s.length>1&&s.index<a.length&&iX(fX,u,lX(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Ave(p,``)||pX(u,``):pX(u,mX(a,f)),u.length>o?lX(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:zq(t,this,e,n)}:t,[function(t,n){var i=Xq(this),a=t==null?void 0:pJ(t,e);return a?zq(a,t,i,n):zq(r,lY(i),t,n)},function(e,i){var a=AJ(this),o=lY(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=AJ(e).constructor;return r===void 0||(n=AJ(r)[Sve])==null?t:function(e){if(FY(e))return e;throw xve(dJ(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(dX?`g`:`y`),d=new c(dX?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return uX(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=dX?0:m;var g,_=uX(d,dX?mX(o,m):o);if(_===null||(g=kve($J(d.lastIndex+(dX?m:0)),o.length))===p)m=cX(o,m,l);else{if(pX(h,mX(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(pX(h,_[v]),h.length===f)return h;m=p=g}}return pX(h,mX(o,p)),h}]}),!!Iq((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`})),dX);var hX=`
|
|
|
\v\f\r \xA0 \u2028\u2029`,gX=Kq(``.replace),_X=`[`+hX+`]`,jve=RegExp(`^`+_X+_X+`*`),Mve=RegExp(_X+_X+`*$`),vX=function(e){return function(t){var n=lY(Xq(t));return 1&e&&(n=gX(n,jve,``)),2&e&&(n=gX(n,Mve,``)),n}},Nve={start:vX(1),end:vX(2),trim:vX(3)},Pve=YJ.PROPER,Fve=Nve.trim;function yX(e){return e.length?e[0].tagName.toLowerCase():``}aY({target:`String`,proto:!0,forced:function(e){return Iq((function(){return!!hX[e]()||`
`[e]()!==`
`||Pve&&hX[e].name!==e}))}(`trim`)},{trim:function(){return Fve(this)}}),aY({global:!0},{globalThis:Fq}),ny&&(K.fn.append=ny),Uv&&(K.fn.on=Uv),py&&(K.fn.focus=py),zv&&(K.fn.attr=zv),Hv&&(K.fn.val=Hv),$v&&(K.fn.html=$v),Vv&&(K.fn.dataset=Vv),Iv&&(K.fn.addClass=Iv),Lv&&(K.fn.removeClass=Lv),sy&&(K.fn.children=sy),Zv&&(K.fn.each=Zv),oy&&(K.fn.find=oy);var bX=!1,xX=0,SX=0,CX=null,wX=null,TX=K(`body`);function EX(e){bX=!1,wX=null,CX=null,TX.off(`mousemove`,DX),TX.off(`mouseup`,EX)}TX.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(),bX=!0,xX=e.clientX,SX=t.getBoundingClientRect().width,TX.on(`mousemove`,DX),TX.on(`mouseup`,EX))}));var DX=Xy((function(e){if(bX&&wX!=null&&CX!=null){e.preventDefault();var t=e.clientX,n=SX+(t-xX);(n=Math.floor(100*n)/100)<30&&(n=30),G.setNodes(wX,{width:n.toString()},{at:CX})}}),100),Ive={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||U.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=B.start(e,a),s=B.end(e,a),c=A_.compare(r,s)<=0&&A_.compare(r,o)>=0,l=A_.compare(i,s)<=0&&A_.compare(i,o)>=0;return!!(c&&l&&H.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return kb(`div`,{className:`table-container`,"data-selected":X.isNodeSelected(n,e),on:{mousedown:function(t){if(t.target.tagName===`DIV`&&t.preventDefault(),!n.isDisabled()){var r=X.findPath(n,e),i=B.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},kb(`table`,{width:a,contentEditable:r},kb(`colgroup`,null,qY(e).map((function(e){var t=e.width;return kb(`col`,{width:t===void 0?`auto`:t})}))),kb(`tbody`,null,t)))}},Lve={type:`table-row`,renderElem:function(e,t,n){return kb(`tr`,null,t)}},Rve={type:`table-cell`,renderElem:function(e,t,n){var r=function(e,t){var n=X.getParentNode(e,t);if(n==null)return!1;var r=X.getParentNode(e,n);return r!=null&&qY(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?kb(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:Xy((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;bX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,wX=n,CX=X.findPath(n,e)):bX||(r.style.cursor=`auto`,wX=null,CX=null))}}),100)}},t):kb(`td`,{colSpan:o,rowSpan:c},t)}},zve={selector:`table`,preParseHtml:function(e){var t=K(e);if(yX(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]}},Bve=KY.filter;aY({target:`Array`,proto:!0,forced:!LY(`filter`)},{filter:function(e){return Bve(this,e,arguments.length>1?arguments[1]:void 0)}});var Vve=Math.floor,OX=Kq(``.charAt),Hve=Kq(``.replace),kX=Kq(``.slice),Uve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Wve=/\$([$&'`]|\d{1,2})/g,Gve=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Wve;return i!==void 0&&(i=_J(i),c=Uve),Hve(a,c,(function(a,c){var l;switch(OX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return kX(t,0,n);case`'`:return kX(t,o);case`<`:l=i[kX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Vve(u/10);return d===0?a:d<=s?r[d-1]===void 0?OX(c,1):r[d-1]+OX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},AX=CJ(`replace`),Kve=Math.max,qve=Math.min,Jve=Kq([].concat),jX=Kq([].push),MX=Kq(``.indexOf),NX=Kq(``.slice),Yve=`a`.replace(/./,`$0`)===`$0`,PX=!!/./[AX]&&/./[AX](`a`,`$0`)===``;oX(`replace`,(function(e,t,n){var r=PX?`$`:`$0`;return[function(e,n){var r=Xq(this),i=e==null?void 0:pJ(e,AX);return i?zq(i,e,r,n):zq(t,lY(r),e,n)},function(e,i){var a=AJ(this),o=lY(e);if(typeof i==`string`&&MX(i,r)===-1&&MX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=Qq(i);c||(i=lY(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=uX(a,o);if(f===null||(jX(d,f),!l))break;lY(f[0])===``&&(a.lastIndex=cX(o,$J(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=lY((f=d[g])[0]),v=Kve(qve(ZJ(f.index),o.length),0),y=[],b=1;b<f.length;b++)jX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Jve([_],y,v,o);x!==void 0&&jX(S,x);var C=lY(iX(i,void 0,S))}else C=Gve(_,o,v,y,x,i);v>=h&&(m+=NX(o,h,v)+C,h=v+_.length)}return m+NX(o,h)}]}),!!Iq((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Yve||PX);var Xve={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(e);(t=t.filter((function(e){return!!W.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:yX(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},Zve={selector:`tr:not([data-w-e-type])`,parseElemHtml:function(e,t,n){return{type:`table-row`,children:t.filter((function(e){return X.getNodeType(e)===`table-cell`}))}}},Qve={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=K(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 X.getNodeType(e)===`table-row`}))}}},$ve=function(){function e(){this.title=Z(`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||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.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=K(`<div class="w-e-panel-content-table"></div>`),r=K(`<span>0 × 0</span>`),i=K(`<table></table>`),a=0;a<10;a++){for(var o=K(`<tr></tr>`),s=0;s<10;s++){var c=K(`<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=K(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` × `+(o+1),i.children().each((function(e){K(e).children().each((function(e){var t=K(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=K(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)){X.isSelectedEmptyParagraph(e)&&G.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);G.insertNodes(e,a,{mode:`highest`})}},e}(),eye=function(){function e(){this.title=Z(`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||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){this.isDisabled(e)||G.removeNodes(e,{mode:`highest`})},e}(),tye=function(){function e(){this.title=Z(`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||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.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=H.parent(i),l=H.next(c);G.insertNodes(e,o,{at:l})}}},e}(),nye=function(){function e(){this.title=Z(`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||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-row`)},universal:!0}),1)[0],2),r=n[0],i=n[1];(X.getParentNode(e,r)?.children.length||0)<=1?G.removeNodes(e,{mode:`highest`}):G.removeNodes(e,{at:i})}},e}(),FX={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},IX=EJ(`span`).classList,LX=IX&&IX.constructor&&IX.constructor.prototype,rye=LX===Object.prototype?void 0:LX,iye=KY.forEach,RX=function(e,t){var n=[].forEach;return!!n&&Iq((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return iye(this,e,arguments.length>1?arguments[1]:void 0)},zX=function(e){if(e&&e.forEach!==RX)try{NJ(e,`forEach`,RX)}catch{e.forEach=RX}};for(var BX in FX)FX[BX]&&zX(Fq[BX]&&Fq[BX].prototype);zX(rye);var aye=function(){function e(){this.title=Z(`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||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.getParentNode(e,r);if(a!=null){var o=X.getParentNode(e,a);o!=null&&(o.children||[]).forEach((function(t,n){z.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&kq(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&JY(o)&&(a.isHeader=!0),G.insertNodes(e,a,{at:r})}}))}))}}},e}(),oye=function(){function e(){this.title=Z(`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||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=zY(zY(B.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)},universal:!0}),1)[0],2),r=n[0],i=n[1],a=X.getParentNode(e,r),o=a?.children.length||0;if(!a||o<=1)G.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){z.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&kq(n.slice(-1),i.slice(-1))&&G.removeNodes(e,{at:n})}))}))}}},e}(),sye=function(){function e(){this.title=Z(`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=X.getSelectedNodeByType(e,`table`);return t!=null&&JY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=!t,r=X.getSelectedNodeByType(e,`table`);r!=null&&qY(r).forEach((function(t){return G.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),cye=function(){function e(){this.title=Z(`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=X.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||!U.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};G.setNodes(e,n,{mode:`highest`})}},e}(),lye={renderElems:[Ive,Lve,Rve],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:[zve],parseElemsHtml:[Xve,Zve,Qve],menus:[{key:`insertTable`,factory:function(){return new $ve}},{key:`deleteTable`,factory:function(){return new eye}},{key:`insertTableRow`,factory:function(){return new tye}},{key:`deleteTableRow`,factory:function(){return new nye}},{key:`insertTableCol`,factory:function(){return new aye}},{key:`deleteTableCol`,factory:function(){return new oye}},{key:`tableHeader`,factory:function(){return new sye}},{key:`tableFullWidth`,factory:function(){return new cye}}],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(){X.getSelectedNodeByType(c,`table`)==null?t():c.insertText(`
|
|
|
`)},c.deleteBackward=function(e){if(!BY(c)){var t=c.selection;if(t){var r=B.before(c,t);if(r){var i=VY(c,r),a=VY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(X.getSelectedNodeByType(c,`table`)){var t=B.above(e);X.checkNodeType(t[0],`table-cell`)&&G.select(e,t[1]);var n=B.next(e);if(n)n[0]&&n[0].text&&(n=B.above(e,{at:n[1]})??n),G.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();G.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){BY(c)||r(e)},c.normalizeNode=function(e){var t=zY(e,2),n=t[0],r=t[1];if(X.getNodeType(n)!==`table`)return i([n,r]);if(X.isLastNode(c,n)){var a=X.genEmptyParagraph();G.insertNodes(c,a,{at:[r[0]+1]})}},c.insertData=function(e){if(X.getSelectedNodeByType(c,`table`)!=null){var t=e.getData(`text/plain`);t===`
|
|
|
`||/<img[^>]+>/.test(e.getData(`text/html`))?a(e):B.insertText(c,t)}else a(e)},c.selectAll=function(){var e=c.selection;if(e!=null){var t=X.getSelectedNodeByType(c,`table-cell`);if(t!=null){var n=e.anchor,r=e.focus;if(H.equals(n.path.slice(0,3),r.path.slice(0,3)))if(V.string(t).length!==0){var i=X.findPath(c,t),a={anchor:B.start(c,i),focus:B.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};MM(`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`}}),MM(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var VX=function(){return VX=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},VX.apply(this,arguments)};function HX(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 UX(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 WX(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 uye(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 GX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function KX(e){var t={exports:{}};return e(t,t.exports),t.exports}var qX,JX,YX=function(e){return e&&e.Math==Math&&e},Q=YX(typeof globalThis==`object`&&globalThis)||YX(typeof window==`object`&&window)||YX(typeof self==`object`&&self)||YX(typeof GX==`object`&&GX)||function(){return this}()||Function(`return this`)(),XX=function(e){try{return!!e()}catch{return!0}},ZX=!XX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),QX=Function.prototype.call,$X=QX.bind?QX.bind(QX):function(){return QX.apply(QX,arguments)},eZ={}.propertyIsEnumerable,tZ=Object.getOwnPropertyDescriptor,dye={f:tZ&&!eZ.call({1:2},1)?function(e){var t=tZ(this,e);return!!t&&t.enumerable}:eZ},nZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},rZ=Function.prototype,iZ=rZ.bind,aZ=rZ.call,fye=iZ&&iZ.bind(aZ),oZ=iZ?function(e){return e&&fye(aZ,e)}:function(e){return e&&function(){return aZ.apply(e,arguments)}},pye=oZ({}.toString),mye=oZ(``.slice),sZ=function(e){return mye(pye(e),8,-1)},cZ=Q.Object,hye=oZ(``.split),lZ=XX((function(){return!cZ(`z`).propertyIsEnumerable(0)}))?function(e){return sZ(e)==`String`?hye(e,``):cZ(e)}:cZ,gye=Q.TypeError,uZ=function(e){if(e==null)throw gye(`Can't call method on `+e);return e},dZ=function(e){return lZ(uZ(e))},fZ=function(e){return typeof e==`function`},pZ=function(e){return typeof e==`object`?e!==null:fZ(e)},_ye=function(e){return fZ(e)?e:void 0},mZ=function(e,t){return arguments.length<2?_ye(Q[e]):Q[e]&&Q[e][t]},hZ=oZ({}.isPrototypeOf),gZ=mZ(`navigator`,`userAgent`)||``,_Z=Q.process,vZ=Q.Deno,yZ=_Z&&_Z.versions||vZ&&vZ.version,bZ=yZ&&yZ.v8;bZ&&(JX=(qX=bZ.split(`.`))[0]>0&&qX[0]<4?1:+(qX[0]+qX[1])),!JX&&gZ&&(!(qX=gZ.match(/Edge\/(\d+)/))||qX[1]>=74)&&(qX=gZ.match(/Chrome\/(\d+)/))&&(JX=+qX[1]);var xZ=JX,SZ=!!Object.getOwnPropertySymbols&&!XX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&xZ&&xZ<41})),CZ=SZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,vye=Q.Object,wZ=CZ?function(e){return typeof e==`symbol`}:function(e){var t=mZ(`Symbol`);return fZ(t)&&hZ(t.prototype,vye(e))},yye=Q.String,TZ=function(e){try{return yye(e)}catch{return`Object`}},bye=Q.TypeError,EZ=function(e){if(fZ(e))return e;throw bye(TZ(e)+` is not a function`)},DZ=function(e,t){var n=e[t];return n==null?void 0:EZ(n)},xye=Q.TypeError,Sye=Object.defineProperty,OZ=function(e,t){try{Sye(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},kZ=Q[`__core-js_shared__`]||OZ(`__core-js_shared__`,{}),AZ=KX((function(e){(e.exports=function(e,t){return kZ[e]||(kZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Cye=Q.Object,jZ=function(e){return Cye(uZ(e))},wye=oZ({}.hasOwnProperty),MZ=Object.hasOwn||function(e,t){return wye(jZ(e),t)},Tye=0,Eye=Math.random(),Dye=oZ(1 .toString),NZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Dye(++Tye+Eye,36)},PZ=AZ(`wks`),FZ=Q.Symbol,IZ=FZ&&FZ.for,Oye=CZ?FZ:FZ&&FZ.withoutSetter||NZ,LZ=function(e){if(!MZ(PZ,e)||!SZ&&typeof PZ[e]!=`string`){var t=`Symbol.`+e;SZ&&MZ(FZ,e)?PZ[e]=FZ[e]:PZ[e]=CZ&&IZ?IZ(t):Oye(t)}return PZ[e]},kye=Q.TypeError,Aye=LZ(`toPrimitive`),RZ=function(e){var t=function(e,t){if(!pZ(e)||wZ(e))return e;var n,r=DZ(e,Aye);if(r){if(t===void 0&&(t=`default`),n=$X(r,e,t),!pZ(n)||wZ(n))return n;throw kye(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&fZ(n=e.toString)&&!pZ(r=$X(n,e))||fZ(n=e.valueOf)&&!pZ(r=$X(n,e))||t!==`string`&&fZ(n=e.toString)&&!pZ(r=$X(n,e)))return r;throw xye(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return wZ(t)?t:t+``},zZ=Q.document,jye=pZ(zZ)&&pZ(zZ.createElement),BZ=function(e){return jye?zZ.createElement(e):{}},VZ=!ZX&&!XX((function(){return Object.defineProperty(BZ(`div`),`a`,{get:function(){return 7}}).a!=7})),HZ=Object.getOwnPropertyDescriptor,UZ={f:ZX?HZ:function(e,t){if(e=dZ(e),t=RZ(t),VZ)try{return HZ(e,t)}catch{}if(MZ(e,t))return nZ(!$X(dye.f,e,t),e[t])}},Mye=Q.String,Nye=Q.TypeError,WZ=function(e){if(pZ(e))return e;throw Nye(Mye(e)+` is not an object`)},Pye=Q.TypeError,GZ=Object.defineProperty,KZ={f:ZX?GZ:function(e,t,n){if(WZ(e),t=RZ(t),WZ(n),VZ)try{return GZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Pye(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},qZ=ZX?function(e,t,n){return KZ.f(e,t,nZ(1,n))}:function(e,t,n){return e[t]=n,e},Fye=oZ(Function.toString);fZ(kZ.inspectSource)||(kZ.inspectSource=function(e){return Fye(e)});var JZ,YZ,XZ,ZZ=kZ.inspectSource,QZ=Q.WeakMap,$Z=fZ(QZ)&&/native code/.test(ZZ(QZ)),eQ=AZ(`keys`),tQ=function(e){return eQ[e]||(eQ[e]=NZ(e))},nQ={},rQ=Q.TypeError,Iye=Q.WeakMap;if($Z||kZ.state){var iQ=kZ.state||=new Iye,Lye=oZ(iQ.get),aQ=oZ(iQ.has),Rye=oZ(iQ.set);JZ=function(e,t){if(aQ(iQ,e))throw new rQ(`Object already initialized`);return t.facade=e,Rye(iQ,e,t),t},YZ=function(e){return Lye(iQ,e)||{}},XZ=function(e){return aQ(iQ,e)}}else{var oQ=tQ(`state`);nQ[oQ]=!0,JZ=function(e,t){if(MZ(e,oQ))throw new rQ(`Object already initialized`);return t.facade=e,qZ(e,oQ,t),t},YZ=function(e){return MZ(e,oQ)?e[oQ]:{}},XZ=function(e){return MZ(e,oQ)}}var sQ={set:JZ,get:YZ,has:XZ,enforce:function(e){return XZ(e)?YZ(e):JZ(e,{})},getterFor:function(e){return function(t){var n;if(!pZ(t)||(n=YZ(t)).type!==e)throw rQ(`Incompatible receiver, `+e+` required`);return n}}},cQ=Function.prototype,zye=ZX&&Object.getOwnPropertyDescriptor,lQ=MZ(cQ,`name`),uQ={EXISTS:lQ,PROPER:lQ&&function(){}.name===`something`,CONFIGURABLE:lQ&&(!ZX||ZX&&zye(cQ,`name`).configurable)},dQ=KX((function(e){var t=uQ.CONFIGURABLE,n=sQ.get,r=sQ.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;fZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!MZ(a,`name`)||t&&a.name!==d)&&qZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:OZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:qZ(e,n,a))})(Function.prototype,`toString`,(function(){return fZ(this)&&n(this).source||ZZ(this)}))})),Bye=Math.ceil,Vye=Math.floor,fQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?Vye:Bye)(t)},Hye=Math.max,Uye=Math.min,pQ=function(e,t){var n=fQ(e);return n<0?Hye(n+t,0):Uye(n,t)},Wye=Math.min,mQ=function(e){return e>0?Wye(fQ(e),9007199254740991):0},hQ=function(e){return mQ(e.length)},gQ=function(e){return function(t,n,r){var i,a=dZ(t),o=hQ(a),s=pQ(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}},_Q={includes:gQ(!0),indexOf:gQ(!1)},Gye=_Q.indexOf,vQ=oZ([].push),yQ=function(e,t){var n,r=dZ(e),i=0,a=[];for(n in r)!MZ(nQ,n)&&MZ(r,n)&&vQ(a,n);for(;t.length>i;)MZ(r,n=t[i++])&&(~Gye(a,n)||vQ(a,n));return a},bQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Kye=bQ.concat(`length`,`prototype`),xQ={f:Object.getOwnPropertyNames||function(e){return yQ(e,Kye)}},qye={f:Object.getOwnPropertySymbols},Jye=oZ([].concat),Yye=mZ(`Reflect`,`ownKeys`)||function(e){var t=xQ.f(WZ(e)),n=qye.f;return n?Jye(t,n(e)):t},Xye=function(e,t){for(var n=Yye(t),r=KZ.f,i=UZ.f,a=0;a<n.length;a++){var o=n[a];MZ(e,o)||r(e,o,i(t,o))}},Zye=/#|\.prototype\./,SQ=function(e,t){var n=$ye[Qye(e)];return n==tbe||n!=ebe&&(fZ(t)?XX(t):!!t)},Qye=SQ.normalize=function(e){return String(e).replace(Zye,`.`).toLowerCase()},$ye=SQ.data={},ebe=SQ.NATIVE=`N`,tbe=SQ.POLYFILL=`P`,CQ=SQ,nbe=UZ.f,wQ=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]||OZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=nbe(n,r))&&o.value:n[r],!CQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;Xye(a,i)}(e.sham||i&&i.sham)&&qZ(a,`sham`,!0),dQ(n,r,a,e)}},TQ={};TQ[LZ(`toStringTag`)]=`z`;var EQ=String(TQ)===`[object z]`,rbe=LZ(`toStringTag`),ibe=Q.Object,abe=sZ(function(){return arguments}())==`Arguments`,DQ=EQ?sZ: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=ibe(e),rbe))==`string`?n:abe?sZ(t):(r=sZ(t))==`Object`&&fZ(t.callee)?`Arguments`:r},obe=Q.String,OQ=function(e){if(DQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return obe(e)},kQ=`
|
|
|
\v\f\r \xA0 \u2028\u2029`,AQ=oZ(``.replace),jQ=`[`+kQ+`]`,sbe=RegExp(`^`+jQ+jQ+`*`),cbe=RegExp(jQ+jQ+`*$`),MQ=function(e){return function(t){var n=OQ(uZ(t));return 1&e&&(n=AQ(n,sbe,``)),2&e&&(n=AQ(n,cbe,``)),n}},lbe={start:MQ(1),end:MQ(2),trim:MQ(3)},ube=uQ.PROPER,dbe=lbe.trim;function NQ(e){return e.length?e[0].tagName.toLowerCase():``}function PQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=K(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}wQ({target:`String`,proto:!0,forced:XX((function(){return!!kQ.trim()||ube&&kQ.trim.name!==`trim`}))},{trim:function(){return dbe(this)}}),wQ({global:!0},{globalThis:Q}),ny&&(K.fn.append=ny),Uv&&(K.fn.on=Uv),py&&(K.fn.focus=py),zv&&(K.fn.attr=zv),Hv&&(K.fn.val=Hv),$v&&(K.fn.html=$v),iy&&(K.fn.parent=iy),Rv&&(K.fn.hasClass=Rv),ly&&(K.fn.empty=ly);var FQ,fbe={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=X.isNodeSelected(n,e);if(o.trim().indexOf(`<iframe `)===0)r=kb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:PQ(o,u,f)});else{var m=kb(`video`,{poster:c,controls:!0},kb(`source`,{src:o,type:`video/mp4`}),`Sorry, your browser doesn't support embedded videos.
|
|
|
抱歉,浏览器不支持 video 视频`);u!==`auto`&&(m.data.width=u),f!==`auto`&&(m.data.height=f),r=kb(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return lb(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},pbe={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>
|
|
|
`;return i.trim().indexOf(`<iframe `)===0?d+=PQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
|
|
|
</div>`}},mbe=Object.keys||function(e){return yQ(e,bQ)},hbe=ZX?Object.defineProperties:function(e,t){WZ(e);for(var n,r=dZ(t),i=mbe(t),a=i.length,o=0;a>o;)KZ.f(e,n=i[o++],r[n]);return e},IQ=mZ(`document`,`documentElement`),LQ=tQ(`IE_PROTO`),RQ=function(){},zQ=function(e){return`<script>`+e+`<\/script>`},BQ=function(e){e.write(zQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},VQ=function(){try{FQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;VQ=typeof document<`u`?document.domain&&FQ?BQ(FQ):((t=BZ(`iframe`)).style.display=`none`,IQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(zQ(`document.F=Object`)),e.close(),e.F):BQ(FQ);for(var n=bQ.length;n--;)delete VQ.prototype[bQ[n]];return VQ()};nQ[LQ]=!0;var HQ=Object.create||function(e,t){var n;return e===null?n=VQ():(RQ.prototype=WZ(e),n=new RQ,RQ.prototype=null,n[LQ]=e),t===void 0?n:hbe(n,t)},UQ=LZ(`unscopables`),WQ=Array.prototype;WQ[UQ]??KZ.f(WQ,UQ,{configurable:!0,value:HQ(null)});var GQ=function(e){WQ[UQ][e]=!0},gbe=_Q.includes;wQ({target:`Array`,proto:!0},{includes:function(e){return gbe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`includes`);var _be={selector:`iframe,video,p`,preParseHtml:function(e){var t=K(e),n=t;if(NQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=K(i))}}var o=NQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=K(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},KQ=oZ(oZ.bind),qQ=function(e,t){return EZ(e),t===void 0?e:KQ?KQ(e,t):function(){return e.apply(t,arguments)}},JQ=Array.isArray||function(e){return sZ(e)==`Array`},YQ=function(){},vbe=[],XQ=mZ(`Reflect`,`construct`),ZQ=/^\s*(?:class|function)\b/,ybe=oZ(ZQ.exec),bbe=!ZQ.exec(YQ),QQ=function(e){if(!fZ(e))return!1;try{return XQ(YQ,vbe,e),!0}catch{return!1}},$Q=!XQ||XX((function(){var e;return QQ(QQ.call)||!QQ(Object)||!QQ((function(){e=!0}))||e}))?function(e){if(!fZ(e))return!1;switch(DQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return bbe||!!ybe(ZQ,ZZ(e))}:QQ,xbe=LZ(`species`),e$=Q.Array,Sbe=function(e,t){return new(function(e){var t;return JQ(e)&&(t=e.constructor,($Q(t)&&(t===e$||JQ(t.prototype))||pZ(t)&&(t=t[xbe])===null)&&(t=void 0)),t===void 0?e$:t}(e))(t===0?0:t)},t$=oZ([].push),n$=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=lZ(m),g=qQ(l,u),_=hQ(h),v=0,y=d||Sbe,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:t$(b,f)}else switch(e){case 4:return!1;case 7:t$(b,f)}return a?-1:r||i?i:b}},r$={forEach:n$(0),map:n$(1),filter:n$(2),some:n$(3),every:n$(4),find:n$(5),findIndex:n$(6),filterReject:n$(7)},Cbe=r$.find,i$=!0;`find`in[]&&[,].find((function(){i$=!1})),wQ({target:`Array`,proto:!0,forced:i$},{find:function(e){return Cbe(this,e,arguments.length>1?arguments[1]:void 0)}}),GQ(`find`);var wbe=EQ?{}.toString:function(){return`[object `+DQ(this)+`]`};function a$(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:``}]}}EQ||dQ(Object.prototype,`toString`,wbe,{unsafe:!0});var o$,s$,Tbe={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=K(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`,a$(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`,a$(i,a=l.attr(`poster`)||``,o,s)}},c$=function(){var e=WZ(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},l$=Q.RegExp,u$=XX((function(){var e=l$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Ebe=u$||XX((function(){return!l$(`a`,`y`).sticky})),Dbe={BROKEN_CARET:u$||XX((function(){var e=l$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Ebe,UNSUPPORTED_Y:u$},Obe=Q.RegExp,kbe=XX((function(){var e=Obe(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),Abe=Q.RegExp,jbe=XX((function(){var e=Abe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Mbe=sQ.get,Nbe=AZ(`native-string-replace`,String.prototype.replace),d$=RegExp.prototype.exec,f$=d$,Pbe=oZ(``.charAt),Fbe=oZ(``.indexOf),Ibe=oZ(``.replace),p$=oZ(``.slice),m$=(s$=/b*/g,$X(d$,o$=/a/,`a`),$X(d$,s$,`a`),o$.lastIndex!==0||s$.lastIndex!==0),h$=Dbe.BROKEN_CARET,g$=/()??/.exec(``)[1]!==void 0;(m$||g$||h$||kbe||jbe)&&(f$=function(e){var t,n,r,i,a,o,s,c=this,l=Mbe(c),u=OQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=$X(f$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=h$&&c.sticky,m=$X(c$,c),h=c.source,g=0,_=u;if(p&&(m=Ibe(m,`y`,``),Fbe(m,`g`)===-1&&(m+=`g`),_=p$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Pbe(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),g$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),m$&&(r=c.lastIndex),i=$X(d$,p?n:c,_),p?i?(i.input=p$(i.input,g),i[0]=p$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:m$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),g$&&i&&i.length>1&&$X(Nbe,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=HQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var _$=f$;wQ({target:`RegExp`,proto:!0,forced:/./.exec!==_$},{exec:_$});var v$=Function.prototype,y$=v$.apply,Lbe=v$.bind,b$=v$.call,x$=typeof Reflect==`object`&&Reflect.apply||(Lbe?b$.bind(y$):function(){return b$.apply(y$,arguments)}),S$=(LZ(`species`),RegExp.prototype),Rbe=oZ(``.charAt),C$=oZ(``.charCodeAt),zbe=oZ(``.slice),w$=function(e){return function(t,n){var r,i,a=OQ(uZ(t)),o=fQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=C$(a,o))<55296||r>56319||o+1===s||(i=C$(a,o+1))<56320||i>57343?e?Rbe(a,o):r:e?zbe(a,o,o+2):i-56320+(r-55296<<10)+65536}},T$={codeAt:w$(!1),charAt:w$(!0)},Bbe=T$.charAt,Vbe=function(e,t,n){return t+(n?Bbe(e,t).length:1)},Hbe=Math.floor,E$=oZ(``.charAt),Ube=oZ(``.replace),D$=oZ(``.slice),Wbe=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,Gbe=/\$([$&'`]|\d{1,2})/g,Kbe=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=Gbe;return i!==void 0&&(i=jZ(i),c=Wbe),Ube(a,c,(function(a,c){var l;switch(E$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return D$(t,0,n);case`'`:return D$(t,o);case`<`:l=i[D$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=Hbe(u/10);return d===0?a:d<=s?r[d-1]===void 0?E$(c,1):r[d-1]+E$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},qbe=Q.TypeError,Jbe=function(e,t){var n=e.exec;if(fZ(n)){var r=$X(n,e,t);return r!==null&&WZ(r),r}if(sZ(e)===`RegExp`)return $X(_$,e,t);throw qbe(`RegExp#exec called on incompatible receiver`)},O$=LZ(`replace`),Ybe=Math.max,Xbe=Math.min,Zbe=oZ([].concat),k$=oZ([].push),A$=oZ(``.indexOf),j$=oZ(``.slice),Qbe=`a`.replace(/./,`$0`)===`$0`,M$=!!/./[O$]&&/./[O$](`a`,`$0`)===``;function N$(e){return e===void 0&&(e=`r`),e+`-`+Py()}(function(e,t,n,r){var i=LZ(e),a=!XX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!XX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=oZ(/./[i]),c=function(e,t,n){var r=M$?`$`:`$0`;return[function(e,n){var r=uZ(this),i=e==null?void 0:DZ(e,O$);return i?$X(i,e,r,n):$X(t,OQ(r),e,n)},function(e,i){var a=WZ(this),o=OQ(e);if(typeof i==`string`&&A$(i,r)===-1&&A$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=fZ(i);c||(i=OQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=Jbe(a,o);if(f===null||(k$(d,f),!l))break;OQ(f[0])===``&&(a.lastIndex=Vbe(o,mQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=OQ((f=d[g])[0]),v=Ybe(Xbe(fQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)k$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Zbe([_],y,v,o);x!==void 0&&k$(S,x);var C=OQ(x$(i,void 0,S))}else C=Kbe(_,o,v,y,x,i);v>=h&&(m+=j$(o,h,v)+C,h=v+_.length)}return m+j$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=oZ(e),c=t.exec;return c===_$||c===S$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));dQ(String.prototype,e,c[0]),dQ(S$,i,c[1])}})(`replace`,0,!!XX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Qbe||M$);var P$=Q.Promise,F$=function(e,t,n){for(var r in t)dQ(e,r,t[r],n);return e},$be=Q.String,exe=Q.TypeError,I$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=oZ(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return WZ(n),function(e){if(typeof e==`object`||fZ(e))return e;throw exe(`Can't set `+$be(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),txe=KZ.f,L$=LZ(`toStringTag`),R$=function(e,t,n){e&&!MZ(e=n?e:e.prototype,L$)&&txe(e,L$,{configurable:!0,value:t})},z$=LZ(`species`),nxe=Q.TypeError,B$=function(e,t){if(hZ(t,e))return e;throw nxe(`Incorrect invocation`)},V$={},rxe=LZ(`iterator`),ixe=Array.prototype,axe=LZ(`iterator`),H$=function(e){if(e!=null)return DZ(e,axe)||DZ(e,`@@iterator`)||V$[DQ(e)]},oxe=Q.TypeError,U$=function(e,t,n){var r,i;WZ(e);try{if(!(r=DZ(e,`return`))){if(t===`throw`)throw n;return n}r=$X(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return WZ(r),n},sxe=Q.TypeError,W$=function(e,t){this.stopped=e,this.result=t},G$=W$.prototype,K$=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=qQ(t,d),g=function(e){return r&&U$(r,`normal`,e),new W$(!0,e)},_=function(e){return f?(WZ(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=H$(e)))throw sxe(TZ(e)+` is not iterable`);if((u=i)!==void 0&&(V$.Array===u||ixe[rxe]===u)){for(a=0,o=hQ(e);o>a;a++)if((s=_(e[a]))&&hZ(G$,s))return s;return new W$(!1)}r=function(e,t){var n=arguments.length<2?H$(e):t;if(EZ(n))return WZ($X(n,e));throw oxe(TZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=$X(c,r)).done;){try{s=_(l.value)}catch(e){U$(r,`throw`,e)}if(typeof s==`object`&&s&&hZ(G$,s))return s}return new W$(!1)},q$=LZ(`iterator`),J$=!1;try{var cxe=0,Y$={next:function(){return{done:!!cxe++}},return:function(){J$=!0}};Y$[q$]=function(){return this},Array.from(Y$,(function(){throw 2}))}catch{}var X$,Z$,Q$,$$,e1=function(e,t){if(!t&&!J$)return!1;var n=!1;try{var r={};r[q$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},lxe=Q.TypeError,uxe=LZ(`species`),t1=oZ([].slice),n1=/(?:ipad|iphone|ipod).*applewebkit/i.test(gZ),r1=sZ(Q.process)==`process`,i1=Q.setImmediate,a1=Q.clearImmediate,dxe=Q.process,o1=Q.Dispatch,fxe=Q.Function,s1=Q.MessageChannel,pxe=Q.String,c1=0,l1={};try{X$=Q.location}catch{}var u1=function(e){if(MZ(l1,e)){var t=l1[e];delete l1[e],t()}},d1=function(e){return function(){u1(e)}},f1=function(e){u1(e.data)},p1=function(e){Q.postMessage(pxe(e),X$.protocol+`//`+X$.host)};i1&&a1||(i1=function(e){var t=t1(arguments,1);return l1[++c1]=function(){x$(fZ(e)?e:fxe(e),void 0,t)},Z$(c1),c1},a1=function(e){delete l1[e]},r1?Z$=function(e){dxe.nextTick(d1(e))}:o1&&o1.now?Z$=function(e){o1.now(d1(e))}:s1&&!n1?($$=(Q$=new s1).port2,Q$.port1.onmessage=f1,Z$=qQ($$.postMessage,$$)):Q.addEventListener&&fZ(Q.postMessage)&&!Q.importScripts&&X$&&X$.protocol!==`file:`&&!XX(p1)?(Z$=p1,Q.addEventListener(`message`,f1,!1)):Z$=`onreadystatechange`in BZ(`script`)?function(e){IQ.appendChild(BZ(`script`)).onreadystatechange=function(){IQ.removeChild(this),u1(e)}}:function(e){setTimeout(d1(e),0)});var m1,h1,g1,_1,v1,y1,b1,x1,S1={set:i1,clear:a1},mxe=/ipad|iphone|ipod/i.test(gZ)&&Q.Pebble!==void 0,hxe=/web0s(?!.*chrome)/i.test(gZ),gxe=UZ.f,C1=S1.set,w1=Q.MutationObserver||Q.WebKitMutationObserver,T1=Q.document,E1=Q.process,D1=Q.Promise,O1=gxe(Q,`queueMicrotask`),k1=O1&&O1.value;k1||(m1=function(){var e,t;for(r1&&(e=E1.domain)&&e.exit();h1;){t=h1.fn,h1=h1.next;try{t()}catch(e){throw h1?_1():g1=void 0,e}}g1=void 0,e&&e.enter()},n1||r1||hxe||!w1||!T1?!mxe&&D1&&D1.resolve?((b1=D1.resolve(void 0)).constructor=D1,x1=qQ(b1.then,b1),_1=function(){x1(m1)}):r1?_1=function(){E1.nextTick(m1)}:(C1=qQ(C1,Q),_1=function(){C1(m1)}):(v1=!0,y1=T1.createTextNode(``),new w1(m1).observe(y1,{characterData:!0}),_1=function(){y1.data=v1=!v1}));var A1,j1,M1,N1,P1=k1||function(e){var t={fn:e,next:void 0};g1&&(g1.next=t),h1||(h1=t,_1()),g1=t},_xe=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=EZ(t),this.reject=EZ(n)},F1={f:function(e){return new _xe(e)}},I1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},vxe=typeof window==`object`,L1=S1.set,yxe=LZ(`species`),R1=`Promise`,z1=sQ.getterFor(R1),bxe=sQ.set,xxe=sQ.getterFor(R1),B1=P$&&P$.prototype,V1=P$,H1=B1,U1=Q.TypeError,W1=Q.document,G1=Q.process,K1=F1.f,Sxe=K1,Cxe=!!(W1&&W1.createEvent&&Q.dispatchEvent),q1=fZ(Q.PromiseRejectionEvent),J1=!1,Y1=CQ(R1,(function(){var e=ZZ(V1),t=e!==String(V1);if(!t&&xZ===66)return!0;if(xZ>=51&&/native code/.test(e))return!1;var n=new V1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[yxe]=r,!(J1=n.then((function(){}))instanceof r)||!t&&vxe&&!q1})),wxe=Y1||!e1((function(e){V1.all(e).catch((function(){}))})),X1=function(e){var t;return!(!pZ(e)||!fZ(t=e.then))&&t},Z1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;P1((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&&Exe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(U1(`Promise-chain cycle`)):(s=X1(o))?$X(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Txe(e)}))}},Q1=function(e,t,n){var r,i;Cxe?((r=W1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!q1&&(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)},Txe=function(e){$X(L1,Q,(function(){var t,n=e.facade,r=e.value;if($1(e)&&(t=I1((function(){r1?G1.emit(`unhandledRejection`,r,n):Q1(`unhandledrejection`,n,r)})),e.rejection=r1||$1(e)?2:1,t.error))throw t.value}))},$1=function(e){return e.rejection!==1&&!e.parent},Exe=function(e){$X(L1,Q,(function(){var t=e.facade;r1?G1.emit(`rejectionHandled`,t):Q1(`rejectionhandled`,t,e.value)}))},e0=function(e,t,n){return function(r){e(t,r,n)}},t0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Z1(e,!0))},n0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw U1(`Promise can't be resolved itself`);var r=X1(t);r?P1((function(){var n={done:!1};try{$X(r,t,e0(n0,n,e),e0(t0,n,e))}catch(t){t0(n,t,e)}})):(e.value=t,e.state=1,Z1(e,!1))}catch(t){t0({done:!1},t,e)}}};if(Y1&&(H1=(V1=function(e){B$(this,H1),EZ(e),$X(A1,this);var t=z1(this);try{e(e0(n0,t),e0(t0,t))}catch(e){t0(t,e)}}).prototype,(A1=function(e){bxe(this,{type:R1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=F$(H1,{then:function(e,t){var n=xxe(this),r=n.reactions,i=K1(function(e,t){var n,r=WZ(e).constructor;return r===void 0||(n=WZ(r)[uxe])==null?t:function(e){if($Q(e))return e;throw lxe(TZ(e)+` is not a constructor`)}(n)}(this,V1));return i.ok=!fZ(e)||e,i.fail=fZ(t)&&t,i.domain=r1?G1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Z1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),j1=function(){var e=new A1,t=z1(e);this.promise=e,this.resolve=e0(n0,t),this.reject=e0(t0,t)},F1.f=K1=function(e){return e===V1||e===M1?new j1(e):Sxe(e)},fZ(P$)&&B1!==Object.prototype)){N1=B1.then,J1||(dQ(B1,`then`,(function(e,t){var n=this;return new V1((function(e,t){$X(N1,n,e,t)})).then(e,t)}),{unsafe:!0}),dQ(B1,`catch`,H1.catch,{unsafe:!0}));try{delete B1.constructor}catch{}I$&&I$(B1,H1)}function r0(e,t,n){return n===void 0&&(n=``),HX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return UX(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(){G.insertNodes(e,l)})),i(l),[2]}}))}))}function i0(){return N$(`w-e-insert-video`)}wQ({global:!0,wrap:!0,forced:Y1},{Promise:V1}),R$(V1,R1,!1),function(e){var t=mZ(`Promise`),n=KZ.f;ZX&&t&&!t[z$]&&n(t,z$,{configurable:!0,get:function(){return this}})}(),M1=mZ(R1),wQ({target:R1,stat:!0,forced:Y1},{reject:function(e){var t=K1(this);return $X(t.reject,void 0,e),t.promise}}),wQ({target:R1,stat:!0,forced:Y1},{resolve:function(e){return function(e,t){if(WZ(e),pZ(t)&&t.constructor===e)return t;var n=F1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),wQ({target:R1,stat:!0,forced:wxe},{all:function(e){var t=this,n=K1(t),r=n.resolve,i=n.reject,a=I1((function(){var n=EZ(t.resolve),a=[],o=0,s=1;K$(e,(function(e){var c=o++,l=!1;s++,$X(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=K1(t),r=n.reject,i=I1((function(){var i=EZ(t.resolve);K$(e,(function(e){$X(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Dxe=function(){function e(){this.title=Z(`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=i0(),this.posterInputId=i0(),this.buttonId=i0()}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||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.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=WX(qj(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=WX(qj(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=K(c),p=K(d),m=WX(Jj(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=K(`<div></div>`);h.on(`click`,`#`+a,(function(n){return HX(t,void 0,void 0,(function(){var t,a;return UX(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,r0(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}(),Oxe=oZ([].join),kxe=lZ!=Object,Axe=function(e,t){var n=[].join;return!!n&&XX((function(){n.call(null,`,`,1)}))}();wQ({target:`Array`,proto:!0,forced:kxe||!Axe},{join:function(e){return Oxe(dZ(this),e===void 0?`,`:e)}});var a0,o0,s0,jxe=!XX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),c0=tQ(`IE_PROTO`),l0=Q.Object,Mxe=l0.prototype,u0=jxe?l0.getPrototypeOf:function(e){var t=jZ(e);if(MZ(t,c0))return t[c0];var n=t.constructor;return fZ(n)&&t instanceof n?n.prototype:t instanceof l0?Mxe:null},d0=LZ(`iterator`),f0=!1;[].keys&&(`next`in(s0=[].keys())?(o0=u0(u0(s0)))!==Object.prototype&&(a0=o0):f0=!0),(a0==null||XX((function(){var e={};return a0[d0].call(e)!==e})))&&(a0={}),fZ(a0[d0])||dQ(a0,d0,(function(){return this}));var p0={IteratorPrototype:a0,BUGGY_SAFARI_ITERATORS:f0},Nxe=p0.IteratorPrototype,Pxe=function(){return this},Fxe=uQ.PROPER,Ixe=uQ.CONFIGURABLE,m0=p0.IteratorPrototype,h0=p0.BUGGY_SAFARI_ITERATORS,g0=LZ(`iterator`),Lxe=function(){return this},_0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=HQ(Nxe,{next:nZ(1,n)}),R$(e,i,!1),V$[i]=Pxe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!h0&&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[g0]||p[`@@iterator`]||i&&p[i],h=!h0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=u0(g.call(new e)))!==Object.prototype&&s.next&&(u0(s)!==m0&&(I$?I$(s,m0):fZ(s[g0])||dQ(s,g0,Lxe)),R$(s,d,!0)),Fxe&&i==`values`&&m&&m.name!==`values`&&(Ixe?qZ(p,`name`,`values`):(f=!0,h=function(){return $X(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(h0||f||!(l in p))&&dQ(p,l,c[l]);else wQ({target:t,proto:!0,forced:h0||f},c);return p[g0]!==h&&dQ(p,g0,h,{name:i}),V$[t]=h,c},Rxe=sQ.set,zxe=sQ.getterFor(`Array Iterator`),v0=_0(Array,`Array`,(function(e,t){Rxe(this,{type:`Array Iterator`,target:dZ(e),index:0,kind:t})}),(function(){var e=zxe(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`);V$.Arguments=V$.Array,GQ(`keys`),GQ(`values`),GQ(`entries`);var Bxe=T$.charAt,Vxe=sQ.set,Hxe=sQ.getterFor(`String Iterator`);_0(String,`String`,(function(e){Vxe(this,{type:`String Iterator`,string:OQ(e),index:0})}),(function(){var e,t=Hxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Bxe(n,r),t.index+=e.length,{value:e,done:!1})}));var y0=function(e,t,n){var r=RZ(t);r in e?KZ.f(e,r,nZ(0,n)):e[r]=n},Uxe=Q.Array,Wxe=Math.max,b0=xQ.f,x0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Gxe={f:function(e){return x0&&sZ(e)==`Window`?function(e){try{return b0(e)}catch{return function(e,t,n){for(var r=hQ(e),i=pQ(void 0,r),a=pQ(r,r),o=Uxe(Wxe(a-i,0)),s=0;i<a;i++,s++)y0(o,s,e[i]);return o.length=s,o}(x0)}}(e):b0(dZ(e))}},S0=XX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),C0=Object.isExtensible,w0=XX((function(){C0(1)}))||S0?function(e){return!!pZ(e)&&(!S0||sZ(e)!=`ArrayBuffer`)&&(!C0||C0(e))}:C0,Kxe=!XX((function(){return Object.isExtensible(Object.preventExtensions({}))})),T0=KX((function(e){var t=KZ.f,n=!1,r=NZ(`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=xQ.f,t=oZ([].splice),i={};i[r]=1,e(i).length&&(xQ.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},wQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Gxe.f}))},fastKey:function(e,t){if(!pZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!MZ(e,r)){if(!w0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!MZ(e,r)){if(!w0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Kxe&&n&&w0(e)&&!MZ(e,r)&&a(e),e}};nQ[r]=!0})),E0=T0.getWeakData,qxe=sQ.set,Jxe=sQ.getterFor,Yxe=r$.find,Xxe=r$.findIndex,Zxe=oZ([].splice),Qxe=0,D0=function(e){return e.frozen||=new O0},O0=function(){this.entries=[]},k0=function(e,t){return Yxe(e.entries,(function(e){return e[0]===t}))};O0.prototype={get:function(e){var t=k0(this,e);if(t)return t[1]},has:function(e){return!!k0(this,e)},set:function(e,t){var n=k0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Xxe(this.entries,(function(t){return t[0]===e}));return~t&&Zxe(this.entries,t,1),!!~t}};var A0,j0={getConstructor:function(e,t,n,r){var i=e((function(e,i){B$(e,a),qxe(e,{type:t,id:Qxe++,frozen:void 0}),i!=null&&K$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Jxe(t),s=function(e,t,n){var r=o(e),i=E0(WZ(t),!0);return!0===i?D0(r).set(t,n):i[r.id]=n,e};return F$(a,{delete:function(e){var t=o(this);if(!pZ(e))return!1;var n=E0(e);return!0===n?D0(t).delete(e):n&&MZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!pZ(e))return!1;var n=E0(e);return!0===n?D0(t).has(e):n&&MZ(n,t.id)}}),F$(a,n?{get:function(e){var t=o(this);if(pZ(e)){var n=E0(e);return!0===n?D0(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}},M0=sQ.enforce,$xe=!Q.ActiveXObject&&`ActiveXObject`in Q,N0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},eSe=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=oZ(s[e]);dQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!pZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!pZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!pZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(CQ(e,!fZ(o)||!(i||s.forEach&&!XX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),T0.enable();else if(CQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=XX((function(){d.has(1)})),m=e1((function(e){new o(e)})),h=!i&&XX((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){B$(e,s);var n=function(e,t,n){var r,i;return I$&&fZ(r=t.constructor)&&r!==n&&pZ(i=r.prototype)&&i!==n.prototype&&I$(e,i),e}(new o,e,c);return t!=null&&K$(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,wQ({global:!0,forced:c!=o},l),R$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,N0,j0);if($Z&&$xe){A0=j0.getConstructor(N0,`WeakMap`,!0),T0.enable();var P0=eSe.prototype,F0=oZ(P0.delete),I0=oZ(P0.has),L0=oZ(P0.get),R0=oZ(P0.set);F$(P0,{delete:function(e){if(pZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,F0(this,e)||t.frozen.delete(e)}return F0(this,e)},has:function(e){if(pZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)||t.frozen.has(e)}return I0(this,e)},get:function(e){if(pZ(e)&&!w0(e)){var t=M0(this);return t.frozen||=new A0,I0(this,e)?L0(this,e):t.frozen.get(e)}return L0(this,e)},set:function(e,t){if(pZ(e)&&!w0(e)){var n=M0(this);n.frozen||=new A0,I0(this,e)?R0(this,e,t):n.frozen.set(e,t)}else R0(this,e,t);return this}})}var z0={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},B0=BZ(`span`).classList,V0=B0&&B0.constructor&&B0.constructor.prototype,tSe=V0===Object.prototype?void 0:V0,H0=LZ(`iterator`),U0=LZ(`toStringTag`),W0=v0.values,G0=function(e,t){if(e){if(e[H0]!==W0)try{qZ(e,H0,W0)}catch{e[H0]=W0}if(e[U0]||qZ(e,U0,t),z0[t]){for(var n in v0)if(e[n]!==v0[n])try{qZ(e,n,v0[n])}catch{e[n]=v0[n]}}}};for(var K0 in z0)G0(Q[K0]&&Q[K0].prototype,K0);G0(tSe,`DOMTokenList`);var nSe=uQ.EXISTS,rSe=KZ.f,q0=Function.prototype,iSe=oZ(q0.toString),J0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,aSe=oZ(J0.exec);ZX&&!nSe&&rSe(q0,`name`,{configurable:!0,get:function(){try{return aSe(J0,iSe(this))[1]}catch{return``}}});var oSe=LZ(`species`),sSe=xZ>=51||!XX((function(){var e=[];return(e.constructor={})[oSe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),cSe=LZ(`species`),Y0=Q.Array,lSe=Math.max;function X0(e){return e.getMenuConfig(`uploadVideo`)}wQ({target:`Array`,proto:!0,forced:!sSe},{slice:function(e,t){var n,r,i,a=dZ(this),o=hQ(a),s=pQ(e,o),c=pQ(t===void 0?o:t,o);if(JQ(a)&&(n=a.constructor,($Q(n)&&(n===Y0||JQ(n.prototype))||pZ(n)&&(n=n[cSe])===null)&&(n=void 0),n===Y0||n===void 0))return t1(a,s,c);for(r=new(n===void 0?Y0:n)(lSe(c-s,0)),i=0;s<c;s++,i++)s in a&&y0(r,i,a[s]);return r.length=i,r}});var Z0=new WeakMap;function uSe(e,t){return HX(this,void 0,void 0,(function(){var n,r,i,a;return UX(this,(function(o){switch(o.label){case 0:return n=function(e){var t=Z0.get(e);if(t!=null)return t;var n=X0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=nM(VX(VX({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return r0(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;r0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Z0.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 dSe=function(){function e(){this.title=Z(`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 r0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=K(`body`),c=K(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;HX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return UX(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=X0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=uye(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 r0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,uSe(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||!U.isCollapsed(t)||!!X.getSelectedElems(e).some((function(t){var n=X.getNodeType(t);return n===`pre`||n===`list-item`||!!e.isVoid(t)}))},e.prototype.getMenuConfig=function(e){return e.getMenuConfig(`uploadVideo`)},e}(),fSe=uQ.PROPER,Q0=RegExp.prototype,$0=Q0.toString,pSe=oZ(c$),mSe=XX((function(){return $0.call({source:`a`,flags:`b`})!=`/a/b`})),hSe=fSe&&$0.name!=`toString`;function e2(){return N$(`w-e-insert-video`)}(mSe||hSe)&&dQ(RegExp.prototype,`toString`,(function(){var e=WZ(this),t=OQ(e.source),n=e.flags;return`/`+t+`/`+OQ(n===void 0&&hZ(Q0,e)&&!(`flags`in Q0)?pSe(e):n)}),{unsafe:!0});var gSe=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=e2(),this.heightInputId=e2(),this.buttonId=e2()}return e.prototype.getSelectedVideoNode=function(e){return X.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=WX(qj(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=K(a[1]),c=WX(qj(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=K(c[1]),d=WX(Jj(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=K(`<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(),G.setNodes(e,{width:c,height:l},{match:function(e){return X.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}(),_Se={renderElems:[fbe],elemsToHtml:[pbe],preParseHtml:[_be],parseElemsHtml:[Tbe],menus:[{key:`insertVideo`,factory:function(){return new Dxe},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new dSe},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 gSe}}],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=WX(e,2),i=t[0],a=t[1];return X.getNodeType(i)===`video`&&X.isLastNode(r,i)&&G.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};MM(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),MM(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var t2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function n2(e){var t={exports:{}};return e(t,t.exports),t.exports}var r2,i2,a2=function(e){return e&&e.Math==Math&&e},$=a2(typeof globalThis==`object`&&globalThis)||a2(typeof window==`object`&&window)||a2(typeof self==`object`&&self)||a2(typeof t2==`object`&&t2)||function(){return this}()||Function(`return this`)(),o2=function(e){try{return!!e()}catch{return!0}},s2=!o2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),c2=Function.prototype.call,l2=c2.bind?c2.bind(c2):function(){return c2.apply(c2,arguments)},u2={}.propertyIsEnumerable,d2=Object.getOwnPropertyDescriptor,vSe={f:d2&&!u2.call({1:2},1)?function(e){var t=d2(this,e);return!!t&&t.enumerable}:u2},f2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},p2=Function.prototype,m2=p2.bind,h2=p2.call,ySe=m2&&m2.bind(h2),g2=m2?function(e){return e&&ySe(h2,e)}:function(e){return e&&function(){return h2.apply(e,arguments)}},bSe=g2({}.toString),xSe=g2(``.slice),_2=function(e){return xSe(bSe(e),8,-1)},v2=$.Object,SSe=g2(``.split),y2=o2((function(){return!v2(`z`).propertyIsEnumerable(0)}))?function(e){return _2(e)==`String`?SSe(e,``):v2(e)}:v2,CSe=$.TypeError,b2=function(e){if(e==null)throw CSe(`Can't call method on `+e);return e},x2=function(e){return y2(b2(e))},S2=function(e){return typeof e==`function`},C2=function(e){return typeof e==`object`?e!==null:S2(e)},wSe=function(e){return S2(e)?e:void 0},w2=function(e,t){return arguments.length<2?wSe($[e]):$[e]&&$[e][t]},T2=g2({}.isPrototypeOf),E2=w2(`navigator`,`userAgent`)||``,D2=$.process,O2=$.Deno,k2=D2&&D2.versions||O2&&O2.version,A2=k2&&k2.v8;A2&&(i2=(r2=A2.split(`.`))[0]>0&&r2[0]<4?1:+(r2[0]+r2[1])),!i2&&E2&&(!(r2=E2.match(/Edge\/(\d+)/))||r2[1]>=74)&&(r2=E2.match(/Chrome\/(\d+)/))&&(i2=+r2[1]);var j2=i2,M2=!!Object.getOwnPropertySymbols&&!o2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j2&&j2<41})),N2=M2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,TSe=$.Object,P2=N2?function(e){return typeof e==`symbol`}:function(e){var t=w2(`Symbol`);return S2(t)&&T2(t.prototype,TSe(e))},ESe=$.String,F2=function(e){try{return ESe(e)}catch{return`Object`}},DSe=$.TypeError,I2=function(e){if(S2(e))return e;throw DSe(F2(e)+` is not a function`)},L2=function(e,t){var n=e[t];return n==null?void 0:I2(n)},OSe=$.TypeError,kSe=Object.defineProperty,R2=function(e,t){try{kSe($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},z2=$[`__core-js_shared__`]||R2(`__core-js_shared__`,{}),B2=n2((function(e){(e.exports=function(e,t){return z2[e]||(z2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),ASe=$.Object,V2=function(e){return ASe(b2(e))},jSe=g2({}.hasOwnProperty),H2=Object.hasOwn||function(e,t){return jSe(V2(e),t)},MSe=0,NSe=Math.random(),PSe=g2(1 .toString),U2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+PSe(++MSe+NSe,36)},W2=B2(`wks`),G2=$.Symbol,K2=G2&&G2.for,FSe=N2?G2:G2&&G2.withoutSetter||U2,q2=function(e){if(!H2(W2,e)||!M2&&typeof W2[e]!=`string`){var t=`Symbol.`+e;M2&&H2(G2,e)?W2[e]=G2[e]:W2[e]=N2&&K2?K2(t):FSe(t)}return W2[e]},ISe=$.TypeError,LSe=q2(`toPrimitive`),J2=function(e){var t=function(e,t){if(!C2(e)||P2(e))return e;var n,r=L2(e,LSe);if(r){if(t===void 0&&(t=`default`),n=l2(r,e,t),!C2(n)||P2(n))return n;throw ISe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S2(n=e.toString)&&!C2(r=l2(n,e))||S2(n=e.valueOf)&&!C2(r=l2(n,e))||t!==`string`&&S2(n=e.toString)&&!C2(r=l2(n,e)))return r;throw OSe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return P2(t)?t:t+``},Y2=$.document,RSe=C2(Y2)&&C2(Y2.createElement),X2=function(e){return RSe?Y2.createElement(e):{}},Z2=!s2&&!o2((function(){return Object.defineProperty(X2(`div`),`a`,{get:function(){return 7}}).a!=7})),Q2=Object.getOwnPropertyDescriptor,$2={f:s2?Q2:function(e,t){if(e=x2(e),t=J2(t),Z2)try{return Q2(e,t)}catch{}if(H2(e,t))return f2(!l2(vSe.f,e,t),e[t])}},zSe=$.String,BSe=$.TypeError,e4=function(e){if(C2(e))return e;throw BSe(zSe(e)+` is not an object`)},VSe=$.TypeError,t4=Object.defineProperty,n4={f:s2?t4:function(e,t,n){if(e4(e),t=J2(t),e4(n),Z2)try{return t4(e,t,n)}catch{}if(`get`in n||`set`in n)throw VSe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r4=s2?function(e,t,n){return n4.f(e,t,f2(1,n))}:function(e,t,n){return e[t]=n,e},HSe=g2(Function.toString);S2(z2.inspectSource)||(z2.inspectSource=function(e){return HSe(e)});var i4,a4,o4,s4=z2.inspectSource,c4=$.WeakMap,l4=S2(c4)&&/native code/.test(s4(c4)),u4=B2(`keys`),d4=function(e){return u4[e]||(u4[e]=U2(e))},f4={},p4=$.TypeError,USe=$.WeakMap;if(l4||z2.state){var m4=z2.state||=new USe,WSe=g2(m4.get),h4=g2(m4.has),GSe=g2(m4.set);i4=function(e,t){if(h4(m4,e))throw new p4(`Object already initialized`);return t.facade=e,GSe(m4,e,t),t},a4=function(e){return WSe(m4,e)||{}},o4=function(e){return h4(m4,e)}}else{var g4=d4(`state`);f4[g4]=!0,i4=function(e,t){if(H2(e,g4))throw new p4(`Object already initialized`);return t.facade=e,r4(e,g4,t),t},a4=function(e){return H2(e,g4)?e[g4]:{}},o4=function(e){return H2(e,g4)}}var _4={set:i4,get:a4,has:o4,enforce:function(e){return o4(e)?a4(e):i4(e,{})},getterFor:function(e){return function(t){var n;if(!C2(t)||(n=a4(t)).type!==e)throw p4(`Incompatible receiver, `+e+` required`);return n}}},v4=Function.prototype,KSe=s2&&Object.getOwnPropertyDescriptor,y4=H2(v4,`name`),b4={EXISTS:y4,PROPER:y4&&function(){}.name===`something`,CONFIGURABLE:y4&&(!s2||s2&&KSe(v4,`name`).configurable)},x4=n2((function(e){var t=b4.CONFIGURABLE,n=_4.get,r=_4.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;S2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!H2(a,`name`)||t&&a.name!==d)&&r4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:R2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:r4(e,n,a))})(Function.prototype,`toString`,(function(){return S2(this)&&n(this).source||s4(this)}))})),qSe=Math.ceil,JSe=Math.floor,S4=function(e){var t=+e;return t!=t||t===0?0:(t>0?JSe:qSe)(t)},YSe=Math.max,XSe=Math.min,C4=function(e,t){var n=S4(e);return n<0?YSe(n+t,0):XSe(n,t)},ZSe=Math.min,w4=function(e){return e>0?ZSe(S4(e),9007199254740991):0},T4=function(e){return w4(e.length)},QSe=function(e){return function(t,n,r){var i,a=x2(t),o=T4(a),s=C4(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),E4=g2([].push),D4=function(e,t){var n,r=x2(e),i=0,a=[];for(n in r)!H2(f4,n)&&H2(r,n)&&E4(a,n);for(;t.length>i;)H2(r,n=t[i++])&&(~QSe(a,n)||E4(a,n));return a},O4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],$Se=O4.concat(`length`,`prototype`),k4={f:Object.getOwnPropertyNames||function(e){return D4(e,$Se)}},eCe={f:Object.getOwnPropertySymbols},tCe=g2([].concat),nCe=w2(`Reflect`,`ownKeys`)||function(e){var t=k4.f(e4(e)),n=eCe.f;return n?tCe(t,n(e)):t},rCe=function(e,t){for(var n=nCe(t),r=n4.f,i=$2.f,a=0;a<n.length;a++){var o=n[a];H2(e,o)||r(e,o,i(t,o))}},iCe=/#|\.prototype\./,A4=function(e,t){var n=oCe[aCe(e)];return n==cCe||n!=sCe&&(S2(t)?o2(t):!!t)},aCe=A4.normalize=function(e){return String(e).replace(iCe,`.`).toLowerCase()},oCe=A4.data={},sCe=A4.NATIVE=`N`,cCe=A4.POLYFILL=`P`,j4=A4,lCe=$2.f,M4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||R2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=lCe(n,r))&&o.value:n[r],!j4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;rCe(a,i)}(e.sham||i&&i.sham)&&r4(a,`sham`,!0),x4(n,r,a,e)}},N4=Array.isArray||function(e){return _2(e)==`Array`},P4={};P4[q2(`toStringTag`)]=`z`;var F4=String(P4)===`[object z]`,uCe=q2(`toStringTag`),dCe=$.Object,fCe=_2(function(){return arguments}())==`Arguments`,I4=F4?_2: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=dCe(e),uCe))==`string`?n:fCe?_2(t):(r=_2(t))==`Object`&&S2(t.callee)?`Arguments`:r},L4=function(){},pCe=[],R4=w2(`Reflect`,`construct`),z4=/^\s*(?:class|function)\b/,mCe=g2(z4.exec),hCe=!z4.exec(L4),B4=function(e){if(!S2(e))return!1;try{return R4(L4,pCe,e),!0}catch{return!1}},V4=!R4||o2((function(){var e;return B4(B4.call)||!B4(Object)||!B4((function(){e=!0}))||e}))?function(e){if(!S2(e))return!1;switch(I4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return hCe||!!mCe(z4,s4(e))}:B4,H4=function(e,t,n){var r=J2(t);r in e?n4.f(e,r,f2(0,n)):e[r]=n},gCe=q2(`species`),U4=g2([].slice),_Ce=j2>=51||!o2((function(){var e=[];return(e.constructor={})[gCe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),vCe=q2(`species`),W4=$.Array,yCe=Math.max;M4({target:`Array`,proto:!0,forced:!_Ce},{slice:function(e,t){var n,r,i,a=x2(this),o=T4(a),s=C4(e,o),c=C4(t===void 0?o:t,o);if(N4(a)&&(n=a.constructor,(V4(n)&&(n===W4||N4(n.prototype))||C2(n)&&(n=n[vCe])===null)&&(n=void 0),n===W4||n===void 0))return U4(a,s,c);for(r=new(n===void 0?W4:n)(yCe(c-s,0)),i=0;s<c;s++,i++)s in a&&H4(r,i,a[s]);return r.length=i,r}});var bCe=F4?{}.toString:function(){return`[object `+I4(this)+`]`};F4||x4(Object.prototype,`toString`,bCe,{unsafe:!0});var G4,xCe=$.String,K4=function(e){if(I4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return xCe(e)},q4=function(){var e=e4(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},J4=$.RegExp,Y4=o2((function(){var e=J4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),SCe=Y4||o2((function(){return!J4(`a`,`y`).sticky})),X4={BROKEN_CARET:Y4||o2((function(){var e=J4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:SCe,UNSUPPORTED_Y:Y4},CCe=Object.keys||function(e){return D4(e,O4)},wCe=s2?Object.defineProperties:function(e,t){e4(e);for(var n,r=x2(t),i=CCe(t),a=i.length,o=0;a>o;)n4.f(e,n=i[o++],r[n]);return e},Z4=w2(`document`,`documentElement`),Q4=d4(`IE_PROTO`),$4=function(){},e3=function(e){return`<script>`+e+`<\/script>`},t3=function(e){e.write(e3(``)),e.close();var t=e.parentWindow.Object;return e=null,t},n3=function(){try{G4=new ActiveXObject(`htmlfile`)}catch{}var e,t;n3=typeof document<`u`?document.domain&&G4?t3(G4):((t=X2(`iframe`)).style.display=`none`,Z4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(e3(`document.F=Object`)),e.close(),e.F):t3(G4);for(var n=O4.length;n--;)delete n3.prototype[O4[n]];return n3()};f4[Q4]=!0;var r3,i3,a3=Object.create||function(e,t){var n;return e===null?n=n3():($4.prototype=e4(e),n=new $4,$4.prototype=null,n[Q4]=e),t===void 0?n:wCe(n,t)},TCe=$.RegExp,ECe=o2((function(){var e=TCe(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),DCe=$.RegExp,OCe=o2((function(){var e=DCe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),kCe=_4.get,ACe=B2(`native-string-replace`,String.prototype.replace),o3=RegExp.prototype.exec,s3=o3,jCe=g2(``.charAt),MCe=g2(``.indexOf),NCe=g2(``.replace),c3=g2(``.slice),l3=(i3=/b*/g,l2(o3,r3=/a/,`a`),l2(o3,i3,`a`),r3.lastIndex!==0||i3.lastIndex!==0),u3=X4.BROKEN_CARET,d3=/()??/.exec(``)[1]!==void 0;(l3||d3||u3||ECe||OCe)&&(s3=function(e){var t,n,r,i,a,o,s,c=this,l=kCe(c),u=K4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=l2(s3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=u3&&c.sticky,m=l2(q4,c),h=c.source,g=0,_=u;if(p&&(m=NCe(m,`y`,``),MCe(m,`g`)===-1&&(m+=`g`),_=c3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&jCe(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),d3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),l3&&(r=c.lastIndex),i=l2(o3,p?n:c,_),p?i?(i.input=c3(i.input,g),i[0]=c3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:l3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),d3&&i&&i.length>1&&l2(ACe,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=a3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var f3=s3;M4({target:`RegExp`,proto:!0,forced:/./.exec!==f3},{exec:f3});var p3=Function.prototype,m3=p3.apply,PCe=p3.bind,h3=p3.call,g3=typeof Reflect==`object`&&Reflect.apply||(PCe?h3.bind(m3):function(){return h3.apply(m3,arguments)}),FCe=q2(`species`),_3=RegExp.prototype,ICe=q2(`match`),LCe=$.TypeError,RCe=q2(`species`),v3=function(e,t){var n,r=e4(e).constructor;return r===void 0||(n=e4(r)[RCe])==null?t:function(e){if(V4(e))return e;throw LCe(F2(e)+` is not a constructor`)}(n)},zCe=g2(``.charAt),y3=g2(``.charCodeAt),BCe=g2(``.slice),b3=function(e){return function(t,n){var r,i,a=K4(b2(t)),o=S4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=y3(a,o))<55296||r>56319||o+1===s||(i=y3(a,o+1))<56320||i>57343?e?zCe(a,o):r:e?BCe(a,o,o+2):i-56320+(r-55296<<10)+65536}},x3={codeAt:b3(!1),charAt:b3(!0)},VCe=x3.charAt,HCe=function(e,t,n){return t+(n?VCe(e,t).length:1)},UCe=$.Array,WCe=Math.max,S3=function(e,t,n){for(var r=T4(e),i=C4(t,r),a=C4(n===void 0?r:n,r),o=UCe(WCe(a-i,0)),s=0;i<a;i++,s++)H4(o,s,e[i]);return o.length=s,o},GCe=$.TypeError,C3=function(e,t){var n=e.exec;if(S2(n)){var r=l2(n,e,t);return r!==null&&e4(r),r}if(_2(e)===`RegExp`)return l2(f3,e,t);throw GCe(`RegExp#exec called on incompatible receiver`)},w3=X4.UNSUPPORTED_Y,KCe=Math.min,T3=[].push,qCe=g2(/./.exec),E3=g2(T3),D3=g2(``.slice);(function(e,t,n,r){var i=q2(e),a=!o2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!o2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[FCe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=g2(/./[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=K4(b2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!C2(r=e)||!((i=r[ICe])===void 0?_2(r)==`RegExp`:i))return l2(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=l2(f3,p,a))&&!((c=p.lastIndex)>f&&(E3(u,D3(a,f,s.index)),s.length>1&&s.index<a.length&&g3(T3,u,S3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&qCe(p,``)||E3(u,``):E3(u,D3(a,f)),u.length>o?S3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:l2(t,this,e,n)}:t,[function(t,n){var i=b2(this),a=t==null?void 0:L2(t,e);return a?l2(a,t,i,n):l2(r,K4(i),t,n)},function(e,i){var a=e4(this),o=K4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=v3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(w3?`g`:`y`),d=new c(w3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return C3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=w3?0:m;var g,_=C3(d,w3?D3(o,m):o);if(_===null||(g=KCe(w4(d.lastIndex+(w3?m:0)),o.length))===p)m=HCe(o,m,l);else{if(E3(h,D3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(E3(h,_[v]),h.length===f)return h;m=p=g}}return E3(h,D3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=g2(e),c=t.exec;return c===f3||c===_3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x4(String.prototype,e,c[0]),x4(_3,i,c[1])}r&&r4(_3[i],`sham`,!0)})(`split`,0,!!o2((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`})),w3);var O3=function(){return O3=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},O3.apply(this,arguments)};function k3(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 A3(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 JCe(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 j3=q2(`unscopables`),M3=Array.prototype;M3[j3]??n4.f(M3,j3,{configurable:!0,value:a3(null)});var N3,P3,F3,I3=function(e){M3[j3][e]=!0},L3={},YCe=!o2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),R3=d4(`IE_PROTO`),z3=$.Object,XCe=z3.prototype,B3=YCe?z3.getPrototypeOf:function(e){var t=V2(e);if(H2(t,R3))return t[R3];var n=t.constructor;return S2(n)&&t instanceof n?n.prototype:t instanceof z3?XCe:null},V3=q2(`iterator`),H3=!1;[].keys&&(`next`in(F3=[].keys())?(P3=B3(B3(F3)))!==Object.prototype&&(N3=P3):H3=!0),(N3==null||o2((function(){var e={};return N3[V3].call(e)!==e})))&&(N3={}),S2(N3[V3])||x4(N3,V3,(function(){return this}));var U3={IteratorPrototype:N3,BUGGY_SAFARI_ITERATORS:H3},ZCe=n4.f,W3=q2(`toStringTag`),G3=function(e,t,n){e&&!H2(e=n?e:e.prototype,W3)&&ZCe(e,W3,{configurable:!0,value:t})},QCe=U3.IteratorPrototype,$Ce=function(){return this},ewe=$.String,twe=$.TypeError,K3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=g2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return e4(n),function(e){if(typeof e==`object`||S2(e))return e;throw twe(`Can't set `+ewe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),nwe=b4.PROPER,rwe=b4.CONFIGURABLE,q3=U3.IteratorPrototype,J3=U3.BUGGY_SAFARI_ITERATORS,Y3=q2(`iterator`),iwe=function(){return this},X3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=a3(QCe,{next:f2(1,n)}),G3(e,i,!1),L3[i]=$Ce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!J3&&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[Y3]||p[`@@iterator`]||i&&p[i],h=!J3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=B3(g.call(new e)))!==Object.prototype&&s.next&&(B3(s)!==q3&&(K3?K3(s,q3):S2(s[Y3])||x4(s,Y3,iwe)),G3(s,d,!0)),nwe&&i==`values`&&m&&m.name!==`values`&&(rwe?r4(p,`name`,`values`):(f=!0,h=function(){return l2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(J3||f||!(l in p))&&x4(p,l,c[l]);else M4({target:t,proto:!0,forced:J3||f},c);return p[Y3]!==h&&x4(p,Y3,h,{name:i}),L3[t]=h,c},awe=_4.set,owe=_4.getterFor(`Array Iterator`),Z3=X3(Array,`Array`,(function(e,t){awe(this,{type:`Array Iterator`,target:x2(e),index:0,kind:t})}),(function(){var e=owe(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`);L3.Arguments=L3.Array,I3(`keys`),I3(`values`),I3(`entries`);var swe=x3.charAt,cwe=_4.set,lwe=_4.getterFor(`String Iterator`);X3(String,`String`,(function(e){cwe(this,{type:`String Iterator`,string:K4(e),index:0})}),(function(){var e,t=lwe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=swe(n,r),t.index+=e.length,{value:e,done:!1})}));var Q3=function(e,t,n){for(var r in t)x4(e,r,t[r],n);return e},$3=k4.f,e6=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],uwe={f:function(e){return e6&&_2(e)==`Window`?function(e){try{return $3(e)}catch{return S3(e6)}}(e):$3(x2(e))}},t6=o2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,`a`,{value:8})}})),n6=Object.isExtensible,r6=o2((function(){n6(1)}))||t6?function(e){return!!C2(e)&&(!t6||_2(e)!=`ArrayBuffer`)&&(!n6||n6(e))}:n6,dwe=!o2((function(){return Object.isExtensible(Object.preventExtensions({}))})),i6=n2((function(e){var t=n4.f,n=!1,r=U2(`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=k4.f,t=g2([].splice),i={};i[r]=1,e(i).length&&(k4.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},M4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:uwe.f}))},fastKey:function(e,t){if(!C2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!H2(e,r)){if(!r6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!H2(e,r)){if(!r6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return dwe&&n&&r6(e)&&!H2(e,r)&&a(e),e}};f4[r]=!0})),a6=g2(g2.bind),o6=function(e,t){return I2(e),t===void 0?e:a6?a6(e,t):function(){return e.apply(t,arguments)}},fwe=q2(`iterator`),pwe=Array.prototype,mwe=q2(`iterator`),s6=function(e){if(e!=null)return L2(e,mwe)||L2(e,`@@iterator`)||L3[I4(e)]},hwe=$.TypeError,c6=function(e,t,n){var r,i;e4(e);try{if(!(r=L2(e,`return`))){if(t===`throw`)throw n;return n}r=l2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return e4(r),n},gwe=$.TypeError,l6=function(e,t){this.stopped=e,this.result=t},u6=l6.prototype,d6=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=o6(t,d),g=function(e){return r&&c6(r,`normal`,e),new l6(!0,e)},_=function(e){return f?(e4(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=s6(e)))throw gwe(F2(e)+` is not iterable`);if((u=i)!==void 0&&(L3.Array===u||pwe[fwe]===u)){for(a=0,o=T4(e);o>a;a++)if((s=_(e[a]))&&T2(u6,s))return s;return new l6(!1)}r=function(e,t){var n=arguments.length<2?s6(e):t;if(I2(n))return e4(l2(n,e));throw hwe(F2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=l2(c,r)).done;){try{s=_(l.value)}catch(e){c6(r,`throw`,e)}if(typeof s==`object`&&s&&T2(u6,s))return s}return new l6(!1)},_we=$.TypeError,f6=function(e,t){if(T2(t,e))return e;throw _we(`Incorrect invocation`)},p6=q2(`iterator`),m6=!1;try{var vwe=0,h6={next:function(){return{done:!!vwe++}},return:function(){m6=!0}};h6[p6]=function(){return this},Array.from(h6,(function(){throw 2}))}catch{}var g6=function(e,t){if(!t&&!m6)return!1;var n=!1;try{var r={};r[p6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},ywe=q2(`species`),_6=$.Array,bwe=function(e,t){return new(function(e){var t;return N4(e)&&(t=e.constructor,(V4(t)&&(t===_6||N4(t.prototype))||C2(t)&&(t=t[ywe])===null)&&(t=void 0)),t===void 0?_6:t}(e))(t===0?0:t)},v6=g2([].push),y6=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=V2(c),h=y2(m),g=o6(l,u),_=T4(h),v=0,y=d||bwe,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:v6(b,f)}else switch(e){case 4:return!1;case 7:v6(b,f)}return a?-1:r||i?i:b}},b6={forEach:y6(0),map:y6(1),filter:y6(2),some:y6(3),every:y6(4),find:y6(5),findIndex:y6(6),filterReject:y6(7)},x6=i6.getWeakData,xwe=_4.set,Swe=_4.getterFor,Cwe=b6.find,wwe=b6.findIndex,Twe=g2([].splice),Ewe=0,S6=function(e){return e.frozen||=new C6},C6=function(){this.entries=[]},w6=function(e,t){return Cwe(e.entries,(function(e){return e[0]===t}))};C6.prototype={get:function(e){var t=w6(this,e);if(t)return t[1]},has:function(e){return!!w6(this,e)},set:function(e,t){var n=w6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=wwe(this.entries,(function(t){return t[0]===e}));return~t&&Twe(this.entries,t,1),!!~t}};var T6,E6={getConstructor:function(e,t,n,r){var i=e((function(e,i){f6(e,a),xwe(e,{type:t,id:Ewe++,frozen:void 0}),i!=null&&d6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Swe(t),s=function(e,t,n){var r=o(e),i=x6(e4(t),!0);return!0===i?S6(r).set(t,n):i[r.id]=n,e};return Q3(a,{delete:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).delete(e):n&&H2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!C2(e))return!1;var n=x6(e);return!0===n?S6(t).has(e):n&&H2(n,t.id)}}),Q3(a,n?{get:function(e){var t=o(this);if(C2(e)){var n=x6(e);return!0===n?S6(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}},D6=_4.enforce,Dwe=!$.ActiveXObject&&`ActiveXObject`in $,O6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Owe=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=g2(s[e]);x4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!C2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!C2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(j4(e,!S2(o)||!(i||s.forEach&&!o2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),i6.enable();else if(j4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=o2((function(){d.has(1)})),m=g6((function(e){new o(e)})),h=!i&&o2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){f6(e,s);var n=function(e,t,n){var r,i;return K3&&S2(r=t.constructor)&&r!==n&&C2(i=r.prototype)&&i!==n.prototype&&K3(e,i),e}(new o,e,c);return t!=null&&d6(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,M4({global:!0,forced:c!=o},l),G3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,O6,E6);if(l4&&Dwe){T6=E6.getConstructor(O6,`WeakMap`,!0),i6.enable();var k6=Owe.prototype,A6=g2(k6.delete),j6=g2(k6.has),M6=g2(k6.get),N6=g2(k6.set);Q3(k6,{delete:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,A6(this,e)||t.frozen.delete(e)}return A6(this,e)},has:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)||t.frozen.has(e)}return j6(this,e)},get:function(e){if(C2(e)&&!r6(e)){var t=D6(this);return t.frozen||=new T6,j6(this,e)?M6(this,e):t.frozen.get(e)}return M6(this,e)},set:function(e,t){if(C2(e)&&!r6(e)){var n=D6(this);n.frozen||=new T6,j6(this,e)?N6(this,e,t):n.frozen.set(e,t)}else N6(this,e,t);return this}})}var P6={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},F6=X2(`span`).classList,I6=F6&&F6.constructor&&F6.constructor.prototype,L6=I6===Object.prototype?void 0:I6,R6=q2(`iterator`),z6=q2(`toStringTag`),B6=Z3.values,V6=function(e,t){if(e){if(e[R6]!==B6)try{r4(e,R6,B6)}catch{e[R6]=B6}if(e[z6]||r4(e,z6,t),P6[t]){for(var n in Z3)if(e[n]!==Z3[n])try{r4(e,n,Z3[n])}catch{e[n]=Z3[n]}}}};for(var H6 in P6)V6($[H6]&&$[H6].prototype,H6);V6(L6,`DOMTokenList`);var U6=function(e,t){var n=[][e];return!!n&&o2((function(){n.call(null,t||function(){throw 1},1)}))},kwe=b6.forEach,W6=U6(`forEach`)?[].forEach:function(e){return kwe(this,e,arguments.length>1?arguments[1]:void 0)},G6=function(e){if(e&&e.forEach!==W6)try{r4(e,`forEach`,W6)}catch{e.forEach=W6}};for(var K6 in P6)P6[K6]&&G6($[K6]&&$[K6].prototype);G6(L6);var q6,J6,Y6,X6,Z6=$.Promise,Q6=q2(`species`),$6=/(?:ipad|iphone|ipod).*applewebkit/i.test(E2),e8=_2($.process)==`process`,t8=$.setImmediate,n8=$.clearImmediate,Awe=$.process,r8=$.Dispatch,jwe=$.Function,i8=$.MessageChannel,Mwe=$.String,a8=0,o8={};try{q6=$.location}catch{}var s8=function(e){if(H2(o8,e)){var t=o8[e];delete o8[e],t()}},c8=function(e){return function(){s8(e)}},l8=function(e){s8(e.data)},u8=function(e){$.postMessage(Mwe(e),q6.protocol+`//`+q6.host)};t8&&n8||(t8=function(e){var t=U4(arguments,1);return o8[++a8]=function(){g3(S2(e)?e:jwe(e),void 0,t)},J6(a8),a8},n8=function(e){delete o8[e]},e8?J6=function(e){Awe.nextTick(c8(e))}:r8&&r8.now?J6=function(e){r8.now(c8(e))}:i8&&!$6?(X6=(Y6=new i8).port2,Y6.port1.onmessage=l8,J6=o6(X6.postMessage,X6)):$.addEventListener&&S2($.postMessage)&&!$.importScripts&&q6&&q6.protocol!==`file:`&&!o2(u8)?(J6=u8,$.addEventListener(`message`,l8,!1)):J6=`onreadystatechange`in X2(`script`)?function(e){Z4.appendChild(X2(`script`)).onreadystatechange=function(){Z4.removeChild(this),s8(e)}}:function(e){setTimeout(c8(e),0)});var d8,f8,p8,m8,h8,g8,_8,v8,y8={set:t8,clear:n8},Nwe=/ipad|iphone|ipod/i.test(E2)&&$.Pebble!==void 0,Pwe=/web0s(?!.*chrome)/i.test(E2),Fwe=$2.f,b8=y8.set,x8=$.MutationObserver||$.WebKitMutationObserver,S8=$.document,C8=$.process,w8=$.Promise,T8=Fwe($,`queueMicrotask`),E8=T8&&T8.value;E8||(d8=function(){var e,t;for(e8&&(e=C8.domain)&&e.exit();f8;){t=f8.fn,f8=f8.next;try{t()}catch(e){throw f8?m8():p8=void 0,e}}p8=void 0,e&&e.enter()},$6||e8||Pwe||!x8||!S8?!Nwe&&w8&&w8.resolve?((_8=w8.resolve(void 0)).constructor=w8,v8=o6(_8.then,_8),m8=function(){v8(d8)}):e8?m8=function(){C8.nextTick(d8)}:(b8=o6(b8,$),m8=function(){b8(d8)}):(h8=!0,g8=S8.createTextNode(``),new x8(d8).observe(g8,{characterData:!0}),m8=function(){g8.data=h8=!h8}));var D8,O8,k8,A8,j8=E8||function(e){var t={fn:e,next:void 0};p8&&(p8.next=t),f8||(f8=t,m8()),p8=t},Iwe=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=I2(t),this.reject=I2(n)},M8={f:function(e){return new Iwe(e)}},N8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Lwe=typeof window==`object`,P8=y8.set,Rwe=q2(`species`),F8=`Promise`,I8=_4.getterFor(F8),zwe=_4.set,Bwe=_4.getterFor(F8),L8=Z6&&Z6.prototype,R8=Z6,z8=L8,B8=$.TypeError,V8=$.document,H8=$.process,U8=M8.f,Vwe=U8,Hwe=!!(V8&&V8.createEvent&&$.dispatchEvent),W8=S2($.PromiseRejectionEvent),G8=!1,K8=j4(F8,(function(){var e=s4(R8),t=e!==String(R8);if(!t&&j2===66)return!0;if(j2>=51&&/native code/.test(e))return!1;var n=new R8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Rwe]=r,!(G8=n.then((function(){}))instanceof r)||!t&&Lwe&&!W8})),Uwe=K8||!g6((function(e){R8.all(e).catch((function(){}))})),q8=function(e){var t;return!(!C2(e)||!S2(t=e.then))&&t},J8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;j8((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&&Gwe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(B8(`Promise-chain cycle`)):(s=q8(o))?l2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Wwe(e)}))}},Y8=function(e,t,n){var r,i;Hwe?((r=V8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!W8&&(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)},Wwe=function(e){l2(P8,$,(function(){var t,n=e.facade,r=e.value;if(X8(e)&&(t=N8((function(){e8?H8.emit(`unhandledRejection`,r,n):Y8(`unhandledrejection`,n,r)})),e.rejection=e8||X8(e)?2:1,t.error))throw t.value}))},X8=function(e){return e.rejection!==1&&!e.parent},Gwe=function(e){l2(P8,$,(function(){var t=e.facade;e8?H8.emit(`rejectionHandled`,t):Y8(`rejectionhandled`,t,e.value)}))},Z8=function(e,t,n){return function(r){e(t,r,n)}},Q8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,J8(e,!0))},$8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw B8(`Promise can't be resolved itself`);var r=q8(t);r?j8((function(){var n={done:!1};try{l2(r,t,Z8($8,n,e),Z8(Q8,n,e))}catch(t){Q8(n,t,e)}})):(e.value=t,e.state=1,J8(e,!1))}catch(t){Q8({done:!1},t,e)}}};if(K8&&(z8=(R8=function(e){f6(this,z8),I2(e),l2(D8,this);var t=I8(this);try{e(Z8($8,t),Z8(Q8,t))}catch(e){Q8(t,e)}}).prototype,(D8=function(e){zwe(this,{type:F8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Q3(z8,{then:function(e,t){var n=Bwe(this),r=n.reactions,i=U8(v3(this,R8));return i.ok=!S2(e)||e,i.fail=S2(t)&&t,i.domain=e8?H8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&J8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),O8=function(){var e=new D8,t=I8(e);this.promise=e,this.resolve=Z8($8,t),this.reject=Z8(Q8,t)},M8.f=U8=function(e){return e===R8||e===k8?new O8(e):Vwe(e)},S2(Z6)&&L8!==Object.prototype)){A8=L8.then,G8||(x4(L8,`then`,(function(e,t){var n=this;return new R8((function(e,t){l2(A8,n,e,t)})).then(e,t)}),{unsafe:!0}),x4(L8,`catch`,z8.catch,{unsafe:!0}));try{delete L8.constructor}catch{}K3&&K3(L8,z8)}M4({global:!0,wrap:!0,forced:K8},{Promise:R8}),G3(R8,F8,!1),function(e){var t=w2(`Promise`),n=n4.f;s2&&t&&!t[Q6]&&n(t,Q6,{configurable:!0,get:function(){return this}})}(),k8=w2(F8),M4({target:F8,stat:!0,forced:K8},{reject:function(e){var t=U8(this);return l2(t.reject,void 0,e),t.promise}}),M4({target:F8,stat:!0,forced:K8},{resolve:function(e){return function(e,t){if(e4(e),C2(t)&&t.constructor===e)return t;var n=M8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),M4({target:F8,stat:!0,forced:Uwe},{all:function(e){var t=this,n=U8(t),r=n.resolve,i=n.reject,a=N8((function(){var n=I2(t.resolve),a=[],o=0,s=1;d6(e,(function(e){var c=o++,l=!1;s++,l2(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=U8(t),r=n.reject,i=N8((function(){var i=I2(t.resolve);d6(e,(function(e){l2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Kwe=b4.PROPER,e5=RegExp.prototype,t5=e5.toString,qwe=g2(q4),Jwe=o2((function(){return t5.call({source:`a`,flags:`b`})!=`/a/b`})),Ywe=Kwe&&t5.name!=`toString`;(Jwe||Ywe)&&x4(RegExp.prototype,`toString`,(function(){var e=e4(this),t=K4(e.source),n=e.flags;return`/`+t+`/`+K4(n===void 0&&T2(e5,e)&&!(`flags`in e5)?qwe(e):n)}),{unsafe:!0});var Xwe=b4.EXISTS,Zwe=n4.f,n5=Function.prototype,Qwe=g2(n5.toString),r5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,$we=g2(r5.exec);s2&&!Xwe&&Zwe(n5,`name`,{configurable:!0,get:function(){try{return $we(r5,Qwe(this))[1]}catch{return``}}});var i5=new WeakMap;function a5(e){return e.getMenuConfig(`uploadImage`)}function eTe(e,t){return k3(this,void 0,void 0,(function(){return A3(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;ZL(e,a,t.name,o),n(`ok`)}}}))]}))}))}function tTe(e,t){return k3(this,void 0,void 0,(function(){var n,r,i,a;return A3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=i5.get(e);if(t!=null)return t;var n=a5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=nM(O3(O3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return ZL(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;ZL(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;ZL(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),i5.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 o5(e,t){var n,r;return k3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return A3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=a5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=JCe(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,eTe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return ZL(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,tTe(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 nTe=g2([].join),rTe=y2!=Object,iTe=U6(`join`,`,`);M4({target:`Array`,proto:!0,forced:rTe||!iTe},{join:function(e){return nTe(x2(this),e===void 0?`,`:e)}}),ny&&(K.fn.append=ny),Uv&&(K.fn.on=Uv),cy&&(K.fn.remove=cy),Hv&&(K.fn.val=Hv),fy&&(K.fn.click=fy),Jv&&(K.fn.hide=Jv);var aTe=function(){function e(){this.title=Z(`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 QL(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 ZL(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=K(`body`),c=K(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;o5(e,t)}))}},e}(),oTe={menus:[{key:`uploadImage`,factory:function(){return new aTe},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(QL(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`}))?o5(e,i):t(r)}},n}};MM(`en`,{highLightModule:{selectLang:`Language`}}),MM(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var s5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function c5(e){var t={exports:{}};return e(t,t.exports),t.exports}var l5,u5,d5=function(e){return e&&e.Math==Math&&e},f5=d5(typeof globalThis==`object`&&globalThis)||d5(typeof window==`object`&&window)||d5(typeof self==`object`&&self)||d5(typeof s5==`object`&&s5)||function(){return this}()||Function(`return this`)(),sTe=Object.defineProperty,p5=function(e,t){try{sTe(f5,e,{value:t,configurable:!0,writable:!0})}catch{f5[e]=t}return t},m5=f5[`__core-js_shared__`]||p5(`__core-js_shared__`,{}),h5=c5((function(e){(e.exports=function(e,t){return m5[e]||(m5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),g5=Function.prototype,_5=g5.bind,v5=g5.call,cTe=_5&&_5.bind(v5),y5=_5?function(e){return e&&cTe(v5,e)}:function(e){return e&&function(){return v5.apply(e,arguments)}},lTe=f5.TypeError,b5=function(e){if(e==null)throw lTe(`Can't call method on `+e);return e},uTe=f5.Object,x5=function(e){return uTe(b5(e))},dTe=y5({}.hasOwnProperty),S5=Object.hasOwn||function(e,t){return dTe(x5(e),t)},fTe=0,pTe=Math.random(),mTe=y5(1 .toString),C5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+mTe(++fTe+pTe,36)},w5=function(e){return typeof e==`function`},hTe=function(e){return w5(e)?e:void 0},T5=function(e,t){return arguments.length<2?hTe(f5[e]):f5[e]&&f5[e][t]},E5=T5(`navigator`,`userAgent`)||``,D5=f5.process,O5=f5.Deno,k5=D5&&D5.versions||O5&&O5.version,A5=k5&&k5.v8;A5&&(u5=(l5=A5.split(`.`))[0]>0&&l5[0]<4?1:+(l5[0]+l5[1])),!u5&&E5&&(!(l5=E5.match(/Edge\/(\d+)/))||l5[1]>=74)&&(l5=E5.match(/Chrome\/(\d+)/))&&(u5=+l5[1]);var j5=u5,M5=function(e){try{return!!e()}catch{return!0}},N5=!!Object.getOwnPropertySymbols&&!M5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&j5&&j5<41})),P5=N5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,F5=h5(`wks`),I5=f5.Symbol,L5=I5&&I5.for,gTe=P5?I5:I5&&I5.withoutSetter||C5,R5=function(e){if(!S5(F5,e)||!N5&&typeof F5[e]!=`string`){var t=`Symbol.`+e;N5&&S5(I5,e)?F5[e]=I5[e]:F5[e]=P5&&L5?L5(t):gTe(t)}return F5[e]},z5={};z5[R5(`toStringTag`)]=`z`;var B5=String(z5)===`[object z]`,V5=!M5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),H5=function(e){return typeof e==`object`?e!==null:w5(e)},U5=f5.document,_Te=H5(U5)&&H5(U5.createElement),W5=function(e){return _Te?U5.createElement(e):{}},G5=!V5&&!M5((function(){return Object.defineProperty(W5(`div`),`a`,{get:function(){return 7}}).a!=7})),vTe=f5.String,yTe=f5.TypeError,K5=function(e){if(H5(e))return e;throw yTe(vTe(e)+` is not an object`)},q5=Function.prototype.call,J5=q5.bind?q5.bind(q5):function(){return q5.apply(q5,arguments)},Y5=y5({}.isPrototypeOf),bTe=f5.Object,X5=P5?function(e){return typeof e==`symbol`}:function(e){var t=T5(`Symbol`);return w5(t)&&Y5(t.prototype,bTe(e))},xTe=f5.String,Z5=function(e){try{return xTe(e)}catch{return`Object`}},STe=f5.TypeError,Q5=function(e){if(w5(e))return e;throw STe(Z5(e)+` is not a function`)},$5=function(e,t){var n=e[t];return n==null?void 0:Q5(n)},CTe=f5.TypeError,wTe=f5.TypeError,TTe=R5(`toPrimitive`),e7=function(e){var t=function(e,t){if(!H5(e)||X5(e))return e;var n,r=$5(e,TTe);if(r){if(t===void 0&&(t=`default`),n=J5(r,e,t),!H5(n)||X5(n))return n;throw wTe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&w5(n=e.toString)&&!H5(r=J5(n,e))||w5(n=e.valueOf)&&!H5(r=J5(n,e))||t!==`string`&&w5(n=e.toString)&&!H5(r=J5(n,e)))return r;throw CTe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return X5(t)?t:t+``},ETe=f5.TypeError,t7=Object.defineProperty,n7={f:V5?t7:function(e,t,n){if(K5(e),t=e7(t),K5(n),G5)try{return t7(e,t,n)}catch{}if(`get`in n||`set`in n)throw ETe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},r7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},i7=V5?function(e,t,n){return n7.f(e,t,r7(1,n))}:function(e,t,n){return e[t]=n,e},DTe=y5(Function.toString);w5(m5.inspectSource)||(m5.inspectSource=function(e){return DTe(e)});var a7,o7,s7,c7=m5.inspectSource,l7=f5.WeakMap,OTe=w5(l7)&&/native code/.test(c7(l7)),u7=h5(`keys`),d7=function(e){return u7[e]||(u7[e]=C5(e))},f7={},p7=f5.TypeError,kTe=f5.WeakMap;if(OTe||m5.state){var m7=m5.state||=new kTe,ATe=y5(m7.get),h7=y5(m7.has),jTe=y5(m7.set);a7=function(e,t){if(h7(m7,e))throw new p7(`Object already initialized`);return t.facade=e,jTe(m7,e,t),t},o7=function(e){return ATe(m7,e)||{}},s7=function(e){return h7(m7,e)}}else{var g7=d7(`state`);f7[g7]=!0,a7=function(e,t){if(S5(e,g7))throw new p7(`Object already initialized`);return t.facade=e,i7(e,g7,t),t},o7=function(e){return S5(e,g7)?e[g7]:{}},s7=function(e){return S5(e,g7)}}var _7={set:a7,get:o7,has:s7,enforce:function(e){return s7(e)?o7(e):a7(e,{})},getterFor:function(e){return function(t){var n;if(!H5(t)||(n=o7(t)).type!==e)throw p7(`Incompatible receiver, `+e+` required`);return n}}},v7=Function.prototype,MTe=V5&&Object.getOwnPropertyDescriptor,y7=S5(v7,`name`),b7={EXISTS:y7,PROPER:y7&&function(){}.name===`something`,CONFIGURABLE:y7&&(!V5||V5&&MTe(v7,`name`).configurable)},x7=c5((function(e){var t=b7.CONFIGURABLE,n=_7.get,r=_7.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;w5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!S5(a,`name`)||t&&a.name!==d)&&i7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===f5?l?e[n]=a:p5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:i7(e,n,a))})(Function.prototype,`toString`,(function(){return w5(this)&&n(this).source||c7(this)}))})),NTe=y5({}.toString),PTe=y5(``.slice),S7=function(e){return PTe(NTe(e),8,-1)},FTe=R5(`toStringTag`),ITe=f5.Object,LTe=S7(function(){return arguments}())==`Arguments`,C7=B5?S7: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=ITe(e),FTe))==`string`?n:LTe?S7(t):(r=S7(t))==`Object`&&w5(t.callee)?`Arguments`:r},RTe=B5?{}.toString:function(){return`[object `+C7(this)+`]`};B5||x7(Object.prototype,`toString`,RTe,{unsafe:!0});var w7,T7={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},E7=W5(`span`).classList,D7=E7&&E7.constructor&&E7.constructor.prototype,zTe=D7===Object.prototype?void 0:D7,O7=y5(y5.bind),k7=f5.Object,BTe=y5(``.split),A7=M5((function(){return!k7(`z`).propertyIsEnumerable(0)}))?function(e){return S7(e)==`String`?BTe(e,``):k7(e)}:k7,VTe=Math.ceil,HTe=Math.floor,j7=function(e){var t=+e;return t!=t||t===0?0:(t>0?HTe:VTe)(t)},UTe=Math.min,M7=function(e){return e>0?UTe(j7(e),9007199254740991):0},N7=function(e){return M7(e.length)},P7=Array.isArray||function(e){return S7(e)==`Array`},F7=function(){},WTe=[],I7=T5(`Reflect`,`construct`),L7=/^\s*(?:class|function)\b/,GTe=y5(L7.exec),KTe=!L7.exec(F7),R7=function(e){if(!w5(e))return!1;try{return I7(F7,WTe,e),!0}catch{return!1}},z7=!I7||M5((function(){var e;return R7(R7.call)||!R7(Object)||!R7((function(){e=!0}))||e}))?function(e){if(!w5(e))return!1;switch(C7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return KTe||!!GTe(L7,c7(e))}:R7,qTe=R5(`species`),B7=f5.Array,JTe=function(e,t){return new(function(e){var t;return P7(e)&&(t=e.constructor,(z7(t)&&(t===B7||P7(t.prototype))||H5(t)&&(t=t[qTe])===null)&&(t=void 0)),t===void 0?B7:t}(e))(t===0?0:t)},V7=y5([].push),H7=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=x5(c),h=A7(m),g=function(e,t){return Q5(e),t===void 0?e:O7?O7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=N7(h),v=0,y=d||JTe,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:V7(b,f)}else switch(e){case 4:return!1;case 7:V7(b,f)}return a?-1:r||i?i:b}},YTe=[H7(0),H7(1),H7(2),H7(3),H7(4),H7(5),H7(6),H7(7)][0],U7=(w7=[].forEach)&&M5((function(){w7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return YTe(this,e,arguments.length>1?arguments[1]:void 0)},W7=function(e){if(e&&e.forEach!==U7)try{i7(e,`forEach`,U7)}catch{e.forEach=U7}};for(var G7 in T7)T7[G7]&&W7(f5[G7]&&f5[G7].prototype);W7(zTe);var K7={}.propertyIsEnumerable,q7=Object.getOwnPropertyDescriptor,J7={f:q7&&!K7.call({1:2},1)?function(e){var t=q7(this,e);return!!t&&t.enumerable}:K7},Y7=function(e){return A7(b5(e))},X7=Object.getOwnPropertyDescriptor,Z7={f:V5?X7:function(e,t){if(e=Y7(e),t=e7(t),G5)try{return X7(e,t)}catch{}if(S5(e,t))return r7(!J5(J7.f,e,t),e[t])}},XTe=Math.max,ZTe=Math.min,Q7=function(e,t){var n=j7(e);return n<0?XTe(n+t,0):ZTe(n,t)},QTe=function(e){return function(t,n,r){var i,a=Y7(t),o=N7(a),s=Q7(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),$7=y5([].push),e9=function(e,t){var n,r=Y7(e),i=0,a=[];for(n in r)!S5(f7,n)&&S5(r,n)&&$7(a,n);for(;t.length>i;)S5(r,n=t[i++])&&(~QTe(a,n)||$7(a,n));return a},t9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],$Te=t9.concat(`length`,`prototype`),eEe={f:Object.getOwnPropertyNames||function(e){return e9(e,$Te)}},n9={f:Object.getOwnPropertySymbols},tEe=y5([].concat),nEe=T5(`Reflect`,`ownKeys`)||function(e){var t=eEe.f(K5(e)),n=n9.f;return n?tEe(t,n(e)):t},rEe=function(e,t){for(var n=nEe(t),r=n7.f,i=Z7.f,a=0;a<n.length;a++){var o=n[a];S5(e,o)||r(e,o,i(t,o))}},iEe=/#|\.prototype\./,r9=function(e,t){var n=oEe[aEe(e)];return n==cEe||n!=sEe&&(w5(t)?M5(t):!!t)},aEe=r9.normalize=function(e){return String(e).replace(iEe,`.`).toLowerCase()},oEe=r9.data={},sEe=r9.NATIVE=`N`,cEe=r9.POLYFILL=`P`,lEe=r9,uEe=Z7.f,i9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?f5:l?f5[s]||p5(s,{}):(f5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=uEe(n,r))&&o.value:n[r],!lEe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;rEe(a,i)}(e.sham||i&&i.sham)&&i7(a,`sham`,!0),x7(n,r,a,e)}},a9=Object.keys||function(e){return e9(e,t9)},o9=Object.assign,s9=Object.defineProperty,dEe=y5([].concat),c9=!o9||M5((function(){if(V5&&o9({b:1},o9(s9({},`a`,{enumerable:!0,get:function(){s9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),o9({},e)[n]!=7||a9(o9({},t)).join(``)!=r}))?function(e,t){for(var n=x5(e),r=arguments.length,i=1,a=n9.f,o=J7.f;r>i;)for(var s,c=A7(arguments[i++]),l=a?dEe(a9(c),a(c)):a9(c),u=l.length,d=0;u>d;)s=l[d++],V5&&!J5(o,c,s)||(n[s]=c[s]);return n}:o9;i9({target:`Object`,stat:!0,forced:Object.assign!==c9},{assign:c9});var l9=c5((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,ee=C;for(ee+=S.value.length;D>=ee;)ee+=(S=S.next).value.length;if(C=ee-=S.value.length,S.value instanceof a)continue;for(var k=S;k!==t.tail&&(ee<O||typeof k.value==`string`);k=k.next)E++,ee+=k.value.length;E--,w=e.slice(C,ee),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var A=T[0],j=w.slice(0,D),te=w.slice(D+A.length),M=C+w.length;d&&M>d.reach&&(d.reach=M);var ne=S.prev;if(j&&(ne=l(t,ne,j),C+=j.length),u(t,ne,E),S=l(t,ne,new a(f,g?i.tokenize(A,g):A,y,A)),te&&l(t,S,te),E>1){var re={cause:f+`,`+m,reach:M};s(e,t,n,S.prev,C,re),d&&re.reach>d.reach&&(d.reach=re.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,s5!==void 0&&(s5.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`,ee=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,ee]),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 k=`:[^}\\r\\n]+`,A=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),j=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[A,k]),te=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),M=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[te,k]);function ne(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,k]),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>>|[^\\\\{"])*"`,[j]),lookbehind:!0,greedy:!0,inside:ne(j,A)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[M]),lookbehind:!0,greedy:!0,inside:ne(M,te)}]})}(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 fEe=`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 u9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+u9(t)}),0)}var d9,pEe=f5.String,f9=function(e){if(C7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return pEe(e)},p9=function(){var e=K5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},m9=f5.RegExp,h9=M5((function(){var e=m9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),mEe=h9||M5((function(){return!m9(`a`,`y`).sticky})),g9={BROKEN_CARET:h9||M5((function(){var e=m9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:mEe,UNSUPPORTED_Y:h9},hEe=V5?Object.defineProperties:function(e,t){K5(e);for(var n,r=Y7(t),i=a9(t),a=i.length,o=0;a>o;)n7.f(e,n=i[o++],r[n]);return e},gEe=T5(`document`,`documentElement`),_9=d7(`IE_PROTO`),v9=function(){},y9=function(e){return`<script>`+e+`<\/script>`},b9=function(e){e.write(y9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},x9=function(){try{d9=new ActiveXObject(`htmlfile`)}catch{}var e,t;x9=typeof document<`u`?document.domain&&d9?b9(d9):((t=W5(`iframe`)).style.display=`none`,gEe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(y9(`document.F=Object`)),e.close(),e.F):b9(d9);for(var n=t9.length;n--;)delete x9.prototype[t9[n]];return x9()};f7[_9]=!0;var S9,C9,_Ee=Object.create||function(e,t){var n;return e===null?n=x9():(v9.prototype=K5(e),n=new v9,v9.prototype=null,n[_9]=e),t===void 0?n:hEe(n,t)},vEe=f5.RegExp,yEe=M5((function(){var e=vEe(`.`,`s`);return!(e.dotAll&&e.exec(`
|
|
|
`)&&e.flags===`s`)})),bEe=f5.RegExp,xEe=M5((function(){var e=bEe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),SEe=_7.get,CEe=h5(`native-string-replace`,String.prototype.replace),w9=RegExp.prototype.exec,T9=w9,wEe=y5(``.charAt),TEe=y5(``.indexOf),EEe=y5(``.replace),E9=y5(``.slice),D9=(C9=/b*/g,J5(w9,S9=/a/,`a`),J5(w9,C9,`a`),S9.lastIndex!==0||C9.lastIndex!==0),O9=g9.BROKEN_CARET,k9=/()??/.exec(``)[1]!==void 0;(D9||k9||O9||yEe||xEe)&&(T9=function(e){var t,n,r,i,a,o,s,c=this,l=SEe(c),u=f9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=J5(T9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=O9&&c.sticky,m=J5(p9,c),h=c.source,g=0,_=u;if(p&&(m=EEe(m,`y`,``),TEe(m,`g`)===-1&&(m+=`g`),_=E9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&wEe(u,c.lastIndex-1)!==`
|
|
|
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),k9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),D9&&(r=c.lastIndex),i=J5(w9,p?n:c,_),p?i?(i.input=E9(i.input,g),i[0]=E9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:D9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),k9&&i&&i.length>1&&J5(CEe,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=_Ee(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var A9=T9;i9({target:`RegExp`,proto:!0,forced:/./.exec!==A9},{exec:A9});var j9=Function.prototype,M9=j9.apply,DEe=j9.bind,N9=j9.call,OEe=typeof Reflect==`object`&&Reflect.apply||(DEe?N9.bind(M9):function(){return N9.apply(M9,arguments)}),kEe=R5(`species`),P9=RegExp.prototype,AEe=R5(`match`),jEe=f5.TypeError,MEe=R5(`species`),NEe=y5(``.charAt),F9=y5(``.charCodeAt),PEe=y5(``.slice),FEe=function(e){return function(t,n){var r,i,a=f9(b5(t)),o=j7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=F9(a,o))<55296||r>56319||o+1===s||(i=F9(a,o+1))<56320||i>57343?e?NEe(a,o):r:e?PEe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),IEe=function(e,t,n){return t+(n?FEe(e,t).length:1)},LEe=f5.Array,REe=Math.max,I9=function(e,t,n){for(var r,i,a,o,s=N7(e),c=Q7(t,s),l=Q7(n===void 0?s:n,s),u=LEe(REe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=e7(i))in r?n7.f(r,o,r7(0,a)):r[o]=a;return u.length=d,u},zEe=f5.TypeError,L9=function(e,t){var n=e.exec;if(w5(n)){var r=J5(n,e,t);return r!==null&&K5(r),r}if(S7(e)===`RegExp`)return J5(A9,e,t);throw zEe(`RegExp#exec called on incompatible receiver`)},R9=g9.UNSUPPORTED_Y,BEe=Math.min,z9=[].push,VEe=y5(/./.exec),B9=y5(z9),V9=y5(``.slice);(function(e,t,n,r){var i=R5(e),a=!M5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!M5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[kEe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=y5(/./[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=f9(b5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!H5(r=e)||!((i=r[AEe])===void 0?S7(r)==`RegExp`:i))return J5(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=J5(A9,p,a))&&!((c=p.lastIndex)>f&&(B9(u,V9(a,f,s.index)),s.length>1&&s.index<a.length&&OEe(z9,u,I9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&VEe(p,``)||B9(u,``):B9(u,V9(a,f)),u.length>o?I9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:J5(t,this,e,n)}:t,[function(t,n){var i=b5(this),a=t==null?void 0:$5(t,e);return a?J5(a,t,i,n):J5(r,f9(i),t,n)},function(e,i){var a=K5(this),o=f9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=K5(e).constructor;return r===void 0||(n=K5(r)[MEe])==null?t:function(e){if(z7(e))return e;throw jEe(Z5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(R9?`g`:`y`),d=new c(R9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return L9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=R9?0:m;var g,_=L9(d,R9?V9(o,m):o);if(_===null||(g=BEe(M7(d.lastIndex+(R9?m:0)),o.length))===p)m=IEe(o,m,l);else{if(B9(h,V9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(B9(h,_[v]),h.length===f)return h;m=p=g}}return B9(h,V9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=y5(e),c=t.exec;return c===A9||c===P9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));x7(String.prototype,e,c[0]),x7(P9,i,c[1])}r&&i7(P9[i],`sham`,!0)})(`split`,0,!!M5((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`})),R9),i9({global:!0},{globalThis:f5}),zv&&(K.fn.attr=zv);var HEe=b7.PROPER,H9=RegExp.prototype,U9=H9.toString,UEe=y5(p9),WEe=M5((function(){return U9.call({source:`a`,flags:`b`})!=`/a/b`})),GEe=HEe&&U9.name!=`toString`;(WEe||GEe)&&x7(RegExp.prototype,`toString`,(function(){var e=K5(this),t=f9(e.source),n=e.flags;return`/`+t+`/`+f9(n===void 0&&Y5(H9,e)&&!(`flags`in H9)?UEe(e):n)}),{unsafe:!0});var KEe=function(){function e(){this.title=Z(`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||!z.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()};G.setNodes(e,n,{match:function(e){return X.checkNodeType(e,`code`)}})}},e.prototype.getSelectCodeElem=function(e){var t=X.getSelectedNodeByType(e,`code`);if(t==null)return null;var n=X.getParentNode(e,t);return z.isElement(n)&&n.type===`pre`?t:null},e}(),qEe={renderStyle:function(e,t){var n=e,r=t,i=``;return fEe.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=K(e);if(!z.isElement(t)||X.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 KEe},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>`}}]},JEe=/"/g,YEe=y5(``.replace);i9({target:`String`,proto:!0,forced:M5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=f9(b5(this)),r=`<a`,(r+=` name="`+YEe(f9(t),JEe,`"`)+`"`)+`>`+n+`</a>`;var t,n,r}});var W9=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(!W.isText(e))return null;var t=X.getParentNode(null,e);if(t&&X.getNodeType(t)===`code`){var n=X.getParentNode(null,t);if(n&&X.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=l9.languages[t];return n?l9.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+u9(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},G9=function(){return G9=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},G9.apply(this,arguments)},K9=function(){function e(){throw Error(`不能实例化
|
|
|
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=G9(G9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=G9(G9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=G9(G9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=G9(G9({},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=eD(eD({},i),t||{});if(OO[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);OO[n]=r,function(e,t){t!=null&&(DO[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;Sj[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){xj.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;PO[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){NO.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){oA.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;cA[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){sA.push(e)})(e)},e.registerModule=function(e){q9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function q9(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 K9.registerMenu(e)})),n&&n.forEach((function(e){return K9.registerRenderElem(e)})),r&&K9.registerRenderStyle(r),i&&i.forEach((function(e){return K9.registerElemToHtml(e)})),a&&K9.registerStyleToHtml(a),o&&o.forEach((function(e){return K9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return K9.registerParseElemHtml(e)})),c&&K9.registerParseStyleHtml(c),l&&K9.registerPlugin(l)}_V.forEach((function(e){return q9(e)})),q9(Vge),q9(lye),q9(_Se),q9(oTe),q9(qEe);var J9=`<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>`,Y9={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`]}},XEe={hoverbarKeys:G9(G9({},Y9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};K9.setEditorConfig(G9(G9({},XEe),{decorate:W9}));var ZEe={hoverbarKeys:Y9};K9.setSimpleEditorConfig(G9(G9({},ZEe),{decorate:W9}));var QEe={toolbarKeys:[`headerSelect`,`blockquote`,`|`,`bold`,`underline`,`italic`,{key:`group-more-style`,title:Z(`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:Z(`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:Z(`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:Z(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},{key:`group-video`,title:Z(`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`]};K9.setToolbarConfig(QEe);var $Ee={toolbarKeys:[`blockquote`,`header1`,`header2`,`header3`,`|`,`bold`,`underline`,`italic`,`through`,`color`,`bgColor`,`clearStyle`,`|`,`bulletedList`,`numberedList`,`todo`,`justifyLeft`,`justifyRight`,`justifyCenter`,`|`,`insertLink`,{key:`group-image`,title:Z(`editor.image`),iconSvg:J9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function eDe(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`?K9.simpleEditorConfig:K9.editorConfig,u=G9(G9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return tde({selector:n,config:G9(G9(G9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:K9.plugins})}function tDe(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`?K9.simpleToolbarConfig:K9.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 kA(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new ode(n,eD({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return VD.set(a,e),HD.set(e,a),a}(n,{selector:t,config:G9(G9({},s),i)})}K9.setSimpleToolbarConfig($Ee);var nDe=Object.defineProperty,rDe=Object.defineProperties,iDe=Object.getOwnPropertyDescriptors,X9=Object.getOwnPropertySymbols,aDe=Object.prototype.hasOwnProperty,oDe=Object.prototype.propertyIsEnumerable,Z9=(e,t,n)=>t in e?nDe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,sDe=(e,t)=>{for(var n in t||={})aDe.call(t,n)&&Z9(e,n,t[n]);if(X9)for(var n of X9(t))oDe.call(t,n)&&Z9(e,n,t[n]);return e},cDe=(e,t)=>rDe(e,iDe(t));function Q9(e){let t=`\u8BF7\u4F7F\u7528 '@${e}' \u4E8B\u4EF6\uFF0C\u4E0D\u8981\u653E\u5728 props \u4E2D`;return t+=`
|
|
|
Please use '@${e}' event instead of props`,t}var $9=(e,t)=>{for(let[n,r]of t)e[n]=r;return e},lDe=ue({props:{mode:{type:String,default:`default`},defaultContent:{type:Array,default:[]},defaultHtml:{type:String,default:``},defaultConfig:{type:Object,default:{}},modelValue:{type:String,default:``}},setup(e,t){let n=M(null),r=ae(null),i=M(``),a=()=>{if(!n.value)return;let a=xe(e.defaultContent);eDe({selector:n.value,mode:e.mode,content:a||[],html:e.defaultHtml||e.modelValue||``,config:cDe(sDe({},e.defaultConfig),{onCreated(n){if(r.value=n,t.emit(`onCreated`,n),e.defaultConfig.onCreated){let e=Q9(`onCreated`);throw Error(e)}},onChange(n){let r=n.getHtml();if(i.value=r,t.emit(`update:modelValue`,r),t.emit(`onChange`,n),e.defaultConfig.onChange){let e=Q9(`onChange`);throw Error(e)}},onDestroyed(n){if(t.emit(`onDestroyed`,n),e.defaultConfig.onDestroyed){let e=Q9(`onDestroyed`);throw Error(e)}},onMaxLength(n){if(t.emit(`onMaxLength`,n),e.defaultConfig.onMaxLength){let e=Q9(`onMaxLength`);throw Error(e)}},onFocus(n){if(t.emit(`onFocus`,n),e.defaultConfig.onFocus){let e=Q9(`onFocus`);throw Error(e)}},onBlur(n){if(t.emit(`onBlur`,n),e.defaultConfig.onBlur){let e=Q9(`onBlur`);throw Error(e)}},customAlert(n,r){if(t.emit(`customAlert`,n,r),e.defaultConfig.customAlert){let e=Q9(`customAlert`);throw Error(e)}},customPaste:(n,r)=>{if(e.defaultConfig.customPaste){let e=Q9(`customPaste`);throw Error(e)}let i;return t.emit(`customPaste`,n,r,e=>{i=e}),i}})})};function o(e){r.value?.setHtml(e)}return D(()=>{a()}),re(()=>e.modelValue,e=>{e!==i.value&&o(e)}),{box:n}}}),uDe={ref:`box`,style:{height:`100%`}};function dDe(e,t,n,r,i,a){return _e(),be(`div`,uDe,null,512)}var fDe=$9(lDe,[[`render`,dDe]]),pDe=ue({props:{editor:{type:Object},mode:{type:String,default:`default`},defaultConfig:{type:Object,default:{}}},setup(e){let t=M(null),n=n=>{if(t.value){if(n==null)throw Error(`Not found instance of Editor when create <Toolbar/> component`);X.getToolbar(n)||tDe({editor:n,selector:t.value||`<div></div>`,mode:e.mode,config:e.defaultConfig})}};return he(()=>{let{editor:t}=e;t!=null&&n(t)}),{selector:t}}}),mDe={ref:`selector`};function hDe(e,t,n,r,i,a){return _e(),be(`div`,mDe,null,512)}var gDe=$9(pDe,[[`render`,hDe]]),_De={class:`pledge-rich-editor`},vDe=De(ue({__name:`PledgeRichTextEditor`,props:{modelValue:{default:``}},emits:[`update:modelValue`],setup(e,{emit:t}){let n=e,r=t,i=ae(void 0),a=M(n.modelValue||``);re(()=>n.modelValue,e=>{let t=e||``;if(t===a.value)return;a.value=t;let n=i.value;n!=null&&n.getHtml()!==t&&n.setHtml(t||`<p><br></p>`)}),re(a,e=>{r(`update:modelValue`,e)});let o={excludeKeys:[`uploadImage`,`group-video`,`emotion`]},s={placeholder:`编辑参赛承诺书正文,保存后选手端签署弹窗将展示此处内容…`};function c(e){i.value=e}return T(()=>{let e=i.value;e!=null&&(e.destroy(),i.value=void 0)}),(e,t)=>(_e(),be(`div`,_De,[v(u(gDe),{class:`pledge-rich-editor__toolbar`,editor:i.value,"default-config":o,mode:`default`},null,8,[`editor`]),v(u(fDe),{modelValue:a.value,"onUpdate:modelValue":t[0]||=e=>a.value=e,class:`pledge-rich-editor__editor`,"default-config":s,mode:`default`,onOnCreated:c},null,8,[`modelValue`])]))}}),[[`__scopeId`,`data-v-7f4e69bd`]]),yDe={class:`competition-workspace`},bDe={class:`workspace-header`},xDe={class:`workspace-title`},SDe={class:`login-links-stack`},CDe={class:`login-link-label`},wDe=[`href`],TDe={class:`tracks-pane`},EDe={class:`pane-toolbar pane-toolbar--split`},DDe={class:`cell-muted`},ODe={class:`channels-pane`},kDe={class:`pane-toolbar pane-toolbar--split`},ADe={class:`cell-muted`},jDe={class:`cell-muted`},MDe={class:`applications-pane`},NDe={class:`applications-toolbar`},PDe={class:`application-filters`},FDe={class:`application-actions`},IDe={key:0,class:`export-selected-count`},LDe={key:0,class:`applications-selection-hint`},RDe={class:`cell-muted`},zDe={class:`cell-muted`},BDe={class:`cell-muted`},VDe={class:`cell-muted`},HDe={class:`cell-muted`},UDe={class:`cell-muted`},WDe={class:`cell-muted`},GDe={class:`table-pagination`},KDe={class:`form-hint`},qDe={class:`pane-toolbar`},JDe={class:`cell-muted`},YDe={class:`section-block`},XDe={class:`form-hint`},ZDe={class:`pane-toolbar`},QDe={class:`cell-muted`},$De={class:`section-block`},eOe={class:`pane-toolbar pane-toolbar--wrap`},tOe={class:`application-detail`},nOe={key:0,class:`mb-3 d-flex justify-content-end`},rOe={class:`application-intro`},iOe={class:`review-summary`},aOe={key:0,class:`text-danger small mt-2 mb-0`},oOe={class:`pane-toolbar pane-toolbar--split mb-2`},sOe={class:`form-hint pane-toolbar-tip`},cOe=De(ue({__name:`CompetitionFormView`,setup(e){let t=[{tab:`basic`,label:`基础信息`},{tab:`tracks`,label:`赛道管理`},{tab:`channels`,label:`渠道管理`},{tab:`applications`,label:`报名信息`},{tab:`signupForm`,label:`报名表配置`},{tab:`review`,label:`评审与计分`},{tab:`brand`,label:`品牌与文案`}],n=Ee(),r=L(),i=Ie(),o=Te(),{selectedCompetitionId:l}=Se(i),d=ie(()=>(o.user?.username??``).trim()===`superadmin`),f=M(!1),p=()=>r.name===`admin-competition-new`,m=M(null),h=M(!1),g=M(null),_=M({slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_content_html:``,success_notice_enabled:!1,success_notice_message:``,review_portal_enabled:!0,review_portal_message:``,post_close_file_edit_enabled:!1,post_close_file_edit_mobiles:``}),y=M(Re()),x=M({}),S=M([]),w=M(!1),T=M([]),E=M(!1),O=M([]),ee=M(!1),A=M([]),te=M([]),ne=M(!1),ae=M(!1),ce=M(``),le=M(!1),ue=M(!1),de=M(null),fe=M({page:1,perPage:15,total:0}),pe=M({keyword:``,status:`submitted`,track:``,signup_channel_id:void 0,public_source_channel_id:void 0}),me=M(!1),he=M(null),ve=M({track_code:``,title:``,description:``,sort:0,is_enabled:!0,scoring_sheet_title:``,scoring_items:[]});function ye(e=1){return{key:``,sort:e,category:`通用指标`,title:``,criteria:``,max_score:0}}let xe=ie(()=>ve.value.scoring_items.reduce((e,t)=>e+(Number(t.max_score)||0),0)),we=M(!1),De=M(null),rt=M(!1),it=M(null),at=M({channel_name:``,status:`enabled`,shared_secret:``,entry_encryption_enabled:!1,success_callback_url:``,success_callback_type:`web`,mini_program_callback_path:null,mini_program_callback_method:`redirectTo`,remark:null}),ot=M(!1),ct=M(`basic`),lt=M([]),ut=M([]),dt=M(!1),ft=M(``),pt=M(``);function mt(){return{key:``,weight:1,min:0,max:100}}let ht=M([mt()]),gt=M(!1),_t=M(`signup`),vt=M(``),yt=M(!1),bt=M(null),xt=M(``),St=M(`[]`),Ct=M(``),wt=M(`signup`),Tt=M([]),Et=M(`visual`),Dt=ie(()=>{if(p())return`新建赛事`;let e=t.find(e=>e.tab===ct.value)?.label;return e?`赛事中心 · ${e}`:`赛事中心`}),Ot=ie(()=>String(m.value??`new`));function kt(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.success_notice:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:{};return{enabled:n.enabled===!0,message:typeof n.message==`string`?n.message:``}}function At(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.review_portal:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:null;return n?{enabled:n.enabled!==!1&&n.enabled!==0&&n.enabled!==`0`,message:typeof n.message==`string`?n.message:``}:{enabled:!0,message:``}}function jt(e){let t=e&&typeof e==`object`&&!Array.isArray(e)?e.post_close_file_edit:null,n=t&&typeof t==`object`&&!Array.isArray(t)?t:null;if(!n)return{enabled:!1,user_mobiles:[]};let r=(Array.isArray(n.user_mobiles)?n.user_mobiles:[]).map(e=>String(e??``).replace(/\s+/g,``).trim()).filter(e=>/^1[3-9]\d{9}$/.test(e));return{enabled:n.enabled===!0||n.enabled===1||n.enabled===`1`,user_mobiles:[...new Set(r)]}}function Mt(e){let t=e.split(/[\n,,;;\s]+/).map(e=>e.replace(/\s+/g,``).trim()).filter(Boolean);return[...new Set(t)]}function Nt(){let e={...x.value},t=_.value.success_notice_enabled,n=_.value.success_notice_message.trim();t&&n?e.success_notice={enabled:!0,message:n}:delete e.success_notice,e.review_portal={enabled:_.value.review_portal_enabled!==!1,message:_.value.review_portal_message.trim()};let r=Mt(_.value.post_close_file_edit_mobiles);return _.value.post_close_file_edit_enabled?e.post_close_file_edit={enabled:!0,user_mobiles:r}:delete e.post_close_file_edit,Object.keys(e).length>0?e:null}function Pt(e){return`${typeof window<`u`?window.location.origin:``}${`/admin/`.replace(/\/$/,``)}${e.startsWith(`/`)?e:`/${e}`}`}let Ft=ie(()=>{let e=_.value.slug.trim(),t=[];if(e){let n=encodeURIComponent(e);t.push({label:`选手登录`,href:Pt(`/c/${n}/login`)}),t.push({label:`评审端入口`,href:Pt(`/c/${n}/review`)}),t.push({label:`赛事管理登录`,href:Pt(`/c/${n}/manage/login`)})}return t.push({label:`管理后台登录`,href:Pt(`/admin/login`)}),t.push({label:`赛事工作台(需先登录管理端)`,href:Pt(`/admin/competition/workspace`)}),t});re(Et,e=>{e===`json`?It():Lt()});function It(){St.value=JSON.stringify(Qc(Tt.value,wt.value),null,2)}function Lt(){try{let e=JSON.parse(St.value);Array.isArray(e)&&(Tt.value=Zc(e,wt.value))}catch{}}re(()=>r.name,e=>{(e===`admin-competition-new`||e===`admin-competition-edit`)&&(ct.value=`basic`)},{immediate:!0}),re(ct,e=>{m.value&&(e===`channels`&&an(),e===`applications`&&(an(),on(),vn()),e===`signupForm`&&Vt(),e===`review`&&Ht())});function Rt(){if(p())return null;let e=r.params.id;if(e!=null&&String(e)!==``){let t=Number(e);if(Number.isFinite(t))return t}let t=l.value;return t&&t>0?t:null}function zt(e){return Ve(e)}function Bt(e){return Be(e)}async function Vt(){let e=m.value;if(e){dt.value=!0;try{let t=await Qe(e,`signup`);lt.value=t.data,t.signupFieldRegistry&&st(t.signupFieldRegistry)}catch(e){I.error(e instanceof Error?e.message:`加载报名表列表失败`)}finally{dt.value=!1}}}async function Ht(){let e=m.value;if(e){dt.value=!0;try{ut.value=(await Qe(e,`review`)).data}catch(e){I.error(e instanceof Error?e.message:`加载评审表列表失败`)}finally{dt.value=!1}}}function Ut(e){ft.value=e.scoring_rules_json==null?``:JSON.stringify(e.scoring_rules_json,null,2),Wt()}function Wt(){let e=ft.value.trim();if(!e){ht.value=[mt()];return}try{let t=JSON.parse(e);if(t&&Array.isArray(t.dimensions)&&t.dimensions.length>0){ht.value=t.dimensions.map(e=>({key:String(e.key??``),weight:Number(e.weight)||0,min:e.min==null?0:Number(e.min),max:e.max==null?100:Number(e.max)}));return}}catch{}ht.value=[mt()]}function Gt(){ht.value=[...ht.value,mt()]}function Kt(e){if(ht.value.length<=1){ht.value=[mt()];return}ht.value=ht.value.filter((t,n)=>n!==e)}function qt(e){return{version:1,source:`custom`,dimensions:e.filter(e=>e.key.trim()).map(e=>({key:e.key.trim(),weight:Number(e.weight)||0,min:Number(e.min)||0,max:Number(e.max)||0})),line_total_formula:`weighted_sum`,team_aggregate:{sum:{on:`line_total`},average:{on:`line_total`,denominator:`submitted_review_count`}},constraints:{min_reviewers_for_avg:1},tie_break:`submitted_at_asc`}}function Jt(){if(!ht.value.filter(e=>e.key.trim()).length){I.warning(`请至少填写一行「维度 key」(须与评审表 number 类字段的 name/key 一致)`);return}let e=qt(ht.value);ft.value=JSON.stringify(e,null,2),pt.value=``}async function Yt(){if(p()){m.value=null,h.value=!1,g.value=null,y.value=Re(),_.value={slug:``,name:``,description:``,status:`draft`,published:!1,signup_open_at:null,signup_close_at:null,pledge_content_html:``,success_notice_enabled:!1,success_notice_message:``,review_portal_enabled:!0,review_portal_message:``,post_close_file_edit_enabled:!1,post_close_file_edit_mobiles:``},x.value={};return}let e=Rt();if(!e){m.value=null,g.value=null,h.value=!0;return}h.value=!1,m.value=e,i.selectCompetition(e);try{let t=await ke(e);g.value=t,_.value={slug:t.slug,name:t.name,description:t.description??``,status:t.status,published:t.published,signup_open_at:zt(t.signup_open_at),signup_close_at:zt(t.signup_close_at),pledge_content_html:t.pledge_content_html??``,success_notice_enabled:kt(t.settings).enabled,success_notice_message:kt(t.settings).message,review_portal_enabled:At(t.settings).enabled,review_portal_message:At(t.settings).message,post_close_file_edit_enabled:jt(t.settings).enabled,post_close_file_edit_mobiles:jt(t.settings).user_mobiles.join(`
|
|
|
`)},x.value=t.settings&&typeof t.settings==`object`&&!Array.isArray(t.settings)?{...t.settings}:{},y.value=ze(t.branding_json),Ut(t),await nn(),ct.value===`channels`&&await an(),ct.value===`applications`&&await vn(),ct.value===`signupForm`&&await Vt(),ct.value===`review`&&await Ht()}catch(e){g.value=null,I.error(e instanceof Error?e.message:`加载赛事详情失败`)}}re(()=>[r.fullPath,l.value],()=>{Yt()});function Xt(){let e=Le(y.value);return{slug:_.value.slug.trim(),name:_.value.name.trim(),description:_.value.description.trim()||null,status:_.value.status,published:_.value.published,signup_open_at:Bt(_.value.signup_open_at),signup_close_at:Bt(_.value.signup_close_at),branding_json:e??null,pledge_content_html:_.value.pledge_content_html?.trim()?_.value.pledge_content_html:null,settings:Nt()}}async function Zt(){ot.value=!0;try{let e=Xt();if(!e.slug||!e.name){I.warning(`请填写赛事名称和访问地址`);return}if(_.value.success_notice_enabled&&!_.value.success_notice_message.trim()){I.warning(`请填写报名成功提示语,或关闭该提示`);return}if(!_.value.review_portal_enabled&&!_.value.review_portal_message.trim()){I.warning(`关闭评审后,请填写评审端说明文字`);return}if(_.value.post_close_file_edit_enabled){let e=Mt(_.value.post_close_file_edit_mobiles);if(e.length===0){I.warning(`开启截止后补传附件后,请至少填写一个登录手机号`);return}let t=e.find(e=>!/^1[3-9]\d{9}$/.test(e));if(t){I.warning(`手机号格式无效:${t}`);return}}if(r.name===`admin-competition-new`){let t=await Fe(e);m.value=t.id,i.selectCompetition(t.id),await n.replace({name:`admin-competition-workspace`}),await Yt(),I.success(`已创建,请在本页顶部标签切换「赛道 / 报名表」等模块继续配置`);return}m.value?(await Oe(m.value,e),I.success(`已保存`),await Yt()):I.warning(`无法保存:请先选择一场赛事,或从「新建赛事」进入后再试`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}finally{ot.value=!1}}function Qt(e){if(!m.value){I.warning(`请先保存赛事基础信息`);return}he.value=e?.id??null;let t=e?.scoring_sheet_json,n=t&&Array.isArray(t.items)&&t.items.length?t.items.map((e,t)=>({key:String(e.key??``),sort:Number(e.sort)||t+1,category:String(e.category??``),title:String(e.title??``),criteria:String(e.criteria??``),max_score:Number(e.max_score)||0})):[ye(1)];ve.value=e?{track_code:e.track_code,title:e.title,description:e.description??``,sort:e.sort,is_enabled:e.is_enabled,scoring_sheet_title:String(t?.title??``),scoring_items:n}:{track_code:``,title:``,description:``,sort:(S.value[S.value.length-1]?.sort??0)+10,is_enabled:!0,scoring_sheet_title:``,scoring_items:[ye(1)]},me.value=!0}function $t(){let e=(ve.value.scoring_items[ve.value.scoring_items.length-1]?.sort??0)+1;ve.value.scoring_items=[...ve.value.scoring_items,ye(e)]}function en(e){if(ve.value.scoring_items.length<=1){ve.value.scoring_items=[ye(1)];return}ve.value.scoring_items=ve.value.scoring_items.filter((t,n)=>n!==e)}function tn(){ve.value.scoring_sheet_title=``,ve.value.scoring_items=[]}async function nn(){let e=m.value;if(!e){S.value=[];return}w.value=!0;try{S.value=await Me(e)}finally{w.value=!1}}async function rn(){let e=m.value;if(!e)return;let t={track_code:ve.value.track_code.trim(),title:ve.value.title.trim(),description:ve.value.description.trim()||null,sort:Number(ve.value.sort)||0,is_enabled:ve.value.is_enabled};if(!t.track_code||!t.title){I.warning(`请填写赛道编码与标题`);return}let n=ve.value.scoring_items.map((e,t)=>({key:e.key.trim(),sort:Number(e.sort)||t+1,category:e.category.trim(),title:e.title.trim(),criteria:e.criteria.trim(),max_score:Number(e.max_score)||0})).filter(e=>e.key||e.title||e.category);if(n.length===0)t.scoring_sheet_json=null;else{let e=n.reduce((e,t)=>e+t.max_score,0);if(Math.abs(e-100)>1e-4){I.warning(`打分表各项分值之和须为 100,当前为 ${e}`);return}t.scoring_sheet_json={version:1,title:ve.value.scoring_sheet_title.trim()||`评分表(${t.title})`,full_score:100,items:n}}try{he.value?await Ae(e,he.value,t):await je(e,t),me.value=!1,await nn(),I.success(`赛道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存赛道失败`)}}async function an(){let e=m.value;if(!e){T.value=[];return}E.value=!0;try{T.value=await Ge(e)}catch(e){T.value=[],I.error(e instanceof Error?e.message:`加载渠道列表失败`)}finally{E.value=!1}}async function on(){ee.value=!0;try{O.value=await He()}catch(e){O.value=[],I.error(e instanceof Error?e.message:`加载用户渠道列表失败`)}finally{ee.value=!1}}function sn(e){return e===`submitted`?`已提交`:e===`draft`?`草稿`:e||`—`}function cn(e){return e===`submitted`?`success`:e===`draft`?`info`:`warning`}function ln(e){if(!e)return`—`;let t=new Date(e);if(Number.isNaN(t.getTime()))return e;let n=e=>String(e).padStart(2,`0`);return`${t.getFullYear()}-${n(t.getMonth()+1)}-${n(t.getDate())} ${n(t.getHours())}:${n(t.getMinutes())}`}function un(e){if(e==null||e===``)return`—`;let t=Number(e);return Number.isFinite(t)?t.toFixed(2).replace(/\.?0+$/,``):String(e)}function dn(e){if(!e)return``;let t=e.scores&&typeof e.scores==`object`&&!Array.isArray(e.scores)?e.scores:null,n=e.sheet_snapshot,r=n&&typeof n==`object`&&!Array.isArray(n)&&Array.isArray(n.items)?n.items:[];return t&&r.length?r.map(e=>{let n=String(e.key??``),r=String(e.title??n),i=t[n],a=typeof i==`number`?i:Number(i);return`${r} ${Number.isFinite(a)?a:`—`}`}).join(`;`):``}function fn(e){return!e||e<=0?`—`:e<1024?`${e}B`:e<1024*1024?`${(e/1024).toFixed(1)}KB`:`${(e/1024/1024).toFixed(1)}MB`}let pn=[`plan`,`supporting`];function mn(e){return e===`plan`?`商业计划书`:e===`supporting`?`佐证材料`:e?.trim()||`其他附件`}function hn(e){let t=pn.indexOf(e);return t===-1?pn.length:t}function gn(e){return[...e].sort((e,t)=>{let n=hn(e.kind)-hn(t.kind);return n===0?(e.original_name??``).localeCompare(t.original_name??``,`zh-CN`):n})}let _n=ie(()=>{let e=de.value?.files;return e?.length?gn(e):[]});async function vn(e=fe.value.page){let t=m.value;if(!t){A.value=[],fe.value.total=0;return}ne.value=!0;try{let n=await Ye(t,{page:e,per_page:fe.value.perPage,keyword:pe.value.keyword.trim()||void 0,status:pe.value.status||void 0,track:pe.value.track||void 0,signup_channel_id:pe.value.signup_channel_id||void 0,public_source_channel_id:pe.value.public_source_channel_id||void 0});A.value=n.data,fe.value={page:n.meta.current_page,perPage:n.meta.per_page,total:n.meta.total}}catch(e){A.value=[],I.error(e instanceof Error?e.message:`加载报名列表失败`)}finally{ne.value=!1}}function yn(){pe.value={keyword:``,status:`submitted`,track:``,signup_channel_id:void 0,public_source_channel_id:void 0},vn(1)}async function bn(e){let t=m.value;if(t){if(e===`selected`&&te.value.length===0){I.warning(`请先勾选要导出附件的项目`);return}ae.value=!0,ce.value=`准备导出…`;try{let n=await Je(t,{mode:e,keyword:pe.value.keyword.trim()||void 0,status:pe.value.status||void 0,track:pe.value.track||void 0,signup_channel_id:pe.value.signup_channel_id||void 0,public_source_channel_id:pe.value.public_source_channel_id||void 0,application_ids:e===`selected`?te.value.map(e=>e.id):void 0},(t,n)=>{if(e===`xlsx`){ce.value=`正在下载表格…`;return}ce.value=`正在下载第 ${t}/${n} 个 ZIP…`});e===`xlsx`?I.success(`已导出 ${n.total} 条报名记录表格`):e===`selected`?I.success(n.part_count>1?`已下载 ${n.part_count} 个 ZIP(含全部筛选表格与 ${te.value.length} 个所选项目附件)`:`已导出表格及 ${te.value.length} 个所选项目附件`):n.part_count>1?I.success(`已下载 ${n.part_count} 个 ZIP(汇总表仅在第 1 个包,每个约 ${n.part_size} 条项目附件)`):I.success(`导出已开始下载`)}catch(e){I.error(e instanceof Error?e.message:`导出失败`)}finally{ae.value=!1,ce.value=``}}}function xn(e){te.value=e}async function Sn(e){let t=m.value;if(t){ue.value=!0,le.value=!0,de.value=null;try{de.value=await Xe(t,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载报名详情失败`)}finally{le.value=!1}}}async function Cn(e,t){let n=m.value,r=de.value?.id;if(!(!n||!r))try{await Ze(n,r,e,t||`附件`)}catch(e){I.error(e instanceof Error?e.message:`下载附件失败`)}}async function wn(){let e=m.value,t=de.value?.id;if(!(!e||!t||!d.value)){f.value=!0;try{let n=await qe(e,t),r=Pt(`/c/${encodeURIComponent(n.competition_slug)}/impersonate-entry?token=${encodeURIComponent(n.token)}`);if(!window.open(r,`_blank`,`noopener,noreferrer`)){I.warning(`浏览器拦截了新窗口,请允许弹窗后重试`);return}I.success(`已打开选手端(管理员代登,约 30 分钟有效)`)}catch(e){I.error(e instanceof Error?e.message:`进入选手端失败`)}finally{f.value=!1}}}async function Tn(e){if(!m.value){I.warning(`请先保存赛事基础信息`);return}let t=e;if(e)try{t=await We(m.value,e.id)}catch(e){I.error(e instanceof Error?e.message:`加载渠道详情失败`);return}De.value=t?.id??null,it.value=t??null,at.value=t?{channel_name:t.channel_name,status:t.status,shared_secret:t.shared_secret??``,entry_encryption_enabled:t.entry_encryption_enabled??!1,success_callback_url:t.success_callback_url??``,success_callback_type:t.success_callback_type??`web`,mini_program_callback_path:t.mini_program_callback_path??null,mini_program_callback_method:t.mini_program_callback_method??`redirectTo`,remark:t.remark}:{channel_name:``,status:`enabled`,shared_secret:``,entry_encryption_enabled:!1,success_callback_url:``,success_callback_type:`web`,mini_program_callback_path:null,mini_program_callback_method:`redirectTo`,remark:null},we.value=!0}async function En(){let e=it.value?.encryption_public_key;if(e)try{await navigator.clipboard.writeText(e),I.success(`加密公钥已复制`)}catch{I.error(`复制失败,请手动复制`)}}function Dn(){let e=new Uint8Array(32);if(!globalThis.crypto?.getRandomValues){I.error(`当前浏览器不支持安全随机数,请更换浏览器后重试`);return}globalThis.crypto.getRandomValues(e),at.value.shared_secret=btoa(String.fromCharCode(...e)).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/g,``)}function On(e){return e===`mini_program`?`小程序`:e===`none`?`不回调`:`URL`}function kn(e){return e.success_callback_type===`mini_program`?e.mini_program_callback_path||`—`:e.success_callback_type===`none`?`—`:e.success_callback_url||`—`}async function An(){let e=m.value;if(!e)return;let t={channel_name:at.value.channel_name.trim(),status:at.value.status,shared_secret:at.value.shared_secret.trim(),entry_encryption_enabled:at.value.entry_encryption_enabled,success_callback_url:at.value.success_callback_url.trim(),success_callback_type:at.value.success_callback_type,mini_program_callback_path:at.value.mini_program_callback_path?.trim()||null,mini_program_callback_method:at.value.mini_program_callback_method,remark:at.value.remark?.trim()||null};if(!t.channel_name||!t.shared_secret){I.warning(`请填写渠道名称与共享密钥`);return}if(t.success_callback_type===`web`&&!t.success_callback_url){I.warning(`请填写 URL 回跳地址,或选择不回调`);return}if(t.success_callback_type===`mini_program`&&!t.mini_program_callback_path){I.warning(`请填写小程序页面路径`);return}rt.value=!0;try{De.value?await Ue(e,De.value,t):await Ke(e,t),we.value=!1,await an(),I.success(`渠道已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存渠道失败`)}finally{rt.value=!1}}async function jn(e){let t=m.value;if(!t)return;let n=e.status===`enabled`?`disabled`:`enabled`;try{await Ue(t,e.id,{status:n}),await an(),I.success(n===`enabled`?`渠道已启用`:`渠道已停用`)}catch(e){I.error(e instanceof Error?e.message:`更新渠道状态失败`)}}async function Mn(e){let t=m.value;if(t){try{await Ce.confirm(`确定删除赛道「${e.title}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await Ne(t,e.id),await nn(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}function Nn(e,t){if(e?.length)return e.join(`、`);if(!Array.isArray(t))return`—`;let n=t.map(e=>typeof e==`object`&&e&&`label`in e?String(e.label||``):``).filter(Boolean);return n.length?n.join(`、`):`—`}function Pn(e){if(!m.value){I.warning(`请先选择或创建赛事`);return}_t.value=e,vt.value=e===`signup`?`报名表新版本`:`评审表新版本`,gt.value=!0}async function Fn(){let e=m.value;if(!e)return;let t=vt.value.trim();if(!t){I.warning(`请填写版本名称`);return}try{await et(e,{purpose:_t.value,name:t,schema_json:[],is_published:!1}),gt.value=!1,_t.value===`signup`?await Vt():await Ht(),I.success(`已创建表单版本`)}catch(e){I.error(e instanceof Error?e.message:`创建失败`)}}async function In(e){let t=m.value;if(t)try{await Pe(t,{form_schema_id:e}),I.success(`已设为当前报名表`),await Yt(),await Vt()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function Ln(e){let t=m.value;if(t)try{await Pe(t,{review_form_schema_id:e}),I.success(`已设为当前评审表`),await Yt(),await Ht()}catch(e){I.error(e instanceof Error?e.message:`绑定失败`)}}async function Rn(e,t){let n=m.value;if(n)try{await tt(n,e.id,{is_published:t}),e.purpose===`signup`?await Vt():await Ht()}catch(e){I.error(e instanceof Error?e.message:`更新失败`)}}async function zn(e){let t=m.value;if(t){Ct.value=``;try{let n=await $e(t,e.id);n.signup_field_registry&&st(n.signup_field_registry),bt.value=n.id,xt.value=n.name,wt.value=n.purpose,Tt.value=Zc(n.schema_json??[],n.purpose),St.value=JSON.stringify(n.schema_json??[],null,2),Et.value=`visual`}catch(e){I.error(e instanceof Error?e.message:`加载表单详情失败`);return}yt.value=!0}}async function Bn(){let e=m.value,t=bt.value;if(!e||!t)return;Ct.value=``;let n=[];if(Et.value===`visual`){let e=Zee(Tt.value,wt.value);if(e){Ct.value=e;return}n=Qc(Tt.value,wt.value)}else try{let e=JSON.parse(St.value);if(!Array.isArray(e)){Ct.value=`表单定义须为 JSON 数组`;return}n=e}catch{Ct.value=`JSON 格式不正确`;return}try{await tt(e,t,{name:xt.value.trim()||void 0,schema_json:n}),yt.value=!1,await Vt(),await Ht(),I.success(`表单已保存`)}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function Vn(e){let t=m.value;if(t){try{await Ce.confirm(`确定删除表单版本「${e.name}」?`,`确认删除`,{confirmButtonText:`删除`,cancelButtonText:`取消`,type:`warning`})}catch{return}try{await nt(t,e.id),e.purpose===`signup`?await Vt():await Ht(),await Yt(),I.success(`已删除`)}catch(e){I.error(e instanceof Error?e.message:`删除失败`)}}}async function Hn(){let e=m.value;if(!e)return;pt.value=``;let t=null,n=ft.value.trim();if(n)try{if(t=JSON.parse(n),t!==null&&typeof t!=`object`){pt.value=`计分规则须为 JSON 对象`;return}}catch{pt.value=`JSON 格式不正确`;return}try{await Pe(e,{scoring_rules_json:t}),I.success(`计分规则已保存(留空表示使用系统默认)`),await Yt()}catch(e){I.error(e instanceof Error?e.message:`保存失败`)}}async function Un(){let e=m.value;if(e)try{await Pe(e,{review_form_schema_id:null}),I.success(`已取消评审表绑定,将使用系统默认评审项`),await Yt(),await Ht()}catch(e){I.error(e instanceof Error?e.message:`操作失败`)}}return D(()=>{Yt()}),(e,t)=>{let r=j(`el-button`),i=j(`el-alert`),o=j(`el-input`),l=j(`el-form-item`),x=j(`el-col`),D=j(`el-switch`),M=j(`el-option`),re=j(`el-select`),ie=j(`el-checkbox`),ye=j(`el-date-picker`),Se=j(`el-row`),Ce=j(`el-form`),I=j(`el-tab-pane`),L=j(`el-table-column`),Te=j(`el-tag`),Ee=j(`el-table`),Oe=j(`el-dropdown-item`),ke=j(`el-dropdown-menu`),Ae=j(`el-dropdown`),je=j(`el-pagination`),Me=j(`el-input-number`),Ne=j(`el-tabs`),Pe=j(`el-descriptions-item`),Fe=j(`el-descriptions`),Ie=j(`el-drawer`),Le=j(`el-dialog`),Re=j(`el-radio-button`),ze=j(`el-radio-group`),Be=j(`el-divider`),Ve=b(`loading`);return _e(),be(`div`,yDe,[F(`div`,bDe,[F(`h2`,xDe,N(Dt.value),1),v(r,{class:`workspace-back`,onClick:t[0]||=e=>u(n).push({name:`admin-competitions-list`})},{default:P(()=>[...t[76]||=[c(` 返回赛事列表 `,-1)]]),_:1})]),h.value&&!p()?(_e(),C(i,{key:0,title:`请选择赛事`,type:`warning`,closable:!1,"show-icon":``,class:`workspace-alert`},{default:P(()=>[...t[77]||=[c(` 请先在顶部`,-1),F(`strong`,null,`赛事切换`,-1),c(`中选择一场赛事,或从「赛事列表」点击「进入赛事中心」。 `,-1)]]),_:1})):(_e(),C(Ne,{key:1,modelValue:ct.value,"onUpdate:modelValue":t[46]||=e=>ct.value=e,type:`border-card`,class:a([`workspace-tabs`,{"workspace-tabs--create":p()}])},{default:P(()=>[v(I,{label:`基础信息`,name:`basic`},{default:P(()=>[v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(Se,{gutter:20},{default:P(()=>[v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`赛事名称`},{default:P(()=>[v(o,{modelValue:_.value.name,"onUpdate:modelValue":t[1]||=e=>_.value.name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`访问地址`},{default:P(()=>[v(o,{modelValue:_.value.slug,"onUpdate:modelValue":t[2]||=e=>_.value.slug=e,autocomplete:`off`},null,8,[`modelValue`]),t[78]||=F(`p`,{class:`form-hint`},`用于选手端网址识别,可使用中文、数字、横线等,请勿含空格。`,-1),F(`div`,SDe,[(_e(!0),be(se,null,k(Ft.value,(e,t)=>(_e(),be(`p`,{key:t,class:`form-hint login-link-preview`},[F(`span`,CDe,N(e.label),1),F(`a`,{href:e.href,target:`_blank`,rel:`noopener noreferrer`,class:`login-link-url`},N(e.href),9,wDe)]))),128))])]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`描述`},{default:P(()=>[v(o,{modelValue:_.value.description,"onUpdate:modelValue":t[3]||=e=>_.value.description=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`参赛承诺书`},{default:P(()=>[t[79]||=F(`p`,{class:`form-hint pledge-hint`},` 以下为选手端签署弹窗中的正文(支持富文本)。若留空,将使用系统内置默认条款。 `,-1),(_e(),C(vDe,{modelValue:_.value.pledge_content_html,"onUpdate:modelValue":t[4]||=e=>_.value.pledge_content_html=e,key:Ot.value},null,8,[`modelValue`]))]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`报名成功提示`},{default:P(()=>[v(D,{modelValue:_.value.success_notice_enabled,"onUpdate:modelValue":t[5]||=e=>_.value.success_notice_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),t[80]||=F(`p`,{class:`form-hint mt-2`},` 开启后,选手提交报名成功会看到自定义提示;关闭时保持系统默认提示。 `,-1),_.value.success_notice_enabled?(_e(),C(o,{key:0,modelValue:_.value.success_notice_message,"onUpdate:modelValue":t[6]||=e=>_.value.success_notice_message=e,type:`textarea`,rows:4,maxlength:`1000`,"show-word-limit":``,placeholder:`请输入报名成功后展示给选手的提示语`},null,8,[`modelValue`])):s(``,!0)]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`是否开启评审`},{default:P(()=>[v(D,{modelValue:_.value.review_portal_enabled,"onUpdate:modelValue":t[7]||=e=>_.value.review_portal_enabled=e,"active-text":`是`,"inactive-text":`否`},null,8,[`modelValue`]),t[81]||=F(`p`,{class:`form-hint mt-2`},` 关闭后,评审员无法登录评审端;已登录的评审员将退回登录页,并看到下方说明文字。仅影响评审端,不影响选手端与管理端。 `,-1),v(o,{modelValue:_.value.review_portal_message,"onUpdate:modelValue":t[8]||=e=>_.value.review_portal_message=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`请输入关闭评审时展示给评审员的说明文字`},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`截止后补传附件`},{default:P(()=>[v(D,{modelValue:_.value.post_close_file_edit_enabled,"onUpdate:modelValue":t[9]||=e=>_.value.post_close_file_edit_enabled=e,"active-text":`开启`,"inactive-text":`关闭`},null,8,[`modelValue`]),t[82]||=F(`p`,{class:`form-hint mt-2`},` 开启后,报名截止后仅白名单内登录手机号可上传/删除附件;其他报名信息仍不可修改,且无需再次提交。若项目已有评委评审/打分,仍不可改附件。 `,-1),_.value.post_close_file_edit_enabled?(_e(),C(o,{key:0,modelValue:_.value.post_close_file_edit_mobiles,"onUpdate:modelValue":t[10]||=e=>_.value.post_close_file_edit_mobiles=e,type:`textarea`,rows:4,maxlength:`2000`,"show-word-limit":``,placeholder:`每行一个登录手机号,也可用逗号分隔,例如:
|
|
|
13800138000
|
|
|
13900139000`},null,8,[`modelValue`])):s(``,!0)]),_:1})]),_:1}),v(x,{xs:24,sm:12,md:8},{default:P(()=>[v(l,{label:`状态`},{default:P(()=>[v(re,{modelValue:_.value.status,"onUpdate:modelValue":t[11]||=e=>_.value.status=e,class:`w-100`},{default:P(()=>[v(M,{label:`草稿`,value:`draft`}),v(M,{label:`已发布`,value:`published`}),v(M,{label:`报名进行中`,value:`signup_open`}),v(M,{label:`报名已截止`,value:`signup_closed`}),v(M,{label:`评审中`,value:`reviewing`}),v(M,{label:`已结束`,value:`ended`})]),_:1},8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,sm:12,md:8},{default:P(()=>[v(l,{label:`对外展示`},{default:P(()=>[v(ie,{modelValue:_.value.published,"onUpdate:modelValue":t[12]||=e=>_.value.published=e},{default:P(()=>[...t[83]||=[c(`在选手端展示`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`报名开始`},{default:P(()=>[v(ye,{modelValue:_.value.signup_open_at,"onUpdate:modelValue":t[13]||=e=>_.value.signup_open_at=e,type:`datetime`,placeholder:`选择报名开始时间`,format:`YYYY-MM-DD HH:mm`,"value-format":`YYYY-MM-DD HH:mm:ss`,class:`w-100`,clearable:``},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`报名截止`},{default:P(()=>[v(ye,{modelValue:_.value.signup_close_at,"onUpdate:modelValue":t[14]||=e=>_.value.signup_close_at=e,type:`datetime`,placeholder:`选择报名截止时间`,format:`YYYY-MM-DD HH:mm`,"value-format":`YYYY-MM-DD HH:mm:ss`,class:`w-100`,clearable:``},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1}),v(l,null,{default:P(()=>[v(r,{"native-type":`button`,type:`primary`,loading:ot.value,onClick:Zt},{default:P(()=>[c(N(ot.value?`保存中…`:`保存基础信息`),1)]),_:1},8,[`loading`])]),_:1})]),_:1})]),_:1}),p()?s(``,!0):(_e(),C(I,{key:0,label:`赛道管理`,name:`tracks`,lazy:``},{default:P(()=>[oe((_e(),be(`div`,TDe,[F(`div`,EDe,[t[85]||=F(`p`,{class:`form-hint pane-toolbar-tip`},` 维护本场主题赛道与打分表(满分 100)。未配置打分表的赛道禁止评审。新建赛事请先保存基础信息。 `,-1),v(r,{type:`primary`,onClick:t[15]||=e=>Qt()},{default:P(()=>[...t[84]||=[c(`新增赛道`,-1)]]),_:1})]),v(Ee,{data:S.value,stripe:``,border:``,"empty-text":`暂无赛道`,class:`workspace-table`},{default:P(()=>[v(L,{prop:`track_code`,label:`赛道编码`,"min-width":`120`}),v(L,{prop:`title`,label:`标题`,"min-width":`140`}),v(L,{prop:`description`,label:`简介`,"min-width":`180`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,DDe,N(e.description||`—`),1)]),_:1}),v(L,{label:`打分表`,width:`100`},{default:P(({row:e})=>[v(Te,{type:e.scoring_sheet_configured?`success`:`danger`,effect:`plain`,size:`small`},{default:P(()=>[c(N(e.scoring_sheet_configured?`已配置`:`未配置`),1)]),_:2},1032,[`type`])]),_:1}),v(L,{prop:`sort`,label:`排序`,width:`80`}),v(L,{label:`启用`,width:`80`},{default:P(({row:e})=>[c(N(e.is_enabled?`是`:`否`),1)]),_:1}),v(L,{label:`操作`,width:`140`,fixed:`right`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>Qt(e)},{default:P(()=>[...t[86]||=[c(`编辑`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,type:`danger`,size:`small`,onClick:t=>Mn(e)},{default:P(()=>[...t[87]||=[c(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ve,w.value]])]),_:1})),p()?s(``,!0):(_e(),C(I,{key:1,label:`渠道管理`,name:`channels`,lazy:``},{default:P(()=>[oe((_e(),be(`div`,ODe,[F(`div`,kDe,[t[90]||=F(`p`,{class:`form-hint pane-toolbar-tip`},` 渠道编码由系统自动生成。共享密钥用于渠道跳转验签,请与渠道方安全同步。 `,-1),F(`div`,null,[v(r,{loading:E.value,onClick:an},{default:P(()=>[...t[88]||=[c(` 刷新列表 `,-1)]]),_:1},8,[`loading`]),v(r,{type:`primary`,onClick:t[16]||=e=>Tn()},{default:P(()=>[...t[89]||=[c(` 新增渠道 `,-1)]]),_:1})])]),v(Ee,{data:T.value,stripe:``,border:``,"empty-text":`暂无渠道`,class:`workspace-table`},{default:P(()=>[v(L,{prop:`competition_name`,label:`所属赛事`,"min-width":`160`,"show-overflow-tooltip":``}),v(L,{prop:`channel_code`,label:`渠道编码`,"min-width":`170`}),v(L,{prop:`channel_name`,label:`渠道名称`,"min-width":`140`}),v(L,{label:`状态`,width:`88`},{default:P(({row:e})=>[v(Te,{type:e.status===`enabled`?`success`:`info`,effect:`plain`},{default:P(()=>[c(N(e.status===`enabled`?`已启用`:`已停用`),1)]),_:2},1032,[`type`])]),_:1}),v(L,{label:`回调类型`,width:`96`},{default:P(({row:e})=>[c(N(On(e.success_callback_type)),1)]),_:1}),v(L,{label:`回调目标`,"min-width":`240`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,ADe,N(kn(e)),1)]),_:1}),v(L,{prop:`remark`,label:`备注`,"min-width":`150`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,jDe,N(e.remark||`—`),1)]),_:1}),v(L,{prop:`created_at`,label:`创建时间`,"min-width":`180`}),v(L,{label:`操作`,width:`150`,fixed:`right`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>Tn(e)},{default:P(()=>[...t[91]||=[c(`编辑`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,type:e.status===`enabled`?`danger`:`success`,size:`small`,onClick:t=>jn(e)},{default:P(()=>[c(N(e.status===`enabled`?`停用`:`启用`),1)]),_:2},1032,[`type`,`onClick`])]),_:1})]),_:1},8,[`data`])])),[[Ve,E.value]])]),_:1})),p()?s(``,!0):(_e(),C(I,{key:2,label:`报名信息`,name:`applications`,lazy:``},{default:P(()=>[oe((_e(),be(`div`,MDe,[F(`div`,NDe,[F(`div`,PDe,[v(o,{modelValue:pe.value.keyword,"onUpdate:modelValue":t[17]||=e=>pe.value.keyword=e,placeholder:`搜索项目、姓名、学校、手机号、推荐方`,clearable:``,class:`application-filter-keyword`,onKeyup:t[18]||=ge(e=>vn(1),[`enter`])},null,8,[`modelValue`]),v(re,{modelValue:pe.value.status,"onUpdate:modelValue":t[19]||=e=>pe.value.status=e,placeholder:`状态`,clearable:``,teleported:``,class:`application-filter-select`},{default:P(()=>[v(M,{label:`草稿`,value:`draft`}),v(M,{label:`已提交`,value:`submitted`})]),_:1},8,[`modelValue`]),v(re,{modelValue:pe.value.track,"onUpdate:modelValue":t[20]||=e=>pe.value.track=e,placeholder:`赛道`,clearable:``,teleported:``,class:`application-filter-select`},{default:P(()=>[(_e(!0),be(se,null,k(S.value,e=>(_e(),C(M,{key:e.track_code,label:e.title,value:e.track_code},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),v(re,{modelValue:pe.value.signup_channel_id,"onUpdate:modelValue":t[21]||=e=>pe.value.signup_channel_id=e,placeholder:`报名渠道`,clearable:``,filterable:``,teleported:``,class:`application-filter-select application-filter-channel`},{default:P(()=>[(_e(!0),be(se,null,k(T.value,e=>(_e(),C(M,{key:e.id,label:`${e.channel_name}(${e.channel_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`]),v(re,{modelValue:pe.value.public_source_channel_id,"onUpdate:modelValue":t[22]||=e=>pe.value.public_source_channel_id=e,placeholder:`用户渠道`,clearable:``,filterable:``,teleported:``,loading:ee.value,class:`application-filter-select application-filter-channel`},{default:P(()=>[(_e(!0),be(se,null,k(O.value,e=>(_e(),C(M,{key:e.id,label:`${e.source_name}(${e.source_code})`,value:e.id},null,8,[`label`,`value`]))),128))]),_:1},8,[`modelValue`,`loading`])]),F(`div`,FDe,[v(Ae,{trigger:`click`,onCommand:bn},{dropdown:P(()=>[v(ke,null,{default:P(()=>[v(Oe,{command:`xlsx`},{default:P(()=>[...t[93]||=[c(`仅导出表格`,-1)]]),_:1}),v(Oe,{command:`selected`},{default:P(()=>[t[94]||=c(` 导出表格 + 所选项目附件 `,-1),te.value.length?(_e(),be(`span`,IDe,` (已选 `+N(te.value.length)+`) `,1)):s(``,!0)]),_:1}),v(Oe,{command:`all`},{default:P(()=>[...t[95]||=[c(`导出表格 + 全部项目附件`,-1)]]),_:1})]),_:1})]),default:P(()=>[v(r,{loading:ae.value},{default:P(()=>[c(N(ce.value||`导出`)+` `,1),t[92]||=F(`span`,{class:`export-dropdown-caret`},`▾`,-1)]),_:1},8,[`loading`])]),_:1}),v(r,{onClick:yn},{default:P(()=>[...t[96]||=[c(`重置`,-1)]]),_:1}),v(r,{type:`primary`,onClick:t[23]||=e=>vn(1)},{default:P(()=>[...t[97]||=[c(`查询`,-1)]]),_:1})])]),te.value.length?(_e(),be(`p`,LDe,` 已选择 `+N(te.value.length)+` 个项目,可使用「导出表格 + 所选项目附件」 `,1)):s(``,!0),v(Ee,{data:A.value,"row-key":`id`,stripe:``,border:``,"empty-text":`暂无报名记录`,class:`workspace-table`,onSelectionChange:xn},{default:P(()=>[v(L,{type:`selection`,width:`48`,fixed:`left`,"reserve-selection":``}),v(L,{prop:`project_code`,label:`项目编号`,width:`120`,"show-overflow-tooltip":``}),v(L,{label:`状态`,width:`92`},{default:P(({row:e})=>[v(Te,{type:cn(e.status),effect:`plain`},{default:P(()=>[c(N(sn(e.status)),1)]),_:2},1032,[`type`])]),_:1}),v(L,{prop:`project_name`,label:`项目名称`,"min-width":`180`,"show-overflow-tooltip":``}),v(L,{prop:`player_name`,label:`负责人`,width:`110`,"show-overflow-tooltip":``}),v(L,{prop:`school`,label:`学校`,"min-width":`150`,"show-overflow-tooltip":``}),v(L,{prop:`entry_group`,label:`组别`,width:`100`},{default:P(({row:e})=>[F(`span`,RDe,N(e.entry_group||`—`),1)]),_:1}),v(L,{prop:`track_title`,label:`赛道`,"min-width":`130`,"show-overflow-tooltip":``}),v(L,{label:`报名渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,zDe,N(e.signup_channel?`${e.signup_channel.channel_name}(${e.signup_channel.channel_code})`:e.signup_channel_code||`—`),1)]),_:1}),v(L,{prop:`recommend`,label:`推荐方`,"min-width":`130`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,BDe,N(e.recommend||`—`),1)]),_:1}),v(L,{prop:`contact_mobile`,label:`手机号`,width:`128`}),v(L,{label:`提交人`,width:`110`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,VDe,N(e.submitter_name||e.submitter_mobile||`—`),1)]),_:1}),v(L,{prop:`submitter_mobile`,label:`提交人手机号`,width:`128`},{default:P(({row:e})=>[F(`span`,HDe,N(e.submitter_mobile||`—`),1)]),_:1}),v(L,{label:`用户渠道`,"min-width":`150`,"show-overflow-tooltip":``},{default:P(({row:e})=>[F(`span`,UDe,N(e.public_source_channel?`${e.public_source_channel.source_name}(${e.public_source_channel.source_code})`:e.public_source_code||`—`),1)]),_:1}),v(L,{label:`附件`,width:`76`,align:`right`},{default:P(({row:e})=>[c(N(e.files_count),1)]),_:1}),v(L,{label:`评分`,width:`150`},{default:P(({row:e})=>[F(`span`,WDe,N(e.submitted_review_count)+` 人 / 均分 `+N(un(e.team_avg)),1)]),_:1}),v(L,{label:`提交时间`,"min-width":`150`},{default:P(({row:e})=>[c(N(ln(e.submitted_at)),1)]),_:1}),v(L,{label:`操作`,width:`92`,fixed:`right`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>Sn(e)},{default:P(()=>[...t[98]||=[c(`详情`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),F(`div`,GDe,[v(je,{"current-page":fe.value.page,"onUpdate:currentPage":t[24]||=e=>fe.value.page=e,"page-size":fe.value.perPage,"onUpdate:pageSize":t[25]||=e=>fe.value.perPage=e,background:``,layout:`total, sizes, prev, pager, next`,"page-sizes":[10,15,30,50,100],total:fe.value.total,onCurrentChange:vn,onSizeChange:t[26]||=e=>vn(1)},null,8,[`current-page`,`page-size`,`total`])])])),[[Ve,ne.value]])]),_:1})),p()?s(``,!0):(_e(),C(I,{key:3,label:`报名表配置`,name:`signupForm`,lazy:``},{default:P(()=>[F(`p`,KDe,[t[99]||=c(` 管理选手报名表字段定义(JSON 数组)。可创建多个版本,设为当前报名表后选手端生效。当前绑定编号:`,-1),F(`strong`,null,N(g.value?.form_schema_id??`未绑定`),1)]),F(`div`,qDe,[v(r,{type:`primary`,disabled:!m.value,onClick:t[27]||=e=>Pn(`signup`)},{default:P(()=>[...t[100]||=[c(` 新建报名表版本 `,-1)]]),_:1},8,[`disabled`]),v(r,{loading:dt.value,onClick:Vt},{default:P(()=>[...t[101]||=[c(`刷新列表`,-1)]]),_:1},8,[`loading`])]),v(Ee,{data:lt.value,stripe:``,border:``,"empty-text":`暂无版本,请先新建`,class:`workspace-table`},{default:P(()=>[v(L,{prop:`name`,label:`名称`,"min-width":`120`}),v(L,{prop:`version`,label:`版本`,width:`80`}),v(L,{label:`发布`,width:`72`},{default:P(({row:e})=>[c(N(e.is_published?`是`:`否`),1)]),_:1}),v(L,{label:`当前`,width:`88`},{default:P(({row:e})=>[c(N(e.is_current_signup?`当前`:`—`),1)]),_:1}),v(L,{label:`字段预览`,"min-width":`200`},{default:P(({row:e})=>[F(`span`,JDe,N(Nn(e.field_labels,e.schema_json)),1)]),_:1}),v(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>In(e.id)},{default:P(()=>[...t[102]||=[c(`设为当前`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,type:`primary`,size:`small`,onClick:t=>zn(e)},{default:P(()=>[...t[103]||=[c(`编辑`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,size:`small`,onClick:t=>Rn(e,!e.is_published)},{default:P(()=>[c(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),v(r,{link:``,type:`danger`,size:`small`,onClick:t=>Vn(e)},{default:P(()=>[...t[104]||=[c(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})),p()?s(``,!0):(_e(),C(I,{key:4,label:`评审与计分`,name:`review`,lazy:``},{default:P(()=>[F(`div`,YDe,[t[112]||=F(`h3`,{class:`section-title`},`评审打分表`,-1),F(`p`,XDe,[t[105]||=c(` 配置评审端打分项(与报名表独立)。当前绑定编号:`,-1),F(`strong`,null,N(g.value?.review_form_schema_id??`未绑定(系统默认)`),1)]),F(`div`,ZDe,[v(r,{type:`primary`,disabled:!m.value,onClick:t[28]||=e=>Pn(`review`)},{default:P(()=>[...t[106]||=[c(` 新建评审表版本 `,-1)]]),_:1},8,[`disabled`]),v(r,{onClick:Un},{default:P(()=>[...t[107]||=[c(`取消绑定(用默认)`,-1)]]),_:1}),v(r,{loading:dt.value,onClick:Ht},{default:P(()=>[...t[108]||=[c(`刷新列表`,-1)]]),_:1},8,[`loading`])]),v(Ee,{data:ut.value,stripe:``,border:``,"empty-text":`暂无版本`,class:`workspace-table workspace-table--mb`},{default:P(()=>[v(L,{prop:`name`,label:`名称`,"min-width":`120`}),v(L,{prop:`version`,label:`版本`,width:`80`}),v(L,{label:`发布`,width:`72`},{default:P(({row:e})=>[c(N(e.is_published?`是`:`否`),1)]),_:1}),v(L,{label:`当前`,width:`88`},{default:P(({row:e})=>[c(N(e.is_current_review?`当前`:`—`),1)]),_:1}),v(L,{label:`字段预览`,"min-width":`200`},{default:P(({row:e})=>[F(`span`,QDe,N(Nn(e.field_labels,e.schema_json)),1)]),_:1}),v(L,{label:`操作`,width:`260`,fixed:`right`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>Ln(e.id)},{default:P(()=>[...t[109]||=[c(`设为当前`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,type:`primary`,size:`small`,onClick:t=>zn(e)},{default:P(()=>[...t[110]||=[c(`编辑`,-1)]]),_:1},8,[`onClick`]),v(r,{link:``,size:`small`,onClick:t=>Rn(e,!e.is_published)},{default:P(()=>[c(N(e.is_published?`取消发布`:`发布`),1)]),_:2},1032,[`onClick`]),v(r,{link:``,type:`danger`,size:`small`,onClick:t=>Vn(e)},{default:P(()=>[...t[111]||=[c(`删除`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),F(`div`,$De,[t[118]||=F(`h3`,{class:`section-title`},`计分规则`,-1),t[119]||=F(`p`,{class:`form-hint`},` 数据库中按 JSON 对象存储。留空并保存表示使用系统默认规则。多数情况只需填写各评分维度的 key 与权重,再点「生成 JSON」。 `,-1),t[120]||=F(`p`,{class:`subsection-label`},`快捷配置(维度加权求和 → line_total)`,-1),t[121]||=F(`p`,{class:`form-hint`},`「维度 key」须与评审 Schema 里数字打分项的字段名一致。`,-1),v(Ee,{data:ht.value,border:``,size:`small`,class:`workspace-table workspace-table--mb`},{default:P(()=>[v(L,{label:`维度 key`,"min-width":`160`},{default:P(({row:e})=>[v(o,{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,size:`small`,placeholder:`如 dim_innovation`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`权重`,width:`120`},{default:P(({row:e})=>[v(Me,{modelValue:e.weight,"onUpdate:modelValue":t=>e.weight=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`最低分`,width:`110`},{default:P(({row:e})=>[v(Me,{modelValue:e.min,"onUpdate:modelValue":t=>e.min=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`最高分`,width:`110`},{default:P(({row:e})=>[v(Me,{modelValue:e.max,"onUpdate:modelValue":t=>e.max=t,size:`small`,controls:!1,class:`w-100`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`操作`,width:`88`,align:`right`},{default:P(({$index:e})=>[v(r,{link:``,type:`danger`,size:`small`,onClick:t=>Kt(e)},{default:P(()=>[...t[113]||=[c(`删行`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),F(`div`,eOe,[v(r,{onClick:Gt},{default:P(()=>[...t[114]||=[c(`增加一行`,-1)]]),_:1}),v(r,{onClick:Wt},{default:P(()=>[...t[115]||=[c(`从下方 JSON 解析到表格`,-1)]]),_:1}),v(r,{type:`primary`,onClick:Jt},{default:P(()=>[...t[116]||=[c(`根据表格生成 JSON`,-1)]]),_:1})]),t[122]||=F(`p`,{class:`subsection-label`},`高级:直接编辑完整规则 JSON`,-1),v(o,{modelValue:ft.value,"onUpdate:modelValue":t[29]||=e=>ft.value=e,type:`textarea`,rows:8,class:`json-area`,spellcheck:`false`},null,8,[`modelValue`]),pt.value?(_e(),C(i,{key:0,type:`error`,closable:!1,class:`mt-2`,description:pt.value},null,8,[`description`])):s(``,!0),v(r,{type:`primary`,class:`mt-2`,onClick:Hn},{default:P(()=>[...t[117]||=[c(`保存计分规则`,-1)]]),_:1})])]),_:1})),p()?s(``,!0):(_e(),C(I,{key:5,label:`品牌与文案`,name:`brand`,lazy:``},{default:P(()=>[t[124]||=F(`p`,{class:`form-hint`},`按页面分类填写对外展示文案。留空的项不会保存。`,-1),t[125]||=F(`h3`,{class:`section-title`},`整站`,-1),v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(l,{label:`浏览器标签标题`},{default:P(()=>[v(o,{modelValue:y.value.documentTitle,"onUpdate:modelValue":t[30]||=e=>y.value.documentTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),t[126]||=F(`h3`,{class:`section-title`},`登录页`,-1),v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(Se,{gutter:16},{default:P(()=>[v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`品牌辅助行`},{default:P(()=>[v(o,{modelValue:y.value.login.markLine,"onUpdate:modelValue":t[31]||=e=>y.value.login.markLine=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`主标题`},{default:P(()=>[v(o,{modelValue:y.value.login.headline,"onUpdate:modelValue":t[32]||=e=>y.value.login.headline=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`标语`},{default:P(()=>[v(o,{modelValue:y.value.login.slogan,"onUpdate:modelValue":t[33]||=e=>y.value.login.slogan=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`登录卡片欢迎语`},{default:P(()=>[v(o,{modelValue:y.value.login.cardWelcome,"onUpdate:modelValue":t[34]||=e=>y.value.login.cardWelcome=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{span:24},{default:P(()=>[v(l,{label:`页脚版权`},{default:P(()=>[v(o,{modelValue:y.value.login.footerCopyright,"onUpdate:modelValue":t[35]||=e=>y.value.login.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`标志图网址`},{default:P(()=>[v(o,{modelValue:y.value.login.logoUrl,"onUpdate:modelValue":t[36]||=e=>y.value.login.logoUrl=e,placeholder:`图片网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`网站图标网址`},{default:P(()=>[v(o,{modelValue:y.value.login.faviconUrl,"onUpdate:modelValue":t[37]||=e=>y.value.login.faviconUrl=e,placeholder:`图标网址,以 https 开头`},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`主题色(如 #b40010)`},{default:P(()=>[v(o,{modelValue:y.value.login.themePrimary,"onUpdate:modelValue":t[38]||=e=>y.value.login.themePrimary=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),t[127]||=F(`h3`,{class:`section-title`},`报名填报页`,-1),v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(Se,{gutter:16},{default:P(()=>[v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`页面标题`},{default:P(()=>[v(o,{modelValue:y.value.apply.pageTitle,"onUpdate:modelValue":t[39]||=e=>y.value.apply.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`副标题(整页填报说明)`},{default:P(()=>[v(o,{modelValue:y.value.apply.headerSubtitle,"onUpdate:modelValue":t[40]||=e=>y.value.apply.headerSubtitle=e,placeholder:`展示在页面标题下方,可选用`},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),t[128]||=F(`h3`,{class:`section-title`},`评审端`,-1),v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(Se,{gutter:16},{default:P(()=>[v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`页面标题`},{default:P(()=>[v(o,{modelValue:y.value.review.pageTitle,"onUpdate:modelValue":t[41]||=e=>y.value.review.pageTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`页脚版权`},{default:P(()=>[v(o,{modelValue:y.value.review.footerCopyright,"onUpdate:modelValue":t[42]||=e=>y.value.review.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),t[129]||=F(`h3`,{class:`section-title`},`运营后台`,-1),v(Ce,{"label-position":`top`,class:`workspace-form`},{default:P(()=>[v(Se,{gutter:16},{default:P(()=>[v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`登录页标题`},{default:P(()=>[v(o,{modelValue:y.value.admin.loginTitle,"onUpdate:modelValue":t[43]||=e=>y.value.admin.loginTitle=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`页脚版权`},{default:P(()=>[v(o,{modelValue:y.value.admin.footerCopyright,"onUpdate:modelValue":t[44]||=e=>y.value.admin.footerCopyright=e},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{xs:24,md:12},{default:P(()=>[v(l,{label:`侧栏产品名称`},{default:P(()=>[v(o,{modelValue:y.value.admin.sidebarProductName,"onUpdate:modelValue":t[45]||=e=>y.value.admin.sidebarProductName=e},null,8,[`modelValue`])]),_:1})]),_:1})]),_:1})]),_:1}),v(r,{"native-type":`button`,type:`primary`,class:`mt-compact`,loading:ot.value,onClick:Zt},{default:P(()=>[...t[123]||=[c(`保存(含品牌文案)`,-1)]]),_:1},8,[`loading`])]),_:1}))]),_:1},8,[`modelValue`,`class`])),v(Ie,{modelValue:ue.value,"onUpdate:modelValue":t[47]||=e=>ue.value=e,title:`报名详情`,size:`min(760px, 94vw)`,"destroy-on-close":``},{default:P(()=>[oe((_e(),be(`div`,tOe,[de.value?(_e(),be(se,{key:0},[d.value?(_e(),be(`div`,nOe,[v(r,{type:`warning`,plain:``,loading:f.value,onClick:wn},{default:P(()=>[...t[130]||=[c(` 进入选手端 `,-1)]]),_:1},8,[`loading`])])):s(``,!0),v(Fe,{column:2,border:``,class:`application-detail-section`},{default:P(()=>[v(Pe,{label:`项目编号`},{default:P(()=>[c(N(de.value.project_code||`—`),1)]),_:1}),v(Pe,{label:`状态`},{default:P(()=>[v(Te,{type:cn(de.value.status),effect:`plain`},{default:P(()=>[c(N(sn(de.value.status)),1)]),_:1},8,[`type`])]),_:1}),v(Pe,{label:`项目名称`,span:2},{default:P(()=>[c(N(de.value.project_name||`—`),1)]),_:1}),v(Pe,{label:`负责人`},{default:P(()=>[c(N(de.value.player_name||`—`),1)]),_:1}),v(Pe,{label:`学校`},{default:P(()=>[c(N(de.value.school||`—`),1)]),_:1}),v(Pe,{label:`学历`},{default:P(()=>[c(N(de.value.degree||`—`),1)]),_:1}),v(Pe,{label:`手机号`},{default:P(()=>[c(N(de.value.contact_mobile||`—`),1)]),_:1}),v(Pe,{label:`邮箱`},{default:P(()=>[c(N(de.value.contact_email||`—`),1)]),_:1}),v(Pe,{label:`组别`},{default:P(()=>[c(N(de.value.entry_group||`—`),1)]),_:1}),v(Pe,{label:`企业`},{default:P(()=>[c(N(de.value.company_name||`—`),1)]),_:1}),v(Pe,{label:`赛道`},{default:P(()=>[c(N(de.value.track_title||`—`),1)]),_:1}),v(Pe,{label:`所在地`},{default:P(()=>[c(N([de.value.location_country,de.value.location_province,de.value.location_city,de.value.oversea_country].filter(Boolean).join(` / `)||`—`),1)]),_:1}),v(Pe,{label:`提交时间`},{default:P(()=>[c(N(ln(de.value.submitted_at)),1)]),_:1}),v(Pe,{label:`承诺书签署`},{default:P(()=>[c(N(ln(de.value.promise_signed_at)),1)]),_:1}),v(Pe,{label:`报名渠道`,span:2},{default:P(()=>[c(N(de.value.signup_channel?`${de.value.signup_channel.channel_name}(${de.value.signup_channel.channel_code})`:de.value.signup_channel_code||`—`),1)]),_:1}),v(Pe,{label:`推荐方`,span:2},{default:P(()=>[c(N(de.value.recommend||`—`),1)]),_:1})]),_:1}),t[132]||=F(`h3`,{class:`section-title`},`项目简介`,-1),F(`p`,rOe,N(de.value.intro||`—`),1),t[133]||=F(`h3`,{class:`section-title`},`附件`,-1),v(Ee,{data:_n.value,border:``,"empty-text":`暂无附件`,class:`workspace-table workspace-table--mb`},{default:P(()=>[v(L,{label:`类型`,width:`120`},{default:P(({row:e})=>[c(N(mn(e.kind)),1)]),_:1}),v(L,{label:`文件名`,"min-width":`220`,"show-overflow-tooltip":``},{default:P(({row:e})=>[c(N(e.original_name||`附件`),1)]),_:1}),v(L,{label:`大小`,width:`100`},{default:P(({row:e})=>[c(N(fn(e.size)),1)]),_:1}),v(L,{label:`操作`,width:`90`,align:`right`},{default:P(({row:e})=>[v(r,{link:``,type:`primary`,size:`small`,onClick:t=>Cn(e.id,e.original_name)},{default:P(()=>[...t[131]||=[c(` 下载 `,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`]),t[134]||=F(`h3`,{class:`section-title`},`评审汇总`,-1),F(`div`,iOe,[F(`span`,null,`已评 `+N(de.value.submitted_review_count)+` 人`,1),F(`span`,null,`总分 `+N(un(de.value.team_sum)),1),F(`span`,null,`均分 `+N(un(de.value.team_avg)),1)]),v(Ee,{data:de.value.review_scores,border:``,"empty-text":`暂无评分`,class:`workspace-table`},{default:P(()=>[v(L,{prop:`reviewer_name`,label:`评审员`,"min-width":`120`},{default:P(({row:e})=>[c(N(e.reviewer_name||`评审员 #${e.reviewer_id}`),1)]),_:1}),v(L,{label:`项目得分`,width:`100`},{default:P(({row:e})=>[c(N(un(e.line_total)),1)]),_:1}),v(L,{label:`分项明细`,"min-width":`220`,"show-overflow-tooltip":``},{default:P(({row:e})=>[c(N(dn(e.payload_json)||e.comment||`—`),1)]),_:1}),v(L,{label:`更新时间`,"min-width":`160`},{default:P(({row:e})=>[c(N(ln(e.updated_at)),1)]),_:1})]),_:1},8,[`data`])],64)):s(``,!0)])),[[Ve,le.value]])]),_:1},8,[`modelValue`]),v(Le,{modelValue:gt.value,"onUpdate:modelValue":t[50]||=e=>gt.value=e,title:_t.value===`signup`?`新建报名表版本`:`新建评审表版本`,width:`480px`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[v(r,{onClick:t[49]||=e=>gt.value=!1},{default:P(()=>[...t[136]||=[c(`取消`,-1)]]),_:1}),v(r,{type:`primary`,onClick:Fn},{default:P(()=>[...t[137]||=[c(`创建`,-1)]]),_:1})]),default:P(()=>[v(Ce,{"label-position":`top`},{default:P(()=>[v(l,{label:`版本名称`},{default:P(()=>[v(o,{modelValue:vt.value,"onUpdate:modelValue":t[48]||=e=>vt.value=e,autocomplete:`off`},null,8,[`modelValue`]),t[135]||=F(`p`,{class:`text-muted small mt-2 mb-0`},`将创建空字段列表,保存后可在「编辑」中配置。`,-1)]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),v(Le,{modelValue:yt.value,"onUpdate:modelValue":t[56]||=e=>yt.value=e,title:`编辑表单定义`,width:`min(960px, 96vw)`,top:`4vh`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[v(r,{onClick:t[55]||=e=>yt.value=!1},{default:P(()=>[...t[139]||=[c(`取消`,-1)]]),_:1}),v(r,{type:`primary`,onClick:Bn},{default:P(()=>[...t[140]||=[c(`保存`,-1)]]),_:1})]),default:P(()=>[v(Ce,{"label-position":`top`},{default:P(()=>[v(l,{label:`版本名称`},{default:P(()=>[v(o,{modelValue:xt.value,"onUpdate:modelValue":t[51]||=e=>xt.value=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1})]),_:1}),v(Ne,{modelValue:Et.value,"onUpdate:modelValue":t[54]||=e=>Et.value=e},{default:P(()=>[v(I,{label:`可视化设计`,name:`visual`},{default:P(()=>[v(ate,{modelValue:Tt.value,"onUpdate:modelValue":t[52]||=e=>Tt.value=e,purpose:wt.value},null,8,[`modelValue`,`purpose`])]),_:1}),v(I,{label:`JSON 源码`,name:`json`},{default:P(()=>[t[138]||=F(`p`,{class:`text-muted small mb-2`},` 适合粘贴备份或高级字段;切换回「可视化」时会尽量同步(仅识别常用属性)。 `,-1),v(o,{modelValue:St.value,"onUpdate:modelValue":t[53]||=e=>St.value=e,type:`textarea`,rows:16,class:`font-monospace`,spellcheck:`false`,onBlur:Lt},null,8,[`modelValue`])]),_:1})]),_:1},8,[`modelValue`]),Ct.value?(_e(),be(`p`,aOe,N(Ct.value),1)):s(``,!0)]),_:1},8,[`modelValue`]),v(Le,{modelValue:we.value,"onUpdate:modelValue":t[67]||=e=>we.value=e,title:De.value?`编辑渠道`:`新增渠道`,width:`600px`,"destroy-on-close":``,"align-center":``},{footer:P(()=>[v(r,{onClick:t[66]||=e=>we.value=!1},{default:P(()=>[...t[150]||=[c(`取消`,-1)]]),_:1}),v(r,{type:`primary`,loading:rt.value,onClick:An},{default:P(()=>[...t[151]||=[c(`保存`,-1)]]),_:1},8,[`loading`])]),default:P(()=>[v(Ce,{"label-position":`top`},{default:P(()=>[De.value?(_e(),C(l,{key:0,label:`渠道编码`},{default:P(()=>[v(o,{"model-value":T.value.find(e=>e.id===De.value)?.channel_code??``,disabled:``},null,8,[`model-value`])]),_:1})):s(``,!0),v(l,{label:`渠道名称`},{default:P(()=>[v(o,{modelValue:at.value.channel_name,"onUpdate:modelValue":t[57]||=e=>at.value.channel_name=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),v(l,{label:`共享密钥`},{default:P(()=>[v(o,{modelValue:at.value.shared_secret,"onUpdate:modelValue":t[58]||=e=>at.value.shared_secret=e,autocomplete:`off`},{append:P(()=>[v(r,{onClick:Dn},{default:P(()=>[...t[141]||=[c(`生成`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),De.value?(_e(),be(se,{key:1},[v(l,{label:`加密算法`},{default:P(()=>[v(o,{"model-value":it.value?.encryption_algorithm||`—`,readonly:``},null,8,[`model-value`])]),_:1}),v(l,{label:`入口敏感字段加密`},{default:P(()=>[v(D,{modelValue:at.value.entry_encryption_enabled,"onUpdate:modelValue":t[59]||=e=>at.value.entry_encryption_enabled=e,"active-text":`启用`,"inactive-text":`关闭`},null,8,[`modelValue`])]),_:1}),v(l,{label:`加密公钥(PEM)`},{default:P(()=>[v(o,{"model-value":it.value?.encryption_public_key||``,type:`textarea`,rows:8,readonly:``,placeholder:`暂无加密公钥`,class:`channel-public-key`},null,8,[`model-value`]),v(r,{class:`channel-public-key-copy`,disabled:!it.value?.encryption_public_key,onClick:En},{default:P(()=>[...t[142]||=[c(` 复制公钥 `,-1)]]),_:1},8,[`disabled`])]),_:1})],64)):s(``,!0),v(l,{label:`报名成功回调`},{default:P(()=>[v(ze,{modelValue:at.value.success_callback_type,"onUpdate:modelValue":t[60]||=e=>at.value.success_callback_type=e},{default:P(()=>[v(Re,{value:`none`},{default:P(()=>[...t[143]||=[c(`不回调`,-1)]]),_:1}),v(Re,{value:`web`},{default:P(()=>[...t[144]||=[c(`URL`,-1)]]),_:1}),v(Re,{value:`mini_program`},{default:P(()=>[...t[145]||=[c(`小程序`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1}),at.value.success_callback_type===`web`?(_e(),C(l,{key:2,label:`成功回跳地址`},{default:P(()=>[v(o,{modelValue:at.value.success_callback_url,"onUpdate:modelValue":t[61]||=e=>at.value.success_callback_url=e,autocomplete:`off`,placeholder:`https://example.com/...`},null,8,[`modelValue`])]),_:1})):s(``,!0),at.value.success_callback_type===`mini_program`?(_e(),be(se,{key:3},[v(l,{label:`小程序页面路径`},{default:P(()=>[v(o,{modelValue:at.value.mini_program_callback_path,"onUpdate:modelValue":t[62]||=e=>at.value.mini_program_callback_path=e,autocomplete:`off`,placeholder:`/pages/signup/result`},null,8,[`modelValue`]),t[146]||=F(`p`,{class:`form-hint`},` redirectTo、navigateTo、reLaunch 可带查询参数,系统会追加 state、application_id、status、hash 等回调参数;switchTab 只能跳 tabBar 页面,不能携带查询参数。 `,-1)]),_:1}),v(l,{label:`小程序路由方式`},{default:P(()=>[v(re,{modelValue:at.value.mini_program_callback_method,"onUpdate:modelValue":t[63]||=e=>at.value.mini_program_callback_method=e,class:`w-100`},{default:P(()=>[v(M,{label:`redirectTo(替换当前页面)`,value:`redirectTo`}),v(M,{label:`navigateTo(打开新页面)`,value:`navigateTo`}),v(M,{label:`reLaunch(重启到指定页)`,value:`reLaunch`}),v(M,{label:`switchTab(返回 tabBar 页面)`,value:`switchTab`})]),_:1},8,[`modelValue`])]),_:1})],64)):s(``,!0),at.value.success_callback_type===`none`?(_e(),C(l,{key:4,label:`回调说明`},{default:P(()=>[...t[147]||=[F(`p`,{class:`form-hint mb-0`},`选择不回调时,选手提交成功后只展示系统报名成功提示。`,-1)]]),_:1})):s(``,!0),v(l,{label:`备注`},{default:P(()=>[v(o,{modelValue:at.value.remark,"onUpdate:modelValue":t[64]||=e=>at.value.remark=e,type:`textarea`,rows:3},null,8,[`modelValue`])]),_:1}),v(l,{label:`状态`},{default:P(()=>[v(ze,{modelValue:at.value.status,"onUpdate:modelValue":t[65]||=e=>at.value.status=e},{default:P(()=>[v(Re,{value:`enabled`},{default:P(()=>[...t[148]||=[c(`启用`,-1)]]),_:1}),v(Re,{value:`disabled`},{default:P(()=>[...t[149]||=[c(`停用`,-1)]]),_:1})]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1},8,[`modelValue`,`title`]),v(Le,{modelValue:me.value,"onUpdate:modelValue":t[75]||=e=>me.value=e,title:he.value?`编辑赛道`:`新增赛道`,width:`920px`,"destroy-on-close":``,"align-center":``,class:`track-scoring-dialog`},{footer:P(()=>[v(r,{onClick:t[74]||=e=>me.value=!1},{default:P(()=>[...t[159]||=[c(`取消`,-1)]]),_:1}),v(r,{type:`primary`,onClick:rn},{default:P(()=>[...t[160]||=[c(`保存`,-1)]]),_:1})]),default:P(()=>[v(Ce,{"label-position":`top`},{default:P(()=>[v(l,{label:`赛道编码`},{default:P(()=>[v(o,{modelValue:ve.value.track_code,"onUpdate:modelValue":t[68]||=e=>ve.value.track_code=e,disabled:!!he.value,autocomplete:`off`},null,8,[`modelValue`,`disabled`])]),_:1}),v(l,{label:`标题`},{default:P(()=>[v(o,{modelValue:ve.value.title,"onUpdate:modelValue":t[69]||=e=>ve.value.title=e,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),v(l,{label:`简介`},{default:P(()=>[v(o,{modelValue:ve.value.description,"onUpdate:modelValue":t[70]||=e=>ve.value.description=e,type:`textarea`,rows:2},null,8,[`modelValue`])]),_:1}),v(Se,{gutter:16},{default:P(()=>[v(x,{span:12},{default:P(()=>[v(l,{label:`排序`},{default:P(()=>[v(Me,{modelValue:ve.value.sort,"onUpdate:modelValue":t[71]||=e=>ve.value.sort=e,step:1,"controls-position":`right`,style:{width:`100%`}},null,8,[`modelValue`])]),_:1})]),_:1}),v(x,{span:12},{default:P(()=>[v(l,{label:`状态`},{default:P(()=>[v(ie,{modelValue:ve.value.is_enabled,"onUpdate:modelValue":t[72]||=e=>ve.value.is_enabled=e},{default:P(()=>[...t[152]||=[c(`启用`,-1)]]),_:1},8,[`modelValue`])]),_:1})]),_:1})]),_:1}),v(Be,{"content-position":`left`},{default:P(()=>[...t[153]||=[c(`打分表(满分 100,未配置则禁止评审)`,-1)]]),_:1}),v(l,{label:`评分表标题`},{default:P(()=>[v(o,{modelValue:ve.value.scoring_sheet_title,"onUpdate:modelValue":t[73]||=e=>ve.value.scoring_sheet_title=e,placeholder:`如:…初复赛评分表(某某赛道)`,autocomplete:`off`},null,8,[`modelValue`])]),_:1}),F(`div`,oOe,[F(`p`,sOe,[t[154]||=c(` 当前分值合计: `,-1),F(`strong`,{class:a(Math.abs(xe.value-100)<1e-4?`text-ok`:`text-bad`)},N(xe.value),3),t[155]||=c(` / 100 `,-1)]),F(`div`,null,[v(r,{size:`small`,onClick:tn},{default:P(()=>[...t[156]||=[c(`清空打分表`,-1)]]),_:1}),v(r,{size:`small`,type:`primary`,onClick:$t},{default:P(()=>[...t[157]||=[c(`新增指标`,-1)]]),_:1})])]),v(Ee,{data:ve.value.scoring_items,border:``,size:`small`,class:`workspace-table`},{default:P(()=>[v(L,{label:`序号`,width:`72`},{default:P(({row:e})=>[v(Me,{modelValue:e.sort,"onUpdate:modelValue":t=>e.sort=t,min:1,step:1,"controls-position":`right`,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`指标分类`,"min-width":`110`},{default:P(({row:e})=>[v(o,{modelValue:e.category,"onUpdate:modelValue":t=>e.category=t,size:`small`,placeholder:`通用/特色`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`评审指标`,"min-width":`120`},{default:P(({row:e})=>[v(o,{modelValue:e.title,"onUpdate:modelValue":t=>e.title=t,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`key`,"min-width":`120`},{default:P(({row:e})=>[v(o,{modelValue:e.key,"onUpdate:modelValue":t=>e.key=t,size:`small`,placeholder:`英文字段名`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`核心评审要素`,"min-width":`180`},{default:P(({row:e})=>[v(o,{modelValue:e.criteria,"onUpdate:modelValue":t=>e.criteria=t,type:`textarea`,rows:2,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:`分值`,width:`100`},{default:P(({row:e})=>[v(Me,{modelValue:e.max_score,"onUpdate:modelValue":t=>e.max_score=t,min:0,max:100,step:1,"controls-position":`right`,size:`small`},null,8,[`modelValue`,`onUpdate:modelValue`])]),_:1}),v(L,{label:``,width:`64`,align:`center`},{default:P(({$index:e})=>[v(r,{link:``,type:`danger`,size:`small`,onClick:t=>en(e)},{default:P(()=>[...t[158]||=[c(`删`,-1)]]),_:1},8,[`onClick`])]),_:1})]),_:1},8,[`data`])]),_:1})]),_:1},8,[`modelValue`,`title`])])}}}),[[`__scopeId`,`data-v-77e5842b`]]);export{cOe as default}; |