"||d==="<"){var _=u.pop();Number.isNaN(_)||(_=Number(_));var w=u.pop();Number.isNaN(w)||(w=Number(w));var k=!1;d==="="?k=w===_:f===">"?k=w>_:f===">="?k=w>=_:f==="<"?k=w<_:f==="<="&&(k=w<=_),u.push(k)}else if(Array.isArray(f)){for(var C=ge(f,2),O=C[0],P=C[1],B=[],q=0;q="a"&&d<="z"||d>="A"&&d<="Z")&&c.push(f),u.push(vm(f,i)),c.pop()}}return u[0]}(a,r,function(l,o){return j0(t(l,o),r,t,n)},n)}return e};const z0={render:j0};var np=[{key:"SUM",title:Rn("formula.sum"),render:function(e){return e.reduce(function(r,t){return ei("+",r,t)},0)}},{key:"AVERAGE",title:Rn("formula.average"),render:function(e){return e.reduce(function(r,t){return Number(r)+Number(t)},0)/e.length}},{key:"MAX",title:Rn("formula.max"),render:function(e){return Math.max.apply(Math,rt(e.map(function(r){return Number(r)})))}},{key:"MIN",title:Rn("formula.min"),render:function(e){return Math.min.apply(Math,rt(e.map(function(r){return Number(r)})))}},{key:"IF",title:Rn("formula._if"),render:function(e){var r=ge(e,3),t=r[0],n=r[1],a=r[2];return t?n:a}},{key:"AND",title:Rn("formula.and"),render:function(e){return e.every(function(r){return r})}},{key:"OR",title:Rn("formula.or"),render:function(e){return e.some(function(r){return r})}},{key:"CONCAT",title:Rn("formula.concat"),render:function(e){return e.join("")}}],ip=np,da={};np.forEach(function(e){da[e.key]=e});var Cf=function(e){return e},Ql=function(e){if(/^(-?\d*.?\d*)$/.test(e)){var r=et(Number(e).toFixed(2).toString().split("\\.")),t=r[0],n=r.slice(1);return[t.replace(/(\d)(?=(\d{3})+(?!\d))/g,"$1,")].concat(rt(n))}return e},Xc=[{key:"normal",title:Rn("format.normal"),type:"string",render:Cf},{key:"text",title:Rn("format.text"),type:"string",render:Cf},{key:"number",title:Rn("format.number"),type:"number",label:"1,000.12",render:Ql},{key:"percent",title:Rn("format.percent"),type:"number",label:"10.12%",render:function(e){return"".concat(e,"%")}},{key:"rmb",title:Rn("format.rmb"),type:"number",label:"¥10.00",render:function(e){return"¥".concat(Ql(e))}},{key:"usd",title:Rn("format.usd"),type:"number",label:"$10.00",render:function(e){return"$".concat(Ql(e))}},{key:"eur",title:Rn("format.eur"),type:"number",label:"€10.00",render:function(e){return"€".concat(Ql(e))}},{key:"date",title:Rn("format.date"),type:"date",label:"26/09/2008",render:Cf},{key:"time",title:Rn("format.time"),type:"date",label:"15:59:00",render:Cf},{key:"datetime",title:Rn("format.datetime"),type:"date",label:"26/09/2008 15:59:00",render:Cf},{key:"duration",title:Rn("format.duration"),type:"date",label:"24:01:00",render:Cf}],Va={};Xc.forEach(function(e){Va[e.key]=e});var bm={fillStyle:"#f4f5f8"},ap={fillStyle:"#fff",lineWidth:mm,strokeStyle:"#e6e6e6"};function Af(e,r,t){var n=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,a=e.cellRect(r,t),l=a.left,o=a.top,i=a.width,c=a.height;return new gm(l,o+n,i,c,5)}function Sc(e,r,t,n){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,l=r.sortedRowMap,o=r.rows,i=r.cols;if(!o.isHide(t)&&!i.isHide(n)){var c=t;l.has(t)&&(c=l.get(t));var u=r.getCell(c,n);if(u!==null){var h=!1;"editable"in u&&u.editable===!1&&(h=!0);var f=r.getCellStyleOrDefault(c,n),d=Af(r,t,n,a);d.bgcolor=f.bgcolor,f.border!==void 0&&(d.setBorders(f.border),e.strokeBorders(d)),e.rect(d,function(){var p="";p=r.settings.evalPaused?u.text||"":z0.render(u.text||"",da,function(v,b){return r.getCellTextOrDefault(b,v)}),f.format&&(p=Va[f.format].render(p));var g=Object.assign({},f.font);g.size=function(v){for(var b=0;b0&&c.rows.isHide(w-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([5,O+5],[t-5,O+5]),i.restore())}),i.line([0,u+f],[t,u+f]),i.line([t,f],[t,u+f])),e!=="all"&&e!=="top"||(c.colEach(r.sci,r.eci,function(w,k,C){var O=d+k,P=w;i.line([O,0],[O,n]),v<=P&&P<_+1&&ym.call(o,O,0,C,n),i.fillText(Vt(P),O+C/2,n/2),w>0&&c.cols.isHide(w-1)&&(i.save(),i.attr({strokeStyle:"#c6c6c6"}),i.line([O+5,5],[O+5,n-5]),i.restore())}),i.line([h+d,0],[h+d,n]),i.line([0,n],[h+d,n])),i.restore()}function nv(e,r){var t=this.draw;t.save(),t.attr({fillStyle:"#f4f5f8"}).fillRect(0,0,e,r),t.restore()}function op(e,r,t,n,a){var l=e.sri,o=e.sci,i=e.eri,c=e.eci,u=e.w,h=e.h,f=this.draw,d=this.data,p=d.settings;f.save(),f.attr(ap).translate(r+n,t+a),p.showGrid&&(d.rowEach(l,i,function(g,v,b){g!==l&&f.line([0,v],[u,v]),g===i&&f.line([0,v+b],[u,v+b])}),d.colEach(o,c,function(g,v,b){g!==o&&f.line([v,0],[v,h]),g===c&&f.line([v+b,0],[v+b,h])})),f.restore()}function $0(e,r,t,n){var a=this.draw,l=this.data,o=l.viewWidth()-e,i=l.viewHeight()-r;a.save().translate(e,r).attr({strokeStyle:"rgba(75, 137, 255, .6)"}),a.line([0,n],[o,n]),a.line([t,0],[t,i]),a.restore()}var iv=function(){return ne(function e(r,t){le(this,e),this.el=r,this.draw=new B0(r,t.viewWidth(),t.viewHeight()),this.data=t},[{key:"resetData",value:function(e){this.data=e,this.render()}},{key:"render",value:function(){var e=this.data,r=e.rows,t=e.cols.indexWidth,n=r.height;this.draw.resize(e.viewWidth(),e.viewHeight()),this.clear();var a=e.viewRange(),l=e.freezeTotalWidth(),o=e.freezeTotalHeight(),i=e.scroll,c=i.x,u=i.y;op.call(this,a,t,n,l,o),mh.call(this,a,t,n,-c,-u),sp.call(this,"all",a,t,n,l,o),nv.call(this,t,n);var h=ge(e.freeze,2),f=h[0],d=h[1];if(f>0||d>0){if(f>0){var p=a.clone();p.sri=0,p.eri=f-1,p.h=o,op.call(this,p,t,n,l,0),mh.call(this,p,t,n,-c,0),sp.call(this,"top",p,t,n,l,0)}if(d>0){var g=a.clone();g.sci=0,g.eci=d-1,g.w=l,op.call(this,g,t,n,0,o),sp.call(this,"left",g,t,n,0,o),mh.call(this,g,t,n,0,-u)}var v=e.freezeViewRange();op.call(this,v,t,n,0,0),sp.call(this,"all",v,t,n,0,0),mh.call(this,v,t,n,0,0),$0.call(this,t,n,l,o)}}},{key:"clear",value:function(){this.draw.clear()}}])}(),lp=[["A3",11.69,16.54],["A4",8.27,11.69],["A5",5.83,8.27],["B4",9.84,13.9],["B5",6.93,9.84]],wm=["landscape","portrait"];function Ec(e){return parseInt(96*e,10)}function up(e){e==="cancel"?this.el.hide():this.toPrint()}function av(e){var r=this.paper,t=e.target.value,n=lp[t];r.w=Ec(n[1]),r.h=Ec(n[2]),this.preview()}function sv(e){var r=this.paper,t=e.target.value,n=wm[t];r.orientation=n,this.preview()}var ov=function(){return ne(function e(r){var t,n;le(this,e),this.paper={w:Ec(lp[0][1]),h:Ec(lp[0][2]),padding:50,orientation:wm[0],get width(){return this.orientation==="landscape"?this.h:this.w},get height(){return this.orientation==="landscape"?this.w:this.h}},this.data=r,this.el=qe("div","".concat(un,"-print")).children(qe("div","".concat(un,"-print-bar")).children(qe("div","-title").child("Print settings"),qe("div","-right").children(qe("div","".concat(un,"-buttons")).children(new xc("cancel").on("click",up.bind(this,"cancel")),new xc("next","primary").on("click",up.bind(this,"next"))))),qe("div","".concat(un,"-print-content")).children(this.contentEl=qe("div","-content"),qe("div","-sider").child(qe("form","").children(qe("fieldset","").children(qe("label","").child("".concat(li("print.size"))),(t=qe("select","")).children.apply(t,rt(lp.map(function(a,l){return qe("option","").attr("value",l).child("".concat(a[0]," ( ").concat(a[1],"''x").concat(a[2],"'' )"))}))).on("change",av.bind(this))),qe("fieldset","").children(qe("label","").child("".concat(li("print.orientation"))),(n=qe("select","")).children.apply(n,rt(wm.map(function(a,l){return qe("option","").attr("value",l).child("".concat(li("print.orientations")[l]))}))).on("change",sv.bind(this))))))).hide()},[{key:"resetData",value:function(e){this.data=e}},{key:"preview",value:function(){var e=this,r=this.data,t=this.paper,n=t.width,a=t.height,l=t.padding,o=n-2*l,i=a-2*l,c=r.contentRange(),u=parseInt(c.h/i,10)+1,h=o/c.w,f=l,d=l;h>1&&(f+=(o-c.w)/2);var p=0,g=0;this.contentEl.html(""),this.canvases=[];for(var v={sri:0,sci:0,eri:0,eci:0},b=function(){var w=0,k=0,C=qe("div","".concat(un,"-canvas-card")),O=qe("canvas","".concat(un,"-canvas"));e.canvases.push(O.el);var P=new B0(O.el,n,a);for(P.save(),P.translate(f,d),h<1&&P.scale(h,h);p<=c.eri;p+=1){var B=r.rows.getHeight(p);if(!((w+=B)1&&arguments[1]!==void 0&&arguments[1];le(this,e),this.menuItems=_s.call(this),this.el=(t=qe("div","".concat(un,"-contextmenu"))).children.apply(t,rt(this.menuItems)).hide(),this.viewFn=r,this.itemClick=function(){},this.isHide=n,this.setMode("range")},[{key:"setMode",value:function(e){var r=this.menuItems[12];e==="row-col"?r.show():r.hide()}},{key:"hide",value:function(){var e=this.el;e.hide(),Dl(e)}},{key:"setPosition",value:function(e,r){if(!this.isHide){var t=this.el,n=t.show().offset().width,a=this.viewFn(),l=a.height/2,o=e;a.width-e<=n&&(o-=n),t.css("left","".concat(o,"px")),r>l?t.css("bottom","".concat(a.height-r,"px")).css("max-height","".concat(r,"px")).css("top","auto"):t.css("top","".concat(r,"px")).css("max-height","".concat(a.height-r,"px")).css("bottom","auto"),Sl(t)}}}])}();function Ne(){return Ne=typeof Reflect<"u"&&Reflect.get?Reflect.get.bind():function(e,r,t){var n=function(l,o){for(;!{}.hasOwnProperty.call(l,o)&&(l=Gr(l))!==null;);return l}(e,r);if(n){var a=Object.getOwnPropertyDescriptor(n,r);return a.get?a.get.call(arguments.length<3?e:t):a.value}},Ne.apply(null,arguments)}var K=function(){return ne(function e(r,t,n){le(this,e),this.tip="",r&&(this.tip=li("toolbar.".concat(r.replace(/-[a-z]/g,function(a){return a[1].toUpperCase()})))),t&&(this.tip+=" (".concat(t,")")),this.tag=r,this.shortcut=t,this.value=n,this.el=this.element(),this.change=function(){}},[{key:"element",value:function(){var e=this,r=this.tip;return qe("div","".concat(un,"-toolbar-btn")).on("mouseenter",function(t){e.tip&&function(n,a){if(!a.classList.contains("active")){var l=a.getBoundingClientRect(),o=l.left,i=l.top,c=l.width,u=l.height,h=qe("div","".concat(un,"-tooltip")).html(n).show();document.body.appendChild(h.el);var f=h.box();h.css("left","".concat(o+c/2-f.width/2,"px")).css("top","".concat(i+u+2,"px")),Ws(a,"mouseleave",function(){document.body.contains(h.el)&&document.body.removeChild(h.el)}),Ws(a,"click",function(){document.body.contains(h.el)&&document.body.removeChild(h.el)})}}(e.tip,t.target)}).attr("data-tooltip",r)}},{key:"setState",value:function(){}}])}();function W(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(W=function(){return!!e})()}var re=function(e){function r(){return le(this,r),t=this,a=arguments,n=Gr(n=r),Bn(t,W()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"dropdown",value:function(){}},{key:"getValue",value:function(t){return t}},{key:"element",value:function(){var t,n,a,l,o,i=this,c=this.tag;return this.dd=this.dropdown(),this.dd.change=function(u){return i.change(c,i.getValue(u))},(t=r,n="element",a=this,l=3,o=Ne(Gr(1&l?t.prototype:t),n,a),2&l&&typeof o=="function"?function(u){return o.apply(a,u)}:o)([]).child(this.dd)}},{key:"setState",value:function(t){t&&(this.value=t,this.dd.setTitle(t))}}])}(K);function pe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(pe=function(){return!!e})()}var be=function(e){function r(t,n,a,l){var o,i,c,u,h;le(this,r),c=this,u=r,h=["div","".concat(un,"-dropdown ").concat(l)],u=Gr(u),(i=Bn(c,pe()?Reflect.construct(u,h||[],Gr(c).constructor):u.apply(c,h))).title=t,i.change=function(){},i.headerClick=function(){},typeof t=="string"?i.title=qe("div","".concat(un,"-dropdown-title")).child(t):a&&i.title.addClass("arrow-left"),i.contentEl=qe("div","".concat(un,"-dropdown-content")).css("width",n).hide();for(var f=arguments.length,d=new Array(f>4?f-4:0),p=4;p0&&(t=this.contentEl).children.apply(t,arguments)}},{key:"setTitle",value:function(t){this.title.html(t),this.hide()}},{key:"show",value:function(){var t=this;this.contentEl.show(),this.parent().active(),Sl(this.parent(),function(){t.hide()})}},{key:"hide",value:function(){this.parent().active(!1),this.contentEl.hide(),Dl(this.parent())}}])}(je);function Ve(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ve=function(){return!!e})()}var Ue=function(e){function r(t,n){var a;le(this,r);var l,o,i,c=new ws("align-".concat(n)),u=t.map(function(h){return(f="align-".concat(h),qe("div","".concat(un,"-item")).child(new ws(f))).on("click",function(){a.setTitle(h),a.change(h)});var f});return l=this,o=r,i=[c,"auto",!0,"bottom-left"].concat(rt(u)),o=Gr(o),a=Bn(l,Ve()?Reflect.construct(o,i||[],Gr(l).constructor):o.apply(l,i))}return nr(r,e),ne(r,[{key:"setTitle",value:function(t){this.title.setName("align-".concat(t)),this.hide()}}])}(be);function Qe(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qe=function(){return!!e})()}var bt=function(e){function r(t){return le(this,r),n=this,l=["align","",t],a=Gr(a=r),Bn(n,Qe()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l));var n,a,l}return nr(r,e),ne(r,[{key:"dropdown",value:function(){var t=this.value;return new Ue(["left","center","right"],t)}}])}(re);function Rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Rt=function(){return!!e})()}var Ft=function(e){function r(t){return le(this,r),n=this,l=["valign","",t],a=Gr(a=r),Bn(n,Rt()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l));var n,a,l}return nr(r,e),ne(r,[{key:"dropdown",value:function(){var t=this.value;return new Ue(["top","middle","bottom"],t)}}])}(re);function Lt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lt=function(){return!!e})()}var nt=function(e){function r(){return le(this,r),t=this,a=arguments,n=Gr(n=r),Bn(t,Lt()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"element",value:function(){var t,n,a,l,o,i=this,c=this.tag;return(t=r,n="element",a=this,l=3,o=Ne(Gr(1&l?t.prototype:t),n,a),2&l&&typeof o=="function"?function(u){return o.apply(a,u)}:o)([]).child(new ws(c)).on("click",function(){return i.click()})}},{key:"click",value:function(){this.change(this.tag,this.toggle())}},{key:"setState",value:function(t){this.el.active(t)}},{key:"toggle",value:function(){return this.el.toggle()}},{key:"active",value:function(){return this.el.hasClass("active")}}])}(K);function At(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(At=function(){return!!e})()}var st=function(e){function r(){return le(this,r),t=this,a=["autofilter"],n=Gr(n=r),Bn(t,At()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"setState",value:function(){}}])}(nt);function _t(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(_t=function(){return!!e})()}var pt=function(e){function r(){return le(this,r),t=this,a=["font-bold","Ctrl+B"],n=Gr(n=r),Bn(t,_t()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r)}(nt);function Ct(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ct=function(){return!!e})()}var Gt=function(e){function r(){return le(this,r),t=this,a=["font-italic","Ctrl+I"],n=Gr(n=r),Bn(t,Ct()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r)}(nt);function rr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(rr=function(){return!!e})()}var or=function(e){function r(){return le(this,r),t=this,a=["strike","Ctrl+U"],n=Gr(n=r),Bn(t,rr()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r)}(nt);function Lr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Lr=function(){return!!e})()}var Br=function(e){function r(){return le(this,r),t=this,a=["underline","Ctrl+U"],n=Gr(n=r),Bn(t,Lr()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r)}(nt),bn=["#ffffff","#000100","#e7e5e6","#445569","#5b9cd6","#ed7d31","#a5a5a5","#ffc001","#4371c6","#71ae47"],Rr=[["#f2f2f2","#7f7f7f","#d0cecf","#d5dce4","#deeaf6","#fce5d5","#ededed","#fff2cd","#d9e2f3","#e3efd9"],["#d8d8d8","#595959","#afabac","#adb8ca","#bdd7ee","#f7ccac","#dbdbdb","#ffe59a","#b3c6e7","#c5e0b3"],["#bfbfbf","#3f3f3f","#756f6f","#8596b0","#9cc2e6","#f4b184","#c9c9c9","#fed964","#8eaada","#a7d08c"],["#a5a5a5","#262626","#3a3839","#333f4f","#2e75b5","#c45a10","#7b7b7b","#bf8e01","#2f5596","#538136"],["#7f7f7f","#0c0c0c","#171516","#222a35","#1f4e7a","#843c0a","#525252","#7e6000","#203864","#365624"]],Mn=["#c00000","#fe0000","#fdc101","#ffff01","#93d051","#00b04e","#01b0f1","#0170c1","#012060","#7030a0"];function Si(e){var r=this;return qe("td","").child(qe("div","".concat(un,"-color-palette-cell")).on("click.stop",function(){return r.change(e)}).css("background-color",e))}var It=ne(function e(){var r,t,n,a=this;le(this,e),this.el=qe("div","".concat(un,"-color-palette")),this.change=function(){};var l=qe("table","").children((r=qe("tbody","")).children.apply(r,[(t=qe("tr","".concat(un,"-theme-color-placeholders"))).children.apply(t,rt(bn.map(function(o){return Si.call(a,o)})))].concat(rt(Rr.map(function(o){var i;return(i=qe("tr","".concat(un,"-theme-colors"))).children.apply(i,rt(o.map(function(c){return Si.call(a,c)})))})),[(n=qe("tr","".concat(un,"-standard-colors"))).children.apply(n,rt(Mn.map(function(o){return Si.call(a,o)})))])));this.el.child(l)});function Dr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Dr=function(){return!!e})()}var We=function(e){function r(t,n){var a;le(this,r);var l,o,i,c=new ws(t).css("height","16px").css("border-bottom","3px solid ".concat(n)),u=new It;return u.change=function(h){a.setTitle(h),a.change(h)},l=this,o=r,i=[c,"auto",!1,"bottom-left",u.el],o=Gr(o),a=Bn(l,Dr()?Reflect.construct(o,i||[],Gr(l).constructor):o.apply(l,i))}return nr(r,e),ne(r,[{key:"setTitle",value:function(t){this.title.css("border-color",t),this.hide()}}])}(be);function Yr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Yr=function(){return!!e})()}var Zi=[["thin",''],["medium",''],["thick",''],["dashed",''],["dotted",'']],vn=function(e){function r(t){var n;le(this,r);var a,l,o,i=new ws("line-type"),c=0,u=Zi.map(function(h,f){return qe("div","".concat(un,"-item state ").concat(t===h[0]?"checked":"")).on("click",function(){u[c].toggle("checked"),u[f].toggle("checked"),c=f,n.hide(),n.change(h)}).child(qe("div","".concat(un,"-line-type")).html(h[1]))});return a=this,l=r,o=[i,"auto",!1,"bottom-left"].concat(rt(u)),l=Gr(l),n=Bn(a,Yr()?Reflect.construct(l,o||[],Gr(a).constructor):l.apply(a,o))}return nr(r,e),ne(r)}(be);function ca(){var e;return qe("table","").child((e=qe("tbody","")).children.apply(e,arguments))}function xn(e){var r=this;return qe("td","").child(qe("div","".concat(un,"-border-palette-cell")).child(new ws("border-".concat(e))).on("click",function(){r.mode=e;var t=r.mode,n=r.style,a=r.color;r.change({mode:t,style:n,color:a})}))}var $i=ne(function e(){var r,t,n=this;le(this,e),this.color="#000",this.style="thin",this.mode="all",this.change=function(){},this.ddColor=new We("line-color",this.color),this.ddColor.change=function(l){n.color=l},this.ddType=new vn(this.style),this.ddType.change=function(l){var o=ge(l,1)[0];n.style=o},this.el=qe("div","".concat(un,"-border-palette"));var a=ca(qe("tr","").children(qe("td","".concat(un,"-border-palette-left")).child(ca((r=qe("tr","")).children.apply(r,rt(["all","inside","horizontal","vertical","outside"].map(function(l){return xn.call(n,l)}))),(t=qe("tr","")).children.apply(t,rt(["left","top","right","bottom","none"].map(function(l){return xn.call(n,l)}))))),qe("td","".concat(un,"-border-palette-right")).children(qe("div","".concat(un,"-toolbar-btn")).child(this.ddColor.el),qe("div","".concat(un,"-toolbar-btn")).child(this.ddType.el))));this.el.child(a)});function Tr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Tr=function(){return!!e})()}var vr=function(e){function r(){var t;le(this,r);var n,a,l,o=new ws("border-all"),i=new $i;return i.change=function(c){t.change(c),t.hide()},n=this,a=r,l=[o,"auto",!1,"bottom-left",i.el],a=Gr(a),t=Bn(n,Tr()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l))}return nr(r,e),ne(r)}(be);function Ri(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ri=function(){return!!e})()}var ri=function(e){function r(){return le(this,r),t=this,a=["border"],n=Gr(n=r),Bn(t,Ri()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"dropdown",value:function(){return new vr}}])}(re);function Hn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Hn=function(){return!!e})()}var gs=function(e){function r(){return le(this,r),t=this,a=arguments,n=Gr(n=r),Bn(t,Hn()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"element",value:function(){var t,n,a,l,o,i=this;return(t=r,n="element",a=this,l=3,o=Ne(Gr(1&l?t.prototype:t),n,a),2&l&&typeof o=="function"?function(c){return o.apply(a,c)}:o)([]).child(new ws(this.tag)).on("click",function(){return i.change(i.tag)})}},{key:"setState",value:function(t){this.el.disabled(t)}}])}(K);function uo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(uo=function(){return!!e})()}var Ta=function(e){function r(){return le(this,r),t=this,a=["clearformat"],n=Gr(n=r),Bn(t,uo()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r)}(gs);function Wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Wa=function(){return!!e})()}var ro=function(e){function r(){return le(this,r),t=this,a=["paintformat"],n=Gr(n=r),Bn(t,Wa()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"setState",value:function(){}}])}(nt);function Ss(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Ss=function(){return!!e})()}var Ku=function(e){function r(t){return le(this,r),n=this,l=["color",void 0,t],a=Gr(a=r),Bn(n,Ss()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l));var n,a,l}return nr(r,e),ne(r,[{key:"dropdown",value:function(){var t=this.tag,n=this.value;return new We(t,n)}}])}(re);function jl(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jl=function(){return!!e})()}var Te=function(e){function r(t){return le(this,r),n=this,l=["bgcolor",void 0,t],a=Gr(a=r),Bn(n,jl()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l));var n,a,l}return nr(r,e),ne(r,[{key:"dropdown",value:function(){var t=this.tag,n=this.value;return new We(t,n)}}])}(re);function jr(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jr=function(){return!!e})()}var Ar=function(e){function r(){var t;le(this,r);var n,a,l,o=Ha.map(function(i){return qe("div","".concat(un,"-item")).on("click",function(){t.setTitle("".concat(i.pt)),t.change(i)}).child("".concat(i.pt))});return n=this,a=r,l=["10","60px",!0,"bottom-left"].concat(rt(o)),a=Gr(a),t=Bn(n,jr()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l))}return nr(r,e),ne(r)}(be);function Et(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Et=function(){return!!e})()}var yt=function(e){function r(){return le(this,r),t=this,a=["font-size"],n=Gr(n=r),Bn(t,Et()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"getValue",value:function(t){return t.pt}},{key:"dropdown",value:function(){return new Ar}}])}(re);function er(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(er=function(){return!!e})()}var nn=function(e){function r(){var t;le(this,r);var n,a,l,o=ms.map(function(i){return qe("div","".concat(un,"-item")).on("click",function(){t.setTitle(i.title),t.change(i)}).child(i.title)});return n=this,a=r,l=[ms[0].title,"160px",!0,"bottom-left"].concat(rt(o)),a=Gr(a),t=Bn(n,er()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l))}return nr(r,e),ne(r)}(be);function dn(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(dn=function(){return!!e})()}var mr=function(e){function r(){return le(this,r),t=this,a=["font-name"],n=Gr(n=r),Bn(t,dn()?Reflect.construct(n,a||[],Gr(t).constructor):n.apply(t,a));var t,n,a}return nr(r,e),ne(r,[{key:"getValue",value:function(t){return t.key}},{key:"dropdown",value:function(){return new nn}}])}(re);function On(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(On=function(){return!!e})()}var Zn=function(e){function r(){var t;le(this,r);var n,a,l,o=Xc.slice(0);return o.splice(2,0,{key:"divider"}),o.splice(8,0,{key:"divider"}),o=o.map(function(i){var c=qe("div","".concat(un,"-item"));return i.key==="divider"?c.addClass("divider"):(c.child(i.title()).on("click",function(){t.setTitle(i.title()),t.change(i)}),i.label&&c.child(qe("div","label").html(i.label))),c}),n=this,a=r,l=["Normal","220px",!0,"bottom-left"].concat(rt(o)),a=Gr(a),t=Bn(n,On()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l))}return nr(r,e),ne(r,[{key:"setTitle",value:function(t){for(var n=0;n0?a.show():a.hide()}function vs(e){var r=this,t=new K;t.el.on("click",function(){e.onClick&&e.onClick(r.data.getData(),r.data)}),t.tip=e.tip||"";var n=e.el;if(e.icon&&(n=qe("img").attr("src",e.icon)),n){var a=qe("div","".concat(un,"-icon"));a.child(n),t.el.child(a)}return t}var hv=function(){return ne(function e(r,t){var n=this,a=arguments.length>2&&arguments[2]!==void 0&&arguments[2];le(this,e),this.data=r,this.change=function(){},this.widthFn=t,this.isHide=a;var l=r.defaultStyle();this.items=[[this.undoEl=new cv,this.redoEl=new Gu,new fv,this.paintformatEl=new ro,this.clearformatEl=new Ta],Fi(),[this.formatEl=new Ti],Fi(),[this.fontEl=new mr,this.fontSizeEl=new yt],Fi(),[this.boldEl=new pt,this.italicEl=new Gt,this.underlineEl=new Br,this.strikeEl=new or,this.textColorEl=new Ku(l.color)],Fi(),[this.fillColorEl=new Te(l.bgcolor),this.borderEl=new ri,this.mergeEl=new Tc],Fi(),[this.alignEl=new bt(l.align),this.valignEl=new Ft(l.valign),this.textwrapEl=new Xu],Fi(),[this.freezeEl=new id,this.autofilterEl=new st,this.formulaEl=new Zc]];var o=r.settings.extendToolbar,i=o===void 0?{}:o;if(i.left&&i.left.length>0){this.items.unshift(Fi());var c=i.left.map(vs.bind(this));this.items.unshift(c)}if(i.right&&i.right.length>0){this.items.push(Fi());var u=i.right.map(vs.bind(this));this.items.push(u)}this.items.push([this.moreEl=new ai]),this.el=qe("div","".concat(un,"-toolbar")),this.btns=qe("div","".concat(un,"-toolbar-btns")),this.items.forEach(function(h){Array.isArray(h)?h.forEach(function(f){n.btns.child(f.el),f.change=function(){n.change.apply(n,arguments)}}):n.btns.child(h.el)}),this.el.child(this.btns),a?this.el.hide():(this.reset(),setTimeout(function(){Ja.call(n),ko.call(n)},0),Ws(window,"resize",function(){ko.call(n)}))},[{key:"paintformatActive",value:function(){return this.paintformatEl.active()}},{key:"paintformatToggle",value:function(){this.paintformatEl.toggle()}},{key:"trigger",value:function(e){this["".concat(e,"El")].click()}},{key:"resetData",value:function(e){this.data=e,this.reset()}},{key:"reset",value:function(){if(!this.isHide){var e=this.data,r=e.getSelectedCellStyle();this.undoEl.setState(!e.canUndo()),this.redoEl.setState(!e.canRedo()),this.mergeEl.setState(e.canUnmerge(),!e.selector.multiple()),this.autofilterEl.setState(!e.canAutofilter());var t=r.font,n=r.format;this.formatEl.setState(n),this.fontEl.setState(t.name),this.fontSizeEl.setState(t.size),this.boldEl.setState(t.bold),this.italicEl.setState(t.italic),this.underlineEl.setState(r.underline),this.strikeEl.setState(r.strike),this.textColorEl.setState(r.color),this.fillColorEl.setState(r.bgcolor),this.alignEl.setState(r.align),this.valignEl.setState(r.valign),this.textwrapEl.setState(r.textwrap),this.freezeEl.setState(e.freezeIsActive())}}}])}(),a4=function(){return ne(function e(r,t){var n,a=this,l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"600px";le(this,e),this.title=r,this.el=qe("div","".concat(un,"-modal")).css("width",l).children(qe("div","".concat(un,"-modal-header")).children(new ws("close").on("click.stop",function(){return a.hide()}),this.title),(n=qe("div","".concat(un,"-modal-content"))).children.apply(n,rt(t))).hide()},[{key:"show",value:function(){var e=this;this.dimmer=qe("div","".concat(un,"-dimmer active")),document.body.appendChild(this.dimmer.el);var r=this.el.show().box(),t=r.width,n=r.height,a=document.documentElement,l=a.clientHeight,o=a.clientWidth;this.el.offset({left:(o-t)/2,top:(l-n)/3}),window.xkeydownEsc=function(i){i.keyCode===27&&e.hide()},Ws(window,"keydown",window.xkeydownEsc)}},{key:"hide",value:function(){this.el.hide(),document.body.removeChild(this.dimmer.el),xl(window,"keydown",window.xkeydownEsc),delete window.xkeydownEsc}}])}(),il=function(){return ne(function e(r,t){var n=this;le(this,e),this.vchange=function(){},this.el=qe("div","".concat(un,"-form-input")),this.input=qe("input","").css("width",r).on("input",function(a){return n.vchange(a)}).attr("placeholder",t),this.el.child(this.input)},[{key:"focus",value:function(){var e=this;setTimeout(function(){e.input.el.focus()},10)}},{key:"hint",value:function(e){this.input.attr("placeholder",e)}},{key:"val",value:function(e){return this.input.val(e)}}])}(),cp=function(){return ne(function e(r,t,n){var a=this,l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(i){return i},o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:function(){};le(this,e),this.key=r,this.getTitle=l,this.vchange=function(){},this.el=qe("div","".concat(un,"-form-select")),this.suggest=new Nn(t.map(function(i){return{key:i,title:a.getTitle(i)}}),function(i){a.itemClick(i.key),o(i.key),a.vchange(i.key)},n,this.el),this.el.children(this.itemEl=qe("div","input-text").html(this.getTitle(r)),this.suggest.el).on("click",function(){return a.show()})},[{key:"show",value:function(){this.suggest.search("")}},{key:"itemClick",value:function(e){this.key=e,this.itemEl.html(this.getTitle(e))}},{key:"val",value:function(e){return e!==void 0?(this.key=e,this.itemEl.html(this.getTitle(e)),this):this.key}}])}(),s4={number:/(^\d+$)|(^\d+(\.\d{0,4})?$)/,date:/^\d{4}-\d{1,2}-\d{1,2}$/},Tu=function(){return ne(function e(r,t,n,a){var l=this;le(this,e),this.label="",this.rule=t,n&&(this.label=qe("label","label").css("width","".concat(a,"px")).html(n)),this.tip=qe("div","tip").child("tip").hide(),this.input=r,this.input.vchange=function(){return l.validate()},this.el=qe("div","".concat(un,"-form-field")).children(this.label,r.el,this.tip)},[{key:"isShow",value:function(){return this.el.css("display")!=="none"}},{key:"show",value:function(){this.el.show()}},{key:"hide",value:function(){return this.el.hide(),this}},{key:"val",value:function(e){return this.input.val(e)}},{key:"hint",value:function(e){this.input.hint(e)}},{key:"validate",value:function(){var e=this.input,r=this.rule,t=this.tip,n=this.el,a=e.val();return r.required&&/^\s*$/.test(a)?(t.html(li("validation.required")),n.addClass("error"),!1):(r.type||r.pattern)&&!(r.pattern||s4[r.type]).test(a)?(t.html(li("validation.notMatch")),n.addClass("error"),!1):(n.removeClass("error"),!0)}}])}();function xm(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xm=function(){return!!e})()}var W0=function(e){function r(){var t;le(this,r);var n,a,l,o=new Tu(new cp("cell",["cell"],"100%",function(g){return li("dataValidation.modeType.".concat(g))}),{required:!0},"".concat(li("dataValidation.range"),":"),100),i=new Tu(new il("120px","E3 or E3:F12"),{required:!0,pattern:/^([A-Z]{1,2}[1-9]\d*)(:[A-Z]{1,2}[1-9]\d*)?$/}),c=new Tu(new cp("list",["list","number","date","phone","email"],"100%",function(g){return li("dataValidation.type.".concat(g))},function(g){return t.criteriaSelected(g)}),{required:!0},"".concat(li("dataValidation.criteria"),":"),100),u=new Tu(new cp("be",["be","nbe","eq","neq","lt","lte","gt","gte"],"160px",function(g){return li("dataValidation.operator.".concat(g))},function(g){return t.criteriaOperatorSelected(g)}),{required:!0}).hide(),h=new Tu(new il("70px","10"),{required:!0}).hide(),f=new Tu(new il("70px","100"),{required:!0,type:"number"}).hide(),d=new Tu(new il("120px","a,b,c"),{required:!0}),p=new Tu(new il("70px","10"),{required:!0,type:"number"}).hide();return n=this,a=r,l=[li("contextmenu.validation"),[qe("div","".concat(un,"-form-fields")).children(o.el,i.el),qe("div","".concat(un,"-form-fields")).children(c.el,u.el,h.el,f.el,p.el,d.el),qe("div","".concat(un,"-buttons")).children(new xc("cancel").on("click",function(){return t.btnClick("cancel")}),new xc("remove").on("click",function(){return t.btnClick("remove")}),new xc("save","primary").on("click",function(){return t.btnClick("save")}))]],a=Gr(a),(t=Bn(n,xm()?Reflect.construct(a,l||[],Gr(n).constructor):a.apply(n,l))).mf=o,t.rf=i,t.cf=c,t.of=u,t.minvf=h,t.maxvf=f,t.vf=p,t.svf=d,t.change=function(){},t}return nr(r,e),ne(r,[{key:"showVf",value:function(t){var n=t==="date"?"2018-11-12":"10",a=this.vf;a.input.hint(n),a.show()}},{key:"criteriaSelected",value:function(t){var n=this.of,a=this.minvf,l=this.maxvf,o=this.vf,i=this.svf;t==="date"||t==="number"?(n.show(),a.rule.type=t,l.rule.type=t,t==="date"?(a.hint("2018-11-12"),l.hint("2019-11-12")):(a.hint("10"),l.hint("100")),a.show(),l.show(),o.hide(),i.hide()):(t==="list"?i.show():i.hide(),o.hide(),n.hide(),a.hide(),l.hide())}},{key:"criteriaOperatorSelected",value:function(t){if(t){var n=this.minvf,a=this.maxvf,l=this.vf;if(t==="be"||t==="nbe")n.show(),a.show(),l.hide();else{var o=this.cf.val();l.rule.type=o,o==="date"?l.hint("2018-11-12"):l.hint("10"),l.show(),n.hide(),a.hide()}}}},{key:"btnClick",value:function(t){if(t==="cancel")this.hide();else if(t==="remove")this.change("remove"),this.hide();else if(t==="save"){for(var n=["mf","rf","cf","of","svf","vf","minvf","maxvf"],a=0;ah.width)t.move({left:a+c-h.width});else{var f=e.freezeTotalWidth();oh.height)r.move({top:l+u-h.height-1});else{var d=e.freezeTotalHeight();i3&&arguments[3]!==void 0)||arguments[3],a=arguments.length>4&&arguments[4]!==void 0&&arguments[4];if(r!==-1||t!==-1){this.table;var l=this.selector;this.toolbar;var o=this.data,i=this.contextMenu,c=o.getCell(r,t);e?(l.setEnd(r,t,a),this.trigger("cells-selected",c,l.range)):(l.set(r,t,n),this.trigger("cell-selected",c,r,t)),i.setMode(r===-1||t===-1?"row-col":"range")}}function Au(e,r){var t=this.selector,n=this.data,a=n.rows,l=n.cols,o=ge(t.indexes,2),i=o[0],c=o[1],u=t.range,h=u.eri,f=u.eci;if(e){var d=ge(t.moveIndexes,2);i=d[0],c=d[1]}r==="left"?c>0&&(c-=1):r==="right"?(f!==c&&(c=f),c0&&(i-=1):r==="down"?(h!==i&&(i=h),ic.indexWidth&&t>i.height)return n.hide(),void a.hide();var u=l.box(),h=o.getCellRectByXY(e.offsetX,e.offsetY);h.ri>=0&&h.ci===-1?(h.width=c.indexWidth,n.show(h,{width:u.width}),i.isHide(h.ri-1)?n.showUnhide(h.ri):n.hideUnhide()):n.hide(),h.ri===-1&&h.ci>=0?(h.height=i.height,a.show(h,{height:u.height}),c.isHide(h.ci-1)?a.showUnhide(h.ci):a.hideUnhide()):a.hide()}}function q0(e){var r=this.verticalScrollbar,t=this.horizontalScrollbar,n=this.data,a=r.scroll().top,l=t.scroll().left,o=n.rows,i=n.cols,c=e.deltaY,u=e.deltaX,h=function(v,b){var _=v,w=0;do w=b(_),_+=1;while(w<=0);return w},f=function(v){if(v>0){var b=n.scroll.ri+1;if(b=0){var k=h(w,function(C){return o.getHeight(C)});r.move({top:w===0?0:a-k})}}},d=Math.abs(c),p=Math.abs(u),g=Math.max(d,p);/Firefox/i.test(window.navigator.userAgent)&&dv(f(e.detail),50),g===p&&dv(function(v){if(v>0){var b=n.scroll.ci+1;if(b=0){var k=h(w,function(C){return i.getWidth(C)});t.move({left:w===0?0:l-k})}}}(u),50),g===d&&dv(f(c),50)}function Py(e,r){var t=this.verticalScrollbar,n=this.horizontalScrollbar,a=t.scroll().top,l=n.scroll().left;e==="left"||e==="right"?n.move({left:l-r}):e!=="up"&&e!=="down"||t.move({top:a-r})}function Y0(){var e=this.data,r=this.verticalScrollbar,t=this.getTableOffset().height,n=e.exceptRowTotalHeight(0,-1);r.set(t,e.rows.totalHeight()-n)}function fp(){var e=this.data,r=this.horizontalScrollbar,t=this.getTableOffset().width;e&&r.set(t,e.cols.totalWidth())}function Dy(){var e=this.selector,r=this.data,t=this.editor,n=ge(r.freeze,2),a=n[0],l=n[1];if(a>0||l>0){var o=r.freezeTotalWidth(),i=r.freezeTotalHeight();t.setFreezeLengths(o,i)}e.resetAreaOffset()}function Po(){var e=this.tableEl,r=this.overlayerEl,t=this.overlayerCEl,n=this.table,a=this.toolbar,l=this.selector,o=this.el,i=this.getTableOffset(),c=this.getRect();e.attr(c),r.offset(c),t.offset(i),o.css("width","".concat(c.width,"px")),Y0.call(this),fp.call(this),Dy.call(this),n.render(),a.reset(),l.reset()}function Cc(){var e=this.data,r=this.selector;e.clearClipboard(),r.hideClipboard()}function hp(e){var r=this.data,t=this.selector;r.settings.mode!=="read"&&(r.copy(),r.copyToSystemClipboard(e),t.showClipboard())}function Fy(){var e=this.data,r=this.selector;e.settings.mode!=="read"&&(e.cut(),r.showClipboard())}function Em(e,r){var t=this,n=this.data;if(n.settings.mode!=="read"){if(n.clipboard.isClear())n.pasteFromSystemClipboard(function(){return Po.call(t)},function(l){t.trigger("pasted-clipboard",l)});else if(n.paste(e,function(l){return Iy("Tip",l)}))Po.call(this);else if(r){var a=r.clipboardData.getData("text/plain");this.data.pasteFromText(a),Po.call(this)}}}function l4(){this.data.hideRowsOrCols(),Po.call(this)}function Tm(e,r){this.data.unhideRowsOrCols(e,r),Po.call(this)}function K0(){this.data.autofilter(),Po.call(this)}function pv(){var e=this.toolbar;e.paintformatActive()&&(Em.call(this,"format"),Cc.call(this),e.paintformatToggle())}function Ly(e){var r=this,t=this.selector,n=this.data,a=this.table,l=this.sortFilter,o=e.offsetX,i=e.offsetY,c=e.target.className==="".concat(un,"-selector-corner"),u=n.getCellRectByXY(o,i),h=u.left,f=u.top,d=u.width,p=u.height,g=u.ri,v=u.ci,b=n.autoFilter;if(b.includes(g,v)&&h+d-20t.height/2&&(n="bottom"),e.setOffset(r,n)}function Cm(){var e=this.editor,r=this.data;r.settings.mode!=="read"&&(dp.call(this),e.setCell(r.getSelectedCell(),r.getSelectedValidator()),Cc.call(this))}function u4(e){var r=this,t=this.data,n=this.table,a=this.selector;t.scrolly(e,function(){a.resetBRLAreaOffset(),dp.call(r),n.render()})}function Do(e){var r=this,t=this.data,n=this.table,a=this.selector;t.scrollx(e,function(){a.resetBRTAreaOffset(),dp.call(r),n.render()})}function Tl(e,r){var t=e.ri,n=this.table,a=this.selector,l=this.data,o=a.range,i=o.sri,c=o.eri;if(t>=i&&t<=c)for(var u=i;u<=c;u+=1)l.rows.setHeight(u,r);else l.rows.setHeight(t,r);n.render(),a.resetAreaOffset(),Y0.call(this),dp.call(this)}function c4(e,r){var t=e.ci,n=this.table,a=this.selector,l=this.data,o=a.range,i=o.sci,c=o.eci;if(t>=i&&t<=c)for(var u=i;u<=c;u+=1)l.cols.setWidth(u,r);else l.cols.setWidth(t,r);n.render(),a.resetAreaOffset(),fp.call(this),dp.call(this)}function mv(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"finished",t=this.data,n=this.table;if(t.settings.mode!=="read"){t.setSelectedCellText(e,r);var a=t.selector,l=a.ri,o=a.ci;r==="finished"?n.render():this.trigger("cell-edited",e,l,o)}}function Am(e){var r=this.data;r.settings.mode!=="read"&&(e==="insert-row"?r.insert("row"):e==="delete-row"?r.delete("row"):e==="insert-column"?r.insert("column"):e==="delete-column"?r.delete("column"):e==="delete-cell"?r.deleteCell():e==="delete-cell-format"?r.deleteCell("format"):e==="delete-cell-text"?r.deleteCell("text"):e==="cell-printable"?r.setSelectedCellAttr("printable",!0):e==="cell-non-printable"?r.setSelectedCellAttr("printable",!1):e==="cell-editable"?r.setSelectedCellAttr("editable",!0):e==="cell-non-editable"&&r.setSelectedCellAttr("editable",!1),Cc.call(this),Po.call(this))}function f4(e,r){var t=this.data;if(e==="undo")this.undo();else if(e==="redo")this.redo();else if(e==="print")this.print.preview();else if(e==="paintformat")r===!0?hp.call(this):Cc.call(this);else if(e==="clearformat")Am.call(this,"delete-cell-format");else if(e!=="link"){if(e!=="chart")if(e==="autofilter")K0.call(this);else if(e==="freeze")if(r){var n=t.selector,a=n.ri,l=n.ci;this.freeze(a,l)}else this.freeze(0,0);else t.setSelectedCellAttr(e,r),e!=="formula"||t.selector.multiple()||Cm.call(this),Po.call(this)}}function gv(e,r,t,n){this.data.setAutoFilter(e,r,t,n),Po.call(this)}function Om(){var e,r,t,n,a,l,o=this,i=this.selector,c=this.overlayerEl,u=this.rowResizer,h=this.colResizer,f=this.verticalScrollbar,d=this.horizontalScrollbar,p=this.editor,g=this.contextMenu,v=this.toolbar,b=this.modalValidation,_=this.sortFilter;c.on("mousemove",function(w){Ny.call(o,w)}).on("mousedown",function(w){g.hide(),w.buttons===2?(o.data.xyInSelectedRect(w.offsetX,w.offsetY)||Ly.call(o,w),g.setPosition(w.offsetX,w.offsetY),w.stopPropagation()):w.detail===2?Cm.call(o):Ly.call(o,w)}).on("mousewheel.stop",function(w){q0.call(o,w)}).on("mouseout",function(w){var k=w.offsetX;w.offsetY<=0&&h.hide(),k<=0&&u.hide()}),i.inputChange=function(w){mv.call(o,w,"input"),Cm.call(o)},e=c.el,t=(r={move:function(w,k){Py.call(o,w,k)}}).move,n=r.end,a=0,l=0,Ws(e,"touchstart",function(w){var k=w.touches[0],C=k.pageX,O=k.pageY;a=C,l=O}),Ws(e,"touchmove",function(w){if(t){var k=w.changedTouches[0],C=k.pageX,O=k.pageY,P=C-a,B=O-l;(Math.abs(P)>10||Math.abs(B)>10)&&(ku(P,B,w,t),a=C,l=O),w.preventDefault()}}),Ws(e,"touchend",function(w){if(n){var k=w.changedTouches[0],C=k.pageX,O=k.pageY;ku(C-a,O-l,w,n)}}),v.change=function(w,k){return f4.call(o,w,k)},_.ok=function(w,k,C,O){return gv.call(o,w,k,C,O)},u.finishedFn=function(w,k){Tl.call(o,w,k)},h.finishedFn=function(w,k){c4.call(o,w,k)},u.unhideFn=function(w){Tm.call(o,"row",w)},h.unhideFn=function(w){Tm.call(o,"col",w)},f.moveFn=function(w,k){u4.call(o,w,k)},d.moveFn=function(w,k){Do.call(o,w,k)},p.change=function(w,k){mv.call(o,k,w)},b.change=function(w){if(w==="save"){for(var k,C=arguments.length,O=new Array(C>1?C-1:0),P=1;P=65&&k<=90||k>=48&&k<=57||k>=96&&k<=105||w.key==="="?(mv.call(o,w.key,"input"),Cm.call(o)):k===113&&Cm.call(o)}}})}var vv=function(){return ne(function e(r,t){var n=this;le(this,e),this.eventMap=function(){var c=new Map;function u(f,d){var p;return c.has(f)&&(p=c.get(f),Array.isArray(p)&&p.push(d)||!1)||c.set(f,[].concat(d))}function h(f,d){var p,g;return c.has(f)&&(g=(p=c.get(f)).indexOf(d))>=0&&p.splice(g,1)&&c.get(f).length===0&&c.delete(f)}return{get current(){return c},on:u,once:function(f,d){var p=function(){for(var g=arguments.length,v=new Array(g),b=0;b1?t-1:0),a=1;a0&&arguments[0]!==void 0?arguments[0]:function(){},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:function(){},a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},l=arguments.length>3&&arguments[3]!==void 0?arguments[3]:function(){};le(this,e),this.swapFunc=n,this.updateFunc=l,this.dataNames=[],this.activeEl=null,this.deleteEl=null,this.items=[],this.moreEl=new Mm(function(o){r.clickSwap2(r.items[o])}),this.contextMenu=new h4,this.contextMenu.itemClick=a,this.el=qe("div","".concat(un,"-bottombar")).children(this.contextMenu.el,this.menuEl=qe("ul","".concat(un,"-menu")).child(qe("li","").children(new ws("add").on("click",function(){t()}),qe("span","").child(this.moreEl))))},[{key:"addItem",value:function(e,r,t){var n=this;this.dataNames.push(e);var a=qe("li",r?"active":"").child(e);a.on("click",function(){n.clickSwap2(a)}).on("contextmenu",function(l){if(t.mode!=="read"){var o=l.target,i=o.offsetLeft,c=o.offsetHeight;n.contextMenu.setOffset({left:i,bottom:c+1}),n.deleteEl=a}}).on("dblclick",function(){if(t.mode!=="read"){var l=a.html(),o=new il("auto","");o.val(l),o.input.on("blur",function(i){var c=i.target.value,u=n.dataNames.findIndex(function(h){return h===l});n.renameItem(u,c)}),a.html("").child(o.el),o.focus()}}),r&&this.clickSwap(a),this.items.push(a),this.menuEl.child(a),this.moreEl.reset(this.dataNames)}},{key:"renameItem",value:function(e,r){this.dataNames.splice(e,1,r),this.moreEl.reset(this.dataNames),this.items[e].html("").child(r),this.updateFunc(e,r)}},{key:"clear",value:function(){var e=this;this.items.forEach(function(r){e.menuEl.removeChild(r.el)}),this.items=[],this.dataNames=[],this.moreEl.reset(this.dataNames)}},{key:"deleteItem",value:function(){var e=this.activeEl,r=this.deleteEl;if(this.items.length>1){var t=this.items.findIndex(function(a){return a===r});if(this.items.splice(t,1),this.dataNames.splice(t,1),this.menuEl.removeChild(r.el),this.moreEl.reset(this.dataNames),e===r){var n=ge(this.items,1)[0];return this.activeEl=n,this.activeEl.toggle(),[t,0]}return[t,-1]}return[-1]}},{key:"clickSwap2",value:function(e){var r=this.items.findIndex(function(t){return t===e});this.clickSwap(e),this.activeEl.toggle(),this.swapFunc(r)}},{key:"clickSwap",value:function(e){this.activeEl!==null&&this.activeEl.toggle(),this.activeEl=e}}])}();function By(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),t.push.apply(t,n)}return t}var jy=function(){return ne(function e(r){var t=this,n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};le(this,e);var a=r;this.options=function(o){for(var i=1;i1&&arguments[1]!==void 0)||arguments[1],n=e||"sheet".concat(this.sheetIndex),a=new No(n,this.options);return a.change=function(){for(var l,o=arguments.length,i=new Array(o),c=0;c=0&&(this.datas.splice(r,1),t>=0&&this.sheet.resetData(this.datas[t]),this.sheet.trigger("change"))}}},{key:"loadData",value:function(e){var r=Array.isArray(e)?e:[e];if(this.bottombar!==null&&this.bottombar.clear(),this.datas=[],r.length>0)for(var t=0;t3&&arguments[3]!==void 0?arguments[3]:0;return this.datas[n].setCellText(e,r,t,"finished"),this}},{key:"cell",value:function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[t].getCell(e,r)}},{key:"cellStyle",value:function(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;return this.datas[t].getCellStyle(e,r)}},{key:"reRender",value:function(){return this.sheet.table.render(),this}},{key:"on",value:function(e,r){return this.sheet.on(e,r),this}},{key:"validate",value:function(){return this.data.validations.errors.size<=0}},{key:"change",value:function(e){return this.sheet.on("change",e),this}}],[{key:"locale",value:function(e,r){Ia(e,r)}}])}();function zy(e,r,t,n,a,l,o){try{var i=e[l](o),c=i.value}catch(u){return void t(u)}i.done?r(c):Promise.resolve(c).then(n,a)}function Aa(e){return function(){var r=this,t=arguments;return new Promise(function(n,a){var l=e.apply(r,t);function o(c){zy(l,n,a,o,i,"next",c)}function i(c){zy(l,n,a,o,i,"throw",c)}o(void 0)})}}function mp(e,r){this.v=e,this.k=r}function bv(e){return new mp(e,0)}function Xe(e){var r,t;function n(l,o){try{var i=e[l](o),c=i.value,u=c instanceof mp;Promise.resolve(u?c.v:c).then(function(h){if(u){var f=l==="return"?"return":"next";if(!c.k||h.done)return n(f,h);h=e[f](h).value}a(i.done?"return":"normal",h)},function(h){n("throw",h)})}catch(h){a("throw",h)}}function a(l,o){switch(l){case"return":r.resolve({value:o,done:!0});break;case"throw":r.reject(o);break;default:r.resolve({value:o,done:!1})}(r=r.next)?n(r.key,r.arg):t=null}this._invoke=function(l,o){return new Promise(function(i,c){var u={key:l,arg:o,resolve:i,reject:c,next:null};t?t=t.next=u:(r=t=u,n(l,o))})},typeof e.return!="function"&&(this.return=void 0)}window&&(window.x_spreadsheet=function(e){return new jy(e,arguments.length>1&&arguments[1]!==void 0?arguments[1]:{})},window.x_spreadsheet.locale=function(e,r){return Ia(e,r)}),Xe.prototype[typeof Symbol=="function"&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Xe.prototype.next=function(e){return this._invoke("next",e)},Xe.prototype.throw=function(e){return this._invoke("throw",e)},Xe.prototype.return=function(e){return this._invoke("return",e)};var Ji=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof th<"u"?th:typeof self<"u"?self:{};function Im(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Ou={exports:{}},Oa={exports:{}};(function(e){function r(t){return e.exports=r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},e.exports.__esModule=!0,e.exports.default=e.exports,r(t)}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(Oa);var p4=Oa.exports;(function(e){var r=p4.default;function t(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */e.exports=t=function(){return a},e.exports.__esModule=!0,e.exports.default=e.exports;var n,a={},l=Object.prototype,o=l.hasOwnProperty,i=Object.defineProperty||function(F,H,V){F[H]=V.value},c=typeof Symbol=="function"?Symbol:{},u=c.iterator||"@@iterator",h=c.asyncIterator||"@@asyncIterator",f=c.toStringTag||"@@toStringTag";function d(F,H,V){return Object.defineProperty(F,H,{value:V,enumerable:!0,configurable:!0,writable:!0}),F[H]}try{d({},"")}catch{d=function(H,V,ee){return H[V]=ee}}function p(F,H,V,ee){var U=H&&H.prototype instanceof C?H:C,ie=Object.create(U.prototype),ke=new M(ee||[]);return i(ie,"_invoke",{value:D(F,V,ke)}),ie}function g(F,H,V){try{return{type:"normal",arg:F.call(H,V)}}catch(ee){return{type:"throw",arg:ee}}}a.wrap=p;var v="suspendedStart",b="suspendedYield",_="executing",w="completed",k={};function C(){}function O(){}function P(){}var B={};d(B,u,function(){return this});var q=Object.getPrototypeOf,X=q&&q(q(R([])));X&&X!==l&&o.call(X,u)&&(B=X);var J=P.prototype=C.prototype=Object.create(B);function Z(F){["next","throw","return"].forEach(function(H){d(F,H,function(V){return this._invoke(H,V)})})}function ue(F,H){function V(U,ie,ke,me){var Ke=g(F[U],F,ie);if(Ke.type!=="throw"){var He=Ke.arg,ot=He.value;return ot&&r(ot)=="object"&&o.call(ot,"__await")?H.resolve(ot.__await).then(function(Ee){V("next",Ee,ke,me)},function(Ee){V("throw",Ee,ke,me)}):H.resolve(ot).then(function(Ee){He.value=Ee,ke(He)},function(Ee){return V("throw",Ee,ke,me)})}me(Ke.arg)}var ee;i(this,"_invoke",{value:function(U,ie){function ke(){return new H(function(me,Ke){V(U,ie,me,Ke)})}return ee=ee?ee.then(ke,ke):ke()}})}function D(F,H,V){var ee=v;return function(U,ie){if(ee===_)throw Error("Generator is already running");if(ee===w){if(U==="throw")throw ie;return{value:n,done:!0}}for(V.method=U,V.arg=ie;;){var ke=V.delegate;if(ke){var me=j(ke,V);if(me){if(me===k)continue;return me}}if(V.method==="next")V.sent=V._sent=V.arg;else if(V.method==="throw"){if(ee===v)throw ee=w,V.arg;V.dispatchException(V.arg)}else V.method==="return"&&V.abrupt("return",V.arg);ee=_;var Ke=g(F,H,V);if(Ke.type==="normal"){if(ee=V.done?w:b,Ke.arg===k)continue;return{value:Ke.arg,done:V.done}}Ke.type==="throw"&&(ee=w,V.method="throw",V.arg=Ke.arg)}}}function j(F,H){var V=H.method,ee=F.iterator[V];if(ee===n)return H.delegate=null,V==="throw"&&F.iterator.return&&(H.method="return",H.arg=n,j(F,H),H.method==="throw")||V!=="return"&&(H.method="throw",H.arg=new TypeError("The iterator does not provide a '"+V+"' method")),k;var U=g(ee,F.iterator,H.arg);if(U.type==="throw")return H.method="throw",H.arg=U.arg,H.delegate=null,k;var ie=U.arg;return ie?ie.done?(H[F.resultName]=ie.value,H.next=F.nextLoc,H.method!=="return"&&(H.method="next",H.arg=n),H.delegate=null,k):ie:(H.method="throw",H.arg=new TypeError("iterator result is not an object"),H.delegate=null,k)}function E(F){var H={tryLoc:F[0]};1 in F&&(H.catchLoc=F[1]),2 in F&&(H.finallyLoc=F[2],H.afterLoc=F[3]),this.tryEntries.push(H)}function A(F){var H=F.completion||{};H.type="normal",delete H.arg,F.completion=H}function M(F){this.tryEntries=[{tryLoc:"root"}],F.forEach(E,this),this.reset(!0)}function R(F){if(F||F===""){var H=F[u];if(H)return H.call(F);if(typeof F.next=="function")return F;if(!isNaN(F.length)){var V=-1,ee=function U(){for(;++V=0;--ee){var U=this.tryEntries[ee],ie=U.completion;if(U.tryLoc==="root")return V("end");if(U.tryLoc<=this.prev){var ke=o.call(U,"catchLoc"),me=o.call(U,"finallyLoc");if(ke&&me){if(this.prev=0;--V){var ee=this.tryEntries[V];if(ee.tryLoc<=this.prev&&o.call(ee,"finallyLoc")&&this.prev=0;--H){var V=this.tryEntries[H];if(V.finallyLoc===F)return this.complete(V.completion,V.afterLoc),A(V),k}},catch:function(F){for(var H=this.tryEntries.length-1;H>=0;--H){var V=this.tryEntries[H];if(V.tryLoc===F){var ee=V.completion;if(ee.type==="throw"){var U=ee.arg;A(V)}return U}}throw Error("illegal catch attempt")},delegateYield:function(F,H,V){return this.delegate={iterator:R(F),resultName:H,nextLoc:V},this.method==="next"&&(this.arg=n),k}},a}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports})(Ou);var X0=(0,Ou.exports)(),m4=X0;try{regeneratorRuntime=X0}catch{typeof globalThis=="object"?globalThis.regeneratorRuntime=X0:Function("r","regeneratorRuntime = r")(X0)}const qn=Im(m4);function yv(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var Uy={exports:{}};function $y(e,r,t,n){var a=Ne(Gr(1&n?e.prototype:e),r,t);return 2&n&&typeof a=="function"?function(l){return a.apply(t,l)}:a}function zr(e,r,t){return r=Gr(r),Bn(e,Vy()?Reflect.construct(r,t||[],Gr(e).constructor):r.apply(e,t))}function Vy(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Vy=function(){return!!e})()}function Zu(e,r){var t=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(c,u){if(c){if(typeof c=="string")return Wy(c,u);var h={}.toString.call(c).slice(8,-1);return h==="Object"&&c.constructor&&(h=c.constructor.name),h==="Map"||h==="Set"?Array.from(c):h==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(h)?Wy(c,u):void 0}}(e))||r){t&&(e=t);var n=0,a=function(){};return{s:a,n:function(){return n>=e.length?{done:!0}:{done:!1,value:e[n++]}},e:function(c){throw c},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var l,o=!0,i=!1;return{s:function(){t=t.call(e)},n:function(){var c=t.next();return o=c.done,c},e:function(c){i=!0,l=c},f:function(){try{o||t.return==null||t.return()}finally{if(i)throw l}}}}function Wy(e,r){(r==null||r>e.length)&&(r=e.length);for(var t=0,n=Array(r);t2&&arguments[2]!==void 0?arguments[2]:0;if(this.worksheet=o,i)if(typeof i=="string"){var u=n.decodeAddress(i);this.nativeCol=u.col+c,this.nativeColOff=0,this.nativeRow=u.row+c,this.nativeRowOff=0}else i.nativeCol!==void 0?(this.nativeCol=i.nativeCol||0,this.nativeColOff=i.nativeColOff||0,this.nativeRow=i.nativeRow||0,this.nativeRowOff=i.nativeRowOff||0):i.col!==void 0?(this.col=i.col+c,this.row=i.row+c):(this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0);else this.nativeCol=0,this.nativeColOff=0,this.nativeRow=0,this.nativeRowOff=0}return ne(l,[{key:"col",get:function(){return this.nativeCol+Math.min(this.colWidth-1,this.nativeColOff)/this.colWidth},set:function(o){this.nativeCol=Math.floor(o),this.nativeColOff=Math.floor((o-this.nativeCol)*this.colWidth)}},{key:"row",get:function(){return this.nativeRow+Math.min(this.rowHeight-1,this.nativeRowOff)/this.rowHeight},set:function(o){this.nativeRow=Math.floor(o),this.nativeRowOff=Math.floor((o-this.nativeRow)*this.rowHeight)}},{key:"colWidth",get:function(){return this.worksheet&&this.worksheet.getColumn(this.nativeCol+1)&&this.worksheet.getColumn(this.nativeCol+1).isCustomWidth?Math.floor(1e4*this.worksheet.getColumn(this.nativeCol+1).width):64e4}},{key:"rowHeight",get:function(){return this.worksheet&&this.worksheet.getRow(this.nativeRow+1)&&this.worksheet.getRow(this.nativeRow+1).height?Math.floor(1e4*this.worksheet.getRow(this.nativeRow+1).height):18e4}},{key:"model",get:function(){return{nativeCol:this.nativeCol,nativeColOff:this.nativeColOff,nativeRow:this.nativeRow,nativeRowOff:this.nativeRowOff}},set:function(o){this.nativeCol=o.nativeCol,this.nativeColOff=o.nativeColOff,this.nativeRow=o.nativeRow,this.nativeRowOff=o.nativeRowOff}}],[{key:"asInstance",value:function(o){return o instanceof l||o==null?o:new l(o)}}])}();r.exports=a},{"../utils/col-cache":19}],3:[function(e,r,t){var n=e("../utils/col-cache"),a=e("../utils/under-dash"),l=e("./enums"),o=e("../utils/shared-formula").slideFormula,i=e("./note"),c=function(){function P(B,q,X){if(le(this,P),!B||!q)throw new Error("A Cell needs a Row");this._row=B,this._column=q,n.validateAddress(X),this._address=X,this._value=O.create(P.Types.Null,this),this.style=this._mergeStyle(B.style,q.style,{}),this._mergeCount=0}return ne(P,[{key:"worksheet",get:function(){return this._row.worksheet}},{key:"workbook",get:function(){return this._row.worksheet.workbook}},{key:"destroy",value:function(){delete this.style,delete this._value,delete this._row,delete this._column,delete this._address}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(B){this.style.numFmt=B}},{key:"font",get:function(){return this.style.font},set:function(B){this.style.font=B}},{key:"alignment",get:function(){return this.style.alignment},set:function(B){this.style.alignment=B}},{key:"border",get:function(){return this.style.border},set:function(B){this.style.border=B}},{key:"fill",get:function(){return this.style.fill},set:function(B){this.style.fill=B}},{key:"protection",get:function(){return this.style.protection},set:function(B){this.style.protection=B}},{key:"_mergeStyle",value:function(B,q,X){var J=B&&B.numFmt||q&&q.numFmt;J&&(X.numFmt=J);var Z=B&&B.font||q&&q.font;Z&&(X.font=Z);var ue=B&&B.alignment||q&&q.alignment;ue&&(X.alignment=ue);var D=B&&B.border||q&&q.border;D&&(X.border=D);var j=B&&B.fill||q&&q.fill;j&&(X.fill=j);var E=B&&B.protection||q&&q.protection;return E&&(X.protection=E),X}},{key:"address",get:function(){return this._address}},{key:"row",get:function(){return this._row.number}},{key:"col",get:function(){return this._column.number}},{key:"$col$row",get:function(){return"$".concat(this._column.letter,"$").concat(this.row)}},{key:"type",get:function(){return this._value.type}},{key:"effectiveType",get:function(){return this._value.effectiveType}},{key:"toCsvString",value:function(){return this._value.toCsvString()}},{key:"addMergeRef",value:function(){this._mergeCount++}},{key:"releaseMergeRef",value:function(){this._mergeCount--}},{key:"isMerged",get:function(){return this._mergeCount>0||this.type===P.Types.Merge}},{key:"merge",value:function(B,q){this._value.release(),this._value=O.create(P.Types.Merge,this,B),q||(this.style=B.style)}},{key:"unmerge",value:function(){this.type===P.Types.Merge&&(this._value.release(),this._value=O.create(P.Types.Null,this),this.style=this._mergeStyle(this._row.style,this._column.style,{}))}},{key:"isMergedTo",value:function(B){return this._value.type===P.Types.Merge&&this._value.isMergedTo(B)}},{key:"master",get:function(){return this.type===P.Types.Merge?this._value.master:this}},{key:"isHyperlink",get:function(){return this._value.type===P.Types.Hyperlink}},{key:"hyperlink",get:function(){return this._value.hyperlink}},{key:"value",get:function(){return this._value.value},set:function(B){this.type!==P.Types.Merge?(this._value.release(),this._value=O.create(O.getType(B),this,B)):this._value.master.value=B}},{key:"note",get:function(){return this._comment&&this._comment.note},set:function(B){this._comment=new i(B)}},{key:"text",get:function(){return this._value.toString()}},{key:"html",get:function(){return a.escapeHtml(this.text)}},{key:"toString",value:function(){return this.text}},{key:"_upgradeToHyperlink",value:function(B){this.type===P.Types.String&&(this._value=O.create(P.Types.Hyperlink,this,{text:this._value.value,hyperlink:B}))}},{key:"formula",get:function(){return this._value.formula}},{key:"result",get:function(){return this._value.result}},{key:"formulaType",get:function(){return this._value.formulaType}},{key:"fullAddress",get:function(){return{sheetName:this._row.worksheet.name,address:this.address,row:this.row,col:this.col}}},{key:"name",get:function(){return this.names[0]},set:function(B){this.names=[B]}},{key:"names",get:function(){return this.workbook.definedNames.getNamesEx(this.fullAddress)},set:function(B){var q=this,X=this.workbook.definedNames;X.removeAllNames(this.fullAddress),B.forEach(function(J){X.addEx(q.fullAddress,J)})}},{key:"addName",value:function(B){this.workbook.definedNames.addEx(this.fullAddress,B)}},{key:"removeName",value:function(B){this.workbook.definedNames.removeEx(this.fullAddress,B)}},{key:"removeAllNames",value:function(){this.workbook.definedNames.removeAllNames(this.fullAddress)}},{key:"_dataValidations",get:function(){return this.worksheet.dataValidations}},{key:"dataValidation",get:function(){return this._dataValidations.find(this.address)},set:function(B){this._dataValidations.add(this.address,B)}},{key:"model",get:function(){var B=this._value.model;return B.style=this.style,this._comment&&(B.comment=this._comment.model),B},set:function(B){this._value.release(),this._value=O.create(B.type,this),this._value.model=B,B.comment&&B.comment.type==="note"&&(this._comment=i.fromModel(B.comment)),B.style?this.style=B.style:this.style={}}}])}();c.Types=l.ValueType;var u=function(){function P(B){le(this,P),this.model={address:B.address,type:c.Types.Null}}return ne(P,[{key:"value",get:function(){return null},set:function(B){}},{key:"type",get:function(){return c.Types.Null}},{key:"effectiveType",get:function(){return c.Types.Null}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){}},{key:"toString",value:function(){return""}}])}(),h=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Number,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.Number}},{key:"effectiveType",get:function(){return c.Types.Number}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),f=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.String,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return'"'.concat(this.model.value.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),d=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.String,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"toString",value:function(){return this.model.value.richText.map(function(B){return B.text}).join("")}},{key:"type",get:function(){return c.Types.RichText}},{key:"effectiveType",get:function(){return c.Types.RichText}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return'"'.concat(this.text.replace(/"/g,'""'),'"')}},{key:"release",value:function(){}}])}(),p=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Date,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.Date}},{key:"effectiveType",get:function(){return c.Types.Date}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.value.toISOString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),g=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Hyperlink,text:q?q.text:void 0,hyperlink:q?q.hyperlink:void 0},q&&q.tooltip&&(this.model.tooltip=q.tooltip)}return ne(P,[{key:"value",get:function(){var B={text:this.model.text,hyperlink:this.model.hyperlink};return this.model.tooltip&&(B.tooltip=this.model.tooltip),B},set:function(B){this.model={text:B.text,hyperlink:B.hyperlink},B.tooltip&&(this.model.tooltip=B.tooltip)}},{key:"text",get:function(){return this.model.text},set:function(B){this.model.text=B}},{key:"hyperlink",get:function(){return this.model.hyperlink},set:function(B){this.model.hyperlink=B}},{key:"type",get:function(){return c.Types.Hyperlink}},{key:"effectiveType",get:function(){return c.Types.Hyperlink}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.hyperlink}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.text}}])}(),v=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Merge,master:q?q.address:void 0},this._master=q,q&&q.addMergeRef()}return ne(P,[{key:"value",get:function(){return this._master.value},set:function(B){B instanceof c?(this._master&&this._master.releaseMergeRef(),B.addMergeRef(),this._master=B):this._master.value=B}},{key:"isMergedTo",value:function(B){return B===this._master}},{key:"master",get:function(){return this._master}},{key:"type",get:function(){return c.Types.Merge}},{key:"effectiveType",get:function(){return this._master.effectiveType}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return""}},{key:"release",value:function(){this._master.releaseMergeRef()}},{key:"toString",value:function(){return this.value.toString()}}])}(),b=function(){function P(B,q){le(this,P),this.cell=B,this.model={address:B.address,type:c.Types.Formula,shareType:q?q.shareType:void 0,ref:q?q.ref:void 0,formula:q?q.formula:void 0,sharedFormula:q?q.sharedFormula:void 0,result:q?q.result:void 0}}return ne(P,[{key:"_copyModel",value:function(B){var q={},X=function(J){var Z=B[J];Z&&(q[J]=Z)};return X("formula"),X("result"),X("ref"),X("shareType"),X("sharedFormula"),q}},{key:"value",get:function(){return this._copyModel(this.model)},set:function(B){this.model=this._copyModel(B)}},{key:"validate",value:function(B){switch(O.getType(B)){case c.Types.Null:case c.Types.String:case c.Types.Number:case c.Types.Date:break;case c.Types.Hyperlink:case c.Types.Formula:default:throw new Error("Cannot process that type of result value")}}},{key:"dependencies",get:function(){return{ranges:this.formula.match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g),cells:this.formula.replace(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}:[A-Z]{1,3}\d{1,4}/g,"").match(/([a-zA-Z0-9]+!)?[A-Z]{1,3}\d{1,4}/g)}}},{key:"formula",get:function(){return this.model.formula||this._getTranslatedFormula()},set:function(B){this.model.formula=B}},{key:"formulaType",get:function(){return this.model.formula?l.FormulaType.Master:this.model.sharedFormula?l.FormulaType.Shared:l.FormulaType.None}},{key:"result",get:function(){return this.model.result},set:function(B){this.model.result=B}},{key:"type",get:function(){return c.Types.Formula}},{key:"effectiveType",get:function(){var B=this.model.result;return B==null?l.ValueType.Null:B instanceof String||typeof B=="string"?l.ValueType.String:typeof B=="number"?l.ValueType.Number:B instanceof Date?l.ValueType.Date:B.text&&B.hyperlink?l.ValueType.Hyperlink:B.formula?l.ValueType.Formula:l.ValueType.Null}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"_getTranslatedFormula",value:function(){if(!this._translatedFormula&&this.model.sharedFormula){var B=this.cell.worksheet.findCell(this.model.sharedFormula);this._translatedFormula=B&&o(B.formula,B.address,this.model.address)}return this._translatedFormula}},{key:"toCsvString",value:function(){return"".concat(this.model.result||"")}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.result?this.model.result.toString():""}}])}(),_=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.SharedString,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.SharedString}},{key:"effectiveType",get:function(){return c.Types.SharedString}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.value.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),w=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Boolean,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.Boolean}},{key:"effectiveType",get:function(){return c.Types.Boolean}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.value?1:0}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.toString()}}])}(),k=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.Error,value:q}}return ne(P,[{key:"value",get:function(){return this.model.value},set:function(B){this.model.value=B}},{key:"type",get:function(){return c.Types.Error}},{key:"effectiveType",get:function(){return c.Types.Error}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.toString()}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value.error.toString()}}])}(),C=function(){function P(B,q){le(this,P),this.model={address:B.address,type:c.Types.String,value:JSON.stringify(q),rawValue:q}}return ne(P,[{key:"value",get:function(){return this.model.rawValue},set:function(B){this.model.rawValue=B,this.model.value=JSON.stringify(B)}},{key:"type",get:function(){return c.Types.String}},{key:"effectiveType",get:function(){return c.Types.String}},{key:"address",get:function(){return this.model.address},set:function(B){this.model.address=B}},{key:"toCsvString",value:function(){return this.model.value}},{key:"release",value:function(){}},{key:"toString",value:function(){return this.model.value}}])}(),O={getType:function(P){return P==null?c.Types.Null:P instanceof String||typeof P=="string"?c.Types.String:typeof P=="number"?c.Types.Number:typeof P=="boolean"?c.Types.Boolean:P instanceof Date?c.Types.Date:P.text&&P.hyperlink?c.Types.Hyperlink:P.formula||P.sharedFormula?c.Types.Formula:P.richText?c.Types.RichText:P.sharedString?c.Types.SharedString:P.error?c.Types.Error:c.Types.JSON},types:[{t:c.Types.Null,f:u},{t:c.Types.Number,f:h},{t:c.Types.String,f},{t:c.Types.Date,f:p},{t:c.Types.Hyperlink,f:g},{t:c.Types.Formula,f:b},{t:c.Types.Merge,f:v},{t:c.Types.JSON,f:C},{t:c.Types.SharedString,f:_},{t:c.Types.RichText,f:d},{t:c.Types.Boolean,f:w},{t:c.Types.Error,f:k}].reduce(function(P,B){return P[B.t]=B.f,P},[]),create:function(P,B,q){var X=this.types[P];if(!X)throw new Error("Could not create Value of type ".concat(P));return new X(B,q)}};r.exports=c},{"../utils/col-cache":19,"../utils/shared-formula":23,"../utils/under-dash":26,"./enums":7,"./note":9}],4:[function(e,r,t){var n=e("../utils/under-dash"),a=e("./enums"),l=e("../utils/col-cache"),o=9,i=function(){function c(u,h,f){le(this,c),this._worksheet=u,this._number=h,f!==!1&&(this.defn=f)}return ne(c,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"letter",get:function(){return l.n2l(this._number)}},{key:"isCustomWidth",get:function(){return this.width!==void 0&&this.width!==o}},{key:"defn",get:function(){return{header:this._header,key:this.key,width:this.width,style:this.style,hidden:this.hidden,outlineLevel:this.outlineLevel}},set:function(u){u?(this.key=u.key,this.width=u.width!==void 0?u.width:o,this.outlineLevel=u.outlineLevel,u.style?this.style=u.style:this.style={},this.header=u.header,this._hidden=!!u.hidden):(delete this._header,delete this._key,delete this.width,this.style={},this.outlineLevel=0)}},{key:"headers",get:function(){return this._header&&this._header instanceof Array?this._header:[this._header]}},{key:"header",get:function(){return this._header},set:function(u){var h=this;u!==void 0?(this._header=u,this.headers.forEach(function(f,d){h._worksheet.getCell(d+1,h.number).value=f})):this._header=void 0}},{key:"key",get:function(){return this._key},set:function(u){(this._key&&this._worksheet.getColumnKey(this._key))===this&&this._worksheet.deleteColumnKey(this._key),this._key=u,u&&this._worksheet.setColumnKey(this._key,this)}},{key:"hidden",get:function(){return!!this._hidden},set:function(u){this._hidden=u}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(u){this._outlineLevel=u}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelCol)}},{key:"toString",value:function(){return JSON.stringify({key:this.key,width:this.width,headers:this.headers.length?this.headers:void 0})}},{key:"equivalentTo",value:function(u){return this.width===u.width&&this.hidden===u.hidden&&this.outlineLevel===u.outlineLevel&&n.isEqual(this.style,u.style)}},{key:"isDefault",get:function(){if(this.isCustomWidth||this.hidden||this.outlineLevel)return!1;var u=this.style;return!u||!(u.font||u.numFmt||u.alignment||u.border||u.fill||u.protection)}},{key:"headerCount",get:function(){return this.headers.length}},{key:"eachCell",value:function(u,h){var f=this.number;h||(h=u,u=null),this._worksheet.eachRow(u,function(d,p){h(d.getCell(f),p)})}},{key:"values",get:function(){var u=[];return this.eachCell(function(h,f){h&&h.type!==a.ValueType.Null&&(u[f]=h.value)}),u},set:function(u){var h=this;if(u){var f=this.number,d=0;u.hasOwnProperty("0")&&(d=1),u.forEach(function(p,g){h._worksheet.getCell(g+d,f).value=p})}}},{key:"_applyStyle",value:function(u,h){return this.style[u]=h,this.eachCell(function(f){f[u]=h}),h}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(u){this._applyStyle("numFmt",u)}},{key:"font",get:function(){return this.style.font},set:function(u){this._applyStyle("font",u)}},{key:"alignment",get:function(){return this.style.alignment},set:function(u){this._applyStyle("alignment",u)}},{key:"protection",get:function(){return this.style.protection},set:function(u){this._applyStyle("protection",u)}},{key:"border",get:function(){return this.style.border},set:function(u){this._applyStyle("border",u)}},{key:"fill",get:function(){return this.style.fill},set:function(u){this._applyStyle("fill",u)}}],[{key:"toModel",value:function(u){var h=[],f=null;return u&&u.forEach(function(d,p){d.isDefault?f&&(f=null):f&&d.equivalentTo(f)?f.max=p+1:(f={min:p+1,max:p+1,width:d.width!==void 0?d.width:o,style:d.style,isCustomWidth:d.isCustomWidth,hidden:d.hidden,outlineLevel:d.outlineLevel,collapsed:d.collapsed},h.push(f))}),h.length?h:void 0}},{key:"fromModel",value:function(u,h){var f=[],d=1,p=0;for(h=(h=h||[]).sort(function(v,b){return v.min-b.min});pthis.bottom)&&(this.bottom=c),(!this.model.right||u>this.right)&&(this.right=u)}},{key:"expandRow",value:function(o){if(o){var i=o.dimensions,c=o.number;i&&this.expand(c,i.min,c,i.max)}}},{key:"expandToAddress",value:function(o){var i=n.decodeEx(o);this.expand(i.row,i.col,i.row,i.col)}},{key:"tl",get:function(){return n.n2l(this.left)+this.top}},{key:"$t$l",get:function(){return"$".concat(n.n2l(this.left),"$").concat(this.top)}},{key:"br",get:function(){return n.n2l(this.right)+this.bottom}},{key:"$b$r",get:function(){return"$".concat(n.n2l(this.right),"$").concat(this.bottom)}},{key:"range",get:function(){return"".concat(this._serialisedSheetName+this.tl,":").concat(this.br)}},{key:"$range",get:function(){return"".concat(this._serialisedSheetName+this.$t$l,":").concat(this.$b$r)}},{key:"shortRange",get:function(){return this.count>1?this.range:this._serialisedSheetName+this.tl}},{key:"$shortRange",get:function(){return this.count>1?this.$range:this._serialisedSheetName+this.$t$l}},{key:"count",get:function(){return(1+this.bottom-this.top)*(1+this.right-this.left)}},{key:"toString",value:function(){return this.range}},{key:"intersects",value:function(o){return!(o.sheetName&&this.sheetName&&o.sheetName!==this.sheetName||o.bottomthis.bottom||o.rightthis.right)}},{key:"contains",value:function(o){var i=n.decodeEx(o);return this.containsEx(i)}},{key:"containsEx",value:function(o){return(!o.sheetName||!this.sheetName||o.sheetName===this.sheetName)&&o.row>=this.top&&o.row<=this.bottom&&o.col>=this.left&&o.col<=this.right}},{key:"forEachAddress",value:function(o){for(var i=this.left;i<=this.right;i++)for(var c=this.top;c<=this.bottom;c++)o(n.encodeAddress(c,i),c,i)}}])}();r.exports=a},{"../utils/col-cache":19}],11:[function(e,r,t){var n=e("../utils/under-dash"),a=e("./enums"),l=e("../utils/col-cache"),o=e("./cell"),i=function(){function c(u,h){le(this,c),this._worksheet=u,this._number=h,this._cells=[],this.style={},this.outlineLevel=0}return ne(c,[{key:"number",get:function(){return this._number}},{key:"worksheet",get:function(){return this._worksheet}},{key:"commit",value:function(){this._worksheet._commitRow(this)}},{key:"destroy",value:function(){delete this._worksheet,delete this._cells,delete this.style}},{key:"findCell",value:function(u){return this._cells[u-1]}},{key:"getCellEx",value:function(u){var h=this._cells[u.col-1];if(!h){var f=this._worksheet.getColumn(u.col);h=new o(this,f,u.address),this._cells[u.col-1]=h}return h}},{key:"getCell",value:function(u){if(typeof u=="string"){var h=this._worksheet.getColumnKey(u);u=h?h.number:l.l2n(u)}return this._cells[u-1]||this.getCellEx({address:l.encodeAddress(this._number,u),row:this._number,col:u})}},{key:"splice",value:function(u,h){for(var f=u+h,d=arguments.length,p=new Array(d>2?d-2:0),g=2;g0)for(v=k;v>=f;v--)(b=this._cells[v-1])?((_=this.getCell(v+w)).value=b.value,_.style=b.style,_._comment=b._comment):this._cells[v+w-1]=void 0;for(v=0;vf.col)&&(u=f.col),h0?{min:u,max:h}:null}},{key:"_applyStyle",value:function(u,h){return this.style[u]=h,this._cells.forEach(function(f){f&&(f[u]=h)}),h}},{key:"numFmt",get:function(){return this.style.numFmt},set:function(u){this._applyStyle("numFmt",u)}},{key:"font",get:function(){return this.style.font},set:function(u){this._applyStyle("font",u)}},{key:"alignment",get:function(){return this.style.alignment},set:function(u){this._applyStyle("alignment",u)}},{key:"protection",get:function(){return this.style.protection},set:function(u){this._applyStyle("protection",u)}},{key:"border",get:function(){return this.style.border},set:function(u){this._applyStyle("border",u)}},{key:"fill",get:function(){return this.style.fill},set:function(u){this._applyStyle("fill",u)}},{key:"hidden",get:function(){return!!this._hidden},set:function(u){this._hidden=u}},{key:"outlineLevel",get:function(){return this._outlineLevel||0},set:function(u){this._outlineLevel=u}},{key:"collapsed",get:function(){return!!(this._outlineLevel&&this._outlineLevel>=this._worksheet.properties.outlineLevelRow)}},{key:"model",get:function(){var u=[],h=0,f=0;return this._cells.forEach(function(d){if(d){var p=d.model;p&&((!h||h>d.col)&&(h=d.col),f0,"Table must be on valid row"),h(p>0,"Table must be on valid col");var g=this.width,v=this.filterHeight,b=this.tableHeight;c.autoFilterRef=n.encode(d,p,d+v-1,p+g-1),c.tableRef=n.encode(d,p,d+b-1,p+g-1),c.columns.forEach(function(_,w){h(_.name,"Column ".concat(w," must have a name")),w===0?u(_,"totalsRowLabel","Total"):(u(_,"totalsRowFunction","none"),_.totalsRowFormula=i.getFormula(_))})}},{key:"store",value:function(){var i=this,c=function(_,w){w&&Object.keys(w).forEach(function(k){_[k]=w[k]})},u=this.worksheet,h=this.table,f=h.tl,d=f.row,p=f.col,g=0;if(h.headerRow){var v=u.getRow(d+g++);h.columns.forEach(function(_,w){var k=_.style,C=_.name,O=v.getCell(p+w);O.value=C,c(O,k)})}if(h.rows.forEach(function(_){var w=u.getRow(d+g++);_.forEach(function(k,C){var O=w.getCell(p+C);O.value=k,c(O,h.columns[C].style)})}),h.totalsRow){var b=u.getRow(d+g++);h.columns.forEach(function(_,w){var k=b.getCell(p+w);if(w===0)k.value=_.totalsRowLabel;else{var C=i.getFormula(_);k.value=C?{formula:_.totalsRowFormula,result:_.totalsRowResult}:null}c(k,_.style)})}}},{key:"load",value:function(i){var c=this,u=this.table,h=u.tl,f=h.row,d=h.col,p=0;if(u.headerRow){var g=i.getRow(f+p++);u.columns.forEach(function(b,_){g.getCell(d+_).value=b.name})}if(u.rows.forEach(function(b){var _=i.getRow(f+p++);b.forEach(function(w,k){_.getCell(d+k).value=w})}),u.totalsRow){var v=i.getRow(f+p++);u.columns.forEach(function(b,_){var w=v.getCell(d+_);_===0?w.value=b.totalsRowLabel:c.getFormula(b)&&(w.value={formula:b.totalsRowFormula,result:b.totalsRowResult})})}}},{key:"model",get:function(){return this.table},set:function(i){this.table=i}},{key:"cacheState",value:function(){this._cache||(this._cache={ref:this.ref,width:this.width,tableHeight:this.tableHeight})}},{key:"commit",value:function(){if(this._cache){this.validate();var i=n.decodeAddress(this._cache.ref);if(this.ref!==this._cache.ref)for(var c=0;c1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.rows.splice(i,c)}},{key:"getColumn",value:function(i){var c=this.table.columns[i];return new a(this,c,i)}},{key:"addColumn",value:function(i,c,u){this.cacheState(),u===void 0?(this.table.columns.push(i),this.table.rows.forEach(function(h,f){h.push(c[f])})):(this.table.columns.splice(u,0,i),this.table.rows.forEach(function(h,f){h.splice(u,0,c[f])}))}},{key:"removeColumns",value:function(i){var c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;this.cacheState(),this.table.columns.splice(i,c),this.table.rows.forEach(function(u){u.splice(i,c)})}},{key:"_assign",value:function(i,c,u){this.cacheState(),i[c]=u}},{key:"ref",get:function(){return this.table.ref},set:function(i){this._assign(this.table,"ref",i)}},{key:"name",get:function(){return this.table.name},set:function(i){this.table.name=i}},{key:"displayName",get:function(){return this.table.displyName||this.table.name}},{key:"displayNamename",set:function(i){this.table.displayName=i}},{key:"headerRow",get:function(){return this.table.headerRow},set:function(i){this._assign(this.table,"headerRow",i)}},{key:"totalsRow",get:function(){return this.table.totalsRow},set:function(i){this._assign(this.table,"totalsRow",i)}},{key:"theme",get:function(){return this.table.style.name},set:function(i){this.table.style.name=i}},{key:"showFirstColumn",get:function(){return this.table.style.showFirstColumn},set:function(i){this.table.style.showFirstColumn=i}},{key:"showLastColumn",get:function(){return this.table.style.showLastColumn},set:function(i){this.table.style.showLastColumn=i}},{key:"showRowStripes",get:function(){return this.table.style.showRowStripes},set:function(i){this.table.style.showRowStripes=i}},{key:"showColumnStripes",get:function(){return this.table.style.showColumnStripes},set:function(i){this.table.style.showColumnStripes=i}}])}();r.exports=l},{"../utils/col-cache":19}],13:[function(e,r,t){var n=e("./worksheet"),a=e("./defined-names"),l=e("../xlsx/xlsx"),o=e("../csv/csv"),i=function(){function c(){le(this,c),this.category="",this.company="",this.created=new Date,this.description="",this.keywords="",this.manager="",this.modified=this.created,this.properties={},this.calcProperties={},this._worksheets=[],this.subject="",this.title="",this.views=[],this.media=[],this._definedNames=new a}return ne(c,[{key:"xlsx",get:function(){return this._xlsx||(this._xlsx=new l(this)),this._xlsx}},{key:"csv",get:function(){return this._csv||(this._csv=new o(this)),this._csv}},{key:"nextId",get:function(){for(var u=1;uv?b.orderNo:v},0),p=Object.assign({},h,{id:f,name:u,orderNo:d+1,workbook:this}),g=new n(p);return this._worksheets[f]=g,g}},{key:"removeWorksheetEx",value:function(u){delete this._worksheets[u.id]}},{key:"removeWorksheet",value:function(u){var h=this.getWorksheet(u);h&&h.destroy()}},{key:"getWorksheet",value:function(u){return u===void 0?this._worksheets.find(Boolean):typeof u=="number"?this._worksheets[u]:typeof u=="string"?this._worksheets.find(function(h){return h&&h.name===u}):void 0}},{key:"worksheets",get:function(){return this._worksheets.slice(1).sort(function(u,h){return u.orderNo-h.orderNo}).filter(Boolean)}},{key:"eachSheet",value:function(u){this.worksheets.forEach(function(h){u(h,h.id)})}},{key:"definedNames",get:function(){return this._definedNames}},{key:"clearThemes",value:function(){this._themes=void 0}},{key:"addImage",value:function(u){var h=this.media.length;return this.media.push(Object.assign({},u,{type:"image"})),h}},{key:"getImage",value:function(u){return this.media[u]}},{key:"model",get:function(){return{creator:this.creator||"Unknown",lastModifiedBy:this.lastModifiedBy||"Unknown",lastPrinted:this.lastPrinted,created:this.created,modified:this.modified,properties:this.properties,worksheets:this.worksheets.map(function(u){return u.model}),sheets:this.worksheets.map(function(u){return u.model}).filter(Boolean),definedNames:this._definedNames.model,views:this.views,company:this.company,manager:this.manager,title:this.title,subject:this.subject,keywords:this.keywords,category:this.category,description:this.description,language:this.language,revision:this.revision,contentStatus:this.contentStatus,themes:this._themes,media:this.media,calcProperties:this.calcProperties}},set:function(u){var h=this;this.creator=u.creator,this.lastModifiedBy=u.lastModifiedBy,this.lastPrinted=u.lastPrinted,this.created=u.created,this.modified=u.modified,this.company=u.company,this.manager=u.manager,this.title=u.title,this.subject=u.subject,this.keywords=u.keywords,this.category=u.category,this.description=u.description,this.language=u.language,this.revision=u.revision,this.contentStatus=u.contentStatus,this.properties=u.properties,this.calcProperties=u.calcProperties,this._worksheets=[],u.worksheets.forEach(function(f){var d=f.id,p=f.name,g=f.state,v=u.sheets&&u.sheets.findIndex(function(b){return b.id===d});(h._worksheets[d]=new n({id:d,name:p,orderNo:v,state:g,workbook:h})).model=f}),this._definedNames.model=u.definedNames,this.views=u.views,this._themes=u.themes,this.media=u.media||[]}}])}();r.exports=i},{"../csv/csv":1,"../xlsx/xlsx":144,"./defined-names":6,"./worksheet":14}],14:[function(e,r,t){var n=e("../utils/under-dash"),a=e("../utils/col-cache"),l=e("./range"),o=e("./row"),i=e("./column"),c=e("./enums"),u=e("./image"),h=e("./table"),f=e("./data-validations"),d=e("../utils/encryptor"),p=e("../utils/copy-style").copyStyle,g=function(){function v(b){le(this,v),b=b||{},this._workbook=b.workbook,this.id=b.id,this.orderNo=b.orderNo,this.name=b.name,this.state=b.state||"visible",this._rows=[],this._columns=null,this._keys={},this._merges={},this.rowBreaks=[],this.properties=Object.assign({},{defaultRowHeight:15,dyDescent:55,outlineLevelCol:0,outlineLevelRow:0},b.properties),this.pageSetup=Object.assign({},{margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3},orientation:"portrait",horizontalDpi:4294967295,verticalDpi:4294967295,fitToPage:!(!b.pageSetup||!b.pageSetup.fitToWidth&&!b.pageSetup.fitToHeight||b.pageSetup.scale),pageOrder:"downThenOver",blackAndWhite:!1,draft:!1,cellComments:"None",errors:"displayed",scale:100,fitToWidth:1,fitToHeight:1,paperSize:void 0,showRowColHeaders:!1,showGridLines:!1,firstPageNumber:void 0,horizontalCentered:!1,verticalCentered:!1,rowBreaks:null,colBreaks:null},b.pageSetup),this.headerFooter=Object.assign({},{differentFirst:!1,differentOddEven:!1,oddHeader:null,oddFooter:null,evenHeader:null,evenFooter:null,firstHeader:null,firstFooter:null},b.headerFooter),this.dataValidations=new f,this.views=b.views||[],this.autoFilter=b.autoFilter||null,this._media=[],this.sheetProtection=null,this.tables={},this.conditionalFormattings=[]}return ne(v,[{key:"name",get:function(){return this._name},set:function(b){if(b===void 0&&(b="sheet".concat(this.id)),this._name!==b){if(typeof b!="string")throw new Error("The name has to be a string.");if(b==="")throw new Error("The name can't be empty.");if(b==="History")throw new Error('The name "History" is protected. Please use a different name.');if(/[*?:/\\[\]]/.test(b))throw new Error("Worksheet name ".concat(b," cannot include any of the following characters: * ? : \\ / [ ]"));if(/(^')|('$)/.test(b))throw new Error("The first or last character of worksheet name cannot be a single quotation mark: ".concat(b));if(b&&b.length>31&&(console.warn("Worksheet name ".concat(b," exceeds 31 chars. This will be truncated")),b=b.substring(0,31)),this._workbook._worksheets.find(function(_){return _&&_.name.toLowerCase()===b.toLowerCase()}))throw new Error("Worksheet name already exists: ".concat(b));this._name=b}}},{key:"workbook",get:function(){return this._workbook}},{key:"destroy",value:function(){this._workbook.removeWorksheetEx(this)}},{key:"dimensions",get:function(){var b=new l;return this._rows.forEach(function(_){if(_){var w=_.dimensions;w&&b.expand(_.number,w.min,_.number,w.max)}}),b}},{key:"columns",get:function(){return this._columns},set:function(b){var _=this;this._headerRowCount=b.reduce(function(C,O){var P=(O.header?1:O.headers&&O.headers.length)||0;return Math.max(C,P)},0);var w=1,k=this._columns=[];b.forEach(function(C){var O=new i(_,w++,!1);k.push(O),O.defn=C})}},{key:"getColumnKey",value:function(b){return this._keys[b]}},{key:"setColumnKey",value:function(b,_){this._keys[b]=_}},{key:"deleteColumnKey",value:function(b){delete this._keys[b]}},{key:"eachColumnKey",value:function(b){n.each(this._keys,b)}},{key:"getColumn",value:function(b){if(typeof b=="string"){var _=this._keys[b];if(_)return _;b=a.l2n(b)}if(this._columns||(this._columns=[]),b>this._columns.length)for(var w=this._columns.length+1;w<=b;)this._columns.push(new i(this,w++));return this._columns[b-1]}},{key:"spliceColumns",value:function(b,_){for(var w=this,k=this._rows.length,C=arguments.length,O=new Array(C>2?C-2:0),P=2;P0)for(var B=function(E){var A=[b,_];O.forEach(function(R){A.push(R[E]||null)});var M=w.getRow(E+1);M.splice.apply(M,A)},q=0;q0)for(var D=Z;D>=J;D--)this.getColumn(D+X).defn=this.getColumn(D).defn;for(var j=b;j0&&b[_-1]===void 0;)_--;return _}},{key:"_nextRow",get:function(){return this._lastRowNumber+1}},{key:"lastRow",get:function(){if(this._rows.length)return this._rows[this._rows.length-1]}},{key:"findRow",value:function(b){return this._rows[b-1]}},{key:"findRows",value:function(b,_){return this._rows.slice(b-1,b-1+_)}},{key:"rowCount",get:function(){return this._lastRowNumber}},{key:"actualRowCount",get:function(){var b=0;return this.eachRow(function(){b++}),b}},{key:"getRow",value:function(b){var _=this._rows[b-1];return _||(_=this._rows[b-1]=new o(this,b)),_}},{key:"getRows",value:function(b,_){if(!(_<1)){for(var w=[],k=b;k1&&arguments[1]!==void 0?arguments[1]:"n",w=this._nextRow,k=this.getRow(w);return k.values=b,this._setStyleOption(w,_[0]==="i"?_:"n"),k}},{key:"addRows",value:function(b){var _=this,w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n",k=[];return b.forEach(function(C){k.push(_.addRow(C,w))}),k}},{key:"insertRow",value:function(b,_){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(b,0,_),this._setStyleOption(b,w),this.getRow(b)}},{key:"insertRows",value:function(b,_){var w=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows.apply(this,[b,0].concat(rt(_))),w!=="n")for(var k=0;k<_.length;k++)w[0]==="o"&&this.findRow(_.length+b+k)!==void 0?this._copyStyle(_.length+b+k,b+k,w[1]==="+"):w[0]==="i"&&this.findRow(b-1)!==void 0&&this._copyStyle(b-1,b+k,w[1]==="+");return this.getRows(b,_.length)}},{key:"_setStyleOption",value:function(b){var _=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";_[0]==="o"&&this.findRow(b+1)!==void 0?this._copyStyle(b+1,b,_[1]==="+"):_[0]==="i"&&this.findRow(b-1)!==void 0&&this._copyStyle(b-1,b,_[1]==="+")}},{key:"_copyStyle",value:function(b,_){var w=arguments.length>2&&arguments[2]!==void 0&&arguments[2],k=this.getRow(b),C=this.getRow(_);C.style=p(k.style),k.eachCell({includeEmpty:w},function(O,P){C.getCell(P).style=p(O.style)}),C.height=k.height}},{key:"duplicateRow",value:function(b,_){var w=this,k=arguments.length>2&&arguments[2]!==void 0&&arguments[2],C=this._rows[b-1],O=new Array(_).fill(C.values);this.spliceRows.apply(this,[b+1,k?0:_].concat(rt(O)));for(var P=function(){var q=w._rows[b+B];q.style=C.style,q.height=C.height,C.eachCell({includeEmpty:!0},function(X,J){q.getCell(J).style=X.style})},B=0;B<_;B++)P()}},{key:"spliceRows",value:function(b,_){for(var w=this,k=b+_,C=arguments.length,O=new Array(C>2?C-2:0),P=2;P0){var D=function(){if(q=w._rows[B-1]){var E=w.getRow(B+J);E.values=q.values,E.style=q.style,E.height=q.height,q.eachCell({includeEmpty:!0},function(A,M){if(E.getCell(M).style=A.style,A._value.constructor.name==="MergeValue"){var R=w.getRow(A._row._number+X).getCell(M),F=A._value._master,H=w.getRow(F._row._number+X).getCell(F._column._number);R.merge(H)}})}else w._rows[B+J-1]=void 0};for(B=Z;B>=k;B--)D()}for(B=0;Bb.top||C>b.left)&&this.getCell(k,C).merge(w,_);this._merges[w.address]=b}},{key:"_unMergeMaster",value:function(b){var _=this._merges[b.address];if(_){for(var w=_.top;w<=_.bottom;w++)for(var k=_.left;k<=_.right;k++)this.getCell(w,k).unmerge();delete this._merges[b.address]}}},{key:"hasMerges",get:function(){return n.some(this._merges,Boolean)}},{key:"unMergeCells",value:function(){for(var b=arguments.length,_=new Array(b),w=0;w3&&arguments[3]!==void 0?arguments[3]:"shared",O=a.decode(b),P=O.top,B=O.left,q=O.bottom,X=O.right,J=X-B+1,Z=a.encodeAddress(P,B),ue=C==="shared";k=typeof w=="function"?w:Array.isArray(w)?Array.isArray(w[0])?function(A,M){return w[A-P][M-B]}:function(A,M){return w[(A-P)*J+(M-B)]}:function(){};for(var D=!0,j=P;j<=q;j++)for(var E=B;E<=X;E++)D?(this.getCell(j,E).value={shareType:C,formula:_,ref:b,result:k(j,E)},D=!1):this.getCell(j,E).value=ue?{sharedFormula:Z,result:k(j,E)}:k(j,E)}},{key:"addImage",value:function(b,_){var w={type:"image",imageId:b,range:_};this._media.push(new u(this,w))}},{key:"getImages",value:function(){return this._media.filter(function(b){return b.type==="image"})}},{key:"addBackgroundImage",value:function(b){var _={type:"background",imageId:b};this._media.push(new u(this,_))}},{key:"getBackgroundImageId",value:function(){var b=this._media.find(function(_){return _.type==="background"});return b&&b.imageId}},{key:"protect",value:function(b,_){var w=this;return new Promise(function(k){w.sheetProtection={sheet:!0},_&&"spinCount"in _&&(_.spinCount=Number.isFinite(_.spinCount)?Math.round(Math.max(0,_.spinCount)):1e5),b&&(w.sheetProtection.algorithmName="SHA-512",w.sheetProtection.saltValue=d.randomBytes(16).toString("base64"),w.sheetProtection.spinCount=_&&"spinCount"in _?_.spinCount:1e5,w.sheetProtection.hashValue=d.convertPasswordToHash(b,"SHA512",w.sheetProtection.saltValue,w.sheetProtection.spinCount)),_&&(w.sheetProtection=Object.assign(w.sheetProtection,_),!b&&"spinCount"in _&&delete w.sheetProtection.spinCount),k()})}},{key:"unprotect",value:function(){this.sheetProtection=null}},{key:"addTable",value:function(b){var _=new h(this,b);return this.tables[b.name]=_,_}},{key:"getTable",value:function(b){return this.tables[b]}},{key:"removeTable",value:function(b){delete this.tables[b]}},{key:"getTables",value:function(){return Object.values(this.tables)}},{key:"addConditionalFormatting",value:function(b){this.conditionalFormattings.push(b)}},{key:"removeConditionalFormatting",value:function(b){typeof b=="number"?this.conditionalFormattings.splice(b,1):this.conditionalFormattings=b instanceof Function?this.conditionalFormattings.filter(b):[]}},{key:"tabColor",get:function(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor},set:function(b){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=b}},{key:"model",get:function(){var b={id:this.id,name:this.name,dataValidations:this.dataValidations.model,properties:this.properties,state:this.state,pageSetup:this.pageSetup,headerFooter:this.headerFooter,rowBreaks:this.rowBreaks,views:this.views,autoFilter:this.autoFilter,media:this._media.map(function(k){return k.model}),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(function(k){return k.model}),conditionalFormattings:this.conditionalFormattings};b.cols=i.toModel(this.columns);var _=b.rows=[],w=b.dimensions=new l;return this._rows.forEach(function(k){var C=k&&k.model;C&&(w.expand(C.number,C.min,C.number,C.max),_.push(C))}),b.merges=[],n.each(this._merges,function(k){b.merges.push(k.range)}),b},set:function(b){var _=this;this.name=b.name,this._columns=i.fromModel(this,b.cols),this._parseRows(b),this._parseMergeCells(b),this.dataValidations=new f(b.dataValidations),this.properties=b.properties,this.pageSetup=b.pageSetup,this.headerFooter=b.headerFooter,this.views=b.views,this.autoFilter=b.autoFilter,this._media=b.media.map(function(w){return new u(_,w)}),this.sheetProtection=b.sheetProtection,this.tables=b.tables.reduce(function(w,k){var C=new h;return C.model=k,w[k.name]=C,w},{}),this.conditionalFormattings=b.conditionalFormattings}},{key:"_parseRows",value:function(b){var _=this;this._rows=[],b.rows.forEach(function(w){var k=new o(_,w.number);_._rows[k.number-1]=k,k.model=w})}},{key:"_parseMergeCells",value:function(b){var _=this;n.each(b.mergeCells,function(w){_.mergeCellsWithoutStyle(w)})}}])}();r.exports=g},{"../utils/col-cache":19,"../utils/copy-style":20,"../utils/encryptor":21,"../utils/under-dash":26,"./column":4,"./data-validations":5,"./enums":7,"./image":8,"./range":10,"./row":11,"./table":12}],15:[function(e,r,t){e("core-js/modules/es.promise"),e("core-js/modules/es.promise.finally"),e("core-js/modules/es.object.assign"),e("core-js/modules/es.object.keys"),e("core-js/modules/es.object.values"),e("core-js/modules/es.symbol"),e("core-js/modules/es.symbol.async-iterator"),e("core-js/modules/es.array.iterator"),e("core-js/modules/es.array.includes"),e("core-js/modules/es.array.find-index"),e("core-js/modules/es.array.find"),e("core-js/modules/es.string.from-code-point"),e("core-js/modules/es.string.includes"),e("core-js/modules/es.number.is-nan"),e("regenerator-runtime/runtime");var n={Workbook:e("./doc/workbook")},a=e("./doc/enums");Object.keys(a).forEach(function(l){n[l]=a[l]}),r.exports=n},{"./doc/enums":7,"./doc/workbook":13,"core-js/modules/es.array.find":359,"core-js/modules/es.array.find-index":358,"core-js/modules/es.array.includes":360,"core-js/modules/es.array.iterator":361,"core-js/modules/es.number.is-nan":363,"core-js/modules/es.object.assign":364,"core-js/modules/es.object.keys":366,"core-js/modules/es.object.values":367,"core-js/modules/es.promise":372,"core-js/modules/es.promise.finally":371,"core-js/modules/es.string.from-code-point":376,"core-js/modules/es.string.includes":377,"core-js/modules/es.symbol":381,"core-js/modules/es.symbol.async-iterator":378,"regenerator-runtime/runtime":492}],16:[function(e,r,t){var n=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function a(l){return typeof l=="string"?l:n?n.decode(l):l.toString()}t.bufferToString=a},{}],17:[function(e,r,t){var n=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),a=e("buffer").Buffer;function l(o){return typeof o!="string"?o:n?a.from(n.encode(o).buffer):a.from(o)}t.stringToBuffer=l},{buffer:220}],18:[function(e,r,t){var n=e("./under-dash"),a=e("./col-cache"),l=function(){function o(i){le(this,o),this.template=i,this.sheets={}}return ne(o,[{key:"addCell",value:function(i){this.addCellEx(a.decodeEx(i))}},{key:"getCell",value:function(i){return this.findCellEx(a.decodeEx(i),!0)}},{key:"findCell",value:function(i){return this.findCellEx(a.decodeEx(i),!1)}},{key:"findCellAt",value:function(i,c,u){var h=this.sheets[i],f=h&&h[c];return f&&f[u]}},{key:"addCellEx",value:function(i){if(i.top)for(var c=i.top;c<=i.bottom;c++)for(var u=i.left;u<=i.right;u++)this.getCellAt(i.sheetName,c,u);else this.findCellEx(i,!0)}},{key:"getCellEx",value:function(i){return this.findCellEx(i,!0)}},{key:"findCellEx",value:function(i,c){var u=this.findSheet(i,c),h=this.findSheetRow(u,i,c);return this.findRowCell(h,i,c)}},{key:"getCellAt",value:function(i,c,u){var h=this.sheets[i]||(this.sheets[i]=[]),f=h[c]||(h[c]=[]);return f[u]||(f[u]={sheetName:i,address:a.n2l(u)+c,row:c,col:u})}},{key:"removeCellEx",value:function(i){var c=this.findSheet(i);if(c){var u=this.findSheetRow(c,i);u&&delete u[i.col]}}},{key:"forEachInSheet",value:function(i,c){var u=this.sheets[i];u&&u.forEach(function(h,f){h&&h.forEach(function(d,p){d&&c(d,f,p)})})}},{key:"forEach",value:function(i){var c=this;n.each(this.sheets,function(u,h){c.forEachInSheet(h,i)})}},{key:"map",value:function(i){var c=[];return this.forEach(function(u){c.push(i(u))}),c}},{key:"findSheet",value:function(i,c){var u=i.sheetName;return this.sheets[u]?this.sheets[u]:c?this.sheets[u]=[]:void 0}},{key:"findSheetRow",value:function(i,c,u){var h=c.row;return i&&i[h]?i[h]:u?i[h]=[]:void 0}},{key:"findRowCell",value:function(i,c,u){var h=c.col;return i&&i[h]?i[h]:u?i[h]=this.template?Object.assign(c,JSON.parse(JSON.stringify(this.template))):c:void 0}},{key:"spliceRows",value:function(i,c,u,h){var f=this.sheets[i];if(f){for(var d=[],p=0;p=4)throw new Error("Out of bounds. Excel supports columns from 1 to 16384");if(this._l2nFill<1&&l>=1){for(;f<=26;)o=this._dictionary[f-1],this._n2l[f]=o,this._l2n[o]=f,f++;this._l2nFill=1}if(this._l2nFill<2&&l>=2){for(f=27;f<=702;)c=(i=f-27)%26,u=Math.floor(i/26),o=this._dictionary[u]+this._dictionary[c],this._n2l[f]=o,this._l2n[o]=f,f++;this._l2nFill=2}if(this._l2nFill<3&&l>=3){for(f=703;f<=16384;)c=(i=f-703)%26,u=Math.floor(i/26)%26,h=Math.floor(i/676),o=this._dictionary[h]+this._dictionary[u]+this._dictionary[c],this._n2l[f]=o,this._l2n[o]=f,f++;this._l2nFill=3}},l2n:function(l){if(this._l2n[l]||this._fill(l.length),!this._l2n[l])throw new Error("Out of bounds. Invalid column letter: ".concat(l));return this._l2n[l]},n2l:function(l){if(l<1||l>16384)throw new Error("".concat(l," is out of bounds. Excel supports columns from 1 to 16384"));return this._n2l[l]||this._fill(this._level(l)),this._n2l[l]},_hash:{},validateAddress:function(l){if(!n.test(l))throw new Error("Invalid Address: ".concat(l));return!0},decodeAddress:function(l){var o=l.length<5&&this._hash[l];if(o)return o;for(var i,c=!1,u="",h=0,f=!1,d="",p=0,g=0;g=65&&i<=90)c=!0,u+=l[g],h=26*h+i-64;else if(i>=48&&i<=57)f=!0,d+=l[g],p=10*p+i-48;else if(f&&c&&i!==36)break;if(c){if(h>16384)throw new Error("Out of bounds. Invalid column letter: ".concat(u))}else h=void 0;f||(p=void 0);var v={address:l=u+d,col:h,row:p,$col$row:"$".concat(u,"$").concat(d)};return h<=100&&p<=100&&(this._hash[l]=v,this._hash[v.$col$row]=v),v},getAddress:function(l,o){if(o){var i=this.n2l(o)+l;return this.decodeAddress(i)}return this.decodeAddress(l)},decode:function(l){var o=l.split(":");if(o.length===2){var i=this.decodeAddress(o[0]),c=this.decodeAddress(o[1]),u={top:Math.min(i.row,c.row),left:Math.min(i.col,c.col),bottom:Math.max(i.row,c.row),right:Math.max(i.col,c.col)};return u.tl=this.n2l(u.left)+u.top,u.br=this.n2l(u.right)+u.bottom,u.dimensions="".concat(u.tl,":").concat(u.br),u}return this.decodeAddress(l)},decodeEx:function(l){var o=l.match(/(?:(?:(?:'((?:[^']|'')*)')|([^'^ !]*))!)?(.*)/),i=o[1]||o[2],c=o[3],u=c.split(":");if(u.length>1){var h=this.decodeAddress(u[0]),f=this.decodeAddress(u[1]),d=Math.min(h.row,f.row),p=Math.min(h.col,f.col),g=Math.max(h.row,f.row),v=Math.max(h.col,f.col);return h=this.n2l(p)+d,f=this.n2l(v)+g,{top:d,left:p,bottom:g,right:v,sheetName:i,tl:{address:h,col:p,row:d,$col$row:"$".concat(this.n2l(p),"$").concat(d),sheetName:i},br:{address:f,col:v,row:g,$col$row:"$".concat(this.n2l(v),"$").concat(g),sheetName:i},dimensions:"".concat(h,":").concat(f)}}if(c.startsWith("#"))return i?{sheetName:i,error:c}:{error:c};var b=this.decodeAddress(c);return i?xo({sheetName:i},b):b},encodeAddress:function(l,o){return a.n2l(o)+l},encode:function(){switch(arguments.length){case 2:return a.encodeAddress(arguments[0],arguments[1]);case 4:return"".concat(a.encodeAddress(arguments[0],arguments[1]),":").concat(a.encodeAddress(arguments[2],arguments[3]));default:throw new Error("Can only encode with 2 or 4 arguments")}},inRange:function(l,o){var i=ge(l,5),c=i[0],u=i[1],h=i[3],f=i[4],d=ge(o,2),p=d[0],g=d[1];return p>=c&&p<=h&&g>=u&&g<=f}};r.exports=a},{}],20:[function(e,r,t){var n=function(i,c){return xo(xo({},i),c.reduce(function(u,h){return i[h]&&(u[h]=xo({},i[h])),u},{}))},a=function(i,c,u){var h=arguments.length>3&&arguments[3]!==void 0?arguments[3]:[];i[u]&&(c[u]=n(i[u],h))},l=function(i){return Object.keys(i).length===0},o=function(i){if(!i)return i;if(l(i))return{};var c=xo({},i);return a(i,c,"font",["color"]),a(i,c,"alignment"),a(i,c,"protection"),i.border&&(a(i,c,"border"),a(i.border,c.border,"top",["color"]),a(i.border,c.border,"left",["color"]),a(i.border,c.border,"bottom",["color"]),a(i.border,c.border,"right",["color"]),a(i.border,c.border,"diagonal",["color"])),i.fill&&(a(i,c,"fill",["fgColor","bgColor","center"]),i.fill.stops&&(c.fill.stops=i.fill.stops.map(function(u){return n(u,["color"])}))),c};t.copyStyle=o},{}],21:[function(e,r,t){(function(n){(function(){var a=e("crypto"),l={hash:function(o){for(var i=a.createHash(o),c=arguments.length,u=new Array(c>1?c-1:0),h=1;h3||k.length===3&&k>"XFD")return d;var P=n.l2n(k),B=parseInt(O,10);return w||(P+=f.col-h.col),C||(B+=f.row-h.row),(p||"")+(w||"")+n.n2l(P)+(C||"")+B}return d})}r.exports={slideFormula:o}},{"./col-cache":19}],24:[function(e,r,t){(function(n,a){(function(){var l=e("readable-stream"),o=e("./utils"),i=e("./string-buf"),c=function(){function p(g,v){le(this,p),this._data=g,this._encoding=v}return ne(p,[{key:"length",get:function(){return this.toBuffer().length}},{key:"copy",value:function(g,v,b,_){return this.toBuffer().copy(g,v,b,_)}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=a.from(this._data,this._encoding)),this._buffer}}])}(),u=function(){function p(g){le(this,p),this._data=g}return ne(p,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(g,v,b,_){return this._data._buf.copy(g,v,b,_)}},{key:"toBuffer",value:function(){return this._data.toBuffer()}}])}(),h=function(){function p(g){le(this,p),this._data=g}return ne(p,[{key:"length",get:function(){return this._data.length}},{key:"copy",value:function(g,v,b,_){this._data.copy(g,v,b,_)}},{key:"toBuffer",value:function(){return this._data}}])}(),f=function(){function p(g){le(this,p),this.size=g,this.buffer=a.alloc(g),this.iRead=0,this.iWrite=0}return ne(p,[{key:"toBuffer",value:function(){if(this.iRead===0&&this.iWrite===this.size)return this.buffer;var g=a.alloc(this.iWrite-this.iRead);return this.buffer.copy(g,0,this.iRead,this.iWrite),g}},{key:"length",get:function(){return this.iWrite-this.iRead}},{key:"eod",get:function(){return this.iRead===this.iWrite}},{key:"full",get:function(){return this.iWrite===this.size}},{key:"read",value:function(g){var v;return g===0?null:g===void 0||g>=this.length?(v=this.toBuffer(),this.iRead=this.iWrite,v):(v=a.alloc(g),this.buffer.copy(v,0,this.iRead,g),this.iRead+=g,v)}},{key:"write",value:function(g,v,b){var _=Math.min(b,this.size-this.iWrite);return g.copy(this.buffer,this.iWrite,v,v+_),this.iWrite+=_,_}}])}(),d=function(p){p=p||{},this.bufSize=p.bufSize||1048576,this.buffers=[],this.batch=p.batch||!1,this.corked=!1,this.inPos=0,this.outPos=0,this.pipes=[],this.paused=!1,this.encoding=null};o.inherits(d,l.Duplex,{toBuffer:function(){switch(this.buffers.length){case 0:return null;case 1:return this.buffers[0].toBuffer();default:return a.concat(this.buffers.map(function(p){return p.toBuffer()}))}},_getWritableBuffer:function(){if(this.buffers.length){var p=this.buffers[this.buffers.length-1];if(!p.full)return p}var g=new f(this.bufSize);return this.buffers.push(g),g},_pipe:function(p){var g=this;return Aa(qn.mark(function v(){var b;return qn.wrap(function(_){for(;;)switch(_.prev=_.next){case 0:return b=function(w){return new Promise(function(k){w.write(p.toBuffer(),function(){k()})})},_.next=3,Promise.all(g.pipes.map(b));case 3:case"end":return _.stop()}},v)}))()},_writeToBuffers:function(p){for(var g=0,v=p.length;g1;)b._pipe(b.buffers.shift());k.next=29;break;case 21:if(b.corked){k.next=27;break}return k.next=24,b._pipe(w);case 24:v(),k.next=29;break;case 27:b._writeToBuffers(w),n.nextTick(v);case 29:k.next=34;break;case 31:b.paused||b.emit("data",w.toBuffer()),b._writeToBuffers(w),b.emit("readable");case 34:return k.abrupt("return",!0);case 35:case"end":return k.stop()}},_)}))()},cork:function(){this.corked=!0},_flush:function(){if(this.pipes.length)for(;this.buffers.length;)this._pipe(this.buffers.shift())},uncork:function(){this.corked=!1,this._flush()},end:function(p,g,v){var b=this,_=function(w){w?v(w):(b._flush(),b.pipes.forEach(function(k){k.end()}),b.emit("finish"))};p?this.write(p,g,_):_()},read:function(p){var g;if(p){for(g=[];p&&this.buffers.length&&!this.buffers[0].eod;){var v=this.buffers[0],b=v.read(p);p-=b.length,g.push(b),v.eod&&v.full&&this.buffers.shift()}return a.concat(g)}return g=this.buffers.map(function(_){return _.toBuffer()}).filter(Boolean),this.buffers=[],a.concat(g)},setEncoding:function(p){this.encoding=p},pause:function(){this.paused=!0},resume:function(){this.paused=!1},isPaused:function(){return!!this.paused},pipe:function(p){this.pipes.push(p),!this.paused&&this.buffers.length&&this.end()},unpipe:function(p){this.pipes=this.pipes.filter(function(g){return g!==p})},unshift:function(){throw new Error("Not Implemented")},wrap:function(){throw new Error("Not Implemented")}}),r.exports=d}).call(this)}).call(this,e("_process"),e("buffer").Buffer)},{"./string-buf":25,"./utils":27,_process:467,buffer:220,"readable-stream":491}],25:[function(e,r,t){(function(n){(function(){var a=function(){function l(o){le(this,l),this._buf=n.alloc(o&&o.size||16384),this._encoding=o&&o.encoding||"utf8",this._inPos=0,this._buffer=void 0}return ne(l,[{key:"length",get:function(){return this._inPos}},{key:"capacity",get:function(){return this._buf.length}},{key:"buffer",get:function(){return this._buf}},{key:"toBuffer",value:function(){return this._buffer||(this._buffer=n.alloc(this.length),this._buf.copy(this._buffer,0,0,this.length)),this._buffer}},{key:"reset",value:function(o){o=o||0,this._buffer=void 0,this._inPos=o}},{key:"_grow",value:function(o){for(var i=2*this._buf.length;i=this._buf.length-4;)this._grow(this._inPos+o.length),i=this._inPos+this._buf.write(o,this._inPos,this._encoding);this._inPos=i}},{key:"addStringBuf",value:function(o){o.length&&(this._buffer=void 0,this.length+o.length>this.capacity&&this._grow(this.length+o.length),o._buf.copy(this._buf,this._inPos,0,o.length),this._inPos+=o.length)}}])}();r.exports=a}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,r,t){var n=Object.prototype.toString,a=/["&<>]/,l={each:function(o,i){o&&(Array.isArray(o)?o.forEach(i):Object.keys(o).forEach(function(c){i(o[c],c)}))},some:function(o,i){return!!o&&(Array.isArray(o)?o.some(i):Object.keys(o).some(function(c){return i(o[c],c)}))},every:function(o,i){return!o||(Array.isArray(o)?o.every(i):Object.keys(o).every(function(c){return i(o[c],c)}))},map:function(o,i){return o?Array.isArray(o)?o.map(i):Object.keys(o).map(function(c){return i(o[c],c)}):[]},keyBy:function(o,i){return o.reduce(function(c,u){return c[u[i]]=u,c},{})},isEqual:function(o,i){var c,u=typeof o,h=typeof i,f=Array.isArray(o),d=Array.isArray(i);if(u!==h)return!1;if(typeof o=="object"){if(f||d)return!(!f||!d)&&o.length===i.length&&o.every(function(b,_){var w=i[_];return l.isEqual(b,w)});if(o===null||i===null)return o===i;if(c=Object.keys(o),Object.keys(i).length!==c.length)return!1;var p,g=Zu(c);try{for(g.s();!(p=g.n()).done;){var v=p.value;if(!i.hasOwnProperty(v))return!1}}catch(b){g.e(b)}finally{g.f()}return l.every(o,function(b,_){var w=i[_];return l.isEqual(b,w)})}return o===i},escapeHtml:function(o){var i=a.exec(o);if(!i)return o;for(var c="",u="",h=0,f=i.index;f":u=">";break;default:continue}h!==f&&(c+=o.substring(h,f)),h=f+1,c+=u}return h!==f?c+o.substring(h,f):c},strcmp:function(o,i){return oi?1:0},isUndefined:function(o){return n.call(o)==="[object Undefined]"},isObject:function(o){return n.call(o)==="[object Object]"},deepMerge:function(){var o,i,c,u=arguments[0]||{},h=arguments.length;function f(p,g){o=u[g],c=Array.isArray(p),l.isObject(p)||c?(c?(c=!1,i=o&&Array.isArray(o)?o:[]):i=o&&l.isObject(o)?o:{},u[g]=l.deepMerge(i,p)):l.isUndefined(p)||(u[g]=p)}for(var d=0;d&'"\x7F\x00-\x08\x0B-\x0C\x0E-\x1F]/,i={nop:function(){},promiseImmediate:function(c){return new Promise(function(u){n.setImmediate?a(function(){u(c)}):setTimeout(function(){u(c)},1)})},inherits:function(c,u,h,f){c.super_=u,f||(f=h,h=null),h&&Object.keys(h).forEach(function(p){Object.defineProperty(c,p,Object.getOwnPropertyDescriptor(h,p))});var d={constructor:{value:c,enumerable:!1,writable:!1,configurable:!0}};f&&Object.keys(f).forEach(function(p){d[p]=Object.getOwnPropertyDescriptor(f,p)}),c.prototype=Object.create(u.prototype,d)},dateToExcel:function(c,u){return 25569+c.getTime()/864e5-(u?1462:0)},excelToDate:function(c,u){var h=Math.round(24*(c-25569+(u?1462:0))*3600*1e3);return new Date(h)},parsePath:function(c){var u=c.lastIndexOf("/");return{path:c.substring(0,u),name:c.substring(u+1)}},getRelsPath:function(c){var u=i.parsePath(c);return"".concat(u.path,"/_rels/").concat(u.name,".rels")},xmlEncode:function(c){var u=o.exec(c);if(!u)return c;for(var h="",f="",d=0,p=u.index;p=11&&g!==13)){f="";break}continue}d!==p&&(h+=c.substring(d,p)),d=p+1,f&&(h+=f)}return d!==p?h+c.substring(d,p):h},xmlDecode:function(c){return c.replace(/&([a-z]*);/g,function(u){switch(u){case"<":return"<";case">":return">";case"&":return"&";case"'":return"'";case""":return'"';default:return u}})},validInt:function(c){var u=parseInt(c,10);return Number.isNaN(u)?0:u},isDateFmt:function(c){return!!c&&(c=(c=c.replace(/\[[^\]]*]/g,"")).replace(/"[^"]*"/g,"")).match(/[ymdhMsb]+/)!==null},fs:{exists:function(c){return new Promise(function(u){l.access(c,l.constants.F_OK,function(h){u(!h)})})}},toIsoDateString:function(c){return c.toIsoString().subsstr(0,10)},parseBoolean:function(c){return c===!0||c==="true"||c===1||c==="1"}};r.exports=i}).call(this)}).call(this,Ji!==void 0?Ji:typeof self<"u"?self:typeof window<"u"?window:{},e("timers").setImmediate)},{fs:216,timers:523}],28:[function(e,r,t){var n=e("./under-dash"),a=e("./utils"),l="<",o=">",i="",c="/>";function u(d,p,g){d.push(" ".concat(p,'="').concat(a.xmlEncode(g.toString()),'"'))}function h(d,p){if(p){var g=[];n.each(p,function(v,b){v!==void 0&&u(g,b,v)}),d.push(g.join(""))}}var f=function(){function d(){le(this,d),this._xml=[],this._stack=[],this._rollbacks=[]}return ne(d,[{key:"tos",get:function(){return this._stack.length?this._stack[this._stack.length-1]:void 0}},{key:"cursor",get:function(){return this._xml.length}},{key:"openXml",value:function(p){var g=this._xml;g.push("
+`)}},{key:"openNode",value:function(p,g){var v=this.tos,b=this._xml;v&&this.open&&b.push(o),this._stack.push(p),b.push(l),b.push(p),h(b,g),this.leaf=!0,this.open=!0}},{key:"addAttribute",value:function(p,g){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");g!==void 0&&u(this._xml,p,g)}},{key:"addAttributes",value:function(p){if(!this.open)throw new Error("Cannot write attributes to node if it is not open");h(this._xml,p)}},{key:"writeText",value:function(p){var g=this._xml;this.open&&(g.push(o),this.open=!1),this.leaf=!1,g.push(a.xmlEncode(p.toString()))}},{key:"writeXml",value:function(p){this.open&&(this._xml.push(o),this.open=!1),this.leaf=!1,this._xml.push(p)}},{key:"closeNode",value:function(){var p=this._stack.pop(),g=this._xml;this.leaf?g.push(c):(g.push(i),g.push(p),g.push(o)),this.open=!1,this.leaf=!1}},{key:"leafNode",value:function(p,g,v){this.openNode(p,g),v!==void 0&&this.writeText(v),this.closeNode()}},{key:"closeAll",value:function(){for(;this._stack.length;)this.closeNode()}},{key:"addRollback",value:function(){return this._rollbacks.push({xml:this._xml.length,stack:this._stack.length,leaf:this.leaf,open:this.open}),this.cursor}},{key:"commit",value:function(){this._rollbacks.pop()}},{key:"rollback",value:function(){var p=this._rollbacks.pop();this._xml.length>p.xml&&this._xml.splice(p.xml,this._xml.length-p.xml),this._stack.length>p.stack&&this._stack.splice(p.stack,this._stack.length-p.stack),this.leaf=p.leaf,this.open=p.open}},{key:"xml",get:function(){return this.closeAll(),this._xml.join("")}}])}();f.StdDocAttributes={version:"1.0",encoding:"UTF-8",standalone:"yes"},r.exports=f},{"./under-dash":26,"./utils":27}],29:[function(e,r,t){(function(n){(function(){var a=e("events"),l=e("jszip"),o=e("./stream-buf"),i=e("./browser-buffer-encode").stringToBuffer,c=function(u){function h(f){var d;return le(this,h),(d=zr(this,h)).options=Object.assign({type:"nodebuffer",compression:"DEFLATE"},f),d.zip=new l,d.stream=new o,d}return nr(h,u),ne(h,[{key:"append",value:function(f,d){d.hasOwnProperty("base64")&&d.base64?this.zip.file(d.name,f,{base64:!0}):(n.browser&&typeof f=="string"&&(f=i(f)),this.zip.file(d.name,f))}},{key:"finalize",value:function(){var f=Aa(qn.mark(function p(){var g;return qn.wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return v.next=2,this.zip.generateAsync(this.options);case 2:g=v.sent,this.stream.end(g),this.emit("finish");case 5:case"end":return v.stop()}},p,this)}));function d(){return f.apply(this,arguments)}return d}()},{key:"read",value:function(f){return this.stream.read(f)}},{key:"setEncoding",value:function(f){return this.stream.setEncoding(f)}},{key:"pause",value:function(){return this.stream.pause()}},{key:"resume",value:function(){return this.stream.resume()}},{key:"isPaused",value:function(){return this.stream.isPaused()}},{key:"pipe",value:function(f,d){return this.stream.pipe(f,d)}},{key:"unpipe",value:function(f){return this.stream.unpipe(f)}},{key:"unshift",value:function(f){return this.stream.unshift(f)}},{key:"wrap",value:function(f){return this.stream.wrap(f)}}])}(a.EventEmitter);r.exports={ZipWriter:c}}).call(this)}).call(this,e("_process"))},{"./browser-buffer-encode":17,"./stream-buf":24,_process:467,events:422,jszip:441}],30:[function(e,r,t){r.exports={0:{f:"General"},1:{f:"0"},2:{f:"0.00"},3:{f:"#,##0"},4:{f:"#,##0.00"},9:{f:"0%"},10:{f:"0.00%"},11:{f:"0.00E+00"},12:{f:"# ?/?"},13:{f:"# ??/??"},14:{f:"mm-dd-yy"},15:{f:"d-mmm-yy"},16:{f:"d-mmm"},17:{f:"mmm-yy"},18:{f:"h:mm AM/PM"},19:{f:"h:mm:ss AM/PM"},20:{f:"h:mm"},21:{f:"h:mm:ss"},22:{f:'m/d/yy "h":mm'},27:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},28:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},29:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},30:{"zh-tw":"m/d/yy ","zh-cn":"m-d-yy","ja-jp":"m/d/yy","ko-kr":"mm-dd-yy"},31:{"zh-tw":'yyyy"年"m"月"d"日"',"zh-cn":'yyyy"年"m"月"d"日"',"ja-jp":'yyyy"年"m"月"d"日"',"ko-kr":'yyyy"년" mm"월" dd"일"'},32:{"zh-tw":'hh"時"mm"分"',"zh-cn":'h"时"mm"分"',"ja-jp":'h"時"mm"分"',"ko-kr":'h"시" mm"분"'},33:{"zh-tw":'hh"時"mm"分"ss"秒"',"zh-cn":'h"时"mm"分"ss"秒"',"ja-jp":'h"時"mm"分"ss"秒"',"ko-kr":'h"시" mm"분" ss"초"'},34:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},35:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},36:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},37:{f:"#,##0 ;(#,##0)"},38:{f:"#,##0 ;[Red](#,##0)"},39:{f:"#,##0.00 ;(#,##0.00)"},40:{f:"#,##0.00 ;[Red](#,##0.00)"},45:{f:"mm:ss"},46:{f:"[h]:mm:ss"},47:{f:"mmss.0"},48:{f:"##0.0E+0"},49:{f:"@"},50:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},51:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},52:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'yyyy"年"m"月"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},53:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'m"月"d"日"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},54:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},55:{"zh-tw":'上午/下午 hh"時"mm"分"',"zh-cn":'上午/下午 h"时"mm"分"',"ja-jp":'yyyy"年"m"月"',"ko-kr":"yyyy-mm-dd"},56:{"zh-tw":'上午/下午 hh"時"mm"分"ss"秒"',"zh-cn":'上午/下午 h"时"mm"分"ss"秒"',"ja-jp":'m"月"d"日"',"ko-kr":"yyyy-mm-dd"},57:{"zh-tw":"[$-404]e/m/d","zh-cn":'yyyy"年"m"月"',"ja-jp":"[$-411]ge.m.d","ko-kr":'yyyy"年" mm"月" dd"日"'},58:{"zh-tw":'[$-404]e"年"m"月"d"日"',"zh-cn":'m"月"d"日"',"ja-jp":'[$-411]ggge"年"m"月"d"日"',"ko-kr":"mm-dd"},59:{"th-th":"t0"},60:{"th-th":"t0.00"},61:{"th-th":"t#,##0"},62:{"th-th":"t#,##0.00"},67:{"th-th":"t0%"},68:{"th-th":"t0.00%"},69:{"th-th":"t# ?/?"},70:{"th-th":"t# ??/??"},81:{"th-th":"d/m/bb"}}},{}],31:[function(e,r,t){r.exports={OfficeDocument:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",Worksheet:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet",CalcChain:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/calcChain",SharedStrings:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",Styles:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",Theme:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",Hyperlink:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",Image:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",CoreProperties:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",ExtenderProperties:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",Comments:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",VmlDrawing:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",Table:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/table"}},{}],32:[function(e,r,t){var n=e("../../utils/parse-sax"),a=e("../../utils/xml-stream"),l=function(){function o(){le(this,o)}return ne(o,[{key:"prepare",value:function(){}},{key:"render",value:function(){}},{key:"parseOpen",value:function(i){}},{key:"parseText",value:function(i){}},{key:"parseClose",value:function(i){}},{key:"reconcile",value:function(i,c){}},{key:"reset",value:function(){this.model=null,this.map&&Object.values(this.map).forEach(function(i){i instanceof o?i.reset():i.xform&&i.xform.reset()})}},{key:"mergeModel",value:function(i){this.model=Object.assign(this.model||{},i)}},{key:"parse",value:function(){var i=Aa(qn.mark(function u(h){var f,d,p,g,v,b,_,w,k,C,O;return qn.wrap(function(P){for(;;)switch(P.prev=P.next){case 0:f=!1,d=!1,P.prev=2,g=wv(h);case 4:return P.next=6,g.next();case 6:if(!(f=!(v=P.sent).done)){P.next=37;break}b=v.value,_=Zu(b),P.prev=9,_.s();case 11:if((w=_.n()).done){P.next=26;break}if(k=w.value,C=k.eventType,O=k.value,C!=="opentag"){P.next=17;break}this.parseOpen(O),P.next=24;break;case 17:if(C!=="text"){P.next=21;break}this.parseText(O),P.next=24;break;case 21:if(C!=="closetag"){P.next=24;break}if(this.parseClose(O.name)){P.next=24;break}return P.abrupt("return",this.model);case 24:P.next=11;break;case 26:P.next=31;break;case 28:P.prev=28,P.t0=P.catch(9),_.e(P.t0);case 31:return P.prev=31,_.f(),P.finish(31);case 34:f=!1,P.next=4;break;case 37:P.next=43;break;case 39:P.prev=39,P.t1=P.catch(2),d=!0,p=P.t1;case 43:if(P.prev=43,P.prev=44,!f||g.return==null){P.next=48;break}return P.next=48,g.return();case 48:if(P.prev=48,!d){P.next=51;break}throw p;case 51:return P.finish(48);case 52:return P.finish(43);case 53:return P.abrupt("return",this.model);case 54:case"end":return P.stop()}},u,this,[[2,39,43,53],[9,28,31,34],[44,,48,52]])}));function c(u){return i.apply(this,arguments)}return c}()},{key:"parseStream",value:function(){var i=Aa(qn.mark(function u(h){return qn.wrap(function(f){for(;;)switch(f.prev=f.next){case 0:return f.abrupt("return",this.parse(n(h)));case 1:case"end":return f.stop()}},u,this)}));function c(u){return i.apply(this,arguments)}return c}()},{key:"xml",get:function(){return this.toXml(this.model)}},{key:"toXml",value:function(i){var c=new a;return this.render(c,i),c.xml}}],[{key:"toAttribute",value:function(i,c){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(u)return c}else if(u||i!==c)return i.toString()}},{key:"toStringAttribute",value:function(i,c){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(i,c,u)}},{key:"toStringValue",value:function(i,c){return i===void 0?c:i}},{key:"toBoolAttribute",value:function(i,c){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];if(i===void 0){if(u)return c}else if(u||i!==c)return i?"1":"0"}},{key:"toBoolValue",value:function(i,c){return i===void 0?c:i==="1"}},{key:"toIntAttribute",value:function(i,c){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(i,c,u)}},{key:"toIntValue",value:function(i,c){return i===void 0?c:parseInt(i,10)}},{key:"toFloatAttribute",value:function(i,c){var u=arguments.length>2&&arguments[2]!==void 0&&arguments[2];return o.toAttribute(i,c,u)}},{key:"toFloatValue",value:function(i,c){return i===void 0?c:parseFloat(i)}}])}();r.exports=l},{"../../utils/parse-sax":22,"../../utils/xml-stream":28}],33:[function(e,r,t){var n=e("../base-xform"),a=e("../../../utils/col-cache"),l=function(c){function u(){return le(this,u),zr(this,u,arguments)}return nr(u,c),ne(u,[{key:"render",value:function(h,f){h.openNode("definedName",{name:f.name,localSheetId:f.localSheetId}),h.writeText(f.ranges.join(",")),h.closeNode()}},{key:"parseOpen",value:function(h){return h.name==="definedName"&&(this._parsedName=h.attributes.name,this._parsedLocalSheetId=h.attributes.localSheetId,this._parsedText=[],!0)}},{key:"parseText",value:function(h){this._parsedText.push(h)}},{key:"parseClose",value:function(){return this.model={name:this._parsedName,ranges:i(this._parsedText.join(""))},this._parsedLocalSheetId!==void 0&&(this.model.localSheetId=parseInt(this._parsedLocalSheetId,10)),!1}}])}(n);function o(c){try{return a.decodeEx(c),!0}catch{return!1}}function i(c){var u=[],h=!1,f="";return c.split(",").forEach(function(d){if(d){var p=(d.match(/'/g)||[]).length;if(p){var g=p%2==0;!h&&g&&o(d)?u.push(d):h&&!g?(h=!1,o(f+d)&&u.push(f+d),f=""):(h=!0,f+="".concat(d,","))}else h?f+="".concat(d,","):o(d)&&u.push(d)}}),u}r.exports=l},{"../../../utils/col-cache":19,"../base-xform":32}],34:[function(e,r,t){var n=e("../../../utils/utils"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"render",value:function(i,c){i.leafNode("sheet",{sheetId:c.id,name:c.name,state:c.state,"r:id":c.rId})}},{key:"parseOpen",value:function(i){return i.name==="sheet"&&(this.model={name:n.xmlDecode(i.attributes.name),id:parseInt(i.attributes.sheetId,10),state:i.attributes.state,rId:i.attributes["r:id"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],35:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){o.leafNode("calcPr",{calcId:171027,fullCalcOnLoad:i.fullCalcOnLoad?1:void 0})}},{key:"parseOpen",value:function(o){return o.name==="calcPr"&&(this.model={},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],36:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){o.leafNode("workbookPr",{date1904:i.date1904?1:void 0,defaultThemeVersion:164011,filterPrivacy:1})}},{key:"parseOpen",value:function(o){return o.name==="workbookPr"&&(this.model={date1904:o.attributes.date1904==="1"},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],37:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){var c={xWindow:i.x||0,yWindow:i.y||0,windowWidth:i.width||12e3,windowHeight:i.height||24e3,firstSheet:i.firstSheet,activeTab:i.activeTab};i.visibility&&i.visibility!=="visible"&&(c.visibility=i.visibility),o.leafNode("workbookView",c)}},{key:"parseOpen",value:function(o){if(o.name==="workbookView"){var i=this.model={},c=function(h,f,d){var p=f!==void 0?i[h]=f:d;p!==void 0&&(i[h]=p)},u=function(h,f,d){var p=f!==void 0?i[h]=parseInt(f,10):d;p!==void 0&&(i[h]=p)};return u("x",o.attributes.xWindow,0),u("y",o.attributes.yWindow,0),u("width",o.attributes.windowWidth,25e3),u("height",o.attributes.windowHeight,1e4),c("visibility",o.attributes.visibility,"visible"),u("activeTab",o.attributes.activeTab,void 0),u("firstSheet",o.attributes.firstSheet,void 0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],38:[function(e,r,t){var n=e("../../../utils/under-dash"),a=e("../../../utils/col-cache"),l=e("../../../utils/xml-stream"),o=e("../base-xform"),i=e("../static-xform"),c=e("../list-xform"),u=e("./defined-name-xform"),h=e("./sheet-xform"),f=e("./workbook-view-xform"),d=e("./workbook-properties-xform"),p=e("./workbook-calc-properties-xform"),g=function(v){function b(){var _;return le(this,b),(_=zr(this,b)).map={fileVersion:b.STATIC_XFORMS.fileVersion,workbookPr:new d,bookViews:new c({tag:"bookViews",count:!1,childXform:new f}),sheets:new c({tag:"sheets",count:!1,childXform:new h}),definedNames:new c({tag:"definedNames",count:!1,childXform:new u}),calcPr:new p},_}return nr(b,v),ne(b,[{key:"prepare",value:function(_){_.sheets=_.worksheets;var w=[],k=0;_.sheets.forEach(function(C){if(C.pageSetup&&C.pageSetup.printArea&&C.pageSetup.printArea.split("&&").forEach(function(X){var J=X.split(":"),Z={name:"_xlnm.Print_Area",ranges:["'".concat(C.name,"'!$").concat(J[0],":$").concat(J[1])],localSheetId:k};w.push(Z)}),C.pageSetup&&(C.pageSetup.printTitlesRow||C.pageSetup.printTitlesColumn)){var O=[];if(C.pageSetup.printTitlesColumn){var P=C.pageSetup.printTitlesColumn.split(":");O.push("'".concat(C.name,"'!$").concat(P[0],":$").concat(P[1]))}if(C.pageSetup.printTitlesRow){var B=C.pageSetup.printTitlesRow.split(":");O.push("'".concat(C.name,"'!$").concat(B[0],":$").concat(B[1]))}var q={name:"_xlnm.Print_Titles",ranges:O,localSheetId:k};w.push(q)}k++}),w.length&&(_.definedNames=_.definedNames.concat(w)),(_.media||[]).forEach(function(C,O){C.name=C.type+(O+1)})}},{key:"render",value:function(_,w){_.openXml(l.StdDocAttributes),_.openNode("workbook",b.WORKBOOK_ATTRIBUTES),this.map.fileVersion.render(_),this.map.workbookPr.render(_,w.properties),this.map.bookViews.render(_,w.views),this.map.sheets.render(_,w.sheets),this.map.definedNames.render(_,w.definedNames),this.map.calcPr.render(_,w.calcProperties),_.closeNode()}},{key:"parseOpen",value:function(_){return this.parser?(this.parser.parseOpen(_),!0):(_.name==="workbook"||(this.parser=this.map[_.name],this.parser&&this.parser.parseOpen(_)),!0)}},{key:"parseText",value:function(_){this.parser&&this.parser.parseText(_)}},{key:"parseClose",value:function(_){return this.parser?(this.parser.parseClose(_)||(this.parser=void 0),!0):_!=="workbook"||(this.model={sheets:this.map.sheets.model,properties:this.map.workbookPr.model||{},views:this.map.bookViews.model,calcProperties:{}},this.map.definedNames.model&&(this.model.definedNames=this.map.definedNames.model),!1)}},{key:"reconcile",value:function(_){var w,k=(_.workbookRels||[]).reduce(function(B,q){return B[q.Id]=q,B},{}),C=[],O=0;(_.sheets||[]).forEach(function(B){var q=k[B.rId];q&&(w=_.worksheetHash["xl/".concat(q.Target.replace(/^(\s|\/xl\/)+/,""))])&&(w.name=B.name,w.id=B.id,w.state=B.state,C[O++]=w)});var P=[];n.each(_.definedNames,function(B){if(B.name==="_xlnm.Print_Area"){if(w=C[B.localSheetId]){w.pageSetup||(w.pageSetup={});var q=a.decodeEx(B.ranges[0]);w.pageSetup.printArea=w.pageSetup.printArea?"".concat(w.pageSetup.printArea,"&&").concat(q.dimensions):q.dimensions}}else if(B.name==="_xlnm.Print_Titles"){if(w=C[B.localSheetId]){w.pageSetup||(w.pageSetup={});var X=B.ranges.join(","),J=/\$/g,Z=/\$\d+:\$\d+/,ue=X.match(Z);if(ue&&ue.length){var D=ue[0];w.pageSetup.printTitlesRow=D.replace(J,"")}var j=/\$[A-Z]+:\$[A-Z]+/,E=X.match(j);if(E&&E.length){var A=E[0];w.pageSetup.printTitlesColumn=A.replace(J,"")}}}else P.push(B)}),_.definedNames=P,_.media.forEach(function(B,q){B.index=q})}}])}(o);g.WORKBOOK_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main","xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","xmlns:mc":"http://schemas.openxmlformats.org/markup-compatibility/2006","mc:Ignorable":"x15","xmlns:x15":"http://schemas.microsoft.com/office/spreadsheetml/2010/11/main"},g.STATIC_XFORMS={fileVersion:new i({tag:"fileVersion",$:{appName:"xl",lastEdited:5,lowestEdited:5,rupBuild:9303}})},r.exports=g},{"../../../utils/col-cache":19,"../../../utils/under-dash":26,"../../../utils/xml-stream":28,"../base-xform":32,"../list-xform":71,"../static-xform":120,"./defined-name-xform":33,"./sheet-xform":34,"./workbook-calc-properties-xform":35,"./workbook-properties-xform":36,"./workbook-view-xform":37}],39:[function(e,r,t){var n=e("../strings/rich-text-xform"),a=e("../../../utils/utils"),l=e("../base-xform"),o=r.exports=function(i){this.model=i};a.inherits(o,l,{get tag(){return"r"},get richTextXform(){return this._richTextXform||(this._richTextXform=new n),this._richTextXform},render:function(i,c){var u=this;c=c||this.model,i.openNode("comment",{ref:c.ref,authorId:0}),i.openNode("text"),c&&c.note&&c.note.texts&&c.note.texts.forEach(function(h){u.richTextXform.render(i,h)}),i.closeNode(),i.closeNode()},parseOpen:function(i){if(this.parser)return this.parser.parseOpen(i),!0;switch(i.name){case"comment":return this.model=xo({type:"note",note:{texts:[]}},i.attributes),!0;case"r":return this.parser=this.richTextXform,this.parser.parseOpen(i),!0;default:return!1}},parseText:function(i){this.parser&&this.parser.parseText(i)},parseClose:function(i){switch(i){case"comment":return!1;case"r":return this.model.note.texts.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(i),!0}}})},{"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],40:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=e("../../../utils/utils"),l=e("../base-xform"),o=e("./comment-xform"),i=r.exports=function(){this.map={comment:new o}};a.inherits(i,l,{COMMENTS_ATTRIBUTES:{xmlns:"http://schemas.openxmlformats.org/spreadsheetml/2006/main"}},{render:function(c,u){var h=this;u=u||this.model,c.openXml(n.StdDocAttributes),c.openNode("comments",i.COMMENTS_ATTRIBUTES),c.openNode("authors"),c.leafNode("author",null,"Author"),c.closeNode(),c.openNode("commentList"),u.comments.forEach(function(f){h.map.comment.render(c,f)}),c.closeNode(),c.closeNode()},parseOpen:function(c){if(this.parser)return this.parser.parseOpen(c),!0;switch(c.name){case"commentList":return this.model={comments:[]},!0;case"comment":return this.parser=this.map.comment,this.parser.parseOpen(c),!0;default:return!1}},parseText:function(c){this.parser&&this.parser.parseText(c)},parseClose:function(c){switch(c){case"commentList":return!1;case"comment":return this.model.comments.push(this.parser.model),this.parser=void 0,!0;default:return this.parser&&this.parser.parseClose(c),!0}}})},{"../../../utils/utils":27,"../../../utils/xml-stream":28,"../base-xform":32,"./comment-xform":39}],41:[function(e,r,t){var n=function(a){function l(o){var i;return le(this,l),(i=zr(this,l))._model=o,i}return nr(l,a),ne(l,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(o,i,c){(i===c[2]||this.tag==="x:SizeWithCells"&&i===c[1])&&o.leafNode(this.tag)}},{key:"parseOpen",value:function(o){return o.name===this.tag&&(this.model={},this.model[this.tag]=!0,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"));r.exports=n},{"../../base-xform":32}],42:[function(e,r,t){var n=function(a){function l(o){var i;return le(this,l),(i=zr(this,l))._model=o,i}return nr(l,a),ne(l,[{key:"tag",get:function(){return this._model&&this._model.tag}},{key:"render",value:function(o,i){o.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(o){return o.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(o){this.text=o}},{key:"parseClose",value:function(){return!1}}])}(e("../../base-xform"));r.exports=n},{"../../base-xform":32}],43:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"x:Anchor"}},{key:"getAnchorRect",value:function(o){var i=Math.floor(o.left),c=Math.floor(68*(o.left-i)),u=Math.floor(o.top),h=Math.floor(18*(o.top-u)),f=Math.floor(o.right),d=Math.floor(68*(o.right-f)),p=Math.floor(o.bottom);return[i,c,u,h,f,d,p,Math.floor(18*(o.bottom-p))]}},{key:"getDefaultRect",value:function(o){var i=o.col,c=6,u=Math.max(o.row-2,0);return[i,c,u,14,i+2,2,u+4,16]}},{key:"render",value:function(o,i){var c=i.anchor?this.getAnchorRect(i.anchor):this.getDefaultRect(i.refAddress);o.leafNode("x:Anchor",null,c.join(", "))}},{key:"parseOpen",value:function(o){return o.name===this.tag&&(this.text="",!0)}},{key:"parseText",value:function(o){this.text=o}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],44:[function(e,r,t){var n=e("../base-xform"),a=e("./vml-anchor-xform"),l=e("./style/vml-protection-xform"),o=e("./style/vml-position-xform"),i=["twoCells","oneCells","absolute"],c=function(u){function h(){var f;return le(this,h),(f=zr(this,h)).map={"x:Anchor":new a,"x:Locked":new l({tag:"x:Locked"}),"x:LockText":new l({tag:"x:LockText"}),"x:SizeWithCells":new o({tag:"x:SizeWithCells"}),"x:MoveWithCells":new o({tag:"x:MoveWithCells"})},f}return nr(h,u),ne(h,[{key:"tag",get:function(){return"x:ClientData"}},{key:"render",value:function(f,d){var p=d.note,g=p.protection,v=p.editAs;f.openNode(this.tag,{ObjectType:"Note"}),this.map["x:MoveWithCells"].render(f,v,i),this.map["x:SizeWithCells"].render(f,v,i),this.map["x:Anchor"].render(f,d),this.map["x:Locked"].render(f,g.locked),f.leafNode("x:AutoFill",null,"False"),this.map["x:LockText"].render(f,g.lockText),f.leafNode("x:Row",null,d.refAddress.row-1),f.leafNode("x:Column",null,d.refAddress.col-1),f.closeNode()}},{key:"parseOpen",value:function(f){return f.name===this.tag?(this.reset(),this.model={anchor:[],protection:{},editAs:""}):(this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)),!0}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.normalizeModel(),!1)}},{key:"normalizeModel",value:function(){var f=Object.assign({},this.map["x:MoveWithCells"].model,this.map["x:SizeWithCells"].model),d=Object.keys(f).length;this.model.editAs=i[d],this.model.anchor=this.map["x:Anchor"].text,this.model.protection.locked=this.map["x:Locked"].text,this.model.protection.lockText=this.map["x:LockText"].text}}])}(n);r.exports=c},{"../base-xform":32,"./style/vml-position-xform":41,"./style/vml-protection-xform":42,"./vml-anchor-xform":43}],45:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),l=e("./vml-shape-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"v:shape":new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"xml"}},{key:"render",value:function(u,h){var f=this;u.openXml(n.StdDocAttributes),u.openNode(this.tag,c.DRAWING_ATTRIBUTES),u.openNode("o:shapelayout",{"v:ext":"edit"}),u.leafNode("o:idmap",{"v:ext":"edit",data:1}),u.closeNode(),u.openNode("v:shapetype",{id:"_x0000_t202",coordsize:"21600,21600","o:spt":202,path:"m,l,21600r21600,l21600,xe"}),u.leafNode("v:stroke",{joinstyle:"miter"}),u.leafNode("v:path",{gradientshapeok:"t","o:connecttype":"rect"}),u.closeNode(),h.comments.forEach(function(d,p){f.map["v:shape"].render(u,d,p)}),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={comments:[]}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.model.comments.push(this.parser.model),this.parser=void 0),!0):u!==this.tag}},{key:"reconcile",value:function(u,h){var f=this;u.anchors.forEach(function(d){d.br?f.map["xdr:twoCellAnchor"].reconcile(d,h):f.map["xdr:oneCellAnchor"].reconcile(d,h)})}}])}(a);o.DRAWING_ATTRIBUTES={"xmlns:v":"urn:schemas-microsoft-com:vml","xmlns:o":"urn:schemas-microsoft-com:office:office","xmlns:x":"urn:schemas-microsoft-com:office:excel"},r.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./vml-shape-xform":46}],46:[function(e,r,t){var n=e("../base-xform"),a=e("./vml-textbox-xform"),l=e("./vml-client-data-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"v:textbox":new a,"x:ClientData":new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"v:shape"}},{key:"render",value:function(u,h,f){u.openNode("v:shape",c.V_SHAPE_ATTRIBUTES(h,f)),u.leafNode("v:fill",{color2:"infoBackground [80]"}),u.leafNode("v:shadow",{color:"none [81]",obscured:"t"}),u.leafNode("v:path",{"o:connecttype":"none"}),this.map["v:textbox"].render(u,h),this.map["x:ClientData"].render(u,h),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?(this.reset(),this.model={margins:{insetmode:u.attributes["o:insetmode"]},anchor:"",editAs:"",protection:{}}):(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model.margins.inset=this.map["v:textbox"].model&&this.map["v:textbox"].model.inset,this.model.protection=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.protection,this.model.anchor=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.anchor,this.model.editAs=this.map["x:ClientData"].model&&this.map["x:ClientData"].model.editAs,!1)}}])}(n);o.V_SHAPE_ATTRIBUTES=function(i,c){return{id:"_x0000_s".concat(1025+c),type:"#_x0000_t202",style:"position:absolute; margin-left:105.3pt;margin-top:10.5pt;width:97.8pt;height:59.1pt;z-index:1;visibility:hidden",fillcolor:"infoBackground [80]",strokecolor:"none [81]","o:insetmode":i.note.margins&&i.note.margins.insetmode}},r.exports=o},{"../base-xform":32,"./vml-client-data-xform":44,"./vml-textbox-xform":47}],47:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"v:textbox"}},{key:"conversionUnit",value:function(o,i,c){return"".concat(parseFloat(o)*i.toFixed(2)).concat(c)}},{key:"reverseConversionUnit",value:function(o){var i=this;return(o||"").split(",").map(function(c){return Number(parseFloat(i.conversionUnit(parseFloat(c),.1,"")).toFixed(2))})}},{key:"render",value:function(o,i){var c=this,u={style:"mso-direction-alt:auto"};if(i&&i.note){var h=(i.note&&i.note.margins).inset;Array.isArray(h)&&(h=h.map(function(f){return c.conversionUnit(f,10,"mm")}).join(",")),h&&(u.inset=h)}o.openNode("v:textbox",u),o.leafNode("div",{style:"text-align:left"}),o.closeNode()}},{key:"parseOpen",value:function(o){return o.name!==this.tag||(this.model={inset:this.reverseConversionUnit(o.attributes.inset)},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],48:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"createNewModel",value:function(o){return{}}},{key:"parseOpen",value:function(o){return this.parser=this.parser||this.map[o.name],this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag&&(this.model=this.createNewModel(o),!0)}},{key:"parseText",value:function(o){this.parser&&this.parser.parseText(o)}},{key:"onParserClose",value:function(o,i){this.model[o]=i.model}},{key:"parseClose",value:function(o){return this.parser?(this.parser.parseClose(o)||(this.onParserClose(o,this.parser),this.parser=void 0),!0):o!==this.tag}}])}(e("./base-xform"));r.exports=n},{"./base-xform":32}],49:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){o.openNode("HeadingPairs"),o.openNode("vt:vector",{size:2,baseType:"variant"}),o.openNode("vt:variant"),o.leafNode("vt:lpstr",void 0,"Worksheets"),o.closeNode(),o.openNode("vt:variant"),o.leafNode("vt:i4",void 0,i.length),o.closeNode(),o.closeNode(),o.closeNode()}},{key:"parseOpen",value:function(o){return o.name==="HeadingPairs"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!=="HeadingPairs"}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],50:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){o.openNode("TitlesOfParts"),o.openNode("vt:vector",{size:i.length,baseType:"lpstr"}),i.forEach(function(c){o.leafNode("vt:lpstr",void 0,c.name)}),o.closeNode(),o.closeNode()}},{key:"parseOpen",value:function(o){return o.name==="TitlesOfParts"}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!=="TitlesOfParts"}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],51:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),l=e("../simple/string-xform"),o=e("./app-heading-pairs-xform"),i=e("./app-titles-of-parts-xform"),c=function(u){function h(){var f;return le(this,h),(f=zr(this,h)).map={Company:new l({tag:"Company"}),Manager:new l({tag:"Manager"}),HeadingPairs:new o,TitleOfParts:new i},f}return nr(h,u),ne(h,[{key:"render",value:function(f,d){f.openXml(n.StdDocAttributes),f.openNode("Properties",h.PROPERTY_ATTRIBUTES),f.leafNode("Application",void 0,"Microsoft Excel"),f.leafNode("DocSecurity",void 0,"0"),f.leafNode("ScaleCrop",void 0,"false"),this.map.HeadingPairs.render(f,d.worksheets),this.map.TitleOfParts.render(f,d.worksheets),this.map.Company.render(f,d.company||""),this.map.Manager.render(f,d.manager),f.leafNode("LinksUpToDate",void 0,"false"),f.leafNode("SharedDoc",void 0,"false"),f.leafNode("HyperlinksChanged",void 0,"false"),f.leafNode("AppVersion",void 0,"16.0300"),f.closeNode()}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):f.name==="Properties"||(this.parser=this.map[f.name],!!this.parser&&(this.parser.parseOpen(f),!0))}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!=="Properties"||(this.model={worksheets:this.map.TitleOfParts.model,company:this.map.Company.model,manager:this.map.Manager.model},!1)}}])}(a);c.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3,6}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties","xmlns:vt":"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes"},r.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/string-xform":119,"./app-heading-pairs-xform":49,"./app-titles-of-parts-xform":50}],52:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"render",value:function(i,c){i.openXml(n.StdDocAttributes),i.openNode("Types",o.PROPERTY_ATTRIBUTES);var u={};(c.media||[]).forEach(function(h){if(h.type==="image"){var f=h.extension;u[f]||(u[f]=!0,i.leafNode("Default",{Extension:f,ContentType:"image/".concat(f)}))}}),i.leafNode("Default",{Extension:"rels",ContentType:"application/vnd.openxmlformats-package.relationships+xml"}),i.leafNode("Default",{Extension:"xml",ContentType:"application/xml"}),i.leafNode("Override",{PartName:"/xl/workbook.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml"}),c.worksheets.forEach(function(h){var f="/xl/worksheets/sheet".concat(h.id,".xml");i.leafNode("Override",{PartName:f,ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml"})}),i.leafNode("Override",{PartName:"/xl/theme/theme1.xml",ContentType:"application/vnd.openxmlformats-officedocument.theme+xml"}),i.leafNode("Override",{PartName:"/xl/styles.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml"}),c.sharedStrings&&c.sharedStrings.count&&i.leafNode("Override",{PartName:"/xl/sharedStrings.xml",ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml"}),c.tables&&c.tables.forEach(function(h){i.leafNode("Override",{PartName:"/xl/tables/".concat(h.target),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml"})}),c.drawings&&c.drawings.forEach(function(h){i.leafNode("Override",{PartName:"/xl/drawings/".concat(h.name,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.drawing+xml"})}),c.commentRefs&&(i.leafNode("Default",{Extension:"vml",ContentType:"application/vnd.openxmlformats-officedocument.vmlDrawing"}),c.commentRefs.forEach(function(h){var f=h.commentName;i.leafNode("Override",{PartName:"/xl/".concat(f,".xml"),ContentType:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml"})})),i.leafNode("Override",{PartName:"/docProps/core.xml",ContentType:"application/vnd.openxmlformats-package.core-properties+xml"}),i.leafNode("Override",{PartName:"/docProps/app.xml",ContentType:"application/vnd.openxmlformats-officedocument.extended-properties+xml"}),i.closeNode()}},{key:"parseOpen",value:function(){return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));a.PROPERTY_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/content-types"},r.exports=a},{"../../../utils/xml-stream":28,"../base-xform":32}],53:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),l=e("../simple/date-xform"),o=e("../simple/string-xform"),i=e("../simple/integer-xform"),c=function(u){function h(){var f;return le(this,h),(f=zr(this,h)).map={"dc:creator":new o({tag:"dc:creator"}),"dc:title":new o({tag:"dc:title"}),"dc:subject":new o({tag:"dc:subject"}),"dc:description":new o({tag:"dc:description"}),"dc:identifier":new o({tag:"dc:identifier"}),"dc:language":new o({tag:"dc:language"}),"cp:keywords":new o({tag:"cp:keywords"}),"cp:category":new o({tag:"cp:category"}),"cp:lastModifiedBy":new o({tag:"cp:lastModifiedBy"}),"cp:lastPrinted":new l({tag:"cp:lastPrinted",format:h.DateFormat}),"cp:revision":new i({tag:"cp:revision"}),"cp:version":new o({tag:"cp:version"}),"cp:contentStatus":new o({tag:"cp:contentStatus"}),"cp:contentType":new o({tag:"cp:contentType"}),"dcterms:created":new l({tag:"dcterms:created",attrs:h.DateAttrs,format:h.DateFormat}),"dcterms:modified":new l({tag:"dcterms:modified",attrs:h.DateAttrs,format:h.DateFormat})},f}return nr(h,u),ne(h,[{key:"render",value:function(f,d){f.openXml(n.StdDocAttributes),f.openNode("cp:coreProperties",h.CORE_PROPERTY_ATTRIBUTES),this.map["dc:creator"].render(f,d.creator),this.map["dc:title"].render(f,d.title),this.map["dc:subject"].render(f,d.subject),this.map["dc:description"].render(f,d.description),this.map["dc:identifier"].render(f,d.identifier),this.map["dc:language"].render(f,d.language),this.map["cp:keywords"].render(f,d.keywords),this.map["cp:category"].render(f,d.category),this.map["cp:lastModifiedBy"].render(f,d.lastModifiedBy),this.map["cp:lastPrinted"].render(f,d.lastPrinted),this.map["cp:revision"].render(f,d.revision),this.map["cp:version"].render(f,d.version),this.map["cp:contentStatus"].render(f,d.contentStatus),this.map["cp:contentType"].render(f,d.contentType),this.map["dcterms:created"].render(f,d.created),this.map["dcterms:modified"].render(f,d.modified),f.closeNode()}},{key:"parseOpen",value:function(f){if(this.parser)return this.parser.parseOpen(f),!0;switch(f.name){case"cp:coreProperties":case"coreProperties":return!0;default:if(this.parser=this.map[f.name],this.parser)return this.parser.parseOpen(f),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(f)))}}},{key:"parseText",value:function(f){this.parser&&this.parser.parseText(f)}},{key:"parseClose",value:function(f){if(this.parser)return this.parser.parseClose(f)||(this.parser=void 0),!0;switch(f){case"cp:coreProperties":case"coreProperties":return this.model={creator:this.map["dc:creator"].model,title:this.map["dc:title"].model,subject:this.map["dc:subject"].model,description:this.map["dc:description"].model,identifier:this.map["dc:identifier"].model,language:this.map["dc:language"].model,keywords:this.map["cp:keywords"].model,category:this.map["cp:category"].model,lastModifiedBy:this.map["cp:lastModifiedBy"].model,lastPrinted:this.map["cp:lastPrinted"].model,revision:this.map["cp:revision"].model,contentStatus:this.map["cp:contentStatus"].model,contentType:this.map["cp:contentType"].model,created:this.map["dcterms:created"].model,modified:this.map["dcterms:modified"].model},!1;default:throw new Error("Unexpected xml node in parseClose: ".concat(f))}}}])}(a);c.DateFormat=function(u){return u.toISOString().replace(/[.]\d{3}/,"")},c.DateAttrs={"xsi:type":"dcterms:W3CDTF"},c.CORE_PROPERTY_ATTRIBUTES={"xmlns:cp":"http://schemas.openxmlformats.org/package/2006/metadata/core-properties","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:dcterms":"http://purl.org/dc/terms/","xmlns:dcmitype":"http://purl.org/dc/dcmitype/","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance"},r.exports=c},{"../../../utils/xml-stream":28,"../base-xform":32,"../simple/date-xform":117,"../simple/integer-xform":118,"../simple/string-xform":119}],54:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"render",value:function(o,i){o.leafNode("Relationship",i)}},{key:"parseOpen",value:function(o){return o.name==="Relationship"&&(this.model=o.attributes,!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],55:[function(e,r,t){var n=e("../../../utils/xml-stream"),a=e("../base-xform"),l=e("./relationship-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={Relationship:new l},u}return nr(c,i),ne(c,[{key:"render",value:function(u,h){var f=this;h=h||this._values,u.openXml(n.StdDocAttributes),u.openNode("Relationships",c.RELATIONSHIPS_ATTRIBUTES),h.forEach(function(d){f.map.Relationship.render(u,d)}),u.closeNode()}},{key:"parseOpen",value:function(u){if(this.parser)return this.parser.parseOpen(u),!0;if(u.name==="Relationships")return this.model=[],!0;if(this.parser=this.map[u.name],this.parser)return this.parser.parseOpen(u),!0;throw new Error("Unexpected xml node in parseOpen: ".concat(JSON.stringify(u)))}},{key:"parseText",value:function(u){this.parser&&this.parser.parseText(u)}},{key:"parseClose",value:function(u){if(this.parser)return this.parser.parseClose(u)||(this.model.push(this.parser.model),this.parser=void 0),!0;if(u==="Relationships")return!1;throw new Error("Unexpected xml node in parseClose: ".concat(u))}}])}(a);o.RELATIONSHIPS_ATTRIBUTES={xmlns:"http://schemas.openxmlformats.org/package/2006/relationships"},r.exports=o},{"../../../utils/xml-stream":28,"../base-xform":32,"./relationship-xform":54}],56:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"parseOpen",value:function(o){return this.parser?(this.parser.parseOpen(o),!0):(o.name===this.tag?(this.reset(),this.model={range:{editAs:o.attributes.editAs||"oneCell"}}):(this.parser=this.map[o.name],this.parser&&this.parser.parseOpen(o)),!0)}},{key:"parseText",value:function(o){this.parser&&this.parser.parseText(o)}},{key:"reconcilePicture",value:function(o,i){if(o&&o.rId){var c=i.rels[o.rId].Target.match(/.*\/media\/(.+[.][a-zA-Z]{3,4})/);if(c){var u=c[1],h=i.mediaIndex[u];return i.media[h]}}}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],57:[function(e,r,t){var n=e("../base-xform"),a=e("./blip-xform"),l=function(o){function i(){var c;return le(this,i),(c=zr(this,i)).map={"a:blip":new a},c}return nr(i,o),ne(i,[{key:"tag",get:function(){return"xdr:blipFill"}},{key:"render",value:function(c,u){c.openNode(this.tag),this.map["a:blip"].render(c,u),c.openNode("a:stretch"),c.leafNode("a:fillRect"),c.closeNode(),c.closeNode()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):(c.name===this.tag?this.reset():(this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.model=this.map["a:blip"].model,!1)}}])}(n);r.exports=l},{"../base-xform":32,"./blip-xform":58}],58:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"a:blip"}},{key:"render",value:function(o,i){o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:embed":i.rId,cstate:"print"})}},{key:"parseOpen",value:function(o){return o.name!==this.tag||(this.model={rId:o.attributes["r:embed"]},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],59:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"xdr:cNvPicPr"}},{key:"render",value:function(o){o.openNode(this.tag),o.leafNode("a:picLocks",{noChangeAspect:"1"}),o.closeNode()}},{key:"parseOpen",value:function(o){return o.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],60:[function(e,r,t){var n=e("../base-xform"),a=e("./hlink-click-xform"),l=e("./ext-lst-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"a:hlinkClick":new a,"a:extLst":new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"xdr:cNvPr"}},{key:"render",value:function(u,h){u.openNode(this.tag,{id:h.index,name:"Picture ".concat(h.index)}),this.map["a:hlinkClick"].render(u,h),this.map["a:extLst"].render(u,h),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model=this.map["a:hlinkClick"].model,!1)}}])}(n);r.exports=o},{"../base-xform":32,"./ext-lst-xform":63,"./hlink-click-xform":65}],61:[function(e,r,t){var n=e("../base-xform"),a=e("../simple/integer-xform"),l=function(o){function i(c){var u;return le(this,i),(u=zr(this,i)).tag=c.tag,u.map={"xdr:col":new a({tag:"xdr:col",zero:!0}),"xdr:colOff":new a({tag:"xdr:colOff",zero:!0}),"xdr:row":new a({tag:"xdr:row",zero:!0}),"xdr:rowOff":new a({tag:"xdr:rowOff",zero:!0})},u}return nr(i,o),ne(i,[{key:"render",value:function(c,u){c.openNode(this.tag),this.map["xdr:col"].render(c,u.nativeCol),this.map["xdr:colOff"].render(c,u.nativeColOff),this.map["xdr:row"].render(c,u.nativeRow),this.map["xdr:rowOff"].render(c,u.nativeRowOff),c.closeNode()}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):(c.name===this.tag?this.reset():(this.parser=this.map[c.name],this.parser&&this.parser.parseOpen(c)),!0)}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return this.parser?(this.parser.parseClose(c)||(this.parser=void 0),!0):c!==this.tag||(this.model={nativeCol:this.map["xdr:col"].model,nativeColOff:this.map["xdr:colOff"].model,nativeRow:this.map["xdr:row"].model,nativeRowOff:this.map["xdr:rowOff"].model},!1)}}])}(n);r.exports=l},{"../base-xform":32,"../simple/integer-xform":118}],62:[function(e,r,t){var n=e("../../../utils/col-cache"),a=e("../../../utils/xml-stream"),l=e("../base-xform"),o=e("./two-cell-anchor-xform"),i=e("./one-cell-anchor-xform");function c(h){return(typeof h.range=="string"?n.decode(h.range):h.range).br?"xdr:twoCellAnchor":"xdr:oneCellAnchor"}var u=function(h){function f(){var d;return le(this,f),(d=zr(this,f)).map={"xdr:twoCellAnchor":new o,"xdr:oneCellAnchor":new i},d}return nr(f,h),ne(f,[{key:"prepare",value:function(d){var p=this;d.anchors.forEach(function(g,v){g.anchorType=c(g),p.map[g.anchorType].prepare(g,{index:v})})}},{key:"tag",get:function(){return"xdr:wsDr"}},{key:"render",value:function(d,p){var g=this;d.openXml(a.StdDocAttributes),d.openNode(this.tag,f.DRAWING_ATTRIBUTES),p.anchors.forEach(function(v){g.map[v.anchorType].render(d,v)}),d.closeNode()}},{key:"parseOpen",value:function(d){return this.parser?(this.parser.parseOpen(d),!0):(d.name===this.tag?(this.reset(),this.model={anchors:[]}):(this.parser=this.map[d.name],this.parser&&this.parser.parseOpen(d)),!0)}},{key:"parseText",value:function(d){this.parser&&this.parser.parseText(d)}},{key:"parseClose",value:function(d){return this.parser?(this.parser.parseClose(d)||(this.model.anchors.push(this.parser.model),this.parser=void 0),!0):d!==this.tag}},{key:"reconcile",value:function(d,p){var g=this;d.anchors.forEach(function(v){v.br?g.map["xdr:twoCellAnchor"].reconcile(v,p):g.map["xdr:oneCellAnchor"].reconcile(v,p)})}}])}(l);u.DRAWING_ATTRIBUTES={"xmlns:xdr":"http://schemas.openxmlformats.org/drawingml/2006/spreadsheetDrawing","xmlns:a":"http://schemas.openxmlformats.org/drawingml/2006/main"},r.exports=u},{"../../../utils/col-cache":19,"../../../utils/xml-stream":28,"../base-xform":32,"./one-cell-anchor-xform":67,"./two-cell-anchor-xform":70}],63:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"a:extLst"}},{key:"render",value:function(o){o.openNode(this.tag),o.openNode("a:ext",{uri:"{FF2B5EF4-FFF2-40B4-BE49-F238E27FC236}"}),o.leafNode("a16:creationId",{"xmlns:a16":"http://schemas.microsoft.com/office/drawing/2014/main",id:"{00000000-0008-0000-0000-000002000000}"}),o.closeNode(),o.closeNode()}},{key:"parseOpen",value:function(o){return o.name,this.tag,!0}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],64:[function(e,r,t){var n=e("../base-xform"),a=9525,l=function(o){function i(c){var u;return le(this,i),(u=zr(this,i)).tag=c.tag,u.map={},u}return nr(i,o),ne(i,[{key:"render",value:function(c,u){c.openNode(this.tag);var h=Math.floor(u.width*a),f=Math.floor(u.height*a);c.addAttribute("cx",h),c.addAttribute("cy",f),c.closeNode()}},{key:"parseOpen",value:function(c){return c.name===this.tag&&(this.model={width:parseInt(c.attributes.cx||"0",10)/a,height:parseInt(c.attributes.cy||"0",10)/a},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(n);r.exports=l},{"../base-xform":32}],65:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"a:hlinkClick"}},{key:"render",value:function(o,i){i.hyperlinks&&i.hyperlinks.rId&&o.leafNode(this.tag,{"xmlns:r":"http://schemas.openxmlformats.org/officeDocument/2006/relationships","r:id":i.hyperlinks.rId,tooltip:i.hyperlinks.tooltip})}},{key:"parseOpen",value:function(o){return o.name!==this.tag||(this.model={hyperlinks:{rId:o.attributes["r:id"],tooltip:o.attributes.tooltip}},!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}}])}(e("../base-xform"));r.exports=n},{"../base-xform":32}],66:[function(e,r,t){var n=e("../base-xform"),a=e("./c-nv-pr-xform"),l=e("./c-nv-pic-pr-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"xdr:cNvPr":new a,"xdr:cNvPicPr":new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"xdr:nvPicPr"}},{key:"render",value:function(u,h){u.openNode(this.tag),this.map["xdr:cNvPr"].render(u,h),this.map["xdr:cNvPicPr"].render(u,h),u.closeNode()}},{key:"parseOpen",value:function(u){return this.parser?(this.parser.parseOpen(u),!0):(u.name===this.tag?this.reset():(this.parser=this.map[u.name],this.parser&&this.parser.parseOpen(u)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(u){return this.parser?(this.parser.parseClose(u)||(this.parser=void 0),!0):u!==this.tag||(this.model=this.map["xdr:cNvPr"].model,!1)}}])}(n);r.exports=o},{"../base-xform":32,"./c-nv-pic-pr-xform":59,"./c-nv-pr-xform":60}],67:[function(e,r,t){var n=e("./base-cell-anchor-xform"),a=e("../static-xform"),l=e("./cell-position-xform"),o=e("./ext-xform"),i=e("./pic-xform"),c=function(u){function h(){var f;return le(this,h),(f=zr(this,h)).map={"xdr:from":new l({tag:"xdr:from"}),"xdr:ext":new o({tag:"xdr:ext"}),"xdr:pic":new i,"xdr:clientData":new a({tag:"xdr:clientData"})},f}return nr(h,u),ne(h,[{key:"tag",get:function(){return"xdr:oneCellAnchor"}},{key:"prepare",value:function(f,d){this.map["xdr:pic"].prepare(f.picture,d)}},{key:"render",value:function(f,d){f.openNode(this.tag,{editAs:d.range.editAs||"oneCell"}),this.map["xdr:from"].render(f,d.range.tl),this.map["xdr:ext"].render(f,d.range.ext),this.map["xdr:pic"].render(f,d.picture),this.map["xdr:clientData"].render(f,{}),f.closeNode()}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.parser=void 0),!0):f!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.ext=this.map["xdr:ext"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(f,d){f.medium=this.reconcilePicture(f.picture,d)}}])}(n);r.exports=c},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./ext-xform":64,"./pic-xform":68}],68:[function(e,r,t){var n=e("../base-xform"),a=e("../static-xform"),l=e("./blip-fill-xform"),o=e("./nv-pic-pr-xform"),i=e("./sp-pr"),c=function(u){function h(){var f;return le(this,h),(f=zr(this,h)).map={"xdr:nvPicPr":new o,"xdr:blipFill":new l,"xdr:spPr":new a(i)},f}return nr(h,u),ne(h,[{key:"tag",get:function(){return"xdr:pic"}},{key:"prepare",value:function(f,d){f.index=d.index+1}},{key:"render",value:function(f,d){f.openNode(this.tag),this.map["xdr:nvPicPr"].render(f,d),this.map["xdr:blipFill"].render(f,d),this.map["xdr:spPr"].render(f,d),f.closeNode()}},{key:"parseOpen",value:function(f){return this.parser?(this.parser.parseOpen(f),!0):(f.name===this.tag?this.reset():(this.parser=this.map[f.name],this.parser&&this.parser.parseOpen(f)),!0)}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(f){return this.parser?(this.parser.parseClose(f)||(this.mergeModel(this.parser.model),this.parser=void 0),!0):f!==this.tag}}])}(n);r.exports=c},{"../base-xform":32,"../static-xform":120,"./blip-fill-xform":57,"./nv-pic-pr-xform":66,"./sp-pr":69}],69:[function(e,r,t){r.exports={tag:"xdr:spPr",c:[{tag:"a:xfrm",c:[{tag:"a:off",$:{x:"0",y:"0"}},{tag:"a:ext",$:{cx:"0",cy:"0"}}]},{tag:"a:prstGeom",$:{prst:"rect"},c:[{tag:"a:avLst"}]}]}},{}],70:[function(e,r,t){var n=e("./base-cell-anchor-xform"),a=e("../static-xform"),l=e("./cell-position-xform"),o=e("./pic-xform"),i=function(c){function u(){var h;return le(this,u),(h=zr(this,u)).map={"xdr:from":new l({tag:"xdr:from"}),"xdr:to":new l({tag:"xdr:to"}),"xdr:pic":new o,"xdr:clientData":new a({tag:"xdr:clientData"})},h}return nr(u,c),ne(u,[{key:"tag",get:function(){return"xdr:twoCellAnchor"}},{key:"prepare",value:function(h,f){this.map["xdr:pic"].prepare(h.picture,f)}},{key:"render",value:function(h,f){h.openNode(this.tag,{editAs:f.range.editAs||"oneCell"}),this.map["xdr:from"].render(h,f.range.tl),this.map["xdr:to"].render(h,f.range.br),this.map["xdr:pic"].render(h,f.picture),this.map["xdr:clientData"].render(h,{}),h.closeNode()}},{key:"parseClose",value:function(h){return this.parser?(this.parser.parseClose(h)||(this.parser=void 0),!0):h!==this.tag||(this.model.range.tl=this.map["xdr:from"].model,this.model.range.br=this.map["xdr:to"].model,this.model.picture=this.map["xdr:pic"].model,!1)}},{key:"reconcile",value:function(h,f){h.medium=this.reconcilePicture(h.picture,f)}}])}(n);r.exports=i},{"../static-xform":120,"./base-cell-anchor-xform":56,"./cell-position-xform":61,"./pic-xform":68}],71:[function(e,r,t){var n=function(a){function l(o){var i;return le(this,l),(i=zr(this,l)).tag=o.tag,i.always=!!o.always,i.count=o.count,i.empty=o.empty,i.$count=o.$count||"count",i.$=o.$,i.childXform=o.childXform,i.maxItems=o.maxItems,i}return nr(l,a),ne(l,[{key:"prepare",value:function(o,i){var c=this.childXform;o&&o.forEach(function(u,h){i.index=h,c.prepare(u,i)})}},{key:"render",value:function(o,i){if(this.always||i&&i.length){o.openNode(this.tag,this.$),this.count&&o.addAttribute(this.$count,i&&i.length||0);var c=this.childXform;(i||[]).forEach(function(u,h){c.render(o,u,h)}),o.closeNode()}else this.empty&&o.leafNode(this.tag)}},{key:"parseOpen",value:function(o){return this.parser?(this.parser.parseOpen(o),!0):o.name===this.tag?(this.model=[],!0):!!this.childXform.parseOpen(o)&&(this.parser=this.childXform,!0)}},{key:"parseText",value:function(o){this.parser&&this.parser.parseText(o)}},{key:"parseClose",value:function(o){if(this.parser){if(!this.parser.parseClose(o)&&(this.model.push(this.parser.model),this.parser=void 0,this.maxItems&&this.model.length>this.maxItems))throw new Error("Max ".concat(this.childXform.tag," count (").concat(this.maxItems,") exceeded"));return!0}return!1}},{key:"reconcile",value:function(o,i){if(o){var c=this.childXform;o.forEach(function(u){c.reconcile(u,i)})}}}])}(e("./base-xform"));r.exports=n},{"./base-xform":32}],72:[function(e,r,t){var n=e("../../../utils/col-cache"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"tag",get:function(){return"autoFilter"}},{key:"render",value:function(i,c){if(c)if(typeof c=="string")i.leafNode("autoFilter",{ref:c});else{var u=function(d){return typeof d=="string"?d:n.getAddress(d.row,d.column).address},h=u(c.from),f=u(c.to);h&&f&&i.leafNode("autoFilter",{ref:"".concat(h,":").concat(f)})}}},{key:"parseOpen",value:function(i){i.name==="autoFilter"&&(this.model=i.attributes.ref)}}])}(e("../base-xform"));r.exports=a},{"../../../utils/col-cache":19,"../base-xform":32}],73:[function(e,r,t){var n=e("../../../utils/utils"),a=e("../base-xform"),l=e("../../../doc/range"),o=e("../../../doc/enums"),i=e("../strings/rich-text-xform");function c(f){if(f==null)return o.ValueType.Null;if(f instanceof String||typeof f=="string")return o.ValueType.String;if(typeof f=="number")return o.ValueType.Number;if(typeof f=="boolean")return o.ValueType.Boolean;if(f instanceof Date)return o.ValueType.Date;if(f.text&&f.hyperlink)return o.ValueType.Hyperlink;if(f.formula)return o.ValueType.Formula;if(f.error)return o.ValueType.Error;throw new Error("I could not understand type of value")}function u(f){return f.type===o.ValueType.Formula?c(f.result):f.type}var h=function(f){function d(){var p;return le(this,d),(p=zr(this,d)).richTextXForm=new i,p}return nr(d,f),ne(d,[{key:"tag",get:function(){return"c"}},{key:"prepare",value:function(p,g){var v=g.styles.addStyleModel(p.style||{},u(p));switch(v&&(p.styleId=v),p.comment&&g.comments.push(xo(xo({},p.comment),{},{ref:p.address})),p.type){case o.ValueType.String:case o.ValueType.RichText:g.sharedStrings&&(p.ssId=g.sharedStrings.add(p.value));break;case o.ValueType.Date:g.date1904&&(p.date1904=!0);break;case o.ValueType.Hyperlink:g.sharedStrings&&p.text!==void 0&&p.text!==null&&(p.ssId=g.sharedStrings.add(p.text)),g.hyperlinks.push({address:p.address,target:p.hyperlink,tooltip:p.tooltip});break;case o.ValueType.Merge:g.merges.add(p);break;case o.ValueType.Formula:if(g.date1904&&(p.date1904=!0),p.shareType==="shared"&&(p.si=g.siFormulae++),p.formula)g.formulae[p.address]=p;else if(p.sharedFormula){var b=g.formulae[p.sharedFormula];if(!b)throw new Error("Shared Formula master must exist above and or left of clone for cell ".concat(p.address));b.si===void 0?(b.shareType="shared",b.si=g.siFormulae++,b.range=new l(b.address,p.address)):b.range&&b.range.expandToAddress(p.address),p.si=b.si}}}},{key:"renderFormula",value:function(p,g){var v=null;switch(g.shareType){case"shared":v={t:"shared",ref:g.ref||g.range.range,si:g.si};break;case"array":v={t:"array",ref:g.ref};break;default:g.si!==void 0&&(v={t:"shared",si:g.si})}switch(c(g.result)){case o.ValueType.Null:p.leafNode("f",v,g.formula);break;case o.ValueType.String:p.addAttribute("t","str"),p.leafNode("f",v,g.formula),p.leafNode("v",null,g.result);break;case o.ValueType.Number:p.leafNode("f",v,g.formula),p.leafNode("v",null,g.result);break;case o.ValueType.Boolean:p.addAttribute("t","b"),p.leafNode("f",v,g.formula),p.leafNode("v",null,g.result?1:0);break;case o.ValueType.Error:p.addAttribute("t","e"),p.leafNode("f",v,g.formula),p.leafNode("v",null,g.result.error);break;case o.ValueType.Date:p.leafNode("f",v,g.formula),p.leafNode("v",null,n.dateToExcel(g.result,g.date1904));break;default:throw new Error("I could not understand type of value")}}},{key:"render",value:function(p,g){var v=this;if(g.type!==o.ValueType.Null||g.styleId){switch(p.openNode("c"),p.addAttribute("r",g.address),g.styleId&&p.addAttribute("s",g.styleId),g.type){case o.ValueType.Null:break;case o.ValueType.Number:p.leafNode("v",null,g.value);break;case o.ValueType.Boolean:p.addAttribute("t","b"),p.leafNode("v",null,g.value?"1":"0");break;case o.ValueType.Error:p.addAttribute("t","e"),p.leafNode("v",null,g.value.error);break;case o.ValueType.String:case o.ValueType.RichText:g.ssId!==void 0?(p.addAttribute("t","s"),p.leafNode("v",null,g.ssId)):g.value&&g.value.richText?(p.addAttribute("t","inlineStr"),p.openNode("is"),g.value.richText.forEach(function(b){v.richTextXForm.render(p,b)}),p.closeNode("is")):(p.addAttribute("t","str"),p.leafNode("v",null,g.value));break;case o.ValueType.Date:p.leafNode("v",null,n.dateToExcel(g.value,g.date1904));break;case o.ValueType.Hyperlink:g.ssId!==void 0?(p.addAttribute("t","s"),p.leafNode("v",null,g.ssId)):(p.addAttribute("t","str"),p.leafNode("v",null,g.text));break;case o.ValueType.Formula:this.renderFormula(p,g);case o.ValueType.Merge:}p.closeNode()}}},{key:"parseOpen",value:function(p){if(this.parser)return this.parser.parseOpen(p),!0;switch(p.name){case"c":return this.model={address:p.attributes.r},this.t=p.attributes.t,p.attributes.s&&(this.model.styleId=parseInt(p.attributes.s,10)),!0;case"f":return this.currentNode="f",this.model.si=p.attributes.si,this.model.shareType=p.attributes.t,this.model.ref=p.attributes.ref,!0;case"v":return this.currentNode="v",!0;case"t":return this.currentNode="t",!0;case"r":return this.parser=this.richTextXForm,this.parser.parseOpen(p),!0;default:return!1}}},{key:"parseText",value:function(p){if(this.parser)this.parser.parseText(p);else switch(this.currentNode){case"f":this.model.formula=this.model.formula?this.model.formula+p:p;break;case"v":case"t":this.model.value&&this.model.value.richText?this.model.value.richText.text=this.model.value.richText.text?this.model.value.richText.text+p:p:this.model.value=this.model.value?this.model.value+p:p}}},{key:"parseClose",value:function(p){switch(p){case"c":var g=this.model;if(g.formula||g.shareType)g.type=o.ValueType.Formula,g.value&&(this.t==="str"?g.result=n.xmlDecode(g.value):this.t==="b"?g.result=parseInt(g.value,10)!==0:this.t==="e"?g.result={error:g.value}:g.result=parseFloat(g.value),g.value=void 0);else if(g.value!==void 0)switch(this.t){case"s":g.type=o.ValueType.String,g.value=parseInt(g.value,10);break;case"str":g.type=o.ValueType.String,g.value=n.xmlDecode(g.value);break;case"inlineStr":g.type=o.ValueType.String;break;case"b":g.type=o.ValueType.Boolean,g.value=parseInt(g.value,10)!==0;break;case"e":g.type=o.ValueType.Error,g.value={error:g.value};break;default:g.type=o.ValueType.Number,g.value=parseFloat(g.value)}else g.styleId?g.type=o.ValueType.Null:g.type=o.ValueType.Merge;return!1;case"f":case"v":case"is":return this.currentNode=void 0,!0;case"t":return this.parser?(this.parser.parseClose(p),!0):(this.currentNode=void 0,!0);case"r":return this.model.value=this.model.value||{},this.model.value.richText=this.model.value.richText||[],this.model.value.richText.push(this.parser.model),this.parser=void 0,this.currentNode=void 0,!0;default:return!!this.parser&&(this.parser.parseClose(p),!0)}}},{key:"reconcile",value:function(p,g){var v=p.styleId&&g.styles&&g.styles.getStyleModel(p.styleId);switch(v&&(p.style=v),p.styleId!==void 0&&(p.styleId=void 0),p.type){case o.ValueType.String:typeof p.value=="number"&&g.sharedStrings&&(p.value=g.sharedStrings.getString(p.value)),p.value.richText&&(p.type=o.ValueType.RichText);break;case o.ValueType.Number:v&&n.isDateFmt(v.numFmt)&&(p.type=o.ValueType.Date,p.value=n.excelToDate(p.value,g.date1904));break;case o.ValueType.Formula:p.result!==void 0&&v&&n.isDateFmt(v.numFmt)&&(p.result=n.excelToDate(p.result,g.date1904)),p.shareType==="shared"&&(p.ref?g.formulae[p.si]=p.address:(p.sharedFormula=g.formulae[p.si],delete p.shareType),delete p.si)}var b=g.hyperlinkMap[p.address];b&&(p.type===o.ValueType.Formula?(p.text=p.result,p.result=void 0):(p.text=p.value,p.value=void 0),p.type=o.ValueType.Hyperlink,p.hyperlink=b);var _=g.commentsMap&&g.commentsMap[p.address];_&&(p.comment=_)}}])}(a);r.exports=h},{"../../../doc/enums":7,"../../../doc/range":10,"../../../utils/utils":27,"../base-xform":32,"../strings/rich-text-xform":122}],74:[function(e,r,t){var n=e("../../base-xform"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"tag",get:function(){return"x14:cfIcon"}},{key:"render",value:function(i,c){i.leafNode(this.tag,{iconSet:c.iconSet,iconId:c.iconId})}},{key:"parseOpen",value:function(i){var c=i.attributes;this.model={iconSet:c.iconSet,iconId:n.toIntValue(c.iconId)}}},{key:"parseClose",value:function(i){return i!==this.tag}}])}(n);r.exports=a},{"../../base-xform":32}],75:[function(e,r,t){var n=e("uuid").v4,a=e("../../base-xform"),l=e("../../composite-xform"),o=e("./databar-ext-xform"),i=e("./icon-set-ext-xform"),c={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},u=function(h){function f(){var d;return le(this,f),(d=zr(this,f)).map={"x14:dataBar":d.databarXform=new o,"x14:iconSet":d.iconSetXform=new i},d}return nr(f,h),ne(f,[{key:"tag",get:function(){return"x14:cfRule"}},{key:"prepare",value:function(d){f.isExt(d)&&(d.x14Id="{".concat(n(),"}").toUpperCase())}},{key:"render",value:function(d,p){if(f.isExt(p))switch(p.type){case"dataBar":this.renderDataBar(d,p);break;case"iconSet":this.renderIconSet(d,p)}}},{key:"renderDataBar",value:function(d,p){d.openNode(this.tag,{type:"dataBar",id:p.x14Id}),this.databarXform.render(d,p),d.closeNode()}},{key:"renderIconSet",value:function(d,p){d.openNode(this.tag,{type:"iconSet",priority:p.priority,id:p.x14Id||"{".concat(n(),"}")}),this.iconSetXform.render(d,p),d.closeNode()}},{key:"createNewModel",value:function(d){var p=d.attributes;return{type:p.type,x14Id:p.id,priority:a.toIntValue(p.priority)}}},{key:"onParserClose",value:function(d,p){Object.assign(this.model,p.model)}}],[{key:"isExt",value:function(d){return d.type==="dataBar"?o.isExt(d):!(d.type!=="iconSet"||!d.custom&&!c[d.iconSet])}}])}(l);r.exports=u},{"../../base-xform":32,"../../composite-xform":48,"./databar-ext-xform":79,"./icon-set-ext-xform":81,uuid:528}],76:[function(e,r,t){var n=e("../../composite-xform"),a=e("./f-ext-xform"),l=function(o){function i(){var c;return le(this,i),(c=zr(this,i)).map={"xm:f":c.fExtXform=new a},c}return nr(i,o),ne(i,[{key:"tag",get:function(){return"x14:cfvo"}},{key:"render",value:function(c,u){c.openNode(this.tag,{type:u.type}),u.value!==void 0&&this.fExtXform.render(c,u.value),c.closeNode()}},{key:"createNewModel",value:function(c){return{type:c.attributes.type}}},{key:"onParserClose",value:function(c,u){c==="xm:f"&&(this.model.value=u.model?parseFloat(u.model):0)}}])}(n);r.exports=l},{"../../composite-xform":48,"./f-ext-xform":80}],77:[function(e,r,t){var n=e("../../composite-xform"),a=e("./sqref-ext-xform"),l=e("./cf-rule-ext-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"xm:sqref":u.sqRef=new a,"x14:cfRule":u.cfRule=new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"x14:conditionalFormatting"}},{key:"prepare",value:function(u,h){var f=this;u.rules.forEach(function(d){f.cfRule.prepare(d,h)})}},{key:"render",value:function(u,h){var f=this;h.rules.some(l.isExt)&&(u.openNode(this.tag,{"xmlns:xm":"http://schemas.microsoft.com/office/excel/2006/main"}),h.rules.filter(l.isExt).forEach(function(d){return f.cfRule.render(u,d)}),this.sqRef.render(u,h.ref),u.closeNode())}},{key:"createNewModel",value:function(){return{rules:[]}}},{key:"onParserClose",value:function(u,h){switch(u){case"xm:sqref":this.model.ref=h.model;break;case"x14:cfRule":this.model.rules.push(h.model)}}}])}(n);r.exports=o},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./sqref-ext-xform":82}],78:[function(e,r,t){var n=e("../../composite-xform"),a=e("./cf-rule-ext-xform"),l=e("./conditional-formatting-ext-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={"x14:conditionalFormatting":u.cfXform=new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"x14:conditionalFormattings"}},{key:"hasContent",value:function(u){return u.hasExtContent===void 0&&(u.hasExtContent=u.some(function(h){return h.rules.some(a.isExt)})),u.hasExtContent}},{key:"prepare",value:function(u,h){var f=this;u.forEach(function(d){f.cfXform.prepare(d,h)})}},{key:"render",value:function(u,h){var f=this;this.hasContent(h)&&(u.openNode(this.tag),h.forEach(function(d){return f.cfXform.render(u,d)}),u.closeNode())}},{key:"createNewModel",value:function(){return[]}},{key:"onParserClose",value:function(u,h){this.model.push(h.model)}}])}(n);r.exports=o},{"../../composite-xform":48,"./cf-rule-ext-xform":75,"./conditional-formatting-ext-xform":77}],79:[function(e,r,t){var n=e("../../base-xform"),a=e("../../composite-xform"),l=e("../../style/color-xform"),o=e("./cfvo-ext-xform"),i=function(c){function u(){var h;return le(this,u),(h=zr(this,u)).map={"x14:cfvo":h.cfvoXform=new o,"x14:borderColor":h.borderColorXform=new l("x14:borderColor"),"x14:negativeBorderColor":h.negativeBorderColorXform=new l("x14:negativeBorderColor"),"x14:negativeFillColor":h.negativeFillColorXform=new l("x14:negativeFillColor"),"x14:axisColor":h.axisColorXform=new l("x14:axisColor")},h}return nr(u,c),ne(u,[{key:"tag",get:function(){return"x14:dataBar"}},{key:"render",value:function(h,f){var d=this;h.openNode(this.tag,{minLength:n.toIntAttribute(f.minLength,0,!0),maxLength:n.toIntAttribute(f.maxLength,100,!0),border:n.toBoolAttribute(f.border,!1),gradient:n.toBoolAttribute(f.gradient,!0),negativeBarColorSameAsPositive:n.toBoolAttribute(f.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolAttribute(f.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toAttribute(f.axisPosition,"auto"),direction:n.toAttribute(f.direction,"leftToRight")}),f.cfvo.forEach(function(p){d.cfvoXform.render(h,p)}),this.borderColorXform.render(h,f.borderColor),this.negativeBorderColorXform.render(h,f.negativeBorderColor),this.negativeFillColorXform.render(h,f.negativeFillColor),this.axisColorXform.render(h,f.axisColor),h.closeNode()}},{key:"createNewModel",value:function(h){var f=h.attributes;return{cfvo:[],minLength:n.toIntValue(f.minLength,0),maxLength:n.toIntValue(f.maxLength,100),border:n.toBoolValue(f.border,!1),gradient:n.toBoolValue(f.gradient,!0),negativeBarColorSameAsPositive:n.toBoolValue(f.negativeBarColorSameAsPositive,!0),negativeBarBorderColorSameAsPositive:n.toBoolValue(f.negativeBarBorderColorSameAsPositive,!0),axisPosition:n.toStringValue(f.axisPosition,"auto"),direction:n.toStringValue(f.direction,"leftToRight")}}},{key:"onParserClose",value:function(h,f){var d=ge(h.split(":"),2)[1];d==="cfvo"?this.model.cfvo.push(f.model):this.model[d]=f.model}}],[{key:"isExt",value:function(h){return!h.gradient}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-ext-xform":76}],80:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"xm:f"}},{key:"render",value:function(o,i){o.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(o){this.model+=o}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../../base-xform"));r.exports=n},{"../../base-xform":32}],81:[function(e,r,t){var n=e("../../base-xform"),a=e("../../composite-xform"),l=e("./cfvo-ext-xform"),o=e("./cf-icon-ext-xform"),i=function(c){function u(){var h;return le(this,u),(h=zr(this,u)).map={"x14:cfvo":h.cfvoXform=new l,"x14:cfIcon":h.cfIconXform=new o},h}return nr(u,c),ne(u,[{key:"tag",get:function(){return"x14:iconSet"}},{key:"render",value:function(h,f){var d=this;h.openNode(this.tag,{iconSet:n.toStringAttribute(f.iconSet),reverse:n.toBoolAttribute(f.reverse,!1),showValue:n.toBoolAttribute(f.showValue,!0),custom:n.toBoolAttribute(f.icons,!1)}),f.cfvo.forEach(function(p){d.cfvoXform.render(h,p)}),f.icons&&f.icons.forEach(function(p,g){p.iconId=g,d.cfIconXform.render(h,p)}),h.closeNode()}},{key:"createNewModel",value:function(h){var f=h.attributes;return{cfvo:[],iconSet:n.toStringValue(f.iconSet,"3TrafficLights"),reverse:n.toBoolValue(f.reverse,!1),showValue:n.toBoolValue(f.showValue,!0)}}},{key:"onParserClose",value:function(h,f){var d=ge(h.split(":"),2)[1];switch(d){case"cfvo":this.model.cfvo.push(f.model);break;case"cfIcon":this.model.icons||(this.model.icons=[]),this.model.icons.push(f.model);break;default:this.model[d]=f.model}}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48,"./cf-icon-ext-xform":74,"./cfvo-ext-xform":76}],82:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"xm:sqref"}},{key:"render",value:function(o,i){o.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(o){this.model+=o}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../../base-xform"));r.exports=n},{"../../base-xform":32}],83:[function(e,r,t){var n=e("../../base-xform"),a=e("../../composite-xform"),l=e("../../../../doc/range"),o=e("./databar-xform"),i=e("./ext-lst-ref-xform"),c=e("./formula-xform"),u=e("./color-scale-xform"),h=e("./icon-set-xform"),f={"3Triangles":!0,"3Stars":!0,"5Boxes":!0},d=function(b){if(b.formulae&&b.formulae[0])return b.formulae[0];var _=new l(b.ref).tl;switch(b.operator){case"containsText":return'NOT(ISERROR(SEARCH("'.concat(b.text,'",').concat(_,")))");case"containsBlanks":return"LEN(TRIM(".concat(_,"))=0");case"notContainsBlanks":return"LEN(TRIM(".concat(_,"))>0");case"containsErrors":return"ISERROR(".concat(_,")");case"notContainsErrors":return"NOT(ISERROR(".concat(_,"))");default:return}},p=function(b){if(b.formulae&&b.formulae[0])return b.formulae[0];var _=new l(b.ref).tl;switch(b.timePeriod){case"thisWeek":return"AND(TODAY()-ROUNDDOWN(".concat(_,",0)<=WEEKDAY(TODAY())-1,ROUNDDOWN(").concat(_,",0)-TODAY()<=7-WEEKDAY(TODAY()))");case"lastWeek":return"AND(TODAY()-ROUNDDOWN(".concat(_,",0)>=(WEEKDAY(TODAY())),TODAY()-ROUNDDOWN(").concat(_,",0)<(WEEKDAY(TODAY())+7))");case"nextWeek":return"AND(ROUNDDOWN(".concat(_,",0)-TODAY()>(7-WEEKDAY(TODAY())),ROUNDDOWN(").concat(_,",0)-TODAY()<(15-WEEKDAY(TODAY())))");case"yesterday":return"FLOOR(".concat(_,",1)=TODAY()-1");case"today":return"FLOOR(".concat(_,",1)=TODAY()");case"tomorrow":return"FLOOR(".concat(_,",1)=TODAY()+1");case"last7Days":return"AND(TODAY()-FLOOR(".concat(_,",1)<=6,FLOOR(").concat(_,",1)<=TODAY())");case"lastMonth":return"AND(MONTH(".concat(_,")=MONTH(EDATE(TODAY(),0-1)),YEAR(").concat(_,")=YEAR(EDATE(TODAY(),0-1)))");case"thisMonth":return"AND(MONTH(".concat(_,")=MONTH(TODAY()),YEAR(").concat(_,")=YEAR(TODAY()))");case"nextMonth":return"AND(MONTH(".concat(_,")=MONTH(EDATE(TODAY(),0+1)),YEAR(").concat(_,")=YEAR(EDATE(TODAY(),0+1)))");default:return}},g=function(b){var _=b.type,w=b.operator;switch(_){case"containsText":case"containsBlanks":case"notContainsBlanks":case"containsErrors":case"notContainsErrors":return{type:"containsText",operator:_};default:return{type:_,operator:w}}},v=function(b){function _(){var w;return le(this,_),(w=zr(this,_)).map={dataBar:w.databarXform=new o,extLst:w.extLstRefXform=new i,formula:w.formulaXform=new c,colorScale:w.colorScaleXform=new u,iconSet:w.iconSetXform=new h},w}return nr(_,b),ne(_,[{key:"tag",get:function(){return"cfRule"}},{key:"render",value:function(w,k){switch(k.type){case"expression":this.renderExpression(w,k);break;case"cellIs":this.renderCellIs(w,k);break;case"top10":this.renderTop10(w,k);break;case"aboveAverage":this.renderAboveAverage(w,k);break;case"dataBar":this.renderDataBar(w,k);break;case"colorScale":this.renderColorScale(w,k);break;case"iconSet":this.renderIconSet(w,k);break;case"containsText":this.renderText(w,k);break;case"timePeriod":this.renderTimePeriod(w,k)}}},{key:"renderExpression",value:function(w,k){w.openNode(this.tag,{type:"expression",dxfId:k.dxfId,priority:k.priority}),this.formulaXform.render(w,k.formulae[0]),w.closeNode()}},{key:"renderCellIs",value:function(w,k){var C=this;w.openNode(this.tag,{type:"cellIs",dxfId:k.dxfId,priority:k.priority,operator:k.operator}),k.formulae.forEach(function(O){C.formulaXform.render(w,O)}),w.closeNode()}},{key:"renderTop10",value:function(w,k){w.leafNode(this.tag,{type:"top10",dxfId:k.dxfId,priority:k.priority,percent:n.toBoolAttribute(k.percent,!1),bottom:n.toBoolAttribute(k.bottom,!1),rank:n.toIntValue(k.rank,10,!0)})}},{key:"renderAboveAverage",value:function(w,k){w.leafNode(this.tag,{type:"aboveAverage",dxfId:k.dxfId,priority:k.priority,aboveAverage:n.toBoolAttribute(k.aboveAverage,!0)})}},{key:"renderDataBar",value:function(w,k){w.openNode(this.tag,{type:"dataBar",priority:k.priority}),this.databarXform.render(w,k),this.extLstRefXform.render(w,k),w.closeNode()}},{key:"renderColorScale",value:function(w,k){w.openNode(this.tag,{type:"colorScale",priority:k.priority}),this.colorScaleXform.render(w,k),w.closeNode()}},{key:"renderIconSet",value:function(w,k){_.isPrimitive(k)&&(w.openNode(this.tag,{type:"iconSet",priority:k.priority}),this.iconSetXform.render(w,k),w.closeNode())}},{key:"renderText",value:function(w,k){w.openNode(this.tag,{type:k.operator,dxfId:k.dxfId,priority:k.priority,operator:n.toStringAttribute(k.operator,"containsText")});var C=d(k);C&&this.formulaXform.render(w,C),w.closeNode()}},{key:"renderTimePeriod",value:function(w,k){w.openNode(this.tag,{type:"timePeriod",dxfId:k.dxfId,priority:k.priority,timePeriod:k.timePeriod});var C=p(k);C&&this.formulaXform.render(w,C),w.closeNode()}},{key:"createNewModel",value:function(w){var k=w.attributes;return xo(xo({},g(k)),{},{dxfId:n.toIntValue(k.dxfId),priority:n.toIntValue(k.priority),timePeriod:k.timePeriod,percent:n.toBoolValue(k.percent),bottom:n.toBoolValue(k.bottom),rank:n.toIntValue(k.rank),aboveAverage:n.toBoolValue(k.aboveAverage)})}},{key:"onParserClose",value:function(w,k){switch(w){case"dataBar":case"extLst":case"colorScale":case"iconSet":Object.assign(this.model,k.model);break;case"formula":this.model.formulae=this.model.formulae||[],this.model.formulae.push(k.model)}}}],[{key:"isPrimitive",value:function(w){return w.type!=="iconSet"||!w.custom&&!f[w.iconSet]}}])}(a);r.exports=v},{"../../../../doc/range":10,"../../base-xform":32,"../../composite-xform":48,"./color-scale-xform":85,"./databar-xform":88,"./ext-lst-ref-xform":89,"./formula-xform":90,"./icon-set-xform":91}],84:[function(e,r,t){var n=e("../../base-xform"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"tag",get:function(){return"cfvo"}},{key:"render",value:function(i,c){i.leafNode(this.tag,{type:c.type,val:c.value})}},{key:"parseOpen",value:function(i){this.model={type:i.attributes.type,value:n.toFloatValue(i.attributes.val)}}},{key:"parseClose",value:function(i){return i!==this.tag}}])}(n);r.exports=a},{"../../base-xform":32}],85:[function(e,r,t){var n=e("../../composite-xform"),a=e("../../style/color-xform"),l=e("./cfvo-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={cfvo:u.cfvoXform=new l,color:u.colorXform=new a},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"colorScale"}},{key:"render",value:function(u,h){var f=this;u.openNode(this.tag),h.cfvo.forEach(function(d){f.cfvoXform.render(u,d)}),h.color.forEach(function(d){f.colorXform.render(u,d)}),u.closeNode()}},{key:"createNewModel",value:function(u){return{cfvo:[],color:[]}}},{key:"onParserClose",value:function(u,h){this.model[u].push(h.model)}}])}(n);r.exports=o},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],86:[function(e,r,t){var n=e("../../composite-xform"),a=e("./cf-rule-xform"),l=function(o){function i(){var c;return le(this,i),(c=zr(this,i)).map={cfRule:new a},c}return nr(i,o),ne(i,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"render",value:function(c,u){var h=this;u.rules.some(a.isPrimitive)&&(c.openNode(this.tag,{sqref:u.ref}),u.rules.forEach(function(f){a.isPrimitive(f)&&(f.ref=u.ref,h.map.cfRule.render(c,f))}),c.closeNode())}},{key:"createNewModel",value:function(c){return{ref:c.attributes.sqref,rules:[]}}},{key:"onParserClose",value:function(c,u){this.model.rules.push(u.model)}}])}(n);r.exports=l},{"../../composite-xform":48,"./cf-rule-xform":83}],87:[function(e,r,t){var n=e("../../base-xform"),a=e("./conditional-formatting-xform"),l=function(o){function i(){var c;return le(this,i),(c=zr(this,i)).cfXform=new a,c}return nr(i,o),ne(i,[{key:"tag",get:function(){return"conditionalFormatting"}},{key:"reset",value:function(){this.model=[]}},{key:"prepare",value:function(c,u){var h=c.reduce(function(f,d){return Math.max.apply(Math,[f].concat(rt(d.rules.map(function(p){return p.priority||0}))))},1);c.forEach(function(f){f.rules.forEach(function(d){d.priority||(d.priority=h++),d.style&&(d.dxfId=u.styles.addDxfStyle(d.style))})})}},{key:"render",value:function(c,u){var h=this;u.forEach(function(f){h.cfXform.render(c,f)})}},{key:"parseOpen",value:function(c){return this.parser?(this.parser.parseOpen(c),!0):c.name==="conditionalFormatting"&&(this.parser=this.cfXform,this.parser.parseOpen(c),!0)}},{key:"parseText",value:function(c){this.parser&&this.parser.parseText(c)}},{key:"parseClose",value:function(c){return!(!this.parser||!this.parser.parseClose(c)&&(this.model.push(this.parser.model),this.parser=void 0,1))}},{key:"reconcile",value:function(c,u){c.forEach(function(h){h.rules.forEach(function(f){f.dxfId!==void 0&&(f.style=u.styles.getDxfStyle(f.dxfId),delete f.dxfId)})})}}])}(n);r.exports=l},{"../../base-xform":32,"./conditional-formatting-xform":86}],88:[function(e,r,t){var n=e("../../composite-xform"),a=e("../../style/color-xform"),l=e("./cfvo-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={cfvo:u.cfvoXform=new l,color:u.colorXform=new a},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"dataBar"}},{key:"render",value:function(u,h){var f=this;u.openNode(this.tag),h.cfvo.forEach(function(d){f.cfvoXform.render(u,d)}),this.colorXform.render(u,h.color),u.closeNode()}},{key:"createNewModel",value:function(){return{cfvo:[]}}},{key:"onParserClose",value:function(u,h){switch(u){case"cfvo":this.model.cfvo.push(h.model);break;case"color":this.model.color=h.model}}}])}(n);r.exports=o},{"../../composite-xform":48,"../../style/color-xform":128,"./cfvo-xform":84}],89:[function(e,r,t){var n=e("../../base-xform"),a=e("../../composite-xform"),l=function(c){function u(){return le(this,u),zr(this,u,arguments)}return nr(u,c),ne(u,[{key:"tag",get:function(){return"x14:id"}},{key:"render",value:function(h,f){h.leafNode(this.tag,null,f)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(h){this.model+=h}},{key:"parseClose",value:function(h){return h!==this.tag}}])}(n),o=function(c){function u(){var h;return le(this,u),(h=zr(this,u)).map={"x14:id":h.idXform=new l},h}return nr(u,c),ne(u,[{key:"tag",get:function(){return"ext"}},{key:"render",value:function(h,f){h.openNode(this.tag,{uri:"{B025F937-C7B1-47D3-B67F-A62EFF666E3E}","xmlns:x14":"http://schemas.microsoft.com/office/spreadsheetml/2009/9/main"}),this.idXform.render(h,f.x14Id),h.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(h,f){this.model.x14Id=f.model}}])}(a),i=function(c){function u(){var h;return le(this,u),(h=zr(this,u)).map={ext:new o},h}return nr(u,c),ne(u,[{key:"tag",get:function(){return"extLst"}},{key:"render",value:function(h,f){h.openNode(this.tag),this.map.ext.render(h,f),h.closeNode()}},{key:"createNewModel",value:function(){return{}}},{key:"onParserClose",value:function(h,f){Object.assign(this.model,f.model)}}])}(a);r.exports=i},{"../../base-xform":32,"../../composite-xform":48}],90:[function(e,r,t){var n=function(a){function l(){return le(this,l),zr(this,l,arguments)}return nr(l,a),ne(l,[{key:"tag",get:function(){return"formula"}},{key:"render",value:function(o,i){o.leafNode(this.tag,null,i)}},{key:"parseOpen",value:function(){this.model=""}},{key:"parseText",value:function(o){this.model+=o}},{key:"parseClose",value:function(o){return o!==this.tag}}])}(e("../../base-xform"));r.exports=n},{"../../base-xform":32}],91:[function(e,r,t){var n=e("../../base-xform"),a=e("../../composite-xform"),l=e("./cfvo-xform"),o=function(i){function c(){var u;return le(this,c),(u=zr(this,c)).map={cfvo:u.cfvoXform=new l},u}return nr(c,i),ne(c,[{key:"tag",get:function(){return"iconSet"}},{key:"render",value:function(u,h){var f=this;u.openNode(this.tag,{iconSet:n.toStringAttribute(h.iconSet,"3TrafficLights"),reverse:n.toBoolAttribute(h.reverse,!1),showValue:n.toBoolAttribute(h.showValue,!0)}),h.cfvo.forEach(function(d){f.cfvoXform.render(u,d)}),u.closeNode()}},{key:"createNewModel",value:function(u){var h=u.attributes;return{iconSet:n.toStringValue(h.iconSet,"3TrafficLights"),reverse:n.toBoolValue(h.reverse),showValue:n.toBoolValue(h.showValue),cfvo:[]}}},{key:"onParserClose",value:function(u,h){this.model[u].push(h.model)}}])}(a);r.exports=o},{"../../base-xform":32,"../../composite-xform":48,"./cfvo-xform":84}],92:[function(e,r,t){var n=e("../../../utils/utils"),a=function(l){function o(){return le(this,o),zr(this,o,arguments)}return nr(o,l),ne(o,[{key:"tag",get:function(){return"col"}},{key:"prepare",value:function(i,c){var u=c.styles.addStyleModel(i.style||{});u&&(i.styleId=u)}},{key:"render",value:function(i,c){i.openNode("col"),i.addAttribute("min",c.min),i.addAttribute("max",c.max),c.width&&i.addAttribute("width",c.width),c.styleId&&i.addAttribute("style",c.styleId),c.hidden&&i.addAttribute("hidden","1"),c.bestFit&&i.addAttribute("bestFit","1"),c.outlineLevel&&i.addAttribute("outlineLevel",c.outlineLevel),c.collapsed&&i.addAttribute("collapsed","1"),i.addAttribute("customWidth","1"),i.closeNode()}},{key:"parseOpen",value:function(i){if(i.name==="col"){var c=this.model={min:parseInt(i.attributes.min||"0",10),max:parseInt(i.attributes.max||"0",10),width:i.attributes.width===void 0?void 0:parseFloat(i.attributes.width||"0")};return i.attributes.style&&(c.styleId=parseInt(i.attributes.style,10)),n.parseBoolean(i.attributes.hidden)&&(c.hidden=!0),n.parseBoolean(i.attributes.bestFit)&&(c.bestFit=!0),i.attributes.outlineLevel&&(c.outlineLevel=parseInt(i.attributes.outlineLevel,10)),n.parseBoolean(i.attributes.collapsed)&&(c.collapsed=!0),!0}return!1}},{key:"parseText",value:function(){}},{key:"parseClose",value:function(){return!1}},{key:"reconcile",value:function(i,c){i.styleId&&(i.style=c.styles.getStyleModel(i.styleId))}}])}(e("../base-xform"));r.exports=a},{"../../../utils/utils":27,"../base-xform":32}],93:[function(e,r,t){var n=e("../../../utils/under-dash"),a=e("../../../utils/utils"),l=e("../../../utils/col-cache"),o=e("../base-xform"),i=e("../../../doc/range");function c(d,p,g,v){var b=p[g];b!==void 0?d[g]=b:v!==void 0&&(d[g]=v)}function u(d,p,g,v){var b=p[g];b!==void 0&&(d[g]=a.parseBoolean(b))}function h(d){var p=n.map(d,function(b,_){return{address:_,dataValidation:b,marked:!1}}).sort(function(b,_){return n.strcmp(b.address,_.address)}),g=n.keyBy(p,"address"),v=function(b,_,w){for(var k=0;k<_;k++){var C=l.encodeAddress(b.row+k,w);if(!d[C]||!n.isEqual(d[b.address],d[C]))return!1}return!0};return p.map(function(b){if(!b.marked){var _=l.decodeEx(b.address);if(_.dimensions)return g[_.dimensions].marked=!0,xo(xo({},b.dataValidation),{},{sqref:b.address});for(var w=1,k=l.encodeAddress(_.row+w,_.col);d[k]&&n.isEqual(b.dataValidation,d[k]);)w++,k=l.encodeAddress(_.row+w,_.col);for(var C=1;v(_,w,_.col+C);)C++;for(var O=0;O