Files
xin-procurement/public/assets/XinForm-BVjxA6JJ.js
T
2026-09-16 23:53:05 +08:00

98 lines
935 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{o as e,r as t,t as n}from"./request-DWqS4XYU.js";import{$ as r,$n as i,B as a,Bn as o,Cr as s,Ct as c,E as l,Er as u,Gn as d,Gt as f,Hn as p,Jn as m,K as h,Kt as g,Ln as _,N as v,Or as y,Ot as b,Pr as x,Q as S,Qn as C,Tr as w,Un as T,V as E,Wn as D,Xt as O,Z as k,Zn as A,_n as j,ar as M,at as N,br as P,cr as F,d as I,dr as ee,en as te,gt as ne,jr as L,jt as re,kr as ie,kt as ae,nn as R,nr as oe,nt as se,p as ce,pt as le,q as ue,qt as de,rn as fe,rr as pe,t as me,tn as he,u as ge,ut as _e,wn as ve,wt as ye,xr as be,yt as xe,z as Se}from"./jsx-runtime-Dk2XcqH2.js";import{f as Ce,l as we,m as Te,p as Ee,t as De,u as Oe,y as ke}from"./tooltip-Up9y7xD6.js";import{a as Ae,c as je,i as Me,l as Ne,o as Pe,r as Fe,s as Ie,t as Le}from"./table-koANj7dJ.js";import{t as Re}from"./space-DZlFkFGY.js";import{c as ze,d as Be,f as Ve,i as He,m as Ue,p as We,u as Ge}from"./style-DRVsp3wL.js";import{r as Ke}from"./es-Hs1QDgUQ.js";import{n as qe,t as Je}from"./button-CdrnzceP.js";import{n as Ye,t as Xe}from"./LeftOutlined-fCZD1YMc.js";import{t as Ze}from"./PurePanel-CtSxByIz.js";import{n as Qe}from"./LockOutlined-CXWTaKH6.js";import{t as $e}from"./radio-JieCfzXM.js";import{n as et}from"./card-CAlqEh_K.js";import{n as tt,t as nt}from"./checkbox-BInXsQR0.js";import{n as rt,t as it}from"./row-O-YRtaDs.js";import{t as at}from"./form-DhDb91Ug.js";import{t as ot}from"./input-DXwsBeeJ.js";import{t as st}from"./tag-Dh4xJ3v_.js";import{t as ct}from"./useTranslation-BktiQivz.js";import{Bt as lt,Ft as ut,It as dt,Jt as ft,Kt as pt,Lt as mt,Pt as ht,Qt as gt,Rt as _t,St as vt,Tt as yt,Xt as bt,Yt as xt,Zt as St,a as Ct,bt as wt,i as Tt,lt as Et,nn as Dt,qt as Ot,r as kt,tn as At,wt as jt,zt as Mt}from"./index-kOY0oRfZ.js";import{m as Nt,t as Pt}from"./ImageUploader-CtnAIrrB.js";var 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_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`)}}}))})),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_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)}}}))})),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_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)}}}))})),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_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}}}))})),zt=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)}}}))})),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_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)}}}))})),z=e(x()),Bt=e(Qe()),tee=e(Ft()),nee=e(It()),ree=e(Lt()),iee=e(Rt()),aee=e(zt()),oee=e(eee());Bt.default.extend(oee.default),Bt.default.extend(aee.default),Bt.default.extend(tee.default),Bt.default.extend(nee.default),Bt.default.extend(ree.default),Bt.default.extend(iee.default),Bt.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 see={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`},Vt=e=>see[e]||e.split(`_`)[0],Ht=e=>!Bt.default.isDayjs(e)||e instanceof Bt.default?e:(0,Bt.default)(e.valueOf()),Ut={getNow:()=>{let e=(0,Bt.default)();return typeof e.tz==`function`?e.tz():e},getFixedDate:e=>(0,Bt.default)(e,[`YYYY-M-DD`,`YYYY-MM-DD`]),getEndDate:e=>Ht(e).endOf(`month`),getWeekDay:e=>{let t=Ht(e).locale(`en`);return t.weekday()+t.localeData().firstDayOfWeek()},getYear:e=>Ht(e).year(),getMonth:e=>Ht(e).month(),getDate:e=>Ht(e).date(),getHour:e=>Ht(e).hour(),getMinute:e=>Ht(e).minute(),getSecond:e=>Ht(e).second(),getMillisecond:e=>Ht(e).millisecond(),addYear:(e,t)=>Ht(e).add(t,`year`),addMonth:(e,t)=>Ht(e).add(t,`month`),addDate:(e,t)=>Ht(e).add(t,`day`),setYear:(e,t)=>Ht(e).year(t),setMonth:(e,t)=>Ht(e).month(t),setDate:(e,t)=>Ht(e).date(t),setHour:(e,t)=>Ht(e).hour(t),setMinute:(e,t)=>Ht(e).minute(t),setSecond:(e,t)=>Ht(e).second(t),setMillisecond:(e,t)=>Ht(e).millisecond(t),isAfter:(e,t)=>Ht(e).isAfter(Ht(t)),isValidate:e=>Ht(e).isValid(),locale:{getWeekFirstDay:e=>(0,Bt.default)().locale(Vt(e)).localeData().firstDayOfWeek(),getWeekFirstDate:(e,t)=>Ht(t).locale(Vt(e)).weekday(0),getWeek:(e,t)=>Ht(t).locale(Vt(e)).week(),getShortWeekDays:e=>(0,Bt.default)().locale(Vt(e)).localeData().weekdaysMin(),getShortMonths:e=>(0,Bt.default)().locale(Vt(e)).localeData().monthsShort(),format:(e,t,n)=>Ht(t).locale(Vt(e)).format(n),parse:(e,t,n)=>{let r=Vt(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,Bt.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,Bt.default)(a,i,!0).locale(r);if(o.isValid())return o}return null}}};function cee(e,t){return e===void 0?t?`bottomRight`:`bottomLeft`:e}var Wt=z.createContext(null),lee={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 Gt({popupElement:e,popupStyle:t,popupClassName:n,popupAlign:r,transitionName:i,getPopupContainer:a,children:o,range:s,placement:c,builtinPlacements:l=lee,direction:u,visible:d,onClose:f}){let{prefixCls:p}=z.useContext(Wt),m=`${p}-dropdown`,h=cee(c,u===`rtl`);return z.createElement(_e,{showAction:[],hideAction:[`click`],popupPlacement:h,builtinPlacements:l,prefixCls:m,popupMotion:{motionName:i},popup:e,popupAlign:r,popupVisible:d,popupClassName:D(n,{[`${m}-range`]:s,[`${m}-rtl`]:u===`rtl`}),popupStyle:t,stretch:`minWidth`,getPopupContainer:a,onPopupVisibleChange:e=>{e||f()}},o)}function Kt(e,t,n=`0`){let r=String(e);for(;r.length<t;)r=`${n}${r}`;return r}function qt(e){return e==null?[]:Array.isArray(e)?e:[e]}function Jt(e,t,n){let r=[...e];return r[t]=n,r}function Yt(e,t){let n={};return(t||Object.keys(e)).forEach(t=>{e[t]!==void 0&&(n[t]=e[t])}),n}function Xt(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 Zt(e,t,n){let r=t.find(t=>e[t]);return n===r?void 0:e[r]}function Qt(e){return Yt(e,[`placement`,`builtinPlacements`,`popupAlign`,`getPopupContainer`,`transitionName`,`direction`])}function $t(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function en(e,t,n){return $t(t,n,()=>Math.floor(e.getYear(t)/10)===Math.floor(e.getYear(n)/10))}function tn(e,t,n){return $t(t,n,()=>e.getYear(t)===e.getYear(n))}function nn(e,t){return Math.floor(e.getMonth(t)/3)+1}function uee(e,t,n){return $t(t,n,()=>tn(e,t,n)&&nn(e,t)===nn(e,n))}function rn(e,t,n){return $t(t,n,()=>tn(e,t,n)&&e.getMonth(t)===e.getMonth(n))}function an(e,t,n){return $t(t,n,()=>tn(e,t,n)&&rn(e,t,n)&&e.getDate(t)===e.getDate(n))}function on(e,t,n){return $t(t,n,()=>e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n))}function sn(e,t,n){return $t(t,n,()=>an(e,t,n)&&on(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n))}function cn(e,t,n,r){return $t(n,r,()=>tn(e,e.locale.getWeekFirstDate(t,n),e.locale.getWeekFirstDate(t,r))&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r))}function ln(e,t,n,r,i){switch(i){case`date`:return an(e,n,r);case`week`:return cn(e,t.locale,n,r);case`month`:return rn(e,n,r);case`quarter`:return uee(e,n,r);case`year`:return tn(e,n,r);case`decade`:return en(e,n,r);case`time`:return on(e,n,r);default:return sn(e,n,r)}}function un(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function dn(e,t,n,r,i){return ln(e,t,n,r,i)?!0:e.isAfter(n,r)}function dee(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 fn(e,{generateConfig:t,locale:n,format:r}){return e?typeof r==`function`?r(e):t.locale.format(n.locale,e,r):``}function pn(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 mn(e,t,n,r){let i=z.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 z.useCallback((e,t)=>i(e,{...t,range:r}),[i,r])}function hn(e,t,n=[]){let[r,i]=z.useState([!1,!1]);return[z.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=>Jt(n,t,e))}]}function gn(e,t,n,r,i){let a=[];e&&a.push(i?`hh`:`HH`),t&&a.push(`mm`),n&&a.push(`ss`);let o=a.join(`:`);return r&&(o+=`.SSS`),i&&(o+=` A`),o}function _n(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=gn(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 vn(e,t){let{showHour:n,showMinute:r,showSecond:i,showMillisecond:a,use12Hours:o}=t;return z.useMemo(()=>_n(e,n,r,i,a,o),[e,n,r,i,a,o])}function yn(e,t,n){return n??t.some(t=>e.includes(t))}var bn=[`showNow`,`showHour`,`showMinute`,`showSecond`,`showMillisecond`,`use12Hours`,`hourStep`,`minuteStep`,`secondStep`,`millisecondStep`,`hideDisabledOptions`,`defaultValue`,`disabledHours`,`disabledMinutes`,`disabledSeconds`,`disabledMilliseconds`,`disabledTime`,`changeOnScroll`,`defaultOpenValue`];function xn(e){let t=Yt(e,bn),{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 Sn(e){return e&&typeof e==`string`}function Cn(e,t,n,r){return[e,t,n,r].some(e=>e!==void 0)}function wn(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 Tn(e){let{showTime:t}=e,[n,r]=xn(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=Cn(s,c,l,o);return[s,c,l]=wn(u,s,c,l,o),[a,{...a,showHour:s,showMinute:c,showSecond:l,showMillisecond:o},a.format,r]}function En(e,t,n,r,i){if(e===`datetime`||e===`time`){let a=r,o=Xt(e,i,null),s=[t,n];for(let e=0;e<s.length;e+=1){let t=qt(s[e])[0];if(Sn(t)){o=t;break}}let{showHour:c,showMinute:l,showSecond:u,showMillisecond:d}=a,{use12Hours:f}=a,p=yn(o,[`a`,`A`,`LT`,`LLL`,`LTS`],f),m=Cn(c,l,u,d);m||(c=yn(o,[`H`,`h`,`k`,`LT`,`LLL`]),l=yn(o,[`m`,`LT`,`LLL`]),u=yn(o,[`s`,`LTS`]),d=yn(o,[`SSS`])),[c,l,u]=wn(m,c,l,u,d);let h=t||gn(c,l,u,d,p);return{...a,format:h,showHour:c,showMinute:l,showSecond:u,showMillisecond:d,use12Hours:p}}return null}function fee(e,t,n){if(t===!1)return null;let r=t&&typeof t==`object`?t:{};return pe(r.clearIcon)?r.clearIcon:pe(n)?n:z.createElement(`span`,{className:`${e}-clear-btn`})}function pee(e,t,n,r,i){return L((a,o)=>!!(n&&n(a,o)||r&&e.isAfter(r,a)&&!ln(e,t,r,a,o.type)||i&&e.isAfter(a,i)&&!ln(e,t,i,a,o.type)))}function mee(e,t,n){return z.useMemo(()=>{let r=qt(Xt(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 hee(e,t,n){return typeof e[0]==`function`||n?!0:t}function gee(e,t,n,r){return L((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 Dn(e,t=!1){return z.useMemo(()=>{let n=e&&qt(e);return t&&n&&(n[1]=n[1]||n[0]),n},[e,t])}function On(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=Dn(S),D=Dn(C),O=Dn(w),k=Dn(T),A=i===`date`&&x?`datetime`:i,j=A===`time`||A===`datetime`,M=j||h,N=m??j,[P,F,I,ee]=Tn(e),te=vn(r,F),ne=z.useMemo(()=>En(A,I,ee,P,te),[A,I,ee,P,te]),L=z.useMemo(()=>({...e,previewValue:o,prefixCls:a,locale:te,picker:i,styles:s,classNames:c,order:l,components:{input:d,...u},clearIcon:fee(a,f,p),showTime:ne,value:E,defaultValue:D,pickerValue:O,defaultPickerValue:k,...t?.()}),[e]),[re,ie]=mee(A,te,g),ae=hee(re,_,h),R=pee(n,r,v,y,b),oe=gee(n,i,R,ne);return[z.useMemo(()=>({...L,needConfirm:N,inputReadOnly:ae,disabledDate:R}),[L,N,ae,R]),A,M,re,ie,oe]}function kn(e,t){return t.some(t=>!!t&&(t===e||t.contains(e)))}function An(e,t,n,r){let[i,a]=z.useState(null),o=L((e,n,r)=>{a(e),t?.(e,r)}),s=L((t,i,o)=>{i===`panel`&&o.target.hasAttribute(`disabled`)?o.currentTarget.focus({preventScroll:!0}):e(o.relatedTarget)||(a(null),r?.(t,o)),n?.(t,o)});return[i!==null,o,s]}function _ee(e,t,n,r,i){let a=L(()=>{i(!0)});z.useEffect(()=>{e!==null&&t&&(a(),n.current?.focus(e))},[e,t,a]),y(()=>{if(e===null)return;let t=[n.current?.startInput,n.current?.endInput],i=t[e]?.getRootNode()?.activeElement??document.activeElement;kn(i,[r.current])||t.some((t,n)=>n!==e&&kn(i,[t]))&&t[e]?.focus()})}function vee(e,t,n){let[r,i]=u(t,e),[,a]=z.useState({}),o=L(e=>{i(e),a({})}),s=z.useRef(e),c=z.useRef(void 0),l=()=>{w.cancel(c.current)},d=L(()=>{o(s.current),n&&r!==s.current&&n(s.current)}),f=L((e,t)=>{l(),s.current=e,e||t?d():c.current=w(d)});return z.useEffect(()=>l,[]),[r,f]}function jn(e,t,n=[],r){let[i,a]=vee(!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=z.useRef(null);return z.useImperativeHandle(e,()=>({nativeElement:t.current?.nativeElement,focus:e=>{t.current?.focus(e)},blur:()=>{t.current?.blur()}})),t}function Nn(e,t){return z.useMemo(()=>e||(t?(M(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(([e,t])=>({label:e,value:t}))):[]),[e,t])}function yee(e,t,n,r,i,a,o){return(s,c)=>{let[l,u]=e,d={...c,from:Zt(e,r,n)};return n===1&&t[0]&&l&&!ln(i,a,l,s,d.type)&&i.isAfter(l,s)||n===0&&t[1]&&u&&!ln(i,a,u,s,d.type)&&i.isAfter(s,u)?!0:o?.(s,d)}}function Pn(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 Fn=[];function In(e,t,n,r,i,a,o,s,c,l=Fn,d=Fn,f=Fn,p,m,h){let g=s===`time`,_=o||0,[v,b]=n,x=_===0?v:b,S=_===0?b:v,C=t=>{let n=e.getNow();g&&(n=pn(e,n));let r=t===0?v:b;return l[t]||r||n},[w,T]=d,[E,D]=u(()=>C(0),w),[O,k]=u(()=>C(1),T),A=z.useMemo(()=>{let t=[E,O][_];return g?t:pn(e,t,f[_])},[g,E,O,_,e,f]),j=(n,i=`panel`)=>{let a=[D,k][_];a(n);let o=[E,O];o[_]=n,p&&(!ln(e,t,E,o[0],s)||!ln(e,t,O,o[1],s))&&p(o,{source:i,range:_===1?`end`:`start`,mode:r})},M=(n,r)=>s===`year`?Math.floor(e.getYear(n)/10)===Math.floor(e.getYear(r)/10):ln(e,t,n,r,s===`month`||s===`quarter`?`year`:`month`),N=(t,n)=>{if(!c||!t)return n;let r=Pn(e,s,t,1);return M(t,n)||M(r,n)?t:Pn(e,s,n,-1)},P=z.useRef(null);return y(()=>{if(i&&!l[_]){let t=g?null:e.getNow();if(a&&P.current!==null&&P.current!==_?t=[E,O][_^1]:x?t=_===0?v:N(v,b):S&&(t=S),t){m&&e.isAfter(m,t)&&(t=m);let n=c?Pn(e,s,t,1):t;h&&e.isAfter(n,h)&&(t=c?Pn(e,s,h,-1):h),j(t,`reset`)}}},[i,a,_,n[_]]),z.useEffect(()=>{i&&a?P.current=_:P.current=null},[i,a,_]),y(()=>{i&&l&&l[_]&&j(l[_],`reset`)},[i,_]),[A,j]}function Ln(e,t){let n=z.useRef(e),[,r]=z.useState({}),i=e=>e&&t!==void 0?t:n.current;return[i,e=>{n.current=e,r({})},i(!0)]}var Rn=[];function zn(e,t,n){return[r=>r.map(r=>fn(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&&!sn(e,r,o)){i=a;break}}return[i<0,i!==0]}]}function Bn(e,t){return[...e].sort((e,n)=>t.isAfter(e,n)?1:-1)}function bee(e){let[t,n]=Ln(e),r=L(()=>{n(e)});return z.useEffect(()=>{r()},[e]),[t,n]}function Vn(e,t,n,r,i,a,o,s,c){let[l,d]=u(a,o),f=l||Rn,[p,m]=bee(f),[h,g]=zn(e,t,n);return[f,d,p,L(t=>{let n=[...t];if(r)for(let e=0;e<2;e+=1)n[e]=n[e]||null;else i&&(n=Bn(n.filter(e=>e),e));let[a,o]=g(p(),n);if(!a&&(m(n),s)){let e=h(n);s(n,e,{range:o?`end`:`start`})}}),()=>{c&&c(p())}]}function Hn(e,t,n,r,i,a,o,s){let{generateConfig:c,locale:l,picker:u,onChange:d,allowEmpty:f,order:p}=e,m=!a.some(e=>e)&&p,[h,g]=zn(c,l,o),[_,v]=Ln(t),y=L(()=>{v(t)});z.useEffect(()=>{y()},[t]);let b=L(e=>{let r=e===null,o=[...e||_()];if(r){let e=Math.max(a.length,o.length);for(let t=0;t<e;t+=1)a[t]||(o[t]=null)}m&&o[0]&&o[1]&&(o=Bn(o,c)),i(o);let[v,y]=o,b=!v,x=!y,S=!f||(!b||f[0])&&(!x||f[1]),C=!p||b||x||ln(c,l,v,y,u)||c.isAfter(y,v),w=(a[0]||!v||!s(v,{activeIndex:0}))&&(a[1]||!y||!s(y,{from:v,activeIndex:1})),T=r||S&&C&&w;if(T){n(o);let[e]=g(o,t);if(d&&!e){let e=o.every(e=>!e);d(r&&e?null:o,e?null:h(o))}}return T});return[L((e,t)=>{let n=Jt(_(),e,r()[e]);v(n),t&&b()}),b,L(e=>{if(e===void 0){i(t),y();return}i(Jt(r(),e,t[e])),v(Jt(_(),e,t[e]))})]}function Un(e,t,n,r,i,a,o){let s=z.useRef([]),c=z.useRef(null),l=z.useRef(!1),[u,d]=P(null),[f,p]=P(!1),m=z.useRef(void 0),h=L(()=>{s.current=[],c.current=null,l.current=!1,d(null),p(!1)}),g=(e,t)=>{let n=s.current.find(t=>t.index===e);n?t!==void 0&&(n.modified=t):s.current=[...s.current,{index:e,modified:t??!1}]},_=t=>{g(t);let n=s.current.length>=e;return a(t,n),n&&h(),n},v=(i,a,o,l)=>{if(o===`esc`)return`resetAll`;if(i===null)return o===`popupClose`?`resetAll`:`abort`;let u=(l===void 0?r()[i]:l)!=null||n[i],d=o===`remove`||u;if(o===`field-switch`){if(a===i)return`abort`;let r=(i+1)%e;if(a!==r)return`abort`;let o=s.current.some(e=>e.index===r);return t?c.current===i?`switchNext`:n[i]?`resetCurrentAndSwitchNext`:`abort`:u?`switchNext`:o?`resetCurrentAndSwitchNext`:`resetCurrent`}if(a!==i)return`abort`;if(o===`popupClose`){if(!s.current.some(e=>e.modified))return`finish`;if(t){let t=s.current.some(e=>e.index===i&&e.modified);return!(s.current.length>=e)||!u?`resetAll`:t?n[i]?`resetCurrentAndSwitchNext`:`resetAll`:`switchNext`}return d?`switchNext`:`resetAll`}return o===`input`||o===`panel-intermediate`?`modify`:o===`panel-final`?t?`modify`:`switchNext`:o===`keyboard-submit-weak`?d?`submitCurrent`:`abort`:(o===`keyboard-submit`||o===`confirm`||o===`remove`)&&d?`switchNext`:`abort`},y=L((n,r,a)=>{let f=u();r!==`popupClose`&&(l.current=r===`input`),f===null&&r!==`popupClose`&&r!==`esc`&&(f=n,d(n),p(!1),g(n,!1));let m=v(f,n,r,a),y=f??n;switch(m){case`modify`:g(y,!0),c.current===y&&(c.current=null),a!==void 0&&i(y,a);break;case`submitCurrent`:t&&(c.current=y),_(y);break;case`switchNext`:{(r===`panel-final`||a!==void 0)&&g(y,!0),a!==void 0&&i(y,a),t&&(r===`keyboard-submit`||r===`confirm`)&&(c.current=y);let o=r===`confirm`||r===`keyboard-submit`||r===`panel-final`||r===`popupClose`&&!l.current,s=_(y);if(s&&r===`field-switch`)d(n),p(!1);else if(!s){let t=(y+1)%e;d(t),p(o)}r===`field-switch`&&g(n,!1);break}case`finish`:h();break;case`resetCurrent`:o(y),c.current===y&&(c.current=null),s.current=s.current.filter(e=>e.index!==y);break;case`resetCurrentAndSwitchNext`:o(y),c.current===y&&(c.current=null),r===`field-switch`?(s.current.some(e=>e.index===n)&&(s.current=[]),d(n),p(!1),g(n,!1)):h();break;case`resetAll`:o(),h();break;case`abort`:r===`field-switch`&&n===y&&g(n)}}),b=u();m.current=b??m.current??0;let x=s.current.map(e=>e.index);return[b,m.current,f(),x,y,h]}function Wn(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 Gn(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:Kt(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=z.useMemo(()=>n||e.getNow(),[n,e]),m=z.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]=z.useMemo(()=>m(p),[p,m]),y=z.useCallback((e,t,n,l)=>{let u=qn(0,23,i,c,e());return[r?u.map(e=>({...e,label:Kt(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]=z.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 Gn(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}=z.useContext(Wt),_=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`,w=i&&z.createElement(`li`,{className:S},z.createElement(`a`,{className:D(C,b&&`${C}-disabled`),"aria-disabled":b,onClick:x},n===`date`?p.today:p.now)),T=l&&z.createElement(`li`,{className:`${f}-ok`},z.createElement(m,{disabled:c,onClick:o},p.ok)),E=(w||T)&&z.createElement(`ul`,{className:`${f}-ranges`},w,T);return!pe(y)&&!pe(E)?null:z.createElement(`div`,{className:D(`${f}-footer`,h.popup.footer),style:g.popup.footer},pe(y)&&z.createElement(`div`,{className:`${f}-footer-extra`},y),E)}function Xn(e,t,n){function r(r,i){let a=r.findIndex(r=>ln(e,t,r,i,n));if(a===-1)return[...r,i];let o=[...r];return o.splice(a,1),o}return r}var Zn=z.createContext(null),Qn=z.createContext(null);function $n(){return z.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}=z.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=z.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:w,locale:T,onSelect:E}=$n(),O=f||v,k=`${p}-cell`,{onCellDblClick:A}=z.useContext(tr),j=e=>w.some(t=>t&&ln(C,T,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 w=!1,M=!1,N=!1;if(d&&S){let[e,t]=S;w=un(C,e,t,f),M=ln(C,T,f,e,g),N=ln(C,T,f,t,g)}let P=s?fn(f,{locale:T,format:s,generateConfig:C}):void 0,F=z.createElement(`div`,{className:`${k}-inner`},c(f));t.push(z.createElement(`td`,{key:o,title:P,className:D(k,m.item,{[`${k}-disabled`]:v,[`${k}-hover`]:(x||[]).some(e=>ln(C,T,f,e,g)),[`${k}-in-range`]:w&&!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||E(f)},onDoubleClick:()=>{!v&&A&&A()},onMouseEnter:()=>{v||b?.(f)},onMouseLeave:()=>{v||b?.(null)}},y?y(f,{prefixCls:p,originNode:F,today:_,type:g,locale:T}):F))}M.push(z.createElement(`tr`,{key:e,className:o?.(u)},t))}return z.createElement(`div`,{className:D(`${p}-body`,m.body),style:h.body},z.createElement(`table`,{className:D(`${p}-content`,m.content),style:h.content},oe(u)&&z.createElement(`thead`,null,z.createElement(`tr`,null,u)),z.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}=z.useContext(tr),w=z.useMemo(()=>{if(!m||!t||!a)return!1;let e=a(t(-1,v));return!dn(g,_,e,m,y)},[m,t,v,a,g,_,y]),T=z.useMemo(()=>{if(!m||!n||!a)return!1;let e=a(n(-1,v));return!dn(g,_,e,m,y)},[m,n,v,a,g,_,y]),E=z.useMemo(()=>{if(!h||!t||!i)return!1;let e=i(t(1,v));return!dn(g,_,h,e,y)},[h,t,v,i,g,_,y]),O=z.useMemo(()=>{if(!h||!n||!i)return!1;let e=i(n(1,v));return!dn(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 z.createElement(`div`,{className:D(b,c.header),style:l.header},n&&z.createElement(`button`,{type:`button`,"aria-label":_.previousYear,onClick:()=>A(-1),tabIndex:-1,className:D(N,T&&`${N}-disabled`),disabled:T,style:x?rr:{}},f),t&&z.createElement(`button`,{type:`button`,"aria-label":_.previousMonth,onClick:()=>k(-1),tabIndex:-1,className:D(j,w&&`${j}-disabled`),disabled:w,style:x?rr:{}},u),z.createElement(`div`,{className:`${b}-view`},o),t&&z.createElement(`button`,{type:`button`,"aria-label":_.nextMonth,onClick:()=>k(1),tabIndex:-1,className:D(M,E&&`${M}-disabled`),disabled:E,style:S?rr:{}},d),n&&z.createElement(`button`,{type:`button`,"aria-label":_.nextYear,onClick:()=>A(1),tabIndex:-1,className:D(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=dee(r.locale,i,y),x=i.getMonth(a),S=(f===void 0?h:f)?e=>{let t=l?.(e,{type:`week`});return z.createElement(`td`,{key:`week`,className:D(m,`${m}-week`,{[`${m}-disabled`]:t}),onClick:()=>{t||u(e)},onMouseEnter:()=>{t||d?.(e)},onMouseLeave:()=>{t||d?.(null)}},z.createElement(`div`,{className:`${m}-inner`},i.locale.getWeek(r.locale,e)))}:null,C=[],w=r.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(r.locale):[]);S&&C.push(z.createElement(`th`,{key:`empty`},z.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(z.createElement(`th`,{key:e},w[(e+v)%7]));let T=(e,t)=>i.addDate(e,t),E=e=>fn(e,{locale:r,format:r.cellDateFormat,generateConfig:i}),O=e=>({[`${t}-cell-in-view`]:rn(i,e,a),[`${t}-cell-today`]:an(i,e,_)}),k=r.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(r.locale):[]),A=z.createElement(`button`,{type:`button`,"aria-label":r.yearSelect,key:`year`,onClick:()=>{s(`year`,a)},tabIndex:-1,className:`${t}-year-btn`},fn(a,{locale:r,format:r.yearFormat,generateConfig:i})),j=z.createElement(`button`,{type:`button`,"aria-label":r.monthSelect,key:`month`,onClick:()=>{s(`month`,a)},tabIndex:-1,className:`${t}-month-btn`},r.monthFormat?fn(a,{locale:r,format:r.monthFormat,generateConfig:i}):k[x]),M=r.monthBeforeYear?[j,A]:[A,j];return z.createElement(Qn.Provider,{value:g},z.createElement(`div`,{className:D(p,f&&`${p}-show-week`)},z.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),z.createElement(nr,ar({titleFormat:r.fieldDateFormat},e,{colNum:7,rowNum:6,baseDate:b,headerCells:C,getCellDate:T,getCellText:E,getCellClassName:O,prefixColumn:S,cellSelection:!h}))))}var xee=1/3;function See(e,t){let n=z.useRef(!1),r=z.useRef(null),i=z.useRef(null),a=()=>n.current,o=()=>{w.cancel(r.current),n.current=!1},s=z.useRef(void 0);return[L(()=>{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||!ee(a)){s.current<=5&&(r.current=w(l));return}let p=t+(f-t)*xee,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=w(l)};e&&c&&l()}}),o,a]}var Cee=300;function wee(e){return e.map(({value:e,label:t,disabled:n})=>[e,t,n].join(`,`)).join(`;`)}function sr(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`,_=z.useRef(null),v=z.useRef(void 0),b=()=>{clearTimeout(v.current)},[x,S,C]=See(_,n??r);y(()=>(x(),b(),()=>{S(),b()}),[n,r,wee(t)]);let w=e=>{b();let n=e.target;!C()&&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)},Cee))},T=`${h}-column`;return z.createElement(`ul`,{className:T,ref:_,"data-type":i,onScroll:w},t.map(({label:e,value:t,disabled:r})=>{let c=z.createElement(`div`,{className:`${g}-inner`},e);return z.createElement(`li`,{key:t,style:m.item,className:D(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 cr(){return cr=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},cr.apply(this,arguments)}function lr(e){return e<12}function Tee(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:_}=z.useContext(tr),[v,y,b,x,S]=Jn(d,e,g),C=e=>[g&&d[e](g),h&&d[e](h)],[w,T]=C(`getHour`),[E,O]=C(`getMinute`),[k,A]=C(`getSecond`),[j,M]=C(`getMillisecond`),N=w===null?null:lr(w)?`am`:`pm`,P=z.useMemo(()=>a?lr(w)?y.filter(e=>lr(e.value)):y.filter(e=>!lr(e.value)):y,[w,y,a]),F=(e,t)=>{let n=e.filter(e=>!e.disabled);return t??n?.[0]?.value},I=F(y,w),ee=z.useMemo(()=>b(I),[b,I]),te=F(ee,E),ne=z.useMemo(()=>x(I,te),[x,I,te]),L=F(ne,k),re=z.useMemo(()=>S(I,te,L),[S,I,te,L]),ie=F(re,j),ae=z.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?fn(e,{generateConfig:d,locale:f,format:n}):t};return[{label:r(t,`AM`),value:`am`,disabled:y.every(e=>e.disabled||!lr(e.value))},{label:r(n,`PM`),value:`pm`,disabled:y.every(e=>e.disabled||lr(e.value))}]},[y,a,d,f]),R=e=>{let t=v(e);p(t)},se=z.useMemo(()=>{let e=g||h||d.getNow();return oe(w)?(e=d.setHour(e,w),e=d.setMinute(e,E),e=d.setSecond(e,k),e=d.setMillisecond(e,j)):oe(T)?(e=d.setHour(e,T),e=d.setMinute(e,O),e=d.setSecond(e,A),e=d.setMillisecond(e,M)):oe(I)&&(e=d.setHour(e,I),e=d.setMinute(e,te),e=d.setSecond(e,L),e=d.setMillisecond(e,ie)),e},[g,h,w,E,k,j,I,te,L,ie,T,O,A,M,d]),ce=(e,t)=>e===null?null:d[t](se,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`&&!lr(w)?d.setHour(se,w-12):e===`pm`&&lr(w)?d.setHour(se,w+12):se,me=e=>{R(le(e))},he=e=>{R(ue(e))},ge=e=>{R(de(e))},_e=e=>{R(fe(e))},ve=e=>{R(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 z.createElement(`div`,{className:D(`${s}-content`,c.content),style:l.content},t&&z.createElement(sr,cr({units:P,value:w,optionalValue:T,type:`hour`,onChange:me,onHover:ye},we)),n&&z.createElement(sr,cr({units:ee,value:E,optionalValue:O,type:`minute`,onChange:he,onHover:be},we)),r&&z.createElement(sr,cr({units:ne,value:k,optionalValue:A,type:`second`,onChange:ge,onHover:xe},we)),i&&z.createElement(sr,cr({units:re,value:j,optionalValue:M,type:`millisecond`,onChange:_e,onHover:Se},we)),a&&z.createElement(sr,cr({units:ae,value:N,type:`meridiem`,onChange:ve,onHover:Ce},we)))}function ur(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 z.createElement(Qn.Provider,{value:c},z.createElement(`div`,{className:D(s)},z.createElement(ir,null,n?fn(n,{locale:r,format:o,generateConfig:i}):`\xA0`),z.createElement(Tee,a)))}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 Eee(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?pn(n,e,a):pn(n,e,o);return z.createElement(`div`,{className:c},z.createElement(or,dr({},e,{onSelect:e=>{let t=u(e);i(l(t,t))},onHover:e=>{s?.(e&&u(e))}})),z.createElement(ur,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)}function Dee(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`${fn(e,{locale:n,format:t,generateConfig:r})}-${fn(r.addYear(e,9),{locale:n,format:t,generateConfig:r})}`},g=e=>({[`${t}-cell-in-view`]:en(r,e,d)||en(r,e,f)||un(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=`${fn(d,{locale:n,format:n.yearFormat,generateConfig:r})}-${fn(f,{locale:n,format:n.yearFormat,generateConfig:r})}`;return z.createElement(Qn.Provider,{value:c},z.createElement(`div`,{className:s},z.createElement(ir,{superOffset:e=>r.addYear(i,e*100),onChange:o,getStart:l,getEnd:u},v),z.createElement(nr,fr({},e,{disabledDate:_,colNum:3,rowNum:4,baseDate:p,getCellDate:m,getCellText:h,getCellClassName:g}))))}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 Oee(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?fn(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=z.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{s(`year`)},tabIndex:-1,className:`${t}-year-btn`},fn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(Qn.Provider,{value:l},z.createElement(`div`,{className:c},z.createElement(ir,{superOffset:e=>r.addYear(i,e),onChange:o,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},g),z.createElement(nr,pr({},e,{disabledDate:h,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:u,getCellDate:f,getCellText:p,getCellClassName:m}))))}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 kee(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=>fn(e,{locale:n,format:n.cellQuarterFormat,generateConfig:r}),f=()=>({[`${t}-cell-in-view`]:!0}),p=z.createElement(`button`,{type:`button`,key:`year`,"aria-label":n.yearSelect,onClick:()=>{o(`year`)},tabIndex:-1,className:`${t}-year-btn`},fn(i,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(Qn.Provider,{value:c},z.createElement(`div`,{className:s},z.createElement(ir,{superOffset:e=>r.addYear(i,e),onChange:a,getStart:e=>r.setMonth(e,0),getEnd:e=>r.setMonth(e,11)},p),z.createElement(nr,mr({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:l,getCellDate:u,getCellText:d,getCellClassName:f}))))}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 Aee(e){let{prefixCls:t,generateConfig:n,locale:r,value:i,hoverValue:a,hoverRangeValue:o}=e,s=r.locale,c=`${t}-week-panel-row`;return z.createElement(or,hr({},e,{mode:`week`,panelName:`week`,rowClassName:e=>{let t={};if(o){let[r,i]=o,a=cn(n,s,r,e),l=cn(n,s,i,e);t[`${c}-range-start`]=a,t[`${c}-range-end`]=l,t[`${c}-range-hover`]=!a&&!l&&un(n,r,i,e)}return a&&(t[`${c}-hover`]=a.some(t=>cn(n,s,e,t))),D(c,{[`${c}-selected`]:!o&&cn(n,s,i,e)},t)}}))}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 jee(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=>fn(e,{locale:n,format:n.cellYearFormat,generateConfig:r}),_=e=>({[`${t}-cell-in-view`]:tn(r,e,f)||tn(r,e,p)||un(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=z.createElement(`button`,{type:`button`,key:`decade`,"aria-label":n.decadeSelect,onClick:()=>{s(`decade`)},tabIndex:-1,className:`${t}-decade-btn`},fn(f,{locale:n,format:n.yearFormat,generateConfig:r}),`-`,fn(p,{locale:n,format:n.yearFormat,generateConfig:r}));return z.createElement(Qn.Provider,{value:l},z.createElement(`div`,{className:c},z.createElement(ir,{superOffset:e=>r.addYear(i,e*10),onChange:o,getStart:u,getEnd:d},y),z.createElement(nr,gr({},e,{disabledDate:v,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:h,getCellText:g,getCellClassName:_}))))}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)}var Mee={date:or,datetime:Eee,week:Aee,month:Oee,quarter:kee,year:jee,decade:Dee,time:ur};function Nee(e,t){let{classNames:n,styles:r,locale:i,generateConfig:a,direction:o,prefixCls:s,tabIndex:c=0,multiple:l,defaultValue:d,value:f,onChange:p,onSelect:m,defaultPickerValue:h,pickerValue:g,onPickerValueChange:_,mode:v,onPanelChange:y,picker:b=`date`,showTime:x,hoverValue:S,hoverRangeValue:C,cellRender:w,dateRender:T,monthCellRender:E,components:O={},hideHeader:k}=e,{prefixCls:A,classNames:j,styles:M}=z.useContext(Wt)||{},N=A||s||`rc-picker`,P=z.useRef(null);z.useImperativeHandle(t,()=>({nativeElement:P.current}));let[F,I,ee,te]=Tn(e),ne=vn(i,I),re=b===`date`&&x?`datetime`:b,ie=z.useMemo(()=>En(re,ee,te,F,ne),[re,ee,te,F,ne]),ae=a.getNow(),[R,oe]=u(b||`date`,v),se=R===`date`&&ie?`datetime`:R,ce=Xn(a,i,re),[le,ue]=u(d,f),de=z.useMemo(()=>{let e=qt(le).filter(e=>e);return l?e:e.slice(0,1)},[le,l]),fe=L(e=>{ue(e),p&&(e===null||de.length!==e.length||de.some((t,n)=>!ln(a,i,t,e[n],re)))&&p?.(l?e:e[0])}),pe=L(e=>{if(m?.(e),R===b){let t=l?ce(de,e):[e];fe(t)}}),[me,he]=u(h||de[0]||ae,g);z.useEffect(()=>{de[0]&&!g&&he(de[0])},[de[0]]);let ge=(e,t)=>{y?.(e||g,t||R)},_e=(e,t=!1)=>{he(e),_?.(e),t&&ge(e)},ve=(e,t)=>{oe(e),t&&_e(t),ge(t,e)},ye=e=>{if(pe(e),_e(e),R!==b){let t=[`decade`,`year`],n=[...t,`month`],r={quarter:[...t,`quarter`],week:[...n,`week`],date:[...n,`date`]}[b]||n,i=r[r.indexOf(R)+1];i&&ve(i,e)}},be=z.useMemo(()=>{let e,t;return Array.isArray(C)?[e,t]=C:e=C,!e&&!t?null:(e||=t,t||=e,a.isAfter(e,t)?[t,e]:[e,t])},[C,a]),xe=mn(w,T,E),Se=O[se]||Mee[se]||or,Ce=z.useMemo(()=>({classNames:j?.popup??n??{},styles:M?.popup??r??{}}),[j,n,M,r]),we=z.useContext(tr),Te=z.useMemo(()=>({...we,hideHeader:k}),[we,k]),Ee=`${N}-panel`,De=Yt(e,[`showWeek`,`prevIcon`,`nextIcon`,`superPrevIcon`,`superNextIcon`,`disabledDate`,`minDate`,`maxDate`,`onHover`]);return z.createElement(Zn.Provider,{value:Ce},z.createElement(tr.Provider,{value:Te},z.createElement(`div`,{ref:P,tabIndex:c,className:D(Ee,{[`${Ee}-rtl`]:o===`rtl`})},z.createElement(Se,_r({},De,{showTime:ie,prefixCls:N,locale:ne,generateConfig:a,onModeChange:ve,pickerValue:me,onPickerValueChange:e=>{_e(e,!0)},value:de[0],onSelect:ye,values:de,cellRender:xe,hoverRangeValue:be,hoverValue:S})))))}var vr=z.memo(z.forwardRef(Nee));function yr(){return yr=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},yr.apply(this,arguments)}function Pee(e){let{picker:t,multiplePanel:n,pickerValue:r,onPickerValueChange:i,needConfirm:a,onSubmit:o,range:s,hoverValue:c,hoverRangeValue:l}=e,{prefixCls:u,generateConfig:d}=z.useContext(Wt),f=z.useCallback((e,n)=>Pn(d,t,e,n),[d,t]),p=z.useMemo(()=>f(r,1),[r,f]),m=e=>{i(f(e,-1))},h={onCellDblClick:()=>{a&&o()}},g=t===`time`,_={...e,hoverValue:null,hoverRangeValue:null,hideHeader:g};return _.hoverValue=c,s&&(_.hoverRangeValue=l),n?z.createElement(`div`,{className:`${u}-panels`},z.createElement(tr.Provider,{value:{...h,hideNext:!0}},z.createElement(vr,_)),z.createElement(tr.Provider,{value:{...h,hidePrev:!0}},z.createElement(vr,yr({},_,{pickerValue:p,onPickerValueChange:m})))):z.createElement(tr.Provider,{value:{...h}},z.createElement(vr,_))}function br(e){return typeof e==`function`?e():e}function xr(e){let{prefixCls:t,presets:n,onClick:r,onHover:i}=e;return n.length?z.createElement(`div`,{className:`${t}-presets`},z.createElement(`ul`,null,n.map(({label:e,value:t},n)=>z.createElement(`li`,{key:n,onClick:()=>{r(br(t))},onMouseEnter:()=>{i(br(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{containerRef:t,panelRender:n,internalMode:r,picker:i,showNow:a,range:o,multiple:s,activeInfo:c=[0,0,0],presets:l,onPresetHover:u,onPresetSubmit:f,onFocus:p,onBlur:m,onPanelMouseDown:h,direction:g,value:_,onSelect:v,isInvalid:y,defaultOpenValue:b,onOk:x,onSubmit:S,classNames:C,styles:w}=e,{prefixCls:T}=z.useContext(Wt),E=`${T}-panel`,O=g===`rtl`,k=z.useRef(null),A=z.useRef(null),[j,M]=z.useState(0),[N,P]=z.useState(0),[F,I]=z.useState(0),ee=e=>{e.width&&M(e.width)},[te,ne,L]=c,[re,ie]=z.useState(0);z.useEffect(()=>{ie(10)},[te]),z.useEffect(()=>{if(o&&A.current){let e=k.current?.offsetWidth||0,t=A.current.getBoundingClientRect();if(!t.height||t.right<0){ie(e=>Math.max(0,e-1));return}let n=(O?ne-e:te)-t.left;if(I(n),j&&j<L){let n=O?t.right-(ne-e+j):te+e-t.left-j;P(Math.max(0,n))}else P(0)}},[re,O,j,te,ne,L,o]);function ae(e){return e.filter(e=>e)}let R=z.useMemo(()=>ae(qt(_)),[_]),oe=i===`time`&&!R.length,se=z.useMemo(()=>oe?ae([b]):R,[oe,R,b]),ce=oe?b:R,le=z.useMemo(()=>!se.length||se.some(e=>y(e)),[se,y]),ue=z.createElement(`div`,{className:`${T}-panel-layout`},z.createElement(xr,{prefixCls:T,presets:l,onClick:f,onHover:u}),z.createElement(`div`,null,z.createElement(Pee,Sr({},e,{value:ce})),z.createElement(Yn,Sr({},e,{showNow:!s&&a,invalid:le,onSubmit:()=>{oe&&v(b),x(),S()}}))));n&&(ue=n(ue));let de=`${E}-container`,fe=`marginLeft`,pe=`marginRight`,me=z.createElement(`div`,{ref:t,onMouseDown:h,tabIndex:-1,className:D(de,`${T}-${r}-panel-container`,C?.popup?.container),style:{[O?pe:fe]:N,[O?fe:pe]:`auto`,...w?.popup?.container},onFocus:p,onBlur:m},ue);return o&&(me=z.createElement(`div`,{onMouseDown:h,ref:A,className:D(`${T}-range-wrapper`,`${T}-${i}-range-wrapper`)},z.createElement(`div`,{ref:k,className:`${T}-range-arrow`,style:{left:F}}),z.createElement(d,{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:w,invalid:T,placeholder:E,disabled:D,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=z.useCallback(e=>fn(e,{locale:a,format:M,generateConfig:i}),[a,i,M]),P=z.useMemo(()=>w.map(N),[w,N]),F=z.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]),I=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={...C(e,{aria:!0,data:!0}),format:r,validateFormat:e=>!!I(e),preserveInvalidOnBlur:o,readOnly:s,required:c,"aria-required":l,name:b,autoComplete:x,size:F,id:i(S),value:i(P)||``,invalid:i(T),placeholder:i(E),active:O===n,helped:k||y&&O===n,disabled:i(D),onFocus:e=>{d(e,n)},onBlur:e=>{f(e,n)},onSubmit:u,onChange:e=>{p();let t=I(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)}},...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 z.useMemo(()=>Yt(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}=z.useContext(Wt);return pe(e)?z.createElement(`span`,Dr({className:D(`${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}=z.useContext(Wt);return z.createElement(`button`,kr({},n,{type:`button`,"aria-label":o.clear,className:D(`${r}-clear`,i.suffix),style:a.suffix,onMouseDown:e=>{e.preventDefault()},onClick:e=>{e.stopPropagation(),t()}}),e)}function jr(e,t,n=1){let r=z.useRef(t);r.current=t,ie(()=>{if(e)r.current(e);else{let t=w(()=>{r.current(e)},n);return()=>{w.cancel(t)}}},[e])}var Mr=[`YYYY`,`MM`,`DD`,`HH`,`mm`,`ss`,`SSS`],Nr=`顧`,Pr=class{format;maskFormat;cells;maskCells;constructor(e){this.format=e;let t=Mr.map(e=>`(${e})`).join(`|`),n=new RegExp(t,`g`);this.maskFormat=e.replace(n,e=>Nr.repeat(e.length));let r=RegExp(`(${Mr.join(`|`)})`),i=(e.split(r)||[]).filter(e=>e),a=0;this.cells=i.map(e=>{let t=Mr.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!==Nr&&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 Fr(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 Ir(){return Ir=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},Ir.apply(this,arguments)}var Lr=z.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:b,onBlur:x,onMouseUp:S}=e,{prefixCls:C,input:T=`input`,classNames:E,styles:O}=z.useContext(Wt),k=`${C}-input`,[A,j]=z.useState(!1),[M,N]=z.useState(v),[P,F]=z.useState(``),[I,ee]=z.useState(null),[te,ne]=z.useState(null),re=M||``;z.useEffect(()=>{N(v)},[v]);let ie=z.useRef(null),ae=z.useRef(null),R=z.useRef(!1);z.useImperativeHandle(t,()=>({nativeElement:ie.current,inputElement:ae.current,focus:e=>{ae.current.focus(e)},blur:()=>{ae.current.blur()}}));let oe=z.useMemo(()=>new Pr(o||``),[o]),[se,ce]=z.useMemo(()=>u?[0,0]:oe.getSelection(I),[oe,I,u]),le=e=>{e&&e!==o&&e!==v&&d()},ue=L(e=>{s(e)&&c(e),N(e),le(e)}),de=e=>{if(!o){let t=e.target.value;le(t),N(t),c(t)}},fe=e=>{if(R.current){e.preventDefault();return}let t=e.clipboardData.getData(`text`);s(t)&&ue(t)},pe=()=>{R.current=!0},me=e=>{let{selectionStart:t}=e.target,n=oe.getMaskCellIndex(t);ee(n),ne({}),S?.(e),R.current=!1},he=e=>{j(!0),ee(0),F(``),b(e)},ge=e=>{x(e)},_e=e=>{j(!1),ge(e)};jr(r,()=>{!r&&!m&&N(v)});let ve=e=>{e.key===`Enter`&&s(re)&&f(),p?.(e)},ye=e=>{if(R.current){e.preventDefault();return}ve(e);let{key:t}=e,n=null,r=null,i=ce-se,a=o.slice(se,ce),s=e=>{ee(t=>{let n=t+e;return n=Math.max(n,0),n=Math.min(n,oe.size()-1),n})},c=e=>{let[t,n,r]=Fr(a),i=re.slice(se,ce),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=P+t,r=n)}if(n!==null&&(F(n),n.length>=i&&(s(1),F(``))),r!==null){let e=re.slice(0,se)+Kt(r,i)+re.slice(ce);ue(e.slice(0,o.length))}ne({})},be=z.useRef(void 0);y(()=>{if(A&&o&&!R.current){if(!oe.match(re)){ue(o);return}return ae.current.setSelectionRange(se,ce),be.current=w(()=>{ae.current.setSelectionRange(se,ce)}),()=>{w.cancel(be.current)}}},[oe,o,A,re,I,se,ce,te,ue]);let xe=o?{onFocus:he,onBlur:_e,onKeyDown:ye,onMouseDown:pe,onMouseUp:me,onPaste:fe}:{};return z.createElement(`div`,{ref:ie,className:D(k,{[`${k}-active`]:r&&i,[`${k}-placeholder`]:u},n)},z.createElement(T,Ir({ref:ae,"aria-invalid":h,autoComplete:`off`},_,{onKeyDown:ve,onBlur:ge},xe,{value:re,onChange:de,className:E.input,style:O.input})),z.createElement(Or,{icon:a}),g)});function Rr(){return Rr=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},Rr.apply(this,arguments)}function zr(e,t){let{id:n,prefix:r,clearIcon:i,suffixIcon:a,separator:o=`~`,activeIndex:s,activeHelp:c,allHelp:l,focused:u,onFocus:f,onBlur:p,onKeyDown:m,locale:h,generateConfig:g,placeholder:_,className:v,style:y,onClick:b,onClear:x,value:S,onChange:C,onSubmit:w,onInputChange:T,format:E,maskFormat:O,preserveInvalidOnBlur:k,onInvalid:A,disabled:j,invalid:M,inputReadOnly:N,direction:P,onOpenChange:F,onActiveInfo:I,placement:ee,onMouseDown:te,required:ne,"aria-required":re,autoFocus:ie,tabIndex:ae,...R}=e,oe=P===`rtl`,{prefixCls:se,classNames:ce,styles:le}=z.useContext(Wt),ue=z.useMemo(()=>{if(typeof n==`string`)return[n];let e=n||{};return[e.start,e.end]},[n]),de=z.useRef(null),fe=z.useRef(null),me=z.useRef(null),he=e=>[fe,me][e]?.current;z.useImperativeHandle(t,()=>({nativeElement:de.current,startInput:fe.current.inputElement,endInput:me.current.inputElement,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(R),_e=z.useMemo(()=>Array.isArray(_)?_:[_,_],[_]),[ve]=wr({...e,id:ue,placeholder:_e}),[ye,be]=z.useState({position:`absolute`,width:0}),xe=L(()=>{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})),I([t.left,t.right,n.width])}});z.useEffect(()=>{xe()},[s]);let Se=pe(i)&&(S[0]&&!j[0]||S[1]&&!j[1]),Ce=ie&&!j[0],we=ie&&!Ce&&!j[1];return z.createElement(d,{onResize:xe},z.createElement(`div`,Rr({},ge,{className:D(se,`${se}-range`,{[`${se}-focused`]:u,[`${se}-disabled`]:j.every(e=>e),[`${se}-invalid`]:M.some(e=>e),[`${se}-rtl`]:oe},v),style:y,ref:de,onClick:b,onMouseDown:e=>{let{target:t}=e;t!==fe.current.inputElement&&t!==me.current.inputElement&&e.preventDefault(),te?.(e)}}),pe(r)&&z.createElement(`div`,{className:D(`${se}-prefix`,ce.prefix),style:le.prefix},r),z.createElement(Lr,Rr({ref:fe},ve(0),{className:`${se}-input-start`,autoFocus:Ce,tabIndex:ae,"date-range":`start`})),z.createElement(`div`,{className:`${se}-range-separator`},o),z.createElement(Lr,Rr({ref:me},ve(1),{className:`${se}-input-end`,autoFocus:we,tabIndex:ae,"date-range":`end`})),z.createElement(`div`,{className:`${se}-active-bar`,style:ye}),z.createElement(Or,{icon:a}),Se&&z.createElement(Ar,{icon:i,onClear:x})))}var Br=z.forwardRef(zr);function Vr(e,t){return(0,z.useMemo)(()=>[{...e,popup:e?.popup||{}},{...t,popup:t?.popup||{}}],[e,t])}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 Ur(e,t){let n=e??t;return Array.isArray(n)?n:[n,n]}function Wr(e){return e===1?`end`:`start`}function Fee(e,t){let[n,r,a,o,s,c]=On(e,()=>{let{disabled:t,allowEmpty:n}=e;return{disabled:Ur(t,!1),allowEmpty:Ur(n,!1)}}),{prefixCls:l,rootClassName:d,styles:f,classNames:p,previewValue:m,defaultValue:h,value:g,needConfirm:_,onClear:v,onKeyDown:b,disabled:x,allowEmpty:S,disabledDate:w,minDate:T,maxDate:E,defaultOpen:O,open:k,onOpenChange:A,locale:j,generateConfig:M,picker:N,showNow:P,showToday:F,showTime:I,mode:ee,onPanelChange:te,onCalendarChange:ne,onOk:re,defaultPickerValue:ie,pickerValue:ae,onPickerValueChange:R,inputReadOnly:oe,suffixIcon:se,onFocus:ce,onBlur:le,presets:ue,ranges:de,components:fe,cellRender:pe,dateRender:me,monthCellRender:he,onClick:ge}=n,_e=Mn(t),ve=z.useRef(null),[ye,be]=Vr(p,f),[xe,Se]=jn(k,O,x,A),Ce=(e,t)=>{(x.some(e=>!e)||!e)&&Se(e,t)},[we,Te,Ee,De,Oe]=Vn(M,j,o,!0,!1,h,g,ne,re),ke=Ee(),[Ae,je,Me]=An(L(e=>kn(e,[_e.current.nativeElement,ve.current])),(e,t)=>{ce?.(t,{range:Wr(e)})},(e,t)=>{le?.(t,{range:Wr(e)})},()=>{Ce(!1)}),[Ne,Pe,Fe]=Hn(n,we,Te,Ee,De,x,o,c),Ie=L((e,t)=>{De(Jt(Ee(),e,t))}),Le=L((e,t)=>{Ne(e,t),t&&Ce(!1,{force:!0})}),Re=x.filter(e=>!e).length,[ze,Be,Ve,He,Ue,We]=Un(Re,_,S,Ee,Ie,Le,Fe);_ee(ze,Ve,_e,ve,Ce),y(e=>{!e&&!xe&&Ue(ze??Be,`popupClose`)},[xe]);let Ge=z.useMemo(()=>{if(!I)return null;let{disabledTime:e}=I,t=e?t=>{let n=Wr(Be),r=Zt(ke,He,Be);return e(t,n,{from:r})}:void 0;return{...I,disabledTime:t}},[I,Be,ke,He]),[Ke,qe]=u([N,N],ee),Je=Ke[Be]||N,Ye=Je===`date`&&Ge?`datetime`:Je,Xe=Ye===N&&Ye!==`time`,Ze=Wn(N,Je,P,F,!0),Qe=yee(ke,x,Be,He,M,j,w),[$e,et]=hn(ke,c,S),[tt,nt]=In(M,j,ke,Ke,xe,Ae,Be,r,Xe,ie,ae,Ge?.defaultOpenValue,R,T,E),rt=L((e,t,n)=>{let r=Jt(Ke,Be,t);if((r[0]!==Ke[0]||r[1]!==Ke[1])&&qe(r),te&&n!==!1){let t=[...ke];e&&(t[Be]=e),te(t,r)}}),it=(e,t)=>Jt(ke,t,e),at=(e,t=`confirm`)=>{Ue(Be,t,e??void 0)},ot=e=>{let t=e.target.getRootNode();if(!_e.current.nativeElement.contains(t.activeElement??document.activeElement)){let e=x.findIndex(e=>!e);e>=0&&_e.current.focus({index:e})}Ce(!0),ge?.(e)},st=()=>{We(),Pe(null),Ce(!1,{force:!0}),v?.()},[ct,lt]=z.useState(null),[ut,dt]=z.useState(null),ft=z.useMemo(()=>ut||ke,[ke,ut]),pt=ct===`cell`&&!ke[(Be+1)%2]&&!sn(M,ke[Be],we[Be]),mt=ut?.[Be];z.useEffect(()=>{xe||dt(null)},[xe]);let[ht,gt]=z.useState([0,0,0]),_t=(e,t)=>{m===`hover`&&(dt(e),lt(t))},vt=Nn(ue,de),yt=e=>{_t(e,`preset`)},bt=e=>{Pe(e)&&Ce(!1,{force:!0})},xt=e=>{at(e)},St=e=>{_t(e?it(e,Be):null,`cell`)},Ct=e=>{Ce(!0),je(Be,`panel`,e)},wt=e=>{Ue(Be,!a&&r===Ye?`panel-final`:`panel-intermediate`,e)},Tt=()=>{Ce(!1)},Et=mn(pe,me,he,Wr(Be)),Dt=ke[Be]||null,Ot=L(e=>c(e,{activeIndex:Be})),kt=z.useMemo(()=>{let e=C(n,!1);return i(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`disabledTime`,`classNames`,`styles`])},[n]),At=z.createElement(Cr,Hr({containerRef:ve},kt,{showNow:Ze,showTime:Ge,range:!0,multiplePanel:Xe,activeInfo:ht,disabledDate:Qe,onFocus:Ct,onBlur:e=>Me(Be,`panel`,e),picker:N,mode:Je,internalMode:Ye,onPanelChange:rt,format:s,value:Dt,isInvalid:Ot,onChange:null,onSelect:wt,pickerValue:tt,defaultOpenValue:qt(I?.defaultOpenValue)[Be],onPickerValueChange:nt,hoverValue:pt&&mt?[mt]:null,hoverRangeValue:pt?null:ft,onHover:St,needConfirm:_,onSubmit:e=>at(e,`confirm`),onOk:Oe,presets:vt,onPresetHover:yt,onPresetSubmit:bt,onNow:xt,cellRender:Et,classNames:ye,styles:be})),jt=(e,t)=>{Ue(t,`input`,e)},Mt=()=>{Ue(Be,`input`)},Nt=(e,t)=>{Ue(t,`field-switch`),Ce(!0,{inherit:!0}),je(t,`input`,e)},Pt=(e,t)=>{Me(t,`input`,e)},Ft=(e,t)=>{e.key===`Tab`?at(null,`keyboard-submit-weak`):e.key===`Escape`&&(Ue(Be,`esc`),Ce(!1)),b?.(e,t)},It=z.useMemo(()=>({prefixCls:l,locale:j,generateConfig:M,button:fe.button,input:fe.input,classNames:ye,styles:be}),[l,j,M,fe.button,fe.input,ye,be]);return y(()=>{xe&&Be!==void 0&&rt(null,N,!1)},[xe,Be,N]),z.createElement(Wt.Provider,{value:It},z.createElement(Gt,Hr({},Qt(n),{popupElement:At,popupStyle:be.popup.root,popupClassName:D(d,ye.popup.root),visible:xe,onClose:Tt,range:!0}),z.createElement(Br,Hr({},n,{ref:_e,className:D(n.className,d,ye.root),style:{...be.root,...n.style},suffixIcon:se,activeIndex:Ae||xe?Be:null,activeHelp:!!ut,allHelp:!!ut&&ct===`preset`,focused:Ae,onFocus:Nt,onBlur:Pt,onKeyDown:Ft,onSubmit:()=>at(null,`keyboard-submit`),value:ft,maskFormat:s,onChange:jt,onInputChange:Mt,format:o,inputReadOnly:oe,disabled:x,open:xe,onOpenChange:Ce,onClick:ot,onClear:st,invalid:$e,onInvalid:et,onActiveInfo:gt}))))}var Iee=z.forwardRef(Fee);function Lee(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 z.createElement(`span`,{className:D(`${d}-item`),title:typeof e==`string`?e:null},z.createElement(`span`,{className:`${d}-item-content`},e),!o&&t&&z.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 z.createElement(`div`,{className:u},z.createElement(I,{prefixCls:f,data:n,renderItem:m,renderRest:h,itemKey:e=>a(e),maxCount:s}),!n.length&&z.createElement(`span`,{className:`${t}-selection-placeholder`},l))}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 Ree(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:w,multiple:T,maxTagCount:E,tagRender:O,format:k,maskFormat:A,preserveInvalidOnBlur:j,onInvalid:M,disabled:N,invalid:P,inputReadOnly:F,direction:I,onOpenChange:ee,onMouseDown:te,required:ne,"aria-required":L,autoFocus:re,tabIndex:ie,removeIcon:ae,...R}=e,oe=I===`rtl`,{prefixCls:se,classNames:ce,styles:le}=z.useContext(Wt),ue=z.useRef(null),de=z.useRef(null);z.useImperativeHandle(t,()=>({nativeElement:ue.current,focus:e=>{de.current?.focus(e)},blur:()=>{de.current?.blur()}}));let fe=Er(R),me=e=>{S([e],`input`)},he=e=>{let t=x.filter(t=>t&&!ln(m,p,t,e,b));S(t,r?`input`:`remove`)},[ge,_e]=wr({...e,onChange:me},({valueTexts:e})=>({value:e[0]||``,active:l})),ve=pe(a)&&!!x.length&&!N,ye=T?z.createElement(z.Fragment,null,z.createElement(Lee,{prefixCls:se,value:x,onRemove:he,formatDate:_e,maxTagCount:E,tagRender:O,disabled:N,removeIcon:ae,placeholder:h}),z.createElement(`input`,{className:`${se}-multiple-input`,value:x.map(_e).join(`,`),ref:de,readOnly:!0,autoFocus:re,tabIndex:ie}),z.createElement(Or,{icon:o}),ve&&z.createElement(Ar,{icon:a,onClear:y})):z.createElement(Lr,Gr({ref:de},ge(),{autoFocus:re,tabIndex:ie,suffixIcon:o,clearIcon:ve&&z.createElement(Ar,{icon:a,onClear:y}),showActiveCls:!1}));return z.createElement(`div`,Gr({},fe,{className:D(se,{[`${se}-multiple`]:T,[`${se}-focused`]:l,[`${se}-disabled`]:N,[`${se}-invalid`]:P,[`${se}-rtl`]:oe},g),style:_,ref:ue,onClick:v,onMouseDown:e=>{let{target:t}=e;t!==de.current?.inputElement&&e.preventDefault(),te?.(e)}}),pe(i)&&z.createElement(`div`,{className:D(`${se}-prefix`,ce.prefix),style:le.prefix},i),ye)}var zee=z.forwardRef(Ree);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 Bee(e,t){let[n,r,a,o,s,c]=On(e),{prefixCls:l,rootClassName:d,styles:f,classNames:p,previewValue:m,order:h,defaultValue:g,value:_,needConfirm:v,onChange:b,onClear:x,onKeyDown:S,disabled:w,disabledDate:T,minDate:E,maxDate:O,defaultOpen:k,open:A,onOpenChange:j,locale:M,generateConfig:N,picker:P,showNow:F,showToday:I,showTime:ee,mode:te,onPanelChange:ne,onCalendarChange:re,onOk:ie,multiple:ae,defaultPickerValue:R,pickerValue:oe,onPickerValueChange:se,inputReadOnly:ce,suffixIcon:le,removeIcon:ue,tagRender:de,onFocus:fe,onBlur:pe,presets:me,components:he,cellRender:ge,dateRender:_e,monthCellRender:ve,onClick:ye}=n,be=Mn(t),xe=z.useRef(null);function Se(e){return e===null?null:ae?e:e[0]}let Ce=Xn(N,M,r),[we,Te]=Vr(p,f),[Ee,De]=jn(A,k,[w],j),[Oe,ke,Ae,je,Me]=Vn(N,M,o,!1,h,g,_,(e,t,n)=>{if(re){let r={...n};delete r.range,re(Se(e),Se(t),r)}},e=>{ie?.(Se(e))}),Ne=Ae(),[Pe,Fe,Ie]=An(L(e=>kn(e,[be.current.nativeElement,xe.current])),(e,t)=>{fe?.(t,{})},(e,t)=>{pe?.(t,{})},()=>{De(!1)}),[Le,Re]=u(P,te),ze=Le===`date`&&ee?`datetime`:Le,Be=Wn(P,Le,F,I),Ve=b&&((e,t)=>{b(Se(e),Se(t))}),[,He,Ue]=Hn({...n,onChange:Ve},Oe,ke,Ae,je,[],o,c),[,We,,,Ge,Ke]=Un(1,v,[!1],L(()=>{let e=Ae();return[e.length?e:null]}),L((e,t)=>{je(t)}),L((e,t)=>{t&&(He(Ae()),De(!1,{force:!0}))}),L(()=>{Ue()}));y(e=>{!e&&!Ee&&Ge(0,`popupClose`)},[Ee]);let[qe,Je]=hn(Ne,c),Ye=z.useMemo(()=>qe.some(e=>e),[qe]),[Xe,Ze]=In(N,M,Ne,[Le],Ee,!1,We,r,!1,R,oe,qt(ee?.defaultOpenValue),(e,t)=>{if(se){let n={...t,mode:t.mode[0]};delete n.range,se(e[0],n)}},E,O),Qe=L((e,t,n)=>{if(Re(t),ne&&n!==!1){let n=e||Ne[Ne.length-1];ne(n,t)}}),$e=(e=`confirm`)=>{Ge(0,e)},et=e=>{!w&&!be.current.nativeElement.contains(document.activeElement)&&be.current.focus(),De(!0),ye?.(e)},tt=()=>{Ke(),He(null),De(!1,{force:!0}),be.current.focus(),x?.()},[nt,rt]=z.useState(null),[it,at]=z.useState(null),ot=z.useMemo(()=>{let e=[it,...Ne].filter(e=>e);return ae?e:e.slice(0,1)},[Ne,it,ae]),st=z.useMemo(()=>!ae&&it?[it]:Ne.filter(e=>e),[Ne,it,ae]);z.useEffect(()=>{Ee||at(null)},[Ee]);let ct=(e,t)=>{m===`hover`&&(at(e),rt(t))},lt=Nn(me),ut=e=>{ct(e,`preset`)},dt=e=>{let t=ae?Ce(Ae(),e):[e];He(t)&&!ae&&De(!1,{force:!0})},ft=e=>{dt(e)},pt=e=>{ct(e,`cell`)},mt=e=>{De(!0),Fe(0,`panel`,e)},ht=e=>{if(ae&&ze!==P)return;let t=ae?Ce(Ae(),e):[e];Ge(0,!a&&r===ze?`panel-final`:`panel-intermediate`,t)},gt=()=>{De(!1)},_t=mn(ge,_e,ve),vt=z.useMemo(()=>{let e=C(n,!1);return{...i(n,[...Object.keys(e),`onChange`,`onCalendarChange`,`onClear`,`style`,`className`,`onPanelChange`,`classNames`,`styles`]),multiple:n.multiple}},[n]),yt=z.createElement(Cr,Kr({containerRef:xe},vt,{showNow:Be,showTime:ee,disabledDate:T,onFocus:mt,onBlur:e=>Ie(0,`panel`,e),picker:P,mode:Le,internalMode:ze,onPanelChange:Qe,format:s,value:Ne,isInvalid:c,onChange:null,onSelect:ht,pickerValue:Xe,defaultOpenValue:ee?.defaultOpenValue,onPickerValueChange:Ze,hoverValue:ot,onHover:pt,needConfirm:v,onSubmit:()=>$e(`confirm`),onOk:Me,presets:lt,onPresetHover:ut,onPresetSubmit:dt,onNow:ft,cellRender:_t,classNames:we,styles:Te})),bt=(e,t=`input`)=>{Ge(0,t,e)},xt=()=>{Ge(0,`input`)},St=e=>{Ge(0,`field-switch`),De(!0,{inherit:!0}),Fe(0,`input`,e)},Ct=e=>{Ie(0,`input`,e)},wt=(e,t)=>{e.key===`Tab`?$e(`keyboard-submit-weak`):e.key===`Escape`&&(Ge(0,`esc`),De(!1)),S?.(e,t)},Tt=z.useMemo(()=>({prefixCls:l,locale:M,generateConfig:N,button:he.button,input:he.input,classNames:we,styles:Te}),[l,M,N,he.button,he.input,we,Te]);return y(()=>{Ee&&We!==void 0&&Qe(null,P,!1)},[Ee,We,P]),z.createElement(Wt.Provider,{value:Tt},z.createElement(Gt,Kr({},Qt(n),{popupElement:yt,popupStyle:Te.popup.root,popupClassName:D(d,we.popup.root),visible:Ee,onClose:gt}),z.createElement(zee,Kr({},n,{ref:be,className:D(n.className,d,we.root),style:{...Te.root,...n.style},suffixIcon:le,removeIcon:ue,tagRender:de,activeHelp:!!it,allHelp:!!it&&nt===`preset`,focused:Pe,onFocus:St,onBlur:Ct,onKeyDown:wt,onSubmit:()=>$e(`keyboard-submit`),value:st,maskFormat:s,onChange:bt,onInputChange:xt,internalPicker:r,format:o,inputReadOnly:ce,disabled:w,open:Ee,onOpenChange:De,onClick:et,onClear:tt,invalid:Ye,onInvalid:e=>{Je(e,0)}}))))}var Vee=z.forwardRef(Bee),Hee=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:_(t),itemLineHeight:_(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},Uee=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":{...he(),display:`inline-flex`,alignItems:`center`,color:c,fontWeight:`bold`,fontSize:10,lineHeight:`inherit`,cursor:`pointer`,[`> ${n}`]:{verticalAlign:`-0.2em`},"&:hover":{color:l}}}}}},qr=(e,t)=>{let{componentCls:n,controlHeight:r}=e,i=t?`${n}-${t}`:``,a=Hee(e);return[{[`${n}-multiple${i}`]:{paddingBlock:a.containerPadding,paddingInlineStart:a.basePadding,minHeight:r,[`${n}-selection-item`]:{height:a.itemHeight,lineHeight:_(a.itemLineHeight)}}}]},Wee=e=>{let{componentCls:t,calc:n,lineWidth:r}=e,i=ve(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),a=ve(e,{fontHeight:n(e.multipleItemHeightLG).sub(n(r).mul(2).equal()).equal(),fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius,controlHeight:e.controlHeightLG});return[qr(i,`small`),qr(e),qr(a,`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}},...Uee(e),[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:`hidden`,position:`absolute`,zIndex:-1}}}]},Gee=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:_(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:`${_(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}}},Kee=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:g,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:M,borderRadiusSM:N,colorTextLightSolid:P,cellHoverBg:F,timeColumnHeight:I,timeColumnWidth:ee,timeCellHeight:te,controlItemBgActive:ne,marginXXS:L,pickerDatePanelPaddingHorizontal:re,pickerControlIconMargin:ie}=e,ae=e.calc(o).mul(7).add(e.calc(re).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:ae},"&-header":{display:`flex`,padding:`0 ${_(c)}`,color:h,borderBottom:`${_(d)} ${f} ${g}`,"> *":{flex:`none`},button:{padding:0,color:y,lineHeight:_(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:_(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:ie,insetInlineStart:ie,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:`${_(T)} 0`,color:E,cursor:`pointer`,"&-in-view":{color:D},...Gee(e)},"&-decade-panel, &-year-panel, &-quarter-panel, &-month-panel":{[`${t}-content`]:{height:e.calc(A).mul(4).equal()},[r]:{padding:`0 ${_(c)}`}},"&-quarter-panel":{[`${t}-content`]:{height:M}},"&-decade-panel":{[r]:{padding:`0 ${_(e.calc(c).div(2).equal())}`},[`${t}-cell::before`]:{display:`none`}},"&-year-panel, &-quarter-panel, &-month-panel":{[`${t}-body`]:{padding:`0 ${_(c)}`},[r]:{width:i}},"&-date-panel":{[`${t}-body`]:{padding:`${_(c)} ${_(re)}`},[`${t}-content th`]:{boxSizing:`border-box`,padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background-color ${x}`},"&:first-child:before":{borderStartStartRadius:N,borderEndStartRadius:N},"&:last-child:before":{borderStartEndRadius:N,borderEndEndRadius:N}},"&:hover td:before":{background:F},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:m},[`&${t}-cell-week`]:{color:new j(P).setA(.5).toHexString()},[r]:{color:P}}},"&-range-hover td:before":{background:ne}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${_(c)} ${_(s)}`},[`${t}-content th`]:{width:`auto`}},"&-datetime-panel":{display:`flex`,[`${t}-time-panel`]:{borderInlineStart:`${_(d)} ${f} ${g}`},[`${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:I},"&-column":{flex:`1 0 auto`,width:ee,margin:`${_(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% - ${_(te)})`,content:`""`},"&:not(:first-child)":{borderInlineStart:`${_(d)} ${f} ${g}`},"&-active":{background:new j(ne).setA(.2).toHexString()},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:L,[`${t}-time-panel-cell-inner`]:{display:`block`,width:e.calc(ee).sub(e.calc(L).mul(2)).equal(),height:te,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(ee).sub(te).div(2).equal(),color:D,lineHeight:_(te),borderRadius:N,cursor:`pointer`,transition:`background-color ${x}`,"&:hover":{background:F}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:ne}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:E,background:`transparent`,cursor:`not-allowed`}}}}}}}}},qee=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:`${_(r)} ${l} ${u}`,"&-extra":{padding:`0 ${_(i)}`,lineHeight:_(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:`start`,"&:not(:last-child)":{borderBottom:`${_(r)} ${l} ${u}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:`space-between`},[`${t}-ranges`]:{marginBlock:0,paddingInline:_(i),overflow:`hidden`,textAlign:`start`,listStyle:`none`,display:`flex`,justifyContent:`center`,alignItems:`center`,"> li":{lineHeight:_(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`}}}}},Jee=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()}},Yee=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 j(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new j(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`}},Xee=e=>({...We(e),...Yee(e),...Oe(e),presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),Zee=e=>{let{componentCls:t}=e;return{[t]:[{...Be(e),...Ve(e),...Ge(e),...ze(e)},{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${_(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${_(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},Jr=(e,t)=>({padding:`${_(e)} ${_(t)}`}),Qee=e=>{let{componentCls:t,colorError:n,colorWarning:r}=e,[i]=g(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}}}}},$ee=e=>{let{componentCls:t,antCls:n,paddingInline:r,lineWidth:i,lineType:o,colorBorder:s,borderRadius:c,motionDurationMid:l,colorTextDisabled:u,colorTextPlaceholder:d,colorTextQuaternary:f,fontSizeLG:p,inputFontSizeLG:m,fontSizeSM:v,inputFontSizeSM:y,controlHeightSM:b,paddingInlineSM:x,paddingXS:S,marginXS:C,colorIcon:w,lineWidthBold:T,colorPrimary:D,motionDurationSlow:k,zIndexPopup:A,paddingXXS:j,sizePopupArrow:M,colorBgElevated:N,borderRadiusLG:P,boxShadowSecondary:F,borderRadiusSM:I,colorSplit:ee,cellHoverBg:ne,presetsWidth:L,presetsMaxWidth:re,boxShadowPopoverArrow:ie,fontHeight:ae,lineHeightLG:oe}=e,[se,ce]=g(n,`date-picker`);return[{[t]:{[se(`affix-color`)]:`inherit`,...te(e),...Jr(e.paddingBlock,e.paddingInline),position:`relative`,display:`inline-flex`,alignItems:`center`,lineHeight:1,borderRadius:c,transition:[`border`,`box-shadow`,`background-color`].map(e=>`${e} ${l}`).join(`, `),[`${t}-prefix`]:{color:ce(`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 ${l}`,...He(d),flex:`auto`,minWidth:1,height:`auto`,padding:0,background:`transparent`,border:0,fontFamily:`inherit`,"&:focus":{boxShadow:`none`,outline:0},"&[disabled]":{background:`transparent`,color:u,cursor:`not-allowed`}},"&-placeholder":{"> input":{color:d}}},"&-large":{...Jr(e.paddingBlockLG,e.paddingInlineLG),borderRadius:e.borderRadiusLG,[`${t}-input > input`]:{fontSize:m??p,lineHeight:oe}},"&-small":{...Jr(e.paddingBlockSM,e.paddingInlineSM),borderRadius:e.borderRadiusSM,[`${t}-input > input`]:{fontSize:y??v}},[`${t}-suffix`]:{display:`flex`,flex:`none`,alignSelf:`center`,marginInlineStart:e.calc(S).div(2).equal(),color:f,lineHeight:1,pointerEvents:`none`,transition:[`opacity`,`color`].map(e=>`${e} ${l}`).join(`, `),"> *":{verticalAlign:`top`,"&:not(:last-child)":{marginInlineEnd:C}}},[`${t}-clear`]:{position:`absolute`,top:`50%`,insetInlineEnd:0,color:f,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} ${l}`).join(`, `),"> *":{verticalAlign:`top`},"&:hover":{color:w},"&:focus-visible":{color:e.colorIcon,borderRadius:e.borderRadiusSM,...O(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:p,color:f,fontSize:p,verticalAlign:`top`,cursor:`default`,[`${t}-focused &`]:{color:w},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:`not-allowed`}}},"&-range":{position:`relative`,display:`inline-flex`,[`${t}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:T,background:D,opacity:0,transition:`all ${k} ease-out`,pointerEvents:`none`},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:`center`,padding:`0 ${_(S)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:r},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:x}}},"&-dropdown":{...te(e),...Kee(e),pointerEvents:`none`,position:`absolute`,top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:A,[`&${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:a},[`&${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:h},[`&${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:E},[`&${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:ue},[`${t}-panel > ${t}-time-panel`]:{paddingTop:j},[`${t}-range-wrapper`]:{display:`flex`,position:`relative`},[`${t}-range-arrow`]:{position:`absolute`,zIndex:1,display:`none`,paddingInline:e.calc(r).mul(1.5).equal(),boxSizing:`content-box`,transition:`all ${k} ease-out`,...we(e,N,ie),"&:before":{insetInlineStart:e.calc(r).mul(1.5).equal()}},[`${t}-panel-container`]:{overflow:`hidden`,verticalAlign:`top`,background:N,borderRadius:P,boxShadow:F,transition:`margin ${k}`,display:`inline-block`,pointerEvents:`auto`,[`${t}-panel-layout`]:{display:`flex`,flexWrap:`nowrap`,alignItems:`stretch`},[`${t}-presets`]:{display:`flex`,flexDirection:`column`,minWidth:L,maxWidth:re,ul:{height:0,flex:`auto`,listStyle:`none`,overflow:`auto`,margin:0,padding:S,borderInlineEnd:`${_(i)} ${o} ${ee}`,li:{...R,borderRadius:I,paddingInline:S,paddingBlock:e.calc(b).sub(ae).div(2).equal(),cursor:`pointer`,transition:`all ${k}`,"+ li":{marginTop:C},"&:hover":{background:ne}}}},[`${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:s}}}},"&-dropdown-range":{padding:`${_(e.calc(M).mul(2).div(3).equal())} 0`,"&-hidden":{display:`none`}},"&-rtl":{direction:`rtl`,[`${t}-separator`]:{transform:`scale(-1, 1)`},[`${t}-footer`]:{"&-extra":{direction:`rtl`}}}}},Se(e,`slide-up`),Se(e,`slide-down`),Ye(e,`move-up`),Ye(e,`move-down`)]},Yr=de(`DatePicker`,e=>{let t=ve(Ue(e),Jee(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[qee(t),$ee(t),Zee(t),Qee(t),Wee(t),l(e,{focusElCls:`${e.componentCls}-focused`})]},Xee),Xr=z.createContext({}),Zr=`__rc_cascader_search_mark__`,ete=(e,t,{label:n=``})=>t.some(t=>String(t[n]).toLowerCase().includes(e.toLowerCase())),tte=(e,t,n,r)=>t.map(e=>e[r.label]).join(` / `),nte=(e,t,n,r,i,a)=>{let{filter:o=ete,render:s=tte,limit:c=50,sort:l}=i;return z.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),[Zr]:p,[n.children]:void 0}),m&&u(t[n.children],p,h)})}return u(t,[]),l&&i.sort((t,r)=>l(t[Zr],r[Zr],e,n)),c!==!1&&c>0?i.slice(0,c):i},[e,t,n,r,s,a,o,l,c])},Qr=`__RC_CASCADER_SPLIT__`,$r=`SHOW_PARENT`,rte=`SHOW_CHILD`;function ei(e){return e.join(Qr)}function ti(e){return e.map(ei)}function ite(e){return e.split(Qr)}function ni(e){let{label:t,value:n,children:r}=e||{},i=n||`value`;return{label:t||`label`,value:i,key:i,children:r||`children`}}function ri(e,t){return e.isLeaf??!e[t.children]?.length}function ii(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 ai(e,t){return e.map(e=>e[Zr]?.map(e=>e[t.value]))}function ate(e){return Array.isArray(e)&&Array.isArray(e[0])}function oi(e){return e?ate(e)?e:(e.length===0?[]:[e]).map(e=>Array.isArray(e)?e:[e]):[]}function si(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 ci(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 ote=((e,t,n,r,i)=>z.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=z.isValidElement(t)?z.cloneElement(t,{key:n}):t;return n===0?[r]:[...e,` / `,r]},[])});return e.map(e=>{let r=ci(e,t,n),i=a(r.map(({option:e,value:t})=>e?.[n.label]??t),r.map(({option:e})=>e)),o=ei(e);return{label:i,value:o,key:o,valueCells:e,disabled:r[r.length-1]?.option?.disabled}})},[e,t,n,i,r]));function li(e,t){return z.useCallback(n=>{let r=[],i=[];return n.forEach(n=>{ci(n,e,t).every(e=>e.option)?i.push(n):r.push(n)}),[i,r]},[e,t])}var ste=((e,t)=>{let n=z.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}});return z.useCallback(()=>(n.current.options!==e&&(n.current.options=e,n.current.info=je(e,{fieldNames:t,initWrapper:e=>({...e,pathKeyEntities:{}}),processEntity:(e,n)=>{let r=e.nodes.map(e=>e[t.value]).join(Qr);n.pathKeyEntities[r]=e,e.key=r}})),n.current.info.pathKeyEntities),[t,e])});function ui(e,t){let n=z.useMemo(()=>t||[],[t]),r=ste(n,e);return[n,r,z.useCallback(t=>{let n=r();return t.map(t=>{let{nodes:r}=n[t];return r.map(t=>t[e.value])})},[r,e])]}function cte(e,t){let{autoClearSearchValue:n,searchValue:r,onSearch:i}=t;return z.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 di(e,t,n,r,i,a,o,s){return c=>{if(!e)t(c);else{let e=ei(c),l=ti(n),u=ti(r),d=l.includes(e),f=i.some(t=>ei(t)===e),p=n,m=i;if(f&&!d)m=i.filter(t=>ei(t)!==e);else{let t=d?l.filter(t=>t!==e):[...l,e],n=a(),r;d?{checkedKeys:r}=Ie(t,{checked:!1,halfCheckedKeys:u},n):{checkedKeys:r}=Ie(t,!0,n),p=o(si(r,a,s))}t([...m,...p])}}}function fi(e,t,n,r,i){return z.useMemo(()=>{let[a,o]=i(t);if(!e||!t.length)return[a,[],o];let s=ti(a),c=n(),{checkedKeys:l,halfCheckedKeys:u}=Ie(s,!0,c);return[r(l),r(u),o]},[e,t,n,r,i])}function lte({prefixCls:e,checked:t,halfChecked:n,disabled:r,onClick:i,disableCheckbox:a}){let{checkable:o}=z.useContext(Xr),s=typeof o==`boolean`?null:o;return z.createElement(`span`,{className:D(`${e}`,{[`${e}-checked`]:t,[`${e}-indeterminate`]:!t&&n,[`${e}-disabled`]:r||a}),onClick:i},s)}function pi(){return pi=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},pi.apply(this,arguments)}var ute=`__cascader_fix_label__`;function dte({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=z.useRef(null),{fieldNames:g,changeOnSelect:_,expandTrigger:v,expandIcon:y,loadingIcon:b,popupMenuColumnStyle:x,optionRender:S,classNames:w,styles:T}=z.useContext(Xr),E=v===`hover`,O=e=>f||e,k=z.useMemo(()=>n.map(e=>{let{disabled:t,disableCheckbox:n}=e,r=e[Zr],a=e.__cascader_fix_label__??e[g.label],o=e[g.value],s=ri(e,g),d=r?r.map(e=>e[g.value]):[...i,o],f=ei(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 z.useEffect(()=>{if(h.current){let e=`.${m}-active`,t=h.current.querySelector(e);t&&ii(t)}},[r,m]),z.createElement(`ul`,{className:D(p,w?.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=C(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),z.createElement(`li`,pi({key:v},A,{className:D(m,w?.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&&z.createElement(lte,{prefixCls:`${e}-checkbox`,checked:f,halfChecked:p,disabled:O(n)||k,disableCheckbox:k,onClick:e=>{k||(e.stopPropagation(),M())}}),z.createElement(`div`,{className:`${m}-content`},S&&c!==`__EMPTY__`?S(h):i),!u&&y&&!l&&z.createElement(`div`,{className:`${m}-expand-icon`},y),u&&b&&z.createElement(`div`,{className:`${m}-loading-icon`},b))}))}var fte=(e,t)=>{let{values:n}=z.useContext(Xr),r=n[0],[i,a]=z.useState([]);return z.useEffect(()=>{e||a(r||[])},[t,r]),[i,a]},pte=((e,t,n,r,i,a,o)=>{let{direction:s,searchValue:c,toggleOpen:l,open:u}=o,d=s===`rtl`,[f,p,m,h]=z.useMemo(()=>{let e=-1,i=t,a=[],o=[],s=r.length,c=ai(t,n);for(let t=0;t<s&&i;t+=1){let s=i.findIndex((e,i)=>(c[i]?ei(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]?ei(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)}};z.useImperativeHandle(e,()=>({onKeyDown:e=>{let{which:t}=e;switch(t){case F.UP:case F.DOWN:{let e=0;t===F.UP?e=-1:t===F.DOWN&&(e=1),e!==0&&_(e);break}case F.LEFT:if(c)break;d?y():v();break;case F.RIGHT:if(c)break;d?v():y();break;case F.BACKSPACE:c||v();break;case F.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 F.ESC:l(!1),u&&e.stopPropagation()}},onKeyUp:()=>{}}))});function mi(){return mi=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},mi.apply(this,arguments)}var hi=z.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=z.useRef(null),f=s===`rtl`,{options:p,values:m,halfValues:h,fieldNames:g,changeOnSelect:_,onSelect:v,searchOptions:y,popupPrefixCls:b,loadData:x,expandTrigger:S}=z.useContext(Xr),C=b||n,[w,T]=z.useState([]),E=e=>{if(!x||i)return;let t=ci(e,p,g).map(({option:e})=>e),n=t[t.length-1];if(n&&!ri(n,g)){let n=ei(e);T(e=>[...e,n]),x(t)}};z.useEffect(()=>{w.length&&w.forEach(e=>{let t=ci(ite(e),p,g,!0).map(({option:e})=>e),n=t[t.length-1];(!n||n[g.children]||ri(n,g))&&T(t=>t.filter(t=>t!==e))})},[p,w,g]);let O=z.useMemo(()=>new Set(ti(m)),[m]),k=z.useMemo(()=>new Set(ti(h)),[h]),[A,j]=fte(r,c),M=e=>{j(e),E(e)},N=e=>{if(l)return!1;let{disabled:t}=e,n=ri(e,g);return!t&&(n||_||r)},P=(e,t,n=!1)=>{v(e),!r&&(t||_&&(S===`hover`||n))&&a(!1)},F=z.useMemo(()=>i?y:p,[i,y,p]),I=be(()=>F,[c,u],(e,t)=>!!t[0]&&!t[1]),ee=z.useMemo(()=>{let e=[{options:I}],t=I,n=ai(t,g);for(let r=0;r<A.length;r+=1){let i=A[r],a=t.find((e,t)=>(n[t]?ei(n[t]):e[g.value])===i)?.[g.children];if(!a?.length)break;t=a,e.push({options:a})}return e},[I,A,g]);pte(t,I,g,A,M,(e,t)=>{N(t)&&P(e,ri(t,g),!0)},{direction:s,searchValue:i,toggleOpen:a,open:c}),z.useEffect(()=>{if(!i)for(let e=0;e<A.length;e+=1){let t=ei(A.slice(0,e+1)),n=d.current?.querySelector(`li[data-path-key="${t.replace(/\\{0,2}"/g,`\\"`)}"]`);n&&ii(n)}},[A,i]);let te=!ee[0]?.options?.length,ne=[{[g.value]:`__EMPTY__`,[ute]:o,disabled:!0}],L={...e,multiple:!te&&r,onSelect:P,onActive:M,onToggleOpen:a,checkedSet:O,halfCheckedSet:k,loadingKeys:w,isSelectable:N},re=(te?[{options:ne}]:ee).map((e,t)=>{let n=A.slice(0,t),r=A[t];return z.createElement(dte,mi({key:t},L,{prefixCls:C,options:e.options,prevValuePath:n,activeValue:r}))});return z.createElement(`div`,{className:D(`${C}-menus`,{[`${C}-menu-empty`]:te,[`${C}-rtl`]:f}),ref:d},re)});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 mte=z.forwardRef((e,t)=>{let{lockOptions:n,...r}=Dt();return z.createElement(hi,gi({},e,r,{lockOptions:n,ref:t}))});function hte(){}function _i(e){let{prefixCls:t=`rc-cascader`,style:n,className:r,options:i,checkable:a,defaultValue:o,value:s,fieldNames:c,changeOnSelect:l,onChange:d,showCheckedStrategy:f,loadData:p,expandTrigger:m,expandIcon:h=`>`,loadingIcon:g,direction:_,notFoundContent:v=`Not Found`,disabled:y,optionRender:b}=e,x=!!a,[S,C]=u(o,s),w=oi(S),T=z.useMemo(()=>ni(c),[JSON.stringify(c)]),[E,O,k]=ui(T,i),[A,j,M]=fi(x,w,O,k,li(E,T)),N=di(x,L(e=>{if(C(e),d){let t=oi(e),n=t.map(e=>ci(e,E,T).map(e=>e.option)),r=x?t:t[0],i=x?n:n[0];d(r,i)}}),A,j,M,O,k,f),P=L(e=>{N(e)}),F=z.useMemo(()=>({options:E,fieldNames:T,values:A,halfValues:j,changeOnSelect:l,onSelect:P,checkable:a,searchOptions:[],popupPrefixCls:void 0,loadData:p,expandTrigger:m,expandIcon:h,loadingIcon:g,popupMenuColumnStyle:void 0,optionRender:b}),[E,T,A,j,l,P,a,p,m,h,g,b]),I=`${t}-panel`,ee=!E.length;return z.createElement(Xr.Provider,{value:F},z.createElement(`div`,{className:D(I,{[`${I}-rtl`]:_===`rtl`,[`${I}-empty`]:ee},r),style:n},ee?v:z.createElement(hi,{prefixCls:t,searchValue:``,multiple:x,toggleOpen:hte,open:!0,direction:_,disabled:y})))}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 yi=z.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-cascader`,fieldNames:i,defaultValue:a,value:o,changeOnSelect:c,onChange:l,displayRender:d,checkable:f,showSearch:p,expandTrigger:m,options:h,popupPrefixCls:g,loadData:_,open:v,popupClassName:y,popupMenuColumnStyle:b,popupStyle:x,classNames:S,styles:C,placement:w,onPopupVisibleChange:T,expandIcon:E=`>`,loadingIcon:D,children:O,popupMatchSelectWidth:k=!1,showCheckedStrategy:A=$r,optionRender:j,...M}=e,N=s(n),P=!!f,[F,I]=u(a,o),ee=oi(F),te=z.useMemo(()=>ni(i),[JSON.stringify(i)]),[ne,re,ie]=ui(te,h),[ae,R]=cte(p,e),{autoClearSearchValue:oe=!0,searchValue:se,onSearch:ce}=R,[le,ue]=u(``,se),de=le||``,fe=(e,t)=>{ue(e),t.source!==`blur`&&ce&&ce(e)},pe=nte(de,ne,te,g||r,R,c||P),[me,he,ge]=fi(P,ee,re,ie,li(ne,te)),_e=ote(z.useMemo(()=>{let e=si(ti(me),re,A);return[...ge,...ie(e)]},[me,re,ie,ge,A]),ne,te,P,d),ve=L(e=>{if(I(e),l){let t=oi(e),n=t.map(e=>ci(e,ne,te).map(e=>e.option)),r=P?t:t[0],i=P?n:n[0];l(r,i)}}),ye=di(P,ve,me,he,ge,re,ie,A),be=L(e=>{(!P||oe)&&ue(``),ye(e)}),xe=(e,t)=>{if(t.type===`clear`){ve([]);return}let{valueCells:n}=t.values[0];be(n)},Se=e=>{T?.(e)},Ce=z.useMemo(()=>({classNames:S,styles:C,options:ne,fieldNames:te,values:me,halfValues:he,changeOnSelect:c,onSelect:be,checkable:f,searchOptions:pe,popupPrefixCls:g,loadData:_,expandTrigger:m,expandIcon:E,loadingIcon:D,popupMenuColumnStyle:b,optionRender:j}),[S,C,ne,te,me,he,c,be,f,pe,g,_,m,E,D,b,j]),we=!(de?pe:ne).length,Te=de&&R.matchInputWidth||we?{}:{minWidth:`auto`};return z.createElement(Xr.Provider,{value:Ce},z.createElement(At,vi({},M,{ref:t,id:N,prefixCls:r,autoClearSearchValue:oe,popupMatchSelectWidth:k,classNames:S,styles:C,popupStyle:{...Te,...x},displayValues:_e,onDisplayValuesChange:xe,mode:P?`multiple`:void 0,searchValue:de,onSearch:fe,showSearch:ae,OptionList:mte,emptyOptions:we,open:v,popupClassName:y,placement:w,onPopupVisibleChange:Se,getRawInputElement:()=>O})))});yi.SHOW_PARENT=$r,yi.SHOW_CHILD=rte,yi.Panel=_i;var bi=yi;function xi(e,t){let{getPrefixCls:n,direction:r,renderEmpty:i}=z.useContext(o),a=t||r;return[n(`select`,e),n(`cascader`,e),a,i]}function Si(e,t){return z.useMemo(()=>t?z.createElement(`span`,{className:`${e}-checkbox-inner`}):!1,[e,t])}var gte=z.createElement(se,{spin:!0}),_te=z.createElement(v,null),vte=z.createElement(Xe,null);function Ci({contextExpandIcon:e,contextLoadingIcon:t,expandIcon:n,loadingIcon:r,isRtl:i}){return z.useMemo(()=>({expandIcon:n??e??(i?vte:_te),loadingIcon:r??t??gte}),[e,t,n,i,r])}var wi=e=>{let{prefixCls:t,componentCls:n}=e,r=`${n}-menu-item`,i=`
&${r}-expand ${r}-expand-icon,
${r}-loading-icon
`;return[tt(`${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`,[r]:{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:`${_(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`},[i]:{color:e.colorTextDisabled}},[`&-active:not(${r}-disabled)`]:{"&, &:hover":{color:e.optionSelectedColor,fontWeight:e.optionSelectedFontWeight,backgroundColor:e.optionSelectedBg}},"&-content":{flex:`auto`,minWidth:0,...R},[i]:{marginInlineStart:e.paddingXXS,color:e.colorIcon,fontSize:e.fontSizeIcon},"&-keyword":{color:e.colorHighlight}}}}}]},yte=e=>{let{componentCls:t,antCls:n}=e;return[{[t]:{width:e.controlWidth}},{[`${t}-dropdown`]:[{[`&${n}-select-dropdown`]:{padding:0}},wi(e)]},{[`${t}-dropdown-rtl`]:{direction:`rtl`}},l(e)]},Ti=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}},Ei=de(`Cascader`,yte,Ti,{resetFont:!1,unitless:{optionSelectedFontWeight:!0}}),bte=f([`Cascader`,`Panel`],e=>{let{componentCls:t}=e;return{[`${t}-panel`]:[wi(e),{display:`inline-flex`,border:`${_(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}}]}},Ti,{resetFont:!1});function xte(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}=p(`cascader`),f=z.useContext(N),m=l??f,[h,g,_,v]=xi(t,o),y=xe(g),[b,x]=Ei(g,y);bte(g);let{expandIcon:S,loadingIcon:C}=Ci({contextExpandIcon:u,contextLoadingIcon:d,expandIcon:s,loadingIcon:c,isRtl:_===`rtl`}),w=a===void 0?v?.(`Cascader`)||z.createElement(gt,{componentName:`Cascader`}):a,T=Si(g,r);return z.createElement(_i,{...e,checkable:T,prefixCls:g,className:D(n,b,i,x,y),notFoundContent:w,direction:_,expandIcon:S,loadingIcon:C,disabled:m})}var{SHOW_CHILD:Ste,SHOW_PARENT:Cte}=bi,wte=(e,t,n)=>{let r=e.toLowerCase().split(t).reduce((e,n,r)=>r===0?[n]:[].concat(T(e),[t,n]),[]),i=[],a=0;return r.forEach((t,r)=>{let o=a+t.length,s=e.slice(a,o);a=o,r%2==1&&(s=z.createElement(`span`,{className:`${n}-menu-item-keyword`,key:`separator-${r}`},s)),i.push(s)}),i},Tte=(e,t,n,r)=>{let i=[],a=e.toLowerCase();return t.forEach((e,t)=>{t!==0&&i.push(` / `);let o=e[r.label];(re(o)||b(o))&&(o=wte(String(o),a,n)),i.push(o)}),i},Di=z.forwardRef((e,t)=>{let{prefixCls:n,size:i,disabled:a,className:s,rootClassName:l,multiple:u,bordered:d=!0,transitionName:f,choiceTransitionName:m=``,popupClassName:h,expandIcon:g,placement:_,showSearch:v,allowClear:y=!0,notFoundContent:b,direction:x,getPopupContainer:C,status:w,showArrow:T,builtinPlacements:E,style:O,variant:A,dropdownClassName:j,dropdownRender:M,onDropdownVisibleChange:P,onPopupVisibleChange:F,dropdownMenuColumnStyle:I,popupRender:ee,dropdownStyle:te,popupMenuColumnStyle:ne,onOpenChange:L,styles:re,classNames:ie,loadingIcon:R,clearIcon:oe,removeIcon:se,suffixIcon:le,...ue}=e,{getPrefixCls:de,getPopupContainer:fe,className:pe,style:me,classNames:he,styles:_e,expandIcon:ve,loadingIcon:be,clearIcon:Se,removeIcon:we,suffixIcon:Te,searchIcon:De}=p(`cascader`),{popupOverflow:Oe}=z.useContext(o),{status:Ae,hasFeedback:je,isFormItemInput:Me,feedbackIcon:Ne}=z.useContext(ce),Pe=Ce(Ae,w),[Fe,Ie,Le,Re]=xi(n,x),ze=Le===`rtl`,Be=de(),Ve=xe(Fe),[He,Ue]=bt(Fe,Ve),We=xe(Ie);Ei(Ie,We);let{compactSize:Ge,compactItemClassnames:Ke}=k(Fe,x),[qe,Je]=ge(`cascader`,A,d),Ye=b===void 0?Re?.(`Cascader`)||z.createElement(gt,{componentName:`Cascader`}):b,Xe=ft(ee||M),Ze=ne||I,Qe=L||F||P,$e=z.useMemo(()=>{if(!v)return v;let e={render:Tte};return ae(v)&&(e={...e,...v}),e},[v]),et=S(e=>i??Ge??e),tt=z.useContext(N),nt=a??tt,{expandIcon:rt,loadingIcon:it}=Ci({contextExpandIcon:ve,contextLoadingIcon:be,expandIcon:g,loadingIcon:R,isRtl:ze}),at=Si(Ie,u),ot=Ot(e.suffixIcon,T),{suffixIcon:st,removeIcon:ct,clearIcon:lt}=xt({...e,clearIcon:oe,contextClearIcon:Se,removeIcon:se,contextRemoveIcon:we,loadingIcon:it,suffixIcon:le,contextSuffixIcon:Te,searchIcon:ae(v)?v.searchIcon:void 0,contextSearchIcon:De,hasFeedback:je,feedbackIcon:Ne,showSuffixIcon:ot,multiple:u,prefixCls:Fe,componentName:`Cascader`}),ut=z.useMemo(()=>_===void 0?ze?`bottomRight`:`bottomLeft`:_,[_,ze]),dt=y===!0?{clearIcon:lt}:y,pt={...e,variant:qe,size:et,status:Pe,disabled:nt},mt=ye(me),ht=ye(O),[_t,vt]=c([he,ie],[_e,mt,re,ht],{props:pt},{popup:{_default:`root`}}),yt={...vt.popup.root,...te},[Ct]=ke(`SelectLike`,yt?.zIndex),wt=D(h||j,`${Ie}-dropdown`,{[`${Ie}-dropdown-rtl`]:Le===`rtl`},l,Ve,_t.popup.root,We,He,Ue);return z.createElement(bi,{prefixCls:Fe,className:D(!n&&Ie,{[`${Fe}-lg`]:et===`large`,[`${Fe}-sm`]:et===`small`,[`${Fe}-rtl`]:ze,[`${Fe}-${qe}`]:Je,[`${Fe}-in-form-item`]:Me},Ee(Fe,Pe,je),Ke,pe,s,l,_t.root,Ve,We,He,Ue),disabled:nt,style:vt.root,classNames:_t,styles:vt,...ue,builtinPlacements:St(E,Oe),direction:Le,placement:ut,notFoundContent:Ye,allowClear:dt,showSearch:$e,expandIcon:rt,suffixIcon:st,removeIcon:ct,loadingIcon:it,checkable:at,popupClassName:wt,popupPrefixCls:n||Ie,popupStyle:{...yt,zIndex:Ct},popupRender:Xe,popupMenuColumnStyle:Ze,onPopupVisibleChange:Qe,choiceTransitionName:r(Be,``,m),transitionName:r(Be,`slide-up`,f),getPopupContainer:C||fe,ref:t})}),Ete=Ze(Di,`popupAlign`,e=>i(e,[`visible`]));Di.SHOW_PARENT=Cte,Di.SHOW_CHILD=Ste,Di.Panel=xte,Di._InternalPanelDoNotUseOrYouWillBeFired=Ete;var Oi=(e,t,n,r,i,a,o)=>{let{classNames:s,style:l,styles:u}=p(e),d=ye(o===null?void 0:o??l),[f,m]=c([s,t],[u,d,n],{props:a},{popup:{_default:`root`}});return z.useMemo(()=>[{...f,popup:{...f.popup,root:D(f.popup?.root,r)}},{...m,popup:{...m.popup,root:{...m.popup?.root,...i}}}],[f,m,r,i])},Dte=(e,t,n)=>oe(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,ki=(e,t,n)=>oe(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,Ote=(e,t)=>{let{allowClear:n=!0}=e,{clearIcon:r,removeIcon:i}=xt({...e,prefixCls:t,componentName:`DatePicker`});return[z.useMemo(()=>n!==!1&&{clearIcon:r,...n===!0?{}:n},[n,r]),i]},[Ai,kte]=[`week`,`WeekPicker`],[ji,Mi]=[`month`,`MonthPicker`],[Ni,Pi]=[`year`,`YearPicker`],[Fi,Ii]=[`quarter`,`QuarterPicker`],[Li,Ri]=[`time`,`TimePicker`],Ate=e=>z.createElement(qe,{size:`small`,type:`primary`,...e});function zi(e){return(0,z.useMemo)(()=>({button:Ate,...e}),[e])}var Bi=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?z.createElement(z.Fragment,null,e===Li?z.createElement(ut,{"aria-hidden":`true`}):z.createElement(dt,{"aria-hidden":`true`}),t&&n):r,jte=e=>(0,z.forwardRef)((t,n)=>{let{prefixCls:r,getPopupContainer:i,components:a,className:s,style:c,classNames:l,styles:u,placement:d,size:f,disabled:h,bordered:g=!0,placeholder:_,status:v,variant:y,picker:b,dropdownClassName:x,popupClassName:C,popupStyle:w,rootClassName:T,suffixIcon:E,separator:O,allowClear:A,clearIcon:j,...M}=t,P=b===Li?`timePicker`:`datePicker`,{suffixIcon:F,clearIcon:I,allowClear:ee}=p(P),{getPrefixCls:te,direction:L,getPopupContainer:re,rangePicker:ie}=(0,z.useContext)(o),ae=z.useRef(null),R=te(`picker`,r),{compactSize:se,compactItemClassnames:ue}=k(R,L),de=te(),fe=O??ie?.separator,pe=oe(fe),[me,he]=ge(`rangePicker`,y,g),_e=xe(R),[ve,ye]=Yr(R,_e),be=D(ve,ye,_e,T),Se=Ke({componentName:`RangePicker`,allowClear:A,clearIcon:j,contextAllowClear:ee,contextClearIcon:I,defaultAllowClear:!0}),we=zi(a),De=S(e=>f??se??e),Oe=z.useContext(N),Ae=h??Oe,je={...t,size:De,disabled:Ae,status:v,variant:y},[Me,Ne]=Oi(P,l,u,C||x,w,je,ie?.style??null),{hasFeedback:Pe,status:Fe,feedbackIcon:Ie}=(0,z.useContext)(ce),Le=Bi({picker:b,hasFeedback:Pe,feedbackIcon:Ie,suffixIcon:E===void 0?F:E});(0,z.useImperativeHandle)(n,()=>ae.current);let[Re]=le(`Calendar`,ne),ze=m(Re,t.locale||{}),[Be]=ke(`DatePicker`,Ne?.popup?.root?.zIndex);return z.createElement(Te,{space:!0},z.createElement(Iee,{separator:z.createElement(`span`,{"aria-hidden":!pe||void 0,className:`${R}-separator`},pe?fe:z.createElement(mt,null)),disabled:Ae,ref:ae,placement:d,placeholder:ki(ze,b,_),suffixIcon:Le,prevIcon:z.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:z.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:z.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:z.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${de}-slide-up`,picker:b,...M,locale:ze.lang,getPopupContainer:i||re,generateConfig:e,components:we,direction:L,prefixCls:R,rootClassName:be,className:D({[`${R}-large`]:De===`large`,[`${R}-small`]:De===`small`,[`${R}-${me}`]:he},Ee(R,Ce(Fe,v),Pe),ue,s,ie?.className),style:c,classNames:Me,styles:{...Ne,popup:{...Ne.popup,root:{...Ne.popup.root,zIndex:Be}}},allowClear:Se}))}),Mte=e=>{let t=(t,n=`DatePicker`)=>{let r=n===Ri?`timePicker`:`datePicker`;return(0,z.forwardRef)((i,a)=>{let{prefixCls:s,getPopupContainer:c,components:l,style:u,className:d,size:f,bordered:h,placement:g,placeholder:_,disabled:v,status:y,variant:b,onCalendarChange:x,classNames:C,styles:w,dropdownClassName:T,popupClassName:E,popupStyle:O,rootClassName:A,suffixIcon:j,allowClear:M,clearIcon:P,...F}=i,{suffixIcon:I,clearIcon:ee,allowClear:te}=p(n===Ri?`timePicker`:`datePicker`),{getPrefixCls:L,direction:re,getPopupContainer:ie,[r]:ae}=(0,z.useContext)(o),R=L(`picker`,s),{compactSize:oe,compactItemClassnames:se}=k(R,re),ue=S(e=>f??oe??e),de=z.useContext(N),fe=v??de,pe={...i,size:ue,disabled:fe,status:y,variant:b},[me,he]=Oi(r,C,w,E||T,O,pe,ae?.style),_e=z.useRef(null),[ve,ye]=ge(`datePicker`,b,h),be=xe(R),[Se,we]=Yr(R,be),De=D(Se,we,be,A);(0,z.useImperativeHandle)(a,()=>_e.current);let Oe={showToday:!0},Ae=t||i.picker,je=L(),{onSelect:Me,multiple:Ne}=F,Pe=Me&&t===`time`&&!Ne,Fe=(e,t,n)=>{x?.(e,t,n),Pe&&Me(e)},[,Ie]=Ote(i,R),Le=Ke({componentName:n,allowClear:M,clearIcon:P,contextAllowClear:te,contextClearIcon:ee,defaultAllowClear:!0}),Re=zi(l),{hasFeedback:ze,status:Be,feedbackIcon:Ve}=(0,z.useContext)(ce),He=Bi({picker:Ae,hasFeedback:ze,feedbackIcon:Ve,suffixIcon:j===void 0?I:j}),[Ue]=le(`DatePicker`,ne),We=m(Ue,i.locale||{}),[Ge]=ke(`DatePicker`,he?.popup?.root?.zIndex);return z.createElement(Te,{space:!0},z.createElement(Vee,{ref:_e,placeholder:Dte(We,Ae,_),suffixIcon:He,placement:g,prevIcon:z.createElement(`span`,{className:`${R}-prev-icon`}),nextIcon:z.createElement(`span`,{className:`${R}-next-icon`}),superPrevIcon:z.createElement(`span`,{className:`${R}-super-prev-icon`}),superNextIcon:z.createElement(`span`,{className:`${R}-super-next-icon`}),transitionName:`${je}-slide-up`,picker:t,onCalendarChange:Fe,...Oe,...F,locale:We.lang,getPopupContainer:c||ie,generateConfig:e,components:Re,direction:re,disabled:fe,prefixCls:R,rootClassName:De,className:D({[`${R}-large`]:ue===`large`,[`${R}-small`]:ue===`small`,[`${R}-${ve}`]:ye},Ee(R,Ce(Be,y),ze),se,ae?.className,d),style:u,classNames:me,styles:{...he,popup:{...he.popup,root:{...he.popup.root,zIndex:Ge}}},allowClear:Le,removeIcon:Ie}))})},n=t(),r=t(Ai,kte),i=t(ji,Mi),a=t(Ni,Pi),s=t(Fi,Ii);return{DatePicker:n,WeekPicker:r,MonthPicker:i,YearPicker:a,TimePicker:t(Li,Ri),QuarterPicker:s}},Vi=e=>{let{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:i,TimePicker:a,QuarterPicker:o}=Mte(e),s=jte(e),c=t;return c.WeekPicker=n,c.MonthPicker=r,c.YearPicker=i,c.RangePicker=s,c.TimePicker=a,c.QuarterPicker=o,c},Hi=Vi(Ut);Hi._InternalPanelDoNotUseOrYouWillBeFired=Ze(Hi,`popupAlign`,void 0,`picker`),Hi._InternalRangePanelDoNotUseOrYouWillBeFired=Ze(Hi.RangePicker,`popupAlign`,void 0,`picker`),Hi.generatePicker=Vi;function Nte(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===F.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=z.createElement(`li`,{className:D(Array.from(_)),ref:t},z.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},z.createElement(`div`,{className:`${r}-first`},v),z.createElement(`div`,{className:`${r}-second`},v)));return a&&(y=a(y,e)),y}var Pte=z.forwardRef(Nte);function Fte(){let e=z.useRef({});function t(t){return e.current[t]}function n(t){return n=>{e.current[t]=n}}return[t,n]}function Ui(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 Wi(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 Gi(e){let t=Wi(e),n=e.ownerDocument,r=n.defaultView||n.parentWindow;return t.left+=Ui(r),t.left}function Ki(){return Ki=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},Ki.apply(this,arguments)}function qi(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:d=`★`,characterRender:f,disabled:p,direction:m=`ltr`,tabIndex:h=0,autoFocus:g,onHoverChange:_,onChange:v,onFocus:y,onBlur:b,onKeyDown:x,onMouseLeave:S,...w}=e,[T,E]=Fte(),O=z.useRef(null),k=()=>{p||O.current?.focus()};z.useImperativeHandle(t,()=>({focus:k,blur:()=>{p||O.current?.blur()}}));let[A,j]=u(i||0,a),[M,N]=u(null),P=(e,t)=>{let n=m===`rtl`,r=e+1;if(s){let i=T(e),a=Gi(i),o=i.clientWidth;(n&&t-a>o/2||!n&&t-a<o/2)&&(r-=.5)}return r},I=e=>{j(e),v?.(e)},[ee,te]=z.useState(!1),ne=()=>{te(!0),y?.()},L=()=>{te(!1),b?.()},[re,ie]=z.useState(null),ae=(e,t)=>{let n=P(t,e.pageX);n!==M&&(ie(n),N(null)),_?.(n)},R=e=>{p||(ie(null),N(null),_?.(void 0)),e&&S?.(e)},oe=(e,t)=>{let n=P(t,e.pageX),r=!1;c&&(r=n===A),R(),I(r?0:n),N(r?n:null)},se=e=>{let{keyCode:t}=e,n=m===`rtl`,r=s?.5:1;l&&(t===F.RIGHT&&A<o&&!n?(I(A+r),e.preventDefault()):t===F.LEFT&&A>0&&!n||t===F.RIGHT&&A>0&&n?(I(A-r),e.preventDefault()):t===F.LEFT&&A<o&&n&&(I(A+r),e.preventDefault())),x?.(e)};z.useEffect(()=>{g&&!p&&k()},[]);let ce=Array(o).fill(0).map((e,t)=>z.createElement(Pte,{ref:E(t),index:t,count:o,disabled:p,prefixCls:`${n}-star`,allowHalf:s,value:re===null?A:re,onClick:oe,onHover:ae,key:e||t,character:d,characterRender:f,focused:ee})),le=D(n,r,{[`${n}-disabled`]:p,[`${n}-rtl`]:m===`rtl`});return z.createElement(`ul`,Ki({className:le,onMouseLeave:R,tabIndex:p?-1:h,onFocus:p?null:ne,onBlur:p?null:L,onKeyDown:p?null:se,ref:O},C(w,{aria:!0,data:!0,attr:!0})),ce)}var Ite=z.forwardRef(qi),Lte=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:`${_(e.lineWidthFocus)} 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`}}}},Rte=e=>({[`&-rtl${e.componentCls}`]:{direction:`rtl`}}),zte=e=>{let{componentCls:t}=e;return{[t]:{...te(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)`}},...Lte(e),...Rte(e)}}},Bte=de(`Rate`,e=>zte(ve(e,{})),e=>({lineWidthFocus:e.lineWidthFocus===0?0:e.lineWidth,starColor:e.yellow6,starSize:e.controlHeight*.625,starSizeSM:e.controlHeightSM*.625,starSizeLG:e.controlHeightLG*.625,starHoverScale:`scale(1.1)`,starBg:e.colorFillContent})),Vte=z.forwardRef((e,t)=>{let{prefixCls:n,className:r,rootClassName:i,style:a,tooltips:o,character:s=z.createElement(vt,null),disabled:c,size:l,...u}=e,d=(e,{index:t=0})=>{if(!o)return e;let n=o[t];return ae(n)?z.createElement(De,{...n},e):z.createElement(De,{title:n},e)},{getPrefixCls:f,direction:m,className:h,style:g}=p(`rate`),_=f(`rate`,n),[v,y]=Bte(_),b={...g,...a},x=z.useContext(N),C=c??x,w=S(e=>l??e);return z.createElement(Ite,{ref:t,character:s,characterRender:d,disabled:C,...u,className:D({[`${_}-large`]:w===`large`,[`${_}-small`]:w===`small`},r,i,v,y,h),style:b,prefixCls:_,direction:m})}),{TimePicker:Hte,RangePicker:Ute}=Hi,Wte=z.forwardRef((e,t)=>z.createElement(Ute,{...e,picker:`time`,mode:void 0,ref:t})),Ji=z.forwardRef((e,t)=>{let{addon:n,renderExtraFooter:r,variant:i,bordered:a,classNames:o,styles:s,popupClassName:c,popupStyle:l,...u}=e,[d]=ge(`timePicker`,i,a),f=z.useMemo(()=>{if(r)return r;if(n)return n},[n,r]),[p,m]=Oi(`timePicker`,o,s,c,l,{...e,variant:d});return z.createElement(Hte,{...u,mode:void 0,ref:t,renderExtraFooter:f,variant:d,classNames:p,styles:m})}),Yi=Ze(Ji,`popupAlign`,void 0,`picker`);Ji._InternalPanelDoNotUseOrYouWillBeFired=Yi,Ji.RangePicker=Wte,Ji._InternalPanelDoNotUseOrYouWillBeFired=Yi;var Gte=(e=>{let t=z.useRef({valueLabels:new Map});return z.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])}),Kte=(e,t,n,r)=>z.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=Ie(a,!0,r);c=e.checkedKeys,l=e.halfCheckedKeys}return[Array.from(new Set([...s,...c])),l]},[e,t,n,r]),qte=e=>Array.isArray(e)?e:e===void 0?[]:[e],Jte=e=>{let{label:t,value:n,children:r}=e||{};return{_title:t?[t]:[`title`,`label`],value:n||`value`,key:n||`value`,children:r||`children`}},Xi=e=>!e||e.disabled||e.disableCheckbox||e.checkable===!1,Yte=(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},Zi=e=>e==null,Xte=((e,t)=>z.useMemo(()=>je(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])),Qi=()=>null;function $i(e){return A(e).map(e=>{if(!z.isValidElement(e)||!e.type)return null;let{key:t,props:{children:n,value:r,...i}}=e,a={key:t,value:r,...i},o=$i(n);return o.length&&(a.children=o),a}).filter(e=>e)}function ea(e){if(!e)return e;let t={...e};return`props`in t||Object.defineProperty(t,"props",{get(){return M(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),t}}),t}function ta(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=z.createElement(Qi,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 M(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),c(),o}}),Object.defineProperty(e,"allCheckedNodes",{get(){return M(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),c(),i?s:s.map(({node:e})=>e)}})}var na=(e,t,n)=>{let{fieldNames:r,treeNodeFilterProp:i,filterTreeNode:a}=n,{children:o}=r;return z.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,ea(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 ra(e){let t=z.useRef(e);return t.current=e,z.useCallback((...e)=>t.current(...e),[])}function ia(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 aa(e,t,n){return z.useMemo(()=>e?n?ia(e,{id:`id`,pId:`pId`,rootPId:null,...typeof n==`object`?n:{}}):e:$i(t),[t,n,e])}var oa=z.createContext(null),sa=z.createContext(null);function ca(){return ca=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},ca.apply(this,arguments)}var la={width:0,height:0,display:`flex`,overflow:`hidden`,opacity:0,border:0,padding:0,margin:0},ua=z.forwardRef((e,t)=>{let{prefixCls:n,multiple:r,searchValue:i,toggleOpen:a,open:o,notFoundContent:s}=Dt(),{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}=z.useContext(sa),{checkable:w,checkedKeys:T,halfCheckedKeys:E,treeExpandedKeys:D,treeDefaultExpandAll:O,treeDefaultExpandedKeys:k,onTreeExpand:A,treeIcon:j,showTreeIcon:M,switcherIcon:N,treeLine:P,treeNodeFilterProp:I,loadData:ee,treeLoadedKeys:te,treeMotion:ne,onTreeLoad:re,keyEntities:ie}=z.useContext(oa),ae=z.useRef(null),R=be(()=>f,[o,f],(e,t)=>t[0]&&e[1]!==t[1]),oe=z.useMemo(()=>w?{checked:T,halfChecked:E}:null,[w,T,E]);z.useEffect(()=>{o&&!r&&T.length&&ae.current?.scrollTo({key:T[0]})},[o]);let se=e=>{e.preventDefault()},ce=(e,t)=>{let{node:n}=t;w&&Xi(n)||(m(n.key,{selected:!T.includes(n.key)}),r||a(!1))},[le,ue]=z.useState(k),[de,fe]=z.useState(null),pe=z.useMemo(()=>D?[...D]:i?de:le,[le,de,D,i]),me=e=>{ue(e),fe(e),A&&A(e)},he=String(i).toLowerCase(),ge=e=>he?String(e[I]).toLowerCase().includes(he):!1;z.useEffect(()=>{i&&fe(Yte(f,p))},[i]);let[_e,ve]=z.useState(()=>new Map);z.useEffect(()=>{y&&ve(new Map)},[y]);function ye(e){let t=e[p.value];if(!_e.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;_e.set(t,n>y)}else _e.set(t,!1)}return _e.get(t)}let xe=L(e=>{let t=e[p.value];return T.includes(t)||y===null?!1:y<=0?!0:b&&y?ye(e):!1}),Se=e=>{for(let t of e)if(!(t.disabled||t.selectable===!1)){if(i){if(ge(t))return t}else return t;if(t[p.children]){let e=Se(t[p.children]);if(e)return e}}return null},[Ce,we]=z.useState(null),Te=ie[Ce];z.useEffect(()=>{if(!o)return;let e=!r&&T.length&&!i?T[0]:(()=>{let e=Se(R);return e?e[p.value]:null})();we(e)},[o,i]),z.useImperativeHandle(t,()=>({scrollTo:ae.current?.scrollTo,onKeyDown:e=>{let{which:t}=e;switch(t){case F.UP:case F.DOWN:case F.LEFT:case F.RIGHT:ae.current?.onKeyDown(e);break;case F.ENTER:if(Te){let e=xe(Te.node),{selectable:t,value:n,disabled:r}=Te?.node||{};t!==!1&&!r&&!e&&ce(null,{node:{key:Ce},selected:!T.includes(n)})}break;case F.ESC:a(!1)}},onKeyUp:()=>{}}));let Ee=be(()=>!i,[i,D||le],([e],[t,n])=>e!==t&&!!(t||n))?ee:null;if(R.length===0)return z.createElement(`div`,{role:`listbox`,className:`${n}-empty`,onMouseDown:se},s);let De={fieldNames:p};return te&&(De.loadedKeys=te),pe&&(De.expandedKeys=pe),z.createElement(`div`,{onMouseDown:se},Te&&o&&z.createElement(`span`,{style:la,"aria-live":`assertive`},Te.node.value),z.createElement(Ne.Provider,{value:{nodeDisabled:xe}},z.createElement(Pe,ca({classNames:S?.popup,styles:C?.popup,ref:ae,focusable:!1,prefixCls:`${n}-tree`,treeData:R,height:l,itemHeight:u,itemScrollOffset:d,virtual:c!==!1&&h!==!1,multiple:r,icon:j,showIcon:M,switcherIcon:N,showLine:P,loadData:Ee,motion:ne,activeKey:Ce,checkable:w,checkStrictly:!0,checkedKeys:oe,selectedKeys:w?[]:T,defaultExpandAll:O,titleRender:_},De,{onActiveChange:we,onSelect:ce,onCheck:ce,onExpand:me,onLoad:re,filterTreeNode:ge,expandAction:g,onScroll:v}))))}),da=`SHOW_ALL`,fa=`SHOW_PARENT`,pa=`SHOW_CHILD`;function ma(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})=>Xi(e)||i.has(e[r.value]))}):t===`SHOW_PARENT`?e.filter(e=>{let t=n[e],r=t?t.parent:null;return!r||Xi(t.node)||Xi(r.node)||!i.has(r.key)}):e}function ha(e,t){let{searchValue:n,inputValue:r,onSearch:i,autoClearSearchValue:a,filterTreeNode:o,treeNodeFilterProp:s}=t;return z.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 ga(){return ga=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},ga.apply(this,arguments)}function _a(e){return!e||typeof e!=`object`}var va=z.forwardRef((e,t)=>{let{id:n,prefixCls:r=`rc-tree-select`,value:i,defaultValue:a,onChange:o,onSelect:c,onDeselect:l,showSearch:d,searchValue:f,inputValue:p,onSearch:m,autoClearSearchValue:h,filterTreeNode:g,treeNodeFilterProp:_,showCheckedStrategy:v,treeNodeLabelProp:y,multiple:b,treeCheckable:x,treeCheckStrictly:S,labelInValue:C,maxCount:w,fieldNames:T,treeDataSimpleMode:E,treeData:D,children:O,loadData:k,treeLoadedKeys:A,onTreeLoad:j,treeDefaultExpandAll:M,treeExpandedKeys:N,treeDefaultExpandedKeys:P,onTreeExpand:F,treeExpandAction:I,virtual:ee,listHeight:te=200,listItemHeight:ne=20,listItemScrollOffset:L=0,onPopupVisibleChange:re,popupMatchSelectWidth:ie=!0,treeLine:ae,treeIcon:R,showTreeIcon:oe,switcherIcon:se,treeMotion:ce,treeTitleRender:le,onPopupScroll:ue,classNames:de,styles:fe,...pe}=e,me=s(n),he=x&&!S,ge=x||S,_e=S||C,ve=ge||b,[ye,be]=ha(d,{searchValue:f,inputValue:p,onSearch:m,autoClearSearchValue:h,filterTreeNode:g,treeNodeFilterProp:_}),{searchValue:xe,onSearch:Se,autoClearSearchValue:Ce=!0,filterTreeNode:we,treeNodeFilterProp:Te=`value`}=be,[Ee,De]=u(a,i),Oe=z.useMemo(()=>x?v||`SHOW_CHILD`:da,[v,x]),ke=z.useMemo(()=>Jte(T),[JSON.stringify(T)]),[Ae,je]=u(``,xe),Me=Ae||``,Ne=e=>{je(e),Se?.(e)},Pe=aa(D,O,E),{keyEntities:Fe,valueEntities:Le}=Xte(Pe,ke),Re=z.useCallback(e=>{let t=[],n=[];return e.forEach(e=>{Le.has(e)?n.push(e):t.push(e)}),{missingRawValues:t,existRawValues:n}},[Le]),ze=na(Pe,Me,{fieldNames:ke,treeNodeFilterProp:Te,filterTreeNode:we}),Be=z.useCallback(e=>{if(e){if(y)return e[y];let{_title:t}=ke;for(let n=0;n<t.length;n+=1){let r=e[t[n]];if(r!==void 0)return r}}},[ke,y]),Ve=z.useCallback(e=>qte(e).map(e=>_a(e)?{value:e}:e),[]),He=z.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(Ee).find(e=>e.value===n).label),{label:t,value:n,halfChecked:r,disabled:i}}),[Le,Be,Ve,Ee]),Ue=z.useMemo(()=>Ve(Ee===null?[]:Ee),[Ve,Ee]),[We,Ge]=z.useMemo(()=>{let e=[],t=[];return Ue.forEach(n=>{n.halfChecked?t.push(n):e.push(n)}),[e,t]},[Ue]),Ke=z.useMemo(()=>We.map(e=>e.value),[We]),[qe,Je]=Kte(We,Ge,he,Fe),[Ye]=Gte(z.useMemo(()=>{let e=ma(qe,Oe,Fe,ke).map(e=>Fe[e]?.node?.[ke.value]??e).map(e=>{let t=We.find(t=>t.value===e);return{value:e,label:C?t?.label:le?.(t)}}),t=He(e),n=t[0];return!ve&&n&&Zi(n.value)&&Zi(n.label)?[]:t.map(e=>({...e,label:e.label??e.value}))},[ke,ve,qe,We,He,Oe,Fe])),Xe=z.useMemo(()=>ve&&(Oe===`SHOW_CHILD`||S||!x)?w:null,[w,ve,S,Oe,x]),Ze=ra((e,t,n)=>{let r=ma(e,Oe,Fe,ke);if(Xe&&r.length>Xe)return;let i=He(e);if(De(i),Ce&&je(``),o){let i=e;he&&(i=r.map(e=>{let t=Le.get(e);return t?t.node[ke.value]:e}));let{triggerValue:a,selected:s}=t||{triggerValue:void 0,selected:void 0},c=i;if(S){let e=Ge.filter(e=>!i.includes(e.value));c=[...c,...e]}let l=He(c),u={preValue:We,triggerValue:a},d=!0;(S||n===`selection`&&!s)&&(d=!1),ta(u,a,e,Pe,d,ke),ge?u.checked=s:u.selected=s;let f=_e?l:l.map(e=>e.value);o(ve?f:f[0],_e?null:l.map(e=>e.label),u)}}),Qe=z.useCallback((e,{selected:t,source:n})=>{let r=Fe[e]?.node,i=r?.[ke.value]??e;if(!ve)Ze([i],{selected:!0,triggerValue:i},`option`);else{let e=t?[...Ke,i]:qe.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}=Ie(i,!0,Fe):{checkedKeys:a}=Ie(i,{checked:!1,halfCheckedKeys:Je},Fe),e=[...n,...a.map(e=>Fe[e].node[ke.value])]}Ze(e,{selected:t,triggerValue:i},n||`option`)}t||!ve?c?.(i,ea(r)):l?.(i,ea(r))},[Re,Le,Fe,ke,ve,Ke,Ze,he,c,l,qe,Je,w]),$e=z.useCallback(e=>{re&&re(e)},[re]),et=ra((e,t)=>{let n=e.map(e=>e.value);if(t.type===`clear`){Ze(n,{},`selection`);return}t.values.length&&Qe(t.values[0].value,{selected:!1,source:`selection`})}),tt=z.useMemo(()=>({virtual:ee,popupMatchSelectWidth:ie,listHeight:te,listItemHeight:ne,listItemScrollOffset:L,treeData:ze,fieldNames:ke,onSelect:Qe,treeExpandAction:I,treeTitleRender:le,onPopupScroll:ue,leftMaxCount:w===void 0?null:w-Ye.length,leafCountOnly:Oe===`SHOW_CHILD`&&!S&&!!x,valueEntities:Le,classNames:de,styles:fe}),[ee,ie,te,ne,L,ze,ke,Qe,I,le,ue,w,Ye.length,Oe,S,x,Le,de,fe]),nt=z.useMemo(()=>({checkable:ge,loadData:k,treeLoadedKeys:A,onTreeLoad:j,checkedKeys:qe,halfCheckedKeys:Je,treeDefaultExpandAll:M,treeExpandedKeys:N,treeDefaultExpandedKeys:P,onTreeExpand:F,treeIcon:R,treeMotion:ce,showTreeIcon:oe,switcherIcon:se,treeLine:ae,treeNodeFilterProp:Te,keyEntities:Fe}),[ge,k,A,j,qe,Je,M,N,P,F,R,ce,oe,se,ae,Te,Fe]);return z.createElement(sa.Provider,{value:tt},z.createElement(oa.Provider,{value:nt},z.createElement(At,ga({ref:t},pe,{classNames:de,styles:fe,id:me,prefixCls:r,mode:ve?`multiple`:void 0,displayValues:Ye,onDisplayValuesChange:et,autoClearSearchValue:Ce,showSearch:ye,searchValue:Me,onSearch:Ne,OptionList:ua,emptyOptions:!Pe.length,onPopupVisibleChange:$e,popupMatchSelectWidth:ie}))))});va.TreeNode=Qi,va.SHOW_ALL=da,va.SHOW_PARENT=fa,va.SHOW_CHILD=pa;var ya=va,ba=e=>{let{componentCls:t,treePrefixCls:n,colorBgElevated:r}=e,i=`.${n}`;return[{[`${t}-dropdown`]:[{padding:`${_(e.paddingXS)} ${_(e.calc(e.paddingXS).div(2).equal())}`},Me(n,ve(e,{colorBgContainer:r}),!1),{[i]:{borderRadius:0,[`${i}-list-holder-inner`]:{alignItems:`stretch`,[`${i}-treenode`]:{[`${i}-node-content-wrapper`]:{flex:`auto`}}}}},tt(`${n}-checkbox`,e),{"&-rtl":{direction:`rtl`,[`${i}-switcher${i}-switcher_close`]:{[`${i}-switcher-icon svg`]:{transform:`rotate(90deg)`}}}}]}]};function xa(e,t,n){return de(`TreeSelect`,e=>ba(ve(e,{treePrefixCls:t})),Ae,{resetFont:!1})(e,n)}var Sa=z.forwardRef((e,t)=>{let{prefixCls:n,size:a,disabled:s,bordered:l=!0,style:u,className:d,rootClassName:f,treeCheckable:m,multiple:h,listHeight:g=256,listItemHeight:_,placement:v,notFoundContent:y,switcherIcon:b,treeLine:x,getPopupContainer:C,popupClassName:w,dropdownClassName:T,treeIcon:E=!1,transitionName:O,choiceTransitionName:A=``,status:j,treeExpandAction:M,builtinPlacements:P,dropdownMatchSelectWidth:F,popupMatchSelectWidth:I,allowClear:ee,variant:te,dropdownStyle:ne,dropdownRender:L,popupRender:re,onDropdownVisibleChange:ie,onOpenChange:ae,tagRender:R,maxCount:oe,showCheckedStrategy:se,treeCheckStrictly:le,styles:ue,classNames:de,...pe}=e,{getPrefixCls:me,getPopupContainer:he,direction:_e,styles:ve,classNames:ye,switcherIcon:be}=p(`treeSelect`),{renderEmpty:Se,virtual:we,popupMatchSelectWidth:Te,popupOverflow:De}=z.useContext(o),[,Oe]=fe(),Ae=_??Oe?.controlHeightSM+Oe?.paddingXXS,je=me(),Me=me(`select`,n),Ne=me(`select-tree`,n),Pe=me(`tree-select`,n),{compactSize:Ie,compactItemClassnames:Le}=k(Me,_e),Re=xe(Me),ze=xe(Pe),[Be,Ve]=bt(Me,Re);xa(Pe,Ne,ze);let[He,Ue]=ge(`treeSelect`,te,l),We=S(e=>a??Ie??e),Ge=z.useContext(N),Ke=s??Ge,{status:qe,hasFeedback:Je,isFormItemInput:Ye,feedbackIcon:Xe}=z.useContext(ce),Ze=Ce(qe,j),Qe={...e,size:We,disabled:Ke,status:Ze,variant:He},[$e,et]=c([ye,de],[ve,ue],{props:Qe},{popup:{_default:`root`}}),tt=D(w||T,`${Pe}-dropdown`,{[`${Pe}-dropdown-rtl`]:_e===`rtl`},f,$e.root,$e.popup?.root,Ve,Re,ze,Be),nt=ft(re||L),rt=ae||ie,it=!!(m||h),at=z.useMemo(()=>{if(!oe||(se!==`SHOW_ALL`||le)&&se!==`SHOW_PARENT`)return oe},[oe,se,le]),ot=Ot(e.suffixIcon,e.showArrow),st=I??F??Te,{suffixIcon:ct,removeIcon:lt,clearIcon:ut}=xt({...pe,multiple:it,showSuffixIcon:ot,hasFeedback:Je,feedbackIcon:Xe,prefixCls:Me,componentName:`TreeSelect`}),dt=ee===!0?{clearIcon:ut}:ee,pt;pt=y===void 0?Se?.(`Select`)||z.createElement(gt,{componentName:`Select`}):y;let mt=i(pe,[`suffixIcon`,`removeIcon`,`clearIcon`]),ht=z.useMemo(()=>v===void 0?_e===`rtl`?`bottomRight`:`bottomLeft`:v,[v,_e]),_t=D(!n&&Pe,{[`${Me}-lg`]:We===`large`,[`${Me}-sm`]:We===`small`,[`${Me}-rtl`]:_e===`rtl`,[`${Me}-${He}`]:Ue,[`${Me}-in-form-item`]:Ye},Ee(Me,Ze,Je),Le,d,f,$e?.root,Ve,Re,ze,Be),vt=b??be,yt=e=>z.createElement(Fe,{prefixCls:Ne,switcherIcon:vt,treeNodeProps:e,showLine:x}),[Ct]=ke(`SelectLike`,et.popup?.root?.zIndex);return z.createElement(ya,{classNames:$e,styles:et,virtual:we,disabled:Ke,...mt,popupMatchSelectWidth:st,builtinPlacements:St(P,De),ref:t,prefixCls:Me,className:_t,style:{...et?.root,...u},listHeight:g,listItemHeight:Ae,treeCheckable:m&&z.createElement(`span`,{className:`${Me}-tree-checkbox-inner`}),treeLine:!!x,suffixIcon:ct,multiple:it,placement:ht,removeIcon:lt,allowClear:dt,switcherIcon:yt,showTreeIcon:E,notFoundContent:pt,getPopupContainer:C||he,treeMotion:null,popupClassName:tt,popupStyle:{...et.root,...et.popup?.root,zIndex:Ct},popupRender:nt,onPopupVisibleChange:rt,choiceTransitionName:r(je,``,A),transitionName:r(je,`slide-up`,O),treeExpandAction:M,tagRender:it?R:void 0,maxCount:at,showCheckedStrategy:se,treeCheckStrictly:le})}),Ca=Ze(Sa,`popupAlign`,e=>i(e,[`visible`]));Sa.TreeNode=Qi,Sa.SHOW_ALL=da,Sa.SHOW_PARENT=fa,Sa.SHOW_CHILD=pa,Sa._InternalPanelDoNotUseOrYouWillBeFired=Ca;var B=me(),wa=({value:e,onChange:t,placeholder:n,disabled:r=!1,readonly:i=!1})=>{let{t:a}=ct(),[o,s]=(0,z.useState)(!1),[c,l]=(0,z.useState)(e);z.useEffect(()=>{l(e)},[e]);let u=(0,z.useCallback)(e=>{l(e),t?.(e),s(!1)},[t]),d=(0,z.useCallback)(()=>{l(void 0),t?.(null)},[t]),f=(0,z.useCallback)(({type:e})=>(0,B.jsx)(`div`,{className:`flex flex-wrap max-h-[400px] overflow-auto gap-2`,children:Ct[e].map(e=>(0,B.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,B.jsx)(Tt,{name:e,style:{fontSize:20}})},e))}),[u]),p=(0,z.useMemo)(()=>[{key:`use`,label:a(`xin.form.iconSelector.tabs.use`),children:(0,B.jsx)(f,{type:`useIcons`})},{key:`suggestion`,label:a(`xin.form.iconSelector.tabs.suggestion`),children:(0,B.jsx)(f,{type:`suggestionIcons`})},{key:`direction`,label:a(`xin.form.iconSelector.tabs.direction`),children:(0,B.jsx)(f,{type:`directionIcons`})},{key:`editor`,label:a(`xin.form.iconSelector.tabs.editor`),children:(0,B.jsx)(f,{type:`editorIcons`})},{key:`data`,label:a(`xin.form.iconSelector.tabs.data`),children:(0,B.jsx)(f,{type:`dataIcons`})},{key:`logo`,label:a(`xin.form.iconSelector.tabs.logo`),children:(0,B.jsx)(f,{type:`logoIcons`})},{key:`other`,label:a(`xin.form.iconSelector.tabs.other`),children:(0,B.jsx)(f,{type:`otherIcons`})}],[f,a]),m=(0,z.useMemo)(()=>c?[{label:(0,B.jsxs)(`div`,{className:`flex items-center gap-2`,children:[(0,B.jsx)(Tt,{name:c}),(0,B.jsx)(`span`,{children:c})]}),value:c}]:[],[c]);return(0,B.jsxs)(B.Fragment,{children:[(0,B.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,B.jsx)(Tt,{name:c}):void 0}),(0,B.jsx)(jt,{title:a(`xin.form.iconSelector.modal.title`),open:o,onCancel:()=>s(!1),footer:null,width:800,children:(0,B.jsx)(et,{defaultActiveKey:`use`,items:p})})]})},Ta=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function Ea(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}function Da(e){var t={exports:{}};return e(t,t.exports),t.exports}var Oa,ka,Aa=function(e){return e&&e.Math==Math&&e},ja=Aa(typeof globalThis==`object`&&globalThis)||Aa(typeof window==`object`&&window)||Aa(typeof self==`object`&&self)||Aa(typeof Ta==`object`&&Ta)||function(){return this}()||Function(`return this`)(),Ma=Function.prototype,Na=Ma.apply,Pa=Ma.bind,Fa=Ma.call,Ia=typeof Reflect==`object`&&Reflect.apply||(Pa?Fa.bind(Na):function(){return Fa.apply(Na,arguments)}),La=Function.prototype,Ra=La.bind,za=La.call,Zte=Ra&&Ra.bind(za),Ba=Ra?function(e){return e&&Zte(za,e)}:function(e){return e&&function(){return za.apply(e,arguments)}},Va=function(e){return typeof e==`function`},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}},Qte=Ba({}.toString),$te=Ba(``.slice),Xa=function(e){return $te(Qte(e),8,-1)},Za=ja.Object,ene=Ba(``.split),Qa=Ha((function(){return!Za(`z`).propertyIsEnumerable(0)}))?function(e){return Xa(e)==`String`?ene(e,``):Za(e)}:Za,tne=ja.TypeError,$a=function(e){if(e==null)throw tne(`Can't call method on `+e);return e},eo=function(e){return Qa($a(e))},to=function(e){return typeof e==`object`?e!==null:Va(e)},no={},ro=function(e){return Va(e)?e:void 0},io=function(e,t){return arguments.length<2?ro(no[e])||ro(ja[e]):no[e]&&no[e][t]||ja[e]&&ja[e][t]},ao=Ba({}.isPrototypeOf),oo=io(`navigator`,`userAgent`)||``,so=ja.process,co=ja.Deno,lo=so&&so.versions||co&&co.version,uo=lo&&lo.v8;uo&&(ka=(Oa=uo.split(`.`))[0]>0&&Oa[0]<4?1:+(Oa[0]+Oa[1])),!ka&&oo&&(!(Oa=oo.match(/Edge\/(\d+)/))||Oa[1]>=74)&&(Oa=oo.match(/Chrome\/(\d+)/))&&(ka=+Oa[1]);var fo,po=ka,mo=!!Object.getOwnPropertySymbols&&!Ha((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&po&&po<41})),ho=mo&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,nne=ja.Object,go=ho?function(e){return typeof e==`symbol`}:function(e){var t=io(`Symbol`);return Va(t)&&ao(t.prototype,nne(e))},rne=ja.String,_o=function(e){try{return rne(e)}catch{return`Object`}},ine=ja.TypeError,vo=function(e){if(Va(e))return e;throw ine(_o(e)+` is not a function`)},yo=function(e,t){var n=e[t];return n==null?void 0:vo(n)},ane=ja.TypeError,one=Object.defineProperty,bo=ja[`__core-js_shared__`]||function(e,t){try{one(ja,e,{value:t,configurable:!0,writable:!0})}catch{ja[e]=t}return t}(`__core-js_shared__`,{}),xo=Da((function(e){(e.exports=function(e,t){return bo[e]||(bo[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),sne=ja.Object,So=function(e){return sne($a(e))},cne=Ba({}.hasOwnProperty),Co=Object.hasOwn||function(e,t){return cne(So(e),t)},lne=0,wo=Math.random(),To=Ba(1 .toString),Eo=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+To(++lne+wo,36)},Do=xo(`wks`),Oo=ja.Symbol,ko=Oo&&Oo.for,Ao=ho?Oo:Oo&&Oo.withoutSetter||Eo,jo=function(e){if(!Co(Do,e)||!mo&&typeof Do[e]!=`string`){var t=`Symbol.`+e;Do[e]=mo&&Co(Oo,e)?Oo[e]:ho&&ko?ko(t):Ao(t)}return Do[e]},Mo=ja.TypeError,No=jo(`toPrimitive`),Po=function(e,t){if(!to(e)||go(e))return e;var n,r=yo(e,No);if(r){if(t===void 0&&(t=`default`),n=Ga(r,e,t),!to(n)||go(n))return n;throw Mo(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&Va(n=e.toString)&&!to(r=Ga(n,e))||Va(n=e.valueOf)&&!to(r=Ga(n,e))||t!==`string`&&Va(n=e.toString)&&!to(r=Ga(n,e)))return r;throw ane(`Can't convert object to primitive value`)}(e,t)},Fo=function(e){var t=Po(e,`string`);return go(t)?t:t+``},Io=ja.document,Lo=to(Io)&&to(Io.createElement),Ro=function(e){return Lo?Io.createElement(e):{}},zo=!Ua&&!Ha((function(){return Object.defineProperty(Ro(`div`),"a",{get:function(){return 7}}).a!=7})),Bo=Object.getOwnPropertyDescriptor,Vo={f:Ua?Bo:function(e,t){if(e=eo(e),t=Fo(t),zo)try{return Bo(e,t)}catch{}if(Co(e,t))return Ya(!Ga(Ja.f,e,t),e[t])}},Ho=/#|\.prototype\./,Uo=function(e,t){var n=Go[Wo(e)];return n==qo||n!=Ko&&(Va(t)?Ha(t):!!t)},Wo=Uo.normalize=function(e){return String(e).replace(Ho,`.`).toLowerCase()},Go=Uo.data={},Ko=Uo.NATIVE=`N`,qo=Uo.POLYFILL=`P`,Jo=Uo,Yo=Ba(Ba.bind),Xo=function(e,t){return vo(e),t===void 0?e:Yo?Yo(e,t):function(){return e.apply(t,arguments)}},Zo=ja.String,Qo=ja.TypeError,$o=function(e){if(to(e))return e;throw Qo(Zo(e)+` is not an object`)},es=ja.TypeError,ts=Object.defineProperty,ns={f:Ua?ts:function(e,t,n){if($o(e),t=Fo(t),$o(n),zo)try{return ts(e,t,n)}catch{}if(`get`in n||`set`in n)throw es(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},rs=Ua?function(e,t,n){return ns.f(e,t,Ya(1,n))}:function(e,t,n){return e[t]=n,e},is=Vo.f,as=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 Ia(e,this,arguments)};return t.prototype=e.prototype,t},os=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?ja:f?ja[u]:(ja[u]||{}).prototype,h=d?no:no[u]||rs(no,u,{})[u],g=h.prototype;for(i in t)n=!Jo(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&Co(m,i),o=h[i],n&&(s=e.noTargetGet?(l=is(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?Xo(a,ja):e.wrap&&n?as(a):p&&Va(a)?Ba(a):a,(e.sham||a&&a.sham||o&&o.sham)&&rs(c,`sham`,!0),rs(h,i,c),p&&(Co(no,r=u+`Prototype`)||rs(no,r,{}),rs(no[r],i,a),e.real&&g&&!g[i]&&rs(g,i,a)))},ss=xo(`keys`),cs=function(e){return ss[e]||(ss[e]=Eo(e))},ls=!Ha((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),us=cs(`IE_PROTO`),ds=ja.Object,fs=ds.prototype,ps=ls?ds.getPrototypeOf:function(e){var t=So(e);if(Co(t,us))return t[us];var n=t.constructor;return Va(n)&&t instanceof n?n.prototype:t instanceof ds?fs:null},ms=ja.String,hs=ja.TypeError,gs=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Ba(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return $o(n),function(e){if(typeof e==`object`||Va(e))return e;throw hs(`Can't set `+ms(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),_s=Math.ceil,vs=Math.floor,ys=function(e){var t=+e;return t!=t||t===0?0:(t>0?vs:_s)(t)},bs=Math.max,xs=Math.min,Ss=function(e,t){var n=ys(e);return n<0?bs(n+t,0):xs(n,t)},Cs=Math.min,ws=function(e){return(t=e.length)>0?Cs(ys(t),9007199254740991):0;var t},Ts=function(e){return function(t,n,r){var i,a=eo(t),o=ws(a),s=Ss(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}},Es={includes:Ts(!0),indexOf:Ts(!1)},Ds={},Os=Es.indexOf,ks=Ba([].push),As=function(e,t){var n,r=eo(e),i=0,a=[];for(n in r)!Co(Ds,n)&&Co(r,n)&&ks(a,n);for(;t.length>i;)Co(r,n=t[i++])&&(~Os(a,n)||ks(a,n));return a},js=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Ms=js.concat(`length`,`prototype`),Ns={f:Object.getOwnPropertyNames||function(e){return As(e,Ms)}},Ps={f:Object.getOwnPropertySymbols},une=Ba([].concat),dne=io(`Reflect`,`ownKeys`)||function(e){var t=Ns.f($o(e)),n=Ps.f;return n?une(t,n(e)):t},Fs=Object.keys||function(e){return As(e,js)},fne=Ua?Object.defineProperties:function(e,t){$o(e);for(var n,r=eo(t),i=Fs(t),a=i.length,o=0;a>o;)ns.f(e,n=i[o++],r[n]);return e},pne=io(`document`,`documentElement`),Is=cs(`IE_PROTO`),Ls=function(){},Rs=function(e){return`<script>`+e+`<\/script>`},zs=function(e){e.write(Rs(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Bs=function(){try{fo=new ActiveXObject(`htmlfile`)}catch{}var e,t;Bs=typeof document<`u`?document.domain&&fo?zs(fo):((t=Ro(`iframe`)).style.display=`none`,pne.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Rs(`document.F=Object`)),e.close(),e.F):zs(fo);for(var n=js.length;n--;)delete Bs.prototype[js[n]];return Bs()};Ds[Is]=!0;var Vs=Object.create||function(e,t){var n;return e===null?n=Bs():(Ls.prototype=$o(e),n=new Ls,Ls.prototype=null,n[Is]=e),t===void 0?n:fne(n,t)},Hs=function(e,t,n){var r=Fo(t);r in e?ns.f(e,r,Ya(0,n)):e[r]=n},mne=ja.Array,hne=Math.max,Us=function(e,t,n){for(var r=ws(e),i=Ss(t,r),a=Ss(n===void 0?r:n,r),o=mne(hne(a-i,0)),s=0;i<a;i++,s++)Hs(o,s,e[i]);return o.length=s,o},gne=Ba(``.replace),_ne=Ba(``.split),vne=Ba([].join),Ws=String(Error(`zxcasd`).stack),Gs=/\n\s*at [^:]*:[^\n]*/,yne=Gs.test(Ws),bne=/@[^\n]*\n/.test(Ws)&&!/zxcasd/.test(Ws),xne=function(e,t){if(typeof e!=`string`)return e;if(yne)for(;t--;)e=gne(e,Gs,``);else if(bne)return vne(Us(_ne(e,`
`),t),`
`);return e},Sne=function(e,t){to(t)&&`cause`in t&&rs(e,`cause`,t.cause)},Ks={},Cne=jo(`iterator`),wne=Array.prototype,qs={};qs[jo(`toStringTag`)]=`z`;var Js=String(qs)===`[object z]`,Tne=jo(`toStringTag`),Ene=ja.Object,Dne=Xa(function(){return arguments}())==`Arguments`,Ys=Js?Xa: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=Ene(e),Tne))==`string`?n:Dne?Xa(t):(r=Xa(t))==`Object`&&Va(t.callee)?`Arguments`:r},One=jo(`iterator`),Xs=function(e){if(e!=null)return yo(e,One)||yo(e,`@@iterator`)||Ks[Ys(e)]},kne=ja.TypeError,Zs=function(e,t,n){var r,i;$o(e);try{if(!(r=yo(e,`return`))){if(t===`throw`)throw n;return n}r=Ga(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return $o(r),n},Ane=ja.TypeError,Qs=function(e,t){this.stopped=e,this.result=t},$s=Qs.prototype,jne=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=Xo(t,u),h=function(e){return r&&Zs(r,`normal`,e),new Qs(!0,e)},g=function(e){return d?($o(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=Xs(e)))throw Ane(_o(e)+` is not iterable`);if(function(e){return e!==void 0&&(Ks.Array===e||wne[Cne]===e)}(i)){for(a=0,o=ws(e);o>a;a++)if((s=g(e[a]))&&ao($s,s))return s;return new Qs(!1)}r=function(e,t){var n=arguments.length<2?Xs(e):t;if(vo(n))return $o(Ga(n,e));throw kne(_o(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Ga(c,r)).done;){try{s=g(l.value)}catch(e){Zs(r,`throw`,e)}if(typeof s==`object`&&s&&ao($s,s))return s}return new Qs(!1)},Mne=ja.String,ec=function(e){if(Ys(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Mne(e)},Nne=function(e,t){return e===void 0?arguments.length<2?``:t:ec(e)},Pne=!Ha((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",Ya(1,7)),e.stack!==7)})),Fne=jo(`toStringTag`),tc=ja.Error,Ine=[].push,nc=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=ao(rc,this);gs?n=gs(new tc(void 0),i?ps(this):rc):(n=i?this:Vs(rc),rs(n,Fne,`Error`)),rs(n,`message`,Nne(t,``)),Pne&&rs(n,`stack`,xne(n.stack,1)),Sne(n,r);var a=[];return jne(e,Ine,{that:a}),rs(n,`errors`,a),n};gs?gs(nc,tc):function(e,t){for(var n=dne(t),r=ns.f,i=Vo.f,a=0;a<n.length;a++){var o=n[a];Co(e,o)||r(e,o,i(t,o))}}(nc,tc);var rc=nc.prototype=Vs(tc.prototype,{constructor:Ya(1,nc),message:Ya(1,``),name:Ya(1,`AggregateError`)});os({global:!0},{AggregateError:nc});var Lne=Ba(Function.toString);Va(bo.inspectSource)||(bo.inspectSource=function(e){return Lne(e)});var ic,ac,oc,sc=bo.inspectSource,cc=ja.WeakMap,Rne=Va(cc)&&/native code/.test(sc(cc)),lc=ja.TypeError,zne=ja.WeakMap;if(Rne||bo.state){var uc=bo.state||=new zne,Bne=Ba(uc.get),dc=Ba(uc.has),Vne=Ba(uc.set);ic=function(e,t){if(dc(uc,e))throw new lc(`Object already initialized`);return t.facade=e,Vne(uc,e,t),t},ac=function(e){return Bne(uc,e)||{}},oc=function(e){return dc(uc,e)}}else{var fc=cs(`state`);Ds[fc]=!0,ic=function(e,t){if(Co(e,fc))throw new lc(`Object already initialized`);return t.facade=e,rs(e,fc,t),t},ac=function(e){return Co(e,fc)?e[fc]:{}},oc=function(e){return Co(e,fc)}}var pc,mc,hc,gc={set:ic,get:ac,has:oc,enforce:function(e){return oc(e)?ac(e):ic(e,{})},getterFor:function(e){return function(t){var n;if(!to(t)||(n=ac(t)).type!==e)throw lc(`Incompatible receiver, `+e+` required`);return n}}},_c=Function.prototype,Hne=Ua&&Object.getOwnPropertyDescriptor,vc=Co(_c,`name`),Une={EXISTS:vc,PROPER:vc&&function(){}.name===`something`,CONFIGURABLE:vc&&(!Ua||Ua&&Hne(_c,`name`).configurable)},yc=function(e,t,n,r){r&&r.enumerable?e[t]=n:rs(e,t,n)},bc=jo(`iterator`),xc=!1;[].keys&&(`next`in(hc=[].keys())?(mc=ps(ps(hc)))!==Object.prototype&&(pc=mc):xc=!0),pc=pc==null||Ha((function(){var e={};return pc[bc].call(e)!==e}))?{}:Vs(pc),Va(pc[bc])||yc(pc,bc,(function(){return this}));var Sc={IteratorPrototype:pc,BUGGY_SAFARI_ITERATORS:xc},Wne=Js?{}.toString:function(){return`[object `+Ys(this)+`]`},Gne=ns.f,Cc=jo(`toStringTag`),wc=function(e,t,n,r){if(e){var i=n?e:e.prototype;Co(i,Cc)||Gne(i,Cc,{configurable:!0,value:t}),r&&!Js&&rs(i,`toString`,Wne)}},Kne=Sc.IteratorPrototype,qne=function(){return this},Jne=Une.PROPER,Tc=Sc.BUGGY_SAFARI_ITERATORS,Ec=jo(`iterator`),Yne=function(){return this},Dc=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=Vs(Kne,{next:Ya(+!r,n)}),wc(e,i,!1,!0),Ks[i]=qne})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Tc&&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[Ec]||p[`@@iterator`]||i&&p[i],h=!Tc&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=ps(g.call(new e)))!==Object.prototype&&s.next&&(wc(s,d,!0,!0),Ks[d]=Yne),Jne&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return Ga(m,this)}),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Tc||f||!(l in p))&&yc(p,l,c[l]);else os({target:t,proto:!0,forced:Tc||f},c)}return o&&p[Ec]!==h&&yc(p,Ec,h,{name:i}),Ks[t]=h,c},Xne=gc.set,Zne=gc.getterFor(`Array Iterator`);Dc(Array,`Array`,(function(e,t){Xne(this,{type:`Array Iterator`,target:eo(e),index:0,kind:t})}),(function(){var e=Zne(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`),Ks.Arguments=Ks.Array;var Qne=Ba(``.charAt),Oc=Ba(``.charCodeAt),$ne=Ba(``.slice),kc=function(e){return function(t,n){var r,i,a=ec($a(t)),o=ys(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Oc(a,o))<55296||r>56319||o+1===s||(i=Oc(a,o+1))<56320||i>57343?e?Qne(a,o):r:e?$ne(a,o,o+2):i-56320+(r-55296<<10)+65536}},ere={codeAt:kc(!1),charAt:kc(!0)}.charAt,tre=gc.set,nre=gc.getterFor(`String Iterator`);Dc(String,`String`,(function(e){tre(this,{type:`String Iterator`,string:ec(e),index:0})}),(function(){var e,t=nre(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=ere(n,r),t.index+=e.length,{value:e,done:!1})}));var rre=no.AggregateError,Ac=jo(`toStringTag`);for(var jc 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 Mc=ja[jc],Nc=Mc&&Mc.prototype;Nc&&Ys(Nc)!==Ac&&rs(Nc,Ac,jc),Ks[jc]=Ks.Array}var Pc,Fc,ire=rre,Ic=function(e){return e&&e.Math==Math&&e},Lc=Ic(typeof globalThis==`object`&&globalThis)||Ic(typeof window==`object`&&window)||Ic(typeof self==`object`&&self)||Ic(typeof Ta==`object`&&Ta)||function(){return this}()||Function(`return this`)(),Rc=function(e){try{return!!e()}catch{return!0}},zc=!Rc((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),Bc=Function.prototype.call,Vc=Bc.bind?Bc.bind(Bc):function(){return Bc.apply(Bc,arguments)},Hc={}.propertyIsEnumerable,Uc=Object.getOwnPropertyDescriptor,are={f:Uc&&!Hc.call({1:2},1)?function(e){var t=Uc(this,e);return!!t&&t.enumerable}:Hc},Wc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Gc=Function.prototype,Kc=Gc.bind,qc=Gc.call,ore=Kc&&Kc.bind(qc),Jc=Kc?function(e){return e&&ore(qc,e)}:function(e){return e&&function(){return qc.apply(e,arguments)}},sre=Jc({}.toString),cre=Jc(``.slice),Yc=function(e){return cre(sre(e),8,-1)},Xc=Lc.Object,lre=Jc(``.split),Zc=Rc((function(){return!Xc(`z`).propertyIsEnumerable(0)}))?function(e){return Yc(e)==`String`?lre(e,``):Xc(e)}:Xc,ure=Lc.TypeError,Qc=function(e){if(e==null)throw ure(`Can't call method on `+e);return e},$c=function(e){return Zc(Qc(e))},el=function(e){return typeof e==`function`},tl=function(e){return typeof e==`object`?e!==null:el(e)},dre=function(e){return el(e)?e:void 0},nl=function(e,t){return arguments.length<2?dre(Lc[e]):Lc[e]&&Lc[e][t]},rl=Jc({}.isPrototypeOf),il=nl(`navigator`,`userAgent`)||``,al=Lc.process,ol=Lc.Deno,sl=al&&al.versions||ol&&ol.version,cl=sl&&sl.v8;cl&&(Fc=(Pc=cl.split(`.`))[0]>0&&Pc[0]<4?1:+(Pc[0]+Pc[1])),!Fc&&il&&(!(Pc=il.match(/Edge\/(\d+)/))||Pc[1]>=74)&&(Pc=il.match(/Chrome\/(\d+)/))&&(Fc=+Pc[1]);var ll=Fc,ul=!!Object.getOwnPropertySymbols&&!Rc((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&ll&&ll<41})),dl=ul&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,fre=Lc.Object,fl=dl?function(e){return typeof e==`symbol`}:function(e){var t=nl(`Symbol`);return el(t)&&rl(t.prototype,fre(e))},pre=Lc.String,pl=function(e){try{return pre(e)}catch{return`Object`}},mre=Lc.TypeError,ml=function(e){if(el(e))return e;throw mre(pl(e)+` is not a function`)},hl=function(e,t){var n=e[t];return n==null?void 0:ml(n)},hre=Lc.TypeError,gre=Object.defineProperty,gl=function(e,t){try{gre(Lc,e,{value:t,configurable:!0,writable:!0})}catch{Lc[e]=t}return t},_l=Lc[`__core-js_shared__`]||gl(`__core-js_shared__`,{}),vl=Da((function(e){(e.exports=function(e,t){return _l[e]||(_l[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),_re=Lc.Object,yl=function(e){return _re(Qc(e))},vre=Jc({}.hasOwnProperty),bl=Object.hasOwn||function(e,t){return vre(yl(e),t)},yre=0,bre=Math.random(),xre=Jc(1 .toString),xl=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+xre(++yre+bre,36)},Sl=vl(`wks`),Cl=Lc.Symbol,wl=Cl&&Cl.for,Sre=dl?Cl:Cl&&Cl.withoutSetter||xl,Tl=function(e){if(!bl(Sl,e)||!ul&&typeof Sl[e]!=`string`){var t=`Symbol.`+e;Sl[e]=ul&&bl(Cl,e)?Cl[e]:dl&&wl?wl(t):Sre(t)}return Sl[e]},Cre=Lc.TypeError,wre=Tl(`toPrimitive`),Tre=function(e,t){if(!tl(e)||fl(e))return e;var n,r=hl(e,wre);if(r){if(t===void 0&&(t=`default`),n=Vc(r,e,t),!tl(n)||fl(n))return n;throw Cre(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&el(n=e.toString)&&!tl(r=Vc(n,e))||el(n=e.valueOf)&&!tl(r=Vc(n,e))||t!==`string`&&el(n=e.toString)&&!tl(r=Vc(n,e)))return r;throw hre(`Can't convert object to primitive value`)}(e,t)},El=function(e){var t=Tre(e,`string`);return fl(t)?t:t+``},Dl=Lc.document,Ere=tl(Dl)&&tl(Dl.createElement),Ol=function(e){return Ere?Dl.createElement(e):{}},kl=!zc&&!Rc((function(){return Object.defineProperty(Ol(`div`),"a",{get:function(){return 7}}).a!=7})),Al=Object.getOwnPropertyDescriptor,jl={f:zc?Al:function(e,t){if(e=$c(e),t=El(t),kl)try{return Al(e,t)}catch{}if(bl(e,t))return Wc(!Vc(are.f,e,t),e[t])}},Dre=Lc.String,Ore=Lc.TypeError,Ml=function(e){if(tl(e))return e;throw Ore(Dre(e)+` is not an object`)},kre=Lc.TypeError,Nl=Object.defineProperty,Pl={f:zc?Nl:function(e,t,n){if(Ml(e),t=El(t),Ml(n),kl)try{return Nl(e,t,n)}catch{}if(`get`in n||`set`in n)throw kre(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},Fl=zc?function(e,t,n){return Pl.f(e,t,Wc(1,n))}:function(e,t,n){return e[t]=n,e},Are=Jc(Function.toString);el(_l.inspectSource)||(_l.inspectSource=function(e){return Are(e)});var Il,Ll,Rl,zl=_l.inspectSource,Bl=Lc.WeakMap,jre=el(Bl)&&/native code/.test(zl(Bl)),Vl=vl(`keys`),Hl=function(e){return Vl[e]||(Vl[e]=xl(e))},Ul={},Wl=Lc.TypeError,Mre=Lc.WeakMap;if(jre||_l.state){var Gl=_l.state||=new Mre,Nre=Jc(Gl.get),Kl=Jc(Gl.has),Pre=Jc(Gl.set);Il=function(e,t){if(Kl(Gl,e))throw new Wl(`Object already initialized`);return t.facade=e,Pre(Gl,e,t),t},Ll=function(e){return Nre(Gl,e)||{}},Rl=function(e){return Kl(Gl,e)}}else{var ql=Hl(`state`);Ul[ql]=!0,Il=function(e,t){if(bl(e,ql))throw new Wl(`Object already initialized`);return t.facade=e,Fl(e,ql,t),t},Ll=function(e){return bl(e,ql)?e[ql]:{}},Rl=function(e){return bl(e,ql)}}var Jl={set:Il,get:Ll,has:Rl,enforce:function(e){return Rl(e)?Ll(e):Il(e,{})},getterFor:function(e){return function(t){var n;if(!tl(t)||(n=Ll(t)).type!==e)throw Wl(`Incompatible receiver, `+e+` required`);return n}}},Yl=Function.prototype,Fre=zc&&Object.getOwnPropertyDescriptor,Xl=bl(Yl,`name`),Zl={EXISTS:Xl,PROPER:Xl&&function(){}.name===`something`,CONFIGURABLE:Xl&&(!zc||zc&&Fre(Yl,`name`).configurable)},Ql=Da((function(e){var t=Zl.CONFIGURABLE,n=Jl.get,r=Jl.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;el(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!bl(a,`name`)||t&&a.name!==d)&&Fl(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Lc?l?e[n]=a:gl(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Fl(e,n,a))})(Function.prototype,`toString`,(function(){return el(this)&&n(this).source||zl(this)}))})),Ire=Math.ceil,Lre=Math.floor,$l=function(e){var t=+e;return t!=t||t===0?0:(t>0?Lre:Ire)(t)},Rre=Math.max,eu=Math.min,tu=function(e,t){var n=$l(e);return n<0?Rre(n+t,0):eu(n,t)},zre=Math.min,nu=function(e){return e>0?zre($l(e),9007199254740991):0},ru=function(e){return nu(e.length)},iu=function(e){return function(t,n,r){var i,a=$c(t),o=ru(a),s=tu(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}},au={includes:iu(!0),indexOf:iu(!1)}.indexOf,ou=Jc([].push),su=function(e,t){var n,r=$c(e),i=0,a=[];for(n in r)!bl(Ul,n)&&bl(r,n)&&ou(a,n);for(;t.length>i;)bl(r,n=t[i++])&&(~au(a,n)||ou(a,n));return a},cu=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],lu=cu.concat(`length`,`prototype`),uu={f:Object.getOwnPropertyNames||function(e){return su(e,lu)}},Bre={f:Object.getOwnPropertySymbols},Vre=Jc([].concat),Hre=nl(`Reflect`,`ownKeys`)||function(e){var t=uu.f(Ml(e)),n=Bre.f;return n?Vre(t,n(e)):t},du=function(e,t){for(var n=Hre(t),r=Pl.f,i=jl.f,a=0;a<n.length;a++){var o=n[a];bl(e,o)||r(e,o,i(t,o))}},Ure=/#|\.prototype\./,fu=function(e,t){var n=Gre[Wre(e)];return n==qre||n!=Kre&&(el(t)?Rc(t):!!t)},Wre=fu.normalize=function(e){return String(e).replace(Ure,`.`).toLowerCase()},Gre=fu.data={},Kre=fu.NATIVE=`N`,qre=fu.POLYFILL=`P`,Jre=fu,pu=jl.f,mu=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?Lc:l?Lc[s]||gl(s,{}):(Lc[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=pu(n,r))&&o.value:n[r],!Jre(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;du(a,i)}(e.sham||i&&i.sham)&&Fl(a,`sham`,!0),Ql(n,r,a,e)}},hu={};hu[Tl(`toStringTag`)]=`z`;var gu,_u=String(hu)===`[object z]`,vu=Tl(`toStringTag`),yu=Lc.Object,bu=Yc(function(){return arguments}())==`Arguments`,xu=_u?Yc: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=yu(e),vu))==`string`?n:bu?Yc(t):(r=Yc(t))==`Object`&&el(t.callee)?`Arguments`:r},Su=Lc.String,Cu=function(e){if(xu(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Su(e)},wu=function(){var e=Ml(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},Tu=Lc.RegExp,Eu=Rc((function(){var e=Tu(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Du=Eu||Rc((function(){return!Tu(`a`,`y`).sticky})),Ou={BROKEN_CARET:Eu||Rc((function(){var e=Tu(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Du,UNSUPPORTED_Y:Eu},ku=Object.keys||function(e){return su(e,cu)},Au=zc?Object.defineProperties:function(e,t){Ml(e);for(var n,r=$c(t),i=ku(t),a=i.length,o=0;a>o;)Pl.f(e,n=i[o++],r[n]);return e},ju=nl(`document`,`documentElement`),Mu=Hl(`IE_PROTO`),Nu=function(){},Pu=function(e){return`<script>`+e+`<\/script>`},Fu=function(e){e.write(Pu(``)),e.close();var t=e.parentWindow.Object;return e=null,t},Iu=function(){try{gu=new ActiveXObject(`htmlfile`)}catch{}var e,t;Iu=typeof document<`u`?document.domain&&gu?Fu(gu):((t=Ol(`iframe`)).style.display=`none`,ju.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(Pu(`document.F=Object`)),e.close(),e.F):Fu(gu);for(var n=cu.length;n--;)delete Iu.prototype[cu[n]];return Iu()};Ul[Mu]=!0;var Lu,Ru,zu=Object.create||function(e,t){var n;return e===null?n=Iu():(Nu.prototype=Ml(e),n=new Nu,Nu.prototype=null,n[Mu]=e),t===void 0?n:Au(n,t)},Yre=Lc.RegExp,Xre=Rc((function(){var e=Yre(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Zre=Lc.RegExp,Qre=Rc((function(){var e=Zre(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),$re=Jl.get,eie=vl(`native-string-replace`,String.prototype.replace),Bu=RegExp.prototype.exec,Vu=Bu,tie=Jc(``.charAt),nie=Jc(``.indexOf),rie=Jc(``.replace),Hu=Jc(``.slice),Uu=(Ru=/b*/g,Vc(Bu,Lu=/a/,`a`),Vc(Bu,Ru,`a`),Lu.lastIndex!==0||Ru.lastIndex!==0),Wu=Ou.BROKEN_CARET,Gu=/()??/.exec(``)[1]!==void 0;(Uu||Gu||Wu||Xre||Qre)&&(Vu=function(e){var t,n,r,i,a,o,s,c=this,l=$re(c),u=Cu(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Vc(Vu,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=Wu&&c.sticky,m=Vc(wu,c),h=c.source,g=0,_=u;if(p&&(m=rie(m,`y`,``),nie(m,`g`)===-1&&(m+=`g`),_=Hu(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&tie(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),Gu&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),Uu&&(r=c.lastIndex),i=Vc(Bu,p?n:c,_),p?i?(i.input=Hu(i.input,g),i[0]=Hu(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:Uu&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),Gu&&i&&i.length>1&&Vc(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=zu(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var Ku=Vu;mu({target:`RegExp`,proto:!0,forced:/./.exec!==Ku},{exec:Ku});var iie=Tl(`species`),qu=RegExp.prototype,aie=Jc(``.charAt),Ju=Jc(``.charCodeAt),oie=Jc(``.slice),Yu=function(e){return function(t,n){var r,i,a=Cu(Qc(t)),o=$l(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=Ju(a,o))<55296||r>56319||o+1===s||(i=Ju(a,o+1))<56320||i>57343?e?aie(a,o):r:e?oie(a,o,o+2):i-56320+(r-55296<<10)+65536}},Xu={codeAt:Yu(!1),charAt:Yu(!0)},sie=Xu.charAt,cie=function(e,t,n){return t+(n?sie(e,t).length:1)},lie=Lc.TypeError,Zu=function(e,t){var n=e.exec;if(el(n)){var r=Vc(n,e,t);return r!==null&&Ml(r),r}if(Yc(e)===`RegExp`)return Vc(Ku,e,t);throw lie(`RegExp#exec called on incompatible receiver`)};(function(e,t,n,r){var i=Tl(e),a=!Rc((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!Rc((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=Jc(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=Jc(e),c=t.exec;return c===Ku||c===qu.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));Ql(String.prototype,e,c[0]),Ql(qu,i,c[1])}r&&Fl(qu[i],`sham`,!0)})(`match`,(function(e,t,n){return[function(t){var n=Qc(this),r=t==null?void 0:hl(t,e);return r?Vc(r,t,n):new RegExp(t)[e](Cu(n))},function(e){var r=Ml(this),i=Cu(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return Zu(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=Zu(r,i))!==null;){var u=Cu(s[0]);c[l]=u,u===``&&(r.lastIndex=cie(i,nu(r.lastIndex),o)),l++}return l===0?null:c}]})),mu({global:!0},{globalThis:Lc});var uie=!Rc((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),Qu=Hl(`IE_PROTO`),$u=Lc.Object,ed=$u.prototype,td=uie?$u.getPrototypeOf:function(e){var t=yl(e);if(bl(t,Qu))return t[Qu];var n=t.constructor;return el(n)&&t instanceof n?n.prototype:t instanceof $u?ed:null},nd=Lc.String,rd=Lc.TypeError,id=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=Jc(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Ml(n),function(e){if(typeof e==`object`||el(e))return e;throw rd(`Can't set `+nd(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),ad=Lc.Array,od=Math.max,sd=Jc(``.replace),cd=Jc(``.split),ld=Jc([].join),ud=String(Error(`zxcasd`).stack),dd=/\n\s*at [^:]*:[^\n]*/,fd=dd.test(ud),pd=/@[^\n]*\n/.test(ud)&&!/zxcasd/.test(ud),md=function(e,t){if(typeof e!=`string`)return e;if(fd)for(;t--;)e=sd(e,dd,``);else if(pd)return ld(function(e,t,n){for(var r,i,a,o,s=ru(e),c=tu(t,s),l=tu(n===void 0?s:n,s),u=ad(od(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],o=void 0,(o=El(i))in r?Pl.f(r,o,Wc(0,a)):r[o]=a;return u.length=d,u}(cd(e,`
`),t),`
`);return e},hd=function(e,t){tl(t)&&`cause`in t&&Fl(e,`cause`,t.cause)},gd=Jc(Jc.bind),_d=function(e,t){return ml(e),t===void 0?e:gd?gd(e,t):function(){return e.apply(t,arguments)}},vd={},yd=Tl(`iterator`),bd=Array.prototype,xd=Tl(`iterator`),Sd=function(e){if(e!=null)return hl(e,xd)||hl(e,`@@iterator`)||vd[xu(e)]},Cd=Lc.TypeError,wd=function(e,t,n){var r,i;Ml(e);try{if(!(r=hl(e,`return`))){if(t===`throw`)throw n;return n}r=Vc(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Ml(r),n},Td=Lc.TypeError,Ed=function(e,t){this.stopped=e,this.result=t},Dd=Ed.prototype,die=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=_d(t,u),h=function(e){return r&&wd(r,`normal`,e),new Ed(!0,e)},g=function(e){return d?(Ml(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=Sd(e)))throw Td(pl(e)+` is not iterable`);if(function(e){return e!==void 0&&(vd.Array===e||bd[yd]===e)}(i)){for(a=0,o=ru(e);o>a;a++)if((s=g(e[a]))&&rl(Dd,s))return s;return new Ed(!1)}r=function(e,t){var n=arguments.length<2?Sd(e):t;if(ml(n))return Ml(Vc(n,e));throw Cd(pl(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=Vc(c,r)).done;){try{s=g(l.value)}catch(e){wd(r,`throw`,e)}if(typeof s==`object`&&s&&rl(Dd,s))return s}return new Ed(!1)},fie=function(e,t){return e===void 0?arguments.length<2?``:t:Cu(e)},pie=!Rc((function(){var e=Error(`a`);return!(`stack`in e)||(Object.defineProperty(e,"stack",Wc(1,7)),e.stack!==7)})),mie=Tl(`toStringTag`),Od=Lc.Error,hie=[].push,kd=function(e,t){var n,r=arguments.length>2?arguments[2]:void 0,i=rl(Ad,this);id?n=id(new Od(void 0),i?td(this):Ad):(n=i?this:zu(Ad),Fl(n,mie,`Error`)),Fl(n,`message`,fie(t,``)),pie&&Fl(n,`stack`,md(n.stack,1)),hd(n,r);var a=[];return die(e,hie,{that:a}),Fl(n,`errors`,a),n};id?id(kd,Od):du(kd,Od);var Ad=kd.prototype=zu(Od.prototype,{constructor:Wc(1,kd),message:Wc(1,``),name:Wc(1,`AggregateError`)});mu({global:!0},{AggregateError:kd});var jd=Tl(`unscopables`),Md=Array.prototype;Md[jd]??Pl.f(Md,jd,{configurable:!0,value:zu(null)});var Nd,Pd,Fd,Id=function(e){Md[jd][e]=!0},Ld=Tl(`iterator`),Rd=!1;[].keys&&(`next`in(Fd=[].keys())?(Pd=td(td(Fd)))!==Object.prototype&&(Nd=Pd):Rd=!0),(Nd==null||Rc((function(){var e={};return Nd[Ld].call(e)!==e})))&&(Nd={}),el(Nd[Ld])||Ql(Nd,Ld,(function(){return this}));var zd={IteratorPrototype:Nd,BUGGY_SAFARI_ITERATORS:Rd},gie=Pl.f,Bd=Tl(`toStringTag`),Vd=function(e,t,n){e&&!bl(e=n?e:e.prototype,Bd)&&gie(e,Bd,{configurable:!0,value:t})},_ie=zd.IteratorPrototype,vie=function(){return this},yie=Zl.PROPER,bie=Zl.CONFIGURABLE,Hd=zd.IteratorPrototype,Ud=zd.BUGGY_SAFARI_ITERATORS,Wd=Tl(`iterator`),xie=function(){return this},Gd=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=zu(_ie,{next:Wc(+!r,n)}),Vd(e,i,!1),vd[i]=vie})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!Ud&&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[Wd]||p[`@@iterator`]||i&&p[i],h=!Ud&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=td(g.call(new e)))!==Object.prototype&&s.next&&(td(s)!==Hd&&(id?id(s,Hd):el(s[Wd])||Ql(s,Wd,xie)),Vd(s,d,!0)),yie&&i==`values`&&m&&m.name!==`values`&&(bie?Fl(p,`name`,`values`):(f=!0,h=function(){return Vc(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(Ud||f||!(l in p))&&Ql(p,l,c[l]);else mu({target:t,proto:!0,forced:Ud||f},c)}return p[Wd]!==h&&Ql(p,Wd,h,{name:i}),vd[t]=h,c},Sie=Jl.set,Cie=Jl.getterFor(`Array Iterator`),Kd=Gd(Array,`Array`,(function(e,t){Sie(this,{type:`Array Iterator`,target:$c(e),index:0,kind:t})}),(function(){var e=Cie(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`);vd.Arguments=vd.Array,Id(`keys`),Id(`values`),Id(`entries`);var wie=Xu.charAt,Tie=Jl.set,Eie=Jl.getterFor(`String Iterator`);Gd(String,`String`,(function(e){Tie(this,{type:`String Iterator`,string:Cu(e),index:0})}),(function(){var e,t=Eie(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=wie(n,r),t.index+=e.length,{value:e,done:!1})}));var qd,Jd={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},Yd=Ol(`span`).classList,Xd=Yd&&Yd.constructor&&Yd.constructor.prototype,Zd=Xd===Object.prototype?void 0:Xd,Qd=Tl(`iterator`),$d=Tl(`toStringTag`),ef=Kd.values,tf=function(e,t){if(e){if(e[Qd]!==ef)try{Fl(e,Qd,ef)}catch{e[Qd]=ef}if(e[$d]||Fl(e,$d,t),Jd[t]){for(var n in Kd)if(e[n]!==Kd[n])try{Fl(e,n,Kd[n])}catch{e[n]=Kd[n]}}}};for(var nf in Jd)tf(Lc[nf]&&Lc[nf].prototype,nf);tf(Zd,`DOMTokenList`),typeof global>`u`?(`ActiveXObject`in window&&console.error(`抱歉,wangEditor V5+ 版本开始,不在支持 IE 浏览器
Sorry, wangEditor V5+ versions do not support IE browser.`),rf(),af()):global&&(qd=global.navigator)!=null&&qd.userAgent.match(`QQBrowser`)&&(rf(),af());function rf(){typeof globalThis>`u`&&(window.globalThis=window)}function af(){ire===void 0&&(window.AggregateError=function(e,t){var n=Error(t);return n.errors=e,n})}var of,sf=Array.isArray||function(e){return Xa(e)==`Array`},cf=function(){},Die=[],lf=io(`Reflect`,`construct`),uf=/^\s*(?:class|function)\b/,df=Ba(uf.exec),ff=!uf.exec(cf),pf=function(e){if(!Va(e))return!1;try{return lf(cf,Die,e),!0}catch{return!1}},mf=!lf||Ha((function(){var e;return pf(pf.call)||!pf(Object)||!pf((function(){e=!0}))||e}))?function(e){if(!Va(e))return!1;switch(Ys(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return ff||!!df(uf,sc(e))}:pf,hf=jo(`species`),gf=ja.Array,_f=function(e,t){return new(function(e){var t;return sf(e)&&(t=e.constructor,(mf(t)&&(t===gf||sf(t.prototype))||to(t)&&(t=t[hf])===null)&&(t=void 0)),t===void 0?gf:t}(e))(t===0?0:t)},vf=jo(`species`),yf=jo(`isConcatSpreadable`),bf=ja.TypeError,xf=po>=51||!Ha((function(){var e=[];return e[yf]=!1,e.concat()[0]!==e})),Sf=(of=`concat`,po>=51||!Ha((function(){var e=[];return(e.constructor={})[vf]=function(){return{foo:1}},e[of](Boolean).foo!==1}))),Cf=function(e){if(!to(e))return!1;var t=e[yf];return t===void 0?sf(e):!!t};os({target:`Array`,proto:!0,forced:!xf||!Sf},{concat:function(e){var t,n,r,i,a,o=So(this),s=_f(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(Cf(a=t===-1?o:arguments[t])){if(c+(i=ws(a))>9007199254740991)throw bf(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&Hs(s,c,a[n])}else{if(c>=9007199254740991)throw bf(`Maximum allowed index exceeded`);Hs(s,c++,a)}return s.length=c,s}});var wf=Ns.f,Tf=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Ef={f:function(e){return Tf&&Xa(e)==`Window`?function(e){try{return wf(e)}catch{return Us(Tf)}}(e):wf(eo(e))}},Df=Ba([].slice),Of={f:jo},kf=ns.f,Af=function(e){var t=no.Symbol||={};Co(t,e)||kf(t,e,{value:Of.f(e)})},jf=Ba([].push),Mf=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=So(c),h=Qa(m),g=Xo(l,u),_=ws(h),v=0,y=d||_f,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:jf(b,f)}else switch(e){case 4:return!1;case 7:jf(b,f)}}return a?-1:r||i?i:b}},Nf={forEach:Mf(0),map:Mf(1),filter:Mf(2),some:Mf(3),every:Mf(4),find:Mf(5),findIndex:Mf(6),filterReject:Mf(7)}.forEach,Pf=cs(`hidden`),Ff=jo(`toPrimitive`),If=gc.set,Lf=gc.getterFor(`Symbol`),Rf=Object.prototype,zf=ja.Symbol,Bf=zf&&zf.prototype,Vf=ja.TypeError,Hf=ja.QObject,Uf=io(`JSON`,`stringify`),Wf=Vo.f,Gf=ns.f,Kf=Ef.f,qf=Ja.f,Jf=Ba([].push),Yf=xo(`symbols`),Xf=xo(`op-symbols`),Zf=xo(`string-to-symbol-registry`),Qf=xo(`symbol-to-string-registry`),$f=xo(`wks`),ep=!Hf||!Hf.prototype||!Hf.prototype.findChild,tp=Ua&&Ha((function(){return Vs(Gf({},`a`,{get:function(){return Gf(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=Wf(Rf,t);r&&delete Rf[t],Gf(e,t,n),r&&e!==Rf&&Gf(Rf,t,r)}:Gf,np=function(e,t){var n=Yf[e]=Vs(Bf);return If(n,{type:`Symbol`,tag:e,description:t}),Ua||(n.description=t),n},rp=function(e,t,n){e===Rf&&rp(Xf,t,n),$o(e);var r=Fo(t);return $o(n),Co(Yf,r)?(n.enumerable?(Co(e,Pf)&&e[Pf][r]&&(e[Pf][r]=!1),n=Vs(n,{enumerable:Ya(0,!1)})):(Co(e,Pf)||Gf(e,Pf,Ya(1,{})),e[Pf][r]=!0),tp(e,r,n)):Gf(e,r,n)},ip=function(e,t){$o(e);var n=eo(t);return Nf(Fs(n).concat(cp(n)),(function(t){Ua&&!Ga(ap,n,t)||rp(e,t,n[t])})),e},ap=function(e){var t=Fo(e),n=Ga(qf,this,t);return!(this===Rf&&Co(Yf,t)&&!Co(Xf,t))&&(!(n||!Co(this,t)||!Co(Yf,t)||Co(this,Pf)&&this[Pf][t])||n)},op=function(e,t){var n=eo(e),r=Fo(t);if(n!==Rf||!Co(Yf,r)||Co(Xf,r)){var i=Wf(n,r);return!i||!Co(Yf,r)||Co(n,Pf)&&n[Pf][r]||(i.enumerable=!0),i}},sp=function(e){var t=Kf(eo(e)),n=[];return Nf(t,(function(e){Co(Yf,e)||Co(Ds,e)||Jf(n,e)})),n},cp=function(e){var t=e===Rf,n=Kf(t?Xf:eo(e)),r=[];return Nf(n,(function(e){!Co(Yf,e)||t&&!Co(Rf,e)||Jf(r,Yf[e])})),r};if(mo||(Bf=(zf=function(){if(ao(Bf,this))throw Vf(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?ec(arguments[0]):void 0,t=Eo(e),n=function(e){this===Rf&&Ga(n,Xf,e),Co(this,Pf)&&Co(this[Pf],t)&&(this[Pf][t]=!1),tp(this,t,Ya(1,e))};return Ua&&ep&&tp(Rf,t,{configurable:!0,set:n}),np(t,e)}).prototype,yc(Bf,`toString`,(function(){return Lf(this).tag})),yc(zf,`withoutSetter`,(function(e){return np(Eo(e),e)})),Ja.f=ap,ns.f=rp,Vo.f=op,Ns.f=Ef.f=sp,Ps.f=cp,Of.f=function(e){return np(jo(e),e)},Ua&&Gf(Bf,`description`,{configurable:!0,get:function(){return Lf(this).description}})),os({global:!0,wrap:!0,forced:!mo,sham:!mo},{Symbol:zf}),Nf(Fs($f),(function(e){Af(e)})),os({target:`Symbol`,stat:!0,forced:!mo},{for:function(e){var t=ec(e);if(Co(Zf,t))return Zf[t];var n=zf(t);return Zf[t]=n,Qf[n]=t,n},keyFor:function(e){if(!go(e))throw Vf(e+` is not a symbol`);if(Co(Qf,e))return Qf[e]},useSetter:function(){ep=!0},useSimple:function(){ep=!1}}),os({target:`Object`,stat:!0,forced:!mo,sham:!Ua},{create:function(e,t){return t===void 0?Vs(e):ip(Vs(e),t)},defineProperty:rp,defineProperties:ip,getOwnPropertyDescriptor:op}),os({target:`Object`,stat:!0,forced:!mo},{getOwnPropertyNames:sp,getOwnPropertySymbols:cp}),os({target:`Object`,stat:!0,forced:Ha((function(){Ps.f(1)}))},{getOwnPropertySymbols:function(e){return Ps.f(So(e))}}),Uf&&os({target:`JSON`,stat:!0,forced:!mo||Ha((function(){var e=zf();return Uf([e])!=`[null]`||Uf({a:e})!=`{}`||Uf(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Df(arguments),i=t;if((to(t)||e!==void 0)&&!go(e))return sf(t)||(t=function(e,t){if(Va(i)&&(t=Ga(i,this,e,t)),!go(t))return t}),r[1]=t,Ia(Uf,null,r)}}),!Bf[Ff]){var lp=Bf.valueOf;yc(Bf,Ff,(function(e){return Ga(lp,this)}))}wc(zf,`Symbol`),Ds[Pf]=!0,Af(`asyncIterator`),Af(`hasInstance`),Af(`isConcatSpreadable`),Af(`iterator`),Af(`match`),Af(`matchAll`),Af(`replace`),Af(`search`),Af(`species`),Af(`split`),Af(`toPrimitive`),Af(`toStringTag`),Af(`unscopables`),wc(ja.JSON,`JSON`,!0);var up=no.Symbol;Af(`asyncDispose`),Af(`dispose`),Af(`matcher`),Af(`metadata`),Af(`observable`),Af(`patternMatch`),Af(`replaceAll`);var dp=up,fp=Of.f(`iterator`),pp=Ea(Da((function(e){function t(n){return typeof dp==`function`&&typeof fp==`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 dp==`function`&&e.constructor===dp&&e!==dp.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}))),mp=jl.f,hp=Rc((function(){mp(1)}));if(mu({target:`Object`,stat:!0,forced:!zc||hp,sham:!zc},{getOwnPropertyDescriptor:function(e,t){return mp($c(e),t)}}),(typeof global>`u`?`undefined`:pp(global))===`object`){var gp=Object.getOwnPropertyDescriptor(global,`window`);global.window&&!gp.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 _p(e){return Object.prototype.toString.call(e)===`[object Object]`}function vp(e){var t,n;return!1!==_p(e)&&((t=e.constructor)===void 0||!1!==_p(n=t.prototype)&&!1!==n.hasOwnProperty(`isPrototypeOf`))}function yp(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 bp(e){return!!e&&!!e[tm]}function xp(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)===Mie}(e)||Array.isArray(e)||!!e[em]||!!e.constructor[em]||Ep(e)||Dp(e))}function Sp(e,t,n){n===void 0&&(n=!1),Cp(e)===0?(n?Object.keys:nm)(e).forEach((function(r){n&&typeof r==`symbol`||t(r,e[r],e)})):e.forEach((function(n,r){return t(r,n,e)}))}function Cp(e){var t=e[tm];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:Ep(e)?2:Dp(e)?3:0}function wp(e,t){return Cp(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Tp(e,t,n){var r=Cp(e);r===2?e.set(t,n):r===3?(e.delete(t),e.add(n)):e[t]=n}function Ep(e){return Aie&&e instanceof Map}function Dp(e){return jie&&e instanceof Set}function Op(e){return e.o||e.t}function kp(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nie(e);delete t[tm];for(var n=nm(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 Ap(e,t){return t===void 0&&(t=!1),Mp(e)||bp(e)||!xp(e)||(Cp(e)>1&&(e.set=e.add=e.clear=e.delete=jp),Object.freeze(e),t&&Sp(e,(function(e,t){return Ap(t,!0)}),!0)),e}function jp(){yp(2)}function Mp(e){return typeof e!=`object`||!e||Object.isFrozen(e)}function Np(e){var t=Pie[e];return t||yp(18,e),t}function Pp(){return Xp}function Fp(e,t){t&&(Np(`Patches`),e.u=[],e.s=[],e.v=t)}function Ip(e){Lp(e),e.p.forEach(Oie),e.p=null}function Lp(e){e===Xp&&(Xp=e.l)}function Rp(e){return Xp={p:[],l:Xp,h:e,m:!0,_:0}}function Oie(e){var t=e[tm];t.i===0||t.i===1?t.j():t.O=!0}function zp(e,t){t._=t.p.length;var n=t.p[0],r=e!==void 0&&e!==n;return t.h.g||Np(`ES5`).S(t,e,r),r?(n[tm].P&&(Ip(t),yp(4)),xp(e)&&(e=Bp(t,e),t.l||Hp(t,e)),t.u&&Np(`Patches`).M(n[tm],e,t.u,t.s)):e=Bp(t,n,[]),Ip(t),t.u&&t.v(t.u,t.s),e===$p?void 0:e}function Bp(e,t,n){if(Mp(t))return t;var r=t[tm];if(!r)return Sp(t,(function(i,a){return Vp(e,r,t,i,a,n)}),!0),t;if(r.A!==e)return t;if(!r.P)return Hp(e,r.t,!0),r.t;if(!r.I){r.I=!0,r.A._--;var i=r.i===4||r.i===5?r.o=kp(r.k):r.o;Sp(r.i===3?new Set(i):i,(function(t,a){return Vp(e,r,i,t,a,n)})),Hp(e,i,!1),n&&e.u&&Np(`Patches`).R(r,n,e.u,e.s)}return r.o}function Vp(e,t,n,r,i,a){if(bp(i)){var o=Bp(e,i,a&&t&&t.i!==3&&!wp(t.D,r)?a.concat(r):void 0);if(Tp(n,r,o),!bp(o))return;e.m=!1}if(xp(i)&&!Mp(i)){if(!e.h.F&&e._<1)return;Bp(e,i),t&&t.A.l||Hp(e,i)}}function Hp(e,t,n){n===void 0&&(n=!1),e.h.F&&e.m&&Ap(t,n)}function Up(e,t){var n=e[tm];return(n?Op(n):e)[t]}function Wp(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 Gp(e){e.P||(e.P=!0,e.l&&Gp(e.l))}function Kp(e){e.o||=kp(e.t)}function qp(e,t,n){var r=Ep(t)?Np(`MapSet`).N(t,n):Dp(t)?Np(`MapSet`).T(t,n):e.g?function(e,t){var n=Array.isArray(e),r={i:+!!n,A:t?t.A:Pp(),P:!1,I:!1,D:{},l:t,t:e,k:null,o:null,j:null,C:!1},i=r,a=rm;n&&(i=[r],a=im);var o=Proxy.revocable(i,a),s=o.revoke,c=o.proxy;return r.k=c,r.j=s,c}(t,n):Np(`ES5`).J(t,n);return(n?n.A:Pp()).p.push(r),r}function kie(e){return bp(e)||yp(22,e),function e(t){if(!xp(t))return t;var n,r=t[tm],i=Cp(t);if(r){if(!r.P&&(r.i<4||!Np(`ES5`).K(r)))return r.t;r.I=!0,n=Jp(t,i),r.I=!1}else n=Jp(t,i);return Sp(n,(function(t,i){r&&function(e,t){return Cp(e)===2?e.get(t):e[t]}(r.t,t)===i||Tp(n,t,e(i))})),i===3?new Set(n):n}(e)}function Jp(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return kp(e)}var Yp,Xp,Zp=typeof Symbol<`u`&&typeof Symbol(`x`)==`symbol`,Aie=typeof Map<`u`,jie=typeof Set<`u`,Qp=typeof Proxy<`u`&&Proxy.revocable!==void 0&&typeof Reflect<`u`,$p=Zp?Symbol.for(`immer-nothing`):((Yp={})[`immer-nothing`]=!0,Yp),em=Zp?Symbol.for(`immer-draftable`):`__$immer_draftable`,tm=Zp?Symbol.for(`immer-state`):`__$immer_state`,Mie=``+Object.prototype.constructor,nm=typeof Reflect<`u`&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols===void 0?Object.getOwnPropertyNames:function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))},Nie=Object.getOwnPropertyDescriptors||function(e){var t={};return nm(e).forEach((function(n){t[n]=Object.getOwnPropertyDescriptor(e,n)})),t},Pie={},rm={get:function(e,t){if(t===tm)return e;var n=Op(e);if(!wp(n,t))return function(e,t,n){var r=Wp(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||!xp(r)?r:r===Up(e.t,t)?(Kp(e),e.o[t]=qp(e.A.h,r,e)):r},has:function(e,t){return t in Op(e)},ownKeys:function(e){return Reflect.ownKeys(Op(e))},set:function(e,t,n){var r=Wp(Op(e),t);if(r?.set)return r.set.call(e.k,n),!0;if(!e.P){var i=Up(Op(e),t),a=i?.[tm];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||wp(e.t,t)))return!0;Kp(e),Gp(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 Up(e.t,t)!==void 0||t in e.t?(e.D[t]=!1,Kp(e),Gp(e)):delete e.D[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var n=Op(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.i!==1||t!==`length`,enumerable:r.enumerable,value:n[t]}},defineProperty:function(){yp(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){yp(12)}},im={};Sp(rm,(function(e,t){im[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),im.deleteProperty=function(e,t){return rm.deleteProperty.call(this,e[0],t)},im.set=function(e,t,n){return rm.set.call(this,e[0],t,n,e[0])};var am=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`&&yp(6),r!==void 0&&typeof r!=`function`&&yp(7),xp(e)){var s=Rp(t),c=qp(t,e,void 0),l=!0;try{o=n(c),l=!1}finally{l?Ip(s):Lp(s)}return typeof Promise<`u`&&o instanceof Promise?o.then((function(e){return Fp(s,r),zp(e,s)}),(function(e){throw Ip(s),e})):(Fp(s,r),zp(o,s))}if(!e||typeof e!=`object`)return(o=n(e))===$p?void 0:(o===void 0&&(o=e),t.F&&Ap(o,!0),o);yp(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){xp(e)||yp(8),bp(e)&&(e=kie(e));var t=Rp(this),n=qp(this,e,void 0);return n[tm].C=!0,Lp(t),n},t.finishDraft=function(e,t){var n=(e&&e[tm]).A;return Fp(n,t),zp(void 0,n)},t.setAutoFreeze=function(e){this.F=e},t.setUseProxies=function(e){e&&!Qp&&yp(20),this.g=e},t.applyPatches=function(e,t){for(var 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=Np(`Patches`).$;return bp(e)?i(e,t):this.produce(e,(function(e){return i(e,t)}))},e}()),om=am.produce;am.produceWithPatches.bind(am),am.setAutoFreeze.bind(am),am.setUseProxies.bind(am),am.applyPatches.bind(am);var sm=am.createDraft.bind(am),cm=am.finishDraft.bind(am);function lm(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var um=new WeakMap,dm=new WeakMap,fm=new WeakMap,pm=new WeakMap,mm=new WeakMap,hm=new WeakMap;function gm(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function _m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?gm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Fie=()=>{var e={children:[],operations:[],selection:null,marks:null,isInline:()=>!1,isVoid:()=>!1,onChange:()=>{},apply:t=>{for(var n of H.pathRefs(e))dae.transform(n,t);for(var r of H.pointRefs(e))fae.transform(r,t);for(var i of H.rangeRefs(e))mae.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=um.get(e)||[],l=Iie(t);for(var u of c)s(W.transform(u,t));for(var d of l)s(d);um.set(e,o),q.transform(e,t),e.operations.push(t),H.normalize(e),t.type===`set_selection`&&(e.marks=null),dm.get(e)||(dm.set(e,!0),Promise.resolve().then((()=>{dm.set(e,!1),e.onChange(),e.operations=[]})))},addMark:(t,n)=>{var{selection:r}=e;r&&(G.isExpanded(r)?q.setNodes(e,{[t]:n},{match:K.isText,split:!0}):(e.marks=_m(_m({},H.marks(e)||{}),{},{[t]:n}),dm.get(e)||e.onChange()))},deleteBackward:t=>{var{selection:n}=e;n&&G.isCollapsed(n)&&q.delete(e,{unit:t,reverse:!0})},deleteForward:t=>{var{selection:n}=e;n&&G.isCollapsed(n)&&q.delete(e,{unit:t})},deleteFragment:t=>{var{selection:n}=e;n&&G.isExpanded(n)&&q.delete(e,{reverse:t===`backward`})},getFragment:()=>{var{selection:t}=e;return t?U.fragment(e,t):[]},insertBreak:()=>{q.splitNodes(e,{always:!0})},insertFragment:t=>{q.insertFragment(e,t)},insertNode:t=>{q.insertNodes(e,t)},insertText:t=>{var{selection:n,marks:r}=e;if(n){if(r){var i=_m({text:t},r);q.insertNodes(e,i)}else q.insertText(e,t);e.marks=null}},normalizeNode:t=>{var[n,r]=t;if(!K.isText(n)){if(V.isElement(n)&&n.children.length===0)q.insertNodes(e,{text:``},{at:r.concat(0),voids:!0});else for(var i=!H.isEditor(n)&&V.isElement(n)&&(e.isInline(n)||n.children.length===0||K.isText(n.children[0])||e.isInline(n.children[0])),a=0,o=0;o<n.children.length;o++,a++){var s=U.get(e,r);if(!K.isText(s)){var c=n.children[o],l=s.children[a-1],u=o===n.children.length-1;(K.isText(c)||V.isElement(c)&&e.isInline(c))===i?V.isElement(c)?e.isInline(c)&&(l!=null&&K.isText(l)?u&&(q.insertNodes(e,{text:``},{at:r.concat(a+1),voids:!0}),a++):(q.insertNodes(e,{text:``},{at:r.concat(a),voids:!0}),a++)):l!=null&&K.isText(l)&&(K.equals(c,l,{loose:!0})?(q.mergeNodes(e,{at:r.concat(a),voids:!0}),a--):l.text===``?(q.removeNodes(e,{at:r.concat(a-1),voids:!0}),a--):c.text===``&&(q.removeNodes(e,{at:r.concat(a),voids:!0}),a--)):(q.removeNodes(e,{at:r.concat(a),voids:!0}),a--)}}}},removeMark:t=>{var{selection:n}=e;if(n){if(G.isExpanded(n))q.unsetNodes(e,t,{match:K.isText,split:!0});else{var r=_m({},H.marks(e)||{});delete r[t],e.marks=r,dm.get(e)||e.onChange()}}}};return e},Iie=e=>{switch(e.type){case`insert_text`:case`remove_text`:case`set_node`:var{path:t}=e;return W.levels(t);case`insert_node`:var{node:n,path:r}=e,i=W.levels(r),a=K.isText(n)?[]:Array.from(U.nodes(n),(e=>{var[,t]=e;return r.concat(t)}));return[...i,...a];case`merge_node`:var{path:o}=e;return[...W.ancestors(o),W.previous(o)];case`move_node`:var{path:s,newPath:c}=e;if(W.equals(s,c))return[];var l=[],u=[];for(var d of W.ancestors(s)){var f=W.transform(d,e);l.push(f)}for(var p of W.ancestors(c)){var m=W.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[...W.ancestors(v)];case`split_node`:var{path:y}=e;return[...W.levels(y),W.next(y)];default:return[]}};function vm(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 ym,bm=function(e){var t=arguments.length>1&&arguments[1]!==void 0&&arguments[1],n=!t,r=t?Vie(e):e,i=ym.None,a=ym.None,o=0,s=null;for(var c of r){var l=c.codePointAt(0);if(!l)break;var u=$ie(c,l);if([i,a]=n?[a,u]:[u,i],Sm(i,ym.ZWJ)&&Sm(a,ym.ExtPict)&&!rae(n?e.substring(0,o):e.substring(0,e.length-o))||Sm(i,ym.RI)&&Sm(a,ym.RI)&&!(s=s===null?!!n||aae(e.substring(0,e.length-o)):!s)||i!==ym.None&&a!==ym.None&&tae(i,a))break;o+=c.length}return o||1},Lie=/\s/,Rie=/[\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]/,zie=/['\u2018\u2019]/,xm=(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)]},Bie=function e(t,n){var r=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(Lie.test(t))return!1;if(zie.test(t)){var[i,a]=xm(n,bm(n,r),r);if(e(i,a,r))return!0}return!Rie.test(t)},Vie=function*(e){for(var t=e.length-1,n=0;n<e.length;n++){var r=e.charAt(t-n);if(Uie(r.charCodeAt(0))){var i=e.charAt(t-n-1);if(Hie(i.charCodeAt(0))){yield i+r,n++;continue}}yield r}},Hie=e=>e>=55296&&e<=56319,Uie=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`})(ym||={});var Wie=/^(?:[\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])$/,Gie=/^(?:[\u0600-\u0605\u06DD\u070F\u0890\u0891\u08E2\u0D4E]|\uD804[\uDCBD\uDCCD\uDDC2\uDDC3]|\uD806[\uDD3F\uDD41\uDE3A\uDE84-\uDE89]|\uD807\uDD46)$/,Kie=/^(?:[\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])$/,qie=/^[\u1100-\u115F\uA960-\uA97C]$/,Jie=/^[\u1160-\u11A7\uD7B0-\uD7C6]$/,Yie=/^[\u11A8-\u11FF\uD7CB-\uD7FB]$/,Xie=/^[\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]$/,Zie=/^[\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]$/,Qie=/^(?:[\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])$/,$ie=(e,t)=>{var n=ym.Any;return e.search(Wie)!==-1&&(n|=ym.Extend),t===8205&&(n|=ym.ZWJ),t>=127462&&t<=127487&&(n|=ym.RI),e.search(Gie)!==-1&&(n|=ym.Prepend),e.search(Kie)!==-1&&(n|=ym.SpacingMark),e.search(qie)!==-1&&(n|=ym.L),e.search(Jie)!==-1&&(n|=ym.V),e.search(Yie)!==-1&&(n|=ym.T),e.search(Xie)!==-1&&(n|=ym.LV),e.search(Zie)!==-1&&(n|=ym.LVT),e.search(Qie)!==-1&&(n|=ym.ExtPict),n};function Sm(e,t){return(e&t)!=0}var eae=[[ym.L,ym.L|ym.V|ym.LV|ym.LVT],[ym.LV|ym.V,ym.V|ym.T],[ym.LVT|ym.T,ym.T],[ym.Any,ym.Extend|ym.ZWJ],[ym.Any,ym.SpacingMark],[ym.Prepend,ym.Any],[ym.ZWJ,ym.ExtPict],[ym.RI,ym.RI]];function tae(e,t){return eae.findIndex((n=>Sm(e,n[0])&&Sm(t,n[1])))===-1}var nae=/(?:[\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$/,rae=e=>e.search(nae)!==-1,iae=/(?:\uD83C[\uDDE6-\uDDFF])+$/g,aae=e=>{var t=e.match(iae);return t!==null&&t[0].length/2%2==1},Cm=e=>vp(e)&&U.isNodeList(e.children)&&!H.isEditor(e),V={isAncestor:e=>vp(e)&&U.isNodeList(e.children),isElement:Cm,isElementList:e=>Array.isArray(e)&&e.every((e=>V.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 Cm(e)&&e[n]===t},matches(e,t){for(var n in t)if(n!==`children`&&e[n]!==t[n])return!1;return!0}},oae=[`text`],sae=[`text`];function wm(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 Tm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?wm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Em=new WeakMap,H={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=H.path(e,r),o=n===`lowest`;for(var[s,c]of H.levels(e,{at:a,voids:t,match:i,reverse:o}))if(!K.isText(s)&&!W.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:H.point(e,t,{edge:`end`}),focus:H.end(e,[])},{distance:a=1}=r,o=0;for(var s of H.positions(e,Tm(Tm({},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:H.start(e,[]),focus:H.point(e,t,{edge:`start`})},{distance:a=1}=r,o=0;for(var s of H.positions(e,Tm(Tm({},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)=>[H.start(e,t),H.end(e,t)],end:(e,t)=>H.point(e,t,{edge:`end`}),first(e,t){var n=H.path(e,t,{edge:`start`});return H.node(e,n)},fragment(e,t){var n=H.range(e,t);return U.fragment(e,n)},hasBlocks:(e,t)=>t.children.some((t=>H.isBlock(e,t))),hasInlines:(e,t)=>t.children.some((t=>K.isText(t)||H.isInline(e,t))),hasTexts:(e,t)=>t.children.every((e=>K.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)=>V.isElement(t)&&!e.isInline(t),isEditor(e){if(!vp(e))return!1;var t=Em.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||vp(e.marks))&&(e.selection===null||G.isRange(e.selection))&&U.isNodeList(e.children)&&Am.isOperationList(e.operations);return Em.set(e,n),n},isEnd(e,t,n){var r=H.end(e,n);return Nm.equals(t,r)},isEdge:(e,t,n)=>H.isStart(e,t,n)||H.isEnd(e,t,n),isEmpty(e,t){var{children:n}=t,[r]=n;return n.length===0||n.length===1&&K.isText(r)&&r.text===``&&!e.isVoid(t)},isInline:(e,t)=>V.isElement(t)&&e.isInline(t),isNormalizing(e){var t=fm.get(e);return t===void 0||t},isStart(e,t,n){if(t.offset!==0)return!1;var r=H.start(e,n);return Nm.equals(t,r)},isVoid:(e,t)=>V.isElement(t)&&e.isVoid(t),last(e,t){var n=H.path(e,t,{edge:`end`});return H.node(e,n)},leaf(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.path(e,t,n);return[U.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=H.path(e,n);for(var[c,l]of U.levels(e,s))if(a(c,l)&&(o.push([c,l]),!i&&H.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(G.isExpanded(n)){var[r]=H.nodes(e,{match:K.isText});if(r){var[i]=r;return vm(i,oae)}return{}}var{anchor:a}=n,{path:o}=a,[s]=H.leaf(e,o);if(a.offset===0){var c=H.previous(e,{at:o,match:K.isText}),l=H.above(e,{match:t=>H.isBlock(e,t)});if(c&&l){var[u,d]=c,[,f]=l;W.isAncestor(f,d)&&(s=u)}}return vm(s,sae)},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=H.after(e,a,{voids:r});if(o){var[,s]=H.last(e,[]),c=[o.path,s];if(W.isPath(a)&&a.length===0)throw Error(`Cannot get the next node from the root node!`);if(i==null){if(W.isPath(a)){var[l]=H.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0}var[u]=H.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=H.path(e,t,n);return[U.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(cae.isSpan(n))c=n[0],l=n[1];else{var u=H.path(e,n,{edge:`start`}),d=H.path(e,n,{edge:`end`});c=a?d:u,l=a?u:d}var f,p=U.nodes(e,{reverse:a,from:c,to:l,pass:t=>{var[n]=t;return!o&&H.isVoid(e,n)}}),m=[];for(var[h,g]of p){var _=f&&W.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&&!_&&K.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=>um.get(e)||[];if(H.isNormalizing(e)){if(t){var r=Array.from(U.nodes(e),(e=>{var[,t]=e;return t}));um.set(e,r)}n(e).length!==0&&H.withoutNormalizing(e,(()=>{for(var t of n(e))if(U.has(e,t)){var r=H.node(e,t),[i,a]=r;V.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(U.has(e,c)){var l=H.node(e,c);e.normalizeNode(l)}s++}}))}},parent(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.path(e,t,n),i=W.parent(r);return H.node(e,i)},path(e,t){var{depth:n,edge:r}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(W.isPath(t)){if(r===`start`){var[,i]=U.first(e,t);t=i}else if(r===`end`){var[,a]=U.last(e,t);t=a}}return G.isRange(t)&&(t=r===`start`?G.start(t):r===`end`?G.end(t):W.common(t.anchor.path,t.focus.path)),Nm.isPoint(t)&&(t=t.path),n!=null&&(t=t.slice(0,n)),t},hasPath:(e,t)=>U.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 H.pathRefs(e).delete(r),r.current=null,t}};return H.pathRefs(e).add(r),r},pathRefs(e){var t=pm.get(e);return t||(t=new Set,pm.set(e,t)),t},point(e,t){var{edge:n=`start`}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(W.isPath(t)){var r;if(n===`end`){var[,i]=U.last(e,t);r=i}else{var[,a]=U.first(e,t);r=a}var o=U.get(e,r);if(!K.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(G.isRange(t)){var[s,c]=G.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 H.pointRefs(e).delete(r),r.current=null,t}};return H.pointRefs(e).add(r),r},pointRefs(e){var t=mm.get(e);return t||(t=new Set,mm.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=H.range(e,t),[o,s]=G.edges(a),c=r?s:o,l=!1,u=``,d=0,f=0,p=0;for(var[m,h]of H.nodes(e,{at:t,reverse:r,voids:i})){if(V.isElement(m)){if(!i&&e.isVoid(m)){yield H.start(e,h);continue}if(e.isInline(m))continue;if(H.hasInlines(e,m)){var g=W.isAncestor(h,s.path)?s:H.end(e,h),_=W.isAncestor(h,o.path)?o:H.start(e,h);u=H.string(e,{anchor:_,focus:g},{voids:i}),l=!0}}if(K.isText(m)){var v=W.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=xm(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`?bm(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=bm(e,t),[a,o]=xm(e,i,t);if(Bie(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=H.before(e,a,{voids:r});if(o){var[,s]=H.first(e,[]),c=[o.path,s];if(W.isPath(a)&&a.length===0)throw Error(`Cannot get the previous node from the root node!`);if(i==null){if(W.isPath(a)){var[l]=H.parent(e,a);i=e=>l.children.includes(e)}else i=()=>!0}var[u]=H.nodes(e,{reverse:!0,at:c,match:i,mode:n,voids:r});return u}}},range:(e,t,n)=>G.isRange(t)&&!n?t:{anchor:H.start(e,t),focus:H.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 H.rangeRefs(e).delete(r),r.current=null,t}};return H.rangeRefs(e).add(r),r},rangeRefs(e){var t=hm.get(e);return t||(t=new Set,hm.set(e,t)),t},removeMark(e,t){e.removeMark(t)},setNormalizing(e,t){fm.set(e,t)},start:(e,t)=>H.point(e,t,{edge:`start`}),string(e,t){var{voids:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=H.range(e,t),[i,a]=G.edges(r),o=``;for(var[s,c]of H.nodes(e,{at:r,match:K.isText,voids:n})){var l=s.text;W.equals(c,a.path)&&(l=l.slice(0,a.offset)),W.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]=G.edges(t);if(r.offset!==0||i.offset!==0||G.isCollapsed(t))return t;var a=H.above(e,{at:i,match:t=>H.isBlock(e,t)}),o=a?a[1]:[],s={anchor:H.start(e,[]),focus:i},c=!0;for(var[l,u]of H.nodes(e,{at:s,match:K.isText,reverse:!0,voids:n}))if(c)c=!1;else if(l.text!==``||W.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 H.above(e,Tm(Tm({},t),{},{match:t=>H.isVoid(e,t)}))},withoutNormalizing(e,t){var n=H.isNormalizing(e);H.setNormalizing(e,!1);try{t()}finally{H.setNormalizing(e,n)}H.normalize(e)}},cae={isSpan:e=>Array.isArray(e)&&e.length===2&&e.every(W.isPath)},lae=[`children`],uae=[`text`],Dm=new WeakMap,U={ancestor(e,t){var n=U.get(e,t);if(K.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 W.ancestors(t,n))yield[U.ancestor(e,r),r]},child(e,t){if(K.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=U.ancestor(e,t),{children:i}=r,a=n?i.length-1:0;n?a>=0:a<i.length;)yield[U.child(r,a),t.concat(a)],a=n?a-1:a+1},common(e,t,n){var r=W.common(t,n);return[U.get(e,r),r]},descendant(e,t){var n=U.get(e,t);if(H.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 U.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 U.nodes(e,t))V.isElement(n)&&(yield[n,r])},extractProps:e=>V.isAncestor(e)?vm(e,lae):vm(e,uae),first(e,t){for(var n=t.slice(),r=U.get(e,n);r&&!K.isText(r)&&r.children.length!==0;)r=r.children[0],n.push(0);return[r,n]},fragment(e,t){if(K.isText(e))throw Error(`Cannot get a fragment starting from a root text node: ${JSON.stringify(e)}`);return om({children:e.children},(e=>{var[n,r]=G.edges(t);for(var[,i]of U.nodes(e,{reverse:!0,pass:e=>{var[,n]=e;return!G.includes(t,n)}})){if(!G.includes(t,i)){var a=U.parent(e,i),o=i[i.length-1];a.children.splice(o,1)}if(W.equals(i,r.path)){var s=U.leaf(e,i);s.text=s.text.slice(0,r.offset)}if(W.equals(i,n.path)){var c=U.leaf(e,i);c.text=c.text.slice(n.offset)}}H.isEditor(e)&&(e.selection=null)})).children},get(e,t){for(var n=e,r=0;r<t.length;r++){var i=t[r];if(K.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(K.isText(n)||!n.children[i])return!1;n=n.children[i]}return!0},isNode:e=>K.isText(e)||V.isElement(e)||H.isEditor(e),isNodeList(e){if(!Array.isArray(e))return!1;var t=Dm.get(e);if(t!==void 0)return t;var n=e.every((e=>U.isNode(e)));return Dm.set(e,n),n},last(e,t){for(var n=t.slice(),r=U.get(e,n);r&&!K.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=U.get(e,t);if(!K.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 W.levels(t,n))yield[U.get(e,r),r]},matches:(e,t)=>V.isElement(e)&&V.isElementProps(t)&&V.matches(e,t)||K.isText(e)&&K.isTextProps(t)&&K.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?W.isBefore(s,a):W.isAfter(s,a));)if(o.has(c)||(yield[c,s]),o.has(c)||K.isText(c)||c.children.length===0||n!=null&&!1!==n([c,s])){if(s.length===0)break;if(!r){var l=W.next(s);if(U.has(e,l)){s=l,c=U.get(e,s);continue}}r&&s[s.length-1]!==0?(s=W.previous(s),c=U.get(e,s)):(s=W.parent(s),c=U.get(e,s),o.add(c))}else{o.add(c);var u=r?c.children.length-1:0;W.isAncestor(s,i)&&(u=i[s.length]),s=s.concat(u),c=U.get(e,s)}},parent(e,t){var n=W.parent(t),r=U.get(e,n);if(K.isText(r))throw Error(`Cannot get the parent of path [${t}] because it does not exist in the root.`);return r},string:e=>K.isText(e)?e.text:e.children.map(U.string).join(``),*texts(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};for(var[n,r]of U.nodes(e,t))K.isText(n)&&(yield[n,r])}};function Om(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 km(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Om(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Om(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Am={isNodeOperation:e=>Am.isOperation(e)&&e.type.endsWith(`_node`),isOperation(e){if(!vp(e))return!1;switch(e.type){case`insert_node`:case`remove_node`:return W.isPath(e.path)&&U.isNode(e.node);case`insert_text`:case`remove_text`:return typeof e.offset==`number`&&typeof e.text==`string`&&W.isPath(e.path);case`merge_node`:return typeof e.position==`number`&&W.isPath(e.path)&&vp(e.properties);case`move_node`:return W.isPath(e.path)&&W.isPath(e.newPath);case`set_node`:return W.isPath(e.path)&&vp(e.properties)&&vp(e.newProperties);case`set_selection`:return e.properties===null&&G.isRange(e.newProperties)||e.newProperties===null&&G.isRange(e.properties)||vp(e.properties)&&vp(e.newProperties);case`split_node`:return W.isPath(e.path)&&typeof e.position==`number`&&vp(e.properties);default:return!1}},isOperationList:e=>Array.isArray(e)&&e.every((e=>Am.isOperation(e))),isSelectionOperation:e=>Am.isOperation(e)&&e.type.endsWith(`_selection`),isTextOperation:e=>Am.isOperation(e)&&e.type.endsWith(`_text`),inverse(e){switch(e.type){case`insert_node`:return km(km({},e),{},{type:`remove_node`});case`insert_text`:return km(km({},e),{},{type:`remove_text`});case`merge_node`:return km(km({},e),{},{type:`split_node`,path:W.previous(e.path)});case`move_node`:var{newPath:t,path:n}=e;if(W.equals(t,n))return e;if(W.isSibling(n,t))return km(km({},e),{},{path:t,newPath:n});var r=W.transform(n,e),i=W.transform(W.next(n),e);return km(km({},e),{},{path:r,newPath:i});case`remove_node`:return km(km({},e),{},{type:`insert_node`});case`remove_text`:return km(km({},e),{},{type:`insert_text`});case`set_node`:var{properties:a,newProperties:o}=e;return km(km({},e),{},{properties:o,newProperties:a});case`set_selection`:var{properties:s,newProperties:c}=e;return km(km({},e),{},s==null?{properties:c,newProperties:null}:c==null?{properties:null,newProperties:s}:{properties:c,newProperties:s});case`split_node`:return km(km({},e),{},{type:`merge_node`,path:W.next(e.path)})}}},W={ancestors(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{reverse:n=!1}=t,r=W.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 W.equals(r,i)&&a>o},endsAt(e,t){var n=e.length,r=e.slice(0,n),i=t.slice(0,n);return W.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 W.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)=>W.compare(e,t)===1,isAncestor:(e,t)=>e.length<t.length&&W.compare(e,t)===0,isBefore:(e,t)=>W.compare(e,t)===-1,isChild:(e,t)=>e.length===t.length+1&&W.compare(e,t)===0,isCommon:(e,t)=>e.length<=t.length&&W.compare(e,t)===0,isDescendant:(e,t)=>e.length>t.length&&W.compare(e,t)===0,isParent:(e,t)=>e.length+1===t.length&&W.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]&&W.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(!W.isAncestor(t,e)&&!W.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 om(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;(W.equals(a,r)||W.endsBefore(a,r)||W.isAncestor(a,r))&&(r[a.length-1]+=1);break;case`remove_node`:var{path:o}=t;if(W.equals(o,r)||W.isAncestor(o,r))return null;W.endsBefore(o,r)&&--r[o.length-1];break;case`merge_node`:var{path:s,position:c}=t;W.equals(s,r)||W.endsBefore(s,r)?--r[s.length-1]:W.isAncestor(s,r)&&(--r[s.length-1],r[s.length]+=c);break;case`split_node`:var{path:l,position:u}=t;if(W.equals(l,r)){if(i===`forward`)r[r.length-1]+=1;else if(i!==`backward`)return null}else W.endsBefore(l,r)?r[l.length-1]+=1:W.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(W.equals(d,f))return;if(W.isAncestor(d,r)||W.equals(d,r)){var p=f.slice();return W.endsBefore(d,f)&&d.length<f.length&&--p[d.length-1],p.concat(r.slice(d.length))}W.isSibling(d,f)&&(W.isAncestor(f,r)||W.equals(f,r))?W.endsBefore(d,r)?--r[d.length-1]:r[d.length-1]+=1:W.endsBefore(f,r)||W.equals(f,r)||W.isAncestor(f,r)?(W.endsBefore(d,r)&&--r[d.length-1],r[f.length-1]+=1):W.endsBefore(d,r)&&(W.equals(f,r)&&(r[f.length-1]+=1),--r[d.length-1])}}}))}},dae={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()}}};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){lm(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 Nm={compare(e,t){var n=W.compare(e.path,t.path);return n===0?e.offset<t.offset?-1:+(e.offset>t.offset):n},isAfter:(e,t)=>Nm.compare(e,t)===1,isBefore:(e,t)=>Nm.compare(e,t)===-1,equals:(e,t)=>e.offset===t.offset&&W.equals(e.path,t.path),isPoint:e=>vp(e)&&typeof e.offset==`number`&&W.isPath(e.path),transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return om(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=W.transform(i,t,n);break;case`insert_text`:W.equals(t.path,i)&&t.offset<=a&&(e.offset+=t.text.length);break;case`merge_node`:W.equals(t.path,i)&&(e.offset+=t.position),e.path=W.transform(i,t,n);break;case`remove_text`:W.equals(t.path,i)&&t.offset<=a&&(e.offset-=Math.min(a-t.offset,t.text.length));break;case`remove_node`:if(W.equals(t.path,i)||W.isAncestor(t.path,i))return null;e.path=W.transform(i,t,n);break;case`split_node`:if(W.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=W.transform(i,t,Mm(Mm({},n),{},{affinity:`forward`})))}else e.path=W.transform(i,t,n)}}))}},fae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=Nm.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},pae=[`anchor`,`focus`];function Pm(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 G={edges(e){var{reverse:t=!1}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{anchor:n,focus:r}=e;return G.isBackward(e)===t?[n,r]:[r,n]},end(e){var[,t]=G.edges(e);return t},equals:(e,t)=>Nm.equals(e.anchor,t.anchor)&&Nm.equals(e.focus,t.focus),includes(e,t){if(G.isRange(t)){if(G.includes(e,t.anchor)||G.includes(e,t.focus))return!0;var[n,r]=G.edges(e),[i,a]=G.edges(t);return Nm.isBefore(n,i)&&Nm.isAfter(r,a)}var[o,s]=G.edges(e),c=!1,l=!1;return Nm.isPoint(t)?(c=Nm.compare(t,o)>=0,l=Nm.compare(t,s)<=0):(c=W.compare(t,o.path)>=0,l=W.compare(t,s.path)<=0),c&&l},intersection(e,t){var n=vm(e,pae),[r,i]=G.edges(e),[a,o]=G.edges(t),s=Nm.isBefore(r,a)?a:r,c=Nm.isBefore(i,o)?i:o;return Nm.isBefore(c,s)?null:function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Pm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pm(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 Nm.isAfter(t,n)},isCollapsed(e){var{anchor:t,focus:n}=e;return Nm.equals(t,n)},isExpanded:e=>!G.isCollapsed(e),isForward:e=>!G.isBackward(e),isRange:e=>vp(e)&&Nm.isPoint(e.anchor)&&Nm.isPoint(e.focus),*points(e){yield[e.anchor,`anchor`],yield[e.focus,`focus`]},start(e){var[t]=G.edges(e);return t},transform(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return om(e,(e=>{if(e===null)return null;var r,i,{affinity:a=`inward`}=n;if(a===`inward`){var o=G.isCollapsed(e);G.isForward(e)?(r=`forward`,i=o?r:`backward`):(r=`backward`,i=o?r:`forward`)}else a===`outward`?G.isForward(e)?(r=`backward`,i=`forward`):(r=`forward`,i=`backward`):(r=a,i=a);var s=Nm.transform(e.anchor,t,{affinity:r}),c=Nm.transform(e.focus,t,{affinity:i});if(!s||!c)return null;e.anchor=s,e.focus=c}))}},mae={transform(e,t){var{current:n,affinity:r}=e;if(n!=null){var i=G.transform(n,t,{affinity:r});e.current=i,i??e.unref()}}},Fm=(e,t)=>{for(var n in e){var r=e[n],i=t[n];if(vp(r)&&vp(i)){if(!Fm(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},hae=[`text`],gae=[`anchor`,`focus`];function Im(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 Lm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Im(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Im(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var K={equals(e,t){var{loose:n=!1}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};function r(e){return vm(e,hae)}return Fm(n?r(e):e,n?r(t):t)},isText:e=>vp(e)&&typeof e.text==`string`,isTextList:e=>Array.isArray(e)&&e.every((e=>K.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=[Lm({},e)];for(var r of t){var i=vm(r,gae),[a,o]=G.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=Lm(Lm({},f),{},{text:f.text.slice(h)}),f=Lm(Lm({},f),{},{text:f.text.slice(0,h)})}if(a.offset>d){var g=a.offset-d;p=Lm(Lm({},f),{},{text:f.text.slice(0,g)}),f=Lm(Lm({},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 Rm(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 zm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Rm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Rm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var _ae={transform(e,t){e.children=sm(e.children);var n=e.selection&&sm(e.selection);try{n=((e,t,n)=>{switch(n.type){case`insert_node`:var{path:r,node:i}=n,a=U.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 G.points(t))t[c]=Nm.transform(s,n);break;case`insert_text`:var{path:l,offset:u,text:d}=n;if(d.length===0)break;var f=U.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 G.points(t))t[g]=Nm.transform(h,n);break;case`merge_node`:var{path:_}=n,v=U.get(e,_),y=W.previous(_),b=U.get(e,y),x=U.parent(e,_),S=_[_.length-1];if(K.isText(v)&&K.isText(b))b.text+=v.text;else{if(K.isText(v)||K.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 G.points(t))t[w]=Nm.transform(C,n);break;case`move_node`:var{path:T,newPath:E}=n;if(W.isAncestor(T,E))throw Error(`Cannot move a path [${T}] to new path [${E}] because the destination is inside itself.`);var D=U.get(e,T),O=U.parent(e,T),k=T[T.length-1];O.children.splice(k,1);var A=W.transform(T,n),j=U.get(e,W.parent(A)),M=A[A.length-1];if(j.children.splice(M,0,D),t)for(var[N,P]of G.points(t))t[P]=Nm.transform(N,n);break;case`remove_node`:var{path:F}=n,I=F[F.length-1];if(U.parent(e,F).children.splice(I,1),t)for(var[ee,te]of G.points(t)){var ne=Nm.transform(ee,n);if(t!=null&&ne!=null)t[te]=ne;else{var L=void 0,re=void 0;for(var[ie,ae]of U.texts(e)){if(W.compare(ae,F)!==-1){re=[ie,ae];break}L=[ie,ae]}var R=!1;L&&re&&(R=W.equals(re[1],F)?!W.hasPrevious(re[1]):W.common(L[1],F).length<W.common(re[1],F).length),L&&!R?(ee.path=L[1],ee.offset=L[0].text.length):re?(ee.path=re[1],ee.offset=0):t=null}}break;case`remove_text`:var{path:oe,offset:se,text:ce}=n;if(ce.length===0)break;var le=U.leaf(e,oe);if(le.text=le.text.slice(0,se)+le.text.slice(se+ce.length),t)for(var[ue,de]of G.points(t))t[de]=Nm.transform(ue,n);break;case`set_node`:var{path:fe,properties:pe,newProperties:me}=n;if(fe.length===0)throw Error(`Cannot set properties on the root node!`);var he=U.get(e,fe);for(var ge in me){if(ge===`children`||ge===`text`)throw Error(`Cannot set the "${ge}" property of nodes!`);var _e=me[ge];_e==null?delete he[ge]:he[ge]=_e}for(var ve in pe)me.hasOwnProperty(ve)||delete he[ve];break;case`set_selection`:var{newProperties:ye}=n;if(ye==null)t=ye;else{if(t==null){if(!G.isRange(ye))throw Error(`Cannot apply an incomplete "set_selection" operation properties ${JSON.stringify(ye)} when there is no current selection.`);t=zm({},ye)}for(var be in ye){var xe=ye[be];if(xe==null){if(be===`anchor`||be===`focus`)throw Error(`Cannot remove the "${be}" selection property`);delete t[be]}else t[be]=xe}}break;case`split_node`:var{path:Se,position:Ce,properties:we}=n;if(Se.length===0)throw Error(`Cannot apply a "split_node" operation at path [${Se}] because the root node cannot be split.`);var Te,Ee=U.get(e,Se),De=U.parent(e,Se),Oe=Se[Se.length-1];if(K.isText(Ee)){var ke=Ee.text.slice(0,Ce),Ae=Ee.text.slice(Ce);Ee.text=ke,Te=zm(zm({},we),{},{text:Ae})}else{var je=Ee.children.slice(0,Ce),Me=Ee.children.slice(Ce);Ee.children=je,Te=zm(zm({},we),{},{children:Me})}if(De.children.splice(Oe+1,0,Te),t)for(var[Ne,Pe]of G.points(t))t[Pe]=Nm.transform(Ne,n)}return t})(e,n,t)}finally{e.children=cm(e.children),e.selection=n?bp(n)?cm(n):n:null}}},vae=[`text`],yae=[`children`];function Bm(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 Vm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Bm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Bm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var bae={insertNodes(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1,mode:a=`lowest`}=n,{at:o,match:s,select:c}=n;if(U.isNode(t)&&(t=[t]),t.length!==0){var[l]=t;if(o||(o=e.selection?e.selection:e.children.length>0?H.end(e,[]):[0],c=!0),c??=!1,G.isRange(o)){if(r||(o=H.unhangRange(e,o)),G.isCollapsed(o))o=o.anchor;else{var[,u]=G.edges(o),d=H.pointRef(e,u);q.delete(e,{at:o}),o=d.unref()}}if(Nm.isPoint(o)){s??=K.isText(l)?e=>K.isText(e):e.isInline(l)?t=>K.isText(t)||H.isInline(e,t):t=>H.isBlock(e,t);var[f]=H.nodes(e,{at:o.path,match:s,mode:a,voids:i});if(!f)return;var[,p]=f,m=H.pathRef(e,p),h=H.isEnd(e,o,p);q.splitNodes(e,{at:o,match:s,mode:a,voids:i});var g=m.unref();o=h?W.next(g):g}var _=W.parent(o),v=o[o.length-1];if(i||!H.void(e,{at:_})){for(var y of t){var b=_.concat(v);v++,e.apply({type:`insert_node`,path:b,node:y}),o=W.next(o)}if(o=W.previous(o),c){var x=H.end(e,o);x&&q.select(e,x)}}}}))},liftNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{at:n=e.selection,mode:r=`lowest`,voids:i=!1}=t,{match:a}=t;if(a??=W.isPath(n)?Um(e,n):t=>H.isBlock(e,t),n){var o=H.nodes(e,{at:n,match:a,mode:r,voids:i});for(var s of Array.from(o,(t=>{var[,n]=t;return H.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]=H.node(e,W.parent(c)),d=c[c.length-1],{length:f}=l.children;if(f===1){var p=W.next(u);q.moveNodes(e,{at:c,to:p,voids:i}),q.removeNodes(e,{at:u,voids:i})}else if(d===0)q.moveNodes(e,{at:c,to:u,voids:i});else if(d===f-1){var m=W.next(u);q.moveNodes(e,{at:c,to:m,voids:i})}else{var h=W.next(c),g=W.next(u);q.splitNodes(e,{at:h,voids:i}),q.moveNodes(e,{at:c,to:g,voids:i})}}}}))},mergeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.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(W.isPath(r)){var[s]=H.parent(e,r);n=e=>s.children.includes(e)}else n=t=>H.isBlock(e,t)}if(!i&&G.isRange(r)&&(r=H.unhangRange(e,r)),G.isRange(r)){if(G.isCollapsed(r))r=r.anchor;else{var[,c]=G.edges(r),l=H.pointRef(e,c);q.delete(e,{at:r}),r=l.unref(),t.at??q.select(e,r)}}var[u]=H.nodes(e,{at:r,match:n,voids:a,mode:o}),d=H.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=W.next(h),y=W.common(p,h),b=W.isSibling(p,h),x=Array.from(H.levels(e,{at:p}),(e=>{var[t]=e;return t})).slice(y.length).slice(0,-1),S=H.above(e,{at:p,mode:`highest`,match:t=>x.includes(t)&&Hm(e,t)}),C=S&&H.pathRef(e,S[1]);if(K.isText(f)&&K.isText(m)){var w=vm(f,vae);_=m.text.length,g=w}else{if(!V.isElement(f)||!V.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=vm(f,yae),_=m.children.length,g=w}b||q.moveNodes(e,{at:p,to:v,voids:a}),C&&q.removeNodes(e,{at:C.current,voids:a}),V.isElement(m)&&H.isEmpty(e,m)||K.isText(m)&&m.text===``&&h[h.length-1]!==0?q.removeNodes(e,{at:h,voids:a}):e.apply({type:`merge_node`,path:v,position:_,properties:g}),C&&C.unref()}}}}))},moveNodes(e,t){H.withoutNormalizing(e,(()=>{var{to:n,at:r=e.selection,mode:i=`lowest`,voids:a=!1}=t,{match:o}=t;if(r){o??=W.isPath(r)?Um(e,r):t=>H.isBlock(e,t);var s=H.pathRef(e,n),c=H.nodes(e,{at:r,match:o,mode:i,voids:a});for(var l of Array.from(c,(t=>{var[,n]=t;return H.pathRef(e,n)}))){var u=l.unref(),d=s.current;u.length!==0&&e.apply({type:`move_node`,path:u,newPath:d}),s.current&&W.isSibling(d,u)&&W.isAfter(d,u)&&(s.current=W.next(s.current))}s.unref()}}))},removeNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{hanging:n=!1,voids:r=!1,mode:i=`lowest`}=t,{at:a=e.selection,match:o}=t;if(a){o??=W.isPath(a)?Um(e,a):t=>H.isBlock(e,t),!n&&G.isRange(a)&&(a=H.unhangRange(e,a));var s=H.nodes(e,{at:a,match:o,mode:i,voids:r});for(var c of Array.from(s,(t=>{var[,n]=t;return H.pathRef(e,n)}))){var l=c.unref();if(l){var[u]=H.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]:{};H.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??=W.isPath(i)?Um(e,i):t=>H.isBlock(e,t),!a&&G.isRange(i)&&(i=H.unhangRange(e,i)),s&&G.isRange(i)){if(G.isCollapsed(i)&&H.leaf(e,i.anchor)[0].text.length>0)return;var l=H.rangeRef(e,i,{affinity:`inward`}),[u,d]=G.edges(i),f=o===`lowest`?`lowest`:`highest`,p=H.isEnd(e,d,d.path);q.splitNodes(e,{at:d,match:r,mode:f,voids:c,always:!p});var m=H.isStart(e,u,u.path);q.splitNodes(e,{at:u,match:r,mode:f,voids:c,always:!m}),i=l.unref(),n.at??q.select(e,i)}for(var[h,g]of H.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]:{};H.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=>H.isBlock(e,t),G.isRange(a)&&(a=xae(e,a)),W.isPath(a)){var c=a,l=H.point(e,c),[u]=H.parent(e,c);i=e=>e===u,o=l.path.length-c.length+1,a=l,s=!0}if(a){var d=H.pointRef(e,a,{affinity:`backward`}),[f]=H.nodes(e,{at:a,match:i,mode:n,voids:r});if(f){var p=H.void(e,{at:a,mode:`highest`});if(!r&&p){var[m,h]=p;if(V.isElement(m)&&e.isInline(m)){var g=H.after(e,h);if(!g){var _=W.next(h);q.insertNodes(e,{text:``},{at:_,voids:r}),g=H.point(e,_)}a=g,s=!0}o=a.path.length-h.length+1,s=!0}var v=H.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 H.levels(e,{at:x,reverse:!0,voids:r})){var T=!1;if(w.length<b.length||w.length===0||!r&&H.isVoid(e,C))break;var E=d.current,D=H.isEnd(e,E,w);if(s||!d||!H.isEdge(e,E,w)){T=!0;var O=U.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||H.end(e,[]);q.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;q.setNodes(e,r,n)},unwrapNodes(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.withoutNormalizing(e,(()=>{var{mode:n=`lowest`,split:r=!1,voids:i=!1}=t,{at:a=e.selection,match:o}=t;if(a){o??=W.isPath(a)?Um(e,a):t=>H.isBlock(e,t),W.isPath(a)&&(a=H.range(e,a));var s=G.isRange(a)?H.rangeRef(e,a):null,c=H.nodes(e,{at:a,match:o,mode:n,voids:i}),l=Array.from(c,(t=>{var[,n]=t;return H.pathRef(e,n)})).reverse(),u=function(t){var n=t.unref(),[a]=H.node(e,n),o=H.range(e,n);r&&s&&(o=G.intersection(s.current,o)),q.liftNodes(e,{at:o,match:e=>V.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]:{};H.withoutNormalizing(e,(()=>{var{mode:r=`lowest`,split:i=!1,voids:a=!1}=n,{match:o,at:s=e.selection}=n;if(s){if(o??=W.isPath(s)?Um(e,s):e.isInline(t)?t=>H.isInline(e,t)||K.isText(t):t=>H.isBlock(e,t),i&&G.isRange(s)){var[c,l]=G.edges(s),u=H.rangeRef(e,s,{affinity:`inward`});q.splitNodes(e,{at:l,match:o,voids:a}),q.splitNodes(e,{at:c,match:o,voids:a}),s=u.unref(),n.at??q.select(e,s)}for(var[,d]of Array.from(H.nodes(e,{at:s,match:e.isInline(t)?t=>H.isBlock(e,t):e=>H.isEditor(e),mode:`lowest`,voids:a}))){var f=G.isRange(s)?G.intersection(s,H.range(e,d)):s;if(f){var p=Array.from(H.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=W.equals(i,o)?W.parent(i):W.common(i,o),c=H.range(e,i,o),[l]=H.node(e,s),u=s.length+1,d=W.next(o.slice(0,u)),f=Vm(Vm({},t),{},{children:[]});q.insertNodes(e,f,{at:d,voids:a}),q.moveNodes(e,{at:c,match:e=>V.isAncestor(l)&&l.children.includes(e),to:d.concat(0),voids:a})}()===`continue`)continue}}}}))}},Hm=(e,t)=>{if(V.isElement(t)){var n=t;return!!H.isVoid(e,t)||n.children.length===1&&Hm(e,n.children[0])}return!H.isEditor(t)},xae=(e,t)=>{if(G.isCollapsed(t))return t.anchor;var[,n]=G.edges(t),r=H.pointRef(e,n);return q.delete(e,{at:t}),r.unref()},Um=(e,t)=>{var[n]=H.node(e,t);return e=>e===n};function Wm(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 Gm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?Wm(Object(n),!0).forEach((function(t){lm(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wm(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Sae={collapse(e){var{edge:t=`anchor`}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{selection:n}=e;if(n){if(t===`anchor`)q.select(e,n.anchor);else if(t===`focus`)q.select(e,n.focus);else if(t===`start`){var[r]=G.edges(n);q.select(e,r)}else if(t===`end`){var[,i]=G.edges(n);q.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=G.isBackward(n)?`focus`:`anchor`),o===`end`&&(o=G.isBackward(n)?`anchor`:`focus`);var{anchor:s,focus:c}=n,l={distance:r,unit:i},u={};if(o==null||o===`anchor`){var d=a?H.before(e,s,l):H.after(e,s,l);d&&(u.anchor=d)}if(o==null||o===`focus`){var f=a?H.before(e,c,l):H.after(e,c,l);f&&(u.focus=f)}q.setSelection(e,u)}},select(e,t){var{selection:n}=e;if(t=H.range(e,t),n)q.setSelection(e,t);else{if(!G.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=G.isBackward(r)?`focus`:`anchor`),i===`end`&&(i=G.isBackward(r)?`anchor`:`focus`);var{anchor:a,focus:o}=r,s=i===`anchor`?a:o;q.setSelection(e,{[i===`anchor`?`anchor`:`focus`]:Gm(Gm({},s),t)})}},setSelection(e,t){var{selection:n}=e,r={},i={};if(n){for(var a in t)(a===`anchor`&&t.anchor!=null&&!Nm.equals(t.anchor,n.anchor)||a===`focus`&&t.focus!=null&&!Nm.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})}}},Cae={delete(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};H.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(G.isRange(o)&&G.isCollapsed(o)&&(o=o.anchor),Nm.isPoint(o)){var c=H.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?H.before(e,o,u)||H.start(e,[]):H.after(e,o,u)||H.end(e,[])},s=!0}}if(W.isPath(o))q.removeNodes(e,{at:o,voids:a});else if(!G.isCollapsed(o)){if(!s){var[,d]=G.edges(o),f=H.end(e,[]);Nm.equals(d,f)||(o=H.unhangRange(e,o,{voids:a}))}var[p,m]=G.edges(o),h=H.above(e,{match:t=>H.isBlock(e,t),at:p,voids:a}),g=H.above(e,{match:t=>H.isBlock(e,t),at:m,voids:a}),_=h&&g&&!W.equals(h[1],g[1]),v=W.equals(p.path,m.path),y=a?null:H.void(e,{at:p,mode:`highest`}),b=a?null:H.void(e,{at:m,mode:`highest`});if(y){var x=H.before(e,p);x&&h&&W.isAncestor(h[1],x.path)&&(p=x)}if(b){var S=H.after(e,m);S&&g&&W.isAncestor(g[1],S.path)&&(m=S)}var C,w=[];for(var T of H.nodes(e,{at:o,voids:a})){var[E,D]=T;C&&W.compare(D,C)===0||(!a&&H.isVoid(e,E)||!W.isCommon(D,p.path)&&!W.isCommon(D,m.path))&&(w.push(T),C=D)}var O=Array.from(w,(t=>{var[,n]=t;return H.pathRef(e,n)})),k=H.pointRef(e,p),A=H.pointRef(e,m);if(!v&&!y){var j=k.current,[M]=H.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 I of O){var ee=I.unref();q.removeNodes(e,{at:ee,voids:a})}if(!b){var te=A.current,[ne]=H.leaf(e,te),{path:L}=te,re=v?p.offset:0,ie=ne.text.slice(re,m.offset);ie.length>0&&e.apply({type:`remove_text`,path:L,offset:re,text:ie})}!v&&_&&A.current&&k.current&&q.mergeNodes(e,{at:A.current,hanging:!0,voids:a});var ae=n?k.unref()||A.unref():A.unref()||k.unref();t.at==null&&ae&&q.select(e,ae)}}}))},insertFragment(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{hanging:r=!1,voids:i=!1}=n,{at:a=e.selection}=n;if(t.length&&a){if(G.isRange(a)){if(r||(a=H.unhangRange(e,a)),G.isCollapsed(a))a=a.anchor;else{var[,o]=G.edges(a);if(!i&&H.void(e,{at:o}))return;var s=H.pointRef(e,o);q.delete(e,{at:a}),a=s.unref()}}else W.isPath(a)&&(a=H.start(e,a));if(i||!H.void(e,{at:a})){var c=H.above(e,{at:a,match:t=>H.isInline(e,t),mode:`highest`,voids:i});if(c){var[,l]=c;H.isEnd(e,a,l)?a=H.after(e,l):H.isStart(e,a,l)&&(a=H.before(e,l))}var[,u]=H.above(e,{match:t=>H.isBlock(e,t),at:a,voids:i}),d=H.isStart(e,a,u),f=H.isEnd(e,a,u),p=d&&f,m=!d||d&&f,h=!f,[,g]=U.first({children:t},[]),[,_]=U.last({children:t},[]),v=[],y=t=>{var[n,r]=t;return r.length!==0&&(!!p||!(m&&W.isAncestor(r,g)&&V.isElement(n)&&!e.isVoid(n)&&!e.isInline(n))&&!(h&&W.isAncestor(r,_)&&V.isElement(n)&&!e.isVoid(n)&&!e.isInline(n)))};for(var b of U.nodes({children:t},{pass:y}))y(b)&&v.push(b);var x=[],S=[],C=[],w=!0,T=!1;for(var[E]of v)V.isElement(E)&&!e.isInline(E)?(w=!1,T=!0,S.push(E)):w?x.push(E):C.push(E);var[D]=H.nodes(e,{at:a,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),[,O]=D,k=H.isStart(e,a,O),A=H.isEnd(e,a,O),j=H.pathRef(e,f?W.next(u):u),M=H.pathRef(e,A?W.next(O):O),N=H.pathRef(e,u);q.splitNodes(e,{at:a,match:t=>T?H.isBlock(e,t):K.isText(t)||H.isInline(e,t),mode:T?`lowest`:`highest`,voids:i});var P=H.pathRef(e,!k||k&&A?W.next(O):O);if(q.insertNodes(e,x,{at:P.current,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),p&&S.length&&q.delete(e,{at:N.unref(),voids:i}),q.insertNodes(e,S,{at:j.current,match:t=>H.isBlock(e,t),mode:`lowest`,voids:i}),q.insertNodes(e,C,{at:M.current,match:t=>K.isText(t)||H.isInline(e,t),mode:`highest`,voids:i}),!n.at){var F=C.length>0?W.previous(M.current):S.length>0?W.previous(j.current):W.previous(P.current),I=H.end(e,F);q.select(e,I)}P.unref(),j.unref(),M.unref()}}}))},insertText(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};H.withoutNormalizing(e,(()=>{var{voids:r=!1}=n,{at:i=e.selection}=n;if(i){if(W.isPath(i)&&(i=H.range(e,i)),G.isRange(i)){if(G.isCollapsed(i))i=i.anchor;else{var a=G.end(i);if(!r&&H.void(e,{at:a}))return;var o=H.pointRef(e,a);q.delete(e,{at:i,voids:r}),i=o.unref(),q.setSelection(e,{anchor:i,focus:i})}}if(r||!H.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 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}function qm(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){lm(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}var q=qm(qm(qm(qm({},_ae),bae),Sae),Cae),Jm=`[object Map]`,Ym=`[object Set]`,wae=/^\[object .+?Constructor\]$/,Tae=/^(?:0|[1-9]\d*)$/,Eae=`[\\ud800-\\udfff]`,Xm=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,Zm=`\\ud83c[\\udffb-\\udfff]`,Qm=`[^\\ud800-\\udfff]`,$m=`(?:\\ud83c[\\udde6-\\uddff]){2}`,eh=`[\\ud800-\\udbff][\\udc00-\\udfff]`,th=`(?:`+Xm+`|`+Zm+`)?`,Dae=`[\\ufe0e\\ufe0f]?`+th+(`(?:\\u200d(?:`+[Qm,$m,eh].join(`|`)+`)[\\ufe0e\\ufe0f]?`+th+`)*`),Oae=`(?:`+[Qm+Xm+`?`,Xm,$m,eh,Eae].join(`|`)+`)`,kae=RegExp(Zm+`(?=`+Zm+`)|`+Oae+Dae,`g`),Aae=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),jae=typeof Ta==`object`&&Ta&&Ta.Object===Object&&Ta,Mae=typeof self==`object`&&self&&self.Object===Object&&self,nh=jae||Mae||Function(`return this`)();function Nae(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 Pae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function Fae(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function Iae(e){return function(e){return Aae.test(e)}(e)?function(e){return e.match(kae)||[]}(e):function(e){return e.split(``)}(e)}var rh,ih,Lae=Function.prototype,ah=Object.prototype,oh=nh[`__core-js_shared__`],sh=function(){var e=/[^.]+$/.exec(oh&&oh.keys&&oh.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ch=Lae.toString,lh=ah.hasOwnProperty,uh=ah.toString,Rae=RegExp(`^`+ch.call(lh).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),dh=nh.Symbol,fh=dh?dh.iterator:void 0,zae=ah.propertyIsEnumerable,Bae=(rh=Object.keys,ih=Object,function(e){return rh(ih(e))}),ph=Eh(nh,`DataView`),mh=Eh(nh,`Map`),hh=Eh(nh,`Promise`),gh=Eh(nh,`Set`),_h=Eh(nh,`WeakMap`),vh=kh(ph),yh=kh(mh),bh=kh(hh),xh=kh(gh),Sh=kh(_h);function Ch(e,t){var n=Ah(e)||function(e){return function(e){return Ph(e)&&jh(e)}(e)&&lh.call(e,`callee`)&&(!zae.call(e,`callee`)||uh.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&&!lh.call(e,a)||i&&(a==`length`||Oh(a,r))||n.push(a);return n}function wh(e){return!Nh(e)||function(e){return!!sh&&sh in e}(e)?!1:(Mh(e)||function(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}(e)?Rae:wae).test(kh(e))}function Th(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ah,t!==r)return Bae(e);var t,n,r,i=[];for(var a in Object(e))lh.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Eh(e,t){var n=function(e,t){return e?.[t]}(e,t);return wh(n)?n:void 0}var Dh=function(e){return uh.call(e)};function Oh(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Tae.test(e))&&e>-1&&e%1==0&&e<t}function kh(e){if(e!=null){try{return ch.call(e)}catch{}try{return e+``}catch{}}return``}(ph&&Dh(new ph(new ArrayBuffer(1)))!=`[object DataView]`||mh&&Dh(new mh)!=Jm||hh&&Dh(hh.resolve())!=`[object Promise]`||gh&&Dh(new gh)!=Ym||_h&&Dh(new _h)!=`[object WeakMap]`)&&(Dh=function(e){var t=uh.call(e),n=t==`[object Object]`?e.constructor:void 0,r=n?kh(n):void 0;if(r)switch(r){case vh:return`[object DataView]`;case yh:return Jm;case bh:return`[object Promise]`;case xh:return Ym;case Sh:return`[object WeakMap]`}return t});var Ah=Array.isArray;function jh(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}(e.length)&&!Mh(e)}function Mh(e){var t=Nh(e)?uh.call(e):``;return t==`[object Function]`||t==`[object GeneratorFunction]`}function Nh(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function Ph(e){return!!e&&typeof e==`object`}function Fh(e){return e?Nae(e,function(e){return jh(e)?Ch(e):Th(e)}(e)):[]}var Ih=function(e){if(!e)return[];if(jh(e))return function(e){return typeof e==`string`||!Ah(e)&&Ph(e)&&uh.call(e)==`[object String]`}(e)?Iae(e):function(e,t){var n=-1,r=e.length;for(t||=Array(r);++n<r;)t[n]=e[n];return t}(e);if(fh&&e[fh])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[fh]());var t=Dh(e);return(t==Jm?Pae:t==Ym?Fae:Fh)(e)};function Lh(e){return typeof e==`object`&&!!e&&`constructor`in e&&e.constructor===Object}function Rh(e,t){e===void 0&&(e={}),t===void 0&&(t={}),Object.keys(t).forEach((function(n){e[n]===void 0?e[n]=t[n]:Lh(t[n])&&Lh(e[n])&&Object.keys(t[n]).length>0&&Rh(e[n],t[n])}))}var zh={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 Bh(){var e=typeof document<`u`?document:{};return Rh(e,zh),e}var Vh={document:zh,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 Hh(){var e=typeof window<`u`?window:{};return Rh(e,Vh),e}function Uh(e){return Uh=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Uh(e)}function Wh(e,t){return Wh=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Wh(e,t)}function Gh(){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 Kh(e,t,n){return Kh=Gh()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&Wh(i,n.prototype),i},Kh.apply(null,arguments)}function qh(e){var t=typeof Map==`function`?new Map:void 0;return qh=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 Kh(e,arguments,Uh(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),Wh(n,e)},qh(e)}var Jh=function(e){var t,n;function r(t){var 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__;return 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}(qh(Array));function Yh(e){e===void 0&&(e=[]);var t=[];return e.forEach((function(e){Array.isArray(e)?t.push.apply(t,Yh(e)):t.push(e)})),t}function Xh(e,t){return Array.prototype.filter.call(e,t)}function J(e,t){var n=Hh(),r=Bh(),i=[];if(!t&&e instanceof Jh)return e;if(!e)return new Jh(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 Jh)return e;i=e}return new Jh(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 Zh(){var e=Yh([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).add.apply(n,e)})),this}function Qh(){var e=Yh([...arguments].map((function(e){return e.split(` `)})));return this.forEach((function(t){var n;(n=t.classList).remove.apply(n,e)})),this}function $h(){var e=Yh([...arguments].map((function(e){return e.split(` `)})));return Xh(this,(function(t){return e.filter((function(e){return t.classList.contains(e)})).length>0})).length>0}function eg(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 tg(e){for(var t=0;t<this.length;t+=1)this[t].removeAttribute(e);return this}function ng(){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 rg(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 ig(){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),J(t).is(n))r.apply(t,i);else for(var a=J(t).parents(),o=0;o<a.length;o+=1)J(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 ag(){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 og(){var e=Hh();return this[0]===e?e.innerWidth:this.length>0?parseFloat(this.css(`width`)):null}function sg(){var e=Hh();return this[0]===e?e.innerHeight:this.length>0?parseFloat(this.css(`height`)):null}function cg(){if(this.length>0){var e=Hh(),t=Bh(),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 lg(){for(var e=0;e<this.length;e+=1)this[e].style.display=`none`;return this}function ug(){for(var e=Hh(),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 dg(e,t){var n,r=Hh();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 fg(e){return e&&this.forEach((function(t,n){e.apply(t,[t,n])})),this}function pg(e){return J(Xh(this,e))}function mg(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 hg(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 gg(e){var t,n,r=Hh(),i=Bh(),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=J(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 Jh){for(t=e.nodeType?[e]:e,n=0;n<t.length;n+=1)if(t[n]===a)return!0;return!1}return!1}function _g(){for(var e,t=Bh(),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 Jh)for(var a=0;a<e.length;a+=1)this[r].appendChild(e[a]);else this[r].appendChild(e)}return this}function vg(e){var t,n,r=Bh();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 Jh)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 yg(e){for(var t=[],n=0;n<this.length;n+=1)this[n].parentNode!==null&&(e?J(this[n].parentNode).is(e)&&t.push(this[n].parentNode):t.push(this[n].parentNode));return J(t)}function bg(e){for(var t=[],n=0;n<this.length;n+=1)for(var r=this[n].parentNode;r;)e?J(r).is(e)&&t.push(r):t.push(r),r=r.parentNode;return J(t)}function xg(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 J(t)}function Sg(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&&!J(r[i]).is(e)||t.push(r[i]);return J(t)}function Cg(){for(var e=0;e<this.length;e+=1)this[e].parentNode&&this[e].parentNode.removeChild(this[e]);return this}function wg(){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}J.fn=Jh.prototype;var Tg=`resize scroll`.split(` `);function Eg(e){return function(){var t=[...arguments];if(t[0]===void 0){for(var n=0;n<this.length;n+=1)Tg.indexOf(e)<0&&(e in this[n]?this[n][e]():J(this[n]).trigger(e));return this}return this.on.apply(this,[e].concat(t))}}var Dg=Eg(`click`),Og=Eg(`focus`),kg=`[object GeneratorFunction]`,Ag=/^(?:0|[1-9]\d*)$/;function jg(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););return e}var Mg=Object.prototype,Ng=Mg.hasOwnProperty,Pg=Mg.toString,Fg=Mg.propertyIsEnumerable,Ig=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object);function Lg(e,t){var n=Ug(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&Wg(e)}(e)&&Ng.call(e,`callee`)&&(!Fg.call(e,`callee`)||Pg.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&&!Ng.call(e,a)||i&&(a==`length`||Hg(a,r))||n.push(a);return n}var Rg=function(e,t){return e&&Bg(e,t,Gg)},zg=function(e,t){if(e==null)return e;if(!Wg(e))return Rg(e,t);for(var n=e.length,r=-1,i=Object(e);++r<n&&!1!==t(i[r],r,i););return e},Bg=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 Vg(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||Mg,t!==r)return Ig(e);var t,n,r,i=[];for(var a in Object(e))Ng.call(e,a)&&a!=`constructor`&&i.push(a);return i}function Hg(e,t){return!!(t??=9007199254740991)&&(typeof e==`number`||Ag.test(e))&&e>-1&&e%1==0&&e<t}var Ug=Array.isArray;function Wg(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)?Pg.call(e):``;return t==`[object Function]`||t==kg}(e)}function Gg(e){return Wg(e)?Lg(e):Vg(e)}function Kg(e){return e}var qg=function(e,t){return(Ug(e)?jg:zg)(e,typeof t==`function`?t:Kg)},Jg=(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},Yg=/^\s+|\s+$/g,Xg=/^[-+]0x[0-9a-f]+$/i,Zg=/^0b[01]+$/i,Qg=/^0o[0-7]+$/i,$g=parseInt,e_=typeof Ta==`object`&&Ta&&Ta.Object===Object&&Ta,t_=typeof self==`object`&&self&&self.Object===Object&&self,n_=e_||t_||Function(`return this`)(),r_=Object.prototype.toString,i_=Math.max,a_=Math.min,o_=function(){return n_.Date.now()};function s_(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=o_();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?a_(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=o_(),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=l_(t)||0,c_(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?i_(l_(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:_(o_())},v}function c_(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function l_(e){if(typeof e==`number`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&r_.call(e)==`[object Symbol]`}(e))return NaN;if(c_(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=c_(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Yg,``);var n=Zg.test(e);return n||Qg.test(e)?$g(e.slice(2),n?2:8):Xg.test(e)?NaN:+e}var u_=function(e,t,n){var r=!0,i=!0;if(typeof e!=`function`)throw TypeError(`Expected a function`);return c_(n)&&(r=`leading`in n?!!n.leading:r,i=`trailing`in n?!!n.trailing:i),s_(e,t,{leading:r,maxWait:t,trailing:i})},d_={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 f_(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 p_=Array.isArray;function m_(e){return typeof e==`string`||typeof e==`number`||e instanceof String||e instanceof Number}function h_(e){return e===void 0}function g_(e){return e!==void 0}var __=f_(``,{},[],void 0,void 0);function v_(e,t){let n=e.key===t.key,r=e.data?.is===t.data?.is;return e.sel===t.sel&&n&&r}function y_(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 b_=[`create`,`update`,`remove`,`destroy`,`pre`,`post`];function x_(e,t){let n={create:[],update:[],remove:[],destroy:[],pre:[],post:[]},r=t===void 0?d_:t;for(let t of b_)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 f_(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;g_(t)&&(t(e),s=e.data)}let c=e.children,l=e.sel;if(l===`!`)h_(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=g_(s)&&g_(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](__,e);if(p_(c))for(a=0;a<c.length;++a){let e=c[a];e!=null&&r.appendChild(h,o(e,t))}else m_(e.text)&&r.appendChild(h,r.createTextNode(e.text));let g=e.data.hook;g_(g)&&((i=g.create)==null||i.call(g,__,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(g_(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;g_(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)}h_(t.text)?g_(h)&&g_(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]:v_(g,y)?(u(g,y,i),g=t[++p],y=n[++m]):v_(_,b)?(u(_,b,i),_=t[--h],b=n[--v]):v_(g,b)?(u(g,b,i),r.insertBefore(e,g.elm,r.nextSibling(_.elm)),g=t[++p],b=n[--v]):v_(_,y)?(u(_,y,i),r.insertBefore(e,_.elm,g.elm),_=t[--h],y=n[++m]):(a===void 0&&(a=y_(t,p,h)),c=a[y.key],h_(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):g_(g)?(g_(e.text)&&r.setTextContent(m,``),s(m,null,g,0,g.length-1,i)):g_(h)?l(m,h,0,h.length-1):g_(e.text)&&r.setTextContent(m,``):e.text!==t.text&&(g_(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)),v_(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 S_(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&&S_(n,t[e].children,t[e].sel)}}function C_(e,t,n){let r,i,a,o={};if(n===void 0?t!=null&&(p_(t)?r=t:m_(t)?i=t.toString():t&&t.sel?r=[t]:o=t):(t!==null&&(o=t),p_(n)?r=n:m_(n)?i=n.toString():n&&n.sel&&(r=[n])),r!==void 0)for(a=0;a<r.length;++a)m_(r[a])&&(r[a]=f_(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]!==`#`||S_(o,r,e),f_(e,o,r,i,void 0)}function w_(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 T_={create:w_,update:w_};function E_(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 D_={create:E_,update:E_},O_=/[A-Z]/g;function k_(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(O_,`-$&`).toLowerCase()));for(r in a)i[r]!==a[r]&&(o?o[r]=a[r]:n.setAttribute(`data-`+r.replace(O_,`-$&`).toLowerCase(),a[r]))}var A_={create:k_,update:k_};function j_(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++)j_(e[r],t,n)}function M_(e,t){let n=e.type,r=t.data.on;r&&r[n]&&j_(r[n],t,e)}function N_(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){M_(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 P_={create:N_,update:N_,destroy:N_};function F_(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 I_={create:F_,update:F_},L_=typeof window<`u`&&window.requestAnimationFrame.bind(window)||setTimeout,R_=!1;function z_(e,t,n){(function(e){L_((function(){L_(e)}))})((function(){e[t]=n}))}function B_(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]||z_(i.style,e,n);else r!==`remove`&&n!==a[r]&&(r[0]===`-`&&r[1]===`-`?i.style.setProperty(r,n):i.style[r]=n)}var V_={pre:function(){R_=!1},create:B_,update:B_,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;R_||=(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 H_(e,t){for(let n of e)n!=null&&!1!==n&&n!==``&&(Array.isArray(n)?H_(n,t):typeof n==`string`||typeof n==`number`||typeof n==`boolean`?t.push(f_(void 0,void 0,void 0,String(n),void 0)):t.push(n));return t}function U_(e,t,...n){let r=H_(n,[]);return typeof e==`function`?e(t,r):r.length===1&&!r[0].sel&&r[0].text?C_(e,t,r[0].text):C_(e,t,r)}U_||={};var W_=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,G_=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,K_=`\\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`,q_=`[\\ud800-\\udfff]`,J_=`[`+K_+`]`,Y_=`[\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0]`,X_=`\\d+`,Z_=`[\\u2700-\\u27bf]`,Q_=`[a-z\\xdf-\\xf6\\xf8-\\xff]`,$_=`[^\\ud800-\\udfff`+K_+X_+`\\u2700-\\u27bfa-z\\xdf-\\xf6\\xf8-\\xffA-Z\\xc0-\\xd6\\xd8-\\xde]`,ev=`\\ud83c[\\udffb-\\udfff]`,tv=`[^\\ud800-\\udfff]`,nv=`(?:\\ud83c[\\udde6-\\uddff]){2}`,rv=`[\\ud800-\\udbff][\\udc00-\\udfff]`,iv=`[A-Z\\xc0-\\xd6\\xd8-\\xde]`,av=`(?:`+Q_+`|`+$_+`)`,ov=`(?:`+iv+`|`+$_+`)`,sv=`(?:`+Y_+`|`+ev+`)?`,cv=`[\\ufe0e\\ufe0f]?`+sv+(`(?:\\u200d(?:`+[tv,nv,rv].join(`|`)+`)[\\ufe0e\\ufe0f]?`+sv+`)*`),lv=`(?:`+[Z_,nv,rv].join(`|`)+`)`+cv,uv=`(?:`+[tv+Y_+`?`,Y_,nv,rv,q_].join(`|`)+`)`,dv=RegExp(`['’]`,`g`),fv=RegExp(Y_,`g`),pv=RegExp(ev+`(?=`+ev+`)|`+uv+cv,`g`),mv=RegExp([iv+`?`+Q_+`+(?:['’](?:d|ll|m|re|s|t|ve))?(?=`+[J_,iv,`$`].join(`|`)+`)`,ov+`+(?:['’](?:D|LL|M|RE|S|T|VE))?(?=`+[J_,iv+av,`$`].join(`|`)+`)`,iv+`?`+av+`+(?:['’](?:d|ll|m|re|s|t|ve))?`,iv+`+(?:['’](?:D|LL|M|RE|S|T|VE))?`,X_,lv].join(`|`),`g`),hv=RegExp(`[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe23\\u20d0-\\u20f0\\ufe0e\\ufe0f]`),gv=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,_v=typeof Ta==`object`&&Ta&&Ta.Object===Object&&Ta,vv=typeof self==`object`&&self&&self.Object===Object&&self,yv=_v||vv||Function(`return this`)(),bv={À:`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`},xv=function(e){return bv?.[e]};function Sv(e){return hv.test(e)}function Cv(e){return Sv(e)?function(e){return e.match(pv)||[]}(e):function(e){return e.split(``)}(e)}var wv=Object.prototype.toString,Tv=yv.Symbol,Ev=Tv?Tv.prototype:void 0,Dv=Ev?Ev.toString:void 0;function Ov(e){if(typeof e==`string`)return e;if(function(e){return typeof e==`symbol`||function(e){return!!e&&typeof e==`object`}(e)&&wv.call(e)==`[object Symbol]`}(e))return Dv?Dv.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function kv(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 Av(e){return e==null?``:Ov(e)}for(var jv=function(e,t,n){return t=t.toLowerCase(),e+(n?Pv(Av(t).toLowerCase()):t)},Mv=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=Av(e),(t=n?void 0:t)===void 0?function(e){return gv.test(e)}(e)?function(e){return e.match(mv)||[]}(e):function(e){return e.match(W_)||[]}(e):e.match(t)||[]}(function(e){return(e=Av(e))&&e.replace(G_,xv).replace(fv,``)}(e).replace(dv,``)),jv,``)},Nv=`toUpperCase`,Pv=function(e){var t=Sv(e=Av(e))?Cv(e):void 0,n=t?t[0]:e.charAt(0),r=t?kv(t,1).join(``):e.slice(1);return n[Nv]()+r},Fv=Mv,Iv=typeof window<`u`&&/Mac|iPod|iPhone|iPad/.test(window.navigator.platform),Lv={alt:`altKey`,control:`ctrlKey`,meta:`metaKey`,shift:`shiftKey`},Rv={add:`+`,break:`pause`,cmd:`meta`,command:`meta`,ctl:`control`,ctrl:`control`,del:`delete`,down:`arrowdown`,esc:`escape`,ins:`insert`,left:`arrowleft`,mod:Iv?`meta`:`control`,opt:`alt`,option:`alt`,return:`enter`,right:`arrowright`,space:` `,spacebar:` `,up:`arrowup`,win:`meta`,windows:`meta`},zv={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},Bv=1;Bv<20;Bv++)zv[`f`+Bv]=111+Bv;function Vv(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 Lv)r[Lv[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=Uv(f),h=Lv[m];if(f.length>1&&!h&&!Rv[f]&&!zv[m])throw TypeError(`Unknown modifier: "`+f+`"`);a!==1&&h||(n?r.key=m:r.which=Hv(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 Hv(e){return e=Uv(e),zv[e]||e.toUpperCase().charCodeAt(0)}function Uv(e){return e=e.toLowerCase(),e=Rv[e]||e}var Wv=Vv,Gv=function(e,t){return Vv(e,{byKey:!0},t)},Kv=/^\s+|\s+$/g,qv=/^[-+]0x[0-9a-f]+$/i,Jv=/^0b[01]+$/i,Yv=/^0o[0-7]+$/i,Vae=parseInt,Hae=typeof Ta==`object`&&Ta&&Ta.Object===Object&&Ta,Uae=typeof self==`object`&&self&&self.Object===Object&&self,Wae=Hae||Uae||Function(`return this`)(),Gae=Object.prototype.toString,Kae=Math.max,qae=Math.min,Xv=function(){return Wae.Date.now()};function Zv(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)&&Gae.call(e)==`[object Symbol]`}(e))return NaN;if(Zv(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=Zv(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=e.replace(Kv,``);var n=Jv.test(e);return n||Yv.test(e)?Vae(e.slice(2),n?2:8):qv.test(e)?NaN:+e}var $v,ey=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=Xv();if(h(e))return _(e);s=setTimeout(g,function(e){var n=t-(e-c);return d?qae(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=Xv(),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,Zv(n)&&(u=!!n.leading,a=(d=`maxWait`in n)?Kae(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:_(Xv())},v},ty=Da((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 Ta==`object`&&Ta&&Ta.Object===Object&&Ta,P=typeof self==`object`&&self&&self.Object===Object&&self,F=N||P||Function(`return this`)(),I=t&&!t.nodeType&&t,ee=I&&e&&!e.nodeType&&e,te=ee&&ee.exports===I;function ne(e,t){return e.set(t[0],t[1]),e}function L(e,t){return e.add(t),e}function re(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 ie(e){var t=!1;if(e!=null&&typeof e.toString!=`function`)try{t=!!(e+``)}catch{}return t}function ae(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function R(e,t){return function(n){return e(t(n))}}function oe(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}var se=Array.prototype,ce=Function.prototype,le=Object.prototype,ue=F[`__core-js_shared__`],de=function(){var e=/[^.]+$/.exec(ue&&ue.keys&&ue.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),fe=ce.toString,pe=le.hasOwnProperty,me=le.toString,he=RegExp(`^`+fe.call(pe).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),ge=te?F.Buffer:void 0,_e=F.Symbol,ve=F.Uint8Array,ye=R(Object.getPrototypeOf,Object),be=Object.create,xe=le.propertyIsEnumerable,Se=se.splice,Ce=Object.getOwnPropertySymbols,we=ge?ge.isBuffer:void 0,Te=R(Object.keys,Object),Ee=Ze(F,`DataView`),De=Ze(F,`Map`),Oe=Ze(F,`Promise`),ke=Ze(F,`Set`),Ae=Ze(F,`WeakMap`),je=Ze(Object,`create`),Me=nt(Ee),Ne=nt(De),Pe=nt(Oe),Fe=nt(ke),Ie=nt(Ae),Le=_e?_e.prototype:void 0,Re=Le?Le.valueOf:void 0;function ze(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 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){this.__data__=new Be(e)}function Ue(e,t){var n=it(e)||function(e){return function(e){return function(e){return!!e&&typeof e==`object`}(e)&&at(e)}(e)&&pe.call(e,`callee`)&&(!xe.call(e,`callee`)||me.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&&!pe.call(e,o)||a&&(o==`length`||et(o,r))||n.push(o);return n}function We(e,t,n){var r=e[t];pe.call(e,t)&&rt(r,n)&&(n!==void 0||t in e)||(e[t]=n)}function Ge(e,t){for(var n=e.length;n--;)if(rt(e[n][0],t))return n;return-1}function Ke(e,t,n,r,f,_,A){var j;if(r&&(j=_?r(e,f,_,A):r(e)),j!==void 0)return j;if(!ct(e))return e;var N=it(e);if(N){if(j=function(e){var t=e.length,n=e.constructor(t);return t&&typeof e[0]==`string`&&pe.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=$e(e),F=P==s||P==c;if(ot(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(ie(e))return _?e:{};if(j=function(e){return typeof e.constructor!=`function`||tt(e)?{}:(t=ye(e),ct(t)?be(t):{});var t}(F?{}:e),!t)return function(e,t){return Ye(e,Qe(e),t)}(e,function(e,t){return e&&Ye(t,lt(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 Je(e);case a:case o:return new i(+e);case y:return function(e,t){var n=t?Je(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?Je(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}(e,r);case l:return function(e,t,n){return re(t?n(ae(e),!0):ae(e),ne,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 re(t?n(oe(e),!0):oe(e),L,new e.constructor)}(e,r,n);case g:return function(e){return Re?Object(Re.call(e)):{}}(e)}}(e,P,Ke,t)}}A||=new He;var I=A.get(e);if(I)return I;if(A.set(e,j),!N)var ee=n?function(e){return function(e,t,n){var r=t(e);return it(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,lt,Qe)}(e):lt(e);return function(e,t){for(var n=-1,r=e?e.length:0;++n<r&&!1!==t(e[n],n,e););}(ee||e,(function(i,a){ee&&(i=e[a=i]),We(j,a,Ke(i,t,n,r,a,e,A))})),j}function qe(e){return!(!ct(e)||function(e){return!!de&&de in e}(e))&&(st(e)||ie(e)?he:A).test(nt(e))}function Je(e){var t=new e.constructor(e.byteLength);return new ve(t).set(new ve(e)),t}function Ye(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;We(n,o,s===void 0?e[o]:s)}return n}function Xe(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 Ze(e,t){var n=function(e,t){return e?.[t]}(e,t);return qe(n)?n:void 0}ze.prototype.clear=function(){this.__data__=je?je(null):{}},ze.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},ze.prototype.get=function(e){var t=this.__data__;if(je){var r=t[e];return r===n?void 0:r}return pe.call(t,e)?t[e]:void 0},ze.prototype.has=function(e){var t=this.__data__;return je?t[e]!==void 0:pe.call(t,e)},ze.prototype.set=function(e,t){return this.__data__[e]=je&&t===void 0?n:t,this},Be.prototype.clear=function(){this.__data__=[]},Be.prototype.delete=function(e){var t=this.__data__,n=Ge(t,e);return!(n<0)&&(n==t.length-1?t.pop():Se.call(t,n,1),!0)},Be.prototype.get=function(e){var t=this.__data__,n=Ge(t,e);return n<0?void 0:t[n][1]},Be.prototype.has=function(e){return Ge(this.__data__,e)>-1},Be.prototype.set=function(e,t){var n=this.__data__,r=Ge(n,e);return r<0?n.push([e,t]):n[r][1]=t,this},Ve.prototype.clear=function(){this.__data__={hash:new ze,map:new(De||Be),string:new ze}},Ve.prototype.delete=function(e){return Xe(this,e).delete(e)},Ve.prototype.get=function(e){return Xe(this,e).get(e)},Ve.prototype.has=function(e){return Xe(this,e).has(e)},Ve.prototype.set=function(e,t){return Xe(this,e).set(e,t),this},He.prototype.clear=function(){this.__data__=new Be},He.prototype.delete=function(e){return this.__data__.delete(e)},He.prototype.get=function(e){return this.__data__.get(e)},He.prototype.has=function(e){return this.__data__.has(e)},He.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Be){var r=n.__data__;if(!De||r.length<199)return r.push([e,t]),this;n=this.__data__=new Ve(r)}return n.set(e,t),this};var Qe=Ce?R(Ce,Object):function(){return[]},$e=function(e){return me.call(e)};function et(e,t){return!!(t??=r)&&(typeof e==`number`||j.test(e))&&e>-1&&e%1==0&&e<t}function tt(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||le)}function nt(e){if(e!=null){try{return fe.call(e)}catch{}try{return e+``}catch{}}return``}function rt(e,t){return e===t||e!=e&&t!=t}(Ee&&$e(new Ee(new ArrayBuffer(1)))!=y||De&&$e(new De)!=l||Oe&&$e(Oe.resolve())!=f||ke&&$e(new ke)!=m||Ae&&$e(new Ae)!=_)&&($e=function(e){var t=me.call(e),n=t==d?e.constructor:void 0,r=n?nt(n):void 0;if(r)switch(r){case Me:return y;case Ne:return l;case Pe:return f;case Fe:return m;case Ie:return _}return t});var it=Array.isArray;function at(e){return e!=null&&function(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}(e.length)&&!st(e)}var ot=we||function(){return!1};function st(e){var t=ct(e)?me.call(e):``;return t==s||t==c}function ct(e){var t=typeof e;return!!e&&(t==`object`||t==`function`)}function lt(e){return at(e)?Ue(e):function(e){if(!tt(e))return Te(e);var t=[];for(var n in Object(e))pe.call(e,n)&&n!=`constructor`&&t.push(n);return t}(e)}e.exports=function(e){return Ke(e,!0,!0)}}));function ny(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Jae=0;function Yae(e){return`__private_`+Jae+++`_`+e}function Xae(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 ry(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=Xae(r,RegExp(`%\\{${e}\\}`,`g`),i)}return r}var iy=($v=Yae(`apply`),class{constructor(e){Object.defineProperty(this,$v,{value:Zae}),this.locale={strings:{},pluralize:e=>e===1?0:1},Array.isArray(e)?e.forEach(ny(this,$v)[$v],this):ny(this,$v)[$v](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 ry(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 ry(n,t)}});function Zae(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 ay=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:Qae}={urlAlphabet:`useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict`},oy=e=>crypto.getRandomValues(new Uint8Array(e)),sy=(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}}},$ae={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)=>sy(e,t,oy),customRandom:sy,urlAlphabet:Qae,random:oy},cy=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 ly(e,t){this.text=e||=``,this.hasWild=~e.indexOf(`*`),this.separator=t,this.parts=e.split(t)}ly.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 eoe=/[\/\+\.]/,toe=function(e,t){function n(t){var n=function(e,t,n){var r=new ly(e,n||/[\/\.]/);return t===void 0?r:r.match(t)}(t,e,eoe);return n&&n.length>=2}return t?n(t.split(`;`)[0]):n},noe=0;function roe(e){return`__private_`+noe+++`_`+e}var uy=roe(`publish`),dy=class{constructor(){Object.defineProperty(this,uy,{value:ioe}),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,uy)[uy](t,n,e)}subscribe(e){return this.callbacks.push(e),()=>{this.callbacks.splice(this.callbacks.indexOf(e),1)}}};function ioe(){var e=[...arguments];this.callbacks.forEach((t=>{t(...e)}))}dy.VERSION=`2.0.3`;var fy=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)}},py={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 my(e){let t=``;return e.replace(/[^A-Z0-9]/gi,(e=>(t+=`-${function(e){return e.charCodeAt(0).toString(32)}(e)}`,`/`)))+t}var aoe=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 hy(e){return e<10?`0${e}`:e.toString()}var gy=function(){let e=new Date;return`${hy(e.getHours())}:${hy(e.getMinutes())}:${hy(e.getSeconds())}`},_y={justErrorsLogger:{debug:()=>{},warn:()=>{},error:function(){var e=[...arguments];return console.error(`[Uppy] [${gy()}]`,...e)}},debugLogger:{debug:function(){var e=[...arguments];return console.debug(`[Uppy] [${gy()}]`,...e)},warn:function(){var e=[...arguments];return console.warn(`[Uppy] [${gy()}]`,...e)},error:function(){var e=[...arguments];return console.error(`[Uppy] [${gy()}]`,...e)}}},ooe={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}`}}},vy=$ae,yy,by;function xy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var soe=0;function Sy(e){return`__private_`+soe+++`_`+e}var{nanoid:coe}=vy,{justErrorsLogger:loe,debugLogger:uoe}=_y,Cy=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 doe=class extends AggregateError{constructor(){super(...arguments),this.isRestriction=!0}},wy=Sy(`plugins`),Ty=Sy(`storeUnsubscribe`),Ey=Sy(`emitter`),Dy=Sy(`preProcessors`),Oy=Sy(`uploaders`),ky=Sy(`postProcessors`),Ay=Sy(`checkRestrictions`),jy=Sy(`checkMinNumberOfFiles`),My=Sy(`checkRequiredMetaFieldsOnFile`),Ny=Sy(`checkRequiredMetaFields`),Py=Sy(`showOrLogErrorAndThrow`),Fy=Sy(`assertNewUploadAllowed`),Iy=Sy(`checkAndCreateFileStateObject`),Ly=Sy(`startIfAutoProceed`),Ry=Sy(`addListeners`),zy=Sy(`updateOnlineStatus`),By=Sy(`createUpload`),Vy=Sy(`getUpload`),Hy=Sy(`removeUpload`),Uy=Sy(`runUpload`);yy=Symbol.for(`uppy test: getPlugins`),by=Symbol.for(`uppy test: createUpload`);var Wy=class{constructor(e){Object.defineProperty(this,Uy,{value:woe}),Object.defineProperty(this,Hy,{value:Coe}),Object.defineProperty(this,Vy,{value:Soe}),Object.defineProperty(this,By,{value:xoe}),Object.defineProperty(this,Ry,{value:boe}),Object.defineProperty(this,Ly,{value:yoe}),Object.defineProperty(this,Iy,{value:voe}),Object.defineProperty(this,Fy,{value:_oe}),Object.defineProperty(this,Py,{value:goe}),Object.defineProperty(this,Ny,{value:hoe}),Object.defineProperty(this,My,{value:moe}),Object.defineProperty(this,jy,{value:poe}),Object.defineProperty(this,Ay,{value:foe}),Object.defineProperty(this,wy,{writable:!0,value:Object.create(null)}),Object.defineProperty(this,Ty,{writable:!0,value:void 0}),Object.defineProperty(this,Ey,{writable:!0,value:ay()}),Object.defineProperty(this,Dy,{writable:!0,value:new Set}),Object.defineProperty(this,Oy,{writable:!0,value:new Set}),Object.defineProperty(this,ky,{writable:!0,value:new Set}),Object.defineProperty(this,zy,{writable:!0,value:this.updateOnlineStatus.bind(this)}),this.defaultLocale=ooe;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 dy,logger:loe,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=uoe),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=u_(this.calculateProgress.bind(this),500,{leading:!0,trailing:!0}),this.store=this.opts.store,this.setState({plugins:{},files:{},currentUploads:{},allowNewUpload:!0,capabilities:{uploadProgress:aoe(),individualCancellation:!0,resumableUploads:!1},totalProgress:0,meta:{...this.opts.meta},info:[],recoveredState:null}),xy(this,Ty)[Ty]=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),xy(this,Ry)[Ry]()}emit(e){var t=[...arguments].slice(1);xy(this,Ey)[Ey].emit(e,...t)}on(e,t){return xy(this,Ey)[Ey].on(e,t),this}once(e,t){return xy(this,Ey)[Ey].once(e,t),this}off(e,t){return xy(this,Ey)[Ey].off(e,t),this}updateAll(e){this.iteratePlugins((t=>{t.update(e)}))}setState(e){this.store.setState(e)}getState(){return this.store.getState()}get state(){return this.getState()}setFileState(e,t){if(!this.getState().files[e])throw Error(`Can’t set state for ${e} (the file could have been removed)`);this.setState({files:{...this.getState().files,[e]:{...this.getState().files[e],...t}}})}i18nInit(){let e=new iy([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){xy(this,Dy)[Dy].add(e)}removePreProcessor(e){return xy(this,Dy)[Dy].delete(e)}addPostProcessor(e){xy(this,ky)[ky].add(e)}removePostProcessor(e){return xy(this,ky)[ky].delete(e)}addUploader(e){xy(this,Oy)[Oy].add(e)}removeUploader(e){return xy(this,Oy)[Oy].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 xy(this,Ay)[Ay](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){xy(this,Fy)[Fy](e);let{files:t}=this.getState(),n=xy(this,Iy)[Iy](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}`),xy(this,Ly)[Ly](),n.id}addFiles(e){xy(this,Fy)[Fy]();let t={...this.getState().files},n=[],r=[];for(let i=0;i<e.length;i++)try{let r=xy(this,Iy)[Iy](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&&xy(this,Ly)[Ly](),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=xy(this,By)[By](t,{forceAllowNewUpload:!0});return xy(this,Uy)[Uy](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=xy(this,By)[By]([e],{forceAllowNewUpload:!0});return xy(this,Uy)[Uy](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 xy(this,wy)[wy]?xy(this,wy)[wy][n.type].push(n):xy(this,wy)[wy][n.type]=[n],n.install(),this}getPlugin(e){for(let t of Object.values(xy(this,wy)[wy])){let n=t.find((t=>t.id===e));if(n!=null)return n}}[yy](e){return xy(this,wy)[wy][e]}iteratePlugins(e){Object.values(xy(this,wy)[wy]).flat(1).forEach(e)}removePlugin(e){this.log(`Removing plugin ${e.id}`),this.emit(`plugin-remove`,e),e.uninstall&&e.uninstall();let t=xy(this,wy)[wy][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(),xy(this,Ty)[Ty](),this.iteratePlugins((e=>{this.removePlugin(e)})),typeof window<`u`&&window.removeEventListener&&(window.removeEventListener(`online`,xy(this,zy)[zy]),window.removeEventListener(`offline`,xy(this,zy)[zy]))}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]?xy(this,Uy)[Uy](e):(xy(this,Hy)[Hy](e),Promise.reject(Error(`Nonexistent upload`)))}[by](){return xy(this,By)[By](...arguments)}addResultData(e,t){if(!xy(this,Vy)[Vy](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=xy(this,wy)[wy].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((()=>{xy(this,jy)[jy](t),xy(this,Ny)[Ny](t)})).catch((e=>{xy(this,Py)[Py](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=xy(this,By)[By](r);return xy(this,Uy)[Uy](i)})).catch((e=>{xy(this,Py)[Py](e,{showInformer:!1})})))}};function foe(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 Cy(`${this.i18n(`youCanOnlyUploadX`,{smart_count:a})}`);if(o&&!o.some((t=>t.indexOf(`/`)>-1?!!e.type&&toe(e.type.replace(/;.*?$/,``),t):!(t[0]!==`.`||!e.extension)&&e.extension.toLowerCase()===t.substr(1).toLowerCase()))){let e=o.join(`, `);throw new Cy(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 Cy(this.i18n(`exceedsSize`,{size:cy(i),file:e.name}))}if(n&&e.size!=null&&e.size>n)throw new Cy(this.i18n(`exceedsSize`,{size:cy(n),file:e.name}));if(r&&e.size!=null&&e.size<r)throw new Cy(this.i18n(`inferiorSize`,{size:cy(r)}))}function poe(e){let{minNumberOfFiles:t}=this.opts.restrictions;if(Object.keys(e).length<t)throw new Cy(`${this.i18n(`youHaveToAtLeastSelectX`,{smart_count:t})}`)}function moe(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 Cy(`${this.i18n(`missingRequiredMetaFieldOnFile`,{fileName:e.name})}`);r.push(n),i.push(t[a]),xy(this,Py)[Py](n,{file:e,showInformer:!1,throwErr:!1})}return this.setFileState(e.id,{missingRequiredMetaFields:i}),r}function hoe(e){let t=Object.keys(e).flatMap((e=>{let t=this.getFile(e);return xy(this,My)[My](t)}));if(t.length)throw new doe(t,`${this.i18n(`missingRequiredMetaField`)}`)}function goe(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 _oe(e){let{allowNewUpload:t}=this.getState();!1===t&&xy(this,Py)[Py](new Cy(this.i18n(`noMoreFilesAllowed`)),{file:e})}function voe(e,t){let n=function(e){if(e.type)return e.type;let t=e.name?fy(e.name).extension?.toLowerCase():null;return t&&t in py?py[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=fy(r).extension,a=!!t.isRemote,o=function(e){let t=`uppy`;return typeof e.name==`string`&&(t+=`-${my(e.name.toLowerCase())}`),e.type!==void 0&&(t+=`-${e.type}`),e.meta&&typeof e.meta.relativePath==`string`&&(t+=`-${my(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 Cy(this.i18n(`noDuplicates`,{fileName:r}));xy(this,Py)[Py](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?xy(this,Py)[Py](new Cy(`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]));xy(this,Ay)[Ay](l,t)}catch(e){xy(this,Py)[Py](e,{file:l})}return l}function yoe(){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 boe(){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}),xy(this,Py)[Py](e,{throwErr:!1})}else xy(this,Py)[Py](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:xy(this,ky)[ky].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&&xy(this,My)[My](e)})),typeof window<`u`&&window.addEventListener&&(window.addEventListener(`online`,xy(this,zy)[zy]),window.addEventListener(`offline`,xy(this,zy)[zy]),setTimeout(xy(this,zy)[zy],3e3))}function xoe(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=coe();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 Soe(e){let{currentUploads:t}=this.getState();return t[e]}function Coe(e){let t={...this.getState().currentUploads};delete t[e],this.setState({currentUploads:t})}async function woe(e){let{currentUploads:t}=this.getState(),n=t[e],r=n.step||0,i=[...xy(this,Dy)[Dy],...xy(this,Oy)[Oy],...xy(this,ky)[ky]];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),xy(this,Hy)[Hy](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),xy(this,Hy)[Hy](e)),a??this.log(`Not setting result for an upload that has been removed: ${e}`),a}Wy.VERSION=`2.1.3`;var Gy=Wy,Toe=Da((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.state={}),d.context=S,d.__n=i,f=d.__d=!0,d.__h=[]),d.__s??(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 I(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){I(t,n,e)},t.isValidElement=a,t.options=r,t.render=I,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}})),Eoe=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},Ky=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 iy([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 qy(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Doe=0;function Ooe(e){return`__private_`+Doe+++`_`+e}var{render:Jy}=Toe,Yy=Ooe(`updateUI`),koe=class e extends Ky{constructor(){super(...arguments),Object.defineProperty(this,Yy,{writable:!0,value:void 0})}mount(t,n){let r=n.id,i=Eoe(t);if(i){this.isTargetDOMEl=!0;let e=document.createDocumentFragment();return qy(this,Yy)[Yy]=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)&&(Jy(this.render(t),e),this.afterUpdate())})),this.uppy.log(`Installing ${r} to a DOM element '${t}'`),this.opts.replaceTargetContent&&(i.innerHTML=``),Jy(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=qy(this,Yy))[Yy])==null||t.call(n,e))}unmount(){var e;this.isTargetDOMEl&&((e=this.el)==null||e.remove()),this.onUnmount()}onMount(){}onUnmount(){}},{debugLogger:Aoe}=_y,Xy=Gy,joe=Gy,Moe=koe,Noe=Ky,Poe=Aoe;Xy.Uppy=joe,Xy.UIPlugin=Moe,Xy.BasePlugin=Noe,Xy.debugLogger=Poe;var Zy=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}},Qy=function(){return fetch(...arguments).catch((e=>{throw e.name===`AbortError`?e:new Zy(e)}))},Foe=class extends Error{constructor(){super(`Authorization required`),this.name=`AuthError`,this.isAuthError=!0}},$y,eb,tb,nb,rb,Ioe=Foe;function ib(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 ab(e){return`__private_`+Loe+++`_`+e}async function ob(e){if(e.status===401)throw new Ioe;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 sb=(eb=ab(`getPostResponseFunc`),tb=ab(`getUrl`),nb=ab(`errorHandler`),rb=$y=class e{constructor(e,t){Object.defineProperty(this,nb,{value:zoe}),Object.defineProperty(this,tb,{value:Roe}),Object.defineProperty(this,eb,{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(ib(this,tb)[tb](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=>Qy(ib(this,tb)[tb](e),{method:`get`,headers:t,credentials:this.opts.companionCookiesRule||`same-origin`}))).then(ib(this,eb)[eb](t)).then(ob).catch(ib(this,nb)[nb](`get`,e))}post(e,t,n){let r=`post`;return this.preflightAndHeaders(e).then((n=>Qy(ib(this,tb)[tb](e),{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:JSON.stringify(t)}))).then(ib(this,eb)[eb](n)).then(ob).catch(ib(this,nb)[nb](r,e))}delete(e,t,n){let r=`delete`;return this.preflightAndHeaders(e).then((n=>Qy(`${this.hostname}/${e}`,{method:r,headers:n,credentials:this.opts.companionCookiesRule||`same-origin`,body:t?JSON.stringify(t):null}))).then(ib(this,eb)[eb](n)).then(ob).catch(ib(this,nb)[nb](r,e))}},$y.VERSION=`2.0.4`,$y.defaultHeaders={Accept:`application/json`,"Content-Type":`application/json`,"Uppy-Versions":`@uppy/companion-client=${$y.VERSION}`},rb);function Roe(e){return/^(https?:|)\/\//.test(e)?e:`${this.hostname}/${e}`}function zoe(e,t){return n=>{var r;if((r=n)==null||!r.isAuthError){let r=Error(`Could not ${e} ${ib(this,tb)[tb](t)}`);r.cause=n,n=r}return Promise.reject(n)}}var Boe={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()}))},cb,lb,ub,db,fb,pb,mb;function hb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Voe=0;function gb(e){return`__private_`+Voe+++`_`+e}var Hoe=(cb=gb(`queued`),lb=gb(`emitter`),ub=gb(`isOpen`),db=gb(`socket`),fb=gb(`handleMessage`),pb=Symbol.for(`uppy test: getSocket`),mb=Symbol.for(`uppy test: getQueued`),class{constructor(e){Object.defineProperty(this,cb,{writable:!0,value:[]}),Object.defineProperty(this,lb,{writable:!0,value:ay()}),Object.defineProperty(this,ub,{writable:!0,value:!1}),Object.defineProperty(this,db,{writable:!0,value:void 0}),Object.defineProperty(this,fb,{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 hb(this,ub)[ub]}[pb](){return hb(this,db)[db]}[mb](){return hb(this,cb)[cb]}open(){hb(this,db)[db]=new WebSocket(this.opts.target),hb(this,db)[db].onopen=()=>{for(hb(this,ub)[ub]=!0;hb(this,cb)[cb].length>0&&hb(this,ub)[ub];){let e=hb(this,cb)[cb].shift();this.send(e.action,e.payload)}},hb(this,db)[db].onclose=()=>{hb(this,ub)[ub]=!1},hb(this,db)[db].onmessage=hb(this,fb)[fb]}close(){var e;(e=hb(this,db)[db])==null||e.close()}send(e,t){hb(this,ub)[ub]?hb(this,db)[db].send(JSON.stringify({action:e,payload:t})):hb(this,cb)[cb].push({action:e,payload:t})}on(e,t){hb(this,lb)[lb].on(e,t)}emit(e,t){hb(this,lb)[lb].emit(e,t)}once(e,t){hb(this,lb)[lb].once(e,t)}}),Uoe={RequestClient:sb,Provider:class extends sb{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||Boe}},SearchProvider:class extends sb{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:Hoe},_b,vb,Woe=u_((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 yb(e,t){if(!Object.prototype.hasOwnProperty.call(e,t))throw TypeError(`attempted to use private field on non-instance`);return e}var Goe=0;function bb(e){return`__private_`+Goe+++`_`+e}var xb=(_b=bb(`emitter`),vb=bb(`events`),class{constructor(e){Object.defineProperty(this,_b,{writable:!0,value:void 0}),Object.defineProperty(this,vb,{writable:!0,value:[]}),yb(this,_b)[_b]=e}on(e,t){return yb(this,vb)[vb].push([e,t]),yb(this,_b)[_b].on(e,t)}remove(){for(let[e,t]of yb(this,vb)[vb].splice(0))yb(this,_b)[_b].off(e,t)}});function Sb(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 Cb(e){return`__private_`+Koe+++`_`+e}var wb=Cb(`aliveTimer`),Tb=Cb(`isDone`),Eb=Cb(`onTimedOut`),Db=Cb(`timeout`),Ob=class{constructor(e,t){Object.defineProperty(this,wb,{writable:!0,value:void 0}),Object.defineProperty(this,Tb,{writable:!0,value:!1}),Object.defineProperty(this,Eb,{writable:!0,value:void 0}),Object.defineProperty(this,Db,{writable:!0,value:void 0}),Sb(this,Db)[Db]=e,Sb(this,Eb)[Eb]=t}progress(){Sb(this,Tb)[Tb]||Sb(this,Db)[Db]>0&&(clearTimeout(Sb(this,wb)[wb]),Sb(this,wb)[wb]=setTimeout(Sb(this,Eb)[Eb],Sb(this,Db)[Db]))}done(){Sb(this,Tb)[Tb]||(clearTimeout(Sb(this,wb)[wb]),Sb(this,wb)[wb]=null,Sb(this,Tb)[Tb]=!0)}};function kb(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 Ab(e){return`__private_`+qoe+++`_`+e}function Joe(){return Error(`Cancelled`)}var jb=Ab(`activeRequests`),Mb=Ab(`queuedHandlers`),Nb=Ab(`call`),Pb=Ab(`queueNext`),Fb=Ab(`next`),Ib=Ab(`queue`),Lb=Ab(`dequeue`);function Yoe(e){kb(this,jb)[jb]+=1;let t,n=!1;try{t=e()}catch(e){throw--kb(this,jb)[jb],e}return{abort:()=>{n||(n=!0,--kb(this,jb)[jb],t(),kb(this,Pb)[Pb]())},done:()=>{n||(n=!0,--kb(this,jb)[jb],kb(this,Pb)[Pb]())}}}function Xoe(){queueMicrotask((()=>kb(this,Fb)[Fb]()))}function Zoe(){if(kb(this,jb)[jb]>=this.limit||kb(this,Mb)[Mb].length===0)return;let e=kb(this,Mb)[Mb].shift(),t=kb(this,Nb)[Nb](e.fn);e.abort=t.abort,e.done=t.done}function Qoe(e,t){t===void 0&&(t={});let n={fn:e,priority:t.priority||0,abort:()=>{kb(this,Lb)[Lb](n)},done:()=>{throw Error(`Cannot mark a queued request as done: this indicates a bug`)}},r=kb(this,Mb)[Mb].findIndex((e=>n.priority>e.priority));return r===-1?kb(this,Mb)[Mb].push(n):kb(this,Mb)[Mb].splice(r,0,n),n}function $oe(e){let t=kb(this,Mb)[Mb].indexOf(e);t!==-1&&kb(this,Mb)[Mb].splice(t,1)}var ese={RateLimitedQueue:class{constructor(e){Object.defineProperty(this,Lb,{value:$oe}),Object.defineProperty(this,Ib,{value:Qoe}),Object.defineProperty(this,Fb,{value:Zoe}),Object.defineProperty(this,Pb,{value:Xoe}),Object.defineProperty(this,Nb,{value:Yoe}),Object.defineProperty(this,jb,{writable:!0,value:0}),Object.defineProperty(this,Mb,{writable:!0,value:[]}),this.limit=typeof e!=`number`||e===0?1/0:e}run(e,t){return kb(this,jb)[jb]<this.limit?kb(this,Nb)[Nb](e):kb(this,Ib)[Ib](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=Joe()}}),t)}));return a.abort=()=>{i.abort()},a}}},internalRateLimitedQueue:Symbol(`__queue`)},Rb,zb,Bb=function(e){return!!e&&(e.readyState!==0&&e.readyState!==4||e.status===0)},tse={strings:{timedOut:`Upload stalled for %{seconds} seconds, aborting.`}},{nanoid:nse}=vy,{Provider:rse,RequestClient:ise,Socket:ase}=Uoe,{RateLimitedQueue:ose,internalRateLimitedQueue:Vb}=ese;function Hb(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})),Bb(e)?(n=new Zy(n,e),n):(n.request=e,n)}function Ub(e){return e.data.slice(0,e.data.size,e.meta.type)}var sse=(zb=Rb=class extends Ky{constructor(e,t){super(e,t),this.type=`uploader`,this.id=this.opts.id||`XHRUpload`,this.title=`XHRUpload`,this.defaultLocale=tse;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 Bb(t)&&(n=new Zy(n,t)),n},validateStatus:e=>e>=200&&e<300};if(this.opts={...n,...t},this.i18nInit(),this.handleUpload=this.handleUpload.bind(this),this.requests=Vb in this.opts?this.opts[Vb]:new ose(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=Ub(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=Ub(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 xb(this.uppy);let o=new Ob(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=nse();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=Hb(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=Hb(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?rse:ise)(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 ase({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 xb(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=>Woe(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 Ob(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[Vb]||this.uppy.log("[XHRUpload] When uploading multiple files at once, consider setting the `limit` option (to `10` for example), to limit the number of concurrent uploads, which helps prevent memory and network issues: https://uppy.io/docs/xhr-upload/#limit-0",`warning`),this.uppy.log(`[XHRUpload] Uploading...`);let t=e.map((e=>this.uppy.getFile(e)));if(this.opts.bundle){if(t.some((e=>e.isRemote)))throw Error("Can’t upload remote files when the `bundle: true` option is set");if(typeof this.opts.headers==`function`)throw TypeError("`headers` may not be a function when the `bundle: true` option is set");return this.uploadBundle(t)}return this.uploadFiles(t).then((()=>null))}install(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!1}})}this.uppy.addUploader(this.handleUpload)}uninstall(){if(this.opts.bundle){let{capabilities:e}=this.uppy.getState();this.uppy.setState({capabilities:{...e,individualCancellation:!0}})}this.uppy.removeUploader(this.handleUpload)}},Rb.VERSION=`2.0.6`,zb),Wb=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 Kb,qb,Jb=function(e){return e&&e.Math==Math&&e},Y=Jb(typeof globalThis==`object`&&globalThis)||Jb(typeof window==`object`&&window)||Jb(typeof self==`object`&&self)||Jb(typeof Wb==`object`&&Wb)||function(){return this}()||Function(`return this`)(),cse=Object.defineProperty,Yb=function(e,t){try{cse(Y,e,{value:t,configurable:!0,writable:!0})}catch{Y[e]=t}return t},Xb=Y[`__core-js_shared__`]||Yb(`__core-js_shared__`,{}),Zb=Gb((function(e){(e.exports=function(e,t){return Xb[e]||(Xb[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Qb=Function.prototype,$b=Qb.bind,ex=Qb.call,lse=$b&&$b.bind(ex),tx=$b?function(e){return e&&lse(ex,e)}:function(e){return e&&function(){return ex.apply(e,arguments)}},use=Y.TypeError,nx=function(e){if(e==null)throw use(`Can't call method on `+e);return e},dse=Y.Object,rx=function(e){return dse(nx(e))},fse=tx({}.hasOwnProperty),ix=Object.hasOwn||function(e,t){return fse(rx(e),t)},pse=0,mse=Math.random(),hse=tx(1 .toString),ax=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+hse(++pse+mse,36)},ox=function(e){return typeof e==`function`},gse=function(e){return ox(e)?e:void 0},sx=function(e,t){return arguments.length<2?gse(Y[e]):Y[e]&&Y[e][t]},cx=sx(`navigator`,`userAgent`)||``,lx=Y.process,ux=Y.Deno,dx=lx&&lx.versions||ux&&ux.version,fx=dx&&dx.v8;fx&&(qb=(Kb=fx.split(`.`))[0]>0&&Kb[0]<4?1:+(Kb[0]+Kb[1])),!qb&&cx&&(!(Kb=cx.match(/Edge\/(\d+)/))||Kb[1]>=74)&&(Kb=cx.match(/Chrome\/(\d+)/))&&(qb=+Kb[1]);var px=qb,mx=function(e){try{return!!e()}catch{return!0}},hx=!!Object.getOwnPropertySymbols&&!mx((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&px&&px<41})),gx=hx&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,_x=Zb(`wks`),vx=Y.Symbol,yx=vx&&vx.for,_se=gx?vx:vx&&vx.withoutSetter||ax,bx=function(e){if(!ix(_x,e)||!hx&&typeof _x[e]!=`string`){var t=`Symbol.`+e;_x[e]=hx&&ix(vx,e)?vx[e]:gx&&yx?yx(t):_se(t)}return _x[e]},xx={};xx[bx(`toStringTag`)]=`z`;var Sx=String(xx)===`[object z]`,Cx=!mx((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),wx=function(e){return typeof e==`object`?e!==null:ox(e)},Tx=Y.document,vse=wx(Tx)&&wx(Tx.createElement),Ex=function(e){return vse?Tx.createElement(e):{}},Dx=!Cx&&!mx((function(){return Object.defineProperty(Ex(`div`),"a",{get:function(){return 7}}).a!=7})),yse=Y.String,bse=Y.TypeError,Ox=function(e){if(wx(e))return e;throw bse(yse(e)+` is not an object`)},kx=Function.prototype.call,Ax=kx.bind?kx.bind(kx):function(){return kx.apply(kx,arguments)},jx=tx({}.isPrototypeOf),xse=Y.Object,Mx=gx?function(e){return typeof e==`symbol`}:function(e){var t=sx(`Symbol`);return ox(t)&&jx(t.prototype,xse(e))},Sse=Y.String,Nx=function(e){try{return Sse(e)}catch{return`Object`}},Cse=Y.TypeError,Px=function(e){if(ox(e))return e;throw Cse(Nx(e)+` is not a function`)},Fx=function(e,t){var n=e[t];return n==null?void 0:Px(n)},wse=Y.TypeError,Tse=Y.TypeError,Ese=bx(`toPrimitive`),Ix=function(e){var t=function(e,t){if(!wx(e)||Mx(e))return e;var n,r=Fx(e,Ese);if(r){if(t===void 0&&(t=`default`),n=Ax(r,e,t),!wx(n)||Mx(n))return n;throw Tse(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&ox(n=e.toString)&&!wx(r=Ax(n,e))||ox(n=e.valueOf)&&!wx(r=Ax(n,e))||t!==`string`&&ox(n=e.toString)&&!wx(r=Ax(n,e)))return r;throw wse(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Mx(t)?t:t+``},Dse=Y.TypeError,Lx=Object.defineProperty,Rx={f:Cx?Lx:function(e,t,n){if(Ox(e),t=Ix(t),Ox(n),Dx)try{return Lx(e,t,n)}catch{}if(`get`in n||`set`in n)throw Dse(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},zx=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Bx=Cx?function(e,t,n){return Rx.f(e,t,zx(1,n))}:function(e,t,n){return e[t]=n,e},Ose=tx(Function.toString);ox(Xb.inspectSource)||(Xb.inspectSource=function(e){return Ose(e)});var Vx,Hx,Ux,Wx=Xb.inspectSource,Gx=Y.WeakMap,Kx=ox(Gx)&&/native code/.test(Wx(Gx)),qx=Zb(`keys`),Jx=function(e){return qx[e]||(qx[e]=ax(e))},Yx={},Xx=Y.TypeError,kse=Y.WeakMap;if(Kx||Xb.state){var Zx=Xb.state||=new kse,Ase=tx(Zx.get),Qx=tx(Zx.has),jse=tx(Zx.set);Vx=function(e,t){if(Qx(Zx,e))throw new Xx(`Object already initialized`);return t.facade=e,jse(Zx,e,t),t},Hx=function(e){return Ase(Zx,e)||{}},Ux=function(e){return Qx(Zx,e)}}else{var $x=Jx(`state`);Yx[$x]=!0,Vx=function(e,t){if(ix(e,$x))throw new Xx(`Object already initialized`);return t.facade=e,Bx(e,$x,t),t},Hx=function(e){return ix(e,$x)?e[$x]:{}},Ux=function(e){return ix(e,$x)}}var eS={set:Vx,get:Hx,has:Ux,enforce:function(e){return Ux(e)?Hx(e):Vx(e,{})},getterFor:function(e){return function(t){var n;if(!wx(t)||(n=Hx(t)).type!==e)throw Xx(`Incompatible receiver, `+e+` required`);return n}}},tS=Function.prototype,Mse=Cx&&Object.getOwnPropertyDescriptor,nS=ix(tS,`name`),rS={EXISTS:nS,PROPER:nS&&function(){}.name===`something`,CONFIGURABLE:nS&&(!Cx||Cx&&Mse(tS,`name`).configurable)},iS=Gb((function(e){var t=rS.CONFIGURABLE,n=eS.get,r=eS.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;ox(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!ix(a,`name`)||t&&a.name!==d)&&Bx(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Y?l?e[n]=a:Yb(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:Bx(e,n,a))})(Function.prototype,`toString`,(function(){return ox(this)&&n(this).source||Wx(this)}))})),Nse=tx({}.toString),Pse=tx(``.slice),aS=function(e){return Pse(Nse(e),8,-1)},Fse=bx(`toStringTag`),Ise=Y.Object,Lse=aS(function(){return arguments}())==`Arguments`,oS=Sx?aS: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=Ise(e),Fse))==`string`?n:Lse?aS(t):(r=aS(t))==`Object`&&ox(t.callee)?`Arguments`:r},Rse=Sx?{}.toString:function(){return`[object `+oS(this)+`]`};Sx||iS(Object.prototype,`toString`,Rse,{unsafe:!0});var sS={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},cS=Ex(`span`).classList,lS=cS&&cS.constructor&&cS.constructor.prototype,uS=lS===Object.prototype?void 0:lS,dS=tx(tx.bind),fS=function(e,t){return Px(e),t===void 0?e:dS?dS(e,t):function(){return e.apply(t,arguments)}},pS=Y.Object,zse=tx(``.split),mS=mx((function(){return!pS(`z`).propertyIsEnumerable(0)}))?function(e){return aS(e)==`String`?zse(e,``):pS(e)}:pS,Bse=Math.ceil,Vse=Math.floor,hS=function(e){var t=+e;return t!=t||t===0?0:(t>0?Vse:Bse)(t)},Hse=Math.min,gS=function(e){return e>0?Hse(hS(e),9007199254740991):0},_S=function(e){return gS(e.length)},vS=Array.isArray||function(e){return aS(e)==`Array`},yS=function(){},Use=[],bS=sx(`Reflect`,`construct`),xS=/^\s*(?:class|function)\b/,Wse=tx(xS.exec),Gse=!xS.exec(yS),SS=function(e){if(!ox(e))return!1;try{return bS(yS,Use,e),!0}catch{return!1}},CS=!bS||mx((function(){var e;return SS(SS.call)||!SS(Object)||!SS((function(){e=!0}))||e}))?function(e){if(!ox(e))return!1;switch(oS(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Gse||!!Wse(xS,Wx(e))}:SS,Kse=bx(`species`),wS=Y.Array,TS=function(e,t){return new(function(e){var t;return vS(e)&&(t=e.constructor,(CS(t)&&(t===wS||vS(t.prototype))||wx(t)&&(t=t[Kse])===null)&&(t=void 0)),t===void 0?wS:t}(e))(t===0?0:t)},ES=tx([].push),DS=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=rx(c),h=mS(m),g=fS(l,u),_=_S(h),v=0,y=d||TS,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:ES(b,f)}else switch(e){case 4:return!1;case 7:ES(b,f)}}return a?-1:r||i?i:b}},OS={forEach:DS(0),map:DS(1),filter:DS(2),some:DS(3),every:DS(4),find:DS(5),findIndex:DS(6),filterReject:DS(7)},kS=function(e,t){var n=[][e];return!!n&&mx((function(){n.call(null,t||function(){throw 1},1)}))},qse=OS.forEach,AS=kS(`forEach`)?[].forEach:function(e){return qse(this,e,arguments.length>1?arguments[1]:void 0)},jS=function(e){if(e&&e.forEach!==AS)try{Bx(e,`forEach`,AS)}catch{e.forEach=AS}};for(var MS in sS)sS[MS]&&jS(Y[MS]&&Y[MS].prototype);jS(uS);var NS={}.propertyIsEnumerable,PS=Object.getOwnPropertyDescriptor,FS={f:PS&&!NS.call({1:2},1)?function(e){var t=PS(this,e);return!!t&&t.enumerable}:NS},IS=function(e){return mS(nx(e))},LS=Object.getOwnPropertyDescriptor,RS={f:Cx?LS:function(e,t){if(e=IS(e),t=Ix(t),Dx)try{return LS(e,t)}catch{}if(ix(e,t))return zx(!Ax(FS.f,e,t),e[t])}},Jse=Math.max,Yse=Math.min,zS=function(e,t){var n=hS(e);return n<0?Jse(n+t,0):Yse(n,t)},BS=function(e){return function(t,n,r){var i,a=IS(t),o=_S(a),s=zS(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}},VS={includes:BS(!0),indexOf:BS(!1)},Xse=VS.indexOf,HS=tx([].push),US=function(e,t){var n,r=IS(e),i=0,a=[];for(n in r)!ix(Yx,n)&&ix(r,n)&&HS(a,n);for(;t.length>i;)ix(r,n=t[i++])&&(~Xse(a,n)||HS(a,n));return a},WS=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],Zse=WS.concat(`length`,`prototype`),GS={f:Object.getOwnPropertyNames||function(e){return US(e,Zse)}},KS={f:Object.getOwnPropertySymbols},Qse=tx([].concat),$se=sx(`Reflect`,`ownKeys`)||function(e){var t=GS.f(Ox(e)),n=KS.f;return n?Qse(t,n(e)):t},ece=function(e,t){for(var n=$se(t),r=Rx.f,i=RS.f,a=0;a<n.length;a++){var o=n[a];ix(e,o)||r(e,o,i(t,o))}},tce=/#|\.prototype\./,qS=function(e,t){var n=rce[nce(e)];return n==ace||n!=ice&&(ox(t)?mx(t):!!t)},nce=qS.normalize=function(e){return String(e).replace(tce,`.`).toLowerCase()},rce=qS.data={},ice=qS.NATIVE=`N`,ace=qS.POLYFILL=`P`,JS=qS,oce=RS.f,YS=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]||Yb(s,{}):(Y[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=oce(n,r))&&o.value:n[r],!JS(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ece(a,i)}(e.sham||i&&i.sham)&&Bx(a,`sham`,!0),iS(n,r,a,e)}},XS=Object.keys||function(e){return US(e,WS)},sce=mx((function(){XS(1)}));function ZS(e){return Object.prototype.toString.call(e)===`[object Object]`}YS({target:`Object`,stat:!0,forced:sce},{keys:function(e){return XS(rx(e))}});var cce={isHistory(e){return!1!==ZS(t=e)&&((n=t.constructor)===void 0||!1!==ZS(r=n.prototype)&&!1!==r.hasOwnProperty(`isPrototypeOf`))&&Array.isArray(e.redos)&&Array.isArray(e.undos)&&(e.redos.length===0||Am.isOperationList(e.redos[0]))&&(e.undos.length===0||Am.isOperationList(e.undos[0]));var t,n,r}},QS=new WeakMap,$S=new WeakMap,eC={isHistoryEditor:e=>cce.isHistory(e.history)&&H.isEditor(e),isMerging:e=>$S.get(e),isSaving:e=>QS.get(e),redo(e){e.redo()},undo(e){e.undo()},withoutMerging(e,t){var n=eC.isMerging(e);$S.set(e,!1),t(),$S.set(e,n)},withoutSaving(e,t){var n=eC.isSaving(e);QS.set(e,!1),t(),QS.set(e,n)}},lce=Y.String,tC=function(e){if(oS(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return lce(e)},nC=function(){var e=Ox(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},uce=rS.PROPER,rC=RegExp.prototype,iC=rC.toString,dce=tx(nC),fce=mx((function(){return iC.call({source:`a`,flags:`b`})!=`/a/b`})),pce=uce&&iC.name!=`toString`;(fce||pce)&&iS(RegExp.prototype,`toString`,(function(){var e=Ox(this),t=tC(e.source),n=e.flags;return`/`+t+`/`+tC(n===void 0&&jx(rC,e)&&!(`flags`in rC)?dce(e):n)}),{unsafe:!0});var aC,mce=Cx?Object.defineProperties:function(e,t){Ox(e);for(var n,r=IS(t),i=XS(t),a=i.length,o=0;a>o;)Rx.f(e,n=i[o++],r[n]);return e},oC=sx(`document`,`documentElement`),sC=Jx(`IE_PROTO`),cC=function(){},lC=function(e){return`<script>`+e+`<\/script>`},uC=function(e){e.write(lC(``)),e.close();var t=e.parentWindow.Object;return e=null,t},dC=function(){try{aC=new ActiveXObject(`htmlfile`)}catch{}var e,t;dC=typeof document<`u`?document.domain&&aC?uC(aC):((t=Ex(`iframe`)).style.display=`none`,oC.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(lC(`document.F=Object`)),e.close(),e.F):uC(aC);for(var n=WS.length;n--;)delete dC.prototype[WS[n]];return dC()};Yx[sC]=!0;var fC=Object.create||function(e,t){var n;return e===null?n=dC():(cC.prototype=Ox(e),n=new cC,cC.prototype=null,n[sC]=e),t===void 0?n:mce(n,t)},pC=bx(`unscopables`),mC=Array.prototype;mC[pC]??Rx.f(mC,pC,{configurable:!0,value:fC(null)});var hC=function(e){mC[pC][e]=!0},hce=VS.includes;YS({target:`Array`,proto:!0},{includes:function(e){return hce(this,e,arguments.length>1?arguments[1]:void 0)}}),hC(`includes`);var gce=bx(`match`),gC=function(e){var t;return wx(e)&&((t=e[gce])===void 0?aS(e)==`RegExp`:!!t)},_ce=Y.TypeError,_C=function(e){if(gC(e))throw _ce(`The method doesn't accept regular expressions`);return e},vce=bx(`match`),vC=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[vce]=!1,`/./`[e](t)}catch{}}return!1},yce=tx(``.indexOf);YS({target:`String`,proto:!0,forced:!vC(`includes`)},{includes:function(e){return!!~yce(tC(nx(this)),tC(_C(e)),arguments.length>1?arguments[1]:void 0)}});var bce=/"/g,xce=tx(``.replace);YS({target:`String`,proto:!0,forced:mx((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=tC(nx(this)),r=`<a`,(r+=` name="`+xce(tC(t),bce,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var yC=function(e,t,n){var r,i;Ox(e);try{if(!(r=Fx(e,`return`))){if(t===`throw`)throw n;return n}r=Ax(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return Ox(r),n},Sce=function(e,t,n,r){try{return r?t(Ox(n)[0],n[1]):t(n)}catch(t){yC(e,`throw`,t)}},bC={},Cce=bx(`iterator`),wce=Array.prototype,xC=function(e){return e!==void 0&&(bC.Array===e||wce[Cce]===e)},SC=function(e,t,n){var r=Ix(t);r in e?Rx.f(e,r,zx(0,n)):e[r]=n},Tce=bx(`iterator`),CC=function(e){if(e!=null)return Fx(e,Tce)||Fx(e,`@@iterator`)||bC[oS(e)]},Ece=Y.TypeError,wC=function(e,t){var n=arguments.length<2?CC(e):t;if(Px(n))return Ox(Ax(n,e));throw Ece(Nx(e)+` is not iterable`)},TC=Y.Array,EC=bx(`iterator`),DC=!1;try{var Dce=0,OC={next:function(){return{done:!!Dce++}},return:function(){DC=!0}};OC[EC]=function(){return this},Array.from(OC,(function(){throw 2}))}catch{}var kC=function(e,t){if(!t&&!DC)return!1;var n=!1;try{var r={};r[EC]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n};YS({target:`Array`,stat:!0,forced:!kC((function(e){Array.from(e)}))},{from:function(e){var t=rx(e),n=CS(this),r=arguments.length,i=r>1?arguments[1]:void 0,a=i!==void 0;a&&(i=fS(i,r>2?arguments[2]:void 0));var o,s,c,l,u,d,f=CC(t),p=0;if(!f||this==TC&&xC(f))for(o=_S(t),s=n?new this(o):TC(o);o>p;p++)d=a?i(t[p],p):t[p],SC(s,p,d);else for(u=(l=wC(t,f)).next,s=n?new this:[];!(c=Ax(u,l)).done;p++)d=a?Sce(l,i,[c.value,p],!0):c.value,SC(s,p,d);return s.length=p,s}});var AC,jC,MC,Oce=tx(``.charAt),NC=tx(``.charCodeAt),kce=tx(``.slice),PC=function(e){return function(t,n){var r,i,a=tC(nx(t)),o=hS(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=NC(a,o))<55296||r>56319||o+1===s||(i=NC(a,o+1))<56320||i>57343?e?Oce(a,o):r:e?kce(a,o,o+2):i-56320+(r-55296<<10)+65536}},FC={codeAt:PC(!1),charAt:PC(!0)},Ace=!mx((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),IC=Jx(`IE_PROTO`),LC=Y.Object,jce=LC.prototype,RC=Ace?LC.getPrototypeOf:function(e){var t=rx(e);if(ix(t,IC))return t[IC];var n=t.constructor;return ox(n)&&t instanceof n?n.prototype:t instanceof LC?jce:null},zC=bx(`iterator`),BC=!1;[].keys&&(`next`in(MC=[].keys())?(jC=RC(RC(MC)))!==Object.prototype&&(AC=jC):BC=!0),(AC==null||mx((function(){var e={};return AC[zC].call(e)!==e})))&&(AC={}),ox(AC[zC])||iS(AC,zC,(function(){return this}));var VC={IteratorPrototype:AC,BUGGY_SAFARI_ITERATORS:BC},Mce=Rx.f,HC=bx(`toStringTag`),UC=function(e,t,n){e&&!ix(e=n?e:e.prototype,HC)&&Mce(e,HC,{configurable:!0,value:t})},Nce=VC.IteratorPrototype,Pce=function(){return this},Fce=Y.String,Ice=Y.TypeError,WC=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=tx(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return Ox(n),function(e){if(typeof e==`object`||ox(e))return e;throw Ice(`Can't set `+Fce(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),Lce=rS.PROPER,Rce=rS.CONFIGURABLE,GC=VC.IteratorPrototype,KC=VC.BUGGY_SAFARI_ITERATORS,qC=bx(`iterator`),zce=function(){return this},JC=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=fC(Nce,{next:zx(1,n)}),UC(e,i,!1),bC[i]=Pce})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!KC&&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[qC]||p[`@@iterator`]||i&&p[i],h=!KC&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=RC(g.call(new e)))!==Object.prototype&&s.next&&(RC(s)!==GC&&(WC?WC(s,GC):ox(s[qC])||iS(s,qC,zce)),UC(s,d,!0)),Lce&&i==`values`&&m&&m.name!==`values`&&(Rce?Bx(p,`name`,`values`):(f=!0,h=function(){return Ax(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(KC||f||!(l in p))&&iS(p,l,c[l]);else YS({target:t,proto:!0,forced:KC||f},c)}return p[qC]!==h&&iS(p,qC,h,{name:i}),bC[t]=h,c},Bce=FC.charAt,Vce=eS.set,Hce=eS.getterFor(`String Iterator`);JC(String,`String`,(function(e){Vce(this,{type:`String Iterator`,string:tC(e),index:0})}),(function(){var e,t=Hce(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Bce(n,r),t.index+=e.length,{value:e,done:!1})}));var YC,Uce=RS.f,XC=tx(``.endsWith),Wce=tx(``.slice),Gce=Math.min,ZC=vC(`endsWith`);YS({target:`String`,proto:!0,forced:!!(ZC||(YC=Uce(String.prototype,`endsWith`),!YC||YC.writable))&&!ZC},{endsWith:function(e){var t=tC(nx(this));_C(e);var n=arguments.length>1?arguments[1]:void 0,r=t.length,i=n===void 0?r:Gce(gS(n),r),a=tC(e);return XC?XC(t,a,i):Wce(t,i-a.length,i)===a}});var Kce=tx([].join),qce=mS!=Object,Jce=kS(`join`,`,`);YS({target:`Array`,proto:!0,forced:qce||!Jce},{join:function(e){return Kce(IS(this),e===void 0?`,`:e)}});var Yce=bx(`species`),QC=function(e){return px>=51||!mx((function(){var t=[];return(t.constructor={})[Yce]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},Xce=OS.map;YS({target:`Array`,proto:!0,forced:!QC(`map`)},{map:function(e){return Xce(this,e,arguments.length>1?arguments[1]:void 0)}});var $C=Y.RegExp,ew=mx((function(){var e=$C(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Zce=ew||mx((function(){return!$C(`a`,`y`).sticky})),tw={BROKEN_CARET:ew||mx((function(){var e=$C(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Zce,UNSUPPORTED_Y:ew},Qce=Y.RegExp,nw=mx((function(){var e=Qce(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),$ce=Y.RegExp,rw=mx((function(){var e=$ce(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),ele=eS.get,tle=Zb(`native-string-replace`,String.prototype.replace),iw=RegExp.prototype.exec,aw=iw,nle=tx(``.charAt),rle=tx(``.indexOf),ile=tx(``.replace),ow=tx(``.slice),sw=function(){var e=/a/,t=/b*/g;return Ax(iw,e,`a`),Ax(iw,t,`a`),e.lastIndex!==0||t.lastIndex!==0}(),cw=tw.BROKEN_CARET,lw=/()??/.exec(``)[1]!==void 0;(sw||lw||cw||nw||rw)&&(aw=function(e){var t,n,r,i,a,o,s,c=this,l=ele(c),u=tC(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=Ax(aw,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=cw&&c.sticky,m=Ax(nC,c),h=c.source,g=0,_=u;if(p&&(m=ile(m,`y`,``),rle(m,`g`)===-1&&(m+=`g`),_=ow(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&nle(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),lw&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),sw&&(r=c.lastIndex),i=Ax(iw,p?n:c,_),p?i?(i.input=ow(i.input,g),i[0]=ow(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:sw&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),lw&&i&&i.length>1&&Ax(tle,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=fC(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var uw=aw;YS({target:`RegExp`,proto:!0,forced:/./.exec!==uw},{exec:uw});var dw=Function.prototype,fw=dw.apply,ale=dw.bind,pw=dw.call,mw=typeof Reflect==`object`&&Reflect.apply||(ale?pw.bind(fw):function(){return pw.apply(fw,arguments)}),ole=bx(`species`),hw=RegExp.prototype,gw=function(e,t,n,r){var i=bx(e),a=!mx((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!mx((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[ole]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=tx(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=tx(e),c=t.exec;return c===uw||c===hw.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));iS(String.prototype,e,c[0]),iS(hw,i,c[1])}r&&Bx(hw[i],`sham`,!0)},sle=FC.charAt,_w=function(e,t,n){return t+(n?sle(e,t).length:1)},cle=Math.floor,vw=tx(``.charAt),lle=tx(``.replace),yw=tx(``.slice),ule=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,dle=/\$([$&'`]|\d{1,2})/g,fle=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=dle;return i!==void 0&&(i=rx(i),c=ule),lle(a,c,(function(a,c){var l;switch(vw(c,0)){case`$`:return`$`;case`&`:return e;case"`":return yw(t,0,n);case`'`:return yw(t,o);case`<`:l=i[yw(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=cle(u/10);return d===0?a:d<=s?r[d-1]===void 0?vw(c,1):r[d-1]+vw(c,1):a}l=r[u-1]}return l===void 0?``:l}))},ple=Y.TypeError,bw=function(e,t){var n=e.exec;if(ox(n)){var r=Ax(n,e,t);return r!==null&&Ox(r),r}if(aS(e)===`RegExp`)return Ax(uw,e,t);throw ple(`RegExp#exec called on incompatible receiver`)},xw=bx(`replace`),mle=Math.max,hle=Math.min,gle=tx([].concat),Sw=tx([].push),Cw=tx(``.indexOf),ww=tx(``.slice),Tw=`a`.replace(/./,`$0`)===`$0`,Ew=!!/./[xw]&&/./[xw](`a`,`$0`)===``;gw(`replace`,(function(e,t,n){var r=Ew?`$`:`$0`;return[function(e,n){var r=nx(this),i=e==null?void 0:Fx(e,xw);return i?Ax(i,e,r,n):Ax(t,tC(r),e,n)},function(e,i){var a=Ox(this),o=tC(e);if(typeof i==`string`&&Cw(i,r)===-1&&Cw(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=ox(i);c||(i=tC(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=bw(a,o);if(f===null||(Sw(d,f),!l))break;tC(f[0])===``&&(a.lastIndex=_w(o,gS(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=tC((f=d[g])[0]),v=mle(hle(hS(f.index),o.length),0),y=[],b=1;b<f.length;b++)Sw(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=gle([_],y,v,o);x!==void 0&&Sw(S,x);var C=tC(mw(i,void 0,S))}else C=fle(_,o,v,y,x,i);v>=h&&(m+=ww(o,h,v)+C,h=v+_.length)}return m+ww(o,h)}]}),!!mx((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Tw||Ew);var Dw=function(e,t){return Dw=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])},Dw(e,t)};function Ow(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}Dw(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var kw=function(){return kw=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},kw.apply(this,arguments)};function Aw(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 jw(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 Mw(e,t){for(var n=0,r=t.length,i=e.length;n<r;n++,i++)e[i]=t[n];return e}var Nw=0,Pw=function(){this.id=``+Nw++},Fw=eS.set,Iw=eS.getterFor(`Array Iterator`),Lw=JC(Array,`Array`,(function(e,t){Fw(this,{type:`Array Iterator`,target:IS(e),index:0,kind:t})}),(function(){var e=Iw(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`);bC.Arguments=bC.Array,hC(`keys`),hC(`values`),hC(`entries`);var Rw=function(e,t,n){for(var r in t)iS(e,r,t[r],n);return e},_le=Y.Array,vle=Math.max,zw=function(e,t,n){for(var r=_S(e),i=zS(t,r),a=zS(n===void 0?r:n,r),o=_le(vle(a-i,0)),s=0;i<a;i++,s++)SC(o,s,e[i]);return o.length=s,o},Bw=GS.f,Vw=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],yle={f:function(e){return Vw&&aS(e)==`Window`?function(e){try{return Bw(e)}catch{return zw(Vw)}}(e):Bw(IS(e))}},Hw=mx((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),Uw=Object.isExtensible,Ww=mx((function(){Uw(1)}))||Hw?function(e){return!!wx(e)&&(!Hw||aS(e)!=`ArrayBuffer`)&&(!Uw||Uw(e))}:Uw,Gw=!mx((function(){return Object.isExtensible(Object.preventExtensions({}))})),Kw=Gb((function(e){var t=Rx.f,n=!1,r=ax(`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=GS.f,t=tx([].splice),i={};i[r]=1,e(i).length&&(GS.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},YS({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:yle.f}))},fastKey:function(e,t){if(!wx(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!ix(e,r)){if(!Ww(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!ix(e,r)){if(!Ww(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return Gw&&n&&Ww(e)&&!ix(e,r)&&a(e),e}};Yx[r]=!0})),qw=Y.TypeError,Jw=function(e,t){this.stopped=e,this.result=t},Yw=Jw.prototype,Xw=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=fS(t,u),h=function(e){return r&&yC(r,`normal`,e),new Jw(!0,e)},g=function(e){return d?(Ox(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=CC(e)))throw qw(Nx(e)+` is not iterable`);if(xC(i)){for(a=0,o=_S(e);o>a;a++)if((s=g(e[a]))&&jx(Yw,s))return s;return new Jw(!1)}r=wC(e,i)}for(c=r.next;!(l=Ax(c,r)).done;){try{s=g(l.value)}catch(e){yC(r,`throw`,e)}if(typeof s==`object`&&s&&jx(Yw,s))return s}return new Jw(!1)},Zw=Y.TypeError,Qw=function(e,t){if(jx(t,e))return e;throw Zw(`Incorrect invocation`)},$w=function(e,t,n){var r,i;return WC&&ox(r=t.constructor)&&r!==n&&wx(i=r.prototype)&&i!==n.prototype&&WC(e,i),e},eT=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=tx(s[e]);iS(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!wx(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!wx(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!wx(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(JS(e,!ox(o)||!(i||s.forEach&&!mx((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),Kw.enable();else if(JS(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=mx((function(){d.has(1)})),m=kC((function(e){new o(e)})),h=!i&&mx((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){Qw(e,s);var n=$w(new o,e,c);return t!=null&&Xw(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,YS({global:!0,forced:c!=o},l),UC(c,e),i||n.setStrong(c,e,r),c},tT=Kw.getWeakData,nT=eS.set,rT=eS.getterFor,ble=OS.find,xle=OS.findIndex,Sle=tx([].splice),Cle=0,iT=function(e){return e.frozen||=new aT},aT=function(){this.entries=[]},oT=function(e,t){return ble(e.entries,(function(e){return e[0]===t}))};aT.prototype={get:function(e){var t=oT(this,e);if(t)return t[1]},has:function(e){return!!oT(this,e)},set:function(e,t){var n=oT(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=xle(this.entries,(function(t){return t[0]===e}));return~t&&Sle(this.entries,t,1),!!~t}};var sT,cT={getConstructor:function(e,t,n,r){var i=e((function(e,i){Qw(e,a),nT(e,{type:t,id:Cle++,frozen:void 0}),i!=null&&Xw(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=rT(t),s=function(e,t,n){var r=o(e),i=tT(Ox(t),!0);return!0===i?iT(r).set(t,n):i[r.id]=n,e};return Rw(a,{delete:function(e){var t=o(this);if(!wx(e))return!1;var n=tT(e);return!0===n?iT(t).delete(e):n&&ix(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!wx(e))return!1;var n=tT(e);return!0===n?iT(t).has(e):n&&ix(n,t.id)}}),Rw(a,n?{get:function(e){var t=o(this);if(wx(e)){var n=tT(e);return!0===n?iT(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}},lT=eS.enforce,wle=!Y.ActiveXObject&&`ActiveXObject`in Y,uT=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Tle=eT(`WeakMap`,uT,cT);if(Kx&&wle){sT=cT.getConstructor(uT,`WeakMap`,!0),Kw.enable();var dT=Tle.prototype,fT=tx(dT.delete),pT=tx(dT.has),mT=tx(dT.get),hT=tx(dT.set);Rw(dT,{delete:function(e){if(wx(e)&&!Ww(e)){var t=lT(this);return t.frozen||=new sT,fT(this,e)||t.frozen.delete(e)}return fT(this,e)},has:function(e){if(wx(e)&&!Ww(e)){var t=lT(this);return t.frozen||=new sT,pT(this,e)||t.frozen.has(e)}return pT(this,e)},get:function(e){if(wx(e)&&!Ww(e)){var t=lT(this);return t.frozen||=new sT,pT(this,e)?mT(this,e):t.frozen.get(e)}return mT(this,e)},set:function(e,t){if(wx(e)&&!Ww(e)){var n=lT(this);n.frozen||=new sT,pT(this,e)?hT(this,e,t):n.frozen.set(e,t)}else hT(this,e,t);return this}})}var gT=bx(`iterator`),_T=bx(`toStringTag`),vT=Lw.values,yT=function(e,t){if(e){if(e[gT]!==vT)try{Bx(e,gT,vT)}catch{e[gT]=vT}if(e[_T]||Bx(e,_T,t),sS[t]){for(var n in Lw)if(e[n]!==Lw[n])try{Bx(e,n,Lw[n])}catch{e[n]=Lw[n]}}}};for(var bT in sS)yT(Y[bT]&&Y[bT].prototype,bT);yT(uS,`DOMTokenList`);var 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=new WeakMap,WT=new WeakMap,GT=new WeakMap,KT=OS.find,qT=!0;`find`in[]&&[,].find((function(){qT=!1})),YS({target:`Array`,proto:!0,forced:qT},{find:function(e){return KT(this,e,arguments.length>1?arguments[1]:void 0)}}),hC(`find`),YS({global:!0},{globalThis:Y});var JT=[`area`,`base`,`basefont`,`bgsound`,`br`,`col`,`command`,`embed`,`frame`,`hr`,`image`,`img`,`input`,`isindex`,`keygen`,`link`,`menuitem`,`meta`,`nextid`,`param`,`source`,`track`,`wbr`];dg&&(J.fn.css=dg),_g&&(J.fn.append=_g),Zh&&(J.fn.addClass=Zh),Qh&&(J.fn.removeClass=Qh),$h&&(J.fn.hasClass=$h),ig&&(J.fn.on=ig),Og&&(J.fn.focus=Og),eg&&(J.fn.attr=eg),tg&&(J.fn.removeAttr=tg),lg&&(J.fn.hide=lg),ug&&(J.fn.show=ug),cg&&(J.fn.offset=cg),og&&(J.fn.width=og),sg&&(J.fn.height=sg),yg&&(J.fn.parent=yg),bg&&(J.fn.parents=bg),gg&&(J.fn.is=gg),ng&&(J.fn.dataset=ng),rg&&(J.fn.val=rg),hg&&(J.fn.text=hg),mg&&(J.fn.html=mg),Sg&&(J.fn.children=Sg),Cg&&(J.fn.remove=Cg),xg&&(J.fn.find=xg),fg&&(J.fn.each=fg),wg&&(J.fn.empty=wg);var YT,XT,ZT=function(e){return e&&e.ownerDocument&&e.ownerDocument.defaultView||null},QT=function(e){return $T(e)&&e.nodeType===1},$T=function(e){var t=ZT(e);return!!t&&e instanceof t.Node},eE=function(e){var t=e&&e.anchorNode&&ZT(e.anchorNode);return!!t&&e instanceof t.Selection},tE=function(e){return $T(e)&&e.nodeType===3},nE=function(e){return window.document.getElementById(e)??((window.document.activeElement?.shadowRoot)?.getElementById(e)||null)},rE=function(e,t,n){for(var r,i=e.childNodes,a=i[t],o=t,s=!1,c=!1;($T(r=a)&&r.nodeType===8||QT(a)&&a.childNodes.length===0||QT(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]},iE=function(e,t,n){return jw(rE(e,t,n),1)[0]},aE=function e(t){var n,r,i=``;if(tE(t)&&t.nodeValue)return t.nodeValue;if(QT(t)){try{for(var a=Aw(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 oE(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||oE(i,t)}}function sE(e){if(e.length===0)return``;var t=e[0];return t.nodeType===YT.ELEMENT_NODE?t.tagName.toLowerCase():``}(XT=YT||={})[XT.ELEMENT_NODE=1]=`ELEMENT_NODE`,XT[XT.TEXT_NODE=3]=`TEXT_NODE`,XT[XT.CDATA_SECTION_NODE=4]=`CDATA_SECTION_NODE`,XT[XT.PROCESSING_INSTRUCTION_NODE=7]=`PROCESSING_INSTRUCTION_NODE`,XT[XT.COMMENT_NODE=8]=`COMMENT_NODE`,XT[XT.DOCUMENT_NODE=9]=`DOCUMENT_NODE`,XT[XT.DOCUMENT_TYPE_NODE=10]=`DOCUMENT_TYPE_NODE`,XT[XT.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 cE=typeof navigator<`u`&&/Mac OS X/.test(navigator.userAgent),lE=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 uE=typeof navigator<`u`&&/Version\/[\d\.]+.*Safari/.test(navigator.userAgent),Ele=typeof navigator<`u`&&/Edge?\/(?:[0-6][0-9]|[0-7][0-8])(?:\.)/i.test(navigator.userAgent),Dle=typeof navigator<`u`&&/Chrome?\/(?:[0-7][0-5]|[0-6][0-9])(?:\.)/i.test(navigator.userAgent),dE=typeof navigator<`u`&&/Chrome/i.test(navigator.userAgent);typeof navigator<`u`&&/.*QQBrowser/.test(navigator.userAgent);var fE=!Dle&&!Ele&&typeof globalThis<`u`&&globalThis.InputEvent&&typeof globalThis.InputEvent.prototype.getTargetRanges==`function`,X={getWindow:function(e){var t=VT.get(e);if(!t)throw Error(`Unable to find a host window element for this editor`);return t},findKey:function(e,t){var n=BT.get(t);return n||(n=new Pw,BT.set(t,n)),n},setNewKey:function(e){var t=new Pw;BT.set(e,t)},findPath:function(e,t){for(var n=[],r=t;;){var i=FT.get(r);if(i==null){if(H.isEditor(r))return n;break}var a=PT.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 FT.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 U.get(e,n)},toDOMNode:function(e,t){var n;if(H.isEditor(t))n=IT.get(e);else{var r=X.findKey(e,t);n=RT.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=QT(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=G.isBackward(t),a=X.toDOMPoint(e,n),o=G.isCollapsed(t)?a:X.toDOMPoint(e,r),s=X.getWindow(e).document.createRange(),c=jw(i?o:a,2),l=c[0],u=c[1],d=jw(i?a:o,2),f=d[0],p=d[1],m=!!(QT(l)?l:l.parentElement).getAttribute(`data-slate-zero-width`),h=!!(QT(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=jw(H.node(e,t.path),1)[0],o=X.toDOMNode(e,a);H.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=Aw(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=QT(t)?t:t.parentElement;n&&!n.hasAttribute(`data-slate-node`)&&(n=n.closest(`[data-slate-node]`));var r=n?LT.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(H.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=H.point(e,s,{edge:l?`start`:`end`}),d=l?H.before(e,u):H.after(e,u);if(d)return H.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((eE(t)?t.anchorNode:t.startContainer)&&(eE(t)?(r=t.anchorNode,i=t.anchorOffset,a=t.focusNode,o=t.focusOffset,s=dE&&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 G.isExpanded(f)&&G.isForward(f)&&QT(a)&&H.void(e,{at:f.focus,mode:`highest`})&&(f=H.unhangRange(e,f,{voids:!0})),f},toSlatePoint:function(e,t,n){var r,i=n.exactMatch,a=n.suppressThrow,o=jw(i?t:function(e){var t,n=jw(e,2),r=n[0],i=n[1];if(QT(r)&&r.childNodes.length){var a=i===r.childNodes.length,o=a?i-1:i;for(r=(t=jw(rE(r,o,a?`backward`:`forward`),2))[0],a=(o=t[1])<i;QT(r)&&r.childNodes.length;){var s=a?r.childNodes.length-1:0;r=iE(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();Mw(Mw([],jw(Ih(g.querySelectorAll(`[data-slate-zero-width]`)))),jw(Ih(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`)||lE&&(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 H.hasPath(e,n.path)&&H.hasPath(e,r.path)},getNodeType:function(e){return V.isElement(e)?e.type:``},checkNodeType:function(e,t){return this.getNodeType(e)===t},getNodesStr:function(e){return e.map((function(e){return U.string(e)})).join(``)},getSelectedElems:function(e){var t,n,r=[],i=H.nodes(e,{universal:!0});try{for(var a=Aw(i),o=a.next();!o.done;o=a.next()){var s=jw(o.value,1)[0];V.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=jw(H.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=jw(H.nodes(e,{match:function(e){return K.isText(e)},universal:!0}),1)[0];return t==null?null:t[0]},isNodeSelected:function(e,t){var n=jw(H.nodes(e,{match:function(e){return e===t},universal:!0}),1)[0];return n!=null&&jw(n,1)[0]===t},isSelectionAtLineEnd:function(e,t){var n=e.selection;return!!n&&(H.isEnd(e,n.anchor,t)||H.isEnd(e,n.focus,t))},getTextarea:function(e){var t=xT.get(e);if(t==null)throw Error(`Cannot find textarea instance by editor`);return t},getToolbar:function(e){return wT.get(e)||null},getHoverbar:function(e){return ET.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=Aw(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=H.nodes(e,{match:function(t){return!(!V.isElement(t)||e.isInline(t))},universal:!0});try{for(var u=Aw(l),d=u.next();!d.done;d=u.next()){var f=d.value;if(f!=null){var p=f[0];oE(X.toDOMNode(e,p),(function(e,t){var n=J(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=H.nodes(e,{match:function(t){return e.isVoid(t)}}),i=0;try{for(var a=Aw(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||G.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=H.node(e,t);if(n==null)return!1;var r=jw(n,1)[0].children;return r.length===1&&r[0].text===``}},Ole=1,pE={},mE={},kle=OS.filter;YS({target:`Array`,proto:!0,forced:!QC(`filter`)},{filter:function(e){return kle(this,e,arguments.length>1?arguments[1]:void 0)}});var hE=`
\v\f\r \xA0               \u2028\u2029`,gE=tx(``.replace),_E=`[`+hE+`]`,Ale=RegExp(`^`+_E+_E+`*`),jle=RegExp(_E+_E+`*$`),vE=function(e){return function(t){var n=tC(nx(t));return 1&e&&(n=gE(n,Ale,``)),2&e&&(n=gE(n,jle,``)),n}},Mle={start:vE(1),end:vE(2),trim:vE(3)},Nle=rS.PROPER,Ple=Mle.trim;YS({target:`String`,proto:!0,forced:function(e){return mx((function(){return!!hE[e]()||`​…᠎`[e]()!==`​…᠎`||Nle&&hE[e].name!==e}))}(`trim`)},{trim:function(){return Ple(this)}});var yE=[],bE={};function Fle(e,t,n){var r=n.isInline(e)?`span`:`div`;return`<`+r+`>`+t+`</`+r+`>`}var xE,SE,CE,wE,TE=Y.Promise,EE=bx(`species`),DE=function(e){var t=sx(e),n=Rx.f;Cx&&t&&!t[EE]&&n(t,EE,{configurable:!0,get:function(){return this}})},Ile=Y.TypeError,Lle=bx(`species`),OE=function(e,t){var n,r=Ox(e).constructor;return r===void 0||(n=Ox(r)[Lle])==null?t:function(e){if(CS(e))return e;throw Ile(Nx(e)+` is not a constructor`)}(n)},kE=tx([].slice),AE=/(?:ipad|iphone|ipod).*applewebkit/i.test(cx),jE=aS(Y.process)==`process`,ME=Y.setImmediate,NE=Y.clearImmediate,Rle=Y.process,PE=Y.Dispatch,zle=Y.Function,FE=Y.MessageChannel,Ble=Y.String,IE=0,LE={};try{xE=Y.location}catch{}var RE=function(e){if(ix(LE,e)){var t=LE[e];delete LE[e],t()}},zE=function(e){return function(){RE(e)}},BE=function(e){RE(e.data)},VE=function(e){Y.postMessage(Ble(e),xE.protocol+`//`+xE.host)};ME&&NE||(ME=function(e){var t=kE(arguments,1);return LE[++IE]=function(){mw(ox(e)?e:zle(e),void 0,t)},SE(IE),IE},NE=function(e){delete LE[e]},jE?SE=function(e){Rle.nextTick(zE(e))}:PE&&PE.now?SE=function(e){PE.now(zE(e))}:FE&&!AE?(wE=(CE=new FE).port2,CE.port1.onmessage=BE,SE=fS(wE.postMessage,wE)):Y.addEventListener&&ox(Y.postMessage)&&!Y.importScripts&&xE&&xE.protocol!==`file:`&&!mx(VE)?(SE=VE,Y.addEventListener(`message`,BE,!1)):SE=`onreadystatechange`in Ex(`script`)?function(e){oC.appendChild(Ex(`script`)).onreadystatechange=function(){oC.removeChild(this),RE(e)}}:function(e){setTimeout(zE(e),0)});var HE,UE,WE,GE,KE,qE,JE,YE,XE={set:ME,clear:NE},Vle=/ipad|iphone|ipod/i.test(cx)&&Y.Pebble!==void 0,Hle=/web0s(?!.*chrome)/i.test(cx),Ule=RS.f,ZE=XE.set,QE=Y.MutationObserver||Y.WebKitMutationObserver,$E=Y.document,eD=Y.process,tD=Y.Promise,nD=Ule(Y,`queueMicrotask`),rD=nD&&nD.value;rD||(HE=function(){var e,t;for(jE&&(e=eD.domain)&&e.exit();UE;){t=UE.fn,UE=UE.next;try{t()}catch(e){throw UE?GE():WE=void 0,e}}WE=void 0,e&&e.enter()},AE||jE||Hle||!QE||!$E?!Vle&&tD&&tD.resolve?((JE=tD.resolve(void 0)).constructor=tD,YE=fS(JE.then,JE),GE=function(){YE(HE)}):jE?GE=function(){eD.nextTick(HE)}:(ZE=fS(ZE,Y),GE=function(){ZE(HE)}):(KE=!0,qE=$E.createTextNode(``),new QE(HE).observe(qE,{characterData:!0}),GE=function(){qE.data=KE=!KE}));var iD,aD,oD,sD,cD=rD||function(e){var t={fn:e,next:void 0};WE&&(WE.next=t),UE||(UE=t,GE()),WE=t},lD=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=Px(t),this.reject=Px(n)},uD={f:function(e){return new lD(e)}},dD=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},fD=typeof window==`object`,pD=XE.set,mD=bx(`species`),hD=`Promise`,gD=eS.getterFor(hD),_D=eS.set,vD=eS.getterFor(hD),yD=TE&&TE.prototype,bD=TE,xD=yD,SD=Y.TypeError,CD=Y.document,wD=Y.process,TD=uD.f,ED=TD,DD=!!(CD&&CD.createEvent&&Y.dispatchEvent),OD=ox(Y.PromiseRejectionEvent),kD=!1,AD=JS(hD,(function(){var e=Wx(bD),t=e!==String(bD);if(!t&&px===66)return!0;if(px>=51&&/native code/.test(e))return!1;var n=new bD((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[mD]=r,!(kD=n.then((function(){}))instanceof r)||!t&&fD&&!OD})),jD=AD||!kC((function(e){bD.all(e).catch((function(){}))})),MD=function(e){var t;return!(!wx(e)||!ox(t=e.then))&&t},ND=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;cD((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&&LD(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(SD(`Promise-chain cycle`)):(s=MD(o))?Ax(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&FD(e)}))}},PD=function(e,t,n){var r,i;DD?((r=CD.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Y.dispatchEvent(r)):r={promise:t,reason:n},!OD&&(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)},FD=function(e){Ax(pD,Y,(function(){var t,n=e.facade,r=e.value;if(ID(e)&&(t=dD((function(){jE?wD.emit(`unhandledRejection`,r,n):PD(`unhandledrejection`,n,r)})),e.rejection=jE||ID(e)?2:1,t.error))throw t.value}))},ID=function(e){return e.rejection!==1&&!e.parent},LD=function(e){Ax(pD,Y,(function(){var t=e.facade;jE?wD.emit(`rejectionHandled`,t):PD(`rejectionhandled`,t,e.value)}))},RD=function(e,t,n){return function(r){e(t,r,n)}},zD=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,ND(e,!0))},BD=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw SD(`Promise can't be resolved itself`);var r=MD(t);r?cD((function(){var n={done:!1};try{Ax(r,t,RD(BD,n,e),RD(zD,n,e))}catch(t){zD(n,t,e)}})):(e.value=t,e.state=1,ND(e,!1))}catch(t){zD({done:!1},t,e)}}};if(AD&&(xD=(bD=function(e){Qw(this,xD),Px(e),Ax(iD,this);var t=gD(this);try{e(RD(BD,t),RD(zD,t))}catch(e){zD(t,e)}}).prototype,(iD=function(e){_D(this,{type:hD,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Rw(xD,{then:function(e,t){var n=vD(this),r=n.reactions,i=TD(OE(this,bD));return i.ok=!ox(e)||e,i.fail=ox(t)&&t,i.domain=jE?wD.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&ND(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),aD=function(){var e=new iD,t=gD(e);this.promise=e,this.resolve=RD(BD,t),this.reject=RD(zD,t)},uD.f=TD=function(e){return e===bD||e===oD?new aD(e):ED(e)},ox(TE)&&yD!==Object.prototype)){sD=yD.then,kD||(iS(yD,`then`,(function(e,t){var n=this;return new bD((function(e,t){Ax(sD,n,e,t)})).then(e,t)}),{unsafe:!0}),iS(yD,`catch`,xD.catch,{unsafe:!0}));try{delete yD.constructor}catch{}WC&&WC(yD,xD)}YS({global:!0,wrap:!0,forced:AD},{Promise:bD}),UC(bD,hD,!1),DE(hD),oD=sx(hD),YS({target:hD,stat:!0,forced:AD},{reject:function(e){var t=TD(this);return Ax(t.reject,void 0,e),t.promise}}),YS({target:hD,stat:!0,forced:AD},{resolve:function(e){return function(e,t){if(Ox(e),wx(t)&&t.constructor===e)return t;var n=uD.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),YS({target:hD,stat:!0,forced:jD},{all:function(e){var t=this,n=TD(t),r=n.resolve,i=n.reject,a=dD((function(){var n=Px(t.resolve),a=[],o=0,s=1;Xw(e,(function(e){var c=o++,l=!1;s++,Ax(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=TD(t),r=n.reject,i=dD((function(){var i=Px(t.resolve);Xw(e,(function(e){Ax(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var VD=tw.UNSUPPORTED_Y,HD=Math.min,UD=[].push,WD=tx(/./.exec),GD=tx(UD),KD=tx(``.slice);function qD(e){Promise.resolve().then(e)}function JD(e,t){return V.isElement(e)?function(e,t){var n=e.type,r=n===void 0?``:n,i=e.children,a=i===void 0?[]:i,o=H.isVoid(t,e),s=``;o||(s=a.map((function(e){return JD(e,t)})).join(``));var c=function(e){return bE[e]||Fle}(r)(e,s,t),l=``;if(l=typeof c==`string`?c:c.html||``,o||yE.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 yE.forEach((function(t){return r=t(e,r)})),r}(e,t)}function YD(e){return`w-e-element-`+e}gw(`split`,(function(e,t,n){var 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=tC(nx(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!gC(e))return Ax(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=Ax(uw,d,r))&&!((o=d.lastIndex)>u&&(GD(c,KD(r,u,a.index)),a.length>1&&a.index<r.length&&mw(UD,c,zw(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&WD(d,``)||GD(c,``):GD(c,KD(r,u)),c.length>i?zw(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:Ax(t,this,e,n)}:t;return[function(t,n){var i=nx(this),a=t==null?void 0:Fx(t,e);return a?Ax(a,t,i,n):Ax(r,tC(i),t,n)},function(e,i){var a=Ox(this),o=tC(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=OE(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(VD?`g`:`y`),d=new c(VD?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return bw(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=VD?0:m;var g,_=bw(d,VD?KD(o,m):o);if(_===null||(g=HD(gS(d.lastIndex+(VD?m:0)),o.length))===p)m=_w(o,m,l);else{if(GD(h,KD(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(GD(h,_[v]),h.length===f)return h;m=p=g}}return GD(h,KD(o,p)),h}]}),!!mx((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`})),VD);var XD=function(e,t){var n=(t.top+t.bottom)/2;return e.top<=n&&e.bottom>=n},ZD=function(e,t,n){var r=X.toDOMRange(e,t).getBoundingClientRect(),i=X.toDOMRange(e,n).getBoundingClientRect();return XD(r,i)&&XD(i,r)},QD=[`span`,`b`,`strong`,`i`,`em`,`s`,`strike`,`u`,`font`,`sub`,`sup`],$D=[],eO=[],tO={},nO=Rx.f,rO=GS.f,iO=eS.enforce,aO=bx(`match`),oO=Y.RegExp,sO=oO.prototype,cO=Y.SyntaxError,lO=tx(nC),uO=tx(sO.exec),dO=tx(``.charAt),fO=tx(``.replace),pO=tx(``.indexOf),mO=tx(``.slice),hO=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,gO=/a/g,_O=/a/g,vO=new oO(gO)!==gO,yO=tw.MISSED_STICKY,bO=tw.UNSUPPORTED_Y;if(JS(`RegExp`,Cx&&(!vO||yO||nw||rw||mx((function(){return _O[aO]=!1,oO(gO)!=gO||oO(_O)==_O||oO(gO,`i`)!=`/a/i`}))))){for(var xO=function(e,t){var n,r,i,a,o,s,c=jx(sO,this),l=gC(e),u=t===void 0,d=[],f=e;if(!c&&l&&u&&e.constructor===xO)return e;if((l||jx(sO,e))&&(e=e.source,u&&(t=`flags`in f?f.flags:lO(f))),e=e===void 0?``:tC(e),t=t===void 0?``:tC(t),f=e,nw&&`dotAll`in gO&&(r=!!t&&pO(t,`s`)>-1)&&(t=fO(t,/s/g,``)),n=t,yO&&`sticky`in gO&&(i=!!t&&pO(t,`y`)>-1)&&bO&&(t=fO(t,/y/g,``)),rw&&(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=dO(e,r))===`\\`)t+=dO(e,++r);else if(t===`]`)s=!1;else if(!s)switch(!0){case t===`[`:s=!0;break;case t===`(`:uO(hO,mO(e,r+1))&&(r+=2,c=!0),i+=t,l++;continue;case t===`>`&&c:if(u===``||ix(o,u))throw new cO(`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=$w(oO(e,t),c?this:sO,xO),(r||i||d.length)&&(s=iO(o),r&&(s.dotAll=!0,s.raw=xO(function(e){for(var t,n=e.length,r=0,i=``,a=!1;r<=n;r++)(t=dO(e,r))===`\\`?i+=t+dO(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{Bx(o,`source`,f===``?`(?:)`:f)}catch{}return o},SO=function(e){e in xO||nO(xO,e,{configurable:!0,get:function(){return oO[e]},set:function(t){oO[e]=t}})},CO=rO(oO),wO=0;CO.length>wO;)SO(CO[wO++]);sO.constructor=xO,xO.prototype=sO,iS(Y,`RegExp`,xO)}DE(`RegExp`);var TO=RegExp(`\xA0`,`g`);function EO(e){return e.replace(TO,` `)}function DO(e,t){var n=e.length;if(n){var r=e[n-1];if(K.isText(r)){var i=Object.keys(r);if(i.length===1&&i[0]===`text`)return r.text+=t,!0}}return!1}function Wle(e,t,n){return{type:`paragraph`,children:[{text:J(e).text().replace(/\s+/gm,` `)}]}}function OO(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!==YT.ELEMENT_NODE){if(e.nodeType===YT.TEXT_NODE){var r=e.textContent||``;if(r.trim()===``&&r.indexOf(`
`)>=0)return;r&&(r=EO(r),DO(n,r)||n.push({text:r}))}}else{if(e.nodeName===`BR`)return void(DO(n,`
`)||n.push({text:`
`}));var i=AO(J(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 tO)if(e[0].matches(t))return tO[t];return Wle}(e)(e[0],n,t);return Array.isArray(r)||(r=[r]),r.forEach((function(r){H.isVoid(t,r)||(n.length===0&&(r.children=[{text:e.text().replace(/\s+/gm,` `)}]),eO.forEach((function(n){r=n(e[0],r,t)})))})),r}function kO(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=EO(n)};return eO.forEach((function(n){r=n(e[0],r,t)})),r}function AO(e,t){$D.forEach((function(t){var n=t.selector,r=t.preParseHtml;e[0].matches(n)&&(e=J(r(e[0])))}));var n=sE(e);return n===`span`?e.attr(`data-w-e-type`)?OO(e,t):kO(e,t):n===`code`?sE(e.parent())===`pre`?OO(e,t):kO(e,t):QD.includes(n)?kO(e,t):OO(e,t)}function jO(e,t,n){var r=J(n);return!!r.attr(t)||(r.attr(t,`true`),e.on(`destroyed`,(function(){r.removeAttr(t)})),!1)}function MO(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=J(`<div>`+t+`</div>`);return Array.from(r.children()).forEach((function(t){var r=AO(J(t),e);Array.isArray(r)?r.forEach((function(e){return n.push(e)})):n.push(r)})),n}var Gle=Rx.f,NO=Kw.fastKey,PO=eS.set,FO=eS.getterFor;eT(`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){Qw(e,a),PO(e,{type:t,index:fC(null),first:void 0,last:void 0,size:0}),Cx||(e.size=0),i!=null&&Xw(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=FO(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=NO(t,!0),key:t,value:n,previous:r=a.last,next:void 0,removed:!1},a.first||=s,r&&(r.next=s),Cx?a.size++:e.size++,i!==`F`&&(a.index[i]=s)),e},c=function(e,t){var n,r=o(e),i=NO(t);if(i!==`F`)return r.index[i];for(n=r.first;n;n=n.next)if(n.key==t)return n};return Rw(a,{clear:function(){for(var e=o(this),t=e.index,n=e.first;n;)n.removed=!0,n.previous&&(n.previous=n.previous.next=void 0),delete t[n.index],n=n.next;e.first=e.last=void 0,Cx?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),Cx?n.size--:t.size--}return!!r},forEach:function(e){for(var t,n=o(this),r=fS(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)}}),Rw(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)}}),Cx&&Gle(a,`size`,{get:function(){return o(this).size}}),i},setStrong:function(e,t,n){var r=t+` Iterator`,i=FO(t),a=FO(r);JC(e,t,(function(e,t){PO(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),DE(t)}});var IO=new Set([`doctype`,`!doctype`,`meta`,`script`,`style`,`link`,`frame`,`iframe`,`title`,`svg`]);function LO(e,t){e.isInline(t)?(e.insertNode(t),t.type===`link`&&e.insertFragment([{text:``}])):q.insertNodes(e,t,{mode:`highest`})}var Kle=function(e){var t=e,n=t.insertText;return t.insertFragment,t.setFragmentData=function(e){var n=t.selection;if(n){var r=jw(G.edges(n),2),i=r[0],a=r[1],o=H.void(t,{at:i.path}),s=H.void(t,{at:a.path});if(!G.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=jw(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`?`
`:``})),tE(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`,aE(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=Aw(u),p=f.next();!p.done;p=f.next()){var m=p.value;d&&q.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},RO=function(e){return e!=null},qle={object:!0,function:!0,undefined:!0},Jle=/^\s*class[\s{/}]/,Yle=Function.prototype.toString,zO=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!!RO(e)&&hasOwnProperty.call(qle,typeof e)}(e))return!1;try{return!!e.constructor&&e.constructor.prototype===e}catch{return!1}}(e)}(e)&&!Jle.test(Yle.call(e))},BO=function(e){return e!=null},Xle=Object.keys,Zle=function(){try{return!0}catch{return!1}}()?Object.keys:function(e){return Xle(BO(e)?Object(e):e)},Qle=function(e){if(!BO(e))throw TypeError(`Cannot use null or undefined`);return e},$le=Math.max,VO=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=$le(arguments.length,2);for(e=Object(Qle(e)),i=function(r){try{e[r]=t[r]}catch(e){n||=e}},r=1;r<a;++r)Zle(t=arguments[r]).forEach(i);if(n!==void 0)throw n;return e},eue=Array.prototype.forEach,tue=Object.create,nue=function(e,t){for(var n in e)t[n]=e[n]},HO=function(e){var t=tue(null);return eue.call(arguments,(function(e){BO(e)&&nue(Object(e),t)})),t},UO=`razdwatrzy`,rue=String.prototype.indexOf,WO=typeof UO.contains==`function`&&!0===UO.contains(`dwa`)&&!1===UO.contains(`foo`)?String.prototype.contains:function(e){return rue.call(this,e,arguments[1])>-1},GO=Gb((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],RO(e)?(n=WO.call(e,`c`),r=WO.call(e,`e`),i=WO.call(e,`w`)):(n=i=!0,r=!1),o={value:t,configurable:n,enumerable:r,writable:i},a?VO(HO(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),RO(t)?zO(t)?RO(n)?zO(n)||(a=n,n=void 0):n=void 0:(a=t,t=n=void 0):t=void 0,RO(e)?(r=WO.call(e,`c`),i=WO.call(e,`e`)):(r=!0,i=!1),o={get:t,set:n,configurable:r,enumerable:i},a?VO(HO(a),o):o}})),KO=function(e){if(typeof e!=`function`)throw TypeError(e+` is not a function`);return e},iue=Gb((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 KO(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 KO(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(KO(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:GO(n),once:GO(r),off:GO(i),emit:GO(a)},c=p({},s),e.exports=t=function(e){return e==null?d(c):p(Object(e),s)},t.methods=o}));function qO(e){var t=WT.get(e);return t??(t=iue(),WT.set(e,t)),t}var JO=new WeakMap;function YO(e,t){var n=JO.get(e);n??(n=new Set,JO.set(e,n)),n.add(t)}function aue(e){return JO.get(e)||new Set}function oue(e){JO.set(e,new Set)}function XO(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 ZO(e){var t={top:`0`,left:`0`},n=e.selection;if(n==null)return t;var r=XO(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 QO(e,t,n){n===void 0&&(n=`modal`);var r={top:`0`,left:`0`};if(e.selection==null)return r;var i=V.isElement(t)&&e.isVoid(t),a=V.isElement(t)&&e.isInline(t),o=zT.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(JT.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=XO(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 $O(e,t){qD((function(){var n=XO(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 sue=QC(`slice`),cue=bx(`species`),ek=Y.Array,lue=Math.max;YS({target:`Array`,proto:!0,forced:!sue},{slice:function(e,t){var n,r,i,a=IS(this),o=_S(a),s=zS(e,o),c=zS(t===void 0?o:t,o);if(vS(a)&&(n=a.constructor,(CS(n)&&(n===ek||vS(n.prototype))||wx(n)&&(n=n[cue])===null)&&(n=void 0),n===ek||n===void 0))return kE(a,s,c);for(r=new(n===void 0?ek:n)(lue(c-s,0)),i=0;s<c;s++,i++)s in a&&SC(r,i,a[s]);return r.length=i,r}});var uue=RS.f,tk=tx(``.startsWith),due=tx(``.slice),fue=Math.min,nk=vC(`startsWith`);YS({target:`String`,proto:!0,forced:!(!nk&&function(){var e=uue(String.prototype,`startsWith`);return e&&!e.writable}())&&!nk},{startsWith:function(e){var t=tC(nx(this));_C(e);var n=gS(fue(arguments.length>1?arguments[1]:void 0,t.length)),r=tC(e);return tk?tk(t,r,n):due(t,n,n+r.length)===r}});var rk=Object.assign,ik=Object.defineProperty,pue=tx([].concat),ak=!rk||mx((function(){if(Cx&&rk({b:1},rk(ik({},`a`,{enumerable:!0,get:function(){ik(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})),rk({},e)[n]!=7||XS(rk({},t)).join(``)!=r}))?function(e,t){for(var n=rx(e),r=arguments.length,i=1,a=KS.f,o=FS.f;r>i;)for(var s,c=mS(arguments[i++]),l=a?pue(XS(c),a(c)):XS(c),u=l.length,d=0;u>d;)s=l[d++],Cx&&!Ax(o,c,s)||(n[s]=c[s]);return n}:rk;YS({target:`Object`,stat:!0,forced:Object.assign!==ak},{assign:ak});var mue=[`props`,`attrs`,`style`,`dataset`,`on`,`hook`];function ok(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(!mue.includes(t)){if(t.startsWith(`data-`)){var o=t.slice(5);o=Fv(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`&&ok(e)}))}var sk=[],ck={};function hue(e,t,n){return U_(n.isInline(e)?`span`:`div`,null,t)}function lk(e,t){return t===void 0&&(t=!1),U_(`span`,{"data-slate-string":!0},t?e+`
`:e)}function uk(e,t){return e===void 0&&(e=0),t===void 0&&(t=!1),U_(`span`,{"data-slate-zero-width":t?`n`:`z`,"data-slate-length":e},``,t?U_(`br`,null):null)}function dk(e,t,n,r){return PT.set(e,t),FT.set(e,n),V.isElement(e)?function(e,t){var n,r=X.findKey(t,e),i=t.isInline(e),a=H.isVoid(t,e),o=YD(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 ck[e]||hue}(c);n=a?null:u.map((function(n,r){return dk(n,r,e,t)}));var f=d(e,n,t);if(a){s[`data-slate-void`]=!0;var p=i?`span`:`div`,m=jw(jw(U.texts(e),1)[0],1)[0],h=U_(p,{"data-slate-spacer":!0,style:{height:`0`,color:`transparent`,outline:`none`,position:`absolute`}},dk(m,0,e,t));f=U_(p,{style:{position:`relative`}},f,h),PT.set(m,0),FT.set(m,e)}return f.data??(f.data={}),Object.assign(f.data,s),a||i||(f=function(e,t){var n=t;return sk.forEach((function(r){n=r(e,t)})),n}(e,f)),qD((function(){var t=nE(o);t!=null&&(RT.set(r,t),zT.set(e,t),LT.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=K.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=W.parent(o);if(H.isEditor(r))throw Error(`Text node `+JSON.stringify(n)+` parent is Editor`);return i.isVoid(r)?uk(U.string(r).length):a!==``||r.children[r.children.length-1]!==n||i.isInline(r)||H.string(i,s)!==``?a===``?uk():t&&a.slice(-1)===`
`?lk(a,!0):lk(a):uk(0,!0)}(r,i===o.length-1,e,t,n);return a=function(e,t){var n=t;return sk.forEach((function(t){n=t(e,n)})),n}(r,a),U_(`span`,{"data-slate-leaf":!0},a)})),c=function(e){return`w-e-text-`+e}(r.id),l=U_(`span`,{"data-slate-node":`text`,id:c,key:r.id},s);return qD((function(){var t=nE(c);t!=null&&(RT.set(r,t),zT.set(e,t),LT.set(t,e))})),l}(e,n,r)}function gue(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),C_(`div#`+e,{props:{contentEditable:!t}})}(i,o);c.children=(t.children||[]).map((function(e,n){var r=dk(e,n,t,t);return ok(r),r}));var l=jT.get(e);if(l??=!0,l){var u=function(e,t){return J(`<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=x_([D_,I_,V_,A_,P_,T_]))(n,c),jT.set(e,!1),MT.set(e,f)}else{var d=NT.get(e),f=MT.get(e);if(d==null||f==null)return;n=d.elm,f(d,c)}if(n!=null||(n=nE(i))!=null){if((l?s:t.isFocused())&&n.focus({preventScroll:!0}),l){var p=ZT(n);p&&VT.set(t,p)}IT.set(t,n),zT.set(t,n),LT.set(n,t),NT.set(e,c)}}function fk(e){return typeof e==`object`&&!!e&&e.nodeType===1}function pk(e,t){return(!t||e!==`hidden`)&&e!==`visible`&&e!==`clip`}function mk(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return pk(n.overflowY,t)||pk(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 hk(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 gk(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(!fk(e))throw TypeError(`Invalid target`);for(var l=document.scrollingElement||document.documentElement,u=[],d=e;fk(d)&&c(d);){if((d=d.parentElement)===l){u.push(d);break}d!=null&&d===document.body&&mk(d)&&!mk(document.documentElement)||d!=null&&mk(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),I=parseInt(F.borderLeftWidth,10),ee=parseInt(F.borderTopWidth,10),te=parseInt(F.borderRightWidth,10),ne=parseInt(F.borderBottomWidth,10),L=0,re=0,ie=`offsetWidth`in D?D.offsetWidth-D.clientWidth-I-te:0,ae=`offsetHeight`in D?D.offsetHeight-D.clientHeight-ee-ne:0;if(l===D)L=i===`start`?C:i===`end`?C-p:i===`nearest`?hk(h,h+p,p,ee,ne,h+C,h+C+_,_):C-p/2,re=a===`start`?w:a===`center`?w-f/2:a===`end`?w-f:hk(m,m+f,f,I,te,m+w,m+w+v,v),L=Math.max(0,L+h),re=Math.max(0,re+m);else{L=i===`start`?C-j-ee:i===`end`?C-N+ne+ae:i===`nearest`?hk(j,N,k,ee,ne+ae,C,C+_,_):C-(j+k/2)+ae/2,re=a===`start`?w-P-I:a===`center`?w-(P+A/2)+ie/2:a===`end`?w-M+te+ie:hk(P,M,A,I,te+ie,w,w+v,v);var R=D.scrollLeft,oe=D.scrollTop;C+=oe-(L=Math.max(0,Math.min(oe+L,D.scrollHeight-k+ae))),w+=R-(re=Math.max(0,Math.min(R+re,D.scrollWidth-A+ie)))}T.push({el:D,top:L,left:re})}return T}function _k(e){return e===Object(e)&&Object.keys(e).length!==0}function vk(e,t){return $T(t)&&X.hasDOMNode(e,t,{editable:!0})}function yk(e,t){if(e.getConfig().readOnly)return!1;var n=bk(e,t)&&X.toSlateNode(e,t);return H.isVoid(e,n)}function bk(e,t){return $T(t)&&X.hasDOMNode(e,t)}function xk(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=IT.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&&G.equals(l,r)){var u=!0;if(G.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){G.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(_k(t)&&typeof t.behavior==`function`)return t.behavior(n?[]:gk(e,t));if(!n){var r=function(e){return!1===e?{block:`end`,inline:`nearest`}:_k(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)}))})(gk(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&&lE&&s.focus(),e.isUpdatingSelection=!1}))}else t.selection=X.toSlateRange(t,a,{exactMatch:!1,suppressThrow:!1})}}}var Sk=new WeakMap,Ck=new WeakMap,_ue={bold:`mod+b`,compose:[`down`,`left`,`right`,`up`,`backspace`,`enter`],moveBackward:`left`,moveForward:`right`,moveWordBackward:`ctrl+left`,moveWordForward:`ctrl+right`,deleteBackward:`shift?+backspace`,deleteForward:`shift?+delete`,extendBackward:`shift+left`,extendForward:`shift+right`,italic:`mod+i`,splitBlock:`shift?+enter`,undo:`mod+z`,tab:`tab`,selectAll:`mod+a`},vue={moveLineBackward:`opt+up`,moveLineForward:`opt+down`,moveWordBackward:`opt+left`,moveWordForward:`opt+right`,deleteBackward:[`ctrl+backspace`,`ctrl+h`],deleteForward:[`ctrl+delete`,`ctrl+d`],deleteLineBackward:`cmd+shift?+backspace`,deleteLineForward:[`cmd+shift?+delete`,`ctrl+k`],deleteWordBackward:`opt+shift?+backspace`,deleteWordForward:`opt+shift?+delete`,extendLineBackward:`opt+shift+up`,extendLineForward:`opt+shift+down`,redo:`cmd+shift+z`,transposeCharacter:`ctrl+t`},yue={deleteWordBackward:`ctrl+shift?+backspace`,deleteWordForward:`ctrl+shift?+delete`,redo:[`ctrl+y`,`ctrl+shift+z`]},wk=function(e){var t=_ue[e],n=vue[e],r=yue[e],i=t&&Gv(t),a=n&&Gv(n),o=r&&Gv(r);return function(e){return!(!i||!i(e))||!!(cE&&a&&a(e))||!(cE||!o||!o(e))}},Tk={isBold:wk(`bold`),isCompose:wk(`compose`),isMoveBackward:wk(`moveBackward`),isMoveForward:wk(`moveForward`),isDeleteBackward:wk(`deleteBackward`),isDeleteForward:wk(`deleteForward`),isDeleteLineBackward:wk(`deleteLineBackward`),isDeleteLineForward:wk(`deleteLineForward`),isDeleteWordBackward:wk(`deleteWordBackward`),isDeleteWordForward:wk(`deleteWordForward`),isExtendBackward:wk(`extendBackward`),isExtendForward:wk(`extendForward`),isExtendLineBackward:wk(`extendLineBackward`),isExtendLineForward:wk(`extendLineForward`),isItalic:wk(`italic`),isMoveLineBackward:wk(`moveLineBackward`),isMoveLineForward:wk(`moveLineForward`),isMoveWordBackward:wk(`moveWordBackward`),isMoveWordForward:wk(`moveWordForward`),isRedo:wk(`redo`),isSplitBlock:wk(`splitBlock`),isTransposeCharacter:wk(`transposeCharacter`),isUndo:wk(`undo`),isTab:wk(`tab`),isSelectAll:wk(`selectAll`)};function Ek(e){e.preventDefault()}var bue={beforeinput:function(e,t,n){var r=e,i=n.getConfig().readOnly;if(fE&&!i&&vk(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=jw(r.getTargetRanges(),1)[0];if(c){var l=X.toSlateRange(n,c,{exactMatch:!1,suppressThrow:!1});a&&G.equals(a,l)||q.select(n,l)}}if(a&&G.isExpanded(a)&&o.startsWith(`delete`)){var u=o.endsWith(`Backward`)?`backward`:`forward`;H.deleteFragment(n,{direction:u})}else switch(o){case`deleteByComposition`:case`deleteByCut`:case`deleteByDrag`:H.deleteFragment(n);break;case`deleteContent`:case`deleteContentForward`:H.deleteForward(n);break;case`deleteContentBackward`:H.deleteBackward(n);break;case`deleteEntireSoftLine`:H.deleteBackward(n,{unit:`line`}),H.deleteForward(n,{unit:`line`});break;case`deleteHardLineBackward`:H.deleteBackward(n,{unit:`block`});break;case`deleteSoftLineBackward`:H.deleteBackward(n,{unit:`line`});break;case`deleteHardLineForward`:H.deleteForward(n,{unit:`block`});break;case`deleteSoftLineForward`:H.deleteForward(n,{unit:`line`});break;case`deleteWordBackward`:H.deleteBackward(n,{unit:`word`});break;case`deleteWordForward`:H.deleteForward(n,{unit:`word`});break;case`insertLineBreak`:case`insertParagraph`:H.insertBreak(n);break;case`insertFromDrop`:case`insertFromPaste`:case`insertFromYank`:case`insertReplacementText`:case`insertText`:if(o===`insertFromPaste`&&!GT.get(n))break;s instanceof DataTransfer?n.insertData(s):typeof s==`string`&&H.insertText(n,s)}}}},blur:function(e,t,n){var r=e,i=t.isUpdatingSelection,a=t.latestElement;if(!n.getConfig().readOnly&&!i&&vk(n,r.target)){var o=X.findDocumentOrShadowRoot(n);if(a!==o.activeElement){var s=r.relatedTarget;if(!(s===X.toDOMNode(n,n)||QT(s)&&s.hasAttribute(`data-slate-spacer`))){if(s!=null&&$T(s)&&X.hasDOMNode(n,s)){var c=X.toSlateNode(n,s);if(V.isElement(c)&&!n.isVoid(c))return}uE&&o.getSelection()?.removeAllRanges(),HT.delete(n)}}}},focus:function(e,t,n){var r=X.toDOMNode(n,n);t.latestElement=X.findDocumentOrShadowRoot(n).activeElement,lE&&e.target!==r?r.focus():HT.set(n,!0)},click:function(e,t,n){if(!n.getConfig().readOnly&&bk(n,e.target)&&$T(e.target)){var r=X.toSlateNode(n,e.target),i=X.findPath(n,r);if(H.hasPath(n,i)&&U.get(n,i)===r){var a=H.start(n,i),o=H.end(n,i),s=H.void(n,{at:a}),c=H.void(n,{at:o});if(s&&c&&W.equals(s[1],c[1])){var l=H.range(n,a);q.select(n,l)}}}},compositionstart:function(e,t,n){if(vk(n,e.target)){var r=n.selection;if(r&&G.isExpanded(r)&&(H.deleteFragment(n),Promise.resolve().then((function(){xk(t,n,!0)}))),r&&G.isCollapsed(r)){var i=X.toDOMRange(n,r).startContainer,a=i.textContent||``;Sk.set(n,a),Ck.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(vk(n,r.target)){t.isComposing=!1;var i=n.selection;if(i!=null){(dE||lE)&&X.cleanExposedTexNodeInSelectionBlock(n);for(var a=G.isBackward(i)?i.focus:i.anchor,o=jw(H.node(n,[a.path[0]]),1)[0],s=0;s<a.path.length;s++){var c=jw(H.node(n,a.path.slice(0,s+1)),1)[0];if(V.isElement(c)&&((uE||lE)&&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=Sk.get(n)||``,u>0&&H.insertText(n,l.slice(0,u)),t.changeViewState()):H.insertText(n,l)}else H.insertText(n,l);uE||setTimeout((function(){var e=n.selection;if(e!=null){var t=Ck.get(n);t!=null&&X.toDOMRange(n,e).startContainer!==t&&(t.textContent=Sk.get(n)||``)}}))}}}},compositionupdate:function(e,t,n){vk(n,e.target)&&(t.isComposing=!0)},keydown:function(e,t,n){var r=e,i=n.selection;if(!n.getConfig().readOnly&&!t.isComposing&&vk(n,r.target)){if(function(e,t){var n=wT.get(e),r=n&&n.getMenus(),i=ET.get(e),a=i&&i.getMenus(),o=kw(kw({},r),a);for(var s in o){var c=o[s],l=c.hotkey;if(l&&Wv(l,t)&&!c.isDisabled(e)){var u=c.getValue(e);c.exec(e,u)}}}(n,r),Tk.isTab(r))return Ek(r),void n.handleTab();if(Tk.isRedo(r))return Ek(r),void(typeof n.redo==`function`&&n.redo());if(Tk.isUndo(r))return Ek(r),void(typeof n.undo==`function`&&n.undo());if(Tk.isMoveLineBackward(r))return Ek(r),void q.move(n,{unit:`line`,reverse:!0});if(Tk.isMoveLineForward(r))return Ek(r),void q.move(n,{unit:`line`});if(Tk.isExtendLineBackward(r))return Ek(r),void q.move(n,{unit:`line`,edge:`focus`,reverse:!0});if(Tk.isExtendLineForward(r))return Ek(r),void q.move(n,{unit:`line`,edge:`focus`});if(Tk.isMoveBackward(r))return Ek(r),void(i&&G.isCollapsed(i)?q.move(n,{reverse:!0}):q.collapse(n,{edge:`start`}));if(Tk.isMoveForward(r))return Ek(r),void(i&&G.isCollapsed(i)?q.move(n):q.collapse(n,{edge:`end`}));if(Tk.isMoveWordBackward(r))return Ek(r),i&&G.isExpanded(i)&&q.collapse(n,{edge:`focus`}),void q.move(n,{unit:`word`,reverse:!0});if(Tk.isMoveWordForward(r))return Ek(r),i&&G.isExpanded(i)&&q.collapse(n,{edge:`focus`}),void q.move(n,{unit:`word`});if(Tk.isSelectAll(r))return Ek(r),void n.selectAll();if(fE){if((dE||uE)&&i&&(Tk.isDeleteBackward(r)||Tk.isDeleteForward(r))&&G.isCollapsed(i)){var a=U.parent(n,i.anchor.path);if(V.isElement(a)&&H.isVoid(n,a)&&H.isInline(n,a))return r.preventDefault(),void q.delete(n,{unit:`block`})}}else{if(Tk.isBold(r)||Tk.isItalic(r)||Tk.isTransposeCharacter(r))return void Ek(r);if(Tk.isSplitBlock(r))return Ek(r),void H.insertBreak(n);if(Tk.isDeleteBackward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n));if(Tk.isDeleteForward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n));if(Tk.isDeleteLineBackward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n,{unit:`line`}));if(Tk.isDeleteLineForward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n,{unit:`line`}));if(Tk.isDeleteWordBackward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`backward`}):H.deleteBackward(n,{unit:`word`}));if(Tk.isDeleteWordForward(r))return Ek(r),void(i&&G.isExpanded(i)?H.deleteFragment(n,{direction:`forward`}):H.deleteForward(n,{unit:`word`}))}}},keypress:function(e,t,n){if(!fE&&!n.getConfig().readOnly&&vk(n,e.target)){e.preventDefault();var r=e.key;H.insertText(n,r)}},copy:function(e,t,n){var r=e;if(vk(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&&vk(n,r.target)){r.preventDefault();var a=r.clipboardData;if(a!=null&&(n.setFragmentData(a),i)){if(G.isExpanded(i))H.deleteFragment(n);else{var o=U.parent(n,i.anchor.path);H.isVoid(n,o)&&q.delete(n)}}}},paste:function(e,t,n){GT.set(n,!0);var r=e;if(!n.getConfig().readOnly&&vk(n,r.target)){var i=n.getConfig().customPaste;if(i&&!1===i(n,r))return void GT.set(n,!1);if(!fE||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(bk(n,e.target)){var r=X.toSlateNode(n,e.target);H.isVoid(n,r)&&e.preventDefault()}},dragstart:function(e,t,n){var r=e;if(bk(n,r.target)&&!n.getConfig().readOnly){var i=X.toSlateNode(n,r.target),a=X.findPath(n,i);if(H.isVoid(n,i)||H.void(n,{at:a,voids:!0})){var o=H.range(n,a);q.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&&bk(n,r.target)&&(t.isDraggingInternally=!1)},drop:function(e,t,n){var r=e,i=r.dataTransfer;if(!n.getConfig().readOnly&&bk(n,r.target)&&i!=null&&!(fE&&uE&&i.files.length>0)){r.preventDefault();var a=n.selection,o=X.findEventRange(n,r);q.select(n,o),t.isDraggingInternally&&=(a&&q.delete(n,{at:a}),!1),n.insertData(i),n.isFocused()||n.focus()}}},xue=1,Sue=function(){function e(e){var t=this;this.id=xue++,this.$textArea=null,this.$progressBar=J(`<div class="w-e-progress-bar"></div>`),this.$maxLengthInfo=J(`<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=u_((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,HT.set(t,!0)):HT.delete(t),!c)return q.deselect(t);var l=c.anchorNode,u=c.focusNode,d=vk(t,l)||yk(t,l),f=vk(t,u)||yk(t,u);if(d&&f){var p=X.toSlateRange(t,c,{exactMatch:!1,suppressThrow:!1});q.select(t,p)}else q.deselect(t)}})(t,t.editorInstance)}),100);var n=J(e);if(n.length===0)throw Error(`Cannot find textarea DOM by selector '`+e+`'`);this.$box=n;var r=J(`<div class="w-e-text-container"></div>`);r.append(this.$progressBar),r.append(this.$maxLengthInfo),n.append(r);var i=J(`<div class="w-e-scroll"></div>`);r.append(i),this.$scroll=i,this.$textAreaContainer=r,qD((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=ST.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&&(qg(bue,(function(n,i){t.on(i,(function(t){n(t,e,r)}))})),r.getConfig().scroll&&(n.css(`overflow-y`,`auto`),n.on(`scroll`,u_((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;gue(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=J(`<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),qD((function(){xk(e,t)}))},e.prototype.destroy=function(){this.$textAreaContainer.remove()},e}();function Dk(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&&Dk(t)}function Ok(){return J(`<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 kk(){return J(`<div class="w-e-bar-divider"></div>`)}function Ak(e,t,n,r,i){if(i===void 0&&(i=!1),t){if(r){var a=cE?`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`)}}}gw(`match`,(function(e,t,n){return[function(t){var n=nx(this),r=t==null?void 0:Fx(t,e);return r?Ax(r,t,n):new RegExp(t)[e](tC(n))},function(e){var r=Ox(this),i=tC(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return bw(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=bw(r,i))!==null;){var u=tC(s[0]);c[l]=u,u===``&&(r.lastIndex=_w(i,gS(r.lastIndex),o)),l++}return l===0?null:c}]}));var jk=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=J(`<div class="w-e-bar-item"></div>`),this.$button=J(`<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=J(u);Dk(f),d.append(f)}else d.text(o);Ak(d,u,o,c,n),n&&u&&d.append(J(`<span class="title">`+o+`</span>`)),a&&d.css(`width`,a+`px`),d.attr(`data-menu-key`,e),this.$elem.append(d),qD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setActive(),this.setDisabled(),this.$button.on(`click`,(function(t){t.preventDefault(),Lk(e).hidePanelOrModal(),e.disabled||(e.exec(),e.onButtonClick())}))},e.prototype.exec=function(){var e=Lk(this),t=this.menu,n=t.getValue(e);t.exec(e,n)},e.prototype.setActive=function(){var e=Lk(this),t=this.$button,n=`active`;this.menu.isActive(e)?t.addClass(n):t.removeClass(n)},e.prototype.setDisabled=function(){var e=Lk(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}(),Cue=function(e){function t(t,n,r){return r===void 0&&(r=!1),e.call(this,t,n,r)||this}return Ow(t,e),t.prototype.onButtonClick=function(){},t}(jk),Mk=function(){function e(e){this.isShow=!1,this.showTime=0,this.record(e)}return e.prototype.record=function(e){var t=OT.get(e);t??(t=new Set,OT.set(e,t)),t.add(this),kT.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=kT.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=kT.get(this);e&&e.emit(`modalOrPanelHide`)}},e}(),wue=function(e){function t(t){var n=e.call(this,t)||this;return n.type=`dropPanel`,n.$elem=J(`<div class="w-e-drop-panel"></div>`),n}return Ow(t,e),t.prototype.genSelfElem=function(){return null},t}(Mk),Tue=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=Ok();i.$button.append(a)}return i}return Ow(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=Lk(this);if(this.dropPanel==null){var n=new wue(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}(jk),Eue=function(e){function t(t,n){n===void 0&&(n=0);var r=e.call(this,t)||this;r.type=`modal`,r.$elem=J(`<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 Ow(t,e),t.prototype.genSelfElem=function(){var e=this,t=J(`<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=kT.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}(Mk);function Nk(e,t,n){var r=J(`<label class="babel-container"></label>`);r.append(`<span>`+e+`</span>`);var i=J(`<input type="text" id="`+t+`" placeholder="`+(n||``)+`">`);return r.append(i),[r[0],i[0]]}function Pk(e,t){var n=J(`<div class="button-container"></div>`),r=J(`<button type="button" id="`+e+`">`+t+`</button>`);return n.append(r),[n[0],r[0]]}var Due=function(e){function t(t,n,r){r===void 0&&(r=!1);var i=e.call(this,t,n,r)||this;return i.$body=J(`body`),i.modal=null,i.menu=n,i}return Ow(t,e),t.prototype.onButtonClick=function(){this.menu.showModal&&this.handleModal()},t.prototype.getPosition=function(){var e=Lk(this),t=this.menu.getModalPositionNode(e);return V.isElement(t)?QO(e,t,`modal`):ZO(e)},t.prototype.handleModal=function(){var e=Lk(this),t=this.menu;if(this.modal==null){var n=new Eue(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=Lk(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||$O(n,e.$elem),setTimeout((function(){n.blur()}))}},t}(jk),Oue=function(e){function t(t,n){var r=e.call(this,t)||this;return r.type=`selectList`,r.$elem=J(`<div class="w-e-select-list"></div>`),n&&r.$elem.css(`width`,n+`px`),r.$elem.on(`click`,(function(e){e.stopPropagation()})),r}return Ow(t,e),t.prototype.renderList=function(e){var t=this.$elem;t.empty();var n=J(`<ul></ul>`);e.forEach((function(e){var t=e.value,r=e.text,i=e.selected,a=e.styleForRenderMenuList,o=J(`<li data-value="`+t+`"></li>`);if(a&&o.css(a),i){var s=J(`<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(J(`<span data-value="`+t+`">`+r+`</span>`)),o.attr(`title`,r),n.append(o)})),t.append(n)},t.prototype.genSelfElem=function(){return null},t}(Mk),kue=function(){function e(e,t,n){var r=this;n===void 0&&(n=!1),this.$elem=J(`<div class="w-e-bar-item"></div>`),this.$button=J(`<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),Ak(d,c,a,u,n),this.$elem.append(d),this.menu=t,qD((function(){return r.init()}))}return e.prototype.init=function(){var e=this;this.setSelectedValue(),this.$button.on(`click`,(function(t){t.preventDefault(),Lk(e).hidePanelOrModal(),e.trigger()}))},e.prototype.trigger=function(){var e=this,t=Lk(this);if(!t.isDisabled()&&!this.disabled){var n=this.menu;if(this.selectList==null){this.selectList=new Oue(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=J(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=Lk(this),n=this.menu;n.exec&&n.exec(t,e)},e.prototype.setSelectedValue=function(){var e=Lk(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=Ok();i.empty(),i.text(r),i.append(a)},e.prototype.setDisabled=function(){var e=Lk(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}(),Fk=function(){function e(e){this.$elem=J(`<div class="w-e-bar-item w-e-bar-item-group"></div>`),this.$container=J(`<div class="w-e-bar-item-menus-container"></div>`),this.$button=J(`<button type="button"></button>`);var t=e.key,n=e.iconSvg,r=e.title,i=this.$elem,a=this.$button;if(n){var o=J(n);Dk(o),a.append(o)}else a.text(r);a.attr(`data-menu-key`,t);var s=Ok();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){J(e).hasClass(`disabled`)&&o++})),r.disconnect(),o===a?n.addClass(`disabled`):n.removeClass(`disabled`),e.observe(r)}}));return r},e}(),Ik=new WeakMap;function Lk(e){var t=DT.get(e);if(t==null)throw Error(`Can not get editor instance`);return t}function Rk(e,t,n){n===void 0&&(n=!1);var r=Ik.get(t);if(r)return r;var i=t.tag;if(i===`button`){var a=t.showDropPanel,o=t.showModal;r=a?new Tue(e,t,n):o?new Due(e,t,n):new Cue(e,t,n)}if(i===`select`&&(r=new kue(e,t,n)),r==null)throw Error(`Invalid tag in menu `+JSON.stringify(t));return Ik.set(t,r),r}function Aue(e,t){var n=e.selection;return n!=null&&!G.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}))&&!!K.isText(t)}var jue=function(){function e(){var e=this;this.$elem=J(`<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=ey((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&&V.isElement(i)&&t&&e.isSamePath(i,e.prevSelectedNode)||(e.hideAndClean(),i!=null&&(e.registerItems(o),e.setPosition(i),e.show()),e.prevSelectedNode=i)}),200),qD((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;qD((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=kk();n.append(r)}}))},e.prototype.registerSingleItem=function(e){var t=this.getEditorInstance(),n=this.menus,r=n[e];if(r==null){var i=mE[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=Rk(e,r);this.hoverbarItems.push(a),DT.set(a,t),this.$elem.append(a.$elem)},e.prototype.setPosition=function(e){var t=this.getEditorInstance(),n=this.$elem;if(n.attr(`style`,``),V.isElement(e)){var r=QO(t,e,`bar`);n.css(r),$O(t,n);return}if(K.isText(e))return r=ZO(t),n.css(r),void $O(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=jw(H.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=TT.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=Aue),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 W.equals(n,r)},e.prototype.destroy=function(){this.changeHoverbarState.cancel(),this.$elem.remove(),this.menus={},this.hoverbarItems=[],this.prevSelectedNode=null},e}();function zk(e,t,n,r){if(PT.set(e,t),FT.set(e,n),V.isElement(e)){var i=e.children;if((i===void 0?[]:i).forEach((function(t,n){return zk(t,n,e,r)})),H.isVoid(r,e)){var a=jw(jw(U.texts(e),1)[0],1)[0];PT.set(a,0),FT.set(a,e)}}}function Mue(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];eC.withoutSaving(t,(()=>{H.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];eC.withoutSaving(t,(()=>{H.withoutNormalizing(t,(()=>{for(var e of r.map(Am.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=eC.isSaving(t),u=eC.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||!W.equals(e.path,t.path))||!(!t||e.type!==`remove_text`||t.type!==`remove_text`||e.offset+e.text.length!==t.offset||!W.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<U.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)<U.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===YT.TEXT_NODE?e+(t.textContent||``):n===YT.ELEMENT_NODE?IO.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=qO(t);if(r.on(e,n),e===`destroyed`&&YO(t,n),e!==`destroyed`){var i=function(){return r.off(e,n)};r.on(`destroyed`,i),YO(t,i)}},t.once=function(e,n){qO(t).once(e,n)},t.off=function(e,n){qO(t).off(e,n)},t.emit=function(e){var n=[...arguments].slice(1),r=qO(t);r.emit.apply(r,Mw([e],jw(n))),e===`destroyed`&&(aue(t).forEach((function(e){return r.off(`destroyed`,e)})),oue(t))},t}(function(e){var t=e;return t.select=function(e){q.select(t,e)},t.deselect=function(){var n=t.selection,r=X.findDocumentOrShadowRoot(t).getSelection();r&&r.rangeCount>0&&r.removeAllRanges(),n&&q.deselect(e)},t.move=function(t,n){n===void 0&&(n=!1),t&&(t<0||q.move(e,{distance:t,unit:`character`,reverse:n}))},t.moveReverse=function(e){t.move(e,!0)},t.restoreSelection=function(){var e=UT.get(t);e!=null&&(t.focus(),q.select(t,e))},t.getSelectionPosition=function(){return ZO(t)},t.getNodePosition=function(e){return QO(t,e)},t.isSelectedAll=function(){var e=t.selection;if(e==null)return!1;var n=jw(G.edges(e),2),r=n[0],i=n[1],a=jw(H.edges(t,[]),2),o=a[0],s=a[1];return!(!Nm.equals(r,o)||!Nm.equals(i,s))},t.selectAll=function(){var e=H.start(t,[]),n=H.end(t,[]);q.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=Aw(H.levels(t,{at:e.path})),p=f.next();!p.done;p=f.next()){var m=jw(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=Aw(H.levels(t,{at:W.parent(e.path)})),y=v.next();!y.done;y=v.next()){var b=jw(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=Aw(H.levels(t,{at:W.common(W.parent(e.path),W.parent(e.newPath))})),S=x.next();!S.done;S=x.next()){var C=jw(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=Aw(d),T=w.next();!T.done;T=w.next()){var E=jw(T.value,2);g=E[0],_=E[1],h=jw(H.node(t,g),1)[0],BT.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&&G.isCollapsed(e.selection)){var r=H.above(e,{match:function(t){return H.isBlock(e,t)},at:e.selection});if(r){var i=jw(r,2)[1],o=function(e,t){var n=H.range(e,G.end(t)),r=Array.from(H.positions(e,{at:t})),i=0,a=r.length,o=Math.floor(a/2);if(ZD(e,H.range(e,r[i]),n))return H.range(e,r[i],n);if(r.length<2)return H.range(e,r[r.length-1],n);for(;o!==r.length&&o!==i;)ZD(e,H.range(e,r[o]),n)?a=o:i=o,o=Math.floor((i+a)/2);return H.range(e,r[a],n)}(t,H.range(e,i,e.selection.anchor));G.isCollapsed(o)||q.delete(e,{at:o})}}},t.onChange=function(){var e=t.selection;e!=null&&UT.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 JD(e,t)})).join(``)},t.getText=function(){var e=t.children;return(e===void 0?[]:e).map((function(e){return U.string(e)})).join(`
`)},t.getSelectionText=function(){var n=t.selection;return n==null?``:H.string(e,n)},t.getElemsByType=function(e,n){var r,i;n===void 0&&(n=!1);var a=[],o=H.nodes(t,{at:[],universal:!0});try{for(var s=Aw(o),c=s.next();!c.done;c=s.next()){var l=jw(c.value,1)[0];if(V.isElement(l)&&(n?l.type.indexOf(e)>=0:l.type===e)){var u=YD(X.findKey(t,l).id);a.push(kw(kw({},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(V.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||K.isText(o)&&o.text===``)return!0}return!1},t.clear=function(){q.delete(t,{at:{anchor:H.start(t,[]),focus:H.end(t,[])}}),t.children.length===0&&q.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===YT.TEXT_NODE||t===YT.ELEMENT_NODE&&!IO.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!==YT.TEXT_NODE){if(r!==`BR`){var o=e,c=!1;if(QD.includes(r.toLowerCase()))c=!0;else for(var l in tO)if(o.matches(l)){c=!0;break}if(c){var u=AO(J(o),t);Array.isArray(u)?(u.forEach((function(e){return LO(t,e)})),s++):(LO(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)&&q.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=MO(t,e);if(q.insertFragment(t,a),r||(t.deselect(),t.blur()),n&&(t.deselect(),t.disable()),t.isFocused())try{t.select(JSON.parse(i))}catch{t.select(H.start(t,[]))}},t}(function(e){var t=e;return t.getAllMenuKeys=function(){var e=[];for(var t in mE)e.push(t);return e},t.getConfig=function(){var e=AT.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=Kle(Fie());return t.id=`wangEditor-`+Ole++,t.isDestroyed=!1,t.isFullScreen=!1,t.focus=function(e){if(X.toDOMNode(t,t).focus({preventScroll:!0}),HT.set(t,!0),e){var n=H.end(t,[]);q.select(t,n)}else{var r=UT.get(t);r?q.select(t,r):q.select(t,H.start(t,[]))}},t.isFocused=function(){return!!HT.get(t)},t.blur=function(){X.toDOMNode(t,t).blur(),q.deselect(t),HT.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(),xT.delete(t),ST.delete(e);var n=X.getToolbar(t);n&&(n.destroy(),wT.delete(t),CT.delete(n));var r=X.getHoverbar(t);r&&(r.destroy(),ET.delete(t),TT.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=J(`#`+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(){OT.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 jO(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=ty(pE),n={},r=e.MENU_CONF,i=r===void 0?{}:r;return qg(t,(function(e,t){n[t]=kw(kw({},e),i[t]||{})})),delete e.MENU_CONF,kw({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);AT.set(l,u);var d=u.hoverbarKeys,f=d===void 0?{}:d;if(c.forEach((function(e){l=e(l)})),o!=null&&(l.children=MO(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 Sue(n);xT.set(l,p),ST.set(p,l),p.changeViewState(),qD((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 jue,TT.set(m,l),ET.set(l,m)),l.on(`change`,(function(){l.hidePanelOrModal()})),l.on(`scroll`,(function(){l.hidePanelOrModal()}))}else l.children.forEach((function(e,t){return zk(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)})),qD((function(){return l.emit(`created`)})),l}var Nue=QC(`splice`),Pue=Y.TypeError,Fue=Math.max,Iue=Math.min;YS({target:`Array`,proto:!0,forced:!Nue},{splice:function(e,t){var n,r,i,a,o,s,c=rx(this),l=_S(c),u=zS(e,l),d=arguments.length;if(d===0?n=r=0:d===1?(n=0,r=l-u):(n=d-2,r=Iue(Fue(hS(t),0),l-u)),l+n-r>9007199254740991)throw Pue(`Maximum allowed length exceeded`);for(i=TS(c,r),a=0;a<r;a++)(o=u+a)in c&&SC(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 Lue=function(){function e(e,t){var n=this;this.$toolbar=J(`<div class="w-e-bar w-e-bar-show w-e-toolbar"></div>`),this.menus={},this.toolbarItems=[],this.config={},this.changeToolbarState=ey((function(){n.toolbarItems.forEach((function(e){e.changeMenuState()}))}),200),this.config=t;var r=J(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),qD((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=ty(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=kk();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 Fk(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 Fk,i=this.menus,a=i[e];if(a==null){var o=mE[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=Rk(e,a,r);this.toolbarItems.push(s),DT.set(s,n),r?t.appendBarItem(s):t.$toolbar.append(s.$elem)},e.prototype.getEditorInstance=function(){var e=CT.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}(),Rue=rS.EXISTS,zue=Rx.f,Bk=Function.prototype,Bue=tx(Bk.toString),Vk=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Vue=tx(Vk.exec);function Hk(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=jw(e.split(`#`),2),r=n[0],i=n[1],a=[];qg(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 Xy({onBeforeUpload:b,restrictions:{maxFileSize:o,maxNumberOfFiles:c},meta:u}).use(sse,{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 Uk(e){return Uk=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},Uk(e)}function Hue(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wk(e){for(var t=1;t<arguments.length;t++){var n=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){Hue(e,t,n[t])}))}return e}function Gk(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function Kk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function qk(e,t,n){return t&&Kk(e.prototype,t),n&&Kk(e,n),e}function Jk(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function Yk(e,t){if(t&&(Uk(t)===`object`||typeof t==`function`))return t;if(t!==void 0)throw TypeError(`Derived constructors may only return object or undefined`);return Jk(e)}function Xk(e){return Xk=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xk(e)}function Zk(e,t){return Zk=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},Zk(e,t)}function Qk(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&&Zk(e,t)}Cx&&!Rue&&zue(Bk,`name`,{configurable:!0,get:function(){try{return Vue(Vk,Bue(this))[1]}catch{return``}}});var Uue={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)}},$k=new(function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Gk(this,e),this.init(t,n)}return qk(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||Uue,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,Wk({},{prefix:`${this.prefix}:${t}:`},this.options))}}]),e}()),eA=function(){function e(){Gk(this,e),this.observers={}}return qk(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 tA(){var e,t,n=new Promise((function(n,r){e=n,t=r}));return n.resolve=e,n.reject=t,n}function nA(e){return e==null?``:``+e}function Wue(e,t,n){e.forEach((function(e){t[e]&&(n[e]=t[e])}))}function rA(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 iA(e,t,n){var r=rA(e,t,Object);r.obj[r.k]=n}function aA(e,t){var n=rA(e,t),r=n.obj,i=n.k;if(r)return r[i]}function oA(e,t,n){var r=aA(e,n);return r===void 0?aA(t,n):r}function sA(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]):sA(e[r],t[r],n):e[r]=t[r]);return e}function cA(e){return e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`)}var Gue={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`};function Kue(e){return typeof e==`string`?e.replace(/[&<>"'\/]/g,(function(e){return Gue[e]})):e}var lA=typeof window<`u`&&window.navigator&&window.navigator.userAgent&&window.navigator.userAgent.indexOf(`MSIE`)>-1;function uA(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?uA(c,l,n):void 0}i=i[r[a]]}return i}}var que=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};return Gk(this,t),n=Yk(this,Xk(t).call(this)),lA&&eA.call(Jk(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 Qk(t,eA),qk(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=aA(this.data,o);return s||!a||typeof n!=`string`?s:uA(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),iA(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=aA(this.data,o)||{};r?sA(s,n,i):s=Wk({},s,n),iA(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`?Wk({},{},this.getResource(e,t)):this.getResource(e,t)}},{key:`getDataByLanguage`,value:function(e){return this.data[e]}},{key:`toJSON`,value:function(){return this.data}}]),t}(),dA={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}},fA={},pA=function(e){function t(e){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return Gk(this,t),n=Yk(this,Xk(t).call(this)),lA&&eA.call(Jk(n)),Wue([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,Jk(n)),n.options=r,n.options.keySeparator===void 0&&(n.options.keySeparator=`.`),n.logger=$k.create(`translator`),n}return Qk(t,eA),qk(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(Uk(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,Wk({},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,Wk({},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,Wk({},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 I=0;I<F.length;I++)P.push(F[I]);else this.options.saveMissingTo===`all`?P=this.languageUtils.toResolveHierarchy(n.lng||this.language):P.push(n.lng||this.language);var ee=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){ee([e],s+t,n[`defaultValue${t}`]||A)}))})):ee(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(Wk({},n,{interpolation:Wk({},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=Wk({},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=dA.handle(f,e,t,this.options&&this.options.postProcessPassResolved?Wk({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,!fA[`${p[0]}-${e}`]&&o.utils&&o.utils.hasLoadedNamespace&&!o.utils.hasLoadedNamespace(a)&&(fA[`${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 mA(e){return e.charAt(0).toUpperCase()+e.slice(1)}var Jue=function(){function e(t){Gk(this,e),this.options=t,this.whitelist=this.options.supportedLngs||!1,this.supportedLngs=this.options.supportedLngs||!1,this.logger=$k.create(`languageUtils`)}return qk(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]=mA(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]=mA(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=mA(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}(),Yue=[{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}],Xue={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 Zue(){var e={};return Yue.forEach((function(t){t.lngs.forEach((function(n){e[n]={numbers:t.nr,plurals:Xue[t.fc]}}))})),e}var Que=function(){function e(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};Gk(this,e),this.languageUtils=t,this.options=n,this.logger=$k.create(`pluralResolver`),this.rules=Zue()}return qk(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}(),$ue=function(){function e(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Gk(this,e),this.logger=$k.create(`interpolator`),this.options=t,this.format=t.interpolation&&t.interpolation.format||function(e){return e},this.init(t)}return qk(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?Kue:t.escape,this.escapeValue=t.escapeValue===void 0||t.escapeValue,this.useRawValueToEscape=t.useRawValueToEscape!==void 0&&t.useRawValueToEscape,this.prefix=t.prefix?cA(t.prefix):t.prefixEscaped||`{{`,this.suffix=t.suffix?cA(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?cA(t.nestingPrefix):t.nestingPrefixEscaped||cA(`$t(`),this.nestingSuffix=t.nestingSuffix?cA(t.nestingSuffix):t.nestingSuffixEscaped||cA(`)`),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=oA(t,c,e);return s.alwaysFormat?s.format(i,void 0,n,Wk({},r,t,{interpolationkey:e})):i}var a=e.split(s.formatSeparator),o=a.shift().trim(),l=a.join(s.formatSeparator).trim();return s.format(oA(t,c,o),l,n,Wk({},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=nA(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=Wk({},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=Wk({},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=nA(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,Wk({},a,{interpolationkey:n[1].trim()}))}),r.trim())),e=e.replace(n[0],r),this.regexp.lastIndex=0}return e}}]),e}(),ede=function(e){function t(e,n,r){var i,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return Gk(this,t),i=Yk(this,Xk(t).call(this)),lA&&eA.call(Jk(i)),i.backend=e,i.store=n,i.services=r,i.languageUtils=r.languageUtils,i.options=a,i.logger=$k.create(`backendConnector`),i.state={},i.queue=[],i.backend&&i.backend.init&&i.backend.init(r,a.backend,a),i}return Qk(t,eA),qk(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=rA(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,Wk({},a,{isUpdate:i})),e&&e[0]&&this.store.addResource(e[0],t,n,r))}}]),t}();function tde(){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(Uk(e[1])===`object`&&(t=e[1]),typeof e[1]==`string`&&(t.defaultValue=e[1]),typeof e[2]==`string`&&(t.tDescription=e[2]),Uk(e[2])===`object`||Uk(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 hA(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 gA(){}var _A=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(Gk(this,t),e=Yk(this,Xk(t).call(this)),lA&&eA.call(Jk(e)),e.options=hA(n),e.services={},e.logger=$k,e.modules={external:[]},r&&!e.isInitialized&&!n.isClone){if(!e.options.initImmediate)return e.init(n,r),Yk(e,Jk(e));setTimeout((function(){e.init(n,r)}),0)}return e}return Qk(t,eA),qk(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=Wk({},tde(),this.options,hA(t)),this.format=this.options.interpolation.format,n||=gA,!this.options.isClone){this.modules.logger?$k.init(r(this.modules.logger),this.options):$k.init(null,this.options);var i=new Jue(this.options);this.store=new que(this.options.resources,this.options);var a=this.services;a.logger=$k,a.resourceStore=this.store,a.languageUtils=i,a.pluralResolver=new Que(i,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),a.interpolator=new $ue(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new ede(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 pA(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=tA(),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]:gA,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=tA();return e||=this.languages,t||=this.options.ns,n||=gA,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`&&dA.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=tA();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(Uk(i)!==`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([t,i].concat(o))}else a=Wk({},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=tA();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=tA();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]:gA,i=Wk({},this.options,n,{isClone:!0}),a=new t(i);return[`store`,`services`,`language`].forEach((function(t){a[t]=e[t]})),a.services=Wk({},this.services),a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a.translator=new pA(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 vA(e,t){_A.addResourceBundle(e,`translation`,t,!0,!0)}_A.init({lng:`zh-CN`,resources:{}});var Z=_A.t.bind(_A);vA(`en`,{editor:{more:`More`,justify:`Justify`,indent:`Indent`,image:`Image`,video:`Video`}}),vA(`zh-CN`,{editor:{more:`更多`,justify:`对齐`,indent:`缩进`,image:`图片`,video:`视频`}});var yA=_u?{}.toString:function(){return`[object `+xu(this)+`]`};_u||Ql(Object.prototype,`toString`,yA,{unsafe:!0});var bA=Array.isArray||function(e){return Yc(e)==`Array`},xA=function(){},SA=[],CA=nl(`Reflect`,`construct`),wA=/^\s*(?:class|function)\b/,TA=Jc(wA.exec),EA=!wA.exec(xA),DA=function(e){if(!el(e))return!1;try{return CA(xA,SA,e),!0}catch{return!1}},OA=!CA||Rc((function(){var e;return DA(DA.call)||!DA(Object)||!DA((function(){e=!0}))||e}))?function(e){if(!el(e))return!1;switch(xu(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return EA||!!TA(wA,zl(e))}:DA,kA=Tl(`species`),AA=Lc.Array,jA=function(e,t){return new(function(e){var t;return bA(e)&&(t=e.constructor,(OA(t)&&(t===AA||bA(t.prototype))||tl(t)&&(t=t[kA])===null)&&(t=void 0)),t===void 0?AA:t}(e))(t===0?0:t)},MA=Jc([].push),NA=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=yl(c),h=Zc(m),g=_d(l,u),_=ru(h),v=0,y=d||jA,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:MA(b,f)}else switch(e){case 4:return!1;case 7:MA(b,f)}}return a?-1:r||i?i:b}},PA={forEach:NA(0),map:NA(1),filter:NA(2),some:NA(3),every:NA(4),find:NA(5),findIndex:NA(6),filterReject:NA(7)}.forEach,FA=function(e,t){var n=[][e];return!!n&&Rc((function(){n.call(null,t||function(){throw 1},1)}))}(`forEach`)?[].forEach:function(e){return PA(this,e,arguments.length>1?arguments[1]:void 0)},IA=function(e){if(e&&e.forEach!==FA)try{Fl(e,`forEach`,FA)}catch{e.forEach=FA}};for(var LA in Jd)Jd[LA]&&IA(Lc[LA]&&Lc[LA].prototype);IA(Zd),vA(`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`}}),vA(`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 RA={type:`paragraph`,renderElem:function(e,t,n){return U_(`p`,null,t)}},zA=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function BA(e){var t={exports:{}};return e(t,t.exports),t.exports}var VA,HA,UA=function(e){return e&&e.Math==Math&&e},WA=UA(typeof globalThis==`object`&&globalThis)||UA(typeof window==`object`&&window)||UA(typeof self==`object`&&self)||UA(typeof zA==`object`&&zA)||function(){return this}()||Function(`return this`)(),GA=function(e){try{return!!e()}catch{return!0}},KA=!GA((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),qA=Function.prototype.call,JA=qA.bind?qA.bind(qA):function(){return qA.apply(qA,arguments)},YA={}.propertyIsEnumerable,XA=Object.getOwnPropertyDescriptor,ZA={f:XA&&!YA.call({1:2},1)?function(e){var t=XA(this,e);return!!t&&t.enumerable}:YA},QA=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},$A=Function.prototype,ej=$A.bind,tj=$A.call,nj=ej&&ej.bind(tj),rj=ej?function(e){return e&&nj(tj,e)}:function(e){return e&&function(){return tj.apply(e,arguments)}},ij=rj({}.toString),aj=rj(``.slice),oj=function(e){return aj(ij(e),8,-1)},sj=WA.Object,cj=rj(``.split),lj=GA((function(){return!sj(`z`).propertyIsEnumerable(0)}))?function(e){return oj(e)==`String`?cj(e,``):sj(e)}:sj,uj=WA.TypeError,dj=function(e){if(e==null)throw uj(`Can't call method on `+e);return e},fj=function(e){return lj(dj(e))},pj=function(e){return typeof e==`function`},mj=function(e){return typeof e==`object`?e!==null:pj(e)},hj=function(e){return pj(e)?e:void 0},gj=function(e,t){return arguments.length<2?hj(WA[e]):WA[e]&&WA[e][t]},_j=rj({}.isPrototypeOf),vj=gj(`navigator`,`userAgent`)||``,yj=WA.process,bj=WA.Deno,xj=yj&&yj.versions||bj&&bj.version,Sj=xj&&xj.v8;Sj&&(HA=(VA=Sj.split(`.`))[0]>0&&VA[0]<4?1:+(VA[0]+VA[1])),!HA&&vj&&(!(VA=vj.match(/Edge\/(\d+)/))||VA[1]>=74)&&(VA=vj.match(/Chrome\/(\d+)/))&&(HA=+VA[1]);var Cj=HA,wj=!!Object.getOwnPropertySymbols&&!GA((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&Cj&&Cj<41})),Tj=wj&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ej=WA.Object,Dj=Tj?function(e){return typeof e==`symbol`}:function(e){var t=gj(`Symbol`);return pj(t)&&_j(t.prototype,Ej(e))},Oj=WA.String,kj=function(e){try{return Oj(e)}catch{return`Object`}},Aj=WA.TypeError,jj=function(e){if(pj(e))return e;throw Aj(kj(e)+` is not a function`)},Mj=function(e,t){var n=e[t];return n==null?void 0:jj(n)},Nj=WA.TypeError,Pj=Object.defineProperty,Fj=function(e,t){try{Pj(WA,e,{value:t,configurable:!0,writable:!0})}catch{WA[e]=t}return t},Ij=WA[`__core-js_shared__`]||Fj(`__core-js_shared__`,{}),Lj=BA((function(e){(e.exports=function(e,t){return Ij[e]||(Ij[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Rj=WA.Object,zj=function(e){return Rj(dj(e))},Bj=rj({}.hasOwnProperty),Vj=Object.hasOwn||function(e,t){return Bj(zj(e),t)},Hj=0,Uj=Math.random(),Wj=rj(1 .toString),Gj=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Wj(++Hj+Uj,36)},Kj=Lj(`wks`),qj=WA.Symbol,Jj=qj&&qj.for,Yj=Tj?qj:qj&&qj.withoutSetter||Gj,Xj=function(e){if(!Vj(Kj,e)||!wj&&typeof Kj[e]!=`string`){var t=`Symbol.`+e;Kj[e]=wj&&Vj(qj,e)?qj[e]:Tj&&Jj?Jj(t):Yj(t)}return Kj[e]},Zj=WA.TypeError,Qj=Xj(`toPrimitive`),$j=function(e){var t=function(e,t){if(!mj(e)||Dj(e))return e;var n,r=Mj(e,Qj);if(r){if(t===void 0&&(t=`default`),n=JA(r,e,t),!mj(n)||Dj(n))return n;throw Zj(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&pj(n=e.toString)&&!mj(r=JA(n,e))||pj(n=e.valueOf)&&!mj(r=JA(n,e))||t!==`string`&&pj(n=e.toString)&&!mj(r=JA(n,e)))return r;throw Nj(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Dj(t)?t:t+``},eM=WA.document,tM=mj(eM)&&mj(eM.createElement),nM=function(e){return tM?eM.createElement(e):{}},rM=!KA&&!GA((function(){return Object.defineProperty(nM(`div`),"a",{get:function(){return 7}}).a!=7})),iM=Object.getOwnPropertyDescriptor,aM={f:KA?iM:function(e,t){if(e=fj(e),t=$j(t),rM)try{return iM(e,t)}catch{}if(Vj(e,t))return QA(!JA(ZA.f,e,t),e[t])}},oM=WA.String,sM=WA.TypeError,cM=function(e){if(mj(e))return e;throw sM(oM(e)+` is not an object`)},lM=WA.TypeError,uM=Object.defineProperty,dM={f:KA?uM:function(e,t,n){if(cM(e),t=$j(t),cM(n),rM)try{return uM(e,t,n)}catch{}if(`get`in n||`set`in n)throw lM(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},fM=KA?function(e,t,n){return dM.f(e,t,QA(1,n))}:function(e,t,n){return e[t]=n,e},pM=rj(Function.toString);pj(Ij.inspectSource)||(Ij.inspectSource=function(e){return pM(e)});var mM,hM,gM,_M=Ij.inspectSource,vM=WA.WeakMap,yM=pj(vM)&&/native code/.test(_M(vM)),bM=Lj(`keys`),xM=function(e){return bM[e]||(bM[e]=Gj(e))},SM={},CM=WA.TypeError,wM=WA.WeakMap;if(yM||Ij.state){var TM=Ij.state||=new wM,EM=rj(TM.get),DM=rj(TM.has),OM=rj(TM.set);mM=function(e,t){if(DM(TM,e))throw new CM(`Object already initialized`);return t.facade=e,OM(TM,e,t),t},hM=function(e){return EM(TM,e)||{}},gM=function(e){return DM(TM,e)}}else{var kM=xM(`state`);SM[kM]=!0,mM=function(e,t){if(Vj(e,kM))throw new CM(`Object already initialized`);return t.facade=e,fM(e,kM,t),t},hM=function(e){return Vj(e,kM)?e[kM]:{}},gM=function(e){return Vj(e,kM)}}var AM={set:mM,get:hM,has:gM,enforce:function(e){return gM(e)?hM(e):mM(e,{})},getterFor:function(e){return function(t){var n;if(!mj(t)||(n=hM(t)).type!==e)throw CM(`Incompatible receiver, `+e+` required`);return n}}},jM=Function.prototype,MM=KA&&Object.getOwnPropertyDescriptor,NM=Vj(jM,`name`),PM={EXISTS:NM,PROPER:NM&&function(){}.name===`something`,CONFIGURABLE:NM&&(!KA||KA&&MM(jM,`name`).configurable)},FM=BA((function(e){var t=PM.CONFIGURABLE,n=AM.get,r=AM.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;pj(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Vj(a,`name`)||t&&a.name!==d)&&fM(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===WA?l?e[n]=a:Fj(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:fM(e,n,a))})(Function.prototype,`toString`,(function(){return pj(this)&&n(this).source||_M(this)}))})),IM=Math.ceil,LM=Math.floor,RM=function(e){var t=+e;return t!=t||t===0?0:(t>0?LM:IM)(t)},zM=Math.max,BM=Math.min,VM=function(e,t){var n=RM(e);return n<0?zM(n+t,0):BM(n,t)},HM=Math.min,UM=function(e){return e>0?HM(RM(e),9007199254740991):0},WM=function(e){return UM(e.length)},GM=function(e){return function(t,n,r){var i,a=fj(t),o=WM(a),s=VM(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}},KM={includes:GM(!0),indexOf:GM(!1)},qM=KM.indexOf,JM=rj([].push),YM=function(e,t){var n,r=fj(e),i=0,a=[];for(n in r)!Vj(SM,n)&&Vj(r,n)&&JM(a,n);for(;t.length>i;)Vj(r,n=t[i++])&&(~qM(a,n)||JM(a,n));return a},XM=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],ZM=XM.concat(`length`,`prototype`),QM={f:Object.getOwnPropertyNames||function(e){return YM(e,ZM)}},$M={f:Object.getOwnPropertySymbols},eN=rj([].concat),tN=gj(`Reflect`,`ownKeys`)||function(e){var t=QM.f(cM(e)),n=$M.f;return n?eN(t,n(e)):t},nN=function(e,t){for(var n=tN(t),r=dM.f,i=aM.f,a=0;a<n.length;a++){var o=n[a];Vj(e,o)||r(e,o,i(t,o))}},rN=/#|\.prototype\./,iN=function(e,t){var n=oN[aN(e)];return n==cN||n!=sN&&(pj(t)?GA(t):!!t)},aN=iN.normalize=function(e){return String(e).replace(rN,`.`).toLowerCase()},oN=iN.data={},sN=iN.NATIVE=`N`,cN=iN.POLYFILL=`P`,lN=iN,uN=aM.f,dN=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?WA:l?WA[s]||Fj(s,{}):(WA[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=uN(n,r))&&o.value:n[r],!lN(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;nN(a,i)}(e.sham||i&&i.sham)&&fM(a,`sham`,!0),FM(n,r,a,e)}},fN=rj(rj.bind),pN=Array.isArray||function(e){return oj(e)==`Array`},mN={};mN[Xj(`toStringTag`)]=`z`;var hN=String(mN)===`[object z]`,gN=Xj(`toStringTag`),_N=WA.Object,vN=oj(function(){return arguments}())==`Arguments`,yN=hN?oj: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=_N(e),gN))==`string`?n:vN?oj(t):(r=oj(t))==`Object`&&pj(t.callee)?`Arguments`:r},bN=function(){},xN=[],SN=gj(`Reflect`,`construct`),CN=/^\s*(?:class|function)\b/,wN=rj(CN.exec),TN=!CN.exec(bN),EN=function(e){if(!pj(e))return!1;try{return SN(bN,xN,e),!0}catch{return!1}},DN=!SN||GA((function(){var e;return EN(EN.call)||!EN(Object)||!EN((function(){e=!0}))||e}))?function(e){if(!pj(e))return!1;switch(yN(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return TN||!!wN(CN,_M(e))}:EN,ON=Xj(`species`),kN=WA.Array,AN=function(e,t){return new(function(e){var t;return pN(e)&&(t=e.constructor,(DN(t)&&(t===kN||pN(t.prototype))||mj(t)&&(t=t[ON])===null)&&(t=void 0)),t===void 0?kN:t}(e))(t===0?0:t)},jN=rj([].push),MN=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=zj(c),h=lj(m),g=function(e,t){return jj(e),t===void 0?e:fN?fN(e,t):function(){return e.apply(t,arguments)}}(l,u),_=WM(h),v=0,y=d||AN,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:jN(b,f)}else switch(e){case 4:return!1;case 7:jN(b,f)}}return a?-1:r||i?i:b}},NN={forEach:MN(0),map:MN(1),filter:MN(2),some:MN(3),every:MN(4),find:MN(5),findIndex:MN(6),filterReject:MN(7)},PN=Xj(`species`),FN=function(e){return Cj>=51||!GA((function(){var t=[];return(t.constructor={})[PN]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},IN=NN.filter;dN({target:`Array`,proto:!0,forced:!FN(`filter`)},{filter:function(e){return IN(this,e,arguments.length>1?arguments[1]:void 0)}});var LN=hN?{}.toString:function(){return`[object `+yN(this)+`]`};hN||FM(Object.prototype,`toString`,LN,{unsafe:!0});var RN,zN=WA.String,BN=function(e){if(yN(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return zN(e)},VN=function(){var e=cM(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},HN=WA.RegExp,UN=GA((function(){var e=HN(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),WN=UN||GA((function(){return!HN(`a`,`y`).sticky})),GN={BROKEN_CARET:UN||GA((function(){var e=HN(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:WN,UNSUPPORTED_Y:UN},KN=Object.keys||function(e){return YM(e,XM)},nde=KA?Object.defineProperties:function(e,t){cM(e);for(var n,r=fj(t),i=KN(t),a=i.length,o=0;a>o;)dM.f(e,n=i[o++],r[n]);return e},rde=gj(`document`,`documentElement`),qN=xM(`IE_PROTO`),JN=function(){},YN=function(e){return`<script>`+e+`<\/script>`},XN=function(e){e.write(YN(``)),e.close();var t=e.parentWindow.Object;return e=null,t},ZN=function(){try{RN=new ActiveXObject(`htmlfile`)}catch{}var e,t;ZN=typeof document<`u`?document.domain&&RN?XN(RN):((t=nM(`iframe`)).style.display=`none`,rde.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(YN(`document.F=Object`)),e.close(),e.F):XN(RN);for(var n=XM.length;n--;)delete ZN.prototype[XM[n]];return ZN()};SM[qN]=!0;var QN,$N,eP=Object.create||function(e,t){var n;return e===null?n=ZN():(JN.prototype=cM(e),n=new JN,JN.prototype=null,n[qN]=e),t===void 0?n:nde(n,t)},ide=WA.RegExp,ade=GA((function(){var e=ide(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),ode=WA.RegExp,sde=GA((function(){var e=ode(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),cde=AM.get,lde=Lj(`native-string-replace`,String.prototype.replace),tP=RegExp.prototype.exec,nP=tP,ude=rj(``.charAt),dde=rj(``.indexOf),fde=rj(``.replace),rP=rj(``.slice),iP=($N=/b*/g,JA(tP,QN=/a/,`a`),JA(tP,$N,`a`),QN.lastIndex!==0||$N.lastIndex!==0),aP=GN.BROKEN_CARET,oP=/()??/.exec(``)[1]!==void 0;(iP||oP||aP||ade||sde)&&(nP=function(e){var t,n,r,i,a,o,s,c=this,l=cde(c),u=BN(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=JA(nP,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=aP&&c.sticky,m=JA(VN,c),h=c.source,g=0,_=u;if(p&&(m=fde(m,`y`,``),dde(m,`g`)===-1&&(m+=`g`),_=rP(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&ude(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),oP&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),iP&&(r=c.lastIndex),i=JA(tP,p?n:c,_),p?i?(i.input=rP(i.input,g),i[0]=rP(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:iP&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),oP&&i&&i.length>1&&JA(lde,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=eP(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var sP=nP;dN({target:`RegExp`,proto:!0,forced:/./.exec!==sP},{exec:sP});var cP=Function.prototype,lP=cP.apply,pde=cP.bind,uP=cP.call,dP=typeof Reflect==`object`&&Reflect.apply||(pde?uP.bind(lP):function(){return uP.apply(lP,arguments)}),mde=Xj(`species`),fP=RegExp.prototype,pP=function(e,t,n,r){var i=Xj(e),a=!GA((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!GA((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[mde]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=rj(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=rj(e),c=t.exec;return c===sP||c===fP.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));FM(String.prototype,e,c[0]),FM(fP,i,c[1])}r&&fM(fP[i],`sham`,!0)},hde=rj(``.charAt),mP=rj(``.charCodeAt),gde=rj(``.slice),_de=function(e){return function(t,n){var r,i,a=BN(dj(t)),o=RM(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=mP(a,o))<55296||r>56319||o+1===s||(i=mP(a,o+1))<56320||i>57343?e?hde(a,o):r:e?gde(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),hP=function(e,t,n){return t+(n?_de(e,t).length:1)},vde=Math.floor,gP=rj(``.charAt),yde=rj(``.replace),_P=rj(``.slice),bde=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,xde=/\$([$&'`]|\d{1,2})/g,Sde=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=xde;return i!==void 0&&(i=zj(i),c=bde),yde(a,c,(function(a,c){var l;switch(gP(c,0)){case`$`:return`$`;case`&`:return e;case"`":return _P(t,0,n);case`'`:return _P(t,o);case`<`:l=i[_P(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=vde(u/10);return d===0?a:d<=s?r[d-1]===void 0?gP(c,1):r[d-1]+gP(c,1):a}l=r[u-1]}return l===void 0?``:l}))},Cde=WA.TypeError,vP=function(e,t){var n=e.exec;if(pj(n)){var r=JA(n,e,t);return r!==null&&cM(r),r}if(oj(e)===`RegExp`)return JA(sP,e,t);throw Cde(`RegExp#exec called on incompatible receiver`)},yP=Xj(`replace`),wde=Math.max,Tde=Math.min,Ede=rj([].concat),bP=rj([].push),xP=rj(``.indexOf),SP=rj(``.slice),Dde=`a`.replace(/./,`$0`)===`$0`,CP=!!/./[yP]&&/./[yP](`a`,`$0`)===``;pP(`replace`,(function(e,t,n){var r=CP?`$`:`$0`;return[function(e,n){var r=dj(this),i=e==null?void 0:Mj(e,yP);return i?JA(i,e,r,n):JA(t,BN(r),e,n)},function(e,i){var a=cM(this),o=BN(e);if(typeof i==`string`&&xP(i,r)===-1&&xP(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=pj(i);c||(i=BN(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=vP(a,o);if(f===null||(bP(d,f),!l))break;BN(f[0])===``&&(a.lastIndex=hP(o,UM(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=BN((f=d[g])[0]),v=wde(Tde(RM(f.index),o.length),0),y=[],b=1;b<f.length;b++)bP(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=Ede([_],y,v,o);x!==void 0&&bP(S,x);var C=BN(dP(i,void 0,S))}else C=Sde(_,o,v,y,x,i);v>=h&&(m+=SP(o,h,v)+C,h=v+_.length)}return m+SP(o,h)}]}),!!GA((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!Dde||CP);var wP=Xj(`unscopables`),TP=Array.prototype;TP[wP]??dM.f(TP,wP,{configurable:!0,value:eP(null)});var EP=function(e){TP[wP][e]=!0},Ode=NN.find,DP=!0;`find`in[]&&[,].find((function(){DP=!1})),dN({target:`Array`,proto:!0,forced:DP},{find:function(e){return Ode(this,e,arguments.length>1?arguments[1]:void 0)}}),EP(`find`);var kde=Xj(`match`),OP=function(e){var t;return mj(e)&&((t=e[kde])===void 0?oj(e)==`RegExp`:!!t)},Ade=WA.TypeError,jde=Xj(`species`),kP=function(e,t,n){var r=$j(t);r in e?dM.f(e,r,QA(0,n)):e[r]=n},Mde=WA.Array,Nde=Math.max,AP=function(e,t,n){for(var r=WM(e),i=VM(t,r),a=VM(n===void 0?r:n,r),o=Mde(Nde(a-i,0)),s=0;i<a;i++,s++)kP(o,s,e[i]);return o.length=s,o},jP=GN.UNSUPPORTED_Y,Pde=Math.min,MP=[].push,Fde=rj(/./.exec),NP=rj(MP),PP=rj(``.slice);pP(`split`,(function(e,t,n){var 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=BN(dj(this)),i=n===void 0?4294967295:n>>>0;if(i===0)return[];if(e===void 0)return[r];if(!OP(e))return JA(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=JA(sP,d,r))&&!((o=d.lastIndex)>u&&(NP(c,PP(r,u,a.index)),a.length>1&&a.index<r.length&&dP(MP,c,AP(a,1)),s=a[0].length,u=o,c.length>=i));)d.lastIndex===a.index&&d.lastIndex++;return u===r.length?!s&&Fde(d,``)||NP(c,``):NP(c,PP(r,u)),c.length>i?AP(c,0,i):c}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:JA(t,this,e,n)}:t;return[function(t,n){var i=dj(this),a=t==null?void 0:Mj(t,e);return a?JA(a,t,i,n):JA(r,BN(i),t,n)},function(e,i){var a=cM(this),o=BN(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=cM(e).constructor;return r===void 0||(n=cM(r)[jde])==null?t:function(e){if(DN(e))return e;throw Ade(kj(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(jP?`g`:`y`),d=new c(jP?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return vP(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=jP?0:m;var g,_=vP(d,jP?PP(o,m):o);if(_===null||(g=Pde(UM(d.lastIndex+(jP?m:0)),o.length))===p)m=hP(o,m,l);else{if(NP(h,PP(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(NP(h,_[v]),h.length===f)return h;m=p=g}}return NP(h,PP(o,p)),h}]}),!!GA((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`})),jP);var FP=`
\v\f\r \xA0               \u2028\u2029`,IP=rj(``.replace),LP=`[`+FP+`]`,Ide=RegExp(`^`+LP+LP+`*`),Lde=RegExp(LP+LP+`*$`),RP=function(e){return function(t){var n=BN(dj(t));return 1&e&&(n=IP(n,Ide,``)),2&e&&(n=IP(n,Lde,``)),n}},Rde={start:RP(1),end:RP(2),trim:RP(3)},zde=PM.PROPER,Bde=Rde.trim;function zP(e){return J(`<div>`+e+`</div>`).children().filter((function(e){return e.tagName!==`BR`})).length===0}function BP(e){return e.length===0?``:e[0].outerHTML}function VP(e){return e.length?e[0].tagName.toLowerCase():``}function HP(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}dN({target:`String`,proto:!0,forced:GA((function(){return!!FP.trim()||zde&&FP.trim.name!==`trim`}))},{trim:function(){return Bde(this)}}),dN({global:!0},{globalThis:WA}),dg&&(J.fn.css=dg),_g&&(J.fn.append=_g),vg&&(J.fn.prepend=vg),Zh&&(J.fn.addClass=Zh),Qh&&(J.fn.removeClass=Qh),$h&&(J.fn.hasClass=$h),ig&&(J.fn.on=ig),ag&&(J.fn.off=ag),Og&&(J.fn.focus=Og),eg&&(J.fn.attr=eg),tg&&(J.fn.removeAttr=tg),lg&&(J.fn.hide=lg),ug&&(J.fn.show=ug),bg&&(J.fn.parents=bg),ng&&(J.fn.dataset=ng),rg&&(J.fn.val=rg),hg&&(J.fn.text=hg),mg&&(J.fn.html=mg),Sg&&(J.fn.children=Sg),Cg&&(J.fn.remove=Cg),xg&&(J.fn.find=xg),og&&(J.fn.width=og),sg&&(J.fn.height=sg),pg&&(J.fn.filter=pg),wg&&(J.fn.empty=wg);var Vde={selector:`p:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`paragraph`,children:t}}},UP=function(e,t){return UP=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])},UP(e,t)};function WP(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}UP(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var GP=function(){return GP=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},GP.apply(this,arguments)};function KP(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 qP(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 JP(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 YP(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 XP(e){var t=YP(H.nodes(e,{match:function(t){return e.children[0]===t},mode:`highest`}),1)[0];if(t==null)return!1;var n=t[0];if(!V.isElement(n)||n.type===`paragraph`||U.string(n)!==``)return!1;var r=n.children,i=r===void 0?[]:r;return!!K.isText(i[0])&&(q.setNodes(e,{type:`paragraph`}),!0)}var Hde={renderElems:[RA],elemsToHtml:[{type:`paragraph`,elemToHtml:function(e,t){return t===``?`<p><br></p>`:`<p>`+t+`</p>`}}],parseElemsHtml:[Vde],editorPlugin:function(e){var t=e.deleteBackward,n=e.deleteForward;e.insertText,e.insertBreak;var r=e;return r.deleteBackward=function(e){XP(r)||t(e)},r.deleteForward=function(e){XP(r)||n(e)},r}},Ude=/"/g,Wde=rj(``.replace),ZP=function(e,t,n,r){var i=BN(dj(e)),a=`<`+t;return n!==``&&(a+=` `+n+`="`+Wde(BN(r),Ude,`&quot;`)+`"`),a+`>`+i+`</`+t+`>`},QP=function(e){return GA((function(){var t=``[e](`"`);return t!==t.toLowerCase()||t.split(`"`).length>3}))};function $P(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 eF(e,t){return e.length!==0&&(!!e[0].matches(t)||e.find(t).length>0)}dN({target:`String`,proto:!0,forced:QP(`bold`)},{bold:function(){return ZP(this,`b`,``,``)}}),dN({target:`String`,proto:!0,forced:QP(`italics`)},{italics:function(){return ZP(this,`i`,``,``)}}),dN({target:`String`,proto:!0,forced:QP(`sub`)},{sub:function(){return ZP(this,`sub`,``,``)}}),dN({target:`String`,proto:!0,forced:QP(`sup`)},{sup:function(){return ZP(this,`sup`,``,``)}});var tF={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},nF=nM(`span`).classList,rF=nF&&nF.constructor&&nF.constructor.prototype,Gde=rF===Object.prototype?void 0:rF,iF=function(e,t){var n=[][e];return!!n&&GA((function(){n.call(null,t||function(){throw 1},1)}))},Kde=NN.forEach,aF=iF(`forEach`)?[].forEach:function(e){return Kde(this,e,arguments.length>1?arguments[1]:void 0)},oF=function(e){if(e&&e.forEach!==aF)try{fM(e,`forEach`,aF)}catch{e.forEach=aF}};for(var sF in tF)tF[sF]&&oF(WA[sF]&&WA[sF].prototype);function cF(e,t){return e.selection==null||!!YP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]}function qde(e,t){Object.keys(t).forEach((function(t){t!==`text`&&H.removeMark(e,t)}))}oF(Gde),dN({target:`Object`,stat:!0,forced:GA((function(){KN(1)}))},{keys:function(e){return KN(zj(e))}});var lF=function(){function e(){this.marksNeedToRemove=[],this.tag=`button`}return e.prototype.getValue=function(e){var t=this.mark,n=H.marks(e);return n?n[t]:!!YP(H.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 cF(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}(),Jde=`<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>`,Yde=`<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>`,Xde=`<svg viewBox="0 0 1024 1024"><path d="M896 64v64h-128L448 896h128v64H128v-64h128L576 128h-128V64z"></path></svg>`,Zde=`<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>`,Qde=`<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>`,uF=`<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>`,dF=`<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>`,$de=`<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>`,efe=`<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>`,tfe=`<svg viewBox="0 0 1024 1024"><path d="M64 512h384v128h-128V1024h-128V640h-128z m896-256H708.2496v768h-136.4992V256H320V128h640z"></path></svg>`,nfe=`<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>`,rfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m256-512v384l-256-192z"></path></svg>`,ife=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m384 192h640v128H384z m0 192h640v128H384z m0 192h640v128H384zM0 832h1024v128H0z m0-128V320l256 192z"></path></svg>`,afe=`<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>`,ofe=`<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>`,sfe=`<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>`,cfe=`<svg viewBox="0 0 1024 1024"><path d="M0 64h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z m0 192h1024v128H0z"></path></svg>`,lfe=`<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>`,ufe=`<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>`,dfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`bold`,t.title=Z(`textStyle.bold`),t.iconSvg=Jde,t.hotkey=`mod+b`,t}return WP(t,e),t}(lF),ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`code`,t.title=Z(`textStyle.code`),t.iconSvg=Qde,t.hotkey=`mod+e`,t}return WP(t,e),t}(lF),pfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`italic`,t.title=Z(`textStyle.italic`),t.iconSvg=Xde,t.hotkey=`mod+i`,t}return WP(t,e),t}(lF),mfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`through`,t.title=Z(`textStyle.through`),t.iconSvg=Zde,t.hotkey=`mod+shift+x`,t}return WP(t,e),t}(lF),hfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.mark=`underline`,t.title=Z(`textStyle.underline`),t.iconSvg=Yde,t.hotkey=`mod+u`,t}return WP(t,e),t}(lF),gfe=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=ufe,t.hotkey=``,t}return WP(t,e),t}(lF),_fe=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=lfe,t.hotkey=``,t}return WP(t,e),t}(lF),vfe=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 cF(e)},e.prototype.exec=function(e,t){var n,r,i=H.nodes(e,{match:function(e){return K.isText(e)},universal:!0});try{for(var a=JP(i),o=a.next();!o.done;o=a.next())qde(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}(),yfe={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=U_(`strong`,null,u)),o&&(u=U_(`code`,null,u)),i&&(u=U_(`em`,null,u)),a&&(u=U_(`u`,null,u)),s&&(u=U_(`s`,null,u)),c&&(u=U_(`sub`,null,u)),l&&(u=U_(`sup`,null,u)),u},menus:[{key:`bold`,factory:function(){return new dfe}},{key:`underline`,factory:function(){return new hfe}},{key:`italic`,factory:function(){return new pfe}},{key:`through`,factory:function(){return new mfe}},{key:`code`,factory:function(){return new ffe}},{key:`sub`,factory:function(){return new gfe}},{key:`sup`,factory:function(){return new _fe}},{key:`clearStyle`,factory:function(){return new vfe}}],styleToHtml:function(e,t){if(!K.isText(e))return t;if(zP(t))return $P(e,t);var n=J(t);if(VP(n)===`br`)return $P(e,`<br>`);var r=n.html();return r=$P(e,r),n.html(r),BP(n)},parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t;return eF(r,`b,strong`)&&(i.bold=!0),eF(r,`i,em`)&&(i.italic=!0),eF(r,`u`)&&(i.underline=!0),eF(r,`s,strike`)&&(i.through=!0),eF(r,`sub`)&&(i.sub=!0),eF(r,`sup`)&&(i.sup=!0),eF(r,`code`)&&(i.code=!0),i}};function fF(e){return function(t,n,r){return U_(`h`+e,null,n)}}var bfe={type:`header1`,renderElem:fF(1)},xfe={type:`header2`,renderElem:fF(2)},Sfe={type:`header3`,renderElem:fF(3)},Cfe={type:`header4`,renderElem:fF(4)},wfe={type:`header5`,renderElem:fF(5)},Tfe=PM.PROPER,pF=RegExp.prototype,mF=pF.toString,Efe=rj(VN),Dfe=GA((function(){return mF.call({source:`a`,flags:`b`})!=`/a/b`})),Ofe=Tfe&&mF.name!=`toString`;(Dfe||Ofe)&&FM(RegExp.prototype,`toString`,(function(){var e=cM(this),t=BN(e.source),n=e.flags;return`/`+t+`/`+BN(n===void 0&&_j(pF,e)&&!(`flags`in pF)?Efe(e):n)}),{unsafe:!0});var hF,kfe=WA.TypeError,gF=function(e){if(OP(e))throw kfe(`The method doesn't accept regular expressions`);return e},Afe=Xj(`match`),_F=function(e){var t=/./;try{`/./`[e](t)}catch{try{return t[Afe]=!1,`/./`[e](t)}catch{}}return!1},jfe=aM.f,vF=rj(``.startsWith),Mfe=rj(``.slice),Nfe=Math.min,yF=_F(`startsWith`);function bF(e){var t=YP(H.nodes(e,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];if(t==null)return`paragraph`;var n=YP(t,1)[0];return X.getNodeType(n)}function xF(e){return e.selection==null||!YP(H.nodes(e,{match:function(e){var t=X.getNodeType(e);return t===`paragraph`||!!t.startsWith(`header`)},universal:!0,mode:`highest`}),1)[0]}function SF(e,t){t&&q.setNodes(e,{type:t})}dN({target:`String`,proto:!0,forced:!(!yF&&(hF=jfe(String.prototype,`startsWith`),hF&&!hF.writable)||yF)},{startsWith:function(e){var t=BN(dj(this));gF(e);var n=UM(Nfe(arguments.length>1?arguments[1]:void 0,t.length)),r=BN(e);return vF?vF(t,r,n):Mfe(t,n,n+r.length)===r}});var Pfe=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 bF(e)},e.prototype.isDisabled=function(e){return xF(e)},e.prototype.exec=function(e,t){SF(e,t.toString())},e}(),CF=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){return bF(e)},e.prototype.isActive=function(e){return this.getValue(e)===this.type},e.prototype.isDisabled=function(e){return xF(e)},e.prototype.exec=function(e,t){var n=this.type;SF(e,t===n?`paragraph`:n)},e}(),Ffe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H1`,t.type=`header1`,t}return WP(t,e),t}(CF),Ife=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H2`,t.type=`header2`,t}return WP(t,e),t}(CF),Lfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H3`,t.type=`header3`,t}return WP(t,e),t}(CF),Rfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H4`,t.type=`header4`,t}return WP(t,e),t}(CF),zfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`H5`,t.type=`header5`,t}return WP(t,e),t}(CF),Bfe={key:`headerSelect`,factory:function(){return new Pfe}},Vfe={key:`header1`,factory:function(){return new Ffe}},Hfe={key:`header2`,factory:function(){return new Ife}},Ufe={key:`header3`,factory:function(){return new Lfe}},Wfe={key:`header4`,factory:function(){return new Rfe}},Gfe={key:`header5`,factory:function(){return new zfe}};function wF(e){return function(t,n){return`<h`+e+`>`+n+`</h`+e+`>`}}function TF(e){return function(t,n,r){var i=J(t);return(n=n.filter((function(e){return!!K.isText(e)||!!r.isInline(e)}))).length===0&&(n=[{text:i.text().replace(/\s+/gm,` `)}]),{type:`header`+e,children:n}}}var Kfe={renderElems:[bfe,xfe,Sfe,Cfe,wfe],elemsToHtml:[{type:`header1`,elemToHtml:wF(1)},{type:`header2`,elemToHtml:wF(2)},{type:`header3`,elemToHtml:wF(3)},{type:`header4`,elemToHtml:wF(4)},{type:`header5`,elemToHtml:wF(5)}],parseElemsHtml:[{selector:`h1:not([data-w-e-type])`,parseElemHtml:TF(1)},{selector:`h2:not([data-w-e-type])`,parseElemHtml:TF(2)},{selector:`h3:not([data-w-e-type])`,parseElemHtml:TF(3)},{selector:`h4:not([data-w-e-type])`,parseElemHtml:TF(4)},{selector:`h5:not([data-w-e-type])`,parseElemHtml:TF(5)}],menus:[Bfe,Vfe,Hfe,Ufe,Wfe,Gfe],editorPlugin:function(e){var t=e.insertBreak;e.insertNode;var n=e;return n.insertBreak=function(){var r=YP(H.nodes(n,{match:function(e){return X.getNodeType(e).startsWith(`header`)},universal:!0}),1)[0];r&&X.isSelectionAtLineEnd(e,r[1])?q.insertNodes(n,{type:`paragraph`,children:[{text:``}]},{mode:`highest`}):t()},n}},EF=Object.assign,DF=Object.defineProperty,qfe=rj([].concat),OF=!EF||GA((function(){if(KA&&EF({b:1},EF(DF({},`a`,{enumerable:!0,get:function(){DF(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})),EF({},e)[n]!=7||KN(EF({},t)).join(``)!=r}))?function(e,t){for(var n=zj(e),r=arguments.length,i=1,a=$M.f,o=ZA.f;r>i;)for(var s,c=lj(arguments[i++]),l=a?qfe(KN(c),a(c)):KN(c),u=l.length,d=0;u>d;)s=l[d++],KA&&!JA(o,c,s)||(n[s]=c[s]);return n}:EF;function kF(e,t){e.data??={};var n=e.data;n.style??={},Object.assign(n.style,t)}dN({target:`Object`,stat:!0,forced:Object.assign!==OF},{assign:OF});var Jfe={selector:`font`,preParseHtml:function(e){var t=J(e);if(VP(t)!==`font`)return e;var n=t.attr(`color`)||``;return n&&(t.removeAttr(`color`),t.css(`color`,n)),t[0]}},AF=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=H.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||!!YP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){var t=this.mark;if(this.$content==null){var n=J(`<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=J(r).attr(`data-value`);i===`0`?H.removeMark(e,t):H.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=J(`<div class="color-block" data-value="`+e+`"></div>`);t.css(`background-color`,e);var n=J(`<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=J(`
<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}(),Yfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.color`),t.iconSvg=$de,t.mark=`color`,t}return WP(t,e),t}(AF),Xfe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`color.bgColor`),t.iconSvg=efe,t.mark=`bgColor`,t}return WP(t,e),t}(AF),jF=`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(`.`),Zfe={renderStyle:function(e,t){var n=e,r=n.color,i=n.bgColor,a=t;return r&&kF(a,{color:r}),i&&kF(a,{backgroundColor:i}),a},styleToHtml:function(e,t){if(!K.isText(e))return t;var n,r=e,i=r.color,a=r.bgColor;return i||a?((zP(t)||VP(n=J(t))!==`span`)&&(n=J(`<span>`+t+`</span>`)),i&&n.css(`color`,i),a&&n.css(`background-color`,a),BP(n)):t},preParseHtml:[Jfe],parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t,a=HP(r,`color`);a&&(i.color=a);var o=HP(r,`background-color`);return o||=HP(r,`background`),o&&(i.bgColor=o),i},menus:[{key:`color`,factory:function(){return new Yfe},config:{colors:jF}},{key:`bgColor`,factory:function(){return new Xfe},config:{colors:jF}}]},Qfe=/^(?:\w+:)?\/\/(\S+)$/,$fe=/^localhost[\:?\d]*(?:[^\:?\d]\S*)?$/,epe=/^[^\s\.]+\.\S{2,}$/,tpe=KM.includes;function MF(e){return e===void 0&&(e=`r`),e+`-`+Jg()}function NF(e){return e.replace(/</g,`&lt;`).replace(/>/g,`&gt;`)}function PF(e,t,n,r){return KP(this,void 0,void 0,(function(){var i,a;return qP(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 FF(e,t,n){return KP(this,void 0,void 0,(function(){var r;return qP(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 IF(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 LF(e,t){return{type:`link`,url:NF(e),children:t?[{text:t}]:[]}}function RF(e,t,n){return KP(this,void 0,void 0,(function(){var r,i,a;return qP(this,(function(o){switch(o.label){case 0:return n?(t||=n,e.restoreSelection(),IF(e)?[2]:[4,PF(`insertLink`,e,t,n)]):[2];case 1:return o.sent()?[4,FF(`insertLink`,e,n)]:[2];case 2:return r=o.sent(),(i=e.selection)==null||(G.isCollapsed(i)?(e.insertText(` `),a=LF(r,t),q.insertNodes(e,a),e.insertFragment([{text:` `}])):H.string(e,i)===t?(a=LF(r),q.wrapNodes(e,a,{split:!0}),q.collapse(e,{edge:`end`})):(e.deleteFragment(),a=LF(r,t),q.insertNodes(e,a))),[2]}}))}))}dN({target:`Array`,proto:!0},{includes:function(e){return tpe(this,e,arguments.length>1?arguments[1]:void 0)}}),EP(`includes`);var npe={type:`link`,renderElem:function(e,t,n){var r=e,i=r.url,a=r.target;return U_(`a`,{href:i,target:a===void 0?`_blank`:a},t)}},rpe={selector:`a:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.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 zF(){return MF(`w-e-insert-link`)}var ipe=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=zF(),this.urlInputId=zF(),this.buttonId=zF()}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 IF(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=YP(Nk(Z(`link.text`),r),2),s=o[0],c=J(o[1]),l=YP(Nk(Z(`link.url`),i),2),u=l[0],d=J(l[1]),f=YP(Pk(a,Z(`common.ok`)),1)[0];if(this.$content==null){var p=J(`<div></div>`);p.on(`click`,`#`+a,(function(t){t.preventDefault(),RF(e,p.find(`#`+r).val(),p.find(`#`+i).val()),e.hidePanelOrModal()})),this.$content=p}var m=this.$content;if(m.empty(),m.append(s),m.append(u),m.append(f),t==null||G.isCollapsed(t))c.val(``);else{var h=H.string(e,t);c.val(h)}return d.val(``),setTimeout((function(){c.focus()})),m[0]},e}();function BF(){return MF(`w-e-update-link`)}var ape=function(){function e(){this.title=Z(`link.edit`),this.iconSvg=uF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.urlInputId=BF(),this.buttonId=BF()}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=YP(Nk(Z(`link.url`),t),2),i=r[0],a=J(r[1]),o=YP(Pk(n,Z(`common.ok`)),1)[0];if(this.$content==null){var s=J(`<div></div>`);s.on(`click`,`button`,(function(n){n.preventDefault(),e.restoreSelection();var r=X.getSelectedNodeByType(e,`link`);(function(e,t,n){KP(this,void 0,void 0,(function(){var r,i;return qP(this,(function(a){switch(a.label){case 0:return n?[4,PF(`editLink`,e,t,n)]:[2];case 1:return a.sent()?[4,FF(`editLink`,e,n)]:[2];case 2:return r=a.sent(),i={url:NF(r)},q.setNodes(e,i,{match:function(e){return X.checkNodeType(e,`link`)}}),[2]}}))}))})(e,r?U.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}(),ope=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)||q.unwrapNodes(e,{match:function(e){return X.checkNodeType(e,`link`)}})},e}(),spe=function(){function e(){this.title=Z(`link.view`),this.iconSvg=dF,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}(),VF={checkLink:function(e,t){return!0},parseLinkUrl:function(e){return e}},cpe={renderElems:[npe],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:[rpe],menus:[{key:`insertLink`,factory:function(){return new ipe},config:VF},{key:`editLink`,factory:function(){return new ape},config:VF},{key:`unLink`,factory:function(){return new ope}},{key:`viewLink`,factory:function(){return new spe}}],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(Qfe);if(!t)return!1;var n=t[1];return!(!n||!$fe.test(n)&&!epe.test(n))}(t)){if(!IF(i)){var r=i.selection;r!=null&&RF(i,H.string(i,r),t)}}else n(e)},i.normalizeNode=function(e){var t=YP(e,2),n=t[0],a=t[1];return X.getNodeType(n)===`link`&&U.string(n)===``?q.removeNodes(i,{at:a}):r([n,a])},i}},lpe=rj(1 .valueOf),upe=WA.RangeError,dpe=WA.RangeError,HF=WA.String,UF=Math.floor,WF=rj((function(e){var t=BN(dj(this)),n=``,r=RM(e);if(r<0||r==1/0)throw upe(`Wrong number of repetitions`);for(;r>0;(r>>>=1)&&(t+=t))1&r&&(n+=t);return n})),GF=rj(``.slice),KF=rj(1 .toFixed),qF=function(e,t,n){return t===0?n:t%2==1?qF(e,t-1,n*e):qF(e*e,t/2,n)},JF=function(e,t,n){for(var r=-1,i=n;++r<6;)i+=t*e[r],e[r]=i%1e7,i=UF(i/1e7)},YF=function(e,t){for(var n=6,r=0;--n>=0;)r+=e[n],e[n]=UF(r/t),r=r%t*1e7},XF=function(e){for(var t=6,n=``;--t>=0;)if(n!==``||t===0||e[t]!==0){var r=HF(e[t]);n=n===``?r:n+WF(`0`,7-r.length)+r}return n};function ZF(e,t){return`w-e-image-container-`+X.findKey(e,t).id}dN({target:`Number`,proto:!0,forced:GA((function(){return KF(8e-5,3)!==`0.000`||KF(.9,0)!==`1`||KF(1.255,2)!==`1.25`||KF(0xde0b6b3a7640080,0)!==`1000000000000000128`}))||!GA((function(){KF({})}))},{toFixed:function(e){var t,n,r,i,a=lpe(this),o=RM(e),s=[0,0,0,0,0,0],c=``,l=`0`;if(o<0||o>20)throw dpe(`Incorrect fraction digits`);if(a!=a)return`NaN`;if(a<=-1e21||a>=1e21)return HF(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*qF(2,69,1))-69)<0?a*qF(2,-t,1):a/qF(2,t,1),n*=4503599627370496,(t=52-t)>0){for(JF(s,0,n),r=o;r>=7;)JF(s,1e7,0),r-=7;for(JF(s,qF(10,r,1),0),r=t-1;r>=23;)YF(s,1<<23),r-=23;YF(s,1<<r),JF(s,1,1),YF(s,2),l=XF(s)}else JF(s,0,n),JF(s,1<<-t,0),l=XF(s)+WF(`0`,o)}return o>0?c+((i=l.length)<=o?`0.`+WF(`0`,o-i)+l:GF(l,0,i-o)+`.`+GF(l,i-o)):c+l}});var fpe={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 _=U_(`img`,{style:g,src:i,alt:o,"data-href":c}),v=n.isDisabled();return h&&!v?function(e,t,n,r){var i=J(`body`),a=ZF(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=J(`#`+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=u_((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:GP(GP({},t.style),{width:r+`px`,height:a+`px`})};q.setNodes(e,o,{at:X.findPath(e,t)}),i.off(`mouseup`,h)}}var g={};return o&&(g.width=o),s&&(g.height=s),U_(`div`,{id:a,style:g,className:`w-e-image-container w-e-selected-image-container`,on:{mousedown:function(e){var t=J(e.target);t.hasClass(`w-e-image-dragger`)&&(e.preventDefault(),(t.hasClass(`left-top`)||t.hasClass(`left-bottom`))&&(d=!0),p(e.clientX))}}},n,U_(`div`,{className:`w-e-image-dragger left-top`}),U_(`div`,{className:`w-e-image-dragger right-top`}),U_(`div`,{className:`w-e-image-dragger left-bottom`}),U_(`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),U_(`div`,{id:ZF(e,t),style:o,className:`w-e-image-container`},n)}(n,e,_,{width:f,height:m})}},ppe={selector:`img:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e),i=r.attr(`data-href`)||``;return i=decodeURIComponent(i),{type:`image`,src:r.attr(`src`)||``,alt:r.attr(`alt`)||``,href:i,style:{width:HP(r,`width`),height:HP(r,`height`)},children:[{text:``}]}}};function QF(e,t,n,r,i){return r===void 0&&(r=``),i===void 0&&(i=``),KP(this,void 0,void 0,(function(){var a,o;return qP(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 $F(e,t,n){return KP(this,void 0,void 0,(function(){var r;return qP(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 eI(e,t,n,r){return n===void 0&&(n=``),r===void 0&&(r=``),KP(this,void 0,void 0,(function(){var i,a,o;return qP(this,(function(s){switch(s.label){case 0:return[4,QF(`insertImage`,e,t,n,r)];case 1:return s.sent()?[4,$F(`insertImage`,e,t)]:[2];case 2:return i=s.sent(),a={type:`image`,src:NF(i),href:r,alt:n,style:{},children:[{text:``}]},e.selection===null&&e.restoreSelection(),X.getSelectedNodeByType(e,`image`)&&e.move(1),tI(e)||(q.insertNodes(e,a),(o=e.getMenuConfig(`insertImage`).onInsertedImage)&&o(a)),[2]}}))}))}function tI(e){var t=e.selection;return t==null||!G.isCollapsed(t)||!!YP(H.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`||!!H.isVoid(e,t)},universal:!0}),1)[0]}function nI(){return MF(`w-e-insert-image`)}var mpe=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=nI(),this.altInputId=nI(),this.hrefInputId=nI(),this.buttonId=nI()}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 tI(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=YP(Nk(Z(`image.src`),r),2),c=s[0],l=J(s[1]),u=YP(Nk(Z(`image.desc`),i),2),d=u[0],f=J(u[1]),p=YP(Nk(Z(`image.link`),a),2),m=p[0],h=J(p[1]),g=YP(Pk(o,Z(`common.ok`)),1)[0];if(this.$content==null){var _=J(`<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)||eI(e,t,n,r))},e}(),hpe=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)||q.removeNodes(e,{match:function(e){return X.checkNodeType(e,`image`)}})},e}();function rI(){return MF(`w-e-edit-image`)}var gpe=function(){function e(){this.title=Z(`image.edit`),this.iconSvg=uF,this.tag=`button`,this.showModal=!0,this.modalWidth=300,this.$content=null,this.srcInputId=rI(),this.altInputId=rI(),this.hrefInputId=rI(),this.buttonId=rI()}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||!G.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=YP(Nk(Z(`image.src`),r),2),l=c[0],u=J(c[1]),d=YP(Nk(Z(`image.desc`),i),2),f=d[0],p=J(d[1]),m=YP(Nk(Z(`image.link`),a),2),h=m[0],g=J(m[1]),_=YP(Pk(o,Z(`common.ok`)),1)[0];if(this.$content==null){var v=J(`<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={}),KP(this,void 0,void 0,(function(){var a,o,s,c,l,u;return qP(this,(function(d){switch(d.label){case 0:return[4,QF(`editImage`,e,t,n,r)];case 1:return d.sent()?[4,$F(`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:GP(GP({},s===void 0?{}:s),i)},q.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}(),_pe=function(){function e(){this.title=Z(`image.viewLink`),this.iconSvg=dF,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}(),iI=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:GP(GP({},i===void 0?{}:i),{width:this.value,height:``})};q.setNodes(e,a,{match:function(e){return X.checkNodeType(e,`image`)}})}}},e}(),vpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`30%`,t.value=`30%`,t}return WP(t,e),t}(iI),ype=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`50%`,t.value=`50%`,t}return WP(t,e),t}(iI),bpe=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=`100%`,t.value=`100%`,t}return WP(t,e),t}(iI),aI={onInsertedImage:function(e){},onUpdatedImage:function(e){},checkImage:function(e,t,n){return!0},parseImageSrc:function(e){return e}},xpe={renderElems:[fpe],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:[ppe],menus:[{key:`insertImage`,factory:function(){return new mpe},config:aI},{key:`deleteImage`,factory:function(){return new hpe}},{key:`editImage`,factory:function(){return new gpe},config:aI},{key:`viewImageLink`,factory:function(){return new _pe}},{key:`imageWidth30`,factory:function(){return new vpe}},{key:`imageWidth50`,factory:function(){return new ype}},{key:`imageWidth100`,factory:function(){return new bpe}}],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}},Spe={type:`todo`,renderElem:function(e,t,n){var r=!1;return n.isDisabled()&&(r=!0),U_(`div`,{style:{margin:`5px 0`}},U_(`span`,{contentEditable:!1,style:{marginRight:`0.5em`}},U_(`input`,{type:`checkbox`,checked:e.checked,disabled:r,on:{change:function(t){var r=X.findPath(n,e),i={checked:t.target.checked};q.setNodes(n,i,{at:r})}}})),U_(`span`,null,t))}},Cpe=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(H.isVoid(e,t)&&H.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);q.setNodes(e,{type:n?`paragraph`:`todo`})},e}(),wpe={renderElems:[Spe],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=J(e).find(`li`),n=J(`<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=J(e);(t=t.filter((function(e){return!!K.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 Cpe}}],editorPlugin:function(e){var t=e.deleteBackward,n=e;return n.deleteBackward=function(n){var r=e.selection;if(r&&G.isCollapsed(r)){var i=X.getSelectedNodeByType(e,`todo`);if(i&&U.string(i).length===0)return void q.setNodes(e,{type:`paragraph`},{mode:`highest`})}t(n)},n}},Tpe={type:`blockquote`,renderElem:function(e,t,n){return U_(`blockquote`,null,t)}},Epe={selector:`blockquote:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`blockquote`,children:t}}},Dpe=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||!YP(H.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`;q.setNodes(e,{type:n},{mode:`highest`})}},e}(),Ope={key:`blockquote`,factory:function(){return new Dpe}},kpe=rj([].slice),Ape=FN(`slice`),jpe=Xj(`species`),oI=WA.Array,Mpe=Math.max;dN({target:`Array`,proto:!0,forced:!Ape},{slice:function(e,t){var n,r,i,a=fj(this),o=WM(a),s=VM(e,o),c=VM(t===void 0?o:t,o);if(pN(a)&&(n=a.constructor,(DN(n)&&(n===oI||pN(n.prototype))||mj(n)&&(n=n[jpe])===null)&&(n=void 0),n===oI||n===void 0))return kpe(a,s,c);for(r=new(n===void 0?oI:n)(Mpe(c-s,0)),i=0;s<c;s++,i++)s in a&&kP(r,i,a[s]);return r.length=i,r}});var Npe={renderElems:[Tpe],elemsToHtml:[{type:`blockquote`,elemToHtml:function(e,t){return`<blockquote>`+t+`</blockquote>`}}],parseElemsHtml:[Epe],menus:[Ope],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=YP(H.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=H.end(e,s);if(Nm.equals(c,i.focus)){var l=U.string(o);if(l&&l.slice(-1)===`
`)return e.deleteBackward(`character`),void q.insertNodes(r,{type:`paragraph`,children:[{text:``}]},{mode:`highest`})}n(`
`)},r}},Ppe=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||!!YP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.isVoid(e,t)},universal:!0}),1)[0]},e.prototype.getPanelContentElem=function(e){if(this.$content==null){var t=J(`<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=J(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=J(`<li>`+e+`</li>`);n.append(t)})),n[0]},e}(),Fpe={menus:[{key:`emotion`,factory:function(){return new Ppe},config:{emotions:`😀 😃 😄 😁 😆 😅 😂 🤣 😊 😇 🙂 🙃 😉 😌 😍 😘 😗 😙 😚 😋 😛 😝 😜 🤓 😎 😏 😒 😞 😔 😟 😕 🙁 😣 😖 😫 😩 😢 😭 😤 😠 😡 😳 😱 😨 🤗 🤔 😶 😑 😬 🙄 😯 😴 😷 🤑 😈 🤡 💩 👻 💀 👀 👣 👐 🙌 👏 🤝 👍 👎 👊 ✊ 🤛 🤜 🤞 ✌️ 🤘 👌 👈 👉 👆 👇 ☝️ ✋ 🤚 🖐 🖖 👋 🤙 💪 🖕 ✍️ 🙏`.split(` `)}}]},Ipe={1:`12px`,2:`14px`,3:`16px`,4:`19px`,5:`24px`,6:`32px`,7:`48px`},Lpe={selector:`font`,preParseHtml:function(e){var t=J(e);if(VP(t)!==`font`)return e;var n=t.attr(`size`)||``;n&&(t.removeAttr(`size`),t.css(`font-size`,Ipe[n]));var r=t.attr(`face`)||``;return r&&(t.removeAttr(`face`),t.css(`font-family`,r)),t[0]}},Rpe=rj(``.indexOf);dN({target:`String`,proto:!0,forced:!_F(`includes`)},{includes:function(e){return!!~Rpe(BN(dj(this)),BN(gF(e)),arguments.length>1?arguments[1]:void 0)}});var sI,cI,lI=function(e){return e&&e.Math==Math&&e},uI=lI(typeof globalThis==`object`&&globalThis)||lI(typeof window==`object`&&window)||lI(typeof self==`object`&&self)||lI(typeof zA==`object`&&zA)||function(){return this}()||Function(`return this`)(),dI=Function.prototype,fI=dI.apply,zpe=dI.bind,pI=dI.call,mI=typeof Reflect==`object`&&Reflect.apply||(zpe?pI.bind(fI):function(){return pI.apply(fI,arguments)}),hI=Function.prototype,gI=hI.bind,_I=hI.call,Bpe=gI&&gI.bind(_I),vI=gI?function(e){return e&&Bpe(_I,e)}:function(e){return e&&function(){return _I.apply(e,arguments)}},yI=function(e){return typeof e==`function`},bI=function(e){try{return!!e()}catch{return!0}},xI=!bI((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),SI=Function.prototype.call,CI=SI.bind?SI.bind(SI):function(){return SI.apply(SI,arguments)},wI={}.propertyIsEnumerable,TI=Object.getOwnPropertyDescriptor,EI={f:TI&&!wI.call({1:2},1)?function(e){var t=TI(this,e);return!!t&&t.enumerable}:wI},DI=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},Vpe=vI({}.toString),Hpe=vI(``.slice),OI=function(e){return Hpe(Vpe(e),8,-1)},kI=uI.Object,Upe=vI(``.split),AI=bI((function(){return!kI(`z`).propertyIsEnumerable(0)}))?function(e){return OI(e)==`String`?Upe(e,``):kI(e)}:kI,Wpe=uI.TypeError,jI=function(e){if(e==null)throw Wpe(`Can't call method on `+e);return e},MI=function(e){return AI(jI(e))},NI=function(e){return typeof e==`object`?e!==null:yI(e)},PI={},FI=function(e){return yI(e)?e:void 0},II=function(e,t){return arguments.length<2?FI(PI[e])||FI(uI[e]):PI[e]&&PI[e][t]||uI[e]&&uI[e][t]},LI=vI({}.isPrototypeOf),RI=II(`navigator`,`userAgent`)||``,zI=uI.process,BI=uI.Deno,VI=zI&&zI.versions||BI&&BI.version,HI=VI&&VI.v8;HI&&(cI=(sI=HI.split(`.`))[0]>0&&sI[0]<4?1:+(sI[0]+sI[1])),!cI&&RI&&(!(sI=RI.match(/Edge\/(\d+)/))||sI[1]>=74)&&(sI=RI.match(/Chrome\/(\d+)/))&&(cI=+sI[1]);var UI=cI,WI=!!Object.getOwnPropertySymbols&&!bI((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&UI&&UI<41})),GI=WI&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Gpe=uI.Object,KI=GI?function(e){return typeof e==`symbol`}:function(e){var t=II(`Symbol`);return yI(t)&&LI(t.prototype,Gpe(e))},Kpe=uI.String,qpe=uI.TypeError,qI=function(e){if(yI(e))return e;throw qpe(function(e){try{return Kpe(e)}catch{return`Object`}}(e)+` is not a function`)},Jpe=uI.TypeError,Ype=Object.defineProperty,JI=uI[`__core-js_shared__`]||function(e,t){try{Ype(uI,e,{value:t,configurable:!0,writable:!0})}catch{uI[e]=t}return t}(`__core-js_shared__`,{}),YI=BA((function(e){(e.exports=function(e,t){return JI[e]||(JI[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`pure`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Xpe=uI.Object,XI=function(e){return Xpe(jI(e))},Zpe=vI({}.hasOwnProperty),ZI=Object.hasOwn||function(e,t){return Zpe(XI(e),t)},Qpe=0,$pe=Math.random(),eme=vI(1 .toString),QI=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+eme(++Qpe+$pe,36)},$I=YI(`wks`),eL=uI.Symbol,tL=eL&&eL.for,tme=GI?eL:eL&&eL.withoutSetter||QI,nL=function(e){if(!ZI($I,e)||!WI&&typeof $I[e]!=`string`){var t=`Symbol.`+e;$I[e]=WI&&ZI(eL,e)?eL[e]:GI&&tL?tL(t):tme(t)}return $I[e]},nme=uI.TypeError,rme=nL(`toPrimitive`),rL=function(e){var t=function(e,t){if(!NI(e)||KI(e))return e;var n,r,i=(n=e[rme])==null?void 0:qI(n);if(i){if(t===void 0&&(t=`default`),r=CI(i,e,t),!NI(r)||KI(r))return r;throw nme(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&yI(n=e.toString)&&!NI(r=CI(n,e))||yI(n=e.valueOf)&&!NI(r=CI(n,e))||t!==`string`&&yI(n=e.toString)&&!NI(r=CI(n,e)))return r;throw Jpe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return KI(t)?t:t+``},iL=uI.document,ime=NI(iL)&&NI(iL.createElement),aL=function(e){return ime?iL.createElement(e):{}},oL=!xI&&!bI((function(){return Object.defineProperty(aL(`div`),"a",{get:function(){return 7}}).a!=7})),sL=Object.getOwnPropertyDescriptor,cL={f:xI?sL:function(e,t){if(e=MI(e),t=rL(t),oL)try{return sL(e,t)}catch{}if(ZI(e,t))return DI(!CI(EI.f,e,t),e[t])}},ame=/#|\.prototype\./,lL=function(e,t){var n=sme[ome(e)];return n==lme||n!=cme&&(yI(t)?bI(t):!!t)},ome=lL.normalize=function(e){return String(e).replace(ame,`.`).toLowerCase()},sme=lL.data={},cme=lL.NATIVE=`N`,lme=lL.POLYFILL=`P`,ume=lL,uL=vI(vI.bind),dL=function(e,t){return qI(e),t===void 0?e:uL?uL(e,t):function(){return e.apply(t,arguments)}},dme=uI.String,fme=uI.TypeError,fL=function(e){if(NI(e))return e;throw fme(dme(e)+` is not an object`)},pme=uI.TypeError,pL=Object.defineProperty,mL={f:xI?pL:function(e,t,n){if(fL(e),t=rL(t),fL(n),oL)try{return pL(e,t,n)}catch{}if(`get`in n||`set`in n)throw pme(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},hL=xI?function(e,t,n){return mL.f(e,t,DI(1,n))}:function(e,t,n){return e[t]=n,e},mme=cL.f,hme=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 mI(e,this,arguments)};return t.prototype=e.prototype,t},gL=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?uI:f?uI[u]:(uI[u]||{}).prototype,h=d?PI:PI[u]||hL(PI,u,{})[u],g=h.prototype;for(i in t)n=!ume(d?i:u+(f?`.`:`#`)+i,e.forced)&&m&&ZI(m,i),o=h[i],n&&(s=e.noTargetGet?(l=mme(m,i))&&l.value:m[i]),a=n&&s?s:t[i],n&&typeof o==typeof a||(c=e.bind&&n?dL(a,uI):e.wrap&&n?hme(a):p&&yI(a)?vI(a):a,(e.sham||a&&a.sham||o&&o.sham)&&hL(c,`sham`,!0),hL(h,i,c),p&&(ZI(PI,r=u+`Prototype`)||hL(PI,r,{}),hL(PI[r],i,a),e.real&&g&&!g[i]&&hL(g,i,a)))},_L=Array.isArray||function(e){return OI(e)==`Array`},gme=Math.ceil,_me=Math.floor,vL=function(e){var t=+e;return t!=t||t===0?0:(t>0?_me:gme)(t)},vme=Math.min,yL=function(e){return(t=e.length)>0?vme(vL(t),9007199254740991):0;var t},bL=function(e,t,n){var r=rL(t);r in e?mL.f(e,r,DI(0,n)):e[r]=n},xL={};xL[nL(`toStringTag`)]=`z`;var SL=String(xL)===`[object z]`,yme=nL(`toStringTag`),bme=uI.Object,xme=OI(function(){return arguments}())==`Arguments`,CL=SL?OI:function(e){var t,n,r;return e===void 0?`Undefined`:e===null?`Null`:typeof(n=function(e,t){try{return e[t]}catch{}}(t=bme(e),yme))==`string`?n:xme?OI(t):(r=OI(t))==`Object`&&yI(t.callee)?`Arguments`:r},Sme=vI(Function.toString);yI(JI.inspectSource)||(JI.inspectSource=function(e){return Sme(e)});var wL=JI.inspectSource,TL=function(){},Cme=[],EL=II(`Reflect`,`construct`),DL=/^\s*(?:class|function)\b/,wme=vI(DL.exec),Tme=!DL.exec(TL),OL=function(e){if(!yI(e))return!1;try{return EL(TL,Cme,e),!0}catch{return!1}},Eme=!EL||bI((function(){var e;return OL(OL.call)||!OL(Object)||!OL((function(){e=!0}))||e}))?function(e){if(!yI(e))return!1;switch(CL(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Tme||!!wme(DL,wL(e))}:OL,Dme=nL(`species`),kL=uI.Array,AL=function(e,t){return new(function(e){var t;return _L(e)&&(t=e.constructor,(Eme(t)&&(t===kL||_L(t.prototype))||NI(t)&&(t=t[Dme])===null)&&(t=void 0)),t===void 0?kL:t}(e))(t===0?0:t)},Ome=nL(`species`),jL=nL(`isConcatSpreadable`),ML=uI.TypeError,kme=UI>=51||!bI((function(){var e=[];return e[jL]=!1,e.concat()[0]!==e})),Ame=UI>=51||!bI((function(){var e=[];return(e.constructor={})[Ome]=function(){return{foo:1}},e.concat(Boolean).foo!==1})),jme=function(e){if(!NI(e))return!1;var t=e[jL];return t===void 0?_L(e):!!t};gL({target:`Array`,proto:!0,forced:!kme||!Ame},{concat:function(e){var t,n,r,i,a,o=XI(this),s=AL(o,0),c=0;for(t=-1,r=arguments.length;t<r;t++)if(jme(a=t===-1?o:arguments[t])){if(c+(i=yL(a))>9007199254740991)throw ML(`Maximum allowed index exceeded`);for(n=0;n<i;n++,c++)n in a&&bL(s,c,a[n])}else{if(c>=9007199254740991)throw ML(`Maximum allowed index exceeded`);bL(s,c++,a)}return s.length=c,s}});var NL,Mme=uI.String,PL=function(e){if(CL(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return Mme(e)},Nme=Math.max,Pme=Math.min,FL=function(e,t){var n=vL(e);return n<0?Nme(n+t,0):Pme(n,t)},IL=function(e){return function(t,n,r){var i,a=MI(t),o=yL(a),s=FL(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}},Fme={includes:IL(!0),indexOf:IL(!1)},LL={},Ime=Fme.indexOf,RL=vI([].push),zL=function(e,t){var n,r=MI(e),i=0,a=[];for(n in r)!ZI(LL,n)&&ZI(r,n)&&RL(a,n);for(;t.length>i;)ZI(r,n=t[i++])&&(~Ime(a,n)||RL(a,n));return a},BL=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],VL=Object.keys||function(e){return zL(e,BL)},Lme=xI?Object.defineProperties:function(e,t){fL(e);for(var n,r=MI(t),i=VL(t),a=i.length,o=0;a>o;)mL.f(e,n=i[o++],r[n]);return e},Rme=II(`document`,`documentElement`),HL=YI(`keys`),UL=function(e){return HL[e]||(HL[e]=QI(e))},WL=UL(`IE_PROTO`),GL=function(){},KL=function(e){return`<script>`+e+`<\/script>`},qL=function(e){e.write(KL(``)),e.close();var t=e.parentWindow.Object;return e=null,t},JL=function(){try{NL=new ActiveXObject(`htmlfile`)}catch{}var e,t;JL=typeof document<`u`?document.domain&&NL?qL(NL):((t=aL(`iframe`)).style.display=`none`,Rme.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(KL(`document.F=Object`)),e.close(),e.F):qL(NL);for(var n=BL.length;n--;)delete JL.prototype[BL[n]];return JL()};LL[WL]=!0;var YL,XL,ZL,QL=Object.create||function(e,t){var n;return e===null?n=JL():(GL.prototype=fL(e),n=new GL,GL.prototype=null,n[WL]=e),t===void 0?n:Lme(n,t)},zme=BL.concat(`length`,`prototype`),$L={f:Object.getOwnPropertyNames||function(e){return zL(e,zme)}},Bme=uI.Array,Vme=Math.max,eR=$L.f,tR=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],nR={f:function(e){return tR&&OI(e)==`Window`?function(e){try{return eR(e)}catch{return function(e,t,n){for(var r=yL(e),i=FL(void 0,r),a=FL(r,r),o=Bme(Vme(a-i,0)),s=0;i<a;i++,s++)bL(o,s,e[i]);return o.length=s,o}(tR)}}(e):eR(MI(e))}},rR={f:Object.getOwnPropertySymbols},Hme=vI([].slice),iR=function(e,t,n,r){r&&r.enumerable?e[t]=n:hL(e,t,n)},aR={f:nL},Ume=mL.f,oR=function(e){var t=PI.Symbol||={};ZI(t,e)||Ume(t,e,{value:aR.f(e)})},Wme=SL?{}.toString:function(){return`[object `+CL(this)+`]`},Gme=mL.f,sR=nL(`toStringTag`),cR=function(e,t,n,r){if(e){var i=n?e:e.prototype;ZI(i,sR)||Gme(i,sR,{configurable:!0,value:t}),r&&!SL&&hL(i,`toString`,Wme)}},lR=uI.WeakMap,Kme=yI(lR)&&/native code/.test(wL(lR)),uR=uI.TypeError,qme=uI.WeakMap;if(Kme||JI.state){var dR=JI.state||=new qme,Jme=vI(dR.get),fR=vI(dR.has),Yme=vI(dR.set);YL=function(e,t){if(fR(dR,e))throw new uR(`Object already initialized`);return t.facade=e,Yme(dR,e,t),t},XL=function(e){return Jme(dR,e)||{}},ZL=function(e){return fR(dR,e)}}else{var pR=UL(`state`);LL[pR]=!0,YL=function(e,t){if(ZI(e,pR))throw new uR(`Object already initialized`);return t.facade=e,hL(e,pR,t),t},XL=function(e){return ZI(e,pR)?e[pR]:{}},ZL=function(e){return ZI(e,pR)}}var mR={set:YL,get:XL,has:ZL,enforce:function(e){return ZL(e)?XL(e):YL(e,{})},getterFor:function(e){return function(t){var n;if(!NI(t)||(n=XL(t)).type!==e)throw uR(`Incompatible receiver, `+e+` required`);return n}}},hR=vI([].push),gR=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=XI(c),h=AI(m),g=dL(l,u),_=yL(h),v=0,y=d||AL,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:hR(b,f)}else switch(e){case 4:return!1;case 7:hR(b,f)}}return a?-1:r||i?i:b}},_R=[gR(0),gR(1),gR(2),gR(3),gR(4),gR(5),gR(6),gR(7)][0],vR=UL(`hidden`),yR=nL(`toPrimitive`),Xme=mR.set,bR=mR.getterFor(`Symbol`),xR=Object.prototype,SR=uI.Symbol,CR=SR&&SR.prototype,wR=uI.TypeError,TR=uI.QObject,ER=II(`JSON`,`stringify`),DR=cL.f,OR=mL.f,kR=nR.f,Zme=EI.f,AR=vI([].push),jR=YI(`symbols`),MR=YI(`op-symbols`),NR=YI(`string-to-symbol-registry`),PR=YI(`symbol-to-string-registry`),Qme=YI(`wks`),FR=!TR||!TR.prototype||!TR.prototype.findChild,IR=xI&&bI((function(){return QL(OR({},`a`,{get:function(){return OR(this,`a`,{value:7}).a}})).a!=7}))?function(e,t,n){var r=DR(xR,t);r&&delete xR[t],OR(e,t,n),r&&e!==xR&&OR(xR,t,r)}:OR,LR=function(e,t){var n=jR[e]=QL(CR);return Xme(n,{type:`Symbol`,tag:e,description:t}),xI||(n.description=t),n},RR=function(e,t,n){e===xR&&RR(MR,t,n),fL(e);var r=rL(t);return fL(n),ZI(jR,r)?(n.enumerable?(ZI(e,vR)&&e[vR][r]&&(e[vR][r]=!1),n=QL(n,{enumerable:DI(0,!1)})):(ZI(e,vR)||OR(e,vR,DI(1,{})),e[vR][r]=!0),IR(e,r,n)):OR(e,r,n)},zR=function(e,t){fL(e);var n=MI(t);return _R(VL(n).concat(UR(n)),(function(t){xI&&!CI(BR,n,t)||RR(e,t,n[t])})),e},BR=function(e){var t=rL(e),n=CI(Zme,this,t);return!(this===xR&&ZI(jR,t)&&!ZI(MR,t))&&(!(n||!ZI(this,t)||!ZI(jR,t)||ZI(this,vR)&&this[vR][t])||n)},VR=function(e,t){var n=MI(e),r=rL(t);if(n!==xR||!ZI(jR,r)||ZI(MR,r)){var i=DR(n,r);return!i||!ZI(jR,r)||ZI(n,vR)&&n[vR][r]||(i.enumerable=!0),i}},HR=function(e){var t=kR(MI(e)),n=[];return _R(t,(function(e){ZI(jR,e)||ZI(LL,e)||AR(n,e)})),n},UR=function(e){var t=e===xR,n=kR(t?MR:MI(e)),r=[];return _R(n,(function(e){!ZI(jR,e)||t&&!ZI(xR,e)||AR(r,jR[e])})),r};if(WI||(CR=(SR=function(){if(LI(CR,this))throw wR(`Symbol is not a constructor`);var e=arguments.length&&arguments[0]!==void 0?PL(arguments[0]):void 0,t=QI(e),n=function(e){this===xR&&CI(n,MR,e),ZI(this,vR)&&ZI(this[vR],t)&&(this[vR][t]=!1),IR(this,t,DI(1,e))};return xI&&FR&&IR(xR,t,{configurable:!0,set:n}),LR(t,e)}).prototype,iR(CR,`toString`,(function(){return bR(this).tag})),iR(SR,`withoutSetter`,(function(e){return LR(QI(e),e)})),EI.f=BR,mL.f=RR,cL.f=VR,$L.f=nR.f=HR,rR.f=UR,aR.f=function(e){return LR(nL(e),e)},xI&&OR(CR,`description`,{configurable:!0,get:function(){return bR(this).description}})),gL({global:!0,wrap:!0,forced:!WI,sham:!WI},{Symbol:SR}),_R(VL(Qme),(function(e){oR(e)})),gL({target:`Symbol`,stat:!0,forced:!WI},{for:function(e){var t=PL(e);if(ZI(NR,t))return NR[t];var n=SR(t);return NR[t]=n,PR[n]=t,n},keyFor:function(e){if(!KI(e))throw wR(e+` is not a symbol`);if(ZI(PR,e))return PR[e]},useSetter:function(){FR=!0},useSimple:function(){FR=!1}}),gL({target:`Object`,stat:!0,forced:!WI,sham:!xI},{create:function(e,t){return t===void 0?QL(e):zR(QL(e),t)},defineProperty:RR,defineProperties:zR,getOwnPropertyDescriptor:VR}),gL({target:`Object`,stat:!0,forced:!WI},{getOwnPropertyNames:HR,getOwnPropertySymbols:UR}),gL({target:`Object`,stat:!0,forced:bI((function(){rR.f(1)}))},{getOwnPropertySymbols:function(e){return rR.f(XI(e))}}),ER&&gL({target:`JSON`,stat:!0,forced:!WI||bI((function(){var e=SR();return ER([e])!=`[null]`||ER({a:e})!=`{}`||ER(Object(e))!=`{}`}))},{stringify:function(e,t,n){var r=Hme(arguments),i=t;if((NI(t)||e!==void 0)&&!KI(e))return _L(t)||(t=function(e,t){if(yI(i)&&(t=CI(i,this,e,t)),!KI(t))return t}),r[1]=t,mI(ER,null,r)}}),!CR[yR]){var WR=CR.valueOf;iR(CR,yR,(function(e){return CI(WR,this)}))}cR(SR,`Symbol`),LL[vR]=!0,oR(`asyncIterator`),oR(`hasInstance`),oR(`isConcatSpreadable`),oR(`iterator`),oR(`match`),oR(`matchAll`),oR(`replace`),oR(`search`),oR(`species`),oR(`split`),oR(`toPrimitive`),oR(`toStringTag`),oR(`unscopables`),cR(uI.JSON,`JSON`,!0);var GR,KR,qR,JR=PI.Symbol,YR={},XR=Function.prototype,ZR=xI&&Object.getOwnPropertyDescriptor,QR=ZI(XR,`name`),$R={EXISTS:QR,PROPER:QR&&function(){}.name===`something`,CONFIGURABLE:QR&&(!xI||xI&&ZR(XR,`name`).configurable)},ez=!bI((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),tz=UL(`IE_PROTO`),nz=uI.Object,rz=nz.prototype,iz=ez?nz.getPrototypeOf:function(e){var t=XI(e);if(ZI(t,tz))return t[tz];var n=t.constructor;return yI(n)&&t instanceof n?n.prototype:t instanceof nz?rz:null},az=nL(`iterator`),oz=!1;[].keys&&(`next`in(qR=[].keys())?(KR=iz(iz(qR)))!==Object.prototype&&(GR=KR):oz=!0),GR=GR==null||bI((function(){var e={};return GR[az].call(e)!==e}))?{}:QL(GR),yI(GR[az])||iR(GR,az,(function(){return this}));var sz={IteratorPrototype:GR,BUGGY_SAFARI_ITERATORS:oz},cz=sz.IteratorPrototype,lz=function(){return this};uI.String,uI.TypeError,Object.setPrototypeOf||`__proto__`in{}&&function(){var e={};try{vI(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set)(e,[]),e instanceof Array}catch{}}();var uz=$R.PROPER,dz=sz.BUGGY_SAFARI_ITERATORS,fz=nL(`iterator`),pz=function(){return this},mz=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=QL(cz,{next:DI(1,n)}),cR(e,i,!1,!0),YR[i]=lz})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!dz&&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[fz]||p[`@@iterator`]||i&&p[i],h=!dz&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=iz(g.call(new e)))!==Object.prototype&&s.next&&(cR(s,d,!0,!0),YR[d]=pz),uz&&i==`values`&&m&&m.name!==`values`&&(f=!0,h=function(){return CI(m,this)}),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(dz||f||!(l in p))&&iR(p,l,c[l]);else gL({target:t,proto:!0,forced:dz||f},c)}return o&&p[fz]!==h&&iR(p,fz,h,{name:i}),YR[t]=h,c},hz=mR.set,gz=mR.getterFor(`Array Iterator`);mz(Array,`Array`,(function(e,t){hz(this,{type:`Array Iterator`,target:MI(e),index:0,kind:t})}),(function(){var e=gz(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`),YR.Arguments=YR.Array;var _z=nL(`toStringTag`);for(var vz 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 yz=uI[vz],bz=yz&&yz.prototype;bz&&CL(bz)!==_z&&hL(bz,_z,vz),YR[vz]=YR.Array}var xz=JR;oR(`asyncDispose`),oR(`dispose`),oR(`matcher`),oR(`metadata`),oR(`observable`),oR(`patternMatch`),oR(`replaceAll`);var Sz=xz,Cz=vI(``.charAt),wz=vI(``.charCodeAt),Tz=vI(``.slice),Ez=function(e){return function(t,n){var r,i,a=PL(jI(t)),o=vL(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=wz(a,o))<55296||r>56319||o+1===s||(i=wz(a,o+1))<56320||i>57343?e?Cz(a,o):r:e?Tz(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),Dz=mR.set,Oz=mR.getterFor(`String Iterator`);mz(String,`String`,(function(e){Dz(this,{type:`String Iterator`,string:PL(e),index:0})}),(function(){var e,t=Oz(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Ez(n,r),t.index+=e.length,{value:e,done:!1})}));var kz=aR.f(`iterator`),Az=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}(BA((function(e){function t(n){return typeof Sz==`function`&&typeof kz==`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 Sz==`function`&&e.constructor===Sz&&e!==Sz.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}))),jz=PM.EXISTS,Mz=dM.f,Nz=Function.prototype,Pz=rj(Nz.toString),Fz=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Iz=rj(Fz.exec);KA&&!jz&&Mz(Nz,`name`,{configurable:!0,get:function(){try{return Iz(Fz,Pz(this))[1]}catch{return``}}});var Lz=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=H.marks(e);return n&&n[t]?n[t]:``},e.prototype.isDisabled=function(e){return e.selection==null||(this.mark,!!YP(H.nodes(e,{match:function(t){return X.getNodeType(t)===`pre`||!!H.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}(),Rz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontSize.title`),t.iconSvg=tfe,t.mark=`fontSize`,t}return WP(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(Az(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}(Lz),zz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`fontFamily.title`),t.iconSvg=nfe,t.mark=`fontFamily`,t.selectPanelWidth=150,t}return WP(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(Az(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}(Lz),Bz={renderStyle:function(e,t){var n=e,r=n.fontSize,i=n.fontFamily,a=t;return r&&kF(a,{fontSize:r}),i&&kF(a,{fontFamily:i}),a},styleToHtml:function(e,t){if(!K.isText(e))return t;var n,r=e,i=r.fontSize,a=r.fontFamily;return i||a?((zP(t)||VP(n=J(t))!==`span`)&&(n=J(`<span>`+t+`</span>`)),i&&n.css(`font-size`,i),a&&n.css(`font-family`,a),BP(n)):t},preParseHtml:[Lpe],parseStyleHtml:function(e,t,n){var r=J(e);if(!K.isText(t))return t;var i=t,a=n.getMenuConfig(`fontSize`).fontSizeList,o=a===void 0?[]:a,s=HP(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=HP(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 Rz},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 zz},config:{fontFamilyList:[`黑体`,{name:`仿宋`,value:`仿宋`},`楷体`,`标楷体`,`华文仿宋`,`华文楷体`,{name:`宋体`,value:`宋体`},`微软雅黑`,`Arial`,`Tahoma`,`Verdana`,`Times New Roman`,`Courier New`]}}]},Vz={selector:`p,h1,h2,h3,h4,h5`,preParseHtml:function(e){var t=J(e),n=HP(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]}},Hz=function(){function e(){this.tag=`button`}return e.prototype.getValue=function(e){var t=YP(H.nodes(e,{match:function(e){return!!e.indent},universal:!0}),1)[0];return t==null?``:YP(t,1)[0].indent||``},e.prototype.isActive=function(e){return!1},e.prototype.getMatchNode=function(e){var t=YP(H.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}(),Uz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.decrease`),t.iconSvg=rfe,t}return WP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!t.indent},t.prototype.exec=function(e,t){q.setNodes(e,{indent:null},{match:function(e){return V.isElement(e)}})},t}(Hz),Wz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`indent.increase`),t.iconSvg=ife,t}return WP(t,e),t.prototype.isDisabled=function(e){var t=this.getMatchNode(e);return t==null||!!t.indent},t.prototype.exec=function(e,t){q.setNodes(e,{indent:`2em`},{match:function(e){return V.isElement(e)},mode:`highest`})},t}(Hz),Gz={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.indent,r=t;return n&&kF(r,{textIndent:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.indent;if(!n)return t;var r=J(t);return r.css(`text-indent`,n),BP(r)},preParseHtml:[Vz],parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=HP(r,`text-indent`);return a&&parseInt(a,10)>0&&(i.indent=a),i},menus:[{key:`indent`,factory:function(){return new Wz}},{key:`delIndent`,factory:function(){return new Uz}}]},Kz=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=YP(H.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(H.isVoid(e,t)&&H.isBlock(e,t))return!0;var n=t.type;return!![`pre`,`code`].includes(n)||void 0}))},e}(),qz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.left`),t.iconSvg=afe,t}return WP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`left`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Kz),Jz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.right`),t.iconSvg=ofe,t}return WP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`right`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Kz),Yz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.center`),t.iconSvg=sfe,t}return WP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`center`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Kz),Xz=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.title=Z(`justify.justify`),t.iconSvg=cfe,t}return WP(t,e),t.prototype.exec=function(e,t){q.setNodes(e,{textAlign:`justify`},{match:function(t){return V.isElement(t)&&!e.isInline(t)}})},t}(Kz),Zz={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.textAlign,r=t;return n&&kF(r,{textAlign:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.textAlign;if(!n)return t;var r=J(t);return r.css(`text-align`,n),BP(r)},parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=HP(r,`text-align`);return a&&(i.textAlign=a),i},menus:[{key:`justifyLeft`,factory:function(){return new qz}},{key:`justifyRight`,factory:function(){return new Jz}},{key:`justifyCenter`,factory:function(){return new Yz}},{key:`justifyJustify`,factory:function(){return new Xz}}]},Qz=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=YP(H.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?``:V.isElement(t)&&t.lineHeight||``},e.prototype.isDisabled=function(e){return e.selection==null||this.getMatchNode(e)==null},e.prototype.exec=function(e,t){q.setNodes(e,{lineHeight:t.toString()},{mode:`highest`})},e}(),$z={renderStyle:function(e,t){if(!V.isElement(e))return t;var n=e.lineHeight,r=t;return n&&kF(r,{lineHeight:n}),r},styleToHtml:function(e,t){if(!V.isElement(e))return t;var n=e.lineHeight;if(!n)return t;var r=J(t);return r.css(`line-height`,n),BP(r)},parseStyleHtml:function(e,t,n){var r=J(e);if(!V.isElement(t))return t;var i=t,a=n.getMenuConfig(`lineHeight`).lineHeightList,o=a===void 0?[]:a,s=HP(r,`line-height`);return s&&o.includes(s)&&(i.lineHeight=s),i},menus:[{key:`lineHeight`,factory:function(){return new Qz},config:{lineHeightList:[`1`,`1.15`,`1.5`,`2`,`2.5`,`3`]}}]},eB=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}(),tB=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}(),nB={menus:[{key:`redo`,factory:function(){return new eB}},{key:`undo`,factory:function(){return new tB}}]},rB={type:`divider`,renderElem:function(e,t,n){return C_(`div`,{props:{contentEditable:!1,className:`w-e-textarea-divider`},dataset:{selected:X.isNodeSelected(n,e)?`true`:``},style:{},on:{mousedown:function(e){return e.preventDefault()}}},[C_(`hr`)])}},iB=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){q.insertNodes(e,{type:`divider`,children:[{text:``}]},{mode:`highest`})},e}(),aB={renderElems:[rB],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 iB}}],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=YP(e,2),i=t[0],a=t[1];if(X.getNodeType(i)!==`divider`)return n([i,a]);X.isLastNode(r,i)&&q.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]})},r}},oB=NN.map;dN({target:`Array`,proto:!0,forced:!FN(`map`)},{map:function(e){return oB(this,e,arguments.length>1?arguments[1]:void 0)}});var sB=rj([].join),cB=lj!=Object,lB=iF(`join`,`,`);dN({target:`Array`,proto:!0,forced:cB||!lB},{join:function(e){return sB(fj(this),e===void 0?`,`:e)}});var uB=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=U.string(t);q.removeNodes(e,{mode:`highest`});var r=n.split(`
`).map((function(e){return{type:`paragraph`,children:[{text:e}]}}));q.insertNodes(e,r,{mode:`highest`})}},e.prototype.changeToCodeBlock=function(e,t){var n,r,i=[],a=H.nodes(e,{match:function(t){return e.children.includes(t)},universal:!0});try{for(var o=JP(a),s=o.next();!s.done;s=o.next()){var c=YP(s.value,1)[0];c&&i.push(U.string(c))}}catch(e){n={error:e}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}q.removeNodes(e,{mode:`highest`});var l={type:`pre`,children:[{type:`code`,language:t,children:[{text:i.join(`
`)}]}]};q.insertNodes(e,l,{mode:`highest`})},e}(),dB={key:`codeBlock`,factory:function(){return new uB}};dN({target:`String`,proto:!0,forced:QP(`anchor`)},{anchor:function(e){return ZP(this,`a`,`name`,e)}}),pP(`match`,(function(e,t,n){return[function(t){var n=dj(this),r=t==null?void 0:Mj(t,e);return r?JA(r,t,n):new RegExp(t)[e](BN(n))},function(e){var r=cM(this),i=BN(e),a=n(t,r,i);if(a.done)return a.value;if(!r.global)return vP(r,i);var o=r.unicode;r.lastIndex=0;for(var s,c=[],l=0;(s=vP(r,i))!==null;){var u=BN(s[0]);c[l]=u,u===``&&(r.lastIndex=hP(i,UM(r.lastIndex),o)),l++}return l===0?null:c}]}));var fB={menus:[dB],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=U.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=YP(e,2),r=t[0],a=t[1],o=X.getNodeType(r);return o===`code`&&a.length<=1&&q.setNodes(i,{type:`paragraph`},{at:a}),o===`pre`&&(X.isLastNode(i,r)&&q.insertNodes(i,X.genEmptyParagraph(),{at:[a[0]+1]}),X.getNodeType(r.children[0])!==`code`&&(q.unwrapNodes(i),q.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`);H.insertText(i,t)}else r(e)},i},renderElems:[{type:`pre`,renderElem:function(e,t,n){return U_(`pre`,null,t)}},{type:`code`,renderElem:function(e,t,n){return U_(`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=J(e);if(VP(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:J(e)[0].textContent||``}]}}},{selector:`pre:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(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`}))}}}]},pB=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}(),mB={menus:[{key:`fullScreen`,factory:function(){return new pB}}]},hB=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||!!G.isExpanded(t)},e.prototype.exec=function(e,t){var n=e.selection;if(n!=null){var r=[n.anchor.path[0]];q.insertNodes(e,{type:`paragraph`,children:[{text:``}]},{at:r}),e.select(H.start(e,r))}},e}(),gB=[yfe,Zfe,Bz,Gz,Zz,$z,xpe,aB,Fpe,cpe,fB,Npe,Kfe,Hde,wpe,nB,mB,{menus:[{key:`enter`,factory:function(){return new hB}}]}];vA(`en`,{listModule:{unOrderedList:`Unordered list`,orderedList:`Ordered list`}}),vA(`zh-CN`,{listModule:{unOrderedList:`无序列表`,orderedList:`有序列表`}});var _B=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function vB(e){var t={exports:{}};return e(t,t.exports),t.exports}var yB,bB,xB=function(e){return e&&e.Math==Math&&e},SB=xB(typeof globalThis==`object`&&globalThis)||xB(typeof window==`object`&&window)||xB(typeof self==`object`&&self)||xB(typeof _B==`object`&&_B)||function(){return this}()||Function(`return this`)(),CB=Function.prototype,wB=CB.bind,TB=CB.call,EB=wB&&wB.bind(TB),DB=wB?function(e){return e&&EB(TB,e)}:function(e){return e&&function(){return TB.apply(e,arguments)}},OB=function(e){try{return!!e()}catch{return!0}},kB=DB({}.toString),AB=DB(``.slice),jB=function(e){return AB(kB(e),8,-1)},MB=SB.Object,NB=DB(``.split),PB=OB((function(){return!MB(`z`).propertyIsEnumerable(0)}))?function(e){return jB(e)==`String`?NB(e,``):MB(e)}:MB,FB=SB.TypeError,IB=function(e){if(e==null)throw FB(`Can't call method on `+e);return e},LB=function(e){return PB(IB(e))},RB=Object.defineProperty,zB=function(e,t){try{RB(SB,e,{value:t,configurable:!0,writable:!0})}catch{SB[e]=t}return t},BB=SB[`__core-js_shared__`]||zB(`__core-js_shared__`,{}),VB=vB((function(e){(e.exports=function(e,t){return BB[e]||(BB[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),HB=SB.Object,UB=function(e){return HB(IB(e))},WB=DB({}.hasOwnProperty),GB=Object.hasOwn||function(e,t){return WB(UB(e),t)},KB=0,qB=Math.random(),JB=DB(1 .toString),YB=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+JB(++KB+qB,36)},XB=function(e){return typeof e==`function`},ZB=function(e){return XB(e)?e:void 0},QB=function(e,t){return arguments.length<2?ZB(SB[e]):SB[e]&&SB[e][t]},$B=QB(`navigator`,`userAgent`)||``,eV=SB.process,tV=SB.Deno,nV=eV&&eV.versions||tV&&tV.version,rV=nV&&nV.v8;rV&&(bB=(yB=rV.split(`.`))[0]>0&&yB[0]<4?1:+(yB[0]+yB[1])),!bB&&$B&&(!(yB=$B.match(/Edge\/(\d+)/))||yB[1]>=74)&&(yB=$B.match(/Chrome\/(\d+)/))&&(bB=+yB[1]);var iV,aV=bB,oV=!!Object.getOwnPropertySymbols&&!OB((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&aV&&aV<41})),sV=oV&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,cV=VB(`wks`),lV=SB.Symbol,uV=lV&&lV.for,dV=sV?lV:lV&&lV.withoutSetter||YB,fV=function(e){if(!GB(cV,e)||!oV&&typeof cV[e]!=`string`){var t=`Symbol.`+e;cV[e]=oV&&GB(lV,e)?lV[e]:sV&&uV?uV(t):dV(t)}return cV[e]},pV=function(e){return typeof e==`object`?e!==null:XB(e)},mV=SB.String,hV=SB.TypeError,gV=function(e){if(pV(e))return e;throw hV(mV(e)+` is not an object`)},_V=!OB((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),vV=SB.document,yV=pV(vV)&&pV(vV.createElement),bV=function(e){return yV?vV.createElement(e):{}},xV=!_V&&!OB((function(){return Object.defineProperty(bV(`div`),"a",{get:function(){return 7}}).a!=7})),SV=Function.prototype.call,CV=SV.bind?SV.bind(SV):function(){return SV.apply(SV,arguments)},wV=DB({}.isPrototypeOf),TV=SB.Object,EV=sV?function(e){return typeof e==`symbol`}:function(e){var t=QB(`Symbol`);return XB(t)&&wV(t.prototype,TV(e))},DV=SB.String,OV=function(e){try{return DV(e)}catch{return`Object`}},kV=SB.TypeError,AV=function(e){if(XB(e))return e;throw kV(OV(e)+` is not a function`)},jV=function(e,t){var n=e[t];return n==null?void 0:AV(n)},MV=SB.TypeError,NV=SB.TypeError,PV=fV(`toPrimitive`),FV=function(e){var t=function(e,t){if(!pV(e)||EV(e))return e;var n,r=jV(e,PV);if(r){if(t===void 0&&(t=`default`),n=CV(r,e,t),!pV(n)||EV(n))return n;throw NV(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&XB(n=e.toString)&&!pV(r=CV(n,e))||XB(n=e.valueOf)&&!pV(r=CV(n,e))||t!==`string`&&XB(n=e.toString)&&!pV(r=CV(n,e)))return r;throw MV(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return EV(t)?t:t+``},IV=SB.TypeError,LV=Object.defineProperty,RV={f:_V?LV:function(e,t,n){if(gV(e),t=FV(t),gV(n),xV)try{return LV(e,t,n)}catch{}if(`get`in n||`set`in n)throw IV(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},zV=Math.ceil,BV=Math.floor,VV=function(e){var t=+e;return t!=t||t===0?0:(t>0?BV:zV)(t)},HV=Math.max,UV=Math.min,WV=function(e,t){var n=VV(e);return n<0?HV(n+t,0):UV(n,t)},GV=Math.min,KV=function(e){return e>0?GV(VV(e),9007199254740991):0},qV=function(e){return KV(e.length)},JV=function(e){return function(t,n,r){var i,a=LB(t),o=qV(a),s=WV(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}},YV={includes:JV(!0),indexOf:JV(!1)},XV={},ZV=YV.indexOf,QV=DB([].push),$V=function(e,t){var n,r=LB(e),i=0,a=[];for(n in r)!GB(XV,n)&&GB(r,n)&&QV(a,n);for(;t.length>i;)GB(r,n=t[i++])&&(~ZV(a,n)||QV(a,n));return a},eH=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],tH=Object.keys||function(e){return $V(e,eH)},nH=_V?Object.defineProperties:function(e,t){gV(e);for(var n,r=LB(t),i=tH(t),a=i.length,o=0;a>o;)RV.f(e,n=i[o++],r[n]);return e},rH=QB(`document`,`documentElement`),iH=VB(`keys`),aH=function(e){return iH[e]||(iH[e]=YB(e))},oH=aH(`IE_PROTO`),sH=function(){},cH=function(e){return`<script>`+e+`<\/script>`},lH=function(e){e.write(cH(``)),e.close();var t=e.parentWindow.Object;return e=null,t},uH=function(){try{iV=new ActiveXObject(`htmlfile`)}catch{}var e,t;uH=typeof document<`u`?document.domain&&iV?lH(iV):((t=bV(`iframe`)).style.display=`none`,rH.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(cH(`document.F=Object`)),e.close(),e.F):lH(iV);for(var n=eH.length;n--;)delete uH.prototype[eH[n]];return uH()};XV[oH]=!0;var dH=Object.create||function(e,t){var n;return e===null?n=uH():(sH.prototype=gV(e),n=new sH,sH.prototype=null,n[oH]=e),t===void 0?n:nH(n,t)},fH=fV(`unscopables`),pH=Array.prototype;pH[fH]??RV.f(pH,fH,{configurable:!0,value:dH(null)});var mH=function(e){pH[fH][e]=!0},hH={},gH=DB(Function.toString);XB(BB.inspectSource)||(BB.inspectSource=function(e){return gH(e)});var _H,vH,yH,bH=BB.inspectSource,xH=SB.WeakMap,SH=XB(xH)&&/native code/.test(bH(xH)),CH=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},wH=_V?function(e,t,n){return RV.f(e,t,CH(1,n))}:function(e,t,n){return e[t]=n,e},TH=SB.TypeError,EH=SB.WeakMap;if(SH||BB.state){var DH=BB.state||=new EH,OH=DB(DH.get),kH=DB(DH.has),AH=DB(DH.set);_H=function(e,t){if(kH(DH,e))throw new TH(`Object already initialized`);return t.facade=e,AH(DH,e,t),t},vH=function(e){return OH(DH,e)||{}},yH=function(e){return kH(DH,e)}}else{var jH=aH(`state`);XV[jH]=!0,_H=function(e,t){if(GB(e,jH))throw new TH(`Object already initialized`);return t.facade=e,wH(e,jH,t),t},vH=function(e){return GB(e,jH)?e[jH]:{}},yH=function(e){return GB(e,jH)}}var MH,NH,PH,FH={set:_H,get:vH,has:yH,enforce:function(e){return yH(e)?vH(e):_H(e,{})},getterFor:function(e){return function(t){var n;if(!pV(t)||(n=vH(t)).type!==e)throw TH(`Incompatible receiver, `+e+` required`);return n}}},IH={}.propertyIsEnumerable,LH=Object.getOwnPropertyDescriptor,RH={f:LH&&!IH.call({1:2},1)?function(e){var t=LH(this,e);return!!t&&t.enumerable}:IH},zH=Object.getOwnPropertyDescriptor,BH={f:_V?zH:function(e,t){if(e=LB(e),t=FV(t),xV)try{return zH(e,t)}catch{}if(GB(e,t))return CH(!CV(RH.f,e,t),e[t])}},VH=Function.prototype,HH=_V&&Object.getOwnPropertyDescriptor,UH=GB(VH,`name`),WH={EXISTS:UH,PROPER:UH&&function(){}.name===`something`,CONFIGURABLE:UH&&(!_V||_V&&HH(VH,`name`).configurable)},GH=vB((function(e){var t=WH.CONFIGURABLE,n=FH.get,r=FH.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;XB(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!GB(a,`name`)||t&&a.name!==d)&&wH(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===SB?l?e[n]=a:zB(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:wH(e,n,a))})(Function.prototype,`toString`,(function(){return XB(this)&&n(this).source||bH(this)}))})),KH=eH.concat(`length`,`prototype`),qH={f:Object.getOwnPropertyNames||function(e){return $V(e,KH)}},JH={f:Object.getOwnPropertySymbols},YH=DB([].concat),XH=QB(`Reflect`,`ownKeys`)||function(e){var t=qH.f(gV(e)),n=JH.f;return n?YH(t,n(e)):t},ZH=function(e,t){for(var n=XH(t),r=RV.f,i=BH.f,a=0;a<n.length;a++){var o=n[a];GB(e,o)||r(e,o,i(t,o))}},QH=/#|\.prototype\./,$H=function(e,t){var n=tU[eU(e)];return n==rU||n!=nU&&(XB(t)?OB(t):!!t)},eU=$H.normalize=function(e){return String(e).replace(QH,`.`).toLowerCase()},tU=$H.data={},nU=$H.NATIVE=`N`,rU=$H.POLYFILL=`P`,iU=$H,aU=BH.f,oU=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?SB:l?SB[s]||zB(s,{}):(SB[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=aU(n,r))&&o.value:n[r],!iU(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ZH(a,i)}(e.sham||i&&i.sham)&&wH(a,`sham`,!0),GH(n,r,a,e)}},sU=!OB((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),cU=aH(`IE_PROTO`),lU=SB.Object,uU=lU.prototype,dU=sU?lU.getPrototypeOf:function(e){var t=UB(e);if(GB(t,cU))return t[cU];var n=t.constructor;return XB(n)&&t instanceof n?n.prototype:t instanceof lU?uU:null},fU=fV(`iterator`),pU=!1;[].keys&&(`next`in(PH=[].keys())?(NH=dU(dU(PH)))!==Object.prototype&&(MH=NH):pU=!0),(MH==null||OB((function(){var e={};return MH[fU].call(e)!==e})))&&(MH={}),XB(MH[fU])||GH(MH,fU,(function(){return this}));var mU={IteratorPrototype:MH,BUGGY_SAFARI_ITERATORS:pU},hU=RV.f,gU=fV(`toStringTag`),_U=function(e,t,n){e&&!GB(e=n?e:e.prototype,gU)&&hU(e,gU,{configurable:!0,value:t})},vU=mU.IteratorPrototype,yU=function(){return this},bU=SB.String,xU=SB.TypeError,SU=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=DB(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return gV(n),function(e){if(typeof e==`object`||XB(e))return e;throw xU(`Can't set `+bU(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),CU=WH.PROPER,wU=WH.CONFIGURABLE,TU=mU.IteratorPrototype,EU=mU.BUGGY_SAFARI_ITERATORS,DU=fV(`iterator`),OU=function(){return this},kU=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=dH(vU,{next:CH(1,n)}),_U(e,i,!1),hH[i]=yU})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!EU&&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[DU]||p[`@@iterator`]||i&&p[i],h=!EU&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=dU(g.call(new e)))!==Object.prototype&&s.next&&(dU(s)!==TU&&(SU?SU(s,TU):XB(s[DU])||GH(s,DU,OU)),_U(s,d,!0)),CU&&i==`values`&&m&&m.name!==`values`&&(wU?wH(p,`name`,`values`):(f=!0,h=function(){return CV(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(EU||f||!(l in p))&&GH(p,l,c[l]);else oU({target:t,proto:!0,forced:EU||f},c)}return p[DU]!==h&&GH(p,DU,h,{name:i}),hH[t]=h,c},AU=FH.set,jU=FH.getterFor(`Array Iterator`),MU=kU(Array,`Array`,(function(e,t){AU(this,{type:`Array Iterator`,target:LB(e),index:0,kind:t})}),(function(){var e=jU(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`);hH.Arguments=hH.Array,mH(`keys`),mH(`values`),mH(`entries`);var NU={};NU[fV(`toStringTag`)]=`z`;var PU=String(NU)===`[object z]`,FU=fV(`toStringTag`),IU=SB.Object,LU=jB(function(){return arguments}())==`Arguments`,RU=PU?jB: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=IU(e),FU))==`string`?n:LU?jB(t):(r=jB(t))==`Object`&&XB(t.callee)?`Arguments`:r},zU=PU?{}.toString:function(){return`[object `+RU(this)+`]`};PU||GH(Object.prototype,`toString`,zU,{unsafe:!0});var BU=SB.String,VU=function(e){if(RU(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return BU(e)},HU=DB(``.charAt),UU=DB(``.charCodeAt),WU=DB(``.slice),GU=function(e){return function(t,n){var r,i,a=VU(IB(t)),o=VV(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=UU(a,o))<55296||r>56319||o+1===s||(i=UU(a,o+1))<56320||i>57343?e?HU(a,o):r:e?WU(a,o,o+2):i-56320+(r-55296<<10)+65536}},KU={codeAt:GU(!1),charAt:GU(!0)},qU=KU.charAt,JU=FH.set,YU=FH.getterFor(`String Iterator`);kU(String,`String`,(function(e){JU(this,{type:`String Iterator`,string:VU(e),index:0})}),(function(){var e,t=YU(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=qU(n,r),t.index+=e.length,{value:e,done:!1})}));var XU=function(e,t,n){for(var r in t)GH(e,r,t[r],n);return e},ZU=SB.Array,QU=Math.max,$U=qH.f,eW=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],tW={f:function(e){return eW&&jB(e)==`Window`?function(e){try{return $U(e)}catch{return function(e,t,n){for(var r,i,a,o,s=qV(e),c=WV(void 0,s),l=WV(s,s),u=ZU(QU(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=FV(i))in r?RV.f(r,o,CH(0,a)):r[o]=a;return u.length=d,u}(eW)}}(e):$U(LB(e))}},nW=OB((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),rW=Object.isExtensible,iW=OB((function(){rW(1)}))||nW?function(e){return!!pV(e)&&(!nW||jB(e)!=`ArrayBuffer`)&&(!rW||rW(e))}:rW,aW=!OB((function(){return Object.isExtensible(Object.preventExtensions({}))})),oW=vB((function(e){var t=RV.f,n=!1,r=YB(`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=qH.f,t=DB([].splice),i={};i[r]=1,e(i).length&&(qH.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},oU({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:tW.f}))},fastKey:function(e,t){if(!pV(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!GB(e,r)){if(!iW(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!GB(e,r)){if(!iW(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return aW&&n&&iW(e)&&!GB(e,r)&&a(e),e}};XV[r]=!0})),sW=DB(DB.bind),cW=function(e,t){return AV(e),t===void 0?e:sW?sW(e,t):function(){return e.apply(t,arguments)}},lW=fV(`iterator`),uW=Array.prototype,dW=fV(`iterator`),fW=function(e){if(e!=null)return jV(e,dW)||jV(e,`@@iterator`)||hH[RU(e)]},pW=SB.TypeError,mW=function(e,t,n){var r,i;gV(e);try{if(!(r=jV(e,`return`))){if(t===`throw`)throw n;return n}r=CV(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return gV(r),n},hW=SB.TypeError,gW=function(e,t){this.stopped=e,this.result=t},_W=gW.prototype,vW=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=cW(t,d),g=function(e){return r&&mW(r,`normal`,e),new gW(!0,e)},_=function(e){return f?(gV(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=fW(e)))throw hW(OV(e)+` is not iterable`);if((u=i)!==void 0&&(hH.Array===u||uW[lW]===u)){for(a=0,o=qV(e);o>a;a++)if((s=_(e[a]))&&wV(_W,s))return s;return new gW(!1)}r=function(e,t){var n=arguments.length<2?fW(e):t;if(AV(n))return gV(CV(n,e));throw pW(OV(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=CV(c,r)).done;){try{s=_(l.value)}catch(e){mW(r,`throw`,e)}if(typeof s==`object`&&s&&wV(_W,s))return s}return new gW(!1)},yW=SB.TypeError,bW=function(e,t){if(wV(t,e))return e;throw yW(`Incorrect invocation`)},xW=fV(`iterator`),SW=!1;try{var CW=0,wW={next:function(){return{done:!!CW++}},return:function(){SW=!0}};wW[xW]=function(){return this},Array.from(wW,(function(){throw 2}))}catch{}var TW=Array.isArray||function(e){return jB(e)==`Array`},EW=function(){},DW=[],OW=QB(`Reflect`,`construct`),kW=/^\s*(?:class|function)\b/,AW=DB(kW.exec),jW=!kW.exec(EW),MW=function(e){if(!XB(e))return!1;try{return OW(EW,DW,e),!0}catch{return!1}},NW=!OW||OB((function(){var e;return MW(MW.call)||!MW(Object)||!MW((function(){e=!0}))||e}))?function(e){if(!XB(e))return!1;switch(RU(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return jW||!!AW(kW,bH(e))}:MW,PW=fV(`species`),FW=SB.Array,IW=function(e,t){return new(function(e){var t;return TW(e)&&(t=e.constructor,(NW(t)&&(t===FW||TW(t.prototype))||pV(t)&&(t=t[PW])===null)&&(t=void 0)),t===void 0?FW:t}(e))(t===0?0:t)},LW=DB([].push),RW=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=UB(c),h=PB(m),g=cW(l,u),_=qV(h),v=0,y=d||IW,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:LW(b,f)}else switch(e){case 4:return!1;case 7:LW(b,f)}}return a?-1:r||i?i:b}},zW={forEach:RW(0),map:RW(1),filter:RW(2),some:RW(3),every:RW(4),find:RW(5),findIndex:RW(6),filterReject:RW(7)},BW=oW.getWeakData,VW=FH.set,HW=FH.getterFor,UW=zW.find,WW=zW.findIndex,GW=DB([].splice),KW=0,qW=function(e){return e.frozen||=new JW},JW=function(){this.entries=[]},YW=function(e,t){return UW(e.entries,(function(e){return e[0]===t}))};JW.prototype={get:function(e){var t=YW(this,e);if(t)return t[1]},has:function(e){return!!YW(this,e)},set:function(e,t){var n=YW(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=WW(this.entries,(function(t){return t[0]===e}));return~t&&GW(this.entries,t,1),!!~t}};var XW,ZW={getConstructor:function(e,t,n,r){var i=e((function(e,i){bW(e,a),VW(e,{type:t,id:KW++,frozen:void 0}),i!=null&&vW(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=HW(t),s=function(e,t,n){var r=o(e),i=BW(gV(t),!0);return!0===i?qW(r).set(t,n):i[r.id]=n,e};return XU(a,{delete:function(e){var t=o(this);if(!pV(e))return!1;var n=BW(e);return!0===n?qW(t).delete(e):n&&GB(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!pV(e))return!1;var n=BW(e);return!0===n?qW(t).has(e):n&&GB(n,t.id)}}),XU(a,n?{get:function(e){var t=o(this);if(pV(e)){var n=BW(e);return!0===n?qW(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}},QW=FH.enforce,$W=!SB.ActiveXObject&&`ActiveXObject`in SB,eG=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},tG=function(e,t,n){var r=e.indexOf(`Map`)!==-1,i=e.indexOf(`Weak`)!==-1,a=r?`set`:`add`,o=SB[e],s=o&&o.prototype,c=o,l={},u=function(e){var t=DB(s[e]);GH(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!pV(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!pV(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!pV(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(iU(e,!XB(o)||!(i||s.forEach&&!OB((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),oW.enable();else if(iU(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=OB((function(){d.has(1)})),m=function(e,t){if(!SW)return!1;var n=!1;try{var r={};r[xW]=function(){return{next:function(){return{done:n=!0}}}},function(e){new o(e)}(r)}catch{}return n}(),h=!i&&OB((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){bW(e,s);var n=function(e,t,n){var r,i;return SU&&XB(r=t.constructor)&&r!==n&&pV(i=r.prototype)&&i!==n.prototype&&SU(e,i),e}(new o,e,c);return t!=null&&vW(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,oU({global:!0,forced:c!=o},l),_U(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,eG,ZW);if(SH&&$W){XW=ZW.getConstructor(eG,`WeakMap`,!0),oW.enable();var nG=tG.prototype,rG=DB(nG.delete),iG=DB(nG.has),aG=DB(nG.get),oG=DB(nG.set);XU(nG,{delete:function(e){if(pV(e)&&!iW(e)){var t=QW(this);return t.frozen||=new XW,rG(this,e)||t.frozen.delete(e)}return rG(this,e)},has:function(e){if(pV(e)&&!iW(e)){var t=QW(this);return t.frozen||=new XW,iG(this,e)||t.frozen.has(e)}return iG(this,e)},get:function(e){if(pV(e)&&!iW(e)){var t=QW(this);return t.frozen||=new XW,iG(this,e)?aG(this,e):t.frozen.get(e)}return aG(this,e)},set:function(e,t){if(pV(e)&&!iW(e)){var n=QW(this);n.frozen||=new XW,iG(this,e)?oG(this,e,t):n.frozen.set(e,t)}else oG(this,e,t);return this}})}var sG={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},cG=bV(`span`).classList,lG=cG&&cG.constructor&&cG.constructor.prototype,uG=lG===Object.prototype?void 0:lG,dG=fV(`iterator`),fG=fV(`toStringTag`),pG=MU.values,mG=function(e,t){if(e){if(e[dG]!==pG)try{wH(e,dG,pG)}catch{e[dG]=pG}if(e[fG]||wH(e,fG,t),sG[t]){for(var n in MU)if(e[n]!==MU[n])try{wH(e,n,MU[n])}catch{e[n]=MU[n]}}}};for(var hG in sG)mG(SB[hG]&&SB[hG].prototype,hG);mG(uG,`DOMTokenList`);var gG=new WeakMap,_G={type:`list-item`,renderElem:function(e,t,n){gG.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=W.previous(u),f=H.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];K.isText(a)&&(t=a)}return t==null?``:t.color||``}(e);return U_(`div`,{style:s},U_(`span`,{contentEditable:!1,style:{marginRight:`0.5em`,color:l},"data-w-e-reserve":!0},c),U_(`span`,null,t))}},vG=function(e,t){return vG=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])},vG(e,t)};function yG(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}vG(e,t),e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}function bG(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 xG(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 SG(e){return H.nodes(e,{at:e.selection||void 0,match:function(t){return X.findPath(e,t).length===1}})}var CG=YV.includes;oU({target:`Array`,proto:!0},{includes:function(e){return CG(this,e,arguments.length>1?arguments[1]:void 0)}}),mH(`includes`);var wG,TG,EG=function(){var e=gV(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},DG=SB.RegExp,OG=OB((function(){var e=DG(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),kG=OG||OB((function(){return!DG(`a`,`y`).sticky})),AG={BROKEN_CARET:OG||OB((function(){var e=DG(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:kG,UNSUPPORTED_Y:OG},jG=SB.RegExp,MG=OB((function(){var e=jG(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),NG=SB.RegExp,PG=OB((function(){var e=NG(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),FG=FH.get,IG=VB(`native-string-replace`,String.prototype.replace),LG=RegExp.prototype.exec,RG=LG,zG=DB(``.charAt),BG=DB(``.indexOf),VG=DB(``.replace),HG=DB(``.slice),UG=(TG=/b*/g,CV(LG,wG=/a/,`a`),CV(LG,TG,`a`),wG.lastIndex!==0||TG.lastIndex!==0),WG=AG.BROKEN_CARET,GG=/()??/.exec(``)[1]!==void 0;(UG||GG||WG||MG||PG)&&(RG=function(e){var t,n,r,i,a,o,s,c=this,l=FG(c),u=VU(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=CV(RG,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=WG&&c.sticky,m=CV(EG,c),h=c.source,g=0,_=u;if(p&&(m=VG(m,`y`,``),BG(m,`g`)===-1&&(m+=`g`),_=HG(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&zG(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),GG&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),UG&&(r=c.lastIndex),i=CV(LG,p?n:c,_),p?i?(i.input=HG(i.input,g),i[0]=HG(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:UG&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),GG&&i&&i.length>1&&CV(IG,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=dH(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var KG=RG;oU({target:`RegExp`,proto:!0,forced:/./.exec!==KG},{exec:KG});var qG=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(H.isVoid(e,t)&&H.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)?q.setNodes(e,{type:`paragraph`,ordered:void 0,level:void 0}):q.setNodes(e,{type:`list-item`,ordered:this.ordered,indent:void 0})},e}(),JG=`<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>`,YG=`<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>`,XG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!1,t.title=Z(`listModule.unOrderedList`),t.iconSvg=JG,t}return yG(t,e),t}(qG),ZG=function(e){function t(){var t=e!==null&&e.apply(this,arguments)||this;return t.ordered=!0,t.title=Z(`listModule.orderedList`),t.iconSvg=YG,t}return yG(t,e),t}(qG),QG={key:`bulletedList`,factory:function(){return new XG}},$G={key:`numberedList`,factory:function(){return new ZG}},eK=[],tK={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=gG.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=W.previous(c),u=H.node(t,l);if(!u)return 0;var d=xG(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+`>`,eK.push(a);var c=function(e){var t=gG.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=W.next(c),u=H.node(t,l);if(!u)return 0;var d=xG(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+=`</`+eK.pop()+`>`;return{html:`<li>`+t+`</li>`,prefix:n,suffix:r}}},nK=fV(`species`),rK=zW.filter;oU({target:`Array`,proto:!0,forced:!(aV>=51||!OB((function(){var e=[];return(e.constructor={})[nK]=function(){return{foo:1}},e.filter(Boolean).foo!==1})))},{filter:function(e){return rK(this,e,arguments.length>1?arguments[1]:void 0)}});var iK=Function.prototype,aK=iK.apply,oK=iK.bind,sK=iK.call,cK=typeof Reflect==`object`&&Reflect.apply||(oK?sK.bind(aK):function(){return sK.apply(aK,arguments)}),lK=(fV(`species`),RegExp.prototype),uK=KU.charAt,dK=function(e,t,n){return t+(n?uK(e,t).length:1)},fK=Math.floor,pK=DB(``.charAt),mK=DB(``.replace),hK=DB(``.slice),gK=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,_K=/\$([$&'`]|\d{1,2})/g,vK=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=_K;return i!==void 0&&(i=UB(i),c=gK),mK(a,c,(function(a,c){var l;switch(pK(c,0)){case`$`:return`$`;case`&`:return e;case"`":return hK(t,0,n);case`'`:return hK(t,o);case`<`:l=i[hK(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=fK(u/10);return d===0?a:d<=s?r[d-1]===void 0?pK(c,1):r[d-1]+pK(c,1):a}l=r[u-1]}return l===void 0?``:l}))},yK=SB.TypeError,bK=function(e,t){var n=e.exec;if(XB(n)){var r=CV(n,e,t);return r!==null&&gV(r),r}if(jB(e)===`RegExp`)return CV(KG,e,t);throw yK(`RegExp#exec called on incompatible receiver`)},xK=fV(`replace`),SK=Math.max,CK=Math.min,wK=DB([].concat),TK=DB([].push),EK=DB(``.indexOf),DK=DB(``.slice),OK=`a`.replace(/./,`$0`)===`$0`,kK=!!/./[xK]&&/./[xK](`a`,`$0`)===``;(function(e,t,n,r){var i=fV(e),a=!OB((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!OB((function(){var e=!1,t=/a/;return t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=DB(/./[i]),c=function(e,t,n){var r=kK?`$`:`$0`;return[function(e,n){var r=IB(this),i=e==null?void 0:jV(e,xK);return i?CV(i,e,r,n):CV(t,VU(r),e,n)},function(e,i){var a=gV(this),o=VU(e);if(typeof i==`string`&&EK(i,r)===-1&&EK(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=XB(i);c||(i=VU(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=bK(a,o);if(f===null||(TK(d,f),!l))break;VU(f[0])===``&&(a.lastIndex=dK(o,KV(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=VU((f=d[g])[0]),v=SK(CK(VV(f.index),o.length),0),y=[],b=1;b<f.length;b++)TK(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=wK([_],y,v,o);x!==void 0&&TK(S,x);var C=VU(cK(i,void 0,S))}else C=vK(_,o,v,y,x,i);v>=h&&(m+=DK(o,h,v)+C,h=v+_.length)}return m+DK(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=DB(e),c=t.exec;return c===KG||c===lK.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));GH(String.prototype,e,c[0]),GH(lK,i,c[1])}})(`replace`,0,!!OB((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!OK||kK);var AK=SB.TypeError,jK=function(e,t,n,r,i,a,o,s){for(var c,l,u=i,d=0,f=!!o&&cW(o,s);d<r;){if(d in n){if(c=f?f(n[d],d,t):n[d],a>0&&TW(c))l=qV(c),u=jK(e,t,c,l,u,a-1)-1;else{if(u>=9007199254740991)throw AK(`Exceed the acceptable array length`);e[u]=c}u++}d++}return u},MK=jK;function NK(e){return e.length?e[0].tagName.toLowerCase():``}oU({target:`Array`,proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,t=UB(this),n=qV(t),r=IW(t,0);return r.length=MK(r,t,t,n,0,e===void 0?1:VV(e)),r}}),mH(`flat`),oU({global:!0},{globalThis:SB}),_g&&(J.fn.append=_g),eg&&(J.fn.attr=eg),yg&&(J.fn.parent=yg);var PK={renderElems:[_G],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(G.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?q.setNodes(i,{level:o-1}):q.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(G.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;q.setNodes(i,{level:l+1});return}}if(G.isExpanded(o)){var u=0,d=!1;try{for(var f=bG(SG(i)),p=f.next();!p.done;p=f.next()){var m=xG(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=bG(SG(i)),g=h.next();!g.done;g=h.next()){var _=xG(g.value,2),v=(m=_[0],_[1]),y=m.level;l=y===void 0?0:y,q.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=xG(e,2),n=t[0],a=t[1],o=X.getNodeType(n);return o!==`bulleted-list`&&o!==`numbered-list`||q.unwrapNodes(i,{at:a}),r([n,a])},i},menus:[QG,$G],elemsToHtml:[tK],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=J(e);return(t=t.filter((function(e){return!!K.isText(e)||!!n.isInline(e)}))).length===0&&(t=[{text:r.text().replace(/\s+/gm,` `)}]),{type:`list-item`,ordered:function(e){return NK(e.parent())===`ol`}(r),level:function(e){for(var t=0,n=e.parent(),r=NK(n);r===`ul`||r===`ol`;)r=NK(n=n.parent()),t++;return t-1}(r),children:t}}}]},FK=Da((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 Ta==`object`&&Ta&&Ta.Object===Object&&Ta,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,I=Function.prototype,ee=Object.prototype,te=T[`__core-js_shared__`],ne=I.toString,L=ee.hasOwnProperty,re=function(){var e=/[^.]+$/.exec(te&&te.keys&&te.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ie=ee.toString,ae=RegExp(`^`+ne.call(L).replace(/[\\^$.*+?()[\]{}|]/g,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),R=O?T.Buffer:void 0,oe=T.Symbol,se=T.Uint8Array,ce=ee.propertyIsEnumerable,le=F.splice,ue=oe?oe.toStringTag:void 0,de=Object.getOwnPropertySymbols,fe=R?R.isBuffer:void 0,pe=function(e,t){return function(n){return e(t(n))}}(Object.keys,Object),me=He(T,`DataView`),he=He(T,`Map`),ge=He(T,`Promise`),_e=He(T,`Set`),ve=He(T,`WeakMap`),ye=He(Object,`create`),be=Ke(me),xe=Ke(he),Se=Ke(ge),Ce=Ke(_e),we=Ke(ve),Te=oe?oe.prototype:void 0,Ee=Te?Te.valueOf:void 0;function De(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 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.__data__=new ke;++t<n;)this.add(e[t])}function je(e){var t=this.__data__=new Oe(e);this.size=t.size}function Me(e,t){var n=Ye(e),r=!n&&Je(e),i=!n&&!r&&Xe(e),a=!n&&!r&&!i&&tt(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&&!L.call(e,l)||o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||Ge(l,c))||s.push(l);return s}function Ne(e,t){for(var n=e.length;n--;)if(qe(e[n][0],t))return n;return-1}function Pe(e){return e==null?e===void 0?`[object Undefined]`:`[object Null]`:ue&&ue in Object(e)?function(e){var t=L.call(e,ue),n=e[ue];try{e[ue]=void 0;var r=!0}catch{}var i=ie.call(e);return r&&(t?e[ue]=n:delete e[ue]),i}(e):function(e){return ie.call(e)}(e)}function Fe(e){return et(e)&&Pe(e)==i}function Ie(e,t,n,r,l){return e===t||(e==null||t==null||!et(e)&&!et(t)?e!=e&&t!=t:function(e,t,n,r,l,p){var _=Ye(e),b=Ye(t),x=_?a:We(e),S=b?a:We(t),C=(x=x==i?f:x)==f,w=(S=S==i?f:S)==f,T=x==S;if(T&&Xe(e)){if(!Xe(t))return!1;_=!0,C=!1}if(T&&!C)return p||=new je,_||tt(e)?ze(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 se(e),new se(t)));case o:case s:case d:return qe(+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=ze(f(e),f(t),r,i,a,l);return l.delete(e),b;case`[object Symbol]`:if(Ee)return Ee.call(e)==Ee.call(t)}return!1}(e,t,x,n,r,l,p);if(!(1&n)){var E=C&&L.call(e,`__wrapped__`),D=w&&L.call(t,`__wrapped__`);if(E||D){var O=E?e.value():e,k=D?t.value():t;return p||=new je,l(O,k,n,r,p)}}return T?(p||=new je,function(e,t,n,r,i,a){var o=1&n,s=Be(e),c=s.length;if(c!=Be(t).length&&!o)return!1;for(var l=c;l--;){var u=s[l];if(!(o?u in t:L.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,Ie,l))}function Le(e){return!(!$e(e)||function(e){return!!re&&re in e}(e))&&(Ze(e)?ae:b).test(Ke(e))}function Re(e){if(n=(t=e)&&t.constructor,r=typeof n==`function`&&n.prototype||ee,t!==r)return pe(e);var t,n,r,i=[];for(var a in Object(e))L.call(e,a)&&a!=`constructor`&&i.push(a);return i}function ze(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 Ae: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 Be(e){return function(e,t,n){var r=t(e);return Ye(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,nt,Ue)}function Ve(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 He(e,t){var n=function(e,t){return e?.[t]}(e,t);return Le(n)?n:void 0}De.prototype.clear=function(){this.__data__=ye?ye(null):{},this.size=0},De.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t},De.prototype.get=function(e){var t=this.__data__;if(ye){var r=t[e];return r===n?void 0:r}return L.call(t,e)?t[e]:void 0},De.prototype.has=function(e){var t=this.__data__;return ye?t[e]!==void 0:L.call(t,e)},De.prototype.set=function(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=ye&&t===void 0?n:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,n=Ne(t,e);return!(n<0)&&(n==t.length-1?t.pop():le.call(t,n,1),--this.size,!0)},Oe.prototype.get=function(e){var t=this.__data__,n=Ne(t,e);return n<0?void 0:t[n][1]},Oe.prototype.has=function(e){return Ne(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var n=this.__data__,r=Ne(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},ke.prototype.clear=function(){this.size=0,this.__data__={hash:new De,map:new(he||Oe),string:new De}},ke.prototype.delete=function(e){var t=Ve(this,e).delete(e);return this.size-=+!!t,t},ke.prototype.get=function(e){return Ve(this,e).get(e)},ke.prototype.has=function(e){return Ve(this,e).has(e)},ke.prototype.set=function(e,t){var n=Ve(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Ae.prototype.add=Ae.prototype.push=function(e){return this.__data__.set(e,n),this},Ae.prototype.has=function(e){return this.__data__.has(e)},je.prototype.clear=function(){this.__data__=new Oe,this.size=0},je.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},je.prototype.get=function(e){return this.__data__.get(e)},je.prototype.has=function(e){return this.__data__.has(e)},je.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var r=n.__data__;if(!he||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new ke(r)}return n.set(e,t),this.size=n.size,this};var Ue=de?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}(de(e),(function(t){return ce.call(e,t)})))}:function(){return[]},We=Pe;function Ge(e,t){return!!(t??=r)&&(typeof e==`number`||x.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e){if(e!=null){try{return ne.call(e)}catch{}try{return e+``}catch{}}return``}function qe(e,t){return e===t||e!=e&&t!=t}(me&&We(new me(new ArrayBuffer(1)))!=y||he&&We(new he)!=u||ge&&We(ge.resolve())!=p||_e&&We(new _e)!=h||ve&&We(new ve)!=_)&&(We=function(e){var t=Pe(e),n=t==f?e.constructor:void 0,r=n?Ke(n):``;if(r)switch(r){case be:return y;case xe:return u;case Se:return p;case Ce:return h;case we:return _}return t});var Je=Fe(function(){return arguments}())?Fe:function(e){return et(e)&&L.call(e,`callee`)&&!ce.call(e,`callee`)},Ye=Array.isArray,Xe=fe||function(){return!1};function Ze(e){if(!$e(e))return!1;var t=Pe(e);return t==l||t==`[object GeneratorFunction]`||t==`[object AsyncFunction]`||t==`[object Proxy]`}function Qe(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=r}function $e(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function et(e){return typeof e==`object`&&!!e}var tt=j?function(e){return function(t){return e(t)}}(j):function(e){return et(e)&&Qe(e.length)&&!!S[Pe(e)]};function nt(e){return(t=e)!=null&&Qe(t.length)&&!Ze(t)?Me(e):Re(e);var t}e.exports=function(e,t){return Ie(e,t)}}));vA(`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`}}),vA(`zh-CN`,{tableModule:{deleteCol:`删除列`,deleteRow:`删除行`,deleteTable:`删除表格`,widthAuto:`宽度自适应`,insertCol:`插入列`,insertRow:`插入行`,insertTable:`插入表格`,header:`表头`}});var IK=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function LK(e){var t={exports:{}};return e(t,t.exports),t.exports}var RK,zK,BK=function(e){return e&&e.Math==Math&&e},VK=BK(typeof globalThis==`object`&&globalThis)||BK(typeof window==`object`&&window)||BK(typeof self==`object`&&self)||BK(typeof IK==`object`&&IK)||function(){return this}()||Function(`return this`)(),HK=function(e){try{return!!e()}catch{return!0}},UK=!HK((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),WK=Function.prototype.call,GK=WK.bind?WK.bind(WK):function(){return WK.apply(WK,arguments)},KK={}.propertyIsEnumerable,qK=Object.getOwnPropertyDescriptor,JK={f:qK&&!KK.call({1:2},1)?function(e){var t=qK(this,e);return!!t&&t.enumerable}:KK},YK=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},XK=Function.prototype,ZK=XK.bind,QK=XK.call,$K=ZK&&ZK.bind(QK),eq=ZK?function(e){return e&&$K(QK,e)}:function(e){return e&&function(){return QK.apply(e,arguments)}},tq=eq({}.toString),nq=eq(``.slice),rq=function(e){return nq(tq(e),8,-1)},iq=VK.Object,aq=eq(``.split),oq=HK((function(){return!iq(`z`).propertyIsEnumerable(0)}))?function(e){return rq(e)==`String`?aq(e,``):iq(e)}:iq,sq=VK.TypeError,cq=function(e){if(e==null)throw sq(`Can't call method on `+e);return e},lq=function(e){return oq(cq(e))},uq=function(e){return typeof e==`function`},dq=function(e){return typeof e==`object`?e!==null:uq(e)},fq=function(e){return uq(e)?e:void 0},pq=function(e,t){return arguments.length<2?fq(VK[e]):VK[e]&&VK[e][t]},mq=eq({}.isPrototypeOf),hq=pq(`navigator`,`userAgent`)||``,gq=VK.process,_q=VK.Deno,vq=gq&&gq.versions||_q&&_q.version,yq=vq&&vq.v8;yq&&(zK=(RK=yq.split(`.`))[0]>0&&RK[0]<4?1:+(RK[0]+RK[1])),!zK&&hq&&(!(RK=hq.match(/Edge\/(\d+)/))||RK[1]>=74)&&(RK=hq.match(/Chrome\/(\d+)/))&&(zK=+RK[1]);var bq=zK,xq=!!Object.getOwnPropertySymbols&&!HK((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bq&&bq<41})),Sq=xq&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Cq=VK.Object,wq=Sq?function(e){return typeof e==`symbol`}:function(e){var t=pq(`Symbol`);return uq(t)&&mq(t.prototype,Cq(e))},Tq=VK.String,Eq=function(e){try{return Tq(e)}catch{return`Object`}},Dq=VK.TypeError,Oq=function(e){if(uq(e))return e;throw Dq(Eq(e)+` is not a function`)},kq=function(e,t){var n=e[t];return n==null?void 0:Oq(n)},Aq=VK.TypeError,jq=Object.defineProperty,Mq=function(e,t){try{jq(VK,e,{value:t,configurable:!0,writable:!0})}catch{VK[e]=t}return t},Nq=VK[`__core-js_shared__`]||Mq(`__core-js_shared__`,{}),Pq=LK((function(e){(e.exports=function(e,t){return Nq[e]||(Nq[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Fq=VK.Object,Iq=function(e){return Fq(cq(e))},Lq=eq({}.hasOwnProperty),Rq=Object.hasOwn||function(e,t){return Lq(Iq(e),t)},zq=0,Bq=Math.random(),Vq=eq(1 .toString),Hq=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Vq(++zq+Bq,36)},Uq=Pq(`wks`),Wq=VK.Symbol,Gq=Wq&&Wq.for,Kq=Sq?Wq:Wq&&Wq.withoutSetter||Hq,qq=function(e){if(!Rq(Uq,e)||!xq&&typeof Uq[e]!=`string`){var t=`Symbol.`+e;Uq[e]=xq&&Rq(Wq,e)?Wq[e]:Sq&&Gq?Gq(t):Kq(t)}return Uq[e]},Jq=VK.TypeError,Yq=qq(`toPrimitive`),Xq=function(e){var t=function(e,t){if(!dq(e)||wq(e))return e;var n,r=kq(e,Yq);if(r){if(t===void 0&&(t=`default`),n=GK(r,e,t),!dq(n)||wq(n))return n;throw Jq(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&uq(n=e.toString)&&!dq(r=GK(n,e))||uq(n=e.valueOf)&&!dq(r=GK(n,e))||t!==`string`&&uq(n=e.toString)&&!dq(r=GK(n,e)))return r;throw Aq(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return wq(t)?t:t+``},Zq=VK.document,Qq=dq(Zq)&&dq(Zq.createElement),$q=function(e){return Qq?Zq.createElement(e):{}},eJ=!UK&&!HK((function(){return Object.defineProperty($q(`div`),"a",{get:function(){return 7}}).a!=7})),tJ=Object.getOwnPropertyDescriptor,nJ={f:UK?tJ:function(e,t){if(e=lq(e),t=Xq(t),eJ)try{return tJ(e,t)}catch{}if(Rq(e,t))return YK(!GK(JK.f,e,t),e[t])}},rJ=VK.String,iJ=VK.TypeError,aJ=function(e){if(dq(e))return e;throw iJ(rJ(e)+` is not an object`)},oJ=VK.TypeError,sJ=Object.defineProperty,cJ={f:UK?sJ:function(e,t,n){if(aJ(e),t=Xq(t),aJ(n),eJ)try{return sJ(e,t,n)}catch{}if(`get`in n||`set`in n)throw oJ(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},lJ=UK?function(e,t,n){return cJ.f(e,t,YK(1,n))}:function(e,t,n){return e[t]=n,e},uJ=eq(Function.toString);uq(Nq.inspectSource)||(Nq.inspectSource=function(e){return uJ(e)});var dJ,fJ,pJ,mJ=Nq.inspectSource,hJ=VK.WeakMap,gJ=uq(hJ)&&/native code/.test(mJ(hJ)),_J=Pq(`keys`),vJ=function(e){return _J[e]||(_J[e]=Hq(e))},yJ={},bJ=VK.TypeError,xJ=VK.WeakMap;if(gJ||Nq.state){var SJ=Nq.state||=new xJ,CJ=eq(SJ.get),wJ=eq(SJ.has),TJ=eq(SJ.set);dJ=function(e,t){if(wJ(SJ,e))throw new bJ(`Object already initialized`);return t.facade=e,TJ(SJ,e,t),t},fJ=function(e){return CJ(SJ,e)||{}},pJ=function(e){return wJ(SJ,e)}}else{var EJ=vJ(`state`);yJ[EJ]=!0,dJ=function(e,t){if(Rq(e,EJ))throw new bJ(`Object already initialized`);return t.facade=e,lJ(e,EJ,t),t},fJ=function(e){return Rq(e,EJ)?e[EJ]:{}},pJ=function(e){return Rq(e,EJ)}}var DJ={set:dJ,get:fJ,has:pJ,enforce:function(e){return pJ(e)?fJ(e):dJ(e,{})},getterFor:function(e){return function(t){var n;if(!dq(t)||(n=fJ(t)).type!==e)throw bJ(`Incompatible receiver, `+e+` required`);return n}}},OJ=Function.prototype,kJ=UK&&Object.getOwnPropertyDescriptor,AJ=Rq(OJ,`name`),jJ={EXISTS:AJ,PROPER:AJ&&function(){}.name===`something`,CONFIGURABLE:AJ&&(!UK||UK&&kJ(OJ,`name`).configurable)},MJ=LK((function(e){var t=jJ.CONFIGURABLE,n=DJ.get,r=DJ.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;uq(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!Rq(a,`name`)||t&&a.name!==d)&&lJ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===VK?l?e[n]=a:Mq(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:lJ(e,n,a))})(Function.prototype,`toString`,(function(){return uq(this)&&n(this).source||mJ(this)}))})),NJ=Math.ceil,PJ=Math.floor,FJ=function(e){var t=+e;return t!=t||t===0?0:(t>0?PJ:NJ)(t)},IJ=Math.max,LJ=Math.min,RJ=function(e,t){var n=FJ(e);return n<0?IJ(n+t,0):LJ(n,t)},zJ=Math.min,BJ=function(e){return e>0?zJ(FJ(e),9007199254740991):0},VJ=function(e){return BJ(e.length)},HJ=function(e){return function(t,n,r){var i,a=lq(t),o=VJ(a),s=RJ(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),UJ=eq([].push),WJ=function(e,t){var n,r=lq(e),i=0,a=[];for(n in r)!Rq(yJ,n)&&Rq(r,n)&&UJ(a,n);for(;t.length>i;)Rq(r,n=t[i++])&&(~HJ(a,n)||UJ(a,n));return a},GJ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],KJ=GJ.concat(`length`,`prototype`),qJ={f:Object.getOwnPropertyNames||function(e){return WJ(e,KJ)}},JJ={f:Object.getOwnPropertySymbols},YJ=eq([].concat),XJ=pq(`Reflect`,`ownKeys`)||function(e){var t=qJ.f(aJ(e)),n=JJ.f;return n?YJ(t,n(e)):t},ZJ=function(e,t){for(var n=XJ(t),r=cJ.f,i=nJ.f,a=0;a<n.length;a++){var o=n[a];Rq(e,o)||r(e,o,i(t,o))}},QJ=/#|\.prototype\./,$J=function(e,t){var n=tY[eY(e)];return n==rY||n!=nY&&(uq(t)?HK(t):!!t)},eY=$J.normalize=function(e){return String(e).replace(QJ,`.`).toLowerCase()},tY=$J.data={},nY=$J.NATIVE=`N`,rY=$J.POLYFILL=`P`,$me=$J,ehe=nJ.f,iY=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?VK:l?VK[s]||Mq(s,{}):(VK[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=ehe(n,r))&&o.value:n[r],!$me(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;ZJ(a,i)}(e.sham||i&&i.sham)&&lJ(a,`sham`,!0),MJ(n,r,a,e)}},aY={};aY[qq(`toStringTag`)]=`z`;var oY=String(aY)===`[object z]`,the=qq(`toStringTag`),nhe=VK.Object,rhe=rq(function(){return arguments}())==`Arguments`,sY=oY?rq: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=nhe(e),the))==`string`?n:rhe?rq(t):(r=rq(t))==`Object`&&uq(t.callee)?`Arguments`:r},ihe=VK.String,cY=function(e){if(sY(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return ihe(e)},ahe=/"/g,ohe=eq(``.replace);iY({target:`String`,proto:!0,forced:HK((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=cY(cq(this)),r=`<a`,(r+=` name="`+ohe(cY(t),ahe,`&quot;`)+`"`)+`>`+n+`</a>`;var t,n,r}});var lY,uY=function(){var e=aJ(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},dY=VK.RegExp,fY=HK((function(){var e=dY(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),she=fY||HK((function(){return!dY(`a`,`y`).sticky})),pY={BROKEN_CARET:fY||HK((function(){var e=dY(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:she,UNSUPPORTED_Y:fY},che=Object.keys||function(e){return WJ(e,GJ)},lhe=UK?Object.defineProperties:function(e,t){aJ(e);for(var n,r=lq(t),i=che(t),a=i.length,o=0;a>o;)cJ.f(e,n=i[o++],r[n]);return e},uhe=pq(`document`,`documentElement`),mY=vJ(`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=$q(`iframe`)).style.display=`none`,uhe.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=GJ.length;n--;)delete vY.prototype[GJ[n]];return vY()};yJ[mY]=!0;var yY,bY,xY=Object.create||function(e,t){var n;return e===null?n=vY():(hY.prototype=aJ(e),n=new hY,hY.prototype=null,n[mY]=e),t===void 0?n:lhe(n,t)},dhe=VK.RegExp,fhe=HK((function(){var e=dhe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),phe=VK.RegExp,mhe=HK((function(){var e=phe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),hhe=DJ.get,ghe=Pq(`native-string-replace`,String.prototype.replace),SY=RegExp.prototype.exec,CY=SY,_he=eq(``.charAt),vhe=eq(``.indexOf),yhe=eq(``.replace),wY=eq(``.slice),TY=(bY=/b*/g,GK(SY,yY=/a/,`a`),GK(SY,bY,`a`),yY.lastIndex!==0||bY.lastIndex!==0),EY=pY.BROKEN_CARET,DY=/()??/.exec(``)[1]!==void 0;(TY||DY||EY||fhe||mhe)&&(CY=function(e){var t,n,r,i,a,o,s,c=this,l=hhe(c),u=cY(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=GK(CY,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=EY&&c.sticky,m=GK(uY,c),h=c.source,g=0,_=u;if(p&&(m=yhe(m,`y`,``),vhe(m,`g`)===-1&&(m+=`g`),_=wY(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&_he(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),DY&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),TY&&(r=c.lastIndex),i=GK(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&&GK(ghe,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 rq(e)==`Array`},AY=function(){},bhe=[],jY=pq(`Reflect`,`construct`),MY=/^\s*(?:class|function)\b/,xhe=eq(MY.exec),She=!MY.exec(AY),NY=function(e){if(!uq(e))return!1;try{return jY(AY,bhe,e),!0}catch{return!1}},PY=!jY||HK((function(){var e;return NY(NY.call)||!NY(Object)||!NY((function(){e=!0}))||e}))?function(e){if(!uq(e))return!1;switch(sY(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return She||!!xhe(MY,mJ(e))}:NY,FY=function(e,t,n){var r=Xq(t);r in e?cJ.f(e,r,YK(0,n)):e[r]=n},Che=qq(`species`),IY=function(e){return bq>=51||!HK((function(){var t=[];return(t.constructor={})[Che]=function(){return{foo:1}},t[e](Boolean).foo!==1}))},whe=eq([].slice),The=IY(`slice`),Ehe=qq(`species`),LY=VK.Array,Dhe=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(H.nodes(e,{match:function(e){return X.checkNodeType(e,`table-cell`)}}),1)[0];if(n){var r=RY(n,2)[1],i=H.start(e,r);if(Nm.equals(t.anchor,i))return!0}return!1}function BY(e,t){var n,r,i=H.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:!The},{slice:function(e,t){var n,r,i,a=lq(this),o=VJ(a),s=RJ(e,o),c=RJ(t===void 0?o:t,o);if(kY(a)&&(n=a.constructor,(PY(n)&&(n===LY||kY(n.prototype))||dq(n)&&(n=n[Ehe])===null)&&(n=void 0),n===LY||n===void 0))return whe(a,s,c);for(r=new(n===void 0?LY:n)(Dhe(c-s,0)),i=0;s<c;s++,i++)s in a&&FY(r,i,a[s]);return r.length=i,r}});var VY=eq(eq.bind),Ohe=qq(`species`),HY=VK.Array,khe=function(e,t){return new(function(e){var t;return kY(e)&&(t=e.constructor,(PY(t)&&(t===HY||kY(t.prototype))||dq(t)&&(t=t[Ohe])===null)&&(t=void 0)),t===void 0?HY:t}(e))(t===0?0:t)},UY=eq([].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=Iq(c),h=oq(m),g=function(e,t){return Oq(e),t===void 0?e:VY?VY(e,t):function(){return e.apply(t,arguments)}}(l,u),_=VJ(h),v=0,y=d||khe,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)},Ahe=GY.map;iY({target:`Array`,proto:!0,forced:!IY(`map`)},{map:function(e){return Ahe(this,e,arguments.length>1?arguments[1]:void 0)}});var jhe=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||MJ(Object.prototype,`toString`,jhe,{unsafe:!0});var Mhe=jJ.PROPER,JY=RegExp.prototype,YY=JY.toString,Nhe=eq(uY),Phe=HK((function(){return YY.call({source:`a`,flags:`b`})!=`/a/b`})),Fhe=Mhe&&YY.name!=`toString`;(Phe||Fhe)&&MJ(RegExp.prototype,`toString`,(function(){var e=aJ(this),t=cY(e.source),n=e.flags;return`/`+t+`/`+cY(n===void 0&&mq(JY,e)&&!(`flags`in JY)?Nhe(e):n)}),{unsafe:!0});var XY=qq(`unscopables`),ZY=Array.prototype;ZY[XY]??cJ.f(ZY,XY,{configurable:!0,value:xY(null)});var Ihe=GY.find,QY=!0;`find`in[]&&[,].find((function(){QY=!1})),iY({target:`Array`,proto:!0,forced:QY},{find:function(e){return Ihe(this,e,arguments.length>1?arguments[1]:void 0)}}),ZY[XY].find=!0;var $Y=Function.prototype,eX=$Y.apply,Lhe=$Y.bind,tX=$Y.call,nX=typeof Reflect==`object`&&Reflect.apply||(Lhe?tX.bind(eX):function(){return tX.apply(eX,arguments)}),Rhe=qq(`species`),rX=RegExp.prototype,iX=function(e,t,n,r){var i=qq(e),a=!HK((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!HK((function(){var t=!1,n=/a/;return e===`split`&&((n={}).constructor={},n.constructor[Rhe]=function(){return n},n.flags=``,n[i]=/./[i]),n.exec=function(){return t=!0,null},n[i](``),!t}));if(!a||!o||n){var s=eq(/./[i]),c=t(i,``[e],(function(e,t,n,r,i){var o=eq(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}}));MJ(String.prototype,e,c[0]),MJ(rX,i,c[1])}r&&lJ(rX[i],`sham`,!0)},zhe=qq(`match`),Bhe=VK.TypeError,Vhe=qq(`species`),Hhe=eq(``.charAt),aX=eq(``.charCodeAt),Uhe=eq(``.slice),Whe=function(e){return function(t,n){var r,i,a=cY(cq(t)),o=FJ(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?Hhe(a,o):r:e?Uhe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),oX=function(e,t,n){return t+(n?Whe(e,t).length:1)},Ghe=VK.Array,Khe=Math.max,sX=function(e,t,n){for(var r=VJ(e),i=RJ(t,r),a=RJ(n===void 0?r:n,r),o=Ghe(Khe(a-i,0)),s=0;i<a;i++,s++)FY(o,s,e[i]);return o.length=s,o},qhe=VK.TypeError,cX=function(e,t){var n=e.exec;if(uq(n)){var r=GK(n,e,t);return r!==null&&aJ(r),r}if(rq(e)===`RegExp`)return GK(OY,e,t);throw qhe(`RegExp#exec called on incompatible receiver`)},lX=pY.UNSUPPORTED_Y,Jhe=Math.min,uX=[].push,Yhe=eq(/./.exec),dX=eq(uX),fX=eq(``.slice);iX(`split`,(function(e,t,n){var 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(cq(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!dq(r=e)||!((i=r[zhe])===void 0?rq(r)==`RegExp`:i))return GK(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=GK(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&&Yhe(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?[]:GK(t,this,e,n)}:t;return[function(t,n){var i=cq(this),a=t==null?void 0:kq(t,e);return a?GK(a,t,i,n):GK(r,cY(i),t,n)},function(e,i){var a=aJ(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=aJ(e).constructor;return r===void 0||(n=aJ(r)[Vhe])==null?t:function(e){if(PY(e))return e;throw Bhe(Eq(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=Jhe(BJ(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}]}),!!HK((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=eq(``.replace),hX=`[`+pX+`]`,Xhe=RegExp(`^`+hX+hX+`*`),Zhe=RegExp(hX+hX+`*$`),gX=function(e){return function(t){var n=cY(cq(t));return 1&e&&(n=mX(n,Xhe,``)),2&e&&(n=mX(n,Zhe,``)),n}},Qhe={start:gX(1),end:gX(2),trim:gX(3)},$he=jJ.PROPER,ege=Qhe.trim;function _X(e){return e.length?e[0].tagName.toLowerCase():``}iY({target:`String`,proto:!0,forced:function(e){return HK((function(){return!!pX[e]()||`​…᠎`[e]()!==`​…᠎`||$he&&pX[e].name!==e}))}(`trim`)},{trim:function(){return ege(this)}}),iY({global:!0},{globalThis:VK}),_g&&(J.fn.append=_g),ig&&(J.fn.on=ig),Og&&(J.fn.focus=Og),eg&&(J.fn.attr=eg),rg&&(J.fn.val=rg),mg&&(J.fn.html=mg),ng&&(J.fn.dataset=ng),Zh&&(J.fn.addClass=Zh),Qh&&(J.fn.removeClass=Qh),Sg&&(J.fn.children=Sg),fg&&(J.fn.each=fg),xg&&(J.fn.find=xg);var vX=!1,yX=0,bX=0,xX=null,SX=null,CX=J(`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=u_((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),q.setNodes(SX,{width:n.toString()},{at:xX})}}),100),tge={type:`table`,renderElem:function(e,t,n){var r=function(e,t){if(e.isDisabled())return!1;var n=e.selection;if(n==null||G.isCollapsed(n))return!0;var r=n.anchor,i=n.focus,a=X.findPath(e,t),o=H.start(e,a),s=H.end(e,a),c=Nm.compare(r,s)<=0&&Nm.compare(r,o)>=0,l=Nm.compare(i,s)<=0&&Nm.compare(i,o)>=0;return!!(c&&l&&W.equals(r.path.slice(0,3),i.path.slice(0,3)))}(n,e),i=e.width,a=i===void 0?`auto`:i;return U_(`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=H.start(n,r),a=n.selection;(a==null||a.anchor.path[0]!==r[0])&&n.select(i)}}}},U_(`table`,{width:a,contentEditable:r},U_(`colgroup`,null,KY(e).map((function(e){var t=e.width;return U_(`col`,{width:t===void 0?`auto`:t})}))),U_(`tbody`,null,t)))}},nge={type:`table-row`,renderElem:function(e,t,n){return U_(`tr`,null,t)}},rge={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?U_(l!==void 0&&l?`th`:`td`,{colSpan:o,rowSpan:c,style:{borderRightWidth:`3px`},on:{mousemove:u_((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):U_(`td`,{colSpan:o,rowSpan:c},t)}},ige={selector:`table`,preParseHtml:function(e){var t=J(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]}},age=GY.filter;iY({target:`Array`,proto:!0,forced:!IY(`filter`)},{filter:function(e){return age(this,e,arguments.length>1?arguments[1]:void 0)}});var oge=Math.floor,EX=eq(``.charAt),sge=eq(``.replace),DX=eq(``.slice),cge=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lge=/\$([$&'`]|\d{1,2})/g,uge=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=lge;return i!==void 0&&(i=Iq(i),c=cge),sge(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=oge(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=qq(`replace`),dge=Math.max,fge=Math.min,pge=eq([].concat),kX=eq([].push),AX=eq(``.indexOf),jX=eq(``.slice),mge=`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=cq(this),i=e==null?void 0:kq(e,OX);return i?GK(i,e,r,n):GK(t,cY(r),e,n)},function(e,i){var a=aJ(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=uq(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,BJ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=cY((f=d[g])[0]),v=dge(fge(FJ(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=pge([_],y,v,o);x!==void 0&&kX(S,x);var C=cY(nX(i,void 0,S))}else C=uge(_,o,v,y,x,i);v>=h&&(m+=jX(o,h,v)+C,h=v+_.length)}return m+jX(o,h)}]}),!!HK((function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:`7`},e},``.replace(e,`$<a>`)!==`7`}))||!mge||MX);var hge={selector:`td:not([data-w-e-type]),th:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(e);(t=t.filter((function(e){return!!K.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}}},gge={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`}))}}},_ge={selector:`table:not([data-w-e-type])`,parseElemHtml:function(e,t,n){var r=J(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`}))}}},vge=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||!G.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=J(`<div class="w-e-panel-content-table"></div>`),r=J(`<span>0 &times; 0</span>`),i=J(`<table></table>`),a=0;a<10;a++){for(var o=J(`<tr></tr>`),s=0;s<10;s++){var c=J(`<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=J(t).dataset(),a=n.x,o=n.y;r[0].innerHTML=a+1+` &times; `+(o+1),i.children().each((function(e){J(e).children().each((function(e){var t=J(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=J(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)&&q.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);q.insertNodes(e,a,{mode:`highest`})}},e}(),yge=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)||q.removeNodes(e,{mode:`highest`})},e}(),bge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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=W.parent(i),l=W.next(c);q.insertNodes(e,o,{at:l})}}},e}(),xge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table-row`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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?q.removeNodes(e,{mode:`highest`}):q.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=$q(`span`).classList,FX=PX&&PX.constructor&&PX.constructor.prototype,Sge=FX===Object.prototype?void 0:FX,Cge=GY.forEach,IX=function(e,t){var n=[].forEach;return!!n&&HK((function(){n.call(null,(function(){throw 1}),1)}))}()?[].forEach:function(e){return Cge(this,e,arguments.length>1?arguments[1]:void 0)},LX=function(e){if(e&&e.forEach!==IX)try{lJ(e,`forEach`,IX)}catch{e.forEach=IX}};for(var RX in NX)NX[RX]&&LX(VK[RX]&&VK[RX].prototype);LX(Sge);var wge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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){V.isElement(t)&&(t.children||[]).forEach((function(t){var r=X.findPath(e,t);if(r.length===i.length&&FK(r.slice(-1),i.slice(-1))){var a={type:`table-cell`,children:[{text:``}]};n===0&&qY(o)&&(a.isHeader=!0),q.insertNodes(e,a,{at:r})}}))}))}}},e}(),Tge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table-cell`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n=RY(RY(H.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)q.removeNodes(e,{mode:`highest`});else{var s=X.getParentNode(e,a);s!=null&&(s.children||[]).forEach((function(t){V.isElement(t)&&(t.children||[]).forEach((function(t){var n=X.findPath(e,t);n.length===i.length&&FK(n.slice(-1),i.slice(-1))&&q.removeNodes(e,{at:n})}))}))}}},e}(),Ege=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||!G.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 q.setNodes(e,{isHeader:n},{at:X.findPath(e,t)})}))}},e}(),Dge=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||!G.isCollapsed(t)||X.getSelectedNodeByType(e,`table`)==null},e.prototype.exec=function(e,t){if(!this.isDisabled(e)){var n={width:t?`auto`:`100%`};q.setNodes(e,n,{mode:`highest`})}},e}(),Oge={renderElems:[tge,nge,rge],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:[ige],parseElemsHtml:[hge,gge,_ge],menus:[{key:`insertTable`,factory:function(){return new vge}},{key:`deleteTable`,factory:function(){return new yge}},{key:`insertTableRow`,factory:function(){return new bge}},{key:`deleteTableRow`,factory:function(){return new xge}},{key:`insertTableCol`,factory:function(){return new wge}},{key:`deleteTableCol`,factory:function(){return new Tge}},{key:`tableHeader`,factory:function(){return new Ege}},{key:`tableFullWidth`,factory:function(){return new Dge}}],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=H.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=H.above(e);X.checkNodeType(t[0],`table-cell`)&&q.select(e,t[1]);var n=H.next(e);if(n)n[0]&&n[0].text&&(n=H.above(e,{at:n[1]})??n),q.select(e,n[1]);else{var r=c.children||[],i=r.length;if(X.checkNodeType(r[i-1],`table`)){var a=X.genEmptyParagraph();q.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();q.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):H.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(W.equals(n.path.slice(0,3),r.path.slice(0,3))){if(U.string(t).length!==0){var i=X.findPath(c,t),a={anchor:H.start(c,i),focus:H.end(c,i)};c.select(a)}else s()}else s()}else s()}else s()},c}};vA(`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`}}),vA(`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 kge(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,Age={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,jge=nZ&&nZ.bind(rZ),iZ=nZ?function(e){return e&&jge(rZ,e)}:function(e){return e&&function(){return rZ.apply(e,arguments)}},Mge=iZ({}.toString),aZ=iZ(``.slice),oZ=function(e){return aZ(Mge(e),8,-1)},sZ=Q.Object,Nge=iZ(``.split),cZ=JX((function(){return!sZ(`z`).propertyIsEnumerable(0)}))?function(e){return oZ(e)==`String`?Nge(e,``):sZ(e)}:sZ,Pge=Q.TypeError,lZ=function(e){if(e==null)throw Pge(`Can't call method on `+e);return e},uZ=function(e){return cZ(lZ(e))},dZ=function(e){return typeof e==`function`},fZ=function(e){return typeof e==`object`?e!==null:dZ(e)},Fge=function(e){return dZ(e)?e:void 0},pZ=function(e,t){return arguments.length<2?Fge(Q[e]):Q[e]&&Q[e][t]},mZ=iZ({}.isPrototypeOf),hZ=pZ(`navigator`,`userAgent`)||``,gZ=Q.process,_Z=Q.Deno,vZ=gZ&&gZ.versions||_Z&&_Z.version,yZ=vZ&&vZ.v8;yZ&&(KX=(GX=yZ.split(`.`))[0]>0&&GX[0]<4?1:+(GX[0]+GX[1])),!KX&&hZ&&(!(GX=hZ.match(/Edge\/(\d+)/))||GX[1]>=74)&&(GX=hZ.match(/Chrome\/(\d+)/))&&(KX=+GX[1]);var bZ=KX,xZ=!!Object.getOwnPropertySymbols&&!JX((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&bZ&&bZ<41})),SZ=xZ&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Ige=Q.Object,CZ=SZ?function(e){return typeof e==`symbol`}:function(e){var t=pZ(`Symbol`);return dZ(t)&&mZ(t.prototype,Ige(e))},Lge=Q.String,wZ=function(e){try{return Lge(e)}catch{return`Object`}},Rge=Q.TypeError,TZ=function(e){if(dZ(e))return e;throw Rge(wZ(e)+` is not a function`)},EZ=function(e,t){var n=e[t];return n==null?void 0:TZ(n)},zge=Q.TypeError,Bge=Object.defineProperty,DZ=function(e,t){try{Bge(Q,e,{value:t,configurable:!0,writable:!0})}catch{Q[e]=t}return t},OZ=Q[`__core-js_shared__`]||DZ(`__core-js_shared__`,{}),kZ=WX((function(e){(e.exports=function(e,t){return OZ[e]||(OZ[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Vge=Q.Object,AZ=function(e){return Vge(lZ(e))},Hge=iZ({}.hasOwnProperty),jZ=Object.hasOwn||function(e,t){return Hge(AZ(e),t)},Uge=0,Wge=Math.random(),Gge=iZ(1 .toString),MZ=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Gge(++Uge+Wge,36)},NZ=kZ(`wks`),PZ=Q.Symbol,FZ=PZ&&PZ.for,Kge=SZ?PZ:PZ&&PZ.withoutSetter||MZ,IZ=function(e){if(!jZ(NZ,e)||!xZ&&typeof NZ[e]!=`string`){var t=`Symbol.`+e;NZ[e]=xZ&&jZ(PZ,e)?PZ[e]:SZ&&FZ?FZ(t):Kge(t)}return NZ[e]},qge=Q.TypeError,Jge=IZ(`toPrimitive`),LZ=function(e){var t=function(e,t){if(!fZ(e)||CZ(e))return e;var n,r=EZ(e,Jge);if(r){if(t===void 0&&(t=`default`),n=ZX(r,e,t),!fZ(n)||CZ(n))return n;throw qge(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&dZ(n=e.toString)&&!fZ(r=ZX(n,e))||dZ(n=e.valueOf)&&!fZ(r=ZX(n,e))||t!==`string`&&dZ(n=e.toString)&&!fZ(r=ZX(n,e)))return r;throw zge(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return CZ(t)?t:t+``},RZ=Q.document,Yge=fZ(RZ)&&fZ(RZ.createElement),zZ=function(e){return Yge?RZ.createElement(e):{}},BZ=!YX&&!JX((function(){return Object.defineProperty(zZ(`div`),"a",{get:function(){return 7}}).a!=7})),VZ=Object.getOwnPropertyDescriptor,HZ={f:YX?VZ:function(e,t){if(e=uZ(e),t=LZ(t),BZ)try{return VZ(e,t)}catch{}if(jZ(e,t))return eZ(!ZX(Age.f,e,t),e[t])}},Xge=Q.String,Zge=Q.TypeError,UZ=function(e){if(fZ(e))return e;throw Zge(Xge(e)+` is not an object`)},Qge=Q.TypeError,WZ=Object.defineProperty,GZ={f:YX?WZ:function(e,t,n){if(UZ(e),t=LZ(t),UZ(n),BZ)try{return WZ(e,t,n)}catch{}if(`get`in n||`set`in n)throw Qge(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},KZ=YX?function(e,t,n){return GZ.f(e,t,eZ(1,n))}:function(e,t,n){return e[t]=n,e},$ge=iZ(Function.toString);dZ(OZ.inspectSource)||(OZ.inspectSource=function(e){return $ge(e)});var qZ,JZ,YZ,XZ=OZ.inspectSource,ZZ=Q.WeakMap,QZ=dZ(ZZ)&&/native code/.test(XZ(ZZ)),$Z=kZ(`keys`),eQ=function(e){return $Z[e]||($Z[e]=MZ(e))},tQ={},nQ=Q.TypeError,e_e=Q.WeakMap;if(QZ||OZ.state){var rQ=OZ.state||=new e_e,t_e=iZ(rQ.get),iQ=iZ(rQ.has),n_e=iZ(rQ.set);qZ=function(e,t){if(iQ(rQ,e))throw new nQ(`Object already initialized`);return t.facade=e,n_e(rQ,e,t),t},JZ=function(e){return t_e(rQ,e)||{}},YZ=function(e){return iQ(rQ,e)}}else{var aQ=eQ(`state`);tQ[aQ]=!0,qZ=function(e,t){if(jZ(e,aQ))throw new nQ(`Object already initialized`);return t.facade=e,KZ(e,aQ,t),t},JZ=function(e){return jZ(e,aQ)?e[aQ]:{}},YZ=function(e){return jZ(e,aQ)}}var oQ={set:qZ,get:JZ,has:YZ,enforce:function(e){return YZ(e)?JZ(e):qZ(e,{})},getterFor:function(e){return function(t){var n;if(!fZ(t)||(n=JZ(t)).type!==e)throw nQ(`Incompatible receiver, `+e+` required`);return n}}},sQ=Function.prototype,r_e=YX&&Object.getOwnPropertyDescriptor,cQ=jZ(sQ,`name`),lQ={EXISTS:cQ,PROPER:cQ&&function(){}.name===`something`,CONFIGURABLE:cQ&&(!YX||YX&&r_e(sQ,`name`).configurable)},uQ=WX((function(e){var t=lQ.CONFIGURABLE,n=oQ.get,r=oQ.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;dZ(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!jZ(a,`name`)||t&&a.name!==d)&&KZ(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===Q?l?e[n]=a:DZ(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:KZ(e,n,a))})(Function.prototype,`toString`,(function(){return dZ(this)&&n(this).source||XZ(this)}))})),i_e=Math.ceil,a_e=Math.floor,dQ=function(e){var t=+e;return t!=t||t===0?0:(t>0?a_e:i_e)(t)},o_e=Math.max,s_e=Math.min,fQ=function(e,t){var n=dQ(e);return n<0?o_e(n+t,0):s_e(n,t)},c_e=Math.min,pQ=function(e){return e>0?c_e(dQ(e),9007199254740991):0},mQ=function(e){return pQ(e.length)},hQ=function(e){return function(t,n,r){var i,a=uZ(t),o=mQ(a),s=fQ(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}},gQ={includes:hQ(!0),indexOf:hQ(!1)},l_e=gQ.indexOf,_Q=iZ([].push),vQ=function(e,t){var n,r=uZ(e),i=0,a=[];for(n in r)!jZ(tQ,n)&&jZ(r,n)&&_Q(a,n);for(;t.length>i;)jZ(r,n=t[i++])&&(~l_e(a,n)||_Q(a,n));return a},yQ=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],u_e=yQ.concat(`length`,`prototype`),bQ={f:Object.getOwnPropertyNames||function(e){return vQ(e,u_e)}},d_e={f:Object.getOwnPropertySymbols},f_e=iZ([].concat),p_e=pZ(`Reflect`,`ownKeys`)||function(e){var t=bQ.f(UZ(e)),n=d_e.f;return n?f_e(t,n(e)):t},m_e=function(e,t){for(var n=p_e(t),r=GZ.f,i=HZ.f,a=0;a<n.length;a++){var o=n[a];jZ(e,o)||r(e,o,i(t,o))}},h_e=/#|\.prototype\./,xQ=function(e,t){var n=__e[g_e(e)];return n==y_e||n!=v_e&&(dZ(t)?JX(t):!!t)},g_e=xQ.normalize=function(e){return String(e).replace(h_e,`.`).toLowerCase()},__e=xQ.data={},v_e=xQ.NATIVE=`N`,y_e=xQ.POLYFILL=`P`,SQ=xQ,b_e=HZ.f,CQ=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]||DZ(s,{}):(Q[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=b_e(n,r))&&o.value:n[r],!SQ(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;m_e(a,i)}(e.sham||i&&i.sham)&&KZ(a,`sham`,!0),uQ(n,r,a,e)}},wQ={};wQ[IZ(`toStringTag`)]=`z`;var TQ=String(wQ)===`[object z]`,x_e=IZ(`toStringTag`),S_e=Q.Object,C_e=oZ(function(){return arguments}())==`Arguments`,EQ=TQ?oZ: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=S_e(e),x_e))==`string`?n:C_e?oZ(t):(r=oZ(t))==`Object`&&dZ(t.callee)?`Arguments`:r},w_e=Q.String,DQ=function(e){if(EQ(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return w_e(e)},OQ=`
\v\f\r \xA0               \u2028\u2029`,kQ=iZ(``.replace),AQ=`[`+OQ+`]`,T_e=RegExp(`^`+AQ+AQ+`*`),E_e=RegExp(AQ+AQ+`*$`),jQ=function(e){return function(t){var n=DQ(lZ(t));return 1&e&&(n=kQ(n,T_e,``)),2&e&&(n=kQ(n,E_e,``)),n}},D_e={start:jQ(1),end:jQ(2),trim:jQ(3)},O_e=lQ.PROPER,k_e=D_e.trim;function MQ(e){return e.length?e[0].tagName.toLowerCase():``}function NQ(e,t,n){t===void 0&&(t=`auto`),n===void 0&&(n=`auto`);var r=J(e);return r.attr(`width`,t),r.attr(`height`,n),r[0].outerHTML}CQ({target:`String`,proto:!0,forced:JX((function(){return!!OQ.trim()||O_e&&OQ.trim.name!==`trim`}))},{trim:function(){return k_e(this)}}),CQ({global:!0},{globalThis:Q}),_g&&(J.fn.append=_g),ig&&(J.fn.on=ig),Og&&(J.fn.focus=Og),eg&&(J.fn.attr=eg),rg&&(J.fn.val=rg),mg&&(J.fn.html=mg),yg&&(J.fn.parent=yg),$h&&(J.fn.hasClass=$h),wg&&(J.fn.empty=wg);var PQ,A_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=U_(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``,innerHTML:NQ(o,u,f)});else{var m=U_(`video`,{poster:c,controls:!0},U_(`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=U_(`div`,{className:`w-e-textarea-video-container`,"data-selected":p?`true`:``},m)}return C_(`div`,{props:{contentEditable:!1},on:{mousedown:function(e){return e.preventDefault()}}},r)}},j_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+=NQ(i,c,u):d+=`<video poster="`+o+`" controls="true" width="`+c+`" height="`+u+`"><source src="`+i+`" type="video/mp4"/></video>`,d+`
</div>`}},M_e=Object.keys||function(e){return vQ(e,yQ)},N_e=YX?Object.defineProperties:function(e,t){UZ(e);for(var n,r=uZ(t),i=M_e(t),a=i.length,o=0;a>o;)GZ.f(e,n=i[o++],r[n]);return e},FQ=pZ(`document`,`documentElement`),IQ=eQ(`IE_PROTO`),LQ=function(){},RQ=function(e){return`<script>`+e+`<\/script>`},zQ=function(e){e.write(RQ(``)),e.close();var t=e.parentWindow.Object;return e=null,t},BQ=function(){try{PQ=new ActiveXObject(`htmlfile`)}catch{}var e,t;BQ=typeof document<`u`?document.domain&&PQ?zQ(PQ):((t=zZ(`iframe`)).style.display=`none`,FQ.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(RQ(`document.F=Object`)),e.close(),e.F):zQ(PQ);for(var n=yQ.length;n--;)delete BQ.prototype[yQ[n]];return BQ()};tQ[IQ]=!0;var VQ=Object.create||function(e,t){var n;return e===null?n=BQ():(LQ.prototype=UZ(e),n=new LQ,LQ.prototype=null,n[IQ]=e),t===void 0?n:N_e(n,t)},HQ=IZ(`unscopables`),UQ=Array.prototype;UQ[HQ]??GZ.f(UQ,HQ,{configurable:!0,value:VQ(null)});var WQ=function(e){UQ[HQ][e]=!0},P_e=gQ.includes;CQ({target:`Array`,proto:!0},{includes:function(e){return P_e(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`includes`);var F_e={selector:`iframe,video,p`,preParseHtml:function(e){var t=J(e),n=t;if(MQ(t)===`p`){var r=t.children();if(r.length===1){var i=r[0],a=i.tagName.toLowerCase();[`iframe`,`video`].includes(a)&&(n=J(i))}}var o=MQ(n);if(o!==`iframe`&&o!==`video`||n.parent().attr(`data-w-e-type`)===`video`)return n[0];var s=J(`<div data-w-e-type="video" data-w-e-is-void></div>`);return s.append(n),s[0]}},GQ=iZ(iZ.bind),KQ=function(e,t){return TZ(e),t===void 0?e:GQ?GQ(e,t):function(){return e.apply(t,arguments)}},qQ=Array.isArray||function(e){return oZ(e)==`Array`},JQ=function(){},I_e=[],YQ=pZ(`Reflect`,`construct`),XQ=/^\s*(?:class|function)\b/,L_e=iZ(XQ.exec),R_e=!XQ.exec(JQ),ZQ=function(e){if(!dZ(e))return!1;try{return YQ(JQ,I_e,e),!0}catch{return!1}},QQ=!YQ||JX((function(){var e;return ZQ(ZQ.call)||!ZQ(Object)||!ZQ((function(){e=!0}))||e}))?function(e){if(!dZ(e))return!1;switch(EQ(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return R_e||!!L_e(XQ,XZ(e))}:ZQ,z_e=IZ(`species`),$Q=Q.Array,B_e=function(e,t){return new(function(e){var t;return qQ(e)&&(t=e.constructor,(QQ(t)&&(t===$Q||qQ(t.prototype))||fZ(t)&&(t=t[z_e])===null)&&(t=void 0)),t===void 0?$Q:t}(e))(t===0?0:t)},e$=iZ([].push),t$=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=AZ(c),h=cZ(m),g=KQ(l,u),_=mQ(h),v=0,y=d||B_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:e$(b,f)}else switch(e){case 4:return!1;case 7:e$(b,f)}}return a?-1:r||i?i:b}},n$={forEach:t$(0),map:t$(1),filter:t$(2),some:t$(3),every:t$(4),find:t$(5),findIndex:t$(6),filterReject:t$(7)},V_e=n$.find,r$=!0;`find`in[]&&[,].find((function(){r$=!1})),CQ({target:`Array`,proto:!0,forced:r$},{find:function(e){return V_e(this,e,arguments.length>1?arguments[1]:void 0)}}),WQ(`find`);var H_e=TQ?{}.toString:function(){return`[object `+EQ(this)+`]`};function i$(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:``}]}}TQ||uQ(Object.prototype,`toString`,H_e,{unsafe:!0});var a$,o$,U_e={selector:`div[data-w-e-type="video"]`,parseElemHtml:function(e,t,n){var r=J(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`,i$(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`,i$(i,a=l.attr(`poster`)||``,o,s)}},s$=function(){var e=UZ(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},c$=Q.RegExp,l$=JX((function(){var e=c$(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),W_e=l$||JX((function(){return!c$(`a`,`y`).sticky})),G_e={BROKEN_CARET:l$||JX((function(){var e=c$(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:W_e,UNSUPPORTED_Y:l$},K_e=Q.RegExp,q_e=JX((function(){var e=K_e(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),J_e=Q.RegExp,Y_e=JX((function(){var e=J_e(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),X_e=oQ.get,Z_e=kZ(`native-string-replace`,String.prototype.replace),u$=RegExp.prototype.exec,d$=u$,Q_e=iZ(``.charAt),$_e=iZ(``.indexOf),eve=iZ(``.replace),f$=iZ(``.slice),p$=(o$=/b*/g,ZX(u$,a$=/a/,`a`),ZX(u$,o$,`a`),a$.lastIndex!==0||o$.lastIndex!==0),m$=G_e.BROKEN_CARET,h$=/()??/.exec(``)[1]!==void 0;(p$||h$||m$||q_e||Y_e)&&(d$=function(e){var t,n,r,i,a,o,s,c=this,l=X_e(c),u=DQ(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=ZX(d$,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=m$&&c.sticky,m=ZX(s$,c),h=c.source,g=0,_=u;if(p&&(m=eve(m,`y`,``),$_e(m,`g`)===-1&&(m+=`g`),_=f$(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Q_e(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),h$&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),p$&&(r=c.lastIndex),i=ZX(u$,p?n:c,_),p?i?(i.input=f$(i.input,g),i[0]=f$(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:p$&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),h$&&i&&i.length>1&&ZX(Z_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=VQ(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var g$=d$;CQ({target:`RegExp`,proto:!0,forced:/./.exec!==g$},{exec:g$});var _$=Function.prototype,v$=_$.apply,tve=_$.bind,y$=_$.call,b$=typeof Reflect==`object`&&Reflect.apply||(tve?y$.bind(v$):function(){return y$.apply(v$,arguments)}),x$=(IZ(`species`),RegExp.prototype),nve=iZ(``.charAt),S$=iZ(``.charCodeAt),rve=iZ(``.slice),C$=function(e){return function(t,n){var r,i,a=DQ(lZ(t)),o=dQ(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=S$(a,o))<55296||r>56319||o+1===s||(i=S$(a,o+1))<56320||i>57343?e?nve(a,o):r:e?rve(a,o,o+2):i-56320+(r-55296<<10)+65536}},w$={codeAt:C$(!1),charAt:C$(!0)},ive=w$.charAt,ave=function(e,t,n){return t+(n?ive(e,t).length:1)},ove=Math.floor,T$=iZ(``.charAt),sve=iZ(``.replace),E$=iZ(``.slice),cve=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,lve=/\$([$&'`]|\d{1,2})/g,uve=function(e,t,n,r,i,a){var o=n+e.length,s=r.length,c=lve;return i!==void 0&&(i=AZ(i),c=cve),sve(a,c,(function(a,c){var l;switch(T$(c,0)){case`$`:return`$`;case`&`:return e;case"`":return E$(t,0,n);case`'`:return E$(t,o);case`<`:l=i[E$(c,1,-1)];break;default:var u=+c;if(u===0)return a;if(u>s){var d=ove(u/10);return d===0?a:d<=s?r[d-1]===void 0?T$(c,1):r[d-1]+T$(c,1):a}l=r[u-1]}return l===void 0?``:l}))},dve=Q.TypeError,fve=function(e,t){var n=e.exec;if(dZ(n)){var r=ZX(n,e,t);return r!==null&&UZ(r),r}if(oZ(e)===`RegExp`)return ZX(g$,e,t);throw dve(`RegExp#exec called on incompatible receiver`)},D$=IZ(`replace`),pve=Math.max,mve=Math.min,hve=iZ([].concat),O$=iZ([].push),k$=iZ(``.indexOf),A$=iZ(``.slice),gve=`a`.replace(/./,`$0`)===`$0`,j$=!!/./[D$]&&/./[D$](`a`,`$0`)===``;function M$(e){return e===void 0&&(e=`r`),e+`-`+Jg()}(function(e,t,n,r){var i=IZ(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=j$?`$`:`$0`;return[function(e,n){var r=lZ(this),i=e==null?void 0:EZ(e,D$);return i?ZX(i,e,r,n):ZX(t,DQ(r),e,n)},function(e,i){var a=UZ(this),o=DQ(e);if(typeof i==`string`&&k$(i,r)===-1&&k$(i,`$<`)===-1){var s=n(t,a,o,i);if(s.done)return s.value}var c=dZ(i);c||(i=DQ(i));var l=a.global;if(l){var u=a.unicode;a.lastIndex=0}for(var d=[];;){var f=fve(a,o);if(f===null||(O$(d,f),!l))break;DQ(f[0])===``&&(a.lastIndex=ave(o,pQ(a.lastIndex),u))}for(var p,m=``,h=0,g=0;g<d.length;g++){for(var _=DQ((f=d[g])[0]),v=pve(mve(dQ(f.index),o.length),0),y=[],b=1;b<f.length;b++)O$(y,(p=f[b])===void 0?p:String(p));var x=f.groups;if(c){var S=hve([_],y,v,o);x!==void 0&&O$(S,x);var C=DQ(b$(i,void 0,S))}else C=uve(_,o,v,y,x,i);v>=h&&(m+=A$(o,h,v)+C,h=v+_.length)}return m+A$(o,h)}]}(0,``[e],(function(e,t,n,r,i){var o=iZ(e),c=t.exec;return c===g$||c===x$.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));uQ(String.prototype,e,c[0]),uQ(x$,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`}))||!gve||j$);var N$=Q.Promise,P$=function(e,t,n){for(var r in t)uQ(e,r,t[r],n);return e},_ve=Q.String,vve=Q.TypeError,F$=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 UZ(n),function(e){if(typeof e==`object`||dZ(e))return e;throw vve(`Can't set `+_ve(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),yve=GZ.f,I$=IZ(`toStringTag`),L$=function(e,t,n){e&&!jZ(e=n?e:e.prototype,I$)&&yve(e,I$,{configurable:!0,value:t})},R$=IZ(`species`),bve=Q.TypeError,z$=function(e,t){if(mZ(t,e))return e;throw bve(`Incorrect invocation`)},B$={},xve=IZ(`iterator`),Sve=Array.prototype,Cve=IZ(`iterator`),V$=function(e){if(e!=null)return EZ(e,Cve)||EZ(e,`@@iterator`)||B$[EQ(e)]},wve=Q.TypeError,H$=function(e,t,n){var r,i;UZ(e);try{if(!(r=EZ(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 UZ(r),n},Tve=Q.TypeError,U$=function(e,t){this.stopped=e,this.result=t},W$=U$.prototype,G$=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=KQ(t,d),g=function(e){return r&&H$(r,`normal`,e),new U$(!0,e)},_=function(e){return f?(UZ(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=V$(e)))throw Tve(wZ(e)+` is not iterable`);if((u=i)!==void 0&&(B$.Array===u||Sve[xve]===u)){for(a=0,o=mQ(e);o>a;a++)if((s=_(e[a]))&&mZ(W$,s))return s;return new U$(!1)}r=function(e,t){var n=arguments.length<2?V$(e):t;if(TZ(n))return UZ(ZX(n,e));throw wve(wZ(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=ZX(c,r)).done;){try{s=_(l.value)}catch(e){H$(r,`throw`,e)}if(typeof s==`object`&&s&&mZ(W$,s))return s}return new U$(!1)},K$=IZ(`iterator`),q$=!1;try{var Eve=0,J$={next:function(){return{done:!!Eve++}},return:function(){q$=!0}};J$[K$]=function(){return this},Array.from(J$,(function(){throw 2}))}catch{}var Y$,X$,Z$,Q$,$$=function(e,t){if(!t&&!q$)return!1;var n=!1;try{var r={};r[K$]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Dve=Q.TypeError,Ove=IZ(`species`),e1=iZ([].slice),t1=/(?:ipad|iphone|ipod).*applewebkit/i.test(hZ),n1=oZ(Q.process)==`process`,r1=Q.setImmediate,i1=Q.clearImmediate,kve=Q.process,a1=Q.Dispatch,Ave=Q.Function,o1=Q.MessageChannel,jve=Q.String,s1=0,c1={};try{Y$=Q.location}catch{}var l1=function(e){if(jZ(c1,e)){var t=c1[e];delete c1[e],t()}},u1=function(e){return function(){l1(e)}},d1=function(e){l1(e.data)},f1=function(e){Q.postMessage(jve(e),Y$.protocol+`//`+Y$.host)};r1&&i1||(r1=function(e){var t=e1(arguments,1);return c1[++s1]=function(){b$(dZ(e)?e:Ave(e),void 0,t)},X$(s1),s1},i1=function(e){delete c1[e]},n1?X$=function(e){kve.nextTick(u1(e))}:a1&&a1.now?X$=function(e){a1.now(u1(e))}:o1&&!t1?(Q$=(Z$=new o1).port2,Z$.port1.onmessage=d1,X$=KQ(Q$.postMessage,Q$)):Q.addEventListener&&dZ(Q.postMessage)&&!Q.importScripts&&Y$&&Y$.protocol!==`file:`&&!JX(f1)?(X$=f1,Q.addEventListener(`message`,d1,!1)):X$=`onreadystatechange`in zZ(`script`)?function(e){FQ.appendChild(zZ(`script`)).onreadystatechange=function(){FQ.removeChild(this),l1(e)}}:function(e){setTimeout(u1(e),0)});var p1,m1,h1,g1,_1,v1,y1,b1,x1={set:r1,clear:i1},Mve=/ipad|iphone|ipod/i.test(hZ)&&Q.Pebble!==void 0,Nve=/web0s(?!.*chrome)/i.test(hZ),Pve=HZ.f,S1=x1.set,C1=Q.MutationObserver||Q.WebKitMutationObserver,w1=Q.document,T1=Q.process,E1=Q.Promise,D1=Pve(Q,`queueMicrotask`),O1=D1&&D1.value;O1||(p1=function(){var e,t;for(n1&&(e=T1.domain)&&e.exit();m1;){t=m1.fn,m1=m1.next;try{t()}catch(e){throw m1?g1():h1=void 0,e}}h1=void 0,e&&e.enter()},t1||n1||Nve||!C1||!w1?!Mve&&E1&&E1.resolve?((y1=E1.resolve(void 0)).constructor=E1,b1=KQ(y1.then,y1),g1=function(){b1(p1)}):n1?g1=function(){T1.nextTick(p1)}:(S1=KQ(S1,Q),g1=function(){S1(p1)}):(_1=!0,v1=w1.createTextNode(``),new C1(p1).observe(v1,{characterData:!0}),g1=function(){v1.data=_1=!_1}));var k1,A1,j1,M1,N1=O1||function(e){var t={fn:e,next:void 0};h1&&(h1.next=t),m1||(m1=t,g1()),h1=t},Fve=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=TZ(t),this.reject=TZ(n)},P1={f:function(e){return new Fve(e)}},F1=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},Ive=typeof window==`object`,I1=x1.set,Lve=IZ(`species`),L1=`Promise`,R1=oQ.getterFor(L1),Rve=oQ.set,zve=oQ.getterFor(L1),z1=N$&&N$.prototype,B1=N$,V1=z1,H1=Q.TypeError,U1=Q.document,W1=Q.process,G1=P1.f,Bve=G1,Vve=!!(U1&&U1.createEvent&&Q.dispatchEvent),K1=dZ(Q.PromiseRejectionEvent),q1=!1,J1=SQ(L1,(function(){var e=XZ(B1),t=e!==String(B1);if(!t&&bZ===66)return!0;if(bZ>=51&&/native code/.test(e))return!1;var n=new B1((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[Lve]=r,!(q1=n.then((function(){}))instanceof r)||!t&&Ive&&!K1})),Hve=J1||!$$((function(e){B1.all(e).catch((function(){}))})),Y1=function(e){var t;return!(!fZ(e)||!dZ(t=e.then))&&t},X1=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;N1((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&&Wve(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(H1(`Promise-chain cycle`)):(s=Y1(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&&Uve(e)}))}},Z1=function(e,t,n){var r,i;Vve?((r=U1.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),Q.dispatchEvent(r)):r={promise:t,reason:n},!K1&&(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)},Uve=function(e){ZX(I1,Q,(function(){var t,n=e.facade,r=e.value;if(Q1(e)&&(t=F1((function(){n1?W1.emit(`unhandledRejection`,r,n):Z1(`unhandledrejection`,n,r)})),e.rejection=n1||Q1(e)?2:1,t.error))throw t.value}))},Q1=function(e){return e.rejection!==1&&!e.parent},Wve=function(e){ZX(I1,Q,(function(){var t=e.facade;n1?W1.emit(`rejectionHandled`,t):Z1(`rejectionhandled`,t,e.value)}))},$1=function(e,t,n){return function(r){e(t,r,n)}},e0=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,X1(e,!0))},t0=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw H1(`Promise can't be resolved itself`);var r=Y1(t);r?N1((function(){var n={done:!1};try{ZX(r,t,$1(t0,n,e),$1(e0,n,e))}catch(t){e0(n,t,e)}})):(e.value=t,e.state=1,X1(e,!1))}catch(t){e0({done:!1},t,e)}}};if(J1&&(V1=(B1=function(e){z$(this,V1),TZ(e),ZX(k1,this);var t=R1(this);try{e($1(t0,t),$1(e0,t))}catch(e){e0(t,e)}}).prototype,(k1=function(e){Rve(this,{type:L1,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=P$(V1,{then:function(e,t){var n=zve(this),r=n.reactions,i=G1(function(e,t){var n,r=UZ(e).constructor;return r===void 0||(n=UZ(r)[Ove])==null?t:function(e){if(QQ(e))return e;throw Dve(wZ(e)+` is not a constructor`)}(n)}(this,B1));return i.ok=!dZ(e)||e,i.fail=dZ(t)&&t,i.domain=n1?W1.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&X1(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),A1=function(){var e=new k1,t=R1(e);this.promise=e,this.resolve=$1(t0,t),this.reject=$1(e0,t)},P1.f=G1=function(e){return e===B1||e===j1?new A1(e):Bve(e)},dZ(N$)&&z1!==Object.prototype)){M1=z1.then,q1||(uQ(z1,`then`,(function(e,t){var n=this;return new B1((function(e,t){ZX(M1,n,e,t)})).then(e,t)}),{unsafe:!0}),uQ(z1,`catch`,V1.catch,{unsafe:!0}));try{delete z1.constructor}catch{}F$&&F$(z1,V1)}function n0(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(){q.insertNodes(e,l)})),i(l),[2]}}))}))}function r0(){return M$(`w-e-insert-video`)}CQ({global:!0,wrap:!0,forced:J1},{Promise:B1}),L$(B1,L1,!1),function(e){var t=pZ(`Promise`),n=GZ.f;YX&&t&&!t[R$]&&n(t,R$,{configurable:!0,get:function(){return this}})}(),j1=pZ(L1),CQ({target:L1,stat:!0,forced:J1},{reject:function(e){var t=G1(this);return ZX(t.reject,void 0,e),t.promise}}),CQ({target:L1,stat:!0,forced:J1},{resolve:function(e){return function(e,t){if(UZ(e),fZ(t)&&t.constructor===e)return t;var n=P1.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),CQ({target:L1,stat:!0,forced:Hve},{all:function(e){var t=this,n=G1(t),r=n.resolve,i=n.reject,a=F1((function(){var n=TZ(t.resolve),a=[],o=0,s=1;G$(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=G1(t),r=n.reject,i=F1((function(){var i=TZ(t.resolve);G$(e,(function(e){ZX(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var Gve=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=r0(),this.posterInputId=r0(),this.buttonId=r0()}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||!G.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(Nk(Z(`videoModule.videoSrc`),r,Z(`videoModule.videoSrcPlaceHolder`)),2),s=o[0],c=o[1],l=HX(Nk(Z(`videoModule.videoPoster`),i,Z(`videoModule.videoPosterPlaceHolder`)),2),u=l[0],d=l[1],f=J(c),p=J(d),m=HX(Pk(a,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var h=J(`<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,n0(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}(),Kve=iZ([].join),qve=cZ!=Object,Jve=function(e,t){var n=[].join;return!!n&&JX((function(){n.call(null,`,`,1)}))}();CQ({target:`Array`,proto:!0,forced:qve||!Jve},{join:function(e){return Kve(uZ(this),e===void 0?`,`:e)}});var i0,a0,o0,Yve=!JX((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),s0=eQ(`IE_PROTO`),c0=Q.Object,Xve=c0.prototype,l0=Yve?c0.getPrototypeOf:function(e){var t=AZ(e);if(jZ(t,s0))return t[s0];var n=t.constructor;return dZ(n)&&t instanceof n?n.prototype:t instanceof c0?Xve:null},u0=IZ(`iterator`),d0=!1;[].keys&&(`next`in(o0=[].keys())?(a0=l0(l0(o0)))!==Object.prototype&&(i0=a0):d0=!0),(i0==null||JX((function(){var e={};return i0[u0].call(e)!==e})))&&(i0={}),dZ(i0[u0])||uQ(i0,u0,(function(){return this}));var f0={IteratorPrototype:i0,BUGGY_SAFARI_ITERATORS:d0},Zve=f0.IteratorPrototype,Qve=function(){return this},$ve=lQ.PROPER,eye=lQ.CONFIGURABLE,p0=f0.IteratorPrototype,m0=f0.BUGGY_SAFARI_ITERATORS,h0=IZ(`iterator`),tye=function(){return this},g0=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=VQ(Zve,{next:eZ(1,n)}),L$(e,i,!1),B$[i]=Qve})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!m0&&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[h0]||p[`@@iterator`]||i&&p[i],h=!m0&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=l0(g.call(new e)))!==Object.prototype&&s.next&&(l0(s)!==p0&&(F$?F$(s,p0):dZ(s[h0])||uQ(s,h0,tye)),L$(s,d,!0)),$ve&&i==`values`&&m&&m.name!==`values`&&(eye?KZ(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)(m0||f||!(l in p))&&uQ(p,l,c[l]);else CQ({target:t,proto:!0,forced:m0||f},c)}return p[h0]!==h&&uQ(p,h0,h,{name:i}),B$[t]=h,c},nye=oQ.set,rye=oQ.getterFor(`Array Iterator`),_0=g0(Array,`Array`,(function(e,t){nye(this,{type:`Array Iterator`,target:uZ(e),index:0,kind:t})}),(function(){var e=rye(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`);B$.Arguments=B$.Array,WQ(`keys`),WQ(`values`),WQ(`entries`);var iye=w$.charAt,aye=oQ.set,oye=oQ.getterFor(`String Iterator`);g0(String,`String`,(function(e){aye(this,{type:`String Iterator`,string:DQ(e),index:0})}),(function(){var e,t=oye(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=iye(n,r),t.index+=e.length,{value:e,done:!1})}));var v0=function(e,t,n){var r=LZ(t);r in e?GZ.f(e,r,eZ(0,n)):e[r]=n},sye=Q.Array,cye=Math.max,y0=bQ.f,b0=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],lye={f:function(e){return b0&&oZ(e)==`Window`?function(e){try{return y0(e)}catch{return function(e,t,n){for(var r=mQ(e),i=fQ(void 0,r),a=fQ(r,r),o=sye(cye(a-i,0)),s=0;i<a;i++,s++)v0(o,s,e[i]);return o.length=s,o}(b0)}}(e):y0(uZ(e))}},x0=JX((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),S0=Object.isExtensible,C0=JX((function(){S0(1)}))||x0?function(e){return!!fZ(e)&&(!x0||oZ(e)!=`ArrayBuffer`)&&(!S0||S0(e))}:S0,uye=!JX((function(){return Object.isExtensible(Object.preventExtensions({}))})),w0=WX((function(e){var t=GZ.f,n=!1,r=MZ(`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=bQ.f,t=iZ([].splice),i={};i[r]=1,e(i).length&&(bQ.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},CQ({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:lye.f}))},fastKey:function(e,t){if(!fZ(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!jZ(e,r)){if(!C0(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!jZ(e,r)){if(!C0(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return uye&&n&&C0(e)&&!jZ(e,r)&&a(e),e}};tQ[r]=!0})),T0=w0.getWeakData,dye=oQ.set,fye=oQ.getterFor,pye=n$.find,mye=n$.findIndex,hye=iZ([].splice),gye=0,E0=function(e){return e.frozen||=new D0},D0=function(){this.entries=[]},O0=function(e,t){return pye(e.entries,(function(e){return e[0]===t}))};D0.prototype={get:function(e){var t=O0(this,e);if(t)return t[1]},has:function(e){return!!O0(this,e)},set:function(e,t){var n=O0(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=mye(this.entries,(function(t){return t[0]===e}));return~t&&hye(this.entries,t,1),!!~t}};var k0,A0={getConstructor:function(e,t,n,r){var i=e((function(e,i){z$(e,a),dye(e,{type:t,id:gye++,frozen:void 0}),i!=null&&G$(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=fye(t),s=function(e,t,n){var r=o(e),i=T0(UZ(t),!0);return!0===i?E0(r).set(t,n):i[r.id]=n,e};return P$(a,{delete:function(e){var t=o(this);if(!fZ(e))return!1;var n=T0(e);return!0===n?E0(t).delete(e):n&&jZ(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!fZ(e))return!1;var n=T0(e);return!0===n?E0(t).has(e):n&&jZ(n,t.id)}}),P$(a,n?{get:function(e){var t=o(this);if(fZ(e)){var n=T0(e);return!0===n?E0(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}},j0=oQ.enforce,_ye=!Q.ActiveXObject&&`ActiveXObject`in Q,M0=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},vye=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]);uQ(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!fZ(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!fZ(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(SQ(e,!dZ(o)||!(i||s.forEach&&!JX((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),w0.enable();else if(SQ(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=JX((function(){d.has(1)})),m=$$((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){z$(e,s);var n=function(e,t,n){var r,i;return F$&&dZ(r=t.constructor)&&r!==n&&fZ(i=r.prototype)&&i!==n.prototype&&F$(e,i),e}(new o,e,c);return t!=null&&G$(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,CQ({global:!0,forced:c!=o},l),L$(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,M0,A0);if(QZ&&_ye){k0=A0.getConstructor(M0,`WeakMap`,!0),w0.enable();var N0=vye.prototype,P0=iZ(N0.delete),F0=iZ(N0.has),I0=iZ(N0.get),L0=iZ(N0.set);P$(N0,{delete:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,P0(this,e)||t.frozen.delete(e)}return P0(this,e)},has:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,F0(this,e)||t.frozen.has(e)}return F0(this,e)},get:function(e){if(fZ(e)&&!C0(e)){var t=j0(this);return t.frozen||=new k0,F0(this,e)?I0(this,e):t.frozen.get(e)}return I0(this,e)},set:function(e,t){if(fZ(e)&&!C0(e)){var n=j0(this);n.frozen||=new k0,F0(this,e)?L0(this,e,t):n.frozen.set(e,t)}else L0(this,e,t);return this}})}var R0={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},z0=zZ(`span`).classList,B0=z0&&z0.constructor&&z0.constructor.prototype,yye=B0===Object.prototype?void 0:B0,V0=IZ(`iterator`),H0=IZ(`toStringTag`),U0=_0.values,W0=function(e,t){if(e){if(e[V0]!==U0)try{KZ(e,V0,U0)}catch{e[V0]=U0}if(e[H0]||KZ(e,H0,t),R0[t]){for(var n in _0)if(e[n]!==_0[n])try{KZ(e,n,_0[n])}catch{e[n]=_0[n]}}}};for(var G0 in R0)W0(Q[G0]&&Q[G0].prototype,G0);W0(yye,`DOMTokenList`);var bye=lQ.EXISTS,xye=GZ.f,K0=Function.prototype,Sye=iZ(K0.toString),q0=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,Cye=iZ(q0.exec);YX&&!bye&&xye(K0,`name`,{configurable:!0,get:function(){try{return Cye(q0,Sye(this))[1]}catch{return``}}});var wye=IZ(`species`),Tye=bZ>=51||!JX((function(){var e=[];return(e.constructor={})[wye]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Eye=IZ(`species`),J0=Q.Array,Dye=Math.max;function Y0(e){return e.getMenuConfig(`uploadVideo`)}CQ({target:`Array`,proto:!0,forced:!Tye},{slice:function(e,t){var n,r,i,a=uZ(this),o=mQ(a),s=fQ(e,o),c=fQ(t===void 0?o:t,o);if(qQ(a)&&(n=a.constructor,(QQ(n)&&(n===J0||qQ(n.prototype))||fZ(n)&&(n=n[Eye])===null)&&(n=void 0),n===J0||n===void 0))return e1(a,s,c);for(r=new(n===void 0?J0:n)(Dye(c-s,0)),i=0;s<c;s++,i++)s in a&&v0(r,i,a[s]);return r.length=i,r}});var X0=new WeakMap;function Oye(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=X0.get(e);if(t!=null)return t;var n=Y0(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Hk(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 n0(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;n0(e,d,f===void 0?``:f),r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),X0.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 kye=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 n0(e,t,n)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=J(`body`),c=J(`<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=Y0(e).customUpload,u.label=1;case 1:u.trys.push([1,9,10,15]),o=kge(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 n0(e,t,n)}))]:[3,5]);case 4:return u.sent(),[3,7];case 5:return[4,Oye(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||!G.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}(),Aye=lQ.PROPER,Z0=RegExp.prototype,Q0=Z0.toString,jye=iZ(s$),Mye=JX((function(){return Q0.call({source:`a`,flags:`b`})!=`/a/b`})),Nye=Aye&&Q0.name!=`toString`;function $0(){return M$(`w-e-insert-video`)}(Mye||Nye)&&uQ(RegExp.prototype,`toString`,(function(){var e=UZ(this),t=DQ(e.source),n=e.flags;return`/`+t+`/`+DQ(n===void 0&&mZ(Z0,e)&&!(`flags`in Z0)?jye(e):n)}),{unsafe:!0});var Pye=function(){function e(){this.title=Z(`videoModule.editSize`),this.tag=`button`,this.showModal=!0,this.modalWidth=320,this.$content=null,this.widthInputId=$0(),this.heightInputId=$0(),this.buttonId=$0()}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(Nk(Z(`videoModule.width`),n,`auto`),2),o=a[0],s=J(a[1]),c=HX(Nk(Z(`videoModule.height`),r,`auto`),2),l=c[0],u=J(c[1]),d=HX(Pk(i,Z(`videoModule.ok`)),1)[0];if(this.$content==null){var f=J(`<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(),q.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}(),Fye={renderElems:[A_e],elemsToHtml:[j_e],preParseHtml:[F_e],parseElemsHtml:[U_e],menus:[{key:`insertVideo`,factory:function(){return new Gve},config:{onInsertedVideo:function(e){},checkVideo:function(e,t){return!0},parseVideoSrc:function(e){return e}}},{key:`uploadVideo`,factory:function(){return new kye},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 Pye}}],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)&&q.insertNodes(r,X.genEmptyParagraph(),{at:[a[0]+1]}),n([i,a])},r}};vA(`en`,{uploadImgModule:{uploadImage:`Upload Image`,uploadError:`{{fileName}} upload error`}}),vA(`zh-CN`,{uploadImgModule:{uploadImage:`上传图片`,uploadError:`{{fileName}} 上传出错`}});var e2=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function t2(e){var t={exports:{}};return e(t,t.exports),t.exports}var n2,r2,i2=function(e){return e&&e.Math==Math&&e},$=i2(typeof globalThis==`object`&&globalThis)||i2(typeof window==`object`&&window)||i2(typeof self==`object`&&self)||i2(typeof e2==`object`&&e2)||function(){return this}()||Function(`return this`)(),a2=function(e){try{return!!e()}catch{return!0}},o2=!a2((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),s2=Function.prototype.call,c2=s2.bind?s2.bind(s2):function(){return s2.apply(s2,arguments)},l2={}.propertyIsEnumerable,u2=Object.getOwnPropertyDescriptor,Iye={f:u2&&!l2.call({1:2},1)?function(e){var t=u2(this,e);return!!t&&t.enumerable}:l2},d2=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},f2=Function.prototype,p2=f2.bind,m2=f2.call,Lye=p2&&p2.bind(m2),h2=p2?function(e){return e&&Lye(m2,e)}:function(e){return e&&function(){return m2.apply(e,arguments)}},Rye=h2({}.toString),zye=h2(``.slice),g2=function(e){return zye(Rye(e),8,-1)},_2=$.Object,Bye=h2(``.split),v2=a2((function(){return!_2(`z`).propertyIsEnumerable(0)}))?function(e){return g2(e)==`String`?Bye(e,``):_2(e)}:_2,Vye=$.TypeError,y2=function(e){if(e==null)throw Vye(`Can't call method on `+e);return e},b2=function(e){return v2(y2(e))},x2=function(e){return typeof e==`function`},S2=function(e){return typeof e==`object`?e!==null:x2(e)},Hye=function(e){return x2(e)?e:void 0},C2=function(e,t){return arguments.length<2?Hye($[e]):$[e]&&$[e][t]},w2=h2({}.isPrototypeOf),T2=C2(`navigator`,`userAgent`)||``,E2=$.process,D2=$.Deno,O2=E2&&E2.versions||D2&&D2.version,k2=O2&&O2.v8;k2&&(r2=(n2=k2.split(`.`))[0]>0&&n2[0]<4?1:+(n2[0]+n2[1])),!r2&&T2&&(!(n2=T2.match(/Edge\/(\d+)/))||n2[1]>=74)&&(n2=T2.match(/Chrome\/(\d+)/))&&(r2=+n2[1]);var A2=r2,j2=!!Object.getOwnPropertySymbols&&!a2((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A2&&A2<41})),M2=j2&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,Uye=$.Object,N2=M2?function(e){return typeof e==`symbol`}:function(e){var t=C2(`Symbol`);return x2(t)&&w2(t.prototype,Uye(e))},Wye=$.String,P2=function(e){try{return Wye(e)}catch{return`Object`}},Gye=$.TypeError,F2=function(e){if(x2(e))return e;throw Gye(P2(e)+` is not a function`)},I2=function(e,t){var n=e[t];return n==null?void 0:F2(n)},Kye=$.TypeError,qye=Object.defineProperty,L2=function(e,t){try{qye($,e,{value:t,configurable:!0,writable:!0})}catch{$[e]=t}return t},R2=$[`__core-js_shared__`]||L2(`__core-js_shared__`,{}),z2=t2((function(e){(e.exports=function(e,t){return R2[e]||(R2[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),Jye=$.Object,B2=function(e){return Jye(y2(e))},Yye=h2({}.hasOwnProperty),V2=Object.hasOwn||function(e,t){return Yye(B2(e),t)},Xye=0,Zye=Math.random(),Qye=h2(1 .toString),H2=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+Qye(++Xye+Zye,36)},U2=z2(`wks`),W2=$.Symbol,G2=W2&&W2.for,$ye=M2?W2:W2&&W2.withoutSetter||H2,K2=function(e){if(!V2(U2,e)||!j2&&typeof U2[e]!=`string`){var t=`Symbol.`+e;U2[e]=j2&&V2(W2,e)?W2[e]:M2&&G2?G2(t):$ye(t)}return U2[e]},ebe=$.TypeError,tbe=K2(`toPrimitive`),q2=function(e){var t=function(e,t){if(!S2(e)||N2(e))return e;var n,r=I2(e,tbe);if(r){if(t===void 0&&(t=`default`),n=c2(r,e,t),!S2(n)||N2(n))return n;throw ebe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&x2(n=e.toString)&&!S2(r=c2(n,e))||x2(n=e.valueOf)&&!S2(r=c2(n,e))||t!==`string`&&x2(n=e.toString)&&!S2(r=c2(n,e)))return r;throw Kye(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return N2(t)?t:t+``},J2=$.document,nbe=S2(J2)&&S2(J2.createElement),Y2=function(e){return nbe?J2.createElement(e):{}},X2=!o2&&!a2((function(){return Object.defineProperty(Y2(`div`),"a",{get:function(){return 7}}).a!=7})),Z2=Object.getOwnPropertyDescriptor,Q2={f:o2?Z2:function(e,t){if(e=b2(e),t=q2(t),X2)try{return Z2(e,t)}catch{}if(V2(e,t))return d2(!c2(Iye.f,e,t),e[t])}},rbe=$.String,ibe=$.TypeError,$2=function(e){if(S2(e))return e;throw ibe(rbe(e)+` is not an object`)},abe=$.TypeError,e4=Object.defineProperty,t4={f:o2?e4:function(e,t,n){if($2(e),t=q2(t),$2(n),X2)try{return e4(e,t,n)}catch{}if(`get`in n||`set`in n)throw abe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},n4=o2?function(e,t,n){return t4.f(e,t,d2(1,n))}:function(e,t,n){return e[t]=n,e},obe=h2(Function.toString);x2(R2.inspectSource)||(R2.inspectSource=function(e){return obe(e)});var r4,i4,a4,o4=R2.inspectSource,s4=$.WeakMap,c4=x2(s4)&&/native code/.test(o4(s4)),l4=z2(`keys`),u4=function(e){return l4[e]||(l4[e]=H2(e))},d4={},f4=$.TypeError,sbe=$.WeakMap;if(c4||R2.state){var p4=R2.state||=new sbe,cbe=h2(p4.get),m4=h2(p4.has),lbe=h2(p4.set);r4=function(e,t){if(m4(p4,e))throw new f4(`Object already initialized`);return t.facade=e,lbe(p4,e,t),t},i4=function(e){return cbe(p4,e)||{}},a4=function(e){return m4(p4,e)}}else{var h4=u4(`state`);d4[h4]=!0,r4=function(e,t){if(V2(e,h4))throw new f4(`Object already initialized`);return t.facade=e,n4(e,h4,t),t},i4=function(e){return V2(e,h4)?e[h4]:{}},a4=function(e){return V2(e,h4)}}var g4={set:r4,get:i4,has:a4,enforce:function(e){return a4(e)?i4(e):r4(e,{})},getterFor:function(e){return function(t){var n;if(!S2(t)||(n=i4(t)).type!==e)throw f4(`Incompatible receiver, `+e+` required`);return n}}},_4=Function.prototype,ube=o2&&Object.getOwnPropertyDescriptor,v4=V2(_4,`name`),y4={EXISTS:v4,PROPER:v4&&function(){}.name===`something`,CONFIGURABLE:v4&&(!o2||o2&&ube(_4,`name`).configurable)},b4=t2((function(e){var t=y4.CONFIGURABLE,n=g4.get,r=g4.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;x2(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!V2(a,`name`)||t&&a.name!==d)&&n4(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===$?l?e[n]=a:L2(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:n4(e,n,a))})(Function.prototype,`toString`,(function(){return x2(this)&&n(this).source||o4(this)}))})),dbe=Math.ceil,fbe=Math.floor,x4=function(e){var t=+e;return t!=t||t===0?0:(t>0?fbe:dbe)(t)},pbe=Math.max,mbe=Math.min,S4=function(e,t){var n=x4(e);return n<0?pbe(n+t,0):mbe(n,t)},hbe=Math.min,C4=function(e){return e>0?hbe(x4(e),9007199254740991):0},w4=function(e){return C4(e.length)},gbe=function(e){return function(t,n,r){var i,a=b2(t),o=w4(a),s=S4(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),T4=h2([].push),E4=function(e,t){var n,r=b2(e),i=0,a=[];for(n in r)!V2(d4,n)&&V2(r,n)&&T4(a,n);for(;t.length>i;)V2(r,n=t[i++])&&(~gbe(a,n)||T4(a,n));return a},D4=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],_be=D4.concat(`length`,`prototype`),O4={f:Object.getOwnPropertyNames||function(e){return E4(e,_be)}},vbe={f:Object.getOwnPropertySymbols},ybe=h2([].concat),bbe=C2(`Reflect`,`ownKeys`)||function(e){var t=O4.f($2(e)),n=vbe.f;return n?ybe(t,n(e)):t},xbe=function(e,t){for(var n=bbe(t),r=t4.f,i=Q2.f,a=0;a<n.length;a++){var o=n[a];V2(e,o)||r(e,o,i(t,o))}},Sbe=/#|\.prototype\./,k4=function(e,t){var n=wbe[Cbe(e)];return n==Ebe||n!=Tbe&&(x2(t)?a2(t):!!t)},Cbe=k4.normalize=function(e){return String(e).replace(Sbe,`.`).toLowerCase()},wbe=k4.data={},Tbe=k4.NATIVE=`N`,Ebe=k4.POLYFILL=`P`,A4=k4,Dbe=Q2.f,j4=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?$:l?$[s]||L2(s,{}):($[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=Dbe(n,r))&&o.value:n[r],!A4(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;xbe(a,i)}(e.sham||i&&i.sham)&&n4(a,`sham`,!0),b4(n,r,a,e)}},M4=Array.isArray||function(e){return g2(e)==`Array`},N4={};N4[K2(`toStringTag`)]=`z`;var P4=String(N4)===`[object z]`,Obe=K2(`toStringTag`),kbe=$.Object,Abe=g2(function(){return arguments}())==`Arguments`,F4=P4?g2: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=kbe(e),Obe))==`string`?n:Abe?g2(t):(r=g2(t))==`Object`&&x2(t.callee)?`Arguments`:r},I4=function(){},jbe=[],L4=C2(`Reflect`,`construct`),R4=/^\s*(?:class|function)\b/,Mbe=h2(R4.exec),Nbe=!R4.exec(I4),z4=function(e){if(!x2(e))return!1;try{return L4(I4,jbe,e),!0}catch{return!1}},B4=!L4||a2((function(){var e;return z4(z4.call)||!z4(Object)||!z4((function(){e=!0}))||e}))?function(e){if(!x2(e))return!1;switch(F4(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return Nbe||!!Mbe(R4,o4(e))}:z4,V4=function(e,t,n){var r=q2(t);r in e?t4.f(e,r,d2(0,n)):e[r]=n},Pbe=K2(`species`),H4=h2([].slice),Fbe=A2>=51||!a2((function(){var e=[];return(e.constructor={})[Pbe]=function(){return{foo:1}},e.slice(Boolean).foo!==1})),Ibe=K2(`species`),U4=$.Array,Lbe=Math.max;j4({target:`Array`,proto:!0,forced:!Fbe},{slice:function(e,t){var n,r,i,a=b2(this),o=w4(a),s=S4(e,o),c=S4(t===void 0?o:t,o);if(M4(a)&&(n=a.constructor,(B4(n)&&(n===U4||M4(n.prototype))||S2(n)&&(n=n[Ibe])===null)&&(n=void 0),n===U4||n===void 0))return H4(a,s,c);for(r=new(n===void 0?U4:n)(Lbe(c-s,0)),i=0;s<c;s++,i++)s in a&&V4(r,i,a[s]);return r.length=i,r}});var Rbe=P4?{}.toString:function(){return`[object `+F4(this)+`]`};P4||b4(Object.prototype,`toString`,Rbe,{unsafe:!0});var W4,zbe=$.String,G4=function(e){if(F4(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return zbe(e)},K4=function(){var e=$2(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},q4=$.RegExp,J4=a2((function(){var e=q4(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),Bbe=J4||a2((function(){return!q4(`a`,`y`).sticky})),Y4={BROKEN_CARET:J4||a2((function(){var e=q4(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:Bbe,UNSUPPORTED_Y:J4},Vbe=Object.keys||function(e){return E4(e,D4)},Hbe=o2?Object.defineProperties:function(e,t){$2(e);for(var n,r=b2(t),i=Vbe(t),a=i.length,o=0;a>o;)t4.f(e,n=i[o++],r[n]);return e},X4=C2(`document`,`documentElement`),Z4=u4(`IE_PROTO`),Q4=function(){},$4=function(e){return`<script>`+e+`<\/script>`},e3=function(e){e.write($4(``)),e.close();var t=e.parentWindow.Object;return e=null,t},t3=function(){try{W4=new ActiveXObject(`htmlfile`)}catch{}var e,t;t3=typeof document<`u`?document.domain&&W4?e3(W4):((t=Y2(`iframe`)).style.display=`none`,X4.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write($4(`document.F=Object`)),e.close(),e.F):e3(W4);for(var n=D4.length;n--;)delete t3.prototype[D4[n]];return t3()};d4[Z4]=!0;var n3,r3,i3=Object.create||function(e,t){var n;return e===null?n=t3():(Q4.prototype=$2(e),n=new Q4,Q4.prototype=null,n[Z4]=e),t===void 0?n:Hbe(n,t)},Ube=$.RegExp,Wbe=a2((function(){var e=Ube(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),Gbe=$.RegExp,Kbe=a2((function(){var e=Gbe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),qbe=g4.get,Jbe=z2(`native-string-replace`,String.prototype.replace),a3=RegExp.prototype.exec,o3=a3,Ybe=h2(``.charAt),Xbe=h2(``.indexOf),Zbe=h2(``.replace),s3=h2(``.slice),c3=(r3=/b*/g,c2(a3,n3=/a/,`a`),c2(a3,r3,`a`),n3.lastIndex!==0||r3.lastIndex!==0),l3=Y4.BROKEN_CARET,u3=/()??/.exec(``)[1]!==void 0;(c3||u3||l3||Wbe||Kbe)&&(o3=function(e){var t,n,r,i,a,o,s,c=this,l=qbe(c),u=G4(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=c2(o3,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=l3&&c.sticky,m=c2(K4,c),h=c.source,g=0,_=u;if(p&&(m=Zbe(m,`y`,``),Xbe(m,`g`)===-1&&(m+=`g`),_=s3(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&Ybe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),u3&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),c3&&(r=c.lastIndex),i=c2(a3,p?n:c,_),p?i?(i.input=s3(i.input,g),i[0]=s3(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:c3&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),u3&&i&&i.length>1&&c2(Jbe,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=i3(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var d3=o3;j4({target:`RegExp`,proto:!0,forced:/./.exec!==d3},{exec:d3});var f3=Function.prototype,p3=f3.apply,Qbe=f3.bind,m3=f3.call,h3=typeof Reflect==`object`&&Reflect.apply||(Qbe?m3.bind(p3):function(){return m3.apply(p3,arguments)}),$be=K2(`species`),g3=RegExp.prototype,exe=K2(`match`),txe=$.TypeError,nxe=K2(`species`),_3=function(e,t){var n,r=$2(e).constructor;return r===void 0||(n=$2(r)[nxe])==null?t:function(e){if(B4(e))return e;throw txe(P2(e)+` is not a constructor`)}(n)},rxe=h2(``.charAt),v3=h2(``.charCodeAt),ixe=h2(``.slice),y3=function(e){return function(t,n){var r,i,a=G4(y2(t)),o=x4(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=v3(a,o))<55296||r>56319||o+1===s||(i=v3(a,o+1))<56320||i>57343?e?rxe(a,o):r:e?ixe(a,o,o+2):i-56320+(r-55296<<10)+65536}},b3={codeAt:y3(!1),charAt:y3(!0)},axe=b3.charAt,oxe=function(e,t,n){return t+(n?axe(e,t).length:1)},sxe=$.Array,cxe=Math.max,x3=function(e,t,n){for(var r=w4(e),i=S4(t,r),a=S4(n===void 0?r:n,r),o=sxe(cxe(a-i,0)),s=0;i<a;i++,s++)V4(o,s,e[i]);return o.length=s,o},lxe=$.TypeError,S3=function(e,t){var n=e.exec;if(x2(n)){var r=c2(n,e,t);return r!==null&&$2(r),r}if(g2(e)===`RegExp`)return c2(d3,e,t);throw lxe(`RegExp#exec called on incompatible receiver`)},C3=Y4.UNSUPPORTED_Y,uxe=Math.min,w3=[].push,dxe=h2(/./.exec),T3=h2(w3),E3=h2(``.slice);(function(e,t,n,r){var i=K2(e),a=!a2((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!a2((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[$be]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=h2(/./[i]),c=function(e,t,n){var 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=G4(y2(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!S2(r=e)||!((i=r[exe])===void 0?g2(r)==`RegExp`:i))return c2(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=c2(d3,p,a))&&!((c=p.lastIndex)>f&&(T3(u,E3(a,f,s.index)),s.length>1&&s.index<a.length&&h3(w3,u,x3(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&dxe(p,``)||T3(u,``):T3(u,E3(a,f)),u.length>o?x3(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:c2(t,this,e,n)}:t;return[function(t,n){var i=y2(this),a=t==null?void 0:I2(t,e);return a?c2(a,t,i,n):c2(r,G4(i),t,n)},function(e,i){var a=$2(this),o=G4(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=_3(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(C3?`g`:`y`),d=new c(C3?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return S3(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=C3?0:m;var g,_=S3(d,C3?E3(o,m):o);if(_===null||(g=uxe(C4(d.lastIndex+(C3?m:0)),o.length))===p)m=oxe(o,m,l);else{if(T3(h,E3(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(T3(h,_[v]),h.length===f)return h;m=p=g}}return T3(h,E3(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=h2(e),c=t.exec;return c===d3||c===g3.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));b4(String.prototype,e,c[0]),b4(g3,i,c[1])}r&&n4(g3[i],`sham`,!0)})(`split`,0,!!a2((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`})),C3);var D3=function(){return D3=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},D3.apply(this,arguments)};function O3(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 k3(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 fxe(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 A3=K2(`unscopables`),j3=Array.prototype;j3[A3]??t4.f(j3,A3,{configurable:!0,value:i3(null)});var M3,N3,P3,F3=function(e){j3[A3][e]=!0},I3={},pxe=!a2((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})),L3=u4(`IE_PROTO`),R3=$.Object,mxe=R3.prototype,z3=pxe?R3.getPrototypeOf:function(e){var t=B2(e);if(V2(t,L3))return t[L3];var n=t.constructor;return x2(n)&&t instanceof n?n.prototype:t instanceof R3?mxe:null},B3=K2(`iterator`),V3=!1;[].keys&&(`next`in(P3=[].keys())?(N3=z3(z3(P3)))!==Object.prototype&&(M3=N3):V3=!0),(M3==null||a2((function(){var e={};return M3[B3].call(e)!==e})))&&(M3={}),x2(M3[B3])||b4(M3,B3,(function(){return this}));var H3={IteratorPrototype:M3,BUGGY_SAFARI_ITERATORS:V3},hxe=t4.f,U3=K2(`toStringTag`),W3=function(e,t,n){e&&!V2(e=n?e:e.prototype,U3)&&hxe(e,U3,{configurable:!0,value:t})},gxe=H3.IteratorPrototype,_xe=function(){return this},vxe=$.String,yxe=$.TypeError,G3=Object.setPrototypeOf||(`__proto__`in{}?function(){var e,t=!1,n={};try{(e=h2(Object.getOwnPropertyDescriptor(Object.prototype,`__proto__`).set))(n,[]),t=n instanceof Array}catch{}return function(n,r){return $2(n),function(e){if(typeof e==`object`||x2(e))return e;throw yxe(`Can't set `+vxe(e)+` as a prototype`)}(r),t?e(n,r):n.__proto__=r,n}}():void 0),bxe=y4.PROPER,xxe=y4.CONFIGURABLE,K3=H3.IteratorPrototype,q3=H3.BUGGY_SAFARI_ITERATORS,J3=K2(`iterator`),Sxe=function(){return this},Y3=function(e,t,n,r,i,a,o){(function(e,t,n,r){var i=t+` Iterator`;e.prototype=i3(gxe,{next:d2(1,n)}),W3(e,i,!1),I3[i]=_xe})(n,t,r);var s,c,l,u=function(e){if(e===i&&h)return h;if(!q3&&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[J3]||p[`@@iterator`]||i&&p[i],h=!q3&&m||u(i),g=t==`Array`&&p.entries||m;if(g&&(s=z3(g.call(new e)))!==Object.prototype&&s.next&&(z3(s)!==K3&&(G3?G3(s,K3):x2(s[J3])||b4(s,J3,Sxe)),W3(s,d,!0)),bxe&&i==`values`&&m&&m.name!==`values`&&(xxe?n4(p,`name`,`values`):(f=!0,h=function(){return c2(m,this)})),i){if(c={values:u(`values`),keys:a?h:u(`keys`),entries:u(`entries`)},o)for(l in c)(q3||f||!(l in p))&&b4(p,l,c[l]);else j4({target:t,proto:!0,forced:q3||f},c)}return p[J3]!==h&&b4(p,J3,h,{name:i}),I3[t]=h,c},Cxe=g4.set,wxe=g4.getterFor(`Array Iterator`),X3=Y3(Array,`Array`,(function(e,t){Cxe(this,{type:`Array Iterator`,target:b2(e),index:0,kind:t})}),(function(){var e=wxe(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`);I3.Arguments=I3.Array,F3(`keys`),F3(`values`),F3(`entries`);var Txe=b3.charAt,Exe=g4.set,Dxe=g4.getterFor(`String Iterator`);Y3(String,`String`,(function(e){Exe(this,{type:`String Iterator`,string:G4(e),index:0})}),(function(){var e,t=Dxe(this),n=t.string,r=t.index;return r>=n.length?{value:void 0,done:!0}:(e=Txe(n,r),t.index+=e.length,{value:e,done:!1})}));var Z3=function(e,t,n){for(var r in t)b4(e,r,t[r],n);return e},Q3=O4.f,$3=typeof window==`object`&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],Oxe={f:function(e){return $3&&g2(e)==`Window`?function(e){try{return Q3(e)}catch{return x3($3)}}(e):Q3(b2(e))}},e6=a2((function(){if(typeof ArrayBuffer==`function`){var e=new ArrayBuffer(8);Object.isExtensible(e)&&Object.defineProperty(e,"a",{value:8})}})),t6=Object.isExtensible,n6=a2((function(){t6(1)}))||e6?function(e){return!!S2(e)&&(!e6||g2(e)!=`ArrayBuffer`)&&(!t6||t6(e))}:t6,kxe=!a2((function(){return Object.isExtensible(Object.preventExtensions({}))})),r6=t2((function(e){var t=t4.f,n=!1,r=H2(`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=O4.f,t=h2([].splice),i={};i[r]=1,e(i).length&&(O4.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},j4({target:`Object`,stat:!0,forced:!0},{getOwnPropertyNames:Oxe.f}))},fastKey:function(e,t){if(!S2(e))return typeof e==`symbol`?e:(typeof e==`string`?`S`:`P`)+e;if(!V2(e,r)){if(!n6(e))return`F`;if(!t)return`E`;a(e)}return e[r].objectID},getWeakData:function(e,t){if(!V2(e,r)){if(!n6(e))return!0;if(!t)return!1;a(e)}return e[r].weakData},onFreeze:function(e){return kxe&&n&&n6(e)&&!V2(e,r)&&a(e),e}};d4[r]=!0})),i6=h2(h2.bind),a6=function(e,t){return F2(e),t===void 0?e:i6?i6(e,t):function(){return e.apply(t,arguments)}},Axe=K2(`iterator`),jxe=Array.prototype,Mxe=K2(`iterator`),o6=function(e){if(e!=null)return I2(e,Mxe)||I2(e,`@@iterator`)||I3[F4(e)]},Nxe=$.TypeError,s6=function(e,t,n){var r,i;$2(e);try{if(!(r=I2(e,`return`))){if(t===`throw`)throw n;return n}r=c2(r,e)}catch(e){i=!0,r=e}if(t===`throw`)throw n;if(i)throw r;return $2(r),n},Pxe=$.TypeError,c6=function(e,t){this.stopped=e,this.result=t},l6=c6.prototype,u6=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=a6(t,d),g=function(e){return r&&s6(r,`normal`,e),new c6(!0,e)},_=function(e){return f?($2(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=o6(e)))throw Pxe(P2(e)+` is not iterable`);if((u=i)!==void 0&&(I3.Array===u||jxe[Axe]===u)){for(a=0,o=w4(e);o>a;a++)if((s=_(e[a]))&&w2(l6,s))return s;return new c6(!1)}r=function(e,t){var n=arguments.length<2?o6(e):t;if(F2(n))return $2(c2(n,e));throw Nxe(P2(e)+` is not iterable`)}(e,i)}for(c=r.next;!(l=c2(c,r)).done;){try{s=_(l.value)}catch(e){s6(r,`throw`,e)}if(typeof s==`object`&&s&&w2(l6,s))return s}return new c6(!1)},Fxe=$.TypeError,d6=function(e,t){if(w2(t,e))return e;throw Fxe(`Incorrect invocation`)},f6=K2(`iterator`),p6=!1;try{var Ixe=0,m6={next:function(){return{done:!!Ixe++}},return:function(){p6=!0}};m6[f6]=function(){return this},Array.from(m6,(function(){throw 2}))}catch{}var h6=function(e,t){if(!t&&!p6)return!1;var n=!1;try{var r={};r[f6]=function(){return{next:function(){return{done:n=!0}}}},e(r)}catch{}return n},Lxe=K2(`species`),g6=$.Array,Rxe=function(e,t){return new(function(e){var t;return M4(e)&&(t=e.constructor,(B4(t)&&(t===g6||M4(t.prototype))||S2(t)&&(t=t[Lxe])===null)&&(t=void 0)),t===void 0?g6:t}(e))(t===0?0:t)},_6=h2([].push),v6=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=B2(c),h=v2(m),g=a6(l,u),_=w4(h),v=0,y=d||Rxe,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:_6(b,f)}else switch(e){case 4:return!1;case 7:_6(b,f)}}return a?-1:r||i?i:b}},y6={forEach:v6(0),map:v6(1),filter:v6(2),some:v6(3),every:v6(4),find:v6(5),findIndex:v6(6),filterReject:v6(7)},b6=r6.getWeakData,zxe=g4.set,Bxe=g4.getterFor,Vxe=y6.find,Hxe=y6.findIndex,Uxe=h2([].splice),Wxe=0,x6=function(e){return e.frozen||=new S6},S6=function(){this.entries=[]},C6=function(e,t){return Vxe(e.entries,(function(e){return e[0]===t}))};S6.prototype={get:function(e){var t=C6(this,e);if(t)return t[1]},has:function(e){return!!C6(this,e)},set:function(e,t){var n=C6(this,e);n?n[1]=t:this.entries.push([e,t])},delete:function(e){var t=Hxe(this.entries,(function(t){return t[0]===e}));return~t&&Uxe(this.entries,t,1),!!~t}};var w6,T6={getConstructor:function(e,t,n,r){var i=e((function(e,i){d6(e,a),zxe(e,{type:t,id:Wxe++,frozen:void 0}),i!=null&&u6(i,e[r],{that:e,AS_ENTRIES:n})})),a=i.prototype,o=Bxe(t),s=function(e,t,n){var r=o(e),i=b6($2(t),!0);return!0===i?x6(r).set(t,n):i[r.id]=n,e};return Z3(a,{delete:function(e){var t=o(this);if(!S2(e))return!1;var n=b6(e);return!0===n?x6(t).delete(e):n&&V2(n,t.id)&&delete n[t.id]},has:function(e){var t=o(this);if(!S2(e))return!1;var n=b6(e);return!0===n?x6(t).has(e):n&&V2(n,t.id)}}),Z3(a,n?{get:function(e){var t=o(this);if(S2(e)){var n=b6(e);return!0===n?x6(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}},E6=g4.enforce,Gxe=!$.ActiveXObject&&`ActiveXObject`in $,D6=function(e){return function(){return e(this,arguments.length?arguments[0]:void 0)}},Kxe=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=h2(s[e]);b4(s,e,e==`add`?function(e){return t(this,e===0?0:e),this}:e==`delete`?function(e){return!(i&&!S2(e))&&t(this,e===0?0:e)}:e==`get`?function(e){return i&&!S2(e)?void 0:t(this,e===0?0:e)}:e==`has`?function(e){return!(i&&!S2(e))&&t(this,e===0?0:e)}:function(e,n){return t(this,e===0?0:e,n),this})};if(A4(e,!x2(o)||!(i||s.forEach&&!a2((function(){new o().entries().next()})))))c=n.getConstructor(t,e,r,a),r6.enable();else if(A4(e,!0)){var d=new c,f=d[a](i?{}:-0,1)!=d,p=a2((function(){d.has(1)})),m=h6((function(e){new o(e)})),h=!i&&a2((function(){for(var e=new o,t=5;t--;)e[a](t,t);return!e.has(-0)}));m||((c=t((function(e,t){d6(e,s);var n=function(e,t,n){var r,i;return G3&&x2(r=t.constructor)&&r!==n&&S2(i=r.prototype)&&i!==n.prototype&&G3(e,i),e}(new o,e,c);return t!=null&&u6(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,j4({global:!0,forced:c!=o},l),W3(c,e),i||n.setStrong(c,e,r),c}(`WeakMap`,D6,T6);if(c4&&Gxe){w6=T6.getConstructor(D6,`WeakMap`,!0),r6.enable();var O6=Kxe.prototype,k6=h2(O6.delete),A6=h2(O6.has),j6=h2(O6.get),M6=h2(O6.set);Z3(O6,{delete:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,k6(this,e)||t.frozen.delete(e)}return k6(this,e)},has:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,A6(this,e)||t.frozen.has(e)}return A6(this,e)},get:function(e){if(S2(e)&&!n6(e)){var t=E6(this);return t.frozen||=new w6,A6(this,e)?j6(this,e):t.frozen.get(e)}return j6(this,e)},set:function(e,t){if(S2(e)&&!n6(e)){var n=E6(this);n.frozen||=new w6,A6(this,e)?M6(this,e,t):n.frozen.set(e,t)}else M6(this,e,t);return this}})}var N6={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},P6=Y2(`span`).classList,F6=P6&&P6.constructor&&P6.constructor.prototype,I6=F6===Object.prototype?void 0:F6,L6=K2(`iterator`),R6=K2(`toStringTag`),z6=X3.values,B6=function(e,t){if(e){if(e[L6]!==z6)try{n4(e,L6,z6)}catch{e[L6]=z6}if(e[R6]||n4(e,R6,t),N6[t]){for(var n in X3)if(e[n]!==X3[n])try{n4(e,n,X3[n])}catch{e[n]=X3[n]}}}};for(var V6 in N6)B6($[V6]&&$[V6].prototype,V6);B6(I6,`DOMTokenList`);var H6=function(e,t){var n=[][e];return!!n&&a2((function(){n.call(null,t||function(){throw 1},1)}))},qxe=y6.forEach,U6=H6(`forEach`)?[].forEach:function(e){return qxe(this,e,arguments.length>1?arguments[1]:void 0)},W6=function(e){if(e&&e.forEach!==U6)try{n4(e,`forEach`,U6)}catch{e.forEach=U6}};for(var G6 in N6)N6[G6]&&W6($[G6]&&$[G6].prototype);W6(I6);var K6,q6,J6,Y6,X6=$.Promise,Z6=K2(`species`),Q6=/(?:ipad|iphone|ipod).*applewebkit/i.test(T2),$6=g2($.process)==`process`,e8=$.setImmediate,t8=$.clearImmediate,Jxe=$.process,n8=$.Dispatch,Yxe=$.Function,r8=$.MessageChannel,Xxe=$.String,i8=0,a8={};try{K6=$.location}catch{}var o8=function(e){if(V2(a8,e)){var t=a8[e];delete a8[e],t()}},s8=function(e){return function(){o8(e)}},c8=function(e){o8(e.data)},l8=function(e){$.postMessage(Xxe(e),K6.protocol+`//`+K6.host)};e8&&t8||(e8=function(e){var t=H4(arguments,1);return a8[++i8]=function(){h3(x2(e)?e:Yxe(e),void 0,t)},q6(i8),i8},t8=function(e){delete a8[e]},$6?q6=function(e){Jxe.nextTick(s8(e))}:n8&&n8.now?q6=function(e){n8.now(s8(e))}:r8&&!Q6?(Y6=(J6=new r8).port2,J6.port1.onmessage=c8,q6=a6(Y6.postMessage,Y6)):$.addEventListener&&x2($.postMessage)&&!$.importScripts&&K6&&K6.protocol!==`file:`&&!a2(l8)?(q6=l8,$.addEventListener(`message`,c8,!1)):q6=`onreadystatechange`in Y2(`script`)?function(e){X4.appendChild(Y2(`script`)).onreadystatechange=function(){X4.removeChild(this),o8(e)}}:function(e){setTimeout(s8(e),0)});var u8,d8,f8,p8,m8,h8,g8,_8,v8={set:e8,clear:t8},Zxe=/ipad|iphone|ipod/i.test(T2)&&$.Pebble!==void 0,Qxe=/web0s(?!.*chrome)/i.test(T2),$xe=Q2.f,y8=v8.set,b8=$.MutationObserver||$.WebKitMutationObserver,x8=$.document,S8=$.process,C8=$.Promise,w8=$xe($,`queueMicrotask`),T8=w8&&w8.value;T8||(u8=function(){var e,t;for($6&&(e=S8.domain)&&e.exit();d8;){t=d8.fn,d8=d8.next;try{t()}catch(e){throw d8?p8():f8=void 0,e}}f8=void 0,e&&e.enter()},Q6||$6||Qxe||!b8||!x8?!Zxe&&C8&&C8.resolve?((g8=C8.resolve(void 0)).constructor=C8,_8=a6(g8.then,g8),p8=function(){_8(u8)}):$6?p8=function(){S8.nextTick(u8)}:(y8=a6(y8,$),p8=function(){y8(u8)}):(m8=!0,h8=x8.createTextNode(``),new b8(u8).observe(h8,{characterData:!0}),p8=function(){h8.data=m8=!m8}));var E8,D8,O8,k8,A8=T8||function(e){var t={fn:e,next:void 0};f8&&(f8.next=t),d8||(d8=t,p8()),f8=t},eSe=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=F2(t),this.reject=F2(n)},j8={f:function(e){return new eSe(e)}},M8=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}},tSe=typeof window==`object`,N8=v8.set,nSe=K2(`species`),P8=`Promise`,F8=g4.getterFor(P8),rSe=g4.set,iSe=g4.getterFor(P8),I8=X6&&X6.prototype,L8=X6,R8=I8,z8=$.TypeError,B8=$.document,V8=$.process,H8=j8.f,aSe=H8,oSe=!!(B8&&B8.createEvent&&$.dispatchEvent),U8=x2($.PromiseRejectionEvent),W8=!1,G8=A4(P8,(function(){var e=o4(L8),t=e!==String(L8);if(!t&&A2===66)return!0;if(A2>=51&&/native code/.test(e))return!1;var n=new L8((function(e){e(1)})),r=function(e){e((function(){}),(function(){}))};return(n.constructor={})[nSe]=r,!(W8=n.then((function(){}))instanceof r)||!t&&tSe&&!U8})),sSe=G8||!h6((function(e){L8.all(e).catch((function(){}))})),K8=function(e){var t;return!(!S2(e)||!x2(t=e.then))&&t},q8=function(e,t){if(!e.notified){e.notified=!0;var n=e.reactions;A8((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&&lSe(e),e.rejection=1),!0===u?o=r:(p&&p.enter(),o=u(r),p&&(p.exit(),c=!0)),o===l.promise?f(z8(`Promise-chain cycle`)):(s=K8(o))?c2(s,o,d,f):d(o)):f(r)}catch(e){p&&!c&&p.exit(),f(e)}}e.reactions=[],e.notified=!1,t&&!e.rejection&&cSe(e)}))}},J8=function(e,t,n){var r,i;oSe?((r=B8.createEvent(`Event`)).promise=t,r.reason=n,r.initEvent(e,!1,!0),$.dispatchEvent(r)):r={promise:t,reason:n},!U8&&(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)},cSe=function(e){c2(N8,$,(function(){var t,n=e.facade,r=e.value;if(Y8(e)&&(t=M8((function(){$6?V8.emit(`unhandledRejection`,r,n):J8(`unhandledrejection`,n,r)})),e.rejection=$6||Y8(e)?2:1,t.error))throw t.value}))},Y8=function(e){return e.rejection!==1&&!e.parent},lSe=function(e){c2(N8,$,(function(){var t=e.facade;$6?V8.emit(`rejectionHandled`,t):J8(`rejectionhandled`,t,e.value)}))},X8=function(e,t,n){return function(r){e(t,r,n)}},Z8=function(e,t,n){e.done||(e.done=!0,n&&(e=n),e.value=t,e.state=2,q8(e,!0))},Q8=function(e,t,n){if(!e.done){e.done=!0,n&&(e=n);try{if(e.facade===t)throw z8(`Promise can't be resolved itself`);var r=K8(t);r?A8((function(){var n={done:!1};try{c2(r,t,X8(Q8,n,e),X8(Z8,n,e))}catch(t){Z8(n,t,e)}})):(e.value=t,e.state=1,q8(e,!1))}catch(t){Z8({done:!1},t,e)}}};if(G8&&(R8=(L8=function(e){d6(this,R8),F2(e),c2(E8,this);var t=F8(this);try{e(X8(Q8,t),X8(Z8,t))}catch(e){Z8(t,e)}}).prototype,(E8=function(e){rSe(this,{type:P8,done:!1,notified:!1,parent:!1,reactions:[],rejection:!1,state:0,value:void 0})}).prototype=Z3(R8,{then:function(e,t){var n=iSe(this),r=n.reactions,i=H8(_3(this,L8));return i.ok=!x2(e)||e,i.fail=x2(t)&&t,i.domain=$6?V8.domain:void 0,n.parent=!0,r[r.length]=i,n.state!=0&&q8(n,!1),i.promise},catch:function(e){return this.then(void 0,e)}}),D8=function(){var e=new E8,t=F8(e);this.promise=e,this.resolve=X8(Q8,t),this.reject=X8(Z8,t)},j8.f=H8=function(e){return e===L8||e===O8?new D8(e):aSe(e)},x2(X6)&&I8!==Object.prototype)){k8=I8.then,W8||(b4(I8,`then`,(function(e,t){var n=this;return new L8((function(e,t){c2(k8,n,e,t)})).then(e,t)}),{unsafe:!0}),b4(I8,`catch`,R8.catch,{unsafe:!0}));try{delete I8.constructor}catch{}G3&&G3(I8,R8)}j4({global:!0,wrap:!0,forced:G8},{Promise:L8}),W3(L8,P8,!1),function(e){var t=C2(`Promise`),n=t4.f;o2&&t&&!t[Z6]&&n(t,Z6,{configurable:!0,get:function(){return this}})}(),O8=C2(P8),j4({target:P8,stat:!0,forced:G8},{reject:function(e){var t=H8(this);return c2(t.reject,void 0,e),t.promise}}),j4({target:P8,stat:!0,forced:G8},{resolve:function(e){return function(e,t){if($2(e),S2(t)&&t.constructor===e)return t;var n=j8.f(e);return(0,n.resolve)(t),n.promise}(this,e)}}),j4({target:P8,stat:!0,forced:sSe},{all:function(e){var t=this,n=H8(t),r=n.resolve,i=n.reject,a=M8((function(){var n=F2(t.resolve),a=[],o=0,s=1;u6(e,(function(e){var c=o++,l=!1;s++,c2(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=H8(t),r=n.reject,i=M8((function(){var i=F2(t.resolve);u6(e,(function(e){c2(i,t,e).then(n.resolve,r)}))}));return i.error&&r(i.value),n.promise}});var uSe=y4.PROPER,$8=RegExp.prototype,e5=$8.toString,dSe=h2(K4),fSe=a2((function(){return e5.call({source:`a`,flags:`b`})!=`/a/b`})),pSe=uSe&&e5.name!=`toString`;(fSe||pSe)&&b4(RegExp.prototype,`toString`,(function(){var e=$2(this),t=G4(e.source),n=e.flags;return`/`+t+`/`+G4(n===void 0&&w2($8,e)&&!(`flags`in $8)?dSe(e):n)}),{unsafe:!0});var mSe=y4.EXISTS,hSe=t4.f,t5=Function.prototype,gSe=h2(t5.toString),n5=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,_Se=h2(n5.exec);o2&&!mSe&&hSe(t5,`name`,{configurable:!0,get:function(){try{return _Se(n5,gSe(this))[1]}catch{return``}}});var r5=new WeakMap;function i5(e){return e.getMenuConfig(`uploadImage`)}function vSe(e,t){return O3(this,void 0,void 0,(function(){return k3(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;eI(e,a,t.name,o),n(`ok`)}}}))]}))}))}function ySe(e,t){return O3(this,void 0,void 0,(function(){var n,r,i,a;return k3(this,(function(o){switch(o.label){case 0:return n=function(e){var t=r5.get(e);if(t!=null)return t;var n=i5(e),r=n.onSuccess,i=n.onProgress,a=n.onFailed,o=n.customInsert,s=n.onError;return t=Hk(D3(D3({},n),{onProgress:function(t){e.showProgressBar(t),i&&i(t)},onSuccess:function(t,n){if(o)return o(n,(function(t,n,r){return eI(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;eI(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;eI(e,d,p,m===void 0?``:m)}r(t,n)}else a(t,n)},onError:function(e,t,n){s(e,t,n)}})),r5.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 a5(e,t){var n,r;return O3(this,void 0,void 0,(function(){var i,a,o,s,c,l,u,d,f;return k3(this,(function(p){switch(p.label){case 0:if(t==null)return[2];i=Array.prototype.slice.call(t),a=i5(e),o=a.customUpload,s=a.base64LimitSize,p.label=1;case 1:p.trys.push([1,11,12,17]),c=fxe(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,vSe(e,u)]:[3,5]);case 4:return p.sent(),[3,9];case 5:return o?[4,o(u,(function(t,n,r){return eI(e,t,n,r)}))]:[3,7];case 6:return p.sent(),[3,9];case 7:return[4,ySe(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 bSe=h2([].join),xSe=v2!=Object,SSe=H6(`join`,`,`);j4({target:`Array`,proto:!0,forced:xSe||!SSe},{join:function(e){return bSe(b2(this),e===void 0?`,`:e)}}),_g&&(J.fn.append=_g),ig&&(J.fn.on=ig),Cg&&(J.fn.remove=Cg),rg&&(J.fn.val=rg),Dg&&(J.fn.click=Dg),lg&&(J.fn.hide=lg);var CSe=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 tI(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 eI(e,t,n,r)}));else{var o=``;i.length>0&&(o=`accept="`+i.join(`, `)+`"`);var s=J(`body`),c=J(`<input type="file" `+o+` multiple/>`);c.hide(),s.append(c),c.click(),c.on(`change`,(function(){var t=c[0].files;a5(e,t)}))}},e}(),wSe={menus:[{key:`uploadImage`,factory:function(){return new CSe},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(tI(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`}))?a5(e,i):t(r)}},n}};vA(`en`,{highLightModule:{selectLang:`Language`}}),vA(`zh-CN`,{highLightModule:{selectLang:`选择语言`}});var o5=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{};function s5(e){var t={exports:{}};return e(t,t.exports),t.exports}var c5,l5,u5=function(e){return e&&e.Math==Math&&e},d5=u5(typeof globalThis==`object`&&globalThis)||u5(typeof window==`object`&&window)||u5(typeof self==`object`&&self)||u5(typeof o5==`object`&&o5)||function(){return this}()||Function(`return this`)(),TSe=Object.defineProperty,f5=function(e,t){try{TSe(d5,e,{value:t,configurable:!0,writable:!0})}catch{d5[e]=t}return t},p5=d5[`__core-js_shared__`]||f5(`__core-js_shared__`,{}),m5=s5((function(e){(e.exports=function(e,t){return p5[e]||(p5[e]=t===void 0?{}:t)})(`versions`,[]).push({version:`3.19.3`,mode:`global`,copyright:`© 2021 Denis Pushkarev (zloirock.ru)`})})),h5=Function.prototype,g5=h5.bind,_5=h5.call,ESe=g5&&g5.bind(_5),v5=g5?function(e){return e&&ESe(_5,e)}:function(e){return e&&function(){return _5.apply(e,arguments)}},DSe=d5.TypeError,y5=function(e){if(e==null)throw DSe(`Can't call method on `+e);return e},OSe=d5.Object,b5=function(e){return OSe(y5(e))},kSe=v5({}.hasOwnProperty),x5=Object.hasOwn||function(e,t){return kSe(b5(e),t)},ASe=0,jSe=Math.random(),MSe=v5(1 .toString),S5=function(e){return`Symbol(`+(e===void 0?``:e)+`)_`+MSe(++ASe+jSe,36)},C5=function(e){return typeof e==`function`},NSe=function(e){return C5(e)?e:void 0},w5=function(e,t){return arguments.length<2?NSe(d5[e]):d5[e]&&d5[e][t]},T5=w5(`navigator`,`userAgent`)||``,E5=d5.process,D5=d5.Deno,O5=E5&&E5.versions||D5&&D5.version,k5=O5&&O5.v8;k5&&(l5=(c5=k5.split(`.`))[0]>0&&c5[0]<4?1:+(c5[0]+c5[1])),!l5&&T5&&(!(c5=T5.match(/Edge\/(\d+)/))||c5[1]>=74)&&(c5=T5.match(/Chrome\/(\d+)/))&&(l5=+c5[1]);var A5=l5,j5=function(e){try{return!!e()}catch{return!0}},M5=!!Object.getOwnPropertySymbols&&!j5((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&A5&&A5<41})),N5=M5&&!Symbol.sham&&typeof Symbol.iterator==`symbol`,P5=m5(`wks`),F5=d5.Symbol,I5=F5&&F5.for,PSe=N5?F5:F5&&F5.withoutSetter||S5,L5=function(e){if(!x5(P5,e)||!M5&&typeof P5[e]!=`string`){var t=`Symbol.`+e;P5[e]=M5&&x5(F5,e)?F5[e]:N5&&I5?I5(t):PSe(t)}return P5[e]},R5={};R5[L5(`toStringTag`)]=`z`;var z5=String(R5)===`[object z]`,B5=!j5((function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})),V5=function(e){return typeof e==`object`?e!==null:C5(e)},H5=d5.document,FSe=V5(H5)&&V5(H5.createElement),U5=function(e){return FSe?H5.createElement(e):{}},W5=!B5&&!j5((function(){return Object.defineProperty(U5(`div`),"a",{get:function(){return 7}}).a!=7})),ISe=d5.String,LSe=d5.TypeError,G5=function(e){if(V5(e))return e;throw LSe(ISe(e)+` is not an object`)},K5=Function.prototype.call,q5=K5.bind?K5.bind(K5):function(){return K5.apply(K5,arguments)},J5=v5({}.isPrototypeOf),RSe=d5.Object,Y5=N5?function(e){return typeof e==`symbol`}:function(e){var t=w5(`Symbol`);return C5(t)&&J5(t.prototype,RSe(e))},zSe=d5.String,X5=function(e){try{return zSe(e)}catch{return`Object`}},BSe=d5.TypeError,Z5=function(e){if(C5(e))return e;throw BSe(X5(e)+` is not a function`)},Q5=function(e,t){var n=e[t];return n==null?void 0:Z5(n)},VSe=d5.TypeError,HSe=d5.TypeError,USe=L5(`toPrimitive`),$5=function(e){var t=function(e,t){if(!V5(e)||Y5(e))return e;var n,r=Q5(e,USe);if(r){if(t===void 0&&(t=`default`),n=q5(r,e,t),!V5(n)||Y5(n))return n;throw HSe(`Can't convert object to primitive value`)}return t===void 0&&(t=`number`),function(e,t){var n,r;if(t===`string`&&C5(n=e.toString)&&!V5(r=q5(n,e))||C5(n=e.valueOf)&&!V5(r=q5(n,e))||t!==`string`&&C5(n=e.toString)&&!V5(r=q5(n,e)))return r;throw VSe(`Can't convert object to primitive value`)}(e,t)}(e,`string`);return Y5(t)?t:t+``},WSe=d5.TypeError,e7=Object.defineProperty,t7={f:B5?e7:function(e,t,n){if(G5(e),t=$5(t),G5(n),W5)try{return e7(e,t,n)}catch{}if(`get`in n||`set`in n)throw WSe(`Accessors not supported`);return`value`in n&&(e[t]=n.value),e}},n7=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},r7=B5?function(e,t,n){return t7.f(e,t,n7(1,n))}:function(e,t,n){return e[t]=n,e},GSe=v5(Function.toString);C5(p5.inspectSource)||(p5.inspectSource=function(e){return GSe(e)});var i7,a7,o7,s7=p5.inspectSource,c7=d5.WeakMap,KSe=C5(c7)&&/native code/.test(s7(c7)),l7=m5(`keys`),u7=function(e){return l7[e]||(l7[e]=S5(e))},d7={},f7=d5.TypeError,qSe=d5.WeakMap;if(KSe||p5.state){var p7=p5.state||=new qSe,JSe=v5(p7.get),m7=v5(p7.has),YSe=v5(p7.set);i7=function(e,t){if(m7(p7,e))throw new f7(`Object already initialized`);return t.facade=e,YSe(p7,e,t),t},a7=function(e){return JSe(p7,e)||{}},o7=function(e){return m7(p7,e)}}else{var h7=u7(`state`);d7[h7]=!0,i7=function(e,t){if(x5(e,h7))throw new f7(`Object already initialized`);return t.facade=e,r7(e,h7,t),t},a7=function(e){return x5(e,h7)?e[h7]:{}},o7=function(e){return x5(e,h7)}}var g7={set:i7,get:a7,has:o7,enforce:function(e){return o7(e)?a7(e):i7(e,{})},getterFor:function(e){return function(t){var n;if(!V5(t)||(n=a7(t)).type!==e)throw f7(`Incompatible receiver, `+e+` required`);return n}}},_7=Function.prototype,XSe=B5&&Object.getOwnPropertyDescriptor,v7=x5(_7,`name`),y7={EXISTS:v7,PROPER:v7&&function(){}.name===`something`,CONFIGURABLE:v7&&(!B5||B5&&XSe(_7,`name`).configurable)},b7=s5((function(e){var t=y7.CONFIGURABLE,n=g7.get,r=g7.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;C5(a)&&(String(d).slice(0,7)===`Symbol(`&&(d=`[`+String(d).replace(/^Symbol\(([^)]*)\)/,`$1`)+`]`),(!x5(a,`name`)||t&&a.name!==d)&&r7(a,`name`,d),(s=r(a)).source||(s.source=i.join(typeof d==`string`?d:``))),e===d5?l?e[n]=a:f5(n,a):(c?!u&&e[n]&&(l=!0):delete e[n],l?e[n]=a:r7(e,n,a))})(Function.prototype,`toString`,(function(){return C5(this)&&n(this).source||s7(this)}))})),ZSe=v5({}.toString),QSe=v5(``.slice),x7=function(e){return QSe(ZSe(e),8,-1)},$Se=L5(`toStringTag`),eCe=d5.Object,tCe=x7(function(){return arguments}())==`Arguments`,S7=z5?x7: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=eCe(e),$Se))==`string`?n:tCe?x7(t):(r=x7(t))==`Object`&&C5(t.callee)?`Arguments`:r},nCe=z5?{}.toString:function(){return`[object `+S7(this)+`]`};z5||b7(Object.prototype,`toString`,nCe,{unsafe:!0});var C7,w7={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},T7=U5(`span`).classList,E7=T7&&T7.constructor&&T7.constructor.prototype,rCe=E7===Object.prototype?void 0:E7,D7=v5(v5.bind),O7=d5.Object,iCe=v5(``.split),k7=j5((function(){return!O7(`z`).propertyIsEnumerable(0)}))?function(e){return x7(e)==`String`?iCe(e,``):O7(e)}:O7,aCe=Math.ceil,oCe=Math.floor,A7=function(e){var t=+e;return t!=t||t===0?0:(t>0?oCe:aCe)(t)},sCe=Math.min,j7=function(e){return e>0?sCe(A7(e),9007199254740991):0},M7=function(e){return j7(e.length)},N7=Array.isArray||function(e){return x7(e)==`Array`},P7=function(){},cCe=[],F7=w5(`Reflect`,`construct`),I7=/^\s*(?:class|function)\b/,lCe=v5(I7.exec),uCe=!I7.exec(P7),L7=function(e){if(!C5(e))return!1;try{return F7(P7,cCe,e),!0}catch{return!1}},R7=!F7||j5((function(){var e;return L7(L7.call)||!L7(Object)||!L7((function(){e=!0}))||e}))?function(e){if(!C5(e))return!1;switch(S7(e)){case`AsyncFunction`:case`GeneratorFunction`:case`AsyncGeneratorFunction`:return!1}return uCe||!!lCe(I7,s7(e))}:L7,dCe=L5(`species`),z7=d5.Array,fCe=function(e,t){return new(function(e){var t;return N7(e)&&(t=e.constructor,(R7(t)&&(t===z7||N7(t.prototype))||V5(t)&&(t=t[dCe])===null)&&(t=void 0)),t===void 0?z7:t}(e))(t===0?0:t)},B7=v5([].push),V7=function(e){var t=e==1,n=e==2,r=e==3,i=e==4,a=e==6,o=e==7,s=e==5||a;return function(c,l,u,d){for(var f,p,m=b5(c),h=k7(m),g=function(e,t){return Z5(e),t===void 0?e:D7?D7(e,t):function(){return e.apply(t,arguments)}}(l,u),_=M7(h),v=0,y=d||fCe,b=t?y(c,_):n||o?y(c,0):void 0;_>v;v++)if((s||v in h)&&(p=g(f=h[v],v,m),e)){if(t)b[v]=p;else if(p)switch(e){case 3:return!0;case 5:return f;case 6:return v;case 2:B7(b,f)}else switch(e){case 4:return!1;case 7:B7(b,f)}}return a?-1:r||i?i:b}},pCe=[V7(0),V7(1),V7(2),V7(3),V7(4),V7(5),V7(6),V7(7)][0],H7=(C7=[].forEach)&&j5((function(){C7.call(null,(function(){throw 1}),1)}))?[].forEach:function(e){return pCe(this,e,arguments.length>1?arguments[1]:void 0)},U7=function(e){if(e&&e.forEach!==H7)try{r7(e,`forEach`,H7)}catch{e.forEach=H7}};for(var W7 in w7)w7[W7]&&U7(d5[W7]&&d5[W7].prototype);U7(rCe);var G7={}.propertyIsEnumerable,K7=Object.getOwnPropertyDescriptor,q7={f:K7&&!G7.call({1:2},1)?function(e){var t=K7(this,e);return!!t&&t.enumerable}:G7},J7=function(e){return k7(y5(e))},Y7=Object.getOwnPropertyDescriptor,X7={f:B5?Y7:function(e,t){if(e=J7(e),t=$5(t),W5)try{return Y7(e,t)}catch{}if(x5(e,t))return n7(!q5(q7.f,e,t),e[t])}},mCe=Math.max,hCe=Math.min,Z7=function(e,t){var n=A7(e);return n<0?mCe(n+t,0):hCe(n,t)},gCe=function(e){return function(t,n,r){var i,a=J7(t),o=M7(a),s=Z7(r,o);if(e&&n!=n){for(;o>s;)if((i=a[s++])!=i)return!0}else for(;o>s;s++)if((e||s in a)&&a[s]===n)return e||s||0;return!e&&-1}}(!1),Q7=v5([].push),$7=function(e,t){var n,r=J7(e),i=0,a=[];for(n in r)!x5(d7,n)&&x5(r,n)&&Q7(a,n);for(;t.length>i;)x5(r,n=t[i++])&&(~gCe(a,n)||Q7(a,n));return a},e9=[`constructor`,`hasOwnProperty`,`isPrototypeOf`,`propertyIsEnumerable`,`toLocaleString`,`toString`,`valueOf`],_Ce=e9.concat(`length`,`prototype`),vCe={f:Object.getOwnPropertyNames||function(e){return $7(e,_Ce)}},t9={f:Object.getOwnPropertySymbols},yCe=v5([].concat),bCe=w5(`Reflect`,`ownKeys`)||function(e){var t=vCe.f(G5(e)),n=t9.f;return n?yCe(t,n(e)):t},xCe=function(e,t){for(var n=bCe(t),r=t7.f,i=X7.f,a=0;a<n.length;a++){var o=n[a];x5(e,o)||r(e,o,i(t,o))}},SCe=/#|\.prototype\./,n9=function(e,t){var n=wCe[CCe(e)];return n==ECe||n!=TCe&&(C5(t)?j5(t):!!t)},CCe=n9.normalize=function(e){return String(e).replace(SCe,`.`).toLowerCase()},wCe=n9.data={},TCe=n9.NATIVE=`N`,ECe=n9.POLYFILL=`P`,DCe=n9,OCe=X7.f,r9=function(e,t){var n,r,i,a,o,s=e.target,c=e.global,l=e.stat;if(n=c?d5:l?d5[s]||f5(s,{}):(d5[s]||{}).prototype)for(r in t){if(a=t[r],i=e.noTargetGet?(o=OCe(n,r))&&o.value:n[r],!DCe(c?r:s+(l?`.`:`#`)+r,e.forced)&&i!==void 0){if(typeof a==typeof i)continue;xCe(a,i)}(e.sham||i&&i.sham)&&r7(a,`sham`,!0),b7(n,r,a,e)}},i9=Object.keys||function(e){return $7(e,e9)},a9=Object.assign,o9=Object.defineProperty,kCe=v5([].concat),s9=!a9||j5((function(){if(B5&&a9({b:1},a9(o9({},`a`,{enumerable:!0,get:function(){o9(this,`b`,{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var e={},t={},n=Symbol(),r=`abcdefghijklmnopqrst`;return e[n]=7,r.split(``).forEach((function(e){t[e]=e})),a9({},e)[n]!=7||i9(a9({},t)).join(``)!=r}))?function(e,t){for(var n=b5(e),r=arguments.length,i=1,a=t9.f,o=q7.f;r>i;)for(var s,c=k7(arguments[i++]),l=a?kCe(i9(c),a(c)):i9(c),u=l.length,d=0;u>d;)s=l[d++],B5&&!q5(o,c,s)||(n[s]=c[s]);return n}:a9;r9({target:`Object`,stat:!0,forced:Object.assign!==s9},{assign:s9});var c9=s5((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 I={cause:f+`,`+m,reach:P};s(e,t,n,S.prev,C,I),d&&I.reach>d.reach&&(d.reach=I.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,o5!==void 0&&(o5.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`),s.textContent=f.status>=400?`✖ Error `+f.status+` while fetching file: `+f.statusText:`✖ 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 ACe=`comment.prolog.doctype.cdata.punctuation.namespace.property.tag.boolean.number.constant.symbol.deleted.selector.attr-name.string.builtin.inserted.operator.entity.url.string.atrule.attr-value.keyword.function.class-name.regex.important.variable.bold.italic.entity.char`.split(`.`);function l9(e){return typeof e==`string`?e.length:typeof e.content==`string`?e.content.length:e.content.reduce((function(e,t){return e+l9(t)}),0)}var u9,jCe=d5.String,d9=function(e){if(S7(e)===`Symbol`)throw TypeError(`Cannot convert a Symbol value to a string`);return jCe(e)},f9=function(){var e=G5(this),t=``;return e.global&&(t+=`g`),e.ignoreCase&&(t+=`i`),e.multiline&&(t+=`m`),e.dotAll&&(t+=`s`),e.unicode&&(t+=`u`),e.sticky&&(t+=`y`),t},p9=d5.RegExp,m9=j5((function(){var e=p9(`a`,`y`);return e.lastIndex=2,e.exec(`abcd`)!=null})),MCe=m9||j5((function(){return!p9(`a`,`y`).sticky})),h9={BROKEN_CARET:m9||j5((function(){var e=p9(`^r`,`gy`);return e.lastIndex=2,e.exec(`str`)!=null})),MISSED_STICKY:MCe,UNSUPPORTED_Y:m9},NCe=B5?Object.defineProperties:function(e,t){G5(e);for(var n,r=J7(t),i=i9(t),a=i.length,o=0;a>o;)t7.f(e,n=i[o++],r[n]);return e},PCe=w5(`document`,`documentElement`),g9=u7(`IE_PROTO`),_9=function(){},v9=function(e){return`<script>`+e+`<\/script>`},y9=function(e){e.write(v9(``)),e.close();var t=e.parentWindow.Object;return e=null,t},b9=function(){try{u9=new ActiveXObject(`htmlfile`)}catch{}var e,t;b9=typeof document<`u`?document.domain&&u9?y9(u9):((t=U5(`iframe`)).style.display=`none`,PCe.appendChild(t),t.src=`javascript:`,(e=t.contentWindow.document).open(),e.write(v9(`document.F=Object`)),e.close(),e.F):y9(u9);for(var n=e9.length;n--;)delete b9.prototype[e9[n]];return b9()};d7[g9]=!0;var x9,S9,FCe=Object.create||function(e,t){var n;return e===null?n=b9():(_9.prototype=G5(e),n=new _9,_9.prototype=null,n[g9]=e),t===void 0?n:NCe(n,t)},ICe=d5.RegExp,LCe=j5((function(){var e=ICe(`.`,`s`);return!(e.dotAll&&e.exec(`
`)&&e.flags===`s`)})),RCe=d5.RegExp,zCe=j5((function(){var e=RCe(`(?<a>b)`,`g`);return e.exec(`b`).groups.a!==`b`||`b`.replace(e,`$<a>c`)!==`bc`})),BCe=g7.get,VCe=m5(`native-string-replace`,String.prototype.replace),C9=RegExp.prototype.exec,w9=C9,HCe=v5(``.charAt),UCe=v5(``.indexOf),WCe=v5(``.replace),T9=v5(``.slice),E9=(S9=/b*/g,q5(C9,x9=/a/,`a`),q5(C9,S9,`a`),x9.lastIndex!==0||S9.lastIndex!==0),D9=h9.BROKEN_CARET,O9=/()??/.exec(``)[1]!==void 0;(E9||O9||D9||LCe||zCe)&&(w9=function(e){var t,n,r,i,a,o,s,c=this,l=BCe(c),u=d9(e),d=l.raw;if(d)return d.lastIndex=c.lastIndex,t=q5(w9,d,u),c.lastIndex=d.lastIndex,t;var f=l.groups,p=D9&&c.sticky,m=q5(f9,c),h=c.source,g=0,_=u;if(p&&(m=WCe(m,`y`,``),UCe(m,`g`)===-1&&(m+=`g`),_=T9(u,c.lastIndex),c.lastIndex>0&&(!c.multiline||c.multiline&&HCe(u,c.lastIndex-1)!==`
`)&&(h=`(?: `+h+`)`,_=` `+_,g++),n=RegExp(`^(?:`+h+`)`,m)),O9&&(n=RegExp(`^`+h+`$(?!\\s)`,m)),E9&&(r=c.lastIndex),i=q5(C9,p?n:c,_),p?i?(i.input=T9(i.input,g),i[0]=T9(i[0],g),i.index=c.lastIndex,c.lastIndex+=i[0].length):c.lastIndex=0:E9&&i&&(c.lastIndex=c.global?i.index+i[0].length:r),O9&&i&&i.length>1&&q5(VCe,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=FCe(null),a=0;a<f.length;a++)o[(s=f[a])[0]]=i[s[1]];return i});var k9=w9;r9({target:`RegExp`,proto:!0,forced:/./.exec!==k9},{exec:k9});var A9=Function.prototype,j9=A9.apply,GCe=A9.bind,M9=A9.call,KCe=typeof Reflect==`object`&&Reflect.apply||(GCe?M9.bind(j9):function(){return M9.apply(j9,arguments)}),qCe=L5(`species`),N9=RegExp.prototype,JCe=L5(`match`),YCe=d5.TypeError,XCe=L5(`species`),ZCe=v5(``.charAt),P9=v5(``.charCodeAt),QCe=v5(``.slice),$Ce=function(e){return function(t,n){var r,i,a=d9(y5(t)),o=A7(n),s=a.length;return o<0||o>=s?e?``:void 0:(r=P9(a,o))<55296||r>56319||o+1===s||(i=P9(a,o+1))<56320||i>57343?e?ZCe(a,o):r:e?QCe(a,o,o+2):i-56320+(r-55296<<10)+65536}}(!0),ewe=function(e,t,n){return t+(n?$Ce(e,t).length:1)},twe=d5.Array,nwe=Math.max,F9=function(e,t,n){for(var r,i,a,o,s=M7(e),c=Z7(t,s),l=Z7(n===void 0?s:n,s),u=twe(nwe(l-c,0)),d=0;c<l;c++,d++)r=u,i=d,a=e[c],(o=$5(i))in r?t7.f(r,o,n7(0,a)):r[o]=a;return u.length=d,u},rwe=d5.TypeError,I9=function(e,t){var n=e.exec;if(C5(n)){var r=q5(n,e,t);return r!==null&&G5(r),r}if(x7(e)===`RegExp`)return q5(k9,e,t);throw rwe(`RegExp#exec called on incompatible receiver`)},L9=h9.UNSUPPORTED_Y,iwe=Math.min,R9=[].push,awe=v5(/./.exec),z9=v5(R9),B9=v5(``.slice);(function(e,t,n,r){var i=L5(e),a=!j5((function(){var t={};return t[i]=function(){return 7},``[e](t)!=7})),o=a&&!j5((function(){var e=!1,t=/a/;return(t={}).constructor={},t.constructor[qCe]=function(){return t},t.flags=``,t[i]=/./[i],t.exec=function(){return e=!0,null},t[i](``),!e}));if(!a||!o||n){var s=v5(/./[i]),c=function(e,t,n){var r=`abbc`.split(/(b)*/)[1]==`c`||`test`.split(/(?:)/,-1).length!=4||`ab`.split(/(?:ab)*/).length!=2||`.`.split(/(.?)(.?)/).length!=4||`.`.split(/()()/).length>1||``.split(/.?/).length?function(e,n){var r,i,a=d9(y5(this)),o=n===void 0?4294967295:n>>>0;if(o===0)return[];if(e===void 0)return[a];if(!V5(r=e)||!((i=r[JCe])===void 0?x7(r)==`RegExp`:i))return q5(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=q5(k9,p,a))&&!((c=p.lastIndex)>f&&(z9(u,B9(a,f,s.index)),s.length>1&&s.index<a.length&&KCe(R9,u,F9(s,1)),l=s[0].length,f=c,u.length>=o));)p.lastIndex===s.index&&p.lastIndex++;return f===a.length?!l&&awe(p,``)||z9(u,``):z9(u,B9(a,f)),u.length>o?F9(u,0,o):u}:`0`.split(void 0,0).length?function(e,n){return e===void 0&&n===0?[]:q5(t,this,e,n)}:t;return[function(t,n){var i=y5(this),a=t==null?void 0:Q5(t,e);return a?q5(a,t,i,n):q5(r,d9(i),t,n)},function(e,i){var a=G5(this),o=d9(e),s=n(r,a,o,i,r!==t);if(s.done)return s.value;var c=function(e,t){var n,r=G5(e).constructor;return r===void 0||(n=G5(r)[XCe])==null?t:function(e){if(R7(e))return e;throw YCe(X5(e)+` is not a constructor`)}(n)}(a,RegExp),l=a.unicode,u=(a.ignoreCase?`i`:``)+(a.multiline?`m`:``)+(a.unicode?`u`:``)+(L9?`g`:`y`),d=new c(L9?`^(?:`+a.source+`)`:a,u),f=i===void 0?4294967295:i>>>0;if(f===0)return[];if(o.length===0)return I9(d,o)===null?[o]:[];for(var p=0,m=0,h=[];m<o.length;){d.lastIndex=L9?0:m;var g,_=I9(d,L9?B9(o,m):o);if(_===null||(g=iwe(j7(d.lastIndex+(L9?m:0)),o.length))===p)m=ewe(o,m,l);else{if(z9(h,B9(o,p,m)),h.length===f)return h;for(var v=1;v<=_.length-1;v++)if(z9(h,_[v]),h.length===f)return h;m=p=g}}return z9(h,B9(o,p)),h}]}(i,``[e],(function(e,t,n,r,i){var o=v5(e),c=t.exec;return c===k9||c===N9.exec?a&&!i?{done:!0,value:s(t,n,r)}:{done:!0,value:o(n,t,r)}:{done:!1}}));b7(String.prototype,e,c[0]),b7(N9,i,c[1])}r&&r7(N9[i],`sham`,!0)})(`split`,0,!!j5((function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n=`ab`.split(e);return n.length!==2||n[0]!==`a`||n[1]!==`b`})),L9),r9({global:!0},{globalThis:d5}),eg&&(J.fn.attr=eg);var owe=y7.PROPER,V9=RegExp.prototype,H9=V9.toString,swe=v5(f9),cwe=j5((function(){return H9.call({source:`a`,flags:`b`})!=`/a/b`})),lwe=owe&&H9.name!=`toString`;(cwe||lwe)&&b7(RegExp.prototype,`toString`,(function(){var e=G5(this),t=d9(e.source),n=e.flags;return`/`+t+`/`+d9(n===void 0&&J5(V9,e)&&!(`flags`in V9)?swe(e):n)}),{unsafe:!0});var uwe=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||!V.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()};q.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 V.isElement(n)&&n.type===`pre`?t:null},e}(),dwe={renderStyle:function(e,t){var n=e,r=t,i=``;return ACe.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=J(e);if(!V.isElement(t)||X.getNodeType(t)!==`code`)return t;var i=t,a=r.attr(`class`)||``;return i.language=a.indexOf(`language-`)===0?a.split(`-`)[1]||``:a.toLowerCase(),i},menus:[{key:`codeSelectLang`,factory:function(){return new uwe},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>`}}]},fwe=/"/g,pwe=v5(``.replace);r9({target:`String`,proto:!0,forced:j5((function(){var e=``.anchor(`"`);return e!==e.toLowerCase()||e.split(`"`).length>3}))},{anchor:function(e){return t=e,n=d9(y5(this)),r=`<a`,(r+=` name="`+pwe(d9(t),fwe,`&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(!K.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=c9.languages[t];return n?c9.tokenize(e.text,n):[]}(a,u),f=0;try{for(var p=function(e){var t=typeof Symbol==`function`&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length==`number`)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}(d),m=p.next();!m.done;m=p.next()){var h=m.value,g=f+l9(h);typeof h!=`string`&&s.push(((r={})[h.type]=!0,r.anchor={path:o,offset:f},r.focus={path:o,offset:g},r)),f=g}}catch(e){t={error:e}}finally{try{m&&!m.done&&(n=p.return)&&n.call(p)}finally{if(t)throw t.error}}return s},W9=function(){return W9=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},W9.apply(this,arguments)},G9=function(){function e(){throw Error(`不能实例化
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=kw(kw({},i),t||{});if(mE[n]!=null)throw Error(`Duplicated key '`+n+`' in menu items`);mE[n]=r,function(e,t){t!=null&&(pE[e]=t)}(n,a)})(e,t)},e.registerRenderElem=function(e){(function(e){var t=e.type,n=e.renderElem;ck[t||``]=n})(e)},e.registerRenderStyle=function(e){(function(e){sk.push(e)})(e)},e.registerElemToHtml=function(e){(function(e){var t=e.type,n=e.elemToHtml;bE[t||``]=n})(e)},e.registerStyleToHtml=function(e){(function(e){yE.push(e)})(e)},e.registerPreParseHtml=function(e){(function(e){$D.push(e)})(e)},e.registerParseElemHtml=function(e){(function(e){var t=e.selector;tO[t]=e.parseElemHtml})(e)},e.registerParseStyleHtml=function(e){(function(e){eO.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)}gB.forEach((function(e){return K9(e)})),K9(PK),K9(Oge),K9(Fye),K9(wSe),K9(dwe);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`]}},mwe={hoverbarKeys:W9(W9({},J9),{text:{menuKeys:[`headerSelect`,`insertLink`,`bulletedList`,`|`,`bold`,`through`,`color`,`bgColor`,`clearStyle`]}})};G9.setEditorConfig(W9(W9({},mwe),{decorate:U9}));var hwe={hoverbarKeys:J9};G9.setSimpleEditorConfig(W9(W9({},hwe),{decorate:U9}));var gwe={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(gwe);var _we={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 vwe(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 Mue({selector:n,config:W9(W9(W9({},l),s),{hoverbarKeys:u}),content:i,html:a,plugins:G9.plugins})}function ywe(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 jO(e,`data-w-e-toolbar`,t)}(e,n))throw Error(`Repeated create toolbar by selector '`+n+`'`);var a=new Lue(n,kw({toolbarKeys:[],excludeKeys:[],insertKeys:{index:0,keys:[]},modalAppendToBody:!1},i||{}));return CT.set(a,e),wT.set(e,a),a}(n,{selector:t,config:W9(W9({},s),i)})}G9.setSimpleToolbarConfig(_we);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 bwe(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,z.useRef)(null),_=X9((0,z.useState)(null),2),v=_[0],y=_[1],b=X9((0,z.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,z.useEffect)((function(){if(v!=null&&s!==x)try{v.setHtml(s)}catch(e){console.error(e)}}),[s]),(0,z.useEffect)((function(){g.current!=null&&v==null&&!g.current?.getAttribute(`data-w-e-textarea`)&&y(vwe({selector:g.current,config:Y9(Y9({},u),{onCreated:C,onChange:w,onDestroyed:T}),content:n,html:a||s,mode:f}))}),[v]),z.createElement(`div`,{style:m,ref:g,className:h})}function xwe(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,z.useRef)(null);return(0,z.useEffect)((function(){l.current!=null&&t!=null&&ywe({editor:t,selector:l.current,config:r,mode:a})}),[t]),z.createElement(`div`,{style:s,ref:l,className:c})}var Swe=({value:e,onChange:t,disabled:n=!1,height:r=400,placeholder:i,groupId:a=0,maxSize:o=5})=>{let{t:s}=ct(),{token:c}=Et.useToken(),[l,u]=(0,z.useState)(null),d=(0,z.useCallback)(async(e,t)=>{if(!e.type.startsWith(`image/`)){yt.error(s(`xin.form.richText.error.notImage`));return}if(e.size/1024/1024>o){yt.error(s(`xin.form.richText.error.sizeExceeded`,{maxSize:o}));return}try{let n=(await Nt(e,a)).data.data;t(n.preview_url||n.file_url||``,n.file_name||``,``)}catch{yt.error(s(`xin.form.richText.error.uploadFailed`))}},[s,a,o]),f=(0,z.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,z.useMemo)(()=>({placeholder:i,MENU_CONF:{uploadImage:{customUpload:d,allowedFileTypes:[`image/*`],maxFileSize:o*1024*1024,base64LimitSize:0}}}),[i,d,o]);return(0,z.useEffect)(()=>{l!=null&&(n?l.disable():l.enable())},[l,n]),(0,z.useEffect)(()=>()=>{l!=null&&(l.destroy(),u(null))},[l]),(0,B.jsxs)(`div`,{style:{border:`1px solid ${c.colorBorder}`,borderRadius:c.borderRadius,overflow:`hidden`},children:[!n&&(0,B.jsx)(xwe,{editor:l,defaultConfig:f,mode:`default`,style:{borderBottom:`1px solid ${c.colorBorder}`}}),(0,B.jsx)(bwe,{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,r){return n({url:e,method:`get`,params:t,...r||{}})}function Cwe(e,t,r){return n({url:e,method:`post`,data:t,...r||{}})}function wwe(e,t,r){return n({url:e,method:`put`,data:t,...r||{}})}function Twe(e,t,r){return n({url:e,method:`delete`,params:t,...r||{}})}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}=ct(),[l,u]=(0,z.useState)(!1),[d,f]=(0,z.useState)(!1),[p,m]=(0,z.useState)([]),[h,g]=(0,z.useState)([]),[_,v]=(0,z.useState)(!1),[y,b]=(0,z.useState)([]),[x,S]=(0,z.useState)({current:1,pageSize:10,total:0}),[C,w]=(0,z.useState)();(0,z.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,z.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,B.jsx)(st,{color:`volcano`,children:e}):`-`}]:[],{title:c(`system.user.status`),dataIndex:`status`,width:100,align:`center`,render:e=>e===1?(0,B.jsx)(st,{color:`success`,children:c(`system.user.status.1`)}):(0,B.jsx)(st,{color:`error`,children:c(`system.user.status.0`)})}],[c,o]),E=(0,z.useCallback)(()=>{t?.(n===`single`?p[0]?.id||null:p.map(e=>e.id)),u(!1)},[n,p,t]),D=(0,z.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,z.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,z.useEffect)(()=>{l&&O(1,x.pageSize,C?.keywordSearch)},[l]);let k=(0,z.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,z.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,z.useMemo)(()=>p.map(e=>({label:e.nickname||e.username,value:e.id})),[p]);return(0,B.jsxs)(B.Fragment,{children:[(0,B.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,B.jsxs)(jt,{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,B.jsx)(`div`,{style:{marginBottom:16},children:(0,B.jsx)(ot.Search,{placeholder:c(`system.user.searchPlaceholder`),style:{width:304},onSearch:e=>{w({keywordSearch:e}),O(1,x.pageSize,e)},allowClear:!0})}),(0,B.jsx)(Le,{...k})]})]})},{TextArea:Ewe,Password:Dwe}=ot,{RangePicker:Owe}=Hi;function $9(e){let{valueType:t,...n}=e,r;switch(t){case`password`:r=(0,B.jsx)(Dwe,{...n});break;case`textarea`:r=(0,B.jsx)(Ewe,{rows:4,...n});break;case`digit`:r=(0,B.jsx)(lt,{style:{width:`100%`},...n});break;case`money`:r=(0,B.jsx)(lt,{style:{width:`100%`},precision:2,prefix:`¥`,...n});break;case`select`:r=(0,B.jsx)(pt,{...n});break;case`treeSelect`:r=(0,B.jsx)(Sa,{...n});break;case`cascader`:r=(0,B.jsx)(Di,{...n});break;case`radio`:r=(0,B.jsx)($e.Group,{options:[],optionType:`default`,...n});break;case`radioButton`:r=(0,B.jsx)($e.Group,{options:[],optionType:`button`,...n});break;case`checkbox`:r=(0,B.jsx)(nt.Group,{options:[],...n});break;case`switch`:r=(0,B.jsx)(wt,{...n});break;case`rate`:r=(0,B.jsx)(Vte,{...n});break;case`slider`:r=(0,B.jsx)(Mt,{...n});break;case`date`:r=(0,B.jsx)(Hi,{style:{width:`100%`},...n});break;case`dateTime`:r=(0,B.jsx)(Hi,{style:{width:`100%`},showTime:!0,...n});break;case`dateRange`:r=(0,B.jsx)(Owe,{style:{width:`100%`},...n});break;case`time`:r=(0,B.jsx)(Ji,{style:{width:`100%`},...n});break;case`timeRange`:r=(0,B.jsx)(Ji.RangePicker,{style:{width:`100%`},...n});break;case`week`:r=(0,B.jsx)(Hi,{style:{width:`100%`},picker:`week`,...n});break;case`month`:r=(0,B.jsx)(Hi,{style:{width:`100%`},picker:`month`,...n});break;case`quarter`:r=(0,B.jsx)(Hi,{style:{width:`100%`},picker:`quarter`,...n});break;case`year`:r=(0,B.jsx)(Hi,{style:{width:`100%`},picker:`year`,...n});break;case`color`:r=(0,B.jsx)(_t,{...n});break;case`image`:r=(0,B.jsx)(Pt,{...n});break;case`richText`:r=(0,B.jsx)(Swe,{...n});break;case`icon`:r=(0,B.jsx)(wa,{...n});break;case`user`:r=(0,B.jsx)(Q9,{...n});break;default:r=(0,B.jsx)(ot,{...n})}return r}var kwe=kt();function Awe(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}=ct(),[h]=at.useForm(c),[g,_]=(0,z.useState)(!1),[v,y]=(0,z.useState)(!1);(0,z.useImperativeHandle)(s,()=>({...h,open:x,close:S,isOpen:()=>g,setLoading:e=>y(e)}));let b=(0,z.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,z.useCallback)((e,t)=>{let{dataIndex:n,valueType:i,title:o=``,fieldProps:s={},dependency:c,fieldRender:l,colProps:u={span:12}}=e,d=(0,kwe.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,B.jsx)(at.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,B.jsx)($9,{valueType:i,placeholder:o,..._});return r?(0,z.createElement)(rt,{...a,...u,key:f},(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)):(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):v},f)}});{let t=(0,B.jsx)($9,{valueType:i,placeholder:o,...s});return r?(0,z.createElement)(rt,{...a,...u,key:f},(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)):(0,B.jsx)(at.Item,{name:n,label:e.title||e.label,...d,children:l?l(h):t},f)}},[r,c]),w=(0,z.useMemo)(()=>{if(f?.render===!1)return null;let e={submit:(0,B.jsx)(Je,{type:`primary`,loading:v,onClick:()=>h.submit(),...f?.submitButtonProps,children:f?.submitText||m(`xin.form.submit`)}),close:(0,B.jsx)(Je,{loading:v,onClick:S,...f?.closeButtonProps,children:f?.closeText||m(`xin.form.cancel`)}),reset:(0,B.jsx)(Je,{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,B.jsx)(at.Item,{children:(0,B.jsxs)(Re,{children:[e.reset,e.submit]})}):(0,B.jsxs)(Re,{children:[e.reset,e.submit,e.close]})},[v,c,f,m]),T=(0,z.useMemo)(()=>(0,B.jsxs)(at,{...p,form:h,onFinish:b,children:[r?(0,B.jsx)(it,{...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,z.useMemo)(()=>d?z.cloneElement(d,{onClick:x}):null,[d,x]);return n===`ModalForm`?(0,B.jsxs)(B.Fragment,{children:[E,(0,B.jsx)(jt,{open:g,onCancel:S,footer:w,...l,children:T})]}):n===`DrawerForm`?(0,B.jsxs)(B.Fragment,{children:[E,(0,B.jsx)(ht,{open:g,onClose:S,footer:w,...u,children:T})]}):T}export{Twe as a,wa as c,Cwe as i,Sa as l,$9 as n,Z9 as o,Q9 as r,wwe as s,Awe as t,Hi as u};