diff --git a/404.html b/404.html new file mode 100644 index 0000000000..020e6b9c0e --- /dev/null +++ b/404.html @@ -0,0 +1,46 @@ + + +
+ + +k?Pt(a,b,w,!0,!1,P):$(d,y,E,b,w,M,R,C,P)},Qt=(a,d,y,E,b,w,M,R,C)=>{let x=0;const k=d.length;let P=a.length-1,F=k-1;for(;x<=P&&x<=F;){const W=a[x],X=d[x]=C?Ze(d[x]):Me(d[x]);if(dt(W,X))I(W,X,y,null,b,w,M,R,C);else break;x++}for(;x<=P&&x<=F;){const W=a[P],X=d[F]=C?Ze(d[F]):Me(d[F]);if(dt(W,X))I(W,X,y,null,b,w,M,R,C);else break;P--,F--}if(x>P){if(x<=F){const W=F+1,X=W 0||_<0)?new Xt(D):(p<0?D=D.takeRight(-p):p&&(D=D.drop(p)),_!==e&&(_=Nt(_),D=_<0?D.dropRight(-_):D.take(_-p)),D)},Xt.prototype.takeRightWhile=function(p){return this.reverse().takeWhile(p).reverse()},Xt.prototype.toArray=function(){return this.take(L)},ji(Xt.prototype,function(p,_){var D=/^(?:filter|find|map|reject)|While$/.test(_),K=/^(?:head|last)$/.test(_),re=fe[K?"take"+(_=="last"?"Right":""):_],ce=K||/^find/.test(_);re&&(fe.prototype[_]=function(){var _e=this.__wrapped__,Ae=K?[1]:arguments,Ne=_e instanceof Xt,We=Ae[0],Ve=Ne||It(_e),Ke=function(Ht){var Vt=re.apply(fe,Ge([Ht],Ae));return K&&qe?Vt[0]:Vt};Ve&&D&&typeof We=="function"&&We.length!=1&&(Ne=Ve=!1);var qe=this.__chain__,ft=!!this.__actions__.length,vt=ce&&!qe,Ft=Ne&&!ft;if(!ce&&Ve){_e=Ft?_e:new Xt(this);var bt=p.apply(_e,Ae);return bt.__actions__.push({func:Ea,args:[Ke],thisArg:e}),new bi(bt,qe)}return vt&&Ft?p.apply(this,Ae):(bt=this.thru(Ke),vt?K?bt.value()[0]:bt.value():bt)})}),Pr(["pop","push","shift","sort","splice","unshift"],function(p){var _=Zs[p],D=/^(?:push|sort|unshift)$/.test(p)?"tap":"thru",K=/^(?:pop|shift)$/.test(p);fe.prototype[p]=function(){var re=arguments;if(K&&!this.__chain__){var ce=this.value();return _.apply(It(ce)?ce:[],re)}return this[D](function(_e){return _.apply(It(_e)?_e:[],re)})}}),ji(Xt.prototype,function(p,_){var D=fe[_];if(D){var K=D.name+"";sr.call(ns,K)||(ns[K]=[]),ns[K].push({name:_,func:D})}}),ns[va(e,b).name]=[{name:"wrapper",func:e}],Xt.prototype.clone=du,Xt.prototype.reverse=pu,Xt.prototype.value=mu,fe.prototype.at=Xp,fe.prototype.chain=Wp,fe.prototype.commit=Vp,fe.prototype.next=Kp,fe.prototype.plant=Yp,fe.prototype.reverse=Zp,fe.prototype.toJSON=fe.prototype.valueOf=fe.prototype.value=Jp,fe.prototype.first=fe.prototype.head,As&&(fe.prototype[As]=Gp),fe},ts=Vh();Jt?((Jt.exports=ts)._=ts,xt._=ts):Et._=ts}).call(Dt)})(Wa,Wa.exports);var qa=Wa.exports;class Ln{constructor(v,e=""){typeof v=="string"?(this.el=document.createElement(v),this.el.className=e):this.el=v,this.data={}}data(v,e){return e!==void 0?(this.data[v]=e,this):this.data[v]}on(v,e){const[d,...m]=v.split(".");let l=d;return l==="mousewheel"&&/Firefox/i.test(window.navigator.userAgent)&&(l="DOMMouseScroll"),this.el.addEventListener(l,c=>{e(c);for(let h=0;h {y&&y.hasValues&&w(y,y.number)})}getSheetValues(){const u=[];return this._rows.forEach(w=>{w&&(u[w.number]=w.values)}),u}findCell(u,w){const y=c.getAddress(u,w),S=this._rows[y.row-1];return S?S.findCell(y.col):void 0}getCell(u,w){const y=c.getAddress(u,w);return this.getRow(y.row).getCellEx(y)}mergeCells(){for(var u=arguments.length,w=new Array(u),y=0;y{if(S.intersects(u))throw new Error("Cannot merge already merged cells")});const y=this.getCell(u.top,u.left);for(let S=u.top;S<=u.bottom;S++)for(let E=u.left;E<=u.right;E++)(S>u.top||E>u.left)&&this.getCell(S,E).merge(y,w);this._merges[y.address]=u}_unMergeMaster(u){const w=this._merges[u.address];if(w){for(let y=w.top;y<=w.bottom;y++)for(let S=w.left;S<=w.right;S++)this.getCell(y,S).unmerge();delete this._merges[u.address]}}get hasMerges(){return l.some(this._merges,Boolean)}unMergeCells(){for(var u=arguments.length,w=new Array(u),y=0;y3&&arguments[3]!==void 0?arguments[3]:"shared";const E=c.decode(u),{top:I,left:P,bottom:F,right:j}=E,W=j-P+1,G=c.encodeAddress(I,P),V=S==="shared";let J;typeof y=="function"?J=y:Array.isArray(y)?Array.isArray(y[0])?J=(M,T)=>y[M-I][T-P]:J=(M,T)=>y[(M-I)*W+(T-P)]:J=()=>{};let $=!0;for(let M=I;M<=F;M++)for(let T=P;T<=j;T++)$?(this.getCell(M,T).value={shareType:S,formula:w,ref:u,result:J(M,T)},$=!1):this.getCell(M,T).value=V?{sharedFormula:G,result:J(M,T)}:J(M,T)}addImage(u,w){const y={type:"image",imageId:u,range:w};this._media.push(new r(this,y))}getImages(){return this._media.filter(u=>u.type==="image")}addBackgroundImage(u){const w={type:"background",imageId:u};this._media.push(new r(this,w))}getBackgroundImageId(){const u=this._media.find(w=>w.type==="background");return u&&u.imageId}protect(u,w){return new Promise(y=>{this.sheetProtection={sheet:!0},w&&"spinCount"in w&&(w.spinCount=Number.isFinite(w.spinCount)?Math.round(Math.max(0,w.spinCount)):1e5),u&&(this.sheetProtection.algorithmName="SHA-512",this.sheetProtection.saltValue=f.randomBytes(16).toString("base64"),this.sheetProtection.spinCount=w&&"spinCount"in w?w.spinCount:1e5,this.sheetProtection.hashValue=f.convertPasswordToHash(u,"SHA512",this.sheetProtection.saltValue,this.sheetProtection.spinCount)),w&&(this.sheetProtection=Object.assign(this.sheetProtection,w),!u&&"spinCount"in w&&delete this.sheetProtection.spinCount),y()})}unprotect(){this.sheetProtection=null}addTable(u){const w=new n(this,u);return this.tables[u.name]=w,w}getTable(u){return this.tables[u]}removeTable(u){delete this.tables[u]}getTables(){return Object.values(this.tables)}addConditionalFormatting(u){this.conditionalFormattings.push(u)}removeConditionalFormatting(u){typeof u=="number"?this.conditionalFormattings.splice(u,1):u instanceof Function?this.conditionalFormattings=this.conditionalFormattings.filter(u):this.conditionalFormattings=[]}get tabColor(){return console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor}set tabColor(u){console.trace("worksheet.tabColor property is now deprecated. Please use worksheet.properties.tabColor"),this.properties.tabColor=u}get model(){const u={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(S=>S.model),sheetProtection:this.sheetProtection,tables:Object.values(this.tables).map(S=>S.model),conditionalFormattings:this.conditionalFormattings};u.cols=t.toModel(this.columns);const w=u.rows=[],y=u.dimensions=new h;return this._rows.forEach(S=>{const E=S&&S.model;E&&(y.expand(E.number,E.min,E.number,E.max),w.push(E))}),u.merges=[],l.each(this._merges,S=>{u.merges.push(S.range)}),u}_parseRows(u){this._rows=[],u.rows.forEach(w=>{const y=new s(this,w.number);this._rows[y.number-1]=y,y.model=w})}_parseMergeCells(u){l.each(u.mergeCells,w=>{this.mergeCellsWithoutStyle(w)})}set model(u){this.name=u.name,this._columns=t.fromModel(this,u.cols),this._parseRows(u),this._parseMergeCells(u),this.dataValidations=new o(u.dataValidations),this.properties=u.properties,this.pageSetup=u.pageSetup,this.headerFooter=u.headerFooter,this.views=u.views,this.autoFilter=u.autoFilter,this._media=u.media.map(w=>new r(this,w)),this.sheetProtection=u.sheetProtection,this.tables=u.tables.reduce((w,y)=>{const S=new n;return S.model=y,w[y.name]=S,w},{}),this.conditionalFormattings=u.conditionalFormattings}}d.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,d,m){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");const l={Workbook:e("./doc/workbook")},c=e("./doc/enums");Object.keys(c).forEach(h=>{l[h]=c[h]}),d.exports=l},{"./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,d,m){const l=typeof TextDecoder>"u"?null:new TextDecoder("utf-8");function c(h){return typeof h=="string"?h:l?l.decode(h):h.toString()}m.bufferToString=c},{}],17:[function(e,d,m){const l=typeof TextEncoder>"u"?null:new TextEncoder("utf-8"),{Buffer:c}=e("buffer");function h(s){return typeof s!="string"?s:l?c.from(l.encode(s).buffer):c.from(s)}m.stringToBuffer=h},{buffer:220}],18:[function(e,d,m){const l=e("./under-dash"),c=e("./col-cache");class h{constructor(t){this.template=t,this.sheets={}}addCell(t){this.addCellEx(c.decodeEx(t))}getCell(t){return this.findCellEx(c.decodeEx(t),!0)}findCell(t){return this.findCellEx(c.decodeEx(t),!1)}findCellAt(t,i,r){const n=this.sheets[t],o=n&&n[i];return o&&o[r]}addCellEx(t){if(t.top)for(let i=t.top;i<=t.bottom;i++)for(let r=t.left;r<=t.right;r++)this.getCellAt(t.sheetName,i,r);else this.findCellEx(t,!0)}getCellEx(t){return this.findCellEx(t,!0)}findCellEx(t,i){const r=this.findSheet(t,i),n=this.findSheetRow(r,t,i);return this.findRowCell(n,t,i)}getCellAt(t,i,r){const n=this.sheets[t]||(this.sheets[t]=[]),o=n[i]||(n[i]=[]);return o[r]||(o[r]={sheetName:t,address:c.n2l(r)+i,row:i,col:r})}removeCellEx(t){const i=this.findSheet(t);if(!i)return;const r=this.findSheetRow(i,t);r&&delete r[t.col]}forEachInSheet(t,i){const r=this.sheets[t];r&&r.forEach((n,o)=>{n&&n.forEach((f,a)=>{f&&i(f,o,a)})})}forEach(t){l.each(this.sheets,(i,r)=>{this.forEachInSheet(r,t)})}map(t){const i=[];return this.forEach(r=>{i.push(t(r))}),i}findSheet(t,i){const r=t.sheetName;if(this.sheets[r])return this.sheets[r];if(i)return this.sheets[r]=[]}findSheetRow(t,i,r){const{row:n}=i;if(t&&t[n])return t[n];if(r)return t[n]=[]}findRowCell(t,i,r){const{col:n}=i;if(t&&t[n])return t[n];if(r)return t[n]=this.template?Object.assign(i,JSON.parse(JSON.stringify(this.template))):i}spliceRows(t,i,r,n){const o=this.sheets[t];if(o){const f=[];for(let a=0;a-1}function xe(Oe,Ue,$e){for(var st=-1,kt=Oe==null?0:Oe.length;++st {V.push($[G]||null)});const J=this.getRow(G+1);J.splice.apply(J,V)}else this._rows.forEach(G=>{G&&G.splice(u,w)});const F=I.length-w,j=u+w,W=this._columns.length;if(F<0)for(let G=u+I.length;G<=W;G++)this.getColumn(G).defn=this.getColumn(G-F).defn;else if(F>0)for(let G=W;G>=j;G--)this.getColumn(G+F).defn=this.getColumn(G).defn;for(let G=u;G{u=Math.max(u,w.cellCount)}),u}get actualColumnCount(){const u=[];let w=0;return this.eachRow(y=>{y.eachCell(S=>{let{col:E}=S;u[E]||(u[E]=!0,w++)})}),w}_commitRow(){}get _lastRowNumber(){const u=this._rows;let w=u.length;for(;w>0&&u[w-1]===void 0;)w--;return w}get _nextRow(){return this._lastRowNumber+1}get lastRow(){if(this._rows.length)return this._rows[this._rows.length-1]}findRow(u){return this._rows[u-1]}findRows(u,w){return this._rows.slice(u-1,u-1+w)}get rowCount(){return this._lastRowNumber}get actualRowCount(){let u=0;return this.eachRow(()=>{u++}),u}getRow(u){let w=this._rows[u-1];return w||(w=this._rows[u-1]=new s(this,u)),w}getRows(u,w){if(w<1)return;const y=[];for(let S=u;S1&&arguments[1]!==void 0?arguments[1]:"n";const y=this._nextRow,S=this.getRow(y);return S.values=u,this._setStyleOption(y,w[0]==="i"?w:"n"),S}addRows(u){let w=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"n";const y=[];return u.forEach(S=>{y.push(this.addRow(S,w))}),y}insertRow(u,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";return this.spliceRows(u,0,w),this._setStyleOption(u,y),this.getRow(u)}insertRows(u,w){let y=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"n";if(this.spliceRows(u,0,...w),y!=="n")for(let S=0;S{V.getCell($).style=J.style}),this._rows[W-1]=void 0}else this._rows[W+F-1]=void 0;else if(F>0)for(W=j;W>=y;W--)if(G=this._rows[W-1],G){const V=this.getRow(W+F);V.values=G.values,V.style=G.style,V.height=G.height,G.eachCell({includeEmpty:!0},(J,$)=>{if(V.getCell($).style=J.style,J._value.constructor.name==="MergeValue"){const M=this.getRow(J._row._number+P).getCell($),T=J._value._master,x=this.getRow(T._row._number+P).getCell(T._column._number);M.merge(x)}})}else this._rows[W+F-1]=void 0;for(W=0;W=this._buf.length-4;)this._grow(this._inPos+s.length),t=this._inPos+this._buf.write(s,this._inPos,this._encoding);this._inPos=t}addStringBuf(s){s.length&&(this._buffer=void 0,this.length+s.length>this.capacity&&this._grow(this.length+s.length),s._buf.copy(this._buf,this._inPos,0,s.length),this._inPos+=s.length)}}d.exports=c}).call(this)}).call(this,e("buffer").Buffer)},{buffer:220}],26:[function(e,d,m){const{toString:l}=Object.prototype,c=/["&<>]/,h={each:function(t,i){t&&(Array.isArray(t)?t.forEach(i):Object.keys(t).forEach(r=>{i(t[r],r)}))},some:function(t,i){return t?Array.isArray(t)?t.some(i):Object.keys(t).some(r=>i(t[r],r)):!1},every:function(t,i){return t?Array.isArray(t)?t.every(i):Object.keys(t).every(r=>i(t[r],r)):!0},map:function(t,i){return t?Array.isArray(t)?t.map(i):Object.keys(t).map(r=>i(t[r],r)):[]},keyBy(s,t){return s.reduce((i,r)=>(i[r[t]]=r,i),{})},isEqual:function(t,i){const r=typeof t,n=typeof i,o=Array.isArray(t),f=Array.isArray(i);let a;if(r!==n)return!1;switch(typeof t){case"object":if(o||f)return o&&f?t.length===i.length&&t.every((g,b)=>{const u=i[b];return h.isEqual(g,u)}):!1;if(t===null||i===null)return t===i;if(a=Object.keys(t),Object.keys(i).length!==a.length)return!1;for(const g of a)if(!i.hasOwnProperty(g))return!1;return h.every(t,(g,b)=>{const u=i[b];return h.isEqual(g,u)});default:return t===i}},escapeHtml(s){const t=c.exec(s);if(!t)return s;let i="",r="",n=0,o=t.index;for(;o