file-viewer-demo/public/dist/assets/XlsxTable-0a398d95.js

103 lines
987 KiB
JavaScript
Raw Permalink Normal View History

2024-01-30 07:57:29 +00:00
import{c as fh,d as FS,m as BN,a as Uu,b as Yu,e as UN,r as Rl,g as YN,f as GN,h as zN,w as jN,o as KN,u as TR,i as XN,j as qN,k as mf,l as ZN,F as QN,n as JN,p as eL,q as tL,s as nL,t as rL,v as iL,_ as oL}from"./index-be50c070.js";import{r as bI}from"./worker-ref-b3abaee8.js";import{c as gh}from"./_commonjs-dynamic-modules-302442b1.js";const sL=""+new URL("xlsx-08add3c8.png",import.meta.url).href,aL=""+new URL("loading-43b144a3.gif",import.meta.url).href;var Zl=function(t){return t&&t.Math===Math&&t},_n=Zl(typeof globalThis=="object"&&globalThis)||Zl(typeof window=="object"&&window)||Zl(typeof self=="object"&&self)||Zl(typeof fh=="object"&&fh)||Zl(typeof fh=="object"&&fh)||function(){return this}()||Function("return this")(),WS={},Hr=function(t){try{return!!t()}catch{return!0}},lL=Hr,Ni=!lL(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7}),uL=Hr,hg=!uL(function(){var t=(function(){}).bind();return typeof t!="function"||t.hasOwnProperty("prototype")}),cL=hg,mh=Function.prototype.call,pa=cL?mh.bind(mh):function(){return mh.apply(mh,arguments)},RI={},EI={}.propertyIsEnumerable,TI=Object.getOwnPropertyDescriptor,hL=TI&&!EI.call({1:2},1);RI.f=hL?function(e){var n=TI(this,e);return!!n&&n.enumerable}:EI;var dg=function(t,e){return{enumerable:!(t&1),configurable:!(t&2),writable:!(t&4),value:e}},_I=hg,MI=Function.prototype,vC=MI.call,dL=_I&&MI.bind.bind(vC,vC),Un=_I?dL:function(t){return function(){return vC.apply(t,arguments)}},AI=Un,fL=AI({}.toString),gL=AI("".slice),$l=function(t){return gL(fL(t),8,-1)},mL=Un,pL=Hr,wL=$l,Hp=Object,vL=mL("".split),CL=pL(function(){return!Hp("z").propertyIsEnumerable(0)})?function(t){return wL(t)==="String"?vL(t,""):Hp(t)}:Hp,VS=function(t){return t==null},SL=VS,yL=TypeError,OI=function(t){if(SL(t))throw new yL("Can't call method on "+t);return t},bL=CL,RL=OI,fg=function(t){return bL(RL(t))},Dp=typeof document=="object"&&document.all,Mn=typeof Dp>"u"&&Dp!==void 0?function(t){return typeof t=="function"||t===Dp}:function(t){return typeof t=="function"},EL=Mn,ws=function(t){return typeof t=="object"?t!==null:EL(t)},Np=_n,TL=Mn,_L=function(t){return TL(t)?t:void 0},kc=function(t,e){return arguments.length<2?_L(Np[t]):Np[t]&&Np[t][e]},ML=Un,BS=ML({}.isPrototypeOf),US=typeof navigator<"u"&&String(navigator.userAgent)||"",II=_n,Lp=US,_R=II.process,MR=II.Deno,AR=_R&&_R.versions||MR&&MR.version,OR=AR&&AR.v8,Qr,pf;OR&&(Qr=OR.split("."),pf=Qr[0]>0&&Qr[0]<4?1:+(Qr[0]+Qr[1]));!pf&&Lp&&(Qr=Lp.match(/Edge\/(\d+)/),(!Qr||Qr[1]>=74)&&(Qr=Lp.match(/Chrome\/(\d+)/),Qr&&(pf=+Qr[1])));var AL=pf,IR=AL,OL=Hr,IL=_n,PL=IL.String,YS=!!Object.getOwnPropertySymbols&&!OL(function(){var t=Symbol("symbol detection");return!PL(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&IR&&IR<41}),xL=YS,PI=xL&&!Symbol.sham&&typeof Symbol.iterator=="symbol",HL=kc,DL=Mn,NL=BS,LL=PI,$L=Object,GS=LL?function(t){return typeof t=="symbol"}:function(t){var e=HL("Symbol");return DL(e)&&NL(e.prototype,$L(t))},kL=String,gg=function(t){try{return kL(t)}catch{return"Object"}},FL=Mn,WL=gg,VL=TypeError,mg=function(t){if(FL(t))return t;throw new VL(WL(t)+" is not a function")},BL=mg,UL=VS,zS=function(t,e){var n=t[e];return UL(n)?void 0:BL(n)},$p=pa,kp=Mn,Fp=ws,YL=TypeError,GL=function(t,e){var n,r;if(e==="string"&&kp(n=t.toString)&&!Fp(r=$p(n,t))||kp(n=t.valueOf)&&!Fp(r=$p(n,t))||e!=="string"&&kp(n=t.toString)&&!Fp(r=$p(n,t)))return r;throw new YL("Can't convert object to primitive value")},xI={exports:{}},PR=_n,zL=Object.defineProperty,jS=function(t,e){try{zL(PR,t,{value:e,configurable:!0,writable:!0})}catch{PR[t]=e}return e},jL=_n,KL=jS,xR="__core-js_shared__",XL=jL[xR]||KL(xR,{}),KS=XL,HR=KS;(xI.exports=function(t,e){return HR[t]||(HR[t]=e!==void 0?e:{})})("versions",[]).push({version:"3.35.1",mode:"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"});var HI=xI.exports,qL=OI,ZL=Object,pg=function(t){return ZL(qL(t))},QL=Un,JL=pg,e$=QL({}.hasOwnProperty),yo=Object.hasOwn||function(e,n){return
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var DV=Object.hasOwnProperty,gE=Object.setPrototypeOf,NV=Object.isFrozen,LV=Object.getPrototypeOf,$V=Object.getOwnPropertyDescriptor,Bn=Object.freeze,ni=Object.seal,kV=Object.create,hP=typeof Reflect<"u"&&Reflect,Sf=hP.apply,OC=hP.construct;Sf||(Sf=function(e,n,r){return e.apply(n,r)});Bn||(Bn=function(e){return e});ni||(ni=function(e){return e});OC||(OC=function(e,n){return Ud(e,jr(n))});var FV=Pr(Array.prototype.forEach),mE=Pr(Array.prototype.pop),Ql=Pr(Array.prototype.push),Yd=Pr(String.prototype.toLowerCase),Jp=Pr(String.prototype.toString),WV=Pr(String.prototype.match),$r=Pr(String.prototype.replace),VV=Pr(String.prototype.indexOf),BV=Pr(String.prototype.trim),Pn=Pr(RegExp.prototype.test),ew=UV(TypeError);function Pr(t){return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return Sf(t,e,r)}}function UV(t){return function(){for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];return OC(t,n)}}function je(t,e,n){var r;n=(r=n)!==null&&r!==void 0?r:Yd,gE&&gE(t,null);for(var i=e.length;i--;){var o=e[i];if(typeof o=="string"){var s=n(o);s!==o&&(NV(e)||(e[i]=s),o=s)}t[o]=!0}return t}function Es(t){var e=kV(null),n;for(n in t)Sf(DV,t,[n])===!0&&(e[n]=t[n]);return e}function Ch(t,e){for(;t!==null;){var n=$V(t,e);if(n){if(n.get)return Pr(n.get);if(typeof n.value=="function")return Pr(n.value)}t=LV(t)}function r(i){return console.warn("fallback value for",i),null}return r}var pE=Bn(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),tw=Bn(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),nw=Bn(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),YV=Bn(["animate","color-profile","cursor","discard","fedropshadow","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),rw=Bn(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover"]),GV=Bn(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),wE=Bn(["#text"]),vE=Bn(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellsp
`+rn),He&&(rn=$r(rn,ve," "),rn=$r(rn,_e," "),rn=$r(rn,rt," ")),N&&be?N.createHTML(rn):rn},e.setConfig=function(Re){Qt(Re),lt=!0},e.clearConfig=function(){cn=null,lt=!1},e.isValidAttribute=function(Re,x,J){cn||Qt({});var le=Vt(Re),ut=Vt(x);return yR(le,ut,J)},e.addHook=function(Re,x){typeof x=="function"&&(oe[Re]=oe[Re]||[],Ql(oe[Re],x))},e.removeHook=function(Re){if(oe[Re])return mE(oe[Re])},e.removeHooks=function(Re){oe[Re]&&(oe[Re]=[])},e.removeAllHooks=function(){oe={}},e}var rB=dP();//! moment.js
//! version : 2.29.4
//! authors : Tim Wood, Iskren Chernev, Moment.js contributors
//! license : MIT
//! momentjs.com
var fP;function X(){return fP.apply(null,arguments)}function iB(t){fP=t}function ri(t){return t instanceof Array||Object.prototype.toString.call(t)==="[object Array]"}function ua(t){return t!=null&&Object.prototype.toString.call(t)==="[object Object]"}function st(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function oy(t){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(t).length===0;var e;for(e in t)if(st(t,e))return!1;return!0}function Qn(t){return t===void 0}function wo(t){return typeof t=="number"||Object.prototype.toString.call(t)==="[object Number]"}function Bc(t){return t instanceof Date||Object.prototype.toString.call(t)==="[object Date]"}function gP(t,e){var n=[],r,i=t.length;for(r=0;r<i;++r)n.push(e(t[r],r));return n}function Qo(t,e){for(var n in e)st(e,n)&&(t[n]=e[n]);return st(e,"toString")&&(t.toString=e.toString),st(e,"valueOf")&&(t.valueOf=e.valueOf),t}function $i(t,e,n,r){return kP(t,e,n,r,!0).utc()}function oB(){return{empty:!1,unusedTokens:[],unusedInput:[],overflow:-2,charsLeftOver:0,nullInput:!1,invalidEra:null,invalidMonth:null,invalidFormat:!1,userInvalidated:!1,iso:!1,parsedDateParts:[],era:null,meridiem:null,rfc2822:!1,weekdayMismatch:!1}}function Ge(t){return t._pf==null&&(t._pf=oB()),t._pf}var IC;Array.prototype.some?IC=Array.prototype.some:IC=function(t){var e=Object(this),n=e.length>>>0,r;for(r=0;r<n;r++)if(r in e&&t.call(this,e[r],r,e))return!0;return!1};function sy(t){if(t._isValid==null){var e=Ge(t),n=IC.call(e.parsedDateParts,function(i){return i!=null}),r=!isNaN(t._d.getTime())&&e.overflow<0&&!e.empty&&!e.invalidEra&&!e.invalidMonth&&!e.invalidWeekday&&!e.weekdayMismatch&&!e.nullInput&&!e.invalidFormat&&!e.userInvalidated&&(!e.meridiem||e.meridiem&&n);if(t._strict&&(r=r&&e.charsLeftOver===0&&e.unusedTokens.length===0&&e.bigHour===void 0),Object.isFrozen==null||!Object.isFrozen(t))t._isValid=r;else return r}return t._isValid}function vg(t){var e=$i(NaN);return t!=null?Qo(Ge(e),t):Ge(e).userInvalidated=!0,e}var SE=X.momentProperties=[],ow=!1;function ay(t,e){var n,r,i,o=SE.length;if(Qn(e._isAMomentObject)||(t._isAMomentObject=e._isAMomentObject),Qn(e._i)||(t._i=e._i),Qn(e._f)||(t._f=e._f),Qn(e._l)||(t._l=e._l),Qn(e._strict)||(t._strict=e._strict),Qn(e._tzm)||(t._tzm=e._tzm),Qn(e._isUTC)||(t._isUTC=e._isUTC),Qn(e._offset)||(t._offset=e._offset),Qn(e._pf)||(t._pf=Ge(e)),Qn(e._locale)||(t._locale=e._locale),o>0)for(n=0;n<o;n++)r=SE[n],i=e[r],Qn(i)||(t[r]=i);return t}function Uc(t){ay(this,t),this._d=new Date(t._d!=null?t._d.getTime():NaN),this.isValid()||(this._d=new Date(NaN)),ow===!1&&(ow=!0,X.updateOffset(this),ow=!1)}function ii(t){return t instanceof Uc||t!=null&&t._isAMomentObject!=null}function mP(t){X.suppressDeprecationWarnings===!1&&typeof console<"u"&&console.warn&&console.warn("Deprecation warning: "+t)}function Dr(t,e){var n=!0;return Qo(function(){if(X.deprecationHandler!=null&&X.deprecationHandler(null,t),n){var r=[],i,o,s,a=arguments.length;for(o=0;o<a;o++){if(i="",typeof arguments[o]=="object"){i+=`
[`+o+"] ";for(s in arguments[0])st(arguments[0],s)&&(i+=s+": "+arguments[0][s]+", ");i=i.slice(0,-2)}else i=arguments[o];r.push(i)}mP(t+`
Arguments: `+Array.prototype.slice.call(r).join("")+`
`+new Error().stack),n=!1}return e.apply(this,arguments)},e)}var yE={};function pP(t,e){X.deprecationHandler!=null&&X.deprecationHandler(t,e),yE[t]||(mP(e),yE[t]=!0)}X.suppressDeprecationWarnings=!1;X.deprecationHandler=null;function ki(t){return typeof Function<"u"&&t instanceof Function||Object.prototype.toString.call(t)==="[object Function]"}function sB(t){var e,n;for(n in t)st(t,n)&&(e=t[n],ki(e)?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)}function PC(t,e){var n=Qo({},t),r;for(r in e)st(e,r)&&(ua(t[r])&&ua(e[r])?(n[r]={},Qo(n[r],t[r]),Qo(n[r],e[r])):e[r]!=null?n[r]=e[r]:delete n[r]);for(r in t)st(t,r)&&!st(e,r)&&ua(t[r])&&(n[r]=Qo({},n[r]));return n}function ly(t){t!=null&&this.set(t)}var xC;Object.keys?xC=Object.keys:xC=function(t){var e,n=[];for(e in t)st(t,e)&&n.push(e);return n};var aB={sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"};function lB(t,e,n){var r=this._calendar[t]||this._calendar.sameElse;return ki(r)?r.call(e,n):r}function Di(t,e,n){var r=""+Math.abs(t),i=e-r.length,o=t>=0;return(o?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var uy=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,yh=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,sw={},El={};function Te(t,e,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),t&&(El[t]=i),e&&(El[e[0]]=function(){return Di(i.apply(this,arguments),e[1],e[2])}),n&&(El[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),t)})}function uB(t){return t.match(/\[[\s\S]/)?t.replace(/^\[|\]$/g,""):t.replace(/\\/g,"")}function cB(t){var e=t.match(uy),n,r;for(n=0,r=e.length;n<r;n++)El[e[n]]?e[n]=El[e[n]]:e[n]=uB(e[n]);return function(i){var o="",s;for(s=0;s<r;s++)o+=ki(e[s])?e[s].call(i,t):e[s];return o}}function Gd(t,e){return t.isValid()?(e=wP(e,t.localeData()),sw[e]=sw[e]||cB(e),sw[e](t)):t.localeData().invalidDate()}function wP(t,e){var n=5;function r(i){return e.longDateFormat(i)||i}for(yh.lastIndex=0;n>=0&&yh.test(t);)t=t.replace(yh,r),yh.lastIndex=0,n-=1;return t}var hB={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"};function dB(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(uy).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[t])}var fB="Invalid date";function gB(){return this._invalidDate}var mB="%d",pB=/\d{1,2}/;function wB(t){return this._ordinal.replace("%d",t)}var vB={future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"};function CB(t,e,n,r){var i=this._relativeTime[n];return ki(i)?i(t,e,n,r):i.replace(/%d/i,t)}function SB(t,e){var n=this._relativeTime[t>0?"future":"past"];return ki(n)?n(e):n.replace(/%s/i,e)}var Qu={};function An(t,e){var n=t.toLowerCase();Qu[n]=Qu[n+"s"]=Qu[e]=t}function Nr(t){return typeof t=="string"?Qu[t]||Qu[t.toLowerCase()]:void 0}function cy(t){var e={},n,r;for(r in t)st(t,r)&&(n=Nr(r),n&&(e[n]=t[r]));return e}var vP={};function On(t,e){vP[t]=e}function yB(t){var e=[],n;for(n in t)st(t,n)&&e.push({unit:n,priority:vP[n]});return e.sort(function(r,i){return r.priority-i.priority}),e}function Cg(t){return t%4===0&&t%100!==0||t%400===0}function Or(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function Je(t){var e=+t,n=0;return e!==0&&isFinite(e)&&(n=Or(e)),n}function Fl(t,e){return function(n){return n!=null?(CP(this,t,n),X.updateOffset(this,e),this):yf(this,t)}}function yf(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function CP(t,e,n){t
X.version="2.29.4";iB(Et);X.fn=Q;X.min=GU;X.max=zU;X.now=jU;X.utc=$i;X.unix=yY;X.months=RY;X.isDate=Bc;X.locale=is;X.invalid=vg;X.duration=si;X.isMoment=ii;X.weekdays=TY;X.parseZone=bY;X.localeData=bo;X.isDuration=zd;X.monthsShort=EY;X.weekdaysMin=MY;X.defineLocale=py;X.updateLocale=bU;X.locales=RU;X.weekdaysShort=_Y;X.normalizeUnits=Nr;X.relativeTimeRounding=tG;X.relativeTimeThreshold=nG;X.calendarFormat=v2;X.prototype=Q;X.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};function ix(t){const e=t.length;let n=0;for(;n<e;)t[n]=[t[n]],n+=1}function $C(t,e){const n=e.length;let r=0;for(;r<n;)t.push(e[r]),r+=1}function ec(t){const e=[];if(!t||t.length===0||!t[0]||t[0].length===0)return e;const n=t.length,r=t[0].length;for(let i=0;i<n;i++)for(let o=0;o<r;o++)e[o]||(e[o]=[]),e[o][i]=t[i][o];return e}function Yt(t,e,n,r){let i=-1,o=t,s=n;Array.isArray(t)||(o=Array.from(t));const a=o.length;for(r&&a&&(i+=1,s=o[i]),i+=1;i<a;)s=e(s,o[i],i,o),i+=1;return s}function pr(t,e){let n=0,r=t;Array.isArray(t)||(r=Array.from(t));const i=r.length,o=[];let s=-1;for(;n<i;){const a=r[n];e(a,n,r)&&(s+=1,o[s]=a),n+=1}return o}function Ue(t,e){let n=0,r=t;Array.isArray(t)||(r=Array.from(t));const i=r.length,o=[];let s=-1;for(;n<i;){const a=r[n];s+=1,o[s]=e(a,n,r),n+=1}return o}function E(t,e){let n=0,r=t;Array.isArray(t)||(r=Array.from(t));const i=r.length;for(;n<i&&e(r[n],n,r)!==!1;)n+=1;return t}function ox(t){return Yt(t,(e,n)=>e+n,0)}function iG(t){return Yt(t,(e,n)=>e>n?e:n,Array.isArray(t)?t[0]:void 0)}function oG(t){return Yt(t,(e,n)=>e<n?e:n,Array.isArray(t)?t[0]:void 0)}function sG(t){return t.length?ox(t)/t.length:0}function sx(t){return Yt(t,(e,n)=>e.concat(Array.isArray(n)?sx(n):n),[])}function Ty(t){const e=[];return E(t,n=>{e.indexOf(n)===-1&&e.push(n)}),e}function kC(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[r,...i]=[...e];let o=r;return E(i,s=>{o=o.filter(a=>!s.includes(a))}),o}function aG(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[r,...i]=[...e];let o=r;return E(i,s=>{o=o.filter(a=>s.includes(a))}),o}function lG(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];const[r,...i]=[...e],o=new Set(r);return E(i,s=>{E(s,a=>{o.has(a)||o.add(a)})}),Array.from(o)}function FC(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:" ";return t.split(e)}const uG=Object.freeze(Object.defineProperty({__proto__:null,arrayAvg:sG,arrayEach:E,arrayFilter:pr,arrayFlatten:sx,arrayMap:Ue,arrayMax:iG,arrayMin:oG,arrayReduce:Yt,arraySum:ox,arrayUnique:Ty,extendArray:$C,getDifferenceOfArrays:kC,getIntersectionOfArrays:aG,getUnionOfArrays:lG,pivot:ec,stringToArray:FC,to2dArray:ix},Symbol.toStringTag,{value:"Module"}));function ht(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r<e;r++)n[r-1]=arguments[r];return Yt(t,(o,s,a)=>{const l=s.replace(/\r?\n\s*/g,""),u=n[a]?n[a]:"";return o+l+u},"").trim()}function Ft(t){let e;switch(typeof t){case"string":case"number":e=`${t}`;break;case"object":e=t===null?"":t.toString();break;case"undefined":e="";break;default:e=t.toString();break}return e}function ue(t){return typeof t<"u"}function Ct(t){return typeof t>"u"}function Zt(t){return t===null||t===""||Ct(t)}function ax(t){return Object.prototype.toString.call(t)==="[object RegExp]"}const Gu="length",tc=t=>parseInt(t,16),TE=t=>parseInt(t,10),Mf=(t,e,n)=>t.substr(e,n),nc=t=>t.codePointAt(0)-65,WC=t=>`${t}`.replace(/\-/g,""),cG=t=>tc(Mf(WC(t),tc("12"),nc("F")))/(tc(Mf(WC(t),nc("B"),~~![][Gu]))||9),hG=()=>typeof location<"u"&&/^([a-z0-9\-]+\.)?\x68\x61\x6E\x64\x73\x6F\x6E\x74\x61\x62\x6C\x65\x2E\x63\x6F\x6D$/i.test(location.host);let _E=!1;const ME={invalid:()=>ht`
The license key for Handsontable is invalid.\x20
If you need any help, contact us at support@handsontable.com.`,expired:t=>{let{keyValidityDate:e,hotVersion:n}=t;return ht`
The license key for Handsontable expired on ${e}, and is not valid for the installed\x20
version ${n}. Renew your license key at handsontable.com or downgrade to a version released prior\x20
to ${e}. If you need any help, contact us at sales@handsontable.com.`},missing:()=>ht`
The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
passing the key: 'non-commercial-and-evaluation'. If you need any help, contact\x20
us at support@handsontable.com.`,non_commercial:()=>""},AE={invalid:()=>ht`
The license key for Handsontable is invalid.\x20
<a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> on how to\x20
install it properly or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,expired:t=>{let{keyValidityDate:e,hotVersion:n}=t;return ht`
The license key for Handsontable expired on ${e}, and is not valid for the installed\x20
version ${n}. <a href="https://handsontable.com/pricing" target="_blank">Renew</a> your\x20
license key or downgrade to a version released prior to ${e}. If you need any\x20
help, contact us at <a href="mailto:sales@handsontable.com">sales@handsontable.com</a>.`},missing:()=>ht`
The license key for Handsontable is missing. Use your purchased key to activate the product.\x20
Alternatively, you can activate Handsontable to use for non-commercial purposes by\x20
passing the key: 'non-commercial-and-evaluation'.\x20
<a href="https://handsontable.com/docs/tutorial-license-key.html" target="_blank">Read more</a> about it in\x20
the documentation or contact us at <a href="mailto:support@handsontable.com">support@handsontable.com</a>.`,non_commercial:()=>""};function lx(t,e){const n=!Zt(t),r=typeof t=="string"&&t.toLowerCase()==="non-commercial-and-evaluation",i="14.1.0";let o,s="invalid",a="invalid";t=WC(t||"");const l=dG(t);if(n||r||l)if(l){const u=X("16/01/2024","DD/MM/YYYY"),c=Math.floor(u.toDate().getTime()/864e5),h=cG(t);o=X((h+1)*864e5,"x").format("MMMM DD, YYYY"),c>h?(s="expired",a="expired"):(s="valid",a="valid")}else r?(s="non_commercial",a="valid"):(s="invalid",a="invalid");else s="missing",a="missing";if(hG()&&(s="valid",a="valid"),!_E&&s!=="valid"&&(ME[s]({keyValidityDate:o,hotVersion:i})&&console[s==="non_commercial"?"info":"warn"](ME[s]({keyValidityDate:o,hotVersion:i})),_E=!0),a!=="valid"&&e.parentNode&&AE[a]({keyValidityDate:o,hotVersion:i})){const c=document.createElement("div");c.className="hot-display-license-info",c.innerHTML=AE[a]({keyValidityDate:o,hotVersion:i}),e.parentNode.insertBefore(c,e.nextSibling)}}function dG(t){let e=[][Gu],n=e;if(t[Gu]!==nc("Z"))return!1;for(let r="",i="B<H4P+".split(""),o=nc(i.shift());o;o=nc(i.shift()||"A"))--o<""[Gu]?n=n|(TE(`${TE(tc(r)+(tc(Mf(t,Math.abs(o),2))+[]).padStart(2,"0"))}`)%97||2)>>1:r=Mf(t,o,o?i[Gu]===1?9:8:6);return n===e}const fG=Object.freeze(Object.defineProperty({__proto__:null,_injectProductInfo:lx,isDefined:ue,isEmpty:Zt,isRegExp:ax,isUndefined:Ct,stringify:Ft},Symbol.toStringTag,{value:"Module"}));function En(t){return t[0].toUpperCase()+t.substr(1)}function gG(){const t=[];for(var e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];let i=n.length;for(;i;){i-=1;const o=Ft(n[i]).toLowerCase();t.indexOf(o)===-1&&t.push(o)}return t.length===1}function _y(){function t(){return Math.floor((1+Math.random())*65536).toString(16).substring(1)}return t()+t()+t()+t()}function My(t){return/^([0-9][0-9]?%$)|(^100%$)/.test(t)}function Ay(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return`${t}`.replace(/(?:\\)?\[([^[\]]+)]/g,(n,r)=>n.charAt(0)==="\\"?n.substr(1,n.length-1):e[r]===void 0?"":e[r])}function VC(t){return Ig(`${t}`,{ALLOWED_TAGS:[]})}function Ig(t,e){return rB.sanitize(t,e)}const mG=Object.freeze(Object.defineProperty({__proto__:null,equalsIgnoreCase:gG,isPercentValue:My,randomString:_y,sanitize:Ig,stripTags:VC,substitute:Ay,toUpperCaseFirst:En},Symbol.toStringTag,{value:"Module"})),Vl=t=>["tabindex",t],pG=()=>["role","treegrid"],Pi=()=>["role","presentation"],wG=()=>["role","gridcell"],vG=()=>["role","rowheader"],ux=()=>["role","rowgroup"],CG=()=>["role","columnheader"],BC=()=>["role","row"],SG=()=>["role","menu"],yG=()=>["role","menuitem"],bG=()=>["role","combobox"],cx=()=>["role","listbox"],RG=()=>["role","option"],EG=()=>["role","checkbox"],TG=()=>["scope","col"],_G=()=>["scope","row"],MG=()=>["type","text"],Oy=t=>["aria-label",t],Eo=()=>["aria-hidden","true"],AG=()=>["aria-disabled","true"],OG=()=>["aria-multiselectable","true"],hx=t=>["aria-haspopup",t],dx=t=>["aria-rowcount",t],Pg=t=>["aria-colcount",t],fx=t=>["aria-rowindex",t],Iy=t=>["aria-colindex",t],Ir=t=>["aria-expanded",t],IG=t=>["aria-sort",t],OE=()=>["aria-readonly","true"],IE=()=>["aria-invalid","true"],PG=t=>["aria-checked",t],Py=()=>["aria-selected","true"],xG=()=>["aria-autocomplete","list"],HG=t=>["aria-controls",t],DG=t=>["aria-activedescendant",t],NG=t=>["aria-live",t],LG=t=>["aria-relevant",t],$G=t=>["aria-setsize",t],kG=t=>["aria-posinset",t];function gx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=null,i=t;for(;i!==null;){if(n===e){r=i;break}i.host&&i.nodeType===Node.DOCUMENT_FRAGMENT_NODE?i=i.host:(n+=1,i=i.parentNode)}return r}function mx(t,e){const n=t.closest(".handsontable");return!!n&&(n.parentNode===e||n===e)}function px(t){return Object.getPrototypeOf(t.parent)&&t.frameElement}function Ec(t){return px(t)&&t.parent}function FG(t){return!!Object.getPrototypeOf(t.parent)}function cs(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2?arguments[2]:void 0;const{ELEMENT_NODE:r,DOCUMENT_FRAGMENT_NO
Please consult release notes https://github.com/handsontable/handsontable/releases/tag/[removedInVersion] to\x20
learn about the migration path.`,cw=new Map([["modifyRow","8.0.0"],["modifyCol","8.0.0"],["unmodifyRow","8.0.0"],["unmodifyCol","8.0.0"],["skipLengthCache","8.0.0"],["hiddenColumn","8.0.0"],["hiddenRow","8.0.0"]]),hw=new Map([[]]);class Ux{static getSingleton(){return Mz()}constructor(){bz(this,"globalBucket",void 0),this.globalBucket=this.createEmptyBucket()}createEmptyBucket(){const e=Object.create(null);return E(Ma,n=>e[n]=[]),e}getBucket(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;return e?(e.pluginHookBucket||(e.pluginHookBucket=this.createEmptyBucket()),e.pluginHookBucket):this.globalBucket}add(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(Array.isArray(n))E(n,i=>this.add(e,i,r));else{cw.has(e)&&gt(Ay(Tz,{hookName:e,removedInVersion:cw.get(e)})),hw.has(e)&&gt(hw.get(e));const i=this.getBucket(r);if(typeof i[e]>"u"&&(this.register(e),i[e]=[]),n.skip=!1,i[e].indexOf(n)===-1){let o=!1;n.initialHook&&E(i[e],(s,a)=>{if(s.initialHook)return i[e][a]=n,o=!0,!1}),o||i[e].push(n)}}return this}once(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;Array.isArray(n)?E(n,i=>this.once(e,i,r)):(n.runOnce=!0,this.add(e,n,r))}remove(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;const i=this.getBucket(r);return typeof i[e]<"u"&&i[e].indexOf(n)>=0?(n.skip=!0,!0):!1}has(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;const r=this.getBucket(n);return!!(r[e]!==void 0&&r[e].length)}run(e,n,r,i,o,s,a,l){{const u=this.globalBucket[n],c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=Af(u[h],e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h]),h+=1}}{const u=this.getBucket(e)[n],c=u?u.length:0;let h=0;if(c)for(;h<c;){if(!u[h]||u[h].skip){h+=1;continue}const d=Af(u[h],e,r,i,o,s,a,l);d!==void 0&&(r=d),u[h]&&u[h].runOnce&&this.remove(n,u[h],e),h+=1}}return r}destroy(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:null;Ye(this.getBucket(e),(n,r,i)=>i[r].length=0)}register(e){this.isRegistered(e)||Ma.push(e)}deregister(e){this.isRegistered(e)&&Ma.splice(Ma.indexOf(e),1)}isDeprecated(e){return hw.has(e)||cw.has(e)}isRegistered(e){return Ma.indexOf(e)>=0}getRegistered(){return Ma}}const _z=new Ux;function Mz(){return _z}const de=Ux,dw=new Map;function ai(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"common";dw.has(t)||dw.set(t,new Map);const e=dw.get(t);function n(a,l){e.set(a,l)}function r(a){return e.get(a)}function i(a){return e.has(a)}function o(){return[...e.keys()]}function s(){return[...e.values()]}return{register:n,getItem:r,hasItem:i,getNames:o,getValues:s}}const GC=new WeakMap,{register:Az,getItem:Yx,hasItem:Gx,getNames:Oz,getValues:rce}=ai("editors");function Iz(t){const e={},n=t;this.getConstructor=function(){return t},this.getInstance=function(r){return r.guid in e||(e[r.guid]=new n(r)),e[r.guid]},de.getSingleton().add("afterDestroy",function(){e[this.guid]=null})}function zx(t,e){let n;if(typeof t=="function")GC.get(t)||Jn(null,t),n=GC.get(t);else if(typeof t=="string")n=Yx(t);else throw Error('Only strings and functions can be passed as "editor" parameter');if(!n)throw Error(`No editor registered under name "${t}"`);return n.getInstance(e)}function Of(t){if(typeof t=="function")return t;if(!Gx(t))throw Error(`No registered editor found under "${t}" name`);return Yx(t).getConstructor()}function Jn(t,e){t&&typeof t!="string"&&(e=t,t=e.EDITOR_TYPE);const n=new Iz(e);typeof t=="string"&&Az(t,n),GC.set(e,n)}function Pz(t,e,n){return e=xz(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function xz(t){var e=Hz(t,"string");return typeof e=="symbol"?e:String(e)}function Hz(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}let qd=0;class Dz{constructor(){let e=arguments.length>0&&arguments[0]!==v
`).replace(/\x20/gi,"&nbsp;").replace(/\t/gi,"&#9;");R=`<td ${B.join(" ")}>${ee}</td>`}}}p.push(R)}const v=["<tr>",...p,"</tr>"].join("");g?l.splice(1,0,v):u.splice(-1,0,v)}return a.splice(1,0,l.join(""),u.join("")),a.join("")}function KC(t){const e=t.length,n=["<table>"];for(let r=0;r<e;r+=1){const i=t[r],o=i.length,s=[];r===0&&n.push("<tbody>");for(let a=0;a<o;a+=1){const l=i[a],u=Zt(l)?"":l.toString().replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/(<br(\s*|\/)>(\r\n|\n)?|\r\n|\n)/g,`<br>\r
`).replace(/\x20{2,}/gi,c=>`<span style="mso-spacerun: yes">${"&nbsp;".repeat(c.length-1)} </span>`).replace(/\t/gi,"&#9;");s.push(`<td>${u}</td>`)}n.push("<tr>",...s,"</tr>"),r+1===e&&n.push("</tbody>")}return n.push("</table>"),n.join("")}function qx(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:document;const n={},r=e.createDocumentFragment(),i=e.createElement("div");r.appendChild(i);let o=t;if(typeof o=="string"){const T=o.replace(/<td\b[^>]*?>([\s\S]*?)<\/\s*td>/g,N=>{const I=N.match(/<td\b[^>]*?>/g)[0],F=N.substring(I.length,N.lastIndexOf("<")).replace(/(<(?!br)([^>]+)>)/gi,"");return`${I}${F}</td>`});i.insertAdjacentHTML("afterbegin",`${T}`),o=i.querySelector("table")}if(!o||!qz(o))return;const s=i.querySelector('meta[name$="enerator"]'),a=o.querySelector("tbody th")!==null,l=o.querySelector("tr"),u=l?Array.from(l.cells).reduce((T,N)=>T+N.colSpan,0)-(a?1:0):0,c=o.tFoot&&Array.from(o.tFoot.rows)||[],h=[];let d=!1,g=0,p=0;if(o.tHead){const T=Array.from(o.tHead.rows).filter(N=>{const I=N.querySelector("td")!==null;return I&&h.push(N),!I});g=T.length,d=g>0,g>1?n.nestedHeaders=Array.from(T).reduce((N,I)=>{const F=Array.from(I.cells).reduce((B,ee,U)=>{if(a&&U===0)return B;const{colSpan:j,innerHTML:re}=ee,ie=j>1?{label:re,colspan:j}:re;return B.push(ie),B},[]);return N.push(F),N},[]):d&&(n.colHeaders=Array.from(T[0].children).reduce((N,I,F)=>(a&&F===0||N.push(I.innerHTML),N),[]))}h.length&&(n.fixedRowsTop=h.length),c.length&&(n.fixedRowsBottom=c.length);const v=[...h,...Array.from(o.tBodies).reduce((T,N)=>(T.push(...Array.from(N.rows)),T),[]),...c];p=v.length;const S=new Array(p);for(let T=0;T<p;T++)S[T]=new Array(u);const y=[],R=[];for(let T=0;T<p;T++){const N=v[T],I=Array.from(N.cells),F=I.length;for(let B=0;B<F;B++){const ee=I[B],{nodeName:U,innerHTML:j,rowSpan:re,colSpan:ie}=ee,oe=S[T].findIndex(ve=>ve===void 0);if(U==="TD"){if(re>1||ie>1){for(let Fe=T;Fe<T+re;Fe++)if(Fe<p)for(let pe=oe;pe<oe+ie;pe++)S[Fe][pe]=null;const _e=ee.getAttribute("style");_e&&_e.includes("mso-ignore:colspan")||y.push({col:oe,row:T,rowspan:re,colspan:ie})}let ve="";s&&/excel/gi.test(s.content)?ve=j.replace(/[\r\n][\x20]{0,2}/g," ").replace(/<br(\s*|\/)>[\r\n]?[\x20]{0,3}/gim,`\r
`):ve=j.replace(/<br(\s*|\/)>[\r\n]?/gim,`\r
`),S[T][oe]=ve.replace(Xz,_e=>Xx[_e])}else R.push(j)}}return y.length&&(n.mergeCells=y),R.length&&(n.rowHeaders=R),S.length&&(n.data=S),n}const Zz=Object.freeze(Object.defineProperty({__proto__:null,_dataToHTML:KC,htmlToGridSettings:qx,instanceToHTML:jC},Symbol.toStringTag,{value:"Module"}));function Wn(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const n=typeof t;if(n==="number")return!isNaN(t)&&isFinite(t);if(n==="string"){if(t.length===0)return!1;if(t.length===1)return/\d/.test(t);const r=Array.from(new Set([".",...e])).map(i=>`\\${i}`).join("|");return new RegExp(`^[+-]?\\s*(((${r})?\\d+((${r})\\d+)?(e[+-]?\\d+)?)|(0x[a-f\\d]+))$`,"i").test(t.trim())}else if(n==="object")return!!t&&typeof t.valueOf()=="number"&&!(t instanceof Date);return!1}function Zx(t){return Wn(t,[","])}function me(t,e,n){let r=-1;for(typeof e=="function"?(n=e,e=t):r=t-1;++r<=e&&n(r)!==!1;);}function Pf(t,e,n){let r=t+1;for(typeof e=="function"&&(n=e,e=0);--r>=e&&n(r)!==!1;);}function Xy(t,e){return e=parseInt(e.toString().replace("%",""),10),e=isNaN(e)?0:e,parseInt(t*e/100,10)}function ir(t,e,n){return Math.min(t,e)===t?e:Math.max(t,n)===t?n:t}const Qz=Object.freeze(Object.defineProperty({__proto__:null,clamp:ir,isNumeric:Wn,isNumericLike:Zx,rangeEach:me,rangeEachReverse:Pf,valueAccordingPercent:Xy},Symbol.toStringTag,{value:"Module"})),XC="asc",Jz="desc",XE=new Map([[XC,[-1,1]],[Jz,[1,-1]]]),ej=t=>`The priority '${t}' is already declared in a map.`,tj=t=>`The priority '${t}' is not a number.`;function nj(){let{errorPriorityExists:t,errorPriorityNaN:e}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const n=new Map;t=vt(t)?t:ej,e=vt(e)?e:tj;function r(o,s){if(!Wn(o))throw new Error(e(o));if(n.has(o))throw new Error(t(o));n.set(o,s)}function i(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:XC;const[s,a]=XE.get(o)||XE.get(XC);return[...n].sort((l,u)=>l[0]<u[0]?s:a).map(l=>l[1])}return{addItem:r,getItems:i}}const rj=t=>`The id '${t}' is already declared in a map.`;function Bg(){let{errorIdExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Map;t=vt(t)?t:rj;function n(u,c){if(l(u))throw new Error(t(u));e.set(u,c)}function r(u){return e.delete(u)}function i(){e.clear()}function o(u){const[c]=a().find(h=>{let[d,g]=h;return u===g?d:!1})||[null];return c}function s(u){return e.get(u)}function a(){return[...e]}function l(u){return e.has(u)}return{addItem:n,clear:i,getId:o,getItem:s,getItems:a,hasItem:l,removeItem:r}}const ij=t=>`'${t}' value is already declared in a unique set.`;function oj(){let{errorItemExists:t}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const e=new Set;t=vt(t)?t:ij;function n(o){if(e.has(o))throw new Error(t(o));e.add(o)}function r(){return[...e]}function i(){e.clear()}return{addItem:n,clear:i,getItems:r}}const qy=t=>`There is already registered "${t}" plugin.`,sj=t=>`There is already registered plugin on priority "${t}".`,aj=t=>`The priority "${t}" is not a number.`,Qx=nj({errorPriorityExists:sj,errorPriorityNaN:aj}),Jx=oj({errorItemExists:qy}),qC=Bg({errorIdExists:qy});function Zy(){return[...Qx.getItems(),...Jx.getItems()]}function qc(t){const e=En(t);return qC.getItem(e)}function lj(t){return!!qc(t)}function tt(t,e,n){[t,e,n]=cj(t,e,n),qc(t)===void 0&&uj(t,e,n)}function uj(t,e,n){const r=En(t);if(qC.hasItem(r))throw new Error(qy(r));n===void 0?Jx.addItem(r):Qx.addItem(n,r),qC.addItem(r,e)}function cj(t,e,n){return typeof t=="function"&&(e=t,t=e.PLUGIN_KEY,n=e.PLUGIN_PRIORITY),[t,e,n]}const{register:hj,getItem:dj,hasItem:e1,getNames:fj,getValues:ice}=ai("renderers");function xf(t){if(typeof t=="function")return t;if(!e1(t))throw Error(`No registered renderer found under "${t}" name`);return dj(t)}function lr(t,e){typeof t!="string"&&(e=t,t=e.RENDERER_TYPE),hj(t,e)}const{register:gj,getItem:mj,hasItem:t1,getNames:pj,getValues:oce}=ai("validators");function Qy(t){if(typeof t=="function")return t;if(!t1(t))throw Error(`No registered validator found under "${t}" name`);return mj(t)}function ta(t,e){typeof t!="string"&&(e=t,t=e.VALIDATOR_TYPE),g
Consider limiting the number of rendered columns by specifying the table width and/or\x20
turning off the "renderAllColumns" option.`));for(let i=0;i<n;i++){const o=this.table.renderedColumnToSource(i),s=this.table.columnUtils.getHeaderWidth(o);this.rootNode.childNodes[i].style.width=`${s}px`}for(let i=0;i<e;i++){const o=this.table.renderedColumnToSource(i),s=this.table.columnUtils.getStretchedColumnWidth(o);this.rootNode.childNodes[i+n].style.width=`${s}px`}const r=this.rootNode.firstChild;r&&q(r,"rowHeader")}}function QK(t,e,n){return e=JK(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function JK(t){var e=e3(t,"string");return typeof e=="symbol"?e:String(e)}function e3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}let o0=!1;class t3 extends Qc{constructor(e){super("TR",e),QK(this,"orderView",void 0),this.orderView=new d1(e,n=>this.nodesPool.obtain(n),this.nodeType)}getRenderedNode(e){return this.orderView.getNode(e)}render(){const{rowsToRender:e}=this.table;!o0&&e>1e3&&(o0=!0,gt(ht`Performance tip: Handsontable rendered more than 1000 visible rows.\x20
Consider limiting the number of rendered rows by specifying the table height and/or\x20
turning off the "renderAllRows" option.`)),this.table.isAriaEnabled()&&Ee(this.rootNode,[ux()]),this.orderView.setSize(e).setOffset(this.table.renderedRowToSource(0)).start();for(let i=0;i<e;i++){this.orderView.render();const o=this.orderView.getCurrentNode(),s=this.table.renderedRowToSource(i);if(this.table.isAriaEnabled()){var n,r;Ee(o,[BC(),fx(s+((n=(r=this.table.rowUtils)===null||r===void 0||(r=r.dataAccessObject)===null||r===void 0?void 0:r.columnHeaders.length)!==null&&n!==void 0?n:0)+1)])}}this.orderView.end()}}function s0(t,e,n){return e=n3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function n3(t){var e=r3(t,"string");return typeof e=="symbol"?e:String(e)}function r3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class i3 extends Qc{constructor(){super("TD"),s0(this,"orderViews",new WeakMap),s0(this,"sourceRowIndex",0)}obtainOrderView(e){let n;return this.orderViews.has(e)?n=this.orderViews.get(e):(n=new f1(e,r=>this.nodesPool.obtain(this.sourceRowIndex,r),this.nodeType),this.orderViews.set(e,n)),n}render(){const{rowsToRender:e,columnsToRender:n,rows:r,rowHeaders:i}=this.table;for(let a=0;a<e;a++){const l=this.table.renderedRowToSource(a),u=r.getRenderedNode(a);this.sourceRowIndex=l;const c=this.obtainOrderView(u),h=i.obtainOrderView(u);c.prependView(h).setSize(n).setOffset(this.table.renderedColumnToSource(0)).start();for(let d=0;d<n;d++){c.render();const g=c.getCurrentNode(),p=this.table.renderedColumnToSource(d);if(Ie(g,"hide")||(g.className=""),g.removeAttribute("style"),g.removeAttribute("dir"),Ca(g,[new RegExp("aria-(.*)"),new RegExp("role")]),this.table.cellRenderer(l,p,g),this.table.isAriaEnabled()){var o,s;Ee(g,[...g.hasAttribute("role")?[]:[wG()],Vl(-1),Iy(p+((o=(s=this.table.rowUtils)===null||s===void 0||(s=s.dataAccessObject)===null||s===void 0?void 0:s.rowHeaders.length)!==null&&o!==void 0?o:0)+1)])}}c.end()}}}function sn(t,e,n){return e=o3(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o3(t){var e=s3(t,"string");return typeof e=="symbol"?e:String(e)}function s3(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class a3{constructor(e){let{cellRenderer:n}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};sn(this,"rootNode",void 0),sn(this,"rootDocument",void 0),sn(this,"rowHeaders",null),sn(this,"columnHeaders",null),sn(this,"colGroup",null),sn(this,"rows",null),sn(this,"cells",null),sn(this,"rowFilter",null),sn(this,"columnFilter",null),sn(this,"rowUtils",null),sn(this,"columnUtils",null),sn(this,"rowsToRender",0),sn(this,"columnsToRender",0),sn(this,"rowHeaderFunctions",[]),sn(this,"rowHeadersCount",0),sn(this,"columnHeaderFunctions",[]),sn(this,"columnHeadersCount",0),sn(this,"cellRenderer",void 0),this.rootNode=e,this.rootDocument=this.rootNode.ownerDocument,this.cellRenderer=n}setAxisUtils(e,n){this.rowUtils=e,this.columnUtils=n}setViewportSize(e,n){this.rowsToRender=e,this.columnsToRender=n}setFilters(e,n){this.rowFilter=e,this.columnFilter=n}setHeaderContentRenderers(e,n){this.rowHeaderFunctions=e,this.rowHeadersCount=e.length,this.columnHeaderFunctions=n,this.columnHeadersCount=n.length}setRenderers(){let{rowHeaders:e,columnHeaders:n,colGroup:r,rows:i,cells:o}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.setTable(this),n.setTable(this),r.setTable(this),i.setTable(this),o.setTable(this),this.rowHeaders=e,this.columnHeaders=n,this.colGroup=r,this.rows=i,this.cells=o}renderedRowToSource(e){return this.rowFilter.renderedToSource(e)}renderedColumnToSource(e){return this.columnFilter.renderedToSource(e)}isAriaEnabled(){return this.rowUtils.wtSettings.getSetting(
before using it. Read more about this issue at: https://docs.handsontable.com/i18n/missing-language-code.`)}function _4(t,e){return Array.isArray(t)&&Number.isInteger(e)?t[e]:t}const{register:M4,getValues:A4}=ai("phraseFormatters");function O4(t,e){M4(t,e)}function I4(){return A4()}O4("pluralize",_4);const Y1="ContextMenu:items",ke=Y1,Tb=`${ke}.noItems`,jg=`${ke}.insertRowAbove`,Kg=`${ke}.insertRowBelow`,Xg=`${ke}.insertColumnOnTheLeft`,qg=`${ke}.insertColumnOnTheRight`,Zg=`${ke}.removeRow`,Qg=`${ke}.removeColumn`,Jg=`${ke}.undo`,em=`${ke}.redo`,tm=`${ke}.readOnly`,nm=`${ke}.clearColumn`,rm=`${ke}.copy`,im=`${ke}.copyWithHeaders`,om=`${ke}.copyWithGroupHeaders`,sm=`${ke}.copyHeadersOnly`,am=`${ke}.cut`,lm=`${ke}.freezeColumn`,um=`${ke}.unfreezeColumn`,cm=`${ke}.mergeCells`,hm=`${ke}.unmergeCells`,dm=`${ke}.addComment`,fm=`${ke}.editComment`,gm=`${ke}.removeComment`,mm=`${ke}.readOnlyComment`,pm=`${ke}.align`,wm=`${ke}.align.left`,vm=`${ke}.align.center`,Cm=`${ke}.align.right`,Sm=`${ke}.align.justify`,ym=`${ke}.align.top`,bm=`${ke}.align.middle`,Rm=`${ke}.align.bottom`,Em=`${ke}.borders`,Tm=`${ke}.borders.top`,_m=`${ke}.borders.right`,Mm=`${ke}.borders.bottom`,Am=`${ke}.borders.left`,Om=`${ke}.borders.remove`,Im=`${ke}.nestedHeaders.insertChildRow`,Pm=`${ke}.nestedHeaders.detachFromParent`,xm=`${ke}.hideColumn`,Hm=`${ke}.showColumn`,Dm=`${ke}.hideRow`,Nm=`${ke}.showRow`,Yn="Filters:",Wt=`${Yn}conditions`,th=`${Wt}.none`,Lm=`${Wt}.isEmpty`,$m=`${Wt}.isNotEmpty`,km=`${Wt}.isEqualTo`,Fm=`${Wt}.isNotEqualTo`,Wm=`${Wt}.beginsWith`,Vm=`${Wt}.endsWith`,Bm=`${Wt}.contains`,Um=`${Wt}.doesNotContain`,P4=`${Wt}.byValue`,Ym=`${Wt}.greaterThan`,Gm=`${Wt}.greaterThanOrEqualTo`,zm=`${Wt}.lessThan`,jm=`${Wt}.lessThanOrEqualTo`,Km=`${Wt}.isBetween`,Xm=`${Wt}.isNotBetween`,qm=`${Wt}.after`,Zm=`${Wt}.before`,Qm=`${Wt}.today`,Jm=`${Wt}.tomorrow`,ep=`${Wt}.yesterday`,tp=`${Yn}labels.filterByCondition`,np=`${Yn}labels.filterByValue`,rp=`${Yn}labels.conjunction`,nh=`${Yn}labels.disjunction`,Oc=`${Yn}values.blankCells`,ip=`${Yn}buttons.selectAll`,op=`${Yn}buttons.clear`,sp=`${Yn}buttons.ok`,ap=`${Yn}buttons.cancel`,lp=`${Yn}buttons.placeholder.search`,up=`${Yn}buttons.placeholder.value`,cp=`${Yn}buttons.placeholder.secondValue`,_b="CheckboxRenderer:",Mb=`${_b}checked`,Ab=`${_b}unchecked`,x4=Object.freeze(Object.defineProperty({__proto__:null,CHECKBOX_CHECKED:Mb,CHECKBOX_RENDERER_NAMESPACE:_b,CHECKBOX_UNCHECKED:Ab,CONTEXTMENU_ITEMS_ADD_COMMENT:dm,CONTEXTMENU_ITEMS_ALIGNMENT:pm,CONTEXTMENU_ITEMS_ALIGNMENT_BOTTOM:Rm,CONTEXTMENU_ITEMS_ALIGNMENT_CENTER:vm,CONTEXTMENU_ITEMS_ALIGNMENT_JUSTIFY:Sm,CONTEXTMENU_ITEMS_ALIGNMENT_LEFT:wm,CONTEXTMENU_ITEMS_ALIGNMENT_MIDDLE:bm,CONTEXTMENU_ITEMS_ALIGNMENT_RIGHT:Cm,CONTEXTMENU_ITEMS_ALIGNMENT_TOP:ym,CONTEXTMENU_ITEMS_BORDERS:Em,CONTEXTMENU_ITEMS_BORDERS_BOTTOM:Mm,CONTEXTMENU_ITEMS_BORDERS_LEFT:Am,CONTEXTMENU_ITEMS_BORDERS_RIGHT:_m,CONTEXTMENU_ITEMS_BORDERS_TOP:Tm,CONTEXTMENU_ITEMS_CLEAR_COLUMN:nm,CONTEXTMENU_ITEMS_COPY:rm,CONTEXTMENU_ITEMS_COPY_COLUMN_HEADERS_ONLY:sm,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_GROUP_HEADERS:om,CONTEXTMENU_ITEMS_COPY_WITH_COLUMN_HEADERS:im,CONTEXTMENU_ITEMS_CUT:am,CONTEXTMENU_ITEMS_EDIT_COMMENT:fm,CONTEXTMENU_ITEMS_FREEZE_COLUMN:lm,CONTEXTMENU_ITEMS_HIDE_COLUMN:xm,CONTEXTMENU_ITEMS_HIDE_ROW:Dm,CONTEXTMENU_ITEMS_INSERT_LEFT:Xg,CONTEXTMENU_ITEMS_INSERT_RIGHT:qg,CONTEXTMENU_ITEMS_MERGE_CELLS:cm,CONTEXTMENU_ITEMS_NESTED_ROWS_DETACH_CHILD:Pm,CONTEXTMENU_ITEMS_NESTED_ROWS_INSERT_CHILD:Im,CONTEXTMENU_ITEMS_NO_ITEMS:Tb,CONTEXTMENU_ITEMS_READ_ONLY:tm,CONTEXTMENU_ITEMS_READ_ONLY_COMMENT:mm,CONTEXTMENU_ITEMS_REDO:em,CONTEXTMENU_ITEMS_REMOVE_BORDERS:Om,CONTEXTMENU_ITEMS_REMOVE_COLUMN:Qg,CONTEXTMENU_ITEMS_REMOVE_COMMENT:gm,CONTEXTMENU_ITEMS_REMOVE_ROW:Zg,CONTEXTMENU_ITEMS_ROW_ABOVE:jg,CONTEXTMENU_ITEMS_ROW_BELOW:Kg,CONTEXTMENU_ITEMS_SHOW_COLUMN:Hm,CONTEXTMENU_ITEMS_SHOW_ROW:Nm,CONTEXTMENU_ITEMS_UNDO:Jg,CONTEXTMENU_ITEMS_UNFREEZE_COLUMN:um,CONTEXTMENU_ITEMS_UNMERGE_CELLS:hm,CONTEXT_MENU_ITEMS_NAMESPACE:Y1,FILTERS_BUTTONS_CANCEL:ap,FILTERS_BUTTONS_CLEAR:op,FILTERS_BUTTONS_OK:sp,FILTERS_BUTTONS_PLACE
* @preserve
* Authors: Handsoncode
* Last updated: Nov 15, 2017
*
* Description: Definition file for English - United States language-country.
*/const H4={languageCode:"en-US",[Tb]:"No available options",[jg]:"Insert row above",[Kg]:"Insert row below",[Xg]:"Insert column left",[qg]:"Insert column right",[Zg]:["Remove row","Remove rows"],[Qg]:["Remove column","Remove columns"],[Jg]:"Undo",[em]:"Redo",[tm]:"Read only",[nm]:"Clear column",[pm]:"Alignment",[wm]:"Left",[vm]:"Center",[Cm]:"Right",[Sm]:"Justify",[ym]:"Top",[bm]:"Middle",[Rm]:"Bottom",[lm]:"Freeze column",[um]:"Unfreeze column",[Em]:"Borders",[Tm]:"Top",[_m]:"Right",[Mm]:"Bottom",[Am]:"Left",[Om]:"Remove border(s)",[dm]:"Add comment",[fm]:"Edit comment",[gm]:"Delete comment",[mm]:"Read-only comment",[cm]:"Merge cells",[hm]:"Unmerge cells",[rm]:"Copy",[im]:["Copy with header","Copy with headers"],[om]:["Copy with group header","Copy with group headers"],[sm]:["Copy header only","Copy headers only"],[am]:"Cut",[Im]:"Insert child row",[Pm]:"Detach from parent",[xm]:["Hide column","Hide columns"],[Hm]:["Show column","Show columns"],[Dm]:["Hide row","Hide rows"],[Nm]:["Show row","Show rows"],[th]:"None",[Lm]:"Is empty",[$m]:"Is not empty",[km]:"Is equal to",[Fm]:"Is not equal to",[Wm]:"Begins with",[Vm]:"Ends with",[Bm]:"Contains",[Um]:"Does not contain",[Ym]:"Greater than",[Gm]:"Greater than or equal to",[zm]:"Less than",[jm]:"Less than or equal to",[Km]:"Is between",[Xm]:"Is not between",[qm]:"After",[Zm]:"Before",[Qm]:"Today",[Jm]:"Tomorrow",[ep]:"Yesterday",[Oc]:"Blank cells",[tp]:"Filter by condition",[np]:"Filter by value",[rp]:"And",[nh]:"Or",[ip]:"Select all",[op]:"Clear",[sp]:"OK",[ap]:"Cancel",[lp]:"Search",[up]:"Value",[cp]:"Second value",[Mb]:"Checked",[Ab]:"Unchecked"},G1=H4,D4=x4,sS=G1.languageCode,{register:N4,getItem:z1,hasItem:L4,getValues:$4}=ai("languagesDictionaries");Ob(G1);function Ob(t,e){let n=t,r=e;return Ve(t)&&(r=t,n=r.languageCode),k4(n,r),N4(n,Tn(r)),Tn(r)}function k4(t,e){t!==sS&&T4(e,z1(sS))}function j1(t){return Ib(t)?Tn(z1(t)):null}function Ib(t){return L4(t)}function F4(){return $4()}function K1(t,e,n){const r=j1(t);if(r===null)return null;const i=r[e];if(Ct(i))return null;const o=W4(i,n);return Array.isArray(o)?o[0]:o}function W4(t,e){let n=t;return E(I4(),r=>{n=r(t,e)}),n}function V4(t){let e=B1(t);return Ib(e)||(e=sS,U1(t)),e}function B4(t,e,n){return e=U4(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function U4(t){var e=Y4(t,"string");return typeof e=="symbol"?e:String(e)}function Y4(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class G4 extends q3{constructor(e,n){super(e,null),B4(this,"visualCellRange",null),this.visualCellRange=n||null,this.commit()}add(e){return this.visualCellRange===null?this.visualCellRange=this.settings.createCellRange(e):this.visualCellRange.expand(e),this}clear(){return this.visualCellRange=null,super.clear()}trimToVisibleCellsRangeOnly(e){let{from:n,to:r}=e,i=this.getNearestNotHiddenCoords(n,1),o=this.getNearestNotHiddenCoords(r,-1);return i===null||o===null?null:((i.row>o.row||i.col>o.col)&&(i=n,o=r),this.settings.createCellRange(i,i,o))}getNearestNotHiddenCoords(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:n;const i=this.getNearestNotHiddenIndex(this.settings.rowIndexMapper,e.row,n);if(i===null)return null;const o=this.getNearestNotHiddenIndex(this.settings.columnIndexMapper,e.col,r);return o===null?null:this.settings.createCellCoords(i,o)}getNearestNotHiddenIndex(e,n,r){return n<0?n:e.getNearestNotHiddenIndex(n,r)}commit(){if(this.visualCellRange===null)return this;const e=this.trimToVisibleCellsRangeOnly(this.visualCellRange);return e===null?this.cellRange=null:this.cellRange=this.createRenderableCellRange(e.from,e.to),this}syncWith(e){const n=e.from.clone().normalize(),r=e.getVerticalDirection()==="N-S"?1:-1,i=e.getHorizontalDirection()==="W-E"?1:-1,o=this.settings.visualToRenderableCoords(this.visualCellRange.highlight);let s=null;if((o===null||o.col===null||o.ro
the coordinates as an array of arrays ([[rowStart, columnStart/columnPropStart, rowEnd,\x20
columnEnd/columnPropEnd]]) or as an array of CellRange objects.`);const i=Ic(r,{createCellCoords:function(){return n.tableProps.createCellCoords(...arguments)},createCellRange:function(){return n.tableProps.createCellRange(...arguments)},propToCol:l=>this.tableProps.propToCol(l),keepDirection:!0}),o=this.settings.navigableHeaders,s={countRows:this.tableProps.countRows(),countCols:this.tableProps.countCols(),countRowHeaders:o?this.tableProps.countRowHeaders():0,countColHeaders:o?this.tableProps.countColHeaders():0},a=!e.some(l=>{const u=i(l),c=u.isValid(s);return!(c&&!u.containsHeaders()||c&&u.containsHeaders()&&u.isSingleHeader())});return a&&(this.clear(),E(e,l=>{const{from:u,to:c}=i(l);this.setRangeStartOnly(u.clone(),!1),this.setRangeEnd(c.clone()),this.finish()})),a}selectColumns(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const i=typeof e=="string"?this.tableProps.propToCol(e):e,o=typeof n=="string"?this.tableProps.propToCol(n):n,s=this.tableProps.countRows(),a=this.tableProps.countCols(),l=this.tableProps.countColHeaders(),u=l===0?0:-l,c=this.tableProps.createCellCoords(u,i),h=this.tableProps.createCellCoords(s-1,o),d=this.tableProps.createCellRange(c,c,h).isValid({countRows:s,countCols:a,countRowHeaders:0,countColHeaders:l});if(d){const g=l===0?0:ir(r,u,-1),p=s-1,v=this.tableProps.createCellCoords(g,i),S=this.tableProps.createCellCoords(p,o),y=this.tableProps.createCellCoords(ir(r,u,s-1),i);this.runLocalHooks("beforeSelectColumns",v,S,y),v.row=g,S.row=p,this.setRangeStartOnly(v,void 0,y),this.selectedByColumnHeader.add(this.getLayerLevel()),this.setRangeEnd(S),this.runLocalHooks("afterSelectColumns",v,S,y),this.finish()}return d}selectRows(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;const i=this.tableProps.countRows(),o=this.tableProps.countCols(),s=this.tableProps.countRowHeaders(),a=s===0?0:-s,l=this.tableProps.createCellCoords(e,a),u=this.tableProps.createCellCoords(n,o-1),c=this.tableProps.createCellRange(l,l,u).isValid({countRows:i,countCols:o,countRowHeaders:s,countColHeaders:0});if(c){const h=s===0?0:ir(r,a,-1),d=o-1,g=this.tableProps.createCellCoords(e,h),p=this.tableProps.createCellCoords(n,d),v=this.tableProps.createCellCoords(e,ir(r,a,o-1));this.runLocalHooks("beforeSelectRows",g,p,v),g.col=h,p.col=d,this.setRangeStartOnly(g,void 0,v),this.selectedByRowHeader.add(this.getLayerLevel()),this.setRangeEnd(p),this.runLocalHooks("afterSelectRows",g,p,v),this.finish()}return c}refresh(){if(this.highlight.getCustomSelections().forEach(i=>{i.commit()}),!this.isSelected())return;const n=this.highlight.getFocus(),r=this.getLayerLevel();n.commit().syncWith(this.selectedRange.current());for(let i=0;i<this.selectedRange.size();i+=1){this.highlight.useLayerLevel(i);const o=this.highlight.createArea(),s=this.highlight.createLayeredArea(),a=this.highlight.createRowHeader(),l=this.highlight.createColumnHeader(),u=this.highlight.createActiveRowHeader(),c=this.highlight.createActiveColumnHeader(),h=this.highlight.createActiveCornerHeader(),d=this.highlight.createRowHighlight(),g=this.highlight.createColumnHighlight();o.commit(),s.commit(),a.commit(),l.commit(),u.commit(),c.commit(),h.commit(),d.commit(),g.commit()}this.highlight.useLayerLevel(r)}}pt(rH,or);const bq=rH,H0=/^(\r\n|\n\r|\r|\n)/,Rq=/^[^\t\r\n]+/,D0=/^\t/;function Eq(t){const e=[[""]];if(t.length===0)return e;let n=0,r=0,i;for(;t.length>0&&i!==t.length;)if(i=t.length,t.match(D0))t=t.replace(D0,""),n+=1,e[r][n]="";else if(t.match(H0))t=t.replace(H0,""),n=0,r+=1,e[r]=[""];else{let o="";if(t.startsWith('"')){let s=0,a=!0;for(;a;){const l=t.slice(0,1);l==='"'&&(s+=1),o+=l,t=t.slice(1),(t.length===0||t.match(/^[\t\r\n]/)&&s%2===0)&&(a=!1)}o=o.replace(/^"/,"").replace(/"$/,"").replace(/["]*/g,l=>new Array(Math.floor(l.length/2)).fill('"').join(""))}else{const s=t.match(Rq);o=s?s[0]:"",t=t.slice(o.length)}e[r][n]=o}return e}function ic(t){let e,n,r,i,o="",s;for(e=0,n=t.length;e<n;e+=1){for(i=t[e].len
`)>-1?o+=`"${s.replace(/"/g,'""')}"`:o+=s:s==null?o+="":o+=s;e!==n-1&&(o+=`
`)}return o}function Ps(t,e,n){return e=Tq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tq(t){var e=_q(t,"string");return typeof e=="symbol"?e:String(e)}function _q(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class yl{static get DESTINATION_RENDERER(){return 1}static get DESTINATION_CLIPBOARD_GENERATOR(){return 2}constructor(e,n,r){Ps(this,"hot",void 0),Ps(this,"metaManager",void 0),Ps(this,"tableMeta",void 0),Ps(this,"dataSource",void 0),Ps(this,"duckSchema",void 0),Ps(this,"colToPropCache",void 0),Ps(this,"propToColCache",void 0),this.hot=e,this.metaManager=r,this.tableMeta=r.getTableMeta(),this.dataSource=n,this.duckSchema=this.createDuckSchema(),this.createMap()}createMap(){const e=this.getSchema();if(typeof e>"u")throw new Error("trying to create `columns` definition but you didn't provide `schema` nor `data`");const n=this.tableMeta.columns;let r;if(this.colToPropCache=[],this.propToColCache=new Map,n){let i=0,o=0,s=!1;if(typeof n=="function"){const a=kg(e);i=a>0?a:this.countFirstRowKeys(),s=!0}else{const a=this.tableMeta.maxCols;i=Math.min(a,n.length)}for(r=0;r<i;r++){const a=s?n(r):n[r];if(Ve(a)){if(typeof a.data<"u"){const l=s?o:r;this.colToPropCache[l]=a.data,this.propToColCache.set(a.data,l)}o+=1}}}else this.recursiveDuckColumns(e)}countFirstRowKeys(){return vb(this.dataSource)}recursiveDuckColumns(e,n,r){let i=n,o=r,s;return typeof i>"u"&&(i=0,o=""),typeof e=="object"&&!Array.isArray(e)&&Ye(e,(a,l)=>{a===null?(s=o+l,this.colToPropCache.push(s),this.propToColCache.set(s,i),i+=1):i=this.recursiveDuckColumns(a,i,`${l}.`)}),i}colToProp(e){if(Number.isInteger(e)===!1)return e;const n=this.hot.toPhysicalColumn(e);return n===null?e:this.colToPropCache&&ue(this.colToPropCache[n])?this.colToPropCache[n]:n}propToCol(e){const n=this.propToColCache.get(e);if(ue(n))return this.hot.toVisualColumn(n);const r=this.hot.toVisualColumn(e);return r===null?e:r}getSchema(){const e=this.tableMeta.dataSchema;return e?typeof e=="function"?e():e:this.duckSchema}createDuckSchema(){return this.dataSource&&this.dataSource[0]?Hl(this.dataSource[0]):{}}refreshDuckSchema(){this.duckSchema=this.createDuckSchema()}createRow(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="above"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const o=this.hot.countSourceRows();let s=o,a=0,l=e;if((typeof l!="number"||l>=o)&&(l=o),l<this.hot.countRows()&&(s=this.hot.toPhysicalRow(l)),this.hot.runHooks("beforeCreateRow",l,n,r)===!1||s===null)return{delta:0};const c=this.tableMeta.maxRows,h=this.getSchema().length,d=[];for(;a<n&&o+a<c;){let p=null;this.hot.dataType==="array"?this.tableMeta.dataSchema?p=Tn(this.getSchema()):(p=[],me(h-1,()=>p.push(null))):this.hot.dataType==="function"?p=this.tableMeta.dataSchema(l+a):(p={},Xc(p,this.getSchema())),d.push(p),a+=1}this.hot.rowIndexMapper.insertIndexes(l,a),i==="below"&&(s=Math.min(s+1,o)),this.spliceData(s,0,d);const g=this.hot.toVisualRow(s);return this.hot.countSourceRows()===d.length&&this.hot.columnIndexMapper.initToLength(this.hot.getInitialColumnCount()),a>0&&(e==null?this.metaManager.createRow(null,a):r!=="auto"&&this.metaManager.createRow(s,n)),this.hot.runHooks("afterCreateRow",g,a,r),this.hot.forceFullRender=!0,{delta:a,startPhysicalIndex:s}}createCol(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,{source:r,mode:i="start"}=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(!this.hot.isColumnModificationAllowed())throw new Error("Cannot create new column. When data source in an object, you can only have as much columns as defined in first data row, data schema or in the 'columns' setting.If you want to be able to add new columns, you have to use array datasource.");const o=this.dataSource,s=this.tableMeta.maxCols,a=this.hot.countSourceCols();let l=e;if((typeof l!="number
Cell type must be an object or a string mapped to an object registered by
"Handsontable.cellTypes.registerCellType" method`);return Oq(t)}function br(t,e){typeof t!="string"&&(e=t,t=e.CELL_TYPE);const{editor:n,renderer:r,validator:i}=e;n&&Jn(t,n),r&&lr(t,r),i&&ta(t,i),Aq(t,e)}function Pq(t,e){var n;return t==="CELL_TYPE"?!1:((n=e._automaticallyAssignedMetaProps)===null||n===void 0?void 0:n.has(t))||!It(e,t)}function fp(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:t;const r=typeof e.type=="string"?xb(e.type):e.type;if(t._automaticallyAssignedMetaProps&&Ye(e,(o,s)=>void t._automaticallyAssignedMetaProps.delete(s)),!Ve(r))return;n===t&&!t._automaticallyAssignedMetaProps&&(t._automaticallyAssignedMetaProps=new Set);const i={};Ye(r,(o,s)=>{if(Pq(s,n)){var a;i[s]=o,(a=t._automaticallyAssignedMetaProps)===null||a===void 0||a.add(s)}}),jt(t,i)}function xq(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];function n(){}To(n,t);for(let r=0;r<e.length;r++)n.prototype[e[r]]=void 0;return n}function Jd(t){return Number.isInteger(t)&&t>=0}function ef(t,e){if(!t())throw new Error(`Assertion failed: ${e}`)}function jh(t){return t==null}const oH=()=>({_automaticallyAssignedMetaProps:void 0,activeHeaderClassName:"ht__active_highlight",allowEmpty:!0,allowHtml:!1,allowInsertColumn:!0,allowInsertRow:!0,allowInvalid:!0,allowRemoveColumn:!0,allowRemoveRow:!0,ariaTags:!0,autoColumnSize:void 0,autoRowSize:void 0,autoWrapCol:!1,autoWrapRow:!1,bindRowsWithHeaders:void 0,cell:[],cells:void 0,checkedTemplate:void 0,className:void 0,colHeaders:null,collapsibleColumns:void 0,columnHeaderHeight:void 0,columns:void 0,columnSorting:void 0,columnSummary:void 0,colWidths:void 0,commentedCellClassName:"htCommentCell",comments:!1,contextMenu:void 0,copyable:!0,copyPaste:!0,correctFormat:!1,currentColClassName:void 0,currentHeaderClassName:"ht__highlight",currentRowClassName:void 0,customBorders:!1,data:void 0,dataSchema:void 0,dateFormat:"DD/MM/YYYY",datePickerConfig:void 0,defaultDate:void 0,disableVisualSelection:!1,dragToScroll:!0,dropdownMenu:void 0,editor:void 0,enterBeginsEditing:!0,enterMoves:{col:0,row:1},fillHandle:{autoInsertRow:!1},filter:!0,filteringCaseSensitive:!1,filters:void 0,fixedColumnsLeft:0,fixedColumnsStart:0,fixedRowsBottom:0,fixedRowsTop:0,formulas:void 0,fragmentSelection:!1,height:void 0,hiddenColumns:void 0,hiddenRows:void 0,invalidCellClassName:"htInvalid",imeFastEdit:!1,isEmptyCol(t){let e,n,r;for(e=0,n=this.countRows();e<n;e++)if(r=this.getDataAtCell(e,t),Zt(r)===!1)return!1;return!0},isEmptyRow(t){let e,n,r,i;for(e=0,n=this.countCols();e<n;e++)if(r=this.getDataAtCell(t,e),Zt(r)===!1)return typeof r=="object"?(i=this.getCellMeta(t,e),$g(this.getSchema()[i.prop],r)):!1;return!0},label:void 0,language:"en-US",layoutDirection:"inherit",licenseKey:void 0,locale:"en-US",manualColumnFreeze:void 0,manualColumnMove:void 0,manualColumnResize:void 0,manualRowMove:void 0,manualRowResize:void 0,maxCols:1/0,maxRows:1/0,mergeCells:!1,minCols:0,minRows:0,minSpareCols:0,minSpareRows:0,multiColumnSorting:void 0,navigableHeaders:!1,tabNavigation:!0,nestedHeaders:void 0,nestedRows:void 0,noWordWrapClassName:"htNoWrap",numericFormat:void 0,observeDOMVisibility:!0,outsideClickDeselects:!0,persistentState:void 0,placeholder:void 0,placeholderCellClassName:"htPlaceholder",preventOverflow:!1,preventWheel:!1,readOnly:!1,readOnlyCellClassName:"htDimmed",renderAllRows:!1,renderAllColumns:!1,renderer:void 0,rowHeaders:void 0,rowHeaderWidth:void 0,rowHeights:void 0,search:!1,selectionMode:"multiple",selectOptions:void 0,skipColumnOnPaste:!1,skipRowOnPaste:!1,sortByRelevance:!0,source:void 0,startCols:5,startRows:5,stretchH:"none",strict:void 0,tableClassName:void 0,tabMoves:{row:0,col:1},title:void 0,trimDropdown:!0,trimRows:void 0,trimWhitespace:!0,type:"text",uncheckedTemplate:void 0,undo:void 0,validator:void 0,viewportColumnRenderingOffset:"auto",viewportRowRenderingOffset:"auto",visibleRows:10,width:void 0,wordWrap:!0});function N0(t,e,n){return e=Hq(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Hq(t){var e=Dq
using the KeyboardEvent.key properties:\x20
https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values.`);const R={callback:u,group:c,runOnlyIf:h,captureCtrl:d,preventDefault:g,stopPropagation:p};ue(v)&&([R.relativeToGroup,R.position]=[v,S]),hH(y)&&(R.forwardToContext=y),l.forEach(T=>{const N=Xh(T);if(e.hasItem(N)){const F=e.getItem(N);let B=F.findIndex(ee=>ee.group===v);B!==-1?S==="before"?B-=1:B+=1:B=F.length,F.splice(B,0,R)}else e.addItem(N,[R])})},r=function(l){let u=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};l.forEach(c=>{Ye(u,(h,d)=>{Object.prototype.hasOwnProperty.call(c,d)===!1&&(c[d]=u[d])}),n(c)})},i=l=>{const u=Xh(l);e.removeItem(u)};return{__kindOf:cH,addShortcut:n,addShortcuts:r,getShortcuts:l=>{const u=Xh(l),c=e.getItem(u);return ue(c)?c.slice():[]},hasShortcut:l=>{const u=Xh(l);return e.hasItem(u)},removeShortcutsByKeys:i,removeShortcutsByGroup:l=>{e.getItems().forEach(c=>{let[h,d]=c;const g=d.filter(p=>p.group!==l);g.length===0?i(Z6(h)):(d.length=0,d.push(...g))})}}};function e9(){const t=new Set;return{press(e){t.add(e)},release(e){t.delete(e)},releaseAll(){t.clear()},isPressed(e){return t.has(e)}}}const t9=["meta","alt","shift","control"],pu=e9();let qh=0;function n9(t,e,n,r,i){const o=g=>t9.includes(g),s=function(g){let p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const v=[];return g.altKey&&v.push("alt"),p&&(g.ctrlKey||g.metaKey)?v.push("control/meta"):(g.ctrlKey&&v.push("control"),g.metaKey&&v.push("meta")),g.shiftKey&&v.push("shift"),v},a=g=>{if(e(g)===!1)return;const p=n(g);if(g.keyCode===229||p===!1||Ko(g))return;const v=kw(g);let S=[];o(v)||(S=s(g));const y=[v].concat(S);!i(g,y)&&(Mc()&&S.includes("meta")||!Mc()&&S.includes("control"))&&i(g,[v].concat(s(g,!0))),r(g)},l=g=>{const p=kw(g);o(p)&&pu.press(p)},u=g=>{const p=kw(g);o(p)&&pu.release(p)},c=()=>{pu.releaseAll()};return{mount:()=>{let g=t;for(qh+=1;g;)qh===1&&(g.document.documentElement.addEventListener("keydown",l),g.document.documentElement.addEventListener("keyup",u)),g.document.documentElement.addEventListener("keydown",a),g.document.documentElement.addEventListener("blur",c),g=Ec(g)},unmount:()=>{let g=t;for(qh-=1;g;)qh===0&&(g.document.documentElement.removeEventListener("keydown",l),g.document.documentElement.removeEventListener("keyup",u)),g.document.documentElement.removeEventListener("keydown",a),g.document.documentElement.removeEventListener("blur",c),g=Ec(g)},isPressed:g=>pu.isPressed(g),releasePressedKeys:()=>pu.releaseAll()}}const r9=t=>{let{ownerWindow:e,handleEvent:n,beforeKeyDown:r,afterKeyDown:i}=t;const o=Bg({errorIdExists:p=>`The "${p}" context name is already registered.`});let s="grid";const a=p=>{const v=J6(p);return o.addItem(p,v),v},l=()=>s,u=p=>o.getItem(p),c=p=>{if(!o.hasItem(p))throw new Error(ht`You've tried to activate the "${p}" shortcut context\x20
that does not exist. Before activation, register the context using the "addContext" method.`);s=p};let h=!1;const d=function(p,v){let S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:l();const y=hH(S)?S:u(S);let R=!1;if(!y.hasShortcut(v))return R;const T=y.getShortcuts(v);for(let N=0;N<T.length;N++){const{callback:I,runOnlyIf:F,preventDefault:B,stopPropagation:ee,captureCtrl:U,forwardToContext:j}=T[N];if(F(p)===!0){if(h=U,R=I(p,v)===!1,h=!1,B&&p.preventDefault(),ee&&(Lr(p),p.stopPropagation()),R)break;j&&d(p,v,j)}}return R},g=n9(e,n,r,i,d);return g.mount(),{addContext:a,getActiveContextName:l,getContext:u,setActiveContextName:c,isCtrlPressed:()=>!h&&(g.isPressed("control")||g.isPressed("meta")),releasePressedKeys:()=>g.releasePressedKeys(),destroy:()=>g.unmount()}};let Fw=null;const Ww=new Map;function dH(t,e){var n,r=this;let i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,o=!1,s=this;const a=new xr(s);let l,u,c,h,d,g=!0;kX(i)&&$X(this),this.rootElement=t,this.rootDocument=t.ownerDocument,this.rootWindow=this.rootDocument.defaultView,this.isDestroyed=!1,this.renderSuspendedCounter=0,this.executionSuspendedCounter=0;const p=(n=e==null?void 0:e.layoutDirection)!==null&&n!==void 0?n:"inherit",v=["rtl","ltr"].includes(p)?p:this.rootWindow.getComputedStyle(this.rootElement).direction;this.rootElement.setAttribute("dir",v),this.isRtl=function(){return v==="rtl"},this.isLtr=function(){return!s.isRtl()},this.getDirectionFactor=function(){return s.isLtr()?1:-1},e.language=V4(e.language);const S=new aH(s,e,[Qq,t6]),y=S.getTableMeta(),R=S.getGlobalMeta(),T=Bg();this.container=this.rootDocument.createElement("div"),this.renderCall=!1,t.insertBefore(this.container,t.firstChild),Qd(this)&&lx(e.licenseKey,t),this.guid=`ht_${_y()}`,Ww.set(this.guid,this),this.columnIndexMapper=new oS,this.rowIndexMapper=new oS,this.columnIndexMapper.addLocalHook("indexesSequenceChange",f=>{s.runHooks("afterColumnSequenceChange",f)}),this.rowIndexMapper.addLocalHook("indexesSequenceChange",f=>{s.runHooks("afterRowSequenceChange",f)}),u=new e4(s),(!this.rootElement.id||this.rootElement.id.substring(0,3)==="ht_")&&(this.rootElement.id=this.guid);const N=f=>{const{row:m,col:w}=f;return s._createCellCoords(m>=0?s.rowIndexMapper.getRenderableFromVisualIndex(m):m,w>=0?s.columnIndexMapper.getRenderableFromVisualIndex(w):w)},I=f=>{const{row:m,col:w}=f;return s._createCellCoords(m>=0?s.rowIndexMapper.getVisualFromRenderableIndex(m):m,w>=0?s.columnIndexMapper.getVisualFromRenderableIndex(w):w)};let F=new bq(y,{rowIndexMapper:s.rowIndexMapper,columnIndexMapper:s.columnIndexMapper,countCols:()=>s.countCols(),countRows:()=>s.countRows(),propToCol:f=>l.propToCol(f),isEditorOpened:()=>s.getActiveEditor()?s.getActiveEditor().isOpened():!1,countRenderableColumns:()=>this.view.countRenderableColumns(),countRenderableRows:()=>this.view.countRenderableRows(),countRowHeaders:()=>this.countRowHeaders(),countColHeaders:()=>this.countColHeaders(),getShortcutManager:()=>s.getShortcutManager(),createCellCoords:(f,m)=>s._createCellCoords(f,m),createCellRange:(f,m,w)=>s._createCellRange(f,m,w),visualToRenderableCoords:N,renderableToVisualCoords:I,isDisabledCellSelection:(f,m)=>f<0||m<0?s.getSettings().disableVisualSelection:s.getCellMeta(f,m).disableVisualSelection});this.selection=F;const B=f=>{let{hiddenIndexesChanged:m}=f;m&&this.selection.refresh()};this.columnIndexMapper.addLocalHook("cacheUpdated",B),this.rowIndexMapper.addLocalHook("cacheUpdated",B),this.selection.addLocalHook("afterSetRangeEnd",f=>{const m=ei(!1),w=this.selection.getSelectedRange(),{from:A,to:O}=w.current(),D=w.size()-1;this.runHooks("afterSelection",A.row,A.col,O.row,O.col,m,D),this.runHooks("afterSelectionByProp",A.row,s.colToProp(A.col),O.row,s.colToProp(O.col),m,D);let z=!0;o&&(z=!1),m.isTouched()&&(z=!m.value);const G=this.selection.selectedRange.current(),ne=this.selection.isSelectedByAnyHeader(),Z=this.selection.isSelectedByRowHeader(),K=this.selection.isSelectedByColumnHeader();if(z!==!1)if(ne)Z?this.scrollViewportTo({row:f.row}):K&&this.scrollViewportTo({col:f.col});el
`);let i=n,o=0;for(let s=0;s<r.length;s++){const a=r[s];s!==0&&(o+=r[s-1].length+1);const l=o+a.length;if(t==="home"?i=o:t==="end"&&(i=l),n<=l)break}zc(e,i)}function xs(t,e,n){return e=c9(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function c9(t){var e=h9(t,"string");return typeof e=="symbol"?e:String(e)}function h9(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const d9="ht_editor_visible",Zh="ht_editor_hidden",j0="textEditor",f9="text";class ba extends Gl{static get EDITOR_TYPE(){return f9}constructor(e){super(e),xs(this,"eventManager",new xr(this)),xs(this,"autoResize",u9(this.hot.rootDocument)),xs(this,"TEXTAREA",void 0),xs(this,"textareaStyle",void 0),xs(this,"TEXTAREA_PARENT",void 0),xs(this,"textareaParentStyle",void 0),xs(this,"layerClass",void 0),this.eventManager=new xr(this),this.createElements(),this.bindEvents(),this.hot.addHookOnce("afterDestroy",()=>this.destroy())}getValue(){return this.TEXTAREA.value}setValue(e){this.TEXTAREA.value=e}open(){this.refreshDimensions(),this.showEditableElement(),this.hot.getShortcutManager().setActiveContextName("editor"),this.registerShortcuts()}close(){this.autoResize.unObserve(),mx(this.hot.rootDocument.activeElement,this.hot.rootElement)&&this.hot.listen(),this.hideEditableElement(),this.unregisterShortcuts()}prepare(e,n,r,i,o,s){const a=this.state;if(super.prepare(e,n,r,i,o,s),!s.readOnly){this.refreshDimensions(!0);const{allowInvalid:l}=s;l&&(this.TEXTAREA.value=""),a!==qt.FINISHED&&this.hideEditableElement()}}beginEditing(e,n){this.state===qt.VIRGIN&&(this.TEXTAREA.value="",super.beginEditing(e,n))}focus(){this.TEXTAREA.select(),zc(this.TEXTAREA,this.TEXTAREA.value.length)}createElements(){const{rootDocument:e}=this.hot;this.TEXTAREA=e.createElement("TEXTAREA"),Ee(this.TEXTAREA,[["data-hot-input",""],Vl(-1)]),this.hot.getSettings().ariaTags&&Ee(this.TEXTAREA,[Eo()]),q(this.TEXTAREA,"handsontableInput"),this.textareaStyle=this.TEXTAREA.style,this.textareaStyle.width=0,this.textareaStyle.height=0,this.textareaStyle.overflowY="visible",this.TEXTAREA_PARENT=e.createElement("DIV"),q(this.TEXTAREA_PARENT,"handsontableInputHolder"),Ie(this.TEXTAREA_PARENT,this.layerClass)&&Le(this.TEXTAREA_PARENT,this.layerClass),q(this.TEXTAREA_PARENT,Zh),this.textareaParentStyle=this.TEXTAREA_PARENT.style,this.TEXTAREA_PARENT.appendChild(this.TEXTAREA),this.hot.rootElement.appendChild(this.TEXTAREA_PARENT)}hideEditableElement(){Fx()&&(this.textareaStyle.textIndent="-99999px"),this.textareaStyle.overflowY="visible",this.textareaParentStyle.opacity="0",this.textareaParentStyle.height="1px",Le(this.TEXTAREA_PARENT,this.layerClass),q(this.TEXTAREA_PARENT,Zh)}showEditableElement(){this.textareaParentStyle.height="",this.textareaParentStyle.overflow="",this.textareaParentStyle.position="",this.textareaParentStyle[this.hot.isRtl()?"left":"right"]="auto",this.textareaParentStyle.opacity="1",this.textareaStyle.textIndent="",this.textareaStyle.overflowY="hidden";const e=this.TEXTAREA_PARENT.childNodes;let n=!1;me(e.length-1,r=>{const i=e[r];if(Ie(i,"handsontableEditor"))return n=!0,!1}),Ie(this.TEXTAREA_PARENT,Zh)&&Le(this.TEXTAREA_PARENT,Zh),n?(this.layerClass=d9,q(this.TEXTAREA_PARENT,this.layerClass)):(this.layerClass=this.getEditedCellsLayerClass(),q(this.TEXTAREA_PARENT,this.layerClass))}refreshValue(){const e=this.hot.toPhysicalRow(this.row),n=this.hot.getSourceDataAtCell(e,this.col);this.originalValue=n,this.setValue(n),this.refreshDimensions()}refreshDimensions(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(this.state!==qt.EDITING&&!e)return;if(this.TD=this.getEditedCell(),!this.TD){e||this.close();return}const{top:n,start:r,width:i,maxWidth:o,height:s,maxHeight:a}=this.getEditedCellRect();this.textareaParentStyle.top=`${n}px`,this.textareaParentStyle[this.hot.isRtl()?"right":"left"]=`${r}px`,this.showEditableElement(
`)};n.addShortcuts([{keys:[["Tab"],["Shift","Tab"],["PageUp"],["PageDown"]],forwardToContext:r,callback:()=>{}},{keys:[["Control","Enter"]],callback:()=>(o(),!1),runOnlyIf:s=>!this.hot.selection.isMultiple()&&!s.altKey},{keys:[["Meta","Enter"]],callback:()=>(o(),!1),runOnlyIf:()=>!this.hot.selection.isMultiple()},{keys:[["Alt","Enter"]],callback:()=>(o(),!1)},{keys:[["Home"]],callback:(s,a)=>{let[l]=a;z0(l,this.TEXTAREA)}},{keys:[["End"]],callback:(s,a)=>{let[l]=a;z0(l,this.TEXTAREA)}}],i)}unregisterShortcuts(){const n=this.hot.getShortcutManager().getContext("editor");n.removeShortcutsByGroup(Vg),n.removeShortcutsByGroup(j0),n.removeShortcutsByGroup(hS)}}const g9="base";function rh(t,e,n,r,i,o,s){const a=s.ariaTags,l=[],u=[],c=[],h=[];s.className&&q(e,s.className),s.readOnly?(l.push(s.readOnlyCellClassName),a&&h.push(OE())):a&&c.push(OE()[0]),s.valid===!1&&s.invalidCellClassName?(l.push(s.invalidCellClassName),a&&h.push(IE())):(u.push(s.invalidCellClassName),a&&c.push(IE()[0])),s.wordWrap===!1&&s.noWordWrapClassName&&l.push(s.noWordWrapClassName),!o&&s.placeholder&&l.push(s.placeholderCellClassName),Le(e,u),q(e,l),Ca(e,c),Ee(e,h)}rh.RENDERER_TYPE=g9;const m9="text";function Ao(t,e,n,r,i,o,s){rh.apply(this,[t,e,n,r,i,o,s]);let a=o;if(!a&&s.placeholder&&(a=s.placeholder),a=Ft(a),s.trimWhitespace&&(a=a.trim()),s.rendererTemplate){oi(e);const l=t.rootDocument.createElement("TEMPLATE");l.setAttribute("bind","{{}}"),l.innerHTML=s.rendererTemplate,HTMLTemplateElement.decorate(l),l.model=t.getSourceDataAtRow(n),e.appendChild(l)}else hs(e,a)}Ao.RENDERER_TYPE=m9;const p9="text",gH={CELL_TYPE:p9,editor:ba,renderer:Ao};br(gH);Ae.editors={BaseEditor:Gl};function Ae(t,e){const n=new dH(t,e||{},pb);return n.init(),n}Ae.Core=function(t){let e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return new dH(t,e,pb)};Ae.DefaultSettings=oH();Ae.hooks=de.getSingleton();Ae.CellCoords=Df;Ae.CellRange=eb;Ae.packageName="handsontable";Ae.buildDate="16/01/2024 10:27:23";Ae.version="14.1.0";Ae.languages={dictionaryKeys:D4,getLanguageDictionary:j1,getLanguagesDictionaries:F4,registerLanguageDictionary:Ob,getTranslatedPhrase:K1};function K0(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(t,i).enumerable})),n.push.apply(n,r)}return n}function w9(t){for(var e=1;e<arguments.length;e++){var n=arguments[e]!=null?arguments[e]:{};e%2?K0(Object(n),!0).forEach(function(r){S9(t,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):K0(Object(n)).forEach(function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(n,r))})}return t}function v9(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function C9(t){var e=v9(t,"string");return typeof e=="symbol"?e:String(e)}function dS(t){"@babel/helpers - typeof";return dS=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},dS(t)}function S9(t,e,n){return e=C9(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var Ml=Symbol("unassigned"),y9="The Handsontable instance bound to this component was destroyed and cannot be used properly.";function kf(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function mH(t){var e=Ae.hooks.getRegistered(),n={};Object.assign(n,Ae.DefaultSettings);for(var r in n)n[r]={default:Ml};for(var i=0;i<e.length;i++)n[e[i]]={default:Ml};return n.settings={default:Ml},t==="HotTable"&&(n.id={type:String,default:"hot-".concat(Math.random().toString(36).substring(5))}),n}function pH(t){var e={},n=t.settings;if(n!==Ml)for(var r in n)kf(n,r)&&n[r]!==Ml&&(e[r]=n[r]);for(var i in t)kf(t,i)&&i!=="settings"&&t[i]!==Ml&&(e[i]=t[i]);r
* Pikaday
*
* Copyright © 2014 David Bushell | BSD & MIT license | https://github.com/Pikaday/Pikaday
*/const ts=()=>window,Mr=()=>window.document,fS=(t,e)=>window.setTimeout(t,e),bi=function(t,e,n,r){t.addEventListener(e,n,!!r)},Ki=function(t,e,n,r){t.removeEventListener(e,n,!!r)},k9=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")},ar=function(t,e){return(" "+t.className+" ").indexOf(" "+e+" ")!==-1},Bw=function(t,e){ar(t,e)||(t.className=t.className===""?e:t.className+" "+e)},Uw=function(t,e){t.className=k9((" "+t.className+" ").replace(" "+e+" "," "))},$b=function(t){return/Array/.test(Object.prototype.toString.call(t))},ur=function(t){return/Date/.test(Object.prototype.toString.call(t))&&!isNaN(t.getTime())},F9=function(t){let e=t.getDay();return e===0||e===6},W9=function(t){return t%4===0&&t%100!==0||t%400===0},J0=function(t,e){return[31,W9(t)?29:28,31,30,31,30,31,31,30,31,30,31][e]},Jh=function(t){ur(t)&&t.setHours(0,0,0,0)},ed=function(t,e){return t.getTime()===e.getTime()},Ff=function(t,e,n){let r,i;for(r in e)i=t[r]!==void 0,i&&typeof e[r]=="object"&&e[r]!==null&&e[r].nodeName===void 0?ur(e[r])?n&&(t[r]=new Date(e[r].getTime())):$b(e[r])?n&&(t[r]=e[r].slice(0)):t[r]=Ff({},e[r],n):(n||!i)&&(t[r]=e[r]);return t},eT=function(t,e,n){let r=Mr().createEvent("HTMLEvents");r.initEvent(e,!0,!1),r=Ff(r,n),t.dispatchEvent(r)},tT=function(t){return t.month<0&&(t.year-=Math.ceil(Math.abs(t.month)/12),t.month+=12),t.month>11&&(t.year+=Math.floor(Math.abs(t.month)/12),t.month-=12),t},fi={field:null,bound:void 0,ariaLabel:"Use the arrow keys to pick a date",position:"bottom left",reposition:!0,format:"YYYY-MM-DD",toString:null,parse:null,defaultDate:null,setDefaultDate:!1,firstDay:0,firstWeekOfYearMinDays:4,formatStrict:!1,minDate:null,maxDate:null,yearRange:10,showWeekNumber:!1,pickWholeWeek:!1,minYear:0,maxYear:9999,minMonth:void 0,maxMonth:void 0,startRange:null,endRange:null,isRTL:!1,yearSuffix:"",showMonthAfterYear:!1,showDaysInNextAndPreviousMonths:!1,enableSelectionDaysInNextAndPreviousMonths:!1,numberOfMonths:1,mainCalendar:"left",container:void 0,blurFieldOnSelect:!0,i18n:{previousMonth:"Previous Month",nextMonth:"Next Month",months:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},theme:null,events:[],onSelect:null,onOpen:null,onClose:null,onDraw:null,keyboardInput:!0},nT=function(t,e,n){for(e+=t.firstDay;e>=7;)e-=7;return n?t.i18n.weekdaysShort[e]:t.i18n.weekdays[e]},V9=function(t){let e=[],n="false";if(t.isEmpty)if(t.showDaysInNextAndPreviousMonths)e.push("is-outside-current-month"),t.enableSelectionDaysInNextAndPreviousMonths||e.push("is-selection-disabled");else return'<td class="is-empty"></td>';return t.isDisabled&&e.push("is-disabled"),t.isToday&&e.push("is-today"),t.isSelected&&(e.push("is-selected"),n="true"),t.hasEvent&&e.push("has-event"),t.isInRange&&e.push("is-inrange"),t.isStartRange&&e.push("is-startrange"),t.isEndRange&&e.push("is-endrange"),'<td data-day="'+t.day+'" class="'+e.join(" ")+'" aria-selected="'+n+'"><button class="pika-button pika-day" type="button" data-pika-year="'+t.year+'" data-pika-month="'+t.month+'" data-pika-day="'+t.day+'">'+t.day+"</button></td>"},B9=function(t,e){t.setHours(0,0,0,0);let n=t.getDate(),r=t.getDay(),i=e,o=i-1,s=7,a=function(d){return(d+s-1)%s};t.setDate(n+o-a(r));let l=new Date(t.getFullYear(),0,i),u=24*60*60*1e3,c=(t.getTime()-l.getTime())/u;return 1+Math.round((c-o+a(l.getDay()))/s)},U9=function(t,e,n,r,i){let o=new Date(r,n,e);return'<td class="pika-week">'+(t.hasMoment?t.moment(o).isoWeek():B9(o,i))+"</td>"},Y9=function(t,e,n,r){return'<tr class="pika-row'+(n?" pick-whole-week":"")+(r?" is-selected":"")+'">'+(e?t.reverse():t).join("")+"</tr>"},G9=function(t){return"<tbody>"+t.join("")+"</tbody>"},z9=function(t){let e,n=[];for(t.showWeekNumber&&n.push("<th></th>"),e=0;e<7;e++)n.push('<th scope="col"><abbr title="'+nT(t,e)+'">'+nT(t,e,!0)+"</abbr></th>");return"<thead><tr>"+(t.isRTL?n.reverse():n).join("")+"</tr></thead>"},j9=function(t,e,n,r,i,o){
`,`${i.join(`
`)}
`].join("");zw.push(o)}}if(gi||(gi=Zy()),gi.indexOf("UndoRedo")>=0&&gi.splice(gi.indexOf("UndoRedo"),1),gi.indexOf(this.pluginName)>=0&&gi.splice(gi.indexOf(this.pluginName),1),this.hot.addHookOnce("afterPluginsInitialized",()=>{this.isEnabled&&this.isEnabled()&&this.enablePlugin()}),gi.length===0){if(zw.length>0){const i=[`${zw.join(`
`)}
`,"You have to import and register them manually."].join("");throw new Error(i)}this.hot.runHooks("afterPluginsInitialized")}this.initialized=!0}enablePlugin(){this.enabled=!0}disablePlugin(){var e;(e=this.eventManager)===null||e===void 0||e.clear(),this.clearHooks(),this.enabled=!1}addHook(e,n){La(this,Ds)[e]=La(this,Ds)[e]||[];const r=La(this,Ds)[e];this.hot.addHook(e,n),r.push(n),La(this,Ds)[e]=r}removeHooks(e){E(La(this,Ds)[e]||[],n=>{this.hot.removeHook(e,n)})}clearHooks(){const e=La(this,Ds);Ye(e,(n,r)=>this.removeHooks(r)),e.length=0}callOnPluginsReady(e){this.isPluginsReady?e():this.pluginsInitializedCallbacks.push(e)}onAfterPluginsInitialized(){E(this.pluginsInitializedCallbacks,e=>e()),this.pluginsInitializedCallbacks.length=0,this.isPluginsReady=!0}onUpdateSettings(e){const n=e8(this,uT,i8).call(this,e);this.isEnabled&&(this.enabled&&!this.isEnabled()&&this.disablePlugin(),!this.enabled&&this.isEnabled()&&this.enablePlugin(),this.enabled&&this.isEnabled()&&n&&this.updatePlugin(e))}updatePlugin(){}destroy(){var e;(e=this.eventManager)===null||e===void 0||e.destroy(),this.clearHooks(),Ye(this,(n,r)=>{r!=="hot"&&(this[r]=null)}),delete this.t,delete this.hot}}function i8(t){if(!t)return!1;const e=this.constructor.SETTING_KEYS;if(typeof e=="boolean")return e;for(let n=0;n<e.length;n++)if(t[e[n]]!==void 0)return!0;return!1}function Ns(t,e,n){return e=o8(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o8(t){var e=s8(t,"string");return typeof e=="symbol"?e:String(e)}function s8(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}let a8=class{constructor(e){Ns(this,"hot",null),Ns(this,"container",null),Ns(this,"injected",!1),Ns(this,"rows",[]),Ns(this,"columns",[]),Ns(this,"samples",null),Ns(this,"settings",{useHeaders:!0}),this.hot=e}addRow(e,n){if(this.columns.length)throw new Error("Doesn't support multi-dimensional table");this.rows.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={row:e};this.rows.push(r),this.samples=n,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol(e)),this.table.tr.appendChild(this.createRow(e)),this.container.container.appendChild(this.table.fragment),r.table=this.table.table}addColumnHeadersRow(e){const n=this.hot.getColHeader(0);if(n!=null){const r={row:-1};this.rows.push(r),this.container=this.createContainer(this.hot.rootElement.className),this.samples=e,this.table=this.createTable(this.hot.table.className),this.table.colGroup.appendChild(this.createColGroupsCol()),this.appendColumnHeadersRow(),this.container.container.appendChild(this.table.fragment),r.table=this.table.table}}addColumn(e,n){if(this.rows.length)throw new Error("Doesn't support multi-dimensional table");this.columns.length||(this.container=this.createContainer(this.hot.rootElement.className));const r={col:e};this.columns.push(r),this.samples=n,this.table=this.createTable(this.hot.table.className),this.getSetting("useHeaders")&&this.hot.getColHeader(e)!==null&&this.hot.view.appendColHeader(e,this.table.th),this.table.tBody.appendChild(this.createCol(e)),this.container.container.appendChild(this.table.fragment),r.table=this.table.table}getHeights(e){this.injected||this.injectTable(),E(this.rows,n=>{e(n.row,Pt(n.table)-1)})}getWidths(e){this.injected||this.injectTable(),E(this.columns,n=>{const{width:r}=n.table.getBoundingClientRect();e(n.col,Math.ceil(r))})}setSettings(e){this.settings=e}setSetting(e,n){this.settings||(this.settings={}),this.settings[e]=n}getSettings(){return this.settings}getSetting(e){return this.settings?this.settings[e]:null}createColGroupsCol(e){const n=this.hot.rootDocument.createDocumentFragment();return this.hot.hasRowHeaders()&&n.appendChild(this.createColElement(-1,-1)),this.samples.forEach(r=>{E(r.strings,i=>{n.appendChild(this.createColElement(i.c
You must provide a destination row for the Column Summary plugin in order to work properly!
`)),this.assignSetting(i,o,"destinationColumn",new Error(`
You must provide a destination column for the Column Summary plugin in order to work properly!
`)),this.assignSetting(i,o,"sourceColumn",i.destinationColumn),this.assignSetting(i,o,"type","sum"),this.assignSetting(i,o,"forceNumeric",!1),this.assignSetting(i,o,"suppressDataTypeErrors",!0),this.assignSetting(i,o,"customFunction",null),this.assignSetting(i,o,"readOnly",!0),this.assignSetting(i,o,"roundFloat",!1),n.push(o)}),n}assignSetting(e,n,r,i){if(r==="ranges"&&e[r]===void 0){n[r]=i;return}else if(r==="ranges"&&e[r].length===0)return;if(e[r]===void 0){if(i instanceof Error)throw i;n[r]=i}else r==="destinationRow"&&n.reversedRowCoords?n[r]=this.hot.countRows()-e[r]-1:n[r]=e[r]}resetSetupBeforeStructureAlteration(e,n,r){if(this.settingsType!=="function")return;const i=e.indexOf("row")>-1?"row":"col",o=this.getAllEndpoints();E(o,s=>{i==="row"&&s.destinationRow>=n&&(e==="insert_row"?s.alterRowOffset=r:e==="remove_row"&&(s.alterRowOffset=-1*r)),i==="col"&&s.destinationColumn>=n&&(e==="insert_col"?s.alterColumnOffset=r:e==="remove_col"&&(s.alterColumnOffset=-1*r))}),this.resetAllEndpoints(o,!1)}resetSetupAfterStructureAlteration(e,n,r,i,o){let s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!0;if(this.settingsType==="function"){const d=()=>(this.hot.removeHook("beforeViewRender",d),this.refreshAllEndpoints());this.hot.addHookOnce("beforeViewRender",d);return}const a=e.indexOf("row")>-1?"row":"col",l=e.indexOf("remove")>-1?-1:1,u=this.getAllEndpoints(),c=e.indexOf("move_row")===0,h=n;E(u,d=>{a==="row"&&d.destinationRow>=h&&(d.alterRowOffset=l*r),a==="col"&&d.destinationColumn>=h&&(d.alterColumnOffset=l*r)}),this.resetAllEndpoints(u,!c),c?E(u,d=>{this.extendEndpointRanges(d,h,i[0],i.length),this.recreatePhysicalRanges(d),this.clearOffsetInformation(d)}):E(u,d=>{this.shiftEndpointCoordinates(d,h)}),s&&this.refreshAllEndpoints()}clearOffsetInformation(e){e.alterRowOffset=void 0,e.alterColumnOffset=void 0}extendEndpointRanges(e,n,r,i){E(e.ranges,o=>{o[1]&&(n>=o[0]&&n<=o[1]?r>o[1]?o[1]+=i:r<o[0]&&(o[0]-=i):r>=o[0]&&r<=o[1]&&(o[1]-=i,n<=o[0]&&(o[0]+=1,o[1]+=1)))})}recreatePhysicalRanges(e){const n=e.ranges,r=[],i=[];E(n,o=>{const s=[];if(o[1])for(let a=o[0];a<=o[1];a++)s.push(this.hot.toPhysicalRow(a));else s.push(this.hot.toPhysicalRow(o[0]));i.push(s)}),E(i,o=>{let s=[];E(o,(a,l)=>{l===0?s.push(a):o[l]!==o[l-1]+1&&(s.push(o[l-1]),r.push(s),s=[],s.push(a)),l===o.length-1&&(s.push(a),r.push(s))})}),e.ranges=r}shiftEndpointCoordinates(e,n){e.alterRowOffset&&e.alterRowOffset!==0?(e.destinationRow+=e.alterRowOffset||0,E(e.ranges,r=>{E(r,(i,o)=>{i>=n&&(r[o]+=e.alterRowOffset||0)})})):e.alterColumnOffset&&e.alterColumnOffset!==0&&(e.destinationColumn+=e.alterColumnOffset||0,e.sourceColumn+=e.alterColumnOffset||0)}resetAllEndpoints(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.getAllEndpoints(),n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;e.some(i=>{const o=i.alterRowOffset||0,s=i.alterColumnOffset||0;return i.destinationRow+o>=this.hot.countRows()||i.destinationColumn+s>=this.hot.countCols()})||(this.cellsToSetCache=[],E(e,i=>{this.resetEndpointValue(i,n)}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[])}refreshAllEndpoints(){this.cellsToSetCache=[],E(this.getAllEndpoints(),e=>{this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e,"init")}),this.currentEndpoint=null,this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshChangedEndpoints(e){const n=[];this.cellsToSetCache=[],E(e,(r,i,o)=>{`${r[2]||""}`!=`${r[3]}`&&E(this.getAllEndpoints(),(s,a)=>{this.hot.propToCol(o[i][1])===s.sourceColumn&&n.indexOf(a)===-1&&n.push(a)})}),E(n,r=>{this.refreshEndpoint(this.getEndpoint(r))}),this.hot.setDataAtCell(this.cellsToSetCache,"ColumnSummary.reset"),this.cellsToSetCache=[]}refreshEndpoint(e){this.currentEndpoint=e,this.plugin.calculate(e),this.setEndpointValue(e),this.currentEndpoint=null}resetEndpointValue(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const r=e.alterRowOffset||0,i=e.alterColumnOffset||0;this.cellsToSetCache.push([this.hot.toVisualRow(e.destination
numeric format. Cannot do the calculation.`);return o}}function cZ(){this.endpoints.initEndpoints()}function hZ(t,e){t&&e!=="ColumnSummary.reset"&&e!=="ColumnSummary.set"&&e!=="loadData"&&this.endpoints.refreshChangedEndpoints(t)}function dZ(t,e){this.endpoints.resetSetupBeforeStructureAlteration("move_row",t[0],t.length,t,this.pluginName),this.endpoints.resetSetupAfterStructureAlteration("move_row",e,t.length,t,this.pluginName)}function Va(t,e,n){return e=fZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fZ(t){var e=gZ(t,"string");return typeof e=="symbol"?e:String(e)}function gZ(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class bl{static get CLASS_EDITOR_CONTAINER(){return"htCommentsContainer"}static get CLASS_EDITOR(){return"htComments"}static get CLASS_INPUT(){return"htCommentTextArea"}static get CLASS_CELL(){return"htCommentCell"}constructor(e,n){Va(this,"rootDocument",void 0),Va(this,"isRtl",!1),Va(this,"container",null),Va(this,"editor",void 0),Va(this,"editorStyle",void 0),Va(this,"hidden",!0),this.rootDocument=e,this.isRtl=n,this.editor=this.createEditor(),this.editorStyle=this.editor.style,this.hide()}setPosition(e,n){this.editorStyle.left=`${e}px`,this.editorStyle.top=`${n}px`}setSize(e,n){if(e&&n){const r=this.getInputElement();r.style.width=`${e}px`,r.style.height=`${n}px`}}getSize(){return{width:ft(this.getInputElement()),height:Pt(this.getInputElement())}}resetSize(){const e=this.getInputElement();e.style.width="",e.style.height=""}setReadOnlyState(e){const n=this.getInputElement();n.readOnly=e}show(){this.editorStyle.display="block",this.hidden=!1}hide(){this.hidden||(this.editorStyle.display="none"),this.hidden=!0}isVisible(){return this.editorStyle.display==="block"}setValue(){const n=(arguments.length>0&&arguments[0]!==void 0?arguments[0]:"")||"";this.getInputElement().value=n}getValue(){return this.getInputElement().value}isFocused(){return this.rootDocument.activeElement===this.getInputElement()}focus(){this.getInputElement().focus()}createEditor(){const e=this.rootDocument.createElement("div"),n=this.rootDocument.createElement("textarea");return e.style.display="none",this.container=this.rootDocument.createElement("div"),this.container.setAttribute("dir",this.isRtl?"rtl":"ltr"),q(this.container,bl.CLASS_EDITOR_CONTAINER),this.rootDocument.body.appendChild(this.container),q(e,bl.CLASS_EDITOR),q(n,bl.CLASS_INPUT),n.setAttribute("data-hot-input",!0),e.appendChild(n),this.container.appendChild(e),e}getInputElement(){return this.editor.querySelector(`.${bl.CLASS_INPUT}`)}destroy(){const e=this.container?this.container.parentNode:null;this.editor.parentNode.removeChild(this.editor),this.editor=null,this.editorStyle=null,e&&e.removeChild(this.container)}}const mZ=bl;function tv(t,e,n){return e=pZ(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pZ(t){var e=wZ(t,"string");return typeof e=="symbol"?e:String(e)}function wZ(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const vZ=250,CZ=250;class zH{constructor(e){tv(this,"wasLastActionShow",!0),tv(this,"showDebounced",null),tv(this,"hidingTimer",null),this.updateDelay(e)}hide(){this.wasLastActionShow=!1,this.hidingTimer=setTimeout(()=>{this.wasLastActionShow===!1&&this.runLocalHooks("hide")},CZ)}show(e){this.wasLastActionShow=!0,this.showDebounced(e)}cancelHiding(){this.wasLastActionShow=!0,clearTimeout(this.hidingTimer),this.hidingTimer=null}updateDelay(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:vZ;this.showDebounced=Lg(n=>{this.wasLastActionShow&&this.runLocalHooks("show",n.from.row,n.from.col)},e)}destroy(){this
`}}export(){const e=this.options,n=this.dataProvider.getData();let r=this.dataProvider.getColumnHeaders();const i=r.length>0,o=this.dataProvider.getRowHeaders(),s=o.length>0;let a=e.bom?String.fromCharCode(65279):"";return i&&(r=Ue(r,l=>this._escapeCell(l,!0)),s&&(a+=e.columnDelimiter),a+=r.join(e.columnDelimiter),a+=e.rowDelimiter),E(n,(l,u)=>{u>0&&(a+=e.rowDelimiter),s&&(a+=this._escapeCell(o[u])+e.columnDelimiter),a+=l.map(c=>this._escapeCell(c)).join(e.columnDelimiter)}),a}_escapeCell(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,r=Ft(e);return r!==""&&(n||r.indexOf(mee)>=0||r.indexOf(pee)>=0||r.indexOf(wee)>=0||r.indexOf(this.options.columnDelimiter)>=0)&&(r=r.replace(new RegExp('"',"g"),'""'),r=`"${r}"`),r}}const Cee=vee,See="csv",_S={[See]:Cee};function yee(t,e,n){return typeof _S[t]=="function"?new _S[t](e,n):null}const bee="exportFile",Ree=240;class Eee extends it{static get PLUGIN_KEY(){return bee}static get PLUGIN_PRIORITY(){return Ree}isEnabled(){return!0}exportAsString(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._createTypeFormatter(e,n).export()}exportAsBlob(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};return this._createBlob(this._createTypeFormatter(e,n))}downloadFile(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{rootDocument:r,rootWindow:i}=this.hot,o=this._createTypeFormatter(e,n),s=this._createBlob(o),a=i.URL||i.webkitURL,l=r.createElement("a"),u=`${o.options.filename}.${o.options.fileExtension}`;if(l.download!==void 0){const c=a.createObjectURL(s);l.style.display="none",l.setAttribute("href",c),l.setAttribute("download",u),r.body.appendChild(l),l.dispatchEvent(new MouseEvent("click")),r.body.removeChild(l),setTimeout(()=>{a.revokeObjectURL(c)},100)}else navigator.msSaveOrOpenBlob&&navigator.msSaveOrOpenBlob(s,u)}_createTypeFormatter(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!_S[e])throw new Error(`Export format type "${e}" is not supported.`);return yee(e,new hee(this.hot),n)}_createBlob(e){let n=null;return typeof Blob<"u"&&(n=new Blob([e.export()],{type:`${e.options.mimeType};charset=${e.options.encoding}`})),n}}function ja(t,e,n){return e=Tee(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Tee(t){var e=_ee(t,"string");return typeof e=="symbol"?e:String(e)}function _ee(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class lh{constructor(e,n){let{id:r,stateless:i=!0}=n;ja(this,"hot",void 0),ja(this,"id",void 0),ja(this,"elements",[]),ja(this,"hidden",!1),ja(this,"stateId",""),ja(this,"state",void 0),this.hot=e,this.id=r,this.stateId=`Filters.component.${this.id}`,this.state=i?null:this.hot.columnIndexMapper.registerMap(this.stateId,new zg)}getElements(){return this.elements}reset(){E(this.elements,e=>e.reset())}hide(){this.hidden=!0}show(){this.hidden=!1}isHidden(){return this.hot===null||this.hidden}restoreState(e){this.state&&this.setState(this.state.getValueAtIndex(e))}setState(){throw new Error("The state setting logic is not implemented")}saveState(e){this.state&&this.state.setValueAtIndex(e,this.getState())}getState(){throw new Error("The state gathering logic is not implemented")}destroy(){this.hot.columnIndexMapper.unregisterMap(this.stateId),this.clearLocalHooks(),E(this.elements,e=>e.destroy()),this.state=null,this.elements=null,this.hot=null}}pt(lh,or);const xc={};function ms(t,e){if(!xc[t])throw Error(`Filter condition "${t}" does not exist.`);const{condition:n,descriptor:r}=xc[t];let i=e;return r.inputValuesDecorator&&(i=r.inputValuesDecorator(i)),function(o){return n.apply(o.meta.instance,[].concat([o],[i]))}}function oa(t){if(!xc[t])throw Error(`Filter condition "${t}" does not exist.`);return xc[t].descriptor}function Kt(t,e,n){n.key=t,xc[t]={condition:e,descriptor:n}}const un="none";function Mee()
filter operation. Use \`removeConditions\` to clear the current conditions and then add new ones.\x20
Mind that you cannot mix different types of operations (for instance, if you use \`conjunction\`,\x20
use it consequently for a particular column).`)}else if(Ct(Hc[r]))throw new Error(ht`Unexpected operation named \`${r}\`. Possible ones are\x20
\`disjunction\` and \`conjunction\`.`);const u=this.getConditions(e);u.length===0?this.filteringStates.setValueAtIndex(e,{operation:r,conditions:[{name:a,args:s,func:ms(a,s)}]},i):u.push({name:a,args:s,func:ms(a,s)}),this.runLocalHooks("afterAdd",e)}getConditions(e){var n,r;return(n=(r=this.filteringStates.getValueAtIndex(e))===null||r===void 0?void 0:r.conditions)!==null&&n!==void 0?n:[]}getOperation(e){var n;return(n=this.filteringStates.getValueAtIndex(e))===null||n===void 0?void 0:n.operation}getFilteredColumns(){return this.filteringStates.getEntries().map(e=>{let[n]=e;return n})}getColumnStackPosition(e){return this.getFilteredColumns().indexOf(e)}exportAllConditions(){return Yt(this.filteringStates.getEntries(),(e,n)=>{let[r,{operation:i,conditions:o}]=n;return e.push({column:r,operation:i,conditions:Ue(o,s=>{let{name:a,args:l}=s;return{name:a,args:l}})}),e},[])}importAllConditions(e){this.clean(),E(e,n=>{E(n.conditions,r=>this.addCondition(n.column,r))})}removeConditions(e){this.runLocalHooks("beforeRemove",e),this.filteringStates.clearValue(e),this.runLocalHooks("afterRemove",e)}clean(){this.runLocalHooks("beforeClean"),this.filteringStates.clear(),this.runLocalHooks("afterClean")}hasConditions(e,n){const r=this.getConditions(e);return n?r.some(i=>i.name===n):r.length>0}destroy(){this.isMapRegistrable&&this.hot.columnIndexMapper.unregisterMap(sM),this.filteringStates=null,this.clearLocalHooks()}}pt(LD,or);const $D=LD;function aM(t,e,n){return e=fne(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function fne(t){var e=gne(t,"string");return typeof e=="symbol"?e:String(e)}function gne(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class mne{constructor(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:()=>[];aM(this,"conditionCollection",void 0),aM(this,"columnDataFactory",void 0),this.conditionCollection=e,this.columnDataFactory=n}filter(){let e=[];return E(this.conditionCollection.getFilteredColumns(),(n,r)=>{let i=this.columnDataFactory(n);r&&(i=this._getIntersectData(i,e)),e=this.filterByColumn(n,i)}),e}filterByColumn(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];const r=[];return E(n,i=>{i!==void 0&&this.conditionCollection.isMatch(i,e)&&r.push(i)}),r}_getIntersectData(e,n){const r=[];return E(n,i=>{const o=i.meta.visualRow;e[o]!==void 0&&(r[o]=e[o])}),r}}const kD=mne;function Ev(t,e){pne(t,e),e.add(t)}function pne(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Us(t,e,n){return e=wne(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function wne(t){var e=vne(t,"string");return typeof e=="symbol"?e:String(e)}function vne(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function Tv(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}var lM=new WeakSet,uM=new WeakSet,cM=new WeakSet;class FD{constructor(e,n){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:()=>[];Ev(this,cM),Ev(this,uM),Ev(this,lM),Us(this,"hot",void 0),Us(this,"conditionCollection",void 0),Us(this,"columnDataFactory",void 0),Us(this,"changes",[]),Us(this,"grouping",!1),Us(this,"latestEditedColumnPosition",-1),Us(this,"latestOrderStack",[]),this.hot=e,this.conditionCollection=n,this.columnDataFactory=r,this.conditionCollection.addLocalHook("beforeRemove",i=>Tv(this,lM,Cne).call(this,i)),this.conditionCollection.addLocalHook("afterRemove",i=>this.updateStatesAtColumn(i)),this.conditionCollection.addLocalHook("afterAdd",i=>this.updateStatesAtColumn(i)),this.conditionCollection.addLocalHook("be
The overall amount of conditions exceed the capability of the dropdown menu.\x20
For more details see the documentation.`);else{const s=this.conditionCollection.getOperation(r);this.components.get("filter_by_condition").updateState(o[0],r),this.components.get("filter_by_condition2").updateState(o[1],r),this.components.get("filter_operators").updateState(s,r),this.components.get("filter_by_value").updateState(t)}}const BD="internal-use-in-handsontable",PS={licenseKey:BD,useArrayArithmetic:!0,useColumnIndex:!1,useStats:!1,evaluateNullToZero:!0,precisionEpsilon:1e-13,precisionRounding:14,smartRounding:!0,leapYear1900:!1,nullDate:{year:1899,month:12,day:30},nullYear:30,dateFormats:["DD/MM/YYYY","DD/MM/YY"],timeFormats:["hh:mm","hh:mm:ss.sss"],matchWholeCell:!0,useRegularExpressions:!1,useWildcards:!0,functionArgSeparator:",",thousandSeparator:"",decimalSeparator:".",language:"enGB"};function UD(t){var e;return{maxColumns:t.maxColumns,maxRows:t.maxRows,language:(e=t[bn])===null||e===void 0||(e=e.language)===null||e===void 0?void 0:e.langCode}}function YD(t){return Object.keys(t).reduce((e,n)=>(n!=="hyperformula"&&(e[n]=t[n]),e),{})}function Wne(t){var e;const n=t[bn],r=YD(n!=null&&(e=n.engine)!==null&&e!==void 0&&e.hyperformula?n.engine:{}),i=UD(t);return{...PS,...r,...i}}function Vne(t){var e;const n=t[bn],r=YD(n!=null&&(e=n.engine)!==null&&e!==void 0&&e.hyperformula?n.engine:{}),i=UD(t);return{...r,...i}}function Bne(t,e){return Object.keys(e).some(n=>e[n]!==void 0&&e[n]!==t[n])}function Mp(){const t="engine_relationship",e=ai(bn);return e.hasItem(t)||e.register(t,new Map),e.getItem(t)}function uR(){const t="shared_engine_usage",e=ai(bn);return e.hasItem(t)||e.register(t,new Map),e.getItem(t)}function Une(t){const e=t.getSettings(),n=e[bn],r=n==null?void 0:n.engine;if(n===!0||Ct(r))return null;if(typeof r.hyperformula=="function"||typeof r=="function"){var i;return Yne((i=r.hyperformula)!==null&&i!==void 0?i:r,e,t)}else if(typeof r=="object"&&Ct(r.hyperformula)){const o=Mp(),s=uR().get(r);return o.has(r)||o.set(r,[]),o.get(r).push(t),s&&s.push(t.guid),r.getConfig().licenseKey||r.updateConfig({licenseKey:BD}),(r.getConfig().leapYear1900!==PS.leapYear1900||$g(r.getConfig().nullDate,PS.nullDate)===!1)&&gt(ht`If you use HyperFormula with Handsontable, keep the default \`leapYear1900\` and \`nullDate\`
settings. Otherwise, HyperFormula's dates may not sync correctly with Handsontable's dates.`),r}return null}function Yne(t,e,n){const r=e[bn],i=Wne(e),o=Mp(),s=uR();Gne(t,r.functions),zne(t,r.language);const a=t.buildEmpty(i);return o.set(a,[n]),s.set(a,[n.guid]),jne(a,r.namedExpressions),a.on("sheetAdded",()=>{a.rebuildAndRecalculate()}),a.on("sheetRemoved",()=>{a.rebuildAndRecalculate()}),a}function yM(t){var e;const n=Mp(),r=n.size===0?[]:Array.from((e=n.get(t))!==null&&e!==void 0?e:[]);return new Map(r.map(i=>[i.getPlugin("formulas").sheetId,i]))}function bM(t,e){if(t){const n=Mp(),r=n.get(t),i=uR(),o=i.get(t);r&&r.includes(e)&&(r.splice(r.indexOf(e),1),r.length===0&&n.delete(t)),o&&o.includes(e.guid)&&(o.splice(o.indexOf(e.guid),1),o.length===0&&(i.delete(t),t.destroy()))}}function Gne(t,e){e&&e.forEach(n=>{const{name:r,plugin:i,translations:o}=n;try{t.registerFunction(r,i,o)}catch(s){gt(s.message)}})}function zne(t,e){if(e){const{langCode:n}=e;try{t.registerLanguage(n,e)}catch(r){gt(r.message)}}}function jne(t,e){e&&(t.suspendEvaluation(),e.forEach(n=>{const{name:r,expression:i,scope:o,options:s}=n;try{t.addNamedExpression(r,i,o,s)}catch(a){gt(a.message)}}),t.resumeEvaluation())}function Kne(t,e){return(Ct(e)||!t.doesSheetExist(e))&&(e=t.addSheet(e)),e}const GD="DD/MM/YYYY";function zD(t){return typeof t=="string"&&t.charAt(0)==="'"&&t.charAt(1)==="="}function Xne(t){return zD(t)?t.substr(1):t}function qne(t){return typeof t=="string"&&t.startsWith("=")}function cR(t,e){return typeof t=="string"&&e==="date"}function jD(t,e){return X(t,e,!0).isValid()}function KD(t,e){return X(t,e,!0).format(GD)}function Zne(t,e){return X(t,GD,!0).format(e)}function XD(t,e){const r=new Date(Date.UTC(0,0,t+-1));return X(r).format(e)}function Gs(t,e,n){Qne(t,e),e.set(t,n)}function Qne(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function bt(t,e){var n=qD(t,e,"get");return Jne(t,n)}function Jne(t,e){return e.get?e.get.call(t):e.value}function Wo(t,e,n){var r=qD(t,e,"set");return ere(t,r,n),n}function qD(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function ere(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}var Nu=new WeakMap,Vo=new WeakMap,sr=new WeakMap,Td=new WeakMap,Av=new WeakMap,Ov=new WeakMap,_d=new WeakMap;class tre{constructor(e,n,r){Gs(this,Nu,{writable:!0,value:void 0}),Gs(this,Vo,{writable:!0,value:void 0}),Gs(this,sr,{writable:!0,value:void 0}),Gs(this,Td,{writable:!0,value:[]}),Gs(this,Av,{writable:!0,value:[]}),Gs(this,Ov,{writable:!0,value:void 0}),Gs(this,_d,{writable:!0,value:[]}),Wo(this,Nu,e),Wo(this,Vo,n),Wo(this,sr,r)}setRemovedHfIndexes(e){return Wo(this,_d,e.map(n=>{const r=bt(this,Vo).getVisualFromPhysicalIndex(n);return this.getHfIndexFromVisualIndex(r)})),bt(this,_d)}getRemovedHfIndexes(){return bt(this,_d)}getHfIndexFromVisualIndex(e){const n=bt(this,Vo).getIndexesSequence(),r=bt(this,Vo).getNotTrimmedIndexes();return n.indexOf(r[e])}syncMoves(e){const r=`move${En(bt(this,Nu))}s`;bt(this,sr).getEngine().batch(()=>{e.forEach(i=>{const o=i.from!==i.to,s=i.from+1!==i.to;o&&s&&bt(this,sr).getEngine()[r](bt(this,sr).getSheetId(),i.from,1,i.to)})})}storeMovesInformation(e,n,r){r!==!1&&(Wo(this,Av,e.map(i=>this.getHfIndexFromVisualIndex(i))),Wo(this,Ov,this.getHfIndexFromVisualIndex(n)))}getMoveLine(e,n){const r=bt(this,Vo).getNumberOfIndexes(),i=Array.from(Array(r).keys()).filter(s=>e.includes(s)===!1);if(n===0){var o;return(o=i[n])!==null&&o!==void 0?o:0}return i[n-1]+1}getInitiallyCalculatedMoves(e,n){let r=this.getMoveLine(e,n);const i=[];return e.forEach(o=>{const s={from:o,to:r};i.forEach(a=>{const l=a.from>a.to,u=a.to<=s.from;a.from>s.from&&u&&l&&(s.from+=1)}),s.from>=r&&(r+=1),i.push(s)}),i}adjustedCalculatedMoves(e){return e.forEach((n,r)=>{e.slice(r+1).forEach(o=>{const s=o.from<o.to;o.from>n.from&&s&&(o.from-=1)})}),e}calculateAndSyncMoves(e,n){if(bt(this,sr).isPerformingUndoRedo()||e===!1||n===!1)ret
rowspan: ${e.rowspan}, colspan: ${e.colspan}} contains negative values, which is\x20
not supported. It will not be added to the collection.`}static IS_OUT_OF_BOUNDS_WARNING(e){return ht`The merged cell declared at [${e.row}, ${e.col}] is positioned\x20
(or positioned partially) outside of the table range. It was not added to the table, please fix your setup.`}static IS_SINGLE_CELL(e){return ht`The merged cell declared at [${e.row}, ${e.col}] has both "rowspan"\x20
and "colspan" declared as "1", which makes it a single cell. It cannot be added to the collection.`}static ZERO_SPAN_WARNING(e){return ht`The merged cell declared at [${e.row}, ${e.col}] has "rowspan"\x20
or "colspan" declared as "0", which is not supported. It cannot be added to the collection.`}static containsNegativeValues(e){return e.row<0||e.col<0||e.rowspan<0||e.colspan<0}static isSingleCell(e){return e.colspan===1&&e.rowspan===1}static containsZeroSpan(e){return e.colspan===0||e.rowspan===0}static isOutOfBounds(e,n,r){return e.row<0||e.col<0||e.row>=n||e.row+e.rowspan-1>=n||e.col>=r||e.col+e.colspan-1>=r}normalize(e){const n=e.countRows(),r=e.countCols();this.row<0?this.row=0:this.row>n-1&&(this.row=n-1),this.col<0?this.col=0:this.col>r-1&&(this.col=r-1),this.row+this.rowspan>n-1&&(this.rowspan=n-this.row),this.col+this.colspan>r-1&&(this.colspan=r-this.col)}includes(e,n){return this.row<=e&&this.col<=n&&this.row+this.rowspan-1>=e&&this.col+this.colspan-1>=n}includesHorizontally(e){return this.col<=e&&this.col+this.colspan-1>=e}includesVertically(e){return this.row<=e&&this.row+this.rowspan-1>=e}shift(e,n){const r=e[0]||e[1],i=n+Math.abs(e[0]||e[1])-1,o=e[0]?"colspan":"rowspan",s=e[0]?"col":"row",a=Math.min(n,i),l=Math.max(n,i),u=this[s],c=this[s]+this[o]-1;if(u>=n&&(this[s]+=r),r>0)n<=c&&n>u&&(this[o]+=r);else if(r<0){if(a<=u&&l>=c)return this.removed=!0,!1;if(u>=a&&u<=l){const h=l-u+1,d=Math.abs(r)-h;this[s]-=d+r,this[o]-=h}else if(u<=a&&c>=l)this[o]+=r;else if(u<=a&&c>=a&&c<l){const h=c-a+1;this[o]-=h}}return!0}isFarther(e,n){return e?n==="down"?e.row+e.rowspan-1<this.row+this.rowspan-1:n==="up"?e.row>this.row:n==="right"?e.col+e.colspan-1<this.col+this.colspan-1:n==="left"?e.col>this.col:null:!0}getLastRow(){return this.row+this.rowspan-1}getLastColumn(){return this.col+this.colspan-1}getRange(){return this.cellRangeFactory(this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.row,this.col),this.cellCoordsFactory(this.getLastRow(),this.getLastColumn()))}}const _i=Toe;function $S(t,e,n,r){e?e.row===n&&e.col===r?(t.setAttribute("rowspan",e.rowspan.toString()),t.setAttribute("colspan",e.colspan.toString())):(t.removeAttribute("rowspan"),t.removeAttribute("colspan"),t.style.display="none"):(t.removeAttribute("rowspan"),t.removeAttribute("colspan"),t.style.display="")}function jv(t,e,n){return e=_oe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function _oe(t){var e=Moe(t,"string");return typeof e=="symbol"?e:String(e)}function Moe(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class fR{constructor(e){jv(this,"plugin",void 0),jv(this,"mergedCells",[]),jv(this,"hot",void 0),this.plugin=e,this.hot=e.hot}static IS_OVERLAPPING_WARNING(e){return ht`The merged cell declared at [${e.row}, ${e.col}], overlaps\x20
with the other declared merged cell. The overlapping merged cell was not added to the table, please\x20
fix your setup.`}get(e,n){const r=this.mergedCells;let i=!1;return E(r,o=>o.row<=e&&o.row+o.rowspan-1>=e&&o.col<=n&&o.col+o.colspan-1>=n?(i=o,!1):!0),i}getByRange(e){const n=this.mergedCells;let r=!1;return E(n,i=>i.row<=e.from.row&&i.row+i.rowspan-1>=e.to.row&&i.col<=e.from.col&&i.col+i.colspan-1>=e.to.col?(r=i,r):!0),r}getWithinRange(e){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;const r=this.mergedCells,i=[];let o=e;if(!o.includesRange){const s=this.hot._createCellCoords(o.from.row,o.from.col),a=this.hot._createCellCoords(o.to.row,o.to.col);o=this.hot._createCellRange(s,s,a)}return E(r,s=>{const a=this.hot._createCellCoords(s.row,s.col),l=this.hot._createCellCoords(s.row+s.rowspan-1,s.col+s.colspan-1),u=this.hot._createCellRange(a,a,l);n?o.overlaps(u)&&i.push(s):o.includesRange(u)&&i.push(s)}),i.length?i:!1}add(e){const n=this.mergedCells,r=e.row,i=e.col,o=e.rowspan,s=e.colspan,a=new _i(r,i,o,s,this.hot._createCellCoords,this.hot._createCellRange),l=this.get(r,i),u=this.isOverlapping(a);return!l&&!u?(this.hot&&a.normalize(this.hot),n.push(a),a):(gt(fR.IS_OVERLAPPING_WARNING(a)),!1)}remove(e,n){const r=this.mergedCells,i=this.get(e,n),o=i?this.mergedCells.indexOf(i):-1;return i&&o!==-1?(r.splice(o,1),i):!1}clear(){const e=this.mergedCells,n=[],r=[];E(e,i=>{const o=this.hot.getCell(i.row,i.col);o&&n.push([o,this.get(i.row,i.col),i.row,i.col])}),this.mergedCells.length=0,E(n,(i,o)=>{me(0,i.rowspan-1,s=>{me(0,i.colspan-1,a=>{if(a!==0||s!==0){const l=this.hot.getCell(i.row+s,i.col+a);l&&r.push([l,null,null,null])}})}),n[o][1]=null}),E(n,i=>{$S(...i)}),E(r,i=>{$S(...i)})}isOverlapping(e){const n=this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(e.row,e.col),this.hot._createCellCoords(e.row+e.rowspan-1,e.col+e.colspan-1));let r=!1;return E(this.mergedCells,i=>this.hot._createCellRange(this.hot._createCellCoords(0,0),this.hot._createCellCoords(i.row,i.col),this.hot._createCellCoords(i.row+i.rowspan-1,i.col+i.colspan-1)).overlaps(n)?(r=!0,!1):!0),r}isFirstRenderableMergedCell(e,n){const r=this.get(e,n);return r&&this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1)===e&&this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1)===n}getFirstRenderableCoords(e,n){const r=this.get(e,n);if(!r||this.isFirstRenderableMergedCell(e,n))return this.hot._createCellCoords(e,n);const i=this.hot.rowIndexMapper.getNearestNotHiddenIndex(r.row,1),o=this.hot.columnIndexMapper.getNearestNotHiddenIndex(r.col,1);return this.hot._createCellCoords(i,o)}shiftCollections(e,n,r){const i=[0,0];switch(e){case"right":i[0]+=r;break;case"left":i[0]-=r;break;case"down":i[1]+=r;break;case"up":i[1]-=r;break}E(this.mergedCells,o=>{o.shift(i,n)}),Pf(this.mergedCells.length-1,0,o=>{const s=this.mergedCells[o];s&&s.removed&&this.mergedCells.splice(this.mergedCells.indexOf(s),1)})}}const Aoe=fR;function Kv(t,e,n){return e=Ooe(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Ooe(t){var e=Ioe(t,"string");return typeof e=="symbol"?e:String(e)}function Ioe(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}class Poe{constructor(e){Kv(this,"plugin",void 0),Kv(this,"mergedCellsCollection",void 0),Kv(this,"currentFillData",null),this.plugin=e,this.mergedCellsCollection=this.plugin.mergedCellsCollection}correctSelectionAreaSize(e){if(e[0]===e[2]&&e[1]===e[3]){const n=this.mergedCellsCollection.get(e[0],e[1]);n&&(e[2]=e[0]+n.rowspan-1,e[3]=e[1]+n.colspan-1)}}getDirection(e,n){let r=null;return n[0]===e[0]&&n[1]===e[1]&&n[3]===e[3]?r="down":n[2]===e[2]&&n[1]===e[1]&&n[3]===e[3]?r="up":n[1]===e[1]&&n[2]===e[2]?r="right":r="left",r}snapDragArea(e,n,r,i){const o=n.slice(0),s=this.getAutofillSize(e,n,r),[a,l,u,c]=e,d=["up","down"].indexOf(r)>-1?u-a+1:c-l+1,g=Math.floor(s/d)*d,p=s-g,v=this.getFarthestCollection(e,n,r,i);if(v){if(r==="down"){const S=v.row+v.rowsp
Only \`multiColumnSorting\` will work.`)}const vN="sort";function fse(t,e,n){const r=[];return n===!1||t.isColumnSorted(e)&&t.getNumberOfSortedColumns()>1&&r.push(`${vN}-${t.getIndexOfColumnInSortQueue(e)+1}`),r}function gse(t){const e=t.className.split(" "),n=new RegExp(`^${vN}-[0-9]{1,2}$`);return e.filter(r=>n.test(r))}function mse(t,e,n){return e=pse(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function pse(t){var e=wse(t,"string");return typeof e=="symbol"?e:String(e)}function wse(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const og="multiColumnSorting",vse=170,CO="columnSorting",SO=og;UH(og,dse);class Cse extends GH{constructor(){super(...arguments),mse(this,"pluginKey",og)}static get PLUGIN_KEY(){return og}static get PLUGIN_PRIORITY(){return vse}isEnabled(){return super.isEnabled()}enablePlugin(){!this.enabled&&this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[CO]&&vO(),super.enablePlugin()}disablePlugin(){super.disablePlugin()}registerShortcuts(){super.registerShortcuts(),this.hot.getShortcutManager().getContext("grid").addShortcut({keys:[["Shift","Enter"]],callback:()=>{const{highlight:e}=this.hot.getSelectedRangeLast();e.row===-1&&e.col>=0&&this.sort(this.getNextSortConfig(e.col,Uf))},runOnlyIf:()=>{var e;const n=(e=this.hot.getSelectedRangeLast())===null||e===void 0?void 0:e.highlight;return n&&this.hot.selection.isCellVisible(n)&&n.isHeader()},group:SO})}unregisterShortcuts(){super.unregisterShortcuts(),this.hot.getShortcutManager().getContext("grid").removeShortcutsByGroup(SO)}sort(e){super.sort(e)}clearSort(){super.clearSort()}isSorted(){return super.isSorted()}getSortConfig(e){return super.getSortConfig(e)}setSortConfig(e){super.setSortConfig(e)}getNormalizedSortConfigs(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return Array.isArray(e)?e:[e]}updateHeaderClasses(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];super.updateHeaderClasses(e,...r),Le(e,gse(e)),this.enabled!==!1&&q(e,fse(...r))}onUpdateSettings(e){this.hot.getSettings()[this.pluginKey]&&this.hot.getSettings()[CO]&&vO(),super.onUpdateSettings(e)}onAfterOnCellMouseDown(e,n){eR(n.row,n.col,e)!==!1&&this.wasClickableHeaderClicked(e,n.col)&&(this.hot.getShortcutManager().isCtrlPressed()?(this.hot.deselectCell(),this.hot.selectColumns(n.col),this.sort(this.getNextSortConfig(n.col,Uf))):this.sort(this.getColumnNextConfig(n.col)))}}function yO(t,e,n){return e=Sse(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Sse(t){var e=yse(t,"string");return typeof e=="symbol"?e:String(e)}function yse(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}const bse="multipleSelectionHandles",Rse=160;class Ese extends it{constructor(){super(...arguments),yO(this,"dragged",[]),yO(this,"lastSetCell",null)}static get PLUGIN_KEY(){return bse}static get PLUGIN_PRIORITY(){return Rse}isEnabled(){return uo()}enablePlugin(){this.enabled||(this.registerListeners(),super.enablePlugin())}registerListeners(){const e=this,{rootElement:n}=this.hot;function r(i){if(e.dragged.length===1)return e.dragged.splice(0,e.dragged.length),!0;const o=e.dragged.indexOf(i);if(o===-1)return!1;o===0?e.dragged=e.dragged.slice(0,1):o===1&&(e.dragged=e.dragged.slice(-1))}this.eventManager.addEventListener(n,"touchstart",i=>{let o;if(Ie(i.target,"topSelectionHandle-HitArea"))return o=e.hot.getSelectedRangeLast(),e.dragged.push("top"),e.touchStartRange={width:o.getWidth(),height:o.getHeight(),direction:o.getDirection()},i.preventDefault(),!1;if(Ie(i.target,"bottomSelectionHandle-HitArea"))return o=e.hot.getSelectedRangeLast()
the last node, the hide column modification can be applied.`);const{crossHiddenColumns:n}=t.data;if(n.includes(e))return;let r=!1;t.walkUp(i=>{const{data:{collapsible:o}}=i;if(o)return r=!0,!1}),!r&&t.walkUp(i=>{const{data:o}=i;o.crossHiddenColumns.push(e),o.colspan>1?o.colspan-=1:o.isHidden=!0})}function Vse(t,e){if(!Number.isInteger(e))throw new Error("The passed gridColumnIndex argument has invalid type.");if(t.childs.length>0)throw new Error(ht`The passed node is not the last node on the tree. Only for\x20
the last node, the show column modification can be applied.`);const{crossHiddenColumns:n}=t.data;if(!n.includes(e))return;let r=!1;t.walkUp(i=>{const{data:{collapsible:o}}=i;if(o)return r=!0,!1}),!r&&t.walkUp(i=>{const{data:o}=i;o.crossHiddenColumns.splice(o.crossHiddenColumns.indexOf(e),1),!o.isHidden&&o.colspan<o.origColspan&&(o.colspan+=1),o.isHidden=!1})}const EO=new Map([["collapse",mR],["expand",gR],["hide-column",Wse],["show-column",Vse]]);function Bse(t,e,n){if(!EO.has(t))throw new Error(`The node modifier action ("${t}") does not exist.`);return EO.get(t)(e,n)}function Ld(t){const e=[];return E(t,n=>{n.walkDown(r=>{const i=r.data,{origColspan:o,columnIndex:s,headerLevel:a,crossHiddenColumns:l}=i,u=Yse(e,a);let c=!1;for(let h=s;h<s+o;h++)if(l.includes(h)||c)u.push(CN());else{const g=Use(i);g.isRoot=!0,u.push(g),c=!0}})}),e}function Use(t){const{crossHiddenColumns:e,...n}=kS(t);return n}function Yse(t,e){let n;return Array.isArray(t[e])?n=t[e]:(n=[],t[e]=n),n}function rC(t,e,n){Gse(t,e),e.set(t,n)}function Gse(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Wu(t,e,n){var r=MN(t,e,"set");return zse(t,r,n),n}function zse(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function Dt(t,e){var n=MN(t,e,"get");return jse(t,n)}function MN(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function jse(t,e){return e.get?e.get.call(t):e.value}var yi=new WeakMap,Kn=new WeakMap,Js=new WeakMap;class Kse{constructor(){rC(this,yi,{writable:!0,value:new Ose}),rC(this,Kn,{writable:!0,value:new Fse(Dt(this,yi))}),rC(this,Js,{writable:!0,value:[[]]})}setState(e){Dt(this,yi).setData(e);let n=!1;try{Dt(this,Kn).buildTree()}catch{Dt(this,Kn).clear(),Dt(this,yi).clear(),n=!0}return Wu(this,Js,Ld(Dt(this,Kn).getRoots())),n}setColumnsLimit(e){Dt(this,yi).setColumnsLimit(e)}mergeStateWith(e){const n=Ue(e,r=>{let{row:i,...o}=r;return{row:i<0?this.rowCoordsToLevel(i):i,...o}});Dt(this,yi).mergeWith(n),Dt(this,Kn).buildTree(),Wu(this,Js,Ld(Dt(this,Kn).getRoots()))}mapState(e){Dt(this,yi).map(e),Dt(this,Kn).buildTree(),Wu(this,Js,Ld(Dt(this,Kn).getRoots()))}mapNodes(e){return Yt(Dt(this,Kn).getRoots(),(n,r)=>(r.walkDown(i=>{const o=e(i.data);o!==void 0&&n.push(o)}),n),[])}triggerNodeModification(e,n,r){n<0&&(n=this.rowCoordsToLevel(n));const i=Dt(this,Kn).getNode(n,r);let o;return i&&(o=Bse(e,i,r),Wu(this,Js,Ld(Dt(this,Kn).getRoots()))),o}triggerColumnModification(e,n){return this.triggerNodeModification(e,-1,n)}rowCoordsToLevel(e){if(e>=0)return null;const n=e+Math.max(this.getLayersCount(),1);return n<0?null:n}levelToRowCoords(e){if(e<0)return null;const n=e-Math.max(this.getLayersCount(),1);return n>=0?null:n}getHeaderSettings(e,n){var r,i;return e<0&&(e=this.rowCoordsToLevel(e)),e===null||e>=this.getLayersCount()?null:(r=(i=Dt(this,Js)[e])===null||i===void 0?void 0:i[n])!==null&&r!==void 0?r:null}getHeaderTreeNodeData(e,n){const r=this.getHeaderTreeNode(e,n);return r?{...r.data}:null}getHeaderTreeNode(e,n){if(e<0&&(e=this.rowCoordsToLevel(e)),e===null||e>=this.getLayersCount())return null;const r=Dt(this,Kn).getNode(e,n);return r||null}findTopMostEntireHeaderLevel(e){var n;let r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e;const i=r-e+1;let o=!1,s=null;for(let a=e;a<=r;a++){const l=Dt(this,Kn).getRootByColumn(a);if(!l)break;o=!0,l.walkDown(u=>{const{columnIndex:c,headerLevel:h,origColspan:d,isHidden:g}=u.data;g||d<=i&&c>=e&&c+d-1<=r&&(s===null||h<s)&&(s=h)},yN)}return o&&s===null?-1:this.levelToRowCoords((n=s)!==null&&n!==void 0?n:0)}findLeftMostColumnIndex(e,n){var r;const{isRoot:i}=(r=this.getHeaderSettings(e,n))!==null&&r!==void 0?r:{isRoot:!0};if(i)return n;let o=n-1;for(;o>=0;){var s;const{isRoot:a}=(s=this.getHeaderSettings(e,o))!==null&&s!==void 0?s:{isRoot:!0};if(a)break;o-=1}return o}findRightMostColumnIndex(e,n){var r;const{isRoot:i,origColspan:o}=(r=this.getHeaderSettings(e,n))!==null&&r!==void 0?r:{isRoot:!0,origColspan
passed as an array of arrays e.q. [['A1', { label: 'A2', colspan: 2 }]]`),this.addHook("init",()=>Xt(this,BO,Sae).call(this)),this.addHook("afterLoadData",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,UO,yae).call(e,...i)}),this.addHook("beforeOnCellMouseDown",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,IO,lae).call(e,...i)}),this.addHook("afterOnCellMouseDown",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,PO,uae).call(e,...i)}),this.addHook("beforeOnCellMouseOver",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,xO,cae).call(e,...i)}),this.addHook("beforeOnCellMouseUp",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,HO,hae).call(e,...i)}),this.addHook("beforeSelectionHighlightSet",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,DO,dae).call(e,...i)}),this.addHook("modifyTransformStart",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,NO,fae).call(e,...i)}),this.addHook("afterSelection",()=>Xt(this,kd,iC).call(this)),this.addHook("beforeViewportScrollHorizontally",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,MO,oae).call(e,...i)}),this.addHook("afterGetColumnHeaderRenderers",r=>Xt(this,$O,mae).call(this,r)),this.addHook("modifyColWidth",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,FO,wae).call(e,...i)}),this.addHook("modifyColumnHeaderValue",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,WO,vae).call(e,...i)}),this.addHook("beforeHighlightingColumnHeader",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,AO,sae).call(e,...i)}),this.addHook("beforeCopy",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,OO,aae).call(e,...i)}),this.addHook("beforeSelectColumns",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,LO,gae).call(e,...i)}),this.addHook("afterViewportColumnCalculatorOverride",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,kO,pae).call(e,...i)}),this.addHook("modifyFocusedElement",function(){for(var r=arguments.length,i=new Array(r),o=0;o<r;o++)i[o]=arguments[o];return Xt(e,VO,Cae).call(e,...i)}),this.hot.columnIndexMapper.addLocalHook("cacheUpdated",()=>Xt(this,kd,iC).call(this)),this.hot.rowIndexMapper.addLocalHook("cacheUpdated",()=>Xt(this,kd,iC).call(this)),super.enablePlugin(),this.updatePlugin()}updatePlugin(){if(!this.hot.view)return;const{nestedHeaders:e}=this.hot.getSettings();et(this,dt).setColumnsLimit(this.hot.countCols()),Array.isArray(e)&&(this.detectedOverlappedHeaders=et(this,dt).setState(e)),this.detectedOverlappedHeaders&&gt(ht`Your Nested Headers plugin setup contains overlapping headers. This kind of configuration\x20
is currently not supported.`),this.enabled&&this.hot.columnIndexMapper.hidingMapsCollection.getMergedValues().forEach((n,r)=>{const i=n===!0?"hide-column":"show-column";et(this,dt).triggerColumnModification(i,r)}),!et(this,Bo)&&this.enabled&&la(this,Bo,this.hot.columnIndexMapper.createChangesObserver("hiding").subscribe(n=>{n.forEach(r=>{let{op:i,index:o,newValue:s}=r;if(i==="replace"){const a=s===!0?"hide-column":"show-column";et(this,dt).triggerColumnModification(a,o)}}),this.ghostTable.buildWidthsMap()})),this.ghostTable.setLayersCount(this.getLayersCount()).buildWidthsMap(),super.updatePlugin()}disablePlugin(){this.clearColspans(),et(this,dt).clear(),et(this,Bo).unsubscribe(),la(this,Bo,null),this.ghostTable.clear(),super.disablePlugin()}getStateManager(){return et(this,dt)}getLayersCount(){return et(this,dt).getLayersCount()}getHeaderSettings(e,n){return et(this,dt).getHeaderSettings(e,n)}clearColspans(){if(!this.hot.view)return;const{_wt:e}=this.hot.view,n=e.getSetting("columnHeaders").length,r=e.wtTable.THEAD,i=e.wtOverlays.topOverlay.clone.wtTable.THEAD,o=e.wtOverlays.topInlineStartCornerOverlay?e.wtOverlays.topInlineStartCornerOverlay.clone.wtTable.THEAD:null;for(let s=0;s<n;s++){const a=r.childNodes[s];if(!a)break;const l=i.childNodes[s],u=o?o.childNodes[s]:null;for(let c=0,h=a.childNodes.length;c<h;c++)a.childNodes[c].removeAttribute("colspan"),Le(a.childNodes[c],"hiddenHeader"),l&&l.childNodes[c]&&(l.childNodes[c].removeAttribute("colspan"),Le(l.childNodes[c],"hiddenHeader")),o&&u&&u.childNodes[c]&&(u.childNodes[c].removeAttribute("colspan"),Le(u.childNodes[c],"hiddenHeader"))}}headerRendererFactory(e){var n=this;const r=this.hot.view._wt.getSetting("fixedColumnsStart");return(i,o)=>{var s;const{columnIndexMapper:a,view:l}=this.hot;let u=a.getVisualFromRenderableIndex(i);u===null&&(u=i),o.removeAttribute("colspan"),Le(o,"hiddenHeader");const{colspan:c,isHidden:h,isPlaceholder:d}=(s=et(this,dt).getHeaderSettings(e,u))!==null&&s!==void 0?s:{label:""};if(d||h)q(o,"hiddenHeader");else if(c>1){var g,p;const{wtOverlays:v}=l._wt,S=(g=v.topInlineStartCornerOverlay)===null||g===void 0?void 0:g.clone.wtTable.THEAD.contains(o),y=(p=v.inlineStartOverlay)===null||p===void 0?void 0:p.clone.wtTable.THEAD.contains(o),R=S||y?Math.min(c,r-i):c;R>1&&o.setAttribute("colspan",R)}this.hot.view.appendColHeader(u,o,function(){return n.getColumnHeaderValue(...arguments)},e)}}getColumnHeaderValue(e,n){var r;const{isHidden:i,isPlaceholder:o}=(r=et(this,dt).getHeaderSettings(n,e))!==null&&r!==void 0?r:{};return o||i?"":this.hot.getColHeader(e,n)}destroy(){la(this,dt,null),et(this,Bo)!==null&&(et(this,Bo).unsubscribe(),la(this,Bo,null)),super.destroy()}_getHeaderTreeNodeDataByCoords(e){if(!(e.row>=0||e.col<0))return et(this,dt).getHeaderTreeNodeData(e.row,e.col)}}function iC(){var t;const e=(t=this.hot)===null||t===void 0?void 0:t.getSelectedRangeLast();if(!e)return;const{highlight:n}=e;if(n.isHeader()&&n.col>=0){const i=et(this,dt).findLeftMostColumnIndex(n.row,n.col),o=this.hot.selection.highlight.getFocus();o.visualCellRange.highlight.col=i,o.visualCellRange.from.col=i,o.visualCellRange.to.col=i,o.commit()}}function oae(t){const e=this.hot.getSelectedRangeLast();if(!e)return t;const{highlight:n}=e;if(!(n.isHeader()&&n.col>=0))return t;const i=this.hot.view.getFirstFullyVisibleColumn(),o=this.hot.view.getLastFullyVisibleColumn(),s=et(this,dt).findLeftMostColumnIndex(n.row,n.col),a=et(this,dt).findRightMostColumnIndex(n.row,n.col);return s<i&&a>o?t:s<i?s:a}function sae(t,e,n){const r=et(this,dt).getHeaderTreeNodeData(e,t);if(!r)return t;const{columnCursor:i,selectionType:o,selectionWidth:s}=n,{isRoot:a,colspan:l}=et(this,dt).getHeaderSettings(e,t);if(o===lb){if(!a)return r.columnIndex}else if(o===R1&&(l>s-i||!a))return null;return t}function aae(t,e,n){let{columnHeadersCount:r}=n;if(r!==0)for(let o=0;o<e.length;o++){const{startRow:s,startCol:a,endRow:l,endCol:u}=e[o],c=l-s+1,h=a-u+1;if(s>=0||h===1)break;for(let d=a;d<=u;d++)for(let g=s;g<=l;g++){var i;const p=c+g,v=d-a;if(v===0)continue;((i=et(this,dt).getHeader
when the NestedRows plugin is enabled. Please use the 'dragRows' method instead.`),this.hot.runHooks("afterRowMove",n,r,i,o,!1),s=!0),s}shouldAllowMoving(e,n){return!(this.dataManager.isParent(e)||this.dataManager.isRowHighestLevel(e)||e===n||n===0)}getBaseParent(e){return this.dataManager.getRowParent(e[0])}getTargetParent(e,n){let r=this.dataManager.getRowParent(e?n-1:n);return r==null&&(r=this.dataManager.getRowParent(n-1)),r}shiftCollapsibleParentsLocations(e,n,r){r||(Math.max(...e)<=n?this.collapsingUI.collapsedRowsStash.shiftStash(e[0],n,-1*e.length):this.collapsingUI.collapsedRowsStash.shiftStash(n,e[0],e.length))}moveRows(e,n,r){const i=n===this.dataManager.getRowIndex(r)+this.dataManager.countChildren(r)+1;this.hot.batchRender(()=>{e.forEach(o=>{this.dataManager.moveRow(o,n,this.movedToCollapsed,i)})})}moveCellsMeta(e,n){const r=[],i=Math.max(...e)<n;e.forEach(o=>{r.push(this.hot.getCellMetaAtRow(o))}),this.hot.spliceCellsMeta(e[0],e.length),this.hot.spliceCellsMeta(n-(i?r.length:0),0,...r)}selectCells(e,n){const r=e.length;let i=0,o=0,s=null,a=null;if(this.movedToCollapsed){let l=null;e[r-1]<n?l=this.dataManager.translateTrimmedRow(n-r):l=this.dataManager.translateTrimmedRow(n);const u=this.dataManager.getRowParent(l===null?this.hot.countSourceRows()-1:l-1),c=this.dataManager.getRowIndex(u);i=this.dataManager.untranslateTrimmedRow(c),o=i}else e[r-1]<n?(o=n-1,i=o-r+1):(i=n,o=i+r-1);s=this.hot.selection,a=this.hot.countCols()-1,s.setRangeStart(this.hot._createCellCoords(i,0)),s.setRangeEnd(this.hot._createCellCoords(o,a),!0)}isRowOrderChanged(e,n){return e.some((r,i)=>r-i!==n)}}function Cn(t,e){PN(t,e),e.add(t)}function zO(t,e,n){PN(t,e),e.set(t,n)}function PN(t,e){if(e.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function oC(t,e,n){return e=Yae(e),e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function Yae(t){var e=Gae(t,"string");return typeof e=="symbol"?e:String(e)}function Gae(t,e){if(typeof t!="object"||!t)return t;var n=t[Symbol.toPrimitive];if(n!==void 0){var r=n.call(t,e||"default");if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(t)}function df(t,e){var n=xN(t,e,"get");return zae(t,n)}function zae(t,e){return e.get?e.get.call(t):e.value}function ug(t,e,n){var r=xN(t,e,"set");return jae(t,r,n),n}function xN(t,e,n){if(!e.has(t))throw new TypeError("attempted to "+n+" private field on non-instance");return e.get(t)}function jae(t,e,n){if(e.set)e.set.call(t,n);else{if(!e.writable)throw new TypeError("attempted to set read only private field");e.value=n}}function fn(t,e,n){if(!e.has(t))throw new TypeError("attempted to get private field on non-instance");return n}const cg="nestedRows",Kae=300,jO=cg,Xae="The Nested Rows plugin requires an Array of Objects as a dataset to be provided. The plugin has been disabled.";var Op=new WeakMap,fl=new WeakMap,KO=new WeakSet,XO=new WeakSet,qO=new WeakSet,ZO=new WeakSet,QO=new WeakSet,JO=new WeakSet,eI=new WeakSet,tI=new WeakSet,nI=new WeakSet,rI=new WeakSet,iI=new WeakSet,oI=new WeakSet,sI=new WeakSet,aI=new WeakSet,lI=new WeakSet,sC=new WeakSet;class qae extends it{constructor(){super(...arguments),Cn(this,sC),Cn(this,lI),Cn(this,aI),Cn(this,sI),Cn(this,oI),Cn(this,iI),Cn(this,rI),Cn(this,nI),Cn(this,tI),Cn(this,eI),Cn(this,JO),Cn(this,QO),Cn(this,ZO),Cn(this,qO),Cn(this,XO),Cn(this,KO),oC(this,"dataManager",null),oC(this,"headersUI",null),oC(this,"collapsedRowsMap",null),zO(this,Op,{writable:!0,value:!1}),zO(this,fl,{writable:!0,value:!1})}static get PLUGIN_KEY(){return cg}static get PLUGIN_PRIORITY(){return Kae}isEnabled(){return!!this.hot.getSettings()[cg]}enablePlugin(){var e=this;this.enabled||(this.collapsedRowsMap=this.hot.rowIndexMapper.registerMap("nestedRows",new eh),this.dataManager=new Tae(this,this.hot),this.collapsingUI=new Iae(this,this.hot),this.headersUI=new IN(this,this.hot),this.contextMenuUI=new Wae(this,this.hot),this.rowMoveController=new Uae(this),this.addHook("af
* @preserve
* Authors: soakit, HChenZi
* Last updated: Mar 09, 2023
*
* Description: Definition file for Chinese - China language-country.
*/const Vue={languageCode:"zh-CN",[jg]:"",[Kg]:"",[Xg]:"",[qg]:"",[Zg]:["",""],[Qg]:["",""],[Jg]:"",[em]:"",[tm]:"",[nm]:"",[pm]:"",[wm]:"",[vm]:"",[Cm]:"",[Sm]:"",[ym]:"",[bm]:"",[Rm]:"",[lm]:"",[um]:"",[Em]:"",[Tm]:"",[_m]:"",[Mm]:"",[Am]:"",[Om]:"",[dm]:"",[fm]:"",[gm]:"",[mm]:"",[cm]:"",[hm]:"",[rm]:"",[im]:"",[om]:"",[sm]:"",[am]:"",[Im]:"",[Pm]:"",[xm]:["",""],[Hm]:["",""],[Dm]:["",""],[Nm]:["",""],[th]:"",[Lm]:"",[$m]:"",[km]:"",[Fm]:"",[Wm]:"",[Vm]:"",[Bm]:"",[Um]:"",[Ym]:"",[Gm]:"",[zm]:"",[jm]:"",[Km]:"",[Xm]:"",[qm]:"",[Zm]:"",[Qm]:"",[Jm]:"",[ep]:"",[Oc]:"",[tp]:"",[np]:"",[rp]:"",[nh]:"",[ip]:"",[op]:"",[sp]:"",[ap]:"",[lp]:"",[up]:"",[cp]:""},Bue=Vue;Ob(Bue);const Uue=function(t,e,n,r,i,o,s){if(Ae.renderers.getRenderer("text")(t,e,n,r,i,o,s),s.style){const a=e.style;Object.assign(a,s.style)}};Ae.renderers.registerRenderer("styleRender",Uue);const Yue=t=>{const e=Rl(!0),n=t(),r={emit:(a,l)=>{e.value=!0,n==null||n.postMessage({type:a,payload:l})}},i={},o=[],s=[];return n==null||n.addEventListener("message",a=>{const{type:l,payload:u}=a.data,c=i[l];c!=null&&c.length&&c.forEach(h=>h(u)),o.forEach(h=>h(a))}),n==null||n.addEventListener("error",a=>{console.error(a),s.forEach(l=>l(a))}),GN(()=>{n==null||n.terminate()}),{loading:e,worker:r,onWorkerMessage:a=>o.push(a),onWorkerError:a=>s.push(a),onWorkerEvent:(a,l)=>{let u=i[a];u||(u=i[a]=[]),u.push(l)},mapEvents:a=>Array.isArray(a)?a.reduce((l,u)=>(l[u]=c=>r.emit(u,c),l),{}):Object.keys(a).reduce((l,u)=>{const c=a[u];return l[c]=h=>r.emit(u,h),l},{})}},$N=t=>(tL("data-v-7789e35a"),t=t(),nL(),t),Gue={class:"excel-wrapper"},zue={key:0,class:"loading"},jue=$N(()=>mf("img",{class:"lg",src:sL,alt:"xlsx"},null,-1)),Kue=$N(()=>mf("img",{class:"sm",src:aL,alt:"loading"},null,-1)),Xue={class:"table-wrapper"},que={class:"btn-group"},Zue=["onClick"],Que=FS({__name:"XlsxTable",props:{data:{},type:{}},setup(t){const e=t,n=Rl(null),r=Rl([]),i=Rl(0);let o;const s={language:"zh-CN",colHeaders:!0,rowHeaders:!0,autoRowSize:!1,autoColumnSize:!1,height:"100%",cells(p,v){const S=o==null?void 0:o.cell;return S&&Object.keys(S).length?S[_9(p,v)]:{}},columns(p){const v=o==null?void 0:o.columns;return v!=null&&v.length?v[p]:{}},colWidths(p){const v=o==null?void 0:o.colWidths;return typeof v=="number"?v:v&&v[p]||(o==null?void 0:o.defaults.colWidth)},rowHeights(p){const v=o==null?void 0:o.rowHeights;return typeof v=="number"?v:v&&v[p]||(o==null?void 0:o.defaults.rowHeight)},outsideClickDeselects:!1,licenseKey:"non-commercial-and-evaluation"},a=zN(()=>{var p;return(p=n.value)==null?void 0:p.hotInstance}),l=()=>e.type==="binary"?A9.create():M9.create(),{loading:u,worker:c,onWorkerEvent:h}=Yue(l),d=p=>{i.value!==p&&(i.value=p,c.emit("parseSheet",{sheet:i.value??r.value[0].id}))},g=()=>eL(()=>{setTimeout(()=>{var p;(p=a.value)==null||p.updateSettings({data:o==null?void 0:o.data,mergeCells:o==null?void 0:o.merge})},0)});return h("sheets",({sheets:p})=>{if(r.value=p,p.length){const[{id:v}]=p;i.value=v,c.emit("parseSheet",{sheet:i.value})}}),h("parseSheet",({sheetData:p})=>{o=p,g()}),jN(()=>e.data,()=>{c.emit("parseWorkbook",{workbook:e.data})}),KN(async()=>{var p;(p=a.value)==null||p.addHook("afterUpdateSettings",()=>u.value=!1),c.emit("parseWorkbook",{workbook:e.data})}),(p,v)=>(Uu(),Yu("div",Gue,[TR(u)?(Uu(),Yu("div",zue,[j