You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

96 lines
287 KiB

2 weeks ago
import fs from"./orgTree-FdbKD78J.js";import{T as la,g as Gn,r as Pe,o as Sr,k as Mr,w as xe,a as Br,d as ce,e as vr,t as en,s as ls,z as At,h as oa,c as ca,A as ft,x as os,P as cs,i as Dn,j as Or,S as hs,D as us,ai as xs,aj as ps}from"./index-CsSGZIOI.js";import{g as ds,d as vs}from"./download-DA4MPZiT.js";import ms from"./editDialog-CHoNFhmy.js";import"./orgApi-B5ceIBmm.js";import"./roleApi-TOST4PBa.js";import"./orgCascader-C9DGNPnu.js";import"./positionSelect-QYklNrGD.js";import"./positionApi-qXMSI60M.js";import"./singleImgUpload-yRRU6Bmr.js";import"./fileApi-B26pNJOO.js";/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var rn={};rn.version="0.18.5";var ha=1252,gs=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],ua=function(e){gs.indexOf(e)!=-1&&(ha=e)};function _s(){ua(1252)}var kt=function(e){ua(e)};function Ts(){kt(1200),_s()}var Kt=function(t){return String.fromCharCode(t)},E0=function(t){return String.fromCharCode(t)},w0,Ur="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function It(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0,l=0;l<e.length;)r=e.charCodeAt(l++),i=r>>2,n=e.charCodeAt(l++),s=(r&3)<<4|n>>4,a=e.charCodeAt(l++),f=(n&15)<<2|a>>6,o=a&63,isNaN(n)?f=o=64:isNaN(a)&&(o=64),t+=Ur.charAt(i)+Ur.charAt(s)+Ur.charAt(f)+Ur.charAt(o);return t}function Ir(e){var t="",r=0,n=0,a=0,i=0,s=0,f=0,o=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var l=0;l<e.length;)i=Ur.indexOf(e.charAt(l++)),s=Ur.indexOf(e.charAt(l++)),r=i<<2|s>>4,t+=String.fromCharCode(r),f=Ur.indexOf(e.charAt(l++)),n=(s&15)<<4|f>>2,f!==64&&(t+=String.fromCharCode(n)),o=Ur.indexOf(e.charAt(l++)),a=(f&3)<<6|o,o!==64&&(t+=String.fromCharCode(a));return t}var pe=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Pr=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(t,r){return r?new Buffer(t,r):new Buffer(t)}:Buffer.from.bind(Buffer)}return function(){}}();function Yr(e){return pe?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function S0(e){return pe?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var mr=function(t){return pe?Pr(t,"binary"):t.split("").map(function(r){return r.charCodeAt(0)&255})};function vn(e){if(typeof ArrayBuffer>"u")return mr(e);for(var t=new ArrayBuffer(e.length),r=new Uint8Array(t),n=0;n!=e.length;++n)r[n]=e.charCodeAt(n)&255;return t}function Ut(e){if(Array.isArray(e))return e.map(function(n){return String.fromCharCode(n)}).join("");for(var t=[],r=0;r<e.length;++r)t[r]=String.fromCharCode(e[r]);return t.join("")}function Es(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}var Ve=pe?function(e){return Buffer.concat(e.map(function(t){return Buffer.isBuffer(t)?t:Pr(t)}))}:function(e){if(typeof Uint8Array<"u"){var t=0,r=0;for(t=0;t<e.length;++t)r+=e[t].length;var n=new Uint8Array(r),a=0;for(t=0,r=0;t<e.length;r+=a,++t)if(a=e[t].length,e[t]instanceof Uint8Array)n.set(e[t],r);else{if(typeof e[t]=="string")throw"wtf";n.set(new Uint8Array(e[t]),r)}return n}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function ws(e){for(var t=[],r=0,n=e.length+250,a=Yr(e.length+255),i=0;i<e.length;++i){var s=e.charCodeAt(i);if(s<128)a[r++]=s;else if(s<2048)a[r++]=192|s>>6&31,a[r++]=128|s&63;else if(s>=55296&&s<57344){s=(s&1023)+64;var f=e.charCodeAt(++i)&1023;a[r++]=240|s>>8&7,a[r++]=128|s>>2&63,a[r++]=128|f>>6&15|(s&3)<<4,a[r++]=128|f&63}else a[r++]=224|s>>12&15,a[r++]=128|s>>6&63,a[r++]=128|s&63;r>n&&(t.push(a.slice(0,r)),r=0,a=Yr(65535),n=65530)}return t.push(a.slice(0,r)),Ve(t)}var Ft=/\u0000/g,$t=/[\u0001-\u0006]/g;function ct(e){for(var t="",r=e.length-1;r>=0;)t+=e.charAt(r--);return t}function gr(e,t){var r=""+e;return r.length>=t?r:Ce("0",t-r.length)+r}function Xn(e,t){var r=""+e;return r.length>=t?r:Ce(" ",t-r.length)+r}function tn(e,t){var r=""+e;return r.length>=t?r:r+Ce(" ",t-r.length)}fun
`)+`\r
`}function qi(x){var T=x.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(N){var P=N.charCodeAt(0).toString(16).toUpperCase();return"="+(P.length==1?"0"+P:P)});T=T.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),T.charAt(0)==`
`&&(T="=0D"+T.slice(1)),T=T.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var v=[],m=T.split(`\r
`),E=0;E<m.length;++E){var w=m[E];if(w.length==0){v.push("");continue}for(var I=0;I<w.length;){var U=76,k=w.slice(I,I+U);k.charAt(U-1)=="="?U--:k.charAt(U-2)=="="?U-=2:k.charAt(U-3)=="="&&(U-=3),k=w.slice(I,I+U),I+=U,I<w.length&&(k+="="),v.push(k)}}return v.join(`\r
`)}function Qi(x){for(var T=[],v=0;v<x.length;++v){for(var m=x[v];v<=x.length&&m.charAt(m.length-1)=="=";)m=m.slice(0,m.length-1)+x[++v];T.push(m)}for(var E=0;E<T.length;++E)T[E]=T[E].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return mr(T.join(`\r
`))}function es(x,T,v){for(var m="",E="",w="",I,U=0;U<10;++U){var k=T[U];if(!k||k.match(/^\s*$/))break;var N=k.match(/^(.*?):\s*([^\s].*)$/);if(N)switch(N[1].toLowerCase()){case"content-location":m=N[2].trim();break;case"content-type":w=N[2].trim();break;case"content-transfer-encoding":E=N[2].trim();break}}switch(++U,E.toLowerCase()){case"base64":I=mr(Ir(T.slice(U).join("")));break;case"quoted-printable":I=Qi(T.slice(U));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+E)}var P=Cn(x,m.slice(v.length),I,{unsafe:!0});w&&(P.ctype=w)}function rs(x,T){if(Le(x.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var v=T&&T.root||"",m=(pe&&Buffer.isBuffer(x)?x.toString("binary"):Le(x)).split(`\r
`),E=0,w="";for(E=0;E<m.length;++E)if(w=m[E],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),v||(v=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,v.length)!=v))for(;v.length>0&&(v=v.slice(0,v.length-1),v=v.slice(0,v.lastIndexOf("/")+1),w.slice(0,v.length)!=v););var I=(m[1]||"").match(/boundary="(.*?)"/);if(!I)throw new Error("MAD cannot find boundary");var U="--"+(I[1]||""),k=[],N=[],P={FileIndex:k,FullPaths:N};D(P);var X,Z=0;for(E=0;E<m.length;++E){var te=m[E];te!==U&&te!==U+"--"||(Z++&&es(P,m.slice(X,E),v),X=E)}return P}function ts(x,T){var v=T||{},m=v.boundary||"SheetJS";m="------="+m;for(var E=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+m.slice(2)+'"',"","",""],w=x.FullPaths[0],I=w,U=x.FileIndex[0],k=1;k<x.FullPaths.length;++k)if(I=x.FullPaths[k].slice(w.length),U=x.FileIndex[k],!(!U.size||!U.content||I=="Sh33tJ5")){I=I.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(fe){return"_x"+fe.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(fe){return"_u"+fe.charCodeAt(0).toString(16)+"_"});for(var N=U.content,P=pe&&Buffer.isBuffer(N)?N.toString("binary"):Le(N),X=0,Z=Math.min(1024,P.length),te=0,K=0;K<=Z;++K)(te=P.charCodeAt(K))>=32&&te<128&&++X;var ee=X>=Z*4/5;E.push(m),E.push("Content-Location: "+(v.root||"file:///C:/SheetJS/")+I),E.push("Content-Transfer-Encoding: "+(ee?"quoted-printable":"base64")),E.push("Content-Type: "+Ji(U,I)),E.push(""),E.push(ee?qi(P):Zi(P))}return E.push(m+`--\r
`),E.join(`\r
`)}function ns(x){var T={};return D(T,x),T}function Cn(x,T,v,m){var E=m&&m.unsafe;E||D(x);var w=!E&&Ee.find(x,T);if(!w){var I=x.FullPaths[0];T.slice(0,I.length)==I?I=T:(I.slice(-1)!="/"&&(I+="/"),I=(I+T).replace("//","/")),w={name:a(T),type:2},x.FileIndex.push(w),x.FullPaths.push(I),E||Ee.utils.cfb_gc(x)}return w.content=v,w.size=v?v.length:0,m&&(m.CLSID&&(w.clsid=m.CLSID),m.mt&&(w.mt=m.mt),m.ct&&(w.ct=m.ct)),w}function as(x,T){D(x);var v=Ee.find(x,T);if(v){for(var m=0;m<x.FileIndex.length;++m)if(x.FileIndex[m]==v)return x.FileIndex.splice(m,1),x.FullPaths.splice(m,1),!0}return!1}function is(x,T,v){D(x);var m=Ee.find(x,T);if(m){for(var E=0;E<x.FileIndex.length;++E)if(x.FileIndex[E]==m)return x.FileIndex[E].name=a(v),x.FullPaths[E]=v,!0}return!1}function ss(x){R(x,!0)}return t.find=G,t.read=q,t.parse=c,t.write=lr,t.writeFile=xr,t.utils={cfb_new:ns,cfb_add:Cn,cfb_del:as,cfb_mov:is,cfb_gc:ss,ReadShift:Ct,CheckField:Ga,prep_blob:ar,bconcat:Ve,use_zlib:S,_deflateRaw:u0,_inflateRaw:g0,consts:De},t}();function Ys(e){return typeof e=="string"?vn(e):Array.isArray(e)?Es(e):e}function bt(e,t,r){if(typeof Deno<"u"){if(r&&typeof t=="string")switch(r){case"utf8":t=new TextEncoder(r).encode(t);break;case"binary":t=vn(t);break;default:throw new Error("Unsupported encoding "+r)}return Deno.writeFileSync(e,t)}var n=r=="utf8"?Pt(t):t;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var a=new Blob([Ys(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(a,e);if(typeof saveAs<"u")return saveAs(a,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(a);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),chrome.downloads.download({url:i,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=i,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(t)&&(t=Ut(t)),f.write(t),f.close(),t}catch(o){if(!o.message||!o.message.match(/onstruct/))throw o}throw new Error("cannot save file "+e)}function ze(e){for(var t=Object.keys(e),r=[],n=0;n<t.length;++n)Object.prototype.hasOwnProperty.call(e,t[n])&&r.push(t[n]);return r}function k0(e,t){for(var r=[],n=ze(e),a=0;a!==n.length;++a)r[e[n[a]][t]]==null&&(r[e[n[a]][t]]=n[a]);return r}function Kn(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]=r[n];return t}function _n(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]=parseInt(r[n],10);return t}function Js(e){for(var t=[],r=ze(e),n=0;n!==r.length;++n)t[e[r[n]]]==null&&(t[e[r[n]]]=[]),t[e[r[n]]].push(r[n]);return t}var sn=new Date(1899,11,30,0,0,0);function er(e,t){var r=e.getTime(),n=sn.getTime()+(e.getTimezoneOffset()-sn.getTimezoneOffset())*6e4;return(r-n)/(24*60*60*1e3)}var ya=new Date,Zs=sn.getTime()+(ya.getTimezoneOffset()-sn.getTimezoneOffset())*6e4,I0=ya.getTimezoneOffset();function Ca(e){var t=new Date;return t.setTime(e*24*60*60*1e3+Zs),t.getTimezoneOffset()!==I0&&t.setTime(t.getTime()+(t.getTimezoneOffset()-I0)*6e4),t}var N0=new Date("2017-02-19T19:06:09.000Z"),Oa=isNaN(N0.getFullYear())?new Date("2/19/17"):N0,qs=Oa.getFullYear()==2017;function qe(e,t){var r=new Date(e);if(qs)return t>0?r.setTime(r.getTime()+r.getTimezoneOffset()*60*1e3):t<0&&r.setTime(r.getTime()-r.getTimezoneOffset()*60*1e3),r;if(e instanceof Date)return e;if(Oa.getFullYear()==1917&&!isNaN(r.getFullYear())){var n=r.getFullYear();return e.indexOf(""+n)>-1||r.setFullYear(r.getFullYear()+100),r}var a=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+a[0],+a[1]-1,+a[2],+a[3]||0,+a[4]||0,+a[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Tn(e,t){if(pe&&Buffer.isBuffer(e))
`,ef={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},jn=Kn(ef),Yn=/[&<>'"]/g,rf=/[\u0000-\u0008\u000b-\u001f]/g;function ge(e){var t=e+"";return t.replace(Yn,function(r){return jn[r]}).replace(rf,function(r){return"_x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+"_"})}function P0(e){return ge(e).replace(/ /g,"_x0020_")}var Da=/[\u0000-\u001f]/g;function tf(e){var t=e+"";return t.replace(Yn,function(r){return jn[r]}).replace(/\n/g,"<br/>").replace(Da,function(r){return"&#x"+("000"+r.charCodeAt(0).toString(16)).slice(-4)+";"})}function nf(e){var t=e+"";return t.replace(Yn,function(r){return jn[r]}).replace(Da,function(r){return"&#x"+r.charCodeAt(0).toString(16).toUpperCase()+";"})}function af(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function sf(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function kn(e){for(var t="",r=0,n=0,a=0,i=0,s=0,f=0;r<e.length;){if(n=e.charCodeAt(r++),n<128){t+=String.fromCharCode(n);continue}if(a=e.charCodeAt(r++),n>191&&n<224){s=(n&31)<<6,s|=a&63,t+=String.fromCharCode(s);continue}if(i=e.charCodeAt(r++),n<240){t+=String.fromCharCode((n&15)<<12|(a&63)<<6|i&63);continue}s=e.charCodeAt(r++),f=((n&7)<<18|(a&63)<<12|(i&63)<<6|s&63)-65536,t+=String.fromCharCode(55296+(f>>>10&1023)),t+=String.fromCharCode(56320+(f&1023))}return t}function L0(e){var t=Yr(2*e.length),r,n,a=1,i=0,s=0,f;for(n=0;n<e.length;n+=a)a=1,(f=e.charCodeAt(n))<128?r=f:f<224?(r=(f&31)*64+(e.charCodeAt(n+1)&63),a=2):f<240?(r=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),a=3):(a=4,r=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),r-=65536,s=55296+(r>>>10&1023),r=56320+(r&1023)),s!==0&&(t[i++]=s&255,t[i++]=s>>>8,s=0),t[i++]=r%256,t[i++]=r>>>8;return t.slice(0,i).toString("ucs2")}function M0(e){return Pr(e,"binary").toString("utf8")}var Yt="foo bar baz☃🍣",yt=pe&&(M0(Yt)==kn(Yt)&&M0||L0(Yt)==kn(Yt)&&L0)||kn,Pt=pe?function(e){return Pr(e,"utf8").toString("binary")}:function(e){for(var t=[],r=0,n=0,a=0;r<e.length;)switch(n=e.charCodeAt(r++),!0){case n<128:t.push(String.fromCharCode(n));break;case n<2048:t.push(String.fromCharCode(192+(n>>6))),t.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,a=e.charCodeAt(r++)-56320+(n<<10),t.push(String.fromCharCode(240+(a>>18&7))),t.push(String.fromCharCode(144+(a>>12&63))),t.push(String.fromCharCode(128+(a>>6&63))),t.push(String.fromCharCode(128+(a&63)));break;default:t.push(String.fromCharCode(224+(n>>12))),t.push(String.fromCharCode(128+(n>>6&63))),t.push(String.fromCharCode(128+(n&63)))}return t.join("")},ff=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(t){return[new RegExp("&"+t[0]+";","ig"),t[1]]});return function(r){for(var n=r.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+</g,"<").replace(/[\t\n\r ]+/g," ").replace(/<\s*[bB][rR]\s*\/?>/g,`
`).replace(/<[^>]*>/g,""),a=0;a<e.length;++a)n=n.replace(e[a][0],e[a][1]);return n}}(),Ra=/(^\s|\s$|\n)/;function Ge(e,t){return"<"+e+(t.match(Ra)?' xml:space="preserve"':"")+">"+t+"</"+e+">"}function Lt(e){return ze(e).map(function(t){return" "+t+'="'+e[t]+'"'}).join("")}function Y(e,t,r){return"<"+e+(r!=null?Lt(r):"")+(t!=null?(t.match(Ra)?' xml:space="preserve"':"")+">"+t+"</"+e:"/")+">"}function Wn(e,t){try{return e.toISOString().replace(/\.\d*/,"")}catch(r){if(t)throw r}return""}function lf(e,t){switch(typeof e){case"string":var r=Y("vt:lpwstr",ge(e));return r=r.replace(/&quot;/g,"_x0022_"),r;case"number":return Y((e|0)==e?"vt:i4":"vt:r8",ge(String(e)));case"boolean":return Y("vt:bool",e?"true":"false")}if(e instanceof Date)return Y("vt:filetime",Wn(e));throw new Error("Unable to serialize "+e)}var Me={CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/metadata/core-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/custom-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/extended-properties",CT:"http://schemas.openxmlformats.org/package/2006/content-types",RELS:"http://schemas.openxmlformats.org/package/2006/relationships",TCMNT:"http://schemas.microsoft.com/office/spreadsheetml/2018/threadedcomments",dc:"http://purl.org/dc/elements/1.1/",dcterms:"http://purl.org/dc/terms/",dcmitype:"http://purl.org/dc/dcmitype/",mx:"http://schemas.microsoft.com/office/mac/excel/2008/main",r:"http://schemas.openxmlformats.org/officeDocument/2006/relationships",sjs:"http://schemas.openxmlformats.org/package/2006/sheetjs/core-properties",vt:"http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes",xsi:"http://www.w3.org/2001/XMLSchema-instance",xsd:"http://www.w3.org/2001/XMLSchema"},dt=["http://schemas.openxmlformats.org/spreadsheetml/2006/main","http://purl.oclc.org/ooxml/spreadsheetml/main","http://schemas.microsoft.com/office/excel/2006/main","http://schemas.microsoft.com/office/excel/2006/2"],ir={o:"urn:schemas-microsoft-com:office:office",x:"urn:schemas-microsoft-com:office:excel",ss:"urn:schemas-microsoft-com:office:spreadsheet",dt:"uuid:C2F41010-65B3-11d1-A29F-00AA00C14882",mv:"http://macVmlSchemaUri",v:"urn:schemas-microsoft-com:vml",html:"http://www.w3.org/TR/REC-html40"};function of(e,t){for(var r=1-2*(e[t+7]>>>7),n=((e[t+7]&127)<<4)+(e[t+6]>>>4&15),a=e[t+6]&15,i=5;i>=0;--i)a=a*256+e[t+i];return n==2047?a==0?r*(1/0):NaN:(n==0?n=-1022:(n-=1023,a+=Math.pow(2,52)),r*Math.pow(2,n-52)*a)}function cf(e,t,r){var n=(t<0||1/t==-1/0?1:0)<<7,a=0,i=0,s=n?-t:t;isFinite(s)?s==0?a=i=0:(a=Math.floor(Math.log(s)/Math.LN2),i=s*Math.pow(2,52-a),a<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?a=-1022:(i-=Math.pow(2,52),a+=1023)):(a=2047,i=isNaN(t)?26985:0);for(var f=0;f<=5;++f,i/=256)e[r+f]=i&255;e[r+6]=(a&15)<<4|i&15,e[r+7]=a>>4|n}var B0=function(e){for(var t=[],r=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var a=0,i=e[0][n].length;a<i;a+=r)t.push.apply(t,e[0][n].slice(a,a+r));return t},U0=pe?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(t){return Buffer.isBuffer(t)?t:Pr(t)})):B0(e)}:B0,b0=function(e,t,r){for(var n=[],a=t;a<r;a+=2)n.push(String.fromCharCode(St(e,a)));return n.join("").replace(Ft,"")},Jn=pe?function(e,t,r){return Buffer.isBuffer(e)?e.toString("utf16le",t,r).replace(Ft,""):b0(e,t,r)}:b0,W0=function(e,t,r){for(var n=[],a=t;a<t+r;++a)n.push(("0"+e[a].toString(16)).slice(-2));return n.join("")},ka=pe?function(e,t,r){return Buffer.isBuffer(e)?e.toString("hex",t,t+r):W0(e,t,r)}:W0,H0=function(e,t,r){for(var n=[],a=t;a<r;a++)n.push(String.fromCharCode(lt(e,a)));return n.join("")},Wt=pe?function(t,r,n){return Buffer.isBuffer(t)?t.toString("utf8",r,n):H0(t,r,n)}:H0,Ia=function(e,t){var r=sr(e,t);return r>0?Wt(e,t+4,t+4+r-1):""},Na=Ia,Pa=function(e,t){var r=sr(e,t);return r>0?Wt(e,t+4,t+4+r-1):""},La=Pa,Ma=function(e,t){var r=2*sr(e,t);return r>0?Wt(e,t+4,t+4+r-1):""},Ba=Ma,Ua=function(t,r){var n=sr(t,r);return n>0?Jn(t,r+4,r+4+n):""},ba=Ua,Wa=function(e,t){var r=sr(e,t);return r>0?Wt(e,t+4,t+4+r):""},Ha=Wa,Va=function(e,t
`),t.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var r=0;r<e.length;++r)t.push(' <manifest:file-entry manifest:full-path="'+e[r][0]+'" manifest:media-type="'+e[r][1]+`"/>
`);return t.push("</manifest:manifest>"),t.join("")}function K0(e,t,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(r||"odf")+"#"+t+`"/>
`,` </rdf:Description>
`].join("")}function Gf(e,t){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+t+`"/>
`,` </rdf:Description>
`].join("")}function Xf(e){var t=[Ie];t.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
`);for(var r=0;r!=e.length;++r)t.push(K0(e[r][0],e[r][1])),t.push(Gf("",e[r][0]));return t.push(K0("","Document","pkg")),t.push("</rdf:RDF>"),t.join("")}function Qa(){return'<office:document-meta xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:meta="urn:oasis:names:tc:opendocument:xmlns:meta:1.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:xlink="http://www.w3.org/1999/xlink" office:version="1.2"><office:meta><meta:generator>SheetJS '+rn.version+"</meta:generator></office:meta></office:document-meta>"}var jr=[["cp:category","Category"],["cp:contentStatus","ContentStatus"],["cp:keywords","Keywords"],["cp:lastModifiedBy","LastAuthor"],["cp:lastPrinted","LastPrinted"],["cp:revision","RevNumber"],["cp:version","Version"],["dc:creator","Author"],["dc:description","Comments"],["dc:identifier","Identifier"],["dc:language","Language"],["dc:subject","Subject"],["dc:title","Title"],["dcterms:created","CreatedDate","date"],["dcterms:modified","ModifiedDate","date"]];function Nn(e,t,r,n,a){a[e]!=null||t==null||t===""||(a[e]=t,t=ge(t),n[n.length]=r?Y(e,t,r):Ge(e,t))}function ei(e,t){var r=t||{},n=[Ie,Y("cp:coreProperties",null,{"xmlns:cp":Me.CORE_PROPS,"xmlns:dc":Me.dc,"xmlns:dcterms":Me.dcterms,"xmlns:dcmitype":Me.dcmitype,"xmlns:xsi":Me.xsi})],a={};if(!e&&!r.Props)return n.join("");e&&(e.CreatedDate!=null&&Nn("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Wn(e.CreatedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a),e.ModifiedDate!=null&&Nn("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Wn(e.ModifiedDate,r.WTF),{"xsi:type":"dcterms:W3CDTF"},n,a));for(var i=0;i!=jr.length;++i){var s=jr[i],f=r.Props&&r.Props[s[1]]!=null?r.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&Nn(s[0],f,null,n,a)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var ut=[["Application","Application","string"],["AppVersion","AppVersion","string"],["Company","Company","string"],["DocSecurity","DocSecurity","string"],["Manager","Manager","string"],["HyperlinksChanged","HyperlinksChanged","bool"],["SharedDoc","SharedDoc","bool"],["LinksUpToDate","LinksUpToDate","bool"],["ScaleCrop","ScaleCrop","bool"],["HeadingPairs","HeadingPairs","raw"],["TitlesOfParts","TitlesOfParts","raw"]],ri=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function ti(e){var t=[],r=Y;return e||(e={}),e.Application="SheetJS",t[t.length]=Ie,t[t.length]=Y("Properties",null,{xmlns:Me.EXT_PROPS,"xmlns:vt":Me.vt}),ut.forEach(function(n){if(e[n[1]]!==void 0){var a;switch(n[2]){case"string":a=ge(String(e[n[1]]));break;case"bool":a=e[n[1]]?"true":"false";break}a!==void 0&&(t[t.length]=r(n[0],a))}}),t[t.length]=r("HeadingPairs",r("vt:vector",r("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+r("vt:variant",r("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),t[t.length]=r("TitlesOfParts",r("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+ge(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}function ni(e){var t=[Ie,Y("Properties",null,{xmlns:Me.CUST_PROPS,"xmlns:vt":Me.vt})];if(!e)return t.join("");var r=1;return ze(e).forEach(function(a){++r,t[t.length]=Y("property",lf(e[a]),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:r,name:ge(a)})}),t.length>2&&(t[t.length]="</Properties>",t[1]=t[1].replace("/>",">")),t.join("")}var $0={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function zf(e,t){var r=[];return ze($0).map(function(n){for(var a=0;a<jr.length;++a)if(jr[a][1]==n)return jr[a];for(a=0;a<ut.length;++a)if(ut[a][1]==n)return ut[a];throw n}).forEach(function(n){if
`;_.push("P;PGeneral"),_.push("F;P0;DG0G8;M255"),u["!cols"]&&l(_,u["!cols"]),u["!rows"]&&c(_,u["!rows"]),_.push("B;Y"+(g.e.r-g.s.r+1)+";X"+(g.e.c-g.s.c+1)+";D"+[g.s.c,g.s.r,g.e.c,g.e.r].join(" "));for(var M=g.s.r;M<=g.e.r;++M)for(var j=g.s.c;j<=g.e.c;++j){var q=_e({r:M,c:j});C=O?(u[M]||[])[j]:u[q],!(!C||C.v==null&&(!C.f||C.F))&&h.push(o(C,u,M,j))}return _.join(A)+A+h.join(A)+A+"E"+A}return{to_workbook:f,to_sheet:s,from_sheet:p}}(),Rl=function(){function e(i,s){switch(s.type){case"base64":return t(Ir(i),s);case"binary":return t(i,s);case"buffer":return t(pe&&Buffer.isBuffer(i)?i.toString("binary"):Ut(i),s);case"array":return t(Tn(i),s)}throw new Error("Unrecognized type "+s.type)}function t(i,s){for(var f=i.split(`
`),o=-1,l=-1,c=0,p=[];c!==f.length;++c){if(f[c].trim()==="BOT"){p[++o]=[],l=0;continue}if(!(o<0)){var u=f[c].trim().split(","),d=u[0],_=u[1];++c;for(var h=f[c]||"";(h.match(/["]/g)||[]).length&1&&c<f.length-1;)h+=`
`+f[++c];switch(h=h.trim(),+d){case-1:if(h==="BOT"){p[++o]=[],l=0;continue}else if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?p[o][l]=!0:h==="FALSE"?p[o][l]=!1:isNaN(Rr(_))?isNaN(Nt(_).getDate())?p[o][l]=_:p[o][l]=qe(_):p[o][l]=Rr(_),++l;break;case 1:h=h.slice(1,h.length-1),h=h.replace(/""/g,'"'),h&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),p[o][l++]=h!==""?h:null;break}if(h==="EOD")break}}return s&&s.sheetRows&&(p=p.slice(0,s.sheetRows)),p}function r(i,s){return vt(e(i,s),s)}function n(i,s){return qr(r(i,s),s)}var a=function(){var i=function(o,l,c,p,u){o.push(l),o.push(c+","+p),o.push('"'+u.replace(/"/g,'""')+'"')},s=function(o,l,c,p){o.push(l+","+c),o.push(l==1?'"'+p.replace(/"/g,'""')+'"':p)};return function(o){var l=[],c=Se(o["!ref"]),p,u=Array.isArray(o);i(l,"TABLE",0,1,"sheetjs"),i(l,"VECTORS",0,c.e.r-c.s.r+1,""),i(l,"TUPLES",0,c.e.c-c.s.c+1,""),i(l,"DATA",0,0,"");for(var d=c.s.r;d<=c.e.r;++d){s(l,-1,0,"BOT");for(var _=c.s.c;_<=c.e.c;++_){var h=_e({r:d,c:_});if(p=u?(o[d]||[])[_]:o[h],!p){s(l,1,0,"");continue}switch(p.t){case"n":var g=p.w;!g&&p.v!=null&&(g=p.v),g==null?p.f&&!p.F?s(l,1,0,"="+p.f):s(l,1,0,""):s(l,0,g,"V");break;case"b":s(l,0,p.v?1:0,p.v?"TRUE":"FALSE");break;case"s":s(l,1,0,isNaN(p.v)?p.v:'="'+p.v+'"');break;case"d":p.w||(p.w=Wr(p.z||Oe[14],er(qe(p.v)))),s(l,0,p.w,"V");break;default:s(l,1,0,"")}}}s(l,-1,0,"EOD");var C=`\r
`,O=l.join(C);return O}}();return{to_workbook:n,to_sheet:r,from_sheet:a}}(),ci=function(){function e(p){return p.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function t(p){return p.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function r(p,u){for(var d=p.split(`
`),_=-1,h=-1,g=0,C=[];g!==d.length;++g){var O=d[g].trim().split(":");if(O[0]==="cell"){var A=Be(O[1]);if(C.length<=A.r)for(_=C.length;_<=A.r;++_)C[_]||(C[_]=[]);switch(_=A.r,h=A.c,O[2]){case"t":C[_][h]=e(O[3]);break;case"v":C[_][h]=+O[3];break;case"vtf":var M=O[O.length-1];case"vtc":switch(O[3]){case"nl":C[_][h]=!!+O[4];break;default:C[_][h]=+O[4];break}O[2]=="vtf"&&(C[_][h]=[C[_][h],M])}}}return u&&u.sheetRows&&(C=C.slice(0,u.sheetRows)),C}function n(p,u){return vt(r(p,u),u)}function a(p,u){return qr(n(p,u),u)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
`),o="--SocialCalcSpreadsheetControlSave--";function l(p){if(!p||!p["!ref"])return"";for(var u=[],d=[],_,h="",g=fr(p["!ref"]),C=Array.isArray(p),O=g.s.r;O<=g.e.r;++O)for(var A=g.s.c;A<=g.e.c;++A)if(h=_e({r:O,c:A}),_=C?(p[O]||[])[A]:p[h],!(!_||_.v==null||_.t==="z")){switch(d=["cell",h,"t"],_.t){case"s":case"str":d.push(t(_.v));break;case"n":_.f?(d[2]="vtf",d[3]="n",d[4]=_.v,d[5]=t(_.f)):(d[2]="v",d[3]=_.v);break;case"b":d[2]="vt"+(_.f?"f":"c"),d[3]="nl",d[4]=_.v?"1":"0",d[5]=t(_.f||(_.v?"TRUE":"FALSE"));break;case"d":var M=er(qe(_.v));d[2]="vtc",d[3]="nd",d[4]=""+M,d[5]=_.w||Wr(_.z||Oe[14],M);break;case"e":continue}u.push(d.join(":"))}return u.push("sheet:c:"+(g.e.c-g.s.c+1)+":r:"+(g.e.r-g.s.r+1)+":tvf:1"),u.push("valueformat:1:text-wiki"),u.join(`
`)}function c(p){return[i,s,f,s,l(p),o].join(`
`)}return{to_workbook:a,to_sheet:n,from_sheet:c}}(),kl=function(){function e(c,p,u,d,_){_.raw?p[u][d]=c:c===""||(c==="TRUE"?p[u][d]=!0:c==="FALSE"?p[u][d]=!1:isNaN(Rr(c))?isNaN(Nt(c).getDate())?p[u][d]=c:p[u][d]=qe(c):p[u][d]=Rr(c))}function t(c,p){var u=p||{},d=[];if(!c||c.length===0)return d;for(var _=c.split(/[\r\n]/),h=_.length-1;h>=0&&_[h].length===0;)--h;for(var g=10,C=0,O=0;O<=h;++O)C=_[O].indexOf(" "),C==-1?C=_[O].length:C++,g=Math.max(g,C);for(O=0;O<=h;++O){d[O]=[];var A=0;for(e(_[O].slice(0,g).trim(),d,O,A,u),A=1;A<=(_[O].length-g)/10+1;++A)e(_[O].slice(g+(A-1)*10,g+A*10).trim(),d,O,A,u)}return u.sheetRows&&(d=d.slice(0,u.sheetRows)),d}var r={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function a(c){for(var p={},u=!1,d=0,_=0;d<c.length;++d)(_=c.charCodeAt(d))==34?u=!u:!u&&_ in r&&(p[_]=(p[_]||0)+1);_=[];for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&_.push([p[d],d]);if(!_.length){p=n;for(d in p)Object.prototype.hasOwnProperty.call(p,d)&&_.push([p[d],d])}return _.sort(function(h,g){return h[0]-g[0]||n[h[1]]-n[g[1]]}),r[_.pop()[1]]||44}function i(c,p){var u=p||{},d="",_=u.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(d=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(d=c.charAt(4),c=c.slice(6)):d=a(c.slice(0,1024)):u.FS?d=u.FS:d=a(c.slice(0,1024));var g=0,C=0,O=0,A=0,M=0,j=d.charCodeAt(0),q=!1,D=0,b=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var R=u.dateNF!=null?Ks(u.dateNF):null;function V(){var G=c.slice(A,M),z={};if(G.charAt(0)=='"'&&G.charAt(G.length-1)=='"'&&(G=G.slice(1,-1).replace(/""/g,'"')),G.length===0)z.t="z";else if(u.raw)z.t="s",z.v=G;else if(G.trim().length===0)z.t="s",z.v=G;else if(G.charCodeAt(0)==61)G.charCodeAt(1)==34&&G.charCodeAt(G.length-1)==34?(z.t="s",z.v=G.slice(2,-1).replace(/""/g,'"')):Ro(G)?(z.t="n",z.f=G.slice(1)):(z.t="s",z.v=G);else if(G=="TRUE")z.t="b",z.v=!0;else if(G=="FALSE")z.t="b",z.v=!1;else if(!isNaN(O=Rr(G)))z.t="n",u.cellText!==!1&&(z.w=G),z.v=O;else if(!isNaN(Nt(G).getDate())||R&&G.match(R)){z.z=u.dateNF||Oe[14];var re=0;R&&G.match(R)&&(G=$s(G,u.dateNF,G.match(R)||[]),re=1),u.cellDates?(z.t="d",z.v=qe(G,re)):(z.t="n",z.v=er(qe(G,re))),u.cellText!==!1&&(z.w=Wr(z.z,z.v instanceof Date?er(z.v):z.v)),u.cellNF||delete z.z}else z.t="s",z.v=G;if(z.t=="z"||(u.dense?(_[g]||(_[g]=[]),_[g][C]=z):_[_e({c:C,r:g})]=z),A=M+1,b=c.charCodeAt(A),h.e.c<C&&(h.e.c=C),h.e.r<g&&(h.e.r=g),D==j)++C;else if(C=0,++g,u.sheetRows&&u.sheetRows<=g)return!0}e:for(;M<c.length;++M)switch(D=c.charCodeAt(M)){case 34:b===34&&(q=!q);break;case j:case 10:case 13:if(!q&&V())break e;break}return M-A>0&&V(),_["!ref"]=ke(h),_}function s(c,p){return!(p&&p.PRN)||p.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?i(c,p):vt(t(c,p),p)}function f(c,p){var u="",d=p.type=="string"?[0,0,0,0]:Xu(c,p);switch(p.type){case"base64":u=Ir(c);break;case"binary":u=c;break;case"buffer":p.codepage==65001?u=c.toString("utf8"):(p.codepage,u=pe&&Buffer.isBuffer(c)?c.toString("binary"):Ut(c));break;case"array":u=Tn(c);break;case"string":u=c;break;default:throw new Error("Unrecognized type "+p.type)}return d[0]==239&&d[1]==187&&d[2]==191?u=yt(u.slice(3)):p.type!="string"&&p.type!="buffer"&&p.codepage==65001?u=yt(u):p.type=="binary",u.slice(0,19)=="socialcalc:version:"?ci.to_sheet(p.type=="string"?u:yt(u),p):s(u,p)}function o(c,p){return qr(f(c,p),p)}function l(c){for(var p=[],u=Se(c["!ref"]),d,_=Array.isArray(c),h=u.s.r;h<=u.e.r;++h){for(var g=[],C=u.s.c;C<=u.e.c;++C){var O=_e({r:h,c:C});if(d=_?(c[h]||[])[C]:c[O],!d||d.v==null){g.push(" ");continue}for(var A=(d.w||(Nr(d),d.w)||"").slice(0,10);A.length<10;)A+=" ";g.push(A+(C===0?" ":""))}p.push(g.join(""))}return p.join(`
`)}return{to_workbook:o,to_sheet:f,from_sheet:l}}(),Q0=function(){function e(S,L,y){if(S){ar(S,S.l||0);for(var F=y.Enum||lr;S.l<S.length;){var H=S.read_shift(2),ie=F[H]||F[65535],se=S.read_shift(2),ae=S.l+se,Q=ie.f&&ie.f(S,se,y);if(S.l=ae,L(Q,ie,H))return}}}function t(S,L){switch(L.type){case"base64":return r(mr(Ir(S)),L);case"binary":return r(mr(S),L);case"buffer":case"array":return r(S,L)}throw"Unsupported type "+L.type}function r(S,L){if(!S)return S;var y=L||{},F=y.dense?[]:{},H="Sheet1",ie="",se=0,ae={},Q=[],we=[],he={s:{r:0,c:0},e:{r:0,c:0}},Ye=y.sheetRows||0;if(S[2]==0&&(S[3]==8||S[3]==9)&&S.length>=16&&S[14]==5&&S[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(S[2]==2)y.Enum=lr,e(S,function(ne,or,yr){switch(yr){case 0:y.vers=ne,ne>=4096&&(y.qpro=!0);break;case 6:he=ne;break;case 204:ne&&(ie=ne);break;case 222:ie=ne;break;case 15:case 51:y.qpro||(ne[1].v=ne[1].v.slice(1));case 13:case 14:case 16:yr==14&&(ne[2]&112)==112&&(ne[2]&15)>1&&(ne[2]&15)<15&&(ne[1].z=y.dateNF||Oe[14],y.cellDates&&(ne[1].t="d",ne[1].v=Ca(ne[1].v))),y.qpro&&ne[3]>se&&(F["!ref"]=ke(he),ae[H]=F,Q.push(H),F=y.dense?[]:{},he={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H=ie||"Sheet"+(se+1),ie="");var Xr=y.dense?(F[ne[0].r]||[])[ne[0].c]:F[_e(ne[0])];if(Xr){Xr.t=ne[1].t,Xr.v=ne[1].v,ne[1].z!=null&&(Xr.z=ne[1].z),ne[1].f!=null&&(Xr.f=ne[1].f);break}y.dense?(F[ne[0].r]||(F[ne[0].r]=[]),F[ne[0].r][ne[0].c]=ne[1]):F[_e(ne[0])]=ne[1];break}},y);else if(S[2]==26||S[2]==14)y.Enum=tr,S[2]==14&&(y.qpro=!0,S.l=0),e(S,function(ne,or,yr){switch(yr){case 204:H=ne;break;case 22:ne[1].v=ne[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ne[3]>se&&(F["!ref"]=ke(he),ae[H]=F,Q.push(H),F=y.dense?[]:{},he={s:{r:0,c:0},e:{r:0,c:0}},se=ne[3],H="Sheet"+(se+1)),Ye>0&&ne[0].r>=Ye)break;y.dense?(F[ne[0].r]||(F[ne[0].r]=[]),F[ne[0].r][ne[0].c]=ne[1]):F[_e(ne[0])]=ne[1],he.e.c<ne[0].c&&(he.e.c=ne[0].c),he.e.r<ne[0].r&&(he.e.r=ne[0].r);break;case 27:ne[14e3]&&(we[ne[14e3][0]]=ne[14e3][1]);break;case 1537:we[ne[0]]=ne[1],ne[0]==se&&(H=ne[1]);break}},y);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(F["!ref"]=ke(he),ae[ie||H]=F,Q.push(ie||H),!we.length)return{SheetNames:Q,Sheets:ae};for(var de={},Fr=[],ye=0;ye<we.length;++ye)ae[Q[ye]]?(Fr.push(we[ye]||Q[ye]),de[we[ye]]=ae[we[ye]]||ae[Q[ye]]):(Fr.push(we[ye]),de[we[ye]]={"!ref":"A1"});return{SheetNames:Fr,Sheets:de}}function n(S,L){var y=L||{};if(+y.codepage>=0&&kt(+y.codepage),y.type=="string")throw new Error("Cannot write WK1 to JS string");var F=Qe(),H=Se(S["!ref"]),ie=Array.isArray(S),se=[];J(F,0,i(1030)),J(F,6,o(H));for(var ae=Math.min(H.e.r,8191),Q=H.s.r;Q<=ae;++Q)for(var we=Xe(Q),he=H.s.c;he<=H.e.c;++he){Q===H.s.r&&(se[he]=$e(he));var Ye=se[he]+we,de=ie?(S[Q]||[])[he]:S[Ye];if(!(!de||de.t=="z"))if(de.t=="n")(de.v|0)==de.v&&de.v>=-32768&&de.v<=32767?J(F,13,d(Q,he,de.v)):J(F,14,h(Q,he,de.v));else{var Fr=Nr(de);J(F,15,p(Q,he,Fr.slice(0,239)))}}return J(F,1),F.end()}function a(S,L){var y=L||{};if(+y.codepage>=0&&kt(+y.codepage),y.type=="string")throw new Error("Cannot write WK3 to JS string");var F=Qe();J(F,0,s(S));for(var H=0,ie=0;H<S.SheetNames.length;++H)(S.Sheets[S.SheetNames[H]]||{})["!ref"]&&J(F,27,Le(S.SheetNames[H],ie++));var se=0;for(H=0;H<S.SheetNames.length;++H){var ae=S.Sheets[S.SheetNames[H]];if(!(!ae||!ae["!ref"])){for(var Q=Se(ae["!ref"]),we=Array.isArray(ae),he=[],Ye=Math.min(Q.e.r,8191),de=Q.s.r;de<=Ye;++de)for(var Fr=Xe(de),ye=Q.s.c;ye<=Q.e.c;++ye){de===Q.s.r&&(he[ye]=$e(ye));var ne=he[ye]+Fr,or=we?(ae[de]||[])[ye]:ae[ne];if(!(!or||or.t=="z"))if(or.t=="n")J(F,23,V(de,ye,se,or.v));else{var yr=Nr(or);J(F,22,D(de,ye,se,yr.slice(0,239)))}}++se}}return J(F,1),F.end()}function i(S){var L=B(2);return L.write_shift(2,S),L}function s(S){var L=B(26);L.write_shift(2,4096),L.write_shift(2,4),L.write_shift(4,0);for(var y=0,F=0,H=0,ie=0;ie<S.SheetNames.length;++ie){var se=S.SheetNames[ie],ae=S.Sheets[se];if(!(!ae||!ae["!ref"])){++H;var Q=fr(ae["!ref"]);y<Q.e.r&&(y=Q.e.r),F<Q.e.c&&(F=Q.e.c)}}return y>8191&&(y=8191),L.write_shift(2,y),L.write_shift(1,H),L.write_shift(1,F),L.write_shift(2,0
<metadataTypes count="1">
<metadataType name="XLDAPR" minSupportedVersion="120000" copy="1" pasteAll="1" pasteValues="1" merge="1" splitFirst="1" rowColShift="1" clearFormats="1" clearComments="1" assign="1" coerce="1" cellMeta="1"/>
</metadataTypes>
<futureMetadata name="XLDAPR" count="1">
<bk>
<extLst>
<ext uri="{bdbb8cdc-fa1e-496e-a857-3c3f30c029c3}">
<xda:dynamicArrayProperties fDynamic="1" fCollapsed="0"/>
</ext>
</extLst>
</bk>
</futureMetadata>
<cellMetadata count="1">
<bk>
<rc t="1" v="0"/>
</bk>
</cellMetadata>
</metadata>`),e.join("")}function _o(e){var t={};t.i=e.read_shift(4);var r={};r.r=e.read_shift(4),r.c=e.read_shift(4),t.r=_e(r);var n=e.read_shift(1);return n&2&&(t.l="1"),n&8&&(t.a="1"),t}var ot=1024;function _i(e,t){for(var r=[21600,21600],n=["m0,0l0",r[1],r[0],r[1],r[0],"0xe"].join(","),a=[Y("xml",null,{"xmlns:v":ir.v,"xmlns:o":ir.o,"xmlns:x":ir.x,"xmlns:mv":ir.mv}).replace(/\/>/,">"),Y("o:shapelayout",Y("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Y("v:shapetype",[Y("v:stroke",null,{joinstyle:"miter"}),Y("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:r.join(","),path:n})];ot<e*1e3;)ot+=1e3;return t.forEach(function(i){var s=Be(i[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var o=f.type=="gradient"?Y("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,l=Y("v:fill",o,f),c={on:"t",obscured:"t"};++ot,a=a.concat(["<v:shape"+Lt({id:"_x0000_s"+ot,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(i[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",l,Y("v:shadow",null,c),Y("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",Ge("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),Ge("x:AutoFill","False"),Ge("x:Row",String(s.r)),Ge("x:Column",String(s.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),a.push("</xml>"),a.join("")}function Ti(e){var t=[Ie,Y("comments",null,{xmlns:dt[0]})],r=[];return t.push("<authors>"),e.forEach(function(n){n[1].forEach(function(a){var i=ge(a.a);r.indexOf(i)==-1&&(r.push(i),t.push("<author>"+i+"</author>")),a.T&&a.ID&&r.indexOf("tc="+a.ID)==-1&&(r.push("tc="+a.ID),t.push("<author>tc="+a.ID+"</author>"))})}),r.length==0&&(r.push("SheetJ5"),t.push("<author>SheetJ5</author>")),t.push("</authors>"),t.push("<commentList>"),e.forEach(function(n){var a=0,i=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?a=r.indexOf("tc="+n[1][0].ID):n[1].forEach(function(o){o.a&&(a=r.indexOf(ge(o.a))),i.push(o.t||"")}),t.push('<comment ref="'+n[0]+'" authorId="'+a+'"><text>'),i.length<=1)t.push(Ge("t",ge(i[0]||"")));else{for(var s=`Comment:
`+i[0]+`
`,f=1;f<i.length;++f)s+=`Reply:
`+i[f]+`
`;t.push(Ge("t",ge(s)))}t.push("</text></comment>")}),t.push("</commentList>"),t.length>2&&(t[t.length]="</comments>",t[1]=t[1].replace("/>",">")),t.join("")}function To(e,t,r){var n=[Ie,Y("ThreadedComments",null,{xmlns:Me.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(a){var i="";(a[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&t.indexOf(s.a)==-1&&t.push(s.a);var o={ref:a[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+r.tcid++).slice(-12)+"}"};f==0?i=o.id:o.parentId=i,s.ID=o.id,s.a&&(o.personId="{54EE7950-7262-4200-6969-"+("000000000000"+t.indexOf(s.a)).slice(-12)+"}"),n.push(Y("threadedComment",Ge("text",s.t||""),o))})}),n.push("</ThreadedComments>"),n.join("")}function Eo(e){var t=[Ie,Y("personList",null,{xmlns:Me.TCMNT,"xmlns:x":dt[0]}).replace(/[\/]>/,">")];return e.forEach(function(r,n){t.push(Y("person",null,{displayName:r,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:r,providerId:"None"}))}),t.push("</personList>"),t.join("")}function wo(e){var t={};t.iauthor=e.read_shift(4);var r=tt(e);return t.rfx=r.s,t.ref=_e(r.s),e.l+=16,t}function So(e,t){return t==null&&(t=B(36)),t.write_shift(4,e[1].iauthor),mt(e[0],t),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t}var Ao=je;function Fo(e){return Ue(e.slice(0,54))}function yo(e){var t=Qe(),r=[];return W(t,628),W(t,630),e.forEach(function(n){n[1].forEach(function(a){r.indexOf(a.a)>-1||(r.push(a.a.slice(0,54)),W(t,632,Fo(a.a)))})}),W(t,631),W(t,633),e.forEach(function(n){n[1].forEach(function(a){a.iauthor=r.indexOf(a.a);var i={s:Be(n[0]),e:Be(n[0])};W(t,635,So([i,a])),a.t&&a.t.length>0&&W(t,637,Cf(a)),W(t,636),delete a.iauthor})}),W(t,634),W(t,629),t.end()}function Co(e,t){t.FullPaths.forEach(function(r,n){if(n!=0){var a=r.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");a.slice(-1)!=="/"&&Ee.utils.cfb_add(e,a,t.FileIndex[n].content)}})}var Ei=["xlsb","xlsm","xlam","biff8","xla"],Oo=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,t={r:0,c:0};function r(n,a,i,s){var f=!1,o=!1;i.length==0?o=!0:i.charAt(0)=="["&&(o=!0,i=i.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var l=i.length>0?parseInt(i,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=t.c:--c,o?l+=t.r:--l,a+(f?"":"$")+$e(c)+(o?"":"$")+Xe(l)}return function(a,i){return t=i,a.replace(e,r)}}(),i0=/(^|[^._A-Z0-9])([$]?)([A-Z]{1,2}|[A-W][A-Z]{2}|X[A-E][A-Z]|XF[A-D])([$]?)(10[0-3]\d{4}|104[0-7]\d{3}|1048[0-4]\d{2}|10485[0-6]\d|104857[0-6]|[1-9]\d{0,5})(?![_.\(A-Za-z0-9])/g,s0=function(){return function(t,r){return t.replace(i0,function(n,a,i,s,f,o){var l=Qn(s)-(i?0:r.c),c=qn(o)-(f?0:r.r),p=c==0?"":f?c+1:"["+c+"]",u=l==0?"":i?l+1:"["+l+"]";return a+"R"+p+"C"+u})}}();function Do(e,t){return e.replace(i0,function(r,n,a,i,s,f){return n+(a=="$"?a+i:$e(Qn(i)+t.c))+(s=="$"?s+f:Xe(qn(f)+t.r))})}function Ro(e){return e.length!=1}function Re(e){e.l+=1}function Hr(e,t){var r=e.read_shift(2);return[r&16383,r>>14&1,r>>15&1]}function wi(e,t,r){var n=2;if(r){if(r.biff>=2&&r.biff<=5)return Si(e);r.biff==12&&(n=4)}var a=e.read_shift(n),i=e.read_shift(n),s=Hr(e),f=Hr(e);return{s:{r:a,c:s[0],cRel:s[1],rRel:s[2]},e:{r:i,c:f[0],cRel:f[1],rRel:f[2]}}}function Si(e){var t=Hr(e),r=Hr(e),n=e.read_shift(1),a=e.read_shift(1);return{s:{r:t[0],c:n,cRel:t[1],rRel:t[2]},e:{r:r[0],c:a,cRel:r[1],rRel:r[2]}}}function ko(e,t,r){if(r.biff<8)return Si(e);var n=e.read_shift(r.biff==12?4:2),a=e.read_shift(r.biff==12?4:2),i=Hr(e),s=Hr(e);return{s:{r:n,c:i[0],cRel:i[1],rRel:i[2]},e:{r:a,c:s[0],cRel:s[1],rRel:s[2]}}}function Ai(e,t,r){if(r&&r.biff>=2&&r.biff<=5)return Io(e);var n=e.read_shift(r&&r.biff==12?4:2),a=Hr(e);return{r:n,c:a[0],cRel:a[1],rRel:a[2]}}function Io(e){var t=Hr(e),r=e.read_shift(1);return{r:t[0],c:r,cRel:t[1],rRel:t[2]}}function No(e){var t=e.read_shift(2),r=e.read_shift(2);return{r:t,c:r&255,fQuoted:!!(r&16384),cRel:r>>15,rRel:r>>15}}function Po(e,t,r){var n=r&&r.biff?r.biff:8;if(n>=2&&n<=5)return Lo(e);var a=e.read_shift(n>=12?4:2),i=e.read_shift(2),s=(i&16384)>>14,f=(i&32768)>>15;if(i&=163
`,r=` <table:covered-table-cell/>
`,n=function(i,s,f){var o=[];o.push(' <table:table table:name="'+ge(s.SheetNames[f])+`" table:style-name="ta1">
`);var l=0,c=0,p=fr(i["!ref"]||"A1"),u=i["!merges"]||[],d=0,_=Array.isArray(i);if(i["!cols"])for(c=0;c<=p.e.c;++c)o.push(" <table:table-column"+(i["!cols"][c]?' table:style-name="co'+i["!cols"][c].ods+'"':"")+`></table:table-column>
`);var h="",g=i["!rows"]||[];for(l=0;l<p.s.r;++l)h=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push(" <table:table-row"+h+`></table:table-row>
`);for(;l<=p.e.r;++l){for(h=g[l]?' table:style-name="ro'+g[l].ods+'"':"",o.push(" <table:table-row"+h+`>
`),c=0;c<p.s.c;++c)o.push(t);for(;c<=p.e.c;++c){var C=!1,O={},A="";for(d=0;d!=u.length;++d)if(!(u[d].s.c>c)&&!(u[d].s.r>l)&&!(u[d].e.c<c)&&!(u[d].e.r<l)){(u[d].s.c!=c||u[d].s.r!=l)&&(C=!0),O["table:number-columns-spanned"]=u[d].e.c-u[d].s.c+1,O["table:number-rows-spanned"]=u[d].e.r-u[d].s.r+1;break}if(C){o.push(r);continue}var M=_e({r:l,c}),j=_?(i[l]||[])[c]:i[M];if(j&&j.f&&(O["table:formula"]=ge(Qc(j.f)),j.F&&j.F.slice(0,M.length)==M)){var q=fr(j.F);O["table:number-matrix-columns-spanned"]=q.e.c-q.s.c+1,O["table:number-matrix-rows-spanned"]=q.e.r-q.s.r+1}if(!j){o.push(t);continue}switch(j.t){case"b":A=j.v?"TRUE":"FALSE",O["office:value-type"]="boolean",O["office:boolean-value"]=j.v?"true":"false";break;case"n":A=j.w||String(j.v||0),O["office:value-type"]="float",O["office:value"]=j.v||0;break;case"s":case"str":A=j.v==null?"":j.v,O["office:value-type"]="string";break;case"d":A=j.w||qe(j.v).toISOString(),O["office:value-type"]="date",O["office:date-value"]=qe(j.v).toISOString(),O["table:style-name"]="ce1";break;default:o.push(t);continue}var D=e(A);if(j.l&&j.l.Target){var b=j.l.Target;b=b.charAt(0)=="#"?"#"+e1(b.slice(1)):b,b.charAt(0)!="#"&&!b.match(/^\w+:/)&&(b="../"+b),D=Y("text:a",D,{"xlink:href":b.replace(/&/g,"&amp;")})}o.push(" "+Y("table:table-cell",Y("text:p",D,{}),O)+`
`)}o.push(` </table:table-row>
`)}return o.push(` </table:table>
`),o.join("")},a=function(i,s){i.push(` <office:automatic-styles>
`),i.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),i.push(` <number:month number:style="long"/>
`),i.push(` <number:text>/</number:text>
`),i.push(` <number:day number:style="long"/>
`),i.push(` <number:text>/</number:text>
`),i.push(` <number:year/>
`),i.push(` </number:date-style>
`);var f=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!cols"]){for(var c=0;c<l["!cols"].length;++c)if(l["!cols"][c]){var p=l["!cols"][c];if(p.width==null&&p.wpx==null&&p.wch==null)continue;a0(p),p.ods=f;var u=l["!cols"][c].wpx+"px";i.push(' <style:style style:name="co'+f+`" style:family="table-column">
`),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+u+`"/>
`),i.push(` </style:style>
`),++f}}});var o=0;s.SheetNames.map(function(l){return s.Sheets[l]}).forEach(function(l){if(l&&l["!rows"]){for(var c=0;c<l["!rows"].length;++c)if(l["!rows"][c]){l["!rows"][c].ods=o;var p=l["!rows"][c].hpx+"px";i.push(' <style:style style:name="ro'+o+`" style:family="table-row">
`),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+p+`"/>
`),i.push(` </style:style>
`),++o}}}),i.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),i.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),i.push(` </style:style>
`),i.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),i.push(` </office:automatic-styles>
`)};return function(s,f){var o=[Ie],l=Lt({"xmlns:office":"urn:oasis:names:tc:opendocument:xmlns:office:1.0","xmlns:table":"urn:oasis:names:tc:opendocument:xmlns:table:1.0","xmlns:style":"urn:oasis:names:tc:opendocument:xmlns:style:1.0","xmlns:text":"urn:oasis:names:tc:opendocument:xmlns:text:1.0","xmlns:draw":"urn:oasis:names:tc:opendocument:xmlns:drawing:1.0","xmlns:fo":"urn:oasis:names:tc:opendocument:xmlns:xsl-fo-compatible:1.0","xmlns:xlink":"http://www.w3.org/1999/xlink","xmlns:dc":"http://purl.org/dc/elements/1.1/","xmlns:meta":"urn:oasis:names:tc:opendocument:xmlns:meta:1.0","xmlns:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:presentation":"urn:oasis:names:tc:opendocument:xmlns:presentation:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:chart":"urn:oasis:names:tc:opendocument:xmlns:chart:1.0","xmlns:dr3d":"urn:oasis:names:tc:opendocument:xmlns:dr3d:1.0","xmlns:math":"http://www.w3.org/1998/Math/MathML","xmlns:form":"urn:oasis:names:tc:opendocument:xmlns:form:1.0","xmlns:script":"urn:oasis:names:tc:opendocument:xmlns:script:1.0","xmlns:ooo":"http://openoffice.org/2004/office","xmlns:ooow":"http://openoffice.org/2004/writer","xmlns:oooc":"http://openoffice.org/2004/calc","xmlns:dom":"http://www.w3.org/2001/xml-events","xmlns:xforms":"http://www.w3.org/2002/xforms","xmlns:xsd":"http://www.w3.org/2001/XMLSchema","xmlns:xsi":"http://www.w3.org/2001/XMLSchema-instance","xmlns:sheet":"urn:oasis:names:tc:opendocument:sh33tjs:1.0","xmlns:rpt":"http://openoffice.org/2005/report","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","xmlns:xhtml":"http://www.w3.org/1999/xhtml","xmlns:grddl":"http://www.w3.org/2003/g/data-view#","xmlns:tableooo":"http://openoffice.org/2009/table","xmlns:drawooo":"http://openoffice.org/2010/draw","xmlns:calcext":"urn:org:documentfoundation:names:experimental:calc:xmlns:calcext:1.0","xmlns:loext":"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0","xmlns:field":"urn:openoffice:names:experimental:ooo-ms-interop:xmlns:field:1.0","xmlns:formx":"urn:openoffice:names:experimental:ooxml-odf-interop:xmlns:form:1.0","xmlns:css3t":"http://www.w3.org/TR/css3-text/","office:version":"1.2"}),c=Lt({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(o.push("<office:document"+l+c+`>
`),o.push(Qa().replace(/office:document-meta/g,"office:meta"))):o.push("<office:document-content"+l+`>
`),a(o,s),o.push(` <office:body>
`),o.push(` <office:spreadsheet>
`);for(var p=0;p!=s.SheetNames.length;++p)o.push(n(s.Sheets[s.SheetNames[p]],s,p));return o.push(` </office:spreadsheet>
`),o.push(` </office:body>
`),f.bookType=="fods"?o.push("</office:document>"):o.push("</office:document-content>"),o.join("")}}();function bi(e,t){if(t.bookType=="fods")return sa(e,t);var r=$n(),n="",a=[],i=[];return n="mimetype",oe(r,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",oe(r,n,sa(e,t)),a.push([n,"text/xml"]),i.push([n,"ContentFile"]),n="styles.xml",oe(r,n,Nu(e,t)),a.push([n,"text/xml"]),i.push([n,"StylesFile"]),n="meta.xml",oe(r,n,Ie+Qa()),a.push([n,"text/xml"]),i.push([n,"MetadataFile"]),n="manifest.rdf",oe(r,n,Xf(i)),a.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",oe(r,n,Vf(a)),r}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function pn(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Pu(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):mr(Pt(e))}function Lu(e,t){e:for(var r=0;r<=e.length-t.length;++r){for(var n=0;n<t.length;++n)if(e[r+n]!=t[n])continue e;return!0}return!1}function Vr(e){var t=e.reduce(function(a,i){return a+i.length},0),r=new Uint8Array(t),n=0;return e.forEach(function(a){r.set(a,n),n+=a.length}),r}function Mu(e,t,r){var n=Math.floor(r==0?0:Math.LOG10E*Math.log(Math.abs(r)))+6176-20,a=r/Math.pow(10,n-6176);e[t+15]|=n>>7,e[t+14]|=(n&127)<<1;for(var i=0;a>=1;++i,a/=256)e[t+i]=a&255;e[t+15]|=r>=0?0:128}function Mt(e,t){var r=t?t[0]:0,n=e[r]&127;e:if(e[r++]>=128&&(n|=(e[r]&127)<<7,e[r++]<128||(n|=(e[r]&127)<<14,e[r++]<128)||(n|=(e[r]&127)<<21,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,28),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,35),++r,e[r++]<128)||(n+=(e[r]&127)*Math.pow(2,42),++r,e[r++]<128)))break e;return t&&(t[0]=r),n}function ve(e){var t=new Uint8Array(7);t[0]=e&127;var r=1;e:if(e>127){if(t[r-1]|=128,t[r]=e>>7&127,++r,e<=16383||(t[r-1]|=128,t[r]=e>>14&127,++r,e<=2097151)||(t[r-1]|=128,t[r]=e>>21&127,++r,e<=268435455)||(t[r-1]|=128,t[r]=e/256>>>21&127,++r,e<=34359738367)||(t[r-1]|=128,t[r]=e/65536>>>21&127,++r,e<=4398046511103))break e;t[r-1]|=128,t[r]=e/16777216>>>21&127,++r}return t.slice(0,r)}function xt(e){var t=0,r=e[t]&127;e:if(e[t++]>=128){if(r|=(e[t]&127)<<7,e[t++]<128||(r|=(e[t]&127)<<14,e[t++]<128)||(r|=(e[t]&127)<<21,e[t++]<128))break e;r|=(e[t]&127)<<28}return r}function Ne(e){for(var t=[],r=[0];r[0]<e.length;){var n=r[0],a=Mt(e,r),i=a&7;a=Math.floor(a/8);var s=0,f;if(a==0)break;switch(i){case 0:{for(var o=r[0];e[r[0]++]>=128;);f=e.slice(o,r[0])}break;case 5:s=4,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 1:s=8,f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 2:s=Mt(e,r),f=e.slice(r[0],r[0]+s),r[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(a," at offset ").concat(n))}var l={data:f,type:i};t[a]==null?t[a]=[l]:t[a].push(l)}return t}function We(e){var t=[];return e.forEach(function(r,n){r.forEach(function(a){a.data&&(t.push(ve(n*8+a.type)),a.type==2&&t.push(ve(a.data.length)),t.push(a.data))})}),Vr(t)}function pr(e){for(var t,r=[],n=[0];n[0]<e.length;){var a=Mt(e,n),i=Ne(e.slice(n[0],n[0]+a));n[0]+=a;var s={id:xt(i[1][0].data),messages:[]};i[2].forEach(function(f){var o=Ne(f.data),l=xt(o[3][0].data);s.messages.push({meta:o,data:e.slice(n[0],n[0]+l)}),n[0]+=l}),(t=i[3])!=null&&t[0]&&(s.merge=xt(i[3][0].data)>>>0>0),r.push(s)}return r}function it(e){var t=[];return e.forEach(function(r){var n=[];n[1]=[{data:ve(r.id),type:0}],n[2]=[],r.merge!=null&&(n[3]=[{data:ve(+!!r.merge),type:0}]);var a=[];r.messages.forEach(function(s){a.push(s.data),s.meta[3]=[{type:0,data:ve(s.data.length)}],n[2].push({data:We(s.meta),type:2})});var i=We(n);t.push(ve(i.length)),t.push(i),a.forEach(function(s){return t.push(s)})}),Vr(t)}function Bu(e,t){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var r=[0],n=Mt(t,r),a=[];r[0]<t.length;){var i=t[r[0]]&3;if(i==0){var s=t[r[0]++]>>2;if(s<60)++s;else{var f=s-59;s=t[r[0]],f>1&&(s|=t[r[0]+1]<<8),f>2&&(s|=t[r[0]+2]<<16),f>3&&(s|=t[r[0]+3]<<24),s>>>=0,s++,r[0]+=f}a.push(t.slice(r[0],r[0]+s)),r[0]+=s;continue}else{var o=0,l=0;if(i==1?(l=(t[r[0]]>>2&7)+4,o=(t[r[0]++]&224)<<3,o|=t[r[0]++]):(l=(t[r[0]++]>>2)+1,i==2?(o=t[r[0]]|t[r[0]+1]<<8,r[0]+=2):(o=(t[r[0]
`,o=f.charCodeAt(0),l=new RegExp((i=="|"?"\\|":i)+"+$"),c="",p=[];n.dense=Array.isArray(e);for(var u=n.skipHidden&&e["!cols"]||[],d=n.skipHidden&&e["!rows"]||[],_=a.s.c;_<=a.e.c;++_)(u[_]||{}).hidden||(p[_]=$e(_));for(var h=0,g=a.s.r;g<=a.e.r;++g)(d[g]||{}).hidden||(c=qu(e,a,g,p,s,o,i,n),c!=null&&(n.strip&&(c=c.replace(l,"")),(c||n.blankrows!==!1)&&r.push((h++?f:"")+c)));return delete n.dense,r.join("")}function Vi(e,t){t||(t={}),t.FS=" ",t.RS=`
`;var r=c0(e,t);return r}function Qu(e){var t="",r,n="";if(e==null||e["!ref"]==null)return[];var a=Se(e["!ref"]),i="",s=[],f,o=[],l=Array.isArray(e);for(f=a.s.c;f<=a.e.c;++f)s[f]=$e(f);for(var c=a.s.r;c<=a.e.r;++c)for(i=Xe(c),f=a.s.c;f<=a.e.c;++f)if(t=s[f]+i,r=l?(e[c]||[])[f]:e[t],n="",r!==void 0){if(r.F!=null){if(t=r.F,!r.f)continue;n=r.f,t.indexOf(":")==-1&&(t=t+":"+t)}if(r.f!=null)n=r.f;else{if(r.t=="z")continue;if(r.t=="n"&&r.v!=null)n=""+r.v;else if(r.t=="b")n=r.v?"TRUE":"FALSE";else if(r.w!==void 0)n="'"+r.w;else{if(r.v===void 0)continue;r.t=="s"?n="'"+r.v:n=""+r.v}}o[o.length]=t+"="+n}return o}function Gi(e,t,r){var n=r||{},a=+!n.skipHeader,i=e||{},s=0,f=0;if(i&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var o=typeof n.origin=="string"?Be(n.origin):n.origin;s=o.r,f=o.c}var l,c={s:{c:0,r:0},e:{c:f,r:s+t.length-1+a}};if(i["!ref"]){var p=Se(i["!ref"]);c.e.c=Math.max(c.e.c,p.e.c),c.e.r=Math.max(c.e.r,p.e.r),s==-1&&(s=p.e.r+1,c.e.r=s+t.length-1+a)}else s==-1&&(s=0,c.e.r=t.length-1+a);var u=n.header||[],d=0;t.forEach(function(h,g){ze(h).forEach(function(C){(d=u.indexOf(C))==-1&&(u[d=u.length]=C);var O=h[C],A="z",M="",j=_e({c:f+d,r:s+g+a});l=Bt(i,j),O&&typeof O=="object"&&!(O instanceof Date)?i[j]=O:(typeof O=="number"?A="n":typeof O=="boolean"?A="b":typeof O=="string"?A="s":O instanceof Date?(A="d",n.cellDates||(A="n",O=er(O)),M=n.dateNF||Oe[14]):O===null&&n.nullError&&(A="e",O=0),l?(l.t=A,l.v=O,delete l.w,delete l.R,M&&(l.z=M)):i[j]=l={t:A,v:O},M&&(l.z=M))})}),c.e.c=Math.max(c.e.c,f+u.length-1);var _=Xe(s);if(a)for(d=0;d<u.length;++d)i[$e(d+f)+_]={t:"s",v:u[d]};return i["!ref"]=ke(c),i}function ex(e,t){return Gi(null,e,t)}function Bt(e,t,r){if(typeof t=="string"){if(Array.isArray(e)){var n=Be(t);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[t]||(e[t]={t:"z"})}return typeof t!="number"?Bt(e,_e(t)):Bt(e,_e({r:t,c:r||0}))}function rx(e,t){if(typeof t=="number"){if(t>=0&&e.SheetNames.length>t)return t;throw new Error("Cannot find sheet # "+t)}else if(typeof t=="string"){var r=e.SheetNames.indexOf(t);if(r>-1)return r;throw new Error("Cannot find sheet name |"+t+"|")}else throw new Error("Cannot find sheet |"+t+"|")}function tx(){return{SheetNames:[],Sheets:{}}}function nx(e,t,r,n){var a=1;if(!r)for(;a<=65535&&e.SheetNames.indexOf(r="Sheet"+a)!=-1;++a,r=void 0);if(!r||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(r)>=0){var i=r.match(/(^.*?)(\d+)$/);a=i&&+i[2]||0;var s=i&&i[1]||r;for(++a;a<=65535&&e.SheetNames.indexOf(r=s+a)!=-1;++a);}if(Ii(r),e.SheetNames.indexOf(r)>=0)throw new Error("Worksheet with name |"+r+"| already exists!");return e.SheetNames.push(r),e.Sheets[r]=t,r}function ax(e,t,r){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=rx(e,t);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),r){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+r)}e.Workbook.Sheets[n].Hidden=r}function ix(e,t){return e.z=t,e}function Xi(e,t,r){return t?(e.l={Target:t},r&&(e.l.Tooltip=r)):delete e.l,e}function sx(e,t,r){return Xi(e,"#"+t,r)}function fx(e,t,r){e.c||(e.c=[]),e.c.push({t,a:r||"SheetJS"})}function lx(e,t,r,n){for(var a=typeof t!="string"?t:Se(t),i=typeof t=="string"?t:ke(t),s=a.s.r;s<=a.e.r;++s)for(var f=a.s.c;f<=a.e.c;++f){var o=Bt(e,s,f);o.t="n",o.F=i,delete o.v,s==a.s.r&&f==a.s.c&&(o.f=r,n&&(o.D=!0))}return e}var Un={encode_col:$e,encode_row:Xe,encode_cell:_e,encode_range:ke,decode_col:Qn,decode_row:qn,split_cell:Ef,decode_cell:Be,decode_range:fr,format_cell:Nr,sheet_add_aoa:Xa,sheet_add_json:Gi,sheet_add_dom:Bi,aoa_to_sheet:vt,json_to_sheet:ex,table_to_sheet:Ui,table_to_book:ku,sheet_to_csv:c0,sheet_to_txt:Vi,sheet_to_json:dn,sheet_to_html:Mi,sheet_to_formulae:Qu,sheet_to_row_object_array:dn,sheet_get_cell:Bt,book_new:tx,book_append_sheet:nx,book_set_sheet_visibility:ax,cell_set_number_format:ix,cell_set_hyperlink:Xi,cell_set_internal_link:sx,cell_add_comment:fx,sheet_set_array_formula:lx,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};const ox={class:"ap