old.martials.no/assets/main-5e1ae7ad.js

131 lines
344 KiB
JavaScript
Raw Normal View History

2023-09-10 17:47:29 +00:00
(function(){const r=document.createElement("link").relList;if(r&&r.supports&&r.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))n(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&n(s)}).observe(document,{childList:!0,subtree:!0});function t(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function n(i){if(i.ep)return;i.ep=!0;const a=t(i);fetch(i.href,a)}})();const ml={context:void 0,registry:void 0},vl=(e,r)=>e===r,Bn=Symbol("solid-proxy"),gl=Symbol("solid-track"),_l=Symbol("solid-dev-component"),Un={equals:vl};let L0=H0;const ar=1,$n=2,P0={owned:null,cleanups:null,context:null,owner:null};var Oe=null;let Ci=null,Ce=null,tt=null,Vt=null,ii=0;function Pr(e,r){const t=Ce,n=Oe,i=e.length===0,a=i?P0:{owned:null,cleanups:null,context:null,owner:r===void 0?n:r},s=i?e:()=>e(()=>lt(()=>ai(a)));Oe=a,Ce=null;try{return fr(s,!0)}finally{Ce=t,Oe=n}}function we(e,r){r=r?Object.assign({},Un,r):Un;const t={value:e,observers:null,observerSlots:null,comparator:r.equals||void 0},n=i=>(typeof i=="function"&&(i=i(t.value)),W0(t,i));return[$0.bind(t),n]}function Dt(e,r,t){const n=Yi(e,r,!1,ar);vn(n)}function sr(e,r,t){L0=Al;const n=Yi(e,r,!1,ar);(!t||!t.render)&&(n.user=!0),Vt?Vt.push(n):vn(n)}function De(e,r,t){t=t?Object.assign({},Un,t):Un;const n=Yi(e,r,!0,0);return n.observers=null,n.observerSlots=null,n.comparator=t.equals||void 0,vn(n),$0.bind(n)}function El(e){return fr(e,!1)}function lt(e){if(Ce===null)return e();const r=Ce;Ce=null;try{return e()}finally{Ce=r}}function M0(e,r,t){const n=Array.isArray(e);let i,a=t&&t.defer;return s=>{let f;if(n){f=Array(e.length);for(let o=0;o<e.length;o++)f[o]=e[o]()}else f=e();if(a){a=!1;return}const l=lt(()=>r(f,i,s));return i=f,l}}function b0(e){sr(()=>lt(e))}function jt(e){return Oe===null||(Oe.cleanups===null?Oe.cleanups=[e]:Oe.cleanups.push(e)),e}function B0(){return Oe}function U0(e,r){const t=Oe,n=Ce;Oe=e,Ce=null;try{return fr(r,!0)}catch(i){Ji(i)}finally{Oe=t,Ce=n}}function Tl(e){const r=Ce,t=Oe;return Promise.resolve().then(()=>{Ce=r,Oe=t;let n;return fr(e,!1),Ce=Oe=null,n?n.done:void 0})}function Vr(e,r){const t=Symbol("context");return{id:t,Provider:Fl(t),defaultValue:e}}function Tr(e){let r;return(r=G0(Oe,e.id))!==void 0?r:e.defaultValue}function Ki(e){const r=De(e),t=De(()=>Ui(r()));return t.toArray=()=>{const n=t();return Array.isArray(n)?n:n!=null?[n]:[]},t}function $0(){if(this.sources&&this.state)if(this.state===ar)vn(this);else{const e=tt;tt=null,fr(()=>Hn(this),!1),tt=e}if(Ce){const e=this.observers?this.observers.length:0;Ce.sources?(Ce.sources.push(this),Ce.sourceSlots.push(e)):(Ce.sources=[this],Ce.sourceSlots=[e]),this.observers?(this.observers.push(Ce),this.observerSlots.push(Ce.sources.length-1)):(this.observers=[Ce],this.observerSlots=[Ce.sources.length-1])}return this.value}function W0(e,r,t){let n=e.value;return(!e.comparator||!e.comparator(n,r))&&(e.value=r,e.observers&&e.observers.length&&fr(()=>{for(let i=0;i<e.observers.length;i+=1){const a=e.observers[i],s=Ci&&Ci.running;s&&Ci.disposed.has(a),(s?!a.tState:!a.state)&&(a.pure?tt.push(a):Vt.push(a),a.observers&&V0(a)),s||(a.state=ar)}if(tt.length>1e6)throw tt=[],new Error},!1)),r}function vn(e){if(!e.fn)return;ai(e);const r=Oe,t=Ce,n=ii;Ce=Oe=e,wl(e,e.value,n),Ce=t,Oe=r}function wl(e,r,t){let n;try{n=e.fn(r)}catch(i){return e.pure&&(e.state=ar,e.owned&&e.owned.forEach(ai),e.owned=null),e.updatedAt=t+1,Ji(i)}(!e.updatedAt||e.updatedAt<=t)&&(e.updatedAt!=null&&"observers"in e?W0(e,n):e.value=n,e.updatedAt=t)}function Yi(e,r,t,n=ar,i){const a={fn:e,state:n,updatedAt:null,owned:null,sources:null,sourceSlots:null,cleanups:null,value:r,owner:Oe,context:null,pure:t};return Oe===null||Oe!==P0&&(Oe.owned?Oe.owned.push(a):Oe.owned=[a]),a}function Wn(e){if(e.state===0)return;if(e.state==
hover:border-t-cyan-400 ${c}`),Re(A,"id",r),Re(A,"name",t??void 0),Re(A,"type",n),Re(A,"placeholder",a??void 0),A.required=s,A})(),o]}})},Tc=({title:e,isActive:r=!1,htmlFor:t})=>(()=>{const n=vc(),i=n.firstChild;return be(n,`absolute pointer-events-none
2023-07-24 18:48:39 +00:00
${r?"-top-2 left-3 default-bg text-sm":"left-2 top-1"}
2023-09-10 17:47:29 +00:00
transition-all duration-150 text-gray-600 dark:text-gray-400`),Re(n,"for",t),ne(i,e),n})(),wc=({typingDefault:e=!1,id:r="search",className:t,ref:n})=>{const[i,a]=we(e);function s(){return Wr(r)}function f(){const o=s();o&&(o.value="",a(!1),history.replaceState(null,"",location.pathname),o.focus())}function l(){const o=s();o&&o.value!==""!==i()&&a(o.value!=="")}return W(Qi,{inputClass:"rounded-xl pl-7 h-10 w-full pr-8",className:`w-full ${t}`,id:r,ref(o){const c=n;typeof c=="function"?c(o):n=o},placeholder:"¬A & B -> C",type:"text",onChange:l,get leading(){return W(Pt,{path:qo,"aria-label":"Magnifying glass",class:"pl-2 absolute"})},get trailing(){return W(Ye,{get when(){return i()},keyed:!0,get children(){const o=gc();return o.$$click=f,ne(o,W(Pt,{path:Zo,"aria-label":"The letter X"})),o}})}})};Gr(["input","click"]);const Sc=ae("<table><thead><tr></tr></thead><tbody>"),Ac=ae('<th scope="col" class="bg-default-bg text-center sticky top-0 [position:-webkit-sticky;] outline outline-2 outline-offset-[-1px] outline-gray-500"><p class="px-2 w-max">'),yc=ae('<tr class="hover:text-black">'),Fc=ae("<td><p>"),Cc=({table:e,header:r,className:t,style:n,id:i})=>(()=>{const a=Sc(),s=a.firstChild,f=s.firstChild,l=s.nextSibling;return be(a,`border-2 border-gray-500 border-collapse table z-10 ${t}`),Re(a,"id",i),ne(f,W(Mt,{each:r,children:o=>(()=>{const c=Ac(),h=c.firstChild;return ne(h,o),c})()})),ne(l,W(Mt,{each:e,children:o=>(()=>{const c=yc();return ne(c,W(Mt,{each:o,children:h=>(()=>{const u=Fc(),x=u.firstChild;return be(u,`text-center border border-gray-500 last:underline
${h?"bg-green-700":"bg-red-700"}`),ne(x,h?"T":"F"),u})()})),c})()})),Dt(o=>X0(a,n,o)),a})();function kt(e,r){let t={},n=Object.keys(e);for(let i=0,a=n.length;i<a;i+=1){let s=n[i];r.includes(s)||Object.defineProperty(t,s,{get(){return e[s]},configurable:!0,enumerable:!0})}return t}var rs=Vr();function oi(){let e=Tr(rs);if(e)return e;throw new Error("`useHeadlessDisclosureProperties` must be used within `<HeadlessDisclosureRoot>`.")}function Oc(e){return typeof e=="function"&&e.length>0}function Dc(e){let r=oi();return De(()=>{let t=e.children;return Oc(t)?t(r):t})}function wr(e){return{get children(){return W(Dc,{get children(){return e.children}})}}}function Ic(e){let r,t;if("defaultOpen"in e){let[n,i]=we(e.defaultOpen);r=n,t=a=>{El(()=>{var s;i(a),(s=e.onChange)==null||s.call(e,a)})}}else r=()=>e.isOpen,t=n=>{var i;return(i=e.onChange)==null?void 0:i.call(e,n)};return{isOpen(){return r()},setState(n){e.disabled||t(n)},disabled(){return!!e.disabled}}}function kc(e){return typeof e=="function"&&e.length>0}function ci(e){let r=Ic(e);return W(rs.Provider,{value:r,get children(){return De(()=>{let t=e.children;return kc(t)?t(r):t})}})}function Bt(e,r){return W(Ql,dt({get component(){return e()}},r))}function Nc(e){return typeof e=="function"}function ui(e,r){return t=>{"ref"in e&&Nc(e.ref)&&e.ref(t),r(t)}}function hi(e){return{get disabled(){return e()},get"aria-disabled"(){return e()},get"data-sh-disabled"(){return e()}}}function Rc(e){return{get"aria-expanded"(){return e()},get"data-sh-expanded"(){return e()}}}var Lc='a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex]:not([tabindex="-1"]), [contenteditable]';function ns(e,r){let t=e.querySelectorAll(Lc),n=[];for(let i=0,a=t.length;i<a;i+=1)(!r||!r.contains(t[i]))&&n.push(t[i]);return n}function is(e){return!e.matches('[data-sh-disabled="true"]')}function as(e,r,t){let n=r+t;for(;n>=0&&n<e.length;){if(is(e[n]))return e[n];n+=t}}function ss(e,r,t){let n=r+t;for(t===1&&n===e.length&&(n=0),t===-1&&n===-1&&(n=e.length-1);r!==n;){if(is(e[n]))return e[n];n+=t,t===1&&n>=e.length&&(n=0),t===-1&&n<0&&(n=e.length-1)}}function Pc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=ss(e,n,1))==null||t.focus();break}}function Mc(e,r){var t;for(let n=0,i=e.length;n<i;n+=1)if(r===e[n]){(t=ss(e,n,-1))==null||t.focus();break}}function fs(e){var r;return e.length?((r=as(e,-1,1))==null||r.focus(),!0):!1}function bc(e){var r;return e.length?((r=as(e,e.length,-1))==null||r.focus(),!0):!1}function Bc(e,r){let t=ns(e);r?!document.activeElement||!e.contains(document.activeElement)?bc(t):Mc(t,document.activeElement):!document.activeElement||!e.contains(document.activeElement)?fs(t):Pc(t,document.activeElement)}var Uc="data-sh";function lr(e){return{[Uc]:e}}var $c=lr("button");function Wc(e){let[r,t]=we();return sr(()=>{let n=r();if(n instanceof HTMLElement&&n.tagName!=="BUTTON"){let i=a=>{(a.key==="Enter"||a.key===" ")&&n.click()};n.addEventListener("keydown",i),jt(()=>{n.removeEventListener("keydown",i)})}}),Bt(()=>{var n;return(n=e.as)!=null?n:"button"},dt({get tabindex(){return e.disabled?-1:0},role:"button"},hi(()=>e.disabled),kt(e,["as","ref"]),$c,{ref:ui(e,n=>{t(()=>n)})}))}function di(e,r,t){return W(Ye,{get when(){var n;return(n=e.unmount)!=null?n:!0},get fallback(){return t()},get children(){return W(Ye,{get when(){return r()},get children(){return t()}})}})}function Ha(){var e,r;return(r=(e=window.getSelection())==null?void 0:e.focusNode)==null?void 0:r.parentElement}function Hc(e){if(e){let r=e.getAttribute("tabindex");e.setAttribute("tabindex","-1"),e.focus(),e.blur(),r?e.setAttribute("tabindex",r):e.removeAttribute("tabindex")}}var Vc=class{constructor(){typeof document<"u"&&(this.returnElement=document.activeElement,this.fsp=Ha()),jt(()=>{this.load()})}load(){this.returnElement instanceof HTMLElement?this.returnElement.focus():Hc(this.fsp)}save(){this.returnElement=document.activeElement,this.fsp=Ha()}};function ls(){return new Vc}fun
flex flex-col gap-1 ${r}`),ne(t,e),t})();function Jt(){}Jt.prototype={diff:function(r,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=n.callback;typeof n=="function"&&(i=n,n={}),this.options=n;var a=this;function s(d){return i?(setTimeout(function(){i(void 0,d)},0),!0):d}r=this.castInput(r),t=this.castInput(t),r=this.removeEmpty(this.tokenize(r)),t=this.removeEmpty(this.tokenize(t));var f=t.length,l=r.length,o=1,c=f+l;n.maxEditLength&&(c=Math.min(c,n.maxEditLength));var h=[{newPos:-1,components:[]}],u=this.extractCommon(h[0],t,r,0);if(h[0].newPos+1>=f&&u+1>=l)return s([{value:this.join(t),count:t.length}]);function x(){for(var d=-1*o;d<=o;d+=2){var v=void 0,y=h[d-1],A=h[d+1],F=(A?A.newPos:0)-d;y&&(h[d-1]=void 0);var I=y&&y.newPos+1<f,z=A&&0<=F&&F<l;if(!I&&!z){h[d]=void 0;continue}if(!I||z&&y.newPos<A.newPos?(v=pu(A),a.pushComponent(v.components,void 0,!0)):(v=y,v.newPos++,a.pushComponent(v.components,!0,void 0)),F=a.extractCommon(v,t,r,d),v.newPos+1>=f&&F+1>=l)return s(xu(a,v.components,t,r,a.useLongestToken));h[d]=v}o++}if(i)(function d(){setTimeout(function(){if(o>c)return i();x()||d()},0)})();else for(;o<=c;){var m=x();if(m)return m}},pushComponent:function(r,t,n){var i=r[r.length-1];i&&i.added===t&&i.removed===n?r[r.length-1]={count:i.count+1,added:t,removed:n}:r.push({count:1,added:t,removed:n})},extractCommon:function(r,t,n,i){for(var a=t.length,s=n.length,f=r.newPos,l=f-i,o=0;f+1<a&&l+1<s&&this.equals(t[f+1],n[l+1]);)f++,l++,o++;return o&&r.components.push({count:o}),r.newPos=f,l},equals:function(r,t){return this.options.comparator?this.options.comparator(r,t):r===t||this.options.ignoreCase&&r.toLowerCase()===t.toLowerCase()},removeEmpty:function(r){for(var t=[],n=0;n<r.length;n++)r[n]&&t.push(r[n]);return t},castInput:function(r){return r},tokenize:function(r){return r.split("")},join:function(r){return r.join("")}};function xu(e,r,t,n,i){for(var a=0,s=r.length,f=0,l=0;a<s;a++){var o=r[a];if(o.removed){if(o.value=e.join(n.slice(l,l+o.count)),l+=o.count,a&&r[a-1].added){var h=r[a-1];r[a-1]=r[a],r[a]=h}}else{if(!o.added&&i){var c=t.slice(f,f+o.count);c=c.map(function(x,m){var d=n[l+m];return d.length>x.length?d:x}),o.value=e.join(c)}else o.value=e.join(t.slice(f,f+o.count));f+=o.count,o.added||(l+=o.count)}}var u=r[s-1];return s>1&&typeof u.value=="string"&&(u.added||u.removed)&&e.equals("",u.value)&&(r[s-2].value+=u.value,r.pop()),r}function pu(e){return{newPos:e.newPos,components:e.components.slice(0)}}var mu=new Jt;function vu(e,r,t){return mu.diff(e,r,t)}var Va=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,Ga=/\S/,vs=new Jt;vs.equals=function(e,r){return this.options.ignoreCase&&(e=e.toLowerCase(),r=r.toLowerCase()),e===r||this.options.ignoreWhitespace&&!Ga.test(e)&&!Ga.test(r)};vs.tokenize=function(e){for(var r=e.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),t=0;t<r.length-1;t++)!r[t+1]&&r[t+2]&&Va.test(r[t])&&Va.test(r[t+2])&&(r[t]+=r[t+2],r.splice(t+1,2),t--);return r};var gs=new Jt;gs.tokenize=function(e){var r=[],t=e.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var n=0;n<t.length;n++){var i=t[n];n%2&&!this.options.newlineIsToken?r[r.length-1]+=i:(this.options.ignoreWhitespace&&(i=i.trim()),r.push(i))}return r};var gu=new Jt;gu.tokenize=function(e){return e.split(/(\S.+?[.!?])(?=\s+|$)/)};var _u=new Jt;_u.tokenize=function(e){return e.split(/([{}:;,]|\s+)/)};function bn(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?bn=function(r){return typeof r}:bn=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},bn(e)}var Eu=Object.prototype.toString,cn=new Jt;cn.useLongestToken=!0;cn.tokenize=gs.tokenize;cn.castInput=function(e){var r=this.options,t=r.undefinedReplacement,n=r.stringifyReplacer,i=n===void 0?function(a,s){return typeof s>"u"?t:s}:n;return typeof e=="string"?e:JSON.stringify(Hi(e,null,null,i),i," ")};cn.equals=function(e,r){return Jt.prototype.equals.call(cn,e.replace(/,([\r\n])/g,"$1"),r.replace(/,([\r\n])/g,"$1"))};function H
relative inline-flex h-6 w-11 items-center rounded-full my-2 ${n}`,m=`${s()?"translate-x-6":"translate-x-1"}
inline-block h-4 w-4 transform rounded-full bg-white transition-all`;return x!==u._v$&&be(o,u._v$=x),m!==u._v$2&&be(h,u._v$2=m),u},{_v$:void 0,_v$2:void 0}),o})()},Vn=({className:e,title:r,children:t,id:n,onClick:i,type:a="button"})=>(()=>{const s=wu();return Zi(s,"click",i,!0),Re(s,"title",r),Re(s,"id",n),Re(s,"type",a),be(s,`border-rounded bg-cyan-900 px-2 cursor-pointer ${e}`),ne(s,t),s})();Gr(["click"]);const Su=ae('<div><div class="mx-1">'),Au=ae("<div>"),Xa=({title:e,button:r,children:t,id:n,className:i,buttonClassName:a,itemsClassName:s})=>{const[f,l]=we(!1);function o(){l(!1)}function c(){l(!f())}return sr(()=>{function h(x){x.target instanceof HTMLElement&&x.target.closest(`#${n}`)===null&&o()}function u(x){x.key==="Escape"&&o()}f()?(document.addEventListener("click",h),document.addEventListener("keyup",u)):(document.removeEventListener("click",h),document.removeEventListener("keyup",u))}),(()=>{const h=Au();return be(h,`${i}`),Re(h,"id",n),ne(h,W(Vn,{title:e,onClick:c,className:`flex-row-center ${a}`,children:r}),null),ne(h,W(Ye,{get when(){return f()},keyed:!0,get children(){const u=Su(),x=u.firstChild;return be(u,`absolute bg-default-bg border border-gray-500 rounded-b-xl mt-1 w-max z-50 ${s}`),ne(x,t),u}}),null),h})()},yu=ae('<div class="fixed inset-0 bg-black/40">'),Fu=ae('<div class="my-3">'),Cu=ae('<div class="w-fit h-fit"><button>'),Ou=({title:e,description:r,button:t,acceptButtonName:n="Ok",cancelButtonName:i="Cancel",children:a,callback:s,className:f,buttonClass:l,buttonTitle:o,acceptButtonId:c})=>{const[h,u]=we(!1);function x(){s&&s(),u(!1)}function m(){let d=!0;function v(y){d&&y.key==="Enter"&&c&&Wr(c)?.click()}if(h()){const A=Wr("cl-6");return A?.addEventListener("keypress",v),()=>{A?.removeEventListener("keypress",v),d=!1}}else return()=>{}}return sr(m,h()),(()=>{const d=Cu(),v=d.firstChild;return v.$$click=()=>u(!0),be(v,l),Re(v,"title",o??void 0),ne(v,t),ne(d,W(Zl,{get children(){return W(Jc,{get isOpen(){return h()},onClose:()=>u(!1),class:`fixed inset-0 flex-row-center justify-center z-50 overflow-auto text-white ${f}`,get children(){return[(()=>{const y=yu();return Re(y,"aria-hidden",!0),y})(),W(Zc,{class:"w-fit relative bg-default-bg border-rounded border-gray-500 p-2",get children(){return[W(Qc,{class:"border-b",children:e}),W(qc,{class:"mb-4 mt-1",children:r}),a,(()=>{const y=Fu();return ne(y,W(Vn,{onClick:x,className:"h-10 mr-2",id:c,children:n}),null),ne(y,W(Vn,{onClick:()=>u(!1),className:"h-10",children:i}),null),y})()]}})]}})}}),null),d})()};Gr(["click"]);/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var Gn={};Gn.version="0.18.5";var _s=1252,Du=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Es=function(e){Du.indexOf(e)!=-1&&(_s=e)};function Iu(){Es(1252)}var un=function(e){Es(e)};function ku(){un(1200),Iu()}function Nu(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t+1)+(e.charCodeAt(2*t)<<8));return r.join("")}var On=function(r){return String.fromCharCode(r)},za=function(r){return String.fromCharCode(r)},pr,er="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function hn(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0,o=0;o<e.length;)t=e.charCodeAt(o++),a=t>>2,n=e.charCodeAt(o++),s=(t&3)<<4|n>>4,i=e.charCodeAt(o++),f=(n&15)<<2|i>>6,l=i&63,isNaN(n)?f=l=64:isNaN(i)&&(l=64),r+=er.charAt(a)+er.charAt(s)+er.charAt(f)+er.charAt(l);return r}function Kt(e){var r="",t=0,n=0,i=0,a=0,s=0,f=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var o=0;o<e.length;)a=er.indexOf(e.charAt(o++)),s=er.indexOf(e.charAt(o++)),t=a<<2|s>>4,r+=String.fromCharCode(t),f=er.indexOf(e.charAt(o++)),n=(s&15)<<4|f>>2,f!==64&&(r+=String.fromCharCode(n)),l=er.indexOf(e.charAt(o++)),i=(f&3)<<6|l,l!==64&&(r+=String.fromCharCode(i));return r}var ge=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),qt=function(){if(typeof Buffer<"u"){var e=!Buffer.from;if(!e)try{Buffer.from("foo","utf8")}catch{e=!0}return e?function(r,t){return t?new Buffer(r,t):new Buffer(r)}:Buffer.from.b
2023-07-24 18:48:39 +00:00
`)+`\r
`}function fl(p){var E=p.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(R){var L=R.charCodeAt(0).toString(16).toUpperCase();return"="+(L.length==1?"0"+L:L)});E=E.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),E.charAt(0)==`
`&&(E="=0D"+E.slice(1)),E=E.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var g=[],_=E.split(`\r
2023-09-10 17:47:29 +00:00
`),T=0;T<_.length;++T){var w=_[T];if(w.length==0){g.push("");continue}for(var N=0;N<w.length;){var H=76,k=w.slice(N,N+H);k.charAt(H-1)=="="?H--:k.charAt(H-2)=="="?H-=2:k.charAt(H-3)=="="&&(H-=3),k=w.slice(N,N+H),N+=H,N<w.length&&(k+="="),g.push(k)}}return g.join(`\r
2023-07-24 18:48:39 +00:00
`)}function ll(p){for(var E=[],g=0;g<p.length;++g){for(var _=p[g];g<=p.length&&_.charAt(_.length-1)=="=";)_=_.slice(0,_.length-1)+p[++g];E.push(_)}for(var T=0;T<E.length;++T)E[T]=E[T].replace(/[=][0-9A-Fa-f]{2}/g,function(w){return String.fromCharCode(parseInt(w.slice(1),16))});return Ct(E.join(`\r
2023-09-10 17:47:29 +00:00
`))}function ol(p,E,g){for(var _="",T="",w="",N,H=0;H<10;++H){var k=E[H];if(!k||k.match(/^\s*$/))break;var R=k.match(/^(.*?):\s*([^\s].*)$/);if(R)switch(R[1].toLowerCase()){case"content-location":_=R[2].trim();break;case"content-type":w=R[2].trim();break;case"content-transfer-encoding":T=R[2].trim();break}}switch(++H,T.toLowerCase()){case"base64":N=Ct(Kt(E.slice(H).join("")));break;case"quoted-printable":N=ll(E.slice(H));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+T)}var L=yi(p,_.slice(g.length),N,{unsafe:!0});w&&(L.ctype=w)}function cl(p,E){if(Be(p.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var g=E&&E.root||"",_=(ge&&Buffer.isBuffer(p)?p.toString("binary"):Be(p)).split(`\r
`),T=0,w="";for(T=0;T<_.length;++T)if(w=_[T],!!/^Content-Location:/i.test(w)&&(w=w.slice(w.indexOf("file")),g||(g=w.slice(0,w.lastIndexOf("/")+1)),w.slice(0,g.length)!=g))for(;g.length>0&&(g=g.slice(0,g.length-1),g=g.slice(0,g.lastIndexOf("/")+1),w.slice(0,g.length)!=g););var N=(_[1]||"").match(/boundary="(.*?)"/);if(!N)throw new Error("MAD cannot find boundary");var H="--"+(N[1]||""),k=[],R=[],L={FileIndex:k,FullPaths:R};D(L);var Y,Q=0;for(T=0;T<_.length;++T){var ie=_[T];ie!==H&&ie!==H+"--"||(Q++&&ol(L,_.slice(Y,T),g),Y=T)}return L}function ul(p,E){var g=E||{},_=g.boundary||"SheetJS";_="------="+_;for(var T=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+_.slice(2)+'"',"","",""],w=p.FullPaths[0],N=w,H=p.FileIndex[0],k=1;k<p.FullPaths.length;++k)if(N=p.FullPaths[k].slice(w.length),H=p.FileIndex[k],!(!H.size||!H.content||N=="Sh33tJ5")){N=N.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(he){return"_x"+he.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(he){return"_u"+he.charCodeAt(0).toString(16)+"_"});for(var R=H.content,L=ge&&Buffer.isBuffer(R)?R.toString("binary"):Be(R),Y=0,Q=Math.min(1024,L.length),ie=0,J=0;J<=Q;++J)(ie=L.charCodeAt(J))>=32&&ie<128&&++Y;var re=Y>=Q*4/5;T.push(_),T.push("Content-Location: "+(g.root||"file:///C:/SheetJS/")+N),T.push("Content-Transfer-Encoding: "+(re?"quoted-printable":"base64")),T.push("Content-Type: "+al(H,N)),T.push(""),T.push(re?fl(L):sl(L))}return T.push(_+`--\r
2023-07-24 18:48:39 +00:00
`),T.join(`\r
2023-09-10 17:47:29 +00:00
`)}function hl(p){var E={};return D(E,p),E}function yi(p,E,g,_){var T=_&&_.unsafe;T||D(p);var w=!T&&ye.find(p,E);if(!w){var N=p.FullPaths[0];E.slice(0,N.length)==N?N=E:(N.slice(-1)!="/"&&(N+="/"),N=(N+E).replace("//","/")),w={name:i(E),type:2},p.FileIndex.push(w),p.FullPaths.push(N),T||ye.utils.cfb_gc(p)}return w.content=g,w.size=g?g.length:0,_&&(_.CLSID&&(w.clsid=_.CLSID),_.mt&&(w.mt=_.mt),_.ct&&(w.ct=_.ct)),w}function dl(p,E){D(p);var g=ye.find(p,E);if(g){for(var _=0;_<p.FileIndex.length;++_)if(p.FileIndex[_]==g)return p.FileIndex.splice(_,1),p.FullPaths.splice(_,1),!0}return!1}function xl(p,E,g){D(p);var _=ye.find(p,E);if(_){for(var T=0;T<p.FileIndex.length;++T)if(p.FileIndex[T]==_)return p.FileIndex[T].name=i(g),p.FullPaths[T]=g,!0}return!1}function pl(p){P(p,!0)}return r.find=U,r.read=ee,r.parse=c,r.write=Et,r.writeFile=ze,r.utils={cfb_new:hl,cfb_add:yi,cfb_del:dl,cfb_mov:xl,cfb_gc:pl,ReadShift:an,CheckField:qs,prep_blob:mt,bconcat:Je,use_zlib:S,_deflateRaw:Ca,_inflateRaw:Ra,consts:xe},r}();function fh(e){return typeof e=="string"?xi(e):Array.isArray(e)?Ru(e):e}function _n(e,r,t){if(typeof Deno<"u"){if(t&&typeof r=="string")switch(t){case"utf8":r=new TextEncoder(t).encode(r);break;case"binary":r=xi(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var n=t=="utf8"?Ht(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(n,e);if(typeof Blob<"u"){var i=new Blob([fh(n)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(i,e);if(typeof saveAs<"u")return saveAs(i,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var a=URL.createObjectURL(i);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),chrome.downloads.download({url:a,filename:e,saveAs:!0});var s=document.createElement("a");if(s.download!=null)return s.download=e,s.href=a,document.body.appendChild(s),s.click(),document.body.removeChild(s),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(a)},6e4),a}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var f=File(e);return f.open("w"),f.encoding="binary",Array.isArray(r)&&(r=gn(r)),f.write(r),f.close(),r}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Qe(e){for(var r=Object.keys(e),t=[],n=0;n<r.length;++n)Object.prototype.hasOwnProperty.call(e,r[n])&&t.push(r[n]);return t}function t0(e,r){for(var t=[],n=Qe(e),i=0;i!==n.length;++i)t[e[n[i]][r]]==null&&(t[e[n[i]][r]]=n[i]);return t}function sa(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]=t[n];return r}function vi(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]=parseInt(t[n],10);return r}function lh(e){for(var r=[],t=Qe(e),n=0;n!==t.length;++n)r[e[t[n]]]==null&&(r[e[t[n]]]=[]),r[e[t[n]]].push(t[n]);return r}var Kn=new Date(1899,11,30,0,0,0);function ut(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var n=Kn.getTime()+(e.getTimezoneOffset()-Kn.getTimezoneOffset())*6e4;return(t-n)/(24*60*60*1e3)}var Ls=new Date,oh=Kn.getTime()+(Ls.getTimezoneOffset()-Kn.getTimezoneOffset())*6e4,r0=Ls.getTimezoneOffset();function Ps(e){var r=new Date;return r.setTime(e*24*60*60*1e3+oh),r.getTimezoneOffset()!==r0&&r.setTime(r.getTime()+(r.getTimezoneOffset()-r0)*6e4),r}var n0=new Date("2017-02-19T19:06:09.000Z"),Ms=isNaN(n0.getFullYear())?new Date("2/19/17"):n0,ch=Ms.getFullYear()==2017;function ft(e,r){var t=new Date(e);if(ch)return r>0?t.setTime(t.getTime()+t.getTimezoneOffset()*60*1e3):r<0&&t.setTime(t.getTime()-t.getTimezoneOffset()*60*1e3),t;if(e instanceof Date)return e;if(Ms.getFullYear()==1917&&!isNaN(t.getFullYear())){var n=t.getFullYear();return e.indexOf(""+n)>-1||t.setFullYear(t.getFullYear()+100),t}var i=e.match(/\d+/g)||["2017","2","19","0","0","0"],a=new Date(+i[0],+i[1]-1,+i[2],+i[3]||0,+i[4]||0,+i[5]||0);return e.indexOf("Z")>-1&&(a=new Date(a.getTime()-a.getTimezoneOffset()*60*1e3)),a}function gi(
`,hh={"&quot;":'"',"&apos;":"'","&gt;":">","&lt;":"<","&amp;":"&"},la=sa(hh),oa=/[&<>'"]/g,dh=/[\u0000-\u0008\u000b-\u001f]/g;function Se(e){var r=e+"";return r.replace(oa,function(t){return la[t]}).replace(dh,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function i0(e){return Se(e).replace(/ /g,"_x0020_")}var bs=/[\u0000-\u001f]/g;function xh(e){var r=e+"";return r.replace(oa,function(t){return la[t]}).replace(/\n/g,"<br/>").replace(bs,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function ph(e){var r=e+"";return r.replace(oa,function(t){return la[t]}).replace(bs,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}function mh(e){return e.replace(/(\r\n|[\r\n])/g,"&#10;")}function vh(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ni(e){for(var r="",t=0,n=0,i=0,a=0,s=0,f=0;t<e.length;){if(n=e.charCodeAt(t++),n<128){r+=String.fromCharCode(n);continue}if(i=e.charCodeAt(t++),n>191&&n<224){s=(n&31)<<6,s|=i&63,r+=String.fromCharCode(s);continue}if(a=e.charCodeAt(t++),n<240){r+=String.fromCharCode((n&15)<<12|(i&63)<<6|a&63);continue}s=e.charCodeAt(t++),f=((n&7)<<18|(i&63)<<12|(a&63)<<6|s&63)-65536,r+=String.fromCharCode(55296+(f>>>10&1023)),r+=String.fromCharCode(56320+(f&1023))}return r}function a0(e){var r=gr(2*e.length),t,n,i=1,a=0,s=0,f;for(n=0;n<e.length;n+=i)i=1,(f=e.charCodeAt(n))<128?t=f:f<224?(t=(f&31)*64+(e.charCodeAt(n+1)&63),i=2):f<240?(t=(f&15)*4096+(e.charCodeAt(n+1)&63)*64+(e.charCodeAt(n+2)&63),i=3):(i=4,t=(f&7)*262144+(e.charCodeAt(n+1)&63)*4096+(e.charCodeAt(n+2)&63)*64+(e.charCodeAt(n+3)&63),t-=65536,s=55296+(t>>>10&1023),t=56320+(t&1023)),s!==0&&(r[a++]=s&255,r[a++]=s>>>8,s=0),r[a++]=t%256,r[a++]=t>>>8;return r.slice(0,a).toString("ucs2")}function s0(e){return qt(e,"binary").toString("utf8")}var kn="foo bar baz☃🍣",nn=ge&&(s0(kn)==Ni(kn)&&s0||a0(kn)==Ni(kn)&&a0)||Ni,Ht=ge?function(e){return qt(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,n=0,i=0;t<e.length;)switch(n=e.charCodeAt(t++),!0){case n<128:r.push(String.fromCharCode(n));break;case n<2048:r.push(String.fromCharCode(192+(n>>6))),r.push(String.fromCharCode(128+(n&63)));break;case(n>=55296&&n<57344):n-=55296,i=e.charCodeAt(t++)-56320+(n<<10),r.push(String.fromCharCode(240+(i>>18&7))),r.push(String.fromCharCode(144+(i>>12&63))),r.push(String.fromCharCode(128+(i>>6&63))),r.push(String.fromCharCode(128+(i&63)));break;default:r.push(String.fromCharCode(224+(n>>12))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)))}return r.join("")},gh=function(){var e=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var n=t.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,""),i=0;i<e.length;++i)n=n.replace(e[i][0],e[i][1]);return n}}(),Bs=/(^\s|\s$|\n)/;function qe(e,r){return"<"+e+(r.match(Bs)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function xn(e){return Qe(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function q(e,r,t){return"<"+e+(t!=null?xn(t):"")+(r!=null?(r.match(Bs)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function Xi(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function _h(e,r){switch(typeof e){case"string":var t=q("vt:lpwstr",Se(e));return r&&(t=t.replace(/&quot;/g,"_x0022_")),t;case"number":return q((e|0)==e?"vt:i4":"vt:r8",Se(String(e)));case"boolean":return q("vt:bool",e?"true":"false")}if(e instanceof Date)return q("vt:filetime",Xi(e));throw new Error("Unable to serialize "+e)}var Ve={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"},zr=["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"],vt={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 Eh(e,r){for(var t=1-2*(e[r+7]>>>7),n=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),i=e[r+6]&15,a=5;a>=0;--a)i=i*256+e[r+a];return n==2047?i==0?t*(1/0):NaN:(n==0?n=-1022:(n-=1023,i+=Math.pow(2,52)),t*Math.pow(2,n-52)*i)}function Th(e,r,t){var n=(r<0||1/r==-1/0?1:0)<<7,i=0,a=0,s=n?-r:r;isFinite(s)?s==0?i=a=0:(i=Math.floor(Math.log(s)/Math.LN2),a=s*Math.pow(2,52-i),i<=-1023&&(!isFinite(a)||a<Math.pow(2,52))?i=-1022:(a-=Math.pow(2,52),i+=1023)):(i=2047,a=isNaN(r)?26985:0);for(var f=0;f<=5;++f,a/=256)e[t+f]=a&255;e[t+6]=(i&15)<<4|a&15,e[t+7]=i>>4|n}var f0=function(e){for(var r=[],t=10240,n=0;n<e[0].length;++n)if(e[0][n])for(var i=0,a=e[0][n].length;i<a;i+=t)r.push.apply(r,e[0][n].slice(i,i+t));return r},l0=ge?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:qt(r)})):f0(e)}:f0,o0=function(e,r,t){for(var n=[],i=r;i<t;i+=2)n.push(String.fromCharCode(en(e,i)));return n.join("").replace(rn,"")},ca=ge?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(rn,""):o0(e,r,t)}:o0,c0=function(e,r,t){for(var n=[],i=r;i<r+t;++i)n.push(("0"+e[i].toString(16)).slice(-2));return n.join("")},Us=ge?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):c0(e,r,t)}:c0,u0=function(e,r,t){for(var n=[],i=r;i<t;i++)n.push(String.fromCharCode(Rr(e,i)));return n.join("")},En=ge?function(r,t,n){return Buffer.isBuffer(r)?r.toString("utf8",t,n):u0(r,t,n)}:u0,$s=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Ws=$s,Hs=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Vs=Hs,Gs=function(e,r){var t=2*gt(e,r);return t>0?En(e,r+4,r+4+t-1):""},Xs=Gs,zs=function(r,t){var n=gt(r,t);return n>0?ca(r,t+4,t+4+n):""},js=zs,Ks=function(e,r){var t=gt(e,r);return t>0?En(e,r+4,r+4+t):""},Ys=Ks,Js=functio
2023-07-24 18:48:39 +00:00
`),r.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/>
`);for(var t=0;t<e.length;++t)r.push(' <manifest:file-entry manifest:full-path="'+e[t][0]+'" manifest:media-type="'+e[t][1]+`"/>
2023-09-10 17:47:29 +00:00
`);return r.push("</manifest:manifest>"),r.join("")}function m0(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
2023-07-24 18:48:39 +00:00
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
`,` </rdf:Description>
`].join("")}function e1(e,r){return[' <rdf:Description rdf:about="'+e+`">
`,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+r+`"/>
`,` </rdf:Description>
`].join("")}function t1(e){var r=[We];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
2023-09-10 17:47:29 +00:00
`);for(var t=0;t!=e.length;++t)r.push(m0(e[t][0],e[t][1])),r.push(e1("",e[t][0]));return r.push(m0("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function lf(){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 '+Gn.version+"</meta:generator></office:meta></office:document-meta>"}var vr=[["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 Li(e,r,t,n,i){i[e]!=null||r==null||r===""||(i[e]=r,r=Se(r),n[n.length]=t?q(e,r,t):qe(e,r))}function of(e,r){var t=r||{},n=[We,q("cp:coreProperties",null,{"xmlns:cp":Ve.CORE_PROPS,"xmlns:dc":Ve.dc,"xmlns:dcterms":Ve.dcterms,"xmlns:dcmitype":Ve.dcmitype,"xmlns:xsi":Ve.xsi})],i={};if(!e&&!t.Props)return n.join("");e&&(e.CreatedDate!=null&&Li("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:Xi(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i),e.ModifiedDate!=null&&Li("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:Xi(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},n,i));for(var a=0;a!=vr.length;++a){var s=vr[a],f=t.Props&&t.Props[s[1]]!=null?t.Props[s[1]]:e?e[s[1]]:null;f===!0?f="1":f===!1?f="0":typeof f=="number"&&(f=String(f)),f!=null&&Li(s[0],f,null,n,i)}return n.length>2&&(n[n.length]="</cp:coreProperties>",n[1]=n[1].replace("/>",">")),n.join("")}var Br=[["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"]],cf=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function uf(e){var r=[],t=q;return e||(e={}),e.Application="SheetJS",r[r.length]=We,r[r.length]=q("Properties",null,{xmlns:Ve.EXT_PROPS,"xmlns:vt":Ve.vt}),Br.forEach(function(n){if(e[n[1]]!==void 0){var i;switch(n[2]){case"string":i=Se(String(e[n[1]]));break;case"bool":i=e[n[1]]?"true":"false";break}i!==void 0&&(r[r.length]=t(n[0],i))}}),r[r.length]=t("HeadingPairs",t("vt:vector",t("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+t("vt:variant",t("vt:i4",String(e.Worksheets))),{size:2,baseType:"variant"})),r[r.length]=t("TitlesOfParts",t("vt:vector",e.SheetNames.map(function(n){return"<vt:lpstr>"+Se(n)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}function hf(e){var r=[We,q("Properties",null,{xmlns:Ve.CUST_PROPS,"xmlns:vt":Ve.vt})];if(!e)return r.join("");var t=1;return Qe(e).forEach(function(i){++t,r[r.length]=q("property",_h(e[i],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:Se(i)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var v0={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 r1(e,r){var t=[];return Qe(v0).map(function(n){for(var i=0;i<vr.length;++i)if(vr[i][1]==n)return vr[i];for(i=0;i<Br.length;++i)if(Br[i][1]==n)return Br[i];throw n}).forEach(function(n)
`;m.push("P;PGeneral"),m.push("F;P0;DG0G8;M255"),u["!cols"]&&o(m,u["!cols"]),u["!rows"]&&c(m,u["!rows"]),m.push("B;Y"+(v.e.r-v.s.r+1)+";X"+(v.e.c-v.s.c+1)+";D"+[v.s.c,v.s.r,v.e.c,v.e.r].join(" "));for(var I=v.s.r;I<=v.e.r;++I)for(var z=v.s.c;z<=v.e.c;++z){var ee=Ae({r:I,c:z});y=A?(u[I]||[])[z]:u[ee],!(!y||y.v==null&&(!y.f||y.F))&&d.push(l(y,u,I,z))}return m.join(F)+F+d.join(F)+F+"E"+F}return{to_workbook:f,to_sheet:s,from_sheet:h}}(),W1=function(){function e(a,s){switch(s.type){case"base64":return r(Kt(a),s);case"binary":return r(a,s);case"buffer":return r(ge&&Buffer.isBuffer(a)?a.toString("binary"):gn(a),s);case"array":return r(gi(a),s)}throw new Error("Unrecognized type "+s.type)}function r(a,s){for(var f=a.split(`
`),l=-1,o=-1,c=0,h=[];c!==f.length;++c){if(f[c].trim()==="BOT"){h[++l]=[],o=0;continue}if(!(l<0)){var u=f[c].trim().split(","),x=u[0],m=u[1];++c;for(var d=f[c]||"";(d.match(/["]/g)||[]).length&1&&c<f.length-1;)d+=`
`+f[++c];switch(d=d.trim(),+x){case-1:if(d==="BOT"){h[++l]=[],o=0;continue}else if(d!=="EOD")throw new Error("Unrecognized DIF special command "+d);break;case 0:d==="TRUE"?h[l][o]=!0:d==="FALSE"?h[l][o]=!1:isNaN(Xt(m))?isNaN(dn(m).getDate())?h[l][o]=m:h[l][o]=ft(m):h[l][o]=Xt(m),++o;break;case 1:d=d.slice(1,d.length-1),d=d.replace(/""/g,'"'),d&&d.match(/^=".*"$/)&&(d=d.slice(2,-1)),h[l][o++]=d!==""?d:null;break}if(d==="EOD")break}}return s&&s.sheetRows&&(h=h.slice(0,s.sheetRows)),h}function t(a,s){return jr(e(a,s),s)}function n(a,s){return Sr(t(a,s),s)}var i=function(){var a=function(l,o,c,h,u){l.push(o),l.push(c+","+h),l.push('"'+u.replace(/"/g,'""')+'"')},s=function(l,o,c,h){l.push(o+","+c),l.push(o==1?'"'+h.replace(/"/g,'""')+'"':h)};return function(l){var o=[],c=Ie(l["!ref"]),h,u=Array.isArray(l);a(o,"TABLE",0,1,"sheetjs"),a(o,"VECTORS",0,c.e.r-c.s.r+1,""),a(o,"TUPLES",0,c.e.c-c.s.c+1,""),a(o,"DATA",0,0,"");for(var x=c.s.r;x<=c.e.r;++x){s(o,-1,0,"BOT");for(var m=c.s.c;m<=c.e.c;++m){var d=Ae({r:x,c:m});if(h=u?(l[x]||[])[m]:l[d],!h){s(o,1,0,"");continue}switch(h.t){case"n":var v=h.w;!v&&h.v!=null&&(v=h.v),v==null?h.f&&!h.F?s(o,1,0,"="+h.f):s(o,1,0,""):s(o,0,v,"V");break;case"b":s(o,0,h.v?1:0,h.v?"TRUE":"FALSE");break;case"s":s(o,1,0,isNaN(h.v)?h.v:'="'+h.v+'"');break;case"d":h.w||(h.w=rr(h.z||Me[14],ut(ft(h.v)))),s(o,0,h.w,"V");break;default:s(o,1,0,"")}}}s(o,-1,0,"EOD");var y=`\r
2023-07-24 18:48:39 +00:00
`,A=o.join(y);return A}}();return{to_workbook:n,to_sheet:t,from_sheet:i}}(),_f=function(){function e(h){return h.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
`)}function r(h){return h.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(h,u){for(var x=h.split(`
2023-09-10 17:47:29 +00:00
`),m=-1,d=-1,v=0,y=[];v!==x.length;++v){var A=x[v].trim().split(":");if(A[0]==="cell"){var F=Ge(A[1]);if(y.length<=F.r)for(m=y.length;m<=F.r;++m)y[m]||(y[m]=[]);switch(m=F.r,d=F.c,A[2]){case"t":y[m][d]=e(A[3]);break;case"v":y[m][d]=+A[3];break;case"vtf":var I=A[A.length-1];case"vtc":switch(A[3]){case"nl":y[m][d]=!!+A[4];break;default:y[m][d]=+A[4];break}A[2]=="vtf"&&(y[m][d]=[y[m][d],I])}}}return u&&u.sheetRows&&(y=y.slice(0,u.sheetRows)),y}function n(h,u){return jr(t(h,u),u)}function i(h,u){return Sr(n(h,u),u)}var a=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
2023-07-24 18:48:39 +00:00
`),s=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
`)+`
`,f=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
2023-09-10 17:47:29 +00:00
`),l="--SocialCalcSpreadsheetControlSave--";function o(h){if(!h||!h["!ref"])return"";for(var u=[],x=[],m,d="",v=_t(h["!ref"]),y=Array.isArray(h),A=v.s.r;A<=v.e.r;++A)for(var F=v.s.c;F<=v.e.c;++F)if(d=Ae({r:A,c:F}),m=y?(h[A]||[])[F]:h[d],!(!m||m.v==null||m.t==="z")){switch(x=["cell",d,"t"],m.t){case"s":case"str":x.push(r(m.v));break;case"n":m.f?(x[2]="vtf",x[3]="n",x[4]=m.v,x[5]=r(m.f)):(x[2]="v",x[3]=m.v);break;case"b":x[2]="vt"+(m.f?"f":"c"),x[3]="nl",x[4]=m.v?"1":"0",x[5]=r(m.f||(m.v?"TRUE":"FALSE"));break;case"d":var I=ut(ft(m.v));x[2]="vtc",x[3]="nd",x[4]=""+I,x[5]=m.w||rr(m.z||Me[14],I);break;case"e":continue}u.push(x.join(":"))}return u.push("sheet:c:"+(v.e.c-v.s.c+1)+":r:"+(v.e.r-v.s.r+1)+":tvf:1"),u.push("valueformat:1:text-wiki"),u.join(`
2023-07-24 18:48:39 +00:00
`)}function c(h){return[a,s,f,s,o(h),l].join(`
2023-09-10 17:47:29 +00:00
`)}return{to_workbook:i,to_sheet:n,from_sheet:c}}(),H1=function(){function e(c,h,u,x,m){m.raw?h[u][x]=c:c===""||(c==="TRUE"?h[u][x]=!0:c==="FALSE"?h[u][x]=!1:isNaN(Xt(c))?isNaN(dn(c).getDate())?h[u][x]=c:h[u][x]=ft(c):h[u][x]=Xt(c))}function r(c,h){var u=h||{},x=[];if(!c||c.length===0)return x;for(var m=c.split(/[\r\n]/),d=m.length-1;d>=0&&m[d].length===0;)--d;for(var v=10,y=0,A=0;A<=d;++A)y=m[A].indexOf(" "),y==-1?y=m[A].length:y++,v=Math.max(v,y);for(A=0;A<=d;++A){x[A]=[];var F=0;for(e(m[A].slice(0,v).trim(),x,A,F,u),F=1;F<=(m[A].length-v)/10+1;++F)e(m[A].slice(v+(F-1)*10,v+F*10).trim(),x,A,F,u)}return u.sheetRows&&(x=x.slice(0,u.sheetRows)),x}var t={44:",",9:" ",59:";",124:"|"},n={44:3,9:2,59:1,124:0};function i(c){for(var h={},u=!1,x=0,m=0;x<c.length;++x)(m=c.charCodeAt(x))==34?u=!u:!u&&m in t&&(h[m]=(h[m]||0)+1);m=[];for(x in h)Object.prototype.hasOwnProperty.call(h,x)&&m.push([h[x],x]);if(!m.length){h=n;for(x in h)Object.prototype.hasOwnProperty.call(h,x)&&m.push([h[x],x])}return m.sort(function(d,v){return d[0]-v[0]||n[d[1]]-n[v[1]]}),t[m.pop()[1]]||44}function a(c,h){var u=h||{},x="",m=u.dense?[]:{},d={s:{c:0,r:0},e:{c:0,r:0}};c.slice(0,4)=="sep="?c.charCodeAt(5)==13&&c.charCodeAt(6)==10?(x=c.charAt(4),c=c.slice(7)):c.charCodeAt(5)==13||c.charCodeAt(5)==10?(x=c.charAt(4),c=c.slice(6)):x=i(c.slice(0,1024)):u&&u.FS?x=u.FS:x=i(c.slice(0,1024));var v=0,y=0,A=0,F=0,I=0,z=x.charCodeAt(0),ee=!1,D=0,V=c.charCodeAt(0);c=c.replace(/\r\n/mg,`
`);var P=u.dateNF!=null?ih(u.dateNF):null;function b(){var U=c.slice(F,I),G={};if(U.charAt(0)=='"'&&U.charAt(U.length-1)=='"'&&(U=U.slice(1,-1).replace(/""/g,'"')),U.length===0)G.t="z";else if(u.raw)G.t="s",G.v=U;else if(U.trim().length===0)G.t="s",G.v=U;else if(U.charCodeAt(0)==61)U.charCodeAt(1)==34&&U.charCodeAt(U.length-1)==34?(G.t="s",G.v=U.slice(2,-1).replace(/""/g,'"')):$d(U)?(G.t="n",G.f=U.slice(1)):(G.t="s",G.v=U);else if(U=="TRUE")G.t="b",G.v=!0;else if(U=="FALSE")G.t="b",G.v=!1;else if(!isNaN(A=Xt(U)))G.t="n",u.cellText!==!1&&(G.w=U),G.v=A;else if(!isNaN(dn(U).getDate())||P&&U.match(P)){G.z=u.dateNF||Me[14];var K=0;P&&U.match(P)&&(U=ah(U,u.dateNF,U.match(P)||[]),K=1),u.cellDates?(G.t="d",G.v=ft(U,K)):(G.t="n",G.v=ut(ft(U,K))),u.cellText!==!1&&(G.w=rr(G.z,G.v instanceof Date?ut(G.v):G.v)),u.cellNF||delete G.z}else G.t="s",G.v=U;if(G.t=="z"||(u.dense?(m[v]||(m[v]=[]),m[v][y]=G):m[Ae({c:y,r:v})]=G),F=I+1,V=c.charCodeAt(F),d.e.c<y&&(d.e.c=y),d.e.r<v&&(d.e.r=v),D==z)++y;else if(y=0,++v,u.sheetRows&&u.sheetRows<=v)return!0}e:for(;I<c.length;++I)switch(D=c.charCodeAt(I)){case 34:V===34&&(ee=!ee);break;case z:case 10:case 13:if(!ee&&b())break e;break}return I-F>0&&b(),m["!ref"]=$e(d),m}function s(c,h){return!(h&&h.PRN)||h.FS||c.slice(0,4)=="sep="||c.indexOf(" ")>=0||c.indexOf(",")>=0||c.indexOf(";")>=0?a(c,h):jr(r(c,h),h)}function f(c,h){var u="",x=h.type=="string"?[0,0,0,0]:ev(c,h);switch(h.type){case"base64":u=Kt(c);break;case"binary":u=c;break;case"buffer":h.codepage==65001?u=c.toString("utf8"):h.codepage&&typeof pr<"u"?u=pr.utils.decode(h.codepage,c):u=ge&&Buffer.isBuffer(c)?c.toString("binary"):gn(c);break;case"array":u=gi(c);break;case"string":u=c;break;default:throw new Error("Unrecognized type "+h.type)}return x[0]==239&&x[1]==187&&x[2]==191?u=nn(u.slice(3)):h.type!="string"&&h.type!="buffer"&&h.codepage==65001?u=nn(u):h.type=="binary"&&typeof pr<"u"&&h.codepage&&(u=pr.utils.decode(h.codepage,pr.utils.encode(28591,u))),u.slice(0,19)=="socialcalc:version:"?_f.to_sheet(h.type=="string"?u:nn(u),h):s(u,h)}function l(c,h){return Sr(f(c,h),h)}function o(c){for(var h=[],u=Ie(c["!ref"]),x,m=Array.isArray(c),d=u.s.r;d<=u.e.r;++d){for(var v=[],y=u.s.c;y<=u.e.c;++y){var A=Ae({r:d,c:y});if(x=m?(c[d]||[])[y]:c[A],!x||x.v==null){v.push(" ");continue}for(var F=(x.w||(Yt(x),x.w)||"").slice(0,10);F.length<10;)F+=" ";v.push(F+(y===0?" ":""))}h.push(v.join(""))}return h.join(`
`)}return{to_workbook:l,to_sheet:f,from_sheet:o}}(),S0=function(){function e(S,M,O){if(S){mt(S,S.l||0);for(var C=O.Enum||Et;S.l<S.length;){var j=S.read_shift(2),oe=C[j]||C[65535],ue=S.read_shift(2),fe=S.l+ue,te=oe.f&&oe.f(S,ue,O);if(S.l=fe,M(te,oe,j))return}}}function r(S,M){switch(M.type){case"base64":return t(Ct(Kt(S)),M);case"binary":return t(Ct(S),M);case"buffer":case"array":return t(S,M)}throw"Unsupported type "+M.type}function t(S,M){if(!S)return S;var O=M||{},C=O.dense?[]:{},j="Sheet1",oe="",ue=0,fe={},te=[],Fe=[],me={s:{r:0,c:0},e:{r:0,c:0}},it=O.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)O.Enum=Et,e(S,function(se,Tt,$t){switch($t){case 0:O.vers=se,se>=4096&&(O.qpro=!0);break;case 6:me=se;break;case 204:se&&(oe=se);break;case 222:oe=se;break;case 15:case 51:O.qpro||(se[1].v=se[1].v.slice(1));case 13:case 14:case 16:$t==14&&(se[2]&112)==112&&(se[2]&15)>1&&(se[2]&15)<15&&(se[1].z=O.dateNF||Me[14],O.cellDates&&(se[1].t="d",se[1].v=Ps(se[1].v))),O.qpro&&se[3]>ue&&(C["!ref"]=$e(me),fe[j]=C,te.push(j),C=O.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ue=se[3],j=oe||"Sheet"+(ue+1),oe="");var cr=O.dense?(C[se[0].r]||[])[se[0].c]:C[Ae(se[0])];if(cr){cr.t=se[1].t,cr.v=se[1].v,se[1].z!=null&&(cr.z=se[1].z),se[1].f!=null&&(cr.f=se[1].f);break}O.dense?(C[se[0].r]||(C[se[0].r]=[]),C[se[0].r][se[0].c]=se[1]):C[Ae(se[0])]=se[1];break}},O);else if(S[2]==26||S[2]==14)O.Enum=xt,S[2]==14&&(O.qpro=!0,S.l=0),e(S,function(se,Tt,$t){switch($t){case 204:j=se;break;case 22:se[1].v=se[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(se[3]>ue&&(C["!ref"]=$e(me),fe[j]=C,te.push(j),C=O.dense?[]:{},me={s:{r:0,c:0},e:{r:0,c:0}},ue=se[3],j="Sheet"+(ue+1)),it>0&&se[0].r>=it)break;O.dense?(C[se[0].r]||(C[se[0].r]=[]),C[se[0].r][se[0].c]=se[1]):C[Ae(se[0])]=se[1],me.e.c<se[0].c&&(me.e.c=se[0].c),me.e.r<se[0].r&&(me.e.r=se[0].r);break;case 27:se[14e3]&&(Fe[se[14e3][0]]=se[14e3][1]);break;case 1537:Fe[se[0]]=se[1],se[0]==ue&&(j=se[1]);break}},O);else throw new Error("Unrecognized LOTUS BOF "+S[2]);if(C["!ref"]=$e(me),fe[oe||j]=C,te.push(oe||j),!Fe.length)return{SheetNames:te,Sheets:fe};for(var _e={},Ut=[],Le=0;Le<Fe.length;++Le)fe[te[Le]]?(Ut.push(Fe[Le]||te[Le]),_e[Fe[Le]]=fe[Fe[Le]]||fe[te[Le]]):(Ut.push(Fe[Le]),_e[Fe[Le]]={"!ref":"A1"});return{SheetNames:Ut,Sheets:_e}}function n(S,M){var O=M||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK1 to JS string");var C=ct(),j=Ie(S["!ref"]),oe=Array.isArray(S),ue=[];Z(C,0,a(1030)),Z(C,6,l(j));for(var fe=Math.min(j.e.r,8191),te=j.s.r;te<=fe;++te)for(var Fe=Ze(te),me=j.s.c;me<=j.e.c;++me){te===j.s.r&&(ue[me]=rt(me));var it=ue[me]+Fe,_e=oe?(S[te]||[])[me]:S[it];if(!(!_e||_e.t=="z"))if(_e.t=="n")(_e.v|0)==_e.v&&_e.v>=-32768&&_e.v<=32767?Z(C,13,x(te,me,_e.v)):Z(C,14,d(te,me,_e.v));else{var Ut=Yt(_e);Z(C,15,h(te,me,Ut.slice(0,239)))}}return Z(C,1),C.end()}function i(S,M){var O=M||{};if(+O.codepage>=0&&un(+O.codepage),O.type=="string")throw new Error("Cannot write WK3 to JS string");var C=ct();Z(C,0,s(S));for(var j=0,oe=0;j<S.SheetNames.length;++j)(S.Sheets[S.SheetNames[j]]||{})["!ref"]&&Z(C,27,Be(S.SheetNames[j],oe++));var ue=0;for(j=0;j<S.SheetNames.length;++j){var fe=S.Sheets[S.SheetNames[j]];if(!(!fe||!fe["!ref"])){for(var te=Ie(fe["!ref"]),Fe=Array.isArray(fe),me=[],it=Math.min(te.e.r,8191),_e=te.s.r;_e<=it;++_e)for(var Ut=Ze(_e),Le=te.s.c;Le<=te.e.c;++Le){_e===te.s.r&&(me[Le]=rt(Le));var se=me[Le]+Ut,Tt=Fe?(fe[_e]||[])[Le]:fe[se];if(!(!Tt||Tt.t=="z"))if(Tt.t=="n")Z(C,23,b(_e,Le,ue,Tt.v));else{var $t=Yt(Tt);Z(C,22,D(_e,Le,ue,$t.slice(0,239)))}}++ue}}return Z(C,1),C.end()}function a(S){var M=B(2);return M.write_shift(2,S),M}function s(S){var M=B(26);M.write_shift(2,4096),M.write_shift(2,4),M.write_shift(4,0);for(var O=0,C=0,j=0,oe=0;oe<S.SheetNames.length;++oe){var ue=S.SheetNames[oe],fe=S.Sheets[ue];if(!(!fe||!fe["!ref"])){++j;var te=_t(fe["!ref"]);O<te.e.r&&(O=te.e.r),C<te.e.c&&(C=te.e.c)}}return O>8191&&(O=8191),M.write_shift(2,O),M.write_shift(1,j),M.writ
2023-07-24 18:48:39 +00:00
<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>
2023-09-10 17:47:29 +00:00
</metadata>`),e.join("")}function Dd(e){var r={};r.i=e.read_shift(4);var t={};t.r=e.read_shift(4),t.c=e.read_shift(4),r.r=Ae(t);var n=e.read_shift(1);return n&2&&(r.l="1"),n&8&&(r.a="1"),r}var Lr=1024;function Of(e,r){for(var t=[21600,21600],n=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),i=[q("xml",null,{"xmlns:v":vt.v,"xmlns:o":vt.o,"xmlns:x":vt.x,"xmlns:mv":vt.mv}).replace(/\/>/,">"),q("o:shapelayout",q("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),q("v:shapetype",[q("v:stroke",null,{joinstyle:"miter"}),q("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:n})];Lr<e*1e3;)Lr+=1e3;return r.forEach(function(a){var s=Ge(a[0]),f={color2:"#BEFF82",type:"gradient"};f.type=="gradient"&&(f.angle="-180");var l=f.type=="gradient"?q("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,o=q("v:fill",l,f),c={on:"t",obscured:"t"};++Lr,i=i.concat(["<v:shape"+xn({id:"_x0000_s"+Lr,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(a[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",o,q("v:shadow",null,c),q("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",qe("x:Anchor",[s.c+1,0,s.r+1,0,s.c+3,20,s.r+5,20].join(",")),qe("x:AutoFill","False"),qe("x:Row",String(s.r)),qe("x:Column",String(s.c)),a[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),i.push("</xml>"),i.join("")}function Df(e){var r=[We,q("comments",null,{xmlns:zr[0]})],t=[];return r.push("<authors>"),e.forEach(function(n){n[1].forEach(function(i){var a=Se(i.a);t.indexOf(a)==-1&&(t.push(a),r.push("<author>"+a+"</author>")),i.T&&i.ID&&t.indexOf("tc="+i.ID)==-1&&(t.push("tc="+i.ID),r.push("<author>tc="+i.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(n){var i=0,a=[];if(n[1][0]&&n[1][0].T&&n[1][0].ID?i=t.indexOf("tc="+n[1][0].ID):n[1].forEach(function(l){l.a&&(i=t.indexOf(Se(l.a))),a.push(l.t||"")}),r.push('<comment ref="'+n[0]+'" authorId="'+i+'"><text>'),a.length<=1)r.push(qe("t",Se(a[0]||"")));else{for(var s=`Comment:
2023-07-24 18:48:39 +00:00
`+a[0]+`
`,f=1;f<a.length;++f)s+=`Reply:
`+a[f]+`
2023-09-10 17:47:29 +00:00
`;r.push(qe("t",Se(s)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function Id(e,r,t){var n=[We,q("ThreadedComments",null,{xmlns:Ve.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(i){var a="";(i[1]||[]).forEach(function(s,f){if(!s.T){delete s.ID;return}s.a&&r.indexOf(s.a)==-1&&r.push(s.a);var l={ref:i[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};f==0?a=l.id:l.parentId=a,s.ID=l.id,s.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(s.a)).slice(-12)+"}"),n.push(q("threadedComment",qe("text",s.t||""),l))})}),n.push("</ThreadedComments>"),n.join("")}function kd(e){var r=[We,q("personList",null,{xmlns:Ve.TCMNT,"xmlns:x":zr[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,n){r.push(q("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+n).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function Nd(e){var r={};r.iauthor=e.read_shift(4);var t=Cr(e);return r.rfx=t.s,r.ref=Ae(t.s),e.l+=16,r}function Rd(e,r){return r==null&&(r=B(36)),r.write_shift(4,e[1].iauthor),Kr(e[0],r),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r.write_shift(4,0),r}var Ld=nt;function Pd(e){return Xe(e.slice(0,54))}function Md(e){var r=ct(),t=[];return X(r,628),X(r,630),e.forEach(function(n){n[1].forEach(function(i){t.indexOf(i.a)>-1||(t.push(i.a.slice(0,54)),X(r,632,Pd(i.a)))})}),X(r,631),X(r,633),e.forEach(function(n){n[1].forEach(function(i){i.iauthor=t.indexOf(i.a);var a={s:Ge(n[0]),e:Ge(n[0])};X(r,635,Rd([a,i])),i.t&&i.t.length>0&&X(r,637,Bh(i)),X(r,636),delete i.iauthor})}),X(r,634),X(r,629),r.end()}function bd(e,r){r.FullPaths.forEach(function(t,n){if(n!=0){var i=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");i.slice(-1)!=="/"&&ye.utils.cfb_add(e,i,r.FileIndex[n].content)}})}var If=["xlsb","xlsm","xlam","biff8","xla"],Bd=function(){var e=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,r={r:0,c:0};function t(n,i,a,s){var f=!1,l=!1;a.length==0?l=!0:a.charAt(0)=="["&&(l=!0,a=a.slice(1,-1)),s.length==0?f=!0:s.charAt(0)=="["&&(f=!0,s=s.slice(1,-1));var o=a.length>0?parseInt(a,10)|0:0,c=s.length>0?parseInt(s,10)|0:0;return f?c+=r.c:--c,l?o+=r.r:--o,i+(f?"":"$")+rt(c)+(l?"":"$")+Ze(o)}return function(i,a){return r=a,i.replace(e,t)}}(),_a=/(^|[^._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,Ea=function(){return function(r,t){return r.replace(_a,function(n,i,a,s,f,l){var o=da(s)-(a?0:t.c),c=ha(l)-(f?0:t.r),h=c==0?"":f?c+1:"["+c+"]",u=o==0?"":a?o+1:"["+o+"]";return i+"R"+h+"C"+u})}}();function Ud(e,r){return e.replace(_a,function(t,n,i,a,s,f){return n+(i=="$"?i+a:rt(da(a)+r.c))+(s=="$"?s+f:Ze(ha(f)+r.r))})}function $d(e){return e.length!=1}function Ue(e){e.l+=1}function nr(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function kf(e,r,t){var n=2;if(t){if(t.biff>=2&&t.biff<=5)return Nf(e);t.biff==12&&(n=4)}var i=e.read_shift(n),a=e.read_shift(n),s=nr(e,2),f=nr(e,2);return{s:{r:i,c:s[0],cRel:s[1],rRel:s[2]},e:{r:a,c:f[0],cRel:f[1],rRel:f[2]}}}function Nf(e){var r=nr(e,2),t=nr(e,2),n=e.read_shift(1),i=e.read_shift(1);return{s:{r:r[0],c:n,cRel:r[1],rRel:r[2]},e:{r:t[0],c:i,cRel:t[1],rRel:t[2]}}}function Wd(e,r,t){if(t.biff<8)return Nf(e);var n=e.read_shift(t.biff==12?4:2),i=e.read_shift(t.biff==12?4:2),a=nr(e,2),s=nr(e,2);return{s:{r:n,c:a[0],cRel:a[1],rRel:a[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function Rf(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Hd(e);var n=e.read_shift(t&&t.biff==12?4:2),i=nr(e,2);return{r:n,c:i[0],cRel:i[1],rRel:i[2]}}function Hd(e){var r=nr(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Vd(e){var r=e.read_shift(2),t=e.read_shift(2);return{r,c:t&255,fQuoted:!!(t&16384),cRel:t>>15,rRel:t>>15}}function Gd(e,r,t){var n=t&&t.biff?t.biff:8;if(n>=2&&n<=5)return Xd(e);var i=e.read_shift(n>=12?4:2),a=e.read_shift(2),s=(a&16384)>>14,f=(a
2023-07-24 18:48:39 +00:00
`,t=` <table:covered-table-cell/>
2023-09-10 17:47:29 +00:00
`,n=function(a,s,f){var l=[];l.push(' <table:table table:name="'+Se(s.SheetNames[f])+`" table:style-name="ta1">
`);var o=0,c=0,h=_t(a["!ref"]||"A1"),u=a["!merges"]||[],x=0,m=Array.isArray(a);if(a["!cols"])for(c=0;c<=h.e.c;++c)l.push(" <table:table-column"+(a["!cols"][c]?' table:style-name="co'+a["!cols"][c].ods+'"':"")+`></table:table-column>
`);var d="",v=a["!rows"]||[];for(o=0;o<h.s.r;++o)d=v[o]?' table:style-name="ro'+v[o].ods+'"':"",l.push(" <table:table-row"+d+`></table:table-row>
`);for(;o<=h.e.r;++o){for(d=v[o]?' table:style-name="ro'+v[o].ods+'"':"",l.push(" <table:table-row"+d+`>
`),c=0;c<h.s.c;++c)l.push(r);for(;c<=h.e.c;++c){var y=!1,A={},F="";for(x=0;x!=u.length;++x)if(!(u[x].s.c>c)&&!(u[x].s.r>o)&&!(u[x].e.c<c)&&!(u[x].e.r<o)){(u[x].s.c!=c||u[x].s.r!=o)&&(y=!0),A["table:number-columns-spanned"]=u[x].e.c-u[x].s.c+1,A["table:number-rows-spanned"]=u[x].e.r-u[x].s.r+1;break}if(y){l.push(t);continue}var I=Ae({r:o,c}),z=m?(a[o]||[])[c]:a[I];if(z&&z.f&&(A["table:formula"]=Se(op(z.f)),z.F&&z.F.slice(0,I.length)==I)){var ee=_t(z.F);A["table:number-matrix-columns-spanned"]=ee.e.c-ee.s.c+1,A["table:number-matrix-rows-spanned"]=ee.e.r-ee.s.r+1}if(!z){l.push(r);continue}switch(z.t){case"b":F=z.v?"TRUE":"FALSE",A["office:value-type"]="boolean",A["office:boolean-value"]=z.v?"true":"false";break;case"n":F=z.w||String(z.v||0),A["office:value-type"]="float",A["office:value"]=z.v||0;break;case"s":case"str":F=z.v==null?"":z.v,A["office:value-type"]="string";break;case"d":F=z.w||ft(z.v).toISOString(),A["office:value-type"]="date",A["office:date-value"]=ft(z.v).toISOString(),A["table:style-name"]="ce1";break;default:l.push(r);continue}var D=e(F);if(z.l&&z.l.Target){var V=z.l.Target;V=V.charAt(0)=="#"?"#"+cp(V.slice(1)):V,V.charAt(0)!="#"&&!V.match(/^\w+:/)&&(V="../"+V),D=q("text:a",D,{"xlink:href":V.replace(/&/g,"&amp;")})}l.push(" "+q("table:table-cell",q("text:p",D,{}),A)+`
2023-07-24 18:48:39 +00:00
`)}l.push(` </table:table-row>
`)}return l.push(` </table:table>
`),l.join("")},i=function(a,s){a.push(` <office:automatic-styles>
`),a.push(` <number:date-style style:name="N37" number:automatic-order="true">
`),a.push(` <number:month number:style="long"/>
`),a.push(` <number:text>/</number:text>
`),a.push(` <number:day number:style="long"/>
`),a.push(` <number:text>/</number:text>
`),a.push(` <number:year/>
`),a.push(` </number:date-style>
2023-09-10 17:47:29 +00:00
`);var f=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!cols"]){for(var c=0;c<o["!cols"].length;++c)if(o["!cols"][c]){var h=o["!cols"][c];if(h.width==null&&h.wpx==null&&h.wch==null)continue;ga(h),h.ods=f;var u=o["!cols"][c].wpx+"px";a.push(' <style:style style:name="co'+f+`" style:family="table-column">
2023-07-24 18:48:39 +00:00
`),a.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+u+`"/>
`),a.push(` </style:style>
`),++f}}});var l=0;s.SheetNames.map(function(o){return s.Sheets[o]}).forEach(function(o){if(o&&o["!rows"]){for(var c=0;c<o["!rows"].length;++c)if(o["!rows"][c]){o["!rows"][c].ods=l;var h=o["!rows"][c].hpx+"px";a.push(' <style:style style:name="ro'+l+`" style:family="table-row">
`),a.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+h+`"/>
`),a.push(` </style:style>
`),++l}}}),a.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1">
`),a.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/>
`),a.push(` </style:style>
`),a.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/>
`),a.push(` </office:automatic-styles>
`)};return function(s,f){var l=[We],o=xn({"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=xn({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});f.bookType=="fods"?(l.push("<office:document"+o+c+`>
`),l.push(lf().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+o+`>
`),i(l,s),l.push(` <office:body>
`),l.push(` <office:spreadsheet>
`);for(var h=0;h!=s.SheetNames.length;++h)l.push(n(s.Sheets[s.SheetNames[h]],s,h));return l.push(` </office:spreadsheet>
`),l.push(` </office:body>
2023-09-10 17:47:29 +00:00
`),f.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function Kf(e,r){if(r.bookType=="fods")return I0(e,r);var t=fa(),n="",i=[],a=[];return n="mimetype",pe(t,n,"application/vnd.oasis.opendocument.spreadsheet"),n="content.xml",pe(t,n,I0(e,r)),i.push([n,"text/xml"]),a.push([n,"ContentFile"]),n="styles.xml",pe(t,n,Vm(e,r)),i.push([n,"text/xml"]),a.push([n,"StylesFile"]),n="meta.xml",pe(t,n,We+lf()),i.push([n,"text/xml"]),a.push([n,"MetadataFile"]),n="manifest.rdf",pe(t,n,t1(a)),i.push([n,"application/rdf+xml"]),n="META-INF/manifest.xml",pe(t,n,Qh(i)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function ri(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Gm(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Ct(Ht(e))}function Xm(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var n=0;n<r.length;++n)if(e[t+n]!=r[n])continue e;return!0}return!1}function ir(e){var r=e.reduce(function(i,a){return i+a.length},0),t=new Uint8Array(r),n=0;return e.forEach(function(i){t.set(i,n),n+=i.length}),t}function zm(e,r,t){var n=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,i=t/Math.pow(10,n-6176);e[r+15]|=n>>7,e[r+14]|=(n&127)<<1;for(var a=0;i>=1;++a,i/=256)e[r+a]=i&255;e[r+15]|=t>=0?0:128}function pn(e,r){var t=r?r[0]:0,n=e[t]&127;e:if(e[t++]>=128&&(n|=(e[t]&127)<<7,e[t++]<128||(n|=(e[t]&127)<<14,e[t++]<128)||(n|=(e[t]&127)<<21,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(n+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),n}function Ee(e){var r=new Uint8Array(7);r[0]=e&127;var t=1;e:if(e>127){if(r[t-1]|=128,r[t]=e>>7&127,++t,e<=16383||(r[t-1]|=128,r[t]=e>>14&127,++t,e<=2097151)||(r[t-1]|=128,r[t]=e>>21&127,++t,e<=268435455)||(r[t-1]|=128,r[t]=e/256>>>21&127,++t,e<=34359738367)||(r[t-1]|=128,r[t]=e/65536>>>21&127,++t,e<=4398046511103))break e;r[t-1]|=128,r[t]=e/16777216>>>21&127,++t}return r.slice(0,t)}function Ur(e){var r=0,t=e[r]&127;e:if(e[r++]>=128){if(t|=(e[r]&127)<<7,e[r++]<128||(t|=(e[r]&127)<<14,e[r++]<128)||(t|=(e[r]&127)<<21,e[r++]<128))break e;t|=(e[r]&127)<<28}return t}function He(e){for(var r=[],t=[0];t[0]<e.length;){var n=t[0],i=pn(e,t),a=i&7;i=Math.floor(i/8);var s=0,f;if(i==0)break;switch(a){case 0:{for(var l=t[0];e[t[0]++]>=128;);f=e.slice(l,t[0])}break;case 5:s=4,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 1:s=8,f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 2:s=pn(e,t),f=e.slice(t[0],t[0]+s),t[0]+=s;break;case 3:case 4:default:throw new Error("PB Type ".concat(a," for Field ").concat(i," at offset ").concat(n))}var o={data:f,type:a};r[i]==null?r[i]=[o]:r[i].push(o)}return r}function je(e){var r=[];return e.forEach(function(t,n){t.forEach(function(i){i.data&&(r.push(Ee(n*8+i.type)),i.type==2&&r.push(Ee(i.data.length)),r.push(i.data))})}),ir(r)}function yt(e){for(var r,t=[],n=[0];n[0]<e.length;){var i=pn(e,n),a=He(e.slice(n[0],n[0]+i));n[0]+=i;var s={id:Ur(a[1][0].data),messages:[]};a[2].forEach(function(f){var l=He(f.data),o=Ur(l[3][0].data);s.messages.push({meta:l,data:e.slice(n[0],n[0]+o)}),n[0]+=o}),(r=a[3])!=null&&r[0]&&(s.merge=Ur(a[3][0].data)>>>0>0),t.push(s)}return t}function kr(e){var r=[];return e.forEach(function(t){var n=[];n[1]=[{data:Ee(t.id),type:0}],n[2]=[],t.merge!=null&&(n[3]=[{data:Ee(+!!t.merge),type:0}]);var i=[];t.messages.forEach(function(s){i.push(s.data),s.meta[3]=[{type:0,data:Ee(s.data.length)}],n[2].push({data:je(s.meta),type:2})});var a=je(n);r.push(Ee(a.length)),r.push(a),i.forEach(function(s){return r.push(s)})}),ir(r)}function jm(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],n=pn(r,t),i=[];t[0]<r.length;){var a=r[t[0]]&3;if(a==0){var s=r[t[0]++]>>2;if(s<60)++s;else{var f=s-59;s=r[t[0]],f>1&&(s|=r[t[0]+1]<<8),f>2&&(s|=r[t[0]+2]<<16),f>3&&(s|=r[t[0]+3]<<24),s>>>=0,s++,t[0]+=f}i.push(r.slice(t[0],t[0]+s)),t[0]+=s;continue}else{var l=0,o=0;if(a==1?(o=(r[t[0]]>>2&7)+4,l=(r[t[0]++]&224)<<3,l|=r[t[0]++]):(o=(r[t[0]++]>>2)+1,a==2?(l=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(l=(r[t[0]
`,l=f.charCodeAt(0),o=new RegExp((a=="|"?"\\|":a)+"+$"),c="",h=[];n.dense=Array.isArray(e);for(var u=n.skipHidden&&e["!cols"]||[],x=n.skipHidden&&e["!rows"]||[],m=i.s.c;m<=i.e.c;++m)(u[m]||{}).hidden||(h[m]=rt(m));for(var d=0,v=i.s.r;v<=i.e.r;++v)(x[v]||{}).hidden||(c=lv(e,i,v,h,s,l,a,n),c!=null&&(n.strip&&(c=c.replace(o,"")),(c||n.blankrows!==!1)&&t.push((d++?f:"")+c)));return delete n.dense,t.join("")}function Jf(e,r){r||(r={}),r.FS=" ",r.RS=`
`;var t=ya(e,r);return t}function ov(e){var r="",t,n="";if(e==null||e["!ref"]==null)return[];var i=Ie(e["!ref"]),a="",s=[],f,l=[],o=Array.isArray(e);for(f=i.s.c;f<=i.e.c;++f)s[f]=rt(f);for(var c=i.s.r;c<=i.e.r;++c)for(a=Ze(c),f=i.s.c;f<=i.e.c;++f)if(r=s[f]+a,t=o?(e[c]||[])[f]:e[r],n="",t!==void 0){if(t.F!=null){if(r=t.F,!t.f)continue;n=t.f,r.indexOf(":")==-1&&(r=r+":"+r)}if(t.f!=null)n=t.f;else{if(t.t=="z")continue;if(t.t=="n"&&t.v!=null)n=""+t.v;else if(t.t=="b")n=t.v?"TRUE":"FALSE";else if(t.w!==void 0)n="'"+t.w;else{if(t.v===void 0)continue;t.t=="s"?n="'"+t.v:n=""+t.v}}l[l.length]=r+"="+n}return l}function qf(e,r,t){var n=t||{},i=+!n.skipHeader,a=e||{},s=0,f=0;if(a&&n.origin!=null)if(typeof n.origin=="number")s=n.origin;else{var l=typeof n.origin=="string"?Ge(n.origin):n.origin;s=l.r,f=l.c}var o,c={s:{c:0,r:0},e:{c:f,r:s+r.length-1+i}};if(a["!ref"]){var h=Ie(a["!ref"]);c.e.c=Math.max(c.e.c,h.e.c),c.e.r=Math.max(c.e.r,h.e.r),s==-1&&(s=h.e.r+1,c.e.r=s+r.length-1+i)}else s==-1&&(s=0,c.e.r=r.length-1+i);var u=n.header||[],x=0;r.forEach(function(d,v){Qe(d).forEach(function(y){(x=u.indexOf(y))==-1&&(u[x=u.length]=y);var A=d[y],F="z",I="",z=Ae({c:f+x,r:s+v+i});o=mn(a,z),A&&typeof A=="object"&&!(A instanceof Date)?a[z]=A:(typeof A=="number"?F="n":typeof A=="boolean"?F="b":typeof A=="string"?F="s":A instanceof Date?(F="d",n.cellDates||(F="n",A=ut(A)),I=n.dateNF||Me[14]):A===null&&n.nullError&&(F="e",A=0),o?(o.t=F,o.v=A,delete o.w,delete o.R,I&&(o.z=I)):a[z]=o={t:F,v:A},I&&(o.z=I))})}),c.e.c=Math.max(c.e.c,f+u.length-1);var m=Ze(s);if(i)for(x=0;x<u.length;++x)a[rt(x+f)+m]={t:"s",v:u[x]};return a["!ref"]=$e(c),a}function cv(e,r){return qf(null,e,r)}function mn(e,r,t){if(typeof r=="string"){if(Array.isArray(e)){var n=Ge(r);return e[n.r]||(e[n.r]=[]),e[n.r][n.c]||(e[n.r][n.c]={t:"z"})}return e[r]||(e[r]={t:"z"})}return typeof r!="number"?mn(e,Ae(r)):mn(e,Ae({r,c:t||0}))}function uv(e,r){if(typeof r=="number"){if(r>=0&&e.SheetNames.length>r)return r;throw new Error("Cannot find sheet # "+r)}else if(typeof r=="string"){var t=e.SheetNames.indexOf(r);if(t>-1)return t;throw new Error("Cannot find sheet name |"+r+"|")}else throw new Error("Cannot find sheet |"+r+"|")}function hv(){return{SheetNames:[],Sheets:{}}}function dv(e,r,t,n){var i=1;if(!t)for(;i<=65535&&e.SheetNames.indexOf(t="Sheet"+i)!=-1;++i,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(n&&e.SheetNames.indexOf(t)>=0){var a=t.match(/(^.*?)(\d+)$/);i=a&&+a[2]||0;var s=a&&a[1]||t;for(++i;i<=65535&&e.SheetNames.indexOf(t=s+i)!=-1;++i);}if(Wf(t),e.SheetNames.indexOf(t)>=0)throw new Error("Worksheet with name |"+t+"| already exists!");return e.SheetNames.push(t),e.Sheets[t]=r,t}function xv(e,r,t){e.Workbook||(e.Workbook={}),e.Workbook.Sheets||(e.Workbook.Sheets=[]);var n=uv(e,r);switch(e.Workbook.Sheets[n]||(e.Workbook.Sheets[n]={}),t){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+t)}e.Workbook.Sheets[n].Hidden=t}function pv(e,r){return e.z=r,e}function Zf(e,r,t){return r?(e.l={Target:r},t&&(e.l.Tooltip=t)):delete e.l,e}function mv(e,r,t){return Zf(e,"#"+r,t)}function vv(e,r,t){e.c||(e.c=[]),e.c.push({t:r,a:t||"SheetJS"})}function gv(e,r,t,n){for(var i=typeof r!="string"?r:Ie(r),a=typeof r=="string"?r:$e(r),s=i.s.r;s<=i.e.r;++s)for(var f=i.s.c;f<=i.e.c;++f){var l=mn(e,s,f);l.t="n",l.F=a,delete l.v,s==i.s.r&&f==i.s.c&&(l.f=t,n&&(l.D=!0))}return e}var _v={encode_col:rt,encode_row:Ze,encode_cell:Ae,encode_range:$e,decode_col:da,decode_row:ha,split_cell:Nh,decode_cell:Ge,decode_range:_t,format_cell:Yt,sheet_add_aoa:Zs,sheet_add_json:qf,sheet_add_dom:zf,aoa_to_sheet:jr,json_to_sheet:cv,table_to_sheet:jf,table_to_book:Wm,sheet_to_csv:ya,sheet_to_txt:Jf,sheet_to_json:ni,sheet_to_html:Xf,sheet_to_formulae:ov,sheet_to_row_object_array:ni,sheet_get_cell:mn,book_new:hv,book_append_sheet:dv,book_set_sheet_visibility:xv,cell_set_number_format:pv,cell_set_hyperlink:Zf,cell_set_internal_link:mv,cell_add_comment:vv,sheet_set_array_formula:gv,consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};/**
2023-07-24 18:48:39 +00:00
* Exports the generated truth table to an excel (.xlsx) file
*
* @param type The downloaded files extension. Default is "xlsx"
* @param name The name of the file, excluding the extension. Default is "Truth Table"
* @param dl
* @param tableId The id of the table to export
* @returns {any}
* @author SheetJS
* @link https://cdn.sheetjs.com/
* @license Apache 2.0 License
* SheetJS Community Edition -- https://sheetjs.com/
*
* Copyright (C) 2012-present SheetJS LLC
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
2023-09-10 17:47:29 +00:00
*/function Ev({type:e="xlsx",name:r="Truth Table",dl:t=!1,tableId:n}){const i=document.getElementById(n),a=_v.table_to_book(i,{sheet:"sheet1"});return t?Aa(a,{bookType:e,bookSST:!0,type:"base64"}):sv(a,r+"."+e)}function Tv(){return"ontouchstart"in window||navigator.maxTouchPoints>0}function wv(e){return e.replaceAll(/\//g,"|").replaceAll(/¬/g,"!").replaceAll(/\sOR\s/gi," | ").replaceAll(/\sAND\s/gi," & ").replaceAll(/\s(IMPLICATION|IMP)\s/gi," -> ").replaceAll(/\sNOT\s/gi," !")}const Sv=ae('<span class="h-min">Simplify: '),N0=ae('<div class="h-min relative">'),Av=ae("<p>Filename:"),Qf=ae("<p>"),yv=ae('<div class="flex justify-center m-2"><div id="table" class="h-[45rem] overflow-auto">'),Fv=ae('<div id="truth-content"><div class="max-w-2xl mx-auto"><form class="flex-row-center" autocomplete="off">'),Cv=ae('<p class="sr-only">Download'),Ov=ae('<button class="hover:underline cursor-pointer last:mb-1 flex-row-center">'),Dv=ae('<table class="table"><tbody>'),Iv=ae("<p>Fill in a truth expression and it will be simplified for you as much as possible. It will also genereate a truth table with all possible values. You can use a single letter, word or multiple words without spacing for each atomic value. If you do not want to simplify the expression, simply turn off the toggle. Keywords for operators are defined below. Parentheses is also allowed."),kv=ae("<p>API docs can be found <!>."),Nv=ae("<p>using: "),Rv=ae("<td>using: "),Lv=ae('<tr class="border-b border-dotted border-gray-500"><td>:</td><td class="px-2">'),Pv=ae("<span>"),Mv=ae('<table><thead><tr class="text-left"><th>Name</th><th class="pr-2">API</th><th>Other</th></tr></thead><tbody><tr><td>Not:</td><td>!</td><td>NOT</td></tr><tr><td>And:</td><td>&</td><td>AND</td></tr><tr><td>Or:</td><td>|</td><td>/</td><td>OR</td></tr><tr><td class="pr-2">Implication:</td><td>-></td><td class="px-2">IMPLICATION</td><td>IMP'),bv=["http://localhost:8080/simplify/table/","https://api.martials.no/simplify-truths/simplify/table/"],Bv=()=>{const[e,r]=_o();let t,n=e.simplify===void 0||e.simplify==="true",i=!!e.exp,a=e.hideIntermediate==="true";const[s,f]=we(n),[l,o]=we(null),c=[{name:"Show all result",value:"NONE"},{name:"Hide true results",value:"TRUE"},{name:"Hide false results",value:"FALSE"}],[h,u]=we(c[0]),x=[{name:"Sort by default",value:"DEFAULT"},{name:"Sort by true first",value:"TRUE_FIRST"},{name:"Sort by false first",value:"FALSE_FIRST"}],[m,d]=we(x[0]),[v,y]=we(a),[A,F]=we(null),[I,z]=we(null),[ee,D]=we(!1);function V(K){K.preventDefault();const ce=t?.value;ce&&(r({exp:ce,simplify:s(),hide:h().value,sort:m().value,hideIntermediate:v()}),P(ce))}function P(K){o(null),K&&K!==""&&(K=wv(K),z(null),F(!1),fetch(`${bv[ee()?0:1]}${encodeURIComponent(K)}?
simplify=${s()}&hide=${h().value}&sort=${m().value}&caseSensitive=false&
hideIntermediate=${v()}`).then(ce=>ce.json()).then(ce=>ce.status!=="OK"&&!ce.ok?z({title:"Input error",message:ce.message}):o(ce)).catch(ce=>z({title:"Fetch error",message:ce.toString()})).finally(()=>F(!0)))}b0(()=>{if(e.exp){const K=e.exp;K&&t&&(t.value=K);const ce=e.hide;ce&&u(c.find(de=>de.value===ce)??c[0]);const le=e.sort;le&&d(x.find(de=>de.value===le)??x[0]),P(K)}Tv()||t?.focus()});const b="truth-table",U="excel-filename";function G(){const K=Wr(U)?.value;Ev({name:K!==""?K:void 0,tableId:b})}return W(li,{title:"Truth tables",get children(){return[W(Ye,{get when(){return!1},keyed:!0,get children(){return["(DEV) Use localhost:",W(Ii,{title:"Use localhost",defaultValue:!1,onChange:D})]}}),(()=>{const K=Fv(),ce=K.firstChild,le=ce.firstChild;return ne(ce,W(Wv,{}),le),le.addEventListener("submit",V),ne(le,W(wc,{ref(de){const xe=t;typeof xe=="function"?xe(de):t=de},typingDefault:i}),null),ne(le,W(Vn,{id:"truth-input-button",title:"Generate (Enter)",type:"submit",className:"min-w-50px h-10 ml-2",children:"Generate"}),null),ne(ce,W(ts,{className:"my-1 gap-2",get children(){return[Sv(),W(Ii,{onChange:f,get defaultValue(){return s()},title:"Simplify",name:"Turn on/off simplify expressions",className:"mx-1"}),(()=>{const de=N0();return ne(de,W(Xa,{title:"Filter results",id:"filter-results",get button(){return W(Ye,{get when(){return h().value!=="NONE"},get children(){return W(Pt,{path:Ko,"aria-label":"An eye with a slash through it",get class(){return`mx-1 ${h().value==="TRUE"?"text-green-500":"text-red-500"}`}})},get fallback(){return W(Pt,{path:Yo,"aria-label":"An eye",class:"mx-1"})},keyed:!0})},get children(){return W(Mt,{each:c,children:xe=>W(R0,{onClick:()=>u(xe),option:xe,currentValue:h})})},itemsClassName:"right-0"})),de})(),(()=>{const de=N0();return ne(de,W(Xa,{title:"Sort results",id:"sort-results",get button(){return W(Pt,{path:Jo,"aria-label":"Filter",get class(){return`h-6 w-6 ${m().value==="TRUE_FIRST"?"text-green-500":m().value==="FALSE_FIRST"&&"text-red-500"}`}})},get children(){return W(Mt,{each:x,children:xe=>W(R0,{option:xe,currentValue:m,onClick:()=>d(xe)})})},itemsClassName:"right-0"})),de})(),W(Ii,{title:"Hide intermediate values",onChange:y,get defaultValue(){return v()}}),W(Ye,{get when(){return De(()=>!!A())()&&I()===null},keyed:!0,get children(){return W(Ou,{title:"Download",description:"Export current table (.xlsx)",get button(){return[Cv(),W(Pt,{"aria-label":"Download",path:Vo})]},callback:G,acceptButtonName:"Download",cancelButtonName:"Cancel",buttonClass:"float-right",buttonTitle:"Export current table",acceptButtonId:"download-accept",get children(){return[Av(),W(Qi,{className:"border-rounded h-10 px-2",id:U,placeholder:"Truth Table"})]}})}})]}}),null),ne(ce,W(Ye,{get when(){return I()},keyed:!0,get children(){return W(Uv,{get title(){return I()?.title??"Error"},get error(){return I()?.message??"Something went wrong"}})}}),null),ne(ce,W(Ye,{get when(){return A()===!1},keyed:!0,get children(){return W(Pt,{path:Go,"aria-label":"Loading indicator",class:"animate-spin mx-auto"})}}),null),ne(ce,W(Ye,{get when(){return De(()=>!!s())()&&(l()?.orderOperations?.length??0)>0},keyed:!0,get children(){return W($v,{fetchResult:l})}}),null),ne(K,W(Ye,{get when(){return De(()=>!!A())()&&I()===null},keyed:!0,get children(){return[W(Ye,{get when(){return s()},keyed:!0,get children(){return W(ps,{className:"w-fit mx-auto pb-1 text-lg text-center",title:"Output:",id:"expression-output",get children(){const de=Qf();return ne(de,()=>l()?.after),de}})}}),(()=>{const de=yv(),xe=de.firstChild;return ne(xe,W(Cc,{get header(){return l()?.header??void 0},get table(){return l()?.table?.truthMatrix},id:b})),de})()]}}),null),K})()]}})},R0=({option:e,currentValue:r,onClick:t})=>{const n=()=>r?.().value===e.value;return(()=>{const i=Ov();return Zi(i,"click",t,!0),ne(i,W(Pt,{path:Xo,get"aria-label"(){return n()?"A checkmark":"Nothing"},get class(){return`text-white ${!n()&&"invisible"}`}}),null),ne(i,()=>e.name,null),i})()},Uv=({title:e,error:r})=>W(ps,{className:"w-fit text-center mx-auto",title:e,error:!0,get children(){con