Files
xin-procurement/public/assets/XinForm-BWtl160T.js
T
2026-08-15 00:58:18 +08:00

98 lines
932 KiB
JavaScript
Raw Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import{i as e,t}from"./rolldown-runtime-BgaNhQyE.js";import{$ as n,$t as r,B as i,Bn as a,Dr as o,E as s,Et as c,Gn as l,Hn as u,Ht as d,Jn as f,K as p,Ln as m,N as h,Pn as g,Q as _,Qt as v,Sr as y,St as b,Tt as x,Ut as S,V as C,Vn as w,Wt as T,Xn as E,Yn as D,Z as O,Zt as k,_r as A,at as j,d as M,en as N,er as P,gt as F,hr as ee,kt as te,mn as ne,nt as re,or as I,p as ie,pt as ae,q as oe,qt as se,rr as L,t as ce,u as le,ut as ue,vr as de,wr as fe,wt as pe,xn as me,xr as he,xt as ge,yr as _e,yt as ve,z as ye,zn as be}from"./jsx-runtime-CRBytmvs.js";import{t as xe}from"./request--UCyt0wo.js";import{B as Se,I as Ce,L as we,R as Te,k as Ee,n as De,r as Oe,t as ke,z as Ae}from"./lodash-DNhu68T6.js";import{f as je,l as Me,m as Ne,p as Pe,t as Fe,u as Ie,y as Le}from"./tooltip-SaeG1Uv7.js";import{a as Re,c as ze,i as Be,l as Ve,o as He,r as Ue,s as We,t as Ge}from"./table-BXi9q3AE.js";import{t as Ke}from"./space-Cu4QVMgQ.js";import{c as qe,d as Je,f as Ye,i as Xe,m as Ze,p as Qe,u as $e}from"./style-BmYds38x.js";import{r as et}from"./es-DGcDZmXr.js";import{n as tt,t as nt}from"./button-BILozH6U.js";import{n as rt,t as it}from"./LeftOutlined-8zj_FQJP.js";import{t as at}from"./PurePanel-CRkmGKGB.js";import{a as ot,c as st,d as ct,f as lt,i as ut,l as dt,o as ft,r as pt,s as mt}from"./DoubleRightOutlined-Blfli1UU.js";import{n as ht}from"./LockOutlined-B8eRH1x4.js";import{t as gt}from"./radio-CxFl70_7.js";import{n as _t}from"./card-DU2T2-YW.js";import{n as vt,t as yt}from"./checkbox-BSxplF7f.js";import{n as bt,t as xt}from"./row-DfzKzMF0.js";import{n as St,t as Ct}from"./modal-g8Q5gNCx.js";import{t as wt}from"./ClockCircleOutlined-CNdnBEY0.js";import{t as Tt}from"./form-B3R3kIqp.js";import{t as Et}from"./input-CHcsaDtX.js";import{r as Dt}from"./PictureOutlined-CB8Pr7jP.js";import{t as Ot}from"./switch--LhkZymx.js";import{t as kt}from"./tag-DBV1bHre.js";import{t as At}from"./theme-D5FZSALB.js";import{t as jt}from"./useTranslation-DBl6NYjI.js";import{m as Mt,t as Nt}from"./ImageUploader-C4yPpD75.js";var eee=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekday=r()})(e,(function(){return function(e,t){t.prototype.weekday=function(e){var t=this.$locale().weekStart||0,n=this.$W,r=(n<t?n+7:n)-t;return this.$utils().u(e)?r:this.subtract(r,`day`).add(e,`day`)}}}))})),Pt=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localeData=r()})(e,(function(){return function(e,t,n){var r=t.prototype,i=function(e){return e&&(e.indexOf?e:e.s)},a=function(e,t,n,r,a){var o=e.name?e:e.$locale(),s=i(o[t]),c=i(o[n]),l=s||c.map((function(e){return e.slice(0,r)}));if(!a)return l;var u=o.weekStart;return l.map((function(e,t){return l[(t+(u||0))%7]}))},o=function(){return n.Ls[n.locale()]},s=function(e,t){return e.formats[t]||function(e){return e.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}(e.formats[t.toUpperCase()])},c=function(){var e=this;return{months:function(t){return t?t.format(`MMMM`):a(e,`months`)},monthsShort:function(t){return t?t.format(`MMM`):a(e,`monthsShort`,`months`,3)},firstDayOfWeek:function(){return e.$locale().weekStart||0},weekdays:function(t){return t?t.format(`dddd`):a(e,`weekdays`)},weekdaysMin:function(t){return t?t.format(`dd`):a(e,`weekdaysMin`,`weekdays`,2)},weekdaysShort:function(t){return t?t.format(`ddd`):a(e,`weekdaysShort`,`weekdays`,3)},longDateFormat:function(t){return s(e.$locale(),t)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return c.bind(this)()},n.localeData=function(){var e=o();return{firstDayOfWeek:function(){return e.weekStart||0},weekdays:function(){return n.weekdays()},weekdaysShort:function(){return n.weekdaysShort()},weekdaysMin:function(){return n.weekdaysMin()},months:function(){return n.months()},monthsShort:function(){return n.monthsShort()},longDateFormat:function(t){return s(e,t)},meridiem:e.meridiem,ordinal:e.ordinal}},n.months=function(){return a(o(),`months`)},n.monthsShort=function(){return a(o(),`monthsShort`,`months`,3)},n.weekdays=function(e){return a(o(),`weekdays`,null,null,e)},n.weekdaysShort=function(e){return a(o(),`weekdaysShort`,`weekdays`,3,e)},n.weekdaysMin=function(e){return a(o(),`weekdaysMin`,`weekdays`,2,e)}}}))})),Ft=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekOfYear=r()})(e,(function(){var e=`week`,t=`year`;return function(n,r,i){var a=r.prototype;a.week=function(n){if(n===void 0&&(n=null),n!==null)return this.add(7*(n-this.week()),`day`);var r=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var a=i(this).startOf(t).add(1,t).date(r),o=i(this).endOf(e);if(a.isBefore(o))return 1}var s=i(this).startOf(t).date(r).startOf(e).subtract(1,`millisecond`),c=this.diff(s,e,!0);return c<0?i(this).startOf(`week`).week():Math.ceil(c)},a.weeks=function(e){return e===void 0&&(e=null),this.week(e)}}}))})),It=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_weekYear=r()})(e,(function(){return function(e,t){t.prototype.weekYear=function(){var e=this.month(),t=this.week(),n=this.year();return t===1&&e===11?n+1:e===0&&t>=52?n-1:n}}}))})),Lt=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_advancedFormat=r()})(e,(function(){return function(e,t){var n=t.prototype,r=n.format;n.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return r.bind(this)(e);var i=this.$utils(),a=(e||`YYYY-MM-DDTHH:mm:ssZ`).replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(e){switch(e){case`Q`:return Math.ceil((t.$M+1)/3);case`Do`:return n.ordinal(t.$D);case`gggg`:return t.weekYear();case`GGGG`:return t.isoWeekYear();case`wo`:return n.ordinal(t.week(),`W`);case`w`:case`ww`:return i.s(t.week(),e===`w`?1:2,`0`);case`W`:case`WW`:return i.s(t.isoWeek(),e===`W`?1:2,`0`);case`k`:case`kk`:return i.s(String(t.$H===0?24:t.$H),e===`k`?1:2,`0`);case`X`:return Math.floor(t.$d.getTime()/1e3);case`x`:return t.$d.getTime();case`z`:return`[`+t.offsetName()+`]`;case`zzz`:return`[`+t.offsetName(`long`)+`]`;default:return e}}));return r.bind(this)(a)}}}))})),Rt=t(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_customParseFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,n=/\d/,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,o={},s=function(e){return(e=+e)+(e>68?1900:2e3)},c=function(e){return function(t){this[e]=+t}},l=[/[+-]\d\d:?(\d\d)?|Z/,function(e){(this.zone||={}).offset=function(e){if(!e||e===`Z`)return 0;var t=e.match(/([+-]|\d\d)/g),n=60*t[1]+(+t[2]||0);return n===0?0:t[0]===`+`?-n:n}(e)}],u=function(e){var t=o[e];return t&&(t.indexOf?t:t.s.concat(t.f))},d=function(e,t){var n,r=o.meridiem;if(r){for(var i=1;i<=24;i+=1)if(e.indexOf(r(i,0,t))>-1){n=i>12;break}}else n=e===(t?`pm`:`PM`);return n},f={A:[a,function(e){this.afternoon=d(e,!1)}],a:[a,function(e){this.afternoon=d(e,!0)}],Q:[n,function(e){this.month=3*(e-1)+1}],S:[n,function(e){this.milliseconds=100*e}],SS:[r,function(e){this.milliseconds=10*e}],SSS:[/\d{3}/,function(e){this.milliseconds=+e}],s:[i,c(`seconds`)],ss:[i,c(`seconds`)],m:[i,c(`minutes`)],mm:[i,c(`minutes`)],H:[i,c(`hours`)],h:[i,c(`hours`)],HH:[i,c(`hours`)],hh:[i,c(`hours`)],D:[i,c(`day`)],DD:[r,c(`day`)],Do:[a,function(e){var t=o.ordinal,n=e.match(/\d+/);if(this.day=n[0],t)for(var r=1;r<=31;r+=1)t(r).replace(/\[|\]/g,``)===e&&(this.day=r)}],w:[i,c(`week`)],ww:[r,c(`week`)],M:[i,c(`month`)],MM:[r,c(`month`)],MMM:[a,function(e){var t=u(`months`),n=(u(`monthsShort`)||t.map((function(e){return e.slice(0,3)}))).indexOf(e)+1;if(n<1)throw Error();this.month=n%12||n}],MMMM:[a,function(e){var t=u(`months`).indexOf(e)+1;if(t<1)throw Error();this.month=t%12||t}],Y:[/[+-]?\d+/,c(`year`)],YY:[r,function(e){this.year=s(e)}],YYYY:[/\d{4}/,c(`year`)],Z:l,ZZ:l};function p(n){for(var r=n,i=o&&o.formats,a=(n=r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,n,r){var a=r&&r.toUpperCase();return n||i[r]||e[r]||i[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))).match(t),s=a.length,c=0;c<s;c+=1){var l=a[c],u=f[l],d=u&&u[0],p=u&&u[1];a[c]=p?{regex:d,parser:p}:l.replace(/^\[|\]$/g,``)}return function(e){for(var t={},n=0,r=0;n<s;n+=1){var i=a[n];if(typeof i==`string`)r+=i.length;else{var o=i.regex,c=i.parser,l=e.slice(r),u=o.exec(l)[0];c.call(t,u),e=e.replace(u,``)}}return function(e){var t=e.afternoon;if(t!==void 0){var n=e.hours;t?n<12&&(e.hours+=12):n===12&&(e.hours=0),delete e.afternoon}}(t),t}}return function(e,t,n){n.p.customParseFormat=!0,e&&e.parseTwoDigitYear&&(s=e.parseTwoDigitYear);var r=t.prototype,i=r.parse;r.parse=function(e){var t=e.date,r=e.utc,a=e.args;this.$u=r;var s=a[1];if(typeof s==`string`){var c=!0===a[2],l=!0===a[3],u=c||l,d=a[2];l&&(d=a[2]),o=this.$locale(),!c&&d&&(o=n.Ls[d]),this.$d=function(e,t,n,r){try{if([`x`,`X`].indexOf(t)>-1)return new Date((t===`X`?1e3:1)*e);var i=p(t)(e),a=i.year,o=i.month,s=i.day,c=i.hours,l=i.minutes,u=i.seconds,d=i.milliseconds,f=i.zone,m=i.week,h=new Date,g=s||(a||o?1:h.getDate()),_=a||h.getFullYear(),v=0;a&&!o||(v=o>0?o-1:h.getMonth());var y,b=c||0,x=l||0,S=u||0,C=d||0;return f?new Date(Date.UTC(_,v,g,b,x,S,C+60*f.offset*1e3)):n?new Date(Date.UTC(_,v,g,b,x,S,C)):(y=new Date(_,v,g,b,x,S,C),m&&(y=r(y).week(m).toDate()),y)}catch{return new Date(``)}}(t,s,r,n),this.init(),d&&!0!==d&&(this.$L=this.locale(d).$L),u&&t!=this.format(s)&&(this.$d=new Date(``)),o={}}else if(s instanceof Array)for(var f=s.length,m=1;m<=f;m+=1){a[1]=s[m-1];var h=n.apply(this,a);if(h.isValid()){this.$d=h.$d,this.$L=h.$L,this.init();break}m===f&&(this.$d=new Date(``))}else i.call(this,e)}}}))})),R=e(o()),zt=e(ht()),tee=e(eee()),nee=e(Pt()),Bt=e(Ft()),Vt=e(It()),Ht=e(Lt()),Ut=e(Rt());zt.default.extend(Ut.default),zt.default.extend(Ht.default),zt.default.extend(tee.default),zt.default.extend(nee.default),zt.default.extend(Bt.default),zt.default.extend(Vt.default),zt.default.extend((e,t)=>{let n=t.prototype,r=n.format;n.format=function(e){let t=(e||``).replace(`Wo`,`wo`);return r.bind(this)(t)}});var Wt={bn_BD:`bn-bd`,by_BY:`be`,en_GB:`en-gb`,en_US:`en`,fr_BE:`fr`,fr_CA:`fr-ca`,hy_AM:`hy-am`,kmr_IQ:`ku`,nl_BE:`nl-be`,pt_BR:`pt-br`,zh_CN:`zh-cn`,zh_HK:`zh-hk`,zh_TW:`zh-tw`},Gt=e=>Wt[e]||e.split(`_`)[0],Kt=e=>!zt.default.isDayjs(e)||e instanceof zt.default?e:(0,zt.default)(e.valueOf()),ree={getNow:()=>{let e=(0,zt.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,zt.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Kt(e).endOf(`month`),getWeekDay:e=>{let t=Kt(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Kt(e).year(),getMonth:e=>Kt(e).month(),getDate:e=>Kt(e).date(),getHour:e=>Kt(e).hour(),getMinute:e=>Kt(e).minute(),getSecond:e=>Kt(e).second(),getMillisecond:e=>Kt(e).millisecond(),addYear:(e,t)=>Kt(e).add(t,`year`),addMonth:(e,t)=>Kt(e).add(t,`month`),addDate:(e,t)=>Kt(e).add(t,`day`),setYear:(e,t)=>Kt(e).year(t),setMonth:(e,t)=>Kt(e).month(t),setDate:(e,t)=>Kt(e).date(t),setHour:(e,t)=>Kt(e).hour(t),setMinute:(e,t)=>Kt(e).minute(t),setSecond:(e,t)=>Kt(e).second(t),setMillisecond:(e,t)=>Kt(e).millisecond(t),isAfter:(e,t)=>Kt(e).isAfter(Kt(t)),isValidate:e=>Kt(e).isValid(),locale:{getWeekFirstDay:e=>(0,zt.default)().locale(Gt(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Kt(t).locale(Gt(e)).weekday(0),getWeek:(e,t)=>Kt(t).locale(Gt(e)).week(),getShortWeekDays:e=>(0,zt.default)().locale(Gt(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,zt.default)().locale(Gt(e)).localeData().monthsShort(),format:(e,t,n)=>Kt(t).locale(Gt(e)).format(n),parse:(e,t,n)=>{let r=Gt(e);for(let e=0;e<n.length;e+=1){let i=n[e],a=t;if(i.includes(`wo`)||i.includes(`Wo`)){let e=a.split(`-`)[0],t=a.split(`-`)[1],n=(0,zt.default)(e,`YYYY`).startOf(`year`).locale(r);for(let e=0;e<=52;e+=1){let r=n.add(e,`week`);if(r.format(`Wo`)===t)return r}return null}let o=(0,zt.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function iee(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var qt=R.createContext(null),aee={bottomLeft:{points:[`tl`,`bl`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:[`tr`,`br`],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:[`bl`,`tl`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:[`br`,`tr`],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function Jt({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=aee,direction:u,visible:d,onClose:f}){let{prefixCls:p}=R.useContext(qt),m=`${p}-dropdown`,h=iee(c,u===`rtl`);return R.createElement(ue,{showAction:[],hideAction:[`click`],popupPlacement:h,builtinPlacements:l,prefixCls:m,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:w(n,{[`${m}-range`]:s,[`${m}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function Yt(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function Xt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Zt(e,t,n){let r=[...e];return r[t]=n,r}function Qt(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function $t(e,t,n){if(n)return n;switch(e){case`time`:return t.fieldTimeFormat;case`datetime`:return t.fieldDateTimeFormat;case`month`:return t.fieldMonthFormat;case`year`:return t.fieldYearFormat;case`quarter`:return t.fieldQuarterFormat;case`week`:return t.fieldWeekFormat;default:return t.fieldDateFormat}}function en(e,t,n){let r=n===void 0?t[t.length-1]:n,i=t.find(t=>e[t]);return r===i?void 0:e[i]}function tn(e){return Qt(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function nn(e,t,n,r){let i=R.useMemo(()=>e||((e,r)=>{let i=e;return t&&r.type===`date`?t(i,r.today):n&&r.type===`month`?n(i,r.locale):r.originNode}),[e,n,t]);return R.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function rn(e,t,n=[]){let[r,i]=R.useState([!1,!1]);return[R.useMemo(()=>r.map((r,i)=>{if(r)return!0;let a=e[i];return a?!!(!n[i]&&!a||a&&t(a,{activeIndex:i})):!1}),[e,r,t,n]),(e,t)=>{i(n=>Zt(n,t,e))}]}function an(e,t,n,r,i){let a=``,o=[];return e&&o.push(i?`hh`:`HH`),t&&o.push(`mm`),n&&o.push(`ss`),a=o.join(`:`),r&&(a+=`.SSS`),i&&(a+=` A`),a}function on(e,t,n,r,i,a){let{fieldDateTimeFormat:o,fieldDateFormat:s,fieldTimeFormat:c,fieldMonthFormat:l,fieldYearFormat:u,fieldWeekFormat:d,fieldQuarterFormat:f,yearFormat:p,cellYearFormat:m,cellQuarterFormat:h,dayFormat:g,cellDateFormat:_}=e,v=an(t,n,r,i,a);return{...e,fieldDateTimeFormat:o||`YYYY-MM-DD ${v}`,fieldDateFormat:s||`YYYY-MM-DD`,fieldTimeFormat:c||v,fieldMonthFormat:l||`YYYY-MM`,fieldYearFormat:u||`YYYY`,fieldWeekFormat:d||`gggg-wo`,fieldQuarterFormat:f||`YYYY-[Q]Q`,yearFormat:p||`YYYY`,cellYearFormat:m||`YYYY`,cellQuarterFormat:h||`[Q]Q`,cellDateFormat:_||g||`D`}}function sn(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return R.useMemo(()=>on(e,n,r,i,a,o),[e,n,r,i,a,o])}function cn(e,t,n){return n??t.some(t=>e.includes(t))}var oee=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function see(e){let t=Qt(e,oee),{format:n,picker:r}=e,i=null;return n&&(i=n,Array.isArray(i)&&(i=i[0]),i=typeof i==`object`?i.format:i),r===`time`&&(t.format=i),[t,i]}function cee(e){return e&&typeof e==`string`}function ln(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function un(e,t,n,r,i){let a=t,o=n,s=r;if(!e&&!a&&!o&&!s&&!i)a=!0,o=!0,s=!0;else if(e){let e=[a,o,s].some(e=>e===!1),t=[a,o,s].some(e=>e===!0),n=e?!0:!t;a??=n,o??=n,s??=n}return[a,o,s,i]}function dn(e){let{showTime:t}=e,[n,r]=see(e),i=t&&typeof t==`object`?t:{},a={defaultOpenValue:i.defaultOpenValue||i.defaultValue,...n,...i},{showMillisecond:o}=a,{showHour:s,showMinute:c,showSecond:l}=a,u=ln(s,c,l,o);return[s,c,l]=un(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function fn(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=$t(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=Xt(s[e])[0];if(cee(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=cn(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=ln(c,l,u,d);m||(c=cn(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=cn(o,[`m`,`LT`,`LLL`]),u=cn(o,[`s`,`LTS`]),d=cn(o,[`SSS`])),[c,l,u]=un(m,c,l,u,d);let h=t||an(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function lee(e,t,n){return t===!1?null:(t&&typeof t==`object`?t:{}).clearIcon||n||R.createElement(`span`,{className:`${e}-clear-btn`})}function pn(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function mn(e,t,n){return pn(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function hn(e,t,n){return pn(t,n,()=>e.getYear(t)===e.getYear(n))}function gn(e,t){return Math.floor(e.getMonth(t)/3)+1}function _n(e,t,n){return pn(t,n,()=>hn(e,t,n)&&gn(e,t)===gn(e,n))}function vn(e,t,n){return pn(t,n,()=>hn(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function yn(e,t,n){return pn(t,n,()=>hn(e,t,n)&&vn(e,t,n)&&e.getDate(t)===e.getDate(n))}function bn(e,t,n){return pn(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function xn(e,t,n){return pn(t,n,()=>yn(e,t,n)&&bn(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function Sn(e,t,n,r){return pn(n,r,()=>hn(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function Cn(e,t,n,r,i){switch(i){case`date`:return yn(e,n,r);case`week`:return Sn(e,t.locale,n,r);case`month`:return vn(e,n,r);case`quarter`:return _n(e,n,r);case`year`:return hn(e,n,r);case`decade`:return mn(e,n,r);case`time`:return bn(e,n,r);default:return xn(e,n,r)}}function wn(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function Tn(e,t,n,r,i){return Cn(e,t,n,r,i)?!0:e.isAfter(n,r)}function En(e,t,n){let r=t.locale.getWeekFirstDay(e),i=t.setDate(n,1),a=t.getWeekDay(i),o=t.addDate(i,r-a);return t.getMonth(o)===t.getMonth(n)&&t.getDate(o)>1&&(o=t.addDate(o,-7)),o}function Dn(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function On(e,t,n){let r=t,i=[`getHour`,`getMinute`,`getSecond`,`getMillisecond`];return[`setHour`,`setMinute`,`setSecond`,`setMillisecond`].forEach((t,a)=>{r=n?e[t](r,e[i[a]](n)):e[t](r,0)}),r}function uee(e,t,n,r,i){return fe((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!Cn(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!Cn(e,t,i,a,o.type)))}function dee(e,t,n){return R.useMemo(()=>{let r=Xt($t(e,t,n)),i=r[0],a=typeof i==`object`&&i.type===`mask`?i.format:null;return[r.map(e=>typeof e==`string`||typeof e==`function`?e:e.format),a]},[e,t,n])}function fee(e,t,n){return typeof e[0]==`function`||n?!0:t}function pee(e,t,n,r){return fe((i,a)=>{let o={type:t,...a};if(delete o.activeIndex,!e.isValidate(i)||n&&n(i,o))return!0;if((t===`date`||t===`time`)&&r){let t=a&&a.activeIndex===1?`end`:`start`,{disabledHours:n,disabledMinutes:s,disabledSeconds:c,disabledMilliseconds:l}=r.disabledTime?.(i,t,{from:o.from})||{},{disabledHours:u,disabledMinutes:d,disabledSeconds:f}=r,p=n||u,m=s||d,h=c||f,g=e.getHour(i),_=e.getMinute(i),v=e.getSecond(i),y=e.getMillisecond(i);if(p&&p().includes(g)||m&&m(g).includes(_)||h&&h(g,_).includes(v)||l&&l(g,_,v).includes(y))return!0}return!1})}function kn(e,t=!1){return R.useMemo(()=>{let n=e&&Xt(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function An(e,t){let{generateConfig:n,locale:r,picker:i=`date`,prefixCls:a=`rc-picker`,previewValue:o=`hover`,styles:s={},classNames:c={},order:l=!0,components:u={},inputRender:d,allowClear:f,clearIcon:p,needConfirm:m,multiple:h,format:g,inputReadOnly:_,disabledDate:v,minDate:y,maxDate:b,showTime:x,value:S,defaultValue:C,pickerValue:w,defaultPickerValue:T}=e,E=kn(S),D=kn(C),O=kn(w),k=kn(T),A=i===`date`&&x?`datetime`:i,j=A===`time`||A===`datetime`,M=j||h,N=m??j,[P,F,ee,te]=dn(e),ne=sn(r,F),re=R.useMemo(()=>fn(A,ee,te,P,ne),[A,ee,te,P,ne]),I=R.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:ne,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:lee(a,f,p),showTime:re,value:E,defaultValue:D,pickerValue:O,defaultPickerValue:k,...t?.()}),[e]),[ie,ae]=dee(A,ne,g),oe=fee(ie,_,h),se=uee(n,r,v,y,b),L=pee(n,i,se,re);return[R.useMemo(()=>({...I,needConfirm:N,inputReadOnly:oe,disabledDate:se}),[I,N,oe,se]),A,M,ie,ae,L]}function mee(e,t,n){let[r,i]=_e(t,e),[,a]=R.useState({}),o=fe(e=>{i(e),a({})}),s=R.useRef(e),c=R.useRef(),l=()=>{de.cancel(c.current)},u=fe(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),d=fe((e,t)=>{l(),s.current=e,e||t?u():c.current=de(u)});return R.useEffect(()=>l,[]),[r,d]}function jn(e,t,n=[],r){let[i,a]=mee(!n.every(e=>e)&&e,t||!1,r);function o(e,t={}){(!t.inherit||i)&&a(e,t.force)}return[i,o]}function Mn(e){let t=R.useRef();return R.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Nn(e,t){return R.useMemo(()=>e||(t?(P(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function Pn(e,t,n=1){let r=R.useRef(t);r.current=t,y(()=>{if(e)r.current(e);else{let t=de(()=>{r.current(e)},n);return()=>{de.cancel(t)}}},[e])}function Fn(e,t=[],n=!1){let[r,i]=R.useState(0),[a,o]=R.useState(!1),s=R.useRef([]),c=R.useRef(null),l=R.useRef(null),u=e=>{c.current=e};return Pn(a||n,()=>{a||(s.current=[],u(null))}),R.useEffect(()=>{a&&s.current.push(r)},[a,r]),[a,e=>{o(e)},e=>(e&&(l.current=e),l.current),r,i,n=>{let r=s.current,i=new Set(r.filter(e=>n[e]||t[e])),a=+(r[r.length-1]===0);return i.size>=2||e[a]?null:a},s.current,u,e=>c.current===e]}function hee(e,t,n,r,i,a){let o=n[n.length-1];return(s,c)=>{let[l,u]=e,d={...c,from:en(e,n)};return o===1&&t[0]&&l&&!Cn(r,i,l,s,d.type)&&r.isAfter(l,s)||o===0&&t[1]&&u&&!Cn(r,i,u,s,d.type)&&r.isAfter(s,u)?!0:a?.(s,d)}}function In(e,t,n,r){switch(t){case`date`:case`week`:return e.addMonth(n,r);case`month`:case`quarter`:return e.addYear(n,r);case`year`:return e.addYear(n,r*10);case`decade`:return e.addYear(n,r*100);default:return n}}var Ln=[];function Rn(e,t,n,r,i,a,o,s,c=Ln,l=Ln,u=Ln,d,f,p){let m=o===`time`,h=a||0,g=t=>{let r=e.getNow();return m&&(r=On(e,r)),c[t]||n[t]||r},[_,v]=l,[y,b]=_e(()=>g(0),_),[x,S]=_e(()=>g(1),v),C=R.useMemo(()=>{let t=[y,x][h];return m?t:On(e,t,u[h])},[m,y,x,h,e,u]),w=(n,i=`panel`)=>{let a=[b,S][h];a(n);let s=[y,x];s[h]=n,d&&(!Cn(e,t,y,s[0],o)||!Cn(e,t,x,s[1],o))&&d(s,{source:i,range:h===1?`end`:`start`,mode:r})},T=(n,r)=>{if(s){let i={date:`month`,week:`month`,month:`year`,quarter:`year`}[o];if(i&&!Cn(e,t,n,r,i)||o===`year`&&n&&Math.floor(e.getYear(n)/10)!==Math.floor(e.getYear(r)/10))return In(e,o,r,-1)}return r},E=R.useRef(null);return he(()=>{if(i&&!c[h]){let t=m?null:e.getNow();if(E.current!==null&&E.current!==h?t=[y,x][h^1]:n[h]?t=h===0?n[0]:T(n[0],n[1]):n[h^1]&&(t=n[h^1]),t){f&&e.isAfter(f,t)&&(t=f);let n=s?In(e,o,t,1):t;p&&e.isAfter(n,p)&&(t=s?In(e,o,p,-1):p),w(t,`reset`)}}},[i,h,n[h]]),R.useEffect(()=>{i?E.current=h:E.current=null},[i,h]),he(()=>{i&&c&&c[h]&&w(c[h],`reset`)},[i,h]),[C,w]}function zn(e,t){let n=R.useRef(e),[,r]=R.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Bn=[];function Vn(e,t,n){return[r=>r.map(r=>Dn(r,{generateConfig:e,locale:t,format:n[0]})),(t,n)=>{let r=Math.max(t.length,n.length),i=-1;for(let a=0;a<r;a+=1){let r=t[a]||null,o=n[a]||null;if(r!==o&&!xn(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function Hn(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function gee(e){let[t,n]=zn(e),r=fe(()=>{n(e)});return R.useEffect(()=>{r()},[e]),[t,n]}function Un(e,t,n,r,i,a,o,s,c){let[l,u]=_e(a,o),d=l||Bn,[f,p]=gee(d),[m,h]=Vn(e,t,n);return[d,u,f,fe(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Hn(n.filter(e=>e),e));let[a,o]=h(f(),n);if(!a&&(p(n),s)){let e=m(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(f())}]}function Wn(e,t,n,r,i,a,o,s,c,l){let{generateConfig:u,locale:d,picker:f,onChange:p,allowEmpty:m,order:h}=e,g=!a.some(e=>e)&&h,[_,v]=Vn(u,d,o),[y,b]=zn(t),x=fe(()=>{b(t)});R.useEffect(()=>{x()},[t]);let S=fe(e=>{let r=e===null,o=[...e||y()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}g&&o[0]&&o[1]&&(o=Hn(o,u)),i(o);let[s,c]=o,b=!s,x=!c,S=!m||(!b||m[0])&&(!x||m[1]),C=!h||b||x||Cn(u,d,s,c,f)||u.isAfter(c,s),w=(a[0]||!s||!l(s,{activeIndex:0}))&&(a[1]||!c||!l(c,{from:s,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=v(o,t);if(p&&!e){let e=o.every(e=>!e);p(r&&e?null:o,e?null:_(o))}}return T}),C=fe((e,t)=>{let n=Zt(y(),e,r()[e]);b(n),t&&S()}),w=!s&&!c;return Pn(!w,()=>{w&&(S(),i(t),x())},2),[C,S]}function Gn(e,t,n,r,i){return t!==`date`&&t!==`time`?!1:n===void 0?r===void 0?!i&&(e===`date`||e===`time`):r:n}function _ee(e,t,n,r,i,a){let o=e;function s(e,t,n){let r=a[e](o),i=n.find(e=>e.value===r);if(!i||i.disabled){let e=n.filter(e=>!e.disabled),i=[...e].reverse().find(e=>e.value<=r)||e[0];i&&(r=i.value,o=a[t](o,r))}return r}let c=s(`getHour`,`setHour`,t()),l=s(`getMinute`,`setMinute`,n(c));return s(`getMillisecond`,`setMillisecond`,i(c,l,s(`getSecond`,`setSecond`,r(c,l)))),o}function Kn(){return[]}function qn(e,t,n=1,r=!1,i=[],a=2){let o=[],s=n>=1?n|0:1;for(let n=e;n<=t;n+=s){let e=i.includes(n);(!e||!r)&&o.push({label:Yt(n,a),value:n,disabled:e})}return o}function Jn(e,t={},n){let{use12Hours:r,hourStep:i=1,minuteStep:a=1,secondStep:o=1,millisecondStep:s=100,hideDisabledOptions:c,disabledTime:l,disabledHours:u,disabledMinutes:d,disabledSeconds:f}=t||{},p=R.useMemo(()=>n||e.getNow(),[n,e]),m=R.useCallback(e=>{let t=l?.(e)||{};return[t.disabledHours||u||Kn,t.disabledMinutes||d||Kn,t.disabledSeconds||f||Kn,t.disabledMilliseconds||Kn]},[l,u,d,f]),[h,g,_,v]=R.useMemo(()=>m(p),[p,m]),y=R.useCallback((e,t,n,l)=>{let u=qn(0,23,i,c,e());return[r?u.map(e=>({...e,label:Yt(e.value%12||12,2)})):u,e=>qn(0,59,a,c,t(e)),(e,t)=>qn(0,59,o,c,n(e,t)),(e,t,n)=>qn(0,999,s,c,l(e,t,n),3)]},[c,i,r,s,a,o]),[b,x,S,C]=R.useMemo(()=>y(h,g,_,v),[y,h,g,_,v]);return[(t,n)=>{let r=()=>b,i=x,a=S,o=C;if(n){let[e,t,s,c]=m(n),[l,u,d,f]=y(e,t,s,c);r=()=>l,i=u,a=d,o=f}return _ee(t,r,i,a,o,e)},b,x,S,C]}function Yn(e){let{mode:t,internalMode:n,renderExtraFooter:r,showNow:i,showTime:a,onSubmit:o,onNow:s,invalid:c,needConfirm:l,generateConfig:u,disabledDate:d}=e,{prefixCls:f,locale:p,button:m=`button`,classNames:h,styles:g}=R.useContext(qt),_=u.getNow(),[v]=Jn(u,a,_),y=r?.(t),b=d(_,{type:t}),x=()=>{if(!b){let e=v(_);s(e)}},S=`${f}-now`,C=`${S}-btn`,T=i&&R.createElement(`li`,{className:S},R.createElement(`a`,{className:w(C,b&&`${C}-disabled`),"aria-disabled":b,onClick:x},n===`date`?p.today:p.now)),E=l&&R.createElement(`li`,{className:`${f}-ok`},R.createElement(m,{disabled:c,onClick:o},p.ok)),D=(T||E)&&R.createElement(`ul`,{className:`${f}-ranges`},T,E);return!y&&!D?null:R.createElement(`div`,{className:w(`${f}-footer`,h.popup.footer),style:g.popup.footer},y&&R.createElement(`div`,{className:`${f}-footer-extra`},y),D)}function Xn(e,t,n){function r(r,i){let a=r.findIndex(r=>Cn(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Zn=R.createContext(null),Qn=R.createContext(null);function $n(){return R.useContext(Qn)}function er(e,t){let{prefixCls:n,generateConfig:r,locale:i,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,values:f,pickerValue:p,onSelect:m,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v}=e,{classNames:y,styles:b}=R.useContext(Zn),x=r.getNow();return[{now:x,values:f,pickerValue:p,prefixCls:n,classNames:y,styles:b,disabledDate:a,minDate:o,maxDate:s,cellRender:c,hoverValue:l,hoverRangeValue:u,onHover:d,locale:i,generateConfig:r,onSelect:m,panelType:t,prevIcon:h,nextIcon:g,superPrevIcon:_,superNextIcon:v},x]}var tr=R.createContext({});function nr(e){let{rowNum:t,colNum:n,baseDate:r,getCellDate:i,prefixColumn:a,rowClassName:o,titleFormat:s,getCellText:c,getCellClassName:l,headerCells:u,cellSelection:d=!0,disabledDate:f}=e,{prefixCls:p,classNames:m,styles:h,panelType:g,now:_,disabledDate:v,cellRender:y,onHover:b,hoverValue:x,hoverRangeValue:S,generateConfig:C,values:T,locale:E,onSelect:D}=$n(),O=f||v,k=`${p}-cell`,{onCellDblClick:A}=R.useContext(tr),j=e=>T.some(t=>t&&Cn(C,E,e,t,g)),M=[];for(let e=0;e<t;e+=1){let t=[],u;for(let o=0;o<n;o+=1){let f=i(r,e*n+o),v=O?.(f,{type:g});o===0&&(u=f,a&&t.push(a(u)));let T=!1,M=!1,N=!1;if(d&&S){let[e,t]=S;T=wn(C,e,t,f),M=Cn(C,E,f,e,g),N=Cn(C,E,f,t,g)}let P=s?Dn(f,{locale:E,format:s,generateConfig:C}):void 0,F=R.createElement(`div`,{className:`${k}-inner`},c(f));t.push(R.createElement(`td`,{key:o,title:P,className:w(k,m.item,{[`${k}-disabled`]:v,[`${k}-hover`]:(x||[]).some(e=>Cn(C,E,f,e,g)),[`${k}-in-range`]:T&&!M&&!N,[`${k}-range-start`]:M,[`${k}-range-end`]:N,[`${p}-cell-selected`]:!S&&g!==`week`&&j(f),...l(f)}),style:h.item,onClick:()=>{v||D(f)},onDoubleClick:()=>{!v&&A&&A()},onMouseEnter:()=>{v||b?.(f)},onMouseLeave:()=>{v||b?.(null)}},y?y(f,{prefixCls:p,originNode:F,today:_,type:g,locale:E}):F))}M.push(R.createElement(`tr`,{key:e,className:o?.(u)},t))}return R.createElement(`div`,{className:w(`${p}-body`,m.body),style:h.body},R.createElement(`table`,{className:w(`${p}-content`,m.content),style:h.content},u&&R.createElement(`thead`,null,R.createElement(`tr`,null,u)),R.createElement(`tbody`,null,M)))}var rr={visibility:`hidden`};function ir(e){let{offset:t,superOffset:n,onChange:r,getStart:i,getEnd:a,children:o}=e,{prefixCls:s,classNames:c,styles:l,prevIcon:u=``,nextIcon:d=``,superPrevIcon:f=`«`,superNextIcon:p=`»`,minDate:m,maxDate:h,generateConfig:g,locale:_,pickerValue:v,panelType:y}=$n(),b=`${s}-header`,{hidePrev:x,hideNext:S,hideHeader:C}=R.useContext(tr),T=R.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!Tn(g,_,e,m,y)},[m,t,v,a,g,_,y]),E=R.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!Tn(g,_,e,m,y)},[m,n,v,a,g,_,y]),D=R.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!Tn(g,_,h,e,y)},[h,t,v,i,g,_,y]),O=R.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!Tn(g,_,h,e,y)},[h,n,v,i,g,_,y]),k=e=>{t&&r(t(e,v))},A=e=>{n&&r(n(e,v))};if(C)return null;let j=`${b}-prev-btn`,M=`${b}-next-btn`,N=`${b}-super-prev-btn`,P=`${b}-super-next-btn`;return R.createElement(`div`,{className:w(b,c.header),style:l.header},n&&R.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>A(-1),tabIndex:-1,className:w(N,E&&`${N}-disabled`),disabled:E,style:x?rr:{}},f),t&&R.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>k(-1),tabIndex:-1,className:w(j,T&&`${j}-disabled`),disabled:T,style:x?rr:{}},u),R.createElement(`div`,{className:`${b}-view`},o),t&&R.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>k(1),tabIndex:-1,className:w(M,D&&`${M}-disabled`),disabled:D,style:S?rr:{}},d),n&&R.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>A(1),tabIndex:-1,className:w(P,O&&`${P}-disabled`),disabled:O,style:S?rr:{}},p))}function ar(){return ar=Object.assign?Object.assign.bind():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},ar.apply(this,arguments)}function or(e){let{prefixCls:t,panelName:n=`date`,locale:r,generateConfig:i,pickerValue:a,onPickerValueChange:o,onModeChange:s,mode:c=`date`,disabledDate:l,onSelect:u,onHover:d,showWeek:f}=e,p=`${t}-${n}-panel`,m=`${t}-cell`,h=c===`week`,[g,_]=er(e,c),v=i.locale.getWeekFirstDay(r.locale),y=i.setDate(a,1),b=En(r.locale,i,y),x=i.getMonth(a),S=(f===void 0?h:f)?e=>{let t=l?.(e,{type:`week`});return R.createElement(`td`,{key:`week`,className:w(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},R.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,C=[],T=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);S&&C.push(R.createElement(`th`,{key:`empty`},R.createElement(`span`,{style:{width:0,height:0,position:`absolute`,overflow:`hidden`,opacity:0}},r.week)));for(let e=0;e<7;e+=1)C.push(R.createElement(`th`,{key:e},T[(e+v)%7]));let E=(e,t)=>i.addDate(e,t),D=e=>Dn(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),O=e=>({[`${t}-cell-in-view`]:vn(i,e,a),[`${t}-cell-today`]:yn(i,e,_)}),k=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),A=R.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},Dn(a,{locale:r,format:r.yearFormat,generateConfig:i})),j=R.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?Dn(a,{locale:r,format:r.monthFormat,generateConfig:i}):k[x]),M=r.monthBeforeYear?[j,A]:[A,j];return R.createElement(Qn.Provider,{value:g},R.createElement(`div`,{className:w(p,f&&`${p}-show-week`)},R.createElement(ir,{offset:e=>i.addMonth(a,e),superOffset:e=>i.addYear(a,e),onChange:o,getStart:e=>i.setDate(e,1),getEnd:e=>{let t=i.setDate(e,1);return t=i.addMonth(t,1),i.addDate(t,-1)}},M),R.createElement(nr,ar({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:C,getCellDate:E,getCellText:D,getCellClassName:O,prefixColumn:S,cellSelection:!h}))))}var sr=1/3;function vee(e,t){let n=R.useRef(!1),r=R.useRef(null),i=R.useRef(null),a=()=>n.current,o=()=>{de.cancel(r.current),n.current=!1},s=R.useRef();return[fe(()=>{let a=e.current;if(i.current=null,s.current=0,a){let e=a.querySelector(`[data-value="${t}"]`),c=a.querySelector(`li`),l=()=>{o(),n.current=!0,s.current+=1;let{scrollTop:t}=a,u=c.offsetTop,d=e.offsetTop,f=d-u;if(d===0&&e!==c||!I(a)){s.current<=5&&(r.current=de(l));return}let p=t+(f-t)*sr,m=Math.abs(f-p);if(i.current!==null&&i.current<m){o();return}if(i.current=m,m<=1){a.scrollTop=f,o();return}a.scrollTop=p,r.current=de(l)};e&&c&&l()}}),o,a]}var yee=300;function bee(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function cr(e){let{units:t,value:n,optionalValue:r,type:i,onChange:a,onHover:o,onDblClick:s,changeOnScroll:c}=e,{prefixCls:l,cellRender:u,now:d,locale:f,classNames:p,styles:m}=$n(),h=`${l}-time-panel`,g=`${l}-time-panel-cell`,_=R.useRef(null),v=R.useRef(),y=()=>{clearTimeout(v.current)},[b,x,S]=vee(_,n??r);he(()=>(b(),y(),()=>{x(),y()}),[n,r,bee(t)]);let C=e=>{y();let n=e.target;!S()&&c&&(v.current=setTimeout(()=>{let e=_.current,r=e.querySelector(`li`).offsetTop,i=Array.from(e.querySelectorAll(`li`)).map(e=>e.offsetTop-r).map((e,r)=>t[r].disabled?2**53-1:Math.abs(e-n.scrollTop)),o=Math.min(...i),s=i.findIndex(e=>e===o),c=t[s];c&&!c.disabled&&a(c.value)},yee))},T=`${h}-column`;return R.createElement(`ul`,{className:T,ref:_,"data-type":i,onScroll:C},t.map(({label:e,value:t,disabled:r})=>{let c=R.createElement(`div`,{className:`${g}-inner`},e);return R.createElement(`li`,{key:t,style:m.item,className:w(g,p.item,{[`${g}-selected`]:n===t,[`${g}-disabled`]:r}),onClick:()=>{r||a(t)},onDoubleClick:()=>{!r&&s&&s()},onMouseEnter:()=>{o(t)},onMouseLeave:()=>{o(null)},"data-value":t},u?u(t,{prefixCls:l,originNode:c,today:d,type:`time`,subType:i,locale:f}):c)}))}function lr(){return lr=Object.assign?Object.assign.bind():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},lr.apply(this,arguments)}function ur(e){return e<12}function xee(e){let{showHour:t,showMinute:n,showSecond:r,showMillisecond:i,use12Hours:a,changeOnScroll:o}=e,{prefixCls:s,classNames:c,styles:l,values:u,generateConfig:d,locale:f,onSelect:p,onHover:m=()=>{},pickerValue:h}=$n(),g=u?.[0]||null,{onCellDblClick:_}=R.useContext(tr),[v,y,b,x,S]=Jn(d,e,g),C=e=>[g&&d[e](g),h&&d[e](h)],[T,E]=C(`getHour`),[D,O]=C(`getMinute`),[k,A]=C(`getSecond`),[j,M]=C(`getMillisecond`),N=T===null?null:ur(T)?`am`:`pm`,P=R.useMemo(()=>a?ur(T)?y.filter(e=>ur(e.value)):y.filter(e=>!ur(e.value)):y,[T,y,a]),F=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},ee=F(y,T),te=R.useMemo(()=>b(ee),[b,ee]),ne=F(te,D),re=R.useMemo(()=>x(ee,ne),[x,ee,ne]),I=F(re,k),ie=R.useMemo(()=>S(ee,ne,I),[S,ee,ne,I]),ae=F(ie,j),oe=R.useMemo(()=>{if(!a)return[];let e=d.getNow(),t=d.setHour(e,9),n=d.setHour(e,15),r=(e,t)=>{let{cellMeridiemFormat:n}=f;return n?Dn(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!ur(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||ur(e.value))}]},[y,a,d,f]),se=e=>{let t=v(e);p(t)},L=R.useMemo(()=>{let e=g||h||d.getNow(),t=e=>e!=null;return t(T)?(e=d.setHour(e,T),e=d.setMinute(e,D),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):t(E)?(e=d.setHour(e,E),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):t(ee)&&(e=d.setHour(e,ee),e=d.setMinute(e,ne),e=d.setSecond(e,I),e=d.setMillisecond(e,ae)),e},[g,h,T,D,k,j,ee,ne,I,ae,E,O,A,M,d]),ce=(e,t)=>e===null?null:d[t](L,e),le=e=>ce(e,`setHour`),ue=e=>ce(e,`setMinute`),de=e=>ce(e,`setSecond`),fe=e=>ce(e,`setMillisecond`),pe=e=>e===null?null:e===`am`&&!ur(T)?d.setHour(L,T-12):e===`pm`&&ur(T)?d.setHour(L,T+12):L,me=e=>{se(le(e))},he=e=>{se(ue(e))},ge=e=>{se(de(e))},_e=e=>{se(fe(e))},ve=e=>{se(pe(e))},ye=e=>{m(le(e))},be=e=>{m(ue(e))},xe=e=>{m(de(e))},Se=e=>{m(fe(e))},Ce=e=>{m(pe(e))},we={onDblClick:_,changeOnScroll:o};return R.createElement(`div`,{className:w(`${s}-content`,c.content),style:l.content},t&&R.createElement(cr,lr({units:P,value:T,optionalValue:E,type:`hour`,onChange:me,onHover:ye},we)),n&&R.createElement(cr,lr({units:te,value:D,optionalValue:O,type:`minute`,onChange:he,onHover:be},we)),r&&R.createElement(cr,lr({units:re,value:k,optionalValue:A,type:`second`,onChange:ge,onHover:xe},we)),i&&R.createElement(cr,lr({units:ie,value:j,optionalValue:M,type:`millisecond`,onChange:_e,onHover:Se},we)),a&&R.createElement(cr,lr({units:oe,value:N,type:`meridiem`,onChange:ve,onHover:Ce},we)))}function dr(e){let{prefixCls:t,value:n,locale:r,generateConfig:i,showTime:a}=e,{format:o}=a||{},s=`${t}-time-panel`,[c]=er(e,`time`);return R.createElement(Qn.Provider,{value:c},R.createElement(`div`,{className:w(s)},R.createElement(ir,null,n?Dn(n,{locale:r,format:o,generateConfig:i}):`\xA0`),R.createElement(xee,a)))}function fr(){return fr=Object.assign?Object.assign.bind():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},fr.apply(this,arguments)}function See(e){let{prefixCls:t,generateConfig:n,showTime:r,onSelect:i,value:a,pickerValue:o,onHover:s}=e,c=`${t}-datetime-panel`,[l]=Jn(n,r),u=e=>a?On(n,e,a):On(n,e,o);return R.createElement(`div`,{className:c},R.createElement(or,fr({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),R.createElement(dr,e))}function pr(){return pr=Object.assign?Object.assign.bind():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},pr.apply(this,arguments)}function Cee(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o}=e,s=`${t}-decade-panel`,[c]=er(e,`decade`),l=e=>{let t=Math.floor(r.getYear(e)/100)*100;return r.setYear(e,t)},u=e=>{let t=l(e);return r.addYear(t,99)},d=l(i),f=u(i),p=r.addYear(d,-10),m=(e,t)=>r.addYear(e,t*10),h=e=>{let t=n.cellYearFormat;return`${Dn(e,{locale:n,format:t,generateConfig:r})}-${Dn(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:mn(r,e,d)||mn(r,e,f)||wn(r,d,f,e)}),_=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,0),o=r.setYear(i,Math.floor(r.getYear(i)/10)*10),s=r.addYear(o,10),c=r.addDate(s,-1);return a(o,t)&&a(c,t)}:null,v=`${Dn(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${Dn(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return R.createElement(Qn.Provider,{value:c},R.createElement(`div`,{className:s},R.createElement(ir,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),R.createElement(nr,pr({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}function mr(){return mr=Object.assign?Object.assign.bind():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},mr.apply(this,arguments)}function wee(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-month-panel`,[l]=er(e,`month`),u=r.setMonth(i,0),d=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),f=(e,t)=>r.addMonth(e,t),p=e=>{let t=r.getMonth(e);return n.monthFormat?Dn(e,{locale:n,format:n.monthFormat,generateConfig:r}):d[t]},m=()=>({[`${t}-cell-in-view`]:!0}),h=a?(e,t)=>{let n=r.setDate(e,1),i=r.setMonth(n,r.getMonth(n)+1),o=r.addDate(i,-1);return a(n,t)&&a(o,t)}:null,g=R.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},Dn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return R.createElement(Qn.Provider,{value:l},R.createElement(`div`,{className:c},R.createElement(ir,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),R.createElement(nr,mr({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}function hr(){return hr=Object.assign?Object.assign.bind():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},hr.apply(this,arguments)}function Tee(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,onPickerValueChange:a,onModeChange:o}=e,s=`${t}-quarter-panel`,[c]=er(e,`quarter`),l=r.setMonth(i,0),u=(e,t)=>r.addMonth(e,t*3),d=e=>Dn(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=R.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},Dn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return R.createElement(Qn.Provider,{value:c},R.createElement(`div`,{className:s},R.createElement(ir,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),R.createElement(nr,hr({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}function gr(){return gr=Object.assign?Object.assign.bind():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},gr.apply(this,arguments)}function Eee(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return R.createElement(or,gr({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=Sn(n,s,r,e),l=Sn(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&wn(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>Sn(n,s,e,t))),w(c,{[`${c}-selected`]:!o&&Sn(n,s,i,e)},t)}}))}function _r(){return _r=Object.assign?Object.assign.bind():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},_r.apply(this,arguments)}function Dee(e){let{prefixCls:t,locale:n,generateConfig:r,pickerValue:i,disabledDate:a,onPickerValueChange:o,onModeChange:s}=e,c=`${t}-year-panel`,[l]=er(e,`year`),u=e=>{let t=Math.floor(r.getYear(e)/10)*10;return r.setYear(e,t)},d=e=>{let t=u(e);return r.addYear(t,9)},f=u(i),p=d(i),m=r.addYear(f,-1),h=(e,t)=>r.addYear(e,t),g=e=>Dn(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:hn(r,e,f)||hn(r,e,p)||wn(r,f,p,e)}),v=a?(e,t)=>{let n=r.setMonth(e,0),i=r.setDate(n,1),o=r.addYear(i,1),s=r.addDate(o,-1);return a(i,t)&&a(s,t)}:null,y=R.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},Dn(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,Dn(p,{locale:n,format:n.yearFormat,generateConfig:r}));return R.createElement(Qn.Provider,{value:l},R.createElement(`div`,{className:c},R.createElement(ir,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),R.createElement(nr,_r({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}function vr(){return vr=Object.assign?Object.assign.bind():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},vr.apply(this,arguments)}var Oee={date:or,datetime:See,week:Eee,month:wee,quarter:Tee,year:Dee,decade:Cee,time:dr};function kee(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:u,value:d,onChange:f,onSelect:p,defaultPickerValue:m,pickerValue:h,onPickerValueChange:g,mode:_,onPanelChange:v,picker:y=`date`,showTime:b,hoverValue:x,hoverRangeValue:S,cellRender:C,dateRender:T,monthCellRender:E,components:D={},hideHeader:O}=e,{prefixCls:k,classNames:A,styles:j}=R.useContext(qt)||{},M=k||s||`rc-picker`,N=R.useRef();R.useImperativeHandle(t,()=>({nativeElement:N.current}));let[P,F,ee,te]=dn(e),ne=sn(i,F),re=y===`date`&&b?`datetime`:y,I=R.useMemo(()=>fn(re,ee,te,P,ne),[re,ee,te,P,ne]),ie=a.getNow(),[ae,oe]=_e(y||`date`,_),se=ae===`date`&&I?`datetime`:ae,L=Xn(a,i,re),[ce,le]=_e(u,d),ue=R.useMemo(()=>{let e=Xt(ce).filter(e=>e);return l?e:e.slice(0,1)},[ce,l]),de=fe(e=>{le(e),f&&(e===null||ue.length!==e.length||ue.some((t,n)=>!Cn(a,i,t,e[n],re)))&&f?.(l?e:e[0])}),pe=fe(e=>{if(p?.(e),ae===y){let t=l?L(ue,e):[e];de(t)}}),[me,he]=_e(m||ue[0]||ie,h);R.useEffect(()=>{ue[0]&&!h&&he(ue[0])},[ue[0]]);let ge=(e,t)=>{v?.(e||h,t||ae)},ve=(e,t=!1)=>{he(e),g?.(e),t&&ge(e)},ye=(e,t)=>{oe(e),t&&ve(t),ge(t,e)},be=e=>{if(pe(e),ve(e),ae!==y){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[y]||n,i=r[r.indexOf(ae)+1];i&&ye(i,e)}},xe=R.useMemo(()=>{let e,t;return Array.isArray(S)?[e,t]=S:e=S,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[S,a]),Se=nn(C,T,E),Ce=D[se]||Oee[se]||or,we=R.useMemo(()=>({classNames:A?.popup??n??{},styles:j?.popup??r??{}}),[A,n,j,r]),Te=R.useContext(tr),Ee=R.useMemo(()=>({...Te,hideHeader:O}),[Te,O]),De=`${M}-panel`,Oe=Qt(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return R.createElement(Zn.Provider,{value:we},R.createElement(tr.Provider,{value:Ee},R.createElement(`div`,{ref:N,tabIndex:c,className:w(De,{[`${De}-rtl`]:o===`rtl`})},R.createElement(Ce,vr({},Oe,{showTime:I,prefixCls:M,locale:ne,generateConfig:a,onModeChange:ye,pickerValue:me,onPickerValueChange:e=>{ve(e,!0)},value:ue[0],onSelect:be,values:ue,cellRender:Se,hoverRangeValue:xe,hoverValue:x})))))}var yr=R.memo(R.forwardRef(kee));function br(){return br=Object.assign?Object.assign.bind():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},br.apply(this,arguments)}function Aee(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c}=e,{prefixCls:l,generateConfig:u}=R.useContext(qt),d=R.useCallback((e,n)=>In(u,t,e,n),[u,t]),f=R.useMemo(()=>d(r,1),[r,d]),p=e=>{i(d(e,-1))},m={onCellDblClick:()=>{a&&o()}},h=t===`time`,g={...e,hoverValue:null,hoverRangeValue:null,hideHeader:h};return s?g.hoverRangeValue=c:g.hoverValue=c,n?R.createElement(`div`,{className:`${l}-panels`},R.createElement(tr.Provider,{value:{...m,hideNext:!0}},R.createElement(yr,g)),R.createElement(tr.Provider,{value:{...m,hidePrev:!0}},R.createElement(yr,br({},g,{pickerValue:f,onPickerValueChange:p})))):R.createElement(tr.Provider,{value:{...m}},R.createElement(yr,g))}function xr(e){return typeof e==`function`?e():e}function jee(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?R.createElement(`div`,{className:`${t}-presets`},R.createElement(`ul`,null,n.map(({label:e,value:t},n)=>R.createElement(`li`,{key:n,onClick:()=>{r(xr(t))},onMouseEnter:()=>{i(xr(t))},onMouseLeave:()=>{i(null)}},e)))):null}function Sr(){return Sr=Object.assign?Object.assign.bind():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},Sr.apply(this,arguments)}function Cr(e){let{panelRender:t,internalMode:n,picker:r,showNow:i,range:a,multiple:o,activeInfo:s=[0,0,0],presets:c,onPresetHover:l,onPresetSubmit:d,onFocus:f,onBlur:p,onPanelMouseDown:m,direction:h,value:g,onSelect:_,isInvalid:v,defaultOpenValue:y,onOk:b,onSubmit:x,classNames:S,styles:C}=e,{prefixCls:T}=R.useContext(qt),E=`${T}-panel`,D=h===`rtl`,O=R.useRef(null),k=R.useRef(null),[A,j]=R.useState(0),[M,N]=R.useState(0),[P,F]=R.useState(0),ee=e=>{e.width&&j(e.width)},[te,ne,re]=s,[I,ie]=R.useState(0);R.useEffect(()=>{ie(10)},[te]),R.useEffect(()=>{if(a&&k.current){let e=O.current?.offsetWidth||0,t=k.current.getBoundingClientRect();if(!t.height||t.right<0){ie(e=>Math.max(0,e-1));return}let n=(D?ne-e:te)-t.left;if(F(n),A&&A<re){let n=D?t.right-(ne-e+A):te+e-t.left-A;N(Math.max(0,n))}else N(0)}},[I,D,A,te,ne,re,a]);function ae(e){return e.filter(e=>e)}let oe=R.useMemo(()=>ae(Xt(g)),[g]),se=r===`time`&&!oe.length,L=R.useMemo(()=>se?ae([y]):oe,[se,oe,y]),ce=se?y:oe,le=R.useMemo(()=>!L.length||L.some(e=>v(e)),[L,v]),ue=R.createElement(`div`,{className:`${T}-panel-layout`},R.createElement(jee,{prefixCls:T,presets:c,onClick:d,onHover:l}),R.createElement(`div`,null,R.createElement(Aee,Sr({},e,{value:ce})),R.createElement(Yn,Sr({},e,{showNow:!o&&i,invalid:le,onSubmit:()=>{se&&_(y),b(),x()}}))));t&&(ue=t(ue));let de=`${E}-container`,fe=`marginLeft`,pe=`marginRight`,me=R.createElement(`div`,{onMouseDown:m,tabIndex:-1,className:w(de,`${T}-${n}-panel-container`,S?.popup?.container),style:{[D?pe:fe]:M,[D?fe:pe]:`auto`,...C?.popup?.container},onFocus:f,onBlur:p},ue);return a&&(me=R.createElement(`div`,{onMouseDown:m,ref:k,className:w(`${T}-range-wrapper`,`${T}-${r}-range-wrapper`)},R.createElement(`div`,{ref:O,className:`${T}-range-arrow`,style:{left:P}}),R.createElement(u,{onResize:ee},me))),me}function wr(e,t){let{format:n,maskFormat:r,generateConfig:i,locale:a,preserveInvalidOnBlur:o,inputReadOnly:s,required:c,"aria-required":l,onSubmit:u,onFocus:d,onBlur:f,onInputChange:p,onInvalid:m,open:h,onOpenChange:g,onKeyDown:_,onChange:v,activeHelp:y,name:b,autoComplete:x,id:S,value:C,invalid:w,placeholder:T,disabled:E,activeIndex:O,allHelp:k,picker:A}=e,j=(e,t)=>{let n=i.locale.parse(a.locale,e,[t]);return n&&i.isValidate(n)?n:null},M=n[0],N=R.useCallback(e=>Dn(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=R.useMemo(()=>C.map(N),[C,N]),F=R.useMemo(()=>{let e=A===`time`?8:10,t=typeof M==`function`?M(i.getNow()).length:M.length;return Math.max(e,t)+2},[M,A,i]),ee=e=>{for(let t=0;t<n.length;t+=1){let r=n[t];if(typeof r==`string`){let t=j(e,r);if(t)return t}}return!1};return[n=>{function i(e){return n===void 0?e:e[n]}let a={...D(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!ee(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:F,id:i(S),value:i(P)||``,invalid:i(w),placeholder:i(T),active:O===n,helped:k||y&&O===n,disabled:i(E),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=ee(e);if(t){m(!1,n),v(t,n);return}m(!!e,n)},onHelp:()=>{g(!0,{index:n})},onKeyDown:e=>{let t=!1;if(_?.(e,()=>{t=!0}),!e.defaultPrevented&&!t)switch(e.key){case`Escape`:g(!1,{index:n});break;case`Enter`:h||g(!0);break}},...t?.({valueTexts:P})};return Object.keys(a).forEach(e=>{a[e]===void 0&&delete a[e]}),a},N]}var Tr=[`onMouseEnter`,`onMouseLeave`];function Er(e){return R.useMemo(()=>Qt(e,Tr),[e])}function Dr(){return Dr=Object.assign?Object.assign.bind():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},Dr.apply(this,arguments)}function Or({icon:e,...t}){let{prefixCls:n,classNames:r,styles:i}=R.useContext(qt);return e?R.createElement(`span`,Dr({className:w(`${n}-suffix`,r.suffix),style:i.suffix},t),e):null}function kr(){return kr=Object.assign?Object.assign.bind():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},kr.apply(this,arguments)}function Ar({icon:e,onClear:t,...n}){let{prefixCls:r,classNames:i,styles:a,locale:o}=R.useContext(qt);return R.createElement(`button`,kr({},n,{type:`button`,"aria-label":o.clear,className:w(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}var jr=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],Mr=`顧`,Nr=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=jr.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>Mr.repeat(e.length));let r=RegExp(`(${jr.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=jr.includes(e),n=a,r=a+e.length;return a=r,{text:e,mask:t,start:n,end:r}}),this.maskCells=this.cells.filter(e=>e.mask)}getSelection(e){let{start:t,end:n}=this.maskCells[e]||{};return[t||0,n||0]}match(e){for(let t=0;t<this.maskFormat.length;t+=1){let n=this.maskFormat[t],r=e[t];if(!r||n!==Mr&&n!==r)return!1}return!0}size(){return this.maskCells.length}getMaskCellIndex(e){let t=2**53-1,n=0;for(let r=0;r<this.maskCells.length;r+=1){let{start:i,end:a}=this.maskCells[r];if(e>=i&&e<=a)return r;let o=Math.min(Math.abs(e-i),Math.abs(e-a));o<t&&(t=o,n=r)}return n}};function Pr(e){return{YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]}[e]}function Fr(){return Fr=Object.assign?Object.assign.bind():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},Fr.apply(this,arguments)}var Ir=R.forwardRef((e,t)=>{let{className:n,active:r,showActiveCls:i=!0,suffixIcon:a,format:o,validateFormat:s,onChange:c,onInput:l,helped:u,onHelp:d,onSubmit:f,onKeyDown:p,preserveInvalidOnBlur:m=!1,invalid:h,clearIcon:g,..._}=e,{value:v,onFocus:y,onBlur:b,onMouseUp:x}=e,{prefixCls:S,input:C=`input`,classNames:T,styles:E}=R.useContext(qt),D=`${S}-input`,[O,k]=R.useState(!1),[A,j]=R.useState(v),[M,N]=R.useState(``),[P,F]=R.useState(null),[ee,te]=R.useState(null),ne=A||``;R.useEffect(()=>{j(v)},[v]);let re=R.useRef(null),I=R.useRef(null),ie=R.useRef(!1);R.useImperativeHandle(t,()=>({nativeElement:re.current,inputElement:I.current,focus:e=>{I.current.focus(e)},blur:()=>{I.current.blur()}}));let ae=R.useMemo(()=>new Nr(o||``),[o]),[oe,se]=R.useMemo(()=>u?[0,0]:ae.getSelection(P),[ae,P,u]),L=e=>{e&&e!==o&&e!==v&&d()},ce=fe(e=>{s(e)&&c(e),j(e),L(e)}),le=e=>{if(!o){let t=e.target.value;L(t),j(t),c(t)}},ue=e=>{if(ie.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&ce(t)},pe=()=>{ie.current=!0},me=e=>{let{selectionStart:t}=e.target,n=ae.getMaskCellIndex(t);F(n),te({}),x?.(e),ie.current=!1},ge=e=>{k(!0),F(0),N(``),y(e)},_e=e=>{b(e)},ve=e=>{k(!1),_e(e)};Pn(r,()=>{!r&&!m&&j(v)});let ye=e=>{e.key===`Enter`&&s(ne)&&f(),p?.(e)},be=e=>{if(ie.current){e.preventDefault();return}ye(e);let{key:t}=e,n=null,r=null,i=se-oe,a=o.slice(oe,se),s=e=>{F(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,ae.size()-1),n})},c=e=>{let[t,n,r]=Pr(a),i=ne.slice(oe,se),o=Number(i);if(isNaN(o))return String(r||(e>0?t:n));let s=o+e,c=n-t+1;return String(t+(c+s-t)%c)};switch(t){case`Backspace`:case`Delete`:n=``,r=a;break;case`ArrowLeft`:n=``,s(-1);break;case`ArrowRight`:n=``,s(1);break;case`ArrowUp`:n=``,r=c(1);break;case`ArrowDown`:n=``,r=c(-1);break;default:isNaN(Number(t))||(n=M+t,r=n);break}if(n!==null&&(N(n),n.length>=i&&(s(1),N(``))),r!==null){let e=ne.slice(0,oe)+Yt(r,i)+ne.slice(se);ce(e.slice(0,o.length))}te({})},xe=R.useRef();he(()=>{if(!(!O||!o||ie.current)){if(!ae.match(ne)){ce(o);return}return I.current.setSelectionRange(oe,se),xe.current=de(()=>{I.current.setSelectionRange(oe,se)}),()=>{de.cancel(xe.current)}}},[ae,o,O,ne,P,oe,se,ee,ce]);let Se=o?{onFocus:ge,onBlur:ve,onKeyDown:be,onMouseDown:pe,onMouseUp:me,onPaste:ue}:{};return R.createElement(`div`,{ref:re,className:w(D,{[`${D}-active`]:r&&i,[`${D}-placeholder`]:u},n)},R.createElement(C,Fr({ref:I,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:ye,onBlur:_e},Se,{value:ne,onChange:le,className:T.input,style:E.input})),R.createElement(Or,{icon:a}),g)});function Lr(){return Lr=Object.assign?Object.assign.bind():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},Lr.apply(this,arguments)}function Rr(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:d,onFocus:f,onBlur:p,onKeyDown:m,locale:h,generateConfig:g,placeholder:_,className:v,style:y,onClick:b,onClear:x,value:S,onChange:C,onSubmit:T,onInputChange:E,format:D,maskFormat:O,preserveInvalidOnBlur:k,onInvalid:A,disabled:j,invalid:M,inputReadOnly:N,direction:P,onOpenChange:F,onActiveInfo:ee,placement:te,onMouseDown:ne,required:re,"aria-required":I,autoFocus:ie,tabIndex:ae,...oe}=e,se=P===`rtl`,{prefixCls:L,classNames:ce,styles:le}=R.useContext(qt),ue=R.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),de=R.useRef(),pe=R.useRef(),me=R.useRef(),he=e=>[pe,me][e]?.current;R.useImperativeHandle(t,()=>({nativeElement:de.current,focus:e=>{if(typeof e==`object`){let{index:t=0,...n}=e||{};he(t)?.focus(n)}else he(e??0)?.focus()},blur:()=>{he(0)?.blur(),he(1)?.blur()}}));let ge=Er(oe),_e=R.useMemo(()=>Array.isArray(_)?_:[_,_],[_]),[ve]=wr({...e,id:ue,placeholder:_e}),[ye,be]=R.useState({position:`absolute`,width:0}),xe=fe(()=>{let e=he(s);if(e){let t=e.nativeElement.getBoundingClientRect(),n=de.current.getBoundingClientRect(),r=t.left-n.left;be(e=>({...e,width:t.width,left:r})),ee([t.left,t.right,n.width])}});R.useEffect(()=>{xe()},[s]);let Se=i&&(S[0]&&!j[0]||S[1]&&!j[1]),Ce=ie&&!j[0],we=ie&&!Ce&&!j[1];return R.createElement(u,{onResize:xe},R.createElement(`div`,Lr({},ge,{className:w(L,`${L}-range`,{[`${L}-focused`]:d,[`${L}-disabled`]:j.every(e=>e),[`${L}-invalid`]:M.some(e=>e),[`${L}-rtl`]:se},v),style:y,ref:de,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==pe.current.inputElement&&t!==me.current.inputElement&&e.preventDefault(),ne?.(e)}}),r&&R.createElement(`div`,{className:w(`${L}-prefix`,ce.prefix),style:le.prefix},r),R.createElement(Ir,Lr({ref:pe},ve(0),{className:`${L}-input-start`,autoFocus:Ce,tabIndex:ae,"date-range":`start`})),R.createElement(`div`,{className:`${L}-range-separator`},o),R.createElement(Ir,Lr({ref:me},ve(1),{className:`${L}-input-end`,autoFocus:we,tabIndex:ae,"date-range":`end`})),R.createElement(`div`,{className:`${L}-active-bar`,style:ye}),R.createElement(Or,{icon:a}),Se&&R.createElement(Ar,{icon:i,onClear:x})))}var zr=R.forwardRef(Rr);function Br(e,t){return(0,R.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}function Vr(){return Vr=Object.assign?Object.assign.bind():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},Vr.apply(this,arguments)}function Hr(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function Ur(e){return e===1?`end`:`start`}function Wr(e,t){let[n,r,i,a,o,s]=An(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:Hr(t,!1),allowEmpty:Hr(n,!1)}}),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,defaultValue:p,value:m,needConfirm:h,onClear:g,onKeyDown:_,disabled:v,allowEmpty:y,disabledDate:b,minDate:x,maxDate:S,defaultOpen:C,open:T,onOpenChange:O,locale:k,generateConfig:A,picker:j,showNow:M,showToday:N,showTime:P,mode:F,onPanelChange:ee,onCalendarChange:te,onOk:ne,defaultPickerValue:re,pickerValue:I,onPickerValueChange:ie,inputReadOnly:ae,suffixIcon:oe,onFocus:se,onBlur:L,presets:ce,ranges:le,components:ue,cellRender:de,dateRender:pe,monthCellRender:me,onClick:ge}=n,ve=Mn(t),[ye,be]=Br(d,u),[xe,Se]=jn(T,C,v,O),Ce=(e,t)=>{(v.some(e=>!e)||!e)&&Se(e,t)},[we,Te,Ee,De,Oe]=Un(A,k,a,!0,!1,p,m,te,ne),ke=Ee(),[Ae,je,Me,Ne,Pe,Fe,Ie,Le,Re]=Fn(v,y,xe),ze=(e,t)=>{je(!0),se?.(e,{range:Ur(t??Ne)})},Be=(e,t)=>{je(!1),L?.(e,{range:Ur(t??Ne)})},Ve=R.useMemo(()=>{if(!P)return null;let{disabledTime:e}=P,t=e?t=>{let n=Ur(Ne),r=en(ke,Ie,Ne);return e(t,n,{from:r})}:void 0;return{...P,disabledTime:t}},[P,Ne,ke,Ie]),[He,Ue]=_e([j,j],F),We=He[Ne]||j,Ge=We===`date`&&Ve?`datetime`:We,Ke=Ge===j&&Ge!==`time`,qe=Gn(j,We,M,N,!0),[Je,Ye]=Wn(n,we,Te,Ee,De,v,a,Ae,xe,s),Xe=hee(ke,v,Ie,A,k,b),[Ze,Qe]=rn(ke,s,y),[$e,et]=Rn(A,k,ke,He,xe,Ne,r,Ke,re,I,Ve?.defaultOpenValue,ie,x,S),tt=fe((e,t,n)=>{let r=Zt(He,Ne,t);if((r[0]!==He[0]||r[1]!==He[1])&&Ue(r),ee&&n!==!1){let t=[...ke];e&&(t[Ne]=e),ee(t,r)}}),nt=(e,t)=>Zt(ke,t,e),rt=(e,t)=>{let n=ke;e&&(n=nt(e,Ne)),Le(Ne);let r=Fe(n);De(n),Je(Ne,r===null),r===null?Ce(!1,{force:!0}):t||ve.current.focus({index:r})},it=e=>{let t=e.target.getRootNode();if(!ve.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=v.findIndex(e=>!e);e>=0&&ve.current.focus({index:e})}Ce(!0),ge?.(e)},at=()=>{Ye(null),Ce(!1,{force:!0}),g?.()},[ot,st]=R.useState(null),[ct,lt]=R.useState(null),ut=R.useMemo(()=>ct||ke,[ke,ct]);R.useEffect(()=>{xe||lt(null)},[xe]);let[dt,ft]=R.useState([0,0,0]),pt=(e,t)=>{f===`hover`&&(lt(e),st(t))},mt=Nn(ce,le),ht=e=>{pt(e,`preset`)},gt=e=>{Ye(e)&&(Me(`preset-click`),Ce(!1,{force:!0}))},_t=e=>{rt(e)},vt=e=>{pt(e?nt(e,Ne):null,`cell`)},yt=e=>{Ce(!0),ze(e)},bt=()=>{Me(`panel`)},xt=e=>{let t=Zt(ke,Ne,e);De(t),!h&&!i&&r===Ge&&rt(e)},St=()=>{Ce(!1)},Ct=nn(de,pe,me,Ur(Ne)),wt=ke[Ne]||null,Tt=fe(e=>s(e,{activeIndex:Ne})),Et=R.useMemo(()=>{let e=D(n,!1);return E(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),Dt=R.createElement(Cr,Vr({},Et,{showNow:qe,showTime:Ve,range:!0,multiplePanel:Ke,activeInfo:dt,disabledDate:Xe,onFocus:yt,onBlur:Be,onPanelMouseDown:bt,picker:j,mode:We,internalMode:Ge,onPanelChange:tt,format:o,value:wt,isInvalid:Tt,onChange:null,onSelect:xt,pickerValue:$e,defaultOpenValue:Xt(P?.defaultOpenValue)[Ne],onPickerValueChange:et,hoverValue:ut,onHover:vt,needConfirm:h,onSubmit:rt,onOk:Oe,presets:mt,onPresetHover:ht,onPresetSubmit:gt,onNow:_t,cellRender:Ct,classNames:ye,styles:be})),Ot=(e,t)=>{let n=nt(e,t);De(n)},kt=()=>{Me(`input`)},At=(e,t)=>{let n=Ie.length,r=Ie[n-1];if(n&&r!==t&&h&&!y[r]&&!Re(r)&&ke[r]){ve.current.focus({index:r});return}Me(`input`),Ce(!0,{inherit:!0}),Ne!==t&&xe&&!h&&i&&rt(null,!0),Pe(t),ze(e,t)},jt=(e,t)=>{if(Ce(!1),!h&&Me()===`input`){let e=Fe(ke);Je(Ne,e===null)}Be(e,t)},Mt=(e,t)=>{e.key===`Tab`&&rt(null,!0),_?.(e,t)},Nt=R.useMemo(()=>({prefixCls:c,locale:k,generateConfig:A,button:ue.button,input:ue.input,classNames:ye,styles:be}),[c,k,A,ue.button,ue.input,ye,be]);return he(()=>{xe&&Ne!==void 0&&tt(null,j,!1)},[xe,Ne,j]),he(()=>{let e=Me();!xe&&e===`input`&&(Ce(!1),rt(null,!0)),!xe&&i&&!h&&e===`panel`&&(Ce(!0),rt())},[xe]),R.createElement(qt.Provider,{value:Nt},R.createElement(Jt,Vr({},tn(n),{popupElement:Dt,popupStyle:be.popup.root,popupClassName:w(l,ye.popup.root),visible:xe,onClose:St,range:!0}),R.createElement(zr,Vr({},n,{ref:ve,className:w(n.className,l,ye.root),style:{...be.root,...n.style},suffixIcon:oe,activeIndex:Ae||xe?Ne:null,activeHelp:!!ct,allHelp:!!ct&&ot===`preset`,focused:Ae,onFocus:At,onBlur:jt,onKeyDown:Mt,onSubmit:rt,value:ut,maskFormat:o,onChange:Ot,onInputChange:kt,format:a,inputReadOnly:ae,disabled:v,open:xe,onOpenChange:Ce,onClick:it,onClear:at,invalid:Ze,onInvalid:Qe,onActiveInfo:ft}))))}var Gr=R.forwardRef(Wr);function Kr(e){let{prefixCls:t,value:n,onRemove:r,removeIcon:i=`×`,formatDate:a,disabled:o,maxTagCount:s,tagRender:c,placeholder:l}=e,u=`${t}-selector`,d=`${t}-selection`,f=`${d}-overflow`;function p(e,t){return R.createElement(`span`,{className:w(`${d}-item`),title:typeof e==`string`?e:null},R.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&R.createElement(`span`,{onMouseDown:e=>{e.preventDefault()},onClick:t,className:`${d}-item-remove`},i))}function m(e){let t=a(e),n=!o,i=t=>{t&&t.stopPropagation(),o||r(e)};return c?c({label:t,value:e,disabled:!!o,closable:n,onClose:i}):p(t,i)}function h(e){return p(`+ ${e.length} ...`)}return R.createElement(`div`,{className:u},R.createElement(M,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&R.createElement(`span`,{className:`${t}-selection-placeholder`},l))}function qr(){return qr=Object.assign?Object.assign.bind():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},qr.apply(this,arguments)}function Mee(e,t){let{id:n,open:r,prefix:i,clearIcon:a,suffixIcon:o,activeHelp:s,allHelp:c,focused:l,onFocus:u,onBlur:d,onKeyDown:f,locale:p,generateConfig:m,placeholder:h,className:g,style:_,onClick:v,onClear:y,internalPicker:b,value:x,onChange:S,onSubmit:C,onInputChange:T,multiple:E,maxTagCount:D,tagRender:O,format:k,maskFormat:A,preserveInvalidOnBlur:j,onInvalid:M,disabled:N,invalid:P,inputReadOnly:F,direction:ee,onOpenChange:te,onMouseDown:ne,required:re,"aria-required":I,autoFocus:ie,tabIndex:ae,removeIcon:oe,...se}=e,L=ee===`rtl`,{prefixCls:ce,classNames:le,styles:ue}=R.useContext(qt),de=R.useRef(),fe=R.useRef();R.useImperativeHandle(t,()=>({nativeElement:de.current,focus:e=>{fe.current?.focus(e)},blur:()=>{fe.current?.blur()}}));let pe=Er(se),me=e=>{S([e])},he=e=>{let t=x.filter(t=>t&&!Cn(m,p,t,e,b));S(t),r||C()},[ge,_e]=wr({...e,onChange:me},({valueTexts:e})=>({value:e[0]||``,active:l})),ve=!!(a&&x.length&&!N),ye=E?R.createElement(R.Fragment,null,R.createElement(Kr,{prefixCls:ce,value:x,onRemove:he,formatDate:_e,maxTagCount:D,tagRender:O,disabled:N,removeIcon:oe,placeholder:h}),R.createElement(`input`,{className:`${ce}-multiple-input`,value:x.map(_e).join(`,`),ref:fe,readOnly:!0,autoFocus:ie,tabIndex:ae}),R.createElement(Or,{icon:o}),ve&&R.createElement(Ar,{icon:a,onClear:y})):R.createElement(Ir,qr({ref:fe},ge(),{autoFocus:ie,tabIndex:ae,suffixIcon:o,clearIcon:ve&&R.createElement(Ar,{icon:a,onClear:y}),showActiveCls:!1}));return R.createElement(`div`,qr({},pe,{className:w(ce,{[`${ce}-multiple`]:E,[`${ce}-focused`]:l,[`${ce}-disabled`]:N,[`${ce}-invalid`]:P,[`${ce}-rtl`]:L},g),style:_,ref:de,onClick:v,onMouseDown:e=>{let{target:t}=e;t!==fe.current?.inputElement&&e.preventDefault(),ne?.(e)}}),i&&R.createElement(`div`,{className:w(`${ce}-prefix`,le.prefix),style:ue.prefix},i),ye)}var Nee=R.forwardRef(Mee);function Jr(){return Jr=Object.assign?Object.assign.bind():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},Jr.apply(this,arguments)}function Pee(e,t){let[n,r,i,a,o,s]=An(e),{prefixCls:c,rootClassName:l,styles:u,classNames:d,previewValue:f,order:p,defaultValue:m,value:h,needConfirm:g,onChange:_,onClear:v,onKeyDown:y,disabled:b,disabledDate:x,minDate:S,maxDate:C,defaultOpen:T,open:O,onOpenChange:k,locale:A,generateConfig:j,picker:M,showNow:N,showToday:P,showTime:F,mode:ee,onPanelChange:te,onCalendarChange:ne,onOk:re,multiple:I,defaultPickerValue:ie,pickerValue:ae,onPickerValueChange:oe,inputReadOnly:se,suffixIcon:L,removeIcon:ce,tagRender:le,onFocus:ue,onBlur:de,presets:pe,components:me,cellRender:ge,dateRender:ve,monthCellRender:ye,onClick:be}=n,xe=Mn(t);function Se(e){return e===null?null:I?e:e[0]}let Ce=Xn(j,A,r),[we,Te]=Br(d,u),[Ee,De]=jn(O,T,[b],k),[Oe,ke,Ae,je,Me]=Un(j,A,a,!1,p,m,h,(e,t,n)=>{if(ne){let r={...n};delete r.range,ne(Se(e),Se(t),r)}},e=>{re?.(Se(e))}),Ne=Ae(),[Pe,Fe,Ie,Le]=Fn([b]),Re=e=>{Fe(!0),ue?.(e,{})},ze=e=>{Fe(!1),de?.(e,{})},[Be,Ve]=_e(M,ee),He=Be===`date`&&F?`datetime`:Be,Ue=Gn(M,Be,N,P),We=_&&((e,t)=>{_(Se(e),Se(t))}),[,Ge]=Wn({...n,onChange:We},Oe,ke,Ae,je,[],a,Pe,Ee,s),[Ke,qe]=rn(Ne,s),Je=R.useMemo(()=>Ke.some(e=>e),[Ke]),[Ye,Xe]=Rn(j,A,Ne,[Be],Ee,Le,r,!1,ie,ae,Xt(F?.defaultOpenValue),(e,t)=>{if(oe){let n={...t,mode:t.mode[0]};delete n.range,oe(e[0],n)}},S,C),Ze=fe((e,t,n)=>{if(Ve(t),te&&n!==!1){let n=e||Ne[Ne.length-1];te(n,t)}}),Qe=()=>{Ge(Ae()),De(!1,{force:!0})},$e=e=>{!b&&!xe.current.nativeElement.contains(document.activeElement)&&xe.current.focus(),De(!0),be?.(e)},et=()=>{Ge(null),De(!1,{force:!0}),xe.current.focus(),v?.()},[tt,nt]=R.useState(null),[rt,it]=R.useState(null),at=R.useMemo(()=>{let e=[rt,...Ne].filter(e=>e);return I?e:e.slice(0,1)},[Ne,rt,I]),ot=R.useMemo(()=>!I&&rt?[rt]:Ne.filter(e=>e),[Ne,rt,I]);R.useEffect(()=>{Ee||it(null)},[Ee]);let st=(e,t)=>{f===`hover`&&(it(e),nt(t))},ct=Nn(pe),lt=e=>{st(e,`preset`)},ut=e=>{let t=I?Ce(Ae(),e):[e];Ge(t)&&!I&&De(!1,{force:!0})},dt=e=>{ut(e)},ft=e=>{st(e,`cell`)},pt=e=>{De(!0),Re(e)},mt=e=>{if(Ie(`panel`),I&&He!==M)return;let t=I?Ce(Ae(),e):[e];je(t),!g&&!i&&r===He&&Qe()},ht=()=>{De(!1)},gt=nn(ge,ve,ye),_t=R.useMemo(()=>{let e=D(n,!1);return{...E(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),vt=R.createElement(Cr,Jr({},_t,{showNow:Ue,showTime:F,disabledDate:x,onFocus:pt,onBlur:ze,picker:M,mode:Be,internalMode:He,onPanelChange:Ze,format:o,value:Ne,isInvalid:s,onChange:null,onSelect:mt,pickerValue:Ye,defaultOpenValue:F?.defaultOpenValue,onPickerValueChange:Xe,hoverValue:at,onHover:ft,needConfirm:g,onSubmit:Qe,onOk:Me,presets:ct,onPresetHover:lt,onPresetSubmit:ut,onNow:dt,cellRender:gt,classNames:we,styles:Te})),yt=e=>{je(e)},bt=()=>{Ie(`input`)},xt=e=>{Ie(`input`),De(!0,{inherit:!0}),Re(e)},St=e=>{De(!1),ze(e)},Ct=(e,t)=>{e.key===`Tab`&&Qe(),y?.(e,t)},wt=R.useMemo(()=>({prefixCls:c,locale:A,generateConfig:j,button:me.button,input:me.input,classNames:we,styles:Te}),[c,A,j,me.button,me.input,we,Te]);return he(()=>{Ee&&Le!==void 0&&Ze(null,M,!1)},[Ee,Le,M]),he(()=>{let e=Ie();!Ee&&e===`input`&&(De(!1),Qe()),!Ee&&i&&!g&&e===`panel`&&Qe()},[Ee]),R.createElement(qt.Provider,{value:wt},R.createElement(Jt,Jr({},tn(n),{popupElement:vt,popupStyle:Te.popup.root,popupClassName:w(l,we.popup.root),visible:Ee,onClose:ht}),R.createElement(Nee,Jr({},n,{ref:xe,className:w(n.className,l,we.root),style:{...Te.root,...n.style},suffixIcon:L,removeIcon:ce,tagRender:le,activeHelp:!!rt,allHelp:!!rt&&tt===`preset`,focused:Pe,onFocus:xt,onBlur:St,onKeyDown:Ct,onSubmit:Qe,value:ot,maskFormat:o,onChange:yt,onInputChange:bt,internalPicker:r,format:a,inputReadOnly:se,disabled:b,open:Ee,onOpenChange:De,onClick:$e,onClear:et,invalid:Je,onInvalid:e=>{qe(e,0)}}))))}var Fee=R.forwardRef(Pee),Iee=e=>{let{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:i}=e,a=e.max(e.calc(n).sub(r).equal(),0);return{basePadding:a,containerPadding:e.max(e.calc(a).sub(i).equal(),0),itemHeight:g(t),itemLineHeight:g(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Lee=e=>{let{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:i,paddingXS:a,multipleItemColorDisabled:o,multipleItemBorderColorDisabled:s,colorIcon:c,colorIconHover:l,INTERNAL_FIXED_ITEM_MARGIN:u}=e;return{[`${t}-selection-overflow`]:{position:`relative`,display:`flex`,flex:`auto`,flexWrap:`wrap`,maxWidth:`100%`,"&-item":{flex:`none`,alignSelf:`center`,maxWidth:`calc(100% - 4px)`,display:`inline-flex`},[`${t}-selection-item`]:{display:`flex`,alignSelf:`center`,flex:`none`,boxSizing:`border-box`,maxWidth:`100%`,marginBlock:u,borderRadius:r,cursor:`default`,transition:[`font-size`,`line-height`,`height`].map(e=>`${e} ${i}`).join(`, `),marginInlineEnd:e.calc(u).mul(2).equal(),paddingInlineStart:a,paddingInlineEnd:e.calc(a).div(2).equal(),[`${t}-disabled&`]:{color:o,borderColor:s,cursor:`not-allowed`},"&-content":{display:`inline-block`,marginInlineEnd:e.calc(a).div(2).equal(),overflow:`hidden`,whiteSpace:`pre`,textOverflow:`ellipsis`},"&-remove":{...v(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},Yr=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Iee(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:g(a.itemLineHeight)}}}]},Ree=e=>{let{componentCls:t,calc:n,lineWidth:i}=e,a=me(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),o=me(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(i).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[Yr(a,`small`),Yr(e),Yr(o,`large`),{[`${t}${t}-multiple`]:{width:`100%`,cursor:`text`,[`${t}-selector`]:{flex:`auto`,padding:0,position:`relative`,"&:after":{margin:0},[`${t}-selection-placeholder`]:{position:`absolute`,top:`50%`,insetInlineStart:e.inputPaddingHorizontalBase,insetInlineEnd:0,transform:`translateY(-50%)`,transition:`all ${e.motionDurationSlow}`,flex:1,color:e.colorTextPlaceholder,pointerEvents:`none`,...r}},...Lee(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},zee=e=>{let{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:i,motionDurationMid:a,cellHoverBg:o,lineWidth:s,lineType:c,colorPrimary:l,cellActiveWithRangeBg:u,colorTextLightSolid:d,colorTextDisabled:f,cellBgDisabled:p,colorFillSecondary:m}=e;return{"&::before":{position:`absolute`,top:`50%`,insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:`translateY(-50%)`,content:`""`,pointerEvents:`none`},[n]:{position:`relative`,zIndex:2,display:`inline-block`,minWidth:r,height:r,lineHeight:g(r),borderRadius:i,transition:`background-color ${a}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
&:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:o}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:`absolute`,top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${g(s)} ${c} ${l}`,borderRadius:i,content:`""`}},[`&-in-view${t}-in-range,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{position:`relative`,[`&:not(${t}-disabled):before`]:{background:u}},[`&-in-view${t}-selected,
&-in-view${t}-range-start,
&-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:d,background:l},[`&${t}-disabled ${n}`]:{background:m}},[`&-in-view${t}-range-start:not(${t}-disabled):before`]:{insetInlineStart:`50%`},[`&-in-view${t}-range-end:not(${t}-disabled):before`]:{insetInlineEnd:`50%`},[`&-in-view${t}-range-start:not(${t}-range-end) ${n}`]:{borderStartStartRadius:i,borderEndStartRadius:i,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${t}-range-end:not(${t}-range-start) ${n}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:i,borderEndEndRadius:i},"&-disabled":{color:f,cursor:`not-allowed`,[n]:{background:`transparent`},"&::before":{background:p}},[`&-disabled${t}-today ${n}::before`]:{borderColor:f}}},Bee=e=>{let{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:i,pickerControlIconSize:a,cellWidth:o,paddingSM:s,paddingXS:c,paddingXXS:l,colorBgContainer:u,lineWidth:d,lineType:f,borderRadiusLG:p,colorPrimary:m,colorTextHeading:h,colorSplit:_,pickerControlIconBorderWidth:v,colorIcon:y,textHeight:b,motionDurationMid:x,colorIconHover:S,fontWeightStrong:C,cellHeight:w,pickerCellPaddingVertical:T,colorTextDisabled:E,colorText:D,fontSize:O,motionDurationSlow:k,withoutTimeCellHeight:A,pickerQuarterPanelContentHeight:j,borderRadiusSM:M,colorTextLightSolid:N,cellHoverBg:P,timeColumnHeight:F,timeColumnWidth:ee,timeCellHeight:te,controlItemBgActive:re,marginXXS:I,pickerDatePanelPaddingHorizontal:ie,pickerControlIconMargin:ae}=e,oe=e.calc(o).mul(7).add(e.calc(ie).mul(2)).equal();return{[t]:{"&-panel":{display:`inline-flex`,flexDirection:`column`,textAlign:`center`,background:u,borderRadius:p,outline:`none`,"&-focused":{borderColor:m},"&-rtl":{[`${t}-prev-icon,
${t}-super-prev-icon`]:{transform:`rotate(45deg)`},[`${t}-next-icon,
${t}-super-next-icon`]:{transform:`rotate(-135deg)`},[`${t}-time-panel`]:{[`${t}-content`]:{direction:`ltr`,"> *":{direction:`rtl`}}}}},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel, &-week-panel, &-date-panel, &-time-panel":{display:`flex`,flexDirection:`column`,width:oe},"&-header":{display:`flex`,padding:`0 ${g(c)}`,color:h,borderBottom:`${g(d)} ${f} ${_}`,"> *":{flex:`none`},button:{padding:0,color:y,lineHeight:g(b),background:`transparent`,border:0,cursor:`pointer`,transition:`color ${x}`,fontSize:`inherit`,display:`inline-flex`,alignItems:`center`,justifyContent:`center`,"&:empty":{display:`none`}},"> button":{minWidth:`1.6em`,fontSize:O,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:`none`}},"&-view":{flex:`auto`,fontWeight:C,lineHeight:g(b),"> button":{color:`inherit`,fontWeight:`inherit`,verticalAlign:`top`,"&:not(:first-child)":{marginInlineStart:c},"&:hover":{color:m}}}},"&-prev-icon, &-next-icon, &-super-prev-icon, &-super-next-icon":{position:`relative`,width:a,height:a,"&::before":{position:`absolute`,top:0,insetInlineStart:0,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:v,borderInlineStartWidth:v,content:`""`}},"&-super-prev-icon, &-super-next-icon":{"&::after":{position:`absolute`,top:ae,insetInlineStart:ae,display:`inline-block`,width:a,height:a,border:`0 solid currentcolor`,borderBlockStartWidth:v,borderInlineStartWidth:v,content:`""`}},"&-prev-icon, &-super-prev-icon":{transform:`rotate(-45deg)`},"&-next-icon, &-super-next-icon":{transform:`rotate(135deg)`},"&-content":{width:`100%`,tableLayout:`fixed`,borderCollapse:`collapse`,"th, td":{position:`relative`,minWidth:w,fontWeight:`normal`},th:{height:e.calc(w).add(e.calc(T).mul(2)).equal(),color:D,verticalAlign:`middle`}},"&-cell":{padding:`${g(T)} 0`,color:E,cursor:`pointer`,"&-in-view":{color:D},...zee(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${g(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:j}},"&-decade-panel":{[r]:{padding:`0 ${g(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${g(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${g(c)} ${g(ie)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${x}`},"&:first-child:before":{borderStartStartRadius:M,borderEndStartRadius:M},"&:last-child:before":{borderStartEndRadius:M,borderEndEndRadius:M}},"&:hover td:before":{background:P},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new ne(N).setA(.5).toHexString()},[r]:{color:N}}},"&-range-hover td:before":{background:re}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${g(c)} ${g(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${g(d)} ${f} ${_}`},[`${t}-date-panel,
${t}-time-panel`]:{transition:`opacity ${k}`},"&-active":{[`${t}-date-panel,
${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:`auto`,minWidth:`auto`,[`${t}-content`]:{display:`flex`,flex:`auto`,height:F},"&-column":{flex:`1 0 auto`,width:ee,margin:`${g(l)} 0`,padding:0,overflowY:`auto`,textAlign:`start`,listStyle:`none`,transition:`background-color ${x}`,overflowX:`hidden`,"&::-webkit-scrollbar":{width:8,backgroundColor:`transparent`},"&::-webkit-scrollbar-thumb":{backgroundColor:e.colorTextTertiary,borderRadius:e.borderRadiusSM},"&":{scrollbarWidth:`thin`,scrollbarColor:`${e.colorTextTertiary} transparent`},"&::after":{display:`block`,height:`calc(100% - ${g(te)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${g(d)} ${f} ${_}`},"&-active":{background:new ne(re).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:I,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(ee).sub(e.calc(I).mul(2)).equal(),height:te,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(ee).sub(te).div(2).equal(),color:D,lineHeight:g(te),borderRadius:M,cursor:`pointer`,transition:`background-color ${x}`,"&:hover":{background:P}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:re}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:`transparent`,cursor:`not-allowed`}}}}}}}}},Vee=e=>{let{componentCls:t,textHeight:n,lineWidth:r,paddingSM:i,antCls:a,colorPrimary:o,cellActiveWithRangeBg:s,colorPrimaryBorder:c,lineType:l,colorSplit:u}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${g(r)} ${l} ${u}`,"&-extra":{padding:`0 ${g(i)}`,lineHeight:g(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${g(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:g(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:g(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:`inline-block`},[`${t}-now-btn-disabled`]:{pointerEvents:`none`,color:e.colorTextDisabled},[`${t}-preset > ${a}-tag-blue`]:{color:o,background:s,borderColor:c,cursor:`pointer`},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:`auto`}}}}},Hee=e=>{let{componentCls:t,controlHeightLG:n,paddingXXS:r,padding:i}=e;return{pickerCellCls:`${t}-cell`,pickerCellInnerCls:`${t}-cell-inner`,pickerYearMonthCellWidth:e.calc(n).mul(1.5).equal(),pickerQuarterPanelContentHeight:e.calc(n).mul(1.4).equal(),pickerCellPaddingVertical:e.calc(r).add(e.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:e.calc(i).add(e.calc(r).div(2)).equal()}},Uee=e=>{let{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:i,paddingXXS:a,lineWidth:o}=e,s=a*2,c=o*2,l=Math.min(n-s,n-c),u=Math.min(r-s,r-c),d=Math.min(i-s,i-c);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(a/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new ne(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new ne(e.colorPrimary).lighten(20).toHexString(),cellBgDisabled:t,timeColumnWidth:i*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:i,withoutTimeCellHeight:i*1.65,multipleItemBg:e.colorFillSecondary,multipleItemBorderColor:`transparent`,multipleItemHeight:l,multipleItemHeightSM:u,multipleItemHeightLG:d,multipleSelectorBgDisabled:t,multipleItemColorDisabled:e.colorTextDisabled,multipleItemBorderColorDisabled:`transparent`}},Wee=e=>({...Qe(e),...Uee(e),...Ie(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Gee=e=>{let{componentCls:t}=e;return{[t]:[{...Je(e),...Ye(e),...$e(e),...qe(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${g(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${g(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${g(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${g(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Xr=(e,t)=>({padding:`${g(e)} ${g(t)}`}),Kee=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=S(e.antCls,`date-picker`);return{[`${t}:not(${t}-disabled):not([disabled])`]:{[`&${t}-status-error`]:{[i(`affix-color`)]:e.colorErrorAffix,[`${t}-active-bar`]:{background:n}},[`&${t}-status-warning`]:{[i(`affix-color`)]:e.colorWarningAffix,[`${t}-active-bar`]:{background:r}}}}},qee=e=>{let{componentCls:t,antCls:n,paddingInline:a,lineWidth:o,lineType:s,colorBorder:c,borderRadius:l,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:h,inputFontSizeLG:_,fontSizeSM:v,inputFontSizeSM:y,controlHeightSM:b,paddingInlineSM:x,paddingXS:w,marginXS:T,colorIcon:E,lineWidthBold:D,colorPrimary:O,motionDurationSlow:A,zIndexPopup:j,paddingXXS:M,sizePopupArrow:N,colorBgElevated:P,borderRadiusLG:F,boxShadowSecondary:ee,borderRadiusSM:te,colorSplit:ne,cellHoverBg:re,presetsWidth:I,presetsMaxWidth:ie,boxShadowPopoverArrow:ae,fontHeight:L,lineHeightLG:ce}=e,[le,ue]=S(n,`date-picker`);return[{[t]:{[le(`affix-color`)]:`inherit`,...k(e),...Xr(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:l,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${u}`).join(`, `),[`${t}-prefix`]:{color:ue(`affix-color`),flex:`0 0 auto`,marginInlineEnd:e.inputAffixPadding},[`${t}-input`]:{position:`relative`,display:`inline-flex`,alignItems:`center`,width:`100%`,"> input":{position:`relative`,display:`inline-block`,width:`100%`,color:`inherit`,fontSize:e.inputFontSize??e.fontSize,lineHeight:e.lineHeight,transition:`all ${u}`,...Xe(f),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:d,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:f}}},"&-large":{...Xr(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:_??h,lineHeight:ce}},"&-small":{...Xr(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:y??v}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(w).div(2).equal(),color:m,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${u}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:T}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:m,lineHeight:1,padding:0,fontSize:`inherit`,fontFamily:`inherit`,background:`transparent`,border:0,appearance:`none`,transform:`translateY(-50%)`,cursor:`pointer`,opacity:0,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${u}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:E},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...se(e)}},"&:hover, &:focus-within":{[`${t}-clear`]:{opacity:1,pointerEvents:`auto`},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:`relative`,display:`inline-block`,width:`1em`,height:h,color:m,fontSize:h,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:E},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(o).mul(-1).equal(),height:D,background:O,opacity:0,transition:`all ${A} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${g(w)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":{...k(e),...Bee(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:j,[`&${t}-dropdown-hidden`]:{display:`none`},"&-rtl":{direction:`rtl`},[`&${t}-dropdown-placement-bottomLeft,
&${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:`block`,transform:`translateY(-100%)`}},[`&${t}-dropdown-placement-topLeft,
&${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:`block`,transform:`translateY(100%) rotate(180deg)`}},[`&${n}-slide-up-appear, &${n}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:`none`}},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-topRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:i},[`&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-enter${n}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-appear${n}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:p},[`&${n}-slide-up-leave ${t}-panel-container`]:{pointerEvents:`none`},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:C},[`&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
&${n}-slide-up-leave${n}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:oe},[`${t}-panel > ${t}-time-panel`]:{paddingTop:M},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(a).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${A} ease-out`,...Me(e,P,ae),"&:before":{insetInlineStart:e.calc(a).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:P,borderRadius:F,boxShadow:ee,transition:`margin ${A}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:I,maxWidth:ie,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:w,borderInlineEnd:`${g(o)} ${s} ${ne}`,li:{...r,borderRadius:te,paddingInline:w,paddingBlock:e.calc(b).sub(L).div(2).equal(),cursor:`pointer`,transition:`all ${A}`,"+ li":{marginTop:T},"&:hover":{background:re}}}},[`${t}-panels`]:{display:`inline-flex`,flexWrap:`nowrap`,"&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:`top`,background:`transparent`,borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:`center`},"&-focused":{borderColor:c}}}},"&-dropdown-range":{padding:`${g(e.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},ye(e,`slide-up`),ye(e,`slide-down`),rt(e,`move-up`),rt(e,`move-down`)]},Zr=T(`DatePicker`,e=>{let t=me(Ze(e),Hee(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[Vee(t),qee(t),Gee(t),Kee(t),Ree(t),s(e,{focusElCls:`${e.componentCls}-focused`})]},Wee),Qr=R.createContext({}),$r=`__rc_cascader_search_mark__`,Jee=(e,t,{label:n=``})=>t.some(t=>String(t[n]).toLowerCase().includes(e.toLowerCase())),Yee=(e,t,n,r)=>t.map(e=>e[r.label]).join(` / `),Xee=(e,t,n,r,i,a)=>{let{filter:o=Jee,render:s=Yee,limit:c=50,sort:l}=i;return R.useMemo(()=>{let i=[];if(!e)return[];function u(t,d,f=!1){t.forEach(t=>{if(!l&&c!==!1&&c>0&&i.length>=c)return;let p=[...d,t],m=t[n.children],h=f||t.disabled;(!m||m.length===0||a)&&o(e,p,{label:n.label})&&i.push({...t,disabled:h,[n.label]:s(e,p,r,n),[$r]:p,[n.children]:void 0}),m&&u(t[n.children],p,h)})}return u(t,[]),l&&i.sort((t,r)=>l(t[$r],r[$r],e,n)),c!==!1&&c>0?i.slice(0,c):i},[e,t,n,r,s,a,o,l,c])},ei=`__RC_CASCADER_SPLIT__`,ti=`SHOW_PARENT`,Zee=`SHOW_CHILD`;function ni(e){return e.join(ei)}function ri(e){return e.map(ni)}function Qee(e){return e.split(ei)}function ii(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function ai(e,t){return e.isLeaf??!e[t.children]?.length}function oi(e){let t=e.parentElement;if(!t)return;let n=e.offsetTop-t.offsetTop;n-t.scrollTop<0?t.scrollTo({top:n}):n+e.offsetHeight-t.scrollTop>t.offsetHeight&&t.scrollTo({top:n+e.offsetHeight-t.offsetHeight})}function si(e,t){return e.map(e=>e[$r]?.map(e=>e[t.value]))}function $ee(e){return Array.isArray(e)&&Array.isArray(e[0])}function ci(e){return e?$ee(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function li(e,t,n){let r=new Set(e),i=t();return e.filter(e=>{let t=i[e],a=t?t.parent:null,o=t?t.children:null;return t&&t.node.disabled?!0:n===`SHOW_CHILD`?!(o&&o.some(e=>e.key&&r.has(e.key))):!(a&&!a.node.disabled&&r.has(a.key))})}function ui(e,t,n,r=!1){let i=t,a=[];for(let t=0;t<e.length;t+=1){let o=e[t],s=i?.findIndex(e=>{let t=e[n.value];return r?String(t)===String(o):t===o}),c=s===-1?null:i?.[s];a.push({value:c?.[n.value]??o,index:s,option:c}),i=c?.[n.children]}return a}var ete=((e,t,n,r,i)=>R.useMemo(()=>{let a=i||(e=>{let t=r?e.slice(-1):e;return t.every(e=>[`string`,`number`].includes(typeof e))?t.join(` / `):t.reduce((e,t,n)=>{let r=R.isValidElement(t)?R.cloneElement(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.map(e=>{let r=ui(e,t,n),i=a(r.map(({option:e,value:t})=>e?.[n.label]??t),r.map(({option:e})=>e)),o=ni(e);return{label:i,value:o,key:o,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,r]));function di(e,t){return R.useCallback(n=>{let r=[],i=[];return n.forEach(n=>{ui(n,e,t).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]},[e,t])}var tte=((e,t)=>{let n=R.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return R.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=ze(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value]).join(ei);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e])});function fi(e,t){let n=R.useMemo(()=>t||[],[t]),r=tte(n,e);return[n,r,R.useCallback(t=>{let n=r();return t.map(t=>{let{nodes:r}=n[t];return r.map(t=>t[e.value])})},[r,e])]}function nte(e,t){let{autoClearSearchValue:n,searchValue:r,onSearch:i}=t;return R.useMemo(()=>{if(!e)return[!1,{}];let t={matchInputWidth:!0,limit:50,autoClearSearchValue:n,searchValue:r,onSearch:i};return e&&typeof e==`object`&&(t={...t,...e}),t.limit<=0&&(t.limit=!1),[!0,t]},[e,n,r,i])}function pi(e,t,n,r,i,a,o,s){return c=>{if(!e)t(c);else{let e=ni(c),l=ri(n),u=ri(r),d=l.includes(e),f=i.some(t=>ni(t)===e),p=n,m=i;if(f&&!d)m=i.filter(t=>ni(t)!==e);else{let t=d?l.filter(t=>t!==e):[...l,e],n=a(),r;d?{checkedKeys:r}=We(t,{checked:!1,halfCheckedKeys:u},n):{checkedKeys:r}=We(t,!0,n),p=o(li(r,a,s))}t([...m,...p])}}}function mi(e,t,n,r,i){return R.useMemo(()=>{let[a,o]=i(t);if(!e||!t.length)return[a,[],o];let{checkedKeys:s,halfCheckedKeys:c}=We(ri(a),!0,n());return[r(s),r(c),o]},[e,t,n,r,i])}function rte({prefixCls:e,checked:t,halfChecked:n,disabled:r,onClick:i,disableCheckbox:a}){let{checkable:o}=R.useContext(Qr),s=typeof o==`boolean`?null:o;return R.createElement(`span`,{className:w(`${e}`,{[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&n,[`${e}-disabled`]:r||a}),onClick:i},s)}function hi(){return hi=Object.assign?Object.assign.bind():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},hi.apply(this,arguments)}var ite=`__cascader_fix_label__`;function ate({prefixCls:e,multiple:t,options:n,activeValue:r,prevValuePath:i,onToggleOpen:a,onSelect:o,onActive:s,checkedSet:c,halfCheckedSet:l,loadingKeys:u,isSelectable:d,disabled:f}){let p=`${e}-menu`,m=`${e}-menu-item`,h=R.useRef(null),{fieldNames:g,changeOnSelect:_,expandTrigger:v,expandIcon:y,loadingIcon:b,popupMenuColumnStyle:x,optionRender:S,classNames:C,styles:T}=R.useContext(Qr),E=v===`hover`,O=e=>f||e,k=R.useMemo(()=>n.map(e=>{let{disabled:t,disableCheckbox:n}=e,r=e[$r],a=e.__cascader_fix_label__??e[g.label],o=e[g.value],s=ai(e,g),d=r?r.map(e=>e[g.value]):[...i,o],f=ni(d);return{disabled:t,label:a,value:o,isLeaf:s,isLoading:u.includes(f),checked:c.has(f),halfChecked:l.has(f),option:e,disableCheckbox:n,fullPath:d,fullPathKey:f}}),[n,c,g,l,u,i]);return R.useEffect(()=>{if(h.current){let e=`.${m}-active`,t=h.current.querySelector(e);t&&oi(t)}},[r,m]),R.createElement(`ul`,{className:w(p,C?.popup?.list),style:T?.popup?.list,ref:h,role:`menu`},k.map(({disabled:n,label:i,value:c,isLeaf:l,isLoading:u,checked:f,halfChecked:p,option:h,fullPath:g,fullPathKey:v,disableCheckbox:k})=>{let A=D(h,{aria:!0,data:!0}),j=()=>{if(O(n))return;let e=[...g];E&&l&&e.pop(),s(e)},M=()=>{d(h)&&!O(n)&&o(g,l)},N;return typeof h.title==`string`?N=h.title:typeof i==`string`&&(N=i),R.createElement(`li`,hi({key:v},A,{className:w(m,C?.popup?.listItem,{[`${m}-expand`]:!l,[`${m}-active`]:r===c||r===v,[`${m}-disabled`]:O(n),[`${m}-loading`]:u}),style:{...x,...T?.popup?.listItem},role:`menuitemcheckbox`,title:N,"aria-checked":f,"data-path-key":v,onClick:()=>{j(),!k&&(!t||l)&&M()},onDoubleClick:()=>{_&&a(!1)},onMouseEnter:()=>{E&&j()},onMouseDown:e=>{e.preventDefault()}}),t&&R.createElement(rte,{prefixCls:`${e}-checkbox`,checked:f,halfChecked:p,disabled:O(n)||k,disableCheckbox:k,onClick:e=>{k||(e.stopPropagation(),M())}}),R.createElement(`div`,{className:`${m}-content`},S&&c!==`__EMPTY__`?S(h):i),!u&&y&&!l&&R.createElement(`div`,{className:`${m}-expand-icon`},y),u&&b&&R.createElement(`div`,{className:`${m}-loading-icon`},b))}))}var ote=(e,t)=>{let{values:n}=R.useContext(Qr),r=n[0],[i,a]=R.useState([]);return R.useEffect(()=>{e||a(r||[])},[t,r]),[i,a]},ste=((e,t,n,r,i,a,o)=>{let{direction:s,searchValue:c,toggleOpen:l,open:u}=o,d=s===`rtl`,[f,p,m,h]=R.useMemo(()=>{let e=-1,i=t,a=[],o=[],s=r.length,c=si(t,n);for(let t=0;t<s&&i;t+=1){let s=i.findIndex((e,i)=>(c[i]?ni(c[i]):e[n.value])===r[t]);if(s===-1)break;e=s,a.push(e),o.push(r[t]),i=i[e][n.children]}let l=t;for(let e=0;e<a.length-1;e+=1)l=l[a[e]][n.children];return[o,e,l,c]},[r,n,t]),g=e=>{i(e)},_=e=>{let t=m.length,r=p;r===-1&&e<0&&(r=t);for(let i=0;i<t;i+=1){r=(r+e+t)%t;let i=m[r];if(i&&!i.disabled){let e=f.slice(0,-1).concat(h[r]?ni(h[r]):i[n.value]);g(e);return}}},v=()=>{if(f.length>1){let e=f.slice(0,-1);g(e)}else l(!1)},y=()=>{let e=(m[p]?.[n.children]||[]).find(e=>!e.disabled);if(e){let t=[...f,e[n.value]];g(t)}};R.useImperativeHandle(e,()=>({onKeyDown:e=>{let{which:t}=e;switch(t){case L.UP:case L.DOWN:{let e=0;t===L.UP?e=-1:t===L.DOWN&&(e=1),e!==0&&_(e);break}case L.LEFT:if(c)break;d?y():v();break;case L.RIGHT:if(c)break;d?v():y();break;case L.BACKSPACE:c||v();break;case L.ENTER:if(f.length){let e=m[p]?.__rc_cascader_search_mark__||[];e.length?a(e.map(e=>e[n.value]),e[e.length-1]):a(f,m[p])}break;case L.ESC:l(!1),u&&e.stopPropagation()}},onKeyUp:()=>{}}))});function gi(){return gi=Object.assign?Object.assign.bind():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},gi.apply(this,arguments)}var _i=R.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,notFoundContent:o,direction:s,open:c,disabled:l,lockOptions:u=!1}=e,d=R.useRef(null),f=s===`rtl`,{options:p,values:m,halfValues:h,fieldNames:g,changeOnSelect:_,onSelect:v,searchOptions:y,popupPrefixCls:b,loadData:x,expandTrigger:S}=R.useContext(Qr),C=b||n,[T,E]=R.useState([]),D=e=>{if(!x||i)return;let t=ui(e,p,g).map(({option:e})=>e),n=t[t.length-1];if(n&&!ai(n,g)){let n=ni(e);E(e=>[...e,n]),x(t)}};R.useEffect(()=>{T.length&&T.forEach(e=>{let t=ui(Qee(e),p,g,!0).map(({option:e})=>e),n=t[t.length-1];(!n||n[g.children]||ai(n,g))&&E(t=>t.filter(t=>t!==e))})},[p,T,g]);let O=R.useMemo(()=>new Set(ri(m)),[m]),k=R.useMemo(()=>new Set(ri(h)),[h]),[A,j]=ote(r,c),M=e=>{j(e),D(e)},N=e=>{if(l)return!1;let{disabled:t}=e,n=ai(e,g);return!t&&(n||_||r)},P=(e,t,n=!1)=>{v(e),!r&&(t||_&&(S===`hover`||n))&&a(!1)},F=R.useMemo(()=>i?y:p,[i,y,p]),te=ee(()=>F,[c,u],(e,t)=>!!t[0]&&!t[1]),ne=R.useMemo(()=>{let e=[{options:te}],t=te,n=si(t,g);for(let r=0;r<A.length;r+=1){let i=A[r],a=t.find((e,t)=>(n[t]?ni(n[t]):e[g.value])===i)?.[g.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[te,A,g]);ste(t,te,g,A,M,(e,t)=>{N(t)&&P(e,ai(t,g),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),R.useEffect(()=>{if(!i)for(let e=0;e<A.length;e+=1){let t=ni(A.slice(0,e+1)),n=d.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,`\\"`)}"]`);n&&oi(n)}},[A,i]);let re=!ne[0]?.options?.length,I=[{[g.value]:`__EMPTY__`,[ite]:o,disabled:!0}],ie={...e,multiple:!re&&r,onSelect:P,onActive:M,onToggleOpen:a,checkedSet:O,halfCheckedSet:k,loadingKeys:T,isSelectable:N},ae=(re?[{options:I}]:ne).map((e,t)=>{let n=A.slice(0,t),r=A[t];return R.createElement(ate,gi({key:t},ie,{prefixCls:C,options:e.options,prevValuePath:n,activeValue:r}))});return R.createElement(`div`,{className:w(`${C}-menus`,{[`${C}-menu-empty`]:re,[`${C}-rtl`]:f}),ref:d},ae)});function vi(){return vi=Object.assign?Object.assign.bind():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},vi.apply(this,arguments)}var cte=R.forwardRef((e,t)=>{let{lockOptions:n,...r}=lt();return R.createElement(_i,vi({},e,r,{lockOptions:n,ref:t}))});function lte(){}function yi(e){let{prefixCls:t=`rc-cascader`,style:n,className:r,options:i,checkable:a,defaultValue:o,value:s,fieldNames:c,changeOnSelect:l,onChange:u,showCheckedStrategy:d,loadData:f,expandTrigger:p,expandIcon:m=`>`,loadingIcon:h,direction:g,notFoundContent:_=`Not Found`,disabled:v,optionRender:y}=e,b=!!a,[x,S]=_e(o,s),C=ci(x),T=R.useMemo(()=>ii(c),[JSON.stringify(c)]),[E,D,O]=fi(T,i),[k,A,j]=mi(b,C,D,O,di(E,T)),M=pi(b,fe(e=>{if(S(e),u){let t=ci(e),n=t.map(e=>ui(e,E,T).map(e=>e.option)),r=b?t:t[0],i=b?n:n[0];u(r,i)}}),k,A,j,D,O,d),N=fe(e=>{M(e)}),P=R.useMemo(()=>({options:E,fieldNames:T,values:k,halfValues:A,changeOnSelect:l,onSelect:N,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:f,expandTrigger:p,expandIcon:m,loadingIcon:h,popupMenuColumnStyle:void 0,optionRender:y}),[E,T,k,A,l,N,a,f,p,m,h,y]),F=`${t}-panel`,ee=!E.length;return R.createElement(Qr.Provider,{value:P},R.createElement(`div`,{className:w(F,{[`${F}-rtl`]:g===`rtl`,[`${F}-empty`]:ee},r),style:n},ee?_:R.createElement(_i,{prefixCls:t,searchValue:``,multiple:b,toggleOpen:lte,open:!0,direction:g,disabled:v})))}function bi(){return bi=Object.assign?Object.assign.bind():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},bi.apply(this,arguments)}var xi=R.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-cascader`,fieldNames:i,defaultValue:a,value:o,changeOnSelect:s,onChange:c,displayRender:l,checkable:u,showSearch:d,expandTrigger:f,options:p,popupPrefixCls:m,loadData:h,open:g,popupClassName:_,popupMenuColumnStyle:v,popupStyle:y,classNames:b,styles:x,placement:S,onPopupVisibleChange:C,expandIcon:w=`>`,loadingIcon:T,children:E,popupMatchSelectWidth:D=!1,showCheckedStrategy:O=ti,optionRender:k,...j}=e,M=A(n),N=!!u,[P,F]=_e(a,o),ee=ci(P),te=R.useMemo(()=>ii(i),[JSON.stringify(i)]),[ne,re,I]=fi(te,p),[ie,ae]=nte(d,e),{autoClearSearchValue:oe=!0,searchValue:se,onSearch:L}=ae,[ce,le]=_e(``,se),ue=ce||``,de=(e,t)=>{le(e),t.source!==`blur`&&L&&L(e)},pe=Xee(ue,ne,te,m||r,ae,s||N),[me,he,ge]=mi(N,ee,re,I,di(ne,te)),ve=ete(R.useMemo(()=>{let e=li(ri(me),re,O);return[...ge,...I(e)]},[me,re,I,ge,O]),ne,te,N,l),ye=fe(e=>{if(F(e),c){let t=ci(e),n=t.map(e=>ui(e,ne,te).map(e=>e.option)),r=N?t:t[0],i=N?n:n[0];c(r,i)}}),be=pi(N,ye,me,he,ge,re,I,O),xe=fe(e=>{(!N||oe)&&le(``),be(e)}),Se=(e,t)=>{if(t.type===`clear`){ye([]);return}let{valueCells:n}=t.values[0];xe(n)},Ce=e=>{C?.(e)},we=R.useMemo(()=>({classNames:b,styles:x,options:ne,fieldNames:te,values:me,halfValues:he,changeOnSelect:s,onSelect:xe,checkable:u,searchOptions:pe,popupPrefixCls:m,loadData:h,expandTrigger:f,expandIcon:w,loadingIcon:T,popupMenuColumnStyle:v,optionRender:k}),[b,x,ne,te,me,he,s,xe,u,pe,m,h,f,w,T,v,k]),Te=!(ue?pe:ne).length,Ee=ue&&ae.matchInputWidth||Te?{}:{minWidth:`auto`};return R.createElement(Qr.Provider,{value:we},R.createElement(ct,bi({},j,{ref:t,id:M,prefixCls:r,autoClearSearchValue:oe,popupMatchSelectWidth:D,classNames:b,styles:x,popupStyle:{...Ee,...y},displayValues:ve,onDisplayValuesChange:Se,mode:N?`multiple`:void 0,searchValue:ue,onSearch:de,showSearch:ie,OptionList:cte,emptyOptions:Te,open:g,popupClassName:_,placement:S,onPopupVisibleChange:Ce,getRawInputElement:()=>E})))});xi.SHOW_PARENT=ti,xi.SHOW_CHILD=Zee,xi.Panel=yi;var Si=xi;function Ci(e,t){let{getPrefixCls:n,direction:r,renderEmpty:i}=R.useContext(m),a=t||r;return[n(`select`,e),n(`cascader`,e),a,i]}function wi(e,t){return R.useMemo(()=>t?R.createElement(`span`,{className:`${e}-checkbox-inner`}):!1,[e,t])}var ute=R.createElement(re,{spin:!0}),dte=R.createElement(h,null),fte=R.createElement(it,null);function Ti({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:n,loadingIcon:r,isRtl:i}){return R.useMemo(()=>({expandIcon:n??e??(i?fte:dte),loadingIcon:r??t??ute}),[e,t,n,i,r])}var Ei=e=>{let{prefixCls:t,componentCls:n}=e,i=`${n}-menu-item`,a=`
&${i}-expand ${i}-expand-icon,
${i}-loading-icon
`;return[vt(`${t}-checkbox`,e),{[n]:{"&-checkbox":{top:0,marginInlineEnd:e.paddingXS,pointerEvents:`unset`},"&-menus":{display:`flex`,flexWrap:`nowrap`,alignItems:`flex-start`,[`&${n}-menu-empty`]:{[`${n}-menu`]:{width:`100%`,height:`auto`,[i]:{color:e.colorTextDisabled}}}},"&-menu":{flexGrow:1,flexShrink:0,minWidth:e.controlItemWidth,height:e.dropdownHeight,margin:0,padding:e.menuPadding,overflow:`auto`,verticalAlign:`top`,listStyle:`none`,"-ms-overflow-style":`-ms-autohiding-scrollbar`,"&:not(:last-child)":{borderInlineEnd:`${g(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},"&-item":{display:`flex`,maxWidth:400,flexWrap:`nowrap`,alignItems:`center`,padding:e.optionPadding,lineHeight:e.lineHeight,cursor:`pointer`,transition:`all ${e.motionDurationMid}`,borderRadius:e.borderRadiusSM,"&:hover":{background:e.controlItemBgHover},"&-disabled":{color:e.colorTextDisabled,cursor:`not-allowed`,"&:hover":{background:`transparent`},[a]:{color:e.colorTextDisabled}},[`&-active:not(${i}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:`auto`,minWidth:0,...r},[a]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},pte=e=>{let{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},Ei(e)]},{[`${t}-dropdown-rtl`]:{direction:`rtl`}},s(e)]},Di=e=>{let t=Math.round((e.controlHeight-e.fontSize*e.lineHeight)/2);return{controlWidth:184,controlItemWidth:111,dropdownHeight:180,optionSelectedBg:e.controlItemBgActive,optionSelectedFontWeight:e.fontWeightStrong,optionPadding:`${t}px ${e.paddingSM}px`,menuPadding:e.paddingXXS,optionSelectedColor:e.colorText}},Oi=T(`Cascader`,pte,Di,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),mte=d([`Cascader`,`Panel`],e=>{let{componentCls:t}=e;return{[`${t}-panel`]:[Ei(e),{display:`inline-flex`,border:`${g(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,borderRadius:e.borderRadiusLG,overflowX:`auto`,maxWidth:`100%`,[`${t}-menus`]:{alignItems:`stretch`},[`${t}-menu`]:{height:`auto`},"&-empty":{padding:e.paddingXXS}}]}},Di,{resetFont:!1});function hte(e){let{prefixCls:t,className:n,multiple:r,rootClassName:i,notFoundContent:a,direction:o,expandIcon:s,loadingIcon:c,disabled:l}=e,{expandIcon:u,loadingIcon:d}=be(`cascader`),f=R.useContext(j),p=l??f,[m,h,g,_]=Ci(t,o),v=ve(h),[y,b]=Oi(h,v);mte(h);let{expandIcon:x,loadingIcon:S}=Ti({contextExpandIcon:u,contextLoadingIcon:d,expandIcon:s,loadingIcon:c,isRtl:g===`rtl`}),C=a||_?.(`Cascader`)||R.createElement(dt,{componentName:`Cascader`}),T=wi(h,r);return R.createElement(yi,{...e,checkable:T,prefixCls:h,className:w(n,y,i,b,v),notFoundContent:C,direction:g,expandIcon:x,loadingIcon:S,disabled:p})}var{SHOW_CHILD:gte,SHOW_PARENT:_te}=Si,vte=(e,t,n)=>{let r=e.toLowerCase().split(t).reduce((e,n,r)=>r===0?[n]:[].concat(a(e),[t,n]),[]),i=[],o=0;return r.forEach((t,r)=>{let a=o+t.length,s=e.slice(o,a);o=a,r%2==1&&(s=R.createElement(`span`,{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),i.push(s)}),i},yte=(e,t,n,r)=>{let i=[],a=e.toLowerCase();return t.forEach((e,t)=>{t!==0&&i.push(` / `);let o=e[r.label];(te(o)||x(o))&&(o=vte(String(o),a,n)),i.push(o)}),i},ki=R.forwardRef((e,t)=>{let{prefixCls:r,size:i,disabled:a,className:o,rootClassName:s,multiple:l,bordered:u=!0,transitionName:d,choiceTransitionName:f=``,popupClassName:p,expandIcon:h,placement:g,showSearch:v,allowClear:y=!0,notFoundContent:x,direction:S,getPopupContainer:C,status:T,showArrow:E,builtinPlacements:D,style:k,variant:A,dropdownClassName:M,dropdownRender:N,onDropdownVisibleChange:P,onPopupVisibleChange:F,dropdownMenuColumnStyle:ee,popupRender:te,dropdownStyle:ne,popupMenuColumnStyle:re,onOpenChange:I,styles:ae,classNames:oe,loadingIcon:se,clearIcon:L,removeIcon:ce,suffixIcon:ue,...de}=e,{getPrefixCls:fe,getPopupContainer:pe,className:me,style:he,classNames:_e,styles:ye,expandIcon:xe,loadingIcon:Se,clearIcon:Ce,removeIcon:we,suffixIcon:Te,searchIcon:Ee}=be(`cascader`),{popupOverflow:De}=R.useContext(m),{status:Oe,hasFeedback:ke,isFormItemInput:Ae,feedbackIcon:Me}=R.useContext(ie),Ne=je(Oe,T),[Fe,Ie,Re,ze]=Ci(r,S),Be=Re===`rtl`,Ve=fe(),He=ve(Fe),[Ue,We]=mt(Fe,He),Ge=ve(Ie);Oi(Ie,Ge);let{compactSize:Ke,compactItemClassnames:qe}=O(Fe,S),[Je,Ye]=le(`cascader`,A,u),Xe=x||ze?.(`Cascader`)||R.createElement(dt,{componentName:`Cascader`}),Ze=ot(te||N),Qe=re||ee,$e=I||F||P,et=R.useMemo(()=>{if(!v)return v;let e={render:yte};return c(v)&&(e={...e,...v}),e},[v]),tt=_(e=>i??Ke??e),nt=R.useContext(j),rt=a??nt,{expandIcon:it,loadingIcon:at}=Ti({contextExpandIcon:xe,contextLoadingIcon:Se,expandIcon:h,loadingIcon:se,isRtl:Be}),ct=wi(Ie,l),lt=ut(e.suffixIcon,E),{suffixIcon:pt,removeIcon:ht,clearIcon:gt}=ft({...e,clearIcon:L,contextClearIcon:Ce,removeIcon:ce,contextRemoveIcon:we,loadingIcon:at,suffixIcon:ue,contextSuffixIcon:Te,searchIcon:c(v)?v.searchIcon:void 0,contextSearchIcon:Ee,hasFeedback:ke,feedbackIcon:Me,showSuffixIcon:lt,multiple:l,prefixCls:Fe,componentName:`Cascader`}),_t=R.useMemo(()=>g===void 0?Be?`bottomRight`:`bottomLeft`:g,[g,Be]),vt=y===!0?{clearIcon:gt}:y,yt={...e,variant:Je,size:tt,status:Ne,disabled:rt},bt=b(he),xt=b(k),[St,Ct]=ge([_e,oe],[ye,bt,ae,xt],{props:yt},{popup:{_default:`root`}}),wt={...Ct.popup.root,...ne},[Tt]=Le(`SelectLike`,wt?.zIndex),Et=w(p||M,`${Ie}-dropdown`,{[`${Ie}-dropdown-rtl`]:Re===`rtl`},s,He,St.popup.root,Ge,Ue,We);return R.createElement(Si,{prefixCls:Fe,className:w(!r&&Ie,{[`${Fe}-lg`]:tt===`large`,[`${Fe}-sm`]:tt===`small`,[`${Fe}-rtl`]:Be,[`${Fe}-${Je}`]:Ye,[`${Fe}-in-form-item`]:Ae},Pe(Fe,Ne,ke),qe,me,o,s,St.root,He,Ge,Ue,We),disabled:rt,style:Ct.root,classNames:St,styles:Ct,...de,builtinPlacements:st(D,De),direction:Re,placement:_t,notFoundContent:Xe,allowClear:vt,showSearch:et,expandIcon:it,suffixIcon:pt,removeIcon:ht,loadingIcon:at,checkable:ct,popupClassName:Et,popupPrefixCls:r||Ie,popupStyle:{...wt,zIndex:Tt},popupRender:Ze,popupMenuColumnStyle:Qe,onPopupVisibleChange:$e,choiceTransitionName:n(Ve,``,f),transitionName:n(Ve,`slide-up`,d),getPopupContainer:C||pe,ref:t})}),bte=at(ki,`popupAlign`,e=>E(e,[`visible`]));ki.SHOW_PARENT=_te,ki.SHOW_CHILD=gte,ki.Panel=hte,ki._InternalPanelDoNotUseOrYouWillBeFired=bte;var Ai=(e,t,n,r,i,a)=>{let{classNames:o,styles:s}=be(e),[c,l]=ge([o,t],[s,n],{props:a},{popup:{_default:`root`}});return R.useMemo(()=>[{...c,popup:{...c.popup,root:w(c.popup?.root,r)}},{...l,popup:{...l.popup,root:{...l.popup?.root,...i}}}],[c,l,r,i])},xte=(e,t,n)=>pe(n)?n:t===`year`&&e.lang.yearPlaceholder?e.lang.yearPlaceholder:t===`quarter`&&e.lang.quarterPlaceholder?e.lang.quarterPlaceholder:t===`month`&&e.lang.monthPlaceholder?e.lang.monthPlaceholder:t===`week`&&e.lang.weekPlaceholder?e.lang.weekPlaceholder:t===`time`&&e.timePickerLocale.placeholder?e.timePickerLocale.placeholder:e.lang.placeholder,Ste=(e,t,n)=>pe(n)?n:t===`year`&&e.lang.rangeYearPlaceholder?e.lang.rangeYearPlaceholder:t===`quarter`&&e.lang.rangeQuarterPlaceholder?e.lang.rangeQuarterPlaceholder:t===`month`&&e.lang.rangeMonthPlaceholder?e.lang.rangeMonthPlaceholder:t===`week`&&e.lang.rangeWeekPlaceholder?e.lang.rangeWeekPlaceholder:t===`time`&&e.timePickerLocale.rangePlaceholder?e.timePickerLocale.rangePlaceholder:e.lang.rangePlaceholder,Cte=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=ft({...e,prefixCls:t,componentName:`DatePicker`});return[R.useMemo(()=>n!==!1&&{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[wte,ji]=[`week`,`WeekPicker`],[Tte,Ete]=[`month`,`MonthPicker`],[Dte,Ote]=[`year`,`YearPicker`],[kte,Ate]=[`quarter`,`QuarterPicker`],[Mi,Ni]=[`time`,`TimePicker`],Pi=e=>R.createElement(tt,{size:`small`,type:`primary`,...e});function Fi(e){return(0,R.useMemo)(()=>({button:Pi,...e}),[e])}var Ii=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?R.createElement(R.Fragment,null,e===Mi?R.createElement(wt,{"aria-hidden":`true`}):R.createElement(we,{"aria-hidden":`true`}),t&&n):r,Li=e=>(0,R.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:o,style:s,classNames:c,styles:u,placement:d,size:f,disabled:p,bordered:h=!0,placeholder:g,status:v,variant:y,picker:b,dropdownClassName:x,popupClassName:S,popupStyle:C,rootClassName:T,suffixIcon:E,separator:D,allowClear:k,clearIcon:A,...M}=t,N=b===Mi?`timePicker`:`datePicker`,{suffixIcon:P,clearIcon:ee,allowClear:te}=be(N),[ne,re]=Ai(N,c,u,S||x,C),I=R.useRef(null),{getPrefixCls:oe,direction:se,getPopupContainer:L,rangePicker:ce}=(0,R.useContext)(m),ue=oe(`picker`,r),{compactSize:de,compactItemClassnames:fe}=O(ue,se),pe=oe(),me=D??ce?.separator,[he,ge]=le(`rangePicker`,y,h),_e=ve(ue),[ye,xe]=Zr(ue,_e),Se=w(ye,xe,_e,T),Ce=et({componentName:`RangePicker`,allowClear:k,clearIcon:A,contextAllowClear:te,contextClearIcon:ee,defaultAllowClear:!0}),we=Fi(a),Ee=_(e=>f??de??e),De=R.useContext(j),Oe=p??De,{hasFeedback:ke,status:Ae,feedbackIcon:Me}=(0,R.useContext)(ie),Fe=Ii({picker:b,hasFeedback:ke,feedbackIcon:Me,suffixIcon:E===void 0?P:E});(0,R.useImperativeHandle)(n,()=>I.current);let[Ie]=ae(`Calendar`,F),Re=l(Ie,t.locale||{}),[ze]=Le(`DatePicker`,re?.popup?.root?.zIndex);return R.createElement(Ne,{space:!0},R.createElement(Gr,{separator:R.createElement(`span`,{"aria-label":`to`,className:`${ue}-separator`},me??R.createElement(Te,null)),disabled:Oe,ref:I,placement:d,placeholder:Ste(Re,b,g),suffixIcon:Fe,prevIcon:R.createElement(`span`,{className:`${ue}-prev-icon`}),nextIcon:R.createElement(`span`,{className:`${ue}-next-icon`}),superPrevIcon:R.createElement(`span`,{className:`${ue}-super-prev-icon`}),superNextIcon:R.createElement(`span`,{className:`${ue}-super-next-icon`}),transitionName:`${pe}-slide-up`,picker:b,...M,locale:Re.lang,getPopupContainer:i||L,generateConfig:e,components:we,direction:se,prefixCls:ue,rootClassName:Se,className:w({[`${ue}-large`]:Ee===`large`,[`${ue}-small`]:Ee===`small`,[`${ue}-${he}`]:ge},Pe(ue,je(Ae,v),ke),fe,o,ce?.className),style:{...ce?.style,...s},classNames:ne,styles:{...re,popup:{...re.popup,root:{...re.popup.root,zIndex:ze}}},allowClear:Ce}))}),Ri=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Ni?`timePicker`:`datePicker`;return(0,R.forwardRef)((i,a)=>{let{prefixCls:o,getPopupContainer:s,components:c,style:u,className:d,size:f,bordered:p,placement:h,placeholder:g,disabled:v,status:y,variant:b,onCalendarChange:x,classNames:S,styles:C,dropdownClassName:T,popupClassName:E,popupStyle:D,rootClassName:k,suffixIcon:A,allowClear:M,clearIcon:N,...P}=i,{suffixIcon:ee,clearIcon:te,allowClear:ne}=be(n===Ni?`timePicker`:`datePicker`),{getPrefixCls:re,direction:I,getPopupContainer:oe,[r]:se}=(0,R.useContext)(m),L=re(`picker`,o),{compactSize:ce,compactItemClassnames:ue}=O(L,I),de=_(e=>f??ce??e),fe=R.useContext(j),pe=v??fe,me={...i,size:de,disabled:pe,status:y,variant:b},[he,ge]=Ai(r,S,C,E||T,D,me),_e=R.useRef(null),[ye,xe]=le(`datePicker`,b,p),Se=ve(L),[Ce,we]=Zr(L,Se),Te=w(Ce,we,Se,k);(0,R.useImperativeHandle)(a,()=>_e.current);let Ee={showToday:!0},De=t||i.picker,Oe=re(),{onSelect:ke,multiple:Ae}=P,Me=ke&&t===`time`&&!Ae,Fe=(e,t,n)=>{x?.(e,t,n),Me&&ke(e)},[,Ie]=Cte(i,L),Re=et({componentName:n,allowClear:M,clearIcon:N,contextAllowClear:ne,contextClearIcon:te,defaultAllowClear:!0}),ze=Fi(c),{hasFeedback:Be,status:Ve,feedbackIcon:He}=(0,R.useContext)(ie),Ue=Ii({picker:De,hasFeedback:Be,feedbackIcon:He,suffixIcon:A===void 0?ee:A}),[We]=ae(`DatePicker`,F),Ge=l(We,i.locale||{}),[Ke]=Le(`DatePicker`,ge?.popup?.root?.zIndex);return R.createElement(Ne,{space:!0},R.createElement(Fee,{ref:_e,placeholder:xte(Ge,De,g),suffixIcon:Ue,placement:h,prevIcon:R.createElement(`span`,{className:`${L}-prev-icon`}),nextIcon:R.createElement(`span`,{className:`${L}-next-icon`}),superPrevIcon:R.createElement(`span`,{className:`${L}-super-prev-icon`}),superNextIcon:R.createElement(`span`,{className:`${L}-super-next-icon`}),transitionName:`${Oe}-slide-up`,picker:t,onCalendarChange:Fe,...Ee,...P,locale:Ge.lang,getPopupContainer:s||oe,generateConfig:e,components:ze,direction:I,disabled:pe,prefixCls:L,rootClassName:Te,className:w({[`${L}-large`]:de===`large`,[`${L}-small`]:de===`small`,[`${L}-${ye}`]:xe},Pe(L,je(Ve,y),Be),ue,se?.className,d),style:{...se?.style,...u},classNames:he,styles:{...ge,popup:{...ge.popup,root:{...ge.popup.root,zIndex:Ke}}},allowClear:Re,removeIcon:Ie}))})},n=t(),r=t(wte,ji),i=t(Tte,Ete),a=t(Dte,Ote),o=t(kte,Ate);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Mi,Ni),QuarterPicker:o}},zi=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=Ri(e),s=Li(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Bi=zi(ree);Bi._InternalPanelDoNotUseOrYouWillBeFired=at(Bi,`popupAlign`,void 0,`picker`),Bi._InternalRangePanelDoNotUseOrYouWillBeFired=at(Bi.RangePicker,`popupAlign`,void 0,`picker`),Bi.generatePicker=zi;function jte(e,t){let{disabled:n,prefixCls:r,character:i,characterRender:a,index:o,count:s,value:c,allowHalf:l,focused:u,onHover:d,onClick:f}=e,p=e=>{d(e,o)},m=e=>{f(e,o)},h=e=>{e.keyCode===L.ENTER&&f(e,o)},g=o+1,_=new Set([r]);c===0&&o===0&&u?_.add(`${r}-focused`):l&&c+.5>=g&&c<g?(_.add(`${r}-half`),_.add(`${r}-active`),u&&_.add(`${r}-focused`)):(g<=c?_.add(`${r}-full`):_.add(`${r}-zero`),g===c&&u&&_.add(`${r}-focused`));let v=typeof i==`function`?i(e):i,y=R.createElement(`li`,{className:w(Array.from(_)),ref:t},R.createElement(`div`,{onClick:n?null:m,onKeyDown:n?null:h,onMouseMove:n?null:p,role:`radio`,"aria-checked":c>o?`true`:`false`,"aria-posinset":o+1,"aria-setsize":s,tabIndex:n?-1:0},R.createElement(`div`,{className:`${r}-first`},v),R.createElement(`div`,{className:`${r}-second`},v)));return a&&(y=a(y,e)),y}var Mte=R.forwardRef(jte);function Nte(){let e=R.useRef({});function t(t){return e.current[t]}function n(t){return n=>{e.current[t]=n}}return[t,n]}function Pte(e){let t=e.pageXOffset,n=`scrollLeft`;if(typeof t!=`number`){let r=e.document;t=r.documentElement[n],typeof t!=`number`&&(t=r.body[n])}return t}function Fte(e){let t,n,r=e.ownerDocument,{body:i}=r,a=r&&r.documentElement,o=e.getBoundingClientRect();return t=o.left,n=o.top,t-=a.clientLeft||i.clientLeft||0,n-=a.clientTop||i.clientTop||0,{left:t,top:n}}function Ite(e){let t=Fte(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Pte(r),t.left}function Vi(){return Vi=Object.assign?Object.assign.bind():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},Vi.apply(this,arguments)}function Hi(e,t){let{prefixCls:n=`rc-rate`,className:r,defaultValue:i,value:a,count:o=5,allowHalf:s=!1,allowClear:c=!0,keyboard:l=!0,character:u=`★`,characterRender:d,disabled:f,direction:p=`ltr`,tabIndex:m=0,autoFocus:h,onHoverChange:g,onChange:_,onFocus:v,onBlur:y,onKeyDown:b,onMouseLeave:x,...S}=e,[C,T]=Nte(),E=R.useRef(null),O=()=>{f||E.current?.focus()};R.useImperativeHandle(t,()=>({focus:O,blur:()=>{f||E.current?.blur()}}));let[k,A]=_e(i||0,a),[j,M]=_e(null),N=(e,t)=>{let n=p===`rtl`,r=e+1;if(s){let i=C(e),a=Ite(i),o=i.clientWidth;(n&&t-a>o/2||!n&&t-a<o/2)&&(r-=.5)}return r},P=e=>{A(e),_?.(e)},[F,ee]=R.useState(!1),te=()=>{ee(!0),v?.()},ne=()=>{ee(!1),y?.()},[re,I]=R.useState(null),ie=(e,t)=>{let n=N(t,e.pageX);n!==j&&(I(n),M(null)),g?.(n)},ae=e=>{f||(I(null),M(null),g?.(void 0)),e&&x?.(e)},oe=(e,t)=>{let n=N(t,e.pageX),r=!1;c&&(r=n===k),ae(),P(r?0:n),M(r?n:null)},se=e=>{let{keyCode:t}=e,n=p===`rtl`,r=s?.5:1;l&&(t===L.RIGHT&&k<o&&!n?(P(k+r),e.preventDefault()):t===L.LEFT&&k>0&&!n||t===L.RIGHT&&k>0&&n?(P(k-r),e.preventDefault()):t===L.LEFT&&k<o&&n&&(P(k+r),e.preventDefault())),b?.(e)};R.useEffect(()=>{h&&!f&&O()},[]);let ce=Array(o).fill(0).map((e,t)=>R.createElement(Mte,{ref:T(t),index:t,count:o,disabled:f,prefixCls:`${n}-star`,allowHalf:s,value:re===null?k:re,onClick:oe,onHover:ie,key:e||t,character:u,characterRender:d,focused:F})),le=w(n,r,{[`${n}-disabled`]:f,[`${n}-rtl`]:p===`rtl`});return R.createElement(`ul`,Vi({className:le,onMouseLeave:ae,tabIndex:f?-1:m,onFocus:f?null:te,onBlur:f?null:ne,onKeyDown:f?null:se,ref:E},D(S,{aria:!0,data:!0,attr:!0})),ce)}var Ui=R.forwardRef(Hi),Wi=e=>{let{componentCls:t}=e;return{[`${t}-star`]:{position:`relative`,display:`inline-block`,color:`inherit`,cursor:`pointer`,"&:not(:last-child)":{marginInlineEnd:e.marginXS},"> div":{transition:`all ${e.motionDurationMid}, outline 0s`,"&:hover":{transform:e.starHoverScale},"&:focus":{outline:0},"&:focus-visible":{outline:`${g(e.lineWidth)} dashed ${e.starColor}`,transform:e.starHoverScale}},"&-first, &-second":{color:e.starBg,transition:`all ${e.motionDurationMid}`,userSelect:`none`},"&-first":{position:`absolute`,top:0,insetInlineStart:0,width:`50%`,height:`100%`,overflow:`hidden`,opacity:0},[`&-half ${t}-star-first, &-half ${t}-star-second`]:{opacity:1},[`&-half ${t}-star-first, &-full ${t}-star-second`]:{color:`inherit`}}}},Gi=e=>({[`&-rtl${e.componentCls}`]:{direction:`rtl`}}),Ki=e=>{let{componentCls:t}=e;return{[t]:{...k(e),display:`inline-block`,margin:0,padding:0,color:e.starColor,fontSize:e.starSize,lineHeight:1,listStyle:`none`,outline:`none`,"&-small":{fontSize:e.starSizeSM},"&-large":{fontSize:e.starSizeLG},[`&-disabled${t} ${t}-star`]:{cursor:`default`,"> div:hover":{transform:`scale(1)`}},...Wi(e),...Gi(e)}}},Lte=T(`Rate`,e=>Ki(me(e,{})),e=>({starColor:e.yellow6,starSize:e.controlHeight*.625,starSizeSM:e.controlHeightSM*.625,starSizeLG:e.controlHeightLG*.625,starHoverScale:`scale(1.1)`,starBg:e.colorFillContent})),Rte=R.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=R.createElement(Ee,null),disabled:l,size:u,...d}=e,f=(e,{index:t=0})=>{if(!o)return e;let n=o[t];return c(n)?R.createElement(Fe,{...n},e):R.createElement(Fe,{title:n},e)},{getPrefixCls:p,direction:m,className:h,style:g}=be(`rate`),v=p(`rate`,n),[y,b]=Lte(v),x={...g,...a},S=R.useContext(j),C=l??S,T=_(e=>u??e);return R.createElement(Ui,{ref:t,character:s,characterRender:f,disabled:C,...d,className:w({[`${v}-large`]:T===`large`,[`${v}-small`]:T===`small`},r,i,y,b,h),style:x,prefixCls:v,direction:m})}),{TimePicker:zte,RangePicker:Bte}=Bi,Vte=R.forwardRef((e,t)=>R.createElement(Bte,{...e,picker:`time`,mode:void 0,ref:t})),qi=R.forwardRef((e,t)=>{let{addon:n,renderExtraFooter:r,variant:i,bordered:a,classNames:o,styles:s,popupClassName:c,popupStyle:l,...u}=e,[d]=le(`timePicker`,i,a),f=R.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),[p,m]=Ai(`timePicker`,o,s,c,l,{...e,variant:d});return R.createElement(zte,{...u,mode:void 0,ref:t,renderExtraFooter:f,variant:d,classNames:p,styles:m})}),Ji=at(qi,`popupAlign`,void 0,`picker`);qi._InternalPanelDoNotUseOrYouWillBeFired=Ji,qi.RangePicker=Vte,qi._InternalPanelDoNotUseOrYouWillBeFired=Ji;var Hte=(e=>{let t=R.useRef({valueLabels:new Map});return R.useMemo(()=>{let{valueLabels:n}=t.current,r=new Map,i=e.map(e=>{let{value:t,label:i}=e,a=i??n.get(t);return r.set(t,a),{...e,label:a}});return t.current.valueLabels=r,[i]},[e])}),Ute=(e,t,n,r)=>R.useMemo(()=>{let i=e=>e.map(({value:e})=>e),a=i(e),o=i(t),s=a.filter(e=>!r[e]),c=a,l=o;if(n){let e=We(a,!0,r);c=e.checkedKeys,l=e.halfCheckedKeys}return[Array.from(new Set([...s,...c])),l]},[e,t,n,r]),Wte=e=>Array.isArray(e)?e:e===void 0?[]:[e],Gte=e=>{let{label:t,value:n,children:r}=e||{};return{_title:t?[t]:[`title`,`label`],value:n||`value`,key:n||`value`,children:r||`children`}},Yi=e=>!e||e.disabled||e.disableCheckbox||e.checkable===!1,Kte=(e,t)=>{let n=[],r=e=>{e.forEach(e=>{let i=e[t.children];i&&(n.push(e[t.value]),r(i))})};return r(e),n},Xi=e=>e==null,qte=((e,t)=>R.useMemo(()=>ze(e,{fieldNames:t,initWrapper:e=>({...e,valueEntities:new Map}),processEntity:(e,n)=>{let r=e.node[t.value];n.valueEntities.set(r,e)}}),[e,t])),Zi=()=>null;function Qi(e){return f(e).map(e=>{if(!R.isValidElement(e)||!e.type)return null;let{key:t,props:{children:n,value:r,...i}}=e,a={key:t,value:r,...i},o=Qi(n);return o.length&&(a.children=o),a}).filter(e=>e)}function $i(e){if(!e)return e;let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return P(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function Jte(e,t,n,r,i,a){let o=null,s=null;function c(){function e(r,i=`0`,c=!1){return r.map((r,l)=>{let u=`${i}-${l}`,d=r[a.value],f=n.includes(d),p=e(r[a.children]||[],u,f),m=R.createElement(Zi,r,p.map(e=>e.node));if(t===d&&(o=m),f){let e={pos:u,node:m,children:p};return c||s.push(e),e}return null}).filter(e=>e)}s||(s=[],e(r),s.sort(({node:{props:{value:e}}},{node:{props:{value:t}}})=>n.indexOf(e)-n.indexOf(t)))}Object.defineProperty(e,"triggerNode",{get(){return P(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),o}}),Object.defineProperty(e,"allCheckedNodes",{get(){return P(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),i?s:s.map(({node:e})=>e)}})}var Yte=(e,t,n)=>{let{fieldNames:r,treeNodeFilterProp:i,filterTreeNode:a}=n,{children:o}=r;return R.useMemo(()=>{if(!t||a===!1)return e;let n=typeof a==`function`?a:(e,n)=>String(n[i]).toUpperCase().includes(t.toUpperCase()),r=(e,i=!1)=>e.reduce((e,a)=>{let s=a[o],c=i||n(t,$i(a)),l=r(s||[],c);return(c||l.length)&&e.push({...a,isLeaf:void 0,[o]:l}),e},[]);return r(e)},[e,t,o,i,a])};function ea(e){let t=R.useRef();return t.current=e,R.useCallback((...e)=>t.current(...e),[])}function ta(e,t){let{id:n,pId:r,rootPId:i}=t,a=new Map,o=[];return e.forEach(e=>{let t=e[n],r={...e,key:e.key||t};a.set(t,r)}),a.forEach(e=>{let t=e[r],n=a.get(t);n?(n.children=n.children||[],n.children.push(e)):(t===i||i===null)&&o.push(e)}),o}function na(e,t,n){return R.useMemo(()=>e?n?ta(e,{id:`id`,pId:`pId`,rootPId:null,...typeof n==`object`?n:{}}):e:Qi(t),[t,n,e])}var ra=R.createContext(null),ia=R.createContext(null);function aa(){return aa=Object.assign?Object.assign.bind():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},aa.apply(this,arguments)}var oa={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0},sa=R.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,open:o,notFoundContent:s}=lt(),{virtual:c,listHeight:l,listItemHeight:u,listItemScrollOffset:d,treeData:f,fieldNames:p,onSelect:m,popupMatchSelectWidth:h,treeExpandAction:g,treeTitleRender:_,onPopupScroll:v,leftMaxCount:y,leafCountOnly:b,valueEntities:x,classNames:S,styles:C}=R.useContext(ia),{checkable:w,checkedKeys:T,halfCheckedKeys:E,treeExpandedKeys:D,treeDefaultExpandAll:O,treeDefaultExpandedKeys:k,onTreeExpand:A,treeIcon:j,showTreeIcon:M,switcherIcon:N,treeLine:P,treeNodeFilterProp:F,loadData:te,treeLoadedKeys:ne,treeMotion:re,onTreeLoad:I,keyEntities:ie}=R.useContext(ra),ae=R.useRef(),oe=ee(()=>f,[o,f],(e,t)=>t[0]&&e[1]!==t[1]),se=R.useMemo(()=>w?{checked:T,halfChecked:E}:null,[w,T,E]);R.useEffect(()=>{o&&!r&&T.length&&ae.current?.scrollTo({key:T[0]})},[o]);let ce=e=>{e.preventDefault()},le=(e,t)=>{let{node:n}=t;w&&Yi(n)||(m(n.key,{selected:!T.includes(n.key)}),r||a(!1))},[ue,de]=R.useState(k),[pe,me]=R.useState(null),he=R.useMemo(()=>D?[...D]:i?pe:ue,[ue,pe,D,i]),ge=e=>{de(e),me(e),A&&A(e)},_e=String(i).toLowerCase(),ve=e=>_e?String(e[F]).toLowerCase().includes(_e):!1;R.useEffect(()=>{i&&me(Kte(f,p))},[i]);let[ye,be]=R.useState(()=>new Map);R.useEffect(()=>{y&&be(new Map)},[y]);function xe(e){let t=e[p.value];if(!ye.has(t)){let e=x.get(t);if((e.children||[]).length!==0){let n=e.children.filter(e=>!e.node.disabled&&!e.node.disableCheckbox&&!T.includes(e.node[p.value])).length;ye.set(t,n>y)}else ye.set(t,!1)}return ye.get(t)}let Se=fe(e=>{let t=e[p.value];return T.includes(t)||y===null?!1:y<=0?!0:b&&y?xe(e):!1}),Ce=e=>{for(let t of e)if(!(t.disabled||t.selectable===!1)){if(i){if(ve(t))return t}else return t;if(t[p.children]){let e=Ce(t[p.children]);if(e)return e}}return null},[we,Te]=R.useState(null),Ee=ie[we];R.useEffect(()=>{if(!o)return;let e=null;e=!r&&T.length&&!i?T[0]:(()=>{let e=Ce(oe);return e?e[p.value]:null})(),Te(e)},[o,i]),R.useImperativeHandle(t,()=>({scrollTo:ae.current?.scrollTo,onKeyDown:e=>{let{which:t}=e;switch(t){case L.UP:case L.DOWN:case L.LEFT:case L.RIGHT:ae.current?.onKeyDown(e);break;case L.ENTER:if(Ee){let e=Se(Ee.node),{selectable:t,value:n,disabled:r}=Ee?.node||{};t!==!1&&!r&&!e&&le(null,{node:{key:we},selected:!T.includes(n)})}break;case L.ESC:a(!1)}},onKeyUp:()=>{}}));let De=ee(()=>!i,[i,D||ue],([e],[t,n])=>e!==t&&!!(t||n))?te:null;if(oe.length===0)return R.createElement(`div`,{role:`listbox`,className:`${n}-empty`,onMouseDown:ce},s);let Oe={fieldNames:p};return ne&&(Oe.loadedKeys=ne),he&&(Oe.expandedKeys=he),R.createElement(`div`,{onMouseDown:ce},Ee&&o&&R.createElement(`span`,{style:oa,"aria-live":`assertive`},Ee.node.value),R.createElement(Ve.Provider,{value:{nodeDisabled:Se}},R.createElement(He,aa({classNames:S?.popup,styles:C?.popup,ref:ae,focusable:!1,prefixCls:`${n}-tree`,treeData:oe,height:l,itemHeight:u,itemScrollOffset:d,virtual:c!==!1&&h!==!1,multiple:r,icon:j,showIcon:M,switcherIcon:N,showLine:P,loadData:De,motion:re,activeKey:we,checkable:w,checkStrictly:!0,checkedKeys:se,selectedKeys:w?[]:T,defaultExpandAll:O,titleRender:_},Oe,{onActiveChange:Te,onSelect:le,onCheck:le,onExpand:ge,onLoad:I,filterTreeNode:ve,expandAction:g,onScroll:v}))))}),ca=`SHOW_ALL`,la=`SHOW_PARENT`,ua=`SHOW_CHILD`;function da(e,t,n,r){let i=new Set(e);return t===`SHOW_CHILD`?e.filter(e=>{let t=n[e];return!t||!t.children||!t.children.some(({node:e})=>i.has(e[r.value]))||!t.children.every(({node:e})=>Yi(e)||i.has(e[r.value]))}):t===`SHOW_PARENT`?e.filter(e=>{let t=n[e],r=t?t.parent:null;return!r||Yi(r.node)||!i.has(r.key)}):e}function fa(e,t){let{searchValue:n,inputValue:r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s}=t;return R.useMemo(()=>{let t=typeof e==`object`,c={searchValue:n??r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s,...t?e:{}};return[t?!0:e,c]},[e,n,r,i,a,o,s])}function pa(){return pa=Object.assign?Object.assign.bind():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},pa.apply(this,arguments)}function ma(e){return!e||typeof e!=`object`}var ha=R.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tree-select`,value:i,defaultValue:a,onChange:o,onSelect:s,onDeselect:c,showSearch:l,searchValue:u,inputValue:d,onSearch:f,autoClearSearchValue:p,filterTreeNode:m,treeNodeFilterProp:h,showCheckedStrategy:g,treeNodeLabelProp:_,multiple:v,treeCheckable:y,treeCheckStrictly:b,labelInValue:x,maxCount:S,fieldNames:C,treeDataSimpleMode:w,treeData:T,children:E,loadData:D,treeLoadedKeys:O,onTreeLoad:k,treeDefaultExpandAll:j,treeExpandedKeys:M,treeDefaultExpandedKeys:N,onTreeExpand:P,treeExpandAction:F,virtual:ee,listHeight:te=200,listItemHeight:ne=20,listItemScrollOffset:re=0,onPopupVisibleChange:I,popupMatchSelectWidth:ie=!0,treeLine:ae,treeIcon:oe,showTreeIcon:se,switcherIcon:L,treeMotion:ce,treeTitleRender:le,onPopupScroll:ue,classNames:de,styles:fe,...pe}=e,me=A(n),he=y&&!b,ge=y||b,ve=b||x,ye=ge||v,[be,xe]=fa(l,{searchValue:u,inputValue:d,onSearch:f,autoClearSearchValue:p,filterTreeNode:m,treeNodeFilterProp:h}),{searchValue:Se,onSearch:Ce,autoClearSearchValue:we=!0,filterTreeNode:Te,treeNodeFilterProp:Ee=`value`}=xe,[De,Oe]=_e(a,i),ke=R.useMemo(()=>y?g||`SHOW_CHILD`:ca,[g,y]),Ae=R.useMemo(()=>Gte(C),[JSON.stringify(C)]),[je,Me]=_e(``,Se),Ne=je||``,Pe=e=>{Me(e),Ce?.(e)},Fe=na(T,E,w),{keyEntities:Ie,valueEntities:Le}=qte(Fe,Ae),Re=R.useCallback(e=>{let t=[],n=[];return e.forEach(e=>{Le.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[Le]),ze=Yte(Fe,Ne,{fieldNames:Ae,treeNodeFilterProp:Ee,filterTreeNode:Te}),Be=R.useCallback(e=>{if(e){if(_)return e[_];let{_title:t}=Ae;for(let n=0;n<t.length;n+=1){let r=e[t[n]];if(r!==void 0)return r}}},[Ae,_]),Ve=R.useCallback(e=>Wte(e).map(e=>ma(e)?{value:e}:e),[]),He=R.useCallback(e=>Ve(e).map(e=>{let{label:t}=e,{value:n,halfChecked:r}=e,i,a=Le.get(n);return a?(t=le?le(a.node):t??Be(a.node),i=a.node.disabled):t===void 0&&(t=Ve(De).find(e=>e.value===n).label),{label:t,value:n,halfChecked:r,disabled:i}}),[Le,Be,Ve,De]),Ue=R.useMemo(()=>Ve(De===null?[]:De),[Ve,De]),[Ge,Ke]=R.useMemo(()=>{let e=[],t=[];return Ue.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),[e,t]},[Ue]),qe=R.useMemo(()=>Ge.map(e=>e.value),[Ge]),[Je,Ye]=Ute(Ge,Ke,he,Ie),[Xe]=Hte(R.useMemo(()=>{let e=da(Je,ke,Ie,Ae).map(e=>Ie[e]?.node?.[Ae.value]??e).map(e=>{let t=Ge.find(t=>t.value===e);return{value:e,label:x?t?.label:le?.(t)}}),t=He(e),n=t[0];return!ye&&n&&Xi(n.value)&&Xi(n.label)?[]:t.map(e=>({...e,label:e.label??e.value}))},[Ae,ye,Je,Ge,He,ke,Ie])),Ze=R.useMemo(()=>ye&&(ke===`SHOW_CHILD`||b||!y)?S:null,[S,ye,b,ke,y]),Qe=ea((e,t,n)=>{let r=da(e,ke,Ie,Ae);if(Ze&&r.length>Ze)return;let i=He(e);if(Oe(i),we&&Me(``),o){let i=e;he&&(i=r.map(e=>{let t=Le.get(e);return t?t.node[Ae.value]:e}));let{triggerValue:a,selected:s}=t||{triggerValue:void 0,selected:void 0},c=i;if(b){let e=Ke.filter(e=>!i.includes(e.value));c=[...c,...e]}let l=He(c),u={preValue:Ge,triggerValue:a},d=!0;(b||n===`selection`&&!s)&&(d=!1),Jte(u,a,e,Fe,d,Ae),ge?u.checked=s:u.selected=s;let f=ve?l:l.map(e=>e.value);o(ye?f:f[0],ve?null:l.map(e=>e.label),u)}}),$e=R.useCallback((e,{selected:t,source:n})=>{let r=Ie[e]?.node,i=r?.[Ae.value]??e;if(!ye)Qe([i],{selected:!0,triggerValue:i},`option`);else{let e=t?[...qe,i]:Je.filter(e=>e!==i);if(he){let{missingRawValues:n,existRawValues:r}=Re(e),i=r.map(e=>Le.get(e).key),a;t?{checkedKeys:a}=We(i,!0,Ie):{checkedKeys:a}=We(i,{checked:!1,halfCheckedKeys:Ye},Ie),e=[...n,...a.map(e=>Ie[e].node[Ae.value])]}Qe(e,{selected:t,triggerValue:i},n||`option`)}t||!ye?s?.(i,$i(r)):c?.(i,$i(r))},[Re,Le,Ie,Ae,ye,qe,Qe,he,s,c,Je,Ye,S]),et=R.useCallback(e=>{I&&I(e)},[I]),tt=ea((e,t)=>{let n=e.map(e=>e.value);if(t.type===`clear`){Qe(n,{},`selection`);return}t.values.length&&$e(t.values[0].value,{selected:!1,source:`selection`})}),nt=R.useMemo(()=>({virtual:ee,popupMatchSelectWidth:ie,listHeight:te,listItemHeight:ne,listItemScrollOffset:re,treeData:ze,fieldNames:Ae,onSelect:$e,treeExpandAction:F,treeTitleRender:le,onPopupScroll:ue,leftMaxCount:S===void 0?null:S-Xe.length,leafCountOnly:ke===`SHOW_CHILD`&&!b&&!!y,valueEntities:Le,classNames:de,styles:fe}),[ee,ie,te,ne,re,ze,Ae,$e,F,le,ue,S,Xe.length,ke,b,y,Le,de,fe]),rt=R.useMemo(()=>({checkable:ge,loadData:D,treeLoadedKeys:O,onTreeLoad:k,checkedKeys:Je,halfCheckedKeys:Ye,treeDefaultExpandAll:j,treeExpandedKeys:M,treeDefaultExpandedKeys:N,onTreeExpand:P,treeIcon:oe,treeMotion:ce,showTreeIcon:se,switcherIcon:L,treeLine:ae,treeNodeFilterProp:Ee,keyEntities:Ie}),[ge,D,O,k,Je,Ye,j,M,N,P,oe,ce,se,L,ae,Ee,Ie]);return R.createElement(ia.Provider,{value:nt},R.createElement(ra.Provider,{value:rt},R.createElement(ct,pa({ref:t},pe,{classNames:de,styles:fe,id:me,prefixCls:r,mode:ye?`multiple`:void 0,displayValues:Xe,onDisplayValuesChange:tt,autoClearSearchValue:we,showSearch:be,searchValue:Ne,onSearch:Pe,OptionList:sa,emptyOptions:!Fe.length,onPopupVisibleChange:et,popupMatchSelectWidth:ie}))))});ha.TreeNode=Zi,ha.SHOW_ALL=ca,ha.SHOW_PARENT=la,ha.SHOW_CHILD=ua;var ga=ha,_a=e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${g(e.paddingXS)} ${g(e.calc(e.paddingXS).div(2).equal())}`},Be(n,me(e,{colorBgContainer:r}),!1),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:`stretch`,[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:`auto`}}}}},vt(`${n}-checkbox`,e),{"&-rtl":{direction:`rtl`,[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:`rotate(90deg)`}}}}]}]};function va(e,t,n){return T(`TreeSelect`,e=>_a(me(e,{treePrefixCls:t})),Re,{resetFont:!1})(e,n)}var ya=R.forwardRef((e,t)=>{let{prefixCls:r,size:i,disabled:a,bordered:o=!0,style:s,className:c,rootClassName:l,treeCheckable:u,multiple:d,listHeight:f=256,listItemHeight:p,placement:h,notFoundContent:g,switcherIcon:v,treeLine:y,getPopupContainer:b,popupClassName:x,dropdownClassName:S,treeIcon:C=!1,transitionName:T,choiceTransitionName:D=``,status:k,treeExpandAction:A,builtinPlacements:M,dropdownMatchSelectWidth:P,popupMatchSelectWidth:F,allowClear:ee,variant:te,dropdownStyle:ne,dropdownRender:re,popupRender:I,onDropdownVisibleChange:ae,onOpenChange:oe,tagRender:se,maxCount:L,showCheckedStrategy:ce,treeCheckStrictly:ue,styles:de,classNames:fe,...pe}=e,{getPrefixCls:me,getPopupContainer:he,direction:_e,styles:ye,classNames:xe,switcherIcon:Se}=be(`treeSelect`),{renderEmpty:Ce,virtual:we,popupMatchSelectWidth:Te,popupOverflow:Ee}=R.useContext(m),[,De]=N(),Oe=p??De?.controlHeightSM+De?.paddingXXS,ke=me(),Ae=me(`select`,r),Me=me(`select-tree`,r),Ne=me(`tree-select`,r),{compactSize:Fe,compactItemClassnames:Ie}=O(Ae,_e),Re=ve(Ae),ze=ve(Ne),[Be,Ve]=mt(Ae,Re);va(Ne,Me,ze);let[He,We]=le(`treeSelect`,te,o),Ge=_(e=>i??Fe??e),Ke=R.useContext(j),qe=a??Ke,{status:Je,hasFeedback:Ye,isFormItemInput:Xe,feedbackIcon:Ze}=R.useContext(ie),Qe=je(Je,k),$e={...e,size:Ge,disabled:qe,status:Qe,variant:He},[et,tt]=ge([xe,fe],[ye,de],{props:$e},{popup:{_default:`root`}}),nt=w(x||S,`${Ne}-dropdown`,{[`${Ne}-dropdown-rtl`]:_e===`rtl`},l,et.root,et.popup?.root,Ve,Re,ze,Be),rt=ot(I||re),it=oe||ae,at=!!(u||d),ct=R.useMemo(()=>{if(!(L&&(ce===`SHOW_ALL`&&!ue||ce===`SHOW_PARENT`)))return L},[L,ce,ue]),lt=ut(e.suffixIcon,e.showArrow),pt=F??P??Te,{suffixIcon:ht,removeIcon:gt,clearIcon:_t}=ft({...pe,multiple:at,showSuffixIcon:lt,hasFeedback:Ye,feedbackIcon:Ze,prefixCls:Ae,componentName:`TreeSelect`}),vt=ee===!0?{clearIcon:_t}:ee,yt;yt=g===void 0?Ce?.(`Select`)||R.createElement(dt,{componentName:`Select`}):g;let bt=E(pe,[`suffixIcon`,`removeIcon`,`clearIcon`]),xt=R.useMemo(()=>h===void 0?_e===`rtl`?`bottomRight`:`bottomLeft`:h,[h,_e]),St=w(!r&&Ne,{[`${Ae}-lg`]:Ge===`large`,[`${Ae}-sm`]:Ge===`small`,[`${Ae}-rtl`]:_e===`rtl`,[`${Ae}-${He}`]:We,[`${Ae}-in-form-item`]:Xe},Pe(Ae,Qe,Ye),Ie,c,l,et?.root,Ve,Re,ze,Be),Ct=v??Se,wt=e=>R.createElement(Ue,{prefixCls:Me,switcherIcon:Ct,treeNodeProps:e,showLine:y}),[Tt]=Le(`SelectLike`,tt.popup?.root?.zIndex);return R.createElement(ga,{classNames:et,styles:tt,virtual:we,disabled:qe,...bt,popupMatchSelectWidth:pt,builtinPlacements:st(M,Ee),ref:t,prefixCls:Ae,className:St,style:{...tt?.root,...s},listHeight:f,listItemHeight:Oe,treeCheckable:u&&R.createElement(`span`,{className:`${Ae}-tree-checkbox-inner`}),treeLine:!!y,suffixIcon:ht,multiple:at,placement:xt,removeIcon:gt,allowClear:vt,switcherIcon:wt,showTreeIcon:C,notFoundContent:yt,getPopupContainer:b||he,treeMotion:null,popupClassName:nt,popupStyle:{...tt.root,...tt.popup?.root,zIndex:Tt},popupRender:rt,onPopupVisibleChange:it,choiceTransitionName:n(ke,``,D),transitionName:n(ke,`slide-up`,T),treeExpandAction:A,tagRender:at?se:void 0,maxCount:ct,showCheckedStrategy:ce,treeCheckStrictly:ue})}),ba=at(ya,`popupAlign`,e=>E(e,[`visible`]));ya.TreeNode=Zi,ya.SHOW_ALL=ca,ya.SHOW_PARENT=la,ya.SHOW_CHILD=ua,ya._InternalPanelDoNotUseOrYouWillBeFired=ba;var z=ce(),xa=({value:e,onChange:t,placeholder:n,disabled:r=!1,readonly:i=!1})=>{let{t:a}=jt(),[o,s]=(0,R.useState)(!1),[c,l]=(0,R.useState)(e);R.useEffect(()=>{l(e)},[e]);let u=(0,R.useCallback)(e=>{l(e),t?.(e),s(!1)},[t]),d=(0,R.useCallback)(()=>{l(void 0),t?.(null)},[t]),f=(0,R.useCallback)(({type:e})=>(0,z.jsx)(`div`,{className:`flex flex-wrap max-h-[400px] overflow-auto gap-2`,children:Oe[e].map(e=>(0,z.jsx)(`div`,{className:`cursor-pointer p-2 border border-gray-300 rounded hover:border-blue-500 hover:bg-blue-50 transition-all flex items-center justify-center`,onClick:()=>u(e),title:e,children:(0,z.jsx)(De,{name:e,style:{fontSize:20}})},e))}),[u]),p=(0,R.useMemo)(()=>[{key:`use`,label:a(`xin.form.iconSelector.tabs.use`),children:(0,z.jsx)(f,{type:`useIcons`})},{key:`suggestion`,label:a(`xin.form.iconSelector.tabs.suggestion`),children:(0,z.jsx)(f,{type:`suggestionIcons`})},{key:`direction`,label:a(`xin.form.iconSelector.tabs.direction`),children:(0,z.jsx)(f,{type:`directionIcons`})},{key:`editor`,label:a(`xin.form.iconSelector.tabs.editor`),children:(0,z.jsx)(f,{type:`editorIcons`})},{key:`data`,label:a(`xin.form.iconSelector.tabs.data`),children:(0,z.jsx)(f,{type:`dataIcons`})},{key:`logo`,label:a(`xin.form.iconSelector.tabs.logo`),children:(0,z.jsx)(f,{type:`logoIcons`})},{key:`other`,label:a(`xin.form.iconSelector.tabs.other`),children:(0,z.jsx)(f,{type:`otherIcons`})}],[f,a]),m=(0,R.useMemo)(()=>c?[{label:(0,z.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,z.jsx)(De,{name:c}),(0,z.jsx)(`span`,{children:c})]}),value:c}]:[],[c]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(pt,{value:c,placeholder:n||a(`xin.form.iconSelector.placeholder`),disabled:r,open:!1,onClick:()=>!r&&!i&&s(!0),options:m,style:{width:`100%`},allowClear:!0,onClear:d,suffixIcon:c?(0,z.jsx)(De,{name:c}):void 0}),(0,z.jsx)(Ct,{title:a(`xin.form.iconSelector.modal.title`),open:o,onCancel:()=>s(!1),footer:null,width:800,children:(0,z.jsx)(_t,{defaultActiveKey:`use`,items:p})})]})},Sa=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ca(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function wa(e){var t={exports:{}};return e(t,t.exports),t.exports}var Ta,Ea,Da=function(e){return e&&e.Math==Math&&e},Oa=Da(typeof globalThis==`object`&&globalThis)||Da(typeof window==`object`&&window)||Da(typeof self==`object`&&self)||Da(typeof Sa==`object`&&Sa)||function(){return this}()||Function(`return this`)(),ka=Function.prototype,Aa=ka.apply,ja=ka.bind,Ma=ka.call,Na=typeof Reflect==`object`&&Reflect.apply||(ja?Ma.bind(Aa):function(){return Ma.apply(Aa,arguments)}),Pa=Function.prototype,Fa=Pa.bind,Ia=Pa.call,La=Fa&&Fa.bind(Ia),Ra=Fa?function(e){return e&&La(Ia,e)}:function(e){return e&&function(){return Ia.apply(e,arguments)}},za=function(e){return typeof e==`function`},Ba=function(e){try{return!!e()}catch{return!0}},Va=!Ba((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Ha=Function.prototype.call,Ua=Ha.bind?Ha.bind(Ha):function(){return Ha.apply(Ha,arguments)},Wa={}.propertyIsEnumerable,Ga=Object.getOwnPropertyDescriptor,Ka={f:Ga&&!Wa.call({1:2},1)?function(e){var t=Ga(this,e);return!!t&&t.enumerable}:Wa},qa=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Xte=Ra({}.toString),Zte=Ra(``.slice),Ja=function(e){return Zte(Xte(e),8,-1)},Ya=Oa.Object,Qte=Ra(``.split),Xa=Ba((function(){return!Ya(`z`).propertyIsEnumerable(0)}))?function(e){return Ja(e)==`String`?Qte(e,``):Ya(e)}:Ya,$te=Oa.TypeError,Za=function(e){if(e==null)throw $te(`Can't call method on `+e);return e},Qa=function(e){return Xa(Za(e))},$a=function(e){return typeof e==`object`?e!==null:za(e)},eo={},to=function(e){return za(e)?e:void 0},no=function(e,t){return arguments.length<2?to(eo[e])||to(Oa[e]):eo[e]&&eo[e][t]||Oa[e]&&Oa[e][t]},ro=Ra({}.isPrototypeOf),io=no(`navigator`,`userAgent`)||``,ao=Oa.process,oo=Oa.Deno,so=ao&&ao.versions||oo&&oo.version,co=so&&so.v8;co&&(Ea=(Ta=co.split(`.`))[0]>0&&Ta[0]<4?1:+(Ta[0]+Ta[1])),!Ea&&io&&(!(Ta=io.match(/Edge\/(\d+)/))||Ta[1]>=74)&&(Ta=io.match(/Chrome\/(\d+)/))&&(Ea=+Ta[1]);var lo,uo=Ea,fo=!!Object.getOwnPropertySymbols&&!Ba((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&uo&&uo<41})),po=fo&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,ene=Oa.Object,mo=po?function(e){return typeof e==`symbol`}:function(e){var t=no(`Symbol`);return za(t)&&ro(t.prototype,ene(e))},tne=Oa.String,ho=function(e){try{return tne(e)}catch{return`Object`}},nne=Oa.TypeError,go=function(e){if(za(e))return e;throw nne(ho(e)+` is not a function`)},_o=function(e,t){var n=e[t];return n==null?void 0:go(n)},rne=Oa.TypeError,ine=Object.defineProperty,vo=Oa[`__core-js_shared__`]||function(e,t){try{ine(Oa,e,{value:t,configurable:!0,writable:!0})}catch{Oa[e]=t}return t}(`__core-js_shared__`,{}),yo=wa((function(e){(e.exports=function(e,t){return vo[e]||(vo[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),ane=Oa.Object,bo=function(e){return ane(Za(e))},one=Ra({}.hasOwnProperty),xo=Object.hasOwn||function(e,t){return one(bo(e),t)},sne=0,cne=Math.random(),lne=Ra(1 .toString),So=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+lne(++sne+cne,36)},Co=yo(`wks`),wo=Oa.Symbol,To=wo&&wo.for,Eo=po?wo:wo&&wo.withoutSetter||So,Do=function(e){if(!xo(Co,e)||!fo&&typeof Co[e]!=`string`){var t=`Symbol.`+e;fo&&xo(wo,e)?Co[e]=wo[e]:Co[e]=po&&To?To(t):Eo(t)}return Co[e]},Oo=Oa.TypeError,ko=Do(`toPrimitive`),Ao=function(e,t){if(!$a(e)||mo(e))return e;var n,r=_o(e,ko);if(r){if(t===void 0&&(t=`default`),n=Ua(r,e,t),!$a(n)||mo(n))return n;throw Oo(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&za(n=e.toString)&&!$a(r=Ua(n,e))||za(n=e.valueOf)&&!$a(r=Ua(n,e))||t!==`string`&&za(n=e.toString)&&!$a(r=Ua(n,e)))return r;throw rne(`Can't convert object to primitive value`)}(e,t)},jo=function(e){var t=Ao(e,`string`);return mo(t)?t:t+``},Mo=Oa.document,No=$a(Mo)&&$a(Mo.createElement),Po=function(e){return No?Mo.createElement(e):{}},Fo=!Va&&!Ba((function(){return Object.defineProperty(Po(`div`),"a",{get:function(){return 7}}).a!=7})),Io=Object.getOwnPropertyDescriptor,Lo={f:Va?Io:function(e,t){if(e=Qa(e),t=jo(t),Fo)try{return Io(e,t)}catch{}if(xo(e,t))return qa(!Ua(Ka.f,e,t),e[t])}},Ro=/#|\.prototype\./,zo=function(e,t){var n=Vo[Bo(e)];return n==Uo||n!=Ho&&(za(t)?Ba(t):!!t)},Bo=zo.normalize=function(e){return String(e).replace(Ro,`.`).toLowerCase()},Vo=zo.data={},Ho=zo.NATIVE=`N`,Uo=zo.POLYFILL=`P`,Wo=zo,Go=Ra(Ra.bind),Ko=function(e,t){return go(e),t===void 0?e:Go?Go(e,t):function(){return e.apply(t,arguments)}},qo=Oa.String,Jo=Oa.TypeError,Yo=function(e){if($a(e))return e;throw Jo(qo(e)+` is not an object`)},Xo=Oa.TypeError,Zo=Object.defineProperty,Qo={f:Va?Zo:function(e,t,n){if(Yo(e),t=jo(t),Yo(n),Fo)try{return Zo(e,t,n)}catch{}if(`get`in n||`set`in n)throw Xo(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},$o=Va?function(e,t,n){return Qo.f(e,t,qa(1,n))}:function(e,t,n){return e[t]=n,e},es=Lo.f,ts=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 Na(e,this,arguments)};return t.prototype=e.prototype,t},ns=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?Oa:f?Oa[u]:(Oa[u]||{}).prototype,h=d?eo:eo[u]||$o(eo,u,{})[u],g=h.prototype;for(i in t)n=!Wo(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&xo(m,i),o=h[i],n&&(s=e.noTargetGet?(l=es(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?Ko(a,Oa):e.wrap&&n?ts(a):p&&za(a)?Ra(a):a,(e.sham||a&&a.sham||o&&o.sham)&&$o(c,`sham`,!0),$o(h,i,c),p&&(xo(eo,r=u+`Prototype`)||$o(eo,r,{}),$o(eo[r],i,a),e.real&&g&&!g[i]&&$o(g,i,a)))},rs=yo(`keys`),is=function(e){return rs[e]||(rs[e]=So(e))},as=!Ba((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),os=is(`IE_PROTO`),ss=Oa.Object,cs=ss.prototype,ls=as?ss.getPrototypeOf:function(e){var t=bo(e);if(xo(t,os))return t[os];var n=t.constructor;return za(n)&&t instanceof n?n.prototype:t instanceof ss?cs:null},us=Oa.String,ds=Oa.TypeError,fs=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Ra(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Yo(n),function(e){if(typeof e==`object`||za(e))return e;throw ds(`Can't set `+us(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ps=Math.ceil,ms=Math.floor,hs=function(e){var t=+e;return t!=t||t===0?0:(t>0?ms:ps)(t)},gs=Math.max,_s=Math.min,vs=function(e,t){var n=hs(e);return n<0?gs(n+t,0):_s(n,t)},ys=Math.min,bs=function(e){return(t=e.length)>0?ys(hs(t),9007199254740991):0;var t},xs=function(e){return function(t,n,r){var i,a=Qa(t),o=bs(a),s=vs(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}},Ss={includes:xs(!0),indexOf:xs(!1)},Cs={},ws=Ss.indexOf,Ts=Ra([].push),Es=function(e,t){var n,r=Qa(e),i=0,a=[];for(n in r)!xo(Cs,n)&&xo(r,n)&&Ts(a,n);for(;t.length>i;)xo(r,n=t[i++])&&(~ws(a,n)||Ts(a,n));return a},Ds=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Os=Ds.concat(`length`,`prototype`),ks={f:Object.getOwnPropertyNames||function(e){return Es(e,Os)}},As={f:Object.getOwnPropertySymbols},js=Ra([].concat),Ms=no(`Reflect`,`ownKeys`)||function(e){var t=ks.f(Yo(e)),n=As.f;return n?js(t,n(e)):t},Ns=Object.keys||function(e){return Es(e,Ds)},une=Va?Object.defineProperties:function(e,t){Yo(e);for(var n,r=Qa(t),i=Ns(t),a=i.length,o=0;a>o;)Qo.f(e,n=i[o++],r[n]);return e},dne=no(`document`,`documentElement`),Ps=is(`IE_PROTO`),Fs=function(){},Is=function(e){return`<script>`+e+`<\/script>`},Ls=function(e){e.write(Is(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Rs=function(){try{lo=new ActiveXObject(`htmlfile`)}catch{}var e,t;Rs=typeof document<`u`?document.domain&&lo?Ls(lo):((t=Po(`iframe`)).style.display=`none`,dne.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Is(`document.F=Object`)),e.close(),e.F):Ls(lo);for(var n=Ds.length;n--;)delete Rs.prototype[Ds[n]];return Rs()};Cs[Ps]=!0;var zs=Object.create||function(e,t){var n;return e===null?n=Rs():(Fs.prototype=Yo(e),n=new Fs,Fs.prototype=null,n[Ps]=e),t===void 0?n:une(n,t)},Bs=function(e,t,n){var r=jo(t);r in e?Qo.f(e,r,qa(0,n)):e[r]=n},fne=Oa.Array,pne=Math.max,Vs=function(e,t,n){for(var r=bs(e),i=vs(t,r),a=vs(n===void 0?r:n,r),o=fne(pne(a-i,0)),s=0;i<a;i++,s++)Bs(o,s,e[i]);return o.length=s,o},mne=Ra(``.replace),hne=Ra(``.split),gne=Ra([].join),Hs=String(Error(`zxcasd`).stack),Us=/\n\s*at [^:]*:[^\n]*/,_ne=Us.test(Hs),vne=/@[^\n]*\n/.test(Hs)&&!/zxcasd/.test(Hs),yne=function(e,t){if(typeof e!=`string`)return e;if(_ne)for(;t--;)e=mne(e,Us,``);else if(vne)return gne(Vs(hne(e,`
`),t),`
`);return e},bne=function(e,t){$a(t)&&`cause`in t&&$o(e,`cause`,t.cause)},Ws={},xne=Do(`iterator`),Sne=Array.prototype,Gs={};Gs[Do(`toStringTag`)]=`z`;var Ks=String(Gs)===`[object z]`,Cne=Do(`toStringTag`),wne=Oa.Object,Tne=Ja(function(){return arguments}())==`Arguments`,qs=Ks?Ja: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=wne(e),Cne))==`string`?n:Tne?Ja(t):(r=Ja(t))==`Object`&&za(t.callee)?`Arguments`:r},Ene=Do(`iterator`),Js=function(e){if(e!=null)return _o(e,Ene)||_o(e,`@@iterator`)||Ws[qs(e)]},Dne=Oa.TypeError,Ys=function(e,t,n){var r,i;Yo(e);try{if(!(r=_o(e,`return`))){if(t===`throw`)throw n;return n}r=Ua(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Yo(r),n},One=Oa.TypeError,Xs=function(e,t){this.stopped=e,this.result=t},Zs=Xs.prototype,kne=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=Ko(t,u),h=function(e){return r&&Ys(r,`normal`,e),new Xs(!0,e)},g=function(e){return d?(Yo(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=Js(e)))throw One(ho(e)+` is not iterable`);if(function(e){return e!==void 0&&(Ws.Array===e||Sne[xne]===e)}(i)){for(a=0,o=bs(e);o>a;a++)if((s=g(e[a]))&&ro(Zs,s))return s;return new Xs(!1)}r=function(e,t){var n=arguments.length<2?Js(e):t;if(go(n))return Yo(Ua(n,e));throw Dne(ho(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Ua(c,r)).done;){try{s=g(l.value)}catch(e){Ys(r,`throw`,e)}if(typeof s==`object`&&s&&ro(Zs,s))return s}return new Xs(!1)},Ane=Oa.String,Qs=function(e){if(qs(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ane(e)},jne=function(e,t){return e===void 0?arguments.length<2?``:t:Qs(e)},Mne=!Ba((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",qa(1,7)),e.stack!==7)})),Nne=Do(`toStringTag`),$s=Oa.Error,Pne=[].push,ec=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=ro(tc,this);fs?n=fs(new $s(void 0),i?ls(this):tc):(n=i?this:zs(tc),$o(n,Nne,`Error`)),$o(n,`message`,jne(t,``)),Mne&&$o(n,`stack`,yne(n.stack,1)),bne(n,r);var a=[];return kne(e,Pne,{that:a}),$o(n,`errors`,a),n};fs?fs(ec,$s):function(e,t){for(var n=Ms(t),r=Qo.f,i=Lo.f,a=0;a<n.length;a++){var o=n[a];xo(e,o)||r(e,o,i(t,o))}}(ec,$s);var tc=ec.prototype=zs($s.prototype,{constructor:qa(1,ec),message:qa(1,``),name:qa(1,`AggregateError`)});ns({global:!0},{AggregateError:ec});var Fne=Ra(Function.toString);za(vo.inspectSource)||(vo.inspectSource=function(e){return Fne(e)});var nc,rc,ic,ac=vo.inspectSource,oc=Oa.WeakMap,Ine=za(oc)&&/native code/.test(ac(oc)),sc=Oa.TypeError,Lne=Oa.WeakMap;if(Ine||vo.state){var cc=vo.state||=new Lne,Rne=Ra(cc.get),lc=Ra(cc.has),zne=Ra(cc.set);nc=function(e,t){if(lc(cc,e))throw new sc(`Object already initialized`);return t.facade=e,zne(cc,e,t),t},rc=function(e){return Rne(cc,e)||{}},ic=function(e){return lc(cc,e)}}else{var uc=is(`state`);Cs[uc]=!0,nc=function(e,t){if(xo(e,uc))throw new sc(`Object already initialized`);return t.facade=e,$o(e,uc,t),t},rc=function(e){return xo(e,uc)?e[uc]:{}},ic=function(e){return xo(e,uc)}}var dc,fc,pc,mc={set:nc,get:rc,has:ic,enforce:function(e){return ic(e)?rc(e):nc(e,{})},getterFor:function(e){return function(t){var n;if(!$a(t)||(n=rc(t)).type!==e)throw sc(`Incompatible receiver, `+e+` required`);return n}}},hc=Function.prototype,Bne=Va&&Object.getOwnPropertyDescriptor,gc=xo(hc,`name`),Vne={EXISTS:gc,PROPER:gc&&function(){}.name===`something`,CONFIGURABLE:gc&&(!Va||Va&&Bne(hc,`name`).configurable)},_c=function(e,t,n,r){r&&r.enumerable?e[t]=n:$o(e,t,n)},vc=Do(`iterator`),yc=!1;[].keys&&(`next`in(pc=[].keys())?(fc=ls(ls(pc)))!==Object.prototype&&(dc=fc):yc=!0),dc=dc==null||Ba((function(){var e={};return dc[vc].call(e)!==e}))?{}:zs(dc),za(dc[vc])||_c(dc,vc,(function(){return this}));var bc={IteratorPrototype:dc,BUGGY_SAFARI_ITERATORS:yc},Hne=Ks?{}.toString:function(){return`[object `+qs(this)+`]`},Une=Qo.f,xc=Do(`toStringTag`),Sc=function(e,t,n,r){if(e){var i=n?e:e.prototype;xo(i,xc)||Une(i,xc,{configurable:!0,value:t}),r&&!Ks&&$o(i,`toString`,Hne)}},Wne=bc.IteratorPrototype,Gne=function(){return this},Kne=Vne.PROPER,Cc=bc.BUGGY_SAFARI_ITERATORS,wc=Do(`iterator`),qne=function(){return this},Tc=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=zs(Wne,{next:qa(+!r,n)}),Sc(e,i,!1,!0),Ws[i]=Gne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Cc&&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[wc]||p[`@@iterator`]||i&&p[i],h=!Cc&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=ls(g.call(new e)))!==Object.prototype&&s.next&&(Sc(s,d,!0,!0),Ws[d]=qne),Kne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return Ua(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Cc||f||!(l in p))&&_c(p,l,c[l]);else ns({target:t,proto:!0,forced:Cc||f},c);return o&&p[wc]!==h&&_c(p,wc,h,{name:i}),Ws[t]=h,c},Jne=mc.set,Yne=mc.getterFor(`Array Iterator`);Tc(Array,`Array`,(function(e,t){Jne(this,{type:`Array Iterator`,target:Qa(e),index:0,kind:t})}),(function(){var e=Yne(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`),Ws.Arguments=Ws.Array;var Xne=Ra(``.charAt),Ec=Ra(``.charCodeAt),Zne=Ra(``.slice),Dc=function(e){return function(t,n){var r,i,a=Qs(Za(t)),o=hs(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Ec(a,o))<55296||r>56319||o+1===s||(i=Ec(a,o+1))<56320||i>57343?e?Xne(a,o):r:e?Zne(a,o,o+2):i-56320+(r-55296<<10)+65536}},Qne={codeAt:Dc(!1),charAt:Dc(!0)}.charAt,$ne=mc.set,ere=mc.getterFor(`String Iterator`);Tc(String,`String`,(function(e){$ne(this,{type:`String Iterator`,string:Qs(e),index:0})}),(function(){var e,t=ere(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Qne(n,r),t.index+=e.length,{value:e,done:!1})}));var tre=eo.AggregateError,Oc=Do(`toStringTag`);for(var kc 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 Ac=Oa[kc],jc=Ac&&Ac.prototype;jc&&qs(jc)!==Oc&&$o(jc,Oc,kc),Ws[kc]=Ws.Array}var Mc,Nc,nre=tre,Pc=function(e){return e&&e.Math==Math&&e},Fc=Pc(typeof globalThis==`object`&&globalThis)||Pc(typeof window==`object`&&window)||Pc(typeof self==`object`&&self)||Pc(typeof Sa==`object`&&Sa)||function(){return this}()||Function(`return this`)(),Ic=function(e){try{return!!e()}catch{return!0}},Lc=!Ic((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Rc=Function.prototype.call,zc=Rc.bind?Rc.bind(Rc):function(){return Rc.apply(Rc,arguments)},Bc={}.propertyIsEnumerable,Vc=Object.getOwnPropertyDescriptor,rre={f:Vc&&!Bc.call({1:2},1)?function(e){var t=Vc(this,e);return!!t&&t.enumerable}:Bc},Hc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Uc=Function.prototype,Wc=Uc.bind,Gc=Uc.call,ire=Wc&&Wc.bind(Gc),Kc=Wc?function(e){return e&&ire(Gc,e)}:function(e){return e&&function(){return Gc.apply(e,arguments)}},are=Kc({}.toString),ore=Kc(``.slice),qc=function(e){return ore(are(e),8,-1)},Jc=Fc.Object,sre=Kc(``.split),Yc=Ic((function(){return!Jc(`z`).propertyIsEnumerable(0)}))?function(e){return qc(e)==`String`?sre(e,``):Jc(e)}:Jc,cre=Fc.TypeError,Xc=function(e){if(e==null)throw cre(`Can't call method on `+e);return e},Zc=function(e){return Yc(Xc(e))},Qc=function(e){return typeof e==`function`},$c=function(e){return typeof e==`object`?e!==null:Qc(e)},lre=function(e){return Qc(e)?e:void 0},el=function(e,t){return arguments.length<2?lre(Fc[e]):Fc[e]&&Fc[e][t]},tl=Kc({}.isPrototypeOf),nl=el(`navigator`,`userAgent`)||``,rl=Fc.process,il=Fc.Deno,al=rl&&rl.versions||il&&il.version,ol=al&&al.v8;ol&&(Nc=(Mc=ol.split(`.`))[0]>0&&Mc[0]<4?1:+(Mc[0]+Mc[1])),!Nc&&nl&&(!(Mc=nl.match(/Edge\/(\d+)/))||Mc[1]>=74)&&(Mc=nl.match(/Chrome\/(\d+)/))&&(Nc=+Mc[1]);var sl=Nc,cl=!!Object.getOwnPropertySymbols&&!Ic((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sl&&sl<41})),ll=cl&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,ure=Fc.Object,ul=ll?function(e){return typeof e==`symbol`}:function(e){var t=el(`Symbol`);return Qc(t)&&tl(t.prototype,ure(e))},dre=Fc.String,dl=function(e){try{return dre(e)}catch{return`Object`}},fre=Fc.TypeError,fl=function(e){if(Qc(e))return e;throw fre(dl(e)+` is not a function`)},pl=function(e,t){var n=e[t];return n==null?void 0:fl(n)},pre=Fc.TypeError,mre=Object.defineProperty,ml=function(e,t){try{mre(Fc,e,{value:t,configurable:!0,writable:!0})}catch{Fc[e]=t}return t},hl=Fc[`__core-js_shared__`]||ml(`__core-js_shared__`,{}),gl=wa((function(e){(e.exports=function(e,t){return hl[e]||(hl[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),hre=Fc.Object,_l=function(e){return hre(Xc(e))},gre=Kc({}.hasOwnProperty),vl=Object.hasOwn||function(e,t){return gre(_l(e),t)},_re=0,vre=Math.random(),yre=Kc(1 .toString),yl=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+yre(++_re+vre,36)},bl=gl(`wks`),xl=Fc.Symbol,Sl=xl&&xl.for,bre=ll?xl:xl&&xl.withoutSetter||yl,Cl=function(e){if(!vl(bl,e)||!cl&&typeof bl[e]!=`string`){var t=`Symbol.`+e;cl&&vl(xl,e)?bl[e]=xl[e]:bl[e]=ll&&Sl?Sl(t):bre(t)}return bl[e]},xre=Fc.TypeError,Sre=Cl(`toPrimitive`),Cre=function(e,t){if(!$c(e)||ul(e))return e;var n,r=pl(e,Sre);if(r){if(t===void 0&&(t=`default`),n=zc(r,e,t),!$c(n)||ul(n))return n;throw xre(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Qc(n=e.toString)&&!$c(r=zc(n,e))||Qc(n=e.valueOf)&&!$c(r=zc(n,e))||t!==`string`&&Qc(n=e.toString)&&!$c(r=zc(n,e)))return r;throw pre(`Can't convert object to primitive value`)}(e,t)},wl=function(e){var t=Cre(e,`string`);return ul(t)?t:t+``},Tl=Fc.document,wre=$c(Tl)&&$c(Tl.createElement),El=function(e){return wre?Tl.createElement(e):{}},Dl=!Lc&&!Ic((function(){return Object.defineProperty(El(`div`),"a",{get:function(){return 7}}).a!=7})),Ol=Object.getOwnPropertyDescriptor,kl={f:Lc?Ol:function(e,t){if(e=Zc(e),t=wl(t),Dl)try{return Ol(e,t)}catch{}if(vl(e,t))return Hc(!zc(rre.f,e,t),e[t])}},Tre=Fc.String,Ere=Fc.TypeError,Al=function(e){if($c(e))return e;throw Ere(Tre(e)+` is not an object`)},Dre=Fc.TypeError,jl=Object.defineProperty,Ml={f:Lc?jl:function(e,t,n){if(Al(e),t=wl(t),Al(n),Dl)try{return jl(e,t,n)}catch{}if(`get`in n||`set`in n)throw Dre(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Nl=Lc?function(e,t,n){return Ml.f(e,t,Hc(1,n))}:function(e,t,n){return e[t]=n,e},Ore=Kc(Function.toString);Qc(hl.inspectSource)||(hl.inspectSource=function(e){return Ore(e)});var Pl,Fl,Il,Ll=hl.inspectSource,Rl=Fc.WeakMap,kre=Qc(Rl)&&/native code/.test(Ll(Rl)),zl=gl(`keys`),Bl=function(e){return zl[e]||(zl[e]=yl(e))},Vl={},Hl=Fc.TypeError,Are=Fc.WeakMap;if(kre||hl.state){var Ul=hl.state||=new Are,jre=Kc(Ul.get),Wl=Kc(Ul.has),Mre=Kc(Ul.set);Pl=function(e,t){if(Wl(Ul,e))throw new Hl(`Object already initialized`);return t.facade=e,Mre(Ul,e,t),t},Fl=function(e){return jre(Ul,e)||{}},Il=function(e){return Wl(Ul,e)}}else{var Gl=Bl(`state`);Vl[Gl]=!0,Pl=function(e,t){if(vl(e,Gl))throw new Hl(`Object already initialized`);return t.facade=e,Nl(e,Gl,t),t},Fl=function(e){return vl(e,Gl)?e[Gl]:{}},Il=function(e){return vl(e,Gl)}}var Kl={set:Pl,get:Fl,has:Il,enforce:function(e){return Il(e)?Fl(e):Pl(e,{})},getterFor:function(e){return function(t){var n;if(!$c(t)||(n=Fl(t)).type!==e)throw Hl(`Incompatible receiver, `+e+` required`);return n}}},ql=Function.prototype,Nre=Lc&&Object.getOwnPropertyDescriptor,Jl=vl(ql,`name`),Yl={EXISTS:Jl,PROPER:Jl&&function(){}.name===`something`,CONFIGURABLE:Jl&&(!Lc||Lc&&Nre(ql,`name`).configurable)},Xl=wa((function(e){var t=Yl.CONFIGURABLE,n=Kl.get,r=Kl.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;Qc(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!vl(a,`name`)||t&&a.name!==d)&&Nl(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Fc?l?e[n]=a:ml(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Nl(e,n,a))})(Function.prototype,`toString`,(function(){return Qc(this)&&n(this).source||Ll(this)}))})),Pre=Math.ceil,Fre=Math.floor,Zl=function(e){var t=+e;return t!=t||t===0?0:(t>0?Fre:Pre)(t)},Ire=Math.max,Lre=Math.min,Ql=function(e,t){var n=Zl(e);return n<0?Ire(n+t,0):Lre(n,t)},Rre=Math.min,$l=function(e){return e>0?Rre(Zl(e),9007199254740991):0},eu=function(e){return $l(e.length)},tu=function(e){return function(t,n,r){var i,a=Zc(t),o=eu(a),s=Ql(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}},nu={includes:tu(!0),indexOf:tu(!1)}.indexOf,ru=Kc([].push),iu=function(e,t){var n,r=Zc(e),i=0,a=[];for(n in r)!vl(Vl,n)&&vl(r,n)&&ru(a,n);for(;t.length>i;)vl(r,n=t[i++])&&(~nu(a,n)||ru(a,n));return a},au=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ou=au.concat(`length`,`prototype`),su={f:Object.getOwnPropertyNames||function(e){return iu(e,ou)}},cu={f:Object.getOwnPropertySymbols},lu=Kc([].concat),uu=el(`Reflect`,`ownKeys`)||function(e){var t=su.f(Al(e)),n=cu.f;return n?lu(t,n(e)):t},du=function(e,t){for(var n=uu(t),r=Ml.f,i=kl.f,a=0;a<n.length;a++){var o=n[a];vl(e,o)||r(e,o,i(t,o))}},zre=/#|\.prototype\./,fu=function(e,t){var n=Vre[Bre(e)];return n==Ure||n!=Hre&&(Qc(t)?Ic(t):!!t)},Bre=fu.normalize=function(e){return String(e).replace(zre,`.`).toLowerCase()},Vre=fu.data={},Hre=fu.NATIVE=`N`,Ure=fu.POLYFILL=`P`,Wre=fu,Gre=kl.f,pu=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Fc:l?Fc[s]||ml(s,{}):(Fc[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Gre(n,r))&&o.value:n[r],!Wre(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;du(a,i)}(e.sham||i&&i.sham)&&Nl(a,`sham`,!0),Xl(n,r,a,e)}},mu={};mu[Cl(`toStringTag`)]=`z`;var hu,gu=String(mu)===`[object z]`,Kre=Cl(`toStringTag`),qre=Fc.Object,Jre=qc(function(){return arguments}())==`Arguments`,_u=gu?qc: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=qre(e),Kre))==`string`?n:Jre?qc(t):(r=qc(t))==`Object`&&Qc(t.callee)?`Arguments`:r},vu=Fc.String,yu=function(e){if(_u(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return vu(e)},bu=function(){var e=Al(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},xu=Fc.RegExp,Su=Ic((function(){var e=xu(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Cu=Su||Ic((function(){return!xu(`a`,`y`).sticky})),wu={BROKEN_CARET:Su||Ic((function(){var e=xu(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Cu,UNSUPPORTED_Y:Su},Tu=Object.keys||function(e){return iu(e,au)},Eu=Lc?Object.defineProperties:function(e,t){Al(e);for(var n,r=Zc(t),i=Tu(t),a=i.length,o=0;a>o;)Ml.f(e,n=i[o++],r[n]);return e},Du=el(`document`,`documentElement`),Ou=Bl(`IE_PROTO`),ku=function(){},Au=function(e){return`<script>`+e+`<\/script>`},ju=function(e){e.write(Au(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Mu=function(){try{hu=new ActiveXObject(`htmlfile`)}catch{}var e,t;Mu=typeof document<`u`?document.domain&&hu?ju(hu):((t=El(`iframe`)).style.display=`none`,Du.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Au(`document.F=Object`)),e.close(),e.F):ju(hu);for(var n=au.length;n--;)delete Mu.prototype[au[n]];return Mu()};Vl[Ou]=!0;var Nu,Pu,Fu=Object.create||function(e,t){var n;return e===null?n=Mu():(ku.prototype=Al(e),n=new ku,ku.prototype=null,n[Ou]=e),t===void 0?n:Eu(n,t)},Yre=Fc.RegExp,Xre=Ic((function(){var e=Yre(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Zre=Fc.RegExp,Qre=Ic((function(){var e=Zre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),$re=Kl.get,eie=gl(`native-string-replace`,String.prototype.replace),Iu=RegExp.prototype.exec,Lu=Iu,tie=Kc(``.charAt),nie=Kc(``.indexOf),rie=Kc(``.replace),Ru=Kc(``.slice),zu=(Pu=/b*/g,zc(Iu,Nu=/a/,`a`),zc(Iu,Pu,`a`),Nu.lastIndex!==0||Pu.lastIndex!==0),Bu=wu.BROKEN_CARET,Vu=/()??/.exec(``)[1]!==void 0;(zu||Vu||Bu||Xre||Qre)&&(Lu=function(e){var t,n,r,i,a,o,s,c=this,l=$re(c),u=yu(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=zc(Lu,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Bu&&c.sticky,m=zc(bu,c),h=c.source,g=0,_=u;if(p&&(m=rie(m,`y`,``),nie(m,`g`)===-1&&(m+=`g`),_=Ru(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&tie(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Vu&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),zu&&(r=c.lastIndex),i=zc(Iu,p?n:c,_),p?i?(i.input=Ru(i.input,g),i[0]=Ru(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:zu&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Vu&&i&&i.length>1&&zc(eie,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 Hu=Lu;pu({target:`RegExp`,proto:!0,forced:/./.exec!==Hu},{exec:Hu});var iie=Cl(`species`),Uu=RegExp.prototype,aie=Kc(``.charAt),Wu=Kc(``.charCodeAt),oie=Kc(``.slice),Gu=function(e){return function(t,n){var r,i,a=yu(Xc(t)),o=Zl(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Wu(a,o))<55296||r>56319||o+1===s||(i=Wu(a,o+1))<56320||i>57343?e?aie(a,o):r:e?oie(a,o,o+2):i-56320+(r-55296<<10)+65536}},Ku={codeAt:Gu(!1),charAt:Gu(!0)},sie=Ku.charAt,cie=function(e,t,n){return t+(n?sie(e,t).length:1)},lie=Fc.TypeError,qu=function(e,t){var n=e.exec;if(Qc(n)){var r=zc(n,e,t);return r!==null&&Al(r),r}if(qc(e)===`RegExp`)return zc(Hu,e,t);throw lie(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Cl(e),a=!Ic((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Ic((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[iie]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Kc(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Kc(e),c=t.exec;return c===Hu||c===Uu.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Xl(String.prototype,e,c[0]),Xl(Uu,i,c[1])}r&&Nl(Uu[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=Xc(this),r=t==null?void 0:pl(t,e);return r?zc(r,t,n):new RegExp(t)[e](yu(n))},function(e){var r=Al(this),i=yu(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return qu(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=qu(r,i))!==null;){var u=yu(s[0]);c[l]=u,u===``&&(r.lastIndex=cie(i,$l(r.lastIndex),o)),l++}return l===0?null:c}]})),pu({global:!0},{globalThis:Fc});var uie=!Ic((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Ju=Bl(`IE_PROTO`),Yu=Fc.Object,die=Yu.prototype,Xu=uie?Yu.getPrototypeOf:function(e){var t=_l(e);if(vl(t,Ju))return t[Ju];var n=t.constructor;return Qc(n)&&t instanceof n?n.prototype:t instanceof Yu?die:null},Zu=Fc.String,Qu=Fc.TypeError,$u=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Kc(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Al(n),function(e){if(typeof e==`object`||Qc(e))return e;throw Qu(`Can't set `+Zu(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ed=Fc.Array,td=Math.max,nd=Kc(``.replace),rd=Kc(``.split),id=Kc([].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(function(e,t,n){for(var r,i,a,o,s=eu(e),c=Ql(t,s),l=Ql(n===void 0?s:n,s),u=ed(td(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=wl(i))in r?Ml.f(r,o,Hc(0,a)):r[o]=a;return u.length=d,u}(rd(e,`
`),t),`
`);return e},ud=function(e,t){$c(t)&&`cause`in t&&Nl(e,`cause`,t.cause)},dd=Kc(Kc.bind),fd=function(e,t){return fl(e),t===void 0?e:dd?dd(e,t):function(){return e.apply(t,arguments)}},pd={},md=Cl(`iterator`),hd=Array.prototype,gd=Cl(`iterator`),_d=function(e){if(e!=null)return pl(e,gd)||pl(e,`@@iterator`)||pd[_u(e)]},vd=Fc.TypeError,yd=function(e,t,n){var r,i;Al(e);try{if(!(r=pl(e,`return`))){if(t===`throw`)throw n;return n}r=zc(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Al(r),n},bd=Fc.TypeError,xd=function(e,t){this.stopped=e,this.result=t},Sd=xd.prototype,Cd=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=fd(t,u),h=function(e){return r&&yd(r,`normal`,e),new xd(!0,e)},g=function(e){return d?(Al(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=_d(e)))throw bd(dl(e)+` is not iterable`);if(function(e){return e!==void 0&&(pd.Array===e||hd[md]===e)}(i)){for(a=0,o=eu(e);o>a;a++)if((s=g(e[a]))&&tl(Sd,s))return s;return new xd(!1)}r=function(e,t){var n=arguments.length<2?_d(e):t;if(fl(n))return Al(zc(n,e));throw vd(dl(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=zc(c,r)).done;){try{s=g(l.value)}catch(e){yd(r,`throw`,e)}if(typeof s==`object`&&s&&tl(Sd,s))return s}return new xd(!1)},wd=function(e,t){return e===void 0?arguments.length<2?``:t:yu(e)},Td=!Ic((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",Hc(1,7)),e.stack!==7)})),fie=Cl(`toStringTag`),Ed=Fc.Error,pie=[].push,Dd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=tl(Od,this);$u?n=$u(new Ed(void 0),i?Xu(this):Od):(n=i?this:Fu(Od),Nl(n,fie,`Error`)),Nl(n,`message`,wd(t,``)),Td&&Nl(n,`stack`,ld(n.stack,1)),ud(n,r);var a=[];return Cd(e,pie,{that:a}),Nl(n,`errors`,a),n};$u?$u(Dd,Ed):du(Dd,Ed);var Od=Dd.prototype=Fu(Ed.prototype,{constructor:Hc(1,Dd),message:Hc(1,``),name:Hc(1,`AggregateError`)});pu({global:!0},{AggregateError:Dd});var kd=Cl(`unscopables`),Ad=Array.prototype;Ad[kd]??Ml.f(Ad,kd,{configurable:!0,value:Fu(null)});var jd,Md,Nd,Pd=function(e){Ad[kd][e]=!0},Fd=Cl(`iterator`),Id=!1;[].keys&&(`next`in(Nd=[].keys())?(Md=Xu(Xu(Nd)))!==Object.prototype&&(jd=Md):Id=!0),(jd==null||Ic((function(){var e={};return jd[Fd].call(e)!==e})))&&(jd={}),Qc(jd[Fd])||Xl(jd,Fd,(function(){return this}));var Ld={IteratorPrototype:jd,BUGGY_SAFARI_ITERATORS:Id},mie=Ml.f,Rd=Cl(`toStringTag`),zd=function(e,t,n){e&&!vl(e=n?e:e.prototype,Rd)&&mie(e,Rd,{configurable:!0,value:t})},hie=Ld.IteratorPrototype,gie=function(){return this},_ie=Yl.PROPER,vie=Yl.CONFIGURABLE,Bd=Ld.IteratorPrototype,Vd=Ld.BUGGY_SAFARI_ITERATORS,Hd=Cl(`iterator`),yie=function(){return this},Ud=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Fu(hie,{next:Hc(+!r,n)}),zd(e,i,!1),pd[i]=gie})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Vd&&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[Hd]||p[`@@iterator`]||i&&p[i],h=!Vd&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=Xu(g.call(new e)))!==Object.prototype&&s.next&&(Xu(s)!==Bd&&($u?$u(s,Bd):Qc(s[Hd])||Xl(s,Hd,yie)),zd(s,d,!0)),_ie&&i==`values`&&m&&m.name!==`values`&&(vie?Nl(p,`name`,`values`):(f=!0,h=function(){return zc(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Vd||f||!(l in p))&&Xl(p,l,c[l]);else pu({target:t,proto:!0,forced:Vd||f},c);return p[Hd]!==h&&Xl(p,Hd,h,{name:i}),pd[t]=h,c},bie=Kl.set,xie=Kl.getterFor(`Array Iterator`),Wd=Ud(Array,`Array`,(function(e,t){bie(this,{type:`Array Iterator`,target:Zc(e),index:0,kind:t})}),(function(){var e=xie(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`);pd.Arguments=pd.Array,Pd(`keys`),Pd(`values`),Pd(`entries`);var Sie=Ku.charAt,Cie=Kl.set,wie=Kl.getterFor(`String Iterator`);Ud(String,`String`,(function(e){Cie(this,{type:`String Iterator`,string:yu(e),index:0})}),(function(){var e,t=wie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sie(n,r),t.index+=e.length,{value:e,done:!1})}));var Gd,Kd={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},qd=El(`span`).classList,Jd=qd&&qd.constructor&&qd.constructor.prototype,Yd=Jd===Object.prototype?void 0:Jd,Xd=Cl(`iterator`),Zd=Cl(`toStringTag`),Qd=Wd.values,$d=function(e,t){if(e){if(e[Xd]!==Qd)try{Nl(e,Xd,Qd)}catch{e[Xd]=Qd}if(e[Zd]||Nl(e,Zd,t),Kd[t]){for(var n in Wd)if(e[n]!==Wd[n])try{Nl(e,n,Wd[n])}catch{e[n]=Wd[n]}}}};for(var ef in Kd)$d(Fc[ef]&&Fc[ef].prototype,ef);$d(Yd,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),tf(),nf()):global&&(Gd=global.navigator)!=null&&Gd.userAgent.match(`QQBrowser`)&&(tf(),nf());function tf(){typeof globalThis>`u`&&(window.globalThis=window)}function nf(){nre===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var rf,af=Array.isArray||function(e){return Ja(e)==`Array`},of=function(){},Tie=[],sf=no(`Reflect`,`construct`),cf=/^\s*(?:class|function)\b/,Eie=Ra(cf.exec),Die=!cf.exec(of),lf=function(e){if(!za(e))return!1;try{return sf(of,Tie,e),!0}catch{return!1}},Oie=!sf||Ba((function(){var e;return lf(lf.call)||!lf(Object)||!lf((function(){e=!0}))||e}))?function(e){if(!za(e))return!1;switch(qs(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Die||!!Eie(cf,ac(e))}:lf,kie=Do(`species`),uf=Oa.Array,df=function(e,t){return new(function(e){var t;return af(e)&&(t=e.constructor,(Oie(t)&&(t===uf||af(t.prototype))||$a(t)&&(t=t[kie])===null)&&(t=void 0)),t===void 0?uf:t}(e))(t===0?0:t)},ff=Do(`species`),pf=Do(`isConcatSpreadable`),mf=Oa.TypeError,hf=uo>=51||!Ba((function(){var e=[];return e[pf]=!1,e.concat()[0]!==e})),gf=(rf=`concat`,uo>=51||!Ba((function(){var e=[];return(e.constructor={})[ff]=function(){return{foo:1}},e[rf](Boolean).foo!==1}))),_f=function(e){if(!$a(e))return!1;var t=e[pf];return t===void 0?af(e):!!t};ns({target:`Array`,proto:!0,forced:!hf||!gf},{concat:function(e){var t,n,r,i,a,o=bo(this),s=df(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(_f(a=t===-1?o:arguments[t])){if(c+(i=bs(a))>9007199254740991)throw mf(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Bs(s,c,a[n])}else{if(c>=9007199254740991)throw mf(`Maximum allowed index exceeded`);Bs(s,c++,a)}return s.length=c,s}});var vf=ks.f,yf=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],bf={f:function(e){return yf&&Ja(e)==`Window`?function(e){try{return vf(e)}catch{return Vs(yf)}}(e):vf(Qa(e))}},xf=Ra([].slice),Sf={f:Do},Cf=Qo.f,wf=function(e){var t=eo.Symbol||={};xo(t,e)||Cf(t,e,{value:Sf.f(e)})},Tf=Ra([].push),Ef=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=bo(c),h=Xa(m),g=Ko(l,u),_=bs(h),v=0,y=d||df,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:Tf(b,f)}else switch(e){case 4:return!1;case 7:Tf(b,f)}return a?-1:r||i?i:b}},Df={forEach:Ef(0),map:Ef(1),filter:Ef(2),some:Ef(3),every:Ef(4),find:Ef(5),findIndex:Ef(6),filterReject:Ef(7)}.forEach,Of=is(`hidden`),kf=Do(`toPrimitive`),Af=mc.set,jf=mc.getterFor(`Symbol`),Mf=Object.prototype,Nf=Oa.Symbol,Pf=Nf&&Nf.prototype,Ff=Oa.TypeError,If=Oa.QObject,Lf=no(`JSON`,`stringify`),Rf=Lo.f,zf=Qo.f,Bf=bf.f,Vf=Ka.f,Hf=Ra([].push),Uf=yo(`symbols`),Wf=yo(`op-symbols`),Gf=yo(`string-to-symbol-registry`),Kf=yo(`symbol-to-string-registry`),qf=yo(`wks`),Jf=!If||!If.prototype||!If.prototype.findChild,Yf=Va&&Ba((function(){return zs(zf({},`a`,{get:function(){return zf(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Rf(Mf,t);r&&delete Mf[t],zf(e,t,n),r&&e!==Mf&&zf(Mf,t,r)}:zf,Xf=function(e,t){var n=Uf[e]=zs(Pf);return Af(n,{type:`Symbol`,tag:e,description:t}),Va||(n.description=t),n},Zf=function(e,t,n){e===Mf&&Zf(Wf,t,n),Yo(e);var r=jo(t);return Yo(n),xo(Uf,r)?(n.enumerable?(xo(e,Of)&&e[Of][r]&&(e[Of][r]=!1),n=zs(n,{enumerable:qa(0,!1)})):(xo(e,Of)||zf(e,Of,qa(1,{})),e[Of][r]=!0),Yf(e,r,n)):zf(e,r,n)},Qf=function(e,t){Yo(e);var n=Qa(t);return Df(Ns(n).concat(np(n)),(function(t){Va&&!Ua($f,n,t)||Zf(e,t,n[t])})),e},$f=function(e){var t=jo(e),n=Ua(Vf,this,t);return!(this===Mf&&xo(Uf,t)&&!xo(Wf,t))&&(!(n||!xo(this,t)||!xo(Uf,t)||xo(this,Of)&&this[Of][t])||n)},ep=function(e,t){var n=Qa(e),r=jo(t);if(n!==Mf||!xo(Uf,r)||xo(Wf,r)){var i=Rf(n,r);return!i||!xo(Uf,r)||xo(n,Of)&&n[Of][r]||(i.enumerable=!0),i}},tp=function(e){var t=Bf(Qa(e)),n=[];return Df(t,(function(e){xo(Uf,e)||xo(Cs,e)||Hf(n,e)})),n},np=function(e){var t=e===Mf,n=Bf(t?Wf:Qa(e)),r=[];return Df(n,(function(e){!xo(Uf,e)||t&&!xo(Mf,e)||Hf(r,Uf[e])})),r};if(fo||(Pf=(Nf=function(){if(ro(Pf,this))throw Ff(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?Qs(arguments[0]):void 0,t=So(e),n=function(e){this===Mf&&Ua(n,Wf,e),xo(this,Of)&&xo(this[Of],t)&&(this[Of][t]=!1),Yf(this,t,qa(1,e))};return Va&&Jf&&Yf(Mf,t,{configurable:!0,set:n}),Xf(t,e)}).prototype,_c(Pf,`toString`,(function(){return jf(this).tag})),_c(Nf,`withoutSetter`,(function(e){return Xf(So(e),e)})),Ka.f=$f,Qo.f=Zf,Lo.f=ep,ks.f=bf.f=tp,As.f=np,Sf.f=function(e){return Xf(Do(e),e)},Va&&zf(Pf,`description`,{configurable:!0,get:function(){return jf(this).description}})),ns({global:!0,wrap:!0,forced:!fo,sham:!fo},{Symbol:Nf}),Df(Ns(qf),(function(e){wf(e)})),ns({target:`Symbol`,stat:!0,forced:!fo},{for:function(e){var t=Qs(e);if(xo(Gf,t))return Gf[t];var n=Nf(t);return Gf[t]=n,Kf[n]=t,n},keyFor:function(e){if(!mo(e))throw Ff(e+` is not a symbol`);if(xo(Kf,e))return Kf[e]},useSetter:function(){Jf=!0},useSimple:function(){Jf=!1}}),ns({target:`Object`,stat:!0,forced:!fo,sham:!Va},{create:function(e,t){return t===void 0?zs(e):Qf(zs(e),t)},defineProperty:Zf,defineProperties:Qf,getOwnPropertyDescriptor:ep}),ns({target:`Object`,stat:!0,forced:!fo},{getOwnPropertyNames:tp,getOwnPropertySymbols:np}),ns({target:`Object`,stat:!0,forced:Ba((function(){As.f(1)}))},{getOwnPropertySymbols:function(e){return As.f(bo(e))}}),Lf&&ns({target:`JSON`,stat:!0,forced:!fo||Ba((function(){var e=Nf();return Lf([e])!=`[null]`||Lf({a:e})!=`{}`||Lf(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=xf(arguments),i=t;if(($a(t)||e!==void 0)&&!mo(e))return af(t)||(t=function(e,t){if(za(i)&&(t=Ua(i,this,e,t)),!mo(t))return t}),r[1]=t,Na(Lf,null,r)}}),!Pf[kf]){var rp=Pf.valueOf;_c(Pf,kf,(function(e){return Ua(rp,this)}))}Sc(Nf,`Symbol`),Cs[Of]=!0,wf(`asyncIterator`),wf(`hasInstance`),wf(`isConcatSpreadable`),wf(`iterator`),wf(`match`),wf(`matchAll`),wf(`replace`),wf(`search`),wf(`species`),wf(`split`),wf(`toPrimitive`),wf(`toStringTag`),wf(`unscopables`),Sc(Oa.JSON,`JSON`,!0);var ip=eo.Symbol;wf(`asyncDispose`),wf(`dispose`),wf(`matcher`),wf(`metadata`),wf(`observable`),wf(`patternMatch`),wf(`replaceAll`);var ap=ip,op=Sf.f(`iterator`),sp=Ca(wa((function(e){function t(n){return typeof ap==`function`&&typeof op==`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 ap==`function`&&e.constructor===ap&&e!==ap.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}))),cp=kl.f,lp=Ic((function(){cp(1)}));if(pu({target:`Object`,stat:!0,forced:!Lc||lp,sham:!Lc},{getOwnPropertyDescriptor:function(e,t){return cp(Zc(e),t)}}),(typeof global>`u`?`undefined`:sp(global))===`object`){var up=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!up.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 dp(e){return Object.prototype.toString.call(e)===`[object Object]`}function fp(e){var t,n;return!1!==dp(e)&&((t=e.constructor)===void 0||!1!==dp(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function pp(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 mp(e){return!!e&&!!e[Xp]}function hp(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)===Nie}(e)||Array.isArray(e)||!!e[Yp]||!!e.constructor[Yp]||bp(e)||xp(e))}function gp(e,t,n){n===void 0&&(n=!1),_p(e)===0?(n?Object.keys:Zp)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function _p(e){var t=e[Xp];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:bp(e)?2:xp(e)?3:0}function vp(e,t){return _p(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function yp(e,t,n){var r=_p(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function bp(e){return jie&&e instanceof Map}function xp(e){return Mie&&e instanceof Set}function Sp(e){return e.o||e.t}function Cp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Pie(e);delete t[Xp];for(var n=Zp(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 wp(e,t){return t===void 0&&(t=!1),Ep(e)||mp(e)||!hp(e)||(_p(e)>1&&(e.set=e.add=e.clear=e.delete=Tp),Object.freeze(e),t&&gp(e,(function(e,t){return wp(t,!0)}),!0)),e}function Tp(){pp(2)}function Ep(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Dp(e){var t=Fie[e];return t||pp(18,e),t}function Op(){return Gp}function kp(e,t){t&&(Dp(`Patches`),e.u=[],e.s=[],e.v=t)}function Ap(e){jp(e),e.p.forEach(Np),e.p=null}function jp(e){e===Gp&&(Gp=e.l)}function Mp(e){return Gp={p:[],l:Gp,h:e,m:!0,_:0}}function Np(e){var t=e[Xp];t.i===0||t.i===1?t.j():t.O=!0}function Pp(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Dp(`ES5`).S(t,e,r),r?(n[Xp].P&&(Ap(t),pp(4)),hp(e)&&(e=Fp(t,e),t.l||Lp(t,e)),t.u&&Dp(`Patches`).M(n[Xp],e,t.u,t.s)):e=Fp(t,n,[]),Ap(t),t.u&&t.v(t.u,t.s),e===Jp?void 0:e}function Fp(e,t,n){if(Ep(t))return t;var r=t[Xp];if(!r)return gp(t,(function(i,a){return Ip(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Lp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=Cp(r.k):r.o;gp(r.i===3?new Set(i):i,(function(t,a){return Ip(e,r,i,t,a,n)})),Lp(e,i,!1),n&&e.u&&Dp(`Patches`).R(r,n,e.u,e.s)}return r.o}function Ip(e,t,n,r,i,a){if(mp(i)){var o=Fp(e,i,a&&t&&t.i!==3&&!vp(t.D,r)?a.concat(r):void 0);if(yp(n,r,o),!mp(o))return;e.m=!1}if(hp(i)&&!Ep(i)){if(!e.h.F&&e._<1)return;Fp(e,i),t&&t.A.l||Lp(e,i)}}function Lp(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&wp(t,n)}function Rp(e,t){var n=e[Xp];return(n?Sp(n):e)[t]}function zp(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 Bp(e){e.P||(e.P=!0,e.l&&Bp(e.l))}function Vp(e){e.o||=Cp(e.t)}function Hp(e,t,n){var r=bp(t)?Dp(`MapSet`).N(t,n):xp(t)?Dp(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:Op(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=Qp;n&&(i=[r],a=$p);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Dp(`ES5`).J(t,n);return(n?n.A:Op()).p.push(r),r}function Aie(e){return mp(e)||pp(22,e),function e(t){if(!hp(t))return t;var n,r=t[Xp],i=_p(t);if(r){if(!r.P&&(r.i<4||!Dp(`ES5`).K(r)))return r.t;r.I=!0,n=Up(t,i),r.I=!1}else n=Up(t,i);return gp(n,(function(t,i){r&&function(e,t){return _p(e)===2?e.get(t):e[t]}(r.t,t)===i||yp(n,t,e(i))})),i===3?new Set(n):n}(e)}function Up(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return Cp(e)}var Wp,Gp,Kp=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,jie=typeof Map<`u`,Mie=typeof Set<`u`,qp=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,Jp=Kp?Symbol.for(`immer-nothing`):((Wp={})[`immer-nothing`]=!0,Wp),Yp=Kp?Symbol.for(`immer-draftable`):`__$immer_draftable`,Xp=Kp?Symbol.for(`immer-state`):`__$immer_state`,Nie=``+Object.prototype.constructor,Zp=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Pie=Object.getOwnPropertyDescriptors||function(e){var t={};return Zp(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Fie={},Qp={get:function(e,t){if(t===Xp)return e;var n=Sp(e);if(!vp(n,t))return function(e,t,n){var r=zp(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||!hp(r)?r:r===Rp(e.t,t)?(Vp(e),e.o[t]=Hp(e.A.h,r,e)):r},has:function(e,t){return t in Sp(e)},ownKeys:function(e){return Reflect.ownKeys(Sp(e))},set:function(e,t,n){var r=zp(Sp(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Rp(Sp(e),t),a=i?.[Xp];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||vp(e.t,t)))return!0;Vp(e),Bp(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 Rp(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Vp(e),Bp(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Sp(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){pp(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){pp(12)}},$p={};gp(Qp,(function(e,t){$p[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),$p.deleteProperty=function(e,t){return Qp.deleteProperty.call(this,e[0],t)},$p.set=function(e,t,n){return Qp.set.call(this,e[0],t,n,e[0])};var em=new(function(){function e(e){var t=this;this.g=qp,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`&&pp(6),r!==void 0&&typeof r!=`function`&&pp(7),hp(e)){var s=Mp(t),c=Hp(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Ap(s):jp(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return kp(s,r),Pp(e,s)}),(function(e){throw Ap(s),e})):(kp(s,r),Pp(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===Jp?void 0:(o===void 0&&(o=e),t.F&&wp(o,!0),o);pp(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){hp(e)||pp(8),mp(e)&&(e=Aie(e));var t=Mp(this),n=Hp(this,e,void 0);return n[Xp].C=!0,jp(t),n},t.finishDraft=function(e,t){var n=(e&&e[Xp]).A;return kp(n,t),Pp(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!qp&&pp(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=Dp(`Patches`).$;return mp(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),tm=em.produce;em.produceWithPatches.bind(em),em.setAutoFreeze.bind(em),em.setUseProxies.bind(em),em.applyPatches.bind(em);var nm=em.createDraft.bind(em),rm=em.finishDraft.bind(em);function im(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var am=new WeakMap,om=new WeakMap,sm=new WeakMap,cm=new WeakMap,lm=new WeakMap,um=new WeakMap;function dm(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 fm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?dm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Iie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of V.pathRefs(e))fae.transform(n,t);for(var r of V.pointRefs(e))pae.transform(r,t);for(var i of V.rangeRefs(e))hae.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=am.get(e)||[],l=Lie(t);for(var u of c)s(U.transform(u,t));for(var d of l)s(d);am.set(e,o),K.transform(e,t),e.operations.push(t),V.normalize(e),t.type===`set_selection`&&(e.marks=null),om.get(e)||(om.set(e,!0),Promise.resolve().then((()=>{om.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(W.isExpanded(r)?K.setNodes(e,{[t]:n},{match:G.isText,split:!0}):(e.marks=fm(fm({},V.marks(e)||{}),{},{[t]:n}),om.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&K.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&W.isCollapsed(n)&&K.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&W.isExpanded(n)&&K.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?H.fragment(e,t):[]},insertBreak:()=>{K.splitNodes(e,{always:!0})},insertFragment:t=>{K.insertFragment(e,t)},insertNode:t=>{K.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=fm({text:t},r);K.insertNodes(e,i)}else K.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!G.isText(n))if(B.isElement(n)&&n.children.length===0)K.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!V.isEditor(n)&&B.isElement(n)&&(e.isInline(n)||n.children.length===0||G.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=H.get(e,r);if(!G.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(G.isText(c)||B.isElement(c)&&e.isInline(c))===i?B.isElement(c)?e.isInline(c)&&(l!=null&&G.isText(l)?u&&(K.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(K.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&G.isText(l)&&(G.equals(c,l,{loose:!0})?(K.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(K.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(K.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(K.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}},removeMark:t=>{var{selection:n}=e;if(n)if(W.isExpanded(n))K.unsetNodes(e,t,{match:G.isText,split:!0});else{var r=fm({},V.marks(e)||{});delete r[t],e.marks=r,om.get(e)||e.onChange()}}};return e},Lie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return U.levels(t);case`insert_node`:var{node:n,path:r}=e,i=U.levels(r),a=G.isText(n)?[]:Array.from(H.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...U.ancestors(o),U.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(U.equals(s,c))return[];var l=[],u=[];for(var d of U.ancestors(s)){var f=U.transform(d,e);l.push(f)}for(var p of U.ancestors(c)){var m=U.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[...U.ancestors(v)];case`split_node`:var{path:y}=e;return[...U.levels(y),U.next(y)];default:return[]}};function pm(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 mm,hm=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Hie(e):e,i=mm.None,a=mm.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=eae(c,l);if([i,a]=n?[a,u]:[u,i],_m(i,mm.ZWJ)&&_m(a,mm.ExtPict)&&!iae(n?e.substring(0,o):e.substring(0,e.length-o))||_m(i,mm.RI)&&_m(a,mm.RI)&&!(s=s===null?!!n||oae(e.substring(0,e.length-o)):!s)||i!==mm.None&&a!==mm.None&&nae(i,a))break;o+=c.length}return o||1},Rie=/\s/,zie=/[\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]/,Bie=/['\u2018\u2019]/,gm=(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)]},Vie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Rie.test(t))return!1;if(Bie.test(t)){var[i,a]=gm(n,hm(n,r),r);if(e(i,a,r))return!0}return!zie.test(t)},Hie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Wie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Uie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Uie=e=>e>=55296&&e<=56319,Wie=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`})(mm||={});var Gie=/^(?:[\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])$/,Kie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,qie=/^(?:[\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])$/,Jie=/^[\u1100-\u115F\uA960-\uA97C]$/,Yie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Xie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Zie=/^[\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]$/,Qie=/^[\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]$/,$ie=/^(?:[\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])$/,eae=(e,t)=>{var n=mm.Any;return e.search(Gie)!==-1&&(n|=mm.Extend),t===8205&&(n|=mm.ZWJ),t>=127462&&t<=127487&&(n|=mm.RI),e.search(Kie)!==-1&&(n|=mm.Prepend),e.search(qie)!==-1&&(n|=mm.SpacingMark),e.search(Jie)!==-1&&(n|=mm.L),e.search(Yie)!==-1&&(n|=mm.V),e.search(Xie)!==-1&&(n|=mm.T),e.search(Zie)!==-1&&(n|=mm.LV),e.search(Qie)!==-1&&(n|=mm.LVT),e.search($ie)!==-1&&(n|=mm.ExtPict),n};function _m(e,t){return(e&t)!=0}var tae=[[mm.L,mm.L|mm.V|mm.LV|mm.LVT],[mm.LV|mm.V,mm.V|mm.T],[mm.LVT|mm.T,mm.T],[mm.Any,mm.Extend|mm.ZWJ],[mm.Any,mm.SpacingMark],[mm.Prepend,mm.Any],[mm.ZWJ,mm.ExtPict],[mm.RI,mm.RI]];function nae(e,t){return tae.findIndex((n=>_m(e,n[0])&&_m(t,n[1])))===-1}var rae=/(?:[\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$/,iae=e=>e.search(rae)!==-1,aae=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,oae=e=>{var t=e.match(aae);return t!==null&&t[0].length/2%2==1},vm=e=>fp(e)&&H.isNodeList(e.children)&&!V.isEditor(e),B={isAncestor:e=>fp(e)&&H.isNodeList(e.children),isElement:vm,isElementList:e=>Array.isArray(e)&&e.every((e=>B.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 vm(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},sae=[`text`],cae=[`text`];function ym(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 bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?ym(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ym(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xm=new WeakMap,V={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=V.path(e,r),o=n===`lowest`;for(var[s,c]of V.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!G.isText(s)&&!U.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:V.point(e,t,{edge:`end`}),focus:V.end(e,[])},{distance:a=1}=r,o=0;for(var s of V.positions(e,bm(bm({},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:V.start(e,[]),focus:V.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of V.positions(e,bm(bm({},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)=>[V.start(e,t),V.end(e,t)],end:(e,t)=>V.point(e,t,{edge:`end`}),first(e,t){var n=V.path(e,t,{edge:`start`});return V.node(e,n)},fragment(e,t){var n=V.range(e,t);return H.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>V.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>G.isText(t)||V.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>G.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)=>B.isElement(t)&&!e.isInline(t),isEditor(e){if(!fp(e))return!1;var t=xm.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||fp(e.marks))&&(e.selection===null||W.isRange(e.selection))&&H.isNodeList(e.children)&&Tm.isOperationList(e.operations);return xm.set(e,n),n},isEnd(e,t,n){var r=V.end(e,n);return Om.equals(t,r)},isEdge:(e,t,n)=>V.isStart(e,t,n)||V.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&G.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>B.isElement(t)&&e.isInline(t),isNormalizing(e){var t=sm.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=V.start(e,n);return Om.equals(t,r)},isVoid:(e,t)=>B.isElement(t)&&e.isVoid(t),last(e,t){var n=V.path(e,t,{edge:`end`});return V.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.path(e,t,n);return[H.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=V.path(e,n);for(var[c,l]of H.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&V.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(W.isExpanded(n)){var[r]=V.nodes(e,{match:G.isText});if(r){var[i]=r;return pm(i,sae)}return{}}var{anchor:a}=n,{path:o}=a,[s]=V.leaf(e,o);if(a.offset===0){var c=V.previous(e,{at:o,match:G.isText}),l=V.above(e,{match:t=>V.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;U.isAncestor(f,d)&&(s=u)}}return pm(s,cae)},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=V.after(e,a,{voids:r});if(o){var[,s]=V.last(e,[]),c=[o.path,s];if(U.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null)if(U.isPath(a)){var[l]=V.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=V.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=V.path(e,t,n);return[H.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(lae.isSpan(n))c=n[0],l=n[1];else{var u=V.path(e,n,{edge:`start`}),d=V.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=H.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&V.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&U.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&&!_&&G.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=>am.get(e)||[];if(V.isNormalizing(e)){if(t){var r=Array.from(H.nodes(e),(e=>{var[,t]=e;return t}));am.set(e,r)}n(e).length!==0&&V.withoutNormalizing(e,(()=>{for(var t of n(e))if(H.has(e,t)){var r=V.node(e,t),[i,a]=r;B.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(H.has(e,c)){var l=V.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.path(e,t,n),i=U.parent(r);return V.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(U.isPath(t)){if(r===`start`){var[,i]=H.first(e,t);t=i}else if(r===`end`){var[,a]=H.last(e,t);t=a}}return W.isRange(t)&&(t=r===`start`?W.start(t):r===`end`?W.end(t):U.common(t.anchor.path,t.focus.path)),Om.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>H.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 V.pathRefs(e).delete(r),r.current=null,t}};return V.pathRefs(e).add(r),r},pathRefs(e){var t=cm.get(e);return t||(t=new Set,cm.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(U.isPath(t)){var r;if(n===`end`){var[,i]=H.last(e,t);r=i}else{var[,a]=H.first(e,t);r=a}var o=H.get(e,r);if(!G.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(W.isRange(t)){var[s,c]=W.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 V.pointRefs(e).delete(r),r.current=null,t}};return V.pointRefs(e).add(r),r},pointRefs(e){var t=lm.get(e);return t||(t=new Set,lm.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=V.range(e,t),[o,s]=W.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of V.nodes(e,{at:t,reverse:r,voids:i})){if(B.isElement(m)){if(!i&&e.isVoid(m)){yield V.start(e,h);continue}if(e.isInline(m))continue;if(V.hasInlines(e,m)){var g=U.isAncestor(h,s.path)?s:V.end(e,h),_=U.isAncestor(h,o.path)?o:V.start(e,h);u=V.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(G.isText(m)){var v=U.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=gm(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`?hm(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=hm(e,t),[a,o]=gm(e,i,t);if(Vie(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=V.before(e,a,{voids:r});if(o){var[,s]=V.first(e,[]),c=[o.path,s];if(U.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null)if(U.isPath(a)){var[l]=V.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0;var[u]=V.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>W.isRange(t)&&!n?t:{anchor:V.start(e,t),focus:V.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 V.rangeRefs(e).delete(r),r.current=null,t}};return V.rangeRefs(e).add(r),r},rangeRefs(e){var t=um.get(e);return t||(t=new Set,um.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){sm.set(e,t)},start:(e,t)=>V.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=V.range(e,t),[i,a]=W.edges(r),o=``;for(var[s,c]of V.nodes(e,{at:r,match:G.isText,voids:n})){var l=s.text;U.equals(c,a.path)&&(l=l.slice(0,a.offset)),U.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]=W.edges(t);if(r.offset!==0||i.offset!==0||W.isCollapsed(t))return t;var a=V.above(e,{at:i,match:t=>V.isBlock(e,t)}),o=a?a[1]:[],s={anchor:V.start(e,[]),focus:i},c=!0;for(var[l,u]of V.nodes(e,{at:s,match:G.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||U.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 V.above(e,bm(bm({},t),{},{match:t=>V.isVoid(e,t)}))},withoutNormalizing(e,t){var n=V.isNormalizing(e);V.setNormalizing(e,!1);try{t()}finally{V.setNormalizing(e,n)}V.normalize(e)}},lae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(U.isPath)},uae=[`children`],dae=[`text`],Sm=new WeakMap,H={ancestor(e,t){var n=H.get(e,t);if(G.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 U.ancestors(t,n))yield[H.ancestor(e,r),r]},child(e,t){if(G.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=H.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[H.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=U.common(t,n);return[H.get(e,r),r]},descendant(e,t){var n=H.get(e,t);if(V.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 H.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 H.nodes(e,t))B.isElement(n)&&(yield[n,r])},extractProps:e=>B.isAncestor(e)?pm(e,uae):pm(e,dae),first(e,t){for(var n=t.slice(),r=H.get(e,n);r&&!G.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(G.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return tm({children:e.children},(e=>{var[n,r]=W.edges(t);for(var[,i]of H.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!W.includes(t,n)}})){if(!W.includes(t,i)){var a=H.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(U.equals(i,r.path)){var s=H.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(U.equals(i,n.path)){var c=H.leaf(e,i);c.text=c.text.slice(n.offset)}}V.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(G.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(G.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>G.isText(e)||B.isElement(e)||V.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Sm.get(e);if(t!==void 0)return t;var n=e.every((e=>H.isNode(e)));return Sm.set(e,n),n},last(e,t){for(var n=t.slice(),r=H.get(e,n);r&&!G.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=H.get(e,t);if(!G.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 U.levels(t,n))yield[H.get(e,r),r]},matches:(e,t)=>B.isElement(e)&&B.isElementProps(t)&&B.matches(e,t)||G.isText(e)&&G.isTextProps(t)&&G.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?U.isBefore(s,a):U.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||G.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=U.next(s);if(H.has(e,l)){s=l,c=H.get(e,s);continue}}r&&s[s.length-1]!==0?(s=U.previous(s),c=H.get(e,s)):(s=U.parent(s),c=H.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;U.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=H.get(e,s)}},parent(e,t){var n=U.parent(t),r=H.get(e,n);if(G.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>G.isText(e)?e.text:e.children.map(H.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of H.nodes(e,t))G.isText(n)&&(yield[n,r])}};function Cm(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 wm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Cm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Tm={isNodeOperation:e=>Tm.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!fp(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return U.isPath(e.path)&&H.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&U.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&U.isPath(e.path)&&fp(e.properties);case`move_node`:return U.isPath(e.path)&&U.isPath(e.newPath);case`set_node`:return U.isPath(e.path)&&fp(e.properties)&&fp(e.newProperties);case`set_selection`:return e.properties===null&&W.isRange(e.newProperties)||e.newProperties===null&&W.isRange(e.properties)||fp(e.properties)&&fp(e.newProperties);case`split_node`:return U.isPath(e.path)&&typeof e.position==`number`&&fp(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Tm.isOperation(e))),isSelectionOperation:e=>Tm.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>Tm.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return wm(wm({},e),{},{type:`remove_node`});case`insert_text`:return wm(wm({},e),{},{type:`remove_text`});case`merge_node`:return wm(wm({},e),{},{type:`split_node`,path:U.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(U.equals(t,n))return e;if(U.isSibling(n,t))return wm(wm({},e),{},{path:t,newPath:n});var r=U.transform(n,e),i=U.transform(U.next(n),e);return wm(wm({},e),{},{path:r,newPath:i});case`remove_node`:return wm(wm({},e),{},{type:`insert_node`});case`remove_text`:return wm(wm({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return wm(wm({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return wm(wm({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return wm(wm({},e),{},{type:`merge_node`,path:U.next(e.path)})}}},U={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=U.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 U.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return U.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 U.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)=>U.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&U.compare(e,t)===0,isBefore:(e,t)=>U.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&U.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&U.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&U.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&U.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]&&U.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(!U.isAncestor(t,e)&&!U.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 tm(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;(U.equals(a,r)||U.endsBefore(a,r)||U.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(U.equals(o,r)||U.isAncestor(o,r))return null;U.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;U.equals(s,r)||U.endsBefore(s,r)?--r[s.length-1]:U.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(U.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else U.endsBefore(l,r)?r[l.length-1]+=1:U.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(U.equals(d,f))return;if(U.isAncestor(d,r)||U.equals(d,r)){var p=f.slice();return U.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}U.isSibling(d,f)&&(U.isAncestor(f,r)||U.equals(f,r))?U.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:U.endsBefore(f,r)||U.equals(f,r)||U.isAncestor(f,r)?(U.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):U.endsBefore(d,r)&&(U.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},fae={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()}}};function Em(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 Dm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Em(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Em(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Om={compare(e,t){var n=U.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>Om.compare(e,t)===1,isBefore:(e,t)=>Om.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&U.equals(e.path,t.path),isPoint:e=>fp(e)&&typeof e.offset==`number`&&U.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return tm(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=U.transform(i,t,n);break;case`insert_text`:U.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:U.equals(t.path,i)&&(e.offset+=t.position),e.path=U.transform(i,t,n);break;case`remove_text`:U.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(U.equals(t.path,i)||U.isAncestor(t.path,i))return null;e.path=U.transform(i,t,n);break;case`split_node`:if(U.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=U.transform(i,t,Dm(Dm({},n),{},{affinity:`forward`})))}else e.path=U.transform(i,t,n)}}))}},pae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Om.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},mae=[`anchor`,`focus`];function km(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 W={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return W.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=W.edges(e);return t},equals:(e,t)=>Om.equals(e.anchor,t.anchor)&&Om.equals(e.focus,t.focus),includes(e,t){if(W.isRange(t)){if(W.includes(e,t.anchor)||W.includes(e,t.focus))return!0;var[n,r]=W.edges(e),[i,a]=W.edges(t);return Om.isBefore(n,i)&&Om.isAfter(r,a)}var[o,s]=W.edges(e),c=!1,l=!1;return Om.isPoint(t)?(c=Om.compare(t,o)>=0,l=Om.compare(t,s)<=0):(c=U.compare(t,o.path)>=0,l=U.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=pm(e,mae),[r,i]=W.edges(e),[a,o]=W.edges(t),s=Om.isBefore(r,a)?a:r,c=Om.isBefore(i,o)?i:o;return Om.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?km(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):km(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 Om.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Om.equals(t,n)},isExpanded:e=>!W.isCollapsed(e),isForward:e=>!W.isBackward(e),isRange:e=>fp(e)&&Om.isPoint(e.anchor)&&Om.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=W.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return tm(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=W.isCollapsed(e);W.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?W.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=Om.transform(e.anchor,t,{affinity:r}),c=Om.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},hae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=W.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},Am=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(fp(r)&&fp(i)){if(!Am(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},gae=[`text`],_ae=[`anchor`,`focus`];function jm(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 Mm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?jm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var G={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return pm(e,gae)}return Am(n?r(e):e,n?r(t):t)},isText:e=>fp(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>G.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=[Mm({},e)];for(var r of t){var i=pm(r,_ae),[a,o]=W.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=Mm(Mm({},f),{},{text:f.text.slice(h)}),f=Mm(Mm({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=Mm(Mm({},f),{},{text:f.text.slice(0,g)}),f=Mm(Mm({},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 Nm(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 Pm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Nm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var vae={transform(e,t){e.children=nm(e.children);var n=e.selection&&nm(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=H.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 W.points(t))t[c]=Om.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=H.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 W.points(t))t[g]=Om.transform(h,n);break;case`merge_node`:var{path:_}=n,v=H.get(e,_),y=U.previous(_),b=H.get(e,y),x=H.parent(e,_),S=_[_.length-1];if(G.isText(v)&&G.isText(b))b.text+=v.text;else{if(G.isText(v)||G.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 W.points(t))t[w]=Om.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(U.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=H.get(e,T),O=H.parent(e,T),k=T[T.length-1];O.children.splice(k,1);var A=U.transform(T,n),j=H.get(e,U.parent(A)),M=A[A.length-1];if(j.children.splice(M,0,D),t)for(var[N,P]of W.points(t))t[P]=Om.transform(N,n);break;case`remove_node`:var{path:F}=n,ee=F[F.length-1];if(H.parent(e,F).children.splice(ee,1),t)for(var[te,ne]of W.points(t)){var re=Om.transform(te,n);if(t!=null&&re!=null)t[ne]=re;else{var I=void 0,ie=void 0;for(var[ae,oe]of H.texts(e)){if(U.compare(oe,F)!==-1){ie=[ae,oe];break}I=[ae,oe]}var se=!1;I&&ie&&(se=U.equals(ie[1],F)?!U.hasPrevious(ie[1]):U.common(I[1],F).length<U.common(ie[1],F).length),I&&!se?(te.path=I[1],te.offset=I[0].text.length):ie?(te.path=ie[1],te.offset=0):t=null}}break;case`remove_text`:var{path:L,offset:ce,text:le}=n;if(le.length===0)break;var ue=H.leaf(e,L);if(ue.text=ue.text.slice(0,ce)+ue.text.slice(ce+le.length),t)for(var[de,fe]of W.points(t))t[fe]=Om.transform(de,n);break;case`set_node`:var{path:pe,properties:me,newProperties:he}=n;if(pe.length===0)throw Error(`Cannot set properties on the root node!`);var ge=H.get(e,pe);for(var _e in he){if(_e===`children`||_e===`text`)throw Error(`Cannot set the "${_e}" property of nodes!`);var ve=he[_e];ve==null?delete ge[_e]:ge[_e]=ve}for(var ye in me)he.hasOwnProperty(ye)||delete ge[ye];break;case`set_selection`:var{newProperties:be}=n;if(be==null)t=be;else{if(t==null){if(!W.isRange(be))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(be)} when there is no current selection.`);t=Pm({},be)}for(var xe in be){var Se=be[xe];if(Se==null){if(xe===`anchor`||xe===`focus`)throw Error(`Cannot remove the "${xe}" selection property`);delete t[xe]}else t[xe]=Se}}break;case`split_node`:var{path:Ce,position:we,properties:Te}=n;if(Ce.length===0)throw Error(`Cannot apply a "split_node" operation at path [${Ce}] because the root node cannot be split.`);var Ee,De=H.get(e,Ce),Oe=H.parent(e,Ce),ke=Ce[Ce.length-1];if(G.isText(De)){var Ae=De.text.slice(0,we),je=De.text.slice(we);De.text=Ae,Ee=Pm(Pm({},Te),{},{text:je})}else{var Me=De.children.slice(0,we),Ne=De.children.slice(we);De.children=Me,Ee=Pm(Pm({},Te),{},{children:Ne})}if(Oe.children.splice(ke+1,0,Ee),t)for(var[Pe,Fe]of W.points(t))t[Fe]=Om.transform(Pe,n)}return t})(e,n,t)}finally{e.children=rm(e.children),e.selection=n?mp(n)?rm(n):n:null}}},yae=[`text`],bae=[`children`];function Fm(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 Im(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Fm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var xae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(H.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?V.end(e,[]):[0],c=!0),c??=!1,W.isRange(o))if(r||(o=V.unhangRange(e,o)),W.isCollapsed(o))o=o.anchor;else{var[,u]=W.edges(o),d=V.pointRef(e,u);K.delete(e,{at:o}),o=d.unref()}if(Om.isPoint(o)){s??=G.isText(l)?e=>G.isText(e):e.isInline(l)?t=>G.isText(t)||V.isInline(e,t):t=>V.isBlock(e,t);var[f]=V.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=V.pathRef(e,p),h=V.isEnd(e,o,p);K.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?U.next(g):g}var _=U.parent(o),v=o[o.length-1];if(i||!V.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=U.next(o)}if(o=U.previous(o),c){var x=V.end(e,o);x&&K.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=U.isPath(n)?Rm(e,n):t=>V.isBlock(e,t),n){var o=V.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return V.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]=V.node(e,U.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=U.next(u);K.moveNodes(e,{at:c,to:p,voids:i}),K.removeNodes(e,{at:u,voids:i})}else if(d===0)K.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=U.next(u);K.moveNodes(e,{at:c,to:m,voids:i})}else{var h=U.next(c),g=U.next(u);K.splitNodes(e,{at:h,voids:i}),K.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.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(U.isPath(r)){var[s]=V.parent(e,r);n=e=>s.children.includes(e)}else n=t=>V.isBlock(e,t);if(!i&&W.isRange(r)&&(r=V.unhangRange(e,r)),W.isRange(r))if(W.isCollapsed(r))r=r.anchor;else{var[,c]=W.edges(r),l=V.pointRef(e,c);K.delete(e,{at:r}),r=l.unref(),t.at??K.select(e,r)}var[u]=V.nodes(e,{at:r,match:n,voids:a,mode:o}),d=V.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=U.next(h),y=U.common(p,h),b=U.isSibling(p,h),x=Array.from(V.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=V.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Lm(e,t)}),C=S&&V.pathRef(e,S[1]);if(G.isText(f)&&G.isText(m)){var w=pm(f,yae);_=m.text.length,g=w}else{if(!B.isElement(f)||!B.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=pm(f,bae),_=m.children.length,g=w}b||K.moveNodes(e,{at:p,to:v,voids:a}),C&&K.removeNodes(e,{at:C.current,voids:a}),B.isElement(m)&&V.isEmpty(e,m)||G.isText(m)&&m.text===``&&h[h.length-1]!==0?K.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){V.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=U.isPath(r)?Rm(e,r):t=>V.isBlock(e,t);var s=V.pathRef(e,n),c=V.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return V.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&U.isSibling(d,u)&&U.isAfter(d,u)&&(s.current=U.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=U.isPath(a)?Rm(e,a):t=>V.isBlock(e,t),!n&&W.isRange(a)&&(a=V.unhangRange(e,a));var s=V.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return V.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=V.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]:{};V.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??=U.isPath(i)?Rm(e,i):t=>V.isBlock(e,t),!a&&W.isRange(i)&&(i=V.unhangRange(e,i)),s&&W.isRange(i)){if(W.isCollapsed(i)&&V.leaf(e,i.anchor)[0].text.length>0)return;var l=V.rangeRef(e,i,{affinity:`inward`}),[u,d]=W.edges(i),f=o===`lowest`?`lowest`:`highest`,p=V.isEnd(e,d,d.path);K.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=V.isStart(e,u,u.path);K.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??K.select(e,i)}for(var[h,g]of V.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]:{};V.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=>V.isBlock(e,t),W.isRange(a)&&(a=Sae(e,a)),U.isPath(a)){var c=a,l=V.point(e,c),[u]=V.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=V.pointRef(e,a,{affinity:`backward`}),[f]=V.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=V.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(B.isElement(m)&&e.isInline(m)){var g=V.after(e,h);if(!g){var _=U.next(h);K.insertNodes(e,{text:``},{at:_,voids:r}),g=V.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=V.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 V.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&V.isVoid(e,C))break;var E=d.current,D=V.isEnd(e,E,w);if(s||!d||!V.isEdge(e,E,w)){T=!0;var O=H.extractProps(C);e.apply({type:`split_node`,path:w,position:S,properties:O})}S=w[w.length-1]+(T||D?1:0)}if(t.at==null){var k=v.current||V.end(e,[]);K.select(e,k)}d.unref(),v.unref()}}}))},unsetNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};Array.isArray(t)||(t=[t]);var r={};for(var i of t)r[i]=null;K.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=U.isPath(a)?Rm(e,a):t=>V.isBlock(e,t),U.isPath(a)&&(a=V.range(e,a));var s=W.isRange(a)?V.rangeRef(e,a):null,c=V.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return V.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=V.node(e,n),o=V.range(e,n);r&&s&&(o=W.intersection(s.current,o)),K.liftNodes(e,{at:o,match:e=>B.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]:{};V.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=U.isPath(s)?Rm(e,s):e.isInline(t)?t=>V.isInline(e,t)||G.isText(t):t=>V.isBlock(e,t),i&&W.isRange(s)){var[c,l]=W.edges(s),u=V.rangeRef(e,s,{affinity:`inward`});K.splitNodes(e,{at:l,match:o,voids:a}),K.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??K.select(e,s)}for(var[,d]of Array.from(V.nodes(e,{at:s,match:e.isInline(t)?t=>V.isBlock(e,t):e=>V.isEditor(e),mode:`lowest`,voids:a}))){var f=W.isRange(s)?W.intersection(s,V.range(e,d)):s;if(f){var p=Array.from(V.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=U.equals(i,o)?U.parent(i):U.common(i,o),c=V.range(e,i,o),[l]=V.node(e,s),u=s.length+1,d=U.next(o.slice(0,u)),f=Im(Im({},t),{},{children:[]});K.insertNodes(e,f,{at:d,voids:a}),K.moveNodes(e,{at:c,match:e=>B.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Lm=(e,t)=>{if(B.isElement(t)){var n=t;return!!V.isVoid(e,t)||n.children.length===1&&Lm(e,n.children[0])}return!V.isEditor(t)},Sae=(e,t)=>{if(W.isCollapsed(t))return t.anchor;var[,n]=W.edges(t),r=V.pointRef(e,n);return K.delete(e,{at:t}),r.unref()},Rm=(e,t)=>{var[n]=V.node(e,t);return e=>e===n};function zm(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 Bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?zm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):zm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Cae={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)K.select(e,n.anchor);else if(t===`focus`)K.select(e,n.focus);else if(t===`start`){var[r]=W.edges(n);K.select(e,r)}else if(t===`end`){var[,i]=W.edges(n);K.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=W.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=W.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?V.before(e,s,l):V.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?V.before(e,c,l):V.after(e,c,l);f&&(u.focus=f)}K.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=V.range(e,t),n)K.setSelection(e,t);else{if(!W.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=W.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=W.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;K.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:Bm(Bm({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!Om.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!Om.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})}}},wae={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};V.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(W.isRange(o)&&W.isCollapsed(o)&&(o=o.anchor),Om.isPoint(o)){var c=V.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?V.before(e,o,u)||V.start(e,[]):V.after(e,o,u)||V.end(e,[])},s=!0}}if(U.isPath(o))K.removeNodes(e,{at:o,voids:a});else if(!W.isCollapsed(o)){if(!s){var[,d]=W.edges(o),f=V.end(e,[]);Om.equals(d,f)||(o=V.unhangRange(e,o,{voids:a}))}var[p,m]=W.edges(o),h=V.above(e,{match:t=>V.isBlock(e,t),at:p,voids:a}),g=V.above(e,{match:t=>V.isBlock(e,t),at:m,voids:a}),_=h&&g&&!U.equals(h[1],g[1]),v=U.equals(p.path,m.path),y=a?null:V.void(e,{at:p,mode:`highest`}),b=a?null:V.void(e,{at:m,mode:`highest`});if(y){var x=V.before(e,p);x&&h&&U.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=V.after(e,m);S&&g&&U.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of V.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&U.compare(D,C)===0||(!a&&V.isVoid(e,E)||!U.isCommon(D,p.path)&&!U.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return V.pathRef(e,n)})),k=V.pointRef(e,p),A=V.pointRef(e,m);if(!v&&!y){var j=k.current,[M]=V.leaf(e,j),{path:N}=j,{offset:P}=p,F=M.text.slice(P);F.length>0&&e.apply({type:`remove_text`,path:N,offset:P,text:F})}for(var ee of O){var te=ee.unref();K.removeNodes(e,{at:te,voids:a})}if(!b){var ne=A.current,[re]=V.leaf(e,ne),{path:I}=ne,ie=v?p.offset:0,ae=re.text.slice(ie,m.offset);ae.length>0&&e.apply({type:`remove_text`,path:I,offset:ie,text:ae})}!v&&_&&A.current&&k.current&&K.mergeNodes(e,{at:A.current,hanging:!0,voids:a});var oe=n?k.unref()||A.unref():A.unref()||k.unref();t.at==null&&oe&&K.select(e,oe)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(W.isRange(a))if(r||(a=V.unhangRange(e,a)),W.isCollapsed(a))a=a.anchor;else{var[,o]=W.edges(a);if(!i&&V.void(e,{at:o}))return;var s=V.pointRef(e,o);K.delete(e,{at:a}),a=s.unref()}else U.isPath(a)&&(a=V.start(e,a));if(i||!V.void(e,{at:a})){var c=V.above(e,{at:a,match:t=>V.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;V.isEnd(e,a,l)?a=V.after(e,l):V.isStart(e,a,l)&&(a=V.before(e,l))}var[,u]=V.above(e,{match:t=>V.isBlock(e,t),at:a,voids:i}),d=V.isStart(e,a,u),f=V.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=H.first({children:t},[]),[,_]=H.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&U.isAncestor(r,g)&&B.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&U.isAncestor(r,_)&&B.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of H.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)B.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=V.nodes(e,{at:a,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,k=V.isStart(e,a,O),A=V.isEnd(e,a,O),j=V.pathRef(e,f?U.next(u):u),M=V.pathRef(e,A?U.next(O):O),N=V.pathRef(e,u);K.splitNodes(e,{at:a,match:t=>T?V.isBlock(e,t):G.isText(t)||V.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var P=V.pathRef(e,!k||k&&A?U.next(O):O);if(K.insertNodes(e,x,{at:P.current,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&K.delete(e,{at:N.unref(),voids:i}),K.insertNodes(e,S,{at:j.current,match:t=>V.isBlock(e,t),mode:`lowest`,voids:i}),K.insertNodes(e,C,{at:M.current,match:t=>G.isText(t)||V.isInline(e,t),mode:`highest`,voids:i}),!n.at){var F=C.length>0?U.previous(M.current):S.length>0?U.previous(j.current):U.previous(P.current),ee=V.end(e,F);K.select(e,ee)}P.unref(),j.unref(),M.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};V.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(U.isPath(i)&&(i=V.range(e,i)),W.isRange(i))if(W.isCollapsed(i))i=i.anchor;else{var a=W.end(i);if(!r&&V.void(e,{at:a}))return;var o=V.pointRef(e,a);K.delete(e,{at:i,voids:r}),i=o.unref(),K.setSelection(e,{anchor:i,focus:i})}if(r||!V.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 Vm(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 Hm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Vm(Object(n),!0).forEach((function(t){im(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Vm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K=Hm(Hm(Hm(Hm({},vae),xae),Cae),wae),Um=`[object Map]`,Wm=`[object Set]`,Tae=/^\[object .+?Constructor\]$/,Eae=/^(?:0|[1-9]\d*)$/,Dae=`[\\ud800-\\udfff]`,Gm=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Km=`\\ud83c[\\udffb-\\udfff]`,qm=`[^\\ud800-\\udfff]`,Jm=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ym=`[\\ud800-\\udbff][\\udc00-\\udfff]`,Xm=`(?:`+Gm+`|`+Km+`)?`,Oae=`[\\ufe0e\\ufe0f]?`+Xm+(`(?:\\u200d(?:`+[qm,Jm,Ym].join(`|`)+`)[\\ufe0e\\ufe0f]?`+Xm+`)*`),kae=`(?:`+[qm+Gm+`?`,Gm,Jm,Ym,Dae].join(`|`)+`)`,Aae=RegExp(Km+`(?=`+Km+`)|`+kae+Oae,`g`),jae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),Mae=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,Nae=typeof self==`object`&&self&&self.Object===Object&&self,Zm=Mae||Nae||Function(`return this`)();function Pae(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 Fae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Iae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Lae(e){return function(e){return jae.test(e)}(e)?function(e){return e.match(Aae)||[]}(e):function(e){return e.split(``)}(e)}var Qm,$m,Rae=Function.prototype,eh=Object.prototype,th=Zm[`__core-js_shared__`],nh=function(){var e=/[^.]+$/.exec(th&&th.keys&&th.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),rh=Rae.toString,ih=eh.hasOwnProperty,ah=eh.toString,zae=RegExp(`^`+rh.call(ih).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),oh=Zm.Symbol,sh=oh?oh.iterator:void 0,Bae=eh.propertyIsEnumerable,Vae=(Qm=Object.keys,$m=Object,function(e){return Qm($m(e))}),ch=_h(Zm,`DataView`),lh=_h(Zm,`Map`),uh=_h(Zm,`Promise`),dh=_h(Zm,`Set`),fh=_h(Zm,`WeakMap`),Hae=bh(ch),Uae=bh(lh),Wae=bh(uh),Gae=bh(dh),ph=bh(fh);function mh(e,t){var n=xh(e)||function(e){return function(e){return Th(e)&&Sh(e)}(e)&&ih.call(e,`callee`)&&(!Bae.call(e,`callee`)||ah.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&&!ih.call(e,a)||i&&(a==`length`||yh(a,r))||n.push(a);return n}function hh(e){return!wh(e)||function(e){return!!nh&&nh in e}(e)?!1:(Ch(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?zae:Tae).test(bh(e))}function gh(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||eh,t!==r)return Vae(e);var t,n,r,i=[];for(var a in Object(e))ih.call(e,a)&&a!=`constructor`&&i.push(a);return i}function _h(e,t){var n=function(e,t){return e?.[t]}(e,t);return hh(n)?n:void 0}var vh=function(e){return ah.call(e)};function yh(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Eae.test(e))&&e>-1&&e%1==0&&e<t}function bh(e){if(e!=null){try{return rh.call(e)}catch{}try{return e+``}catch{}}return``}(ch&&vh(new ch(new ArrayBuffer(1)))!=`[object DataView]`||lh&&vh(new lh)!=Um||uh&&vh(uh.resolve())!=`[object Promise]`||dh&&vh(new dh)!=Wm||fh&&vh(new fh)!=`[object WeakMap]`)&&(vh=function(e){var t=ah.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?bh(n):void 0;if(r)switch(r){case Hae:return`[object DataView]`;case Uae:return Um;case Wae:return`[object Promise]`;case Gae:return Wm;case ph:return`[object WeakMap]`}return t});var xh=Array.isArray;function Sh(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Ch(e)}function Ch(e){var t=wh(e)?ah.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function wh(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Th(e){return!!e&&typeof e==`object`}function Eh(e){return e?Pae(e,function(e){return Sh(e)?mh(e):gh(e)}(e)):[]}var Dh=function(e){if(!e)return[];if(Sh(e))return function(e){return typeof e==`string`||!xh(e)&&Th(e)&&ah.call(e)==`[object String]`}(e)?Lae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(sh&&e[sh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[sh]());var t=vh(e);return(t==Um?Fae:t==Wm?Iae:Eh)(e)};function Oh(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function kh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:Oh(t[n])&&Oh(e[n])&&Object.keys(t[n]).length>0&&kh(e[n],t[n])}))}var Ah={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 jh(){var e=typeof document<`u`?document:{};return kh(e,Ah),e}var Mh={document:Ah,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 Nh(){var e=typeof window<`u`?window:{};return kh(e,Mh),e}function Ph(e){return Ph=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Ph(e)}function Fh(e,t){return Fh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Fh(e,t)}function Ih(){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 Lh(e,t,n){return Lh=Ih()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Fh(i,n.prototype),i},Lh.apply(null,arguments)}function Rh(e){var t=typeof Map==`function`?new Map:void 0;return Rh=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 Lh(e,arguments,Ph(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Fh(n,e)},Rh(e)}var zh=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}(Rh(Array));function Bh(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Bh(e)):t.push(e)})),t}function Vh(e,t){return Array.prototype.filter.call(e,t)}function q(e,t){var n=Nh(),r=jh(),i=[];if(!t&&e instanceof zh)return e;if(!e)return new zh(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 zh)return e;i=e}return new zh(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 Hh(){var e=Bh([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function Uh(){var e=Bh([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function Wh(){var e=Bh([...arguments].map((function(e){return e.split(` `)})));return Vh(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function Gh(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 Kh(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function qh(){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 Jh(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 Yh(){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),q(t).is(n))r.apply(t,i);else for(var a=q(t).parents(),o=0;o<a.length;o+=1)q(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 Xh(){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 Zh(){var e=Nh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function Qh(){var e=Nh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function $h(){if(this.length>0){var e=Nh(),t=jh(),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 eg(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function tg(){for(var e=Nh(),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 ng(e,t){var n,r=Nh();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 rg(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function ig(e){return q(Vh(this,e))}function ag(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 og(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 sg(e){var t,n,r=Nh(),i=jh(),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=q(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 zh){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function cg(){for(var e,t=jh(),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 zh)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function lg(e){var t,n,r=jh();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 zh)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 ug(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?q(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return q(t)}function dg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?q(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return q(t)}function fg(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 q(t)}function pg(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&&!q(r[i]).is(e)||t.push(r[i]);return q(t)}function mg(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function hg(){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}q.fn=zh.prototype;var gg=`resize scroll`.split(` `);function _g(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)gg.indexOf(e)<0&&(e in this[n]?this[n][e]():q(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var vg=_g(`click`),yg=_g(`focus`),bg=`[object GeneratorFunction]`,xg=/^(?:0|[1-9]\d*)$/;function Sg(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Cg=Object.prototype,wg=Cg.hasOwnProperty,Tg=Cg.toString,Eg=Cg.propertyIsEnumerable,Dg=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Og(e,t){var n=Fg(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Ig(e)}(e)&&wg.call(e,`callee`)&&(!Eg.call(e,`callee`)||Tg.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&&!wg.call(e,a)||i&&(a==`length`||Pg(a,r))||n.push(a);return n}var kg,Ag,jg=(kg=function(e,t){return e&&Mg(e,t,Lg)},function(e,t){if(e==null)return e;if(!Ig(e))return kg(e,t);for(var n=e.length,r=Ag?n:-1,i=Object(e);(Ag?r--:++r<n)&&!1!==t(i[r],r,i););return e}),Mg=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 Ng(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Cg,t!==r)return Dg(e);var t,n,r,i=[];for(var a in Object(e))wg.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Pg(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||xg.test(e))&&e>-1&&e%1==0&&e<t}var Fg=Array.isArray;function Ig(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)?Tg.call(e):``;return t==`[object Function]`||t==bg}(e)}function Lg(e){return Ig(e)?Og(e):Ng(e)}function Rg(e){return e}var zg=function(e,t){return(Fg(e)?Sg:jg)(e,typeof t==`function`?t:Rg)},Bg=(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},Vg=/^\s+|\s+$/g,Hg=/^[-+]0x[0-9a-f]+$/i,Ug=/^0b[01]+$/i,Wg=/^0o[0-7]+$/i,Gg=parseInt,Kg=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,qg=typeof self==`object`&&self&&self.Object===Object&&self,Jg=Kg||qg||Function(`return this`)(),Yg=Object.prototype.toString,Xg=Math.max,Zg=Math.min,Qg=function(){return Jg.Date.now()};function $g(e,t,n){var r,i,a,o,s,c,l=0,u=!1,d=!1,f=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);function p(t){var n=r,a=i;return r=i=void 0,l=t,o=e.apply(a,n)}function m(e){return l=e,s=setTimeout(g,t),u?p(e):o}function h(e){var n=e-c;return c===void 0||n>=t||n<0||d&&e-l>=a}function g(){var e=Qg();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Zg(n,a-(e-l)):n}(e))}function _(e){return s=void 0,f&&r?p(e):(r=i=void 0,o)}function v(){var e=Qg(),n=h(e);if(r=arguments,i=this,c=e,n){if(s===void 0)return m(c);if(d)return s=setTimeout(g,t),p(c)}return s===void 0&&(s=setTimeout(g,t)),o}return t=t_(t)||0,e_(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Xg(t_(n.maxWait)||0,t):a,f=`trailing`in n?!!n.trailing:f),v.cancel=function(){s!==void 0&&clearTimeout(s),l=0,r=c=i=s=void 0},v.flush=function(){return s===void 0?o:_(Qg())},v}function e_(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function t_(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&Yg.call(e)==`[object Symbol]`}(e))return NaN;if(e_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=e_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Vg,``);var n=Ug.test(e);return n||Wg.test(e)?Gg(e.slice(2),n?2:8):Hg.test(e)?NaN:+e}var n_=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return e_(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),$g(e,t,{leading:r,maxWait:t,trailing:i})},r_={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 i_(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 a_=Array.isArray;function o_(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function s_(e){return e===void 0}function c_(e){return e!==void 0}var l_=i_(``,{},[],void 0,void 0);function u_(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function d_(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 f_=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function p_(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?r_:t;for(let t of f_)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 i_(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;c_(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)s_(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=c_(s)&&c_(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](l_,e);if(a_(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else o_(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;c_(g)&&((i=g.create)==null||i.call(g,l_,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(c_(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;c_(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)}s_(t.text)?c_(h)&&c_(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]:u_(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):u_(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):u_(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):u_(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=d_(t,p,h)),c=a[y.key],s_(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):c_(g)?(c_(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):c_(h)?l(m,h,0,h.length-1):c_(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(c_(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)),u_(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 m_(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&&m_(n,t[e].children,t[e].sel)}}function h_(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(a_(t)?r=t:o_(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),a_(n)?r=n:o_(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)o_(r[a])&&(r[a]=i_(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]!==`#`||m_(o,r,e),i_(e,o,r,i,void 0)}function g_(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 __={create:g_,update:g_};function v_(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 y_={create:v_,update:v_},b_=/[A-Z]/g;function x_(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(b_,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(b_,`-$&`).toLowerCase(),a[r]))}var S_={create:x_,update:x_};function C_(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++)C_(e[r],t,n)}function w_(e,t){let n=e.type,r=t.data.on;r&&r[n]&&C_(r[n],t,e)}function T_(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){w_(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 E_={create:T_,update:T_,destroy:T_};function D_(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 O_={create:D_,update:D_},k_=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,A_=!1;function j_(e,t,n){(function(e){k_((function(){k_(e)}))})((function(){e[t]=n}))}function M_(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]||j_(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var N_={pre:function(){A_=!1},create:M_,update:M_,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;A_||=(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 P_(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?P_(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(i_(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function F_(e,t,...n){let r=P_(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?h_(e,t,r[0].text):h_(e,t,r)}F_||={};var I_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,L_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,R_=`\\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`,z_=`[\\ud800-\\udfff]`,B_=`[`+R_+`]`,V_=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,H_=`\\d+`,U_=`[\\u2700-\\u27bf]`,W_=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,G_=`[^\\ud800-\\udfff`+R_+H_+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,K_=`\\ud83c[\\udffb-\\udfff]`,q_=`[^\\ud800-\\udfff]`,J_=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Y_=`[\\ud800-\\udbff][\\udc00-\\udfff]`,X_=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,Z_=`(?:`+W_+`|`+G_+`)`,Q_=`(?:`+X_+`|`+G_+`)`,$_=`(?:`+V_+`|`+K_+`)?`,ev=`[\\ufe0e\\ufe0f]?`+$_+(`(?:\\u200d(?:`+[q_,J_,Y_].join(`|`)+`)[\\ufe0e\\ufe0f]?`+$_+`)*`),tv=`(?:`+[U_,J_,Y_].join(`|`)+`)`+ev,nv=`(?:`+[q_+V_+`?`,V_,J_,Y_,z_].join(`|`)+`)`,rv=RegExp(`[']`,`g`),iv=RegExp(V_,`g`),av=RegExp(K_+`(?=`+K_+`)|`+nv+ev,`g`),ov=RegExp([X_+`?`+W_+`+(?:['](?:d|ll|m|re|s|t|ve))?(?=`+[B_,X_,`$`].join(`|`)+`)`,Q_+`+(?:['](?:D|LL|M|RE|S|T|VE))?(?=`+[B_,X_+Z_,`$`].join(`|`)+`)`,X_+`?`+Z_+`+(?:['](?:d|ll|m|re|s|t|ve))?`,X_+`+(?:['](?:D|LL|M|RE|S|T|VE))?`,H_,tv].join(`|`),`g`),sv=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),cv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,lv=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,uv=typeof self==`object`&&self&&self.Object===Object&&self,dv=lv||uv||Function(`return this`)(),fv,pv=(fv={À:`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 fv?.[e]});function mv(e){return sv.test(e)}function hv(e){return mv(e)?function(e){return e.match(av)||[]}(e):function(e){return e.split(``)}(e)}var gv=Object.prototype.toString,_v=dv.Symbol,vv=_v?_v.prototype:void 0,yv=vv?vv.toString:void 0;function bv(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&gv.call(e)==`[object Symbol]`}(e))return yv?yv.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function xv(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 Sv(e){return e==null?``:bv(e)}for(var Cv,wv=(Cv=function(e,t,n){return t=t.toLowerCase(),e+(n?Ev(Sv(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=Sv(e),(t=n?void 0:t)===void 0?function(e){return cv.test(e)}(e)?function(e){return e.match(ov)||[]}(e):function(e){return e.match(I_)||[]}(e):e.match(t)||[]}(function(e){return(e=Sv(e))&&e.replace(L_,pv).replace(iv,``)}(e).replace(rv,``)),Cv,``)}),Tv,Ev=(Tv=`toUpperCase`,function(e){var t=mv(e=Sv(e))?hv(e):void 0,n=t?t[0]:e.charAt(0),r=t?xv(t,1).join(``):e.slice(1);return n[Tv]()+r}),Dv=wv,Ov=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),kv={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},Av={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:Ov?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},jv={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},Mv=1;Mv<20;Mv++)jv[`f`+Mv]=111+Mv;function Nv(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 kv)r[kv[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=Fv(f),h=kv[m];if(f.length>1&&!h&&!Av[f]&&!jv[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Pv(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 Pv(e){return e=Fv(e),jv[e]||e.toUpperCase().charCodeAt(0)}function Fv(e){return e=e.toLowerCase(),e=Av[e]||e}var Iv=Nv,Lv=function(e,t){return Nv(e,{byKey:!0},t)},Rv=/^\s+|\s+$/g,zv=/^[-+]0x[0-9a-f]+$/i,Bv=/^0b[01]+$/i,Vv=/^0o[0-7]+$/i,Hv=parseInt,Uv=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,Wv=typeof self==`object`&&self&&self.Object===Object&&self,Kae=Uv||Wv||Function(`return this`)(),qae=Object.prototype.toString,Jae=Math.max,Yae=Math.min,Gv=function(){return Kae.Date.now()};function Kv(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function qv(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&qae.call(e)==`[object Symbol]`}(e))return NaN;if(Kv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Kv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Rv,``);var n=Bv.test(e);return n||Vv.test(e)?Hv(e.slice(2),n?2:8):zv.test(e)?NaN:+e}var Jv,Yv=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=Gv();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?Yae(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=Gv(),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=qv(t)||0,Kv(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Jae(qv(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:_(Gv())},v},Xv=wa((function(e,t){var n=`__lodash_hash_undefined__`,r=9007199254740991,i=`[object Arguments]`,a=`[object Boolean]`,o=`[object Date]`,s=`[object Function]`,c=`[object GeneratorFunction]`,l=`[object Map]`,u=`[object Number]`,d=`[object Object]`,f=`[object Promise]`,p=`[object RegExp]`,m=`[object Set]`,h=`[object String]`,g=`[object Symbol]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,D=`[object Uint16Array]`,O=`[object Uint32Array]`,k=/\w*$/,A=/^\[object .+?Constructor\]$/,j=/^(?:0|[1-9]\d*)$/,M={};M[i]=M[`[object Array]`]=M[v]=M[y]=M[a]=M[o]=M[b]=M[x]=M[S]=M[C]=M[w]=M[l]=M[u]=M[d]=M[p]=M[m]=M[h]=M[g]=M[T]=M[E]=M[D]=M[O]=!0,M[`[object Error]`]=M[s]=M[_]=!1;var N=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,P=typeof self==`object`&&self&&self.Object===Object&&self,F=N||P||Function(`return this`)(),ee=t&&!t.nodeType&&t,te=ee&&e&&!e.nodeType&&e,ne=te&&te.exports===ee;function re(e,t){return e.set(t[0],t[1]),e}function I(e,t){return e.add(t),e}function ie(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 ae(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function se(e,t){return function(n){return e(t(n))}}function L(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var ce=Array.prototype,le=Function.prototype,ue=Object.prototype,de=F[`__core-js_shared__`],fe=function(){var e=/[^.]+$/.exec(de&&de.keys&&de.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),pe=le.toString,me=ue.hasOwnProperty,he=ue.toString,ge=RegExp(`^`+pe.call(me).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),_e=ne?F.Buffer:void 0,ve=F.Symbol,ye=F.Uint8Array,be=se(Object.getPrototypeOf,Object),xe=Object.create,Se=ue.propertyIsEnumerable,Ce=ce.splice,we=Object.getOwnPropertySymbols,Te=_e?_e.isBuffer:void 0,Ee=se(Object.keys,Object),De=Qe(F,`DataView`),Oe=Qe(F,`Map`),ke=Qe(F,`Promise`),Ae=Qe(F,`Set`),je=Qe(F,`WeakMap`),Me=Qe(Object,`create`),Ne=rt(De),Pe=rt(Oe),Fe=rt(ke),Ie=rt(Ae),Le=rt(je),Re=ve?ve.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)&&me.call(e,`callee`)&&(!Se.call(e,`callee`)||he.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&&!me.call(e,o)||a&&(o==`length`||tt(o,r))||n.push(o);return n}function Ge(e,t,n){var r=e[t];me.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,_,A){var j;if(r&&(j=_?r(e,f,_,A):r(e)),j!==void 0)return j;if(!lt(e))return e;var N=at(e);if(N){if(j=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&me.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,j)}else{var P=et(e),F=P==s||P==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(P==d||P==i||F&&!_){if(ae(e))return _?e:{};if(j=function(e){return typeof e.constructor!=`function`||nt(e)?{}:(t=be(e),lt(t)?xe(t):{});var t}(F?{}:e),!t)return function(e,t){return Xe(e,$e(e),t)}(e,function(e,t){return e&&Xe(t,ut(t),e)}(j,e))}else{if(!M[P])return _?e:{};j=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 ie(t?n(oe(e),!0):oe(e),re,new e.constructor)}(e,r,n);case u:case h:return new i(e);case p:return function(e){var t=new e.constructor(e.source,k.exec(e));return t.lastIndex=e.lastIndex,t}(e);case m:return function(e,t,n){return ie(t?n(L(e),!0):L(e),I,new e.constructor)}(e,r,n);case g:return function(e){return ze?Object(ze.call(e)):{}}(e)}}(e,P,qe,t)}}A||=new Ue;var ee=A.get(e);if(ee)return ee;if(A.set(e,j),!N)var te=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););}(te||e,(function(i,a){te&&(i=e[a=i]),Ge(j,a,qe(i,t,n,r,a,e,A))})),j}function Je(e){return!(!lt(e)||function(e){return!!fe&&fe in e}(e))&&(ct(e)||ae(e)?ge:A).test(rt(e))}function Ye(e){var t=new e.constructor(e.byteLength);return new ye(t).set(new ye(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 me.call(t,e)?t[e]:void 0},Be.prototype.has=function(e){var t=this.__data__;return Me?t[e]!==void 0:me.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():Ce.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=we?se(we,Object):function(){return[]},et=function(e){return he.call(e)};function tt(e,t){return!!(t??=r)&&(typeof e==`number`||j.test(e))&&e>-1&&e%1==0&&e<t}function nt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||ue)}function rt(e){if(e!=null){try{return pe.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=he.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)?he.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))me.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return qe(e,!0,!0)}}));function Zv(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Xae=0;function Zae(e){return`__private_`+Xae+++`_`+e}function Qae(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 Qv(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=Qae(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var $v=(Jv=Zae(`apply`),class{constructor(e){Object.defineProperty(this,Jv,{value:$ae}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(Zv(this,Jv)[Jv],this):Zv(this,Jv)[Jv](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 Qv(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 Qv(n,t)}});function $ae(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 ey=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:eoe}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},ty=e=>crypto.getRandomValues(new Uint8Array(e)),ny=(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}}},toe={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)=>ny(e,t,ty),customRandom:ny,urlAlphabet:eoe,random:ty},ry=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 iy(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}iy.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 noe=/[\/\+\.]/,roe=function(e,t){function n(t){var n=function(e,t,n){var r=new iy(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,noe);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},ioe=0;function aoe(e){return`__private_`+ioe+++`_`+e}var ay=aoe(`publish`),oy=class{constructor(){Object.defineProperty(this,ay,{value:ooe}),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,ay)[ay](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function ooe(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}oy.VERSION=`2.0.3`;var sy=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)}},cy={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 ly(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var soe=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 uy(e){return e<10?`0${e}`:e.toString()}var dy=function(){let e=new Date;return`${uy(e.getHours())}:${uy(e.getMinutes())}:${uy(e.getSeconds())}`},fy={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${dy()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${dy()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${dy()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${dy()}]`,...e)}}},coe={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}`}}},py=toe,my,hy;function J(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var loe=0;function gy(e){return`__private_`+loe+++`_`+e}var{nanoid:uoe}=py,{justErrorsLogger:doe,debugLogger:foe}=fy,_y=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 poe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},vy=gy(`plugins`),yy=gy(`storeUnsubscribe`),by=gy(`emitter`),xy=gy(`preProcessors`),Sy=gy(`uploaders`),Cy=gy(`postProcessors`),wy=gy(`checkRestrictions`),Ty=gy(`checkMinNumberOfFiles`),Ey=gy(`checkRequiredMetaFieldsOnFile`),Dy=gy(`checkRequiredMetaFields`),Oy=gy(`showOrLogErrorAndThrow`),ky=gy(`assertNewUploadAllowed`),Ay=gy(`checkAndCreateFileStateObject`),jy=gy(`startIfAutoProceed`),My=gy(`addListeners`),Ny=gy(`updateOnlineStatus`),Py=gy(`createUpload`),Fy=gy(`getUpload`),Iy=gy(`removeUpload`),Ly=gy(`runUpload`);my=Symbol.for(`uppy test: getPlugins`),hy=Symbol.for(`uppy test: createUpload`);var Ry=class{constructor(e){Object.defineProperty(this,Ly,{value:Eoe}),Object.defineProperty(this,Iy,{value:Toe}),Object.defineProperty(this,Fy,{value:woe}),Object.defineProperty(this,Py,{value:Coe}),Object.defineProperty(this,My,{value:Soe}),Object.defineProperty(this,jy,{value:xoe}),Object.defineProperty(this,Ay,{value:boe}),Object.defineProperty(this,ky,{value:yoe}),Object.defineProperty(this,Oy,{value:voe}),Object.defineProperty(this,Dy,{value:_oe}),Object.defineProperty(this,Ey,{value:goe}),Object.defineProperty(this,Ty,{value:hoe}),Object.defineProperty(this,wy,{value:moe}),Object.defineProperty(this,vy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,yy,{writable:!0,value:void 0}),Object.defineProperty(this,by,{writable:!0,value:ey()}),Object.defineProperty(this,xy,{writable:!0,value:new Set}),Object.defineProperty(this,Sy,{writable:!0,value:new Set}),Object.defineProperty(this,Cy,{writable:!0,value:new Set}),Object.defineProperty(this,Ny,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=coe;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 oy,logger:doe,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=foe),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=n_(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:soe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),J(this,yy)[yy]=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),J(this,My)[My]()}emit(e){var t=[...arguments].slice(1);J(this,by)[by].emit(e,...t)}on(e,t){return J(this,by)[by].on(e,t),this}once(e,t){return J(this,by)[by].once(e,t),this}off(e,t){return J(this,by)[by].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(`Cant 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 $v([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){J(this,xy)[xy].add(e)}removePreProcessor(e){return J(this,xy)[xy].delete(e)}addPostProcessor(e){J(this,Cy)[Cy].add(e)}removePostProcessor(e){return J(this,Cy)[Cy].delete(e)}addUploader(e){J(this,Sy)[Sy].add(e)}removeUploader(e){return J(this,Sy)[Sy].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 J(this,wy)[wy](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){J(this,ky)[ky](e);let{files:t}=this.getState(),n=J(this,Ay)[Ay](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}`),J(this,jy)[jy](),n.id}addFiles(e){J(this,ky)[ky]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=J(this,Ay)[Ay](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&&J(this,jy)[jy](),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=>{let n={...e[t],isPaused:!0};e[t]=n})),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=>{let n={...e[t],isPaused:!1,error:null};e[t]=n})),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=>{let n={...e[t],isPaused:!1,error:null};e[t]=n})),this.setState({files:e,error:null}),this.emit(`retry-all`,t),t.length===0)return Promise.resolve({successful:[],failed:[]});let n=J(this,Py)[Py](t,{forceAllowNewUpload:!0});return J(this,Ly)[Ly](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=J(this,Py)[Py]([e],{forceAllowNewUpload:!0});return J(this,Ly)[Ly](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 J(this,vy)[vy]?J(this,vy)[vy][n.type].push(n):J(this,vy)[vy][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(J(this,vy)[vy])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[my](e){return J(this,vy)[vy][e]}iteratePlugins(e){Object.values(J(this,vy)[vy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=J(this,vy)[vy][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(),J(this,yy)[yy](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,J(this,Ny)[Ny]),window.removeEventListener(`offline`,J(this,Ny)[Ny]))}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]?J(this,Ly)[Ly](e):(J(this,Iy)[Iy](e),Promise.reject(Error(`Nonexistent upload`)))}[hy](){return J(this,Py)[Py](...arguments)}addResultData(e,t){if(!J(this,Fy)[Fy](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=J(this,vy)[vy].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((()=>{J(this,Ty)[Ty](t),J(this,Dy)[Dy](t)})).catch((e=>{J(this,Oy)[Oy](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=J(this,Py)[Py](r);return J(this,Ly)[Ly](i)})).catch((e=>{J(this,Oy)[Oy](e,{showInformer:!1})})))}};function moe(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 _y(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&roe(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new _y(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 _y(this.i18n(`exceedsSize`,{size:ry(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new _y(this.i18n(`exceedsSize`,{size:ry(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new _y(this.i18n(`inferiorSize`,{size:ry(r)}))}function hoe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new _y(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function goe(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 _y(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),J(this,Oy)[Oy](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function _oe(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return J(this,Ey)[Ey](t)}));if(t.length)throw new poe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function voe(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 yoe(e){let{allowNewUpload:t}=this.getState();!1===t&&J(this,Oy)[Oy](new _y(this.i18n(`noMoreFilesAllowed`)),{file:e})}function boe(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?sy(e.name).extension?.toLowerCase():null;return t&&t in cy?cy[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=sy(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${ly(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${ly(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 _y(this.i18n(`noDuplicates`,{fileName:r}));J(this,Oy)[Oy](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?J(this,Oy)[Oy](new _y(`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]));J(this,wy)[wy](l,t)}catch(e){J(this,Oy)[Oy](e,{file:l})}return l}function xoe(){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 Soe(){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}),J(this,Oy)[Oy](e,{throwErr:!1})}else J(this,Oy)[Oy](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:J(this,Cy)[Cy].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&&J(this,Ey)[Ey](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,J(this,Ny)[Ny]),window.addEventListener(`offline`,J(this,Ny)[Ny]),setTimeout(J(this,Ny)[Ny],3e3))}function Coe(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=uoe();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 woe(e){let{currentUploads:t}=this.getState();return t[e]}function Toe(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function Eoe(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...J(this,xy)[xy],...J(this,Sy)[Sy],...J(this,Cy)[Cy]];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),J(this,Iy)[Iy](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),J(this,Iy)[Iy](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}Ry.VERSION=`2.1.3`;var zy=Ry,Doe=wa((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,A(o,i,r,t.__n,o.ownerSVGElement!==void 0,i.__h==null?null:[a],n,a??y(i),i.__h),j(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}A(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)),P(S[f],S[f]));if(x)for(f=0;f<x.length;f++)N(x[f],x[++f],x[++f])}function w(e,t,n){for(var r,i=e.__k,a=0;i&&a<i.length;a++)(r=i[a])&&(r.__=e,t=typeof r.type==`function`?w(r,t,n):T(n,r,r,i,r.__e,t));return t}function T(e,t,n,r,i,a){var o,s,c;if(t.__d!==void 0)o=t.__d,t.__d=void 0;else if(n==null||i!=a||i.parentNode==null)e:if(a==null||a.parentNode!==e)e.appendChild(i),o=null;else{for(s=a,c=0;(s=s.nextSibling)&&c<r.length;c+=2)if(s==i)break e;e.insertBefore(i,a),o=a}return o===void 0?i.nextSibling:o}function E(e,t,n){t[0]===`-`?e.setProperty(t,n):e[t]=n==null?``:typeof n!=`number`||f.test(t)?n:n+`px`}function D(e,t,n,r,i){var a;e:if(t===`style`)if(typeof n==`string`)e.style.cssText=n;else{if(typeof r==`string`&&(e.style.cssText=r=``),r)for(t in r)n&&t in n||E(e.style,t,``);if(n)for(t in n)r&&n[t]===r[t]||E(e.style,t,n[t])}else if(t[0]===`o`&&t[1]===`n`)a=t!==(t=t.replace(/Capture$/,``)),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||={},e.l[t+a]=n,n?r||e.addEventListener(t,a?k:O,a):e.removeEventListener(t,a?k:O,a);else if(t!==`dangerouslySetInnerHTML`){if(i)t=t.replace(/xlink[H:h]/,`h`).replace(/sName$/,`s`);else if(t!==`href`&&t!==`list`&&t!==`form`&&t!==`tabIndex`&&t!==`download`&&t in e)try{e[t]=n??``;break e}catch{}typeof n==`function`||(n!=null&&(!1!==n||t[0]===`a`&&t[1]===`r`)?e.setAttribute(t,n):e.removeAttribute(t))}}function O(e){this.l[e.type+!1](r.event?r.event(e):e)}function k(e){this.l[e.type+!0](r.event?r.event(e):e)}function A(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=F),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=M(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 j(e,t){r.__c&&r.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){r.__e(e,t.__v)}}))}function M(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 N(e,t,n){try{typeof e==`function`?e(t):e.current=t}catch(e){r.__e(e,n)}}function P(e,t,n){var i,a;if(r.unmount&&r.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||N(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]&&P(i[a],t,typeof e.type!=`function`);n||e.__e==null||m(e.__e),e.__e=e.__d=void 0}function F(e,t,n){return this.constructor(e,n)}function ee(e,t,i){var a,o,s;r.__&&r.__(e,t),o=(a=typeof i==`function`)?null:i&&i.__k||t.__k,s=[],A(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),j(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){ee(t,n,e)},t.isValidElement=a,t.options=r,t.render=ee,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}})),Ooe=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},By=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 $v([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 Vy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var koe=0;function Aoe(e){return`__private_`+koe+++`_`+e}var{render:Hy}=Doe,Uy=Aoe(`updateUI`),joe=class e extends By{constructor(){super(...arguments),Object.defineProperty(this,Uy,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Ooe(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return Vy(this,Uy)[Uy]=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)&&(Hy(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),Hy(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=Vy(this,Uy))[Uy])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Moe}=fy,Wy=zy,Noe=zy,Poe=joe,Foe=By,Ioe=Moe;Wy.Uppy=Noe,Wy.UIPlugin=Poe,Wy.BasePlugin=Foe,Wy.debugLogger=Ioe;var Gy=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}},Ky=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new Gy(e)}))},Loe=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},qy,Jy,Yy,Xy,Zy,Roe=Loe;function Qy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var zoe=0;function $y(e){return`__private_`+zoe+++`_`+e}async function eb(e){if(e.status===401)throw new Roe;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 tb=(Jy=$y(`getPostResponseFunc`),Yy=$y(`getUrl`),Xy=$y(`errorHandler`),Zy=qy=class e{constructor(e,t){Object.defineProperty(this,Xy,{value:Voe}),Object.defineProperty(this,Yy,{value:Boe}),Object.defineProperty(this,Jy,{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(Qy(this,Yy)[Yy](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=>Ky(Qy(this,Yy)[Yy](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(Qy(this,Jy)[Jy](t)).then(eb).catch(Qy(this,Xy)[Xy](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>Ky(Qy(this,Yy)[Yy](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(Qy(this,Jy)[Jy](n)).then(eb).catch(Qy(this,Xy)[Xy](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>Ky(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(Qy(this,Jy)[Jy](n)).then(eb).catch(Qy(this,Xy)[Xy](r,e))}},qy.VERSION=`2.0.4`,qy.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${qy.VERSION}`},Zy);function Boe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function Voe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${Qy(this,Yy)[Yy](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Hoe={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()}))},nb,rb,ib,ab,ob,sb,cb;function lb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Uoe=0;function ub(e){return`__private_`+Uoe+++`_`+e}var Woe=(nb=ub(`queued`),rb=ub(`emitter`),ib=ub(`isOpen`),ab=ub(`socket`),ob=ub(`handleMessage`),sb=Symbol.for(`uppy test: getSocket`),cb=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,nb,{writable:!0,value:[]}),Object.defineProperty(this,rb,{writable:!0,value:ey()}),Object.defineProperty(this,ib,{writable:!0,value:!1}),Object.defineProperty(this,ab,{writable:!0,value:void 0}),Object.defineProperty(this,ob,{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 lb(this,ib)[ib]}[sb](){return lb(this,ab)[ab]}[cb](){return lb(this,nb)[nb]}open(){lb(this,ab)[ab]=new WebSocket(this.opts.target),lb(this,ab)[ab].onopen=()=>{for(lb(this,ib)[ib]=!0;lb(this,nb)[nb].length>0&&lb(this,ib)[ib];){let e=lb(this,nb)[nb].shift();this.send(e.action,e.payload)}},lb(this,ab)[ab].onclose=()=>{lb(this,ib)[ib]=!1},lb(this,ab)[ab].onmessage=lb(this,ob)[ob]}close(){var e;(e=lb(this,ab)[ab])==null||e.close()}send(e,t){lb(this,ib)[ib]?lb(this,ab)[ab].send(JSON.stringify({action:e,payload:t})):lb(this,nb)[nb].push({action:e,payload:t})}on(e,t){lb(this,rb)[rb].on(e,t)}emit(e,t){lb(this,rb)[rb].emit(e,t)}once(e,t){lb(this,rb)[rb].once(e,t)}}),Goe={RequestClient:tb,Provider:class extends tb{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||Hoe}},SearchProvider:class extends tb{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:Woe},db,fb,Koe=n_((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 pb(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 mb(e){return`__private_`+qoe+++`_`+e}var hb=(db=mb(`emitter`),fb=mb(`events`),class{constructor(e){Object.defineProperty(this,db,{writable:!0,value:void 0}),Object.defineProperty(this,fb,{writable:!0,value:[]}),pb(this,db)[db]=e}on(e,t){return pb(this,fb)[fb].push([e,t]),pb(this,db)[db].on(e,t)}remove(){for(let[e,t]of pb(this,fb)[fb].splice(0))pb(this,db)[db].off(e,t)}});function gb(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 _b(e){return`__private_`+Joe+++`_`+e}var vb=_b(`aliveTimer`),yb=_b(`isDone`),bb=_b(`onTimedOut`),xb=_b(`timeout`),Sb=class{constructor(e,t){Object.defineProperty(this,vb,{writable:!0,value:void 0}),Object.defineProperty(this,yb,{writable:!0,value:!1}),Object.defineProperty(this,bb,{writable:!0,value:void 0}),Object.defineProperty(this,xb,{writable:!0,value:void 0}),gb(this,xb)[xb]=e,gb(this,bb)[bb]=t}progress(){gb(this,yb)[yb]||gb(this,xb)[xb]>0&&(clearTimeout(gb(this,vb)[vb]),gb(this,vb)[vb]=setTimeout(gb(this,bb)[bb],gb(this,xb)[xb]))}done(){gb(this,yb)[yb]||(clearTimeout(gb(this,vb)[vb]),gb(this,vb)[vb]=null,gb(this,yb)[yb]=!0)}};function Cb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Yoe=0;function wb(e){return`__private_`+Yoe+++`_`+e}function Xoe(){return Error(`Cancelled`)}var Tb=wb(`activeRequests`),Eb=wb(`queuedHandlers`),Db=wb(`call`),Ob=wb(`queueNext`),kb=wb(`next`),Ab=wb(`queue`),jb=wb(`dequeue`);function Zoe(e){Cb(this,Tb)[Tb]+=1;let t,n=!1;try{t=e()}catch(e){throw--Cb(this,Tb)[Tb],e}return{abort:()=>{n||(n=!0,--Cb(this,Tb)[Tb],t(),Cb(this,Ob)[Ob]())},done:()=>{n||(n=!0,--Cb(this,Tb)[Tb],Cb(this,Ob)[Ob]())}}}function Qoe(){queueMicrotask((()=>Cb(this,kb)[kb]()))}function $oe(){if(Cb(this,Tb)[Tb]>=this.limit||Cb(this,Eb)[Eb].length===0)return;let e=Cb(this,Eb)[Eb].shift(),t=Cb(this,Db)[Db](e.fn);e.abort=t.abort,e.done=t.done}function ese(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{Cb(this,jb)[jb](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=Cb(this,Eb)[Eb].findIndex((e=>n.priority>e.priority));return r===-1?Cb(this,Eb)[Eb].push(n):Cb(this,Eb)[Eb].splice(r,0,n),n}function tse(e){let t=Cb(this,Eb)[Eb].indexOf(e);t!==-1&&Cb(this,Eb)[Eb].splice(t,1)}var nse={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,jb,{value:tse}),Object.defineProperty(this,Ab,{value:ese}),Object.defineProperty(this,kb,{value:$oe}),Object.defineProperty(this,Ob,{value:Qoe}),Object.defineProperty(this,Db,{value:Zoe}),Object.defineProperty(this,Tb,{writable:!0,value:0}),Object.defineProperty(this,Eb,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return Cb(this,Tb)[Tb]<this.limit?Cb(this,Db)[Db](e):Cb(this,Ab)[Ab](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=Xoe()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},Mb,Nb,Pb=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},rse={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:ise}=py,{Provider:ase,RequestClient:ose,Socket:sse}=Goe,{RateLimitedQueue:cse,internalRateLimitedQueue:Fb}=nse;function Ib(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})),Pb(e)?(n=new Gy(n,e),n):(n.request=e,n)}function Lb(e){return e.data.slice(0,e.data.size,e.meta.type)}var lse=(Nb=Mb=class extends By{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=rse;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 Pb(t)&&(n=new Gy(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),Fb in this.opts?this.requests=this.opts[Fb]:this.requests=new cse(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=Lb(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=Lb(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 hb(this.uppy);let o=new Sb(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=ise();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=Ib(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=Ib(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?ase:ose)(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 sse({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 hb(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=>Koe(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 Sb(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[Fb]||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("Cant 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)}},Mb.VERSION=`2.0.6`,Nb),Rb=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function zb(e){var t={exports:{}};return e(t,t.exports),t.exports}var Bb,Vb,Hb=function(e){return e&&e.Math==Math&&e},Y=Hb(typeof globalThis==`object`&&globalThis)||Hb(typeof window==`object`&&window)||Hb(typeof self==`object`&&self)||Hb(typeof Rb==`object`&&Rb)||function(){return this}()||Function(`return this`)(),use=Object.defineProperty,Ub=function(e,t){try{use(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},Wb=Y[`__core-js_shared__`]||Ub(`__core-js_shared__`,{}),Gb=zb((function(e){(e.exports=function(e,t){return Wb[e]||(Wb[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Kb=Function.prototype,qb=Kb.bind,Jb=Kb.call,dse=qb&&qb.bind(Jb),Yb=qb?function(e){return e&&dse(Jb,e)}:function(e){return e&&function(){return Jb.apply(e,arguments)}},fse=Y.TypeError,Xb=function(e){if(e==null)throw fse(`Can't call method on `+e);return e},pse=Y.Object,Zb=function(e){return pse(Xb(e))},mse=Yb({}.hasOwnProperty),Qb=Object.hasOwn||function(e,t){return mse(Zb(e),t)},hse=0,gse=Math.random(),_se=Yb(1 .toString),$b=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+_se(++hse+gse,36)},ex=function(e){return typeof e==`function`},vse=function(e){return ex(e)?e:void 0},tx=function(e,t){return arguments.length<2?vse(Y[e]):Y[e]&&Y[e][t]},nx=tx(`navigator`,`userAgent`)||``,rx=Y.process,ix=Y.Deno,ax=rx&&rx.versions||ix&&ix.version,ox=ax&&ax.v8;ox&&(Vb=(Bb=ox.split(`.`))[0]>0&&Bb[0]<4?1:+(Bb[0]+Bb[1])),!Vb&&nx&&(!(Bb=nx.match(/Edge\/(\d+)/))||Bb[1]>=74)&&(Bb=nx.match(/Chrome\/(\d+)/))&&(Vb=+Bb[1]);var sx=Vb,cx=function(e){try{return!!e()}catch{return!0}},lx=!!Object.getOwnPropertySymbols&&!cx((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&sx&&sx<41})),ux=lx&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,dx=Gb(`wks`),fx=Y.Symbol,px=fx&&fx.for,yse=ux?fx:fx&&fx.withoutSetter||$b,mx=function(e){if(!Qb(dx,e)||!lx&&typeof dx[e]!=`string`){var t=`Symbol.`+e;lx&&Qb(fx,e)?dx[e]=fx[e]:dx[e]=ux&&px?px(t):yse(t)}return dx[e]},hx={};hx[mx(`toStringTag`)]=`z`;var gx=String(hx)===`[object z]`,_x=!cx((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),vx=function(e){return typeof e==`object`?e!==null:ex(e)},yx=Y.document,bse=vx(yx)&&vx(yx.createElement),bx=function(e){return bse?yx.createElement(e):{}},xx=!_x&&!cx((function(){return Object.defineProperty(bx(`div`),"a",{get:function(){return 7}}).a!=7})),xse=Y.String,Sse=Y.TypeError,Sx=function(e){if(vx(e))return e;throw Sse(xse(e)+` is not an object`)},Cx=Function.prototype.call,wx=Cx.bind?Cx.bind(Cx):function(){return Cx.apply(Cx,arguments)},Tx=Yb({}.isPrototypeOf),Cse=Y.Object,Ex=ux?function(e){return typeof e==`symbol`}:function(e){var t=tx(`Symbol`);return ex(t)&&Tx(t.prototype,Cse(e))},wse=Y.String,Dx=function(e){try{return wse(e)}catch{return`Object`}},Tse=Y.TypeError,Ox=function(e){if(ex(e))return e;throw Tse(Dx(e)+` is not a function`)},kx=function(e,t){var n=e[t];return n==null?void 0:Ox(n)},Ese=Y.TypeError,Dse=Y.TypeError,Ose=mx(`toPrimitive`),Ax=function(e){var t=function(e,t){if(!vx(e)||Ex(e))return e;var n,r=kx(e,Ose);if(r){if(t===void 0&&(t=`default`),n=wx(r,e,t),!vx(n)||Ex(n))return n;throw Dse(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ex(n=e.toString)&&!vx(r=wx(n,e))||ex(n=e.valueOf)&&!vx(r=wx(n,e))||t!==`string`&&ex(n=e.toString)&&!vx(r=wx(n,e)))return r;throw Ese(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Ex(t)?t:t+``},kse=Y.TypeError,jx=Object.defineProperty,Mx={f:_x?jx:function(e,t,n){if(Sx(e),t=Ax(t),Sx(n),xx)try{return jx(e,t,n)}catch{}if(`get`in n||`set`in n)throw kse(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Nx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Px=_x?function(e,t,n){return Mx.f(e,t,Nx(1,n))}:function(e,t,n){return e[t]=n,e},Ase=Yb(Function.toString);ex(Wb.inspectSource)||(Wb.inspectSource=function(e){return Ase(e)});var Fx,Ix,Lx,Rx=Wb.inspectSource,zx=Y.WeakMap,Bx=ex(zx)&&/native code/.test(Rx(zx)),Vx=Gb(`keys`),Hx=function(e){return Vx[e]||(Vx[e]=$b(e))},Ux={},Wx=Y.TypeError,jse=Y.WeakMap;if(Bx||Wb.state){var Gx=Wb.state||=new jse,Mse=Yb(Gx.get),Kx=Yb(Gx.has),Nse=Yb(Gx.set);Fx=function(e,t){if(Kx(Gx,e))throw new Wx(`Object already initialized`);return t.facade=e,Nse(Gx,e,t),t},Ix=function(e){return Mse(Gx,e)||{}},Lx=function(e){return Kx(Gx,e)}}else{var qx=Hx(`state`);Ux[qx]=!0,Fx=function(e,t){if(Qb(e,qx))throw new Wx(`Object already initialized`);return t.facade=e,Px(e,qx,t),t},Ix=function(e){return Qb(e,qx)?e[qx]:{}},Lx=function(e){return Qb(e,qx)}}var Jx={set:Fx,get:Ix,has:Lx,enforce:function(e){return Lx(e)?Ix(e):Fx(e,{})},getterFor:function(e){return function(t){var n;if(!vx(t)||(n=Ix(t)).type!==e)throw Wx(`Incompatible receiver, `+e+` required`);return n}}},Yx=Function.prototype,Pse=_x&&Object.getOwnPropertyDescriptor,Xx=Qb(Yx,`name`),Zx={EXISTS:Xx,PROPER:Xx&&function(){}.name===`something`,CONFIGURABLE:Xx&&(!_x||_x&&Pse(Yx,`name`).configurable)},Qx=zb((function(e){var t=Zx.CONFIGURABLE,n=Jx.get,r=Jx.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;ex(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Qb(a,`name`)||t&&a.name!==d)&&Px(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Y?l?e[n]=a:Ub(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Px(e,n,a))})(Function.prototype,`toString`,(function(){return ex(this)&&n(this).source||Rx(this)}))})),Fse=Yb({}.toString),Ise=Yb(``.slice),$x=function(e){return Ise(Fse(e),8,-1)},Lse=mx(`toStringTag`),Rse=Y.Object,zse=$x(function(){return arguments}())==`Arguments`,eS=gx?$x: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=Rse(e),Lse))==`string`?n:zse?$x(t):(r=$x(t))==`Object`&&ex(t.callee)?`Arguments`:r},Bse=gx?{}.toString:function(){return`[object `+eS(this)+`]`};gx||Qx(Object.prototype,`toString`,Bse,{unsafe:!0});var tS={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},nS=bx(`span`).classList,rS=nS&&nS.constructor&&nS.constructor.prototype,iS=rS===Object.prototype?void 0:rS,aS=Yb(Yb.bind),oS=function(e,t){return Ox(e),t===void 0?e:aS?aS(e,t):function(){return e.apply(t,arguments)}},sS=Y.Object,Vse=Yb(``.split),cS=cx((function(){return!sS(`z`).propertyIsEnumerable(0)}))?function(e){return $x(e)==`String`?Vse(e,``):sS(e)}:sS,Hse=Math.ceil,Use=Math.floor,lS=function(e){var t=+e;return t!=t||t===0?0:(t>0?Use:Hse)(t)},Wse=Math.min,uS=function(e){return e>0?Wse(lS(e),9007199254740991):0},dS=function(e){return uS(e.length)},fS=Array.isArray||function(e){return $x(e)==`Array`},pS=function(){},Gse=[],mS=tx(`Reflect`,`construct`),hS=/^\s*(?:class|function)\b/,Kse=Yb(hS.exec),qse=!hS.exec(pS),gS=function(e){if(!ex(e))return!1;try{return mS(pS,Gse,e),!0}catch{return!1}},_S=!mS||cx((function(){var e;return gS(gS.call)||!gS(Object)||!gS((function(){e=!0}))||e}))?function(e){if(!ex(e))return!1;switch(eS(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return qse||!!Kse(hS,Rx(e))}:gS,Jse=mx(`species`),vS=Y.Array,yS=function(e,t){return new(function(e){var t;return fS(e)&&(t=e.constructor,(_S(t)&&(t===vS||fS(t.prototype))||vx(t)&&(t=t[Jse])===null)&&(t=void 0)),t===void 0?vS:t}(e))(t===0?0:t)},bS=Yb([].push),xS=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=Zb(c),h=cS(m),g=oS(l,u),_=dS(h),v=0,y=d||yS,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:bS(b,f)}else switch(e){case 4:return!1;case 7:bS(b,f)}return a?-1:r||i?i:b}},SS={forEach:xS(0),map:xS(1),filter:xS(2),some:xS(3),every:xS(4),find:xS(5),findIndex:xS(6),filterReject:xS(7)},CS=function(e,t){var n=[][e];return!!n&&cx((function(){n.call(null,t||function(){throw 1},1)}))},Yse=SS.forEach,wS=CS(`forEach`)?[].forEach:function(e){return Yse(this,e,arguments.length>1?arguments[1]:void 0)},TS=function(e){if(e&&e.forEach!==wS)try{Px(e,`forEach`,wS)}catch{e.forEach=wS}};for(var ES in tS)tS[ES]&&TS(Y[ES]&&Y[ES].prototype);TS(iS);var DS={}.propertyIsEnumerable,OS=Object.getOwnPropertyDescriptor,kS={f:OS&&!DS.call({1:2},1)?function(e){var t=OS(this,e);return!!t&&t.enumerable}:DS},AS=function(e){return cS(Xb(e))},jS=Object.getOwnPropertyDescriptor,MS={f:_x?jS:function(e,t){if(e=AS(e),t=Ax(t),xx)try{return jS(e,t)}catch{}if(Qb(e,t))return Nx(!wx(kS.f,e,t),e[t])}},Xse=Math.max,Zse=Math.min,NS=function(e,t){var n=lS(e);return n<0?Xse(n+t,0):Zse(n,t)},PS=function(e){return function(t,n,r){var i,a=AS(t),o=dS(a),s=NS(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}},FS={includes:PS(!0),indexOf:PS(!1)},Qse=FS.indexOf,IS=Yb([].push),LS=function(e,t){var n,r=AS(e),i=0,a=[];for(n in r)!Qb(Ux,n)&&Qb(r,n)&&IS(a,n);for(;t.length>i;)Qb(r,n=t[i++])&&(~Qse(a,n)||IS(a,n));return a},RS=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],$se=RS.concat(`length`,`prototype`),zS={f:Object.getOwnPropertyNames||function(e){return LS(e,$se)}},BS={f:Object.getOwnPropertySymbols},ece=Yb([].concat),tce=tx(`Reflect`,`ownKeys`)||function(e){var t=zS.f(Sx(e)),n=BS.f;return n?ece(t,n(e)):t},nce=function(e,t){for(var n=tce(t),r=Mx.f,i=MS.f,a=0;a<n.length;a++){var o=n[a];Qb(e,o)||r(e,o,i(t,o))}},rce=/#|\.prototype\./,VS=function(e,t){var n=ace[ice(e)];return n==sce||n!=oce&&(ex(t)?cx(t):!!t)},ice=VS.normalize=function(e){return String(e).replace(rce,`.`).toLowerCase()},ace=VS.data={},oce=VS.NATIVE=`N`,sce=VS.POLYFILL=`P`,HS=VS,cce=MS.f,US=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Y:l?Y[s]||Ub(s,{}):(Y[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=cce(n,r))&&o.value:n[r],!HS(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;nce(a,i)}(e.sham||i&&i.sham)&&Px(a,`sham`,!0),Qx(n,r,a,e)}},WS=Object.keys||function(e){return LS(e,RS)},lce=cx((function(){WS(1)}));function GS(e){return Object.prototype.toString.call(e)===`[object Object]`}US({target:`Object`,stat:!0,forced:lce},{keys:function(e){return WS(Zb(e))}});var uce={isHistory(e){return!1!==GS(t=e)&&((n=t.constructor)===void 0||!1!==GS(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Tm.isOperationList(e.redos[0]))&&(e.undos.length===0||Tm.isOperationList(e.undos[0]));var t,n,r}},KS=new WeakMap,qS=new WeakMap,JS={isHistoryEditor:e=>uce.isHistory(e.history)&&V.isEditor(e),isMerging:e=>qS.get(e),isSaving:e=>KS.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=JS.isMerging(e);qS.set(e,!1),t(),qS.set(e,n)},withoutSaving(e,t){var n=JS.isSaving(e);KS.set(e,!1),t(),KS.set(e,n)}},dce=Y.String,YS=function(e){if(eS(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return dce(e)},XS=function(){var e=Sx(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},fce=Zx.PROPER,ZS=RegExp.prototype,QS=ZS.toString,pce=Yb(XS),mce=cx((function(){return QS.call({source:`a`,flags:`b`})!=`/a/b`})),hce=fce&&QS.name!=`toString`;(mce||hce)&&Qx(RegExp.prototype,`toString`,(function(){var e=Sx(this),t=YS(e.source),n=e.flags;return`/`+t+`/`+YS(n===void 0&&Tx(ZS,e)&&!(`flags`in ZS)?pce(e):n)}),{unsafe:!0});var $S,gce=_x?Object.defineProperties:function(e,t){Sx(e);for(var n,r=AS(t),i=WS(t),a=i.length,o=0;a>o;)Mx.f(e,n=i[o++],r[n]);return e},eC=tx(`document`,`documentElement`),tC=Hx(`IE_PROTO`),nC=function(){},rC=function(e){return`<script>`+e+`<\/script>`},iC=function(e){e.write(rC(``)),e.close();var t=e.parentWindow.Object;return e=null,t},aC=function(){try{$S=new ActiveXObject(`htmlfile`)}catch{}var e,t;aC=typeof document<`u`?document.domain&&$S?iC($S):((t=bx(`iframe`)).style.display=`none`,eC.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(rC(`document.F=Object`)),e.close(),e.F):iC($S);for(var n=RS.length;n--;)delete aC.prototype[RS[n]];return aC()};Ux[tC]=!0;var oC=Object.create||function(e,t){var n;return e===null?n=aC():(nC.prototype=Sx(e),n=new nC,nC.prototype=null,n[tC]=e),t===void 0?n:gce(n,t)},sC=mx(`unscopables`),cC=Array.prototype;cC[sC]??Mx.f(cC,sC,{configurable:!0,value:oC(null)});var lC=function(e){cC[sC][e]=!0},_ce=FS.includes;US({target:`Array`,proto:!0},{includes:function(e){return _ce(this,e,arguments.length>1?arguments[1]:void 0)}}),lC(`includes`);var vce=mx(`match`),uC=function(e){var t;return vx(e)&&((t=e[vce])===void 0?$x(e)==`RegExp`:!!t)},yce=Y.TypeError,dC=function(e){if(uC(e))throw yce(`The method doesn't accept regular expressions`);return e},bce=mx(`match`),fC=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[bce]=!1,`/./`[e](t)}catch{}}return!1},xce=Yb(``.indexOf);US({target:`String`,proto:!0,forced:!fC(`includes`)},{includes:function(e){return!!~xce(YS(Xb(this)),YS(dC(e)),arguments.length>1?arguments[1]:void 0)}});var Sce=/"/g,Cce=Yb(``.replace);US({target:`String`,proto:!0,forced:cx((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=YS(Xb(this)),r=`<a`,(r+=` name="`+Cce(YS(t),Sce,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var pC=function(e,t,n){var r,i;Sx(e);try{if(!(r=kx(e,`return`))){if(t===`throw`)throw n;return n}r=wx(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Sx(r),n},wce=function(e,t,n,r){try{return r?t(Sx(n)[0],n[1]):t(n)}catch(t){pC(e,`throw`,t)}},mC={},Tce=mx(`iterator`),Ece=Array.prototype,hC=function(e){return e!==void 0&&(mC.Array===e||Ece[Tce]===e)},gC=function(e,t,n){var r=Ax(t);r in e?Mx.f(e,r,Nx(0,n)):e[r]=n},Dce=mx(`iterator`),_C=function(e){if(e!=null)return kx(e,Dce)||kx(e,`@@iterator`)||mC[eS(e)]},Oce=Y.TypeError,vC=function(e,t){var n=arguments.length<2?_C(e):t;if(Ox(n))return Sx(wx(n,e));throw Oce(Dx(e)+` is not iterable`)},yC=Y.Array,bC=mx(`iterator`),xC=!1;try{var kce=0,SC={next:function(){return{done:!!kce++}},return:function(){xC=!0}};SC[bC]=function(){return this},Array.from(SC,(function(){throw 2}))}catch{}var CC=function(e,t){if(!t&&!xC)return!1;var n=!1;try{var r={};r[bC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};US({target:`Array`,stat:!0,forced:!CC((function(e){Array.from(e)}))},{from:function(e){var t=Zb(e),n=_S(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=oS(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=_C(t),p=0;if(!f||this==yC&&hC(f))for(o=dS(t),s=n?new this(o):yC(o);o>p;p++)d=a?i(t[p],p):t[p],gC(s,p,d);else for(u=(l=vC(t,f)).next,s=n?new this:[];!(c=wx(u,l)).done;p++)d=a?wce(l,i,[c.value,p],!0):c.value,gC(s,p,d);return s.length=p,s}});var wC,TC,EC,Ace=Yb(``.charAt),DC=Yb(``.charCodeAt),jce=Yb(``.slice),OC=function(e){return function(t,n){var r,i,a=YS(Xb(t)),o=lS(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=DC(a,o))<55296||r>56319||o+1===s||(i=DC(a,o+1))<56320||i>57343?e?Ace(a,o):r:e?jce(a,o,o+2):i-56320+(r-55296<<10)+65536}},kC={codeAt:OC(!1),charAt:OC(!0)},Mce=!cx((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),AC=Hx(`IE_PROTO`),jC=Y.Object,Nce=jC.prototype,MC=Mce?jC.getPrototypeOf:function(e){var t=Zb(e);if(Qb(t,AC))return t[AC];var n=t.constructor;return ex(n)&&t instanceof n?n.prototype:t instanceof jC?Nce:null},NC=mx(`iterator`),PC=!1;[].keys&&(`next`in(EC=[].keys())?(TC=MC(MC(EC)))!==Object.prototype&&(wC=TC):PC=!0),(wC==null||cx((function(){var e={};return wC[NC].call(e)!==e})))&&(wC={}),ex(wC[NC])||Qx(wC,NC,(function(){return this}));var FC={IteratorPrototype:wC,BUGGY_SAFARI_ITERATORS:PC},Pce=Mx.f,IC=mx(`toStringTag`),LC=function(e,t,n){e&&!Qb(e=n?e:e.prototype,IC)&&Pce(e,IC,{configurable:!0,value:t})},Fce=FC.IteratorPrototype,Ice=function(){return this},Lce=Y.String,Rce=Y.TypeError,RC=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Yb(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Sx(n),function(e){if(typeof e==`object`||ex(e))return e;throw Rce(`Can't set `+Lce(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),zce=Zx.PROPER,Bce=Zx.CONFIGURABLE,zC=FC.IteratorPrototype,BC=FC.BUGGY_SAFARI_ITERATORS,VC=mx(`iterator`),Vce=function(){return this},HC=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=oC(Fce,{next:Nx(1,n)}),LC(e,i,!1),mC[i]=Ice})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!BC&&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[VC]||p[`@@iterator`]||i&&p[i],h=!BC&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=MC(g.call(new e)))!==Object.prototype&&s.next&&(MC(s)!==zC&&(RC?RC(s,zC):ex(s[VC])||Qx(s,VC,Vce)),LC(s,d,!0)),zce&&i==`values`&&m&&m.name!==`values`&&(Bce?Px(p,`name`,`values`):(f=!0,h=function(){return wx(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(BC||f||!(l in p))&&Qx(p,l,c[l]);else US({target:t,proto:!0,forced:BC||f},c);return p[VC]!==h&&Qx(p,VC,h,{name:i}),mC[t]=h,c},Hce=kC.charAt,Uce=Jx.set,Wce=Jx.getterFor(`String Iterator`);HC(String,`String`,(function(e){Uce(this,{type:`String Iterator`,string:YS(e),index:0})}),(function(){var e,t=Wce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Hce(n,r),t.index+=e.length,{value:e,done:!1})}));var UC,Gce=MS.f,WC=Yb(``.endsWith),Kce=Yb(``.slice),qce=Math.min,GC=fC(`endsWith`);US({target:`String`,proto:!0,forced:!!(GC||(UC=Gce(String.prototype,`endsWith`),!UC||UC.writable))&&!GC},{endsWith:function(e){var t=YS(Xb(this));dC(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:qce(uS(n),r),a=YS(e);return WC?WC(t,a,i):Kce(t,i-a.length,i)===a}});var Jce=Yb([].join),Yce=cS!=Object,Xce=CS(`join`,`,`);US({target:`Array`,proto:!0,forced:Yce||!Xce},{join:function(e){return Jce(AS(this),e===void 0?`,`:e)}});var Zce=mx(`species`),KC=function(e){return sx>=51||!cx((function(){var t=[];return(t.constructor={})[Zce]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Qce=SS.map;US({target:`Array`,proto:!0,forced:!KC(`map`)},{map:function(e){return Qce(this,e,arguments.length>1?arguments[1]:void 0)}});var qC=Y.RegExp,JC=cx((function(){var e=qC(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),$ce=JC||cx((function(){return!qC(`a`,`y`).sticky})),YC={BROKEN_CARET:JC||cx((function(){var e=qC(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:$ce,UNSUPPORTED_Y:JC},ele=Y.RegExp,XC=cx((function(){var e=ele(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),tle=Y.RegExp,ZC=cx((function(){var e=tle(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),nle=Jx.get,rle=Gb(`native-string-replace`,String.prototype.replace),QC=RegExp.prototype.exec,$C=QC,ile=Yb(``.charAt),ale=Yb(``.indexOf),ole=Yb(``.replace),ew=Yb(``.slice),tw=function(){var e=/a/,t=/b*/g;return wx(QC,e,`a`),wx(QC,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),nw=YC.BROKEN_CARET,rw=/()??/.exec(``)[1]!==void 0;(tw||rw||nw||XC||ZC)&&($C=function(e){var t,n,r,i,a,o,s,c=this,l=nle(c),u=YS(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=wx($C,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=nw&&c.sticky,m=wx(XS,c),h=c.source,g=0,_=u;if(p&&(m=ole(m,`y`,``),ale(m,`g`)===-1&&(m+=`g`),_=ew(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ile(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),rw&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),tw&&(r=c.lastIndex),i=wx(QC,p?n:c,_),p?i?(i.input=ew(i.input,g),i[0]=ew(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:tw&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),rw&&i&&i.length>1&&wx(rle,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=oC(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var iw=$C;US({target:`RegExp`,proto:!0,forced:/./.exec!==iw},{exec:iw});var aw=Function.prototype,ow=aw.apply,sle=aw.bind,sw=aw.call,cw=typeof Reflect==`object`&&Reflect.apply||(sle?sw.bind(ow):function(){return sw.apply(ow,arguments)}),cle=mx(`species`),lw=RegExp.prototype,uw=function(e,t,n,r){var i=mx(e),a=!cx((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!cx((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[cle]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=Yb(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Yb(e),c=t.exec;return c===iw||c===lw.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Qx(String.prototype,e,c[0]),Qx(lw,i,c[1])}r&&Px(lw[i],`sham`,!0)},lle=kC.charAt,dw=function(e,t,n){return t+(n?lle(e,t).length:1)},ule=Math.floor,fw=Yb(``.charAt),dle=Yb(``.replace),pw=Yb(``.slice),fle=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ple=/\$([$&'`]|\d{1,2})/g,mle=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=ple;return i!==void 0&&(i=Zb(i),c=fle),dle(a,c,(function(a,c){var l;switch(fw(c,0)){case`$`:return`$`;case`&`:return e;case"`":return pw(t,0,n);case`'`:return pw(t,o);case`<`:l=i[pw(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=ule(u/10);return d===0?a:d<=s?r[d-1]===void 0?fw(c,1):r[d-1]+fw(c,1):a}l=r[u-1]}return l===void 0?``:l}))},hle=Y.TypeError,mw=function(e,t){var n=e.exec;if(ex(n)){var r=wx(n,e,t);return r!==null&&Sx(r),r}if($x(e)===`RegExp`)return wx(iw,e,t);throw hle(`RegExp#exec called on incompatible receiver`)},hw=mx(`replace`),gle=Math.max,_le=Math.min,vle=Yb([].concat),gw=Yb([].push),_w=Yb(``.indexOf),vw=Yb(``.slice),yle=`a`.replace(/./,`$0`)===`$0`,yw=!!/./[hw]&&/./[hw](`a`,`$0`)===``;uw(`replace`,(function(e,t,n){var r=yw?`$`:`$0`;return[function(e,n){var r=Xb(this),i=e==null?void 0:kx(e,hw);return i?wx(i,e,r,n):wx(t,YS(r),e,n)},function(e,i){var a=Sx(this),o=YS(e);if(typeof i==`string`&&_w(i,r)===-1&&_w(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ex(i);c||(i=YS(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=mw(a,o);if(f===null||(gw(d,f),!l))break;YS(f[0])===``&&(a.lastIndex=dw(o,uS(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=YS((f=d[g])[0]),v=gle(_le(lS(f.index),o.length),0),y=[],b=1;b<f.length;b++)gw(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=vle([_],y,v,o);x!==void 0&&gw(S,x);var C=YS(cw(i,void 0,S))}else C=mle(_,o,v,y,x,i);v>=h&&(m+=vw(o,h,v)+C,h=v+_.length)}return m+vw(o,h)}]}),!!cx((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!yle||yw);var bw=function(e,t){return bw=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])},bw(e,t)};function xw(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}bw(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Sw=function(){return Sw=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},Sw.apply(this,arguments)};function Cw(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function ww(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 Tw(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var ble=0,Ew=function(){this.id=``+ble++},Dw=Jx.set,Ow=Jx.getterFor(`Array Iterator`),kw=HC(Array,`Array`,(function(e,t){Dw(this,{type:`Array Iterator`,target:AS(e),index:0,kind:t})}),(function(){var e=Ow(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`);mC.Arguments=mC.Array,lC(`keys`),lC(`values`),lC(`entries`);var Aw=function(e,t,n){for(var r in t)Qx(e,r,t[r],n);return e},jw=Y.Array,xle=Math.max,Mw=function(e,t,n){for(var r=dS(e),i=NS(t,r),a=NS(n===void 0?r:n,r),o=jw(xle(a-i,0)),s=0;i<a;i++,s++)gC(o,s,e[i]);return o.length=s,o},Nw=zS.f,Pw=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Sle={f:function(e){return Pw&&$x(e)==`Window`?function(e){try{return Nw(e)}catch{return Mw(Pw)}}(e):Nw(AS(e))}},Fw=cx((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Iw=Object.isExtensible,Lw=cx((function(){Iw(1)}))||Fw?function(e){return!!vx(e)&&(!Fw||$x(e)!=`ArrayBuffer`)&&(!Iw||Iw(e))}:Iw,Rw=!cx((function(){return Object.isExtensible(Object.preventExtensions({}))})),zw=zb((function(e){var t=Mx.f,n=!1,r=$b(`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=zS.f,t=Yb([].splice),i={};i[r]=1,e(i).length&&(zS.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},US({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Sle.f}))},fastKey:function(e,t){if(!vx(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!Qb(e,r)){if(!Lw(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!Qb(e,r)){if(!Lw(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Rw&&n&&Lw(e)&&!Qb(e,r)&&a(e),e}};Ux[r]=!0})),Bw=Y.TypeError,Vw=function(e,t){this.stopped=e,this.result=t},Hw=Vw.prototype,Uw=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=oS(t,u),h=function(e){return r&&pC(r,`normal`,e),new Vw(!0,e)},g=function(e){return d?(Sx(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=_C(e)))throw Bw(Dx(e)+` is not iterable`);if(hC(i)){for(a=0,o=dS(e);o>a;a++)if((s=g(e[a]))&&Tx(Hw,s))return s;return new Vw(!1)}r=vC(e,i)}for(c=r.next;!(l=wx(c,r)).done;){try{s=g(l.value)}catch(e){pC(r,`throw`,e)}if(typeof s==`object`&&s&&Tx(Hw,s))return s}return new Vw(!1)},Ww=Y.TypeError,Gw=function(e,t){if(Tx(t,e))return e;throw Ww(`Incorrect invocation`)},Kw=function(e,t,n){var r,i;return RC&&ex(r=t.constructor)&&r!==n&&vx(i=r.prototype)&&i!==n.prototype&&RC(e,i),e},qw=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Y[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=Yb(s[e]);Qx(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!vx(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!vx(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!vx(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(HS(e,!ex(o)||!(i||s.forEach&&!cx((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),zw.enable();else if(HS(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=cx((function(){d.has(1)})),m=CC((function(e){new o(e)})),h=!i&&cx((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){Gw(e,s);var n=Kw(new o,e,c);return t!=null&&Uw(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,US({global:!0,forced:c!=o},l),LC(c,e),i||n.setStrong(c,e,r),c},Jw=zw.getWeakData,Yw=Jx.set,Xw=Jx.getterFor,Zw=SS.find,Qw=SS.findIndex,$w=Yb([].splice),eT=0,tT=function(e){return e.frozen||=new nT},nT=function(){this.entries=[]},rT=function(e,t){return Zw(e.entries,(function(e){return e[0]===t}))};nT.prototype={get:function(e){var t=rT(this,e);if(t)return t[1]},has:function(e){return!!rT(this,e)},set:function(e,t){var n=rT(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Qw(this.entries,(function(t){return t[0]===e}));return~t&&$w(this.entries,t,1),!!~t}};var iT,aT={getConstructor:function(e,t,n,r){var i=e((function(e,i){Gw(e,a),Yw(e,{type:t,id:eT++,frozen:void 0}),i!=null&&Uw(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Xw(t),s=function(e,t,n){var r=o(e),i=Jw(Sx(t),!0);return!0===i?tT(r).set(t,n):i[r.id]=n,e};return Aw(a,{delete:function(e){var t=o(this);if(!vx(e))return!1;var n=Jw(e);return!0===n?tT(t).delete(e):n&&Qb(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!vx(e))return!1;var n=Jw(e);return!0===n?tT(t).has(e):n&&Qb(n,t.id)}}),Aw(a,n?{get:function(e){var t=o(this);if(vx(e)){var n=Jw(e);return!0===n?tT(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}},oT=Jx.enforce,Cle=!Y.ActiveXObject&&`ActiveXObject`in Y,sT=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},wle=qw(`WeakMap`,sT,aT);if(Bx&&Cle){iT=aT.getConstructor(sT,`WeakMap`,!0),zw.enable();var cT=wle.prototype,lT=Yb(cT.delete),uT=Yb(cT.has),dT=Yb(cT.get),fT=Yb(cT.set);Aw(cT,{delete:function(e){if(vx(e)&&!Lw(e)){var t=oT(this);return t.frozen||=new iT,lT(this,e)||t.frozen.delete(e)}return lT(this,e)},has:function(e){if(vx(e)&&!Lw(e)){var t=oT(this);return t.frozen||=new iT,uT(this,e)||t.frozen.has(e)}return uT(this,e)},get:function(e){if(vx(e)&&!Lw(e)){var t=oT(this);return t.frozen||=new iT,uT(this,e)?dT(this,e):t.frozen.get(e)}return dT(this,e)},set:function(e,t){if(vx(e)&&!Lw(e)){var n=oT(this);n.frozen||=new iT,uT(this,e)?fT(this,e,t):n.frozen.set(e,t)}else fT(this,e,t);return this}})}var pT=mx(`iterator`),mT=mx(`toStringTag`),hT=kw.values,gT=function(e,t){if(e){if(e[pT]!==hT)try{Px(e,pT,hT)}catch{e[pT]=hT}if(e[mT]||Px(e,mT,t),tS[t]){for(var n in kw)if(e[n]!==kw[n])try{Px(e,n,kw[n])}catch{e[n]=kw[n]}}}};for(var _T in tS)gT(Y[_T]&&Y[_T].prototype,_T);gT(iS,`DOMTokenList`);var vT=new WeakMap,yT=new WeakMap,bT=new WeakMap,xT=new WeakMap,ST=new WeakMap,CT=new WeakMap,wT=new WeakMap,TT=new WeakMap,ET=new WeakMap,DT=new WeakMap,OT=new WeakMap,kT=new WeakMap,AT=new WeakMap,jT=new WeakMap,MT=new WeakMap,NT=new WeakMap,PT=new WeakMap,FT=new WeakMap,IT=new WeakMap,LT=new WeakMap,RT=new WeakMap,zT=new WeakMap,BT=new WeakMap,VT=new WeakMap,HT=new WeakMap,UT=SS.find,WT=!0;`find`in[]&&[,].find((function(){WT=!1})),US({target:`Array`,proto:!0,forced:WT},{find:function(e){return UT(this,e,arguments.length>1?arguments[1]:void 0)}}),lC(`find`),US({global:!0},{globalThis:Y});var GT=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];ng&&(q.fn.css=ng),cg&&(q.fn.append=cg),Hh&&(q.fn.addClass=Hh),Uh&&(q.fn.removeClass=Uh),Wh&&(q.fn.hasClass=Wh),Yh&&(q.fn.on=Yh),yg&&(q.fn.focus=yg),Gh&&(q.fn.attr=Gh),Kh&&(q.fn.removeAttr=Kh),eg&&(q.fn.hide=eg),tg&&(q.fn.show=tg),$h&&(q.fn.offset=$h),Zh&&(q.fn.width=Zh),Qh&&(q.fn.height=Qh),ug&&(q.fn.parent=ug),dg&&(q.fn.parents=dg),sg&&(q.fn.is=sg),qh&&(q.fn.dataset=qh),Jh&&(q.fn.val=Jh),og&&(q.fn.text=og),ag&&(q.fn.html=ag),pg&&(q.fn.children=pg),mg&&(q.fn.remove=mg),fg&&(q.fn.find=fg),rg&&(q.fn.each=rg),hg&&(q.fn.empty=hg);var KT,qT,JT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},YT=function(e){return XT(e)&&e.nodeType===1},XT=function(e){var t=JT(e);return!!t&&e instanceof t.Node},ZT=function(e){var t=e&&e.anchorNode&&JT(e.anchorNode);return!!t&&e instanceof t.Selection},QT=function(e){return XT(e)&&e.nodeType===3},$T=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},eE=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;(XT(r=a)&&r.nodeType===8||YT(a)&&a.childNodes.length===0||YT(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]},tE=function(e,t,n){return ww(eE(e,t,n),1)[0]},nE=function e(t){var n,r,i=``;if(QT(t)&&t.nodeValue)return t.nodeValue;if(YT(t)){try{for(var a=Cw(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 rE(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||rE(i,t)}}function iE(e){if(e.length===0)return``;var t=e[0];return t.nodeType===KT.ELEMENT_NODE?t.tagName.toLowerCase():``}(qT=KT||={})[qT.ELEMENT_NODE=1]=`ELEMENT_NODE`,qT[qT.TEXT_NODE=3]=`TEXT_NODE`,qT[qT.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,qT[qT.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,qT[qT.COMMENT_NODE=8]=`COMMENT_NODE`,qT[qT.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,qT[qT.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,qT[qT.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 aE=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),oE=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 sE=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Tle=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Ele=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),cE=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var lE=!Ele&&!Tle&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=RT.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=LT.get(t);return n||(n=new Ew,LT.set(t,n)),n},setNewKey:function(e){var t=new Ew;LT.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=MT.get(r);if(i==null){if(V.isEditor(r))return n;break}var a=jT.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 MT.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 H.get(e,n)},toDOMNode:function(e,t){var n;if(V.isEditor(t))n=NT.get(e);else{var r=X.findKey(e,t);n=FT.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=YT(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=W.isBackward(t),a=X.toDOMPoint(e,n),o=W.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=ww(i?o:a,2),l=c[0],u=c[1],d=ww(i?a:o,2),f=d[0],p=d[1],m=!!(YT(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(YT(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=ww(V.node(e,t.path),1)[0],o=X.toDOMNode(e,a);V.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=Cw(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=YT(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?PT.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(V.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=V.point(e,s,{edge:l?`start`:`end`}),d=l?V.before(e,u):V.after(e,u);if(d)return V.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((ZT(t)?t.anchorNode:t.startContainer)&&(ZT(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=cE&&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 W.isExpanded(f)&&W.isForward(f)&&YT(a)&&V.void(e,{at:f.focus,mode:`highest`})&&(f=V.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=ww(i?t:function(e){var t,n=ww(e,2),r=n[0],i=n[1];if(YT(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=ww(eE(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;YT(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=tE(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();Tw(Tw([],ww(Dh(g.querySelectorAll(`[data-slate-zero-width]`)))),ww(Dh(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`)||oE&&(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 V.hasPath(e,n.path)&&V.hasPath(e,r.path)},getNodeType:function(e){return B.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return H.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=V.nodes(e,{universal:!0});try{for(var a=Cw(i),o=a.next();!o.done;o=a.next()){var s=ww(o.value,1)[0];B.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=ww(V.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=ww(V.nodes(e,{match:function(e){return G.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=ww(V.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&ww(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(V.isEnd(e,n.anchor,t)||V.isEnd(e,n.focus,t))},getTextarea:function(e){var t=vT.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return xT.get(e)||null},getHoverbar:function(e){return CT.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=Cw(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=V.nodes(e,{match:function(t){return!(!B.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=Cw(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];rE(X.toDOMNode(e,p),(function(e,t){var n=q(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=V.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=Cw(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||W.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=V.node(e,t);if(n==null)return!1;var r=ww(n,1)[0].children;return r.length===1&&r[0].text===``}},Dle=1,uE={},dE={},Ole=SS.filter;US({target:`Array`,proto:!0,forced:!KC(`filter`)},{filter:function(e){return Ole(this,e,arguments.length>1?arguments[1]:void 0)}});var fE=`
\v\f\r \xA0  \u2028\u2029`,pE=Yb(``.replace),mE=`[`+fE+`]`,kle=RegExp(`^`+mE+mE+`*`),Ale=RegExp(mE+mE+`*$`),hE=function(e){return function(t){var n=YS(Xb(t));return 1&e&&(n=pE(n,kle,``)),2&e&&(n=pE(n,Ale,``)),n}},jle={start:hE(1),end:hE(2),trim:hE(3)},Mle=Zx.PROPER,Nle=jle.trim;US({target:`String`,proto:!0,forced:function(e){return cx((function(){return!!fE[e]()||`​…᠎`[e]()!==`​…᠎`||Mle&&fE[e].name!==e}))}(`trim`)},{trim:function(){return Nle(this)}});var gE=[],_E={};function Ple(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var vE,yE,bE,xE,SE=Y.Promise,CE=mx(`species`),wE=function(e){var t=tx(e),n=Mx.f;_x&&t&&!t[CE]&&n(t,CE,{configurable:!0,get:function(){return this}})},Fle=Y.TypeError,Ile=mx(`species`),TE=function(e,t){var n,r=Sx(e).constructor;return r===void 0||(n=Sx(r)[Ile])==null?t:function(e){if(_S(e))return e;throw Fle(Dx(e)+` is not a constructor`)}(n)},EE=Yb([].slice),DE=/(?:ipad|iphone|ipod).*applewebkit/i.test(nx),OE=$x(Y.process)==`process`,kE=Y.setImmediate,AE=Y.clearImmediate,Lle=Y.process,jE=Y.Dispatch,Rle=Y.Function,ME=Y.MessageChannel,zle=Y.String,NE=0,PE={};try{vE=Y.location}catch{}var FE=function(e){if(Qb(PE,e)){var t=PE[e];delete PE[e],t()}},IE=function(e){return function(){FE(e)}},LE=function(e){FE(e.data)},RE=function(e){Y.postMessage(zle(e),vE.protocol+`//`+vE.host)};kE&&AE||(kE=function(e){var t=EE(arguments,1);return PE[++NE]=function(){cw(ex(e)?e:Rle(e),void 0,t)},yE(NE),NE},AE=function(e){delete PE[e]},OE?yE=function(e){Lle.nextTick(IE(e))}:jE&&jE.now?yE=function(e){jE.now(IE(e))}:ME&&!DE?(xE=(bE=new ME).port2,bE.port1.onmessage=LE,yE=oS(xE.postMessage,xE)):Y.addEventListener&&ex(Y.postMessage)&&!Y.importScripts&&vE&&vE.protocol!==`file:`&&!cx(RE)?(yE=RE,Y.addEventListener(`message`,LE,!1)):yE=`onreadystatechange`in bx(`script`)?function(e){eC.appendChild(bx(`script`)).onreadystatechange=function(){eC.removeChild(this),FE(e)}}:function(e){setTimeout(IE(e),0)});var zE,BE,VE,HE,UE,WE,GE,KE,qE={set:kE,clear:AE},Ble=/ipad|iphone|ipod/i.test(nx)&&Y.Pebble!==void 0,Vle=/web0s(?!.*chrome)/i.test(nx),Hle=MS.f,JE=qE.set,YE=Y.MutationObserver||Y.WebKitMutationObserver,XE=Y.document,ZE=Y.process,QE=Y.Promise,$E=Hle(Y,`queueMicrotask`),eD=$E&&$E.value;eD||(zE=function(){var e,t;for(OE&&(e=ZE.domain)&&e.exit();BE;){t=BE.fn,BE=BE.next;try{t()}catch(e){throw BE?HE():VE=void 0,e}}VE=void 0,e&&e.enter()},DE||OE||Vle||!YE||!XE?!Ble&&QE&&QE.resolve?((GE=QE.resolve(void 0)).constructor=QE,KE=oS(GE.then,GE),HE=function(){KE(zE)}):OE?HE=function(){ZE.nextTick(zE)}:(JE=oS(JE,Y),HE=function(){JE(zE)}):(UE=!0,WE=XE.createTextNode(``),new YE(zE).observe(WE,{characterData:!0}),HE=function(){WE.data=UE=!UE}));var tD,nD,rD,iD,aD=eD||function(e){var t={fn:e,next:void 0};VE&&(VE.next=t),BE||(BE=t,HE()),VE=t},oD=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=Ox(t),this.reject=Ox(n)},sD={f:function(e){return new oD(e)}},cD=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},lD=typeof window==`object`,uD=qE.set,dD=mx(`species`),fD=`Promise`,pD=Jx.getterFor(fD),mD=Jx.set,hD=Jx.getterFor(fD),gD=SE&&SE.prototype,_D=SE,vD=gD,yD=Y.TypeError,bD=Y.document,xD=Y.process,SD=sD.f,CD=SD,wD=!!(bD&&bD.createEvent&&Y.dispatchEvent),TD=ex(Y.PromiseRejectionEvent),ED=!1,DD=HS(fD,(function(){var e=Rx(_D),t=e!==String(_D);if(!t&&sx===66)return!0;if(sx>=51&&/native code/.test(e))return!1;var n=new _D((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[dD]=r,!(ED=n.then((function(){}))instanceof r)||!t&&lD&&!TD})),OD=DD||!CC((function(e){_D.all(e).catch((function(){}))})),kD=function(e){var t;return!(!vx(e)||!ex(t=e.then))&&t},AD=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;aD((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&&PD(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(yD(`Promise-chain cycle`)):(s=kD(o))?wx(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&MD(e)}))}},jD=function(e,t,n){var r,i;wD?((r=bD.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!TD&&(i=Y[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Y.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},MD=function(e){wx(uD,Y,(function(){var t,n=e.facade,r=e.value;if(ND(e)&&(t=cD((function(){OE?xD.emit(`unhandledRejection`,r,n):jD(`unhandledrejection`,n,r)})),e.rejection=OE||ND(e)?2:1,t.error))throw t.value}))},ND=function(e){return e.rejection!==1&&!e.parent},PD=function(e){wx(uD,Y,(function(){var t=e.facade;OE?xD.emit(`rejectionHandled`,t):jD(`rejectionhandled`,t,e.value)}))},FD=function(e,t,n){return function(r){e(t,r,n)}},ID=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,AD(e,!0))},LD=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw yD(`Promise can't be resolved itself`);var r=kD(t);r?aD((function(){var n={done:!1};try{wx(r,t,FD(LD,n,e),FD(ID,n,e))}catch(t){ID(n,t,e)}})):(e.value=t,e.state=1,AD(e,!1))}catch(t){ID({done:!1},t,e)}}};if(DD&&(vD=(_D=function(e){Gw(this,vD),Ox(e),wx(tD,this);var t=pD(this);try{e(FD(LD,t),FD(ID,t))}catch(e){ID(t,e)}}).prototype,(tD=function(e){mD(this,{type:fD,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Aw(vD,{then:function(e,t){var n=hD(this),r=n.reactions,i=SD(TE(this,_D));return i.ok=!ex(e)||e,i.fail=ex(t)&&t,i.domain=OE?xD.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&AD(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),nD=function(){var e=new tD,t=pD(e);this.promise=e,this.resolve=FD(LD,t),this.reject=FD(ID,t)},sD.f=SD=function(e){return e===_D||e===rD?new nD(e):CD(e)},ex(SE)&&gD!==Object.prototype)){iD=gD.then,ED||(Qx(gD,`then`,(function(e,t){var n=this;return new _D((function(e,t){wx(iD,n,e,t)})).then(e,t)}),{unsafe:!0}),Qx(gD,`catch`,vD.catch,{unsafe:!0}));try{delete gD.constructor}catch{}RC&&RC(gD,vD)}US({global:!0,wrap:!0,forced:DD},{Promise:_D}),LC(_D,fD,!1),wE(fD),rD=tx(fD),US({target:fD,stat:!0,forced:DD},{reject:function(e){var t=SD(this);return wx(t.reject,void 0,e),t.promise}}),US({target:fD,stat:!0,forced:DD},{resolve:function(e){return function(e,t){if(Sx(e),vx(t)&&t.constructor===e)return t;var n=sD.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),US({target:fD,stat:!0,forced:OD},{all:function(e){var t=this,n=SD(t),r=n.resolve,i=n.reject,a=cD((function(){var n=Ox(t.resolve),a=[],o=0,s=1;Uw(e,(function(e){var c=o++,l=!1;s++,wx(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=SD(t),r=n.reject,i=cD((function(){var i=Ox(t.resolve);Uw(e,(function(e){wx(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var RD=YC.UNSUPPORTED_Y,zD=Math.min,BD=[].push,VD=Yb(/./.exec),HD=Yb(BD),UD=Yb(``.slice);function WD(e){Promise.resolve().then(e)}function GD(e,t){return B.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=V.isVoid(t,e),s=``;o||(s=a.map((function(e){return GD(e,t)})).join(``));var c=function(e){return _E[e]||Ple}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||gE.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,` &nbsp;`).replace(/</g,`&lt;`).replace(/>/g,`&gt;`).replace(/®/g,`&reg;`).replace(/©/g,`&copy;`).replace(/™/g,`&trade;`)}(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(/&nbsp;/g,` `)),r===``){var a=X.getParentNode(null,e);if(!a||a.children.length!==0)return r;r=`<br>`}return gE.forEach((function(t){return r=t(e,r)})),r}(e,t)}function KD(e){return`w-e-element-`+e}uw(`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=YS(Xb(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!uC(e))return wx(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=wx(iw,d,r))&&!((o=d.lastIndex)>u&&(HD(c,UD(r,u,a.index)),a.length>1&&a.index<r.length&&cw(BD,c,Mw(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&VD(d,``)||HD(c,``):HD(c,UD(r,u)),c.length>i?Mw(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:wx(t,this,e,n)}:t,[function(t,n){var i=Xb(this),a=t==null?void 0:kx(t,e);return a?wx(a,t,i,n):wx(r,YS(i),t,n)},function(e,i){var a=Sx(this),o=YS(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=TE(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(RD?`g`:`y`),d=new c(RD?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return mw(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=RD?0:m;var g,_=mw(d,RD?UD(o,m):o);if(_===null||(g=zD(uS(d.lastIndex+(RD?m:0)),o.length))===p)m=dw(o,m,l);else{if(HD(h,UD(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(HD(h,_[v]),h.length===f)return h;m=p=g}}return HD(h,UD(o,p)),h}]}),!!cx((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`})),RD);var qD=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},JD=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return qD(r,i)&&qD(i,r)},YD=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],XD=[],ZD=[],QD={},$D=Mx.f,eO=zS.f,tO=Jx.enforce,nO=mx(`match`),rO=Y.RegExp,iO=rO.prototype,aO=Y.SyntaxError,oO=Yb(XS),sO=Yb(iO.exec),cO=Yb(``.charAt),lO=Yb(``.replace),uO=Yb(``.indexOf),dO=Yb(``.slice),fO=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,pO=/a/g,mO=/a/g,hO=new rO(pO)!==pO,gO=YC.MISSED_STICKY,_O=YC.UNSUPPORTED_Y;if(HS(`RegExp`,_x&&(!hO||gO||XC||ZC||cx((function(){return mO[nO]=!1,rO(pO)!=pO||rO(mO)==mO||rO(pO,`i`)!=`/a/i`}))))){for(var vO=function(e,t){var n,r,i,a,o,s,c=Tx(iO,this),l=uC(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===vO)return e;if((l||Tx(iO,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:oO(f))),e=e===void 0?``:YS(e),t=t===void 0?``:YS(t),f=e,XC&&`dotAll`in pO&&(r=!!t&&uO(t,`s`)>-1)&&(t=lO(t,/s/g,``)),n=t,gO&&`sticky`in pO&&(i=!!t&&uO(t,`y`)>-1)&&_O&&(t=lO(t,/y/g,``)),ZC&&(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=cO(e,r))===`\\`)t+=cO(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:sO(fO,dO(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||Qb(o,u))throw new aO(`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=Kw(rO(e,t),c?this:iO,vO),(r||i||d.length)&&(s=tO(o),r&&(s.dotAll=!0,s.raw=vO(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=cO(e,r))===`\\`?i+=t+cO(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{Px(o,`source`,f===``?`(?:)`:f)}catch{}return o},yO=function(e){e in vO||$D(vO,e,{configurable:!0,get:function(){return rO[e]},set:function(t){rO[e]=t}})},bO=eO(rO),xO=0;bO.length>xO;)yO(bO[xO++]);iO.constructor=vO,vO.prototype=iO,Qx(Y,`RegExp`,vO)}wE(`RegExp`);var SO=RegExp(`\xA0`,`g`);function CO(e){return e.replace(SO,` `)}function wO(e,t){var n=e.length;if(n){var r=e[n-1];if(G.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function TO(e,t,n){return{type:`paragraph`,children:[{text:q(e).text().replace(/\s+/gm,` `)}]}}function EO(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!==KT.ELEMENT_NODE){if(e.nodeType===KT.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=CO(r),wO(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(wO(n,`
`)||n.push({text:`
`}));var i=OO(q(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 QD)if(e[0].matches(t))return QD[t];return TO}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){V.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),ZD.forEach((function(n){r=n(e[0],r,t)})))})),r}function DO(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(/&nbsp;/g,` `).replace(/&lt;/g,`<`).replace(/&gt;/g,`>`).replace(/&reg;/g,`®`).replace(/&copy;/g,`©`).replace(/&trade;/g,`™`).replace(/&quot;/g,`"`)}(n);var r={text:n=CO(n)};return ZD.forEach((function(n){r=n(e[0],r,t)})),r}function OO(e,t){XD.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=q(r(e[0])))}));var n=iE(e);return n===`span`?e.attr(`data-w-e-type`)?EO(e,t):DO(e,t):n===`code`?iE(e.parent())===`pre`?EO(e,t):DO(e,t):YD.includes(n)?DO(e,t):EO(e,t)}function kO(e,t,n){var r=q(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function AO(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=q(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=OO(q(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Ule=Mx.f,jO=zw.fastKey,MO=Jx.set,NO=Jx.getterFor;qw(`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){Gw(e,a),MO(e,{type:t,index:oC(null),first:void 0,last:void 0,size:0}),_x||(e.size=0),i!=null&&Uw(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=NO(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=jO(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),_x?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=jO(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Aw(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,_x?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),_x?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=oS(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)}}),Aw(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)}}),_x&&Ule(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=NO(t),a=NO(r);HC(e,t,(function(e,t){MO(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),wE(t)}});var PO=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function FO(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):K.insertNodes(e,t,{mode:`highest`})}var Wle=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=ww(W.edges(n),2),i=r[0],a=r[1],o=V.void(t,{at:i.path}),s=V.void(t,{at:a.path});if(!W.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=ww(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`?`
`:``})),QT(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`,nE(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=Cw(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&K.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},IO=function(e){return e!=null},Gle={object:!0,function:!0,undefined:!0},Kle=/^\s*class[\s{/}]/,qle=Function.prototype.toString,LO=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!!IO(e)&&hasOwnProperty.call(Gle,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!Kle.test(qle.call(e))},RO=function(e){return e!=null},Jle=Object.keys,Yle=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return Jle(RO(e)?Object(e):e)},Xle=function(e){if(!RO(e))throw TypeError(`Cannot use null or undefined`);return e},Zle=Math.max,zO=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=Zle(arguments.length,2);for(e=Object(Xle(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)Yle(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},Qle=Array.prototype.forEach,$le=Object.create,eue=function(e,t){for(var n in e)t[n]=e[n]},BO=function(e){var t=$le(null);return Qle.call(arguments,(function(e){RO(e)&&eue(Object(e),t)})),t},VO=`razdwatrzy`,tue=String.prototype.indexOf,HO=typeof VO.contains==`function`&&!0===VO.contains(`dwa`)&&!1===VO.contains(`foo`)?String.prototype.contains:function(e){return tue.call(this,e,arguments[1])>-1},UO=zb((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],IO(e)?(n=HO.call(e,`c`),r=HO.call(e,`e`),i=HO.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?zO(BO(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),IO(t)?LO(t)?IO(n)?LO(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,IO(e)?(r=HO.call(e,`c`),i=HO.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?zO(BO(a),o):o}})),WO=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},nue=zb((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 WO(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 WO(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(WO(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:UO(n),once:UO(r),off:UO(i),emit:UO(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function GO(e){var t=VT.get(e);return t??(t=nue(),VT.set(e,t)),t}var KO=new WeakMap;function qO(e,t){var n=KO.get(e);n??(n=new Set,KO.set(e,n)),n.add(t)}function rue(e){return KO.get(e)||new Set}function iue(e){KO.set(e,new Set)}function JO(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 YO(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=JO(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 XO(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=B.isElement(t)&&e.isVoid(t),a=B.isElement(t)&&e.isInline(t),o=IT.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(GT.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=JO(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 ZO(e,t){WD((function(){var n=JO(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=KC(`slice`),oue=mx(`species`),QO=Y.Array,sue=Math.max;US({target:`Array`,proto:!0,forced:!aue},{slice:function(e,t){var n,r,i,a=AS(this),o=dS(a),s=NS(e,o),c=NS(t===void 0?o:t,o);if(fS(a)&&(n=a.constructor,(_S(n)&&(n===QO||fS(n.prototype))||vx(n)&&(n=n[oue])===null)&&(n=void 0),n===QO||n===void 0))return EE(a,s,c);for(r=new(n===void 0?QO:n)(sue(c-s,0)),i=0;s<c;s++,i++)s in a&&gC(r,i,a[s]);return r.length=i,r}});var cue=MS.f,$O=Yb(``.startsWith),lue=Yb(``.slice),uue=Math.min,ek=fC(`startsWith`);US({target:`String`,proto:!0,forced:!(!ek&&function(){var e=cue(String.prototype,`startsWith`);return e&&!e.writable}())&&!ek},{startsWith:function(e){var t=YS(Xb(this));dC(e);var n=uS(uue(arguments.length>1?arguments[1]:void 0,t.length)),r=YS(e);return $O?$O(t,r,n):lue(t,n,n+r.length)===r}});var tk=Object.assign,nk=Object.defineProperty,due=Yb([].concat),rk=!tk||cx((function(){if(_x&&tk({b:1},tk(nk({},`a`,{enumerable:!0,get:function(){nk(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})),tk({},e)[n]!=7||WS(tk({},t)).join(``)!=r}))?function(e,t){for(var n=Zb(e),r=arguments.length,i=1,a=BS.f,o=kS.f;r>i;)for(var s,c=cS(arguments[i++]),l=a?due(WS(c),a(c)):WS(c),u=l.length,d=0;u>d;)s=l[d++],_x&&!wx(o,c,s)||(n[s]=c[s]);return n}:tk;US({target:`Object`,stat:!0,forced:Object.assign!==rk},{assign:rk});var fue=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function ik(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(!fue.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Dv(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`&&ik(e)}))}var ak=[],ok={};function pue(e,t,n){return F_(n.isInline(e)?`span`:`div`,null,t)}function sk(e,t){return t===void 0&&(t=!1),F_(`span`,{"data-slate-string":!0},t?e+`
`:e)}function ck(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),F_(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?F_(`br`,null):null)}function lk(e,t,n,r){return jT.set(e,t),MT.set(e,n),B.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=V.isVoid(t,e),o=KD(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 ok[e]||pue}(c);n=a?null:u.map((function(n,r){return lk(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=ww(ww(H.texts(e),1)[0],1)[0],h=F_(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},lk(m,0,e,t));f=F_(p,{style:{position:`relative`}},f,h),jT.set(m,0),MT.set(m,e)}return f.data??={},Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return ak.forEach((function(r){n=r(e,t)})),n}(e,f)),WD((function(){var t=$T(o);t!=null&&(FT.set(r,t),IT.set(e,t),PT.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=G.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=U.parent(o);if(V.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?ck(H.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||V.string(i,s)!==``?a===``?ck():t&&a.slice(-1)===`
`?sk(a,!0):sk(a):ck(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return ak.forEach((function(t){n=t(e,n)})),n}(r,a),F_(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=F_(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return WD((function(){var t=$T(c);t!=null&&(FT.set(r,t),IT.set(e,t),PT.set(t,e))})),l}(e,n,r)}function mue(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),h_(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=lk(e,n,t,t);return ik(r),r}));var l=OT.get(e);if(l??=!0,l){var u=function(e,t){return q(`<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=p_([y_,O_,N_,S_,E_,__]))(n,c),OT.set(e,!1),kT.set(e,f)}else{var d=AT.get(e),f=kT.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=$T(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=JT(n);p&&RT.set(t,p)}NT.set(t,n),IT.set(t,n),PT.set(n,t),AT.set(e,c)}}function uk(e){return typeof e==`object`&&!!e&&e.nodeType===1}function dk(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function fk(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return dk(n.overflowY,t)||dk(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 pk(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 mk(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(!uk(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;uk(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&fk(d)&&!fk(document.documentElement)||d!=null&&fk(d,s)&&u.push(d)}for(var f=n.visualViewport?n.visualViewport.width:innerWidth,p=n.visualViewport?n.visualViewport.height:innerHeight,m=window.scrollX||pageXOffset,h=window.scrollY||pageYOffset,g=e.getBoundingClientRect(),_=g.height,v=g.width,y=g.top,b=g.right,x=g.bottom,S=g.left,C=i===`start`||i===`nearest`?y:i===`end`?x:y+_/2,w=a===`center`?S+v/2:a===`end`?b:S,T=[],E=0;E<u.length;E++){var D=u[E],O=D.getBoundingClientRect(),k=O.height,A=O.width,j=O.top,M=O.right,N=O.bottom,P=O.left;if(r===`if-needed`&&y>=0&&S>=0&&x<=p&&b<=f&&y>=j&&x<=N&&S>=P&&b<=M)return T;var F=getComputedStyle(D),ee=parseInt(F.borderLeftWidth,10),te=parseInt(F.borderTopWidth,10),ne=parseInt(F.borderRightWidth,10),re=parseInt(F.borderBottomWidth,10),I=0,ie=0,ae=`offsetWidth`in D?D.offsetWidth-D.clientWidth-ee-ne:0,oe=`offsetHeight`in D?D.offsetHeight-D.clientHeight-te-re:0;if(l===D)I=i===`start`?C:i===`end`?C-p:i===`nearest`?pk(h,h+p,p,te,re,h+C,h+C+_,_):C-p/2,ie=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:pk(m,m+f,f,ee,ne,m+w,m+w+v,v),I=Math.max(0,I+h),ie=Math.max(0,ie+m);else{I=i===`start`?C-j-te:i===`end`?C-N+re+oe:i===`nearest`?pk(j,N,k,te,re+oe,C,C+_,_):C-(j+k/2)+oe/2,ie=a===`start`?w-P-ee:a===`center`?w-(P+A/2)+ae/2:a===`end`?w-M+ne+ae:pk(P,M,A,ee,ne+ae,w,w+v,v);var se=D.scrollLeft,L=D.scrollTop;C+=L-(I=Math.max(0,Math.min(L+I,D.scrollHeight-k+oe))),w+=se-(ie=Math.max(0,Math.min(se+ie,D.scrollWidth-A+ae)))}T.push({el:D,top:I,left:ie})}return T}function hk(e){return e===Object(e)&&Object.keys(e).length!==0}function gk(e,t){return XT(t)&&X.hasDOMNode(e,t,{editable:!0})}function _k(e,t){if(e.getConfig().readOnly)return!1;var n=vk(e,t)&&X.toSlateNode(e,t);return V.isVoid(e,n)}function vk(e,t){return XT(t)&&X.hasDOMNode(e,t)}function yk(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=NT.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&&W.equals(l,r)){var u=!0;if(W.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){W.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(hk(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:mk(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:hk(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)}))})(mk(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&&oE&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var bk=new WeakMap,xk=new WeakMap,hue={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`},gue={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`},_ue={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},Sk=function(e){var t=hue[e],n=gue[e],r=_ue[e],i=t&&Lv(t),a=n&&Lv(n),o=r&&Lv(r);return function(e){return!(!i||!i(e))||!!(aE&&a&&a(e))||!(aE||!o||!o(e))}},Ck={isBold:Sk(`bold`),isCompose:Sk(`compose`),isMoveBackward:Sk(`moveBackward`),isMoveForward:Sk(`moveForward`),isDeleteBackward:Sk(`deleteBackward`),isDeleteForward:Sk(`deleteForward`),isDeleteLineBackward:Sk(`deleteLineBackward`),isDeleteLineForward:Sk(`deleteLineForward`),isDeleteWordBackward:Sk(`deleteWordBackward`),isDeleteWordForward:Sk(`deleteWordForward`),isExtendBackward:Sk(`extendBackward`),isExtendForward:Sk(`extendForward`),isExtendLineBackward:Sk(`extendLineBackward`),isExtendLineForward:Sk(`extendLineForward`),isItalic:Sk(`italic`),isMoveLineBackward:Sk(`moveLineBackward`),isMoveLineForward:Sk(`moveLineForward`),isMoveWordBackward:Sk(`moveWordBackward`),isMoveWordForward:Sk(`moveWordForward`),isRedo:Sk(`redo`),isSplitBlock:Sk(`splitBlock`),isTransposeCharacter:Sk(`transposeCharacter`),isUndo:Sk(`undo`),isTab:Sk(`tab`),isSelectAll:Sk(`selectAll`)};function wk(e){e.preventDefault()}var vue={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(lE&&!i&&gk(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=ww(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&W.equals(a,l)||K.select(n,l)}}if(a&&W.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;V.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:V.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:V.deleteForward(n);break;case`deleteContentBackward`:V.deleteBackward(n);break;case`deleteEntireSoftLine`:V.deleteBackward(n,{unit:`line`}),V.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:V.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:V.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:V.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:V.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:V.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:V.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:V.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!HT.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&V.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&gk(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||YT(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&XT(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(B.isElement(c)&&!n.isVoid(c))return}sE&&o.getSelection()?.removeAllRanges(),zT.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,oE&&e.target!==r?r.focus():zT.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&vk(n,e.target)&&XT(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(V.hasPath(n,i)&&H.get(n,i)===r){var a=V.start(n,i),o=V.end(n,i),s=V.void(n,{at:a}),c=V.void(n,{at:o});if(s&&c&&U.equals(s[1],c[1])){var l=V.range(n,a);K.select(n,l)}}}},compositionstart:function(e,t,n){if(gk(n,e.target)){var r=n.selection;if(r&&W.isExpanded(r)&&(V.deleteFragment(n),Promise.resolve().then((function(){yk(t,n,!0)}))),r&&W.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;bk.set(n,a),xk.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(gk(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(cE||oE)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=W.isBackward(i)?i.focus:i.anchor,o=ww(V.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=ww(V.node(n,a.path.slice(0,s+1)),1)[0];if(B.isElement(c)&&((sE||oE)&&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=bk.get(n)||``,u>0&&V.insertText(n,l.slice(0,u)),t.changeViewState()):V.insertText(n,l)}else V.insertText(n,l);sE||setTimeout((function(){var e=n.selection;if(e!=null){var t=xk.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=bk.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){gk(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&gk(n,r.target)){if(function(e,t){var n=xT.get(e),r=n&&n.getMenus(),i=CT.get(e),a=i&&i.getMenus(),o=Sw(Sw({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&Iv(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),Ck.isTab(r))return wk(r),void n.handleTab();if(Ck.isRedo(r))return wk(r),void(typeof n.redo==`function`&&n.redo());if(Ck.isUndo(r))return wk(r),void(typeof n.undo==`function`&&n.undo());if(Ck.isMoveLineBackward(r))return wk(r),void K.move(n,{unit:`line`,reverse:!0});if(Ck.isMoveLineForward(r))return wk(r),void K.move(n,{unit:`line`});if(Ck.isExtendLineBackward(r))return wk(r),void K.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(Ck.isExtendLineForward(r))return wk(r),void K.move(n,{unit:`line`,edge:`focus`});if(Ck.isMoveBackward(r))return wk(r),void(i&&W.isCollapsed(i)?K.move(n,{reverse:!0}):K.collapse(n,{edge:`start`}));if(Ck.isMoveForward(r))return wk(r),void(i&&W.isCollapsed(i)?K.move(n):K.collapse(n,{edge:`end`}));if(Ck.isMoveWordBackward(r))return wk(r),i&&W.isExpanded(i)&&K.collapse(n,{edge:`focus`}),void K.move(n,{unit:`word`,reverse:!0});if(Ck.isMoveWordForward(r))return wk(r),i&&W.isExpanded(i)&&K.collapse(n,{edge:`focus`}),void K.move(n,{unit:`word`});if(Ck.isSelectAll(r))return wk(r),void n.selectAll();if(lE){if((cE||sE)&&i&&(Ck.isDeleteBackward(r)||Ck.isDeleteForward(r))&&W.isCollapsed(i)){var a=H.parent(n,i.anchor.path);if(B.isElement(a)&&V.isVoid(n,a)&&V.isInline(n,a))return r.preventDefault(),void K.delete(n,{unit:`block`})}}else{if(Ck.isBold(r)||Ck.isItalic(r)||Ck.isTransposeCharacter(r))return void wk(r);if(Ck.isSplitBlock(r))return wk(r),void V.insertBreak(n);if(Ck.isDeleteBackward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n));if(Ck.isDeleteForward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n));if(Ck.isDeleteLineBackward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n,{unit:`line`}));if(Ck.isDeleteLineForward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n,{unit:`line`}));if(Ck.isDeleteWordBackward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`backward`}):V.deleteBackward(n,{unit:`word`}));if(Ck.isDeleteWordForward(r))return wk(r),void(i&&W.isExpanded(i)?V.deleteFragment(n,{direction:`forward`}):V.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!lE&&!n.getConfig().readOnly&&gk(n,e.target)){e.preventDefault();var r=e.key;V.insertText(n,r)}},copy:function(e,t,n){var r=e;if(gk(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&&gk(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i))if(W.isExpanded(i))V.deleteFragment(n);else{var o=H.parent(n,i.anchor.path);V.isVoid(n,o)&&K.delete(n)}}},paste:function(e,t,n){HT.set(n,!0);var r=e;if(!n.getConfig().readOnly&&gk(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void HT.set(n,!1);if(!lE||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(vk(n,e.target)){var r=X.toSlateNode(n,e.target);V.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(vk(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(V.isVoid(n,i)||V.void(n,{at:a,voids:!0})){var o=V.range(n,a);K.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&&vk(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&vk(n,r.target)&&i!=null&&!(lE&&sE&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);K.select(n,o),t.isDraggingInternally&&=(a&&K.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},yue=1,bue=function(){function e(e){var t=this;this.id=yue++,this.$textArea=null,this.$progressBar=q(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=q(`<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=n_((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,zT.set(t,!0)):zT.delete(t),!c)return K.deselect(t);var l=c.anchorNode,u=c.focusNode,d=gk(t,l)||_k(t,l),f=gk(t,u)||_k(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});K.select(t,p)}else K.deselect(t)}})(t,t.editorInstance)}),100);var n=q(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=q(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=q(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,WD((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=yT.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&&(zg(vue,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,n_((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;mue(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=q(`<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),WD((function(){yk(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function Tk(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&&Tk(t)}function Ek(){return q(`<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 Dk(){return q(`<div class="w-e-bar-divider"></div>`)}function Ok(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=aE?`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`)}}}uw(`match`,(function(e,t,n){return[function(t){var n=Xb(this),r=t==null?void 0:kx(t,e);return r?wx(r,t,n):new RegExp(t)[e](YS(n))},function(e){var r=Sx(this),i=YS(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return mw(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=mw(r,i))!==null;){var u=YS(s[0]);c[l]=u,u===``&&(r.lastIndex=dw(i,uS(r.lastIndex),o)),l++}return l===0?null:c}]}));var kk=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=q(`<div class="w-e-bar-item"></div>`),this.$button=q(`<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=q(u);Tk(f),d.append(f)}else d.text(o);Ok(d,u,o,c,n),n&&u&&d.append(q(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),WD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),Fk(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Fk(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Fk(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Fk(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}(),xue=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return xw(t,e),t.prototype.onButtonClick=function(){},t}(kk),Ak=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=TT.get(e);t??(t=new Set,TT.set(e,t)),t.add(this),ET.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=ET.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=ET.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),Sue=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=q(`<div class="w-e-drop-panel"></div>`),n}return xw(t,e),t.prototype.genSelfElem=function(){return null},t}(Ak),Cue=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=Ek();i.$button.append(a)}return i}return xw(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=Fk(this);if(this.dropPanel==null){var n=new Sue(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}(kk),wue=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=q(`<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 xw(t,e),t.prototype.genSelfElem=function(){var e=this,t=q(`<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=ET.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}(Ak);function jk(e,t,n){var r=q(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=q(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function Mk(e,t){var n=q(`<div class="button-container"></div>`),r=q(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var Tue=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=q(`body`),i.modal=null,i.menu=n,i}return xw(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Fk(this),t=this.menu.getModalPositionNode(e);return B.isElement(t)?XO(e,t,`modal`):YO(e)},t.prototype.handleModal=function(){var e=Fk(this),t=this.menu;if(this.modal==null){var n=new wue(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=Fk(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||ZO(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(kk),Eue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=q(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return xw(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=q(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=q(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=q(`<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(q(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(Ak),Due=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=q(`<div class="w-e-bar-item"></div>`),this.$button=q(`<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),Ok(d,c,a,u,n),this.$elem.append(d),this.menu=t,WD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),Fk(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Fk(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Eue(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=q(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=Fk(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Fk(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=Ek();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=Fk(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}(),Nk=function(){function e(e){this.$elem=q(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=q(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=q(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=q(n);Tk(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=Ek();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){q(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),Pk=new WeakMap;function Fk(e){var t=wT.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function Ik(e,t,n){n===void 0&&(n=!1);var r=Pk.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Cue(e,t,n):o?new Tue(e,t,n):new xue(e,t,n)}if(i===`select`&&(r=new Due(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return Pk.set(t,r),r}function Oue(e,t){var n=e.selection;return n!=null&&!W.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}))&&!!G.isText(t)}var kue=function(){function e(){var e=this;this.$elem=q(`<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=Yv((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&&B.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),WD((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;WD((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=Dk();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=dE[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=Ik(e,r);this.hoverbarItems.push(a),wT.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),B.isElement(e)){var r=XO(t,e,`bar`);n.css(r),ZO(t,n);return}if(G.isText(e))return r=YO(t),n.css(r),void ZO(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=ww(V.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=ST.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=Oue),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 U.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function Lk(e,t,n,r){if(jT.set(e,t),MT.set(e,n),B.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return Lk(t,n,e,r)})),V.isVoid(r,e)){var a=ww(ww(H.texts(e),1)[0],1)[0];jT.set(a,0),MT.set(a,e)}}}function Aue(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];JS.withoutSaving(t,(()=>{V.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];JS.withoutSaving(t,(()=>{V.withoutNormalizing(t,(()=>{for(var e of r.map(Tm.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=JS.isSaving(t),u=JS.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||!U.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!U.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<H.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)<H.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===KT.TEXT_NODE?e+(t.textContent||``):n===KT.ELEMENT_NODE?PO.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=GO(t);if(r.on(e,n),e===`destroyed`&&qO(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),qO(t,i)}},t.once=function(e,n){GO(t).once(e,n)},t.off=function(e,n){GO(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=GO(t);r.emit.apply(r,Tw([e],ww(n))),e===`destroyed`&&(rue(t).forEach((function(e){return r.off(`destroyed`,e)})),iue(t))},t}(function(e){var t=e;return t.select=function(e){K.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&K.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||K.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=BT.get(t);e!=null&&(t.focus(),K.select(t,e))},t.getSelectionPosition=function(){return YO(t)},t.getNodePosition=function(e){return XO(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=ww(W.edges(e),2),r=n[0],i=n[1],a=ww(V.edges(t,[]),2),o=a[0],s=a[1];return!(!Om.equals(r,o)||!Om.equals(i,s))},t.selectAll=function(){var e=V.start(t,[]),n=V.end(t,[]);K.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=Cw(V.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=ww(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=Cw(V.levels(t,{at:U.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=ww(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=Cw(V.levels(t,{at:U.common(U.parent(e.path),U.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=ww(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=Cw(d),T=w.next();!T.done;T=w.next()){var E=ww(T.value,2);g=E[0],_=E[1],h=ww(V.node(t,g),1)[0],LT.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&&W.isCollapsed(e.selection)){var r=V.above(e,{match:function(t){return V.isBlock(e,t)},at:e.selection});if(r){var i=ww(r,2)[1],o=function(e,t){var n=V.range(e,W.end(t)),r=Array.from(V.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(JD(e,V.range(e,r[i]),n))return V.range(e,r[i],n);if(r.length<2)return V.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)JD(e,V.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return V.range(e,r[a],n)}(t,V.range(e,i,e.selection.anchor));W.isCollapsed(o)||K.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&BT.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 GD(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return H.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:V.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=V.nodes(t,{at:[],universal:!0});try{for(var s=Cw(o),c=s.next();!c.done;c=s.next()){var l=ww(c.value,1)[0];if(B.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=KD(X.findKey(t,l).id);a.push(Sw(Sw({},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(B.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||G.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){K.delete(t,{at:{anchor:V.start(t,[]),focus:V.end(t,[])}}),t.children.length===0&&K.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===KT.TEXT_NODE||t===KT.ELEMENT_NODE&&!PO.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!==KT.TEXT_NODE)if(r!==`BR`){var o=e,c=!1;if(YD.includes(r.toLowerCase()))c=!0;else for(var l in QD)if(o.matches(l)){c=!0;break}if(c){var u=OO(q(o),t);Array.isArray(u)?(u.forEach((function(e){return FO(t,e)})),s++):(FO(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)&&K.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=AO(t,e);if(K.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(V.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in dE)e.push(t);return e},t.getConfig=function(){var e=DT.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=Wle(Iie());return t.id=`wangEditor-`+Dle++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),zT.set(t,!0),e){var n=V.end(t,[]);K.select(t,n)}else{var r=BT.get(t);r?K.select(t,r):K.select(t,V.start(t,[]))}},t.isFocused=function(){return!!zT.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),K.deselect(t),zT.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(),vT.delete(t),yT.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),xT.delete(t),bT.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),CT.delete(t),ST.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=q(`#`+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(){TT.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 kO(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=Xv(uE),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return zg(t,(function(e,t){n[t]=Sw(Sw({},e),i[t]||{})})),delete e.MENU_CONF,Sw({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);DT.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=AO(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 bue(n);vT.set(l,p),yT.set(p,l),p.changeViewState(),WD((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 kue,ST.set(m,l),CT.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return Lk(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)})),WD((function(){return l.emit(`created`)})),l}var jue=KC(`splice`),Mue=Y.TypeError,Nue=Math.max,Pue=Math.min;US({target:`Array`,proto:!0,forced:!jue},{splice:function(e,t){var n,r,i,a,o,s,c=Zb(this),l=dS(c),u=NS(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Pue(Nue(lS(t),0),l-u)),l+n-r>9007199254740991)throw Mue(`Maximum allowed length exceeded`);for(i=yS(c,r),a=0;a<r;a++)(o=u+a)in c&&gC(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 Fue=function(){function e(e,t){var n=this;this.$toolbar=q(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=Yv((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=q(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),WD((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=Xv(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=Dk();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 Nk(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 Nk,i=this.menus,a=i[e];if(a==null){var o=dE[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=Ik(e,a,r);this.toolbarItems.push(s),wT.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=bT.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}(),Iue=Zx.EXISTS,Lue=Mx.f,Rk=Function.prototype,Rue=Yb(Rk.toString),zk=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zue=Yb(zk.exec);function Bk(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=ww(e.split(`#`),2),r=n[0],i=n[1],a=[];zg(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 Wy({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(lse,{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 Vk(e){return Vk=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},Vk(e)}function Bue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hk(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){Bue(e,t,n[t])}))}return e}function Uk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Wk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function Gk(e,t,n){return t&&Wk(e.prototype,t),n&&Wk(e,n),e}function Kk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function qk(e,t){if(t&&(Vk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Kk(e)}function Jk(e){return Jk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Jk(e)}function Yk(e,t){return Yk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Yk(e,t)}function Xk(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&&Yk(e,t)}_x&&!Iue&&Lue(Rk,`name`,{configurable:!0,get:function(){try{return zue(zk,Rue(this))[1]}catch{return``}}});var Vue={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)}},Zk=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Uk(this,e),this.init(t,n)}return Gk(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||Vue,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,Hk({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),Qk=function(){function e(){Uk(this,e),this.observers={}}return Gk(e,[{key:`on`,value:function(e,t){var n=this;return e.split(` `).forEach((function(e){n.observers[e]=n.observers[e]||[],n.observers[e].push(t)})),this}},{key:`off`,value:function(e,t){this.observers[e]&&(t?this.observers[e]=this.observers[e].filter((function(e){return e!==t})):delete this.observers[e])}},{key:`emit`,value:function(e){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 $k(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function eA(e){return e==null?``:``+e}function Hue(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function tA(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 nA(e,t,n){var r=tA(e,t,Object);r.obj[r.k]=n}function rA(e,t){var n=tA(e,t),r=n.obj,i=n.k;if(r)return r[i]}function iA(e,t,n){var r=rA(e,n);return r===void 0?rA(t,n):r}function aA(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]):aA(e[r],t[r],n):e[r]=t[r]);return e}function oA(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Uue={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function Wue(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return Uue[e]})):e}var sA=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function cA(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?cA(c,l,n):void 0}i=i[r[a]]}return i}}var Gue=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return Uk(this,t),n=qk(this,Jk(t).call(this)),sA&&Qk.call(Kk(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 Xk(t,Qk),Gk(t,[{key:`addNamespaces`,value:function(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}},{key:`removeNamespaces`,value:function(e){var t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}},{key:`getResource`,value:function(e,t,n){var r=arguments.length>3&&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=rA(this.data,o);return s||!a||typeof n!=`string`?s:cA(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),nA(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=rA(this.data,o)||{};r?aA(s,n,i):s=Hk({},s,n),nA(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`?Hk({},{},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}(),lA={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}},uA={},dA=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Uk(this,t),n=qk(this,Jk(t).call(this)),sA&&Qk.call(Kk(n)),Hue([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,Kk(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=Zk.create(`translator`),n}return Xk(t,Qk),Gk(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(Vk(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,Hk({},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,Hk({},n,{joinArrays:!1,ns:c})),x[C]===w&&(x[C]=p[C])}p=x}}else if(y&&typeof v==`string`&&g===`[object Array]`)(p=p.join(v))&&(p=this.extendTranslation(p,e,n,r));else{var T=!1,E=!1,D=n.count!==void 0&&typeof n.count!=`string`,O=t.hasDefaultValue(n),k=D?this.pluralResolver.getSuffix(u,n.count):``,A=n[`defaultValue${k}`]||n.defaultValue;!this.isValidLookup(p)&&O&&(T=!0,p=A),this.isValidLookup(p)||(E=!0,p=s);var j=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&E?void 0:p,M=O&&A!==p&&this.options.updateMissing;if(E||T||M){if(this.logger.log(M?`updateKey`:`missingKey`,u,l,s,M?A:p),a){var N=this.resolve(s,Hk({},n,{keySeparator:!1}));N&&N.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 P=[],F=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&F&&F[0])for(var ee=0;ee<F.length;ee++)P.push(F[ee]);else this.options.saveMissingTo===`all`?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var te=function(e,t,r){i.options.missingKeyHandler?i.options.missingKeyHandler(e,l,t,M?r:j,M,n):i.backendConnector&&i.backendConnector.saveMissing&&i.backendConnector.saveMissing(e,l,t,M?r:j,M,n),i.emit(`missingKey`,e,l,t,p)};this.options.saveMissing&&(this.options.saveMissingPlurals&&D?P.forEach((function(e){i.pluralResolver.getSuffixes(e).forEach((function(t){te([e],s+t,n[`defaultValue${t}`]||A)}))})):te(P,s,A))}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(Hk({},n,{interpolation:Hk({},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=Hk({},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=lA.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Hk({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,!uA[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(uA[`${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 fA(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Kue=function(){function e(t){Uk(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=Zk.create(`languageUtils`)}return Gk(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]=fA(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]=fA(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=fA(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}(),que=[{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}],Jue={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 Yue(){var e={};return que.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Jue[t.fc]}}))})),e}var Xue=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Uk(this,e),this.languageUtils=t,this.options=n,this.logger=Zk.create(`pluralResolver`),this.rules=Yue()}return Gk(e,[{key:`addRule`,value:function(e,t){this.rules[e]=t}},{key:`getRule`,value:function(e){return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}},{key:`needsPlural`,value:function(e){var t=this.getRule(e);return t&&t.numbers.length>1}},{key:`getPluralFormsOfKey`,value:function(e,t){return this.getSuffixes(e).map((function(e){return t+e}))}},{key:`getSuffixes`,value:function(e){var t=this,n=this.getRule(e);return n?n.numbers.map((function(n){return t.getSuffix(e,n)})):[]}},{key:`getSuffix`,value:function(e,t){var n=this,r=this.getRule(e);if(r){var 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}(),Zue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Uk(this,e),this.logger=Zk.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return Gk(e,[{key:`init`,value:function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};var t=e.interpolation;this.escape=t.escape===void 0?Wue:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?oA(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?oA(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?oA(t.nestingPrefix):t.nestingPrefixEscaped||oA(`$t(`),this.nestingSuffix=t.nestingSuffix?oA(t.nestingSuffix):t.nestingSuffixEscaped||oA(`)`),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=iA(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,Hk({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(iA(t,c,o),l,n,Hk({},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=eA(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=Hk({},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=Hk({},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=eA(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,Hk({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),Que=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Uk(this,t),i=qk(this,Jk(t).call(this)),sA&&Qk.call(Kk(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=Zk.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Xk(t,Qk),Gk(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=tA(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,Hk({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function $ue(){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(Vk(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),Vk(e[2])===`object`||Vk(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 pA(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 mA(){}var hA=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(Uk(this,t),e=qk(this,Jk(t).call(this)),sA&&Qk.call(Kk(e)),e.options=pA(n),e.services={},e.logger=Zk,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),qk(e,Kk(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Xk(t,Qk),Gk(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=Hk({},$ue(),this.options,pA(t)),this.format=this.options.interpolation.format,n||=mA,!this.options.isClone){this.modules.logger?Zk.init(r(this.modules.logger),this.options):Zk.init(null,this.options);var i=new Kue(this.options);this.store=new Gue(this.options.resources,this.options);var a=this.services;a.logger=Zk,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Xue(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new Zue(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new Que(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 dA(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=$k(),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]:mA,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=$k();return e||=this.languages,t||=this.options.ns,n||=mA,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`&&lA.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=$k();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(Vk(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=Hk({},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=$k();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=$k();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]:mA,i=Hk({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=Hk({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new dA(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 gA(e,t){hA.addResourceBundle(e,`translation`,t,!0,!0)}hA.init({lng:`zh-CN`,resources:{}});var Z=hA.t.bind(hA);gA(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),gA(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var ede=gu?{}.toString:function(){return`[object `+_u(this)+`]`};gu||Xl(Object.prototype,`toString`,ede,{unsafe:!0});var _A=Array.isArray||function(e){return qc(e)==`Array`},vA=function(){},yA=[],bA=el(`Reflect`,`construct`),xA=/^\s*(?:class|function)\b/,SA=Kc(xA.exec),CA=!xA.exec(vA),wA=function(e){if(!Qc(e))return!1;try{return bA(vA,yA,e),!0}catch{return!1}},TA=!bA||Ic((function(){var e;return wA(wA.call)||!wA(Object)||!wA((function(){e=!0}))||e}))?function(e){if(!Qc(e))return!1;switch(_u(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return CA||!!SA(xA,Ll(e))}:wA,EA=Cl(`species`),DA=Fc.Array,OA=function(e,t){return new(function(e){var t;return _A(e)&&(t=e.constructor,(TA(t)&&(t===DA||_A(t.prototype))||$c(t)&&(t=t[EA])===null)&&(t=void 0)),t===void 0?DA:t}(e))(t===0?0:t)},kA=Kc([].push),AA=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=_l(c),h=Yc(m),g=fd(l,u),_=eu(h),v=0,y=d||OA,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:kA(b,f)}else switch(e){case 4:return!1;case 7:kA(b,f)}return a?-1:r||i?i:b}},jA={forEach:AA(0),map:AA(1),filter:AA(2),some:AA(3),every:AA(4),find:AA(5),findIndex:AA(6),filterReject:AA(7)}.forEach,MA=function(e,t){var n=[][e];return!!n&&Ic((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return jA(this,e,arguments.length>1?arguments[1]:void 0)},NA=function(e){if(e&&e.forEach!==MA)try{Nl(e,`forEach`,MA)}catch{e.forEach=MA}};for(var PA in Kd)Kd[PA]&&NA(Fc[PA]&&Fc[PA].prototype);NA(Yd),gA(`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`}}),gA(`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 FA={type:`paragraph`,renderElem:function(e,t,n){return F_(`p`,null,t)}},IA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function LA(e){var t={exports:{}};return e(t,t.exports),t.exports}var RA,zA,BA=function(e){return e&&e.Math==Math&&e},VA=BA(typeof globalThis==`object`&&globalThis)||BA(typeof window==`object`&&window)||BA(typeof self==`object`&&self)||BA(typeof IA==`object`&&IA)||function(){return this}()||Function(`return this`)(),HA=function(e){try{return!!e()}catch{return!0}},UA=!HA((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),WA=Function.prototype.call,GA=WA.bind?WA.bind(WA):function(){return WA.apply(WA,arguments)},KA={}.propertyIsEnumerable,qA=Object.getOwnPropertyDescriptor,JA={f:qA&&!KA.call({1:2},1)?function(e){var t=qA(this,e);return!!t&&t.enumerable}:KA},YA=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XA=Function.prototype,ZA=XA.bind,QA=XA.call,$A=ZA&&ZA.bind(QA),ej=ZA?function(e){return e&&$A(QA,e)}:function(e){return e&&function(){return QA.apply(e,arguments)}},tj=ej({}.toString),nj=ej(``.slice),rj=function(e){return nj(tj(e),8,-1)},ij=VA.Object,aj=ej(``.split),oj=HA((function(){return!ij(`z`).propertyIsEnumerable(0)}))?function(e){return rj(e)==`String`?aj(e,``):ij(e)}:ij,sj=VA.TypeError,cj=function(e){if(e==null)throw sj(`Can't call method on `+e);return e},lj=function(e){return oj(cj(e))},uj=function(e){return typeof e==`function`},dj=function(e){return typeof e==`object`?e!==null:uj(e)},fj=function(e){return uj(e)?e:void 0},pj=function(e,t){return arguments.length<2?fj(VA[e]):VA[e]&&VA[e][t]},mj=ej({}.isPrototypeOf),hj=pj(`navigator`,`userAgent`)||``,gj=VA.process,_j=VA.Deno,vj=gj&&gj.versions||_j&&_j.version,yj=vj&&vj.v8;yj&&(zA=(RA=yj.split(`.`))[0]>0&&RA[0]<4?1:+(RA[0]+RA[1])),!zA&&hj&&(!(RA=hj.match(/Edge\/(\d+)/))||RA[1]>=74)&&(RA=hj.match(/Chrome\/(\d+)/))&&(zA=+RA[1]);var bj=zA,xj=!!Object.getOwnPropertySymbols&&!HA((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bj&&bj<41})),Sj=xj&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Cj=VA.Object,wj=Sj?function(e){return typeof e==`symbol`}:function(e){var t=pj(`Symbol`);return uj(t)&&mj(t.prototype,Cj(e))},Tj=VA.String,Ej=function(e){try{return Tj(e)}catch{return`Object`}},Dj=VA.TypeError,Oj=function(e){if(uj(e))return e;throw Dj(Ej(e)+` is not a function`)},kj=function(e,t){var n=e[t];return n==null?void 0:Oj(n)},Aj=VA.TypeError,jj=Object.defineProperty,Mj=function(e,t){try{jj(VA,e,{value:t,configurable:!0,writable:!0})}catch{VA[e]=t}return t},Nj=VA[`__core-js_shared__`]||Mj(`__core-js_shared__`,{}),Pj=LA((function(e){(e.exports=function(e,t){return Nj[e]||(Nj[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Fj=VA.Object,Ij=function(e){return Fj(cj(e))},Lj=ej({}.hasOwnProperty),Rj=Object.hasOwn||function(e,t){return Lj(Ij(e),t)},zj=0,Bj=Math.random(),Vj=ej(1 .toString),Hj=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Vj(++zj+Bj,36)},Uj=Pj(`wks`),Wj=VA.Symbol,Gj=Wj&&Wj.for,Kj=Sj?Wj:Wj&&Wj.withoutSetter||Hj,qj=function(e){if(!Rj(Uj,e)||!xj&&typeof Uj[e]!=`string`){var t=`Symbol.`+e;xj&&Rj(Wj,e)?Uj[e]=Wj[e]:Uj[e]=Sj&&Gj?Gj(t):Kj(t)}return Uj[e]},Jj=VA.TypeError,Yj=qj(`toPrimitive`),Xj=function(e){var t=function(e,t){if(!dj(e)||wj(e))return e;var n,r=kj(e,Yj);if(r){if(t===void 0&&(t=`default`),n=GA(r,e,t),!dj(n)||wj(n))return n;throw Jj(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&uj(n=e.toString)&&!dj(r=GA(n,e))||uj(n=e.valueOf)&&!dj(r=GA(n,e))||t!==`string`&&uj(n=e.toString)&&!dj(r=GA(n,e)))return r;throw Aj(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return wj(t)?t:t+``},Zj=VA.document,Qj=dj(Zj)&&dj(Zj.createElement),$j=function(e){return Qj?Zj.createElement(e):{}},eM=!UA&&!HA((function(){return Object.defineProperty($j(`div`),"a",{get:function(){return 7}}).a!=7})),tM=Object.getOwnPropertyDescriptor,nM={f:UA?tM:function(e,t){if(e=lj(e),t=Xj(t),eM)try{return tM(e,t)}catch{}if(Rj(e,t))return YA(!GA(JA.f,e,t),e[t])}},rM=VA.String,iM=VA.TypeError,aM=function(e){if(dj(e))return e;throw iM(rM(e)+` is not an object`)},oM=VA.TypeError,sM=Object.defineProperty,cM={f:UA?sM:function(e,t,n){if(aM(e),t=Xj(t),aM(n),eM)try{return sM(e,t,n)}catch{}if(`get`in n||`set`in n)throw oM(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},lM=UA?function(e,t,n){return cM.f(e,t,YA(1,n))}:function(e,t,n){return e[t]=n,e},uM=ej(Function.toString);uj(Nj.inspectSource)||(Nj.inspectSource=function(e){return uM(e)});var dM,fM,pM,mM=Nj.inspectSource,hM=VA.WeakMap,gM=uj(hM)&&/native code/.test(mM(hM)),_M=Pj(`keys`),vM=function(e){return _M[e]||(_M[e]=Hj(e))},yM={},bM=VA.TypeError,xM=VA.WeakMap;if(gM||Nj.state){var SM=Nj.state||=new xM,CM=ej(SM.get),wM=ej(SM.has),TM=ej(SM.set);dM=function(e,t){if(wM(SM,e))throw new bM(`Object already initialized`);return t.facade=e,TM(SM,e,t),t},fM=function(e){return CM(SM,e)||{}},pM=function(e){return wM(SM,e)}}else{var EM=vM(`state`);yM[EM]=!0,dM=function(e,t){if(Rj(e,EM))throw new bM(`Object already initialized`);return t.facade=e,lM(e,EM,t),t},fM=function(e){return Rj(e,EM)?e[EM]:{}},pM=function(e){return Rj(e,EM)}}var DM={set:dM,get:fM,has:pM,enforce:function(e){return pM(e)?fM(e):dM(e,{})},getterFor:function(e){return function(t){var n;if(!dj(t)||(n=fM(t)).type!==e)throw bM(`Incompatible receiver, `+e+` required`);return n}}},OM=Function.prototype,kM=UA&&Object.getOwnPropertyDescriptor,AM=Rj(OM,`name`),jM={EXISTS:AM,PROPER:AM&&function(){}.name===`something`,CONFIGURABLE:AM&&(!UA||UA&&kM(OM,`name`).configurable)},MM=LA((function(e){var t=jM.CONFIGURABLE,n=DM.get,r=DM.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;uj(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Rj(a,`name`)||t&&a.name!==d)&&lM(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===VA?l?e[n]=a:Mj(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:lM(e,n,a))})(Function.prototype,`toString`,(function(){return uj(this)&&n(this).source||mM(this)}))})),NM=Math.ceil,PM=Math.floor,FM=function(e){var t=+e;return t!=t||t===0?0:(t>0?PM:NM)(t)},IM=Math.max,LM=Math.min,RM=function(e,t){var n=FM(e);return n<0?IM(n+t,0):LM(n,t)},zM=Math.min,BM=function(e){return e>0?zM(FM(e),9007199254740991):0},VM=function(e){return BM(e.length)},HM=function(e){return function(t,n,r){var i,a=lj(t),o=VM(a),s=RM(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}},UM={includes:HM(!0),indexOf:HM(!1)},WM=UM.indexOf,GM=ej([].push),KM=function(e,t){var n,r=lj(e),i=0,a=[];for(n in r)!Rj(yM,n)&&Rj(r,n)&&GM(a,n);for(;t.length>i;)Rj(r,n=t[i++])&&(~WM(a,n)||GM(a,n));return a},qM=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],JM=qM.concat(`length`,`prototype`),YM={f:Object.getOwnPropertyNames||function(e){return KM(e,JM)}},XM={f:Object.getOwnPropertySymbols},ZM=ej([].concat),QM=pj(`Reflect`,`ownKeys`)||function(e){var t=YM.f(aM(e)),n=XM.f;return n?ZM(t,n(e)):t},$M=function(e,t){for(var n=QM(t),r=cM.f,i=nM.f,a=0;a<n.length;a++){var o=n[a];Rj(e,o)||r(e,o,i(t,o))}},eN=/#|\.prototype\./,tN=function(e,t){var n=rN[nN(e)];return n==aN||n!=iN&&(uj(t)?HA(t):!!t)},nN=tN.normalize=function(e){return String(e).replace(eN,`.`).toLowerCase()},rN=tN.data={},iN=tN.NATIVE=`N`,aN=tN.POLYFILL=`P`,oN=tN,sN=nM.f,cN=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?VA:l?VA[s]||Mj(s,{}):(VA[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=sN(n,r))&&o.value:n[r],!oN(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;$M(a,i)}(e.sham||i&&i.sham)&&lM(a,`sham`,!0),MM(n,r,a,e)}},lN=ej(ej.bind),uN=Array.isArray||function(e){return rj(e)==`Array`},dN={};dN[qj(`toStringTag`)]=`z`;var fN=String(dN)===`[object z]`,pN=qj(`toStringTag`),mN=VA.Object,hN=rj(function(){return arguments}())==`Arguments`,gN=fN?rj: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=mN(e),pN))==`string`?n:hN?rj(t):(r=rj(t))==`Object`&&uj(t.callee)?`Arguments`:r},_N=function(){},vN=[],yN=pj(`Reflect`,`construct`),bN=/^\s*(?:class|function)\b/,xN=ej(bN.exec),SN=!bN.exec(_N),CN=function(e){if(!uj(e))return!1;try{return yN(_N,vN,e),!0}catch{return!1}},wN=!yN||HA((function(){var e;return CN(CN.call)||!CN(Object)||!CN((function(){e=!0}))||e}))?function(e){if(!uj(e))return!1;switch(gN(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return SN||!!xN(bN,mM(e))}:CN,TN=qj(`species`),EN=VA.Array,DN=function(e,t){return new(function(e){var t;return uN(e)&&(t=e.constructor,(wN(t)&&(t===EN||uN(t.prototype))||dj(t)&&(t=t[TN])===null)&&(t=void 0)),t===void 0?EN:t}(e))(t===0?0:t)},ON=ej([].push),kN=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=Ij(c),h=oj(m),g=function(e,t){return Oj(e),t===void 0?e:lN?lN(e,t):function(){return e.apply(t,arguments)}}(l,u),_=VM(h),v=0,y=d||DN,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:ON(b,f)}else switch(e){case 4:return!1;case 7:ON(b,f)}return a?-1:r||i?i:b}},AN={forEach:kN(0),map:kN(1),filter:kN(2),some:kN(3),every:kN(4),find:kN(5),findIndex:kN(6),filterReject:kN(7)},jN=qj(`species`),MN=function(e){return bj>=51||!HA((function(){var t=[];return(t.constructor={})[jN]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},NN=AN.filter;cN({target:`Array`,proto:!0,forced:!MN(`filter`)},{filter:function(e){return NN(this,e,arguments.length>1?arguments[1]:void 0)}});var PN=fN?{}.toString:function(){return`[object `+gN(this)+`]`};fN||MM(Object.prototype,`toString`,PN,{unsafe:!0});var FN,IN=VA.String,LN=function(e){if(gN(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return IN(e)},RN=function(){var e=aM(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},zN=VA.RegExp,BN=HA((function(){var e=zN(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),VN=BN||HA((function(){return!zN(`a`,`y`).sticky})),HN={BROKEN_CARET:BN||HA((function(){var e=zN(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:VN,UNSUPPORTED_Y:BN},UN=Object.keys||function(e){return KM(e,qM)},WN=UA?Object.defineProperties:function(e,t){aM(e);for(var n,r=lj(t),i=UN(t),a=i.length,o=0;a>o;)cM.f(e,n=i[o++],r[n]);return e},GN=pj(`document`,`documentElement`),KN=vM(`IE_PROTO`),qN=function(){},JN=function(e){return`<script>`+e+`<\/script>`},YN=function(e){e.write(JN(``)),e.close();var t=e.parentWindow.Object;return e=null,t},XN=function(){try{FN=new ActiveXObject(`htmlfile`)}catch{}var e,t;XN=typeof document<`u`?document.domain&&FN?YN(FN):((t=$j(`iframe`)).style.display=`none`,GN.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(JN(`document.F=Object`)),e.close(),e.F):YN(FN);for(var n=qM.length;n--;)delete XN.prototype[qM[n]];return XN()};yM[KN]=!0;var ZN,QN,$N=Object.create||function(e,t){var n;return e===null?n=XN():(qN.prototype=aM(e),n=new qN,qN.prototype=null,n[KN]=e),t===void 0?n:WN(n,t)},tde=VA.RegExp,nde=HA((function(){var e=tde(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),rde=VA.RegExp,ide=HA((function(){var e=rde(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),ade=DM.get,ode=Pj(`native-string-replace`,String.prototype.replace),eP=RegExp.prototype.exec,tP=eP,sde=ej(``.charAt),cde=ej(``.indexOf),lde=ej(``.replace),nP=ej(``.slice),rP=(QN=/b*/g,GA(eP,ZN=/a/,`a`),GA(eP,QN,`a`),ZN.lastIndex!==0||QN.lastIndex!==0),iP=HN.BROKEN_CARET,aP=/()??/.exec(``)[1]!==void 0;(rP||aP||iP||nde||ide)&&(tP=function(e){var t,n,r,i,a,o,s,c=this,l=ade(c),u=LN(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=GA(tP,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=iP&&c.sticky,m=GA(RN,c),h=c.source,g=0,_=u;if(p&&(m=lde(m,`y`,``),cde(m,`g`)===-1&&(m+=`g`),_=nP(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&sde(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),aP&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),rP&&(r=c.lastIndex),i=GA(eP,p?n:c,_),p?i?(i.input=nP(i.input,g),i[0]=nP(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:rP&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),aP&&i&&i.length>1&&GA(ode,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=$N(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var oP=tP;cN({target:`RegExp`,proto:!0,forced:/./.exec!==oP},{exec:oP});var sP=Function.prototype,cP=sP.apply,ude=sP.bind,lP=sP.call,uP=typeof Reflect==`object`&&Reflect.apply||(ude?lP.bind(cP):function(){return lP.apply(cP,arguments)}),dde=qj(`species`),dP=RegExp.prototype,fP=function(e,t,n,r){var i=qj(e),a=!HA((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!HA((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[dde]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=ej(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=ej(e),c=t.exec;return c===oP||c===dP.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));MM(String.prototype,e,c[0]),MM(dP,i,c[1])}r&&lM(dP[i],`sham`,!0)},fde=ej(``.charAt),pP=ej(``.charCodeAt),pde=ej(``.slice),mde=function(e){return function(t,n){var r,i,a=LN(cj(t)),o=FM(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=pP(a,o))<55296||r>56319||o+1===s||(i=pP(a,o+1))<56320||i>57343?e?fde(a,o):r:e?pde(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),mP=function(e,t,n){return t+(n?mde(e,t).length:1)},hde=Math.floor,hP=ej(``.charAt),gde=ej(``.replace),gP=ej(``.slice),_de=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,vde=/\$([$&'`]|\d{1,2})/g,yde=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=vde;return i!==void 0&&(i=Ij(i),c=_de),gde(a,c,(function(a,c){var l;switch(hP(c,0)){case`$`:return`$`;case`&`:return e;case"`":return gP(t,0,n);case`'`:return gP(t,o);case`<`:l=i[gP(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=hde(u/10);return d===0?a:d<=s?r[d-1]===void 0?hP(c,1):r[d-1]+hP(c,1):a}l=r[u-1]}return l===void 0?``:l}))},bde=VA.TypeError,_P=function(e,t){var n=e.exec;if(uj(n)){var r=GA(n,e,t);return r!==null&&aM(r),r}if(rj(e)===`RegExp`)return GA(oP,e,t);throw bde(`RegExp#exec called on incompatible receiver`)},vP=qj(`replace`),xde=Math.max,Sde=Math.min,Cde=ej([].concat),yP=ej([].push),bP=ej(``.indexOf),xP=ej(``.slice),wde=`a`.replace(/./,`$0`)===`$0`,SP=!!/./[vP]&&/./[vP](`a`,`$0`)===``;fP(`replace`,(function(e,t,n){var r=SP?`$`:`$0`;return[function(e,n){var r=cj(this),i=e==null?void 0:kj(e,vP);return i?GA(i,e,r,n):GA(t,LN(r),e,n)},function(e,i){var a=aM(this),o=LN(e);if(typeof i==`string`&&bP(i,r)===-1&&bP(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=uj(i);c||(i=LN(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=_P(a,o);if(f===null||(yP(d,f),!l))break;LN(f[0])===``&&(a.lastIndex=mP(o,BM(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=LN((f=d[g])[0]),v=xde(Sde(FM(f.index),o.length),0),y=[],b=1;b<f.length;b++)yP(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Cde([_],y,v,o);x!==void 0&&yP(S,x);var C=LN(uP(i,void 0,S))}else C=yde(_,o,v,y,x,i);v>=h&&(m+=xP(o,h,v)+C,h=v+_.length)}return m+xP(o,h)}]}),!!HA((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!wde||SP);var CP=qj(`unscopables`),wP=Array.prototype;wP[CP]??cM.f(wP,CP,{configurable:!0,value:$N(null)});var TP=function(e){wP[CP][e]=!0},Tde=AN.find,EP=!0;`find`in[]&&[,].find((function(){EP=!1})),cN({target:`Array`,proto:!0,forced:EP},{find:function(e){return Tde(this,e,arguments.length>1?arguments[1]:void 0)}}),TP(`find`);var Ede=qj(`match`),DP=function(e){var t;return dj(e)&&((t=e[Ede])===void 0?rj(e)==`RegExp`:!!t)},Dde=VA.TypeError,Ode=qj(`species`),OP=function(e,t,n){var r=Xj(t);r in e?cM.f(e,r,YA(0,n)):e[r]=n},kde=VA.Array,Ade=Math.max,kP=function(e,t,n){for(var r=VM(e),i=RM(t,r),a=RM(n===void 0?r:n,r),o=kde(Ade(a-i,0)),s=0;i<a;i++,s++)OP(o,s,e[i]);return o.length=s,o},AP=HN.UNSUPPORTED_Y,jde=Math.min,jP=[].push,Mde=ej(/./.exec),MP=ej(jP),NP=ej(``.slice);fP(`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=LN(cj(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!DP(e))return GA(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=GA(oP,d,r))&&!((o=d.lastIndex)>u&&(MP(c,NP(r,u,a.index)),a.length>1&&a.index<r.length&&uP(jP,c,kP(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Mde(d,``)||MP(c,``):MP(c,NP(r,u)),c.length>i?kP(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:GA(t,this,e,n)}:t,[function(t,n){var i=cj(this),a=t==null?void 0:kj(t,e);return a?GA(a,t,i,n):GA(r,LN(i),t,n)},function(e,i){var a=aM(this),o=LN(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=aM(e).constructor;return r===void 0||(n=aM(r)[Ode])==null?t:function(e){if(wN(e))return e;throw Dde(Ej(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(AP?`g`:`y`),d=new c(AP?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return _P(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=AP?0:m;var g,_=_P(d,AP?NP(o,m):o);if(_===null||(g=jde(BM(d.lastIndex+(AP?m:0)),o.length))===p)m=mP(o,m,l);else{if(MP(h,NP(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(MP(h,_[v]),h.length===f)return h;m=p=g}}return MP(h,NP(o,p)),h}]}),!!HA((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`})),AP);var PP=`
\v\f\r \xA0  \u2028\u2029`,FP=ej(``.replace),IP=`[`+PP+`]`,Nde=RegExp(`^`+IP+IP+`*`),Pde=RegExp(IP+IP+`*$`),LP=function(e){return function(t){var n=LN(cj(t));return 1&e&&(n=FP(n,Nde,``)),2&e&&(n=FP(n,Pde,``)),n}},Fde={start:LP(1),end:LP(2),trim:LP(3)},Ide=jM.PROPER,Lde=Fde.trim;function RP(e){return q(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function zP(e){return e.length===0?``:e[0].outerHTML}function BP(e){return e.length?e[0].tagName.toLowerCase():``}function VP(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}cN({target:`String`,proto:!0,forced:HA((function(){return!!PP.trim()||Ide&&PP.trim.name!==`trim`}))},{trim:function(){return Lde(this)}}),cN({global:!0},{globalThis:VA}),ng&&(q.fn.css=ng),cg&&(q.fn.append=cg),lg&&(q.fn.prepend=lg),Hh&&(q.fn.addClass=Hh),Uh&&(q.fn.removeClass=Uh),Wh&&(q.fn.hasClass=Wh),Yh&&(q.fn.on=Yh),Xh&&(q.fn.off=Xh),yg&&(q.fn.focus=yg),Gh&&(q.fn.attr=Gh),Kh&&(q.fn.removeAttr=Kh),eg&&(q.fn.hide=eg),tg&&(q.fn.show=tg),dg&&(q.fn.parents=dg),qh&&(q.fn.dataset=qh),Jh&&(q.fn.val=Jh),og&&(q.fn.text=og),ag&&(q.fn.html=ag),pg&&(q.fn.children=pg),mg&&(q.fn.remove=mg),fg&&(q.fn.find=fg),Zh&&(q.fn.width=Zh),Qh&&(q.fn.height=Qh),ig&&(q.fn.filter=ig),hg&&(q.fn.empty=hg);var Rde={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},HP=function(e,t){return HP=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])},HP(e,t)};function UP(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}HP(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var WP=function(){return WP=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},WP.apply(this,arguments)};function GP(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 KP(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 qP(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 JP(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 YP(e){var t=JP(V.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!B.isElement(n)||n.type===`paragraph`||H.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!G.isText(i[0])&&(K.setNodes(e,{type:`paragraph`}),!0)}var zde={renderElems:[FA],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[Rde],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){YP(r)||t(e)},r.deleteForward=function(e){YP(r)||n(e)},r}},Bde=/"/g,Vde=ej(``.replace),XP=function(e,t,n,r){var i=LN(cj(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Vde(LN(r),Bde,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},ZP=function(e){return HA((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function QP(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 $P(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}cN({target:`String`,proto:!0,forced:ZP(`bold`)},{bold:function(){return XP(this,`b`,``,``)}}),cN({target:`String`,proto:!0,forced:ZP(`italics`)},{italics:function(){return XP(this,`i`,``,``)}}),cN({target:`String`,proto:!0,forced:ZP(`sub`)},{sub:function(){return XP(this,`sub`,``,``)}}),cN({target:`String`,proto:!0,forced:ZP(`sup`)},{sup:function(){return XP(this,`sup`,``,``)}});var eF={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},tF=$j(`span`).classList,nF=tF&&tF.constructor&&tF.constructor.prototype,Hde=nF===Object.prototype?void 0:nF,rF=function(e,t){var n=[][e];return!!n&&HA((function(){n.call(null,t||function(){throw 1},1)}))},Ude=AN.forEach,iF=rF(`forEach`)?[].forEach:function(e){return Ude(this,e,arguments.length>1?arguments[1]:void 0)},aF=function(e){if(e&&e.forEach!==iF)try{lM(e,`forEach`,iF)}catch{e.forEach=iF}};for(var oF in eF)eF[oF]&&aF(VA[oF]&&VA[oF].prototype);function sF(e,t){return e.selection==null||!!JP(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]}function Wde(e,t){Object.keys(t).forEach((function(t){t!==`text`&&V.removeMark(e,t)}))}aF(Hde),cN({target:`Object`,stat:!0,forced:HA((function(){UN(1)}))},{keys:function(e){return UN(Ij(e))}});var cF=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=V.marks(e);return n?n[t]:!!JP(V.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 sF(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}(),Gde=`<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>`,Kde=`<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>`,qde=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Jde=`<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>`,Yde=`<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>`,lF=`<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>`,uF=`<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>`,Xde=`<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>`,Zde=`<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>`,Qde=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,$de=`<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>`,efe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,tfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,nfe=`<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>`,rfe=`<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>`,ife=`<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>`,afe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,ofe=`<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>`,sfe=`<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>`,cfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Gde,t.hotkey=`mod+b`,t}return UP(t,e),t}(cF),lfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Yde,t.hotkey=`mod+e`,t}return UP(t,e),t}(cF),ufe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=qde,t.hotkey=`mod+i`,t}return UP(t,e),t}(cF),dfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Jde,t.hotkey=`mod+shift+x`,t}return UP(t,e),t}(cF),ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Kde,t.hotkey=`mod+u`,t}return UP(t,e),t}(cF),pfe=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=sfe,t.hotkey=``,t}return UP(t,e),t}(cF),mfe=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=ofe,t.hotkey=``,t}return UP(t,e),t}(cF),hfe=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 sF(e)},e.prototype.exec=function(e,t){var n,r,i=V.nodes(e,{match:function(e){return G.isText(e)},universal:!0});try{for(var a=qP(i),o=a.next();!o.done;o=a.next())Wde(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}(),gfe={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=F_(`strong`,null,u)),o&&(u=F_(`code`,null,u)),i&&(u=F_(`em`,null,u)),a&&(u=F_(`u`,null,u)),s&&(u=F_(`s`,null,u)),c&&(u=F_(`sub`,null,u)),l&&(u=F_(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new cfe}},{key:`underline`,factory:function(){return new ffe}},{key:`italic`,factory:function(){return new ufe}},{key:`through`,factory:function(){return new dfe}},{key:`code`,factory:function(){return new lfe}},{key:`sub`,factory:function(){return new pfe}},{key:`sup`,factory:function(){return new mfe}},{key:`clearStyle`,factory:function(){return new hfe}}],styleToHtml:function(e,t){if(!G.isText(e))return t;if(RP(t))return QP(e,t);var n=q(t);if(BP(n)===`br`)return QP(e,`<br>`);var r=n.html();return r=QP(e,r),n.html(r),zP(n)},parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t;return $P(r,`b,strong`)&&(i.bold=!0),$P(r,`i,em`)&&(i.italic=!0),$P(r,`u`)&&(i.underline=!0),$P(r,`s,strike`)&&(i.through=!0),$P(r,`sub`)&&(i.sub=!0),$P(r,`sup`)&&(i.sup=!0),$P(r,`code`)&&(i.code=!0),i}};function dF(e){return function(t,n,r){return F_(`h`+e,null,n)}}var _fe={type:`header1`,renderElem:dF(1)},vfe={type:`header2`,renderElem:dF(2)},yfe={type:`header3`,renderElem:dF(3)},bfe={type:`header4`,renderElem:dF(4)},xfe={type:`header5`,renderElem:dF(5)},Sfe=jM.PROPER,fF=RegExp.prototype,pF=fF.toString,Cfe=ej(RN),wfe=HA((function(){return pF.call({source:`a`,flags:`b`})!=`/a/b`})),Tfe=Sfe&&pF.name!=`toString`;(wfe||Tfe)&&MM(RegExp.prototype,`toString`,(function(){var e=aM(this),t=LN(e.source),n=e.flags;return`/`+t+`/`+LN(n===void 0&&mj(fF,e)&&!(`flags`in fF)?Cfe(e):n)}),{unsafe:!0});var mF,Efe=VA.TypeError,hF=function(e){if(DP(e))throw Efe(`The method doesn't accept regular expressions`);return e},Dfe=qj(`match`),gF=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Dfe]=!1,`/./`[e](t)}catch{}}return!1},Ofe=nM.f,_F=ej(``.startsWith),kfe=ej(``.slice),Afe=Math.min,vF=gF(`startsWith`);function yF(e){var t=JP(V.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=JP(t,1)[0];return X.getNodeType(n)}function bF(e){return e.selection==null||!JP(V.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function xF(e,t){t&&K.setNodes(e,{type:t})}cN({target:`String`,proto:!0,forced:!(!vF&&(mF=Ofe(String.prototype,`startsWith`),mF&&!mF.writable)||vF)},{startsWith:function(e){var t=LN(cj(this));hF(e);var n=BM(Afe(arguments.length>1?arguments[1]:void 0,t.length)),r=LN(e);return _F?_F(t,r,n):kfe(t,n,n+r.length)===r}});var jfe=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 yF(e)},e.prototype.isDisabled=function(e){return bF(e)},e.prototype.exec=function(e,t){xF(e,t.toString())},e}(),SF=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return yF(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return bF(e)},e.prototype.exec=function(e,t){var n=this.type;xF(e,t===n?`paragraph`:n)},e}(),Mfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return UP(t,e),t}(SF),Nfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return UP(t,e),t}(SF),Pfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return UP(t,e),t}(SF),Ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return UP(t,e),t}(SF),Ife=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return UP(t,e),t}(SF),Lfe={key:`headerSelect`,factory:function(){return new jfe}},Rfe={key:`header1`,factory:function(){return new Mfe}},zfe={key:`header2`,factory:function(){return new Nfe}},Bfe={key:`header3`,factory:function(){return new Pfe}},Vfe={key:`header4`,factory:function(){return new Ffe}},Hfe={key:`header5`,factory:function(){return new Ife}};function CF(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function wF(e){return function(t,n,r){var i=q(t);return(n=n.filter((function(e){return!!G.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Ufe={renderElems:[_fe,vfe,yfe,bfe,xfe],elemsToHtml:[{type:`header1`,elemToHtml:CF(1)},{type:`header2`,elemToHtml:CF(2)},{type:`header3`,elemToHtml:CF(3)},{type:`header4`,elemToHtml:CF(4)},{type:`header5`,elemToHtml:CF(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:wF(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:wF(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:wF(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:wF(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:wF(5)}],menus:[Lfe,Rfe,zfe,Bfe,Vfe,Hfe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=JP(V.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?K.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},TF=Object.assign,EF=Object.defineProperty,Wfe=ej([].concat),DF=!TF||HA((function(){if(UA&&TF({b:1},TF(EF({},`a`,{enumerable:!0,get:function(){EF(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})),TF({},e)[n]!=7||UN(TF({},t)).join(``)!=r}))?function(e,t){for(var n=Ij(e),r=arguments.length,i=1,a=XM.f,o=JA.f;r>i;)for(var s,c=oj(arguments[i++]),l=a?Wfe(UN(c),a(c)):UN(c),u=l.length,d=0;u>d;)s=l[d++],UA&&!GA(o,c,s)||(n[s]=c[s]);return n}:TF;function OF(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}cN({target:`Object`,stat:!0,forced:Object.assign!==DF},{assign:DF});var Gfe={selector:`font`,preParseHtml:function(e){var t=q(e);if(BP(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},kF=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=V.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||!!JP(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=q(`<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=q(r).attr(`data-value`);i===`0`?V.removeMark(e,t):V.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=q(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=q(`<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=q(`
<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}(),Kfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=Xde,t.mark=`color`,t}return UP(t,e),t}(kF),qfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=Zde,t.mark=`bgColor`,t}return UP(t,e),t}(kF),AF=`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(`.`),Jfe={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&OF(a,{color:r}),i&&OF(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!G.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((RP(t)||BP(n=q(t))!==`span`)&&(n=q(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),zP(n)):t},preParseHtml:[Gfe],parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t,a=VP(r,`color`);a&&(i.color=a);var o=VP(r,`background-color`);return o||=VP(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Kfe},config:{colors:AF}},{key:`bgColor`,factory:function(){return new qfe},config:{colors:AF}}]},Yfe=/^(?:\w+:)?\/\/(\S+)$/,Xfe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,Zfe=/^[^\s\.]+\.\S{2,}$/,Qfe=UM.includes;function jF(e){return e===void 0&&(e=`r`),e+`-`+Bg()}function MF(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function NF(e,t,n,r){return GP(this,void 0,void 0,(function(){var i,a;return KP(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 PF(e,t,n){return GP(this,void 0,void 0,(function(){var r;return KP(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 FF(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 IF(e,t){return{type:`link`,url:MF(e),children:t?[{text:t}]:[]}}function LF(e,t,n){return GP(this,void 0,void 0,(function(){var r,i,a;return KP(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),FF(e)?[2]:[4,NF(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,PF(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(W.isCollapsed(i)?(e.insertText(` `),a=IF(r,t),K.insertNodes(e,a),e.insertFragment([{text:` `}])):V.string(e,i)===t?(a=IF(r),K.wrapNodes(e,a,{split:!0}),K.collapse(e,{edge:`end`})):(e.deleteFragment(),a=IF(r,t),K.insertNodes(e,a))),[2]}}))}))}cN({target:`Array`,proto:!0},{includes:function(e){return Qfe(this,e,arguments.length>1?arguments[1]:void 0)}}),TP(`includes`);var $fe={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return F_(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},epe={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.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 RF(){return jF(`w-e-insert-link`)}var tpe=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=RF(),this.urlInputId=RF(),this.buttonId=RF()}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 FF(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=JP(jk(Z(`link.text`),r),2),s=o[0],c=q(o[1]),l=JP(jk(Z(`link.url`),i),2),u=l[0],d=q(l[1]),f=JP(Mk(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=q(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),LF(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||W.isCollapsed(t))c.val(``);else{var h=V.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function zF(){return jF(`w-e-update-link`)}var npe=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=lF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=zF(),this.buttonId=zF()}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=JP(jk(Z(`link.url`),t),2),i=r[0],a=q(r[1]),o=JP(Mk(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=q(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){GP(this,void 0,void 0,(function(){var r,i;return KP(this,(function(a){switch(a.label){case 0:return n?[4,NF(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,PF(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:MF(r)},K.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?H.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}(),rpe=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)||K.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),ipe=function(){function e(){this.title=Z(`link.view`),this.iconSvg=uF,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}(),BF={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},ape={renderElems:[$fe],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:[epe],menus:[{key:`insertLink`,factory:function(){return new tpe},config:BF},{key:`editLink`,factory:function(){return new npe},config:BF},{key:`unLink`,factory:function(){return new rpe}},{key:`viewLink`,factory:function(){return new ipe}}],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(Yfe);if(!t)return!1;var n=t[1];return!(!n||!Xfe.test(n)&&!Zfe.test(n))}(t)){if(!FF(i)){var r=i.selection;r!=null&&LF(i,V.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=JP(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&H.string(n)===``?K.removeNodes(i,{at:a}):r([n,a])},i}},ope=ej(1 .valueOf),spe=VA.RangeError,cpe=VA.RangeError,VF=VA.String,HF=Math.floor,UF=ej((function(e){var t=LN(cj(this)),n=``,r=FM(e);if(r<0||r==1/0)throw spe(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),WF=ej(``.slice),GF=ej(1 .toFixed),KF=function(e,t,n){return t===0?n:t%2==1?KF(e,t-1,n*e):KF(e*e,t/2,n)},qF=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=HF(i/1e7)},JF=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=HF(r/t),r=r%t*1e7},YF=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=VF(e[t]);n=n===``?r:n+UF(`0`,7-r.length)+r}return n};function XF(e,t){return`w-e-image-container-`+X.findKey(e,t).id}cN({target:`Number`,proto:!0,forced:HA((function(){return GF(8e-5,3)!==`0.000`||GF(.9,0)!==`1`||GF(1.255,2)!==`1.25`||GF(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!HA((function(){GF({})}))},{toFixed:function(e){var t,n,r,i,a=ope(this),o=FM(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw cpe(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return VF(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*KF(2,69,1))-69)<0?a*KF(2,-t,1):a/KF(2,t,1),n*=4503599627370496,(t=52-t)>0){for(qF(s,0,n),r=o;r>=7;)qF(s,1e7,0),r-=7;for(qF(s,KF(10,r,1),0),r=t-1;r>=23;)JF(s,1<<23),r-=23;JF(s,1<<r),qF(s,1,1),JF(s,2),l=YF(s)}else qF(s,0,n),qF(s,1<<-t,0),l=YF(s)+UF(`0`,o);return o>0?c+((i=l.length)<=o?`0.`+UF(`0`,o-i)+l:WF(l,0,i-o)+`.`+WF(l,i-o)):c+l}});var lpe={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 _=F_(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=q(`body`),a=XF(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=q(`#`+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=n_((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:WP(WP({},t.style),{width:r+`px`,height:a+`px`})};K.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),F_(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=q(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,F_(`div`,{className:`w-e-image-dragger left-top`}),F_(`div`,{className:`w-e-image-dragger right-top`}),F_(`div`,{className:`w-e-image-dragger left-bottom`}),F_(`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),F_(`div`,{id:XF(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},upe={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:VP(r,`width`),height:VP(r,`height`)},children:[{text:``}]}}};function ZF(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),GP(this,void 0,void 0,(function(){var a,o;return KP(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 QF(e,t,n){return GP(this,void 0,void 0,(function(){var r;return KP(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 $F(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),GP(this,void 0,void 0,(function(){var i,a,o;return KP(this,(function(s){switch(s.label){case 0:return[4,ZF(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,QF(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:MF(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),eI(e)||(K.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function eI(e){var t=e.selection;return t==null||!W.isCollapsed(t)||!!JP(V.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`||!!V.isVoid(e,t)},universal:!0}),1)[0]}function tI(){return jF(`w-e-insert-image`)}var dpe=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=tI(),this.altInputId=tI(),this.hrefInputId=tI(),this.buttonId=tI()}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 eI(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=JP(jk(Z(`image.src`),r),2),c=s[0],l=q(s[1]),u=JP(jk(Z(`image.desc`),i),2),d=u[0],f=q(u[1]),p=JP(jk(Z(`image.link`),a),2),m=p[0],h=q(p[1]),g=JP(Mk(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=q(`<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)||$F(e,t,n,r))},e}(),fpe=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)||K.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function nI(){return jF(`w-e-edit-image`)}var ppe=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=lF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=nI(),this.altInputId=nI(),this.hrefInputId=nI(),this.buttonId=nI()}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||!W.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=JP(jk(Z(`image.src`),r),2),l=c[0],u=q(c[1]),d=JP(jk(Z(`image.desc`),i),2),f=d[0],p=q(d[1]),m=JP(jk(Z(`image.link`),a),2),h=m[0],g=q(m[1]),_=JP(Mk(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=q(`<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={}),GP(this,void 0,void 0,(function(){var a,o,s,c,l,u;return KP(this,(function(d){switch(d.label){case 0:return[4,ZF(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,QF(`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:WP(WP({},s===void 0?{}:s),i)},K.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}(),mpe=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=uF,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}(),rI=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:WP(WP({},i===void 0?{}:i),{width:this.value,height:``})};K.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),hpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return UP(t,e),t}(rI),gpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return UP(t,e),t}(rI),_pe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return UP(t,e),t}(rI),iI={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},vpe={renderElems:[lpe],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:[upe],menus:[{key:`insertImage`,factory:function(){return new dpe},config:iI},{key:`deleteImage`,factory:function(){return new fpe}},{key:`editImage`,factory:function(){return new ppe},config:iI},{key:`viewImageLink`,factory:function(){return new mpe}},{key:`imageWidth30`,factory:function(){return new hpe}},{key:`imageWidth50`,factory:function(){return new gpe}},{key:`imageWidth100`,factory:function(){return new _pe}}],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}},ype={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),F_(`div`,{style:{margin:`5px 0`}},F_(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},F_(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};K.setNodes(n,i,{at:r})}}})),F_(`span`,null,t))}},bpe=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(V.isVoid(e,t)&&V.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);K.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),xpe={renderElems:[ype],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=q(e).find(`li`),n=q(`<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=q(e);(t=t.filter((function(e){return!!G.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 bpe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&W.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&H.string(i).length===0)return void K.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},Spe={type:`blockquote`,renderElem:function(e,t,n){return F_(`blockquote`,null,t)}},Cpe={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},wpe=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||!JP(V.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`;K.setNodes(e,{type:n},{mode:`highest`})}},e}(),Tpe={key:`blockquote`,factory:function(){return new wpe}},Epe=ej([].slice),Dpe=MN(`slice`),Ope=qj(`species`),aI=VA.Array,kpe=Math.max;cN({target:`Array`,proto:!0,forced:!Dpe},{slice:function(e,t){var n,r,i,a=lj(this),o=VM(a),s=RM(e,o),c=RM(t===void 0?o:t,o);if(uN(a)&&(n=a.constructor,(wN(n)&&(n===aI||uN(n.prototype))||dj(n)&&(n=n[Ope])===null)&&(n=void 0),n===aI||n===void 0))return Epe(a,s,c);for(r=new(n===void 0?aI:n)(kpe(c-s,0)),i=0;s<c;s++,i++)s in a&&OP(r,i,a[s]);return r.length=i,r}});var Ape={renderElems:[Spe],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[Cpe],menus:[Tpe],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=JP(V.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=V.end(e,s);if(Om.equals(c,i.focus)){var l=H.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void K.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},jpe=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||!!JP(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=q(`<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=q(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=q(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),Mpe={menus:[{key:`emotion`,factory:function(){return new jpe},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},Npe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Ppe={selector:`font`,preParseHtml:function(e){var t=q(e);if(BP(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,Npe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},Fpe=ej(``.indexOf);cN({target:`String`,proto:!0,forced:!gF(`includes`)},{includes:function(e){return!!~Fpe(LN(cj(this)),LN(hF(e)),arguments.length>1?arguments[1]:void 0)}});var oI,sI,cI=function(e){return e&&e.Math==Math&&e},lI=cI(typeof globalThis==`object`&&globalThis)||cI(typeof window==`object`&&window)||cI(typeof self==`object`&&self)||cI(typeof IA==`object`&&IA)||function(){return this}()||Function(`return this`)(),uI=Function.prototype,dI=uI.apply,Ipe=uI.bind,fI=uI.call,pI=typeof Reflect==`object`&&Reflect.apply||(Ipe?fI.bind(dI):function(){return fI.apply(dI,arguments)}),mI=Function.prototype,hI=mI.bind,gI=mI.call,Lpe=hI&&hI.bind(gI),_I=hI?function(e){return e&&Lpe(gI,e)}:function(e){return e&&function(){return gI.apply(e,arguments)}},vI=function(e){return typeof e==`function`},yI=function(e){try{return!!e()}catch{return!0}},bI=!yI((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),xI=Function.prototype.call,SI=xI.bind?xI.bind(xI):function(){return xI.apply(xI,arguments)},CI={}.propertyIsEnumerable,wI=Object.getOwnPropertyDescriptor,TI={f:wI&&!CI.call({1:2},1)?function(e){var t=wI(this,e);return!!t&&t.enumerable}:CI},EI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Rpe=_I({}.toString),zpe=_I(``.slice),DI=function(e){return zpe(Rpe(e),8,-1)},OI=lI.Object,Bpe=_I(``.split),kI=yI((function(){return!OI(`z`).propertyIsEnumerable(0)}))?function(e){return DI(e)==`String`?Bpe(e,``):OI(e)}:OI,Vpe=lI.TypeError,AI=function(e){if(e==null)throw Vpe(`Can't call method on `+e);return e},jI=function(e){return kI(AI(e))},MI=function(e){return typeof e==`object`?e!==null:vI(e)},NI={},PI=function(e){return vI(e)?e:void 0},FI=function(e,t){return arguments.length<2?PI(NI[e])||PI(lI[e]):NI[e]&&NI[e][t]||lI[e]&&lI[e][t]},II=_I({}.isPrototypeOf),LI=FI(`navigator`,`userAgent`)||``,RI=lI.process,zI=lI.Deno,BI=RI&&RI.versions||zI&&zI.version,VI=BI&&BI.v8;VI&&(sI=(oI=VI.split(`.`))[0]>0&&oI[0]<4?1:+(oI[0]+oI[1])),!sI&&LI&&(!(oI=LI.match(/Edge\/(\d+)/))||oI[1]>=74)&&(oI=LI.match(/Chrome\/(\d+)/))&&(sI=+oI[1]);var HI=sI,UI=!!Object.getOwnPropertySymbols&&!yI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&HI&&HI<41})),WI=UI&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Hpe=lI.Object,GI=WI?function(e){return typeof e==`symbol`}:function(e){var t=FI(`Symbol`);return vI(t)&&II(t.prototype,Hpe(e))},Upe=lI.String,Wpe=lI.TypeError,KI=function(e){if(vI(e))return e;throw Wpe(function(e){try{return Upe(e)}catch{return`Object`}}(e)+` is not a function`)},Gpe=lI.TypeError,Kpe=Object.defineProperty,qI=lI[`__core-js_shared__`]||function(e,t){try{Kpe(lI,e,{value:t,configurable:!0,writable:!0})}catch{lI[e]=t}return t}(`__core-js_shared__`,{}),JI=LA((function(e){(e.exports=function(e,t){return qI[e]||(qI[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),qpe=lI.Object,YI=function(e){return qpe(AI(e))},Jpe=_I({}.hasOwnProperty),XI=Object.hasOwn||function(e,t){return Jpe(YI(e),t)},Ype=0,Xpe=Math.random(),Zpe=_I(1 .toString),ZI=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Zpe(++Ype+Xpe,36)},QI=JI(`wks`),$I=lI.Symbol,eL=$I&&$I.for,Qpe=WI?$I:$I&&$I.withoutSetter||ZI,tL=function(e){if(!XI(QI,e)||!UI&&typeof QI[e]!=`string`){var t=`Symbol.`+e;UI&&XI($I,e)?QI[e]=$I[e]:QI[e]=WI&&eL?eL(t):Qpe(t)}return QI[e]},$pe=lI.TypeError,eme=tL(`toPrimitive`),nL=function(e){var t=function(e,t){if(!MI(e)||GI(e))return e;var n,r,i=(n=e[eme])==null?void 0:KI(n);if(i){if(t===void 0&&(t=`default`),r=SI(i,e,t),!MI(r)||GI(r))return r;throw $pe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&vI(n=e.toString)&&!MI(r=SI(n,e))||vI(n=e.valueOf)&&!MI(r=SI(n,e))||t!==`string`&&vI(n=e.toString)&&!MI(r=SI(n,e)))return r;throw Gpe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return GI(t)?t:t+``},rL=lI.document,tme=MI(rL)&&MI(rL.createElement),iL=function(e){return tme?rL.createElement(e):{}},aL=!bI&&!yI((function(){return Object.defineProperty(iL(`div`),"a",{get:function(){return 7}}).a!=7})),oL=Object.getOwnPropertyDescriptor,sL={f:bI?oL:function(e,t){if(e=jI(e),t=nL(t),aL)try{return oL(e,t)}catch{}if(XI(e,t))return EI(!SI(TI.f,e,t),e[t])}},nme=/#|\.prototype\./,cL=function(e,t){var n=ime[rme(e)];return n==ome||n!=ame&&(vI(t)?yI(t):!!t)},rme=cL.normalize=function(e){return String(e).replace(nme,`.`).toLowerCase()},ime=cL.data={},ame=cL.NATIVE=`N`,ome=cL.POLYFILL=`P`,sme=cL,lL=_I(_I.bind),uL=function(e,t){return KI(e),t===void 0?e:lL?lL(e,t):function(){return e.apply(t,arguments)}},cme=lI.String,lme=lI.TypeError,dL=function(e){if(MI(e))return e;throw lme(cme(e)+` is not an object`)},ume=lI.TypeError,fL=Object.defineProperty,pL={f:bI?fL:function(e,t,n){if(dL(e),t=nL(t),dL(n),aL)try{return fL(e,t,n)}catch{}if(`get`in n||`set`in n)throw ume(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},mL=bI?function(e,t,n){return pL.f(e,t,EI(1,n))}:function(e,t,n){return e[t]=n,e},dme=sL.f,fme=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 pI(e,this,arguments)};return t.prototype=e.prototype,t},hL=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?lI:f?lI[u]:(lI[u]||{}).prototype,h=d?NI:NI[u]||mL(NI,u,{})[u],g=h.prototype;for(i in t)n=!sme(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&XI(m,i),o=h[i],n&&(s=e.noTargetGet?(l=dme(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?uL(a,lI):e.wrap&&n?fme(a):p&&vI(a)?_I(a):a,(e.sham||a&&a.sham||o&&o.sham)&&mL(c,`sham`,!0),mL(h,i,c),p&&(XI(NI,r=u+`Prototype`)||mL(NI,r,{}),mL(NI[r],i,a),e.real&&g&&!g[i]&&mL(g,i,a)))},gL=Array.isArray||function(e){return DI(e)==`Array`},pme=Math.ceil,mme=Math.floor,_L=function(e){var t=+e;return t!=t||t===0?0:(t>0?mme:pme)(t)},hme=Math.min,vL=function(e){return(t=e.length)>0?hme(_L(t),9007199254740991):0;var t},yL=function(e,t,n){var r=nL(t);r in e?pL.f(e,r,EI(0,n)):e[r]=n},bL={};bL[tL(`toStringTag`)]=`z`;var xL=String(bL)===`[object z]`,gme=tL(`toStringTag`),_me=lI.Object,vme=DI(function(){return arguments}())==`Arguments`,SL=xL?DI: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=_me(e),gme))==`string`?n:vme?DI(t):(r=DI(t))==`Object`&&vI(t.callee)?`Arguments`:r},yme=_I(Function.toString);vI(qI.inspectSource)||(qI.inspectSource=function(e){return yme(e)});var CL=qI.inspectSource,wL=function(){},bme=[],TL=FI(`Reflect`,`construct`),EL=/^\s*(?:class|function)\b/,xme=_I(EL.exec),Sme=!EL.exec(wL),DL=function(e){if(!vI(e))return!1;try{return TL(wL,bme,e),!0}catch{return!1}},Cme=!TL||yI((function(){var e;return DL(DL.call)||!DL(Object)||!DL((function(){e=!0}))||e}))?function(e){if(!vI(e))return!1;switch(SL(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Sme||!!xme(EL,CL(e))}:DL,wme=tL(`species`),OL=lI.Array,kL=function(e,t){return new(function(e){var t;return gL(e)&&(t=e.constructor,(Cme(t)&&(t===OL||gL(t.prototype))||MI(t)&&(t=t[wme])===null)&&(t=void 0)),t===void 0?OL:t}(e))(t===0?0:t)},Tme=tL(`species`),AL=tL(`isConcatSpreadable`),jL=lI.TypeError,Eme=HI>=51||!yI((function(){var e=[];return e[AL]=!1,e.concat()[0]!==e})),Dme=HI>=51||!yI((function(){var e=[];return(e.constructor={})[Tme]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),Ome=function(e){if(!MI(e))return!1;var t=e[AL];return t===void 0?gL(e):!!t};hL({target:`Array`,proto:!0,forced:!Eme||!Dme},{concat:function(e){var t,n,r,i,a,o=YI(this),s=kL(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Ome(a=t===-1?o:arguments[t])){if(c+(i=vL(a))>9007199254740991)throw jL(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&yL(s,c,a[n])}else{if(c>=9007199254740991)throw jL(`Maximum allowed index exceeded`);yL(s,c++,a)}return s.length=c,s}});var ML,kme=lI.String,NL=function(e){if(SL(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return kme(e)},Ame=Math.max,jme=Math.min,PL=function(e,t){var n=_L(e);return n<0?Ame(n+t,0):jme(n,t)},FL=function(e){return function(t,n,r){var i,a=jI(t),o=vL(a),s=PL(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}},Mme={includes:FL(!0),indexOf:FL(!1)},IL={},Nme=Mme.indexOf,LL=_I([].push),RL=function(e,t){var n,r=jI(e),i=0,a=[];for(n in r)!XI(IL,n)&&XI(r,n)&&LL(a,n);for(;t.length>i;)XI(r,n=t[i++])&&(~Nme(a,n)||LL(a,n));return a},zL=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],BL=Object.keys||function(e){return RL(e,zL)},Pme=bI?Object.defineProperties:function(e,t){dL(e);for(var n,r=jI(t),i=BL(t),a=i.length,o=0;a>o;)pL.f(e,n=i[o++],r[n]);return e},Fme=FI(`document`,`documentElement`),VL=JI(`keys`),HL=function(e){return VL[e]||(VL[e]=ZI(e))},UL=HL(`IE_PROTO`),WL=function(){},GL=function(e){return`<script>`+e+`<\/script>`},KL=function(e){e.write(GL(``)),e.close();var t=e.parentWindow.Object;return e=null,t},qL=function(){try{ML=new ActiveXObject(`htmlfile`)}catch{}var e,t;qL=typeof document<`u`?document.domain&&ML?KL(ML):((t=iL(`iframe`)).style.display=`none`,Fme.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(GL(`document.F=Object`)),e.close(),e.F):KL(ML);for(var n=zL.length;n--;)delete qL.prototype[zL[n]];return qL()};IL[UL]=!0;var JL,YL,XL,ZL=Object.create||function(e,t){var n;return e===null?n=qL():(WL.prototype=dL(e),n=new WL,WL.prototype=null,n[UL]=e),t===void 0?n:Pme(n,t)},Ime=zL.concat(`length`,`prototype`),QL={f:Object.getOwnPropertyNames||function(e){return RL(e,Ime)}},Lme=lI.Array,Rme=Math.max,$L=QL.f,eR=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tR={f:function(e){return eR&&DI(e)==`Window`?function(e){try{return $L(e)}catch{return function(e,t,n){for(var r=vL(e),i=PL(void 0,r),a=PL(r,r),o=Lme(Rme(a-i,0)),s=0;i<a;i++,s++)yL(o,s,e[i]);return o.length=s,o}(eR)}}(e):$L(jI(e))}},nR={f:Object.getOwnPropertySymbols},zme=_I([].slice),rR=function(e,t,n,r){r&&r.enumerable?e[t]=n:mL(e,t,n)},iR={f:tL},Bme=pL.f,aR=function(e){var t=NI.Symbol||={};XI(t,e)||Bme(t,e,{value:iR.f(e)})},Vme=xL?{}.toString:function(){return`[object `+SL(this)+`]`},Hme=pL.f,oR=tL(`toStringTag`),sR=function(e,t,n,r){if(e){var i=n?e:e.prototype;XI(i,oR)||Hme(i,oR,{configurable:!0,value:t}),r&&!xL&&mL(i,`toString`,Vme)}},cR=lI.WeakMap,Ume=vI(cR)&&/native code/.test(CL(cR)),lR=lI.TypeError,Wme=lI.WeakMap;if(Ume||qI.state){var uR=qI.state||=new Wme,Gme=_I(uR.get),dR=_I(uR.has),Kme=_I(uR.set);JL=function(e,t){if(dR(uR,e))throw new lR(`Object already initialized`);return t.facade=e,Kme(uR,e,t),t},YL=function(e){return Gme(uR,e)||{}},XL=function(e){return dR(uR,e)}}else{var fR=HL(`state`);IL[fR]=!0,JL=function(e,t){if(XI(e,fR))throw new lR(`Object already initialized`);return t.facade=e,mL(e,fR,t),t},YL=function(e){return XI(e,fR)?e[fR]:{}},XL=function(e){return XI(e,fR)}}var pR={set:JL,get:YL,has:XL,enforce:function(e){return XL(e)?YL(e):JL(e,{})},getterFor:function(e){return function(t){var n;if(!MI(t)||(n=YL(t)).type!==e)throw lR(`Incompatible receiver, `+e+` required`);return n}}},mR=_I([].push),hR=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=YI(c),h=kI(m),g=uL(l,u),_=vL(h),v=0,y=d||kL,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:mR(b,f)}else switch(e){case 4:return!1;case 7:mR(b,f)}return a?-1:r||i?i:b}},gR=[hR(0),hR(1),hR(2),hR(3),hR(4),hR(5),hR(6),hR(7)][0],_R=HL(`hidden`),vR=tL(`toPrimitive`),qme=pR.set,yR=pR.getterFor(`Symbol`),bR=Object.prototype,xR=lI.Symbol,SR=xR&&xR.prototype,CR=lI.TypeError,wR=lI.QObject,TR=FI(`JSON`,`stringify`),ER=sL.f,DR=pL.f,OR=tR.f,Jme=TI.f,kR=_I([].push),AR=JI(`symbols`),jR=JI(`op-symbols`),MR=JI(`string-to-symbol-registry`),NR=JI(`symbol-to-string-registry`),Yme=JI(`wks`),PR=!wR||!wR.prototype||!wR.prototype.findChild,FR=bI&&yI((function(){return ZL(DR({},`a`,{get:function(){return DR(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=ER(bR,t);r&&delete bR[t],DR(e,t,n),r&&e!==bR&&DR(bR,t,r)}:DR,IR=function(e,t){var n=AR[e]=ZL(SR);return qme(n,{type:`Symbol`,tag:e,description:t}),bI||(n.description=t),n},LR=function(e,t,n){e===bR&&LR(jR,t,n),dL(e);var r=nL(t);return dL(n),XI(AR,r)?(n.enumerable?(XI(e,_R)&&e[_R][r]&&(e[_R][r]=!1),n=ZL(n,{enumerable:EI(0,!1)})):(XI(e,_R)||DR(e,_R,EI(1,{})),e[_R][r]=!0),FR(e,r,n)):DR(e,r,n)},RR=function(e,t){dL(e);var n=jI(t);return gR(BL(n).concat(HR(n)),(function(t){bI&&!SI(zR,n,t)||LR(e,t,n[t])})),e},zR=function(e){var t=nL(e),n=SI(Jme,this,t);return!(this===bR&&XI(AR,t)&&!XI(jR,t))&&(!(n||!XI(this,t)||!XI(AR,t)||XI(this,_R)&&this[_R][t])||n)},BR=function(e,t){var n=jI(e),r=nL(t);if(n!==bR||!XI(AR,r)||XI(jR,r)){var i=ER(n,r);return!i||!XI(AR,r)||XI(n,_R)&&n[_R][r]||(i.enumerable=!0),i}},VR=function(e){var t=OR(jI(e)),n=[];return gR(t,(function(e){XI(AR,e)||XI(IL,e)||kR(n,e)})),n},HR=function(e){var t=e===bR,n=OR(t?jR:jI(e)),r=[];return gR(n,(function(e){!XI(AR,e)||t&&!XI(bR,e)||kR(r,AR[e])})),r};if(UI||(SR=(xR=function(){if(II(SR,this))throw CR(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?NL(arguments[0]):void 0,t=ZI(e),n=function(e){this===bR&&SI(n,jR,e),XI(this,_R)&&XI(this[_R],t)&&(this[_R][t]=!1),FR(this,t,EI(1,e))};return bI&&PR&&FR(bR,t,{configurable:!0,set:n}),IR(t,e)}).prototype,rR(SR,`toString`,(function(){return yR(this).tag})),rR(xR,`withoutSetter`,(function(e){return IR(ZI(e),e)})),TI.f=zR,pL.f=LR,sL.f=BR,QL.f=tR.f=VR,nR.f=HR,iR.f=function(e){return IR(tL(e),e)},bI&&DR(SR,`description`,{configurable:!0,get:function(){return yR(this).description}})),hL({global:!0,wrap:!0,forced:!UI,sham:!UI},{Symbol:xR}),gR(BL(Yme),(function(e){aR(e)})),hL({target:`Symbol`,stat:!0,forced:!UI},{for:function(e){var t=NL(e);if(XI(MR,t))return MR[t];var n=xR(t);return MR[t]=n,NR[n]=t,n},keyFor:function(e){if(!GI(e))throw CR(e+` is not a symbol`);if(XI(NR,e))return NR[e]},useSetter:function(){PR=!0},useSimple:function(){PR=!1}}),hL({target:`Object`,stat:!0,forced:!UI,sham:!bI},{create:function(e,t){return t===void 0?ZL(e):RR(ZL(e),t)},defineProperty:LR,defineProperties:RR,getOwnPropertyDescriptor:BR}),hL({target:`Object`,stat:!0,forced:!UI},{getOwnPropertyNames:VR,getOwnPropertySymbols:HR}),hL({target:`Object`,stat:!0,forced:yI((function(){nR.f(1)}))},{getOwnPropertySymbols:function(e){return nR.f(YI(e))}}),TR&&hL({target:`JSON`,stat:!0,forced:!UI||yI((function(){var e=xR();return TR([e])!=`[null]`||TR({a:e})!=`{}`||TR(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=zme(arguments),i=t;if((MI(t)||e!==void 0)&&!GI(e))return gL(t)||(t=function(e,t){if(vI(i)&&(t=SI(i,this,e,t)),!GI(t))return t}),r[1]=t,pI(TR,null,r)}}),!SR[vR]){var Xme=SR.valueOf;rR(SR,vR,(function(e){return SI(Xme,this)}))}sR(xR,`Symbol`),IL[_R]=!0,aR(`asyncIterator`),aR(`hasInstance`),aR(`isConcatSpreadable`),aR(`iterator`),aR(`match`),aR(`matchAll`),aR(`replace`),aR(`search`),aR(`species`),aR(`split`),aR(`toPrimitive`),aR(`toStringTag`),aR(`unscopables`),sR(lI.JSON,`JSON`,!0);var UR,WR,GR,KR=NI.Symbol,qR={},JR=Function.prototype,YR=bI&&Object.getOwnPropertyDescriptor,XR=XI(JR,`name`),ZR={EXISTS:XR,PROPER:XR&&function(){}.name===`something`,CONFIGURABLE:XR&&(!bI||bI&&YR(JR,`name`).configurable)},QR=!yI((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),$R=HL(`IE_PROTO`),ez=lI.Object,tz=ez.prototype,nz=QR?ez.getPrototypeOf:function(e){var t=YI(e);if(XI(t,$R))return t[$R];var n=t.constructor;return vI(n)&&t instanceof n?n.prototype:t instanceof ez?tz:null},rz=tL(`iterator`),iz=!1;[].keys&&(`next`in(GR=[].keys())?(WR=nz(nz(GR)))!==Object.prototype&&(UR=WR):iz=!0),UR=UR==null||yI((function(){var e={};return UR[rz].call(e)!==e}))?{}:ZL(UR),vI(UR[rz])||rR(UR,rz,(function(){return this}));var az={IteratorPrototype:UR,BUGGY_SAFARI_ITERATORS:iz},oz=az.IteratorPrototype,sz=function(){return this};lI.String,lI.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{_I(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var cz=ZR.PROPER,lz=az.BUGGY_SAFARI_ITERATORS,uz=tL(`iterator`),dz=function(){return this},fz=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=ZL(oz,{next:EI(1,n)}),sR(e,i,!1,!0),qR[i]=sz})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!lz&&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[uz]||p[`@@iterator`]||i&&p[i],h=!lz&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=nz(g.call(new e)))!==Object.prototype&&s.next&&(sR(s,d,!0,!0),qR[d]=dz),cz&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return SI(m,this)}),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(lz||f||!(l in p))&&rR(p,l,c[l]);else hL({target:t,proto:!0,forced:lz||f},c);return o&&p[uz]!==h&&rR(p,uz,h,{name:i}),qR[t]=h,c},pz=pR.set,mz=pR.getterFor(`Array Iterator`);fz(Array,`Array`,(function(e,t){pz(this,{type:`Array Iterator`,target:jI(e),index:0,kind:t})}),(function(){var e=mz(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`),qR.Arguments=qR.Array;var hz=tL(`toStringTag`);for(var gz 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 _z=lI[gz],vz=_z&&_z.prototype;vz&&SL(vz)!==hz&&mL(vz,hz,gz),qR[gz]=qR.Array}var yz=KR;aR(`asyncDispose`),aR(`dispose`),aR(`matcher`),aR(`metadata`),aR(`observable`),aR(`patternMatch`),aR(`replaceAll`);var bz=yz,xz=_I(``.charAt),Sz=_I(``.charCodeAt),Cz=_I(``.slice),wz=function(e){return function(t,n){var r,i,a=NL(AI(t)),o=_L(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Sz(a,o))<55296||r>56319||o+1===s||(i=Sz(a,o+1))<56320||i>57343?e?xz(a,o):r:e?Cz(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),Tz=pR.set,Ez=pR.getterFor(`String Iterator`);fz(String,`String`,(function(e){Tz(this,{type:`String Iterator`,string:NL(e),index:0})}),(function(){var e,t=Ez(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wz(n,r),t.index+=e.length,{value:e,done:!1})}));var Dz=iR.f(`iterator`),Oz=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(LA((function(e){function t(n){return typeof bz==`function`&&typeof Dz==`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 bz==`function`&&e.constructor===bz&&e!==bz.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}))),kz=jM.EXISTS,Az=cM.f,jz=Function.prototype,Mz=ej(jz.toString),Nz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Pz=ej(Nz.exec);UA&&!kz&&Az(jz,`name`,{configurable:!0,get:function(){try{return Pz(Nz,Mz(this))[1]}catch{return``}}});var Fz=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=V.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!JP(V.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!V.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}(),Iz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=Qde,t.mark=`fontSize`,t}return UP(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(Oz(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}(Fz),Lz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=$de,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return UP(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(Oz(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}(Fz),Rz={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&OF(a,{fontSize:r}),i&&OF(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!G.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((RP(t)||BP(n=q(t))!==`span`)&&(n=q(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),zP(n)):t},preParseHtml:[Ppe],parseStyleHtml:function(e,t,n){var r=q(e);if(!G.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=VP(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=VP(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 Iz},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 Lz},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},zz={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=q(e),n=VP(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]}},Bz=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=JP(V.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:JP(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=JP(V.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}(),Vz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=efe,t}return UP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){K.setNodes(e,{indent:null},{match:function(e){return B.isElement(e)}})},t}(Bz),Hz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=tfe,t}return UP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){K.setNodes(e,{indent:`2em`},{match:function(e){return B.isElement(e)},mode:`highest`})},t}(Bz),Uz={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.indent,r=t;return n&&OF(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.indent;if(!n)return t;var r=q(t);return r.css(`text-indent`,n),zP(r)},preParseHtml:[zz],parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=VP(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new Hz}},{key:`delIndent`,factory:function(){return new Vz}}]},Wz=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=JP(V.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(V.isVoid(e,t)&&V.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),Gz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=nfe,t}return UP(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`left`},{match:function(t){return B.isElement(t)&&!e.isInline(t)}})},t}(Wz),Kz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=rfe,t}return UP(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`right`},{match:function(t){return B.isElement(t)&&!e.isInline(t)}})},t}(Wz),qz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=ife,t}return UP(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`center`},{match:function(t){return B.isElement(t)&&!e.isInline(t)}})},t}(Wz),Jz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=afe,t}return UP(t,e),t.prototype.exec=function(e,t){K.setNodes(e,{textAlign:`justify`},{match:function(t){return B.isElement(t)&&!e.isInline(t)}})},t}(Wz),Yz={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.textAlign,r=t;return n&&OF(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=q(t);return r.css(`text-align`,n),zP(r)},parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=VP(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new Gz}},{key:`justifyRight`,factory:function(){return new Kz}},{key:`justifyCenter`,factory:function(){return new qz}},{key:`justifyJustify`,factory:function(){return new Jz}}]},Xz=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=JP(V.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?``:B.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){K.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),Zz={renderStyle:function(e,t){if(!B.isElement(e))return t;var n=e.lineHeight,r=t;return n&&OF(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!B.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=q(t);return r.css(`line-height`,n),zP(r)},parseStyleHtml:function(e,t,n){var r=q(e);if(!B.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=VP(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new Xz},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},Qz=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}(),$z=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}(),eB={menus:[{key:`redo`,factory:function(){return new Qz}},{key:`undo`,factory:function(){return new $z}}]},tB={type:`divider`,renderElem:function(e,t,n){return h_(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[h_(`hr`)])}},nB=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){K.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),rB={renderElems:[tB],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 nB}}],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=JP(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&K.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},iB=AN.map;cN({target:`Array`,proto:!0,forced:!MN(`map`)},{map:function(e){return iB(this,e,arguments.length>1?arguments[1]:void 0)}});var aB=ej([].join),oB=oj!=Object,sB=rF(`join`,`,`);cN({target:`Array`,proto:!0,forced:oB||!sB},{join:function(e){return aB(lj(this),e===void 0?`,`:e)}});var cB=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=H.string(t);K.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));K.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=V.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=qP(a),s=o.next();!s.done;s=o.next()){var c=JP(s.value,1)[0];c&&i.push(H.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}K.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};K.insertNodes(e,l,{mode:`highest`})},e}(),lB={key:`codeBlock`,factory:function(){return new cB}};cN({target:`String`,proto:!0,forced:ZP(`anchor`)},{anchor:function(e){return XP(this,`a`,`name`,e)}}),fP(`match`,(function(e,t,n){return[function(t){var n=cj(this),r=t==null?void 0:kj(t,e);return r?GA(r,t,n):new RegExp(t)[e](LN(n))},function(e){var r=aM(this),i=LN(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return _P(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=_P(r,i))!==null;){var u=LN(s[0]);c[l]=u,u===``&&(r.lastIndex=mP(i,BM(r.lastIndex),o)),l++}return l===0?null:c}]}));var uB={menus:[lB],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=H.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=JP(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&K.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&K.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(K.unwrapNodes(i),K.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`);V.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return F_(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return F_(`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=q(e);if(BP(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:q(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(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`}))}}}]},dB=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}(),fB={menus:[{key:`fullScreen`,factory:function(){return new dB}}]},pB=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||!!W.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];K.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(V.start(e,r))}},e}(),mB=[gfe,Jfe,Rz,Uz,Yz,Zz,vpe,rB,Mpe,ape,uB,Ape,Ufe,zde,xpe,eB,fB,{menus:[{key:`enter`,factory:function(){return new pB}}]}];gA(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),gA(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var hB=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function gB(e){var t={exports:{}};return e(t,t.exports),t.exports}var _B,vB,yB=function(e){return e&&e.Math==Math&&e},bB=yB(typeof globalThis==`object`&&globalThis)||yB(typeof window==`object`&&window)||yB(typeof self==`object`&&self)||yB(typeof hB==`object`&&hB)||function(){return this}()||Function(`return this`)(),xB=Function.prototype,SB=xB.bind,CB=xB.call,wB=SB&&SB.bind(CB),TB=SB?function(e){return e&&wB(CB,e)}:function(e){return e&&function(){return CB.apply(e,arguments)}},EB=function(e){try{return!!e()}catch{return!0}},DB=TB({}.toString),OB=TB(``.slice),kB=function(e){return OB(DB(e),8,-1)},AB=bB.Object,jB=TB(``.split),MB=EB((function(){return!AB(`z`).propertyIsEnumerable(0)}))?function(e){return kB(e)==`String`?jB(e,``):AB(e)}:AB,NB=bB.TypeError,PB=function(e){if(e==null)throw NB(`Can't call method on `+e);return e},FB=function(e){return MB(PB(e))},IB=Object.defineProperty,LB=function(e,t){try{IB(bB,e,{value:t,configurable:!0,writable:!0})}catch{bB[e]=t}return t},RB=bB[`__core-js_shared__`]||LB(`__core-js_shared__`,{}),zB=gB((function(e){(e.exports=function(e,t){return RB[e]||(RB[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),BB=bB.Object,VB=function(e){return BB(PB(e))},HB=TB({}.hasOwnProperty),UB=Object.hasOwn||function(e,t){return HB(VB(e),t)},WB=0,GB=Math.random(),KB=TB(1 .toString),qB=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+KB(++WB+GB,36)},JB=function(e){return typeof e==`function`},YB=function(e){return JB(e)?e:void 0},XB=function(e,t){return arguments.length<2?YB(bB[e]):bB[e]&&bB[e][t]},ZB=XB(`navigator`,`userAgent`)||``,QB=bB.process,$B=bB.Deno,eV=QB&&QB.versions||$B&&$B.version,tV=eV&&eV.v8;tV&&(vB=(_B=tV.split(`.`))[0]>0&&_B[0]<4?1:+(_B[0]+_B[1])),!vB&&ZB&&(!(_B=ZB.match(/Edge\/(\d+)/))||_B[1]>=74)&&(_B=ZB.match(/Chrome\/(\d+)/))&&(vB=+_B[1]);var nV,rV=vB,iV=!!Object.getOwnPropertySymbols&&!EB((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&rV&&rV<41})),aV=iV&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,oV=zB(`wks`),sV=bB.Symbol,cV=sV&&sV.for,lV=aV?sV:sV&&sV.withoutSetter||qB,uV=function(e){if(!UB(oV,e)||!iV&&typeof oV[e]!=`string`){var t=`Symbol.`+e;iV&&UB(sV,e)?oV[e]=sV[e]:oV[e]=aV&&cV?cV(t):lV(t)}return oV[e]},dV=function(e){return typeof e==`object`?e!==null:JB(e)},fV=bB.String,pV=bB.TypeError,mV=function(e){if(dV(e))return e;throw pV(fV(e)+` is not an object`)},hV=!EB((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),gV=bB.document,_V=dV(gV)&&dV(gV.createElement),vV=function(e){return _V?gV.createElement(e):{}},yV=!hV&&!EB((function(){return Object.defineProperty(vV(`div`),"a",{get:function(){return 7}}).a!=7})),bV=Function.prototype.call,xV=bV.bind?bV.bind(bV):function(){return bV.apply(bV,arguments)},SV=TB({}.isPrototypeOf),CV=bB.Object,wV=aV?function(e){return typeof e==`symbol`}:function(e){var t=XB(`Symbol`);return JB(t)&&SV(t.prototype,CV(e))},TV=bB.String,EV=function(e){try{return TV(e)}catch{return`Object`}},DV=bB.TypeError,OV=function(e){if(JB(e))return e;throw DV(EV(e)+` is not a function`)},kV=function(e,t){var n=e[t];return n==null?void 0:OV(n)},AV=bB.TypeError,jV=bB.TypeError,MV=uV(`toPrimitive`),NV=function(e){var t=function(e,t){if(!dV(e)||wV(e))return e;var n,r=kV(e,MV);if(r){if(t===void 0&&(t=`default`),n=xV(r,e,t),!dV(n)||wV(n))return n;throw jV(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&JB(n=e.toString)&&!dV(r=xV(n,e))||JB(n=e.valueOf)&&!dV(r=xV(n,e))||t!==`string`&&JB(n=e.toString)&&!dV(r=xV(n,e)))return r;throw AV(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return wV(t)?t:t+``},PV=bB.TypeError,FV=Object.defineProperty,IV={f:hV?FV:function(e,t,n){if(mV(e),t=NV(t),mV(n),yV)try{return FV(e,t,n)}catch{}if(`get`in n||`set`in n)throw PV(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},LV=Math.ceil,RV=Math.floor,zV=function(e){var t=+e;return t!=t||t===0?0:(t>0?RV:LV)(t)},BV=Math.max,VV=Math.min,HV=function(e,t){var n=zV(e);return n<0?BV(n+t,0):VV(n,t)},UV=Math.min,WV=function(e){return e>0?UV(zV(e),9007199254740991):0},GV=function(e){return WV(e.length)},KV=function(e){return function(t,n,r){var i,a=FB(t),o=GV(a),s=HV(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}},qV={includes:KV(!0),indexOf:KV(!1)},JV={},YV=qV.indexOf,XV=TB([].push),ZV=function(e,t){var n,r=FB(e),i=0,a=[];for(n in r)!UB(JV,n)&&UB(r,n)&&XV(a,n);for(;t.length>i;)UB(r,n=t[i++])&&(~YV(a,n)||XV(a,n));return a},QV=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],$V=Object.keys||function(e){return ZV(e,QV)},eH=hV?Object.defineProperties:function(e,t){mV(e);for(var n,r=FB(t),i=$V(t),a=i.length,o=0;a>o;)IV.f(e,n=i[o++],r[n]);return e},tH=XB(`document`,`documentElement`),nH=zB(`keys`),rH=function(e){return nH[e]||(nH[e]=qB(e))},iH=rH(`IE_PROTO`),aH=function(){},oH=function(e){return`<script>`+e+`<\/script>`},sH=function(e){e.write(oH(``)),e.close();var t=e.parentWindow.Object;return e=null,t},cH=function(){try{nV=new ActiveXObject(`htmlfile`)}catch{}var e,t;cH=typeof document<`u`?document.domain&&nV?sH(nV):((t=vV(`iframe`)).style.display=`none`,tH.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(oH(`document.F=Object`)),e.close(),e.F):sH(nV);for(var n=QV.length;n--;)delete cH.prototype[QV[n]];return cH()};JV[iH]=!0;var lH=Object.create||function(e,t){var n;return e===null?n=cH():(aH.prototype=mV(e),n=new aH,aH.prototype=null,n[iH]=e),t===void 0?n:eH(n,t)},uH=uV(`unscopables`),dH=Array.prototype;dH[uH]??IV.f(dH,uH,{configurable:!0,value:lH(null)});var fH=function(e){dH[uH][e]=!0},pH={},mH=TB(Function.toString);JB(RB.inspectSource)||(RB.inspectSource=function(e){return mH(e)});var hH,gH,_H,vH=RB.inspectSource,yH=bB.WeakMap,bH=JB(yH)&&/native code/.test(vH(yH)),xH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},SH=hV?function(e,t,n){return IV.f(e,t,xH(1,n))}:function(e,t,n){return e[t]=n,e},CH=bB.TypeError,wH=bB.WeakMap;if(bH||RB.state){var TH=RB.state||=new wH,EH=TB(TH.get),DH=TB(TH.has),OH=TB(TH.set);hH=function(e,t){if(DH(TH,e))throw new CH(`Object already initialized`);return t.facade=e,OH(TH,e,t),t},gH=function(e){return EH(TH,e)||{}},_H=function(e){return DH(TH,e)}}else{var kH=rH(`state`);JV[kH]=!0,hH=function(e,t){if(UB(e,kH))throw new CH(`Object already initialized`);return t.facade=e,SH(e,kH,t),t},gH=function(e){return UB(e,kH)?e[kH]:{}},_H=function(e){return UB(e,kH)}}var AH,jH,MH,NH={set:hH,get:gH,has:_H,enforce:function(e){return _H(e)?gH(e):hH(e,{})},getterFor:function(e){return function(t){var n;if(!dV(t)||(n=gH(t)).type!==e)throw CH(`Incompatible receiver, `+e+` required`);return n}}},PH={}.propertyIsEnumerable,FH=Object.getOwnPropertyDescriptor,IH={f:FH&&!PH.call({1:2},1)?function(e){var t=FH(this,e);return!!t&&t.enumerable}:PH},LH=Object.getOwnPropertyDescriptor,RH={f:hV?LH:function(e,t){if(e=FB(e),t=NV(t),yV)try{return LH(e,t)}catch{}if(UB(e,t))return xH(!xV(IH.f,e,t),e[t])}},zH=Function.prototype,BH=hV&&Object.getOwnPropertyDescriptor,VH=UB(zH,`name`),HH={EXISTS:VH,PROPER:VH&&function(){}.name===`something`,CONFIGURABLE:VH&&(!hV||hV&&BH(zH,`name`).configurable)},UH=gB((function(e){var t=HH.CONFIGURABLE,n=NH.get,r=NH.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;JB(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!UB(a,`name`)||t&&a.name!==d)&&SH(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===bB?l?e[n]=a:LB(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:SH(e,n,a))})(Function.prototype,`toString`,(function(){return JB(this)&&n(this).source||vH(this)}))})),WH=QV.concat(`length`,`prototype`),GH={f:Object.getOwnPropertyNames||function(e){return ZV(e,WH)}},KH={f:Object.getOwnPropertySymbols},qH=TB([].concat),JH=XB(`Reflect`,`ownKeys`)||function(e){var t=GH.f(mV(e)),n=KH.f;return n?qH(t,n(e)):t},YH=function(e,t){for(var n=JH(t),r=IV.f,i=RH.f,a=0;a<n.length;a++){var o=n[a];UB(e,o)||r(e,o,i(t,o))}},XH=/#|\.prototype\./,ZH=function(e,t){var n=$H[QH(e)];return n==tU||n!=eU&&(JB(t)?EB(t):!!t)},QH=ZH.normalize=function(e){return String(e).replace(XH,`.`).toLowerCase()},$H=ZH.data={},eU=ZH.NATIVE=`N`,tU=ZH.POLYFILL=`P`,nU=ZH,rU=RH.f,iU=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?bB:l?bB[s]||LB(s,{}):(bB[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=rU(n,r))&&o.value:n[r],!nU(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;YH(a,i)}(e.sham||i&&i.sham)&&SH(a,`sham`,!0),UH(n,r,a,e)}},aU=!EB((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),oU=rH(`IE_PROTO`),sU=bB.Object,cU=sU.prototype,lU=aU?sU.getPrototypeOf:function(e){var t=VB(e);if(UB(t,oU))return t[oU];var n=t.constructor;return JB(n)&&t instanceof n?n.prototype:t instanceof sU?cU:null},uU=uV(`iterator`),dU=!1;[].keys&&(`next`in(MH=[].keys())?(jH=lU(lU(MH)))!==Object.prototype&&(AH=jH):dU=!0),(AH==null||EB((function(){var e={};return AH[uU].call(e)!==e})))&&(AH={}),JB(AH[uU])||UH(AH,uU,(function(){return this}));var fU={IteratorPrototype:AH,BUGGY_SAFARI_ITERATORS:dU},pU=IV.f,mU=uV(`toStringTag`),hU=function(e,t,n){e&&!UB(e=n?e:e.prototype,mU)&&pU(e,mU,{configurable:!0,value:t})},gU=fU.IteratorPrototype,_U=function(){return this},vU=bB.String,yU=bB.TypeError,bU=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=TB(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return mV(n),function(e){if(typeof e==`object`||JB(e))return e;throw yU(`Can't set `+vU(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),xU=HH.PROPER,SU=HH.CONFIGURABLE,CU=fU.IteratorPrototype,wU=fU.BUGGY_SAFARI_ITERATORS,TU=uV(`iterator`),EU=function(){return this},DU=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=lH(gU,{next:xH(1,n)}),hU(e,i,!1),pH[i]=_U})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!wU&&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[TU]||p[`@@iterator`]||i&&p[i],h=!wU&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=lU(g.call(new e)))!==Object.prototype&&s.next&&(lU(s)!==CU&&(bU?bU(s,CU):JB(s[TU])||UH(s,TU,EU)),hU(s,d,!0)),xU&&i==`values`&&m&&m.name!==`values`&&(SU?SH(p,`name`,`values`):(f=!0,h=function(){return xV(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(wU||f||!(l in p))&&UH(p,l,c[l]);else iU({target:t,proto:!0,forced:wU||f},c);return p[TU]!==h&&UH(p,TU,h,{name:i}),pH[t]=h,c},OU=NH.set,kU=NH.getterFor(`Array Iterator`),AU=DU(Array,`Array`,(function(e,t){OU(this,{type:`Array Iterator`,target:FB(e),index:0,kind:t})}),(function(){var e=kU(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`);pH.Arguments=pH.Array,fH(`keys`),fH(`values`),fH(`entries`);var jU={};jU[uV(`toStringTag`)]=`z`;var MU=String(jU)===`[object z]`,NU=uV(`toStringTag`),PU=bB.Object,FU=kB(function(){return arguments}())==`Arguments`,IU=MU?kB: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=PU(e),NU))==`string`?n:FU?kB(t):(r=kB(t))==`Object`&&JB(t.callee)?`Arguments`:r},LU=MU?{}.toString:function(){return`[object `+IU(this)+`]`};MU||UH(Object.prototype,`toString`,LU,{unsafe:!0});var RU=bB.String,zU=function(e){if(IU(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return RU(e)},BU=TB(``.charAt),VU=TB(``.charCodeAt),HU=TB(``.slice),UU=function(e){return function(t,n){var r,i,a=zU(PB(t)),o=zV(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=VU(a,o))<55296||r>56319||o+1===s||(i=VU(a,o+1))<56320||i>57343?e?BU(a,o):r:e?HU(a,o,o+2):i-56320+(r-55296<<10)+65536}},WU={codeAt:UU(!1),charAt:UU(!0)},GU=WU.charAt,KU=NH.set,qU=NH.getterFor(`String Iterator`);DU(String,`String`,(function(e){KU(this,{type:`String Iterator`,string:zU(e),index:0})}),(function(){var e,t=qU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=GU(n,r),t.index+=e.length,{value:e,done:!1})}));var JU=function(e,t,n){for(var r in t)UH(e,r,t[r],n);return e},YU=bB.Array,XU=Math.max,ZU=GH.f,QU=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],$U={f:function(e){return QU&&kB(e)==`Window`?function(e){try{return ZU(e)}catch{return function(e,t,n){for(var r,i,a,o,s=GV(e),c=HV(void 0,s),l=HV(s,s),u=YU(XU(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=NV(i))in r?IV.f(r,o,xH(0,a)):r[o]=a;return u.length=d,u}(QU)}}(e):ZU(FB(e))}},eW=EB((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),tW=Object.isExtensible,nW=EB((function(){tW(1)}))||eW?function(e){return!!dV(e)&&(!eW||kB(e)!=`ArrayBuffer`)&&(!tW||tW(e))}:tW,rW=!EB((function(){return Object.isExtensible(Object.preventExtensions({}))})),iW=gB((function(e){var t=IV.f,n=!1,r=qB(`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=GH.f,t=TB([].splice),i={};i[r]=1,e(i).length&&(GH.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},iU({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:$U.f}))},fastKey:function(e,t){if(!dV(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!UB(e,r)){if(!nW(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!UB(e,r)){if(!nW(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return rW&&n&&nW(e)&&!UB(e,r)&&a(e),e}};JV[r]=!0})),aW=TB(TB.bind),oW=function(e,t){return OV(e),t===void 0?e:aW?aW(e,t):function(){return e.apply(t,arguments)}},sW=uV(`iterator`),cW=Array.prototype,lW=uV(`iterator`),uW=function(e){if(e!=null)return kV(e,lW)||kV(e,`@@iterator`)||pH[IU(e)]},dW=bB.TypeError,fW=function(e,t,n){var r,i;mV(e);try{if(!(r=kV(e,`return`))){if(t===`throw`)throw n;return n}r=xV(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return mV(r),n},pW=bB.TypeError,mW=function(e,t){this.stopped=e,this.result=t},hW=mW.prototype,gW=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=oW(t,d),g=function(e){return r&&fW(r,`normal`,e),new mW(!0,e)},_=function(e){return f?(mV(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=uW(e)))throw pW(EV(e)+` is not iterable`);if((u=i)!==void 0&&(pH.Array===u||cW[sW]===u)){for(a=0,o=GV(e);o>a;a++)if((s=_(e[a]))&&SV(hW,s))return s;return new mW(!1)}r=function(e,t){var n=arguments.length<2?uW(e):t;if(OV(n))return mV(xV(n,e));throw dW(EV(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=xV(c,r)).done;){try{s=_(l.value)}catch(e){fW(r,`throw`,e)}if(typeof s==`object`&&s&&SV(hW,s))return s}return new mW(!1)},_W=bB.TypeError,vW=function(e,t){if(SV(t,e))return e;throw _W(`Incorrect invocation`)},yW=uV(`iterator`),bW=!1;try{var xW=0,SW={next:function(){return{done:!!xW++}},return:function(){bW=!0}};SW[yW]=function(){return this},Array.from(SW,(function(){throw 2}))}catch{}var CW=Array.isArray||function(e){return kB(e)==`Array`},wW=function(){},TW=[],EW=XB(`Reflect`,`construct`),DW=/^\s*(?:class|function)\b/,OW=TB(DW.exec),kW=!DW.exec(wW),AW=function(e){if(!JB(e))return!1;try{return EW(wW,TW,e),!0}catch{return!1}},jW=!EW||EB((function(){var e;return AW(AW.call)||!AW(Object)||!AW((function(){e=!0}))||e}))?function(e){if(!JB(e))return!1;switch(IU(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return kW||!!OW(DW,vH(e))}:AW,MW=uV(`species`),NW=bB.Array,PW=function(e,t){return new(function(e){var t;return CW(e)&&(t=e.constructor,(jW(t)&&(t===NW||CW(t.prototype))||dV(t)&&(t=t[MW])===null)&&(t=void 0)),t===void 0?NW:t}(e))(t===0?0:t)},FW=TB([].push),IW=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=VB(c),h=MB(m),g=oW(l,u),_=GV(h),v=0,y=d||PW,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:FW(b,f)}else switch(e){case 4:return!1;case 7:FW(b,f)}return a?-1:r||i?i:b}},LW={forEach:IW(0),map:IW(1),filter:IW(2),some:IW(3),every:IW(4),find:IW(5),findIndex:IW(6),filterReject:IW(7)},RW=iW.getWeakData,zW=NH.set,BW=NH.getterFor,VW=LW.find,HW=LW.findIndex,UW=TB([].splice),WW=0,GW=function(e){return e.frozen||=new KW},KW=function(){this.entries=[]},qW=function(e,t){return VW(e.entries,(function(e){return e[0]===t}))};KW.prototype={get:function(e){var t=qW(this,e);if(t)return t[1]},has:function(e){return!!qW(this,e)},set:function(e,t){var n=qW(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=HW(this.entries,(function(t){return t[0]===e}));return~t&&UW(this.entries,t,1),!!~t}};var JW,YW={getConstructor:function(e,t,n,r){var i=e((function(e,i){vW(e,a),zW(e,{type:t,id:WW++,frozen:void 0}),i!=null&&gW(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=BW(t),s=function(e,t,n){var r=o(e),i=RW(mV(t),!0);return!0===i?GW(r).set(t,n):i[r.id]=n,e};return JU(a,{delete:function(e){var t=o(this);if(!dV(e))return!1;var n=RW(e);return!0===n?GW(t).delete(e):n&&UB(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!dV(e))return!1;var n=RW(e);return!0===n?GW(t).has(e):n&&UB(n,t.id)}}),JU(a,n?{get:function(e){var t=o(this);if(dV(e)){var n=RW(e);return!0===n?GW(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}},XW=NH.enforce,ZW=!bB.ActiveXObject&&`ActiveXObject`in bB,QW=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},$W=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=bB[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=TB(s[e]);UH(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!dV(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!dV(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!dV(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(nU(e,!JB(o)||!(i||s.forEach&&!EB((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),iW.enable();else if(nU(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=EB((function(){d.has(1)})),m=function(e,t){if(!bW)return!1;var n=!1;try{var r={};r[yW]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&EB((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){vW(e,s);var n=function(e,t,n){var r,i;return bU&&JB(r=t.constructor)&&r!==n&&dV(i=r.prototype)&&i!==n.prototype&&bU(e,i),e}(new o,e,c);return t!=null&&gW(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,iU({global:!0,forced:c!=o},l),hU(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,QW,YW);if(bH&&ZW){JW=YW.getConstructor(QW,`WeakMap`,!0),iW.enable();var eG=$W.prototype,tG=TB(eG.delete),nG=TB(eG.has),rG=TB(eG.get),iG=TB(eG.set);JU(eG,{delete:function(e){if(dV(e)&&!nW(e)){var t=XW(this);return t.frozen||=new JW,tG(this,e)||t.frozen.delete(e)}return tG(this,e)},has:function(e){if(dV(e)&&!nW(e)){var t=XW(this);return t.frozen||=new JW,nG(this,e)||t.frozen.has(e)}return nG(this,e)},get:function(e){if(dV(e)&&!nW(e)){var t=XW(this);return t.frozen||=new JW,nG(this,e)?rG(this,e):t.frozen.get(e)}return rG(this,e)},set:function(e,t){if(dV(e)&&!nW(e)){var n=XW(this);n.frozen||=new JW,nG(this,e)?iG(this,e,t):n.frozen.set(e,t)}else iG(this,e,t);return this}})}var aG={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},oG=vV(`span`).classList,sG=oG&&oG.constructor&&oG.constructor.prototype,cG=sG===Object.prototype?void 0:sG,lG=uV(`iterator`),uG=uV(`toStringTag`),dG=AU.values,fG=function(e,t){if(e){if(e[lG]!==dG)try{SH(e,lG,dG)}catch{e[lG]=dG}if(e[uG]||SH(e,uG,t),aG[t]){for(var n in AU)if(e[n]!==AU[n])try{SH(e,n,AU[n])}catch{e[n]=AU[n]}}}};for(var pG in aG)fG(bB[pG]&&bB[pG].prototype,pG);fG(cG,`DOMTokenList`);var mG=new WeakMap,hG={type:`list-item`,renderElem:function(e,t,n){mG.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=U.previous(u),f=V.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];G.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return F_(`div`,{style:s},F_(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),F_(`span`,null,t))}},gG=function(e,t){return gG=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])},gG(e,t)};function _G(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}gG(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function vG(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 yG(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 bG(e){return V.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var xG=qV.includes;iU({target:`Array`,proto:!0},{includes:function(e){return xG(this,e,arguments.length>1?arguments[1]:void 0)}}),fH(`includes`);var SG,CG,wG=function(){var e=mV(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},TG=bB.RegExp,EG=EB((function(){var e=TG(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),DG=EG||EB((function(){return!TG(`a`,`y`).sticky})),OG={BROKEN_CARET:EG||EB((function(){var e=TG(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:DG,UNSUPPORTED_Y:EG},kG=bB.RegExp,AG=EB((function(){var e=kG(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),jG=bB.RegExp,MG=EB((function(){var e=jG(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),NG=NH.get,PG=zB(`native-string-replace`,String.prototype.replace),FG=RegExp.prototype.exec,IG=FG,LG=TB(``.charAt),RG=TB(``.indexOf),zG=TB(``.replace),BG=TB(``.slice),VG=(CG=/b*/g,xV(FG,SG=/a/,`a`),xV(FG,CG,`a`),SG.lastIndex!==0||CG.lastIndex!==0),HG=OG.BROKEN_CARET,UG=/()??/.exec(``)[1]!==void 0;(VG||UG||HG||AG||MG)&&(IG=function(e){var t,n,r,i,a,o,s,c=this,l=NG(c),u=zU(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=xV(IG,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=HG&&c.sticky,m=xV(wG,c),h=c.source,g=0,_=u;if(p&&(m=zG(m,`y`,``),RG(m,`g`)===-1&&(m+=`g`),_=BG(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&LG(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),UG&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),VG&&(r=c.lastIndex),i=xV(FG,p?n:c,_),p?i?(i.input=BG(i.input,g),i[0]=BG(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:VG&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),UG&&i&&i.length>1&&xV(PG,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=lH(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var WG=IG;iU({target:`RegExp`,proto:!0,forced:/./.exec!==WG},{exec:WG});var GG=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(V.isVoid(e,t)&&V.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)?K.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):K.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),KG=`<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>`,qG=`<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>`,JG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=KG,t}return _G(t,e),t}(GG),YG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=qG,t}return _G(t,e),t}(GG),XG={key:`bulletedList`,factory:function(){return new JG}},ZG={key:`numberedList`,factory:function(){return new YG}},QG=[],$G={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=mG.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=U.previous(c),u=V.node(t,l);if(!u)return 0;var d=yG(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+`>`,QG.push(a);var c=function(e){var t=mG.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=U.next(c),u=V.node(t,l);if(!u)return 0;var d=yG(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+=`</`+QG.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},eK=uV(`species`),tK=LW.filter;iU({target:`Array`,proto:!0,forced:!(rV>=51||!EB((function(){var e=[];return(e.constructor={})[eK]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return tK(this,e,arguments.length>1?arguments[1]:void 0)}});var nK=Function.prototype,rK=nK.apply,iK=nK.bind,aK=nK.call,oK=typeof Reflect==`object`&&Reflect.apply||(iK?aK.bind(rK):function(){return aK.apply(rK,arguments)}),sK=(uV(`species`),RegExp.prototype),cK=WU.charAt,lK=function(e,t,n){return t+(n?cK(e,t).length:1)},uK=Math.floor,dK=TB(``.charAt),fK=TB(``.replace),pK=TB(``.slice),mK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,hK=/\$([$&'`]|\d{1,2})/g,gK=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=hK;return i!==void 0&&(i=VB(i),c=mK),fK(a,c,(function(a,c){var l;switch(dK(c,0)){case`$`:return`$`;case`&`:return e;case"`":return pK(t,0,n);case`'`:return pK(t,o);case`<`:l=i[pK(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=uK(u/10);return d===0?a:d<=s?r[d-1]===void 0?dK(c,1):r[d-1]+dK(c,1):a}l=r[u-1]}return l===void 0?``:l}))},_K=bB.TypeError,vK=function(e,t){var n=e.exec;if(JB(n)){var r=xV(n,e,t);return r!==null&&mV(r),r}if(kB(e)===`RegExp`)return xV(WG,e,t);throw _K(`RegExp#exec called on incompatible receiver`)},yK=uV(`replace`),bK=Math.max,xK=Math.min,SK=TB([].concat),CK=TB([].push),wK=TB(``.indexOf),TK=TB(``.slice),EK=`a`.replace(/./,`$0`)===`$0`,DK=!!/./[yK]&&/./[yK](`a`,`$0`)===``;(function(e,t,n,r){var i=uV(e),a=!EB((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!EB((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=TB(/./[i]),c=function(e,t,n){var r=DK?`$`:`$0`;return[function(e,n){var r=PB(this),i=e==null?void 0:kV(e,yK);return i?xV(i,e,r,n):xV(t,zU(r),e,n)},function(e,i){var a=mV(this),o=zU(e);if(typeof i==`string`&&wK(i,r)===-1&&wK(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=JB(i);c||(i=zU(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=vK(a,o);if(f===null||(CK(d,f),!l))break;zU(f[0])===``&&(a.lastIndex=lK(o,WV(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=zU((f=d[g])[0]),v=bK(xK(zV(f.index),o.length),0),y=[],b=1;b<f.length;b++)CK(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=SK([_],y,v,o);x!==void 0&&CK(S,x);var C=zU(oK(i,void 0,S))}else C=gK(_,o,v,y,x,i);v>=h&&(m+=TK(o,h,v)+C,h=v+_.length)}return m+TK(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=TB(e),c=t.exec;return c===WG||c===sK.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));UH(String.prototype,e,c[0]),UH(sK,i,c[1])}})(`replace`,0,!!EB((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!EK||DK);var OK=bB.TypeError,kK=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&oW(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&CW(c))l=GV(c),u=kK(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw OK(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},AK=kK;function jK(e){return e.length?e[0].tagName.toLowerCase():``}iU({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=VB(this),n=GV(t),r=PW(t,0);return r.length=AK(r,t,t,n,0,e===void 0?1:zV(e)),r}}),fH(`flat`),iU({global:!0},{globalThis:bB}),cg&&(q.fn.append=cg),Gh&&(q.fn.attr=Gh),ug&&(q.fn.parent=ug);var MK={renderElems:[hG],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(W.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?K.setNodes(i,{level:o-1}):K.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(W.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;K.setNodes(i,{level:l+1});return}}if(W.isExpanded(o)){var u=0,d=!1;try{for(var f=vG(bG(i)),p=f.next();!p.done;p=f.next()){var m=yG(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=vG(bG(i)),g=h.next();!g.done;g=h.next()){var _=yG(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,K.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=yG(e,2),n=t[0],a=t[1],o=X.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||K.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[XG,ZG],elemsToHtml:[$G],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=q(e);return(t=t.filter((function(e){return!!G.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return jK(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=jK(n);r===`ul`||r===`ol`;)r=jK(n=n.parent()),t++;return t-1}(r),children:t}}}]},NK=wa((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 WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=/^\[object .+?Constructor\]$/,x=/^(?:0|[1-9]\d*)$/,S={};S[`[object Float32Array]`]=S[`[object Float64Array]`]=S[`[object Int8Array]`]=S[`[object Int16Array]`]=S[`[object Int32Array]`]=S[`[object Uint8Array]`]=S[`[object Uint8ClampedArray]`]=S[`[object Uint16Array]`]=S[`[object Uint32Array]`]=!0,S[i]=S[a]=S[v]=S[o]=S[y]=S[s]=S[c]=S[l]=S[u]=S[d]=S[f]=S[m]=S[h]=S[g]=S[_]=!1;var C=typeof Sa==`object`&&Sa&&Sa.Object===Object&&Sa,w=typeof self==`object`&&self&&self.Object===Object&&self,T=C||w||Function(`return this`)(),E=t&&!t.nodeType&&t,D=E&&e&&!e.nodeType&&e,O=D&&D.exports===E,k=O&&C.process,A=function(){try{return k&&k.binding&&k.binding(`util`)}catch{}}(),j=A&&A.isTypedArray;function M(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 N(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function P(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var F=Array.prototype,ee=Function.prototype,te=Object.prototype,ne=T[`__core-js_shared__`],re=ee.toString,I=te.hasOwnProperty,ie=function(){var e=/[^.]+$/.exec(ne&&ne.keys&&ne.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ae=te.toString,oe=RegExp(`^`+re.call(I).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),se=O?T.Buffer:void 0,L=T.Symbol,ce=T.Uint8Array,le=te.propertyIsEnumerable,ue=F.splice,de=L?L.toStringTag:void 0,fe=Object.getOwnPropertySymbols,pe=se?se.isBuffer:void 0,me=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),he=Ue(T,`DataView`),ge=Ue(T,`Map`),_e=Ue(T,`Promise`),ve=Ue(T,`Set`),ye=Ue(T,`WeakMap`),be=Ue(Object,`create`),xe=qe(he),Se=qe(ge),Ce=qe(_e),we=qe(ve),Te=qe(ye),Ee=L?L.prototype:void 0,De=Ee?Ee.valueOf:void 0;function Oe(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 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.__data__=new Ae;++t<n;)this.add(e[t])}function Me(e){var t=this.__data__=new ke(e);this.size=t.size}function Ne(e,t){var n=Xe(e),r=!n&&Ye(e),i=!n&&!r&&Ze(e),a=!n&&!r&&!i&&nt(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&&!I.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ke(l,c))||s.push(l);return s}function Pe(e,t){for(var n=e.length;n--;)if(Je(e[n][0],t))return n;return-1}function Fe(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:de&&de in Object(e)?function(e){var t=I.call(e,de),n=e[de];try{e[de]=void 0;var r=!0}catch{}var i=ae.call(e);return r&&(t?e[de]=n:delete e[de]),i}(e):function(e){return ae.call(e)}(e)}function Ie(e){return tt(e)&&Fe(e)==i}function Le(e,t,n,r,l){return e===t||(e==null||t==null||!tt(e)&&!tt(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var _=Xe(e),b=Xe(t),x=_?a:Ge(e),S=b?a:Ge(t),C=(x=x==i?f:x)==f,w=(S=S==i?f:S)==f,T=x==S;if(T&&Ze(e)){if(!Ze(t))return!1;_=!0,C=!1}if(T&&!C)return p||=new Me,_||nt(e)?Be(e,t,n,r,l,p):function(e,t,n,r,i,a,l){switch(n){case y:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case v:return!(e.byteLength!=t.byteLength||!a(new ce(e),new ce(t)));case o:case s:case d:return Je(+e,+t);case c:return e.name==t.name&&e.message==t.message;case m:case g:return e==t+``;case u:var f=N;case h:var p=1&r;if(f||=P,e.size!=t.size&&!p)return!1;var _=l.get(e);if(_)return _==t;r|=2,l.set(e,t);var b=Be(f(e),f(t),r,i,a,l);return l.delete(e),b;case`[object Symbol]`:if(De)return De.call(e)==De.call(t)}return!1}(e,t,x,n,r,l,p);if(!(1&n)){var E=C&&I.call(e,`__wrapped__`),D=w&&I.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return p||=new Me,l(O,k,n,r,p)}}return T?(p||=new Me,function(e,t,n,r,i,a){var o=1&n,s=Ve(e),c=s.length;if(c!=Ve(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:I.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,Le,l))}function Re(e){return!(!et(e)||function(e){return!!ie&&ie in e}(e))&&(Qe(e)?oe:b).test(qe(e))}function ze(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||te,t!==r)return me(e);var t,n,r,i=[];for(var a in Object(e))I.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Be(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 je: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(!M(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 Ve(e){return function(e,t,n){var r=t(e);return Xe(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,rt,We)}function He(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 Ue(e,t){var n=function(e,t){return e?.[t]}(e,t);return Re(n)?n:void 0}Oe.prototype.clear=function(){this.__data__=be?be(null):{},this.size=0},Oe.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},Oe.prototype.get=function(e){var t=this.__data__;if(be){var r=t[e];return r===n?void 0:r}return I.call(t,e)?t[e]:void 0},Oe.prototype.has=function(e){var t=this.__data__;return be?t[e]!==void 0:I.call(t,e)},Oe.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=be&&t===void 0?n:t,this},ke.prototype.clear=function(){this.__data__=[],this.size=0},ke.prototype.delete=function(e){var t=this.__data__,n=Pe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ue.call(t,n,1),--this.size,!0)},ke.prototype.get=function(e){var t=this.__data__,n=Pe(t,e);return n<0?void 0:t[n][1]},ke.prototype.has=function(e){return Pe(this.__data__,e)>-1},ke.prototype.set=function(e,t){var n=this.__data__,r=Pe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Ae.prototype.clear=function(){this.size=0,this.__data__={hash:new Oe,map:new(ge||ke),string:new Oe}},Ae.prototype.delete=function(e){var t=He(this,e).delete(e);return this.size-=+!!t,t},Ae.prototype.get=function(e){return He(this,e).get(e)},Ae.prototype.has=function(e){return He(this,e).has(e)},Ae.prototype.set=function(e,t){var n=He(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},je.prototype.add=je.prototype.push=function(e){return this.__data__.set(e,n),this},je.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.clear=function(){this.__data__=new ke,this.size=0},Me.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Me.prototype.get=function(e){return this.__data__.get(e)},Me.prototype.has=function(e){return this.__data__.has(e)},Me.prototype.set=function(e,t){var n=this.__data__;if(n instanceof ke){var r=n.__data__;if(!ge||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ae(r)}return n.set(e,t),this.size=n.size,this};var We=fe?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}(fe(e),(function(t){return le.call(e,t)})))}:function(){return[]},Ge=Fe;function Ke(e,t){return!!(t??=r)&&(typeof e==`number`||x.test(e))&&e>-1&&e%1==0&&e<t}function qe(e){if(e!=null){try{return re.call(e)}catch{}try{return e+``}catch{}}return``}function Je(e,t){return e===t||e!=e&&t!=t}(he&&Ge(new he(new ArrayBuffer(1)))!=y||ge&&Ge(new ge)!=u||_e&&Ge(_e.resolve())!=p||ve&&Ge(new ve)!=h||ye&&Ge(new ye)!=_)&&(Ge=function(e){var t=Fe(e),n=t==f?e.constructor:void 0,r=n?qe(n):``;if(r)switch(r){case xe:return y;case Se:return u;case Ce:return p;case we:return h;case Te:return _}return t});var Ye=Ie(function(){return arguments}())?Ie:function(e){return tt(e)&&I.call(e,`callee`)&&!le.call(e,`callee`)},Xe=Array.isArray,Ze=pe||function(){return!1};function Qe(e){if(!et(e))return!1;var t=Fe(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function $e(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function et(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function tt(e){return typeof e==`object`&&!!e}var nt=j?function(e){return function(t){return e(t)}}(j):function(e){return tt(e)&&$e(e.length)&&!!S[Fe(e)]};function rt(e){return(t=e)!=null&&$e(t.length)&&!Qe(t)?Ne(e):ze(e);var t}e.exports=function(e,t){return Le(e,t)}}));gA(`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`}}),gA(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var PK=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function FK(e){var t={exports:{}};return e(t,t.exports),t.exports}var IK,LK,RK=function(e){return e&&e.Math==Math&&e},zK=RK(typeof globalThis==`object`&&globalThis)||RK(typeof window==`object`&&window)||RK(typeof self==`object`&&self)||RK(typeof PK==`object`&&PK)||function(){return this}()||Function(`return this`)(),BK=function(e){try{return!!e()}catch{return!0}},VK=!BK((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),HK=Function.prototype.call,UK=HK.bind?HK.bind(HK):function(){return HK.apply(HK,arguments)},WK={}.propertyIsEnumerable,GK=Object.getOwnPropertyDescriptor,KK={f:GK&&!WK.call({1:2},1)?function(e){var t=GK(this,e);return!!t&&t.enumerable}:WK},qK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},JK=Function.prototype,YK=JK.bind,XK=JK.call,ZK=YK&&YK.bind(XK),QK=YK?function(e){return e&&ZK(XK,e)}:function(e){return e&&function(){return XK.apply(e,arguments)}},$K=QK({}.toString),eq=QK(``.slice),tq=function(e){return eq($K(e),8,-1)},nq=zK.Object,rq=QK(``.split),iq=BK((function(){return!nq(`z`).propertyIsEnumerable(0)}))?function(e){return tq(e)==`String`?rq(e,``):nq(e)}:nq,aq=zK.TypeError,oq=function(e){if(e==null)throw aq(`Can't call method on `+e);return e},sq=function(e){return iq(oq(e))},cq=function(e){return typeof e==`function`},lq=function(e){return typeof e==`object`?e!==null:cq(e)},uq=function(e){return cq(e)?e:void 0},dq=function(e,t){return arguments.length<2?uq(zK[e]):zK[e]&&zK[e][t]},fq=QK({}.isPrototypeOf),pq=dq(`navigator`,`userAgent`)||``,mq=zK.process,hq=zK.Deno,gq=mq&&mq.versions||hq&&hq.version,_q=gq&&gq.v8;_q&&(LK=(IK=_q.split(`.`))[0]>0&&IK[0]<4?1:+(IK[0]+IK[1])),!LK&&pq&&(!(IK=pq.match(/Edge\/(\d+)/))||IK[1]>=74)&&(IK=pq.match(/Chrome\/(\d+)/))&&(LK=+IK[1]);var vq=LK,yq=!!Object.getOwnPropertySymbols&&!BK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&vq&&vq<41})),bq=yq&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,xq=zK.Object,Sq=bq?function(e){return typeof e==`symbol`}:function(e){var t=dq(`Symbol`);return cq(t)&&fq(t.prototype,xq(e))},Cq=zK.String,wq=function(e){try{return Cq(e)}catch{return`Object`}},Tq=zK.TypeError,Eq=function(e){if(cq(e))return e;throw Tq(wq(e)+` is not a function`)},Dq=function(e,t){var n=e[t];return n==null?void 0:Eq(n)},Oq=zK.TypeError,kq=Object.defineProperty,Aq=function(e,t){try{kq(zK,e,{value:t,configurable:!0,writable:!0})}catch{zK[e]=t}return t},jq=zK[`__core-js_shared__`]||Aq(`__core-js_shared__`,{}),Mq=FK((function(e){(e.exports=function(e,t){return jq[e]||(jq[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Nq=zK.Object,Pq=function(e){return Nq(oq(e))},Fq=QK({}.hasOwnProperty),Iq=Object.hasOwn||function(e,t){return Fq(Pq(e),t)},Lq=0,Rq=Math.random(),zq=QK(1 .toString),Bq=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+zq(++Lq+Rq,36)},Vq=Mq(`wks`),Hq=zK.Symbol,Uq=Hq&&Hq.for,Wq=bq?Hq:Hq&&Hq.withoutSetter||Bq,Gq=function(e){if(!Iq(Vq,e)||!yq&&typeof Vq[e]!=`string`){var t=`Symbol.`+e;yq&&Iq(Hq,e)?Vq[e]=Hq[e]:Vq[e]=bq&&Uq?Uq(t):Wq(t)}return Vq[e]},Kq=zK.TypeError,qq=Gq(`toPrimitive`),Jq=function(e){var t=function(e,t){if(!lq(e)||Sq(e))return e;var n,r=Dq(e,qq);if(r){if(t===void 0&&(t=`default`),n=UK(r,e,t),!lq(n)||Sq(n))return n;throw Kq(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&cq(n=e.toString)&&!lq(r=UK(n,e))||cq(n=e.valueOf)&&!lq(r=UK(n,e))||t!==`string`&&cq(n=e.toString)&&!lq(r=UK(n,e)))return r;throw Oq(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Sq(t)?t:t+``},Yq=zK.document,Xq=lq(Yq)&&lq(Yq.createElement),Zq=function(e){return Xq?Yq.createElement(e):{}},Qq=!VK&&!BK((function(){return Object.defineProperty(Zq(`div`),"a",{get:function(){return 7}}).a!=7})),$q=Object.getOwnPropertyDescriptor,eJ={f:VK?$q:function(e,t){if(e=sq(e),t=Jq(t),Qq)try{return $q(e,t)}catch{}if(Iq(e,t))return qK(!UK(KK.f,e,t),e[t])}},tJ=zK.String,nJ=zK.TypeError,rJ=function(e){if(lq(e))return e;throw nJ(tJ(e)+` is not an object`)},iJ=zK.TypeError,aJ=Object.defineProperty,oJ={f:VK?aJ:function(e,t,n){if(rJ(e),t=Jq(t),rJ(n),Qq)try{return aJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw iJ(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},sJ=VK?function(e,t,n){return oJ.f(e,t,qK(1,n))}:function(e,t,n){return e[t]=n,e},cJ=QK(Function.toString);cq(jq.inspectSource)||(jq.inspectSource=function(e){return cJ(e)});var lJ,uJ,dJ,fJ=jq.inspectSource,pJ=zK.WeakMap,mJ=cq(pJ)&&/native code/.test(fJ(pJ)),hJ=Mq(`keys`),gJ=function(e){return hJ[e]||(hJ[e]=Bq(e))},_J={},vJ=zK.TypeError,yJ=zK.WeakMap;if(mJ||jq.state){var bJ=jq.state||=new yJ,xJ=QK(bJ.get),SJ=QK(bJ.has),CJ=QK(bJ.set);lJ=function(e,t){if(SJ(bJ,e))throw new vJ(`Object already initialized`);return t.facade=e,CJ(bJ,e,t),t},uJ=function(e){return xJ(bJ,e)||{}},dJ=function(e){return SJ(bJ,e)}}else{var wJ=gJ(`state`);_J[wJ]=!0,lJ=function(e,t){if(Iq(e,wJ))throw new vJ(`Object already initialized`);return t.facade=e,sJ(e,wJ,t),t},uJ=function(e){return Iq(e,wJ)?e[wJ]:{}},dJ=function(e){return Iq(e,wJ)}}var TJ={set:lJ,get:uJ,has:dJ,enforce:function(e){return dJ(e)?uJ(e):lJ(e,{})},getterFor:function(e){return function(t){var n;if(!lq(t)||(n=uJ(t)).type!==e)throw vJ(`Incompatible receiver, `+e+` required`);return n}}},EJ=Function.prototype,DJ=VK&&Object.getOwnPropertyDescriptor,OJ=Iq(EJ,`name`),kJ={EXISTS:OJ,PROPER:OJ&&function(){}.name===`something`,CONFIGURABLE:OJ&&(!VK||VK&&DJ(EJ,`name`).configurable)},AJ=FK((function(e){var t=kJ.CONFIGURABLE,n=TJ.get,r=TJ.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;cq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Iq(a,`name`)||t&&a.name!==d)&&sJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===zK?l?e[n]=a:Aq(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:sJ(e,n,a))})(Function.prototype,`toString`,(function(){return cq(this)&&n(this).source||fJ(this)}))})),jJ=Math.ceil,MJ=Math.floor,NJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?MJ:jJ)(t)},PJ=Math.max,FJ=Math.min,IJ=function(e,t){var n=NJ(e);return n<0?PJ(n+t,0):FJ(n,t)},LJ=Math.min,RJ=function(e){return e>0?LJ(NJ(e),9007199254740991):0},zJ=function(e){return RJ(e.length)},BJ=function(e){return function(t,n,r){var i,a=sq(t),o=zJ(a),s=IJ(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),VJ=QK([].push),HJ=function(e,t){var n,r=sq(e),i=0,a=[];for(n in r)!Iq(_J,n)&&Iq(r,n)&&VJ(a,n);for(;t.length>i;)Iq(r,n=t[i++])&&(~BJ(a,n)||VJ(a,n));return a},UJ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],WJ=UJ.concat(`length`,`prototype`),GJ={f:Object.getOwnPropertyNames||function(e){return HJ(e,WJ)}},KJ={f:Object.getOwnPropertySymbols},qJ=QK([].concat),JJ=dq(`Reflect`,`ownKeys`)||function(e){var t=GJ.f(rJ(e)),n=KJ.f;return n?qJ(t,n(e)):t},YJ=function(e,t){for(var n=JJ(t),r=oJ.f,i=eJ.f,a=0;a<n.length;a++){var o=n[a];Iq(e,o)||r(e,o,i(t,o))}},XJ=/#|\.prototype\./,ZJ=function(e,t){var n=$J[QJ(e)];return n==tY||n!=eY&&(cq(t)?BK(t):!!t)},QJ=ZJ.normalize=function(e){return String(e).replace(XJ,`.`).toLowerCase()},$J=ZJ.data={},eY=ZJ.NATIVE=`N`,tY=ZJ.POLYFILL=`P`,nY=ZJ,rY=eJ.f,iY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?zK:l?zK[s]||Aq(s,{}):(zK[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=rY(n,r))&&o.value:n[r],!nY(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;YJ(a,i)}(e.sham||i&&i.sham)&&sJ(a,`sham`,!0),AJ(n,r,a,e)}},aY={};aY[Gq(`toStringTag`)]=`z`;var oY=String(aY)===`[object z]`,Zme=Gq(`toStringTag`),Qme=zK.Object,$me=tq(function(){return arguments}())==`Arguments`,sY=oY?tq: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=Qme(e),Zme))==`string`?n:$me?tq(t):(r=tq(t))==`Object`&&cq(t.callee)?`Arguments`:r},ehe=zK.String,cY=function(e){if(sY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ehe(e)},the=/"/g,nhe=QK(``.replace);iY({target:`String`,proto:!0,forced:BK((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=cY(oq(this)),r=`<a`,(r+=` name="`+nhe(cY(t),the,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var lY,uY=function(){var e=rJ(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},dY=zK.RegExp,fY=BK((function(){var e=dY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),rhe=fY||BK((function(){return!dY(`a`,`y`).sticky})),pY={BROKEN_CARET:fY||BK((function(){var e=dY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:rhe,UNSUPPORTED_Y:fY},ihe=Object.keys||function(e){return HJ(e,UJ)},ahe=VK?Object.defineProperties:function(e,t){rJ(e);for(var n,r=sq(t),i=ihe(t),a=i.length,o=0;a>o;)oJ.f(e,n=i[o++],r[n]);return e},ohe=dq(`document`,`documentElement`),mY=gJ(`IE_PROTO`),hY=function(){},gY=function(e){return`<script>`+e+`<\/script>`},_Y=function(e){e.write(gY(``)),e.close();var t=e.parentWindow.Object;return e=null,t},vY=function(){try{lY=new ActiveXObject(`htmlfile`)}catch{}var e,t;vY=typeof document<`u`?document.domain&&lY?_Y(lY):((t=Zq(`iframe`)).style.display=`none`,ohe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(gY(`document.F=Object`)),e.close(),e.F):_Y(lY);for(var n=UJ.length;n--;)delete vY.prototype[UJ[n]];return vY()};_J[mY]=!0;var yY,bY,xY=Object.create||function(e,t){var n;return e===null?n=vY():(hY.prototype=rJ(e),n=new hY,hY.prototype=null,n[mY]=e),t===void 0?n:ahe(n,t)},she=zK.RegExp,che=BK((function(){var e=she(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),lhe=zK.RegExp,uhe=BK((function(){var e=lhe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),dhe=TJ.get,fhe=Mq(`native-string-replace`,String.prototype.replace),SY=RegExp.prototype.exec,CY=SY,phe=QK(``.charAt),mhe=QK(``.indexOf),hhe=QK(``.replace),wY=QK(``.slice),TY=(bY=/b*/g,UK(SY,yY=/a/,`a`),UK(SY,bY,`a`),yY.lastIndex!==0||bY.lastIndex!==0),EY=pY.BROKEN_CARET,DY=/()??/.exec(``)[1]!==void 0;(TY||DY||EY||che||uhe)&&(CY=function(e){var t,n,r,i,a,o,s,c=this,l=dhe(c),u=cY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=UK(CY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=EY&&c.sticky,m=UK(uY,c),h=c.source,g=0,_=u;if(p&&(m=hhe(m,`y`,``),mhe(m,`g`)===-1&&(m+=`g`),_=wY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&phe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),DY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),TY&&(r=c.lastIndex),i=UK(SY,p?n:c,_),p?i?(i.input=wY(i.input,g),i[0]=wY(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:TY&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),DY&&i&&i.length>1&&UK(fhe,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=xY(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var OY=CY;iY({target:`RegExp`,proto:!0,forced:/./.exec!==OY},{exec:OY});var kY=Array.isArray||function(e){return tq(e)==`Array`},AY=function(){},ghe=[],jY=dq(`Reflect`,`construct`),MY=/^\s*(?:class|function)\b/,_he=QK(MY.exec),vhe=!MY.exec(AY),NY=function(e){if(!cq(e))return!1;try{return jY(AY,ghe,e),!0}catch{return!1}},PY=!jY||BK((function(){var e;return NY(NY.call)||!NY(Object)||!NY((function(){e=!0}))||e}))?function(e){if(!cq(e))return!1;switch(sY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return vhe||!!_he(MY,fJ(e))}:NY,FY=function(e,t,n){var r=Jq(t);r in e?oJ.f(e,r,qK(0,n)):e[r]=n},yhe=Gq(`species`),IY=function(e){return vq>=51||!BK((function(){var t=[];return(t.constructor={})[yhe]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},bhe=QK([].slice),xhe=IY(`slice`),She=Gq(`species`),LY=zK.Array,Che=Math.max;function RY(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 zY(e){var t=e.selection;if(t==null)return!1;var n=RY(V.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=RY(n,2)[1],i=V.start(e,r);if(Om.equals(t.anchor,i))return!0}return!1}function BY(e,t){var n,r,i=V.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}iY({target:`Array`,proto:!0,forced:!xhe},{slice:function(e,t){var n,r,i,a=sq(this),o=zJ(a),s=IJ(e,o),c=IJ(t===void 0?o:t,o);if(kY(a)&&(n=a.constructor,(PY(n)&&(n===LY||kY(n.prototype))||lq(n)&&(n=n[She])===null)&&(n=void 0),n===LY||n===void 0))return bhe(a,s,c);for(r=new(n===void 0?LY:n)(Che(c-s,0)),i=0;s<c;s++,i++)s in a&&FY(r,i,a[s]);return r.length=i,r}});var VY=QK(QK.bind),whe=Gq(`species`),HY=zK.Array,The=function(e,t){return new(function(e){var t;return kY(e)&&(t=e.constructor,(PY(t)&&(t===HY||kY(t.prototype))||lq(t)&&(t=t[whe])===null)&&(t=void 0)),t===void 0?HY:t}(e))(t===0?0:t)},UY=QK([].push),WY=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=Pq(c),h=iq(m),g=function(e,t){return Eq(e),t===void 0?e:VY?VY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=zJ(h),v=0,y=d||The,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:UY(b,f)}else switch(e){case 4:return!1;case 7:UY(b,f)}return a?-1:r||i?i:b}},GY={forEach:WY(0),map:WY(1),filter:WY(2),some:WY(3),every:WY(4),find:WY(5),findIndex:WY(6),filterReject:WY(7)},Ehe=GY.map;iY({target:`Array`,proto:!0,forced:!IY(`map`)},{map:function(e){return Ehe(this,e,arguments.length>1?arguments[1]:void 0)}});var Dhe=oY?{}.toString:function(){return`[object `+sY(this)+`]`};function KY(e){var t=e.children||[];return t.length===0?[]:(t[0]||{}).children||[]}function qY(e){return KY(e).every((function(e){return!!e.isHeader}))}oY||AJ(Object.prototype,`toString`,Dhe,{unsafe:!0});var Ohe=kJ.PROPER,JY=RegExp.prototype,YY=JY.toString,khe=QK(uY),Ahe=BK((function(){return YY.call({source:`a`,flags:`b`})!=`/a/b`})),jhe=Ohe&&YY.name!=`toString`;(Ahe||jhe)&&AJ(RegExp.prototype,`toString`,(function(){var e=rJ(this),t=cY(e.source),n=e.flags;return`/`+t+`/`+cY(n===void 0&&fq(JY,e)&&!(`flags`in JY)?khe(e):n)}),{unsafe:!0});var XY=Gq(`unscopables`),ZY=Array.prototype;ZY[XY]??oJ.f(ZY,XY,{configurable:!0,value:xY(null)});var Mhe=GY.find,QY=!0;`find`in[]&&[,].find((function(){QY=!1})),iY({target:`Array`,proto:!0,forced:QY},{find:function(e){return Mhe(this,e,arguments.length>1?arguments[1]:void 0)}}),ZY[XY].find=!0;var $Y=Function.prototype,eX=$Y.apply,Nhe=$Y.bind,tX=$Y.call,nX=typeof Reflect==`object`&&Reflect.apply||(Nhe?tX.bind(eX):function(){return tX.apply(eX,arguments)}),Phe=Gq(`species`),rX=RegExp.prototype,iX=function(e,t,n,r){var i=Gq(e),a=!BK((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!BK((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Phe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=QK(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=QK(e),c=t.exec;return c===OY||c===rX.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));AJ(String.prototype,e,c[0]),AJ(rX,i,c[1])}r&&sJ(rX[i],`sham`,!0)},Fhe=Gq(`match`),Ihe=zK.TypeError,Lhe=Gq(`species`),Rhe=QK(``.charAt),aX=QK(``.charCodeAt),zhe=QK(``.slice),Bhe=function(e){return function(t,n){var r,i,a=cY(oq(t)),o=NJ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=aX(a,o))<55296||r>56319||o+1===s||(i=aX(a,o+1))<56320||i>57343?e?Rhe(a,o):r:e?zhe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),oX=function(e,t,n){return t+(n?Bhe(e,t).length:1)},Vhe=zK.Array,Hhe=Math.max,sX=function(e,t,n){for(var r=zJ(e),i=IJ(t,r),a=IJ(n===void 0?r:n,r),o=Vhe(Hhe(a-i,0)),s=0;i<a;i++,s++)FY(o,s,e[i]);return o.length=s,o},Uhe=zK.TypeError,cX=function(e,t){var n=e.exec;if(cq(n)){var r=UK(n,e,t);return r!==null&&rJ(r),r}if(tq(e)===`RegExp`)return UK(OY,e,t);throw Uhe(`RegExp#exec called on incompatible receiver`)},lX=pY.UNSUPPORTED_Y,Whe=Math.min,uX=[].push,Ghe=QK(/./.exec),dX=QK(uX),fX=QK(``.slice);iX(`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=cY(oq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!lq(r=e)||!((i=r[Fhe])===void 0?tq(r)==`RegExp`:i))return UK(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=UK(OY,p,a))&&!((c=p.lastIndex)>f&&(dX(u,fX(a,f,s.index)),s.length>1&&s.index<a.length&&nX(uX,u,sX(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&Ghe(p,``)||dX(u,``):dX(u,fX(a,f)),u.length>o?sX(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:UK(t,this,e,n)}:t,[function(t,n){var i=oq(this),a=t==null?void 0:Dq(t,e);return a?UK(a,t,i,n):UK(r,cY(i),t,n)},function(e,i){var a=rJ(this),o=cY(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=rJ(e).constructor;return r===void 0||(n=rJ(r)[Lhe])==null?t:function(e){if(PY(e))return e;throw Ihe(wq(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(lX?`g`:`y`),d=new c(lX?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return cX(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=lX?0:m;var g,_=cX(d,lX?fX(o,m):o);if(_===null||(g=Whe(RJ(d.lastIndex+(lX?m:0)),o.length))===p)m=oX(o,m,l);else{if(dX(h,fX(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(dX(h,_[v]),h.length===f)return h;m=p=g}}return dX(h,fX(o,p)),h}]}),!!BK((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`})),lX);var pX=`
\v\f\r \xA0  \u2028\u2029`,mX=QK(``.replace),hX=`[`+pX+`]`,Khe=RegExp(`^`+hX+hX+`*`),qhe=RegExp(hX+hX+`*$`),gX=function(e){return function(t){var n=cY(oq(t));return 1&e&&(n=mX(n,Khe,``)),2&e&&(n=mX(n,qhe,``)),n}},Jhe={start:gX(1),end:gX(2),trim:gX(3)},Yhe=kJ.PROPER,Xhe=Jhe.trim;function _X(e){return e.length?e[0].tagName.toLowerCase():``}iY({target:`String`,proto:!0,forced:function(e){return BK((function(){return!!pX[e]()||`​…᠎`[e]()!==`​…᠎`||Yhe&&pX[e].name!==e}))}(`trim`)},{trim:function(){return Xhe(this)}}),iY({global:!0},{globalThis:zK}),cg&&(q.fn.append=cg),Yh&&(q.fn.on=Yh),yg&&(q.fn.focus=yg),Gh&&(q.fn.attr=Gh),Jh&&(q.fn.val=Jh),ag&&(q.fn.html=ag),qh&&(q.fn.dataset=qh),Hh&&(q.fn.addClass=Hh),Uh&&(q.fn.removeClass=Uh),pg&&(q.fn.children=pg),rg&&(q.fn.each=rg),fg&&(q.fn.find=fg);var vX=!1,yX=0,bX=0,xX=null,SX=null,CX=q(`body`);function wX(e){vX=!1,SX=null,xX=null,CX.off(`mousemove`,TX),CX.off(`mouseup`,wX)}CX.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(),vX=!0,yX=e.clientX,bX=t.getBoundingClientRect().width,CX.on(`mousemove`,TX),CX.on(`mouseup`,wX))}));var TX=n_((function(e){if(vX&&SX!=null&&xX!=null){e.preventDefault();var t=e.clientX,n=bX+(t-yX);(n=Math.floor(100*n)/100)<30&&(n=30),K.setNodes(SX,{width:n.toString()},{at:xX})}}),100),Zhe={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||W.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=V.start(e,a),s=V.end(e,a),c=Om.compare(r,s)<=0&&Om.compare(r,o)>=0,l=Om.compare(i,s)<=0&&Om.compare(i,o)>=0;return!!(c&&l&&U.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return F_(`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=V.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},F_(`table`,{width:a,contentEditable:r},F_(`colgroup`,null,KY(e).map((function(e){var t=e.width;return F_(`col`,{width:t===void 0?`auto`:t})}))),F_(`tbody`,null,t)))}},Qhe={type:`table-row`,renderElem:function(e,t,n){return F_(`tr`,null,t)}},$he={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&&KY(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?F_(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:n_((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;vX||(l>a+o-5&&l<a+o&&u>s&&u<s+c?(r.style.cursor=`col-resize`,SX=n,xX=X.findPath(n,e)):vX||(r.style.cursor=`auto`,SX=null,xX=null))}}),100)}},t):F_(`td`,{colSpan:o,rowSpan:c},t)}},ege={selector:`table`,preParseHtml:function(e){var t=q(e);if(_X(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]}},tge=GY.filter;iY({target:`Array`,proto:!0,forced:!IY(`filter`)},{filter:function(e){return tge(this,e,arguments.length>1?arguments[1]:void 0)}});var nge=Math.floor,EX=QK(``.charAt),rge=QK(``.replace),DX=QK(``.slice),ige=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,age=/\$([$&'`]|\d{1,2})/g,oge=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=age;return i!==void 0&&(i=Pq(i),c=ige),rge(a,c,(function(a,c){var l;switch(EX(c,0)){case`$`:return`$`;case`&`:return e;case"`":return DX(t,0,n);case`'`:return DX(t,o);case`<`:l=i[DX(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=nge(u/10);return d===0?a:d<=s?r[d-1]===void 0?EX(c,1):r[d-1]+EX(c,1):a}l=r[u-1]}return l===void 0?``:l}))},OX=Gq(`replace`),sge=Math.max,cge=Math.min,lge=QK([].concat),kX=QK([].push),AX=QK(``.indexOf),jX=QK(``.slice),uge=`a`.replace(/./,`$0`)===`$0`,MX=!!/./[OX]&&/./[OX](`a`,`$0`)===``;iX(`replace`,(function(e,t,n){var r=MX?`$`:`$0`;return[function(e,n){var r=oq(this),i=e==null?void 0:Dq(e,OX);return i?UK(i,e,r,n):UK(t,cY(r),e,n)},function(e,i){var a=rJ(this),o=cY(e);if(typeof i==`string`&&AX(i,r)===-1&&AX(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=cq(i);c||(i=cY(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=cX(a,o);if(f===null||(kX(d,f),!l))break;cY(f[0])===``&&(a.lastIndex=oX(o,RJ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=cY((f=d[g])[0]),v=sge(cge(NJ(f.index),o.length),0),y=[],b=1;b<f.length;b++)kX(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=lge([_],y,v,o);x!==void 0&&kX(S,x);var C=cY(nX(i,void 0,S))}else C=oge(_,o,v,y,x,i);v>=h&&(m+=jX(o,h,v)+C,h=v+_.length)}return m+jX(o,h)}]}),!!BK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!uge||MX);var dge={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(e);(t=t.filter((function(e){return!!G.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:_X(r)===`th`,colSpan:i,rowSpan:a,width:o,children:t}}},fge={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`}))}}},pge={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=q(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`}))}}},mge=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||!W.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=q(`<div class="w-e-panel-content-table"></div>`),r=q(`<span>0 &times; 0</span>`),i=q(`<table></table>`),a=0;a<10;a++){for(var o=q(`<tr></tr>`),s=0;s<10;s++){var c=q(`<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=q(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){q(e).children().each((function(e){var t=q(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=q(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)&&K.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);K.insertNodes(e,a,{mode:`highest`})}},e}(),hge=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)||K.removeNodes(e,{mode:`highest`})},e}(),gge=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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=U.parent(i),l=U.next(c);K.insertNodes(e,o,{at:l})}}},e}(),_ge=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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?K.removeNodes(e,{mode:`highest`}):K.removeNodes(e,{at:i})}},e}(),NX={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},PX=Zq(`span`).classList,FX=PX&&PX.constructor&&PX.constructor.prototype,vge=FX===Object.prototype?void 0:FX,yge=GY.forEach,IX=function(e,t){var n=[].forEach;return!!n&&BK((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return yge(this,e,arguments.length>1?arguments[1]:void 0)},LX=function(e){if(e&&e.forEach!==IX)try{sJ(e,`forEach`,IX)}catch{e.forEach=IX}};for(var RX in NX)NX[RX]&&LX(zK[RX]&&zK[RX].prototype);LX(vge);var bge=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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){B.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&NK(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&qY(o)&&(a.isHeader=!0),K.insertNodes(e,a,{at:r})}}))}))}}},e}(),xge=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(V.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)K.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){B.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&NK(n.slice(-1),i.slice(-1))&&K.removeNodes(e,{at:n})}))}))}}},e}(),Sge=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&&qY(t)},e.prototype.isActive=function(e){return!!this.getValue(e)},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!W.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&&KY(r).forEach((function(t){return K.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),Cge=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||!W.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};K.setNodes(e,n,{mode:`highest`})}},e}(),wge={renderElems:[Zhe,Qhe,$he],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:[ege],parseElemsHtml:[dge,fge,pge],menus:[{key:`insertTable`,factory:function(){return new mge}},{key:`deleteTable`,factory:function(){return new hge}},{key:`insertTableRow`,factory:function(){return new gge}},{key:`deleteTableRow`,factory:function(){return new _ge}},{key:`insertTableCol`,factory:function(){return new bge}},{key:`deleteTableCol`,factory:function(){return new xge}},{key:`tableHeader`,factory:function(){return new Sge}},{key:`tableFullWidth`,factory:function(){return new Cge}}],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(!zY(c)){var t=c.selection;if(t){var r=V.before(c,t);if(r){var i=BY(c,r),a=BY(c,t);if(i&&!a)return}}n(e)}},c.handleTab=function(){if(X.getSelectedNodeByType(c,`table`)){var t=V.above(e);X.checkNodeType(t[0],`table-cell`)&&K.select(e,t[1]);var n=V.next(e);if(n)n[0]&&n[0].text&&(n=V.above(e,{at:n[1]})??n),K.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();K.insertNodes(c,a,{at:[i]}),c.handleTab()}}}else o()},c.deleteForward=function(e){zY(c)||r(e)},c.normalizeNode=function(e){var t=RY(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();K.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):V.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(U.equals(n.path.slice(0,3),r.path.slice(0,3)))if(H.string(t).length!==0){var i=X.findPath(c,t),a={anchor:V.start(c,i),focus:V.end(c,i)};c.select(a)}else s();else s()}else s()}else s()},c}};gA(`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`}}),gA(`zh-CN`,{videoModule:{delete:`删除视频`,uploadVideo:`上传视频`,insertVideo:`插入视频`,videoSrc:`视频地址`,videoSrcPlaceHolder:`视频文件 url 或第三方 <iframe>`,videoPoster:`视频封面`,videoPosterPlaceHolder:`封面图片 url`,ok:`确定`,editSize:`修改尺寸`,width:`宽度`,height:`高度`}});var zX=function(){return zX=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},zX.apply(this,arguments)};function BX(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function VX(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function HX(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function Tge(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var UX=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function WX(e){var t={exports:{}};return e(t,t.exports),t.exports}var GX,KX,qX=function(e){return e&&e.Math==Math&&e},Q=qX(typeof globalThis==`object`&&globalThis)||qX(typeof window==`object`&&window)||qX(typeof self==`object`&&self)||qX(typeof UX==`object`&&UX)||function(){return this}()||Function(`return this`)(),JX=function(e){try{return!!e()}catch{return!0}},YX=!JX((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),XX=Function.prototype.call,ZX=XX.bind?XX.bind(XX):function(){return XX.apply(XX,arguments)},QX={}.propertyIsEnumerable,$X=Object.getOwnPropertyDescriptor,Ege={f:$X&&!QX.call({1:2},1)?function(e){var t=$X(this,e);return!!t&&t.enumerable}:QX},eZ=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},tZ=Function.prototype,nZ=tZ.bind,rZ=tZ.call,Dge=nZ&&nZ.bind(rZ),iZ=nZ?function(e){return e&&Dge(rZ,e)}:function(e){return e&&function(){return rZ.apply(e,arguments)}},Oge=iZ({}.toString),kge=iZ(``.slice),aZ=function(e){return kge(Oge(e),8,-1)},oZ=Q.Object,Age=iZ(``.split),sZ=JX((function(){return!oZ(`z`).propertyIsEnumerable(0)}))?function(e){return aZ(e)==`String`?Age(e,``):oZ(e)}:oZ,jge=Q.TypeError,cZ=function(e){if(e==null)throw jge(`Can't call method on `+e);return e},lZ=function(e){return sZ(cZ(e))},uZ=function(e){return typeof e==`function`},dZ=function(e){return typeof e==`object`?e!==null:uZ(e)},Mge=function(e){return uZ(e)?e:void 0},fZ=function(e,t){return arguments.length<2?Mge(Q[e]):Q[e]&&Q[e][t]},pZ=iZ({}.isPrototypeOf),mZ=fZ(`navigator`,`userAgent`)||``,hZ=Q.process,gZ=Q.Deno,_Z=hZ&&hZ.versions||gZ&&gZ.version,vZ=_Z&&_Z.v8;vZ&&(KX=(GX=vZ.split(`.`))[0]>0&&GX[0]<4?1:+(GX[0]+GX[1])),!KX&&mZ&&(!(GX=mZ.match(/Edge\/(\d+)/))||GX[1]>=74)&&(GX=mZ.match(/Chrome\/(\d+)/))&&(KX=+GX[1]);var yZ=KX,bZ=!!Object.getOwnPropertySymbols&&!JX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&yZ&&yZ<41})),xZ=bZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Nge=Q.Object,SZ=xZ?function(e){return typeof e==`symbol`}:function(e){var t=fZ(`Symbol`);return uZ(t)&&pZ(t.prototype,Nge(e))},Pge=Q.String,CZ=function(e){try{return Pge(e)}catch{return`Object`}},Fge=Q.TypeError,wZ=function(e){if(uZ(e))return e;throw Fge(CZ(e)+` is not a function`)},TZ=function(e,t){var n=e[t];return n==null?void 0:wZ(n)},Ige=Q.TypeError,Lge=Object.defineProperty,EZ=function(e,t){try{Lge(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},DZ=Q[`__core-js_shared__`]||EZ(`__core-js_shared__`,{}),OZ=WX((function(e){(e.exports=function(e,t){return DZ[e]||(DZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Rge=Q.Object,kZ=function(e){return Rge(cZ(e))},zge=iZ({}.hasOwnProperty),AZ=Object.hasOwn||function(e,t){return zge(kZ(e),t)},Bge=0,Vge=Math.random(),Hge=iZ(1 .toString),jZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Hge(++Bge+Vge,36)},MZ=OZ(`wks`),NZ=Q.Symbol,PZ=NZ&&NZ.for,Uge=xZ?NZ:NZ&&NZ.withoutSetter||jZ,FZ=function(e){if(!AZ(MZ,e)||!bZ&&typeof MZ[e]!=`string`){var t=`Symbol.`+e;bZ&&AZ(NZ,e)?MZ[e]=NZ[e]:MZ[e]=xZ&&PZ?PZ(t):Uge(t)}return MZ[e]},Wge=Q.TypeError,Gge=FZ(`toPrimitive`),IZ=function(e){var t=function(e,t){if(!dZ(e)||SZ(e))return e;var n,r=TZ(e,Gge);if(r){if(t===void 0&&(t=`default`),n=ZX(r,e,t),!dZ(n)||SZ(n))return n;throw Wge(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e))||uZ(n=e.valueOf)&&!dZ(r=ZX(n,e))||t!==`string`&&uZ(n=e.toString)&&!dZ(r=ZX(n,e)))return r;throw Ige(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return SZ(t)?t:t+``},LZ=Q.document,Kge=dZ(LZ)&&dZ(LZ.createElement),RZ=function(e){return Kge?LZ.createElement(e):{}},zZ=!YX&&!JX((function(){return Object.defineProperty(RZ(`div`),"a",{get:function(){return 7}}).a!=7})),BZ=Object.getOwnPropertyDescriptor,VZ={f:YX?BZ:function(e,t){if(e=lZ(e),t=IZ(t),zZ)try{return BZ(e,t)}catch{}if(AZ(e,t))return eZ(!ZX(Ege.f,e,t),e[t])}},qge=Q.String,Jge=Q.TypeError,HZ=function(e){if(dZ(e))return e;throw Jge(qge(e)+` is not an object`)},Yge=Q.TypeError,UZ=Object.defineProperty,WZ={f:YX?UZ:function(e,t,n){if(HZ(e),t=IZ(t),HZ(n),zZ)try{return UZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Yge(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},GZ=YX?function(e,t,n){return WZ.f(e,t,eZ(1,n))}:function(e,t,n){return e[t]=n,e},Xge=iZ(Function.toString);uZ(DZ.inspectSource)||(DZ.inspectSource=function(e){return Xge(e)});var KZ,qZ,JZ,YZ=DZ.inspectSource,XZ=Q.WeakMap,ZZ=uZ(XZ)&&/native code/.test(YZ(XZ)),QZ=OZ(`keys`),$Z=function(e){return QZ[e]||(QZ[e]=jZ(e))},eQ={},tQ=Q.TypeError,Zge=Q.WeakMap;if(ZZ||DZ.state){var nQ=DZ.state||=new Zge,Qge=iZ(nQ.get),rQ=iZ(nQ.has),$ge=iZ(nQ.set);KZ=function(e,t){if(rQ(nQ,e))throw new tQ(`Object already initialized`);return t.facade=e,$ge(nQ,e,t),t},qZ=function(e){return Qge(nQ,e)||{}},JZ=function(e){return rQ(nQ,e)}}else{var iQ=$Z(`state`);eQ[iQ]=!0,KZ=function(e,t){if(AZ(e,iQ))throw new tQ(`Object already initialized`);return t.facade=e,GZ(e,iQ,t),t},qZ=function(e){return AZ(e,iQ)?e[iQ]:{}},JZ=function(e){return AZ(e,iQ)}}var aQ={set:KZ,get:qZ,has:JZ,enforce:function(e){return JZ(e)?qZ(e):KZ(e,{})},getterFor:function(e){return function(t){var n;if(!dZ(t)||(n=qZ(t)).type!==e)throw tQ(`Incompatible receiver, `+e+` required`);return n}}},oQ=Function.prototype,e_e=YX&&Object.getOwnPropertyDescriptor,sQ=AZ(oQ,`name`),cQ={EXISTS:sQ,PROPER:sQ&&function(){}.name===`something`,CONFIGURABLE:sQ&&(!YX||YX&&e_e(oQ,`name`).configurable)},lQ=WX((function(e){var t=cQ.CONFIGURABLE,n=aQ.get,r=aQ.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;uZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!AZ(a,`name`)||t&&a.name!==d)&&GZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:EZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:GZ(e,n,a))})(Function.prototype,`toString`,(function(){return uZ(this)&&n(this).source||YZ(this)}))})),t_e=Math.ceil,n_e=Math.floor,uQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?n_e:t_e)(t)},r_e=Math.max,i_e=Math.min,dQ=function(e,t){var n=uQ(e);return n<0?r_e(n+t,0):i_e(n,t)},a_e=Math.min,fQ=function(e){return e>0?a_e(uQ(e),9007199254740991):0},pQ=function(e){return fQ(e.length)},mQ=function(e){return function(t,n,r){var i,a=lZ(t),o=pQ(a),s=dQ(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}},hQ={includes:mQ(!0),indexOf:mQ(!1)},o_e=hQ.indexOf,gQ=iZ([].push),_Q=function(e,t){var n,r=lZ(e),i=0,a=[];for(n in r)!AZ(eQ,n)&&AZ(r,n)&&gQ(a,n);for(;t.length>i;)AZ(r,n=t[i++])&&(~o_e(a,n)||gQ(a,n));return a},vQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],s_e=vQ.concat(`length`,`prototype`),yQ={f:Object.getOwnPropertyNames||function(e){return _Q(e,s_e)}},c_e={f:Object.getOwnPropertySymbols},l_e=iZ([].concat),u_e=fZ(`Reflect`,`ownKeys`)||function(e){var t=yQ.f(HZ(e)),n=c_e.f;return n?l_e(t,n(e)):t},d_e=function(e,t){for(var n=u_e(t),r=WZ.f,i=VZ.f,a=0;a<n.length;a++){var o=n[a];AZ(e,o)||r(e,o,i(t,o))}},f_e=/#|\.prototype\./,bQ=function(e,t){var n=m_e[p_e(e)];return n==g_e||n!=h_e&&(uZ(t)?JX(t):!!t)},p_e=bQ.normalize=function(e){return String(e).replace(f_e,`.`).toLowerCase()},m_e=bQ.data={},h_e=bQ.NATIVE=`N`,g_e=bQ.POLYFILL=`P`,xQ=bQ,__e=VZ.f,SQ=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Q:l?Q[s]||EZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=__e(n,r))&&o.value:n[r],!xQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;d_e(a,i)}(e.sham||i&&i.sham)&&GZ(a,`sham`,!0),lQ(n,r,a,e)}},CQ={};CQ[FZ(`toStringTag`)]=`z`;var wQ=String(CQ)===`[object z]`,v_e=FZ(`toStringTag`),y_e=Q.Object,b_e=aZ(function(){return arguments}())==`Arguments`,TQ=wQ?aZ:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=y_e(e),v_e))==`string`?n:b_e?aZ(t):(r=aZ(t))==`Object`&&uZ(t.callee)?`Arguments`:r},x_e=Q.String,EQ=function(e){if(TQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return x_e(e)},DQ=`
\v\f\r \xA0  \u2028\u2029`,OQ=iZ(``.replace),kQ=`[`+DQ+`]`,S_e=RegExp(`^`+kQ+kQ+`*`),C_e=RegExp(kQ+kQ+`*$`),AQ=function(e){return function(t){var n=EQ(cZ(t));return 1&e&&(n=OQ(n,S_e,``)),2&e&&(n=OQ(n,C_e,``)),n}},w_e={start:AQ(1),end:AQ(2),trim:AQ(3)},T_e=cQ.PROPER,E_e=w_e.trim;function jQ(e){return e.length?e[0].tagName.toLowerCase():``}function MQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=q(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}SQ({target:`String`,proto:!0,forced:JX((function(){return!!DQ.trim()||T_e&&DQ.trim.name!==`trim`}))},{trim:function(){return E_e(this)}}),SQ({global:!0},{globalThis:Q}),cg&&(q.fn.append=cg),Yh&&(q.fn.on=Yh),yg&&(q.fn.focus=yg),Gh&&(q.fn.attr=Gh),Jh&&(q.fn.val=Jh),ag&&(q.fn.html=ag),ug&&(q.fn.parent=ug),Wh&&(q.fn.hasClass=Wh),hg&&(q.fn.empty=hg);var NQ,D_e={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=F_(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:MQ(o,u,f)});else{var m=F_(`video`,{poster:c,controls:!0},F_(`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=F_(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return h_(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},O_e={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+=MQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},k_e=Object.keys||function(e){return _Q(e,vQ)},A_e=YX?Object.defineProperties:function(e,t){HZ(e);for(var n,r=lZ(t),i=k_e(t),a=i.length,o=0;a>o;)WZ.f(e,n=i[o++],r[n]);return e},PQ=fZ(`document`,`documentElement`),FQ=$Z(`IE_PROTO`),IQ=function(){},LQ=function(e){return`<script>`+e+`<\/script>`},RQ=function(e){e.write(LQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},zQ=function(){try{NQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;zQ=typeof document<`u`?document.domain&&NQ?RQ(NQ):((t=RZ(`iframe`)).style.display=`none`,PQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(LQ(`document.F=Object`)),e.close(),e.F):RQ(NQ);for(var n=vQ.length;n--;)delete zQ.prototype[vQ[n]];return zQ()};eQ[FQ]=!0;var BQ=Object.create||function(e,t){var n;return e===null?n=zQ():(IQ.prototype=HZ(e),n=new IQ,IQ.prototype=null,n[FQ]=e),t===void 0?n:A_e(n,t)},VQ=FZ(`unscopables`),HQ=Array.prototype;HQ[VQ]??WZ.f(HQ,VQ,{configurable:!0,value:BQ(null)});var UQ=function(e){HQ[VQ][e]=!0},j_e=hQ.includes;SQ({target:`Array`,proto:!0},{includes:function(e){return j_e(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`includes`);var M_e={selector:`iframe,video,p`,preParseHtml:function(e){var t=q(e),n=t;if(jQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=q(i))}}var o=jQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=q(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},WQ=iZ(iZ.bind),GQ=function(e,t){return wZ(e),t===void 0?e:WQ?WQ(e,t):function(){return e.apply(t,arguments)}},KQ=Array.isArray||function(e){return aZ(e)==`Array`},qQ=function(){},N_e=[],JQ=fZ(`Reflect`,`construct`),YQ=/^\s*(?:class|function)\b/,P_e=iZ(YQ.exec),F_e=!YQ.exec(qQ),XQ=function(e){if(!uZ(e))return!1;try{return JQ(qQ,N_e,e),!0}catch{return!1}},ZQ=!JQ||JX((function(){var e;return XQ(XQ.call)||!XQ(Object)||!XQ((function(){e=!0}))||e}))?function(e){if(!uZ(e))return!1;switch(TQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return F_e||!!P_e(YQ,YZ(e))}:XQ,I_e=FZ(`species`),QQ=Q.Array,L_e=function(e,t){return new(function(e){var t;return KQ(e)&&(t=e.constructor,(ZQ(t)&&(t===QQ||KQ(t.prototype))||dZ(t)&&(t=t[I_e])===null)&&(t=void 0)),t===void 0?QQ:t}(e))(t===0?0:t)},$Q=iZ([].push),e$=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=kZ(c),h=sZ(m),g=GQ(l,u),_=pQ(h),v=0,y=d||L_e,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:$Q(b,f)}else switch(e){case 4:return!1;case 7:$Q(b,f)}return a?-1:r||i?i:b}},t$={forEach:e$(0),map:e$(1),filter:e$(2),some:e$(3),every:e$(4),find:e$(5),findIndex:e$(6),filterReject:e$(7)},R_e=t$.find,n$=!0;`find`in[]&&[,].find((function(){n$=!1})),SQ({target:`Array`,proto:!0,forced:n$},{find:function(e){return R_e(this,e,arguments.length>1?arguments[1]:void 0)}}),UQ(`find`);var z_e=wQ?{}.toString:function(){return`[object `+TQ(this)+`]`};function r$(e,t,n,r){return t===void 0&&(t=``),n===void 0&&(n=`auto`),r===void 0&&(r=`auto`),{type:`video`,src:e,poster:t,width:n,height:r,children:[{text:``}]}}wQ||lQ(Object.prototype,`toString`,z_e,{unsafe:!0});var i$,a$,B_e={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=q(e),i=``,a=``,o=`auto`,s=`auto`,c=r.find(`iframe`);if(c.length>0)return o=c.attr(`width`)||`auto`,s=c.attr(`height`)||`auto`,r$(i=c[0].outerHTML,a,o,s);var l=r.find(`video`);return(i=l.attr(`src`)||``)||l.length>0&&(i=l.find(`source`).attr(`src`)||``),o=l.attr(`width`)||`auto`,s=l.attr(`height`)||`auto`,r$(i,a=l.attr(`poster`)||``,o,s)}},o$=function(){var e=HZ(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},s$=Q.RegExp,c$=JX((function(){var e=s$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),V_e=c$||JX((function(){return!s$(`a`,`y`).sticky})),H_e={BROKEN_CARET:c$||JX((function(){var e=s$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:V_e,UNSUPPORTED_Y:c$},U_e=Q.RegExp,W_e=JX((function(){var e=U_e(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),G_e=Q.RegExp,K_e=JX((function(){var e=G_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),q_e=aQ.get,J_e=OZ(`native-string-replace`,String.prototype.replace),l$=RegExp.prototype.exec,u$=l$,Y_e=iZ(``.charAt),X_e=iZ(``.indexOf),Z_e=iZ(``.replace),d$=iZ(``.slice),f$=(a$=/b*/g,ZX(l$,i$=/a/,`a`),ZX(l$,a$,`a`),i$.lastIndex!==0||a$.lastIndex!==0),p$=H_e.BROKEN_CARET,m$=/()??/.exec(``)[1]!==void 0;(f$||m$||p$||W_e||K_e)&&(u$=function(e){var t,n,r,i,a,o,s,c=this,l=q_e(c),u=EQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZX(u$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=p$&&c.sticky,m=ZX(o$,c),h=c.source,g=0,_=u;if(p&&(m=Z_e(m,`y`,``),X_e(m,`g`)===-1&&(m+=`g`),_=d$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Y_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),m$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),f$&&(r=c.lastIndex),i=ZX(l$,p?n:c,_),p?i?(i.input=d$(i.input,g),i[0]=d$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:f$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),m$&&i&&i.length>1&&ZX(J_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=BQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var h$=u$;SQ({target:`RegExp`,proto:!0,forced:/./.exec!==h$},{exec:h$});var g$=Function.prototype,_$=g$.apply,Q_e=g$.bind,v$=g$.call,y$=typeof Reflect==`object`&&Reflect.apply||(Q_e?v$.bind(_$):function(){return v$.apply(_$,arguments)}),b$=(FZ(`species`),RegExp.prototype),$_e=iZ(``.charAt),x$=iZ(``.charCodeAt),eve=iZ(``.slice),S$=function(e){return function(t,n){var r,i,a=EQ(cZ(t)),o=uQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=x$(a,o))<55296||r>56319||o+1===s||(i=x$(a,o+1))<56320||i>57343?e?$_e(a,o):r:e?eve(a,o,o+2):i-56320+(r-55296<<10)+65536}},C$={codeAt:S$(!1),charAt:S$(!0)},tve=C$.charAt,nve=function(e,t,n){return t+(n?tve(e,t).length:1)},rve=Math.floor,w$=iZ(``.charAt),ive=iZ(``.replace),T$=iZ(``.slice),ave=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,ove=/\$([$&'`]|\d{1,2})/g,sve=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=ove;return i!==void 0&&(i=kZ(i),c=ave),ive(a,c,(function(a,c){var l;switch(w$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return T$(t,0,n);case`'`:return T$(t,o);case`<`:l=i[T$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=rve(u/10);return d===0?a:d<=s?r[d-1]===void 0?w$(c,1):r[d-1]+w$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},cve=Q.TypeError,lve=function(e,t){var n=e.exec;if(uZ(n)){var r=ZX(n,e,t);return r!==null&&HZ(r),r}if(aZ(e)===`RegExp`)return ZX(h$,e,t);throw cve(`RegExp#exec called on incompatible receiver`)},E$=FZ(`replace`),uve=Math.max,dve=Math.min,fve=iZ([].concat),D$=iZ([].push),O$=iZ(``.indexOf),k$=iZ(``.slice),pve=`a`.replace(/./,`$0`)===`$0`,A$=!!/./[E$]&&/./[E$](`a`,`$0`)===``;function j$(e){return e===void 0&&(e=`r`),e+`-`+Bg()}(function(e,t,n,r){var i=FZ(e),a=!JX((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!JX((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=iZ(/./[i]),c=function(e,t,n){var r=A$?`$`:`$0`;return[function(e,n){var r=cZ(this),i=e==null?void 0:TZ(e,E$);return i?ZX(i,e,r,n):ZX(t,EQ(r),e,n)},function(e,i){var a=HZ(this),o=EQ(e);if(typeof i==`string`&&O$(i,r)===-1&&O$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=uZ(i);c||(i=EQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=lve(a,o);if(f===null||(D$(d,f),!l))break;EQ(f[0])===``&&(a.lastIndex=nve(o,fQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=EQ((f=d[g])[0]),v=uve(dve(uQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)D$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=fve([_],y,v,o);x!==void 0&&D$(S,x);var C=EQ(y$(i,void 0,S))}else C=sve(_,o,v,y,x,i);v>=h&&(m+=k$(o,h,v)+C,h=v+_.length)}return m+k$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=iZ(e),c=t.exec;return c===h$||c===b$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));lQ(String.prototype,e,c[0]),lQ(b$,i,c[1])}})(`replace`,0,!!JX((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!pve||A$);var M$=Q.Promise,N$=function(e,t,n){for(var r in t)lQ(e,r,t[r],n);return e},mve=Q.String,hve=Q.TypeError,P$=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=iZ(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return HZ(n),function(e){if(typeof e==`object`||uZ(e))return e;throw hve(`Can't set `+mve(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),gve=WZ.f,F$=FZ(`toStringTag`),I$=function(e,t,n){e&&!AZ(e=n?e:e.prototype,F$)&&gve(e,F$,{configurable:!0,value:t})},L$=FZ(`species`),_ve=Q.TypeError,R$=function(e,t){if(pZ(t,e))return e;throw _ve(`Incorrect invocation`)},z$={},vve=FZ(`iterator`),yve=Array.prototype,bve=FZ(`iterator`),B$=function(e){if(e!=null)return TZ(e,bve)||TZ(e,`@@iterator`)||z$[TQ(e)]},xve=Q.TypeError,V$=function(e,t,n){var r,i;HZ(e);try{if(!(r=TZ(e,`return`))){if(t===`throw`)throw n;return n}r=ZX(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return HZ(r),n},Sve=Q.TypeError,H$=function(e,t){this.stopped=e,this.result=t},U$=H$.prototype,W$=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=GQ(t,d),g=function(e){return r&&V$(r,`normal`,e),new H$(!0,e)},_=function(e){return f?(HZ(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=B$(e)))throw Sve(CZ(e)+` is not iterable`);if((u=i)!==void 0&&(z$.Array===u||yve[vve]===u)){for(a=0,o=pQ(e);o>a;a++)if((s=_(e[a]))&&pZ(U$,s))return s;return new H$(!1)}r=function(e,t){var n=arguments.length<2?B$(e):t;if(wZ(n))return HZ(ZX(n,e));throw xve(CZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ZX(c,r)).done;){try{s=_(l.value)}catch(e){V$(r,`throw`,e)}if(typeof s==`object`&&s&&pZ(U$,s))return s}return new H$(!1)},G$=FZ(`iterator`),K$=!1;try{var Cve=0,q$={next:function(){return{done:!!Cve++}},return:function(){K$=!0}};q$[G$]=function(){return this},Array.from(q$,(function(){throw 2}))}catch{}var J$,Y$,X$,Z$,Q$=function(e,t){if(!t&&!K$)return!1;var n=!1;try{var r={};r[G$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},wve=Q.TypeError,Tve=FZ(`species`),$$=iZ([].slice),e1=/(?:ipad|iphone|ipod).*applewebkit/i.test(mZ),t1=aZ(Q.process)==`process`,n1=Q.setImmediate,r1=Q.clearImmediate,Eve=Q.process,i1=Q.Dispatch,Dve=Q.Function,a1=Q.MessageChannel,Ove=Q.String,o1=0,s1={};try{J$=Q.location}catch{}var c1=function(e){if(AZ(s1,e)){var t=s1[e];delete s1[e],t()}},l1=function(e){return function(){c1(e)}},u1=function(e){c1(e.data)},d1=function(e){Q.postMessage(Ove(e),J$.protocol+`//`+J$.host)};n1&&r1||(n1=function(e){var t=$$(arguments,1);return s1[++o1]=function(){y$(uZ(e)?e:Dve(e),void 0,t)},Y$(o1),o1},r1=function(e){delete s1[e]},t1?Y$=function(e){Eve.nextTick(l1(e))}:i1&&i1.now?Y$=function(e){i1.now(l1(e))}:a1&&!e1?(Z$=(X$=new a1).port2,X$.port1.onmessage=u1,Y$=GQ(Z$.postMessage,Z$)):Q.addEventListener&&uZ(Q.postMessage)&&!Q.importScripts&&J$&&J$.protocol!==`file:`&&!JX(d1)?(Y$=d1,Q.addEventListener(`message`,u1,!1)):Y$=`onreadystatechange`in RZ(`script`)?function(e){PQ.appendChild(RZ(`script`)).onreadystatechange=function(){PQ.removeChild(this),c1(e)}}:function(e){setTimeout(l1(e),0)});var f1,p1,m1,h1,g1,_1,v1,y1,b1={set:n1,clear:r1},kve=/ipad|iphone|ipod/i.test(mZ)&&Q.Pebble!==void 0,Ave=/web0s(?!.*chrome)/i.test(mZ),jve=VZ.f,x1=b1.set,S1=Q.MutationObserver||Q.WebKitMutationObserver,C1=Q.document,w1=Q.process,T1=Q.Promise,E1=jve(Q,`queueMicrotask`),D1=E1&&E1.value;D1||(f1=function(){var e,t;for(t1&&(e=w1.domain)&&e.exit();p1;){t=p1.fn,p1=p1.next;try{t()}catch(e){throw p1?h1():m1=void 0,e}}m1=void 0,e&&e.enter()},e1||t1||Ave||!S1||!C1?!kve&&T1&&T1.resolve?((v1=T1.resolve(void 0)).constructor=T1,y1=GQ(v1.then,v1),h1=function(){y1(f1)}):t1?h1=function(){w1.nextTick(f1)}:(x1=GQ(x1,Q),h1=function(){x1(f1)}):(g1=!0,_1=C1.createTextNode(``),new S1(f1).observe(_1,{characterData:!0}),h1=function(){_1.data=g1=!g1}));var O1,k1,A1,j1,M1=D1||function(e){var t={fn:e,next:void 0};m1&&(m1.next=t),p1||(p1=t,h1()),m1=t},Mve=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=wZ(t),this.reject=wZ(n)},N1={f:function(e){return new Mve(e)}},P1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Nve=typeof window==`object`,F1=b1.set,Pve=FZ(`species`),I1=`Promise`,L1=aQ.getterFor(I1),Fve=aQ.set,Ive=aQ.getterFor(I1),R1=M$&&M$.prototype,z1=M$,B1=R1,V1=Q.TypeError,H1=Q.document,U1=Q.process,W1=N1.f,Lve=W1,Rve=!!(H1&&H1.createEvent&&Q.dispatchEvent),G1=uZ(Q.PromiseRejectionEvent),K1=!1,q1=xQ(I1,(function(){var e=YZ(z1),t=e!==String(z1);if(!t&&yZ===66)return!0;if(yZ>=51&&/native code/.test(e))return!1;var n=new z1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Pve]=r,!(K1=n.then((function(){}))instanceof r)||!t&&Nve&&!G1})),zve=q1||!Q$((function(e){z1.all(e).catch((function(){}))})),J1=function(e){var t;return!(!dZ(e)||!uZ(t=e.then))&&t},Y1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;M1((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&Vve(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(V1(`Promise-chain cycle`)):(s=J1(o))?ZX(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&Bve(e)}))}},X1=function(e,t,n){var r,i;Rve?((r=H1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!G1&&(i=Q[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=Q.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},Bve=function(e){ZX(F1,Q,(function(){var t,n=e.facade,r=e.value;if(Z1(e)&&(t=P1((function(){t1?U1.emit(`unhandledRejection`,r,n):X1(`unhandledrejection`,n,r)})),e.rejection=t1||Z1(e)?2:1,t.error))throw t.value}))},Z1=function(e){return e.rejection!==1&&!e.parent},Vve=function(e){ZX(F1,Q,(function(){var t=e.facade;t1?U1.emit(`rejectionHandled`,t):X1(`rejectionhandled`,t,e.value)}))},Q1=function(e,t,n){return function(r){e(t,r,n)}},$1=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,Y1(e,!0))},e0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw V1(`Promise can't be resolved itself`);var r=J1(t);r?M1((function(){var n={done:!1};try{ZX(r,t,Q1(e0,n,e),Q1($1,n,e))}catch(t){$1(n,t,e)}})):(e.value=t,e.state=1,Y1(e,!1))}catch(t){$1({done:!1},t,e)}}};if(q1&&(B1=(z1=function(e){R$(this,B1),wZ(e),ZX(O1,this);var t=L1(this);try{e(Q1(e0,t),Q1($1,t))}catch(e){$1(t,e)}}).prototype,(O1=function(e){Fve(this,{type:I1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=N$(B1,{then:function(e,t){var n=Ive(this),r=n.reactions,i=W1(function(e,t){var n,r=HZ(e).constructor;return r===void 0||(n=HZ(r)[Tve])==null?t:function(e){if(ZQ(e))return e;throw wve(CZ(e)+` is not a constructor`)}(n)}(this,z1));return i.ok=!uZ(e)||e,i.fail=uZ(t)&&t,i.domain=t1?U1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&Y1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),k1=function(){var e=new O1,t=L1(e);this.promise=e,this.resolve=Q1(e0,t),this.reject=Q1($1,t)},N1.f=W1=function(e){return e===z1||e===A1?new k1(e):Lve(e)},uZ(M$)&&R1!==Object.prototype)){j1=R1.then,K1||(lQ(R1,`then`,(function(e,t){var n=this;return new z1((function(e,t){ZX(j1,n,e,t)})).then(e,t)}),{unsafe:!0}),lQ(R1,`catch`,B1.catch,{unsafe:!0}));try{delete R1.constructor}catch{}P$&&P$(R1,B1)}function t0(e,t,n){return n===void 0&&(n=``),BX(this,void 0,void 0,(function(){var r,i,a,o,s,c,l;return VX(this,(function(u){switch(u.label){case 0:return t?(e.restoreSelection(),r=e.getMenuConfig(`insertVideo`),i=r.onInsertedVideo,a=r.checkVideo,o=r.parseVideoSrc,[4,a(t,n)]):[2];case 1:return typeof(s=u.sent())==`string`?(e.alert(s,`error`),[2]):s==null?[2]:[4,o(t)];case 2:return(c=u.sent()).trim().indexOf(`<iframe `)!==0&&(c=c.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)),l={type:`video`,src:c,poster:n,children:[{text:``}]},Promise.resolve().then((function(){K.insertNodes(e,l)})),i(l),[2]}}))}))}function n0(){return j$(`w-e-insert-video`)}SQ({global:!0,wrap:!0,forced:q1},{Promise:z1}),I$(z1,I1,!1),function(e){var t=fZ(`Promise`),n=WZ.f;YX&&t&&!t[L$]&&n(t,L$,{configurable:!0,get:function(){return this}})}(),A1=fZ(I1),SQ({target:I1,stat:!0,forced:q1},{reject:function(e){var t=W1(this);return ZX(t.reject,void 0,e),t.promise}}),SQ({target:I1,stat:!0,forced:q1},{resolve:function(e){return function(e,t){if(HZ(e),dZ(t)&&t.constructor===e)return t;var n=N1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),SQ({target:I1,stat:!0,forced:zve},{all:function(e){var t=this,n=W1(t),r=n.resolve,i=n.reject,a=P1((function(){var n=wZ(t.resolve),a=[],o=0,s=1;W$(e,(function(e){var c=o++,l=!1;s++,ZX(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=W1(t),r=n.reject,i=P1((function(){var i=wZ(t.resolve);W$(e,(function(e){ZX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Hve=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=n0(),this.posterInputId=n0(),this.buttonId=n0()}return e.prototype.getValue=function(e){return``},e.prototype.isActive=function(e){return!1},e.prototype.exec=function(e,t){},e.prototype.isDisabled=function(e){var t=e.selection;return t==null||!W.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=HX(jk(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=HX(jk(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=q(c),p=q(d),m=HX(Mk(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=q(`<div></div>`);h.on(`click`,`#`+a,(function(n){return BX(t,void 0,void 0,(function(){var t,a;return VX(this,(function(o){switch(o.label){case 0:return n.preventDefault(),t=h.find(`#`+r).val().trim(),a=h.find(`#`+i).val().trim(),[4,t0(e,t,a)];case 1:return o.sent(),e.hidePanelOrModal(),[2]}}))}))})),this.$content=h}var g=this.$content;return g.empty(),g.append(s),g.append(u),g.append(m),f.val(``),p.val(``),setTimeout((function(){f.focus()})),g[0]},e}(),Uve=iZ([].join),Wve=sZ!=Object,Gve=function(e,t){var n=[].join;return!!n&&JX((function(){n.call(null,`,`,1)}))}();SQ({target:`Array`,proto:!0,forced:Wve||!Gve},{join:function(e){return Uve(lZ(this),e===void 0?`,`:e)}});var r0,i0,a0,Kve=!JX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),o0=$Z(`IE_PROTO`),s0=Q.Object,qve=s0.prototype,c0=Kve?s0.getPrototypeOf:function(e){var t=kZ(e);if(AZ(t,o0))return t[o0];var n=t.constructor;return uZ(n)&&t instanceof n?n.prototype:t instanceof s0?qve:null},l0=FZ(`iterator`),u0=!1;[].keys&&(`next`in(a0=[].keys())?(i0=c0(c0(a0)))!==Object.prototype&&(r0=i0):u0=!0),(r0==null||JX((function(){var e={};return r0[l0].call(e)!==e})))&&(r0={}),uZ(r0[l0])||lQ(r0,l0,(function(){return this}));var d0={IteratorPrototype:r0,BUGGY_SAFARI_ITERATORS:u0},Jve=d0.IteratorPrototype,Yve=function(){return this},Xve=cQ.PROPER,Zve=cQ.CONFIGURABLE,f0=d0.IteratorPrototype,p0=d0.BUGGY_SAFARI_ITERATORS,m0=FZ(`iterator`),Qve=function(){return this},h0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=BQ(Jve,{next:eZ(1,n)}),I$(e,i,!1),z$[i]=Yve})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!p0&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[m0]||p[`@@iterator`]||i&&p[i],h=!p0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=c0(g.call(new e)))!==Object.prototype&&s.next&&(c0(s)!==f0&&(P$?P$(s,f0):uZ(s[m0])||lQ(s,m0,Qve)),I$(s,d,!0)),Xve&&i==`values`&&m&&m.name!==`values`&&(Zve?GZ(p,`name`,`values`):(f=!0,h=function(){return ZX(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(p0||f||!(l in p))&&lQ(p,l,c[l]);else SQ({target:t,proto:!0,forced:p0||f},c);return p[m0]!==h&&lQ(p,m0,h,{name:i}),z$[t]=h,c},$ve=aQ.set,eye=aQ.getterFor(`Array Iterator`),g0=h0(Array,`Array`,(function(e,t){$ve(this,{type:`Array Iterator`,target:lZ(e),index:0,kind:t})}),(function(){var e=eye(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);z$.Arguments=z$.Array,UQ(`keys`),UQ(`values`),UQ(`entries`);var tye=C$.charAt,nye=aQ.set,rye=aQ.getterFor(`String Iterator`);h0(String,`String`,(function(e){nye(this,{type:`String Iterator`,string:EQ(e),index:0})}),(function(){var e,t=rye(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=tye(n,r),t.index+=e.length,{value:e,done:!1})}));var _0=function(e,t,n){var r=IZ(t);r in e?WZ.f(e,r,eZ(0,n)):e[r]=n},iye=Q.Array,aye=Math.max,v0=yQ.f,y0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],oye={f:function(e){return y0&&aZ(e)==`Window`?function(e){try{return v0(e)}catch{return function(e,t,n){for(var r=pQ(e),i=dQ(void 0,r),a=dQ(r,r),o=iye(aye(a-i,0)),s=0;i<a;i++,s++)_0(o,s,e[i]);return o.length=s,o}(y0)}}(e):v0(lZ(e))}},b0=JX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),x0=Object.isExtensible,S0=JX((function(){x0(1)}))||b0?function(e){return!!dZ(e)&&(!b0||aZ(e)!=`ArrayBuffer`)&&(!x0||x0(e))}:x0,sye=!JX((function(){return Object.isExtensible(Object.preventExtensions({}))})),C0=WX((function(e){var t=WZ.f,n=!1,r=jZ(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=yQ.f,t=iZ([].splice),i={};i[r]=1,e(i).length&&(yQ.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},SQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:oye.f}))},fastKey:function(e,t){if(!dZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!AZ(e,r)){if(!S0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!AZ(e,r)){if(!S0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return sye&&n&&S0(e)&&!AZ(e,r)&&a(e),e}};eQ[r]=!0})),w0=C0.getWeakData,cye=aQ.set,lye=aQ.getterFor,uye=t$.find,dye=t$.findIndex,fye=iZ([].splice),pye=0,T0=function(e){return e.frozen||=new E0},E0=function(){this.entries=[]},D0=function(e,t){return uye(e.entries,(function(e){return e[0]===t}))};E0.prototype={get:function(e){var t=D0(this,e);if(t)return t[1]},has:function(e){return!!D0(this,e)},set:function(e,t){var n=D0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=dye(this.entries,(function(t){return t[0]===e}));return~t&&fye(this.entries,t,1),!!~t}};var O0,k0={getConstructor:function(e,t,n,r){var i=e((function(e,i){R$(e,a),cye(e,{type:t,id:pye++,frozen:void 0}),i!=null&&W$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=lye(t),s=function(e,t,n){var r=o(e),i=w0(HZ(t),!0);return!0===i?T0(r).set(t,n):i[r.id]=n,e};return N$(a,{delete:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).delete(e):n&&AZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!dZ(e))return!1;var n=w0(e);return!0===n?T0(t).has(e):n&&AZ(n,t.id)}}),N$(a,n?{get:function(e){var t=o(this);if(dZ(e)){var n=w0(e);return!0===n?T0(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},A0=aQ.enforce,mye=!Q.ActiveXObject&&`ActiveXObject`in Q,j0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},hye=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=Q[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=iZ(s[e]);lQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!dZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!dZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(xQ(e,!uZ(o)||!(i||s.forEach&&!JX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),C0.enable();else if(xQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=JX((function(){d.has(1)})),m=Q$((function(e){new o(e)})),h=!i&&JX((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){R$(e,s);var n=function(e,t,n){var r,i;return P$&&uZ(r=t.constructor)&&r!==n&&dZ(i=r.prototype)&&i!==n.prototype&&P$(e,i),e}(new o,e,c);return t!=null&&W$(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,SQ({global:!0,forced:c!=o},l),I$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,j0,k0);if(ZZ&&mye){O0=k0.getConstructor(j0,`WeakMap`,!0),C0.enable();var M0=hye.prototype,N0=iZ(M0.delete),P0=iZ(M0.has),F0=iZ(M0.get),I0=iZ(M0.set);N$(M0,{delete:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,N0(this,e)||t.frozen.delete(e)}return N0(this,e)},has:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)||t.frozen.has(e)}return P0(this,e)},get:function(e){if(dZ(e)&&!S0(e)){var t=A0(this);return t.frozen||=new O0,P0(this,e)?F0(this,e):t.frozen.get(e)}return F0(this,e)},set:function(e,t){if(dZ(e)&&!S0(e)){var n=A0(this);n.frozen||=new O0,P0(this,e)?I0(this,e,t):n.frozen.set(e,t)}else I0(this,e,t);return this}})}var L0={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},R0=RZ(`span`).classList,z0=R0&&R0.constructor&&R0.constructor.prototype,gye=z0===Object.prototype?void 0:z0,B0=FZ(`iterator`),V0=FZ(`toStringTag`),H0=g0.values,U0=function(e,t){if(e){if(e[B0]!==H0)try{GZ(e,B0,H0)}catch{e[B0]=H0}if(e[V0]||GZ(e,V0,t),L0[t]){for(var n in g0)if(e[n]!==g0[n])try{GZ(e,n,g0[n])}catch{e[n]=g0[n]}}}};for(var W0 in L0)U0(Q[W0]&&Q[W0].prototype,W0);U0(gye,`DOMTokenList`);var _ye=cQ.EXISTS,vye=WZ.f,G0=Function.prototype,yye=iZ(G0.toString),K0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,bye=iZ(K0.exec);YX&&!_ye&&vye(G0,`name`,{configurable:!0,get:function(){try{return bye(K0,yye(this))[1]}catch{return``}}});var xye=FZ(`species`),Sye=yZ>=51||!JX((function(){var e=[];return(e.constructor={})[xye]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Cye=FZ(`species`),q0=Q.Array,wye=Math.max;function J0(e){return e.getMenuConfig(`uploadVideo`)}SQ({target:`Array`,proto:!0,forced:!Sye},{slice:function(e,t){var n,r,i,a=lZ(this),o=pQ(a),s=dQ(e,o),c=dQ(t===void 0?o:t,o);if(KQ(a)&&(n=a.constructor,(ZQ(n)&&(n===q0||KQ(n.prototype))||dZ(n)&&(n=n[Cye])===null)&&(n=void 0),n===q0||n===void 0))return $$(a,s,c);for(r=new(n===void 0?q0:n)(wye(c-s,0)),i=0;s<c;s++,i++)s in a&&_0(r,i,a[s]);return r.length=i,r}});var Y0=new WeakMap;function Tye(e,t){return BX(this,void 0,void 0,(function(){var n,r,i,a;return VX(this,(function(o){switch(o.label){case 0:return n=function(e){var t=Y0.get(e);if(t!=null)return t;var n=J0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Bk(zX(zX({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n){return t0(e,t,n)})),void r(t,n);var i=n.errno,s=i===void 0?1:i,c=n.data,l=c===void 0?{}:c;if(s===0){var u=l.url,d=u===void 0?``:u,f=l.poster;t0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),Y0.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}var Eye=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 t0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=q(`body`),c=q(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){(function(e,t){var n,r;BX(this,void 0,void 0,(function(){var i,a,o,s,c,l;return VX(this,(function(u){switch(u.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=J0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=Tge(i),u.label=2;case 2:return[4,o.next()];case 3:return(s=u.sent()).done?[3,8]:(c=s.value,a?[4,a(c,(function(t,n){return t0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,Tye(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||!W.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}(),Dye=cQ.PROPER,X0=RegExp.prototype,Z0=X0.toString,Oye=iZ(o$),kye=JX((function(){return Z0.call({source:`a`,flags:`b`})!=`/a/b`})),Aye=Dye&&Z0.name!=`toString`;function Q0(){return j$(`w-e-insert-video`)}(kye||Aye)&&lQ(RegExp.prototype,`toString`,(function(){var e=HZ(this),t=EQ(e.source),n=e.flags;return`/`+t+`/`+EQ(n===void 0&&pZ(X0,e)&&!(`flags`in X0)?Oye(e):n)}),{unsafe:!0});var jye=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=Q0(),this.heightInputId=Q0(),this.buttonId=Q0()}return e.prototype.getSelectedVideoNode=function(e){return 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=HX(jk(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=q(a[1]),c=HX(jk(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=q(c[1]),d=HX(Mk(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=q(`<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(),K.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}(),Mye={renderElems:[D_e],elemsToHtml:[O_e],preParseHtml:[M_e],parseElemsHtml:[B_e],menus:[{key:`insertVideo`,factory:function(){return new Hve},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new Eye},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 jye}}],editorPlugin:function(e){var t=e.isVoid,n=e.normalizeNode,r=e;return r.isVoid=function(e){return e.type===`video`||t(e)},r.normalizeNode=function(e){var t=HX(e,2),i=t[0],a=t[1];return X.getNodeType(i)===`video`&&X.isLastNode(r,i)&&K.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};gA(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),gA(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var $0=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function e2(e){var t={exports:{}};return e(t,t.exports),t.exports}var t2,n2,r2=function(e){return e&&e.Math==Math&&e},$=r2(typeof globalThis==`object`&&globalThis)||r2(typeof window==`object`&&window)||r2(typeof self==`object`&&self)||r2(typeof $0==`object`&&$0)||function(){return this}()||Function(`return this`)(),i2=function(e){try{return!!e()}catch{return!0}},a2=!i2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),o2=Function.prototype.call,s2=o2.bind?o2.bind(o2):function(){return o2.apply(o2,arguments)},c2={}.propertyIsEnumerable,l2=Object.getOwnPropertyDescriptor,Nye={f:l2&&!c2.call({1:2},1)?function(e){var t=l2(this,e);return!!t&&t.enumerable}:c2},u2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},d2=Function.prototype,f2=d2.bind,p2=d2.call,Pye=f2&&f2.bind(p2),m2=f2?function(e){return e&&Pye(p2,e)}:function(e){return e&&function(){return p2.apply(e,arguments)}},Fye=m2({}.toString),Iye=m2(``.slice),h2=function(e){return Iye(Fye(e),8,-1)},g2=$.Object,Lye=m2(``.split),_2=i2((function(){return!g2(`z`).propertyIsEnumerable(0)}))?function(e){return h2(e)==`String`?Lye(e,``):g2(e)}:g2,Rye=$.TypeError,v2=function(e){if(e==null)throw Rye(`Can't call method on `+e);return e},y2=function(e){return _2(v2(e))},b2=function(e){return typeof e==`function`},x2=function(e){return typeof e==`object`?e!==null:b2(e)},zye=function(e){return b2(e)?e:void 0},S2=function(e,t){return arguments.length<2?zye($[e]):$[e]&&$[e][t]},C2=m2({}.isPrototypeOf),w2=S2(`navigator`,`userAgent`)||``,T2=$.process,E2=$.Deno,D2=T2&&T2.versions||E2&&E2.version,O2=D2&&D2.v8;O2&&(n2=(t2=O2.split(`.`))[0]>0&&t2[0]<4?1:+(t2[0]+t2[1])),!n2&&w2&&(!(t2=w2.match(/Edge\/(\d+)/))||t2[1]>=74)&&(t2=w2.match(/Chrome\/(\d+)/))&&(n2=+t2[1]);var k2=n2,A2=!!Object.getOwnPropertySymbols&&!i2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k2&&k2<41})),j2=A2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Bye=$.Object,M2=j2?function(e){return typeof e==`symbol`}:function(e){var t=S2(`Symbol`);return b2(t)&&C2(t.prototype,Bye(e))},Vye=$.String,N2=function(e){try{return Vye(e)}catch{return`Object`}},Hye=$.TypeError,P2=function(e){if(b2(e))return e;throw Hye(N2(e)+` is not a function`)},F2=function(e,t){var n=e[t];return n==null?void 0:P2(n)},Uye=$.TypeError,Wye=Object.defineProperty,I2=function(e,t){try{Wye($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},L2=$[`__core-js_shared__`]||I2(`__core-js_shared__`,{}),R2=e2((function(e){(e.exports=function(e,t){return L2[e]||(L2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Gye=$.Object,z2=function(e){return Gye(v2(e))},Kye=m2({}.hasOwnProperty),B2=Object.hasOwn||function(e,t){return Kye(z2(e),t)},qye=0,Jye=Math.random(),Yye=m2(1 .toString),V2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Yye(++qye+Jye,36)},H2=R2(`wks`),U2=$.Symbol,W2=U2&&U2.for,Xye=j2?U2:U2&&U2.withoutSetter||V2,G2=function(e){if(!B2(H2,e)||!A2&&typeof H2[e]!=`string`){var t=`Symbol.`+e;A2&&B2(U2,e)?H2[e]=U2[e]:H2[e]=j2&&W2?W2(t):Xye(t)}return H2[e]},Zye=$.TypeError,Qye=G2(`toPrimitive`),K2=function(e){var t=function(e,t){if(!x2(e)||M2(e))return e;var n,r=F2(e,Qye);if(r){if(t===void 0&&(t=`default`),n=s2(r,e,t),!x2(n)||M2(n))return n;throw Zye(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&b2(n=e.toString)&&!x2(r=s2(n,e))||b2(n=e.valueOf)&&!x2(r=s2(n,e))||t!==`string`&&b2(n=e.toString)&&!x2(r=s2(n,e)))return r;throw Uye(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return M2(t)?t:t+``},q2=$.document,$ye=x2(q2)&&x2(q2.createElement),J2=function(e){return $ye?q2.createElement(e):{}},Y2=!a2&&!i2((function(){return Object.defineProperty(J2(`div`),"a",{get:function(){return 7}}).a!=7})),X2=Object.getOwnPropertyDescriptor,Z2={f:a2?X2:function(e,t){if(e=y2(e),t=K2(t),Y2)try{return X2(e,t)}catch{}if(B2(e,t))return u2(!s2(Nye.f,e,t),e[t])}},ebe=$.String,tbe=$.TypeError,Q2=function(e){if(x2(e))return e;throw tbe(ebe(e)+` is not an object`)},nbe=$.TypeError,$2=Object.defineProperty,e4={f:a2?$2:function(e,t,n){if(Q2(e),t=K2(t),Q2(n),Y2)try{return $2(e,t,n)}catch{}if(`get`in n||`set`in n)throw nbe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t4=a2?function(e,t,n){return e4.f(e,t,u2(1,n))}:function(e,t,n){return e[t]=n,e},rbe=m2(Function.toString);b2(L2.inspectSource)||(L2.inspectSource=function(e){return rbe(e)});var n4,r4,i4,a4=L2.inspectSource,o4=$.WeakMap,s4=b2(o4)&&/native code/.test(a4(o4)),c4=R2(`keys`),l4=function(e){return c4[e]||(c4[e]=V2(e))},u4={},d4=$.TypeError,ibe=$.WeakMap;if(s4||L2.state){var f4=L2.state||=new ibe,abe=m2(f4.get),p4=m2(f4.has),obe=m2(f4.set);n4=function(e,t){if(p4(f4,e))throw new d4(`Object already initialized`);return t.facade=e,obe(f4,e,t),t},r4=function(e){return abe(f4,e)||{}},i4=function(e){return p4(f4,e)}}else{var m4=l4(`state`);u4[m4]=!0,n4=function(e,t){if(B2(e,m4))throw new d4(`Object already initialized`);return t.facade=e,t4(e,m4,t),t},r4=function(e){return B2(e,m4)?e[m4]:{}},i4=function(e){return B2(e,m4)}}var h4={set:n4,get:r4,has:i4,enforce:function(e){return i4(e)?r4(e):n4(e,{})},getterFor:function(e){return function(t){var n;if(!x2(t)||(n=r4(t)).type!==e)throw d4(`Incompatible receiver, `+e+` required`);return n}}},g4=Function.prototype,sbe=a2&&Object.getOwnPropertyDescriptor,_4=B2(g4,`name`),v4={EXISTS:_4,PROPER:_4&&function(){}.name===`something`,CONFIGURABLE:_4&&(!a2||a2&&sbe(g4,`name`).configurable)},y4=e2((function(e){var t=v4.CONFIGURABLE,n=h4.get,r=h4.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;b2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!B2(a,`name`)||t&&a.name!==d)&&t4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:I2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:t4(e,n,a))})(Function.prototype,`toString`,(function(){return b2(this)&&n(this).source||a4(this)}))})),cbe=Math.ceil,lbe=Math.floor,b4=function(e){var t=+e;return t!=t||t===0?0:(t>0?lbe:cbe)(t)},ube=Math.max,dbe=Math.min,x4=function(e,t){var n=b4(e);return n<0?ube(n+t,0):dbe(n,t)},fbe=Math.min,S4=function(e){return e>0?fbe(b4(e),9007199254740991):0},C4=function(e){return S4(e.length)},pbe=function(e){return function(t,n,r){var i,a=y2(t),o=C4(a),s=x4(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),w4=m2([].push),T4=function(e,t){var n,r=y2(e),i=0,a=[];for(n in r)!B2(u4,n)&&B2(r,n)&&w4(a,n);for(;t.length>i;)B2(r,n=t[i++])&&(~pbe(a,n)||w4(a,n));return a},E4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],mbe=E4.concat(`length`,`prototype`),D4={f:Object.getOwnPropertyNames||function(e){return T4(e,mbe)}},hbe={f:Object.getOwnPropertySymbols},gbe=m2([].concat),_be=S2(`Reflect`,`ownKeys`)||function(e){var t=D4.f(Q2(e)),n=hbe.f;return n?gbe(t,n(e)):t},vbe=function(e,t){for(var n=_be(t),r=e4.f,i=Z2.f,a=0;a<n.length;a++){var o=n[a];B2(e,o)||r(e,o,i(t,o))}},ybe=/#|\.prototype\./,O4=function(e,t){var n=xbe[bbe(e)];return n==Cbe||n!=Sbe&&(b2(t)?i2(t):!!t)},bbe=O4.normalize=function(e){return String(e).replace(ybe,`.`).toLowerCase()},xbe=O4.data={},Sbe=O4.NATIVE=`N`,Cbe=O4.POLYFILL=`P`,k4=O4,wbe=Z2.f,A4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||I2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=wbe(n,r))&&o.value:n[r],!k4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vbe(a,i)}(e.sham||i&&i.sham)&&t4(a,`sham`,!0),y4(n,r,a,e)}},j4=Array.isArray||function(e){return h2(e)==`Array`},M4={};M4[G2(`toStringTag`)]=`z`;var N4=String(M4)===`[object z]`,Tbe=G2(`toStringTag`),Ebe=$.Object,Dbe=h2(function(){return arguments}())==`Arguments`,P4=N4?h2:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=Ebe(e),Tbe))==`string`?n:Dbe?h2(t):(r=h2(t))==`Object`&&b2(t.callee)?`Arguments`:r},F4=function(){},Obe=[],I4=S2(`Reflect`,`construct`),L4=/^\s*(?:class|function)\b/,kbe=m2(L4.exec),Abe=!L4.exec(F4),R4=function(e){if(!b2(e))return!1;try{return I4(F4,Obe,e),!0}catch{return!1}},z4=!I4||i2((function(){var e;return R4(R4.call)||!R4(Object)||!R4((function(){e=!0}))||e}))?function(e){if(!b2(e))return!1;switch(P4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Abe||!!kbe(L4,a4(e))}:R4,B4=function(e,t,n){var r=K2(t);r in e?e4.f(e,r,u2(0,n)):e[r]=n},jbe=G2(`species`),V4=m2([].slice),Mbe=k2>=51||!i2((function(){var e=[];return(e.constructor={})[jbe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Nbe=G2(`species`),H4=$.Array,Pbe=Math.max;A4({target:`Array`,proto:!0,forced:!Mbe},{slice:function(e,t){var n,r,i,a=y2(this),o=C4(a),s=x4(e,o),c=x4(t===void 0?o:t,o);if(j4(a)&&(n=a.constructor,(z4(n)&&(n===H4||j4(n.prototype))||x2(n)&&(n=n[Nbe])===null)&&(n=void 0),n===H4||n===void 0))return V4(a,s,c);for(r=new(n===void 0?H4:n)(Pbe(c-s,0)),i=0;s<c;s++,i++)s in a&&B4(r,i,a[s]);return r.length=i,r}});var Fbe=N4?{}.toString:function(){return`[object `+P4(this)+`]`};N4||y4(Object.prototype,`toString`,Fbe,{unsafe:!0});var U4,Ibe=$.String,W4=function(e){if(P4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Ibe(e)},G4=function(){var e=Q2(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},K4=$.RegExp,q4=i2((function(){var e=K4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Lbe=q4||i2((function(){return!K4(`a`,`y`).sticky})),J4={BROKEN_CARET:q4||i2((function(){var e=K4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Lbe,UNSUPPORTED_Y:q4},Rbe=Object.keys||function(e){return T4(e,E4)},zbe=a2?Object.defineProperties:function(e,t){Q2(e);for(var n,r=y2(t),i=Rbe(t),a=i.length,o=0;a>o;)e4.f(e,n=i[o++],r[n]);return e},Y4=S2(`document`,`documentElement`),X4=l4(`IE_PROTO`),Z4=function(){},Q4=function(e){return`<script>`+e+`<\/script>`},$4=function(e){e.write(Q4(``)),e.close();var t=e.parentWindow.Object;return e=null,t},e3=function(){try{U4=new ActiveXObject(`htmlfile`)}catch{}var e,t;e3=typeof document<`u`?document.domain&&U4?$4(U4):((t=J2(`iframe`)).style.display=`none`,Y4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Q4(`document.F=Object`)),e.close(),e.F):$4(U4);for(var n=E4.length;n--;)delete e3.prototype[E4[n]];return e3()};u4[X4]=!0;var t3,n3,r3=Object.create||function(e,t){var n;return e===null?n=e3():(Z4.prototype=Q2(e),n=new Z4,Z4.prototype=null,n[X4]=e),t===void 0?n:zbe(n,t)},Bbe=$.RegExp,Vbe=i2((function(){var e=Bbe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Hbe=$.RegExp,Ube=i2((function(){var e=Hbe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),Wbe=h4.get,Gbe=R2(`native-string-replace`,String.prototype.replace),i3=RegExp.prototype.exec,a3=i3,Kbe=m2(``.charAt),qbe=m2(``.indexOf),Jbe=m2(``.replace),o3=m2(``.slice),s3=(n3=/b*/g,s2(i3,t3=/a/,`a`),s2(i3,n3,`a`),t3.lastIndex!==0||n3.lastIndex!==0),c3=J4.BROKEN_CARET,l3=/()??/.exec(``)[1]!==void 0;(s3||l3||c3||Vbe||Ube)&&(a3=function(e){var t,n,r,i,a,o,s,c=this,l=Wbe(c),u=W4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=s2(a3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=c3&&c.sticky,m=s2(G4,c),h=c.source,g=0,_=u;if(p&&(m=Jbe(m,`y`,``),qbe(m,`g`)===-1&&(m+=`g`),_=o3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Kbe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),l3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),s3&&(r=c.lastIndex),i=s2(i3,p?n:c,_),p?i?(i.input=o3(i.input,g),i[0]=o3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:s3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),l3&&i&&i.length>1&&s2(Gbe,i[0],n,(function(){for(a=1;a<arguments.length-2;a++)arguments[a]===void 0&&(i[a]=void 0)})),i&&f)for(i.groups=o=r3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var u3=a3;A4({target:`RegExp`,proto:!0,forced:/./.exec!==u3},{exec:u3});var d3=Function.prototype,f3=d3.apply,Ybe=d3.bind,p3=d3.call,m3=typeof Reflect==`object`&&Reflect.apply||(Ybe?p3.bind(f3):function(){return p3.apply(f3,arguments)}),Xbe=G2(`species`),h3=RegExp.prototype,Zbe=G2(`match`),Qbe=$.TypeError,$be=G2(`species`),g3=function(e,t){var n,r=Q2(e).constructor;return r===void 0||(n=Q2(r)[$be])==null?t:function(e){if(z4(e))return e;throw Qbe(N2(e)+` is not a constructor`)}(n)},exe=m2(``.charAt),_3=m2(``.charCodeAt),txe=m2(``.slice),v3=function(e){return function(t,n){var r,i,a=W4(v2(t)),o=b4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=_3(a,o))<55296||r>56319||o+1===s||(i=_3(a,o+1))<56320||i>57343?e?exe(a,o):r:e?txe(a,o,o+2):i-56320+(r-55296<<10)+65536}},y3={codeAt:v3(!1),charAt:v3(!0)},nxe=y3.charAt,rxe=function(e,t,n){return t+(n?nxe(e,t).length:1)},ixe=$.Array,axe=Math.max,b3=function(e,t,n){for(var r=C4(e),i=x4(t,r),a=x4(n===void 0?r:n,r),o=ixe(axe(a-i,0)),s=0;i<a;i++,s++)B4(o,s,e[i]);return o.length=s,o},oxe=$.TypeError,x3=function(e,t){var n=e.exec;if(b2(n)){var r=s2(n,e,t);return r!==null&&Q2(r),r}if(h2(e)===`RegExp`)return s2(u3,e,t);throw oxe(`RegExp#exec called on incompatible receiver`)},S3=J4.UNSUPPORTED_Y,sxe=Math.min,C3=[].push,cxe=m2(/./.exec),w3=m2(C3),T3=m2(``.slice);(function(e,t,n,r){var i=G2(e),a=!i2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!i2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[Xbe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=m2(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=W4(v2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!x2(r=e)||!((i=r[Zbe])===void 0?h2(r)==`RegExp`:i))return s2(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=s2(u3,p,a))&&!((c=p.lastIndex)>f&&(w3(u,T3(a,f,s.index)),s.length>1&&s.index<a.length&&m3(C3,u,b3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&cxe(p,``)||w3(u,``):w3(u,T3(a,f)),u.length>o?b3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:s2(t,this,e,n)}:t,[function(t,n){var i=v2(this),a=t==null?void 0:F2(t,e);return a?s2(a,t,i,n):s2(r,W4(i),t,n)},function(e,i){var a=Q2(this),o=W4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=g3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(S3?`g`:`y`),d=new c(S3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return x3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=S3?0:m;var g,_=x3(d,S3?T3(o,m):o);if(_===null||(g=sxe(S4(d.lastIndex+(S3?m:0)),o.length))===p)m=rxe(o,m,l);else{if(w3(h,T3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(w3(h,_[v]),h.length===f)return h;m=p=g}}return w3(h,T3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=m2(e),c=t.exec;return c===u3||c===h3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y4(String.prototype,e,c[0]),y4(h3,i,c[1])}r&&t4(h3[i],`sham`,!0)})(`split`,0,!!i2((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),S3);var E3=function(){return E3=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},E3.apply(this,arguments)};function D3(e,t,n,r){return new(n||=Promise)((function(i,a){function o(e){try{c(r.next(e))}catch(e){a(e)}}function s(e){try{c(r.throw(e))}catch(e){a(e)}}function c(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}c((r=r.apply(e,t||[])).next())}))}function O3(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},typeof Symbol==`function`&&(a[Symbol.iterator]=function(){return this}),a;function s(a){return function(s){return function(a){if(n)throw TypeError(`Generator is already executing.`);for(;o;)try{if(n=1,r&&(i=2&a[0]?r.return:a[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,a[1])).done)return i;switch(r=0,i&&(a=[2&a[0],i.value]),a[0]){case 0:case 1:i=a;break;case 4:return o.label++,{value:a[1],done:!1};case 5:o.label++,r=a[1],a=[0];continue;case 7:a=o.ops.pop(),o.trys.pop();continue;default:if(!((i=(i=o.trys).length>0&&i[i.length-1])||a[0]!==6&&a[0]!==2)){o=0;continue}if(a[0]===3&&(!i||a[1]>i[0]&&a[1]<i[3])){o.label=a[1];break}if(a[0]===6&&o.label<i[1]){o.label=i[1],i=a;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(a);break}i[2]&&o.ops.pop(),o.trys.pop();continue}a=t.call(e,o)}catch(e){a=[6,e],r=0}finally{n=i=0}if(5&a[0])throw a[1];return{value:a[0]?a[1]:void 0,done:!0}}([a,s])}}}function lxe(e){if(!Symbol.asyncIterator)throw TypeError(`Symbol.asyncIterator is not defined.`);var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(e),t={},r(`next`),r(`throw`),r(`return`),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise((function(r,i){(function(e,t,n,r){Promise.resolve(r).then((function(t){e({value:t,done:n})}),t)})(r,i,(t=e[n](t)).done,t.value)}))}}}var k3=G2(`unscopables`),A3=Array.prototype;A3[k3]??e4.f(A3,k3,{configurable:!0,value:r3(null)});var j3,M3,N3,P3=function(e){A3[k3][e]=!0},F3={},uxe=!i2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),I3=l4(`IE_PROTO`),L3=$.Object,dxe=L3.prototype,R3=uxe?L3.getPrototypeOf:function(e){var t=z2(e);if(B2(t,I3))return t[I3];var n=t.constructor;return b2(n)&&t instanceof n?n.prototype:t instanceof L3?dxe:null},z3=G2(`iterator`),B3=!1;[].keys&&(`next`in(N3=[].keys())?(M3=R3(R3(N3)))!==Object.prototype&&(j3=M3):B3=!0),(j3==null||i2((function(){var e={};return j3[z3].call(e)!==e})))&&(j3={}),b2(j3[z3])||y4(j3,z3,(function(){return this}));var V3={IteratorPrototype:j3,BUGGY_SAFARI_ITERATORS:B3},fxe=e4.f,H3=G2(`toStringTag`),U3=function(e,t,n){e&&!B2(e=n?e:e.prototype,H3)&&fxe(e,H3,{configurable:!0,value:t})},pxe=V3.IteratorPrototype,mxe=function(){return this},hxe=$.String,gxe=$.TypeError,W3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=m2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Q2(n),function(e){if(typeof e==`object`||b2(e))return e;throw gxe(`Can't set `+hxe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),_xe=v4.PROPER,vxe=v4.CONFIGURABLE,G3=V3.IteratorPrototype,K3=V3.BUGGY_SAFARI_ITERATORS,q3=G2(`iterator`),yxe=function(){return this},J3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=r3(pxe,{next:u2(1,n)}),U3(e,i,!1),F3[i]=mxe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!K3&&e in p)return p[e];switch(e){case`keys`:case`values`:case`entries`:return function(){return new n(this,e)}}return function(){return new n(this)}},d=t+` Iterator`,f=!1,p=e.prototype,m=p[q3]||p[`@@iterator`]||i&&p[i],h=!K3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=R3(g.call(new e)))!==Object.prototype&&s.next&&(R3(s)!==G3&&(W3?W3(s,G3):b2(s[q3])||y4(s,q3,yxe)),U3(s,d,!0)),_xe&&i==`values`&&m&&m.name!==`values`&&(vxe?t4(p,`name`,`values`):(f=!0,h=function(){return s2(m,this)})),i)if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(K3||f||!(l in p))&&y4(p,l,c[l]);else A4({target:t,proto:!0,forced:K3||f},c);return p[q3]!==h&&y4(p,q3,h,{name:i}),F3[t]=h,c},bxe=h4.set,xxe=h4.getterFor(`Array Iterator`),Y3=J3(Array,`Array`,(function(e,t){bxe(this,{type:`Array Iterator`,target:y2(e),index:0,kind:t})}),(function(){var e=xxe(this),t=e.target,n=e.kind,r=e.index++;return!t||r>=t.length?(e.target=void 0,{value:void 0,done:!0}):n==`keys`?{value:r,done:!1}:n==`values`?{value:t[r],done:!1}:{value:[r,t[r]],done:!1}}),`values`);F3.Arguments=F3.Array,P3(`keys`),P3(`values`),P3(`entries`);var Sxe=y3.charAt,Cxe=h4.set,wxe=h4.getterFor(`String Iterator`);J3(String,`String`,(function(e){Cxe(this,{type:`String Iterator`,string:W4(e),index:0})}),(function(){var e,t=wxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Sxe(n,r),t.index+=e.length,{value:e,done:!1})}));var X3=function(e,t,n){for(var r in t)y4(e,r,t[r],n);return e},Z3=D4.f,Q3=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Txe={f:function(e){return Q3&&h2(e)==`Window`?function(e){try{return Z3(e)}catch{return b3(Q3)}}(e):Z3(y2(e))}},$3=i2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),e6=Object.isExtensible,t6=i2((function(){e6(1)}))||$3?function(e){return!!x2(e)&&(!$3||h2(e)!=`ArrayBuffer`)&&(!e6||e6(e))}:e6,Exe=!i2((function(){return Object.isExtensible(Object.preventExtensions({}))})),n6=e2((function(e){var t=e4.f,n=!1,r=V2(`meta`),i=0,a=function(e){t(e,r,{value:{objectID:`O`+i++,weakData:{}}})},o=e.exports={enable:function(){o.enable=function(){},n=!0;var e=D4.f,t=m2([].splice),i={};i[r]=1,e(i).length&&(D4.f=function(n){for(var i=e(n),a=0,o=i.length;a<o;a++)if(i[a]===r){t(i,a,1);break}return i},A4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Txe.f}))},fastKey:function(e,t){if(!x2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!B2(e,r)){if(!t6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!B2(e,r)){if(!t6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Exe&&n&&t6(e)&&!B2(e,r)&&a(e),e}};u4[r]=!0})),r6=m2(m2.bind),i6=function(e,t){return P2(e),t===void 0?e:r6?r6(e,t):function(){return e.apply(t,arguments)}},Dxe=G2(`iterator`),Oxe=Array.prototype,kxe=G2(`iterator`),a6=function(e){if(e!=null)return F2(e,kxe)||F2(e,`@@iterator`)||F3[P4(e)]},Axe=$.TypeError,o6=function(e,t,n){var r,i;Q2(e);try{if(!(r=F2(e,`return`))){if(t===`throw`)throw n;return n}r=s2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Q2(r),n},jxe=$.TypeError,s6=function(e,t){this.stopped=e,this.result=t},c6=s6.prototype,l6=function(e,t,n){var r,i,a,o,s,c,l,u,d=n&&n.that,f=!(!n||!n.AS_ENTRIES),p=!(!n||!n.IS_ITERATOR),m=!(!n||!n.INTERRUPTED),h=i6(t,d),g=function(e){return r&&o6(r,`normal`,e),new s6(!0,e)},_=function(e){return f?(Q2(e),m?h(e[0],e[1],g):h(e[0],e[1])):m?h(e,g):h(e)};if(p)r=e;else{if(!(i=a6(e)))throw jxe(N2(e)+` is not iterable`);if((u=i)!==void 0&&(F3.Array===u||Oxe[Dxe]===u)){for(a=0,o=C4(e);o>a;a++)if((s=_(e[a]))&&C2(c6,s))return s;return new s6(!1)}r=function(e,t){var n=arguments.length<2?a6(e):t;if(P2(n))return Q2(s2(n,e));throw Axe(N2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=s2(c,r)).done;){try{s=_(l.value)}catch(e){o6(r,`throw`,e)}if(typeof s==`object`&&s&&C2(c6,s))return s}return new s6(!1)},Mxe=$.TypeError,u6=function(e,t){if(C2(t,e))return e;throw Mxe(`Incorrect invocation`)},d6=G2(`iterator`),f6=!1;try{var Nxe=0,p6={next:function(){return{done:!!Nxe++}},return:function(){f6=!0}};p6[d6]=function(){return this},Array.from(p6,(function(){throw 2}))}catch{}var m6=function(e,t){if(!t&&!f6)return!1;var n=!1;try{var r={};r[d6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Pxe=G2(`species`),h6=$.Array,Fxe=function(e,t){return new(function(e){var t;return j4(e)&&(t=e.constructor,(z4(t)&&(t===h6||j4(t.prototype))||x2(t)&&(t=t[Pxe])===null)&&(t=void 0)),t===void 0?h6:t}(e))(t===0?0:t)},g6=m2([].push),_6=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=z2(c),h=_2(m),g=i6(l,u),_=C4(h),v=0,y=d||Fxe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e))if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:g6(b,f)}else switch(e){case 4:return!1;case 7:g6(b,f)}return a?-1:r||i?i:b}},v6={forEach:_6(0),map:_6(1),filter:_6(2),some:_6(3),every:_6(4),find:_6(5),findIndex:_6(6),filterReject:_6(7)},y6=n6.getWeakData,Ixe=h4.set,Lxe=h4.getterFor,Rxe=v6.find,zxe=v6.findIndex,Bxe=m2([].splice),Vxe=0,b6=function(e){return e.frozen||=new x6},x6=function(){this.entries=[]},S6=function(e,t){return Rxe(e.entries,(function(e){return e[0]===t}))};x6.prototype={get:function(e){var t=S6(this,e);if(t)return t[1]},has:function(e){return!!S6(this,e)},set:function(e,t){var n=S6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=zxe(this.entries,(function(t){return t[0]===e}));return~t&&Bxe(this.entries,t,1),!!~t}};var C6,w6={getConstructor:function(e,t,n,r){var i=e((function(e,i){u6(e,a),Ixe(e,{type:t,id:Vxe++,frozen:void 0}),i!=null&&l6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Lxe(t),s=function(e,t,n){var r=o(e),i=y6(Q2(t),!0);return!0===i?b6(r).set(t,n):i[r.id]=n,e};return X3(a,{delete:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).delete(e):n&&B2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!x2(e))return!1;var n=y6(e);return!0===n?b6(t).has(e):n&&B2(n,t.id)}}),X3(a,n?{get:function(e){var t=o(this);if(x2(e)){var n=y6(e);return!0===n?b6(t).get(e):n?n[t.id]:void 0}},set:function(e,t){return s(this,e,t)}}:{add:function(e){return s(this,e,!0)}}),i}},T6=h4.enforce,Hxe=!$.ActiveXObject&&`ActiveXObject`in $,E6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Uxe=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=$[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=m2(s[e]);y4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!x2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!x2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(k4(e,!b2(o)||!(i||s.forEach&&!i2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),n6.enable();else if(k4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=i2((function(){d.has(1)})),m=m6((function(e){new o(e)})),h=!i&&i2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){u6(e,s);var n=function(e,t,n){var r,i;return W3&&b2(r=t.constructor)&&r!==n&&x2(i=r.prototype)&&i!==n.prototype&&W3(e,i),e}(new o,e,c);return t!=null&&l6(t,n[a],{that:n,AS_ENTRIES:r}),n}))).prototype=s,s.constructor=c),(p||h)&&(u(`delete`),u(`has`),r&&u(`get`)),(h||f)&&u(a),i&&s.clear&&delete s.clear}return l[e]=c,A4({global:!0,forced:c!=o},l),U3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,E6,w6);if(s4&&Hxe){C6=w6.getConstructor(E6,`WeakMap`,!0),n6.enable();var D6=Uxe.prototype,O6=m2(D6.delete),k6=m2(D6.has),A6=m2(D6.get),j6=m2(D6.set);X3(D6,{delete:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,O6(this,e)||t.frozen.delete(e)}return O6(this,e)},has:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)||t.frozen.has(e)}return k6(this,e)},get:function(e){if(x2(e)&&!t6(e)){var t=T6(this);return t.frozen||=new C6,k6(this,e)?A6(this,e):t.frozen.get(e)}return A6(this,e)},set:function(e,t){if(x2(e)&&!t6(e)){var n=T6(this);n.frozen||=new C6,k6(this,e)?j6(this,e,t):n.frozen.set(e,t)}else j6(this,e,t);return this}})}var M6={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},N6=J2(`span`).classList,P6=N6&&N6.constructor&&N6.constructor.prototype,F6=P6===Object.prototype?void 0:P6,I6=G2(`iterator`),L6=G2(`toStringTag`),R6=Y3.values,z6=function(e,t){if(e){if(e[I6]!==R6)try{t4(e,I6,R6)}catch{e[I6]=R6}if(e[L6]||t4(e,L6,t),M6[t]){for(var n in Y3)if(e[n]!==Y3[n])try{t4(e,n,Y3[n])}catch{e[n]=Y3[n]}}}};for(var B6 in M6)z6($[B6]&&$[B6].prototype,B6);z6(F6,`DOMTokenList`);var V6=function(e,t){var n=[][e];return!!n&&i2((function(){n.call(null,t||function(){throw 1},1)}))},Wxe=v6.forEach,H6=V6(`forEach`)?[].forEach:function(e){return Wxe(this,e,arguments.length>1?arguments[1]:void 0)},U6=function(e){if(e&&e.forEach!==H6)try{t4(e,`forEach`,H6)}catch{e.forEach=H6}};for(var W6 in M6)M6[W6]&&U6($[W6]&&$[W6].prototype);U6(F6);var G6,K6,q6,J6,Y6=$.Promise,X6=G2(`species`),Z6=/(?:ipad|iphone|ipod).*applewebkit/i.test(w2),Q6=h2($.process)==`process`,$6=$.setImmediate,e8=$.clearImmediate,Gxe=$.process,t8=$.Dispatch,Kxe=$.Function,n8=$.MessageChannel,qxe=$.String,r8=0,i8={};try{G6=$.location}catch{}var a8=function(e){if(B2(i8,e)){var t=i8[e];delete i8[e],t()}},o8=function(e){return function(){a8(e)}},s8=function(e){a8(e.data)},c8=function(e){$.postMessage(qxe(e),G6.protocol+`//`+G6.host)};$6&&e8||($6=function(e){var t=V4(arguments,1);return i8[++r8]=function(){m3(b2(e)?e:Kxe(e),void 0,t)},K6(r8),r8},e8=function(e){delete i8[e]},Q6?K6=function(e){Gxe.nextTick(o8(e))}:t8&&t8.now?K6=function(e){t8.now(o8(e))}:n8&&!Z6?(J6=(q6=new n8).port2,q6.port1.onmessage=s8,K6=i6(J6.postMessage,J6)):$.addEventListener&&b2($.postMessage)&&!$.importScripts&&G6&&G6.protocol!==`file:`&&!i2(c8)?(K6=c8,$.addEventListener(`message`,s8,!1)):K6=`onreadystatechange`in J2(`script`)?function(e){Y4.appendChild(J2(`script`)).onreadystatechange=function(){Y4.removeChild(this),a8(e)}}:function(e){setTimeout(o8(e),0)});var l8,u8,d8,f8,p8,m8,h8,g8,_8={set:$6,clear:e8},Jxe=/ipad|iphone|ipod/i.test(w2)&&$.Pebble!==void 0,Yxe=/web0s(?!.*chrome)/i.test(w2),Xxe=Z2.f,v8=_8.set,y8=$.MutationObserver||$.WebKitMutationObserver,b8=$.document,x8=$.process,S8=$.Promise,C8=Xxe($,`queueMicrotask`),w8=C8&&C8.value;w8||(l8=function(){var e,t;for(Q6&&(e=x8.domain)&&e.exit();u8;){t=u8.fn,u8=u8.next;try{t()}catch(e){throw u8?f8():d8=void 0,e}}d8=void 0,e&&e.enter()},Z6||Q6||Yxe||!y8||!b8?!Jxe&&S8&&S8.resolve?((h8=S8.resolve(void 0)).constructor=S8,g8=i6(h8.then,h8),f8=function(){g8(l8)}):Q6?f8=function(){x8.nextTick(l8)}:(v8=i6(v8,$),f8=function(){v8(l8)}):(p8=!0,m8=b8.createTextNode(``),new y8(l8).observe(m8,{characterData:!0}),f8=function(){m8.data=p8=!p8}));var T8,E8,D8,O8,k8=w8||function(e){var t={fn:e,next:void 0};d8&&(d8.next=t),u8||(u8=t,f8()),d8=t},Zxe=function(e){var t,n;this.promise=new e((function(e,r){if(t!==void 0||n!==void 0)throw TypeError(`Bad Promise constructor`);t=e,n=r})),this.resolve=P2(t),this.reject=P2(n)},A8={f:function(e){return new Zxe(e)}},j8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Qxe=typeof window==`object`,M8=_8.set,$xe=G2(`species`),N8=`Promise`,P8=h4.getterFor(N8),eSe=h4.set,tSe=h4.getterFor(N8),F8=Y6&&Y6.prototype,I8=Y6,L8=F8,R8=$.TypeError,z8=$.document,B8=$.process,V8=A8.f,nSe=V8,rSe=!!(z8&&z8.createEvent&&$.dispatchEvent),H8=b2($.PromiseRejectionEvent),U8=!1,W8=k4(N8,(function(){var e=a4(I8),t=e!==String(I8);if(!t&&k2===66)return!0;if(k2>=51&&/native code/.test(e))return!1;var n=new I8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[$xe]=r,!(U8=n.then((function(){}))instanceof r)||!t&&Qxe&&!H8})),iSe=W8||!m6((function(e){I8.all(e).catch((function(){}))})),G8=function(e){var t;return!(!x2(e)||!b2(t=e.then))&&t},K8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;k8((function(){for(var r=e.value,i=e.state==1,a=0;n.length>a;){var o,s,c,l=n[a++],u=i?l.ok:l.fail,d=l.resolve,f=l.reject,p=l.domain;try{u?(i||(e.rejection===2&&oSe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(R8(`Promise-chain cycle`)):(s=G8(o))?s2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&aSe(e)}))}},q8=function(e,t,n){var r,i;rSe?((r=z8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!H8&&(i=$[`on`+e])?i(r):e===`unhandledrejection`&&function(e,t){var n=$.console;n&&n.error&&(arguments.length==1?n.error(e):n.error(e,t))}(`Unhandled promise rejection`,n)},aSe=function(e){s2(M8,$,(function(){var t,n=e.facade,r=e.value;if(J8(e)&&(t=j8((function(){Q6?B8.emit(`unhandledRejection`,r,n):q8(`unhandledrejection`,n,r)})),e.rejection=Q6||J8(e)?2:1,t.error))throw t.value}))},J8=function(e){return e.rejection!==1&&!e.parent},oSe=function(e){s2(M8,$,(function(){var t=e.facade;Q6?B8.emit(`rejectionHandled`,t):q8(`rejectionhandled`,t,e.value)}))},Y8=function(e,t,n){return function(r){e(t,r,n)}},X8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,K8(e,!0))},Z8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw R8(`Promise can't be resolved itself`);var r=G8(t);r?k8((function(){var n={done:!1};try{s2(r,t,Y8(Z8,n,e),Y8(X8,n,e))}catch(t){X8(n,t,e)}})):(e.value=t,e.state=1,K8(e,!1))}catch(t){X8({done:!1},t,e)}}};if(W8&&(L8=(I8=function(e){u6(this,L8),P2(e),s2(T8,this);var t=P8(this);try{e(Y8(Z8,t),Y8(X8,t))}catch(e){X8(t,e)}}).prototype,(T8=function(e){eSe(this,{type:N8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=X3(L8,{then:function(e,t){var n=tSe(this),r=n.reactions,i=V8(g3(this,I8));return i.ok=!b2(e)||e,i.fail=b2(t)&&t,i.domain=Q6?B8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&K8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),E8=function(){var e=new T8,t=P8(e);this.promise=e,this.resolve=Y8(Z8,t),this.reject=Y8(X8,t)},A8.f=V8=function(e){return e===I8||e===D8?new E8(e):nSe(e)},b2(Y6)&&F8!==Object.prototype)){O8=F8.then,U8||(y4(F8,`then`,(function(e,t){var n=this;return new I8((function(e,t){s2(O8,n,e,t)})).then(e,t)}),{unsafe:!0}),y4(F8,`catch`,L8.catch,{unsafe:!0}));try{delete F8.constructor}catch{}W3&&W3(F8,L8)}A4({global:!0,wrap:!0,forced:W8},{Promise:I8}),U3(I8,N8,!1),function(e){var t=S2(`Promise`),n=e4.f;a2&&t&&!t[X6]&&n(t,X6,{configurable:!0,get:function(){return this}})}(),D8=S2(N8),A4({target:N8,stat:!0,forced:W8},{reject:function(e){var t=V8(this);return s2(t.reject,void 0,e),t.promise}}),A4({target:N8,stat:!0,forced:W8},{resolve:function(e){return function(e,t){if(Q2(e),x2(t)&&t.constructor===e)return t;var n=A8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),A4({target:N8,stat:!0,forced:iSe},{all:function(e){var t=this,n=V8(t),r=n.resolve,i=n.reject,a=j8((function(){var n=P2(t.resolve),a=[],o=0,s=1;l6(e,(function(e){var c=o++,l=!1;s++,s2(n,t,e).then((function(e){l||(l=!0,a[c]=e,--s||r(a))}),i)})),--s||r(a)}));return a.error&&i(a.value),n.promise},race:function(e){var t=this,n=V8(t),r=n.reject,i=j8((function(){var i=P2(t.resolve);l6(e,(function(e){s2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var sSe=v4.PROPER,Q8=RegExp.prototype,$8=Q8.toString,cSe=m2(G4),lSe=i2((function(){return $8.call({source:`a`,flags:`b`})!=`/a/b`})),uSe=sSe&&$8.name!=`toString`;(lSe||uSe)&&y4(RegExp.prototype,`toString`,(function(){var e=Q2(this),t=W4(e.source),n=e.flags;return`/`+t+`/`+W4(n===void 0&&C2(Q8,e)&&!(`flags`in Q8)?cSe(e):n)}),{unsafe:!0});var dSe=v4.EXISTS,fSe=e4.f,e5=Function.prototype,pSe=m2(e5.toString),t5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,mSe=m2(t5.exec);a2&&!dSe&&fSe(e5,`name`,{configurable:!0,get:function(){try{return mSe(t5,pSe(this))[1]}catch{return``}}});var n5=new WeakMap;function r5(e){return e.getMenuConfig(`uploadImage`)}function hSe(e,t){return D3(this,void 0,void 0,(function(){return O3(this,(function(n){return[2,new Promise((function(n){var r=new FileReader;r.readAsDataURL(t),r.onload=function(){var i=r.result;if(i){var a=i.toString(),o=a.indexOf(`data:image`)===0?``:a;$F(e,a,t.name,o),n(`ok`)}}}))]}))}))}function gSe(e,t){return D3(this,void 0,void 0,(function(){var n,r,i,a;return O3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=n5.get(e);if(t!=null)return t;var n=r5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Bk(E3(E3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return $F(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;$F(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;$F(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),n5.set(e,t),t}(e),r=t.name,i=t.type,a=t.size,n.addFile({name:r,type:i,size:a,data:t}),[4,n.upload()];case 1:return o.sent(),[2]}}))}))}function i5(e,t){var n,r;return D3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return O3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=r5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=lxe(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,hSe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return $F(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,gSe(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 _Se=m2([].join),vSe=_2!=Object,ySe=V6(`join`,`,`);A4({target:`Array`,proto:!0,forced:vSe||!ySe},{join:function(e){return _Se(y2(this),e===void 0?`,`:e)}}),cg&&(q.fn.append=cg),Yh&&(q.fn.on=Yh),mg&&(q.fn.remove=mg),Jh&&(q.fn.val=Jh),vg&&(q.fn.click=vg),eg&&(q.fn.hide=eg);var bSe=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 eI(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 $F(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=q(`body`),c=q(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;i5(e,t)}))}},e}(),xSe={menus:[{key:`uploadImage`,factory:function(){return new bSe},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(eI(n))t(r);else if(r.getData(`text/plain`))t(r);else{var i=r.files;i.length<=0?t(r):Array.prototype.slice.call(i).some((function(e){return function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e.type.split(`/`),1)[0]===`image`}))?i5(e,i):t(r)}},n}};gA(`en`,{highLightModule:{selectLang:`Language`}}),gA(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var a5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function o5(e){var t={exports:{}};return e(t,t.exports),t.exports}var s5,c5,l5=function(e){return e&&e.Math==Math&&e},u5=l5(typeof globalThis==`object`&&globalThis)||l5(typeof window==`object`&&window)||l5(typeof self==`object`&&self)||l5(typeof a5==`object`&&a5)||function(){return this}()||Function(`return this`)(),SSe=Object.defineProperty,d5=function(e,t){try{SSe(u5,e,{value:t,configurable:!0,writable:!0})}catch{u5[e]=t}return t},f5=u5[`__core-js_shared__`]||d5(`__core-js_shared__`,{}),p5=o5((function(e){(e.exports=function(e,t){return f5[e]||(f5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),m5=Function.prototype,h5=m5.bind,g5=m5.call,CSe=h5&&h5.bind(g5),_5=h5?function(e){return e&&CSe(g5,e)}:function(e){return e&&function(){return g5.apply(e,arguments)}},wSe=u5.TypeError,v5=function(e){if(e==null)throw wSe(`Can't call method on `+e);return e},TSe=u5.Object,y5=function(e){return TSe(v5(e))},ESe=_5({}.hasOwnProperty),b5=Object.hasOwn||function(e,t){return ESe(y5(e),t)},DSe=0,OSe=Math.random(),kSe=_5(1 .toString),x5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+kSe(++DSe+OSe,36)},S5=function(e){return typeof e==`function`},ASe=function(e){return S5(e)?e:void 0},C5=function(e,t){return arguments.length<2?ASe(u5[e]):u5[e]&&u5[e][t]},w5=C5(`navigator`,`userAgent`)||``,T5=u5.process,E5=u5.Deno,D5=T5&&T5.versions||E5&&E5.version,O5=D5&&D5.v8;O5&&(c5=(s5=O5.split(`.`))[0]>0&&s5[0]<4?1:+(s5[0]+s5[1])),!c5&&w5&&(!(s5=w5.match(/Edge\/(\d+)/))||s5[1]>=74)&&(s5=w5.match(/Chrome\/(\d+)/))&&(c5=+s5[1]);var k5=c5,A5=function(e){try{return!!e()}catch{return!0}},j5=!!Object.getOwnPropertySymbols&&!A5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&k5&&k5<41})),M5=j5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,N5=p5(`wks`),P5=u5.Symbol,F5=P5&&P5.for,jSe=M5?P5:P5&&P5.withoutSetter||x5,I5=function(e){if(!b5(N5,e)||!j5&&typeof N5[e]!=`string`){var t=`Symbol.`+e;j5&&b5(P5,e)?N5[e]=P5[e]:N5[e]=M5&&F5?F5(t):jSe(t)}return N5[e]},L5={};L5[I5(`toStringTag`)]=`z`;var R5=String(L5)===`[object z]`,z5=!A5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),B5=function(e){return typeof e==`object`?e!==null:S5(e)},V5=u5.document,MSe=B5(V5)&&B5(V5.createElement),H5=function(e){return MSe?V5.createElement(e):{}},U5=!z5&&!A5((function(){return Object.defineProperty(H5(`div`),"a",{get:function(){return 7}}).a!=7})),NSe=u5.String,PSe=u5.TypeError,W5=function(e){if(B5(e))return e;throw PSe(NSe(e)+` is not an object`)},G5=Function.prototype.call,K5=G5.bind?G5.bind(G5):function(){return G5.apply(G5,arguments)},q5=_5({}.isPrototypeOf),FSe=u5.Object,J5=M5?function(e){return typeof e==`symbol`}:function(e){var t=C5(`Symbol`);return S5(t)&&q5(t.prototype,FSe(e))},ISe=u5.String,Y5=function(e){try{return ISe(e)}catch{return`Object`}},LSe=u5.TypeError,X5=function(e){if(S5(e))return e;throw LSe(Y5(e)+` is not a function`)},Z5=function(e,t){var n=e[t];return n==null?void 0:X5(n)},RSe=u5.TypeError,zSe=u5.TypeError,BSe=I5(`toPrimitive`),Q5=function(e){var t=function(e,t){if(!B5(e)||J5(e))return e;var n,r=Z5(e,BSe);if(r){if(t===void 0&&(t=`default`),n=K5(r,e,t),!B5(n)||J5(n))return n;throw zSe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&S5(n=e.toString)&&!B5(r=K5(n,e))||S5(n=e.valueOf)&&!B5(r=K5(n,e))||t!==`string`&&S5(n=e.toString)&&!B5(r=K5(n,e)))return r;throw RSe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return J5(t)?t:t+``},VSe=u5.TypeError,$5=Object.defineProperty,e7={f:z5?$5:function(e,t,n){if(W5(e),t=Q5(t),W5(n),U5)try{return $5(e,t,n)}catch{}if(`get`in n||`set`in n)throw VSe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},t7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},n7=z5?function(e,t,n){return e7.f(e,t,t7(1,n))}:function(e,t,n){return e[t]=n,e},HSe=_5(Function.toString);S5(f5.inspectSource)||(f5.inspectSource=function(e){return HSe(e)});var r7,i7,a7,o7=f5.inspectSource,s7=u5.WeakMap,USe=S5(s7)&&/native code/.test(o7(s7)),c7=p5(`keys`),l7=function(e){return c7[e]||(c7[e]=x5(e))},u7={},d7=u5.TypeError,WSe=u5.WeakMap;if(USe||f5.state){var f7=f5.state||=new WSe,GSe=_5(f7.get),p7=_5(f7.has),KSe=_5(f7.set);r7=function(e,t){if(p7(f7,e))throw new d7(`Object already initialized`);return t.facade=e,KSe(f7,e,t),t},i7=function(e){return GSe(f7,e)||{}},a7=function(e){return p7(f7,e)}}else{var m7=l7(`state`);u7[m7]=!0,r7=function(e,t){if(b5(e,m7))throw new d7(`Object already initialized`);return t.facade=e,n7(e,m7,t),t},i7=function(e){return b5(e,m7)?e[m7]:{}},a7=function(e){return b5(e,m7)}}var h7={set:r7,get:i7,has:a7,enforce:function(e){return a7(e)?i7(e):r7(e,{})},getterFor:function(e){return function(t){var n;if(!B5(t)||(n=i7(t)).type!==e)throw d7(`Incompatible receiver, `+e+` required`);return n}}},g7=Function.prototype,qSe=z5&&Object.getOwnPropertyDescriptor,_7=b5(g7,`name`),v7={EXISTS:_7,PROPER:_7&&function(){}.name===`something`,CONFIGURABLE:_7&&(!z5||z5&&qSe(g7,`name`).configurable)},y7=o5((function(e){var t=v7.CONFIGURABLE,n=h7.get,r=h7.enforce,i=String(String).split(`String`);(e.exports=function(e,n,a,o){var s,c=!!o&&!!o.unsafe,l=!!o&&!!o.enumerable,u=!!o&&!!o.noTargetGet,d=o&&o.name!==void 0?o.name:n;S5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!b5(a,`name`)||t&&a.name!==d)&&n7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===u5?l?e[n]=a:d5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:n7(e,n,a))})(Function.prototype,`toString`,(function(){return S5(this)&&n(this).source||o7(this)}))})),JSe=_5({}.toString),YSe=_5(``.slice),b7=function(e){return YSe(JSe(e),8,-1)},XSe=I5(`toStringTag`),ZSe=u5.Object,QSe=b7(function(){return arguments}())==`Arguments`,x7=R5?b7:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=ZSe(e),XSe))==`string`?n:QSe?b7(t):(r=b7(t))==`Object`&&S5(t.callee)?`Arguments`:r},$Se=R5?{}.toString:function(){return`[object `+x7(this)+`]`};R5||y7(Object.prototype,`toString`,$Se,{unsafe:!0});var S7,C7={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0},w7=H5(`span`).classList,T7=w7&&w7.constructor&&w7.constructor.prototype,eCe=T7===Object.prototype?void 0:T7,E7=_5(_5.bind),D7=u5.Object,tCe=_5(``.split),O7=A5((function(){return!D7(`z`).propertyIsEnumerable(0)}))?function(e){return b7(e)==`String`?tCe(e,``):D7(e)}:D7,nCe=Math.ceil,rCe=Math.floor,k7=function(e){var t=+e;return t!=t||t===0?0:(t>0?rCe:nCe)(t)},iCe=Math.min,A7=function(e){return e>0?iCe(k7(e),9007199254740991):0},j7=function(e){return A7(e.length)},M7=Array.isArray||function(e){return b7(e)==`Array`},N7=function(){},aCe=[],P7=C5(`Reflect`,`construct`),F7=/^\s*(?:class|function)\b/,oCe=_5(F7.exec),sCe=!F7.exec(N7),I7=function(e){if(!S5(e))return!1;try{return P7(N7,aCe,e),!0}catch{return!1}},L7=!P7||A5((function(){var e;return I7(I7.call)||!I7(Object)||!I7((function(){e=!0}))||e}))?function(e){if(!S5(e))return!1;switch(x7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return sCe||!!oCe(F7,o7(e))}:I7,cCe=I5(`species`),R7=u5.Array,lCe=function(e,t){return new(function(e){var t;return M7(e)&&(t=e.constructor,(L7(t)&&(t===R7||M7(t.prototype))||B5(t)&&(t=t[cCe])===null)&&(t=void 0)),t===void 0?R7:t}(e))(t===0?0:t)},z7=_5([].push),B7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=y5(c),h=O7(m),g=function(e,t){return X5(e),t===void 0?e:E7?E7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=j7(h),v=0,y=d||lCe,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:z7(b,f)}else switch(e){case 4:return!1;case 7:z7(b,f)}return a?-1:r||i?i:b}},uCe=[B7(0),B7(1),B7(2),B7(3),B7(4),B7(5),B7(6),B7(7)][0],V7=(S7=[].forEach)&&A5((function(){S7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return uCe(this,e,arguments.length>1?arguments[1]:void 0)},H7=function(e){if(e&&e.forEach!==V7)try{n7(e,`forEach`,V7)}catch{e.forEach=V7}};for(var U7 in C7)C7[U7]&&H7(u5[U7]&&u5[U7].prototype);H7(eCe);var W7={}.propertyIsEnumerable,G7=Object.getOwnPropertyDescriptor,K7={f:G7&&!W7.call({1:2},1)?function(e){var t=G7(this,e);return!!t&&t.enumerable}:W7},q7=function(e){return O7(v5(e))},J7=Object.getOwnPropertyDescriptor,Y7={f:z5?J7:function(e,t){if(e=q7(e),t=Q5(t),U5)try{return J7(e,t)}catch{}if(b5(e,t))return t7(!K5(K7.f,e,t),e[t])}},dCe=Math.max,fCe=Math.min,X7=function(e,t){var n=k7(e);return n<0?dCe(n+t,0):fCe(n,t)},pCe=function(e){return function(t,n,r){var i,a=q7(t),o=j7(a),s=X7(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),Z7=_5([].push),Q7=function(e,t){var n,r=q7(e),i=0,a=[];for(n in r)!b5(u7,n)&&b5(r,n)&&Z7(a,n);for(;t.length>i;)b5(r,n=t[i++])&&(~pCe(a,n)||Z7(a,n));return a},$7=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],mCe=$7.concat(`length`,`prototype`),hCe={f:Object.getOwnPropertyNames||function(e){return Q7(e,mCe)}},e9={f:Object.getOwnPropertySymbols},gCe=_5([].concat),_Ce=C5(`Reflect`,`ownKeys`)||function(e){var t=hCe.f(W5(e)),n=e9.f;return n?gCe(t,n(e)):t},vCe=function(e,t){for(var n=_Ce(t),r=e7.f,i=Y7.f,a=0;a<n.length;a++){var o=n[a];b5(e,o)||r(e,o,i(t,o))}},yCe=/#|\.prototype\./,t9=function(e,t){var n=xCe[bCe(e)];return n==CCe||n!=SCe&&(S5(t)?A5(t):!!t)},bCe=t9.normalize=function(e){return String(e).replace(yCe,`.`).toLowerCase()},xCe=t9.data={},SCe=t9.NATIVE=`N`,CCe=t9.POLYFILL=`P`,wCe=t9,TCe=Y7.f,n9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?u5:l?u5[s]||d5(s,{}):(u5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=TCe(n,r))&&o.value:n[r],!wCe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;vCe(a,i)}(e.sham||i&&i.sham)&&n7(a,`sham`,!0),y7(n,r,a,e)}},r9=Object.keys||function(e){return Q7(e,$7)},i9=Object.assign,a9=Object.defineProperty,ECe=_5([].concat),o9=!i9||A5((function(){if(z5&&i9({b:1},i9(a9({},`a`,{enumerable:!0,get:function(){a9(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})),i9({},e)[n]!=7||r9(i9({},t)).join(``)!=r}))?function(e,t){for(var n=y5(e),r=arguments.length,i=1,a=e9.f,o=K7.f;r>i;)for(var s,c=O7(arguments[i++]),l=a?ECe(r9(c),a(c)):r9(c),u=l.length,d=0;u>d;)s=l[d++],z5&&!K5(o,c,s)||(n[s]=c[s]);return n}:i9;n9({target:`Object`,stat:!0,forced:Object.assign!==o9},{assign:o9});var s9=o5((function(e){var t=function(e){var t=/\blang(?:uage)?-([\w-]+)\b/i,n=0,r={},i={manual:e.Prism&&e.Prism.manual,disableWorkerMessageHandler:e.Prism&&e.Prism.disableWorkerMessageHandler,util:{encode:function e(t){return t instanceof a?new a(t.type,e(t.content),t.alias):Array.isArray(t)?t.map(e):t.replace(/&/g,`&amp;`).replace(/</g,`&lt;`).replace(/\u00a0/g,` `)},type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++n}),e.__id},clone:function e(t,n){var r,a;switch(n||={},i.util.type(t)){case`Object`:if(a=i.util.objId(t),n[a])return n[a];for(var o in r={},n[a]=r,t)t.hasOwnProperty(o)&&(r[o]=e(t[o],n));return r;case`Array`:return a=i.util.objId(t),n[a]?n[a]:(r=[],n[a]=r,t.forEach((function(t,i){r[i]=e(t,n)})),r);default:return t}},getLanguage:function(e){for(;e&&!t.test(e.className);)e=e.parentElement;return e?(e.className.match(t)||[,`none`])[1].toLowerCase():`none`},currentScript:function(){if(typeof document>`u`)return null;if(`currentScript`in document)return document.currentScript;try{throw Error()}catch(r){var e=(/at [^(\r\n]*\((.*):[^:]+:[^:]+\)$/i.exec(r.stack)||[])[1];if(e){var t=document.getElementsByTagName(`script`);for(var n in t)if(t[n].src==e)return t[n]}return null}},isActive:function(e,t,n){for(var r=`no-`+t;e;){var i=e.classList;if(i.contains(t))return!0;if(i.contains(r))return!1;e=e.parentElement}return!!n}},languages:{plain:r,plaintext:r,text:r,txt:r,extend:function(e,t){var n=i.util.clone(i.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){var a=(r||=i.languages)[e],o={};for(var s in a)if(a.hasOwnProperty(s)){if(s==t)for(var c in n)n.hasOwnProperty(c)&&(o[c]=n[c]);n.hasOwnProperty(s)||(o[s]=a[s])}var l=r[e];return r[e]=o,i.languages.DFS(i.languages,(function(t,n){n===l&&t!=e&&(this[t]=o)})),o},DFS:function e(t,n,r,a){a||={};var o=i.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var c=t[s],l=i.util.type(c);l!==`Object`||a[o(c)]?l!==`Array`||a[o(c)]||(a[o(c)]=!0,e(c,n,s,a)):(a[o(c)]=!0,e(c,n,null,a))}}},plugins:{},highlightAll:function(e,t){i.highlightAllUnder(document,e,t)},highlightAllUnder:function(e,t,n){var r={callback:n,container:e,selector:`code[class*="language-"], [class*="language-"] code, code[class*="lang-"], [class*="lang-"] code`};i.hooks.run(`before-highlightall`,r),r.elements=Array.prototype.slice.apply(r.container.querySelectorAll(r.selector)),i.hooks.run(`before-all-elements-highlight`,r);for(var a,o=0;a=r.elements[o++];)i.highlightElement(a,!0===t,r.callback)},highlightElement:function(n,r,a){var o=i.util.getLanguage(n),s=i.languages[o];n.className=n.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o;var c=n.parentElement;c&&c.nodeName.toLowerCase()===`pre`&&(c.className=c.className.replace(t,``).replace(/\s+/g,` `)+` language-`+o);var l={element:n,language:o,grammar:s,code:n.textContent};function u(e){l.highlightedCode=e,i.hooks.run(`before-insert`,l),l.element.innerHTML=l.highlightedCode,i.hooks.run(`after-highlight`,l),i.hooks.run(`complete`,l),a&&a.call(l.element)}if(i.hooks.run(`before-sanity-check`,l),(c=l.element.parentElement)&&c.nodeName.toLowerCase()===`pre`&&!c.hasAttribute(`tabindex`)&&c.setAttribute(`tabindex`,`0`),!l.code)return i.hooks.run(`complete`,l),void(a&&a.call(l.element));if(i.hooks.run(`before-highlight`,l),l.grammar)if(r&&e.Worker){var d=new Worker(i.filename);d.onmessage=function(e){u(e.data)},d.postMessage(JSON.stringify({language:l.language,code:l.code,immediateClose:!0}))}else u(i.highlight(l.code,l.grammar,l.language));else u(i.util.encode(l.code))},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};return i.hooks.run(`before-tokenize`,r),r.tokens=i.tokenize(r.code,r.grammar),i.hooks.run(`after-tokenize`,r),a.stringify(i.util.encode(r.tokens),r.language)},tokenize:function(e,t){var n=t.rest;if(n){for(var r in n)t[r]=n[r];delete t.rest}var i=new c;return l(i,i.head,e),s(e,i,t,i.head,0),function(e){for(var t=[],n=e.head.next;n!==e.tail;)t.push(n.value),n=n.next;return t}(i)},hooks:{all:{},add:function(e,t){var n=i.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=i.hooks.all[e];if(n&&n.length)for(var r,a=0;r=n[a++];)r(t)}},Token:a};function a(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=0|(r||``).length}function o(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function s(e,t,n,r,c,d){for(var f in n)if(n.hasOwnProperty(f)&&n[f]){var p=n[f];p=Array.isArray(p)?p:[p];for(var m=0;m<p.length;++m){if(d&&d.cause==f+`,`+m)return;var h=p[m],g=h.inside,_=!!h.lookbehind,v=!!h.greedy,y=h.alias;if(v&&!h.pattern.global){var b=h.pattern.toString().match(/[imsuy]*$/)[0];h.pattern=RegExp(h.pattern.source,b+`g`)}for(var x=h.pattern||h,S=r.next,C=c;S!==t.tail&&!(d&&C>=d.reach);C+=S.value.length,S=S.next){var w=S.value;if(t.length>e.length)return;if(!(w instanceof a)){var T,E=1;if(v){if(!(T=o(x,C,e,_)))break;var D=T.index,O=T.index+T[0].length,k=C;for(k+=S.value.length;D>=k;)k+=(S=S.next).value.length;if(C=k-=S.value.length,S.value instanceof a)continue;for(var A=S;A!==t.tail&&(k<O||typeof A.value==`string`);A=A.next)E++,k+=A.value.length;E--,w=e.slice(C,k),T.index-=C}else if(!(T=o(x,0,w,_)))continue;D=T.index;var j=T[0],M=w.slice(0,D),N=w.slice(D+j.length),P=C+w.length;d&&P>d.reach&&(d.reach=P);var F=S.prev;if(M&&(F=l(t,F,M),C+=M.length),u(t,F,E),S=l(t,F,new a(f,g?i.tokenize(j,g):j,y,j)),N&&l(t,S,N),E>1){var ee={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,ee),d&&ee.reach>d.reach&&(d.reach=ee.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,`&quot;`)+`"`;return`<`+a.tag+` class="`+a.classes.join(` `)+`"`+s+`>`+a.content+`</`+a.tag+`>`},!e.document)return e.addEventListener&&(i.disableWorkerMessageHandler||e.addEventListener(`message`,(function(t){var n=JSON.parse(t.data),r=n.language,a=n.code,o=n.immediateClose;e.postMessage(i.highlight(a,i.languages[r],r)),o&&e.close()}),!1)),i;var d=i.util.currentScript();function f(){i.manual||i.highlightAll()}if(d&&(i.filename=d.src,d.hasAttribute(`data-manual`)&&(i.manual=!0)),!i.manual){var p=document.readyState;p===`loading`||p===`interactive`&&d&&d.defer?document.addEventListener(`DOMContentLoaded`,f):window.requestAnimationFrame?window.requestAnimationFrame(f):window.setTimeout(f,16)}return i}(typeof window<`u`?window:typeof WorkerGlobalScope<`u`&&self instanceof WorkerGlobalScope?self:{});e.exports&&=t,a5!==void 0&&(a5.Prism=t),t.languages.markup={comment:{pattern:/<!--(?:(?!<!--)[\s\S])*?-->/,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/<!DOCTYPE(?:[^>"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|<!--(?:[^-]|-(?!->))*-->)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^<!|>$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:`attr-equals`},/"|'/]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:`named-entity`},/&#x?[\da-f]{1,8};/i]},t.languages.markup.tag.inside[`attr-value`].inside.entity=t.languages.markup.entity,t.languages.markup.doctype.inside[`internal-subset`].inside=t.languages.markup,t.hooks.add(`wrap`,(function(e){e.type===`entity`&&(e.attributes.title=e.content.replace(/&amp;/,`&`))})),Object.defineProperty(t.languages.markup.tag,"addInlined",{value:function(e,n){var r={};r[`language-`+n]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:t.languages[n]},r.cdata=/^<!\[CDATA\[|\]\]>$/i;var 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(/&amp;/,`&`))})),Object.defineProperty(Prism.languages.markup.tag,"addInlined",{value:function(e,t){var n={};n[`language-`+t]={pattern:/(^<!\[CDATA\[)[\s\S]+?(?=\]\]>$)/i,lookbehind:!0,inside:Prism.languages[t]},n.cdata=/^<!\[CDATA\[|\]\]>$/i;var r={"included-cdata":{pattern:/<!\[CDATA\[[\s\S]*?\]\]>/i,inside:n}};r[`language-`+t]={pattern:/[\s\S]+/,inside:Prism.languages[t]};var 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:/![sra](?=[:}]$)/,alias:`punctuation`},rest:null}},string:/[\s\S]+/}},"triple-quoted-string":{pattern:/(?:[rub]|rb|br)?("""|''')[\s\S]*?\1/i,greedy:!0,alias:`string`},string:{pattern:/(?:[rub]|rb|br)?("|')(?:\\.|(?!\1)[^\\\r\n])*\1/i,greedy:!0},function:{pattern:/((?:^|\s)def[ \t]+)[a-zA-Z_]\w*(?=\s*\()/g,lookbehind:!0},"class-name":{pattern:/(\bclass\s+)\w+/i,lookbehind:!0},decorator:{pattern:/(^[\t ]*)@\w+(?:\.\w+)*/im,lookbehind:!0,alias:[`annotation`,`punctuation`],inside:{punctuation:/\./}},keyword:/\b(?:and|as|assert|async|await|break|class|continue|def|del|elif|else|except|exec|finally|for|from|global|if|import|in|is|lambda|nonlocal|not|or|pass|print|raise|return|try|while|with|yield)\b/,builtin:/\b(?:__import__|abs|all|any|apply|ascii|basestring|bin|bool|buffer|bytearray|bytes|callable|chr|classmethod|cmp|coerce|compile|complex|delattr|dict|dir|divmod|enumerate|eval|execfile|file|filter|float|format|frozenset|getattr|globals|hasattr|hash|help|hex|id|input|int|intern|isinstance|issubclass|iter|len|list|locals|long|map|max|memoryview|min|next|object|oct|open|ord|pow|property|range|raw_input|reduce|reload|repr|reversed|round|set|setattr|slice|sorted|staticmethod|str|sum|super|tuple|type|unichr|unicode|vars|xrange|zip)\b/,boolean:/\b(?:True|False|None)\b/,number:/\b0(?:b(?:_?[01])+|o(?:_?[0-7])+|x(?:_?[a-f0-9])+)\b|(?:\b\d+(?:_\d+)*(?:\.(?:\d+(?:_\d+)*)?)?|\B\.\d+(?:_\d+)*)(?:e[+-]?\d+(?:_\d+)*)?j?\b/i,operator:/[-+%=]=?|!=|\*\*?=?|\/\/?=?|<[<=>]?|>[=>]?|[&|^~]/,punctuation:/[{}[\];(),.:]/},Prism.languages.python[`string-interpolation`].inside.interpolation.inside.rest=Prism.languages.python,Prism.languages.py=Prism.languages.python,function(e){var t=/\b(?:abstract|assert|boolean|break|byte|case|catch|char|class|const|continue|default|do|double|else|enum|exports|extends|final|finally|float|for|goto|if|implements|import|instanceof|int|interface|long|module|native|new|non-sealed|null|open|opens|package|permits|private|protected|provides|public|record|requires|return|sealed|short|static|strictfp|super|switch|synchronized|this|throw|throws|to|transient|transitive|try|uses|var|void|volatile|while|with|yield)\b/,n=`(^|[^\\w.])(?:[a-z]\\w*\\s*\\.\\s*)*(?:[A-Z]\\w*\\s*\\.\\s*)*`,r={pattern:RegExp(n+`[A-Z](?:[\\d_A-Z]*[a-z]\\w*)?\\b`),lookbehind:!0,inside:{namespace:{pattern:/^[a-z]\w*(?:\s*\.\s*[a-z]\w*)*(?:\s*\.)?/,inside:{punctuation:/\./}},punctuation:/\./}};e.languages.java=e.languages.extend(`clike`,{"class-name":[r,{pattern:RegExp(n+`[A-Z]\\w*(?=\\s+\\w+\\s*[;,=()])`),lookbehind:!0,inside:r.inside}],keyword:t,function:[e.languages.clike.function,{pattern:/(::\s*)[a-z_]\w*/,lookbehind:!0}],number:/\b0b[01][01_]*L?\b|\b0x(?:\.[\da-f_p+-]+|[\da-f_]+(?:\.[\da-f_p+-]+)?)\b|(?:\b\d[\d_]*(?:\.[\d_]*)?|\B\.\d[\d_]*)(?:e[+-]?\d[\d_]*)?[dfl]?/i,operator:{pattern:/(^|[^.])(?:<<=?|>>>?=?|->|--|\+\+|&&|\|\||::|[?:~]|[-+*/%&|^!=<>]=?)/m,lookbehind:!0}}),e.languages.insertBefore(`java`,`string`,{"triple-quoted-string":{pattern:/"""[ \t]*[\r\n](?:(?:"|"")?(?:\\.|[^"\\]))*"""/,greedy:!0,alias:`string`}}),e.languages.insertBefore(`java`,`class-name`,{annotation:{pattern:/(^|[^.])@\w+(?:\s*\.\s*\w+)*/,lookbehind:!0,alias:`punctuation`},generics:{pattern:/<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&)|<(?:[\w\s,.?]|&(?!&))*>)*>)*>)*>/,inside:{"class-name":r,keyword:t,punctuation:/[<>(),.:]/,operator:/[?&|]/}},namespace:{pattern:RegExp(`(\\b(?:exports|import(?:\\s+static)?|module|open|opens|package|provides|requires|to|transitive|uses|with)\\s+)(?!<keyword>)[a-z]\\w*(?:\\.[a-z]\\w*)*\\.?`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0,inside:{punctuation:/\./}}})}(Prism),function(e){var t=/\b(?:alignas|alignof|asm|auto|bool|break|case|catch|char|char8_t|char16_t|char32_t|class|compl|concept|const|consteval|constexpr|constinit|const_cast|continue|co_await|co_return|co_yield|decltype|default|delete|do|double|dynamic_cast|else|enum|explicit|export|extern|final|float|for|friend|goto|if|import|inline|int|int8_t|int16_t|int32_t|int64_t|uint8_t|uint16_t|uint32_t|uint64_t|long|module|mutable|namespace|new|noexcept|nullptr|operator|override|private|protected|public|register|reinterpret_cast|requires|return|short|signed|sizeof|static|static_assert|static_cast|struct|switch|template|this|thread_local|throw|try|typedef|typeid|typename|union|unsigned|using|virtual|void|volatile|wchar_t|while)\b/,n=`\\b(?!<keyword>)\\w+(?:\\s*\\.\\s*\\w+)*\\b`.replace(/<keyword>/g,(function(){return t.source}));e.languages.cpp=e.languages.extend(`c`,{"class-name":[{pattern:RegExp(`(\\b(?:class|concept|enum|struct|typename)\\s+)(?!<keyword>)\\w+`.replace(/<keyword>/g,(function(){return t.source}))),lookbehind:!0},/\b[A-Z]\w*(?=\s*::\s*\w+\s*\()/,/\b[A-Z_]\w*(?=\s*::\s*~\w+\s*\()/i,/\b\w+(?=\s*<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>\s*::\s*\w+\s*\()/],keyword:t,number:{pattern:/(?:\b0b[01']+|\b0x(?:[\da-f']+(?:\.[\da-f']*)?|\.[\da-f']+)(?:p[+-]?[\d']+)?|(?:\b[\d']+(?:\.[\d']*)?|\B\.[\d']+)(?:e[+-]?[\d']+)?)[ful]{0,4}/i,greedy:!0},operator:/>>=?|<<=?|->|--|\+\+|&&|\|\||[?:~]|<=>|[-+*/%&|^!=<>]=?|\b(?:and|and_eq|bitand|bitor|not|not_eq|or|or_eq|xor|xor_eq)\b/,boolean:/\b(?:true|false)\b/}),e.languages.insertBefore(`cpp`,`string`,{module:{pattern:RegExp(`(\\b(?:module|import)\\s+)(?:"(?:\\\\(?:\\r\\n|[\\s\\S])|[^"\\\\\\r\\n])*"|<[^<>\\r\\n]*>|`+`<mod-name>(?:\\s*:\\s*<mod-name>)?|:\\s*<mod-name>`.replace(/<mod-name>/g,(function(){return n}))+`)`),lookbehind:!0,greedy:!0,inside:{string:/^[<"][\s\S]+/,operator:/:/,punctuation:/\./}},"raw-string":{pattern:/R"([^()\\ ]{0,16})\([\s\S]*?\)\1"/,alias:`string`,greedy:!0}}),e.languages.insertBefore(`cpp`,`keyword`,{"generic-function":{pattern:/\b(?!operator\b)[a-z_]\w*\s*<(?:[^<>]|<[^<>]*>)*>(?=\s*\()/i,inside:{function:/^\w+/,generic:{pattern:/<[\s\S]+/,alias:`class-name`,inside:e.languages.cpp}}}}),e.languages.insertBefore(`cpp`,`operator`,{"double-colon":{pattern:/::/,alias:`punctuation`}}),e.languages.insertBefore(`cpp`,`class-name`,{"base-clause":{pattern:/(\b(?:class|struct)\s+\w+\s*:\s*)[^;{}"'\s]+(?:\s+[^;{}"'\s]+)*(?=\s*[;{])/,lookbehind:!0,greedy:!0,inside:e.languages.extend(`cpp`,{})}}),e.languages.insertBefore(`inside`,`double-colon`,{"class-name":/\b[a-z_]\w*\b(?!\s*::)/i},e.languages.cpp[`base-clause`])}(Prism),function(e){function t(e,t){return e.replace(/<<(\d+)>>/g,(function(e,n){return`(?:`+t[+n]+`)`}))}function n(e,n,r){return RegExp(t(e,n),r||``)}function r(e,t){for(var n=0;n<t;n++)e=e.replace(/<<self>>/g,(function(){return`(?:`+e+`)`}));return e.replace(/<<self>>/g,`[^\\s\\S]`)}var i=`bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void`,a=`class enum interface record struct`,o=`add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)`,s=`abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield`;function c(e){return`\\b(?:`+e.trim().replace(/ /g,`|`)+`)\\b`}var l=c(a),u=RegExp(c(i+` `+a+` `+o+` `+s)),d=c(a+` `+o+` `+s),f=c(i+` `+a+` `+s),p=r(`<(?:[^<>;=+\\-*/%&|^]|<<self>>)*>`,2),m=r(`\\((?:[^()]|<<self>>)*\\)`,2),h=`@?\\b[A-Za-z_]\\w*\\b`,g=t(`<<0>>(?:\\s*<<1>>)?`,[h,p]),_=t(`(?!<<0>>)<<1>>(?:\\s*\\.\\s*<<1>>)*`,[d,g]),v=`\\[\\s*(?:,\\s*)*\\]`,y=t(`<<0>>(?:\\s*(?:\\?\\s*)?<<1>>)*(?:\\s*\\?)?`,[_,v]),b=t(`(?:<<0>>|<<1>>)(?:\\s*(?:\\?\\s*)?<<2>>)*(?:\\s*\\?)?`,[t(`\\(<<0>>+(?:,<<0>>+)+\\)`,[t(`[^,()<>[\\];=+\\-*/%&|^]|<<0>>|<<1>>|<<2>>`,[p,m,v])]),_,v]),x={keyword:u,punctuation:/[<>()?,.:[\]]/},S=`'(?:[^\\r\\n'\\\\]|\\\\.|\\\\[Uux][\\da-fA-F]{1,8})'`,C=`"(?:\\\\.|[^\\\\"\\r\\n])*"`,w=`@"(?:""|\\\\[\\s\\S]|[^\\\\"])*"(?!")`;e.languages.csharp=e.languages.extend(`clike`,{string:[{pattern:n(`(^|[^$\\\\])<<0>>`,[w]),lookbehind:!0,greedy:!0},{pattern:n(`(^|[^@$\\\\])<<0>>`,[C]),lookbehind:!0,greedy:!0},{pattern:RegExp(S),greedy:!0,alias:`character`}],"class-name":[{pattern:n(`(\\busing\\s+static\\s+)<<0>>(?=\\s*;)`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+<<0>>\\s*=\\s*)<<1>>(?=\\s*;)`,[h,b]),lookbehind:!0,inside:x},{pattern:n(`(\\busing\\s+)<<0>>(?=\\s*=)`,[h]),lookbehind:!0},{pattern:n(`(\\b<<0>>\\s+)<<1>>`,[l,g]),lookbehind:!0,inside:x},{pattern:n(`(\\bcatch\\s*\\(\\s*)<<0>>`,[_]),lookbehind:!0,inside:x},{pattern:n(`(\\bwhere\\s+)<<0>>`,[h]),lookbehind:!0},{pattern:n(`(\\b(?:is(?:\\s+not)?|as)\\s+)<<0>>`,[y]),lookbehind:!0,inside:x},{pattern:n(`\\b<<0>>(?=\\s+(?!<<1>>|with\\s*\\{)<<2>>(?:\\s*[=,;:{)\\]]|\\s+(?:in|when)\\b))`,[b,f,h]),inside:x}],keyword:u,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:ul|lu|[dflmu])?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),e.languages.insertBefore(`csharp`,`number`,{range:{pattern:/\.\./,alias:`operator`}}),e.languages.insertBefore(`csharp`,`punctuation`,{"named-parameter":{pattern:n(`([(,]\\s*)<<0>>(?=\\s*:)`,[h]),lookbehind:!0,alias:`punctuation`}}),e.languages.insertBefore(`csharp`,`class-name`,{namespace:{pattern:n(`(\\b(?:namespace|using)\\s+)<<0>>(?:\\s*\\.\\s*<<0>>)*(?=\\s*[;{])`,[h]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:n(`(\\b(?:default|typeof|sizeof)\\s*\\(\\s*(?!\\s))(?:[^()\\s]|\\s(?!\\s)|<<0>>)*(?=\\s*\\))`,[m]),lookbehind:!0,alias:`class-name`,inside:x},"return-type":{pattern:n(`<<0>>(?=\\s+(?:<<1>>\\s*(?:=>|[({]|\\.\\s*this\\s*\\[)|this\\s*\\[))`,[b,_]),inside:x,alias:`class-name`},"constructor-invocation":{pattern:n(`(\\bnew\\s+)<<0>>(?=\\s*[[({])`,[b]),lookbehind:!0,inside:x,alias:`class-name`},"generic-method":{pattern:n(`<<0>>\\s*<<1>>(?=\\s*\\()`,[h,p]),inside:{function:n(`^<<0>>`,[h]),generic:{pattern:RegExp(p),alias:`class-name`,inside:x}}},"type-list":{pattern:n(`\\b((?:<<0>>\\s+<<1>>|record\\s+<<1>>\\s*<<5>>|where\\s+<<2>>)\\s*:\\s*)(?:<<3>>|<<4>>|<<1>>\\s*<<5>>|<<6>>)(?:\\s*,\\s*(?:<<3>>|<<4>>|<<6>>))*(?=\\s*(?:where|[{;]|=>|$))`,[l,g,h,b,u.source,m,`\\bnew\\s*\\(\\s*\\)`]),lookbehind:!0,inside:{"record-arguments":{pattern:n(`(^(?!new\\s*\\()<<0>>\\s*)<<1>>`,[g,m]),lookbehind:!0,greedy:!0,inside:e.languages.csharp},keyword:u,"class-name":{pattern:RegExp(b),greedy:!0,inside:x},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:`property`,inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:`keyword`}}}});var T=C+`|`+S,E=t(`\\/(?![*/])|\\/\\/[^\\r\\n]*[\\r\\n]|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>`,[T]),D=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),O=`\\b(?:assembly|event|field|method|module|param|property|return|type)\\b`,k=t(`<<0>>(?:\\s*\\(<<1>>*\\))?`,[_,D]);e.languages.insertBefore(`csharp`,`class-name`,{attribute:{pattern:n(`((?:^|[^\\s\\w>)?])\\s*\\[\\s*)(?:<<0>>\\s*:\\s*)?<<1>>(?:\\s*,\\s*<<1>>)*(?=\\s*\\])`,[O,k]),lookbehind:!0,greedy:!0,inside:{target:{pattern:n(`^<<0>>(?=\\s*:)`,[O]),alias:`keyword`},"attribute-arguments":{pattern:n(`\\(<<0>>*\\)`,[D]),inside:e.languages.csharp},"class-name":{pattern:RegExp(_),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var A=`:[^}\\r\\n]+`,j=r(t(`[^"'/()]|<<0>>|\\(<<self>>*\\)`,[E]),2),M=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[j,A]),N=r(t(`[^"'/()]|\\/(?!\\*)|\\/\\*(?:[^*]|\\*(?!\\/))*\\*\\/|<<0>>|\\(<<self>>*\\)`,[T]),2),P=t(`\\{(?!\\{)(?:(?![}:])<<0>>)*<<1>>?\\}`,[N,A]);function F(t,r){return{interpolation:{pattern:n(`((?:^|[^{])(?:\\{\\{)*)<<0>>`,[t]),lookbehind:!0,inside:{"format-string":{pattern:n(`(^\\{(?:(?![}:])<<0>>)*)<<1>>(?=\\}$)`,[r,A]),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>>|[^\\\\{"])*"`,[M]),lookbehind:!0,greedy:!0,inside:F(M,j)},{pattern:n(`(^|[^@\\\\])\\$"(?:\\\\.|\\{\\{|<<0>>|[^\\\\"{])*"`,[P]),lookbehind:!0,greedy:!0,inside:F(P,N)}]})}(Prism),Prism.languages.dotnet=Prism.languages.cs=Prism.languages.csharp,Prism.languages[`visual-basic`]={comment:{pattern:/(?:['‘’]|REM\b)(?:[^\r\n_]|_(?:\r\n?|\n)?)*/i,inside:{keyword:/^REM/i}},directive:{pattern:/#(?:Const|Else|ElseIf|End|ExternalChecksum|ExternalSource|If|Region)(?:[^\S\r\n]_[^\S\r\n]*(?:\r\n?|\n)|.)+/i,alias:`comment`,greedy:!0},string:{pattern:/\$?["“”](?:["“”]{2}|[^"“”])*["“”]C?/i,greedy:!0},date:{pattern:/#[^\S\r\n]*(?:\d+([/-])\d+\1\d+(?:[^\S\r\n]+(?:\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?))?|\d+[^\S\r\n]*(?:AM|PM)|\d+:\d+(?::\d+)?(?:[^\S\r\n]*(?:AM|PM))?)[^\S\r\n]*#/i,alias:`builtin`},number:/(?:(?:\b\d+(?:\.\d+)?|\.\d+)(?:E[+-]?\d+)?|&[HO][\dA-F]+)(?:U?[ILS]|[FRD])?/i,boolean:/\b(?:True|False|Nothing)\b/i,keyword:/\b(?:AddHandler|AddressOf|Alias|And(?:Also)?|As|Boolean|ByRef|Byte|ByVal|Call|Case|Catch|C(?:Bool|Byte|Char|Date|Dbl|Dec|Int|Lng|Obj|SByte|Short|Sng|Str|Type|UInt|ULng|UShort)|Char|Class|Const|Continue|Currency|Date|Decimal|Declare|Default|Delegate|Dim|DirectCast|Do|Double|Each|Else(?:If)?|End(?:If)?|Enum|Erase|Error|Event|Exit|Finally|For|Friend|Function|Get(?:Type|XMLNamespace)?|Global|GoSub|GoTo|Handles|If|Implements|Imports|In|Inherits|Integer|Interface|Is|IsNot|Let|Lib|Like|Long|Loop|Me|Mod|Module|Must(?:Inherit|Override)|My(?:Base|Class)|Namespace|Narrowing|New|Next|Not(?:Inheritable|Overridable)?|Object|Of|On|Operator|Option(?:al)?|Or(?:Else)?|Out|Overloads|Overridable|Overrides|ParamArray|Partial|Private|Property|Protected|Public|RaiseEvent|ReadOnly|ReDim|RemoveHandler|Resume|Return|SByte|Select|Set|Shadows|Shared|short|Single|Static|Step|Stop|String|Structure|Sub|SyncLock|Then|Throw|To|Try|TryCast|Type|TypeOf|U(?:Integer|Long|Short)|Using|Variant|Wend|When|While|Widening|With(?:Events)?|WriteOnly|Until|Xor)\b/i,operator:[/[+\-*/\\^<=>&#@$%!]/,{pattern:/([^\S\r\n])_(?=[^\S\r\n]*[\r\n])/,lookbehind:!0}],punctuation:/[{}().,:?]/},Prism.languages.vb=Prism.languages[`visual-basic`],Prism.languages.vba=Prism.languages[`visual-basic`],Prism.languages.sql={comment:{pattern:/(^|[^\\])(?:\/\*[\s\S]*?\*\/|(?:--|\/\/|#).*)/,lookbehind:!0},variable:[{pattern:/@(["'`])(?:\\[\s\S]|(?!\1)[^\\])+\1/,greedy:!0},/@[\w.$]+/],string:{pattern:/(^|[^@\\])("|')(?:\\[\s\S]|(?!\2)[^\\]|\2\2)*\2/,greedy:!0,lookbehind:!0},function:/\b(?:AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE)(?=\s*\()/i,keyword:/\b(?:ACTION|ADD|AFTER|ALGORITHM|ALL|ALTER|ANALYZE|ANY|APPLY|AS|ASC|AUTHORIZATION|AUTO_INCREMENT|BACKUP|BDB|BEGIN|BERKELEYDB|BIGINT|BINARY|BIT|BLOB|BOOL|BOOLEAN|BREAK|BROWSE|BTREE|BULK|BY|CALL|CASCADED?|CASE|CHAIN|CHAR(?:ACTER|SET)?|CHECK(?:POINT)?|CLOSE|CLUSTERED|COALESCE|COLLATE|COLUMNS?|COMMENT|COMMIT(?:TED)?|COMPUTE|CONNECT|CONSISTENT|CONSTRAINT|CONTAINS(?:TABLE)?|CONTINUE|CONVERT|CREATE|CROSS|CURRENT(?:_DATE|_TIME|_TIMESTAMP|_USER)?|CURSOR|CYCLE|DATA(?:BASES?)?|DATE(?:TIME)?|DAY|DBCC|DEALLOCATE|DEC|DECIMAL|DECLARE|DEFAULT|DEFINER|DELAYED|DELETE|DELIMITERS?|DENY|DESC|DESCRIBE|DETERMINISTIC|DISABLE|DISCARD|DISK|DISTINCT|DISTINCTROW|DISTRIBUTED|DO|DOUBLE|DROP|DUMMY|DUMP(?:FILE)?|DUPLICATE|ELSE(?:IF)?|ENABLE|ENCLOSED|END|ENGINE|ENUM|ERRLVL|ERRORS|ESCAPED?|EXCEPT|EXEC(?:UTE)?|EXISTS|EXIT|EXPLAIN|EXTENDED|FETCH|FIELDS|FILE|FILLFACTOR|FIRST|FIXED|FLOAT|FOLLOWING|FOR(?: EACH ROW)?|FORCE|FOREIGN|FREETEXT(?:TABLE)?|FROM|FULL|FUNCTION|GEOMETRY(?:COLLECTION)?|GLOBAL|GOTO|GRANT|GROUP|HANDLER|HASH|HAVING|HOLDLOCK|HOUR|IDENTITY(?:_INSERT|COL)?|IF|IGNORE|IMPORT|INDEX|INFILE|INNER|INNODB|INOUT|INSERT|INT|INTEGER|INTERSECT|INTERVAL|INTO|INVOKER|ISOLATION|ITERATE|JOIN|KEYS?|KILL|LANGUAGE|LAST|LEAVE|LEFT|LEVEL|LIMIT|LINENO|LINES|LINESTRING|LOAD|LOCAL|LOCK|LONG(?:BLOB|TEXT)|LOOP|MATCH(?:ED)?|MEDIUM(?:BLOB|INT|TEXT)|MERGE|MIDDLEINT|MINUTE|MODE|MODIFIES|MODIFY|MONTH|MULTI(?:LINESTRING|POINT|POLYGON)|NATIONAL|NATURAL|NCHAR|NEXT|NO|NONCLUSTERED|NULLIF|NUMERIC|OFF?|OFFSETS?|ON|OPEN(?:DATASOURCE|QUERY|ROWSET)?|OPTIMIZE|OPTION(?:ALLY)?|ORDER|OUT(?:ER|FILE)?|OVER|PARTIAL|PARTITION|PERCENT|PIVOT|PLAN|POINT|POLYGON|PRECEDING|PRECISION|PREPARE|PREV|PRIMARY|PRINT|PRIVILEGES|PROC(?:EDURE)?|PUBLIC|PURGE|QUICK|RAISERROR|READS?|REAL|RECONFIGURE|REFERENCES|RELEASE|RENAME|REPEAT(?:ABLE)?|REPLACE|REPLICATION|REQUIRE|RESIGNAL|RESTORE|RESTRICT|RETURN(?:S|ING)?|REVOKE|RIGHT|ROLLBACK|ROUTINE|ROW(?:COUNT|GUIDCOL|S)?|RTREE|RULE|SAVE(?:POINT)?|SCHEMA|SECOND|SELECT|SERIAL(?:IZABLE)?|SESSION(?:_USER)?|SET(?:USER)?|SHARE|SHOW|SHUTDOWN|SIMPLE|SMALLINT|SNAPSHOT|SOME|SONAME|SQL|START(?:ING)?|STATISTICS|STATUS|STRIPED|SYSTEM_USER|TABLES?|TABLESPACE|TEMP(?:ORARY|TABLE)?|TERMINATED|TEXT(?:SIZE)?|THEN|TIME(?:STAMP)?|TINY(?:BLOB|INT|TEXT)|TOP?|TRAN(?:SACTIONS?)?|TRIGGER|TRUNCATE|TSEQUAL|TYPES?|UNBOUNDED|UNCOMMITTED|UNDEFINED|UNION|UNIQUE|UNLOCK|UNPIVOT|UNSIGNED|UPDATE(?:TEXT)?|USAGE|USE|USER|USING|VALUES?|VAR(?:BINARY|CHAR|CHARACTER|YING)|VIEW|WAITFOR|WARNINGS|WHEN|WHERE|WHILE|WITH(?: ROLLUP|IN)?|WORK|WRITE(?:TEXT)?|YEAR)\b/i,boolean:/\b(?:TRUE|FALSE|NULL)\b/i,number:/\b0x[\da-f]+\b|\b\d+(?:\.\d*)?|\B\.\d+\b/i,operator:/[-+*\/=%^~]|&&?|\|\|?|!=?|<(?:=>?|<|>)?|>[>=]?|\b(?:AND|BETWEEN|DIV|IN|ILIKE|IS|LIKE|NOT|OR|REGEXP|RLIKE|SOUNDS LIKE|XOR)\b/i,punctuation:/[;[\]()`,.]/},function(e){e.languages.ruby=e.languages.extend(`clike`,{comment:[/#.*/,{pattern:/^=begin\s[\s\S]*?^=end/m,greedy:!0}],"class-name":{pattern:/(\b(?:class)\s+|\bcatch\s+\()[\w.\\]+/i,lookbehind:!0,inside:{punctuation:/[.\\]/}},keyword:/\b(?:alias|and|BEGIN|begin|break|case|class|def|define_method|defined|do|each|else|elsif|END|end|ensure|extend|for|if|in|include|module|new|next|nil|not|or|prepend|protected|private|public|raise|redo|require|rescue|retry|return|self|super|then|throw|undef|unless|until|when|while|yield)\b/});var t={pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:`tag`},rest:e.languages.ruby}};delete e.languages.ruby.function,e.languages.insertBefore(`ruby`,`keyword`,{regex:[{pattern:RegExp(`%r(?:`+[`([^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){function t(e){return e=e.replace(/<inner>/g,(function(){return`(?:\\\\.|[^\\\\\\n\\r]|(?:\\n|\\r\\n?)(?![\\r\\n]))`})),RegExp(`((?:^|[^\\\\])(?:\\\\{2})*)(?:`+e+`)`)}var n="(?:\\\\.|``(?:[^`\\r\\n]|`(?!`))+``|`[^`\\r\\n]+`|[^\\\\|\\r\\n`])+",r=`\\|?__(?:\\|__)+\\|?(?:(?:\\n|\\r\\n?)|(?![\\s\\S]))`.replace(/__/g,(function(){return n})),i=`\\|?[ \\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(`^`+r+i+`(?:`+r+`)*`,`m`),inside:{"table-data-rows":{pattern:RegExp(`^(`+r+i+`)(?:`+r+`)*$`),lookbehind:!0,inside:{"table-data":{pattern:RegExp(n),inside:e.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp(`^(`+r+`)`+i+`$`),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp(`^`+r+`$`),inside:{"table-header":{pattern:RegExp(n),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:t(`\\b__(?:(?!_)<inner>|_(?:(?!_)<inner>)+_)+__\\b|\\*\\*(?:(?!\\*)<inner>|\\*(?:(?!\\*)<inner>)+\\*)+\\*\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:t(`\\b_(?:(?!_)<inner>|__(?:(?!_)<inner>)+__)+_\\b|\\*(?:(?!\\*)<inner>|\\*\\*(?:(?!\\*)<inner>)+\\*\\*)+\\*`),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:t(`(~~?)(?:(?!~)<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:t(`!?\\[(?:(?!\\])<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 c=t.classes[r],l=/language-(.+)/.exec(c);if(l){n=l[1];break}}var u=e.languages[n];if(u)t.content=e.highlight(function(e){return e.replace(a,``).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)),s(n)):o[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 a=RegExp(e.languages.markup.tag.pattern.source,`gi`),o={amp:`&`,lt:`<`,gt:`>`,quot:`"`},s=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(/&lt;/g,`<`).replace(/&amp;/g,`&`),e.content=Prism.highlight(e.content,{expression:{pattern:n,lookbehind:!0,inside:Prism.languages.groovy}}),e.classes.push(t===`/`?`regex`:`gstring`)}}}));var DCe=`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 c9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+c9(t)}),0)}var l9,OCe=u5.String,u9=function(e){if(x7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return OCe(e)},d9=function(){var e=W5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},f9=u5.RegExp,p9=A5((function(){var e=f9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),kCe=p9||A5((function(){return!f9(`a`,`y`).sticky})),m9={BROKEN_CARET:p9||A5((function(){var e=f9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:kCe,UNSUPPORTED_Y:p9},ACe=z5?Object.defineProperties:function(e,t){W5(e);for(var n,r=q7(t),i=r9(t),a=i.length,o=0;a>o;)e7.f(e,n=i[o++],r[n]);return e},jCe=C5(`document`,`documentElement`),h9=l7(`IE_PROTO`),g9=function(){},_9=function(e){return`<script>`+e+`<\/script>`},v9=function(e){e.write(_9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},y9=function(){try{l9=new ActiveXObject(`htmlfile`)}catch{}var e,t;y9=typeof document<`u`?document.domain&&l9?v9(l9):((t=H5(`iframe`)).style.display=`none`,jCe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(_9(`document.F=Object`)),e.close(),e.F):v9(l9);for(var n=$7.length;n--;)delete y9.prototype[$7[n]];return y9()};u7[h9]=!0;var b9,x9,MCe=Object.create||function(e,t){var n;return e===null?n=y9():(g9.prototype=W5(e),n=new g9,g9.prototype=null,n[h9]=e),t===void 0?n:ACe(n,t)},NCe=u5.RegExp,PCe=A5((function(){var e=NCe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),FCe=u5.RegExp,ICe=A5((function(){var e=FCe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),LCe=h7.get,RCe=p5(`native-string-replace`,String.prototype.replace),S9=RegExp.prototype.exec,C9=S9,zCe=_5(``.charAt),BCe=_5(``.indexOf),VCe=_5(``.replace),w9=_5(``.slice),T9=(x9=/b*/g,K5(S9,b9=/a/,`a`),K5(S9,x9,`a`),b9.lastIndex!==0||x9.lastIndex!==0),E9=m9.BROKEN_CARET,D9=/()??/.exec(``)[1]!==void 0;(T9||D9||E9||PCe||ICe)&&(C9=function(e){var t,n,r,i,a,o,s,c=this,l=LCe(c),u=u9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=K5(C9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=E9&&c.sticky,m=K5(d9,c),h=c.source,g=0,_=u;if(p&&(m=VCe(m,`y`,``),BCe(m,`g`)===-1&&(m+=`g`),_=w9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&zCe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),D9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),T9&&(r=c.lastIndex),i=K5(S9,p?n:c,_),p?i?(i.input=w9(i.input,g),i[0]=w9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:T9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),D9&&i&&i.length>1&&K5(RCe,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=MCe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var O9=C9;n9({target:`RegExp`,proto:!0,forced:/./.exec!==O9},{exec:O9});var k9=Function.prototype,A9=k9.apply,HCe=k9.bind,j9=k9.call,UCe=typeof Reflect==`object`&&Reflect.apply||(HCe?j9.bind(A9):function(){return j9.apply(A9,arguments)}),WCe=I5(`species`),M9=RegExp.prototype,GCe=I5(`match`),KCe=u5.TypeError,qCe=I5(`species`),JCe=_5(``.charAt),N9=_5(``.charCodeAt),YCe=_5(``.slice),XCe=function(e){return function(t,n){var r,i,a=u9(v5(t)),o=k7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=N9(a,o))<55296||r>56319||o+1===s||(i=N9(a,o+1))<56320||i>57343?e?JCe(a,o):r:e?YCe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),ZCe=function(e,t,n){return t+(n?XCe(e,t).length:1)},QCe=u5.Array,$Ce=Math.max,P9=function(e,t,n){for(var r,i,a,o,s=j7(e),c=X7(t,s),l=X7(n===void 0?s:n,s),u=QCe($Ce(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=Q5(i))in r?e7.f(r,o,t7(0,a)):r[o]=a;return u.length=d,u},ewe=u5.TypeError,F9=function(e,t){var n=e.exec;if(S5(n)){var r=K5(n,e,t);return r!==null&&W5(r),r}if(b7(e)===`RegExp`)return K5(O9,e,t);throw ewe(`RegExp#exec called on incompatible receiver`)},I9=m9.UNSUPPORTED_Y,twe=Math.min,L9=[].push,nwe=_5(/./.exec),R9=_5(L9),z9=_5(``.slice);(function(e,t,n,r){var i=I5(e),a=!A5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!A5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[WCe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=_5(/./[i]),c=function(e,t,n){var r;return r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=u9(v5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!B5(r=e)||!((i=r[GCe])===void 0?b7(r)==`RegExp`:i))return K5(t,a,e,o);for(var s,c,l,u=[],d=(e.ignoreCase?`i`:``)+(e.multiline?`m`:``)+(e.unicode?`u`:``)+(e.sticky?`y`:``),f=0,p=new RegExp(e.source,d+`g`);(s=K5(O9,p,a))&&!((c=p.lastIndex)>f&&(R9(u,z9(a,f,s.index)),s.length>1&&s.index<a.length&&UCe(L9,u,P9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&nwe(p,``)||R9(u,``):R9(u,z9(a,f)),u.length>o?P9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:K5(t,this,e,n)}:t,[function(t,n){var i=v5(this),a=t==null?void 0:Z5(t,e);return a?K5(a,t,i,n):K5(r,u9(i),t,n)},function(e,i){var a=W5(this),o=u9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=W5(e).constructor;return r===void 0||(n=W5(r)[qCe])==null?t:function(e){if(L7(e))return e;throw KCe(Y5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(I9?`g`:`y`),d=new c(I9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return F9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=I9?0:m;var g,_=F9(d,I9?z9(o,m):o);if(_===null||(g=twe(A7(d.lastIndex+(I9?m:0)),o.length))===p)m=ZCe(o,m,l);else{if(R9(h,z9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(R9(h,_[v]),h.length===f)return h;m=p=g}}return R9(h,z9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=_5(e),c=t.exec;return c===O9||c===M9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));y7(String.prototype,e,c[0]),y7(M9,i,c[1])}r&&n7(M9[i],`sham`,!0)})(`split`,0,!!A5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),I9),n9({global:!0},{globalThis:u5}),Gh&&(q.fn.attr=Gh);var rwe=v7.PROPER,B9=RegExp.prototype,V9=B9.toString,iwe=_5(d9),awe=A5((function(){return V9.call({source:`a`,flags:`b`})!=`/a/b`})),owe=rwe&&V9.name!=`toString`;(awe||owe)&&y7(RegExp.prototype,`toString`,(function(){var e=W5(this),t=u9(e.source),n=e.flags;return`/`+t+`/`+u9(n===void 0&&q5(B9,e)&&!(`flags`in B9)?iwe(e):n)}),{unsafe:!0});var swe=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||!B.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()};K.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 B.isElement(n)&&n.type===`pre`?t:null},e}(),H9={renderStyle:function(e,t){var n=e,r=t,i=``;return DCe.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=q(e);if(!B.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 swe},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>`}}]},cwe=/"/g,lwe=_5(``.replace);n9({target:`String`,proto:!0,forced:A5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=u9(v5(this)),r=`<a`,(r+=` name="`+lwe(u9(t),cwe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var U9=function(e){var t,n,r,i=function(e,t){var n=typeof Symbol==`function`&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(t===void 0||t-->0)&&!(r=a.next()).done;)o.push(r.value)}catch(e){i={error:e}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}(e,2),a=i[0],o=i[1],s=[],c=function(e){if(!G.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=s9.languages[t];return n?s9.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+c9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},W9=function(){return W9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W9.apply(this,arguments)},G9=function(){function e(){throw Error(`不能实例化
Can not construct a instance`)}return e.setEditorConfig=function(e){e===void 0&&(e={}),this.editorConfig=W9(W9({},this.editorConfig),e)},e.setSimpleEditorConfig=function(e){e===void 0&&(e={}),this.simpleEditorConfig=W9(W9({},this.simpleEditorConfig),e)},e.setToolbarConfig=function(e){e===void 0&&(e={}),this.toolbarConfig=W9(W9({},this.toolbarConfig),e)},e.setSimpleToolbarConfig=function(e){e===void 0&&(e={}),this.simpleToolbarConfig=W9(W9({},this.simpleToolbarConfig),e)},e.registerPlugin=function(e){this.plugins.push(e)},e.registerMenu=function(e,t){(function(e,t){var n=e.key,r=e.factory,i=e.config,a=Sw(Sw({},i),t||{});if(dE[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);dE[n]=r,function(e,t){t!=null&&(uE[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type;ok[t||``]=e.renderElem})(e)},e.registerRenderStyle=function(e){(function(e){ak.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type;_E[t||``]=e.elemToHtml})(e)},e.registerStyleToHtml=function(e){(function(e){gE.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){XD.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;QD[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){ZD.push(e)})(e)},e.registerModule=function(e){K9(e)},e.editorConfig={},e.simpleEditorConfig={},e.toolbarConfig={},e.simpleToolbarConfig={},e.plugins=[],e}();function K9(e){var t=e.menus,n=e.renderElems,r=e.renderStyle,i=e.elemsToHtml,a=e.styleToHtml,o=e.preParseHtml,s=e.parseElemsHtml,c=e.parseStyleHtml,l=e.editorPlugin;t&&t.forEach((function(e){return G9.registerMenu(e)})),n&&n.forEach((function(e){return G9.registerRenderElem(e)})),r&&G9.registerRenderStyle(r),i&&i.forEach((function(e){return G9.registerElemToHtml(e)})),a&&G9.registerStyleToHtml(a),o&&o.forEach((function(e){return G9.registerPreParseHtml(e)})),s&&s.forEach((function(e){return G9.registerParseElemHtml(e)})),c&&G9.registerParseStyleHtml(c),l&&G9.registerPlugin(l)}mB.forEach((function(e){return K9(e)})),K9(MK),K9(wge),K9(Mye),K9(xSe),K9(H9);var q9=`<svg viewBox="0 0 1024 1024"><path d="M959.877 128l0.123 0.123v767.775l-0.123 0.122H64.102l-0.122-0.122V128.123l0.122-0.123h895.775zM960 64H64C28.795 64 0 92.795 0 128v768c0 35.205 28.795 64 64 64h896c35.205 0 64-28.795 64-64V128c0-35.205-28.795-64-64-64zM832 288.01c0 53.023-42.988 96.01-96.01 96.01s-96.01-42.987-96.01-96.01S682.967 192 735.99 192 832 234.988 832 288.01zM896 832H128V704l224.01-384 256 320h64l224.01-192z"></path></svg>`,J9={link:{menuKeys:[`editLink`,`unLink`,`viewLink`]},image:{menuKeys:[`imageWidth30`,`imageWidth50`,`imageWidth100`,`editImage`,`viewImageLink`,`deleteImage`]},pre:{menuKeys:[`enter`,`codeBlock`,`codeSelectLang`]},table:{menuKeys:[`enter`,`tableHeader`,`tableFullWidth`,`insertTableRow`,`deleteTableRow`,`insertTableCol`,`deleteTableCol`,`deleteTable`]},divider:{menuKeys:[`enter`]},video:{menuKeys:[`enter`,`editVideoSize`]}},uwe={hoverbarKeys:W9(W9({},J9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};G9.setEditorConfig(W9(W9({},uwe),{decorate:U9}));var dwe={hoverbarKeys:J9};G9.setSimpleEditorConfig(W9(W9({},dwe),{decorate:U9}));var fwe={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:q9,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`]};G9.setToolbarConfig(fwe);var pwe={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:q9,menuKeys:[`insertImage`,`uploadImage`]},`insertVideo`,`insertTable`,`codeBlock`,`|`,`undo`,`redo`,`|`,`fullScreen`]};function mwe(e){e===void 0&&(e={});var t=e.selector,n=t===void 0?``:t,r=e.content,i=r===void 0?[]:r,a=e.html,o=e.config,s=o===void 0?{}:o,c=e.mode,l=(c===void 0?`default`:c)===`simple`?G9.simpleEditorConfig:G9.editorConfig,u=W9(W9({},l.hoverbarKeys||{}),s.hoverbarKeys||{});return Aue({selector:n,config:W9(W9(W9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:G9.plugins})}function hwe(e){var t=e.selector,n=e.editor,r=e.config,i=r===void 0?{}:r,a=e.mode,o=a===void 0?`default`:a;if(!t)throw Error(`Cannot find 'selector' when create toolbar`);var s=o===`simple`?G9.simpleToolbarConfig:G9.toolbarConfig;return function(e,t){if(e==null)throw Error(`Cannot create toolbar, because editor is null`);var n=t.selector,r=t.config,i=r===void 0?{}:r;if(function(e,t){return kO(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Fue(n,Sw({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return bT.set(a,e),xT.set(e,a),a}(n,{selector:t,config:W9(W9({},s),i)})}G9.setSimpleToolbarConfig(pwe);var Y9=function(){return Y9=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},Y9.apply(this,arguments)};function X9(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 gwe(e){var t=e.defaultContent,n=t===void 0?[]:t,r=e.onCreated,i=e.defaultHtml,a=i===void 0?``:i,o=e.value,s=o===void 0?``:o,c=e.onChange,l=e.defaultConfig,u=l===void 0?{}:l,d=e.mode,f=d===void 0?`default`:d,p=e.style,m=p===void 0?{}:p,h=e.className,g=(0,R.useRef)(null),_=X9((0,R.useState)(null),2),v=_[0],y=_[1],b=X9((0,R.useState)(``),2),x=b[0],S=b[1],C=function(e){r&&r(e);var t=u.onCreated;t&&t(e)},w=function(e){S(e.getHtml()),c&&c(e);var t=u.onChange;t&&t(e)},T=function(e){var t=u.onDestroyed;y(null),t&&t(e)};return(0,R.useEffect)((function(){if(v!=null&&s!==x)try{v.setHtml(s)}catch(e){console.error(e)}}),[s]),(0,R.useEffect)((function(){g.current!=null&&v==null&&!g.current?.getAttribute(`data-w-e-textarea`)&&y(mwe({selector:g.current,config:Y9(Y9({},u),{onCreated:C,onChange:w,onDestroyed:T}),content:n,html:a||s,mode:f}))}),[v]),R.createElement(`div`,{style:m,ref:g,className:h})}function _we(e){var t=e.editor,n=e.defaultConfig,r=n===void 0?{}:n,i=e.mode,a=i===void 0?`default`:i,o=e.style,s=o===void 0?{}:o,c=e.className,l=(0,R.useRef)(null);return(0,R.useEffect)((function(){l.current!=null&&t!=null&&hwe({editor:t,selector:l.current,config:r,mode:a})}),[t]),R.createElement(`div`,{style:s,ref:l,className:c})}var vwe=({value:e,onChange:t,disabled:n=!1,height:r=400,placeholder:i,groupId:a=0,maxSize:o=5})=>{let{t:s}=jt(),{token:c}=At.useToken(),[l,u]=(0,R.useState)(null),d=(0,R.useCallback)(async(e,t)=>{if(!e.type.startsWith(`image/`)){Dt.error(s(`xin.form.richText.error.notImage`));return}if(e.size/1024/1024>o){Dt.error(s(`xin.form.richText.error.sizeExceeded`,{maxSize:o}));return}try{let n=(await Mt(e,a)).data.data;t(n.preview_url||n.file_url||``,n.file_name||``,``)}catch{Dt.error(s(`xin.form.richText.error.uploadFailed`))}},[s,a,o]),f=(0,R.useMemo)(()=>({toolbarKeys:`headerSelect.blockquote.|.bold.underline.italic.through.|.color.bgColor.|.bulletedList.numberedList.todo.|.justifyLeft.justifyCenter.justifyRight.|.insertLink.uploadImage.insertTable.|.undo.redo.fullScreen`.split(`.`)}),[]),p=(0,R.useMemo)(()=>({placeholder:i,MENU_CONF:{uploadImage:{customUpload:d,allowedFileTypes:[`image/*`],maxFileSize:o*1024*1024,base64LimitSize:0}}}),[i,d,o]);return(0,R.useEffect)(()=>{l!=null&&(n?l.disable():l.enable())},[l,n]),(0,R.useEffect)(()=>()=>{l!=null&&(l.destroy(),u(null))},[l]),(0,z.jsxs)(`div`,{style:{border:`1px solid ${c.colorBorder}`,borderRadius:c.borderRadius,overflow:`hidden`},children:[!n&&(0,z.jsx)(_we,{editor:l,defaultConfig:f,mode:`default`,style:{borderBottom:`1px solid ${c.colorBorder}`}}),(0,z.jsx)(gwe,{defaultConfig:p,value:e,onCreated:u,onChange:e=>t?.(e.getHtml()),mode:`default`,style:{height:r,overflowY:`hidden`,background:n?c.colorBgLayout:void 0}})]})};function Z9(e,t,n){return xe({url:e,method:`get`,params:t,...n||{}})}function ywe(e,t,n){return xe({url:e,method:`post`,data:t,...n||{}})}function bwe(e,t,n){return xe({url:e,method:`put`,data:t,...n||{}})}function xwe(e,t,n){return xe({url:e,method:`delete`,params:t,...n||{}})}var Q9=({value:e,onChange:t,mode:n=`single`,placeholder:r,disabled:i=!1,readonly:a=!1,showDept:o=!0,maxTagCount:s=2})=>{let{t:c}=jt(),[l,u]=(0,R.useState)(!1),[d,f]=(0,R.useState)(!1),[p,m]=(0,R.useState)([]),[h,g]=(0,R.useState)([]),[_,v]=(0,R.useState)(!1),[y,b]=(0,R.useState)([]),[x,S]=(0,R.useState)({current:1,pageSize:10,total:0}),[C,w]=(0,R.useState)();(0,R.useEffect)(()=>{if(!e){m([]),g([]);return}let t=Array.isArray(e)?e:[e];if(typeof t[0]==`object`){m(t),g(t.map(e=>e.id));return}f(!0),Promise.all(t.map(e=>Z9(`/sys-user/list`,{id:e}))).then(e=>{let t=e.map(e=>e.data.data?.data?.[0]).filter(Boolean);m(t),g(t.map(e=>e.id))}).catch(e=>console.error(`Failed to load users:`,e)).finally(()=>f(!1))},[e]);let T=(0,R.useMemo)(()=>[{title:c(`system.user.id`),dataIndex:`id`,width:80,align:`center`},{title:c(`system.user.username`),dataIndex:`username`,width:120,align:`center`},{title:c(`system.user.nickname`),dataIndex:`nickname`,width:120,align:`center`},{title:c(`system.user.mobile`),dataIndex:`mobile`,width:130,align:`center`},...o?[{title:c(`system.user.dept`),dataIndex:`dept_name`,width:120,align:`center`,render:e=>e?(0,z.jsx)(kt,{color:`volcano`,children:e}):`-`}]:[],{title:c(`system.user.status`),dataIndex:`status`,width:100,align:`center`,render:e=>e===1?(0,z.jsx)(kt,{color:`success`,children:c(`system.user.status.1`)}):(0,z.jsx)(kt,{color:`error`,children:c(`system.user.status.0`)})}],[c,o]),E=(0,R.useCallback)(()=>{t?.(n===`single`?p[0]?.id||null:p.map(e=>e.id)),u(!1)},[n,p,t]),D=(0,R.useCallback)((e,t)=>{if(n===`single`&&e.length>1){let n=e[e.length-1],r=t.find(e=>e.id===n);g([n]),m([r])}else g(e),m(t)},[n]),O=(0,R.useCallback)(async(e=1,t=10,n)=>{v(!0);try{let r=await Z9(`/system-user/list`,{page:e,pageSize:t,keywordSearch:n});b(r.data.data?.data||[]),S(n=>({...n,current:e,pageSize:t,total:r.data.data?.total||0}))}catch(e){console.error(`Failed to fetch users:`,e),b([])}finally{v(!1)}},[]);(0,R.useEffect)(()=>{l&&O(1,x.pageSize,C?.keywordSearch)},[l]);let k=(0,R.useMemo)(()=>({columns:T,rowKey:`id`,dataSource:y,loading:_,rowSelection:{type:n===`single`?`radio`:`checkbox`,selectedRowKeys:h,onChange:D,preserveSelectedRowKeys:!0},pagination:{...x,showSizeChanger:!0,showQuickJumper:!0,onChange:(e,t)=>{O(e,t,C?.keywordSearch)}},bordered:!0,size:`small`,scroll:{x:800}}),[T,y,_,n,h,D,x,C,O]),A=(0,R.useCallback)(e=>{n===`single`?(!p.find(t=>t.id===e)&&e&&Z9(`/sys-user/list`,{id:e}).then(e=>{let t=e.data.data?.data?.[0];t&&(m([t]),g([t.id]))}).catch(e=>console.error(`Failed to load user:`,e)),t?.(e||null)):t?.(e)},[n,p,t]),j=(0,R.useMemo)(()=>p.map(e=>({label:e.nickname||e.username,value:e.id})),[p]);return(0,z.jsxs)(z.Fragment,{children:[(0,z.jsx)(pt,{mode:n===`multiple`?`multiple`:void 0,value:n===`single`?p[0]?.id||void 0:p.map(e=>e.id),onChange:A,placeholder:r||c(`xin.form.userSelector.placeholder`),disabled:i,loading:d,maxTagCount:s,open:!1,onClick:()=>!i&&!a&&u(!0),options:j,style:{width:`100%`},allowClear:!0,onClear:()=>{m([]),g([]),t?.(n===`single`?null:[])}}),(0,z.jsxs)(Ct,{title:c(`xin.form.userSelector.modal.title`),open:l,onCancel:()=>u(!1),onOk:E,width:1e3,okText:c(`xin.form.userSelector.modal.okText`),cancelText:c(`xin.form.userSelector.modal.cancelText`),children:[(0,z.jsx)(`div`,{style:{marginBottom:16},children:(0,z.jsx)(Et.Search,{placeholder:c(`system.user.searchPlaceholder`),style:{width:304},onSearch:e=>{w({keywordSearch:e}),O(1,x.pageSize,e)},allowClear:!0})}),(0,z.jsx)(Ge,{...k})]})]})},{TextArea:Swe,Password:Cwe}=Et,{RangePicker:wwe}=Bi;function $9(e){let{valueType:t,...n}=e,r;switch(t){case`password`:r=(0,z.jsx)(Cwe,{...n});break;case`textarea`:r=(0,z.jsx)(Swe,{rows:4,...n});break;case`digit`:r=(0,z.jsx)(Se,{style:{width:`100%`},...n});break;case`money`:r=(0,z.jsx)(Se,{style:{width:`100%`},precision:2,prefix:`¥`,...n});break;case`select`:r=(0,z.jsx)(pt,{...n});break;case`treeSelect`:r=(0,z.jsx)(ya,{...n});break;case`cascader`:r=(0,z.jsx)(ki,{...n});break;case`radio`:r=(0,z.jsx)(gt.Group,{options:[],optionType:`default`,...n});break;case`radioButton`:r=(0,z.jsx)(gt.Group,{options:[],optionType:`button`,...n});break;case`checkbox`:r=(0,z.jsx)(yt.Group,{options:[],...n});break;case`switch`:r=(0,z.jsx)(Ot,{...n});break;case`rate`:r=(0,z.jsx)(Rte,{...n});break;case`slider`:r=(0,z.jsx)(St,{...n});break;case`date`:r=(0,z.jsx)(Bi,{style:{width:`100%`},...n});break;case`dateTime`:r=(0,z.jsx)(Bi,{style:{width:`100%`},showTime:!0,...n});break;case`dateRange`:r=(0,z.jsx)(wwe,{style:{width:`100%`},...n});break;case`time`:r=(0,z.jsx)(qi,{style:{width:`100%`},...n});break;case`timeRange`:r=(0,z.jsx)(qi.RangePicker,{style:{width:`100%`},...n});break;case`week`:r=(0,z.jsx)(Bi,{style:{width:`100%`},picker:`week`,...n});break;case`month`:r=(0,z.jsx)(Bi,{style:{width:`100%`},picker:`month`,...n});break;case`quarter`:r=(0,z.jsx)(Bi,{style:{width:`100%`},picker:`quarter`,...n});break;case`year`:r=(0,z.jsx)(Bi,{style:{width:`100%`},picker:`year`,...n});break;case`color`:r=(0,z.jsx)(Ae,{...n});break;case`image`:r=(0,z.jsx)(Nt,{...n});break;case`richText`:r=(0,z.jsx)(vwe,{...n});break;case`icon`:r=(0,z.jsx)(xa,{...n});break;case`user`:r=(0,z.jsx)(Q9,{...n});break;default:r=(0,z.jsx)(Et,{...n});break}return r}var Twe=ke();function Ewe(e){let{columns:t,layoutType:n=`Form`,grid:r=!1,rowProps:i,colProps:a={span:12},onFinish:o,formRef:s,form:c,modalProps:l,drawerProps:u,trigger:d,submitter:f,...p}=e,{t:m}=jt(),[h]=Tt.useForm(c),[g,_]=(0,R.useState)(!1),[v,y]=(0,R.useState)(!1);(0,R.useImperativeHandle)(s,()=>({...h,open:x,close:S,isOpen:()=>g,setLoading:e=>y(e)}));let b=(0,R.useCallback)(async e=>{if(o)try{y(!0),await o(e)!==!1&&(n===`ModalForm`||n===`DrawerForm`)&&_(!1)}finally{y(!1)}},[o,n]),x=()=>_(!0),S=()=>_(!1),C=(0,R.useCallback)((e,t)=>{let{dataIndex:n,valueType:i,title:o=``,fieldProps:s={},dependency:c,fieldRender:l,colProps:u={span:12}}=e,d=(0,Twe.pick)(e,`colon.extra.getValueFromEvent.help.hidden.htmlFor.initialValue.name.normalize.noStyle.preserve.tooltip.trigger.required.rules.validateFirst.validateDebounce.validateStatus.hasFeedback.validateTrigger.valuePropName.messageVariables.wrapperCol.layout.label.labelAlign.labelCol`.split(`.`)),f=String(n)||`form-item-${t}`;if(c)return(0,z.jsx)(Tt.Item,{noStyle:!0,shouldUpdate:!0,children:({getFieldsValue:t})=>{let p=t();if(c.visible&&!c.visible(p))return null;let m=c.disabled?c.disabled(p):!1,g=c.fieldProps?c.fieldProps(p):{},_={...s,...g,disabled:m||s?.disabled},v=(0,z.jsx)($9,{valueType:i,placeholder:o,..._});return r?(0,R.createElement)(bt,{...a,...u,key:f},(0,z.jsx)(Tt.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)):(0,z.jsx)(Tt.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)}});{let t=(0,z.jsx)($9,{valueType:i,placeholder:o,...s});return r?(0,R.createElement)(bt,{...a,...u,key:f},(0,z.jsx)(Tt.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)):(0,z.jsx)(Tt.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)}},[r,c]),w=(0,R.useMemo)(()=>{if(f?.render===!1)return null;let e={submit:(0,z.jsx)(nt,{type:`primary`,loading:v,onClick:()=>h.submit(),...f?.submitButtonProps,children:f?.submitText||m(`xin.form.submit`)}),close:(0,z.jsx)(nt,{loading:v,onClick:S,...f?.closeButtonProps,children:f?.closeText||m(`xin.form.cancel`)}),reset:(0,z.jsx)(nt,{loading:v,onClick:()=>h.resetFields(),...f?.resetButtonProps,children:f?.resetText||m(`xin.form.reset`)})};return typeof f?.render==`function`?f.render(e,s):n===`Form`?(0,z.jsx)(Tt.Item,{children:(0,z.jsxs)(Ke,{children:[e.reset,e.submit]})}):(0,z.jsxs)(Ke,{children:[e.reset,e.submit,e.close]})},[v,c,f,m]),T=(0,R.useMemo)(()=>(0,z.jsxs)(Tt,{...p,form:h,onFinish:b,children:[r?(0,z.jsx)(xt,{...i,children:t.map((e,t)=>C(e,t))}):t.map((e,t)=>C(e,t)),n===`Form`&&w]}),[c,b,e,r,i,t,C,n,w]),E=(0,R.useMemo)(()=>d?R.cloneElement(d,{onClick:x}):null,[d,x]);return n===`ModalForm`?(0,z.jsxs)(z.Fragment,{children:[E,(0,z.jsx)(Ct,{open:g,onCancel:S,footer:w,...l,children:T})]}):n===`DrawerForm`?(0,z.jsxs)(z.Fragment,{children:[E,(0,z.jsx)(Ce,{open:g,onClose:S,footer:w,...u,children:T})]}):T}export{xwe as a,xa as c,ywe as i,ya as l,$9 as n,Z9 as o,Q9 as r,bwe as s,Ewe as t,Bi as u};