mirror of
https://github.com/silenty4ng/k5web
synced 2025-01-15 16:22:44 +00:00
353 lines
679 KiB
JavaScript
353 lines
679 KiB
JavaScript
import{A as sn,M as or,B as ja,W as xv,ak as gv,K as da,G as ou,al as to,J as Ko,ae as pv,w as Kt,am as mv,an as wv,ao as yv,ap as _v,z as ta,y as ol,aq as A0,ar as bv,F as Sv,H as Dl,v as Ev,e as Cv,as as Tv,_ as kv}from"./index.ff32156d.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as Tr,c as le,f as ye,w as Ge,o as aa,bJ as Fv,bK as Av,b as xs,aI as te,n as Ba,t as Cr,i as O0,bB as Or,bu as Ov,u as sl,x as Dv,y as Rv,bs as su,p as lu,r as Sn,h as Kr,aU as On,b4 as Iv,bC as Pv,g as cu,s as Nv,bH as Lv,C as D0,D as Bv,aH as yr,G as ll,aN as $a,aM as xa,aE as Mv,aF as Kv,a6 as jv,a$ as Wv,ba as Uv,bI as Hv,O as Vv,bm as zv,bL as $v,be as Gv,bf as Xv}from"./arco.f43727df.js";import{u as Yv}from"./loading.a1d05891.js";import{e as R0,a as As,u as I0,f as qv,h as Os,s as Jv,b as Ds,g as Zv}from"./serial.c741fbda.js";import{b as ei,_ as cl,r as Jn,c as Rl,d as Qv,e as fu,f as e1,i as r1,l as Nr,I as jo,s as ji,v as uu}from"./form-model.ffdc7ae1.js";import{_ as du,a as hu,o as vu,C as P0,t as t1,d as Il,T as xu,p as ri,P as a1,b as gu,u as n1,c as Ma,A as pu,e as mu,S as fl,f as N0,E as wu,g as yu,h as _u,i as i1,j as $o,k as Go,l as Pl,m as o1,n as s1,q as l1,r as Vt}from"./dep-6deb4e3a.cbfa2189.js";import{u as Dn,r as Rn,_ as In,b as c1,o as bu,g as f1,l as u1,c as d1,a as ui,d as h1,e as v1}from"./dialog.a5e3d152.js";import{u as ba,o as cr,n as x1,p as Er,q as Su,s as Eu,_ as _r,f as Xe,b as Nl,c as ue,i as Cu,L as Ll,v as g1,w as L0,k as ul,x as Tu,h as _e,y as p1,z as m1}from"./index.e3ab1903.js";import{u as w1,i as y1,B as Wi}from"./index.bf1946d0.js";import"./chart.3c227ebb.js";import"./vue.cbdb927d.js";function B0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function M0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?B0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):B0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var _1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 2h20v20H2V2zm2 2v16h16V4H4zm9 2.5V11h4.5v2H13v4.5h-2V13H6.5v-2H11V6.5h2z"}}]},b1=Tr({name:"AddRectangleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-add-rectangle",n.value]),s=le(()=>M0(M0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(_1,l.value)}});const S1=b1;function K0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function j0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?K0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):K0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var E1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 3a9 9 0 100 18 9 9 0 000-18zM1 12a11 11 0 1122 0 11 11 0 01-22 0zm9.5-5.41L15.91 12l-5.41 5.41L9.09 16l4-4-4-4 1.41-1.41z"}}]},C1=Tr({name:"ChevronRightCircleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-chevron-right-circle",n.value]),s=le(()=>j0(j0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(E1,l.value)}});const T1=C1;function W0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function U0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?W0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):W0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var k1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M16.83 1.42l5.75 5.75L7.75 22H2v-5.75L16.83 1.42zm0 8.68l2.92-2.93-2.92-2.93-2.93 2.93 2.93 2.93zm-4.34-1.51L4 17.07V20h2.93l8.48-8.49L12.5 8.6z"}}]},F1=Tr({name:"Edit1Icon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-edit-1",n.value]),s=le(()=>U0(U0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(k1,l.value)}});const A1=F1;function H0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function V0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?H0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):H0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var O1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2.57 3h18.86l-6.93 9.82V21h-5v-8.18L2.57 3zm3.86 2l5.07 7.18V19h1v-6.82L17.57 5H6.43z"}}]},D1=Tr({name:"FilterIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-filter",n.value]),s=le(()=>V0(V0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(O1,l.value)}});const R1=D1;function z0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function $0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?z0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):z0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var I1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M2 2h20v20H2V2zm2 2v16h16V4H4zm2.5 7h11v2h-11v-2z"}}]},P1=Tr({name:"MinusRectangleIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-minus-rectangle",n.value]),s=le(()=>$0($0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(I1,l.value)}});const N1=P1;function G0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function X0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?G0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):G0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var L1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M6.75 2.25h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3zm-7.5 5.5h3v3h-3v-3zm7.5 0h3v3h-3v-3z"}}]},B1=Tr({name:"MoveIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-move",n.value]),s=le(()=>X0(X0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(L1,l.value)}});const M1=B1;function Y0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function q0(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Y0(Object(t),!0).forEach(function(a){In(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Y0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var K1={tag:"svg",attrs:{fill:"none",viewBox:"0 0 24 24",width:"1em",height:"1em"},children:[{tag:"path",attrs:{fill:"currentColor",d:"M12 .85l9.66 5.57v11.16L12 23.15l-9.66-5.57V6.42L12 .85zm0 2.3L4.34 7.58v8.84L12 20.85l7.66-4.43V7.58L12 3.15zM12 9a3 3 0 100 6 3 3 0 000-6zm-5 3a5 5 0 1110 0 5 5 0 01-10 0z"}}]},j1=Tr({name:"SettingIcon",props:{size:{type:String},onClick:{type:Function}},setup(e,r){var{attrs:t}=r,a=le(()=>e.size),{className:n,style:i}=Dn(a),o=le(()=>["t-icon","t-icon-setting",n.value]),s=le(()=>q0(q0({},i.value),t.style)),l=le(()=>({class:o.value,style:s.value,onClick:c=>{var f;return(f=e.onClick)===null||f===void 0?void 0:f.call(e,{e:c})}}));return()=>Rn(K1,l.value)}});const W1=j1;/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var U1={container:{type:[String,Function],default:function(){return function(){return window}}},content:{type:[String,Function]},default:{type:[String,Function]},offsetBottom:{type:Number,default:0},offsetTop:{type:Number,default:0},zIndex:{type:Number},onFixedChange:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var H1=Tr({name:"TAffix",props:U1,emits:["fixedChange"],setup:function(r,t){var a,n=ba("affix"),i=sn(),o=ye(null),s=ye(null),l=ye((a=document)===null||a===void 0?void 0:a.createElement("div")),c=ye(!1),f=ye(!1),u=ye(),d=ye(),v=0,x=function(){c.value||(v=window.requestAnimationFrame(function(){var S,g;v=0;var w=(S=(g=o.value)===null||g===void 0?void 0:g.getBoundingClientRect())!==null&&S!==void 0?S:{top:0,width:0,height:0},C=w.top,F=w.width,_=w.height,R=0;u.value instanceof HTMLElement&&(R=u.value.getBoundingClientRect().top);var y,W=C-R,D=u.value[u.value instanceof Window?"innerHeight":"clientHeight"]-_,E=R+D-r.offsetBottom;if(!ei(r.offsetTop)&&W<=r.offsetTop?y=R+r.offsetTop:!ei(r.offsetBottom)&&C>=E?y=E:y=!1,s.value){var T=y!==!1,A=o.value.contains(l.value);T?(s.value.className=n.value,d.value={top:"".concat(y,"px"),width:"".concat(F,"px"),height:"".concat(_,"px"),zIndex:r.zIndex},A||(l.value.style.width="".concat(F,"px"),l.value.style.height="".concat(_,"px"),o.value.appendChild(l.value))):(s.value.removeAttribute("class"),d.value=void 0,A&&l.value.remove()),t.emit("fixedChange",T,{top:Number(y)}),or(r.onFixedChange)&&r.onFixedChange(T,{top:Number(y)})}c.value=!1}),c.value=!0)},h=function(){var m=cl(Jn.mark(function S(){return Jn.wrap(function(w){for(;;)switch(w.prev=w.next){case 0:return w.next=2,Ba();case 2:if(!f.value){w.next=4;break}return w.abrupt("return");case 4:u.value=x1(r.container),Er(u.value,"scroll",x),Er(window,"resize",x),f.value=!0;case 8:case"end":return w.stop()}},S)}));return function(){return m.apply(this,arguments)}}(),p=function(){!u.value||!f.value||(cr(u.value,"scroll",x),cr(window,"resize",x),v&&window.cancelAnimationFrame(v),f.value=!1)};return Ge(function(){return r.offsetTop},function(){x()}),Ge(function(){return r.offsetBottom},function(){x()}),Ge(function(){return r.zIndex},function(){x()}),aa(h),Fv(h),Av(p),xs(p),{affixWrapRef:o,affixRef:s,bindScroll:h,unbindScroll:p,handleScroll:x,scrollContainer:u,renderTNodeJSX:i,affixStyle:d}},render:function(){return te("div",{ref:"affixWrapRef"},[te("div",{ref:"affixRef",style:this.affixStyle},[this.renderTNodeJSX("default")])])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var xo=ja(H1);/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var V1=Su,z1=du,$1=hu,G1=xv,X1=gv,Y1=Eu,q1=200;function J1(e,r,t,a){var n=-1,i=z1,o=!0,s=e.length,l=[],c=r.length;if(!s)return l;t&&(r=G1(r,X1(t))),a?(i=$1,o=!1):r.length>=q1&&(i=Y1,o=!1,r=new V1(r));e:for(;++n<s;){var f=e[n],u=t==null?f:t(f);if(f=a||f!==0?f:0,o&&u===u){for(var d=c;d--;)if(r[d]===u)continue e;l.push(f)}else i(r,u,a)||l.push(f)}return l}var Z1=J1;/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var ku={allowUncheck:Boolean,checked:{type:Boolean,default:void 0},modelValue:{type:Boolean,default:void 0},defaultChecked:Boolean,default:{type:[String,Function]},disabled:{type:Boolean,default:void 0},label:{type:[String,Function]},name:{type:String,default:""},readonly:Boolean,value:{type:[String,Number,Boolean],default:void 0},onChange:Function,onClick:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var Fu=Symbol("RadioGroupProvide"),Au=Symbol("RadioButtonProvide");/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function J0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Q1(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?J0(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):J0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function ex(e){var r={};return Object.keys(e).forEach(function(t){ei(e[t])||(r[t]=e[t])}),r}var Bl=Tr({name:"TRadio",inheritAttrs:!1,props:Q1({},ku),setup:function(r,t){var a=t.attrs,n=ye(),i=Cr(r),o=i.checked,s=i.modelValue,l=Rl(o,s,r.defaultChecked,r.onChange,"checked"),c=_r(l,2),f=c[0],u=c[1],d=le(function(){return v?r.value===v.value:f.value}),v=O0(Fu,void 0),x=le(function(){return Boolean(r.allowUncheck||(v==null?void 0:v.allowUncheck))}),h=function(b){b.stopPropagation()},p=function(b){var O;if(!(w.value||r.readonly)&&((O=r.onClick)===null||O===void 0||O.call(r,{e:b}),!(d.value&&!x.value)))if(v){var N=d.value&&x.value?void 0:r.value;v.setValue(N,{e:b})}else{var G=x.value?!d.value:!0;u(G,{e:b})}},m=le(function(){return ex({focus:a.onFocus,blur:a.onBlur,keydown:a.onKeydown,keyup:a.onKeyup,keypresss:a.onKeypresss})}),S=le(function(){var A=[].concat(Xe(Object.keys(m.value)),["input","change"]).map(function(b){return"on".concat(b[0].toUpperCase()).concat(b.slice(1))});return vu(a,A)}),g=le(function(){return v==null?void 0:v.disabled}),w=Qv(g),C=le(function(){return{name:v?v.name:r.name,checked:d.value,disabled:w.value,readonly:r.readonly,value:r.value}}),F=Nl(),_=F.STATUS,R=O0(Au,void 0),y=ba("radio-button"),W=ba("radio"),D=le(function(){return R?y.value:W.value}),E=le(function(){return["".concat(D.value),ue(ue({},_.value.checked,C.value.checked),_.value.disabled,C.value.disabled)]}),T=ou();return function(){return te("label",Or({ref:n,class:E.value},S.value,{tabindex:w.value?void 0:"0",onClick:p}),[te("input",Or({type:"radio",class:"".concat(D.value,"__former")},m.value,C.value,{onClick:h,tabindex:"-1","data-value":da(r.value)?"'".concat(r.value,"'"):r.value,"data-allow-uncheck":x.value||void 0}),null),te("span",{class:"".concat(D.value,"__input")},null),te("span",{class:"".concat(D.value,"__label")},[T("default","label")])])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var rx={allowUncheck:Boolean,disabled:Boolean,name:{type:String,default:""},options:{type:Array},size:{type:String,default:"medium",validator:function(r){return r?["small","medium","large"].includes(r):!0}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},variant:{type:String,default:"outline",validator:function(r){return r?["outline","primary-filled","default-filled"].includes(r):!0}},onChange:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function tx(e,r){var t=function(n){var i=P0.test(n.key)||P0.test(n.code);if(i){n.preventDefault();var o=n.target.querySelector("input");if(!o)return;var s=o.dataset;if(o.checked&&s.allowUncheck)r(void 0,{e:n});else{var l=isNaN(Number(s.value))?s.value:Number(s.value);l=da(l)&&{true:!0,false:!1}[l]||l,l=da(l)&&l[0]==="'"?l.replace(/'/g,""):l,r(l,{e:n})}}};aa(function(){Er(e.value,"keydown",t)}),Ov(function(){cr(e.value,"keydown",t)})}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var ax=["window"],nx=typeof window<"u"?window:void 0;function ix(e){var r,t=sl(e);return(r=t==null?void 0:t.$el)!==null&&r!==void 0?r:t}function ox(e){return Dv()?(Rv(e),!0):!1}function sx(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=t.window,n=a===void 0?nx:a,i=fu(t,ax),o,s=n&&"MutationObserver"in n,l=function(){o&&(o.disconnect(),o=void 0)},c=Ge(function(){return ix(e)},function(u){l(),s&&n&&u&&(o=new MutationObserver(r),o.observe(u,i))},{immediate:!0}),f=function(){l(),c()};return ox(f),{isSupported:s,stop:f}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Z0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Rs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Z0(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Z0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var lx=Tr({name:"TRadioGroup",props:Rs({},rx),setup:function(r){var t=Cr(r),a=t.value,n=t.modelValue,i=Rl(a,n,r.defaultValue,r.onChange),o=_r(i,2),s=o[0],l=o[1],c=ye(),f=ba("radio-button"),u=Nl(),d=u.STATUS,v=u.SIZE;tx(c,l);var x=le(function(){return".".concat(f.value,".").concat(d.value.checked)}),h=ye({width:"0px",height:"0px",left:"0px",top:"0px","transition-property":"none"}),p=function(){var E=document.createElement("div");E.setAttribute("style","position: absolute; visibility: hidden;"),E.appendChild(c.value.cloneNode(!0)),document.body.appendChild(E);var T=E.querySelector(x.value),A=T.offsetWidth,b=T.offsetHeight,O=T.offsetLeft,N=T.offsetTop;h.value=Rs(Rs({},h.value),{},{width:"".concat(A,"px"),height:"".concat(b,"px"),left:"".concat(O,"px"),top:"".concat(N,"px")}),document.body.removeChild(E)},m=function(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;if(r.variant!=="outline"){var T=c.value.querySelector(x.value),A=E?"none":"all";if(!T){h.value={"transition-property":A,width:"0px",height:"9px",left:"0px",top:"0px"};return}var b=T.offsetWidth,O=T.offsetHeight,N=T.offsetLeft,G=T.offsetTop;b?h.value={"transition-property":A,width:"".concat(b,"px"),height:"".concat(O,"px"),left:"".concat(N,"px"),top:"".concat(G,"px")}:p()}},S;Ge(s,cl(Jn.mark(function D(){return Jn.wrap(function(T){for(;;)switch(T.prev=T.next){case 0:return T.next=2,Ba();case 2:m();case 3:case"end":return T.stop()}},D)}))),aa(function(){m(!0),e1(c,t1(cl(Jn.mark(function E(){return Jn.wrap(function(A){for(;;)switch(A.prev=A.next){case 0:return A.next=2,Ba();case 2:m();case 3:case"end":return A.stop()}},E)})),300));var D=c.value.querySelector("".concat(x.value," .").concat(f.value,"__label"));D&&(S=sx(D,function(E){E.forEach(function(T){T.type==="characterData"&&m()})},{attributes:!0,childList:!0,characterData:!0,subtree:!0}))}),su(function(){var D;(D=S)===null||D===void 0||D.stop()});var g=Cr(r),w=g.name,C=g.disabled;lu(Fu,Sn({name:w,disabled:C,value:s,allowUncheck:r.allowUncheck,setValue:l}));var F=ba("radio-group"),_=to(),R=function(){if(r.variant.includes("filled")&&!r1(s.value))return te("div",{style:h.value,class:"".concat(F.value,"__bg-block")},null)},y=function(){var E;return(E=r.options)===null||E===void 0?void 0:E.map(function(T){var A=T;return(Cu(T)||da(T))&&(A={value:T,label:T.toString()}),te(Bl,{key:"radio-group-options-".concat(A.value,"-").concat(Math.random()),name:r.name,checked:s.value===A.value,disabled:"disabled"in A?A.disabled:r.disabled,value:A.value},{default:function(){return[or(A.label)?A.label(Kr):A.label]}})})},W=le(function(){return["".concat(F.value),v.value[r.size],ue(ue(ue({},"".concat(F.value,"__outline"),r.variant==="outline"),"".concat(F.value,"--filled"),r.variant.includes("filled")),"".concat(F.value,"--primary-filled"),r.variant==="primary-filled")]});return function(){return te("div",{ref:c,class:W.value},[_("default")||y(),R()])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Q0(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Is(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Q0(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Q0(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function cx(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var fx=Tr({name:"TRadioButton",inheritAttrs:!1,props:Is({},ku),setup:function(r,t){var a=t.attrs;lu(Au,Sn({}));var n=le(function(){var o=Is(Is({},r),vu(a,Object.keys(a).filter(function(s){return s.startsWith("on")})));return o}),i=ou();return function(){var o;return te(Bl,n.value,cx(o=i("default","label"))?o:{default:function(){return[o]}})}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var ux=ja(Bl),dx=ja(lx);ja(fx);/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var hx={customValue:{type:Array},disabled:{type:Boolean,default:void 0},label:{type:[Array,Function],default:function(){return[]}},loading:Boolean,size:{type:String,default:"medium",validator:function(r){return r?["small","medium","large"].includes(r):!0}},value:{type:[String,Number,Boolean],default:void 0},modelValue:{type:[String,Number,Boolean],default:void 0},defaultValue:{type:[String,Number,Boolean]},onChange:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ec(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function vx(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ec(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ec(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var xx=Tr({name:"TSwitch",props:vx({},hx),setup:function(r,t){var a=t.slots,n=w1(),i=ba("switch"),o=Nl(),s=o.STATUS,l=o.SIZE,c=Cr(r),f=c.value,u=c.modelValue,d=Rl(f,u,r.defaultValue,r.onChange),v=_r(d,2),x=v[0],h=v[1],p=le(function(){return r.customValue&&r.customValue.length>0?r.customValue[0]:!0}),m=le(function(){return r.customValue&&r.customValue.length>1?r.customValue[1]:!1});function S(R){var y=x.value===p.value?m.value:p.value;h(y,{e:R})}function g(R){n.value||r.loading||S(R)}var w=le(function(){return["".concat(i.value),l.value[r.size],ue(ue(ue({},s.value.disabled,n.value),s.value.loading,r.loading),s.value.checked,x.value===p.value||r.modelValue===p.value)]}),C=le(function(){return["".concat(i.value,"__handle"),ue(ue({},s.value.disabled,n.value),s.value.loading,r.loading)]}),F=le(function(){return["".concat(i.value,"__content"),l.value[r.size],ue({},s.value.disabled,n.value)]});Ge(x,function(R){if(r.customValue&&r.customValue.length&&!r.customValue.includes(R))throw new Error("value is not in ".concat(JSON.stringify(r.customValue)))},{immediate:!0});var _=le(function(){if(or(r.label))return r.label(Kr,{value:x.value});if(da(r.label))return r.label;if(Ko(r.label)&&r.label.length){var R=x.value===p.value?r.label[0]:r.label[1];if(!R)return;if(da(R))return R;if(or(R))return R(Kr)}return a.label?a.label({value:x.value}):null});return function(){var R,y;return r.loading?y=te(Ll,{size:"small"},null):_.value&&(R=_.value),te("div",{class:w.value,disabled:n.value,onClick:g},[te("span",{class:C.value},[y]),te("div",{class:F.value},[R])])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var gx=ja(xx);/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function rc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function mi(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?rc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):rc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var gs=function(r){var t=mi({},r),a=document.createElement("div"),n=ye(!1),i=t.className,o=t.style,s=i,l=function(h,p){if(h){if(s&&s!==h){var m;(m=a.firstElementChild.classList).remove.apply(m,Xe(s.split(" ").map(function(S){return S.trim()})))}h.split(" ").forEach(function(S){a.firstElementChild.classList.add(S.trim())})}p&&(a.firstElementChild.style.cssText+=p),s=h},c=Tr({setup:function(h,p){var m=p.expose,S=ye(t);aa(function(){n.value=!0,document.activeElement.blur(),Ba(function(){l(i,o)})});var g=function(C){S.value=mi(mi({},t),C)};return m({update:g}),function(){var w=t.onClose||function(){n.value=!1};return delete t.className,delete t.style,Kr(c1,mi({onClose:w,visible:n.value},S.value))}}}),f=Iv(c),u=f.mount(a),d=g1(t.attach);d?d.appendChild(a):console.error("attach is not exist");var v={show:function(){n.value=!0},hide:function(){n.value=!1},update:function(h){u.update(bu(h,["className","style"])),l(h.className,h.style)},destroy:function(){n.value=!1,setTimeout(function(){f.unmount(),a.remove()},300)},setConfirmLoading:function(h){u.update({confirmLoading:h})}};return v},px=function(r){return gs(r)},mx=function(r){var t=mi({},r);return t.cancelBtn=null,gs(t)},Xo={confirm:px,alert:mx},Ml=gs;Ml.install=function(e){e.config.globalProperties.$dialog=gs,Object.keys(Xo).forEach(function(r){e.config.globalProperties.$dialog[r]=Xo[r]})};Object.keys(Xo).forEach(function(e){Ml[e]=Xo[e]});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var si={activeRowKeys:{type:Array,default:void 0},defaultActiveRowKeys:{type:Array,default:function(){return[]}},activeRowType:{type:String,default:""},allowResizeColumnWidth:{type:Boolean,default:void 0},attach:{type:[String,Function]},bordered:Boolean,bottomContent:{type:[String,Function]},cellEmptyContent:{type:[String,Function]},columns:{type:Array,default:function(){return[]}},data:{type:Array,default:function(){return[]}},disableDataPage:Boolean,disableSpaceInactiveRow:{type:Boolean,default:void 0},empty:{type:[String,Function],default:""},firstFullRow:{type:[String,Function]},fixedRows:{type:Array},footData:{type:Array,default:function(){return[]}},footerAffixProps:{type:Object},footerAffixedBottom:{type:[Boolean,Object],default:!1},footerSummary:{type:[String,Function]},headerAffixProps:{type:Object},headerAffixedTop:{type:[Boolean,Object],default:!1},height:{type:[String,Number]},horizontalScrollAffixedBottom:{type:[Boolean,Object]},hover:Boolean,keyboardRowHover:{type:Boolean,default:!0},lastFullRow:{type:[String,Function]},lazyLoad:Boolean,loading:{type:[Boolean,Function],default:void 0},loadingProps:{type:Object},locale:{type:Object},maxHeight:{type:[String,Number]},pagination:{type:Object},paginationAffixedBottom:{type:[Boolean,Object]},resizable:Boolean,rowAttributes:{type:[Object,Array,Function]},rowClassName:{type:[String,Object,Array,Function]},rowKey:{type:String,default:"id",required:!0},rowspanAndColspan:{type:Function},rowspanAndColspanInFooter:{type:Function},scroll:{type:Object},showHeader:{type:Boolean,default:!0},size:{type:String,validator:function(r){return r?["small","medium","large"].includes(r):!0}},stripe:Boolean,tableContentWidth:{type:String,default:""},tableLayout:{type:String,default:"fixed",validator:function(r){return r?["auto","fixed"].includes(r):!0}},topContent:{type:[String,Function]},verticalAlign:{type:String,default:"middle",validator:function(r){return r?["top","middle","bottom"].includes(r):!0}},onActiveChange:Function,onActiveRowAction:Function,onCellClick:Function,onColumnResizeChange:Function,onPageChange:Function,onRowClick:Function,onRowDblclick:Function,onRowMousedown:Function,onRowMouseenter:Function,onRowMouseleave:Function,onRowMouseover:Function,onRowMouseup:Function,onScroll:Function,onScrollX:Function,onScrollY:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Ou(e,r){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,a=t,n=0,i=e.length;n<i;n++){var o,s=e[n];if(r.set(s,t),s!=null&&(o=s.children)!==null&&o!==void 0&&o.length){var l=Ou(s.children,r,t+1);l>a&&(a=l)}}return a}function Du(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t=r,a=(e==null?void 0:e.children)||[],n=0,i=a.length;n<i;n++){var o=a[n];o.children?t=Du(o,t):t+=1}return t}function wx(e){var r=new Map,t=Ou(e,r),a=new Map,n=function o(s,l){for(var c=0,f=s.length;c<f;c++){var u,d=s[c],v=d.children?1:t-r.get(d)+1,x=d.children?Du(d):1,h={};v>1&&(h.rowspan=v),x>1&&(h.colspan=x),a.set(d,h),d!=null&&(u=d.children)!==null&&u!==void 0&&u.length?o(d.children,l):l.push(d)}},i=[];return n(e,i),{rowspanAndColspanMap:a,leafColumns:i}}function yx(e){var r=function a(n,i){for(var o,s=[],l=[],c=0,f=n.length;c<f;c++){var u,d=n[c],v=[d];s=s.concat(v),d!=null&&(u=d.children)!==null&&u!==void 0&&u.length&&(l=l.concat(d.children))}return(o=l)!==null&&o!==void 0&&o.length&&a(l,i),i.push(s),s},t=[];return r(e,t),t=t.reverse(),t}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Dt(){var e=ba(),r={classPrefix:e.value,tableBaseClass:{table:"".concat(e.value,"-table"),columnResizableTable:"".concat(e.value,"-table--column-resizable"),overflowVisible:"".concat(e.value,"-table--overflow-visible"),body:"".concat(e.value,"-table__body"),content:"".concat(e.value,"-table__content"),topContent:"".concat(e.value,"-table__top-content"),bottomContent:"".concat(e.value,"-table__bottom-content"),paginationWrap:"".concat(e.value,"-table__pagination-wrap"),tdLastRow:"".concat(e.value,"-table__td-last-row"),tdFirstCol:"".concat(e.value,"-table__td-first-col"),thCellInner:"".concat(e.value,"-table__th-cell-inner"),tableRowEdit:"".concat(e.value,"-table--row-edit"),cellEditable:"".concat(e.value,"-table__cell--editable"),cellEditWrap:"".concat(e.value,"-table__cell-wrap"),bordered:"".concat(e.value,"-table--bordered"),striped:"".concat(e.value,"-table--striped"),hover:"".concat(e.value,"-table--hoverable"),loading:"".concat(e.value,"-table--loading"),rowspanAndColspan:"".concat(e.value,"-table--rowspan-colspan"),empty:"".concat(e.value,"-table__empty"),emptyRow:"".concat(e.value,"-table__empty-row"),headerFixed:"".concat(e.value,"-table--header-fixed"),columnFixed:"".concat(e.value,"-table--column-fixed"),widthOverflow:"".concat(e.value,"-table--width-overflow"),multipleHeader:"".concat(e.value,"-table--multiple-header"),footerAffixed:"".concat(e.value,"-table--footer-affixed"),horizontalBarAffixed:"".concat(e.value,"-table--horizontal-bar-affixed"),affixedHeader:"".concat(e.value,"-table--affixed-header"),affixedHeaderElm:"".concat(e.value,"-table__affixed-header-elm"),affixedFooterElm:"".concat(e.value,"-table__affixed-footer-elm"),affixedFooterWrap:"".concat(e.value,"-table__affixed-footer-wrap"),scrollbarDivider:"".concat(e.value,"-table__scroll-bar-divider"),fullHeight:"".concat(e.value,"-table--full-height"),resizeLine:"".concat(e.value,"-table__resize-line"),obviousScrollbar:"".concat(e.value,"-table__scrollbar--obvious"),affixedHeaderWrap:"".concat(e.value,"-table__affixed-header-elm-wrap")},tdAlignClasses:{left:"".concat(e.value,"-align-left"),right:"".concat(e.value,"-align-right"),center:"".concat(e.value,"-align-center")},tableHeaderClasses:{header:"".concat(e.value,"-table__header"),thBordered:"".concat(e.value,"-table__header-th--bordered"),fixed:"".concat(e.value,"-table__header--fixed"),multipleHeader:"".concat(e.value,"-table__header--multiple")},tableFooterClasses:{footer:"".concat(e.value,"-table__footer"),fixed:"".concat(e.value,"-table__footer--fixed")},tableAlignClasses:{top:"".concat(e.value,"-vertical-align-top"),middle:"".concat(e.value,"-vertical-align-middle"),bottom:"".concat(e.value,"-vertical-align-bottom")},tableRowFixedClasses:{top:"".concat(e.value,"-table__row--fixed-top"),bottom:"".concat(e.value,"-table__row--fixed-bottom"),firstBottom:"".concat(e.value,"-table__row--fixed-bottom-first"),withoutBorderBottom:"".concat(e.value,"-table__row--without-border-bottom")},tableColFixedClasses:{left:"".concat(e.value,"-table__cell--fixed-left"),right:"".concat(e.value,"-table__cell--fixed-right"),lastLeft:"".concat(e.value,"-table__cell--fixed-left-last"),firstRight:"".concat(e.value,"-table__cell--fixed-right-first"),leftShadow:"".concat(e.value,"-table__content--scrollable-to-left"),rightShadow:"".concat(e.value,"-table__content--scrollable-to-right")},tableLayoutClasses:{auto:"".concat(e.value,"-table--layout-auto"),fixed:"".concat(e.value,"-table--layout-fixed")},tdEllipsisClass:"".concat(e.value,"-table-td--ellipsis"),tableFullRowClasses:{base:"".concat(e.value,"-table__row--full"),innerFullRow:"".concat(e.value,"-table__row-full-inner"),innerFullElement:"".concat(e.value,"-table__row-full-element"),firstFullRow:"".concat(e.value,"-table__first-full-row"),lastFullRow:"".concat(e.value,"-table__last-full-row")},tableExpandClasses:{iconBox:"".concat(e.value,"-table__expand-box"),iconCell:"".concat(e.value,"-table__expandable-icon-cell"),row:"".concat(e.value,"-table__expanded-row"),rowInner:"".concat(e.value,"-table__expanded-row-inner"),expanded:"".concat(e.value,"-table__row--expanded"),collapsed:"".concat(e.value,"-table__row--collapsed")},tableSortClasses:{sortable:"".concat(e.value,"-table__cell--sortable"),sortColumn:"".concat(e.value,"-table__sort-column"),title:"".concat(e.value,"-table__cell--title"),trigger:"".concat(e.value,"-table__cell--sort-trigger"),doubleIcon:"".concat(e.value,"-table__double-icons"),sortIcon:"".concat(e.value,"-table__sort-icon"),iconDirection:{asc:"".concat(e.value,"-table-sort-asc"),desc:"".concat(e.value,"-table-sort-desc")},iconActive:"".concat(e.value,"-table__sort-icon--active"),iconDefault:"".concat(e.value,"-icon-sort--default")},tableSelectedClasses:{selected:"".concat(e.value,"-table__row--selected"),disabled:"".concat(e.value,"-table__row--disabled"),checkCell:"".concat(e.value,"-table__cell-check")},tableFilterClasses:{filterable:"".concat(e.value,"-table__cell--filterable"),popup:"".concat(e.value,"-table__filter-pop"),icon:"".concat(e.value,"-table__filter-icon"),popupContent:"".concat(e.value,"-table__filter-pop-content"),result:"".concat(e.value,"-table__filter-result"),inner:"".concat(e.value,"-table__row-filter-inner"),bottomButtons:"".concat(e.value,"-table__filter--bottom-buttons"),contentInner:"".concat(e.value,"-table__filter-pop-content-inner"),iconWrap:"".concat(e.value,"-table__filter-icon-wrap")},asyncLoadingClass:"".concat(e.value,"-table__async-loading"),isFocusClass:"".concat(e.value,"-is-focus"),isLoadingClass:"".concat(e.value,"-is-loading"),isLoadMoreClass:"".concat(e.value,"-is-load-more"),tableTreeClasses:{col:"".concat(e.value,"-table__tree-col"),inlineCol:"".concat(e.value,"-table__tree-col--inline"),icon:"".concat(e.value,"-table__tree-op-icon"),leafNode:"".concat(e.value,"-table__tree-leaf-node")},tableDraggableClasses:{rowDraggable:"".concat(e.value,"-table--row-draggable"),rowHandlerDraggable:"".concat(e.value,"-table--row-handler-draggable"),colDraggable:"".concat(e.value,"-table--col-draggable"),handle:"".concat(e.value,"-table__handle-draggable"),ghost:"".concat(e.value,"-table__ele--draggable-ghost"),chosen:"".concat(e.value,"-table__ele--draggable-chosen"),dragging:"".concat(e.value,"-table__ele--draggable-dragging"),dragSortTh:"".concat(e.value,"-table__th--drag-sort")},virtualScrollClasses:{cursor:"".concat(e.value,"-table__virtual-scroll-cursor"),header:"".concat(e.value,"-table__virtual-scroll-header")},positiveRotate90:"".concat(e.value,"-positive-rotate-90"),negativeRotate180:"".concat(e.value,"-negative-rotate-180")};return r}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function tc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function _x(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?tc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):tc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function bx(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var Kl=Tr({name:"TEllipsis",props:{content:{type:[String,Function]},default:{type:[String,Function]},tooltipContent:{type:[String,Number,Function]},placement:String,attach:[String,Function],tooltipProps:Object,zIndex:Number,overlayClassName:String,classPrefix:{type:String,default:"t"}},setup:function(r){var t=ye(),a=ye(!1),n=le(function(){return["".concat(r.classPrefix,"-table__ellipsis"),"".concat(r.classPrefix,"-text-ellipsis")]}),i=le(function(){return["".concat(r.classPrefix,"-table__ellipsis-content"),r.overlayClassName]}),o=function(){!t.value||(a.value=L0(t.value))},s=function(){!t.value||(a.value=L0(t.value))},l=Il(function(c){c.type==="mouseleave"?s():o()},80);return{root:t,isOverflow:a,ellipsisClasses:n,innerEllipsisClassName:i,onMouseAround:l}},render:function(){var r=pv(this,"default","content"),t=te("div",{ref:"root",class:this.ellipsisClasses,onMouseenter:this.onMouseAround,onMouseleave:this.onMouseAround},[r]),a=null,n=this.tooltipProps;if(this.isOverflow){var i=_x({content:this.tooltipContent||function(){return r},destroyOnClose:!0,zIndex:this.zIndex,attach:this.attach,placement:this.placement,overlayClassName:n!=null&&n.overlayClassName?this.innerEllipsisClassName.concat(n.overlayClassName):this.innerEllipsisClassName},n);a=te(xu,i,bx(t)?t:{default:function(){return[t]}})}else a=t;return a}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ac(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function nc(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ac(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ac(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Sx(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}function ps(e,r,t){var a={col:r,colIndex:t};return or(r.title)?r.title(Kr,a):da(r.title)&&e[r.title]?e[r.title](a):or(r.render)&&r.render(Kr,nc(nc({},a),{},{type:"title",row:{},rowIndex:-1}))||r.title}function Ru(e){var r=Dt(),t=r.tableSortClasses,a=r.tableFilterClasses,n=le(function(){return wx(e.columns)}),i=le(function(){return yx(e.columns)}),o=le(function(){return i.value.length>1}),s=function(c,f,u,d,v,x){var h=_r(c,3),p=h[0],m=h[1],S=h[2],g=ue(ue({},t.sortable,m),a.filterable,S),w=or(d)?d(Kr,{col:f,colIndex:u}):void 0,C=Boolean(d!==void 0?d:f.ellipsis);return te("div",{class:g},[te("div",{class:t.title},[C?te(Kl,{placement:"bottom",attach:e.attach||(v?function(){return v}:void 0),tooltipContent:w&&function(){return w},tooltipProps:Kt(d)==="object"?d:void 0,classPrefix:x==null?void 0:x.classPrefix,overlayClassName:x==null?void 0:x.ellipsisOverlayClassName},Sx(p)?p:{default:function(){return[p]}}):te("div",null,[p]),Boolean(m||S)&&te("div",{class:a.iconWrap},[m,S])])])};return{thList:i,isMultipleHeader:o,spansAndLeafNodes:n,renderTitleWidthIcon:s}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ic(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Ex(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?ic(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ic(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Cx=80,Tx=600,oc=8;function kx(e){var r=e.isWidthOverflow,t=e.tableContentRef,a=e.showColumnShadow,n=e.getThWidthList,i=e.updateThWidthList,o=e.setTableElmWidth,s=e.updateTableAfterColumnResize,l=e.onColumnResizeChange,c=ye(),f=ye({}),u=ye([]),d,v;aa(function(){var E=typeof document<"u";d=E?document.onselectstart:null,v=E?document.ondragstart:null});var x=function(T,A,b){for(var O=A;T[O]&&T[O].resizable===!1;)b==="next"?O+=1:O-=1;return T[O]},h=function E(T,A){!T||(u.value=T,T.forEach(function(b,O){var N=x(T,O-1,"prev"),G=x(T,O+1,"next"),L=A?f.value[A.colKey].prev:G,X=A?f.value[A.colKey].next:N,Z=O===0?L:N,I=O===T.length-1?X:G;f.value[b.colKey]={prev:Z,next:I,current:{prevSibling:x(T,O-1,"prev"),nextSibling:x(T,O+1,"next")}},E(b.children,b)}))},p={isDragging:!1,draggingCol:null,draggingStart:0,effectCol:"next"},m=Sn({display:"none",height:"10px",left:"10px",bottom:"0"}),S=function(T){return T.fixed==="right"&&a.right},g=function(T,A){if(!(!c.value||p.isDragging||!T.target)){var b=T.target.closest("th"),O=b.getAttribute("data-colkey");if(!!u.value.find(function(J){return J.colKey===O})){var N=b.getBoundingClientRect(),G=N.right-T.pageX<=oc,L=T.pageX-N.left<=oc,X=S(A);if(G||X){var Z,I=(Z=A.resizable)!==null&&Z!==void 0?Z:!0;if(I){b.style.cursor=G||X&&L?"col-resize":"";var z=G&&!X||X&&L;p.draggingCol=z?b:b.nextElementSibling,p.effectCol="next";return}}else if(L){var U=b.previousElementSibling;if(U){var V,q,ee=(V=f.value[A.colKey])===null||V===void 0?void 0:V.prev,Y=(q=ee==null?void 0:ee.resizable)!==null&&q!==void 0?q:!0;if(Y){b.style.cursor="col-resize",p.draggingCol=U,p.effectCol="prev";return}}}b.style.cursor="",p.draggingCol=null,p.effectCol=null}}},w=function(T){var A,b,O=Cu(T.minWidth)?T.minWidth:parseInt(T.minWidth||"0",10);return{minColWidth:Math.max(((A=T.resize)===null||A===void 0?void 0:A.minWidth)||Cx,O),maxColWidth:((b=T.resize)===null||b===void 0?void 0:b.maxWidth)||Tx}},C=function(T,A,b,O){var N=b.right-O.left,G=b.left-O.left,L=p.effectCol==="next"?T:A,X=w(L),Z=X.minColWidth,I=X.maxColWidth;return{resizeLinePos:N,minResizeLineLeft:G+Z,maxResizeLineLeft:G+I}},F=function(T,A,b,O,N){var G=O.left-N.left,L=T.dataset.colkey===A.colKey?A:b,X=O.left-N.left,Z=w(L),I=Z.minColWidth,z=Z.maxColWidth;return{resizeLinePos:G,minResizeLineLeft:X+(O.width-z),maxResizeLineLeft:X+(O.width-I)}},_=function(T,A){var b=T.left-A.left,O=T.left-A.left;return{resizeLinePos:b,minResizeLineLeft:O,maxResizeLineLeft:O}},R=function(T){var A=0;return u.value.forEach(function(b){A+=T[b.colKey]}),A},y=function(T,A,b,O){var N=!0;if(A){var G=w(A),L=G.minColWidth,X=G.maxColWidth,Z=T[A.colKey]+b;N=Z<L||Z>X}return!(N||r.value||O===u.value.length-1)},W=function(T,A,b,O){return A?C(T,A,b,O):_(b,O)},D=function(T,A,b){var O,N,G;if(!!p.draggingCol){var L=p.draggingCol,X=L.getBoundingClientRect(),Z=(O=t.value)===null||O===void 0?void 0:O.getBoundingClientRect(),I=(N=f.value[A.colKey])===null||N===void 0?void 0:N.next,z=(G=f.value[A.colKey])===null||G===void 0?void 0:G.prev,U=S(A)?F(L,A,I,X,Z):W(A,I,X,Z),V=U.resizeLinePos,q=U.minResizeLineLeft,ee=U.maxResizeLineLeft;if(p.isDragging=!0,p.draggingStart=T.x,c!=null&&c.value){m.display="block",m.height="".concat(Z.bottom-X.top,"px"),m.left="".concat(V,"px");var Y=t.value.parentElement.getBoundingClientRect();m.bottom="".concat(Y.bottom-Z.bottom,"px")}var J=function ce(){var K;if(!!p.isDragging){var Oe=V-parseFloat(m.left)||0,Ie=n("calculate"),Le=(K=f.value[A.colKey])===null||K===void 0?void 0:K.current;if(!!Le){var Pe=p.effectCol==="next"?Le.nextSibling:Le.prevSibling,ve=Ex({},Ie),Ye=A.resizable!==!1?A:Pe,dr=p.effectCol==="next"?Le.nextSibling:A,hr=y(ve,dr,Oe,b);p.effectCol==="next"?S(A)?L.dataset.colkey!==A.colKey?ve[I.colKey]+=Oe:ve[Ye.colKey]+=Oe:(ve[Ye.colKey]-=Oe,hr&&(ve[I.colKey]+=Oe)):p.effectCol==="prev"&&(hr&&(ve[Ye.colKey]+=Oe),z&&(ve[z.colKey]-=Oe)),i(ve);var kr=R(ve);o(Math.round(kr)),s(),p.isDragging=!1,p.draggingCol=null,p.effectCol=null,L.style.cursor="",m.display="none",m.left="0",cr(document,"mouseup",ce),cr(document,"mousemove",Q),document.onselectstart=d,document.ondragstart=v,l==null||l({columnsWidth:ve})}}},Q=function(K){if(p.isDragging){var Oe=V+K.x-p.draggingStart;m.left="".concat(Math.min(Math.max(Oe,q),ee),"px")}};Er(document,"mouseup",J),Er(document,"mousemove",Q),document.onselectstart=function(){return!1},document.ondragstart=function(){return!1}}};return{resizeLineRef:c,resizeLineStyle:m,onColumnMouseover:g,onColumnMousedown:D,setEffectColMap:h}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Fx(){}var Ax=Fx,Ps=mv,Ox=Ax,Dx=Tu,Rx=1/0,Ix=Ps&&1/Dx(new Ps([,-0]))[1]==Rx?function(e){return new Ps(e)}:Ox,Px=Ix,Nx=Su,Lx=du,Bx=hu,Mx=Eu,Kx=Px,jx=Tu,Wx=200;function Ux(e,r,t){var a=-1,n=Lx,i=e.length,o=!0,s=[],l=s;if(t)o=!1,n=Bx;else if(i>=Wx){var c=r?null:Kx(e);if(c)return jx(c);o=!1,n=Mx,l=new Nx}else l=r?[]:s;e:for(;++a<i;){var f=e[a],u=r?r(f):f;if(f=t||f!==0?f:0,o&&u===u){for(var d=l.length;d--;)if(l[d]===u)continue e;r&&l.push(u),s.push(f)}else n(l,u,t)||(l!==s&&l.push(u),s.push(f))}return s}var Hx=Ux,Vx=Z1,zx=d1,sc=Hx;function $x(e,r,t){var a=e.length;if(a<2)return a?sc(e[0]):[];for(var n=-1,i=Array(a);++n<a;)for(var o=e[n],s=-1;++s<a;)s!=n&&(i[n]=Vx(i[n]||o,e[s],r,t));return sc(zx(i,1),r,t)}var Gx=$x,Xx=yv,Yx=wv,qx=Gx,Jx=_v,Zx=u1,Qx=Yx(function(e){var r=Zx(e);return r=typeof r=="function"?r:void 0,qx(Xx(e,Jx),void 0,r)}),eg=Qx;function lc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Un(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?lc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):lc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function jl(e,r,t,a){var n=t==null?void 0:t.get(e.colKey||r);if(!n)return{};var i=ue(ue(ue(ue({},a.left,e.fixed==="left"),a.right,e.fixed==="right"),a.lastLeft,e.fixed==="left"&&n.lastLeftFixedCol),a.firstRight,e.fixed==="right"&&n.firstRightFixedCol),o={left:e.fixed==="left"?"".concat(n.left,"px"):void 0,right:e.fixed==="right"?"".concat(n.right,"px"):void 0};return{style:o,classes:i}}function rg(e,r,t,a,n,i){if(!a||!a.length)return{style:void 0,classes:void 0};var o=r<a[0],s=r>t-1-a[1],l=t-a[1],c=(n==null?void 0:n.get(e))||{},f=ue(ue(ue(ue({},i.top,o),i.bottom,s),i.firstBottom,r===l),i.withoutBorderBottom,r===l-1),u={top:o?"".concat(c.top,"px"):void 0,bottom:s?"".concat(c.bottom,"px"):void 0};return{style:u,classes:f}}function tg(e,r,t,a){var n=Cr(e),i=n.columns,o=n.tableLayout,s=n.tableContentWidth,l=n.fixedRows,c=n.firstFullRow,f=n.lastFullRow,u=n.maxHeight,d=n.headerAffixedTop,v=n.footerAffixedBottom,x=n.bordered,h=n.resizable,p=n.allowResizeColumnWidth,m=ye([]),S=ye(),g=ye(),w=ye(!1),C=ye(!1),F=ye(),_=ye(6),R=ye(new Map),y=Sn({left:!1,right:!1}),W=ye({left:0,top:0}),D=ye(0),E=ye(0),T=ye({}),A=ye(!1),b=ye(!1),O=ye(!1),N=le(function(){var Ae,de;return(Ae=(de=p.value)!==null&&de!==void 0?de:h.value)!==null&&Ae!==void 0?Ae:!1}),G=le(function(){var Ae;return!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom||((Ae=e.scroll)===null||Ae===void 0?void 0:Ae.type)==="virtual")});function L(Ae){F.value=Ae}function X(Ae){for(var de=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Map,be=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ke=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,me=arguments.length>4?arguments[4]:void 0,De=0,Ke=Ae.length;De<Ke;De++){var Ne,Be=Ae[De];["left","right"].includes(Be.fixed)&&(A.value=!0),Be.fixed==="right"&&(b.value=!0),Be.fixed==="left"&&(O.value=!0);var tr=Be.colKey||De,sr={col:Be,parent:me,index:De};de.set(tr,sr),(Ne=Be.children)!==null&&Ne!==void 0&&Ne.length&&X(Be.children,de,be,ke+1,sr),be[ke]?be[ke].push(sr):be[ke]=[sr]}return{newColumnsMap:de,levelNodes:be}}var Z=function Ae(de,be){for(var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},me=0,De=de.length;me<De;me++){var Ke,Ne=de[me];if(Ne.fixed==="right")return;for(var Be=be.get(Ne.colKey||me),tr=me-1;tr>=0&&de[tr].fixed!=="left";)tr-=1;var sr=de[tr],wr=me===0&&(ke==null?void 0:ke.left)||0,Fr=be.get((sr==null?void 0:sr.colKey)||me-1);Be&&(Be.left=((Fr==null?void 0:Fr.left)||wr)+((Fr==null?void 0:Fr.width)||0)),(Ke=Ne.children)!==null&&Ke!==void 0&&Ke.length&&Ae(Ne.children,be,Be)}},I=function Ae(de,be){for(var ke=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},me=de.length-1;me>=0;me--){var De,Ke=de[me];if(Ke.fixed==="left")return;for(var Ne=be.get(Ke.colKey||me),Be=me+1;Be<de.length&&de[Be].fixed!=="right";)Be+=1;var tr=de[Be],sr=me===de.length-1&&(ke==null?void 0:ke.right)||0,wr=be.get((tr==null?void 0:tr.colKey)||me+1);Ne&&(Ne.right=((wr==null?void 0:wr.right)||sr)+((wr==null?void 0:wr.width)||0)),(De=Ke.children)!==null&&De!==void 0&&De.length&&Ae(Ke.children,be,Ne)}},z=function(de,be){if(!!de){for(var ke=0,me=de.length;ke<me;ke++)for(var De=de[ke].children,Ke=0,Ne=De.length;Ke<Ne;Ke++){var Be,tr=De[Ke],sr=tr.dataset.colkey;sr||Nr.warn("TDesign Table","".concat(tr.innerText," missing colKey. colKey is required for fixed column feature."));var wr=be.get(sr||Ke);wr!=null&&(Be=wr.col)!==null&&Be!==void 0&&Be.fixed&&be.set(sr,Un(Un({},wr),{},{width:tr.getBoundingClientRect().width}))}Z(i.value,be),I(i.value,be)}},U=function(de,be,ke,me){for(var De=l.value||[],Ke=_r(De,2),Ne=Ke[0],Be=Ke[1],tr=e.data,sr=e.rowKey,wr=sr===void 0?"id":sr,Fr=0;Fr<Ne;Fr++){var Wt=de[Fr],ia=_e(tr[Fr],wr),ft=be.get(ia)||{},ha=_e(tr[Fr-1],wr),yt=be.get(ha)||{},za=0;Fr===0&&(za=(ke==null?void 0:ke.getBoundingClientRect().height)||0),ft.top=(yt.top||za)+(yt.height||0),be.set(ia,Un(Un({},ft),{},{height:(Wt==null?void 0:Wt.getBoundingClientRect().height)||0}))}for(var Ut=tr.length-1;Ut>=tr.length-Be;Ut--){var Ht=de[Ut],er=_e(tr[Ut],wr),Ve=be.get(er)||{},Sr=_e(tr[Ut+1],wr),Zr=be.get(Sr)||{},Wr=0;Ut===tr.length-1&&(Wr=(me==null?void 0:me.getBoundingClientRect().height)||0),Ve.bottom=(Zr.bottom||Wr)+(Zr.height||0),be.set(er,Un(Un({},Ve),{},{height:(Ht==null?void 0:Ht.getBoundingClientRect().height)||0}))}},V=function(de,be){if(R.value.clear(),!!de){var ke=de.querySelector("thead");ke&&z(ke.children,be);var me=de.querySelector("tbody"),De=de.querySelector("tfoot");me&&U(me.children,be,ke,De),R.value=be}},q,ee=function(de,be){if(!(!A.value||!de)){var ke=de.scrollLeft;if(!(q===ke&&(!be||!be.skipScrollLimit))){q=ke;var me=de.clientWidth+ke<de.scrollWidth,De=ke>0;y.left===De&&y.right===me||(y.left=De&&O.value,y.right=me&&b.value)}}},Y=function(de){for(var be=0;be<de.length;be++)for(var ke=de[be],me=0,De=ke.length;me<De;me++){var Ke=ke[me],Ne=ke[me+1],Be=Ke.parent,tr=!Be||(Be==null?void 0:Be.lastLeftFixedCol);tr&&Ke.col.fixed==="left"&&(Ne==null?void 0:Ne.col.fixed)!=="left"&&(Ke.lastLeftFixedCol=!0);var sr=ke[me-1],wr=!Be||(Be==null?void 0:Be.firstRightFixedCol);wr&&Ke.col.fixed==="right"&&(sr==null?void 0:sr.col.fixed)!=="right"&&(Ke.firstRightFixedCol=!0)}},J=function(){var de=X(i.value),be=de.newColumnsMap,ke=de.levelNodes;Y(ke);var me=setTimeout(function(){var De;(A.value||(De=l.value)!==null&&De!==void 0&&De.length)&&V(g.value,be),clearTimeout(me)},0);return function(){clearTimeout(me)}},Q=function(){var de=setTimeout(function(){if(!!g.value){w.value=g.value.scrollHeight>g.value.clientHeight,C.value=g.value.scrollWidth>g.value.clientWidth;var be=g.value.getBoundingClientRect();W.value={top:be.top,left:be.left},clearTimeout(de)}},0)},ce=function(de){E.value!==de&&(E.value=de)},K=function(){var de,be,ke=(de=g.value)===null||de===void 0?void 0:de.getBoundingClientRect();if(!!ke){var me=w.value?_.value:0;D.value=ke.width-me-(e.bordered?1:0);var De=F==null||(be=F.value)===null||be===void 0?void 0:be.getBoundingClientRect();De!=null&&De.width&&ce(De.width)}},Oe=function(){var de,be,ke,me,De,Ke,Ne,Be;(de=a.paginationAffixRef.value)===null||de===void 0||(be=de.handleScroll)===null||be===void 0||be.call(de),(ke=a.horizontalScrollAffixRef.value)===null||ke===void 0||(me=ke.handleScroll)===null||me===void 0||me.call(ke),(De=a.headerTopAffixRef.value)===null||De===void 0||(Ke=De.handleScroll)===null||Ke===void 0||Ke.call(De),(Ne=a.footerBottomAffixRef.value)===null||Ne===void 0||(Be=Ne.handleScroll)===null||Be===void 0||Be.call(Ne)},Ie=function(de){for(var be={},ke=0,me=de.length;ke<me;ke++)for(var De=de[ke].children,Ke=0,Ne=De.length;Ke<Ne;Ke++){var Be=De[Ke],tr=Be.dataset.colkey;be[tr]=Be.getBoundingClientRect().width}return be},Le=function(de){if(de instanceof HTMLCollection){if(N.value)return;T.value=Ie(de)}else T.value=T.value||{},Object.entries(de).forEach(function(be){var ke=_r(be,2),me=ke[0],De=ke[1];T.value[me]=De});return T.value},Pe=function(){var de=setTimeout(function(){var be;if(K(),!G.value){var ke=(be=g.value)===null||be===void 0?void 0:be.querySelector("thead");!ke||(Le(ke.children),clearTimeout(de))}},0)},ve=function(){T.value={}},Ye=function(de){var be,ke,me;(be=e.onScrollX)===null||be===void 0||be.call(e,{e:de}),(ke=e.onScrollY)===null||ke===void 0||ke.call(e,{e:de}),(me=e.onScroll)===null||me===void 0||me.call(e,{e:de})},dr=function(de){if(de==="calculate"){var be,ke=(be=g.value)===null||be===void 0||(be=be.querySelector("thead"))===null||be===void 0?void 0:be.children;return Ie(ke)}return T.value||{}};Ge([m,i,x,o,s,w,C,A,l,c,f],J,{immediate:!0}),Ge([A,i],function(){var Ae=setTimeout(function(){A.value&&ee(g.value),clearTimeout(Ae)},0)},{immediate:!0}),Ge([u,m,i,x,g],function(){g.value&&Q()},{immediate:!0}),Ge(t,function(){ve()}),Ge([m,x,o,l,w,d,v,s],function(){var Ae=setTimeout(function(){Pe(),Oe(),clearTimeout(Ae)},60)},{immediate:!0}),Ge([t],function(Ae,de){var be=_r(Ae,1),ke=be[0],me=_r(de,1),De=me[0],Ke=ke.map(function(ft){return ft.colKey}),Ne=De.map(function(ft){return ft.colKey});if(Ke.length<Ne.length){var Be=eg(Ne,Ke),tr=dr("calculate"),sr=0;Be.forEach(function(ft){sr+=tr[ft]});var wr=ri(tr,Ne),Fr=Object.values(wr).reduce(function(){var ft=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,ha=arguments.length>1?arguments[1]:void 0;return ft+ha}),Wt=g.value.clientWidth,ia=Fr-sr;ce(Math.max(Wt,ia))}});var hr=function(){Pe(),Q(),Oe(),(A.value||w.value)&&(J(),ee(g.value,{skipScrollLimit:!0}))},kr=Il(function(){hr()},30),Qe=null;function zr(Ae){typeof window>"u"||ul()<11||typeof window.ResizeObserver>"u"||(cr(window,"resize",kr),Qe=new window.ResizeObserver(function(){var de=setTimeout(function(){hr(),clearTimeout(de)},200)}),Qe.observe(Ae),S.value=Ae)}aa(function(){var Ae=f1();_.value=Ae,Pe();var de=A.value||w.value||!G.value||!m.value.length,be=typeof window<"u",ke=be&&typeof window.ResizeObserver<"u";(de&&ul()<11||!ke)&&Er(window,"resize",kr)}),xs(function(){var Ae,de;typeof window<"u"&&cr(window,"resize",kr),(Ae=Qe)===null||Ae===void 0||Ae.unobserve(S.value),(de=Qe)===null||de===void 0||de.disconnect()});var ge=function(de){m.value=de},Fe=function(){J(),Q()};return{tableWidth:D,tableElmWidth:E,thWidthList:T,isFixedHeader:w,isWidthOverflow:C,tableContentRef:g,isFixedColumn:A,showColumnShadow:y,rowAndColFixedPosition:R,virtualScrollHeaderPos:W,scrollbarWidth:_,setData:ge,refreshTable:hr,setTableElmWidth:ce,emitScrollEvent:Ye,updateThWidthListHandler:Pe,updateColumnFixedShadow:ee,setUseFixedTableElmRef:L,getThWidthList:dr,updateThWidthList:Le,addTableResizeObserver:zr,updateTableAfterColumnResize:Fe}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function cc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ag(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?cc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):cc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function ng(e,r){var t=Cr(e),a=t.pagination,n=t.data,i=t.disableDataPage,o=ta(),s=o.classPrefix,l=ye(e.pagination),c=ye([]),f=ye(!1),u=function(){var x=arguments.length>0&&arguments[0]!==void 0?arguments[0]:1,h=arguments.length>1&&arguments[1]!==void 0?arguments[1]:10,p=e.data,m=Boolean(!i.value&&p.length>h);if(f.value=m,m){var S=(x-1)*h,g=x*h;c.value=p.slice(S,g)}else c.value=p};Ge(function(){var v,x;return[(v=a.value)===null||v===void 0?void 0:v.current,(x=a.value)===null||x===void 0?void 0:x.pageSize,n.value.length,i]},function(){if(!(!a.value||!a.value.current)){var v=a.value,x=v.current,h=v.pageSize;l.value={current:x,pageSize:h},u(a.value.current,a.value.pageSize)}},{immediate:!0}),Ge([n],function(){var v,x;if(!(!a.value||!a.value.defaultCurrent)){var h=Boolean(a.value.current);h||u((v=l.value.current)!==null&&v!==void 0?v:a.value.defaultCurrent,(x=l.value.pageSize)!==null&&x!==void 0?x:a.value.defaultPageSize)}},{immediate:!0});var d=function(){if(!e.pagination)return null;var x=ag({},e.pagination);return delete x.onChange,te("div",{class:"".concat(s.value,"-table__pagination")},[te(a1,Or(x,{onChange:function(p){var m,S,g;(m=e.pagination)===null||m===void 0||(S=m.onChange)===null||S===void 0||S.call(m,p),l.value=p,u(p.current,p.pageSize),(g=e.onPageChange)===null||g===void 0||g.call(e,p,c.value)}}),{totalContent:r.slots.totalContent})])};return{isPaginateData:f,dataSource:c,innerPagination:l,renderPagination:d}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ig(e){var r=ye(),t=ye(),a=ye(),n=ye(),i=ye(),o=ye(!0),s=ye(!0),l=ye(!0),c=!1,f=!1,u=le(function(){return e.scroll&&e.scroll.type==="virtual"&&(e.scroll.threshold||100)<e.data.length}),d=le(function(){return!!(e.headerAffixedTop||e.footerAffixedBottom||e.horizontalScrollAffixedBottom)}),v=0,x=function(Y){if(!(!d.value&&!u.value)){var J=Y;if(!J&&r.value&&(v=0,J=r.value),!!J){var Q=J.scrollLeft;if(v!==Q){v=Q;for(var ce=[r.value,t.value,a.value,n.value],K=0,Oe=ce.length;K<Oe;K++)ce[K]&&Y!==ce[K]&&(ce[K].scrollLeft=Q)}}}},h=function(Y,J,Q){return J.top+Q<Y.top&&Y.top>Y.height},p=function(Y){return y1(Y)?0:Y.offsetTop||0},m=function(){var Y,J,Q;if(!(!d.value&&!u.value)){var ce=(Y=r.value)===null||Y===void 0?void 0:Y.getBoundingClientRect(),K=(J=r.value)===null||J===void 0||(J=J.querySelector("thead"))===null||J===void 0?void 0:J.getBoundingClientRect(),Oe=(K==null?void 0:K.height)||0,Ie=(Q=a.value)===null||Q===void 0?void 0:Q.getBoundingClientRect();if((e.headerAffixedTop||u.value)&&t.value){var Le=p(e.headerAffixProps||e.headerAffixedTop),Pe=(Ie==null?void 0:Ie.height)||0,ve=Math.abs(ce.top)<ce.height-Oe-Le-Pe;u.value&&(ve=ce.top>-1*K.height),o.value=ve}if(e.footerAffixedBottom&&a!==null&&a!==void 0&&a.value)s.value=h(Ie,ce,Oe);else if(e.horizontalScrollAffixedBottom&&n!==null&&n!==void 0&&n.value){var Ye=n.value.getBoundingClientRect();s.value=h(Ye,ce,Oe)}if(e.paginationAffixedBottom&&i.value){var dr=i.value.getBoundingClientRect();l.value=h(dr,ce,Oe)}}},S=function(){m()},g=function(){x(a.value)},w=function(){x(t.value)},C=function(){x(n.value)},F=function(){x(r.value)},_=function(){Er(a.value,"scroll",g)},R=function(){cr(a.value,"scroll",g)},y=function(){Er(t.value,"scroll",w),N()},W=function(){c||cr(t.value,"scroll",w),G()},D=function(){Er(n.value,"scroll",C)},E=function(){cr(n.value,"scroll",C)},T=function(){Er(r.value,"scroll",F),N()},A=function(){c||cr(r.value,"scroll",F),G()},b=function(){c=!0},O=function(){c=!1,f||(cr(t.value,"scroll",w),cr(r.value,"scroll",F))},N=function(){f=!0},G=function(){f=!1},L=[],X=function(Y){var J=Il(function(Oe){cr(Y,"scroll",Oe)},200);function Q(){x(Y),J(Q)}function ce(Oe){Oe.composedPath().includes(Y)&&(L.forEach(function(Ie){return Ie()}),L.length=0,Er(Y,"scroll",Q),J(Q),L.push(function(){cr(Y,"scroll",Q)}))}Er(Y,"touchstart",ce);function K(){cr(Y,"touchstart",ce)}return{removeElementTouchScrollListener:K}},Z=[],I=function(){Z.forEach(function(Y){return Y()}),Z.length=0},z=function(){cr(window,"mousedown",b),cr(window,"mouseup",O),I(),t.value&&(cr(t.value,"mouseenter",y),cr(t.value,"mouseleave",W)),a.value&&(cr(a.value,"mouseenter",_),cr(a.value,"mouseleave",R)),r.value&&(cr(r.value,"mouseenter",T),cr(r.value,"mouseleave",A)),n.value&&(cr(n.value,"mouseenter",D),cr(n.value,"mouseleave",E))},U=function(){if(Er(window,"mousedown",b),Er(window,"mouseup",O),z(),t.value){Er(t.value,"mouseenter",y),Er(t.value,"mouseleave",W);var Y=X(t.value),J=Y.removeElementTouchScrollListener;Z.push(J)}if(e.footerAffixedBottom&&a.value){Er(a.value,"mouseenter",_),Er(a.value,"mouseleave",R);var Q=X(a.value),ce=Q.removeElementTouchScrollListener;Z.push(ce)}if(e.horizontalScrollAffixedBottom&&n.value){Er(n.value,"mouseenter",D),Er(n.value,"mouseleave",E);var K=X(n.value),Oe=K.removeElementTouchScrollListener;Z.push(Oe)}if((d.value||u.value)&&r.value){Er(r.value,"mouseenter",T),Er(r.value,"mouseleave",A);var Ie=X(r.value),Le=Ie.removeElementTouchScrollListener;Z.push(Le)}},V=function(){if(!(!d.value&&!e.paginationAffixedBottom))var Y=setTimeout(function(){d.value||e.paginationAffixedBottom?Er(document,"scroll",S):cr(document,"scroll",S),clearTimeout(Y)})};Ge([t,a,n,r],function(){U(),x(),m()}),Ge(d,V),Ge(function(){return[e.data,e.columns,e.headerAffixedTop,e.footerAffixedBottom,e.horizontalScrollAffixedBottom]},function(){x()}),xs(function(){cr(document,"scroll",S),z(),t.value=null,a.value=null,n.value=null,r.value=null});var q=function(Y){r.value=Y,V()};return{showAffixHeader:o,showAffixFooter:s,showAffixPagination:l,affixHeaderRef:t,affixFooterRef:a,horizontalScrollbarRef:n,paginationRef:i,onHorizontalScroll:x,setTableContentRef:q,updateAffixHeaderOrFooter:m}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Wl(e,r){if(!!e){for(var t=e instanceof Array?e:[e],a={},n=0;n<t.length;n++){var i=t[n];if(!!i){var o=or(i)?i(r):i;a=o instanceof Array?Wl(o,r):Object.assign(a,o)}}return a}}function Ul(e,r,t){for(var a=e instanceof Array?e:[e],n=r.row,i=r.rowIndex,o=[],s=0,l=a.length;s<l;s++){var c=a[s],f=or(c)?c(r):c;if(ol(f)&&!(f instanceof Array)){f[i]&&(f=f[i]);var u=_e(n,t||"id");f[u]&&(f=f[u])}else f instanceof Array&&(f=Ul(f,r,t));o=o.concat(f)}return o}function Iu(e,r){for(var t=e instanceof Array?e:[e],a=[],n=0,i=t.length;n<i;n++){var o=t[n];or(o)?a.push(o(r)):a.push(o)}return a}function Pu(e,r){if(!(!e||!r)){var t=e==null?void 0:e.find(function(s){return s.colKey===r});if(t)return t;for(var a=0,n=e.length;a<n;a++){var i;if((i=e[a])!==null&&i!==void 0&&(i=i.children)!==null&&i!==void 0&&i.length){var o;return Pu((o=e[a])===null||o===void 0?void 0:o.children,r)}}}}function go(e,r){return Kt(e)==="object"?e:Kt(r)==="object"?r:{}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function og(e,r,t){var a=le(function(){return Math.max(t.rowHeight||48,48)}),n=ye(!1),i=le(function(){return(t==null?void 0:t.type)==="lazy"&&!n.value}),o=!p1&&window.requestAnimationFrame||function(l){return setTimeout(l,16.6)},s=function(){n.value||o(function(){n.value=!0})};return aa(function(){(t==null?void 0:t.type)==="lazy"&&Ba(function(){var l=Math.max(10,t.bufferSize||10),c=a.value*l;!(r!=null&&r.value)||!(e!=null&&e.value)||gu(r.value,e.value,s,c)})}),{hasLazyLoadHolder:i,tRowHeight:a}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Ui(e,r,t,a){var n=_e(e,r);return n===void 0&&Nr.error("Table","rowKey is wrong, can not get unique identifier of row."),[n,t||a].join("_")}function Nu(e,r,t,a){var n=ye(new Map),i=function(l,c){var f=l.rowIndex,u=l.colIndex;if(!(!c.rowspan&&!c.colspan)){for(var d=f+(c.rowspan||1),v=u+(c.colspan||1),x=f;x<d;x++)for(var h=u;h<v;h++)if(x!==f||h!==u){if(!e.value[x]||!r.value[h])return;var p=Ui(e.value[x],t.value,r.value[h].colKey,h),m=n.value.get(p)||{};m.skipped=!0,n.value.set(p,m)}}},o=function(l,c,f){var u;if((u=n.value)===null||u===void 0||u.clear(),!(!l||!f))for(var d=0,v=l.length;d<v;d++)for(var x=l[d],h=0,p=c.length;h<p;h++){var m=c[h],S={row:x,col:m,rowIndex:d,colIndex:h},g=Ui(x,t.value,m.colKey,h),w=n.value.get(g)||{},C=f(S)||{};(C.rowspan||C.colspan||w.rowspan||w.colspan)&&(C.rowspan&&(w.rowspan=C.rowspan),C.colspan&&(w.colspan=C.colspan),n.value.set(g,w)),i==null||i(S,w)}};return Ge(function(){return[e.value,r.value,a]},function(){o(e.value,r.value,a==null?void 0:a.value)},{immediate:!0}),{skipSpansMap:n}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function fc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Ft(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?fc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):fc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function sg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var Lu=["rowKey","rowClassName","columns","fixedRows","footData","rowAttributes","rowspanAndColspan","scroll","cellEmptyContent","pagination","attach","onCellClick","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup"],Bu=["click","dblclick","mouseover","mousedown","mouseenter","mouseleave","mouseup"];function Yo(e,r,t){var a=e.col,n=e.row,i=e.rowIndex;if(a.colKey==="serial-number"){var o=(t==null?void 0:t.pagination)||{},s=o.current,l=o.pageSize,c=o.defaultCurrent,f=o.defaultPageSize,u=s||c,d=l||f;return d&&u?d*(u-1)+i+1:i+1}if(or(a.cell))return a.cell(Kr,e);if(r[a.colKey])return r[a.colKey](e);if(da(a.cell)&&r[a.cell])return r[a.cell](e);if(or(a.render))return a.render(Kr,Ft(Ft({},e),{},{type:"cell"}));var v=_e(n,a.colKey);return[void 0,"",null].includes(v)?t!=null&&t.cellEmptyContent?or(t.cellEmptyContent)?t.cellEmptyContent(Kr,e):t.cellEmptyContent:r.cellEmptyContent?r.cellEmptyContent(e):r["cell-empty-content"]?r["cell-empty-content"](e):v:v}var lg=Tr({name:"TR",props:Ft(Ft({row:Object,rowIndex:Number,dataLength:Number,ellipsisOverlayClassName:String,classPrefix:String,rowAndColFixedPosition:Map,skipSpansMap:Map,virtualConfig:Object,active:Boolean,isHover:Boolean},ri(si,Lu)),{},{tableElm:{},tableContentElm:{}}),emits:["row-mounted"],setup:function(r,t){var a=Cr(r),n=a.tableContentElm,i=a.active,o=a.isHover,s=ye(null),l=Dt(),c=l.tdEllipsisClass,f=l.tableBaseClass,u=l.tableColFixedClasses,d=l.tableRowFixedClasses,v=l.tdAlignClasses,x=l.tableDraggableClasses,h=le(function(){return rg(_e(r.row,r.rowKey||"id"),r.rowIndex,r.dataLength,r.fixedRows,r.rowAndColFixedPosition,d)}),p=le(function(){return Wl(r.rowAttributes,{row:r.row,rowIndex:r.rowIndex,type:"body"})||{}}),m=le(function(){var y,W=Ul(r.rowClassName,{row:r.row,rowIndex:r.rowIndex,type:"body"},r.rowKey||"id");return[(y=h.value)===null||y===void 0?void 0:y.classes,W,ue(ue({},"".concat(r.classPrefix,"-table__row--active"),i.value),"".concat(r.classPrefix,"-table__row--hover"),o.value)].filter(function(D){return D})}),S=og(n,s,Sn(Ft(Ft({},r.scroll),{},{rowIndex:r.rowIndex}))),g=S.hasLazyLoadHolder,w=S.tRowHeight,C=function(W,D){var E={};return Bu.forEach(function(T){E["on".concat(A0(T))]=function(A){var b,O={e:A,row:W,index:D};(b=r["onRow".concat(A0(T))])===null||b===void 0||b.call(r,O)}}),E},F=function(){var W;(W=r.virtualConfig)!==null&&W!==void 0&&W.isVirtualScroll.value&&t.emit("row-mounted",{ref:s,data:r.row})};aa(function(){Ba(function(){F()})}),Pv(function(){Ba(function(){F()})});function _(y,W){var D=W.cellNode,E=y.col,T=y.colIndex,A;or(E.ellipsis)?A=E.ellipsis(Kr,y):Kt(E.ellipsis)==="object"&&or(E.ellipsis.content)?A=E.ellipsis.content(Kr,y):t.slots["ellipsis-".concat(E.colKey)]?A=t.slots["ellipsis-".concat(E.colKey)](y):t.slots.ellipsis&&(A=t.slots.ellipsis(y));var b={};Kt(E.ellipsis)==="object"&&(b="props"in E.ellipsis?E.ellipsis.props:E.ellipsis||void 0);var O=r.tableElm,N=T===0?"top-left":"top";return N=T===r.columns.length-1?"top-right":N,te(Kl,{placement:N,attach:O?function(){return O}:void 0,tooltipContent:A&&function(){return A},tooltipProps:b,overlayClassName:r.ellipsisOverlayClassName,classPrefix:r.classPrefix},sg(D)?D:{default:function(){return[D]}})}function R(y,W){var D=y.col,E=y.colIndex,T=y.rowIndex,A=W.cellSpans,b=W.dataLength,O=W.rowAndColFixedPosition,N=Yo(y,t.slots,{cellEmptyContent:W.cellEmptyContent,pagination:r.pagination}),G=jl(D,E,O,u),L=Iu(D.className,Ft(Ft({},y),{},{type:"td"})),X=[G.classes,L,ue(ue(ue(ue(ue({},c,D.ellipsis),f.tdLastRow,T+A.rowspan===b),f.tdFirstCol,E===0&&r.rowspanAndColspan),v[D.align],D.align&&D.align!=="left"),x.handle,D.colKey==="drag")],Z=function(V){var q,ee=Ft(Ft({},y),{},{e:V});D.stopPropagation&&V.stopPropagation(),(q=r.onCellClick)===null||q===void 0||q.call(r,ee)},I=or(D.attrs)?D.attrs(Ft(Ft({},y),{},{type:"td"})):D.attrs,z=Ft(Ft({},I),A);return te("td",Or({key:D.colKey||E,class:X,style:G.style},z,{onClick:Z}),[D.ellipsis?_(y,{cellNode:N}):N])}return function(){var y,W=r.columns,D=r.skipSpansMap,E=r.row,T=r.dataLength,A=r.rowAndColFixedPosition,b=W==null?void 0:W.map(function(O,N){var G={},L={row:E,col:O,rowIndex:r.rowIndex,colIndex:N},X=null;if(r.skipSpansMap.size){var Z,I,z=Ui(E,r.rowKey,O.colKey,N);if(X=D.get(z)||{},((Z=X)===null||Z===void 0?void 0:Z.rowspan)>1&&(G.rowspan=X.rowspan),((I=X)===null||I===void 0?void 0:I.colspan)>1&&(G.colspan=X.colspan),X.skipped)return null}return R(L,{dataLength:T,rowAndColFixedPosition:A,columnLength:W.length,cellSpans:G,cellEmptyContent:r.cellEmptyContent})});return te("tr",Or({ref:s},p.value,{style:(y=h.value)===null||y===void 0?void 0:y.style,class:m.value},C(E,r.rowIndex)),[g.value?[te("td",{style:{height:"".concat(w.value,"px"),border:"none"}},null)]:b])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function uc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function po(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?uc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):uc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Mu=["bordered","rowKey","rowClassName","rowAttributes","loading","empty","fixedRows","firstFullRow","lastFullRow","rowspanAndColspan","scroll","cellEmptyContent","pagination","attach","onCellClick","onPageChange","onRowClick","onRowDblclick","onRowMouseover","onRowMousedown","onRowMouseenter","onRowMouseleave","onRowMouseup","onScroll","onScrollX","onScrollY"],cg=Tr({name:"TBody",props:po({classPrefix:String,data:Array,columns:Array,ellipsisOverlayClassName:String,rowAndColFixedPosition:Map,showColumnShadow:Object,tableElm:{},tableWidth:Number,isWidthOverflow:Boolean,virtualConfig:Object,tableContentElm:{},handleRowMounted:Function,renderExpandedRow:Function,firstFullRow:[String,Function],lastFullRow:[String,Function],activeRow:[Array],hoverRow:[String,Number]},ri(si,Mu)),setup:function(r){var t=sn(),a=Cr(r),n=a.data,i=a.columns,o=a.rowKey,s=a.rowspanAndColspan,l=ta("table",r.locale),c=l.t,f=l.globalConfig,u=Dt(),d=u.tableFullRowClasses,v=u.tableBaseClass,x=Nu(n,i,o,s),h=x.skipSpansMap,p=le(function(){return[v.body]});return{t:c,globalConfig:f,renderTNode:t,tableFullRowClasses:d,tbodyClasses:p,tableBaseClass:v,skipSpansMap:h}},render:function(){var r=this,t,a,n,i,o=function(m){var S=r.bordered?r.tableWidth-2:r.tableWidth;return te("tr",{class:[r.tableBaseClass.emptyRow,ue({},r.tableFullRowClasses.base,r.isWidthOverflow)]},[te("td",{colspan:m.length},[te("div",{class:[r.tableBaseClass.empty,ue({},r.tableFullRowClasses.innerFullRow,r.isWidthOverflow)],style:r.isWidthOverflow?{width:"".concat(S,"px")}:{}},[r.renderTNode("empty")||r.t(r.globalConfig.empty)])])])},s=function(m,S){var g=bv(S),w=r.renderTNode(g);if(["",null,void 0,!1].includes(w))return null;var C=r.isWidthOverflow&&r.columns.find(function(R){return R.fixed==="left"}),F=[r.tableFullRowClasses.base,r.tableFullRowClasses[g]],_=r.bordered?r.tableWidth-2:r.tableWidth;return te("tr",{class:F,key:"key-full-row-".concat(S)},[te("td",{colspan:m},[te("div",{class:ue({},r.tableFullRowClasses.innerFullRow,C),style:C?{width:"".concat(_,"px")}:{}},[te("div",{class:r.tableFullRowClasses.innerFullElement},[w])])])])},l=this.columns.length,c=this.data.length,f=[],u=["classPrefix","ellipsisOverlayClassName","rowAndColFixedPosition","scroll","tableElm","tableContentElm","pagination","attach"];(t=this.data)===null||t===void 0||t.forEach(function(p,m){var S,g=r.rowKey||"id",w=_e(p,g),C=po(po({},ri(r.$props,Lu)),{},{rowKey:g,row:p,columns:r.columns,rowIndex:p.VIRTUAL_SCROLL_INDEX||m,dataLength:c,skipSpansMap:r.skipSpansMap,virtualConfig:r.virtualConfig,active:(S=r.activeRow)===null||S===void 0?void 0:S.includes(w),isHover:r.hoverRow===w},ri(r.$props,u));r.onCellClick&&(C.onCellClick=r.onCellClick);var F=te(lg,Or({key:_e(p,r.rowKey||"id")||m},C,{onRowMounted:r.handleRowMounted}),r.$slots);if(f.push(F),r.renderExpandedRow){var _={row:p,index:m,columns:r.columns,tableWidth:r.tableWidth,isWidthOverflow:r.isWidthOverflow},R=r.renderExpandedRow(_);R&&f.push(R)}});var d=[s(l,"first-full-row")].concat(f,[s(l,"last-full-row")]),v=!((a=this.data)!==null&&a!==void 0&&a.length)&&!this.loading&&!this.firstFullRow&&!this.lastFullRow,x="translateY(".concat((n=this.virtualConfig)===null||n===void 0?void 0:n.translateY.value,"px)"),h=(i=this.virtualConfig)!==null&&i!==void 0&&i.isVirtualScroll.value?{transform:x,"-ms-transform":x,"-moz-transform":x,"-webkit-transform":x}:void 0;return te("tbody",{class:this.tbodyClasses,style:po({},h)},[v?o(this.columns):d])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Ti(e){return e&&(isNaN(Number(e))?e:"".concat(e,"px"))}function Ku(e){var r=Cr(e),t=r.size,a=r.bordered,n=r.stripe,i=r.hover,o=r.verticalAlign,s=r.height,l=r.maxHeight,c=r.tableContentWidth,f=Dt(),u=f.tableBaseClass,d=f.tableAlignClasses,v=n1(),x=v.sizeClassNames,h=ta("table",e.locale),p=h.globalConfig,m=le(function(){var C;return(C=t.value)!==null&&C!==void 0?C:p.value.size}),S=le(function(){return[u.table,ue(ue(ue(ue(ue(ue(ue(ue({},x[m.value],m.value!=="medium"),u.bordered,a.value),u.striped,n.value),u.hover,i.value),u.loading,e.loading),u.affixedHeader,e.headerAffixedTop),u.rowspanAndColspan,e.rowspanAndColspan),d[o.value],o.value!=="middle")]}),g=le(function(){return{height:Ti(s.value),maxHeight:Ti(l.value)}}),w=le(function(){return{width:Ti(c.value)}});return{tableClasses:S,sizeClassNames:x,tableElementStyles:w,tableContentStyles:g}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function dc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Ga(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?dc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function fg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var hc=Tr({name:"THead",props:{classPrefix:String,ellipsisOverlayClassName:String,isFixedHeader:Boolean,thDraggable:Boolean,maxHeight:[String,Number],height:[String,Number],rowAndColFixedPosition:Map,thWidthList:Object,bordered:Boolean,isMultipleHeader:Boolean,resizable:Boolean,attach:[String,Function],spansAndLeafNodes:Object,thList:Array,columnResizeParams:Object,showColumnShadow:Object},setup:function(r,t){var a=t.slots,n=ye(),i=Dt(),o=i.tableHeaderClasses,s=i.tableBaseClass,l=le(function(){return[o.header,ue(ue(ue({},o.fixed,Boolean(r.maxHeight||r.height)),s.bordered,r.bordered&&r.isMultipleHeader),o.multipleHeader,r.isMultipleHeader)]}),c=le(function(){for(var u={},d=r.thList[0],v=0,x=d.length;v<x;v++){var h=d[v];if(h.colspan>1)for(var p=v+1;p<v+h.colspan;p++)d[p]&&(u[d[p].colKey]=!0)}return u}),f=function(d){for(var v=d;v;){var x;if(v=v.parentNode,(x=v)!==null&&x!==void 0&&(x=x.classList)!==null&&x!==void 0&&x.contains("".concat(r.classPrefix,"-table")))break}return v};return Ga(Ga({},i),{},{colspanSkipMap:c,theadClasses:l,theadRef:n,slots:a,getTableNode:f})},render:function(){var r=this,t=function(n,i){var o=new Map,s=r.spansAndLeafNodes.rowspanAndColspanMap;return r.thList.map(function(l,c){var f=l.map(function(u,d){var v;if(r.colspanSkipMap[u.colKey])return null;var x=s.get(u);if(d===0&&x.rowspan>1)for(var h=c+1;h<c+x.rowspan;h++)o.set(r.thList[h][0],!0);var p=jl(u,d,n,r.tableColFixedClasses),m={col:u,colIndex:d,row:{},rowIndex:-1},S=Iu(u.className,Ga(Ga({},m),{},{type:"th"})),g=r.showColumnShadow.left&&u.fixed==="left",w=r.showColumnShadow.right&&u.fixed==="right",C=r.thDraggable&&!(g||w),F=[p.classes,S,u.thClassName,ue(ue(ue(ue({},r.tableHeaderClasses.thBordered,o.get(u)),"".concat(r.classPrefix,"-table__th-").concat(u.colKey),u.colKey),r.tdAlignClasses[u.align],u.align&&u.align!=="left"),r.tableDraggableClasses.dragSortTh,C)],_=!((v=u.children)!==null&&v!==void 0&&v.length),R=_&&i!==null&&i!==void 0&&i[u.colKey]?"".concat(i==null?void 0:i[u.colKey],"px"):void 0,y=Ga(Ga({},p.style||{}),{},{width:R}),W=ps(r.slots,u,d),D=r.resizable||!C?{onMousedown:function(O){if(r.resizable){var N,G;(N=r.columnResizeParams)===null||N===void 0||(G=N.onColumnMousedown)===null||G===void 0||G.call(N,O,u,d)}if(!C)var L=setTimeout(function(){var X,Z=r.theadRef.querySelectorAll("th");(X=Z[d])===null||X===void 0||X.removeAttribute("draggable"),clearTimeout(L)},10)},onMousemove:function(O){var N,G;r.resizable&&((N=r.columnResizeParams)===null||N===void 0||(G=N.onColumnMouseover)===null||G===void 0||G.call(N,O,u))}}:{},E=or(u.ellipsisTitle)?u.ellipsisTitle(Kr,{col:u,colIndex:d}):void 0,T=u.ellipsisTitle!==void 0?Boolean(u.ellipsisTitle):Boolean(u.ellipsis),A=(or(u.attrs)?u.attrs(Ga(Ga({},m),{},{type:"th"})):u.attrs)||{};return u.colspan>1&&(A.colspan=u.colspan),te("th",Or({key:u.colKey,"data-colkey":u.colKey,class:F,style:y},A,x,D),[te("div",{class:r.tableBaseClass.thCellInner},[T?te(Kl,{placement:"bottom",attach:r.attach||(r.theadRef?function(){return r.getTableNode(r.theadRef)}:void 0),tooltipContent:E&&function(){return E},tooltipProps:Kt(u.ellipsisTitle)==="object"?u.ellipsisTitle:void 0,overlayClassName:r.ellipsisOverlayClassName,classPrefix:r.classPrefix},fg(W)?W:{default:function(){return[W]}}):W])])});return te("tr",{key:c},[f])})};return te("thead",{ref:"theadRef",class:this.theadClasses},[t(this.rowAndColFixedPosition,this.thWidthList)])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function vc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function mo(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?vc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):vc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var xc=Tr({name:"TFoot",props:{rowKey:String,isFixedHeader:Boolean,rowAndColFixedPosition:Map,footData:Array,columns:Array,rowAttributes:[Array,Object,Function],rowClassName:[Array,String,Object,Function],thWidthList:[Object],footerSummary:[String,Function],rowspanAndColspanInFooter:Function,virtualScroll:Boolean},setup:function(r,t){var a=sn(),n=Dt(),i=Cr(r),o=i.footData,s=i.columns,l=i.rowKey,c=i.rowspanAndColspanInFooter,f=Nu(o,s,l,c),u=f.skipSpansMap,d=function(x){var h=x.col,p=x.row;return or(h.foot)?h.foot(Kr,x):da(h.foot)&&t.slots[h.foot]?t.slots[h.foot](x)||h.foot:h.foot||_e(p,h.colKey)};return mo(mo({skipSpansMap:u},n),{},{renderTFootCell:d,renderTNode:a})},render:function(){var r,t=this;if(!this.columns)return null;var a=[this.tableFooterClasses.footer,ue({},this.tableFooterClasses.fixed,this.isFixedHeader)],n=(r=this.footData)===null||r===void 0?void 0:r.map(function(o,s){var l=Wl(t.rowAttributes,{row:o,rowIndex:s,type:"foot"}),c=Ul(t.rowClassName,{row:o,rowIndex:s,type:"foot"},t.rowKey||"id");return te("tr",Or(l,{key:s,class:c}),[t.columns.map(function(f,u){var d,v={},x=null;if(t.skipSpansMap.size){var h,p,m=Ui(o,t.rowKey,f.colKey,u);if(x=t.skipSpansMap.get(m)||{},((h=x)===null||h===void 0?void 0:h.rowspan)>1&&(v.rowspan=x.rowspan),((p=x)===null||p===void 0?void 0:p.colspan)>1&&(v.colspan=x.colspan),x.skipped)return null}var S=jl(f,u,t.rowAndColFixedPosition,t.tableColFixedClasses),g=mo({},S.style);return(d=t.thWidthList)!==null&&d!==void 0&&d[f.colKey]&&(g.width="".concat(t.thWidthList[f.colKey],"px")),te("td",Or(mo({key:f.colKey},v),{class:S.classes,style:g}),[t.renderTFootCell({row:o,rowIndex:s,col:f,colIndex:u})])})])}),i=this.renderTNode("footerSummary");return!i&&(!this.footData||!this.footData.length)?null:te("tfoot",{ref:"tFooterRef",class:a,style:{visibility:this.virtualScroll?"hidden":"visible"}},[i&&te("tr",{class:this.tableFullRowClasses.base},[te("td",{colspan:this.columns.length},[te("div",{class:this.tableFullRowClasses.innerFullElement},[i])])]),n])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ug(e,r){var t=Cr(e),a=t.data,n=t.activeRowType,i=t.activeRowKeys,o=t.defaultActiveRowKeys,s=t.disableSpaceInactiveRow,l=ye(-1),c=ye(!1),f=ye(!1),u=ye(-1),d=Ma(i,o.value,e.onActiveChange,"activeRowKeys"),v=_r(d,2),x=v[0],h=v[1],p=function(T){var A=T.row,b=T.index,O=_e(A,e.rowKey);if(n.value==="single"){var N=x.value.length>1?[O]:[];h(N,{type:"inactive",activeRowList:[{row:A,rowIndex:b}],currentRowData:A})}else if(n.value==="multiple"){for(var G=x.value.filter(function(z){return z!==O}),L=[],X=0,Z=a.value.length;X<Z;X++){var I=a.value[X];G.includes(_e(I,e.rowKey))&&L.push({row:I,rowIndex:X})}h(G,{type:"inactive",activeRowList:L,currentRowData:A})}},m=function(T){var A=T.row,b=_e(A,e.rowKey);if(n.value==="single")h([b],{activeRowList:[{row:A,rowIndex:T.index}],currentRowData:A,type:"active"});else{for(var O=x.value.concat(b),N=[],G=0,L=a.value.length;G<L;G++){var X=a.value[G];O.includes(_e(X,e.rowKey))&&N.push({row:X,rowIndex:G})}h(O,{activeRowList:N,currentRowData:A,type:"active"})}},S=function(T){document.getSelection().removeAllRanges();for(var A=T.row,b=l.value,O=Math.min(u.value,b),N=Math.max(u.value,b),G=[],L=O;L<=N;L++)G.push({row:a.value[L],rowIndex:L});var X=G.map(function(Z){return _e(Z.row,e.rowKey)});h(X,{activeRowList:G,type:"active",currentRowData:A})},g=function(){for(var T=[],A=0,b=a.value.length;A<b;A++){var O=a.value[A],N=_e(O,e.rowKey);x.value.includes(N)&&T.push({row:O,rowIndex:A})}return T},w=function(T,A){if(!!n.value){var b=T.row,O=T.index,N=_e(b,e.rowKey);c.value?(l.value=O,S(T),f.value=!0):x.value.includes(N)&&(A==null?void 0:A.action)!=="active"?s.value||(p(T),l.value=O):(m(T),l.value=O)}},C=function(){var T;h([],{activeRowList:[],currentRowData:void 0,type:"inactive"}),(T=e.onActiveRowAction)===null||T===void 0||T.call(e,{action:"clear",activeRowList:[]}),l.value=-1},F=function(){var T,A=a.value.map(function(O){return _e(O,e.rowKey)}),b=a.value.map(function(O,N){return{row:O,rowIndex:N}});h(A,{activeRowList:b,currentRowData:void 0,type:"active"}),(T=e.onActiveRowAction)===null||T===void 0||T.call(e,{action:"select-all",activeRowList:b}),l.value=-1},_=function(){f.value=!1},R=function(T){var A,b=T.code||((A=T.key)===null||A===void 0?void 0:A.trim());if(pu.test(b)){T.preventDefault();var O=Math.min(a.value.length-1,l.value+1);n.value==="single"?w({row:a.value[O],index:O,e:T},{action:"active"}):l.value=O}else if(mu.test(b)){T.preventDefault();var N=Math.max(0,l.value-1);n.value==="single"?w({row:a.value[N],index:N,e:T},{action:"active"}):l.value=N}else if(fl.test(b)){T.preventDefault();var G=l.value;if(f.value){var L;(L=e.onActiveRowAction)===null||L===void 0||L.call(e,{action:"shift-area-selection",activeRowList:g()})}else if(!s.value)w({row:a.value[G],index:G,e:T});else{var X;(X=e.onActiveRowAction)===null||X===void 0||X.call(e,{action:"space-one-selection",activeRowList:g()})}}else N0.test(b)?(c.value=!0,u.value=l.value):wu.test(b)||yu.test(b)?(C(),_()):_u.test(b)&&F();fl.test(b)||_()},y=function(T){var A,b=T.code||((A=T.key)===null||A===void 0?void 0:A.trim());N0.test(b)&&(c.value=!1)},W=function(){Er(r.value,"keydown",R),Er(r.value,"keyup",y)},D=function(){cr(r.value,"keydown",R),cr(r.value,"keyup",y)};return{tActiveRow:x,onHighlightRow:w,addHighlightKeyboardListener:W,removeHighlightKeyboardListener:D}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function dg(e,r){var t=Cr(e),a=t.hover,n=t.data,i=t.activeRowType,o=t.keyboardRowHover,s=t.disableSpaceInactiveRow,l=ye(),c=ye(-1),f=le(function(){return i.value==="single"?!1:i.value==="multiple"?!0:a.value||o.value}),u=function(m,S){var g=_e(m.row,e.rowKey);l.value===g&&(S==null?void 0:S.action)!=="hover"?s.value||(l.value=void 0):l.value=g,c.value=m.index},d=function(){l.value=void 0,c.value=-1},v=function(m){var S;if(!!f.value){var g=m.code||((S=m.key)===null||S===void 0?void 0:S.trim());if(pu.test(g)){m.preventDefault();var w=Math.min(n.value.length-1,c.value+1);u({row:n.value[w],index:w,e:m},{action:"hover"})}else if(mu.test(g)){m.preventDefault();var C=Math.max(0,c.value-1);u({row:n.value[C],index:C,e:m},{action:"hover"})}else if(fl.test(g)&&e.activeRowType!=="multiple"){var F=c.value;if(u({row:n.value[F],index:F,e:m}),!e.activeRowType){var _;(_=e.onActiveRowAction)===null||_===void 0||_.call(e,{action:"space-one-selection",activeRowList:[{row:n.value[F],rowIndex:F}]})}}else if(wu.test(g)&&!e.activeRowType){var R;l.value=void 0,(R=e.onActiveRowAction)===null||R===void 0||R.call(e,{action:"clear",activeRowList:[]})}else if(_u.test(g)&&!e.activeRowType){var y;(y=e.onActiveRowAction)===null||y===void 0||y.call(e,{action:"select-all",activeRowList:[]})}else if(yu.test(g)&&!e.activeRowType){var W;(W=e.onActiveRowAction)===null||W===void 0||W.call(e,{action:"clear",activeRowList:[]})}}},x=function(){Er(r.value,"keydown",v)},h=function(){cr(r.value,"keydown",v)};return{hoverRow:l,needKeyboardRowHover:f,clearHoverRow:d,addRowHoverKeyboardListener:x,removeRowHoverKeyboardListener:h}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function hg(e,r){var t=ye(),a=ye(!0),n=function(){if(!(!r.value||!e.value||t.value)){a.value=!1;var o=gu(e.value,null,function(){a.value=!0},10);t.value=o}};return aa(n),r.value&&Ge([r,e],n),xs(function(){var i,o;!r.value||(i=t.value)===null||i===void 0||(o=i.unobserve)===null||o===void 0||o.call(i,e.value)}),{showElement:a}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function gc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Tt(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?gc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):gc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function pc(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var vg=["page-change","cell-click","scroll","scrollX","scrollY"];Bu.map(function(e){return"row-".concat(e)}).concat(vg);var ju=Tr({name:"TBaseTable",props:Tt(Tt({},si),{},{renderExpandedRow:Function,onLeafColumnsChange:Function,thDraggable:Boolean}),emits:["show-element-change"],setup:function(r,t){var a=Cr(r),n=a.lazyLoad,i=sn(),o=ye(),s=ye(),l=ye(),c=ye(),f=ye(0),u=Dt(),d=u.classPrefix,v=u.virtualScrollClasses,x=u.tableLayoutClasses,h=u.tableBaseClass,p=u.tableColFixedClasses,m=Ku(r),S=m.tableClasses,g=m.sizeClassNames,w=m.tableContentStyles,C=m.tableElementStyles,F=ta("table",r.locale),_=F.globalConfig,R=Ru(r),y=R.isMultipleHeader,W=R.spansAndLeafNodes,D=R.thList,E=le(function(){var pe;return((pe=W.value)===null||pe===void 0?void 0:pe.leafColumns)||r.columns}),T=le(function(){var pe;return(pe=r.size)!==null&&pe!==void 0?pe:_.value.size}),A=hg(o,n),b=A.showElement,O=ye(),N=ye(),G=ye(),L=ye(),X=tg(r,t,E,{paginationAffixRef:O,horizontalScrollAffixRef:N,headerTopAffixRef:G,footerBottomAffixRef:L}),Z=X.scrollbarWidth,I=X.virtualScrollHeaderPos,z=X.tableWidth,U=X.tableElmWidth,V=X.tableContentRef,q=X.isFixedHeader,ee=X.isWidthOverflow,Y=X.isFixedColumn,J=X.thWidthList,Q=X.showColumnShadow,ce=X.rowAndColFixedPosition,K=X.setData,Oe=X.refreshTable,Ie=X.setTableElmWidth,Le=X.emitScrollEvent,Pe=X.setUseFixedTableElmRef,ve=X.updateColumnFixedShadow,Ye=X.getThWidthList,dr=X.updateThWidthList,hr=X.addTableResizeObserver,kr=X.updateTableAfterColumnResize,Qe=ig(r),zr=Qe.affixHeaderRef,ge=Qe.affixFooterRef,Fe=Qe.horizontalScrollbarRef,Ae=Qe.paginationRef,de=Qe.showAffixHeader,be=Qe.showAffixFooter,ke=Qe.showAffixPagination,me=Qe.onHorizontalScroll,De=Qe.setTableContentRef,Ke=Qe.updateAffixHeaderOrFooter,Ne=ng(r,t),Be=Ne.dataSource,tr=Ne.innerPagination,sr=Ne.isPaginateData,wr=Ne.renderPagination,Fr=kx({isWidthOverflow:ee,tableContentRef:V,showColumnShadow:Q,getThWidthList:Ye,updateThWidthList:dr,setTableElmWidth:Ie,updateTableAfterColumnResize:kr,onColumnResizeChange:r.onColumnResizeChange}),Wt=Fr.resizeLineRef,ia=Fr.resizeLineStyle,ft=Fr.setEffectColMap,ha=le(function(){return[S.value,ue(ue(ue(ue(ue(ue(ue(ue({},h.headerFixed,q.value),h.columnFixed,Y.value),h.widthOverflow,ee.value),h.multipleHeader,y.value),p.leftShadow,Q.left),p.rightShadow,Q.right),h.columnResizableTable,r.resizable),"".concat(d,"-table__row--active-").concat(r.activeRowType),r.activeRowType)]}),yt=le(function(){return[[x[r.tableLayout]]]}),za=le(function(){return r.bordered&&q.value&&(y.value&&ee.value||!y.value)}),Ut=le(function(){var pe,fe;if(!r.bordered)return 0;var xe=(pe=c.value)===null||pe===void 0?void 0:pe.getBoundingClientRect(),Re=(fe=Ae.value)===null||fe===void 0?void 0:fe.getBoundingClientRect();return((xe==null?void 0:xe.height)||0)+((Re==null?void 0:Re.height)||0)}),Ht=ug(r,o),er=Ht.tActiveRow,Ve=Ht.onHighlightRow,Sr=Ht.addHighlightKeyboardListener,Zr=Ht.removeHighlightKeyboardListener,Wr=dg(r,o),_t=Wr.hoverRow,Ta=Wr.needKeyboardRowHover,Wn=Wr.clearHoverRow,ka=Wr.addRowHoverKeyboardListener,k=Wr.removeRowHoverKeyboardListener;Ge(s,function(){Pe(s.value)}),Ge(function(){return[r.data,Be]},function(){K(sr.value?Be.value:r.data)}),Ge(W,function(){var pe;(pe=r.onLeafColumnsChange)===null||pe===void 0||pe.call(r,W.value.leafColumns),ft(W.value.leafColumns,null)},{immediate:!0});var j=function(){Ba(function(){me(),Ke()})},P=le(function(){return{data:r.data,scroll:r.scroll}}),B=i1(V,P),M=-1,H=function(fe){var xe=fe.target||fe.srcElement,Re=xe.scrollTop;M!==Re?B.isVirtualScroll.value&&B.handleScroll():(M=-1,ve(xe)),M=Re,Le(fe)},ae=function(){var fe;!s.value||(f.value=(fe=s.value.querySelector("tfoot"))===null||fe===void 0?void 0:fe.getBoundingClientRect().height)},oe=function(fe){if(!!V.value){for(var xe=V.value.querySelector('th[data-colkey="'.concat(fe,'"]')),Re=V.value.querySelectorAll("th.t-table__cell--fixed-left"),ar=0,lr=0,Lr=Re.length;lr<Lr;lr++)ar+=Re[lr].getBoundingClientRect().width;var va=xe.getBoundingClientRect(),fn=V.value.getBoundingClientRect(),un=va.left-fn.left-ar;V.value.scrollTo({left:un,behavior:"smooth"})}};Ge(V,function(){De(V.value)}),Ge(function(){return[s.value,r.footData,r.footerSummary,r.columns]},function(){var pe=setTimeout(function(){ae(),clearTimeout(pe)},0)}),Ge(o,function(pe){hr(pe)}),aa(function(){ae(),De(V.value),hr(o.value)});var re=function(){r.activeRowType&&Sr(),Ta.value&&ka()},ne=function(){r.activeRowType&&Zr(),Ta.value&&k()},ie=function(fe){var xe;(xe=r.onRowClick)===null||xe===void 0||xe.call(r,fe),r.activeRowType&&Ve(fe),Ta.value&&Wn()};Ge([b],function(pe){var fe=_r(pe,1),xe=fe[0];t.emit("show-element-change",xe)},{immediate:!0});var we=le(function(){return sr.value?Be.value:r.data}),Ce=function(fe){var xe=fe.index;if(!xe&&xe!==0){var Re;if(!fe.key){Nr.error("Table","scrollToElement: one of `index` or `key` must exist.");return}xe=(Re=we.value)===null||Re===void 0?void 0:Re.findIndex(function(ar){return _e(ar,r.rowKey)===fe.key}),xe<0&&Nr.error("Table","".concat(fe.key," does not exist in data, check `rowKey` or `data` please."))}B.scrollToElement(Tt(Tt({},fe),{},{index:xe-1}))};return{thList:D,classPrefix:d,innerPagination:tr,globalConfig:_,tableFootHeight:f,virtualScrollHeaderPos:I,tableSize:T,tableWidth:z,tableElmWidth:U,tableRef:o,tableElmRef:s,sizeClassNames:g,tableBaseClass:h,spansAndLeafNodes:W,dynamicBaseTableClasses:ha,tableContentStyles:w,tableElementStyles:C,dividerBottom:Ut,virtualScrollClasses:v,tableLayoutClasses:x,tableElmClasses:yt,tableContentRef:V,isFixedHeader:q,isWidthOverflow:ee,isFixedColumn:Y,rowAndColFixedPosition:ce,showColumnShadow:Q,thWidthList:J,isPaginateData:sr,dataSource:Be,affixHeaderRef:zr,affixFooterRef:ge,bottomContentRef:c,paginationRef:Ae,showAffixHeader:de,showAffixFooter:be,scrollbarWidth:Z,isMultipleHeader:y,showRightDivider:za,resizeLineRef:Wt,resizeLineStyle:ia,columnResizeParams:Fr,horizontalScrollbarRef:Fe,tableBodyRef:l,virtualConfig:B,showAffixPagination:ke,tActiveRow:er,hoverRow:_t,showElement:b,scrollToElement:Ce,renderPagination:wr,renderTNode:i,onFixedChange:j,onHorizontalScroll:me,updateAffixHeaderOrFooter:Ke,onInnerVirtualScroll:H,refreshTable:Oe,scrollColumnIntoView:oe,onTableFocus:re,onTableBlur:ne,onInnerRowClick:ie,paginationAffixRef:O,horizontalScrollAffixRef:N,headerTopAffixRef:G,footerBottomAffixRef:L}},render:function(){var r,t,a=this,n,i,o,s,l,c;if(!this.showElement)return te("div",{ref:"tableRef"},null);var f=this.rowAndColFixedPosition,u=this.tableLayout,d=this.isPaginateData?this.dataSource:this.data,v=((r=this.spansAndLeafNodes)===null||r===void 0?void 0:r.leafColumns)||this.columns,x=(t=this.allowResizeColumnWidth)!==null&&t!==void 0?t:this.resizable;x&&u==="auto"&&Nr.warn("Table","table-layout can not be `auto`, cause you are using column resizable, set `table-layout: fixed` please.");var h=u==="fixed"&&this.isWidthOverflow?"100px":void 0,p=function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0;return te("colgroup",null,[v.map(function(ce){var K={width:Ti((Q||x?a.thWidthList[ce.colKey]:void 0)||ce.width)||h};return ce.minWidth&&(K.minWidth=Ti(ce.minWidth)),!K.width&&!ce.minWidth&&a.tableLayout==="fixed"&&(K.minWidth="80px"),te("col",{key:ce.colKey,style:K},null)})])},m=function(){return a.showHeader===!1?null:!!(a.virtualConfig.isVirtualScroll.value||a.headerAffixedTop)&&(a.headerAffixedTop?te(xo,Or({offsetTop:0},go(a.headerAffixedTop),{onFixedChange:a.onFixedChange,ref:"headerTopAffixRef"}),pc(T)?T:{default:function(){return[T]}}):a.isFixedHeader&&T)},S=function(){return te(xo,Or({offsetBottom:0},go(a.horizontalScrollAffixedBottom),{style:{marginTop:"-".concat(a.scrollbarWidth*2,"px")},horizontalScrollAffixedBottom:!0,ref:"horizontalScrollAffixRef"}),{default:function(){return[te("div",{ref:"horizontalScrollbarRef",class:["scrollbar",a.tableBaseClass.obviousScrollbar],style:{width:"".concat(a.tableWidth,"px"),overflow:"auto",opacity:Number(a.showAffixFooter)}},[te("div",{style:{width:"".concat(a.tableElmWidth,"px"),height:"5px"}},null)])]}})},g={isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:this.rowAndColFixedPosition,isMultipleHeader:this.isMultipleHeader,bordered:this.bordered,maxHeight:this.maxHeight,height:this.height,spansAndLeafNodes:this.spansAndLeafNodes,thList:this.thList,thWidthList:this.thWidthList,resizable:this.resizable,columnResizeParams:this.columnResizeParams,classPrefix:this.classPrefix,ellipsisOverlayClassName:this.tableSize!=="medium"?this.sizeClassNames[this.tableSize]:"",attach:this.attach,showColumnShadow:this.showColumnShadow,thDraggable:this.thDraggable},w=ul()<=11?4:0,C=this.isWidthOverflow?this.scrollbarWidth:0,F=ye((((n=this.affixHeaderRef)===null||n===void 0?void 0:n.getBoundingClientRect().height)||0)-w),_=setTimeout(function(){var J;F.value=(((J=a.affixHeaderRef)===null||J===void 0?void 0:J.getBoundingClientRect().height)||0)-w,clearTimeout(_)},0),R=le(function(){return F.value-C}),y=si.headerAffixedTop?Number(this.showAffixHeader):1,W=le(function(){return{width:"".concat(a.tableWidth,"px"),height:"".concat(R.value,"px"),opacity:y}}),D=this.bordered?1:0,E=Boolean((this.headerAffixedTop||this.virtualConfig.isVirtualScroll.value)&&this.tableWidth)&&te("div",{ref:"affixHeaderRef",style:{width:"".concat(this.tableWidth-D,"px"),opacity:Number(this.showAffixHeader)},class:["scrollbar",ue({},this.tableBaseClass.affixedHeaderElm,this.headerAffixedTop||this.virtualConfig.isVirtualScroll.value)]},[te("table",{class:this.tableElmClasses,style:Tt(Tt({},this.tableElementStyles),{},{width:"".concat(this.tableElmWidth,"px")})},[p(!0),te(hc,g,this.$slots)])]),T=te("div",{class:this.tableBaseClass.affixedHeaderWrap,style:W.value},[E]),A=this.isWidthOverflow?this.scrollbarWidth:0;this.bordered&&(A+=1);var b=Boolean(this.virtualConfig.isVirtualScroll.value||this.footerAffixedBottom),O=((i=this.footData)===null||i===void 0?void 0:i.length)||this.footerSummary||this.$slots.footerSummary,N=Boolean(b&&O&&this.tableWidth)&&te(xo,Or({class:this.tableBaseClass.affixedFooterWrap,onFixedChange:this.onFixedChange,offsetBottom:A||0},go(this.footerAffixedBottom),{style:{marginTop:"".concat(-1*(((o=this.tableFootHeight)!==null&&o!==void 0?o:0)+A),"px")},ref:"footerBottomAffixRef"}),{default:function(){return[te("div",{ref:"affixFooterRef",style:{width:"".concat(a.tableWidth-D,"px"),opacity:Number(a.showAffixFooter)},class:["scrollbar",ue({},a.tableBaseClass.affixedFooterElm,a.footerAffixedBottom||a.virtualConfig.isVirtualScroll.value)]},[te("table",{class:a.tableElmClasses,style:Tt(Tt({},a.tableElementStyles),{},{width:"".concat(a.tableElmWidth,"px")})},[p(!0),te(xc,{rowKey:a.rowKey,isFixedHeader:a.isFixedHeader,rowAndColFixedPosition:f,footData:a.footData,columns:v,rowAttributes:a.rowAttributes,rowClassName:a.rowClassName,thWidthList:a.thWidthList,footerSummary:a.footerSummary,rowspanAndColspanInFooter:a.rowspanAndColspanInFooter},a.$slots)])])]}}),G="translate(0, ".concat(this.virtualConfig.scrollHeight.value+((s=this.tableFootHeight)!==null&&s!==void 0?s:0)+((l=F.value)!==null&&l!==void 0?l:0),"px)"),L={transform:G,"-ms-transform":G,"-moz-transform":G,"-webkit-transform":G},X=this.virtualConfig,Z=Tt(Tt({classPrefix:this.classPrefix,ellipsisOverlayClassName:this.tableSize!=="medium"?this.sizeClassNames[this.tableSize]:"",rowAndColFixedPosition:f,showColumnShadow:this.showColumnShadow,data:X.isVirtualScroll.value?X.visibleData.value:d,virtualConfig:this.virtualConfig,columns:this.spansAndLeafNodes.leafColumns,tableElm:this.tableRef,tableWidth:this.tableWidth,isWidthOverflow:this.isWidthOverflow,scroll:this.scroll,cellEmptyContent:this.cellEmptyContent,tableContentElm:this.tableContentRef,handleRowMounted:this.virtualConfig.handleRowMounted,renderExpandedRow:this.renderExpandedRow},ri(this.$props,Mu)),{},{pagination:this.innerPagination,attach:this.attach,hoverRow:this.hoverRow,activeRow:this.tActiveRow,onRowClick:this.onInnerRowClick}),I=te("div",{ref:"tableContentRef",class:this.tableBaseClass.content,style:this.tableContentStyles,onScroll:this.onInnerVirtualScroll},[this.virtualConfig.isVirtualScroll.value&&te("div",{class:this.virtualScrollClasses.cursor,style:L},null),te("table",{ref:"tableElmRef",class:this.tableElmClasses,style:Tt(Tt({},this.tableElementStyles),{},{width:this.resizable&&this.isWidthOverflow&&this.tableElmWidth?"".concat(this.tableElmWidth,"px"):this.tableElementStyles.width})},[p(!1),this.showHeader&&te(hc,Tt(Tt({},g),{},{thWidthList:x?this.thWidthList:{}}),this.$slots),te(cg,Z,this.$slots),te(xc,{rowKey:this.rowKey,isFixedHeader:this.isFixedHeader,rowAndColFixedPosition:f,footData:this.footData,columns:v,rowAttributes:this.rowAttributes,rowClassName:this.rowClassName,footerSummary:this.footerSummary,rowspanAndColspanInFooter:this.rowspanAndColspanInFooter,virtualScroll:this.virtualConfig.isVirtualScroll.value},this.$slots)])]),z=or(this.loading)?this.loading:this.$slots.loading,U=this.loading!==void 0&&te(Ll,Or({loading:!!this.loading,text:z,attach:this.tableRef?function(){return a.tableRef}:void 0,showOverlay:!0,size:"small"},this.loadingProps),null),V=this.renderTNode("topContent"),q=this.renderTNode("bottomContent"),ee=te("div",{ref:"paginationRef",class:this.tableBaseClass.paginationWrap,style:{opacity:Number(this.showAffixPagination)}},[this.renderPagination()]),Y=!!q&&te("div",{ref:"bottomContentRef",class:this.tableBaseClass.bottomContent},[q]);return te("div",{ref:"tableRef",tabindex:"0",class:this.dynamicBaseTableClasses,onFocus:this.onTableFocus,onBlur:this.onTableBlur},[!!V&&te("div",{class:this.tableBaseClass.topContent},[V]),m(),I,N,U,Y,this.showRightDivider&&te("div",{class:this.tableBaseClass.scrollbarDivider,style:{right:"".concat(this.scrollbarWidth,"px"),bottom:this.dividerBottom?"".concat(this.dividerBottom,"px"):void 0,height:"".concat((c=this.tableContentRef)===null||c===void 0?void 0:c.getBoundingClientRect().height,"px")}},null),this.horizontalScrollAffixedBottom&&S(),this.paginationAffixedBottom?te(xo,Or({offsetBottom:0},go(this.paginationAffixedBottom),{ref:"paginationAffixRef"}),pc(ee)?ee:{default:function(){return[ee]}}):ee,te("div",{ref:"resizeLineRef",class:this.tableBaseClass.resizeLine,style:this.resizeLineStyle},null)])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var Wu={asyncLoading:{type:[String,Function]},columnController:{type:Object},columnControllerVisible:{type:Boolean,default:void 0},defaultColumnControllerVisible:{type:Boolean,default:void 0},columns:{type:Array,default:function(){return[]}},displayColumns:{type:Array,default:void 0},defaultDisplayColumns:{type:Array},dragSort:{type:String,validator:function(r){return r?["row","row-handler","col","row-handler-col","drag-col"].includes(r):!0}},dragSortOptions:{type:Object},editableCellState:{type:Function},editableRowKeys:{type:Array},expandIcon:{type:[Boolean,Function],default:!0},expandOnRowClick:Boolean,expandedRow:{type:[String,Function]},expandedRowKeys:{type:Array,default:void 0},defaultExpandedRowKeys:{type:Array,default:function(){return[]}},filterIcon:{type:Function},filterRow:{type:[String,Function]},filterValue:{type:Object,default:void 0},defaultFilterValue:{type:Object},hideSortTips:Boolean,indeterminateSelectedRowKeys:{type:Array},multipleSort:Boolean,reserveSelectedRowOnPaginate:{type:Boolean,default:!0},rowSelectionAllowUncheck:Boolean,rowSelectionType:{type:String,validator:function(r){return r?["single","multiple"].includes(r):!0}},selectOnRowClick:Boolean,selectedRowKeys:{type:Array,default:void 0},defaultSelectedRowKeys:{type:Array,default:function(){return[]}},showSortColumnBgColor:Boolean,sort:{type:[Object,Array],default:void 0},defaultSort:{type:[Object,Array]},sortIcon:{type:Function},sortOnRowDraggable:Boolean,onAsyncLoadingClick:Function,onCellClick:Function,onChange:Function,onColumnChange:Function,onColumnControllerVisibleChange:Function,onDataChange:Function,onDisplayColumnsChange:Function,onDragSort:Function,onExpandChange:Function,onFilterChange:Function,onRowEdit:Function,onRowValidate:Function,onSelectChange:Function,onSortChange:Function,onValidate:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function mc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function wc(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?mc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):mc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var xg=Tr({name:"ColumnCheckboxGroup",props:{checkboxProps:Object,options:{type:Array,default:function(){return[]}},label:String,uniqueKey:String,value:Array,onChange:Function},setup:function(r){var t=Cr(r),a=t.checkboxProps,n=t.value,i=t.options,o=ba(),s=le(function(){var x=[];return i.value.forEach(function(h){if(Kt(h)==="object"){if(h.disabled)return;h.value?x.push(h.value):typeof h.label=="string"&&x.push(h.label)}else x.push(h)}),x}),l=le(function(){return $o(s.value,n.value)}),c=le(function(){var x=l.value.length;return Boolean(x&&s.value.length===x)}),f=le(function(){var x=l.value.length;return Boolean(x<s.value.length&&x)}),u=function(h,p){var m={e:p.e,type:"check",current:void 0,option:void 0};if(h){var S,g=Xe(new Set(n.value.concat(s.value)));(S=r.onChange)===null||S===void 0||S.call(r,g,m)}else{var w,C=n.value.filter(function(F){return!s.value.includes(F)});(w=r.onChange)===null||w===void 0||w.call(r,C,wc(wc({},m),{},{type:"uncheck"}))}},d=function(h,p){var m;(m=r.onChange)===null||m===void 0||m.call(r,h,p)},v=le(function(){return["".concat(o.value,"-table__column-controller-item"),ue({},"".concat(o.value,"-table__").concat(r.uniqueKey),r.uniqueKey)]});return function(){return te("div",{class:v.value},[te("div",{class:"".concat(o.value,"-table__column-controller-block")},[te(Go,{indeterminate:f.value,checked:c.value,onChange:u,disabled:!s.value.length},{default:function(){return[r.label]}})]),te("div",{class:"".concat(o.value,"-table__column-controller-block")},[te(Pl,Or({options:i.value},a.value,{modelValue:n.value,onChange:d}),null)])])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function yc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Ns(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?yc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):yc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function dl(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:new Set,t=0,a=e.length;t<a;t++){var n,i=e[t];(n=i.children)!==null&&n!==void 0&&n.length?dl(i.children,r):i.colKey&&r.add(i.colKey)}return r}function gg(e,r){var t=ta("table",e.locale),a=t.classPrefix,n=t.globalConfig,i=ui({SettingIcon:W1}),o=i.SettingIcon,s=Cr(e),l=s.columns,c=s.columnController,f=s.displayColumns,u=s.columnControllerVisible,d=ye(null),v=sn(),x=le(function(){var E,T=(((E=c.value)===null||E===void 0?void 0:E.fields)||Xe(dl(l.value))).filter(function(A){return A});return new Set(T)}),h=Xe(dl(l.value)),p=Ma(f,e.defaultDisplayColumns||h,e.onDisplayColumnsChange,"displayColumns"),m=_r(p,2),S=m[0],g=m[1],w=ye(f.value||e.defaultDisplayColumns||h),C=le(function(){var E;if((E=c.value)!==null&&E!==void 0&&(E=E.groupColumns)!==null&&E!==void 0&&E.length)return _(l.value);var T={label:n.value.selectAllText,options:R(l.value)};return[T]});Ge([f],function(E){var T=_r(E,1),A=T[0];w.value=A||e.defaultDisplayColumns||h});function F(E,T){return{label:function(){return ps(r.slots,E,T)},value:E.colKey,disabled:!x.value.has(E.colKey)}}function _(E){var T,A=(T=c.value)===null||T===void 0?void 0:T.groupColumns;if(!(A!=null&&A.length))return[];var b=[],O=function N(G){for(var L=0,X=G.length;L<X;L++){for(var Z,I=G[L],z=F(I,L),U=0,V=A.length;U<V;U++){var q,ee=A[U];!ee.columns.includes(I.colKey)||((q=b[U])!==null&&q!==void 0&&(q=q.options)!==null&&q!==void 0&&q.length?b[U].options.push(z):b[U]=Ns(Ns({},A[U]),{},{options:[z]}))}(Z=I.children)!==null&&Z!==void 0&&Z.length&&N(I.children)}};return O(E),b}function R(E){var T,A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];if((T=c.value)!==null&&T!==void 0&&(T=T.groupColumns)!==null&&T!==void 0&&T.length)return[];for(var b=0,O=E.length;b<O;b++){var N,G=E[b];(N=G.children)!==null&&N!==void 0&&N.length?R(G.children,A):G.colKey&&A.push(F(G,b))}return A}var y=function(T,A){var b;w.value=T;var O={columns:T,type:A.type,currentColumn:Pu(l.value,String(A.current)),e:A.e};(b=e.onColumnChange)===null||b===void 0||b.call(e,O)},W=function(){var T;if(d.value){d.value.show();return}d.value=Ml.confirm(Ns({header:n.value.columnConfigTitleText,body:function(){var b,O=((b=c.value)===null||b===void 0?void 0:b.displayType)==="fixed-width"?"fixed":"auto",N=c.value||{},G=N.columnControllerTopContent,L=N.columnControllerBottomContent,X=te("div",{class:["".concat(a.value,"-table__column-controller"),"".concat(a.value,"-table__column-controller--").concat(O)]},[te("div",{class:"".concat(a.value,"-table__column-controller-body")},[or(G)?G(Kr):v("columnControllerTopContent"),n.value.columnConfigDescriptionText&&te("p",{class:"".concat(a.value,"-table__column-controller-desc")},[n.value.columnConfigDescriptionText]),C.value.map(function(Z,I){var z,U,V=(z=c.value)!==null&&z!==void 0&&(z=z.groupColumns)!==null&&z!==void 0&&z.length?String(Z.value||I):void 0;return te(xg,{key:Z.value||I,uniqueKey:V,value:w.value,label:Z.label,options:Z.options,onChange:y,checkboxProps:(U=c.value)===null||U===void 0?void 0:U.checkboxProps},null)}),or(L)?L(Kr):v("columnControllerBottomContent")])]);return X},confirmBtn:n.value.confirmText,cancelBtn:n.value.cancelText,width:612,onConfirm:function(){if(g(Xe(w.value)),u.value===void 0)d.value.hide();else{var b;(b=e.onColumnControllerVisibleChange)===null||b===void 0||b.call(e,!1,{trigger:"confirm"}),r.emit("update:columnControllerVisible",!1)}},onClose:function(){if(u.value===void 0)d.value.hide();else{var b;(b=e.onColumnControllerVisibleChange)===null||b===void 0||b.call(e,!1,{trigger:"cancel"}),r.emit("update:columnControllerVisible",!1)}}},((T=c.value)===null||T===void 0?void 0:T.dialogProps)||{}))};Ge([u],function(E){var T=_r(E,1),A=T[0];A!==void 0&&(d.value?A?d.value.show():d.value.hide():A&&W())},{immediate:!0});var D=function(){var T,A=!!(c.value&&Object.keys(c.value).length),b=A?c.value.placement||"top-right":"";if(A&&c.value.hideTriggerButton)return null;var O=["".concat(a.value,"-table__column-controller-trigger"),ue({},"".concat(a.value,"-align-").concat(b),!!b)];return te("div",{class:O},[te(Wi,Or({theme:"default",variant:"outline",onClick:W,content:n.value.columnConfigButtonText},(T=e.columnController)===null||T===void 0?void 0:T.buttonProps),{icon:function(){return te(o,null,null)}})])};return{tDisplayColumns:S,columnCheckboxKeys:w,renderColumnController:D}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function pg(e,r){var t=Cr(e),a=t.expandedRowKeys,n=sn(),i=ta("table",e.locale),o=i.t,s=i.globalConfig,l=ui({ChevronRightCircleIcon:T1}),c=l.ChevronRightCircleIcon,f=Dt(),u=f.tableExpandClasses,d=f.positiveRotate90,v=f.tableFullRowClasses,x=Ma(a,e.defaultExpandedRowKeys||[],e.onExpandChange,"expandedRowKeys"),h=_r(x,2),p=h[0],m=h[1],S=le(function(){return Boolean(e.expandedRow||r.slots.expandedRow||r.slots["expanded-row"])}),g=le(function(){return e.expandIcon!==!1&&S.value}),w=le(function(){var W;return((W=e.columns)===null||W===void 0||(W=W[0])===null||W===void 0?void 0:W.fixed)==="left"}),C=function(D,E){e.expandOnRowClick&&D.stopPropagation();var T=_e(E,e.rowKey||"id"),A=p.value.indexOf(T),b=Xe(p.value);A!==-1?b.splice(A,1):b.push(T),m(b,{expandedRowData:e.data.filter(function(O){return b.includes(_e(O,e.rowKey||"id"))}),currentRowData:E})},F=function(D,E){var T=E.row,A=E.rowIndex,b=_e(T,e.rowKey||"id"),O=p.value.includes(b),N=n("expandIcon",{defaultNode:o(s.value.expandIcon)||te(c,null,null),params:{row:T,index:A}});if(!N)return null;var G=[u.iconBox,u[O?"expanded":"collapsed"],ue({},d,O)];return te("span",{class:G,onClick:function(X){return C(X,T)}},[N])},_=function(){var D={colKey:"__EXPAND_ROW_ICON_COLUMN__",width:46,className:u.iconCell,fixed:w.value?"left":void 0,cell:F,stopPropagation:!0};return D},R=function(D){var E=_e(D.row,e.rowKey||"id");if(!p.value||!p.value.includes(E))return null;var T=D.isWidthOverflow&&e.columns.find(function(A){return A.fixed==="left"});return te("tr",{key:"expand_".concat(E),class:[u.row,ue({},v.base,T)]},[te("td",{colspan:D.columns.length},[te("div",{class:[u.rowInner,ue({},v.innerFullRow,T)],style:T?{width:"".concat(D.tableWidth,"px")}:{}},[te("div",{class:v.innerFullElement},[n("expandedRow",{params:D})])])])])},y=function(D){C(D.e,D.row)};return{showExpandedRow:S,showExpandIconColumn:g,getExpandColumn:_,renderExpandedRow:R,onInnerExpandRowClick:y}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function hl(e,r,t){if(!e)return!1;var a=or(e.disabled)?e.disabled({row:r,rowIndex:t}):e.disabled;return e.checkProps&&(or(e.checkProps)?a=a||e.checkProps({row:r,rowIndex:t}).disabled:e.checkProps==="object"&&(a=a||e.checkProps.disabled)),!!a}function mg(e,r,t){for(var a={},n=0,i=r.length;n<i;n++){var o=_e(r[n],t);e.includes(o)&&(a[o]=!0)}return a}function qo(e,r){for(var t=0,a=e.length;t<a;t++){var n;if(e[t].colKey===r)return e[t];if((n=e[t].children)!==null&&n!==void 0&&n.length){var i=qo(e[t].children,r);if(i)return i}}return null}function _c(e,r){for(var t=0,a=e.length;t<a;t++){var n;if(e[t].colKey===r)return t;if((n=e[t].children)!==null&&n!==void 0&&n.length){var i=qo(e[t].children,r);if(i)return t}}return-1}function Uu(e){for(var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=0,a=e.length;t<a;t++){var n,i=e[t];i.filter&&"resetValue"in i.filter&&(r[i.colKey]=i.filter.resetValue),(n=i.children)!==null&&n!==void 0&&n.length&&Uu(i.children,r)}return r}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function bc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function wo(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?bc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):bc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function wg(e,r){var t=Cr(e),a=t.selectedRowKeys,n=t.columns,i=t.rowKey,o=t.data,s=t.reserveSelectedRowOnPaginate,l=ye(o.value),c=ye(),f=Ma(a,e.defaultSelectedRowKeys||[],e.onSelectChange,"selectedRowKeys"),u=_r(f,2),d=u[0],v=u[1],x=ye(new Map),h=le(function(){return e.columns.find(function(b){var O=b.type;return["multiple","single"].includes(O)})}),p=le(function(){var b;return e.rowSelectionType||((b=h.value)===null||b===void 0?void 0:b.type)||"single"}),m=le(function(){var b=s.value?o.value:l.value;return b.filter(function(O,N){return!w(O,N)})}),S=le(function(){return $o(d.value,m.value.map(function(b){return _e(b,e.rowKey||"id")}))}),g=le(function(){var b;if(e.rowSelectionAllowUncheck)return!0;var O=p.value==="single";return!O||!h.value||!("allowUncheck"in((b=h.value)===null||b===void 0?void 0:b.checkProps))?!1:h.value.checkProps.allowUncheck});Ge([o,n,d,h,i],function(){var b,O=function(I){return h.value.disabled(I)?r.disabled:""},N=(b=h.value)!==null&&b!==void 0&&b.disabled?O:void 0,G=new Set(d.value),L=function(I){var z=I.row,U=_e(z,e.rowKey||"id");return G.has(U)?r.selected:""},X=G.size?L:void 0;c.value=[N,X]},{immediate:!0});function w(b,O){return hl(h.value,b,O)}function C(){return function(){var b=S.value.length>0&&S.value.length<m.value.length,O=S.value.length!==0&&m.value.length!==0&&S.value.length===m.value.length;return te(Go,{checked:O,indeterminate:b,disabled:!m.value.length,onChange:y},null)}}function F(b){var O=b.col,N=b.row,G=b.rowIndex,L=or(O.disabled)?O.disabled({row:N,rowIndex:G}):O.disabled,X=or(O.checkProps)?O.checkProps({row:N,rowIndex:G}):O.checkProps;return{disabled:L||(X==null?void 0:X.disabled),checkProps:X}}function _(b){var O=b.col,N=b.row,G=N===void 0?{}:N,L=d.value.includes(_e(G,e.rowKey||"id")),X=F(b),Z=X.disabled,I=X.checkProps,z=wo(wo({checked:L,disabled:Z},I),{},{onClick:function(ee){if(Kt(ee)==="object"&&"e"in ee){var Y;(Y=ee.e)===null||Y===void 0||Y.stopPropagation()}else ee==null||ee.stopPropagation()},onChange:function(){return R(G)}});if(O.type==="single")return te(ux,z,null);if(O.type==="multiple"){var U,V=(U=e.indeterminateSelectedRowKeys)!==null&&U!==void 0&&U.length?e.indeterminateSelectedRowKeys.includes(_e(G,e.rowKey)):!1;return te(Go,Or({indeterminate:V},z),null)}return null}function R(){var b=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},O=Xe(d.value),N=e.rowKey||"id",G=_e(b,N),L=O.indexOf(G),X=L!==-1;if(p.value==="multiple")X?O.splice(L,1):O.push(G);else if(p.value==="single")O=X&&g.value?[]:[G];else{Nr.warn("Table","`column.type` must be one of `multiple` and `single`");return}v(O,{selectedRowData:O.map(function(Z){return x.value.get(Z)}),currentRowKey:G,currentRowData:b,type:X?"uncheck":"check"})}function y(b){var O,N=e.rowKey||"id",G=m.value.map(function(Z){return _e(Z,N)}),L=((O=a.value)===null||O===void 0?void 0:O.filter(function(Z){return!G.includes(Z)}))||[],X=b?[].concat(Xe(L),Xe(G)):Xe(L);v(X,{selectedRowData:b?X.map(function(Z){return x.value.get(Z)}):[],type:b?"check":"uncheck",currentRowKey:"CHECK_ALL_BOX"})}function W(b){var O=["multiple","single"].includes(b.type);return O?wo(wo({},b),{},{width:b.width||64,className:[r.checkCell,b.className],cell:function(G,L){return _(L)},title:b.type==="multiple"?C():b.title}):b}var D=function(O){var N=O.row,G=O.index,L=e.columns.findIndex(function(I){return I.colKey==="row-select"}),X=!1;if(L!==-1){var Z;X=(Z=F({row:N,rowIndex:G,col:e.columns[L],colIndex:L}))===null||Z===void 0?void 0:Z.disabled}X||R(N)};Ge([o,i],function(){for(var b=0,O=o.value.length;b<O;b++)x.value.set(_e(o.value[b],i.value||"id"),o.value[b])},{immediate:!0});var E=le(function(){return Boolean(h.value||e.selectOnRowClick||e.selectedRowKeys)}),T=function(){v([],{selectedRowData:[],currentRowKey:void 0,currentRowData:void 0,type:"uncheck"})},A=function(O){var N=O.activeRowList,G=O.action;if(!!E.value){if(G==="clear"){T();return}if(G==="select-all"){y(!0);return}if(p.value==="single"){G==="space-one-selection"&&R(N[0].row);return}var L=N.filter(function(q){var ee=q.row,Y=q.rowIndex;return!F({row:ee,rowIndex:Y,col:h.value,colIndex:void 0}).disabled});if(!!L.length){var X=L.map(function(q){var ee=q.row;return _e(ee,e.rowKey)}),Z=$o(d.value,X),I=Z.length!==X.length,z=d.value.filter(function(q){return!X.includes(q)}),U=I?Xe(new Set(d.value.concat(X))):z,V=G==="space-one-selection"?N[0].row:void 0;v(U,{selectedRowData:N,currentRowKey:_e(V,e.rowKey),currentRowData:V,type:I?"check":"uncheck"})}}};return{selectColumn:h,showRowSelect:E,selectedRowClassNames:c,currentPaginateData:l,setTSelectedRowKeys:v,formatToRowSelectColumn:W,onInnerSelectRowClick:D,handleRowSelectWithAreaSelection:A}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function yg(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!On(e)}var _g=Tr({name:"TSorterButton",props:{sortType:{type:String,default:"all"},sortOrder:{type:String,default:function(){return""}},locale:Object,sortIcon:Function,tooltipProps:Object,hideSortTips:Boolean},emits:["sort-icon-click"],setup:function(r,t){var a=Dt(),n=a.tableSortClasses,i=a.negativeRotate180,o=to(),s=ta("table",r.locale),l=s.t,c=s.globalConfig,f=ui({ChevronDownIcon:o1}),u=f.ChevronDownIcon,d=le(function(){return r.sortType==="all"?["asc","desc"]:[r.sortType]}),v=function(p,m){t.emit("sort-icon-click",p,{descending:m==="desc"})},x=function(p,m){var S=l(c.value.sortIcon)||te(u,null,null),g=o("sortIcon",S),w=[m,n.sortIcon,n.iconDirection[p],ue({},i,p==="asc")];return te("span",{class:w,onClick:function(F){return v(F,p)}},[g])};return{t:l,globalConfig:c,tableSortClasses:n,negativeRotate180:i,allowSortTypes:d,getSortIcon:x}},render:function(){var r=this,t=this.tableSortClasses,a=[t.trigger,ue({},t.doubleIcon,this.allowSortTypes.length>1)],n={asc:this.globalConfig.sortAscendingOperationText,desc:this.globalConfig.sortDescendingOperationText},i=this.allowSortTypes.map(function(o){var s,l,c=o===r.sortOrder?t.iconActive:t.iconDefault,f=r.globalConfig.sortCancelOperationText,u=o===r.sortOrder?f:n[o];return((l=r.hideSortTips)!==null&&l!==void 0?l:r.globalConfig.hideSortTips)?r.getSortIcon(o,c):te(xu,Or({content:u,placement:"right",showArrow:!1,class:r.tableSortClasses.iconDirection[o]},r.tooltipProps),yg(s=r.getSortIcon(o,c))?s:{default:function(){return[s]}})});return te("div",{class:a},[i])}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Sc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function bg(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Sc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Sc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Sg(e,r){var t=r.slots,a=Cr(e),n=a.sort,i=a.data,o=ye(),s=Ma(n,e.defaultSort,e.onSortChange,"sort"),l=_r(s,2),c=l[0],f=l[1],u=Ma(i,[],e.onDataChange,"data"),d=_r(u,2),v=d[0],x=d[1],h=le(function(){return g(e.columns)}),p=ye(),m=le(function(){var D=c.value;return D?Ko(D)?D:[D]:[]}),S=le(function(){var D={};return m.value.forEach(function(E,T){var A=E.sortBy;D[A]=bg({index:T},E)}),D});function g(D){for(var E=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},T=0,A=D.length;T<A;T++){var b,O=D[T];or(O.sorter)&&(E[O.colKey]=O.sorter),(b=O.children)!==null&&b!==void 0&&b.length&&g(O.children,E)}return E}function w(D){var E=D;if(!!Object.keys(h.value).length){o.value||(o.value=v.value);var T=!E||E instanceof Array&&!E.length,A=!(E instanceof Array)&&!(E!=null&&E.sortBy);if(T||A)return x(o.value,{trigger:"sort"}),o.value;var b=E instanceof Array?E:[E],O=v.value.slice().sort(function(N,G){for(var L=0,X=0,Z=b.length;X<Z;X++){var I=b[X],z=h.value[I.sortBy];if(L===0&&z)L=I.descending?z(G,N):z(N,G);else break}return L});if(JSON.stringify(O)!==JSON.stringify(v.value))return x(O,{trigger:"sort"}),O}}function C(D,E){var T,A;if(e.multipleSort)A=R(D,E);else{var b=c.value instanceof Array?c.value[0]:c.value;A=_(D,b,E)}var O=w(A),N=O||v.value,G=N;f(A,{currentDataSource:G,col:D}),(T=e.onChange)===null||T===void 0||T.call(e,{sorter:A},{currentData:N,trigger:"sorter"}),p.value=A}function F(D){if(D!==void 0)return D?"desc":"asc"}function _(D,E,T){if(!(E&&E.sortBy===D.colKey&&E.descending===T.descending))return{sortBy:D.colKey,descending:T.descending}}function R(D,E){Array.isArray(c.value)||(c.value=c.value?[c.value]:[]);for(var T=c.value,A=D.colKey,b=Xe(T),O=0,N=T.length;O<N;O++)if(T[O].sortBy===A){var G=_(D,T[O],E);return G?b[O]=G:b.splice(O,1),b}return b.push({sortBy:A,descending:E.descending}),b}function y(D){var E,T=D.col;if(!T.sorter)return null;var A={sortType:T.sortType,sortOrder:F((E=S.value[T.colKey])===null||E===void 0?void 0:E.descending),sortIcon:e.sortIcon,hideSortTips:e.hideSortTips,locale:e.locale};return te(_g,Or(A,{onSortIconClick:function(O,N){return C(T,N)}}),{sortIcon:t.sortIcon})}var W=function(E,T){var A=Ko(E)?E:[E],b=Ko(T)?T:[T];if(A.length&&!T)return!1;for(var O=function(){var Z=A[G],I=b.find(function(z){return z.sortBy===Z.sortBy});return I?{v:Z.descending===I.descending}:{v:!1}},N,G=0,L=A.length;G<L;G++)if(N=O(),N)return N.v};return Ge(function(){return[c,e.data]},function(){!c.value||!Object.keys(c.value).length||!v.value.length||W(c.value,p.value)||w(c.value)},{immediate:!0}),{renderSortIcon:y}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Ec(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function yo(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Ec(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ec(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Eg=Tr({name:"TableFilterController",props:{locale:Object,column:Object,colIndex:Number,tFilterValue:Object,innerFilterValue:Object,tableFilterClasses:Object,isFocusClass:String,primaryTableElement:{},popupProps:Object,attach:[String,Function],onVisibleChange:Function},emits:["inner-filter-change","reset","confirm"],setup:function(r,t){var a=ye(null),n=to(),i=ta("table",r.locale),o=i.t,s=i.globalConfig,l=ui({FilterIcon:R1}),c=l.FilterIcon,f=ye(!1),u=function(m){var S;f.value=m,(S=r.onVisibleChange)===null||S===void 0||S.call(r,m)},d=function(m,S,g){if(!g)return null;var w=!!g.setup;if(or(m.filter.component)&&!w)return m.filter.component(function(F,_){var R=Kt(_)==="object"&&"attrs"in _?_.attrs:{};return Kr(F,{props:yo(yo({},S),R)})});var C=m.filter||{};return te(g,Or({class:C.classNames,style:C.style},C.attrs,S),null)},v=function(m){var S,g,w=["single","multiple","input"];if(m.type&&!w.includes(m.filter.type)){console.error("TDesign Table Error: column.filter.type must be the following: ".concat(JSON.stringify(w)));return}var C=r.innerFilterValue,F=C===void 0?{}:C,_={single:dx,multiple:Pl,input:jo}[m.filter.type]||m.filter.component;if(!(!_&&!m.filter.component)){var R=yo(yo({options:["single","multiple"].includes(m.filter.type)?(S=m.filter)===null||S===void 0?void 0:S.list:void 0},((g=m.filter)===null||g===void 0?void 0:g.props)||{}),{},{onChange:function(W,D){var E,T;if(t.emit("inner-filter-change",W,m),(E=m.filter.props)!==null&&E!==void 0&&E.onChange){var A,b;(A=(b=m.filter.props).onChange)===null||A===void 0||A.call(b,W,D)}(T=m.filter)!==null&&T!==void 0&&(T=T.confirmEvents)!==null&&T!==void 0&&T.includes("onChange")&&(f.value=!1)}});return m.colKey&&F&&m.colKey in F&&(R.value=F==null?void 0:F[m.colKey]),m.filter.confirmEvents&&m.filter.confirmEvents.forEach(function(y){y!=="onChange"&&(R[y]=function(){t.emit("confirm",m),f.value=!1})}),te("div",{class:r.tableFilterClasses.contentInner},[d(m,R,_)])}},x=function(m){if(!!m.filter.showConfirmAndReset)return te("div",{class:r.tableFilterClasses.bottomButtons},[te(Wi,{theme:"default",size:"small",onClick:function(){t.emit("reset",m),f.value=!1}},{default:function(){return[s.value.resetText]}}),te(Wi,{theme:"primary",size:"small",onClick:function(){t.emit("confirm",m),f.value=!1}},{default:function(){return[s.value.confirmText]}})])},h=function(){return te("div",{class:r.tableFilterClasses.popupContent},[v(r.column),x(r.column)])};return{t:o,globalConfig:s,FilterIcon:c,filterPopupVisible:f,triggerElementRef:a,renderTNode:n,getContent:h,onFilterPopupVisibleChange:u}},render:function(){var r,t=this,a=this.column,n=this.popupProps,i=this.FilterIcon;if(!a.filter||a.filter&&!Object.keys(a.filter).length)return null;var o=this.t(this.globalConfig.filterIcon)||te(i,null,null),s=(r=this.tFilterValue)===null||r===void 0?void 0:r[a.colKey],l=Kt(s)==="object"&&!Sv(s),c=![null,void 0,""].includes(s)&&Kt(s)!=="object";return te(s1,Or({attach:this.attach||(this.primaryTableElement?function(){return t.primaryTableElement}:void 0),visible:this.filterPopupVisible,destroyOnClose:!0,trigger:"click",placement:"bottom-right",showArrow:!0,overlayClassName:this.tableFilterClasses.popup,onVisibleChange:function(u){return t.onFilterPopupVisibleChange(u)},class:[this.tableFilterClasses.icon,ue({},this.isFocusClass,l||c)],content:this.getContent},n),{default:function(){return[te("div",{ref:"triggerElementRef"},[t.renderTNode("filterIcon",{defaultNode:o,params:{col:a,colIndex:t.colIndex}})])]}})}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Cc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function _o(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Cc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Cc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Hu(e){var r=e instanceof Array&&e.length,t=Kt(e)==="object"&&!(e instanceof Array),a=t&&Object.keys(e).length;return r||a||!["null","","undefined"].includes(String(e))}function Cg(e){var r={};return Object.keys(e).forEach(function(t){var a=e[t];Hu(a)&&(r[t]=a)}),r}function Tg(e,r){var t=ye(null),a=ta("table",e.locale),n=a.t,i=a.globalConfig,o=to(),s=Cr(e),l=s.filterValue,c=s.columns,f=Dt(),u=f.tableFilterClasses,d=f.isFocusClass,v=ye(),x=Ma(l,e.defaultFilterValue,e.onFilterChange,"filterValue"),h=_r(x,2),p=h[0],m=h[1],S=ye(p.value),g=le(function(){var b=Cg(p.value||{});return!p.value||!Object.keys(b).length});Ge([p],function(b){var O=_r(b,1),N=O[0];S.value=N});function w(){var b,O;if(g.value)return null;var N=te("div",{class:u.result},[te("span",null,[n(i.value.searchResultText,{result:C(),count:((b=e.pagination)===null||b===void 0?void 0:b.total)||((O=e.data)===null||O===void 0?void 0:O.length)})]),te(Wi,{theme:"primary",variant:"text",onClick:W},{default:function(){return[i.value.clearFilterResultButtonText]}})]),G=o("filterRow");return e.filterRow&&!G||e.filterRow===null?null:te("div",{class:u.inner},[G||N])}function C(){var b=[],O=[];return F(e.columns,O),O.filter(function(N){return N.filter}).forEach(function(N,G){var L=p.value[N.colKey];if(N.filter.list&&!["null"].includes(String(L))){var X=L instanceof Array?L:[L],Z=[];N.filter.list.forEach(function(q){X.includes(q.value)&&Z.push(q.label)}),L=Z.join()}if(Hu(L)){var I,z,U=or((I=N.filter)===null||I===void 0?void 0:I.label)?N.filter.label(Kr):(z=N.filter)===null||z===void 0?void 0:z.label,V=ps(r.slots,N,G);b.push("".concat(U||V,"\uFF1A").concat(L))}}),b.join("\uFF1B")}function F(b,O){b.forEach(function(N){N.children&&F(N.children,O),O.push(N)})}function _(b,O){var N=_o(_o({},S.value),{},ue({},O.colKey,b));S.value=N,O.filter.showConfirmAndReset||R(N,"filter-change",O)}function R(b,O,N){var G;m(b,{col:N,trigger:O}),(G=e.onChange)===null||G===void 0||G.call(e,{filter:b},{trigger:"filter"})}function y(b){var O,N,G=_o(_o({},p.value),{},ue({},b.colKey,(O=(N=b.filter.resetValue)!==null&&N!==void 0?N:{single:"",multiple:[],input:""}[b.filter.type])!==null&&O!==void 0?O:""));R(G,"reset",b)}function W(){var b=Uu(c.value);R(b,"clear",void 0)}function D(b){R(S.value,"confirm",b)}function E(b){var O,N=b.col,G=b.colIndex;return te(Eg,{column:N,colIndex:G,filterIcon:e.filterIcon,tFilterValue:p.value,innerFilterValue:S.value,tableFilterClasses:u,isFocusClass:d,popupProps:N.filter.popupProps,attach:e.attach,locale:e.locale,onReset:y,onConfirm:D,onInnerFilterChange:_,primaryTableElement:(O=t.value)===null||O===void 0?void 0:O.$el,onVisibleChange:A},{filterIcon:r.slots.filterIcon})}function T(b){t.value=b}function A(b){b&&!v.value&&(v.value=!b)}return{hasEmptyCondition:g,isTableOverflowHidden:v,renderFilterIcon:E,renderFirstFilterRow:w,setFilterPrimaryTableRef:T}}/**!
|
||
* Sortable 1.15.2
|
||
* @author RubaXa <trash@rubaxa.org>
|
||
* @author owenm <owen23355@gmail.com>
|
||
* @license MIT
|
||
*/function Tc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Sa(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Tc(Object(t),!0).forEach(function(a){kg(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Tc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Wo(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Wo=function(r){return typeof r}:Wo=function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},Wo(e)}function kg(e,r,t){return r in e?Object.defineProperty(e,r,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[r]=t,e}function Ka(){return Ka=Object.assign||function(e){for(var r=1;r<arguments.length;r++){var t=arguments[r];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},Ka.apply(this,arguments)}function Fg(e,r){if(e==null)return{};var t={},a=Object.keys(e),n,i;for(i=0;i<a.length;i++)n=a[i],!(r.indexOf(n)>=0)&&(t[n]=e[n]);return t}function Ag(e,r){if(e==null)return{};var t=Fg(e,r),a,n;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)a=i[n],!(r.indexOf(a)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,a)||(t[a]=e[a]))}return t}var Og="1.15.2";function Ra(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Wa=Ra(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),ao=Ra(/Edge/i),kc=Ra(/firefox/i),ki=Ra(/safari/i)&&!Ra(/chrome/i)&&!Ra(/android/i),Vu=Ra(/iP(ad|od|hone)/i),zu=Ra(/chrome/i)&&Ra(/android/i),$u={capture:!1,passive:!1};function ur(e,r,t){e.addEventListener(r,t,!Wa&&$u)}function nr(e,r,t){e.removeEventListener(r,t,!Wa&&$u)}function Jo(e,r){if(!!r){if(r[0]===">"&&(r=r.substring(1)),e)try{if(e.matches)return e.matches(r);if(e.msMatchesSelector)return e.msMatchesSelector(r);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(r)}catch{return!1}return!1}}function Dg(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function la(e,r,t,a){if(e){t=t||document;do{if(r!=null&&(r[0]===">"?e.parentNode===t&&Jo(e,r):Jo(e,r))||a&&e===t)return e;if(e===t)break}while(e=Dg(e))}return null}var Fc=/\s+/g;function Rt(e,r,t){if(e&&r)if(e.classList)e.classList[t?"add":"remove"](r);else{var a=(" "+e.className+" ").replace(Fc," ").replace(" "+r+" "," ");e.className=(a+(t?" "+r:"")).replace(Fc," ")}}function We(e,r,t){var a=e&&e.style;if(a){if(t===void 0)return document.defaultView&&document.defaultView.getComputedStyle?t=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(t=e.currentStyle),r===void 0?t:t[r];!(r in a)&&r.indexOf("webkit")===-1&&(r="-webkit-"+r),a[r]=t+(typeof t=="string"?"":"px")}}function ti(e,r){var t="";if(typeof e=="string")t=e;else do{var a=We(e,"transform");a&&a!=="none"&&(t=a+" "+t)}while(!r&&(e=e.parentNode));var n=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return n&&new n(t)}function Gu(e,r,t){if(e){var a=e.getElementsByTagName(r),n=0,i=a.length;if(t)for(;n<i;n++)t(a[n],n);return a}return[]}function _a(){var e=document.scrollingElement;return e||document.documentElement}function qr(e,r,t,a,n){if(!(!e.getBoundingClientRect&&e!==window)){var i,o,s,l,c,f,u;if(e!==window&&e.parentNode&&e!==_a()?(i=e.getBoundingClientRect(),o=i.top,s=i.left,l=i.bottom,c=i.right,f=i.height,u=i.width):(o=0,s=0,l=window.innerHeight,c=window.innerWidth,f=window.innerHeight,u=window.innerWidth),(r||t)&&e!==window&&(n=n||e.parentNode,!Wa))do if(n&&n.getBoundingClientRect&&(We(n,"transform")!=="none"||t&&We(n,"position")!=="static")){var d=n.getBoundingClientRect();o-=d.top+parseInt(We(n,"border-top-width")),s-=d.left+parseInt(We(n,"border-left-width")),l=o+i.height,c=s+i.width;break}while(n=n.parentNode);if(a&&e!==window){var v=ti(n||e),x=v&&v.a,h=v&&v.d;v&&(o/=h,s/=x,u/=x,f/=h,l=o+f,c=s+u)}return{top:o,left:s,bottom:l,right:c,width:u,height:f}}}function Ac(e,r,t){for(var a=Za(e,!0),n=qr(e)[r];a;){var i=qr(a)[t],o=void 0;if(t==="top"||t==="left"?o=n>=i:o=n<=i,!o)return a;if(a===_a())break;a=Za(a,!1)}return!1}function li(e,r,t,a){for(var n=0,i=0,o=e.children;i<o.length;){if(o[i].style.display!=="none"&&o[i]!==je.ghost&&(a||o[i]!==je.dragged)&&la(o[i],t.draggable,e,!1)){if(n===r)return o[i];n++}i++}return null}function Hl(e,r){for(var t=e.lastElementChild;t&&(t===je.ghost||We(t,"display")==="none"||r&&!Jo(t,r));)t=t.previousElementSibling;return t||null}function qt(e,r){var t=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==je.clone&&(!r||Jo(e,r))&&t++;return t}function Oc(e){var r=0,t=0,a=_a();if(e)do{var n=ti(e),i=n.a,o=n.d;r+=e.scrollLeft*i,t+=e.scrollTop*o}while(e!==a&&(e=e.parentNode));return[r,t]}function Rg(e,r){for(var t in e)if(!!e.hasOwnProperty(t)){for(var a in r)if(r.hasOwnProperty(a)&&r[a]===e[t][a])return Number(t)}return-1}function Za(e,r){if(!e||!e.getBoundingClientRect)return _a();var t=e,a=!1;do if(t.clientWidth<t.scrollWidth||t.clientHeight<t.scrollHeight){var n=We(t);if(t.clientWidth<t.scrollWidth&&(n.overflowX=="auto"||n.overflowX=="scroll")||t.clientHeight<t.scrollHeight&&(n.overflowY=="auto"||n.overflowY=="scroll")){if(!t.getBoundingClientRect||t===document.body)return _a();if(a||r)return t;a=!0}}while(t=t.parentNode);return _a()}function Ig(e,r){if(e&&r)for(var t in r)r.hasOwnProperty(t)&&(e[t]=r[t]);return e}function Ls(e,r){return Math.round(e.top)===Math.round(r.top)&&Math.round(e.left)===Math.round(r.left)&&Math.round(e.height)===Math.round(r.height)&&Math.round(e.width)===Math.round(r.width)}var Fi;function Xu(e,r){return function(){if(!Fi){var t=arguments,a=this;t.length===1?e.call(a,t[0]):e.apply(a,t),Fi=setTimeout(function(){Fi=void 0},r)}}}function Pg(){clearTimeout(Fi),Fi=void 0}function Yu(e,r,t){e.scrollLeft+=r,e.scrollTop+=t}function qu(e){var r=window.Polymer,t=window.jQuery||window.Zepto;return r&&r.dom?r.dom(e).cloneNode(!0):t?t(e).clone(!0)[0]:e.cloneNode(!0)}function Ju(e,r,t){var a={};return Array.from(e.children).forEach(function(n){var i,o,s,l;if(!(!la(n,r.draggable,e,!1)||n.animated||n===t)){var c=qr(n);a.left=Math.min((i=a.left)!==null&&i!==void 0?i:1/0,c.left),a.top=Math.min((o=a.top)!==null&&o!==void 0?o:1/0,c.top),a.right=Math.max((s=a.right)!==null&&s!==void 0?s:-1/0,c.right),a.bottom=Math.max((l=a.bottom)!==null&&l!==void 0?l:-1/0,c.bottom)}}),a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}var Lt="Sortable"+new Date().getTime();function Ng(){var e=[],r;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var a=[].slice.call(this.el.children);a.forEach(function(n){if(!(We(n,"display")==="none"||n===je.ghost)){e.push({target:n,rect:qr(n)});var i=Sa({},e[e.length-1].rect);if(n.thisAnimationDuration){var o=ti(n,!0);o&&(i.top-=o.f,i.left-=o.e)}n.fromRect=i}})}},addAnimationState:function(a){e.push(a)},removeAnimationState:function(a){e.splice(Rg(e,{target:a}),1)},animateAll:function(a){var n=this;if(!this.options.animation){clearTimeout(r),typeof a=="function"&&a();return}var i=!1,o=0;e.forEach(function(s){var l=0,c=s.target,f=c.fromRect,u=qr(c),d=c.prevFromRect,v=c.prevToRect,x=s.rect,h=ti(c,!0);h&&(u.top-=h.f,u.left-=h.e),c.toRect=u,c.thisAnimationDuration&&Ls(d,u)&&!Ls(f,u)&&(x.top-u.top)/(x.left-u.left)===(f.top-u.top)/(f.left-u.left)&&(l=Bg(x,d,v,n.options)),Ls(u,f)||(c.prevFromRect=f,c.prevToRect=u,l||(l=n.options.animation),n.animate(c,x,u,l)),l&&(i=!0,o=Math.max(o,l),clearTimeout(c.animationResetTimer),c.animationResetTimer=setTimeout(function(){c.animationTime=0,c.prevFromRect=null,c.fromRect=null,c.prevToRect=null,c.thisAnimationDuration=null},l),c.thisAnimationDuration=l)}),clearTimeout(r),i?r=setTimeout(function(){typeof a=="function"&&a()},o):typeof a=="function"&&a(),e=[]},animate:function(a,n,i,o){if(o){We(a,"transition",""),We(a,"transform","");var s=ti(this.el),l=s&&s.a,c=s&&s.d,f=(n.left-i.left)/(l||1),u=(n.top-i.top)/(c||1);a.animatingX=!!f,a.animatingY=!!u,We(a,"transform","translate3d("+f+"px,"+u+"px,0)"),this.forRepaintDummy=Lg(a),We(a,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),We(a,"transform","translate3d(0,0,0)"),typeof a.animated=="number"&&clearTimeout(a.animated),a.animated=setTimeout(function(){We(a,"transition",""),We(a,"transform",""),a.animated=!1,a.animatingX=!1,a.animatingY=!1},o)}}}}function Lg(e){return e.offsetWidth}function Bg(e,r,t,a){return Math.sqrt(Math.pow(r.top-e.top,2)+Math.pow(r.left-e.left,2))/Math.sqrt(Math.pow(r.top-t.top,2)+Math.pow(r.left-t.left,2))*a.animation}var Hn=[],Bs={initializeByDefault:!0},no={mount:function(r){for(var t in Bs)Bs.hasOwnProperty(t)&&!(t in r)&&(r[t]=Bs[t]);Hn.forEach(function(a){if(a.pluginName===r.pluginName)throw"Sortable: Cannot mount plugin ".concat(r.pluginName," more than once")}),Hn.push(r)},pluginEvent:function(r,t,a){var n=this;this.eventCanceled=!1,a.cancel=function(){n.eventCanceled=!0};var i=r+"Global";Hn.forEach(function(o){!t[o.pluginName]||(t[o.pluginName][i]&&t[o.pluginName][i](Sa({sortable:t},a)),t.options[o.pluginName]&&t[o.pluginName][r]&&t[o.pluginName][r](Sa({sortable:t},a)))})},initializePlugins:function(r,t,a,n){Hn.forEach(function(s){var l=s.pluginName;if(!(!r.options[l]&&!s.initializeByDefault)){var c=new s(r,t,r.options);c.sortable=r,c.options=r.options,r[l]=c,Ka(a,c.defaults)}});for(var i in r.options)if(!!r.options.hasOwnProperty(i)){var o=this.modifyOption(r,i,r.options[i]);typeof o<"u"&&(r.options[i]=o)}},getEventProperties:function(r,t){var a={};return Hn.forEach(function(n){typeof n.eventProperties=="function"&&Ka(a,n.eventProperties.call(t[n.pluginName],r))}),a},modifyOption:function(r,t,a){var n;return Hn.forEach(function(i){!r[i.pluginName]||i.optionListeners&&typeof i.optionListeners[t]=="function"&&(n=i.optionListeners[t].call(r[i.pluginName],a))}),n}};function Mg(e){var r=e.sortable,t=e.rootEl,a=e.name,n=e.targetEl,i=e.cloneEl,o=e.toEl,s=e.fromEl,l=e.oldIndex,c=e.newIndex,f=e.oldDraggableIndex,u=e.newDraggableIndex,d=e.originalEvent,v=e.putSortable,x=e.extraEventProperties;if(r=r||t&&t[Lt],!!r){var h,p=r.options,m="on"+a.charAt(0).toUpperCase()+a.substr(1);window.CustomEvent&&!Wa&&!ao?h=new CustomEvent(a,{bubbles:!0,cancelable:!0}):(h=document.createEvent("Event"),h.initEvent(a,!0,!0)),h.to=o||t,h.from=s||t,h.item=n||t,h.clone=i,h.oldIndex=l,h.newIndex=c,h.oldDraggableIndex=f,h.newDraggableIndex=u,h.originalEvent=d,h.pullMode=v?v.lastPutMode:void 0;var S=Sa(Sa({},x),no.getEventProperties(a,r));for(var g in S)h[g]=S[g];t&&t.dispatchEvent(h),p[m]&&p[m].call(r,h)}}var Kg=["evt"],kt=function(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},n=a.evt,i=Ag(a,Kg);no.pluginEvent.bind(je)(r,t,Sa({dragEl:Te,parentEl:Br,ghostEl:ze,rootEl:Rr,nextEl:gn,lastDownEl:Uo,cloneEl:Pr,cloneHidden:qa,dragStarted:wi,putSortable:it,activeSortable:je.active,originalEvent:n,oldIndex:Zn,oldDraggableIndex:Ai,newIndex:It,newDraggableIndex:Ya,hideGhostForTarget:rd,unhideGhostForTarget:td,cloneNowHidden:function(){qa=!0},cloneNowShown:function(){qa=!1},dispatchSortableEvent:function(s){bt({sortable:t,name:s,originalEvent:n})}},i))};function bt(e){Mg(Sa({putSortable:it,cloneEl:Pr,targetEl:Te,rootEl:Rr,oldIndex:Zn,oldDraggableIndex:Ai,newIndex:It,newDraggableIndex:Ya},e))}var Te,Br,ze,Rr,gn,Uo,Pr,qa,Zn,It,Ai,Ya,bo,it,Yn=!1,Zo=!1,Qo=[],hn,oa,Ms,Ks,Dc,Rc,wi,Vn,Oi,Di=!1,So=!1,Ho,ut,js=[],vl=!1,es=[],ms=typeof document<"u",Eo=Vu,Ic=ao||Wa?"cssFloat":"float",jg=ms&&!zu&&!Vu&&"draggable"in document.createElement("div"),Zu=function(){if(!!ms){if(Wa)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Qu=function(r,t){var a=We(r),n=parseInt(a.width)-parseInt(a.paddingLeft)-parseInt(a.paddingRight)-parseInt(a.borderLeftWidth)-parseInt(a.borderRightWidth),i=li(r,0,t),o=li(r,1,t),s=i&&We(i),l=o&&We(o),c=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+qr(i).width,f=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+qr(o).width;if(a.display==="flex")return a.flexDirection==="column"||a.flexDirection==="column-reverse"?"vertical":"horizontal";if(a.display==="grid")return a.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&s.float!=="none"){var u=s.float==="left"?"left":"right";return o&&(l.clear==="both"||l.clear===u)?"vertical":"horizontal"}return i&&(s.display==="block"||s.display==="flex"||s.display==="table"||s.display==="grid"||c>=n&&a[Ic]==="none"||o&&a[Ic]==="none"&&c+f>n)?"vertical":"horizontal"},Wg=function(r,t,a){var n=a?r.left:r.top,i=a?r.right:r.bottom,o=a?r.width:r.height,s=a?t.left:t.top,l=a?t.right:t.bottom,c=a?t.width:t.height;return n===s||i===l||n+o/2===s+c/2},Ug=function(r,t){var a;return Qo.some(function(n){var i=n[Lt].options.emptyInsertThreshold;if(!(!i||Hl(n))){var o=qr(n),s=r>=o.left-i&&r<=o.right+i,l=t>=o.top-i&&t<=o.bottom+i;if(s&&l)return a=n}}),a},ed=function(r){function t(i,o){return function(s,l,c,f){var u=s.options.group.name&&l.options.group.name&&s.options.group.name===l.options.group.name;if(i==null&&(o||u))return!0;if(i==null||i===!1)return!1;if(o&&i==="clone")return i;if(typeof i=="function")return t(i(s,l,c,f),o)(s,l,c,f);var d=(o?s:l).options.group.name;return i===!0||typeof i=="string"&&i===d||i.join&&i.indexOf(d)>-1}}var a={},n=r.group;(!n||Wo(n)!="object")&&(n={name:n}),a.name=n.name,a.checkPull=t(n.pull,!0),a.checkPut=t(n.put),a.revertClone=n.revertClone,r.group=a},rd=function(){!Zu&&ze&&We(ze,"display","none")},td=function(){!Zu&&ze&&We(ze,"display","")};ms&&!zu&&document.addEventListener("click",function(e){if(Zo)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Zo=!1,!1},!0);var vn=function(r){if(Te){r=r.touches?r.touches[0]:r;var t=Ug(r.clientX,r.clientY);if(t){var a={};for(var n in r)r.hasOwnProperty(n)&&(a[n]=r[n]);a.target=a.rootEl=t,a.preventDefault=void 0,a.stopPropagation=void 0,t[Lt]._onDragOver(a)}}},Hg=function(r){Te&&Te.parentNode[Lt]._isOutsideThisEl(r.target)};function je(e,r){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=r=Ka({},r),e[Lt]=this;var t={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Qu(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(o,s){o.setData("Text",s.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:je.supportPointer!==!1&&"PointerEvent"in window&&!ki,emptyInsertThreshold:5};no.initializePlugins(this,e,t);for(var a in t)!(a in r)&&(r[a]=t[a]);ed(r);for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));this.nativeDraggable=r.forceFallback?!1:jg,this.nativeDraggable&&(this.options.touchStartThreshold=1),r.supportPointer?ur(e,"pointerdown",this._onTapStart):(ur(e,"mousedown",this._onTapStart),ur(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(ur(e,"dragover",this),ur(e,"dragenter",this)),Qo.push(this.el),r.store&&r.store.get&&this.sort(r.store.get(this)||[]),Ka(this,Ng())}je.prototype={constructor:je,_isOutsideThisEl:function(r){!this.el.contains(r)&&r!==this.el&&(Vn=null)},_getDirection:function(r,t){return typeof this.options.direction=="function"?this.options.direction.call(this,r,t,Te):this.options.direction},_onTapStart:function(r){if(!!r.cancelable){var t=this,a=this.el,n=this.options,i=n.preventOnFilter,o=r.type,s=r.touches&&r.touches[0]||r.pointerType&&r.pointerType==="touch"&&r,l=(s||r).target,c=r.target.shadowRoot&&(r.path&&r.path[0]||r.composedPath&&r.composedPath()[0])||l,f=n.filter;if(Jg(a),!Te&&!(/mousedown|pointerdown/.test(o)&&r.button!==0||n.disabled)&&!c.isContentEditable&&!(!this.nativeDraggable&&ki&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=la(l,n.draggable,a,!1),!(l&&l.animated)&&Uo!==l)){if(Zn=qt(l),Ai=qt(l,n.draggable),typeof f=="function"){if(f.call(this,r,l,this)){bt({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:a,fromEl:a}),kt("filter",t,{evt:r}),i&&r.cancelable&&r.preventDefault();return}}else if(f&&(f=f.split(",").some(function(u){if(u=la(c,u.trim(),a,!1),u)return bt({sortable:t,rootEl:u,name:"filter",targetEl:l,fromEl:a,toEl:a}),kt("filter",t,{evt:r}),!0}),f)){i&&r.cancelable&&r.preventDefault();return}n.handle&&!la(c,n.handle,a,!1)||this._prepareDragStart(r,s,l)}}},_prepareDragStart:function(r,t,a){var n=this,i=n.el,o=n.options,s=i.ownerDocument,l;if(a&&!Te&&a.parentNode===i){var c=qr(a);if(Rr=i,Te=a,Br=Te.parentNode,gn=Te.nextSibling,Uo=a,bo=o.group,je.dragged=Te,hn={target:Te,clientX:(t||r).clientX,clientY:(t||r).clientY},Dc=hn.clientX-c.left,Rc=hn.clientY-c.top,this._lastX=(t||r).clientX,this._lastY=(t||r).clientY,Te.style["will-change"]="all",l=function(){if(kt("delayEnded",n,{evt:r}),je.eventCanceled){n._onDrop();return}n._disableDelayedDragEvents(),!kc&&n.nativeDraggable&&(Te.draggable=!0),n._triggerDragStart(r,t),bt({sortable:n,name:"choose",originalEvent:r}),Rt(Te,o.chosenClass,!0)},o.ignore.split(",").forEach(function(f){Gu(Te,f.trim(),Ws)}),ur(s,"dragover",vn),ur(s,"mousemove",vn),ur(s,"touchmove",vn),ur(s,"mouseup",n._onDrop),ur(s,"touchend",n._onDrop),ur(s,"touchcancel",n._onDrop),kc&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Te.draggable=!0),kt("delayStart",this,{evt:r}),o.delay&&(!o.delayOnTouchOnly||t)&&(!this.nativeDraggable||!(ao||Wa))){if(je.eventCanceled){this._onDrop();return}ur(s,"mouseup",n._disableDelayedDrag),ur(s,"touchend",n._disableDelayedDrag),ur(s,"touchcancel",n._disableDelayedDrag),ur(s,"mousemove",n._delayedDragTouchMoveHandler),ur(s,"touchmove",n._delayedDragTouchMoveHandler),o.supportPointer&&ur(s,"pointermove",n._delayedDragTouchMoveHandler),n._dragStartTimer=setTimeout(l,o.delay)}else l()}},_delayedDragTouchMoveHandler:function(r){var t=r.touches?r.touches[0]:r;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Te&&Ws(Te),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var r=this.el.ownerDocument;nr(r,"mouseup",this._disableDelayedDrag),nr(r,"touchend",this._disableDelayedDrag),nr(r,"touchcancel",this._disableDelayedDrag),nr(r,"mousemove",this._delayedDragTouchMoveHandler),nr(r,"touchmove",this._delayedDragTouchMoveHandler),nr(r,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(r,t){t=t||r.pointerType=="touch"&&r,!this.nativeDraggable||t?this.options.supportPointer?ur(document,"pointermove",this._onTouchMove):t?ur(document,"touchmove",this._onTouchMove):ur(document,"mousemove",this._onTouchMove):(ur(Te,"dragend",this),ur(Rr,"dragstart",this._onDragStart));try{document.selection?Vo(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(r,t){if(Yn=!1,Rr&&Te){kt("dragStarted",this,{evt:t}),this.nativeDraggable&&ur(document,"dragover",Hg);var a=this.options;!r&&Rt(Te,a.dragClass,!1),Rt(Te,a.ghostClass,!0),je.active=this,r&&this._appendGhost(),bt({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(oa){this._lastX=oa.clientX,this._lastY=oa.clientY,rd();for(var r=document.elementFromPoint(oa.clientX,oa.clientY),t=r;r&&r.shadowRoot&&(r=r.shadowRoot.elementFromPoint(oa.clientX,oa.clientY),r!==t);)t=r;if(Te.parentNode[Lt]._isOutsideThisEl(r),t)do{if(t[Lt]){var a=void 0;if(a=t[Lt]._onDragOver({clientX:oa.clientX,clientY:oa.clientY,target:r,rootEl:t}),a&&!this.options.dragoverBubble)break}r=t}while(t=t.parentNode);td()}},_onTouchMove:function(r){if(hn){var t=this.options,a=t.fallbackTolerance,n=t.fallbackOffset,i=r.touches?r.touches[0]:r,o=ze&&ti(ze,!0),s=ze&&o&&o.a,l=ze&&o&&o.d,c=Eo&&ut&&Oc(ut),f=(i.clientX-hn.clientX+n.x)/(s||1)+(c?c[0]-js[0]:0)/(s||1),u=(i.clientY-hn.clientY+n.y)/(l||1)+(c?c[1]-js[1]:0)/(l||1);if(!je.active&&!Yn){if(a&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<a)return;this._onDragStart(r,!0)}if(ze){o?(o.e+=f-(Ms||0),o.f+=u-(Ks||0)):o={a:1,b:0,c:0,d:1,e:f,f:u};var d="matrix(".concat(o.a,",").concat(o.b,",").concat(o.c,",").concat(o.d,",").concat(o.e,",").concat(o.f,")");We(ze,"webkitTransform",d),We(ze,"mozTransform",d),We(ze,"msTransform",d),We(ze,"transform",d),Ms=f,Ks=u,oa=i}r.cancelable&&r.preventDefault()}},_appendGhost:function(){if(!ze){var r=this.options.fallbackOnBody?document.body:Rr,t=qr(Te,!0,Eo,!0,r),a=this.options;if(Eo){for(ut=r;We(ut,"position")==="static"&&We(ut,"transform")==="none"&&ut!==document;)ut=ut.parentNode;ut!==document.body&&ut!==document.documentElement?(ut===document&&(ut=_a()),t.top+=ut.scrollTop,t.left+=ut.scrollLeft):ut=_a(),js=Oc(ut)}ze=Te.cloneNode(!0),Rt(ze,a.ghostClass,!1),Rt(ze,a.fallbackClass,!0),Rt(ze,a.dragClass,!0),We(ze,"transition",""),We(ze,"transform",""),We(ze,"box-sizing","border-box"),We(ze,"margin",0),We(ze,"top",t.top),We(ze,"left",t.left),We(ze,"width",t.width),We(ze,"height",t.height),We(ze,"opacity","0.8"),We(ze,"position",Eo?"absolute":"fixed"),We(ze,"zIndex","100000"),We(ze,"pointerEvents","none"),je.ghost=ze,r.appendChild(ze),We(ze,"transform-origin",Dc/parseInt(ze.style.width)*100+"% "+Rc/parseInt(ze.style.height)*100+"%")}},_onDragStart:function(r,t){var a=this,n=r.dataTransfer,i=a.options;if(kt("dragStart",this,{evt:r}),je.eventCanceled){this._onDrop();return}kt("setupClone",this),je.eventCanceled||(Pr=qu(Te),Pr.removeAttribute("id"),Pr.draggable=!1,Pr.style["will-change"]="",this._hideClone(),Rt(Pr,this.options.chosenClass,!1),je.clone=Pr),a.cloneId=Vo(function(){kt("clone",a),!je.eventCanceled&&(a.options.removeCloneOnHide||Rr.insertBefore(Pr,Te),a._hideClone(),bt({sortable:a,name:"clone"}))}),!t&&Rt(Te,i.dragClass,!0),t?(Zo=!0,a._loopId=setInterval(a._emulateDragOver,50)):(nr(document,"mouseup",a._onDrop),nr(document,"touchend",a._onDrop),nr(document,"touchcancel",a._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(a,n,Te)),ur(document,"drop",a),We(Te,"transform","translateZ(0)")),Yn=!0,a._dragStartId=Vo(a._dragStarted.bind(a,t,r)),ur(document,"selectstart",a),wi=!0,ki&&We(document.body,"user-select","none")},_onDragOver:function(r){var t=this.el,a=r.target,n,i,o,s=this.options,l=s.group,c=je.active,f=bo===l,u=s.sort,d=it||c,v,x=this,h=!1;if(vl)return;function p(G,L){kt(G,x,Sa({evt:r,isOwner:f,axis:v?"vertical":"horizontal",revert:o,dragRect:n,targetRect:i,canSort:u,fromSortable:d,target:a,completed:S,onMove:function(Z,I){return Co(Rr,t,Te,n,Z,qr(Z),r,I)},changed:g},L))}function m(){p("dragOverAnimationCapture"),x.captureAnimationState(),x!==d&&d.captureAnimationState()}function S(G){return p("dragOverCompleted",{insertion:G}),G&&(f?c._hideClone():c._showClone(x),x!==d&&(Rt(Te,it?it.options.ghostClass:c.options.ghostClass,!1),Rt(Te,s.ghostClass,!0)),it!==x&&x!==je.active?it=x:x===je.active&&it&&(it=null),d===x&&(x._ignoreWhileAnimating=a),x.animateAll(function(){p("dragOverAnimationComplete"),x._ignoreWhileAnimating=null}),x!==d&&(d.animateAll(),d._ignoreWhileAnimating=null)),(a===Te&&!Te.animated||a===t&&!a.animated)&&(Vn=null),!s.dragoverBubble&&!r.rootEl&&a!==document&&(Te.parentNode[Lt]._isOutsideThisEl(r.target),!G&&vn(r)),!s.dragoverBubble&&r.stopPropagation&&r.stopPropagation(),h=!0}function g(){It=qt(Te),Ya=qt(Te,s.draggable),bt({sortable:x,name:"change",toEl:t,newIndex:It,newDraggableIndex:Ya,originalEvent:r})}if(r.preventDefault!==void 0&&r.cancelable&&r.preventDefault(),a=la(a,s.draggable,t,!0),p("dragOver"),je.eventCanceled)return h;if(Te.contains(r.target)||a.animated&&a.animatingX&&a.animatingY||x._ignoreWhileAnimating===a)return S(!1);if(Zo=!1,c&&!s.disabled&&(f?u||(o=Br!==Rr):it===this||(this.lastPutMode=bo.checkPull(this,c,Te,r))&&l.checkPut(this,c,Te,r))){if(v=this._getDirection(r,a)==="vertical",n=qr(Te),p("dragOverValid"),je.eventCanceled)return h;if(o)return Br=Rr,m(),this._hideClone(),p("revert"),je.eventCanceled||(gn?Rr.insertBefore(Te,gn):Rr.appendChild(Te)),S(!0);var w=Hl(t,s.draggable);if(!w||Gg(r,v,this)&&!w.animated){if(w===Te)return S(!1);if(w&&t===r.target&&(a=w),a&&(i=qr(a)),Co(Rr,t,Te,n,a,i,r,!!a)!==!1)return m(),w&&w.nextSibling?t.insertBefore(Te,w.nextSibling):t.appendChild(Te),Br=t,g(),S(!0)}else if(w&&$g(r,v,this)){var C=li(t,0,s,!0);if(C===Te)return S(!1);if(a=C,i=qr(a),Co(Rr,t,Te,n,a,i,r,!1)!==!1)return m(),t.insertBefore(Te,C),Br=t,g(),S(!0)}else if(a.parentNode===t){i=qr(a);var F=0,_,R=Te.parentNode!==t,y=!Wg(Te.animated&&Te.toRect||n,a.animated&&a.toRect||i,v),W=v?"top":"left",D=Ac(a,"top","top")||Ac(Te,"top","top"),E=D?D.scrollTop:void 0;Vn!==a&&(_=i[W],Di=!1,So=!y&&s.invertSwap||R),F=Xg(r,a,i,v,y?1:s.swapThreshold,s.invertedSwapThreshold==null?s.swapThreshold:s.invertedSwapThreshold,So,Vn===a);var T;if(F!==0){var A=qt(Te);do A-=F,T=Br.children[A];while(T&&(We(T,"display")==="none"||T===ze))}if(F===0||T===a)return S(!1);Vn=a,Oi=F;var b=a.nextElementSibling,O=!1;O=F===1;var N=Co(Rr,t,Te,n,a,i,r,O);if(N!==!1)return(N===1||N===-1)&&(O=N===1),vl=!0,setTimeout(zg,30),m(),O&&!b?t.appendChild(Te):a.parentNode.insertBefore(Te,O?b:a),D&&Yu(D,0,E-D.scrollTop),Br=Te.parentNode,_!==void 0&&!So&&(Ho=Math.abs(_-qr(a)[W])),g(),S(!0)}if(t.contains(Te))return S(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){nr(document,"mousemove",this._onTouchMove),nr(document,"touchmove",this._onTouchMove),nr(document,"pointermove",this._onTouchMove),nr(document,"dragover",vn),nr(document,"mousemove",vn),nr(document,"touchmove",vn)},_offUpEvents:function(){var r=this.el.ownerDocument;nr(r,"mouseup",this._onDrop),nr(r,"touchend",this._onDrop),nr(r,"pointerup",this._onDrop),nr(r,"touchcancel",this._onDrop),nr(document,"selectstart",this)},_onDrop:function(r){var t=this.el,a=this.options;if(It=qt(Te),Ya=qt(Te,a.draggable),kt("drop",this,{evt:r}),Br=Te&&Te.parentNode,It=qt(Te),Ya=qt(Te,a.draggable),je.eventCanceled){this._nulling();return}Yn=!1,So=!1,Di=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),xl(this.cloneId),xl(this._dragStartId),this.nativeDraggable&&(nr(document,"drop",this),nr(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ki&&We(document.body,"user-select",""),We(Te,"transform",""),r&&(wi&&(r.cancelable&&r.preventDefault(),!a.dropBubble&&r.stopPropagation()),ze&&ze.parentNode&&ze.parentNode.removeChild(ze),(Rr===Br||it&&it.lastPutMode!=="clone")&&Pr&&Pr.parentNode&&Pr.parentNode.removeChild(Pr),Te&&(this.nativeDraggable&&nr(Te,"dragend",this),Ws(Te),Te.style["will-change"]="",wi&&!Yn&&Rt(Te,it?it.options.ghostClass:this.options.ghostClass,!1),Rt(Te,this.options.chosenClass,!1),bt({sortable:this,name:"unchoose",toEl:Br,newIndex:null,newDraggableIndex:null,originalEvent:r}),Rr!==Br?(It>=0&&(bt({rootEl:Br,name:"add",toEl:Br,fromEl:Rr,originalEvent:r}),bt({sortable:this,name:"remove",toEl:Br,originalEvent:r}),bt({rootEl:Br,name:"sort",toEl:Br,fromEl:Rr,originalEvent:r}),bt({sortable:this,name:"sort",toEl:Br,originalEvent:r})),it&&it.save()):It!==Zn&&It>=0&&(bt({sortable:this,name:"update",toEl:Br,originalEvent:r}),bt({sortable:this,name:"sort",toEl:Br,originalEvent:r})),je.active&&((It==null||It===-1)&&(It=Zn,Ya=Ai),bt({sortable:this,name:"end",toEl:Br,originalEvent:r}),this.save()))),this._nulling()},_nulling:function(){kt("nulling",this),Rr=Te=Br=ze=gn=Pr=Uo=qa=hn=oa=wi=It=Ya=Zn=Ai=Vn=Oi=it=bo=je.dragged=je.ghost=je.clone=je.active=null,es.forEach(function(r){r.checked=!0}),es.length=Ms=Ks=0},handleEvent:function(r){switch(r.type){case"drop":case"dragend":this._onDrop(r);break;case"dragenter":case"dragover":Te&&(this._onDragOver(r),Vg(r));break;case"selectstart":r.preventDefault();break}},toArray:function(){for(var r=[],t,a=this.el.children,n=0,i=a.length,o=this.options;n<i;n++)t=a[n],la(t,o.draggable,this.el,!1)&&r.push(t.getAttribute(o.dataIdAttr)||qg(t));return r},sort:function(r,t){var a={},n=this.el;this.toArray().forEach(function(i,o){var s=n.children[o];la(s,this.options.draggable,n,!1)&&(a[i]=s)},this),t&&this.captureAnimationState(),r.forEach(function(i){a[i]&&(n.removeChild(a[i]),n.appendChild(a[i]))}),t&&this.animateAll()},save:function(){var r=this.options.store;r&&r.set&&r.set(this)},closest:function(r,t){return la(r,t||this.options.draggable,this.el,!1)},option:function(r,t){var a=this.options;if(t===void 0)return a[r];var n=no.modifyOption(this,r,t);typeof n<"u"?a[r]=n:a[r]=t,r==="group"&&ed(a)},destroy:function(){kt("destroy",this);var r=this.el;r[Lt]=null,nr(r,"mousedown",this._onTapStart),nr(r,"touchstart",this._onTapStart),nr(r,"pointerdown",this._onTapStart),this.nativeDraggable&&(nr(r,"dragover",this),nr(r,"dragenter",this)),Array.prototype.forEach.call(r.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Qo.splice(Qo.indexOf(this.el),1),this.el=r=null},_hideClone:function(){if(!qa){if(kt("hideClone",this),je.eventCanceled)return;We(Pr,"display","none"),this.options.removeCloneOnHide&&Pr.parentNode&&Pr.parentNode.removeChild(Pr),qa=!0}},_showClone:function(r){if(r.lastPutMode!=="clone"){this._hideClone();return}if(qa){if(kt("showClone",this),je.eventCanceled)return;Te.parentNode==Rr&&!this.options.group.revertClone?Rr.insertBefore(Pr,Te):gn?Rr.insertBefore(Pr,gn):Rr.appendChild(Pr),this.options.group.revertClone&&this.animate(Te,Pr),We(Pr,"display",""),qa=!1}}};function Vg(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function Co(e,r,t,a,n,i,o,s){var l,c=e[Lt],f=c.options.onMove,u;return window.CustomEvent&&!Wa&&!ao?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=r,l.from=e,l.dragged=t,l.draggedRect=a,l.related=n||r,l.relatedRect=i||qr(r),l.willInsertAfter=s,l.originalEvent=o,e.dispatchEvent(l),f&&(u=f.call(c,l,o)),u}function Ws(e){e.draggable=!1}function zg(){vl=!1}function $g(e,r,t){var a=qr(li(t.el,0,t.options,!0)),n=Ju(t.el,t.options,ze),i=10;return r?e.clientX<n.left-i||e.clientY<a.top&&e.clientX<a.right:e.clientY<n.top-i||e.clientY<a.bottom&&e.clientX<a.left}function Gg(e,r,t){var a=qr(Hl(t.el,t.options.draggable)),n=Ju(t.el,t.options,ze),i=10;return r?e.clientX>n.right+i||e.clientY>a.bottom&&e.clientX>a.left:e.clientY>n.bottom+i||e.clientX>a.right&&e.clientY>a.top}function Xg(e,r,t,a,n,i,o,s){var l=a?e.clientY:e.clientX,c=a?t.height:t.width,f=a?t.top:t.left,u=a?t.bottom:t.right,d=!1;if(!o){if(s&&Ho<c*n){if(!Di&&(Oi===1?l>f+c*i/2:l<u-c*i/2)&&(Di=!0),Di)d=!0;else if(Oi===1?l<f+Ho:l>u-Ho)return-Oi}else if(l>f+c*(1-n)/2&&l<u-c*(1-n)/2)return Yg(r)}return d=d||o,d&&(l<f+c*i/2||l>u-c*i/2)?l>f+c/2?1:-1:0}function Yg(e){return qt(Te)<qt(e)?1:-1}function qg(e){for(var r=e.tagName+e.className+e.src+e.href+e.textContent,t=r.length,a=0;t--;)a+=r.charCodeAt(t);return a.toString(36)}function Jg(e){es.length=0;for(var r=e.getElementsByTagName("input"),t=r.length;t--;){var a=r[t];a.checked&&es.push(a)}}function Vo(e){return setTimeout(e,0)}function xl(e){return clearTimeout(e)}ms&&ur(document,"touchmove",function(e){(je.active||Yn)&&e.cancelable&&e.preventDefault()});je.utils={on:ur,off:nr,css:We,find:Gu,is:function(r,t){return!!la(r,t,r,!1)},extend:Ig,throttle:Xu,closest:la,toggleClass:Rt,clone:qu,index:qt,nextTick:Vo,cancelNextTick:xl,detectDirection:Qu,getChild:li};je.get=function(e){return e[Lt]};je.mount=function(){for(var e=arguments.length,r=new Array(e),t=0;t<e;t++)r[t]=arguments[t];r[0].constructor===Array&&(r=r[0]),r.forEach(function(a){if(!a.prototype||!a.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(a));a.utils&&(je.utils=Sa(Sa({},je.utils),a.utils)),no.mount(a)})};je.create=function(e,r){return new je(e,r)};je.version=Og;var Gr=[],yi,gl,pl=!1,Us,Hs,rs,_i;function Zg(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var r in this)r.charAt(0)==="_"&&typeof this[r]=="function"&&(this[r]=this[r].bind(this))}return e.prototype={dragStarted:function(t){var a=t.originalEvent;this.sortable.nativeDraggable?ur(document,"dragover",this._handleAutoScroll):this.options.supportPointer?ur(document,"pointermove",this._handleFallbackAutoScroll):a.touches?ur(document,"touchmove",this._handleFallbackAutoScroll):ur(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var a=t.originalEvent;!this.options.dragOverBubble&&!a.rootEl&&this._handleAutoScroll(a)},drop:function(){this.sortable.nativeDraggable?nr(document,"dragover",this._handleAutoScroll):(nr(document,"pointermove",this._handleFallbackAutoScroll),nr(document,"touchmove",this._handleFallbackAutoScroll),nr(document,"mousemove",this._handleFallbackAutoScroll)),Pc(),zo(),Pg()},nulling:function(){rs=gl=yi=pl=_i=Us=Hs=null,Gr.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,a){var n=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,s=document.elementFromPoint(i,o);if(rs=t,a||this.options.forceAutoScrollFallback||ao||Wa||ki){Vs(t,this.options,s,a);var l=Za(s,!0);pl&&(!_i||i!==Us||o!==Hs)&&(_i&&Pc(),_i=setInterval(function(){var c=Za(document.elementFromPoint(i,o),!0);c!==l&&(l=c,zo()),Vs(t,n.options,c,a)},10),Us=i,Hs=o)}else{if(!this.options.bubbleScroll||Za(s,!0)===_a()){zo();return}Vs(t,this.options,Za(s,!1),!1)}}},Ka(e,{pluginName:"scroll",initializeByDefault:!0})}function zo(){Gr.forEach(function(e){clearInterval(e.pid)}),Gr=[]}function Pc(){clearInterval(_i)}var Vs=Xu(function(e,r,t,a){if(!!r.scroll){var n=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,o=r.scrollSensitivity,s=r.scrollSpeed,l=_a(),c=!1,f;gl!==t&&(gl=t,zo(),yi=r.scroll,f=r.scrollFn,yi===!0&&(yi=Za(t,!0)));var u=0,d=yi;do{var v=d,x=qr(v),h=x.top,p=x.bottom,m=x.left,S=x.right,g=x.width,w=x.height,C=void 0,F=void 0,_=v.scrollWidth,R=v.scrollHeight,y=We(v),W=v.scrollLeft,D=v.scrollTop;v===l?(C=g<_&&(y.overflowX==="auto"||y.overflowX==="scroll"||y.overflowX==="visible"),F=w<R&&(y.overflowY==="auto"||y.overflowY==="scroll"||y.overflowY==="visible")):(C=g<_&&(y.overflowX==="auto"||y.overflowX==="scroll"),F=w<R&&(y.overflowY==="auto"||y.overflowY==="scroll"));var E=C&&(Math.abs(S-n)<=o&&W+g<_)-(Math.abs(m-n)<=o&&!!W),T=F&&(Math.abs(p-i)<=o&&D+w<R)-(Math.abs(h-i)<=o&&!!D);if(!Gr[u])for(var A=0;A<=u;A++)Gr[A]||(Gr[A]={});(Gr[u].vx!=E||Gr[u].vy!=T||Gr[u].el!==v)&&(Gr[u].el=v,Gr[u].vx=E,Gr[u].vy=T,clearInterval(Gr[u].pid),(E!=0||T!=0)&&(c=!0,Gr[u].pid=setInterval(function(){a&&this.layer===0&&je.active._onTouchMove(rs);var b=Gr[this.layer].vy?Gr[this.layer].vy*s:0,O=Gr[this.layer].vx?Gr[this.layer].vx*s:0;typeof f=="function"&&f.call(je.dragged.parentNode[Lt],O,b,e,rs,Gr[this.layer].el)!=="continue"||Yu(Gr[this.layer].el,O,b)}.bind({layer:u}),24))),u++}while(r.bubbleScroll&&d!==l&&(d=Za(d,!1)));pl=c}},30),ad=function(r){var t=r.originalEvent,a=r.putSortable,n=r.dragEl,i=r.activeSortable,o=r.dispatchSortableEvent,s=r.hideGhostForTarget,l=r.unhideGhostForTarget;if(!!t){var c=a||i;s();var f=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(f.clientX,f.clientY);l(),c&&!c.el.contains(u)&&(o("spill"),this.onSpill({dragEl:n,putSortable:a}))}};function Vl(){}Vl.prototype={startIndex:null,dragStart:function(r){var t=r.oldDraggableIndex;this.startIndex=t},onSpill:function(r){var t=r.dragEl,a=r.putSortable;this.sortable.captureAnimationState(),a&&a.captureAnimationState();var n=li(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(t,n):this.sortable.el.appendChild(t),this.sortable.animateAll(),a&&a.animateAll()},drop:ad};Ka(Vl,{pluginName:"revertOnSpill"});function zl(){}zl.prototype={onSpill:function(r){var t=r.dragEl,a=r.putSortable,n=a||this.sortable;n.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),n.animateAll()},drop:ad};Ka(zl,{pluginName:"removeOnSpill"});je.mount(new Zg);je.mount(zl,Vl);/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Nc(e,r,t){var a=Xe(e);return t-r>0?(a.splice(t+1,0,a[r]),a.splice(r,1)):(a.splice(t,0,a[r]),a.splice(r+1,1)),a}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Lc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function xi(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Lc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Lc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function Bc(e){e.parentElement!==null&&e.parentElement.removeChild(e)}function Mc(e,r,t){var a=t===0?e.children[0]:e.children[t-1].nextSibling;e.insertBefore(r,a)}function Qg(e,r,t){var a=Cr(e),n=a.sortOnRowDraggable,i=a.dragSort,o=a.data,s=ye(e.pagination),l=Dt(),c=l.tableDraggableClasses,f=l.tableBaseClass,u=l.tableFullRowClasses,d=l.tableExpandClasses,v=ye(e.columns||[]),x=ye(null),h=le(function(){return v.value.find(function(W){return W.colKey==="drag"})}),p=le(function(){return n.value||["row","row-handler-col"].includes(i.value)}),m=le(function(){return["row-handler","row-handler-col"].includes(i.value)&&!!h.value}),S=le(function(){return["col","row-handler-col"].includes(i.value)});e.sortOnRowDraggable&&Nr.error("Table","`sortOnRowDraggable` is going to be deprecated, use dragSort='row' instead.");function g(W,D){var E,T,A=(E=D.current)!==null&&E!==void 0?E:D.defaultCurrent,b=(T=D.pageSize)!==null&&T!==void 0?T:D.defaultPageSize;return!e.disableDataPage&&D&&o.value.length>b?b*(A-1)+W:W}var w=function(D){if(!(!m.value&&!p.value)){var E=D==null?void 0:D.querySelector("tbody");if(!E)return console.error("tbody does not exist."),null;var T=xi({animation:150,ghostClass:c.ghost,chosenClass:c.chosen,dragClass:c.dragging,filter:".".concat(u.base,",.").concat(d.row),onMove:function(b){return!m1(b.related,u.base)},onEnd:function(b){var O;if(b.newIndex!==b.oldIndex){Bc(b.item),Mc(b.from,b.item,b.oldIndex);var N=b.oldIndex,G=b.newIndex;(or(e.firstFullRow)&&e.firstFullRow(Kr)||r.slots.firstFullRow||r.slots["first-full-row"])&&(N-=1,G-=1),s.value&&(N=g(N,s.value),G=g(G,s.value));var L={data:o.value,currentIndex:N,current:o.value[N],targetIndex:G,target:o.value[G],newData:Nc(Xe(e.data),N,G),e:b,sort:"row"};L.currentData=L.newData,(O=e.onDragSort)===null||O===void 0||O.call(e,L)}}},e.dragSortOptions);!E||(p.value?new je(E,xi({},T)):new je(E,xi(xi({},T),{},{handle:".".concat(c.handle)})))}},C=function(D,E){var T=xi({animation:150,dataIdAttr:"data-colkey",direction:"vertical",ghostClass:c.ghost,chosenClass:c.chosen,dragClass:c.dragging,handle:".".concat(f.thCellInner),onEnd:function(b){var O;if(b.newIndex!==b.oldIndex){E&&(Bc(b.item),Mc(b.from,b.item,b.oldIndex));var N=b.oldIndex,G=b.newIndex,L=b.target,X=E?N:G,Z=E?G:N,I=L.children[X],z=L.children[Z],U=qo(v.value,I.dataset.colkey),V=qo(v.value,z.dataset.colkey);(!U||!U.colKey)&&Nr.error("Table","colKey is missing in ".concat(JSON.stringify(U))),(!V||!V.colKey)&&Nr.error("Table","colKey is missing in ".concat(JSON.stringify(V))),X=_c(e.columns,U.colKey),Z=_c(e.columns,V.colKey);var q={data:v.value,currentIndex:X,current:U,targetIndex:Z,target:V,newData:Nc(Xe(e.columns),X,Z),e:b,sort:"col"};q.currentData=q.newData,(O=e.onDragSort)===null||O===void 0||O.call(e,q)}}},e.dragSortOptions);!D||new je(D,T)},F=function(D){if(!(!S.value||!D)){var E=D.querySelectorAll("thead > tr");if(E.length<=1){var T=_r(E,1),A=T[0];C(A,!0)}else E==null||E.forEach(function(b){C(b,!1)})}};function _(W){x.value=W}function R(W){v.value=W}Ge([x,v,i,t],function(W){var D=_r(W,4),E=D[0];D[1],D[2];var T=D[3];y(E,T)});function y(W,D){var E=W;if(!(!W||!E.$el||!D.showElement))var T=setTimeout(function(){w(E.$el),F(E.$el);var A=setTimeout(function(){E.$refs.affixHeaderRef&&F(E.$refs.affixHeaderRef),clearTimeout(A)});clearTimeout(T)},60)}return{innerPagination:s,isRowDraggable:p,isRowHandlerDraggable:m,isColDraggable:S,setDragSortPrimaryTableRef:_,setDragSortColumns:R}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function ep(e){var r=sn(),t=ta("table",e.locale),a=t.globalConfig,n=Dt(),i=n.isLoadingClass,o=n.isLoadMoreClass,s=n.asyncLoadingClass,l=le(function(){return[s,ue(ue({},i,e.asyncLoading==="loading"),o,e.asyncLoading==="load-more")]});function c(){var u;!da(e.asyncLoading)||(u=e.onAsyncLoadingClick)===null||u===void 0||u.call(e,{status:e.asyncLoading})}function f(){var u=r("asyncLoading");if(da(u)){var d=e.asyncLoading,v={"load-more":a.value.loadingMoreText,loading:a.value.loadingText}[String(d)];return te("div",{class:l.value,onClick:c},[te(Ll,{indicator:d==="loading",loading:!!d,size:"small",text:v},null)])}return[null,!1,void 0].includes(u)?null:te("div",{class:l.value,onClick:c},[u])}return{renderAsyncLoading:f}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Kc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function vr(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Kc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Kc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var rp=Tr({name:"TableEditableCell",props:{row:Object,rowKey:String,rowIndex:Number,col:Object,colIndex:Number,oldCell:[Function,String],tableBaseClass:Object,cellEmptyContent:[Function,String],editable:{type:Boolean,default:void 0},readonly:{type:Boolean},errors:{type:Array,default:void 0},onChange:Function,onValidate:Function,onRuleChange:Function,onEditableChange:Function},emits:["update-edited-cell"],setup:function(r,t){var a,n=Cr(r),i=n.row,o=n.col;ye(null);var s=le(function(){var b;return(b=o.value.edit)===null||b===void 0?void 0:b.keepEditMode}),l=ye(s.value||((a=r.col.edit)===null||a===void 0?void 0:a.defaultEditable)||!1),c=ye(),f=ye(),u=ba(),d=ui({Edit1Icon:A1}),v=d.Edit1Icon,x=function(O){if(Kt(O)==="object"&&("rowValue"in O||O.isUpdateCurrentRow)){var N=O.isUpdateCurrentRow?_e(i.value,r.rowKey):O.rowValue;delete O.rowValue,delete O.isUpdateCurrentRow,t.emit("update-edited-cell",N,i.value,O)}else c.value=O};Ge([s],function(b){b&&(l.value=!0)});var h=le(function(){var b,O;return((b=o.value.edit)===null||b===void 0||(O=b.on)===null||O===void 0?void 0:O.call(b,vr(vr({},p.value),{},{editedRow:m.value,updateEditedCellValue:x})))||{}}),p=le(function(){return{rowIndex:r.rowIndex,colIndex:r.colIndex,col:r.col,row:r.row}}),m=le(function(){var b=o.value.colKey,O=b.split(".")||[],N=l1(O),G=N[0],L=N.slice(1),X=vr({},i.value);return L.length?(X[G]=Dl(i.value[G]),ji(X[G],L.join("."),c.value)):ji(X,b,c.value),X}),S=le(function(){var b=Yo({row:m.value,col:vr(vr({},o.value),{},{cell:r.oldCell}),rowIndex:r.rowIndex,colIndex:r.colIndex},t.slots,{cellEmptyContent:r.cellEmptyContent});return b}),g=le(function(){var b=o.value.edit;return or(b.props)?b.props(vr(vr({},p.value),{},{editedRow:m.value,updateEditedCellValue:x})):vr({},b.props)}),w=le(function(){var b,O=o.value.edit;if(!O)return{};var N=vr({},g.value);return delete N.onChange,delete N.value,(b=O.abortEditOnEvent)===null||b===void 0||b.forEach(function(G){delete N[G]}),N}),C=le(function(){var b,O=o.value.edit;return O?Boolean((b=O.abortEditOnEvent)===null||b===void 0?void 0:b.includes("onChange")):!1}),F=function(O){return new Promise(function(N){var G={result:[vr(vr({},p.value),{},{errorList:[],value:c.value})],trigger:O},L=or(o.value.edit.rules)?o.value.edit.rules(p.value):o.value.edit.rules;if(!o.value.edit||!L||!L.length){var X;(X=r.onValidate)===null||X===void 0||X.call(r,G),N(!0);return}uu(c.value,L).then(function(Z){var I,z=Z==null?void 0:Z.filter(function(U){return!U.result});G.result[0].errorList=z,(I=r.onValidate)===null||I===void 0||I.call(r,G),!z||!z.length?(f.value=[],N(!0)):(f.value=z,N(z))})})},_=function(O,N){return ol(O)&&ol(N)?JSON.stringify(O)===JSON.stringify(N):O===N},R=function(O,N){for(var G=arguments.length,L=new Array(G>2?G-2:0),X=2;X<G;X++)L[X-2]=arguments[X];F("self").then(function(Z){var I,z;if(Z===!0){var U=_e(i.value,o.value.colKey);_(c.value,U)||(c.value=U,O==null||O.apply(void 0,L)),(I=(z=h.value)[N])===null||I===void 0||I.call(z,L[2]);var V=setTimeout(function(){var q;s.value||(l.value=!1),f.value=[],(q=r.onEditableChange)===null||q===void 0||q.call(r,vr(vr({},p.value),{},{value:c.value,editedRow:vr(vr({},r.row),{},ue({},r.col.colKey,c.value)),validateEdit:F,isEdit:!1})),clearTimeout(V)},0)}})},y=le(function(){var b,O=o.value.edit,N=r.editable===void 0;if(!(!l.value||!N)){if(!(O!=null&&(b=O.abortEditOnEvent)!==null&&b!==void 0&&b.length))return{};var G={},L=O==null?void 0:O.onEdited;return O.abortEditOnEvent.forEach(function(X){X!=="onChange"&&(G[X]=function(){for(var Z=arguments.length,I=new Array(Z),z=0;z<Z;z++)I[z]=arguments[z];R.apply(void 0,[L,X,vr(vr({},p.value),{},{trigger:X,newRowData:m.value})].concat(I))})}),G}}),W=function(O){var N,G,L,X,Z,I,z;c.value=O;for(var U=vr(vr({},p.value),{},{value:O,editedRow:vr(vr({},r.row),{},ue({},r.col.colKey,O))}),V=arguments.length,q=new Array(V>1?V-1:0),ee=1;ee<V;ee++)q[ee-1]=arguments[ee];(N=g.value)===null||N===void 0||(G=N.onChange)===null||G===void 0||G.call.apply(G,[N,O].concat(q)),(L=r.onChange)===null||L===void 0||L.call(r,U),(X=r.onRuleChange)===null||X===void 0||X.call(r,U),(Z=h.value)===null||Z===void 0||(I=Z.onChange)===null||I===void 0||I.call(Z,U);var Y=r.editable===void 0;if(Y&&C.value){var J,Q=(J=o.value.edit)===null||J===void 0?void 0:J.onEdited;R.apply(void 0,[Q,"change",vr(vr({},p.value),{},{trigger:"onChange",newRowData:m.value})].concat(q))}((z=o.value.edit)===null||z===void 0?void 0:z.validateTrigger)==="change"&&F("self")},D=function(O){var N;if(!(!o.value.edit||!o.value.edit.component)&&!!l.value){var G=((N=O.composedPath)===null||N===void 0?void 0:N.call(O))||O.path||[],L=G.find(function(Z){var I;return(I=Z.classList)===null||I===void 0?void 0:I.contains("".concat(u.value,"-popup__content"))});if(!L){var X=o.value.edit.onEdited;R(X,"",vr(vr({},p.value),{},{trigger:"document",newRowData:m.value}))}}},E=function(){var O;(O=r.onEditableChange)===null||O===void 0||O.call(r,vr(vr({},p.value),{},{value:c.value,editedRow:r.row,isEdit:!0,validateEdit:F}))},T=function(O){l.value=!0,E(),O.stopPropagation()};aa(function(){var b;(b=r.col.edit)!==null&&b!==void 0&&b.defaultEditable&&E()});var A=le(function(){return _e(i.value,o.value.colKey)});return Ge(A,function(b){c.value=b},{immediate:!0}),Ge(l,function(b){var O=r.editable===void 0;!o.value.edit||!o.value.edit.component||!O||(b?Er(document,"click",D):cr(document,"click",D))},{immediate:!0}),Ge(function(){return[r.editable,r.row,r.col,r.rowIndex,r.colIndex]},function(b){var O=_r(b,1),N=O[0];if(N===!1)c.value=A.value;else if(N===!0){var G;(G=r.onRuleChange)===null||G===void 0||G.call(r,vr(vr({},p.value),{},{value:A.value,editedRow:i.value}))}},{immediate:!0}),Ge(function(){return r.errors},function(b){f.value=b}),function(){var b,O,N,G;if(r.readonly)return S.value;if(r.editable===void 0&&!l.value||r.editable===!1){var L;return te("div",{class:r.tableBaseClass.cellEditable,onClick:T},[S.value,((L=o.value.edit)===null||L===void 0?void 0:L.showEditIcon)!==!1&&te(v,null,null)])}var X=(b=o.value.edit)===null||b===void 0?void 0:b.component;if(!X)return Nr.error("Table","edit.component is required."),null;var Z=(O=f.value)===null||O===void 0||(O=O[0])===null||O===void 0?void 0:O.message,I=vr({},h.value);return delete I.onChange,(N=o.value.edit)!==null&&N!==void 0&&(N=N.abortEditOnEvent)!==null&&N!==void 0&&N.length&&o.value.edit.abortEditOnEvent.forEach(function(z){I[z]&&delete I[z]}),te("div",{class:r.tableBaseClass.cellEditWrap,onClick:function(U){U.stopPropagation()},ref:"tableEditableCellRef"},[te(X,Or({status:Z?((G=f.value)===null||G===void 0||(G=G[0])===null||G===void 0?void 0:G.type)||"error":void 0,tips:Z},w.value,y.value,I,{value:c.value,onChange:W}),null)])}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function jc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function gi(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?jc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):jc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function tp(e){var r=Cr(e),t=r.editableRowKeys,a=new Map,n=ye({}),i=le(function(){return mg(e.editableRowKeys,e.data,e.rowKey||"id")}),o=ye({}),s=ye({}),l=function(g){var w={};return g.forEach(function(C){var F=C.row,_=C.col,R=C.errorList,y=_e(F,e.rowKey||"id"),W=[y,_.colKey].join("__");R!=null&&R.length?w[W]=R:delete w[W]}),w},c=function(g){var w=a.get(g);if(!!w){var C=w.map(function(F){return new Promise(function(_){var R=F.editedRow,y=F.col,W=or(y.edit.rules)?y.edit.rules(F):y.edit.rules;if(!y.edit||!W||!W.length){_(gi(gi({},F),{},{errorList:[]}));return}uu(_e(R,y.colKey),W).then(function(D){_(gi(gi({},F),{},{errorList:D.filter(function(E){return!E.result})}))})})});return new Promise(function(F,_){Promise.all(C).then(function(R){F({errors:R.filter(function(y){var W;return(W=y.errorList)===null||W===void 0?void 0:W.length}),errorMap:l(R)})},_)})}},f=function(g){return new Promise(function(w,C){c(g).then(function(F){var _,R=F.errors,y=F.errorMap;n.value=y;var W="parent";(_=e.onRowValidate)===null||_===void 0||_.call(e,{trigger:W,result:R}),w({trigger:W,result:R})},C)})},u=function(){var g=Object.keys(o.value),w=g.map(function(C){return o.value[C].validateEdit("parent")});return new Promise(function(C,F){Promise.all(w).then(function(_){var R,y={};_.forEach(function(W,D){W!==!0&&(y[g[D]]=W)}),(R=e.onValidate)===null||R===void 0||R.call(e,{result:y}),C({result:y})},F)})},d=function(){if(Object.keys(o.value).length)return u();for(var g=[],w=e.data||[],C=0,F=w.length;C<F;C++){var _=_e(w[C],e.rowKey||"id");g.push(c(_))}return new Promise(function(R,y){Promise.all(g).then(function(W){var D,E={};W.forEach(function(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{errors:[],errorMap:{}},A=T.errorMap;A&&Object.assign(E,A)}),n.value=E,(D=e.onValidate)===null||D===void 0||D.call(e,{result:E}),R({result:E})},y)})},v=function(g,w,C){s.value[g]||(s.value[g]=Dl(w)),Object.entries(C).forEach(function(F){var _=_r(F,2),R=_[0],y=_[1];ji(s.value[g],R,y)})},x=function(g){if(e.editableRowKeys){var w=_e(g.row,e.rowKey||"id"),C=a.get(w);if(C){var F=C.findIndex(function(_){return _.col.colKey===g.col.colKey});F===-1?C.push(g):C[F]=g,a.set(w,C)}else a.set(w,[g])}},h=function(){n.value={}},p=function(g){var w=Ui(g.row,e.rowKey,g.col.colKey,g.colIndex);g.isEdit?o.value[w]=g:delete o.value[w]},m=function(g){var w,C=g.row,F=g.col,_=_e(C,e.rowKey||"id"),R=s.value[_];if(R&&(w=e.editableRowKeys)!==null&&w!==void 0&&w.includes(_)){var y=gi({},R);return ji(y,F.colKey,_e(R,F.colKey)),y}return C};return Ge(function(){var S;return(S=t.value)===null||S===void 0?void 0:S.join(",")},function(S){var g=S.split(","),w=Object.keys(s.value);w.forEach(function(C){g.includes(C)||delete s.value[C]})}),{editedFormData:s,errorListMap:n,editableKeysMap:i,validateTableData:d,validateRowData:f,onRuleChange:x,clearValidateData:h,onUpdateEditedCell:v,getEditRowData:m,onPrimaryTableCellEditChange:p}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Wc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function Aa(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Wc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var ap=["hideSortTips","dragSort","defaultExpandedRowKeys","defaultSelectedRowKeys","columnController","filterRow","sortOnRowDraggable","expandOnRowClick","expand-on-row-click","expanded-row","editable-row-keys","editable-cell-state","filter-value","multipleSort","expandIcon","expand-icon","reserveSelectedRowOnPaginate","expandedRowKeys","expandedRow","reserve-selected-row-on-paginate","reserveSelectedRowOnPaginate","selected-row-keys","selectedRowKeys","selectOnRowClick","column-controller","columnController","dragSort","drag-sort","hideSortTips","showSortColumnBgColor","filter-row","filterRow","multiple-sort","multipleSort","async-loading","onChange","onAsyncLoadingClick","onColumnChange","onColumnControllerVisibleChange","onDataChange","onDisplayColumnsChange","onDragSort","onExpandChange","onFilterChange","onSelectChange","onSortChange"],$l=Tr({name:"TPrimaryTable",props:Aa(Aa({},si),Wu),setup:function(r,t){var a=sn(),n=Cr(r),i=n.columns,o=n.columnController,s=ye(null),l=ye(!1),c=Dt(),f=c.classPrefix,u=c.tableDraggableClasses,d=c.tableBaseClass,v=c.tableSelectedClasses,x=c.tableSortClasses,h=ta("table",r.locale),p=h.globalConfig,m=Ku(r),S=m.sizeClassNames,g=le(function(){var er;return(er=r.size)!==null&&er!==void 0?er:p.value.size}),w=gg(r,t),C=w.tDisplayColumns,F=w.renderColumnController,_=pg(r,t),R=_.showExpandedRow,y=_.showExpandIconColumn,W=_.getExpandColumn,D=_.renderExpandedRow,E=_.onInnerExpandRowClick,T=Sg(r,t),A=T.renderSortIcon,b=wg(r,v),O=b.selectColumn,N=b.showRowSelect,G=b.selectedRowClassNames,L=b.currentPaginateData,X=b.formatToRowSelectColumn,Z=b.setTSelectedRowKeys,I=b.onInnerSelectRowClick,z=b.handleRowSelectWithAreaSelection,U=Tg(r,t),V=U.hasEmptyCondition,q=U.isTableOverflowHidden,ee=U.renderFilterIcon,Y=U.renderFirstFilterRow,J=U.setFilterPrimaryTableRef,Q=le(function(){return{showElement:l.value}}),ce=Qg(r,t,Q),K=ce.isRowHandlerDraggable,Oe=ce.isRowDraggable,Ie=ce.isColDraggable,Le=ce.innerPagination,Pe=ce.setDragSortPrimaryTableRef,ve=ce.setDragSortColumns,Ye=Ru(r),dr=Ye.renderTitleWidthIcon,hr=ep(r),kr=hr.renderAsyncLoading,Qe=tp(r),zr=Qe.errorListMap,ge=Qe.editableKeysMap,Fe=Qe.validateRowData,Ae=Qe.validateTableData,de=Qe.onRuleChange,be=Qe.clearValidateData,ke=Qe.onUpdateEditedCell,me=Qe.getEditRowData,De=Qe.onPrimaryTableCellEditChange,Ke=le(function(){return Boolean(R.value||N.value)}),Ne=le(function(){return Boolean(R.value||N.value)}),Be=le(function(){var er;return ue(ue(ue(ue(ue(ue(ue(ue({},u.colDraggable,Ie.value),u.rowHandlerDraggable,K.value),u.rowDraggable,Oe.value),d.overflowVisible,q.value===!1),d.tableRowEdit,r.editableRowKeys),"".concat(f,"-table--select-").concat((er=O.value)===null||er===void 0?void 0:er.type),O.value),"".concat(f,"-table--row-select"),N.value),"".concat(f,"-table--row-expandable"),R.value)}),tr=le(function(){var er=[r.rowClassName,G.value];return er.filter(function(Ve){return Ve})}),sr=le(function(){var er=[r.rowAttributes];return(K.value||Oe.value)&&er.push(function(Ve){var Sr=Ve.row;return{"data-id":_e(Sr,r.rowKey||"id")}}),er.filter(function(Ve){return Ve})});aa(function(){J(s.value),Pe(s.value)}),t.expose({validateRowData:Fe,validateTableData:Ae,clearValidateData:be,refreshTable:function(){s.value.refreshTable()},scrollToElement:function(Ve){s.value.scrollToElement(Ve)},scrollColumnIntoView:function(Ve){s.value.scrollColumnIntoView(Ve)},baseTableRef:s});var wr=function(Ve){var Sr;(Sr=r.onRowEdit)===null||Sr===void 0||Sr.call(r,Ve);var Zr=_e(Ve.editedRow,r.rowKey||"id");ke(Zr,Ve.row,ue({},Ve.col.colKey,Ve.value))},Fr=function er(Ve){for(var Sr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Zr=[],Wr=function(){var ka,k,j,P,B,M=Aa({},Ve[_t]),H=((ka=M.children)===null||ka===void 0?void 0:ka.length)||((k=C.value)===null||k===void 0?void 0:k.includes(M.colKey));if(!H&&(r.columnController||r.displayColumns||r.defaultDisplayColumns)&&!Sr)return 1;M=X(M);var ae=r.sort;if(M.sorter&&r.showSortColumnBgColor){var oe=ae instanceof Array?ae:[ae],re=oe.find(function(fe){return fe&&fe.sortBy===M.colKey&&fe.descending!==void 0});re&&(M.className=M.className instanceof Array?M.className.concat(x.sortColumn):[M.className,x.sortColumn])}if(M.sorter||M.filter){var ne=ps(t.slots,M,_t),ie=M,we=ie.ellipsisTitle;M.title=function(fe,xe){var Re,ar=M.sorter?A(xe):null,lr=M.filter?ee(xe):null,Lr=(Re=s.value)===null||Re===void 0?void 0:Re.tableContentRef;return dr([ne,ar,lr],xe.col,xe.colIndex,we,Lr,{classPrefix:f,ellipsisOverlayClassName:g.value!=="medium"?S[g.value]:""})},M.ellipsisTitle=!1}if((j=M.edit)!==null&&j!==void 0&&j.component){var Ce=M.cell;M.cell=function(fe,xe){var Re=Aa(Aa({},xe),{},{row:me(xe),oldCell:Ce,rowKey:r.rowKey||"id",tableBaseClass:d,cellEmptyContent:r.cellEmptyContent,onChange:wr,onValidate:r.onRowValidate,onRuleChange:de,onEditableChange:De});if(r.editableRowKeys){var ar,lr=_e(xe.row,r.rowKey||"id");Re.editable=ge.value[lr]||!1;var Lr=[lr,xe.col.colKey].join("__"),va=(ar=zr.value)===null||ar===void 0?void 0:ar[Lr];va&&(Re.errors=va)}return r.editableCellState&&(Re.readonly=!r.editableCellState(xe)),te(rp,Or(Re,{onUpdateEditedCell:ke}),t.slots)}}if((P=M.children)!==null&&P!==void 0&&P.length){var pe;M.children=er(M.children,Sr||((pe=C.value)===null||pe===void 0?void 0:pe.includes(M.colKey)))}(!M.children||(B=M.children)!==null&&B!==void 0&&B.length)&&Zr.push(M)},_t=0,Ta=Ve.length;_t<Ta;_t++)Wr();return Zr},Wt=le(function(){var er=Fr(i.value);return y.value&&er.unshift(W()),er}),ia=function(Ve,Sr){var Zr,Wr;Le.value=Aa(Aa({},Le.value),Ve),L.value=Sr,(Zr=r.onPageChange)===null||Zr===void 0||Zr.call(r,Ve,Sr);var _t=[{pagination:Ve},{trigger:"pagination",currentData:Sr}];(Wr=r.onChange)===null||Wr===void 0||Wr.call.apply(Wr,[r].concat(_t)),r.reserveSelectedRowOnPaginate||Z([],{selectedRowData:[],type:"uncheck",currentRowKey:"CLEAR_ON_PAGINATE"})},ft=function(Ve){var Sr;(Sr=r.onActiveRowAction)===null||Sr===void 0||Sr.call(r,Ve),z(Ve)},ha=function(Ve){r.expandOnRowClick&&E(Ve),r.selectOnRowClick&&I(Ve)},yt,za=250,Ut=function(Ve){if(!r.onRowDblclick){ha(Ve);return}yt?(clearTimeout(yt),yt=void 0):yt=setTimeout(function(){ha(Ve),yt=void 0},za)},Ht=function(Ve){l.value=Ve};return function(){var er,Ve,Sr=function(H,ae,oe,re){if(!oe)return r[H];var ne=ae(Kr),ie=a(H);return ne&&!ie?function(){return ne}:ie&&!ne?function(){return ie}:ne&&ie?function(){return re!=null&&re.reverse?te("div",null,[ne,ie]):te("div",null,[ie,ne])}:null},Zr=!!(o.value&&Object.keys(o.value).length),Wr=Zr?o.value.placement||"top-right":"",_t=Zr&&(Wr==null?void 0:Wr.indexOf("bottom"))!==-1,Ta=Sr("topContent",F,Zr&&!_t),Wn=Sr("bottomContent",F,_t,{reverse:!0}),ka=Sr("firstFullRow",Y,!V.value),k=Sr("lastFullRow",kr,!!r.asyncLoading),j=cu(),P=j.vnode,B=Aa(Aa({},bu(P.props,ap)),{},{rowKey:r.rowKey,rowClassName:tr.value,rowAttributes:sr.value,columns:Wt.value,keyboardRowHover:(er=r.keyboardRowHover)!==null&&er!==void 0?er:Ke.value,disableSpaceInactiveRow:(Ve=r.disableSpaceInactiveRow)!==null&&Ve!==void 0?Ve:Ne.value,topContent:Ta,bottomContent:Wn,firstFullRow:ka,lastFullRow:k,thDraggable:["col","row-handler-col"].includes(r.dragSort),onShowElementChange:Ht,onPageChange:ia,renderExpandedRow:R.value?D:void 0,onActiveRowAction:ft});return(r.expandOnRowClick||r.selectOnRowClick)&&(B.onRowClick=Ut),te(ju,Or(B,{ref:s,class:Be.value,onLeafColumnsChange:ve}),t.slots)}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var np={beforeDragSort:{type:Function},expandedTreeNodes:{type:Array,default:void 0},defaultExpandedTreeNodes:{type:Array,default:function(){return[]}},tree:{type:Object},treeExpandAndFoldIcon:{type:Function},onAbnormalDragSort:Function,onExpandedTreeNodesChange:Function,onTreeExpandChange:Function};/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Uc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function To(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Uc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Uc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var Hc={code:1001,reason:"The same level of rows can not be swapped."};function Oa(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,n=_e(e,r);return t||a?"".concat(n,"_").concat(t||0,"_").concat(a||0,"}"):n}var ip=function(){function e(){v1(this,e),ue(this,"treeDataMap",new Map),ue(this,"expandAllRowIndex",void 0),this.treeDataMap=new Map}return h1(e,[{key:"initialTreeStore",value:function(t,a,n){var i;(i=this.treeDataMap)===null||i===void 0||i.clear(),this.initialTreeDataMap(this.treeDataMap,t,a.find(function(o){return o.colKey==="row-select"}),n)}},{key:"getAllUniqueKeys",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0,o=t.length;i<o;i++){var s=t[i];n.push(Oa(s,a.rowKey));var l=_e(s,a.childrenKey);l!=null&&l.length&&this.getAllUniqueKeys(l,a,n)}return n}},{key:"getExpandedChildrenKeys",value:function(t,a){for(var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],i=0,o=t.length;i<o;i++){var s=t[i],l=Oa(s,a.rowKey),c=this.treeDataMap.get(l);c.expanded&&n.push(l);var f=_e(s,a.childrenKey);f!=null&&f.length&&this.getExpandedChildrenKeys(f,a,n)}return n}},{key:"expandTreeNode",value:function(t,a,n){var i=this;return t.length&&t.forEach(function(o){var s=i.treeDataMap.get(o);!s||i.toggleExpandData({row:s.row,rowIndex:s.rowIndex},a,n,"expand")}),a}},{key:"foldTreeNode",value:function(t,a,n){var i=this;return t.length&&t.forEach(function(o){var s=i.treeDataMap.get(o);!s||i.toggleExpandData({row:s.row,rowIndex:s.rowIndex},a,n,"fold")}),a}},{key:"toggleExpandData",value:function(t,a,n,i){var o;if(!t)return Nr.error("EnhancedTable","the node toggleExpanded doest not exist in `data`"),a;var s=_e(t.row,n.rowKey);if(ei(s))return Nr.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`."),[];var l=_e(t.row,n.childrenKey);if(l===!0)return a;var c=this.treeDataMap.get(s);return i==="expand"&&c.expanded||i==="fold"&&!c.expanded?a:(c.rowIndex=(o=c.rowIndex)!==null&&o!==void 0?o:t.rowIndex,c.expanded=!c.expanded,this.treeDataMap.set(s,c),this.updateExpandRow(c,a,n))}},{key:"updateExpandRow",value:function(t,a,n){var i=t.row,o=t.rowIndex,s=t.expanded,l=this.treeDataMap,c=_e(i,n.childrenKey);if(!i||!c)return a;if(s)ml(l,t,s,n),zn(l,i,c.length,"expand",n),a.splice.apply(a,[o+1,0].concat(c));else{ml(l,t,s,n);var f=t.expandChildrenLength||c.length;zn(l,i,-1*f,"fold",n),a.splice(o+1,f)}return xn(l,a,{rowKey:n.rowKey,minRowIndex:o+1}),a}},{key:"getData",value:function(t){return this.treeDataMap.get(t)}},{key:"updateData",value:function(t,a,n,i){var o=Oa(a,i.rowKey),s=this.treeDataMap.get(t);if(!s||s.rowIndex===-1)return id(n,t,a,{rowKey:i.rowKey,childrenKey:i.childrenKey}),-1;if(_e(a,i.childrenKey)===!0){var l=_e(s.row,i.childrenKey);if(l!=null&&l.length)for(var c=0,f=l.length;c<f;c++){var u=Oa(l[c],i.rowKey),d=this.treeDataMap.get(u);d&&this.treeDataMap.delete(u)}}var v=s.rowIndex;if(s.row=a,s.id=o,s.parent){var x=_e(s.parent.row,i.childrenKey),h=x.findIndex(function(p){return Oa(p,i.rowKey)===t});x[h]=a}return this.treeDataMap.set(o,s),t!==o&&this.treeDataMap.delete(t),v}},{key:"remove",value:function(t,a,n){var i=this.treeDataMap.get(t);if(i&&i.rowIndex>=0){var o=(i.expandChildrenLength||0)+1;if(a.splice(i.rowIndex,o),i.parent){var s=_e(i.parent.row,n.childrenKey),l=s.findIndex(function(c){return _e(c,n.rowKey)===t});s.splice(l,1),zn(this.treeDataMap,i.parent.row,-1*o,"delete",n)}this.treeDataMap.delete(t),xn(this.treeDataMap,a,{minRowIndex:i.rowIndex,rowKey:n.rowKey,type:"remove"})}else Nr.warn("EnhancedTable","Can not remove this node, which is not appeared.");return a}},{key:"removeChildren",value:function(t,a,n){var i=this.treeDataMap.get(t);if(i&&i.rowIndex>=0){var o=i.expandChildrenLength||0;o&&a.splice(i.rowIndex+1,o),i.parent&&zn(this.treeDataMap,i.parent.row,-1*o,"delete",n),i.expandChildrenLength=0,i.expanded=!1,ji(i.row,n.childrenKey,void 0),this.treeDataMap.set(t,i),o&&xn(this.treeDataMap,a,{minRowIndex:i.rowIndex+1,rowKey:n.rowKey,type:"remove"})}else Nr.warn("EnhancedTable","Can not remove this node's children, which is not appeared.");return a}},{key:"appendTo",value:function(t,a,n,i){var o=this.treeDataMap.get(t);if(!this.validateDataExist(o,t))return n;for(var s=_e(o.row,i.childrenKey),l=o.expanded||!(s!=null&&s.length),c=a instanceof Array?a:[a],f=[],u=-1,d=0,v=c.length;d<v;d++){var x=c[d],h=Oa(x,i.rowKey),p=this.treeDataMap.get(h);if(!this.validateDataDoubleExist(p,h))Nr.warn("Table","Duplicated Data `".concat(h,"` has been removed."));else{var m=l?o.rowIndex+(o.expandChildrenLength||0)+(d+1):-1;d===0&&(u=m);var S={id:h,row:x,rowIndex:m,level:o.level+1,expanded:!1,expandChildrenLength:0,disabled:!1,path:Xe(o.path),parent:o};S.path=S.path.concat(S),f.push(x),this.treeDataMap.set(h,S)}}if(!f.length)return n;if(s!=null&&s.length?o.row[i.childrenKey]=o.row[i.childrenKey].concat(f):(o.row[i.childrenKey]=f,o.expanded=!0),l){n.splice.apply(n,[u,0].concat(f));var g=f.length||1;zn(this.treeDataMap,o.row,g,"insert",{rowKey:i.rowKey,childrenKey:i.childrenKey}),xn(this.treeDataMap,n,{minRowIndex:u+f.length-1,rowKey:i.rowKey,type:"add",count:1})}return n}},{key:"appendToRoot",value:function(t,a,n){for(var i=a.concat(t),o=t instanceof Array?t:[t],s=a.length,l=0,c=o.length;l<c;l++){var f=_e(o[l],n.rowKey);if(!f){Nr.error("Table","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");continue}var u={id:f,row:o[l],rowIndex:s+l,level:0,expanded:!1,expandChildrenLength:0,disabled:!1};u.path=[u],this.treeDataMap.set(f,u)}return i}},{key:"insertAfter",value:function(t,a,n,i){return this.insert(t,a,n,i,"after")}},{key:"insertBefore",value:function(t,a,n,i){return this.insert(t,a,n,i,"before")}},{key:"insert",value:function(t,a,n,i,o){var s=this.treeDataMap.get(t);if(!this.validateDataExist(s,t))return n;var l=_e(a,i.rowKey),c=this.treeDataMap.get(l);if(!this.validateDataDoubleExist(c,l))return n;var f=o==="after"?s.rowIndex+1:s.rowIndex,u={id:l,row:a,rowIndex:f,level:s.level,expanded:!1,expandChildrenLength:0,disabled:!1,path:s.path.slice(0,-1),parent:s.parent};u.path=u.path.concat(u);var d=o==="after"?s.rowIndex+(s.expandChildrenLength+1):s.rowIndex;n.splice(d,0,a);var v=o==="after"?1:0;if(s.parent){var x=s.parent.row[i.childrenKey].findIndex(function(h){return t===_e(h,i.rowKey)});s.parent.row[i.childrenKey].splice(x+v,0,a),zn(this.treeDataMap,s.parent.row,1,"insert",i)}return this.treeDataMap.set(l,u),xn(this.treeDataMap,n,{rowKey:i.rowKey,minRowIndex:s.rowIndex+1,type:"add"}),n}},{key:"swapData",value:function(t,a,n){var i=a.currentIndex,o=a.targetIndex;if(i===o)return{dataSource:t,result:!0};var s=_e(a.current,n.rowKey),l=_e(a.target,n.rowKey),c=this.treeDataMap.get(s),f=this.treeDataMap.get(l);if(c.level!==f.level)return{dataSource:t,result:!1,code:Hc.code,reason:Hc.reason};var u=i+c.expandChildrenLength+1,d=o+f.expandChildrenLength+1,v=t.slice(i,u),x=t.slice(o,d);if(i>o){var h=t.slice(d,i),p=v.concat(x,h);t.splice(o,p.length),t.splice.apply(t,[o,0].concat(Xe(p))),xn(this.treeDataMap,t,{rowKey:n.rowKey,minRowIndex:o,maxRowIndex:u})}else{var m=t.slice(u,o),S=m.concat(x,v);t.splice(i,S.length),t.splice.apply(t,[i,0].concat(Xe(S))),xn(this.treeDataMap,t,{rowKey:n.rowKey,minRowIndex:i,maxRowIndex:d})}if(c.parent){for(var g=c.parent.row[n.childrenKey],w=0,C=-1,F=-1,_=0,R=g.length;_<R&&(_e(g[_],n.rowKey)===s&&(C=_,w+=1),_e(g[_],n.rowKey)===l&&(F=_,w+=1),!(w>=2));_++);g[C]=a.target,g[F]=a.current}return{dataSource:t,result:!0}}},{key:"expandAll",value:function(t,a){var n=this;this.expandAllRowIndex=0;var i=[],o=function s(l,c){for(var f=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,u=0,d=l.length;u<d;u++){var v=l[u],x=_e(v,c.rowKey),h=n.treeDataMap.get(x),p=_e(v,c.childrenKey);if(h.rowIndex=n.expandAllRowIndex,p!==!0&&p!==null&&p!==void 0&&p.length&&(h.expanded=!0),h.expandChildrenLength=(p==null?void 0:p.length)||0,n.expandAllRowIndex+=1,i.push(v),n.treeDataMap.set(x,h),p!=null&&p.length){for(var m=f;(S=m)!==null&&S!==void 0&&S.row;){var S;m.expandChildrenLength+=p.length,n.treeDataMap.set(m.id,m),m=m.parent}s(p,c,h)}}};return o(t,a),i}},{key:"foldAll",value:function(t,a){for(var n=[],i=0,o=0,s=t.length;o<s;o++){var l=t[o],c=_e(l,a.rowKey),f=this.treeDataMap.get(c);f.rowIndex=f.level===0?i:-1,f.expanded=!1,f.expandChildrenLength=0,f.level===0&&(n.push(l),i+=1);var u=_e(l,a.childrenKey);u!=null&&u.length&&this.foldAll(u,a)}return n}},{key:"getTreeNode",value:function(t,a){for(var n=[],i=0,o=t.length;i<o;i++){var s=t[i],l=_e(s,a.rowKey),c=this.treeDataMap.get(l);c.level===0&&n.push(s)}return n}},{key:"getTreeExpandedRow",value:function(t,a){var n=this,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"data",o=[];return t.forEach(function(s){var l=_e(s,a.rowKey),c=n.treeDataMap.get(l);!c.expanded||(i==="unique"?o.push(l):i==="data"?o.push(s):o.push(c))}),o}},{key:"initialTreeDataMap",value:function(t,a,n,i){for(var o=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0,s=arguments.length>5&&arguments[5]!==void 0?arguments[5]:null,l=0,c=a.length;l<c;l++){var f=a[l],u=Oa(f,i.rowKey);if(ei(u)){Nr.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var d=_e(f,i.childrenKey),v={id:u,row:f,rowIndex:o===0?l:-1,level:o,expanded:!1,expandChildrenLength:0,disabled:hl(n,f,l),parent:s};v.path=s?s.path.concat(v):[v],t.set(u,v),d!=null&&d.length&&this.initialTreeDataMap(t,d,n,i,o+1,v)}}},{key:"updateDisabledState",value:function(t,a,n){for(var i=0,o=t.length;i<o;i++){var s=t[i],l=_e(s,n.rowKey);if(ei(l)){Nr.error("EnhancedTable","`rowKey` could be wrong, can not get rowValue from `data` by `rowKey`.");return}var c=this.treeDataMap.get(l);c.disabled=hl(a,s,i),this.treeDataMap.set(l,c);var f=_e(s,n.childrenKey);f!=null&&f.length&&this.updateDisabledState(f,a,n)}}},{key:"validateDataExist",value:function(t,a){return t?!0:(Nr.warn("EnhancedTable","".concat(a," does not exist.")),!1)}},{key:"validateDataDoubleExist",value:function(t,a){return t?(Nr.warn("EnhancedTable","Duplicated Key. ".concat(a," already exists.")),!1):!0}}])}();function zn(e,r,t,a,n){for(var i=r;i;){var o,s=e.get(_e(i,n.rowKey)),l=(s.expandChildrenLength||0)+t;s.expandChildrenLength=Math.max(0,l),i=s==null||(o=s.parent)===null||o===void 0?void 0:o.row}a==="fold"&&nd(e,r,n)}function nd(e,r,t){var a=_e(r,t.childrenKey);a!=null&&a.length&&a.forEach(function(n){var i=e.get(_e(n,t.rowKey));!i||(i.expandChildrenLength=0,nd(e,i.row,t))})}function ml(e,r,t,a){var n=r.row,i=r.rowIndex,o=_e(n,a.childrenKey);o.forEach(function(s,l){var c=_e(s,a.rowKey),f=t?i+1+l:-1,u=e.get(c),d=To(To({},u),{},{row:s,rowIndex:f,expanded:!1,parent:r});if(e.set(c,d),!t){var v=_e(s,a.childrenKey);v!=null&&v.length&&ml(e,To(To({},d),{},{rowIndex:-1,expanded:!1}),t,a)}})}function id(e,r,t,a){for(var n=0,i=e.length;n<i;n++){var o=e[n];if(_e(o,a.rowKey)===r){e[n]=t;return}var s=_e(o,a.childrenKey)||[];s!=null&&s.length&&id(s,r,t,a)}}function xn(e,r,t){for(var a=t.minRowIndex||0,n=t.maxRowIndex||r.length,i=a;i<n;i++){var o=r[i],s=e.get(_e(o,t.rowKey));s||Nr.warn("Table","tree map went wrong"),s.rowIndex=i+((t==null?void 0:t.count)||1)-1}}function op(){for(var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],a=[],n=new Map,i=new Map,o=0,s=e.length;o<s;o++)n.set(e[o],!0);for(var l=0,c=r.length;l<c;l++)i.set(r[l],!0);for(var f=0,u=e.length;f<u;f++)i.get(e[f])||a.push(e[f]);for(var d=0,v=r.length;d<v;d++)n.get(r[d])||t.push(r[d]);return{removedList:t,addedList:a}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function Vc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function zs(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Vc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Vc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function sp(e,r){var t=r.store,a=r.dataSource,n=r.rowDataKeys,i=Cr(e),o=i.data,s=i.expandedTreeNodes,l=i.tree,c=ye(!1),f=ye(!1),u=Ma(s,e.defaultExpandedTreeNodes,e.onExpandedTreeNodesChange,"expandedTreeNodes"),d=_r(u,2),v=d[0],x=d[1],h=ye({type:"props-change"});function p(){var C=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"expand-all",F=arguments.length>1?arguments[1]:void 0,_=F||o.value;a.value=t.value.expandAll(_,n.value);var R=a.value.map(function(y){return Oa(y,n.value.rowKey)});x(R,{row:void 0,rowState:void 0,rowIndex:void 0,type:"expand",trigger:C}),h.value.type="expand-all"}function m(){a.value=Xe(t.value.foldAll(a.value,n.value)),x([],{row:void 0,rowState:void 0,rowIndex:void 0,type:"fold",trigger:"fold-all"})}function S(C,F){var _,R=C.row,y=C.rowIndex;h.value=zs({type:"user-reaction-change"},C);var W=Oa(R,n.value.rowKey),D=t.value.treeDataMap.get(W),E=Xe(v.value);if(D.expanded){for(var T=t.value.getExpandedChildrenKeys([R],n.value),A=0,b=E.length;A<b;A++){var O=E[A];T.includes(O)&&(E[A]=void 0)}E=E.filter(Boolean)}else E.push(W);var N={row:R,rowIndex:y,rowState:D,trigger:F};x(E,zs(zs({},N),{},{type:D.expanded?"fold":"expand"})),(_=e.onTreeExpandChange)===null||_===void 0||_.call(e,N)}function g(C,F){var _=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],R=op(F,_),y=R.addedList,W=R.removedList;return t.value.expandTreeNode(y,C,n.value),t.value.foldTreeNode(W,C,n.value),Xe(C)}Ge([v,o],function(C,F){var _=_r(C,1),R=_[0],y=_r(F,1),W=y[0];if(!(!t.value.treeDataMap.size||!o.value.length)){if(h.value.type==="user-reaction-change"){var D=h.value||{},E=D.row,T=D.rowIndex;a.value=Xe(t.value.toggleExpandData({row:E,rowIndex:T},Xe(a.value),n.value))}else h.value.type==="props-change"&&g(a.value,R,W);h.value.type="props-change"}});var w=function(F){var _,R;(_=l.value)!==null&&_!==void 0&&_.defaultExpandAll&&!c.value?(p("default-expand-all",Xe(F)),c.value=!0):(R=v.value)!==null&&R!==void 0&&R.length&&Ba(function(){a.value=g(Xe(F),v.value,[])})};return{tExpandedTreeNode:v,isDefaultExpandAllExecute:c,isDefaultExpandedTreeNodesExecute:f,expandAll:p,foldAll:m,onExpandFoldIconClick:S,updateExpandOnDataChange:w}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function zc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function zt(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?zc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):zc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}function lp(e,r){var t=Cr(e),a=t.data,n=t.columns,i=ta("table",e.locale),o=i.t,s=i.globalConfig,l=ui({AddRectangleIcon:S1,MinusRectangleIcon:N1}),c=l.AddRectangleIcon,f=l.MinusRectangleIcon,u=ye(new ip),d=Nv(),v=ye([]),x=Dt(),h=x.tableTreeClasses,p=to(),m=le(function(){var Y;return{rowKey:e.rowKey||"id",childrenKey:((Y=e.tree)===null||Y===void 0?void 0:Y.childrenKey)||"children"}}),S=sp(e,{store:u,dataSource:v,rowDataKeys:m}),g=S.tExpandedTreeNode,w=S.isDefaultExpandAllExecute,C=S.isDefaultExpandedTreeNodesExecute,F=S.expandAll,_=S.foldAll,R=S.updateExpandOnDataChange,y=S.onExpandFoldIconClick,W=le(function(){return n.value.find(function(Y){return Y.colKey==="row-select"})});Ge(W,function(Y){!u.value||u.value.updateDisabledState(v.value,Y,m.value)});var D=function(J){var Q=zt(zt({},J),{},{type:"fold"}),ce=o(s.value.treeExpandAndFoldIcon,Kr,Q)||te(f,null,null);return p("treeExpandAndFoldIcon",{defaultNode:ce,params:Q})},E=function(J){var Q=zt(zt({},J),{},{type:"expand"}),ce=o(s.value.treeExpandAndFoldIcon,Kr,Q)||te(c,null,null);return p("treeExpandAndFoldIcon",{defaultNode:ce,params:Q})};Ge([a],function(){e.tree?T(a.value):v.value=a.value},{immediate:!0}),su(function(){var Y;!e.tree||((Y=u.value.treeDataMap)===null||Y===void 0||Y.clear(),u.value=null)}),Ge(function(){var Y;return[n,(Y=e.tree)===null||Y===void 0?void 0:Y.treeNodeColumnIndex]},function(){d.value=O()},{immediate:!0});function T(Y){var J,Q=e.columns,ce=e.expandedTreeNodes,K=e.defaultExpandedTreeNodes,Oe=e.tree;u.value.initialTreeStore(Y,Q,m.value);var Ie=Boolean(!C.value&&(K==null?void 0:K.length)),Le=Boolean((Oe==null?void 0:Oe.defaultExpandAll)&&!w.value);(J=g.value)!==null&&J!==void 0&&J.length&&!!(ce||Ie)||Le?(R(Y),C.value=!0):v.value=Xe(Y)}function A(Y){var J,Q;if(Y!==void 0){var ce=((J=e.tree)===null||J===void 0?void 0:J.indent)===void 0?24:(Q=e.tree)===null||Q===void 0?void 0:Q.indent;return ce?{paddingLeft:"".concat(Y*ce||1,"px")}:{}}}function b(Y,J){var Q,ce,K=zt({},Y);Y.row.VIRTUAL_SCROLL_INDEX!==void 0&&(K.rowIndex=Y.row.VIRTUAL_SCROLL_INDEX),v.value=Xe(u.value.toggleExpandData(K,v.value,m.value));var Oe=_e(Y.row,m.value.rowKey),Ie=(Q=u.value)===null||Q===void 0||(Q=Q.treeDataMap)===null||Q===void 0?void 0:Q.get(Oe);(ce=e.onTreeExpandChange)===null||ce===void 0||ce.call(e,{row:Y.row,rowIndex:Y.rowIndex,rowState:Ie,trigger:J})}function O(){for(var Y,J=e.columns,Q=((Y=e.tree)===null||Y===void 0?void 0:Y.treeNodeColumnIndex)||0;(ce=J[Q])!==null&&ce!==void 0&&ce.type||((K=J[Q])===null||K===void 0?void 0:K.colKey)==="__EXPAND_ROW_ICON_COLUMN__";){var ce,K;Q+=1}return J[Q]}function N(Y){if(!e.tree||Y.colKey!==d.value.colKey)return Y;var J=zt({},d.value);return J.cell=function(Q,ce){var K=Yo(zt(zt({},ce),{},{col:zt({},d.value)}),r.slots,{cellEmptyContent:e.cellEmptyContent}),Oe=u.value.treeDataMap.get(_e(ce.row,m.value.rowKey)),Ie=A(Oe==null?void 0:Oe.level),Le=ue({},h.inlineCol,!!Y.ellipsis),Pe=_e(ce.row,m.value.childrenKey);if(Pe&&Pe instanceof Array||Pe===!0){var ve,Ye=(ve=u.value.treeDataMap.get(_e(ce.row,m.value.rowKey)))!==null&&ve!==void 0&&ve.expanded?D(ce):E(ce);return te("div",{class:[h.col,Le],style:Ie},[!!(Pe.length||Pe===!0)&&te("span",{class:h.icon,onClick:function(hr){y(ce,"expand-fold-icon"),hr.stopPropagation()}},[Ye]),K])}return te("div",{style:Ie,class:[Le,h.leafNode]},[te("span",{class:h.icon},null),K])},J.ellipsis===!0&&(J.ellipsis=function(Q,ce){return Yo(zt(zt({},ce),{},{col:zt({},d.value)}),r.slots)}),J}function G(Y,J){var Q=u.value.updateData(Y,J,v.value,m.value),ce=Xe(v.value);ce[Q]=J,v.value=ce}function L(Y){return u.value.getData(Y)}function X(Y){v.value=Xe(u.value.remove(Y,v.value,m.value))}function Z(Y){v.value=Xe(u.value.removeChildren(Y,v.value,m.value))}function I(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",J=arguments.length>1?arguments[1]:void 0;if(!Y){v.value=u.value.appendToRoot(J,v.value,m.value);return}v.value=Xe(u.value.appendTo(Y,J,v.value,m.value))}function z(Y,J){v.value=Xe(u.value.insertAfter(Y,J,v.value,m.value))}function U(Y,J){v.value=Xe(u.value.insertBefore(Y,J,v.value,m.value))}function V(Y){var J=u.value.swapData(v.value,Y,m.value);if(J.result)v.value=Xe(J.dataSource);else{var Q,ce={code:J.code,reason:J.reason};(Q=e.onAbnormalDragSort)===null||Q===void 0||Q.call(e,ce)}}function q(){return u.value.getTreeNode(v.value,m.value)}function ee(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"data";return u.value.getTreeExpandedRow(v.value,m.value,Y)}return{store:u,rowDataKeys:m,dataSource:v,swapData:V,setData:G,getData:L,remove:X,removeChildren:Z,appendTo:I,insertAfter:z,insertBefore:U,formatTreeColumn:N,toggleExpandData:b,expandAll:F,foldAll:_,getTreeNode:q,resetData:T,getTreeExpandedRow:ee,onExpandFoldIconClick:y}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/function $c(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ko(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?$c(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):$c(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var wl=new Map;function bi(e,r,t,a){if(wl.get(r))return wl.get(r);var n=a||{allChildren:[],allChildrenKeys:[],leafNodeKeys:[]},i=_e(r,t.childrenKey);if(!i||!i.length)return n;var o=i.filter(function(m){var S;return!((S=e.get(_e(m,t.rowKey)))!==null&&S!==void 0&&S.disabled)});n.allChildren=Xe(new Set(n.allChildren.concat(o)));for(var s=0,l=i.length;s<l;s++){var c=i[s],f=_e(c,t.childrenKey);if(f!=null&&f.length){var u=bi(e,c,t,n);n.allChildren=Xe(new Set(n.allChildren.concat(u.allChildren)))}}for(var d=0,v=n.allChildren.length;d<v;d++){var x=n.allChildren[d],h=_e(x,t.childrenKey),p=_e(x,t.rowKey);n.allChildrenKeys.push(p),(!h||!h.length)&&n.leafNodeKeys.push(p)}return n.allChildrenKeys=Xe(new Set(n.allChildrenKeys)),n.leafNodeKeys=Xe(new Set(n.leafNodeKeys)),n}function cp(e,r){for(var t=e.selectedRowKeys,a=e.removeKeys,n=r||{data:[],keys:[]},i=0,o=t.length;i<o;i++){var s=t[i];a.includes(s)||n.keys.push(s)}return n}function fp(e){for(var r=e.treeDataMap,t=e.selectedRowKeys,a=[],n=0,i=t.length;n<i;n++){var o=t[n];a.push(r.get(o))}return a}function up(e,r){var t=Cr(e),a=t.selectedRowKeys,n=t.tree,i=t.data,o=t.indeterminateSelectedRowKeys,s=ye([]),l=Ma(a,e.defaultSelectedRowKeys||[],e.onSelectChange,"selectedRowKeys"),c=_r(l,2),f=c[0],u=c[1],d=le(function(){var S;return{rowKey:e.rowKey||"id",childrenKey:((S=e.tree)===null||S===void 0?void 0:S.childrenKey)||"children"}});Ge([n,r,i,f],function(S){var g=_r(S,2),w=g[0],C=g[1];!w||!C.size||w.checkStrictly||v()});function v(){if(!(!n.value||n.value.checkStrictly)){if(!f.value.length){s.value=[];return}for(var S=[],g={},w=0,C=f.value.length;w<C;w++){var F=f.value[w],_=r.value.get(F);if(!!_){var R=_e(_.row,d.value.childrenKey);if(!R||!R.length)for(var y=_.parent;y;){g[y.id]||(g[y.id]=[]),g[y.id].push(_.row);var W=g[y.id].length,D=bi(r.value,y.row,d.value),E=D.allChildrenKeys,T=S.indexOf(y.id),A=f.value.indexOf(y.id);W>0&&W<E.length&&A===-1?T===-1&&S.push(y.id):T!==-1&&S.splice(T,1),y=y.parent}}}s.value=S}}function x(S,g,w){if(!(!n.value||n.value.checkStrictly)){for(var C=Xe(S),F=r.value.get(g),_=F.parent;_;){var R=bi(r.value,_.row,d.value),y=R.leafNodeKeys,W=$o(y,S),D=C.indexOf(_.id);w==="uncheck"?D!==-1&&C.splice(D,1):W.length===y.length&&D===-1&&C.push(_.id),_=_.parent}return C}}function h(S,g){if(!n.value||n.value.checkStrictly){u(S,g);return}g.currentRowKey==="CHECK_ALL_BOX"?p(g):m(S,g)}function p(S){var g=[],w=[];if(S.type==="check")for(var C=Xe(r.value.values()),F=0,_=C.length;F<_;F++){var R=C[F];R.disabled||(w.push(R.row),g.push(_e(R.row,d.value.rowKey)))}var y=ko(ko({},S),{},{selectedRowData:w||[]});u(g,y)}function m(S,g){var w,C=Xe(S);if(((w=e.tree)===null||w===void 0?void 0:w.checkStrictly)===!1){if((g==null?void 0:g.type)==="check"){var F=bi(r.value,g.currentRowData,d.value),_=F.allChildrenKeys;wl.set(g.currentRowData,F),C=Xe(new Set(C.concat(_)))}else if((g==null?void 0:g.type)==="uncheck"){var R=bi(r.value,g.currentRowData,d.value),y=cp({selectedRowKeys:S,removeKeys:R.allChildrenKeys});C=y.keys}}C=x(C,g.currentRowKey,g.type);var W=fp({treeDataMap:r.value,selectedRowKeys:C}),D=ko(ko({},g),{},{selectedRowData:W});u(C,D)}return{tIndeterminateSelectedRowKeys:o.value?o:s,onInnerSelectChange:h}}/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/var dp=["store","dataSource","formatTreeColumn","swapData","onExpandFoldIconClick"];function Gc(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);r&&(a=a.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,a)}return t}function ga(e){for(var r=1;r<arguments.length;r++){var t=arguments[r]!=null?arguments[r]:{};r%2?Gc(Object(t),!0).forEach(function(a){ue(e,a,t[a])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Gc(Object(t)).forEach(function(a){Object.defineProperty(e,a,Object.getOwnPropertyDescriptor(t,a))})}return e}var hp=Tr({name:"TEnhancedTable",props:ga(ga(ga({},si),Wu),np),setup:function(r,t){var a=ye(null),n=lp(r,t),i=n.store,o=n.dataSource,s=n.formatTreeColumn,l=n.swapData,c=n.onExpandFoldIconClick,f=fu(n,dp),u=ba(),d=ye(i.value.treeDataMap),v=up(r,d),x=v.tIndeterminateSelectedRowKeys,h=v.onInnerSelectChange,p=function F(_){for(var R=[],y=0,W=_.length;y<W;y++){var D,E,T=ga({},_[y]);T=s(T),(D=T.children)!==null&&D!==void 0&&D.length&&(T.children=F(T.children)),(!T.children||(E=T.children)!==null&&E!==void 0&&E.length)&&R.push(T)}return R},m=le(function(){var F=!r.tree||!Object.keys(r.tree).length;return F?r.columns:p(r.columns)}),S=function(_){var R;r.beforeDragSort&&!r.beforeDragSort(_)||(l({current:_.current,target:_.target,currentIndex:_.currentIndex,targetIndex:_.targetIndex}),(R=r.onDragSort)===null||R===void 0||R.call(r,_))},g=function(_){var R,y;(R=r.tree)!==null&&R!==void 0&&R.expandTreeNodeOnClick&&c({row:_.row,rowIndex:_.index},"row-click"),(y=r.onRowClick)===null||y===void 0||y.call(r,_)},w=function F(_,R){if(!_)return-1;if(_.rowIndex>=0)return _.rowIndex;if(_.rowIndex<0)return F(_.parent)},C=function(_){var R=_.index;if(!R&&R!==0){if(!_.key){Nr.error("Table","scrollToElement: one of `index` or `key` must exist.");return}var y=d.value.get(_.key);R=w(y,_.key),(R<0||R===void 0)&&Nr.error("Table","".concat(_.key," does not exist in data, check `rowKey` or `data` please."))}a.value.scrollToElement(ga(ga({},_),{},{index:R}))};return t.expose(ga(ga({store:i.value,dataSource:o.value},f),{},{primaryTableRef:a,validateRowData:function(_){return a.value.validateRowData(_)},validateTableData:function(){return a.value.validateTableData()},clearValidateData:function(){a.value.clearValidateData()},refreshTable:function(){a.value.refreshTable()},scrollToElement:C})),function(){var F,_=cu(),R=_.vnode,y=ga(ga({},R.props),{},{rowKey:r.rowKey||"id",data:o.value,columns:m.value,indeterminateSelectedRowKeys:x.value,disableDataPage:Boolean(r.tree&&Object.keys(r.tree).length),onSelectChange:h,onDragSort:S,rowClassName:function(D){var E=D.row,T=_e(E,r.rowKey||"id"),A=d.value.get(T);return A?["".concat(u.value,"-table-tr--level-").concat(A.level),r.rowClassName]:[r.rowClassName]}});return(F=r.tree)!==null&&F!==void 0&&F.expandTreeNodeOnClick&&(y.onRowClick=g),te($l,Or(y,{ref:a}),t.slots)}}});/**
|
||
* tdesign v1.9.4
|
||
* (c) 2024 tdesign
|
||
* @license MIT
|
||
*/ja(ju);ja($l);ja(hp);var vp=Dl($l),xp=ja(vp,"TTable"),gp={S:"\u4E07\u4E0E\u4E11\u4E13\u4E1A\u4E1B\u4E1C\u4E1D\u4E22\u4E24\u4E25\u4E27\u4E2A\u4E2C\u4E30\u4E34\u4E3A\u4E3D\u4E3E\u4E48\u4E49\u4E4C\u4E50\u4E54\u4E60\u4E61\u4E66\u4E70\u4E71\u4E89\u4E8E\u4E8F\u4E91\u4E98\u4E9A\u4EA7\u4EA9\u4EB2\u4EB5\u4EB8\u4EBF\u4EC5\u4ECE\u4ED1\u4ED3\u4EEA\u4EEC\u4EF7\u4F17\u4F18\u4F19\u4F1A\u4F1B\u4F1E\u4F1F\u4F20\u4F24\u4F25\u4F26\u4F27\u4F2A\u4F2B\u4F53\u4F59\u4F63\u4F65\u4FA0\u4FA3\u4FA5\u4FA6\u4FA7\u4FA8\u4FA9\u4FAA\u4FAC\u4FE3\u4FE6\u4FE8\u4FE9\u4FEA\u4FED\u503A\u503E\u506C\u507B\u507E\u507F\u50A5\u50A7\u50A8\u50A9\u513F\u5151\u5156\u515A\u5170\u5173\u5174\u5179\u517B\u517D\u5181\u5185\u5188\u518C\u5199\u519B\u519C\u51A2\u51AF\u51B2\u51B3\u51B5\u51BB\u51C0\u51C4\u51C9\u51CC\u51CF\u51D1\u51DB\u51E0\u51E4\u51EB\u51ED\u51EF\u51FB\u51FC\u51FF\u520D\u5212\u5218\u5219\u521A\u521B\u5220\u522B\u522C\u522D\u523D\u523F\u5240\u5242\u5250\u5251\u5265\u5267\u529D\u529E\u52A1\u52A2\u52A8\u52B1\u52B2\u52B3\u52BF\u52CB\u52D0\u52DA\u5300\u5326\u532E\u533A\u533B\u534E\u534F\u5355\u5356\u5362\u5364\u5367\u536B\u5374\u537A\u5382\u5385\u5386\u5389\u538B\u538C\u538D\u5395\u53A2\u53A3\u53A6\u53A8\u53A9\u53AE\u53BF\u53C2\u53C6\u53C7\u53CC\u53D1\u53D8\u53D9\u53E0\u53F6\u53F7\u53F9\u53FD\u5401\u540E\u5413\u5415\u5417\u5423\u5428\u542C\u542F\u5434\u5452\u5453\u5455\u5456\u5457\u5458\u5459\u545B\u545C\u548F\u5494\u5499\u549B\u549D\u54A4\u54B4\u54B8\u54CC\u54CD\u54D1\u54D2\u54D3\u54D4\u54D5\u54D7\u54D9\u54DC\u54DD\u54DF\u551B\u551D\u5520\u5521\u5522\u5523\u5524\u553F\u5567\u556C\u556D\u556E\u5570\u5574\u5578\u55B7\u55BD\u55BE\u55EB\u5475\u55F3\u5618\u5624\u5631\u565C\u567C\u56A3\u56AF\u56E2\u56ED\u56F1\u56F4\u56F5\u56FD\u56FE\u5706\u5723\u5739\u573A\u5742\u574F\u5757\u575A\u575B\u575C\u575D\u575E\u575F\u5760\u5784\u5785\u5786\u5792\u57A6\u57A7\u57A9\u57AB\u57AD\u57AF\u57B1\u57B2\u57B4\u57D8\u57D9\u57DA\u57DD\u57EF\u5811\u5815\u5846\u5899\u58EE\u58F0\u58F3\u58F6\u58F8\u5904\u5907\u590D\u591F\u5934\u5938\u5939\u593A\u5941\u5942\u594B\u5956\u5965\u5986\u5987\u5988\u59A9\u59AA\u59AB\u59D7\u59DC\u5A04\u5A05\u5A06\u5A07\u5A08\u5A31\u5A32\u5A34\u5A73\u5A74\u5A75\u5A76\u5AAA\u5AD2\u5AD4\u5AF1\u5B37\u5B59\u5B66\u5B6A\u5B81\u5B9D\u5B9E\u5BA0\u5BA1\u5BAA\u5BAB\u5BBD\u5BBE\u5BDD\u5BF9\u5BFB\u5BFC\u5BFF\u5C06\u5C14\u5C18\u5C27\u5C34\u5C38\u5C3D\u5C42\u5C43\u5C49\u5C4A\u5C5E\u5C61\u5C66\u5C7F\u5C81\u5C82\u5C96\u5C97\u5C98\u5C99\u5C9A\u5C9B\u5CAD\u5CB3\u5CBD\u5CBF\u5CC3\u5CC4\u5CE1\u5CE3\u5CE4\u5CE5\u5CE6\u5D02\u5D03\u5D04\u5D2D\u5D58\u5D5A\u5D5B\u5D5D\u5D74\u5DC5\u5DE9\u5DEF\u5E01\u5E05\u5E08\u5E0F\u5E10\u5E18\u5E1C\u5E26\u5E27\u5E2E\u5E31\u5E3B\u5E3C\u5E42\u5E5E\u5E72\u5E76\u5E7F\u5E84\u5E86\u5E90\u5E91\u5E93\u5E94\u5E99\u5E9E\u5E9F\u5EBC\u5EEA\u5F00\u5F02\u5F03\u5F20\u5F25\u5F2A\u5F2F\u5F39\u5F3A\u5F52\u5F53\u5F55\u5F5F\u5F66\u5F7B\u5F84\u5F95\u5FA1\u5FC6\u5FCF\u5FE7\u5FFE\u6000\u6001\u6002\u6003\u6004\u6005\u6006\u601C\u603B\u603C\u603F\u604B\u6073\u6076\u6078\u6079\u607A\u607B\u607C\u607D\u60A6\u60AB\u60AC\u60AD\u60AF\u60CA\u60E7\u60E8\u60E9\u60EB\u60EC\u60ED\u60EE\u60EF\u610D\u6120\u6124\u6126\u613F\u6151\u616D\u61B7\u61D1\u61D2\u61D4\u6206\u620B\u620F\u6217\u6218\u622C\u6237\u624E\u6251\u6266\u6267\u6269\u626A\u626B\u626C\u6270\u629A\u629B\u629F\u62A0\u62A1\u62A2\u62A4\u62A5\u62C5\u62DF\u62E2\u62E3\u62E5\u62E6\u62E7\u62E8\u62E9\u6302\u631A\u631B\u631C\u631D\u631E\u631F\u6320\u6321\u6322\u6323\u6324\u6325\u6326\u635E\u635F\u6361\u6362\u6363\u636E\u637B\u63B3\u63B4\u63B7\u63B8\u63BA\u63BC\u63F8\u63FD\u63FF\u6400\u6401\u6402\u6405\u643A\u6444\u6445\u6446\u6447\u6448\u644A\u6484\u6491\u64B5\u64B7\u64B8\u64BA\u64DE\u6512\u654C\u655B\u6570\u658B\u6593\u6597\u65A9\u65AD\u65E0\u65E7\u65F6\u65F7\u65F8\u6619\u663C\u663D\u663E\u664B\u6652\u6653\u6654\u6655\u6656\u6682\u66A7\u672D\u672F\u6734\u673A\u6740\u6742\u6743\u6761\u6765\u6768\u6769\u6770\u6781\u6784\u679E\u67A2\u67A3\u67A5\u67A7\u67A8\u67AA\u67AB\u67AD\u67DC\u67E0\u67FD\u6800\u6805\u6807\u6808\u6809\u680A\u680B\u680C\u680E\u680F\u6811\u6816\u6837\u683E\u684A\u6860\u6861\u6862\u6863\u6864\u6865\u6866\u6867\u6868\u6869\u68A6\u68BC\u68BE\u68C0\u68C2\u6901\u691F\u6920\u6924\u692D\u697C\u6984\u6987\u6988\u6989\u69DA\u69DB\u69DF\u69E0\u6A2A\u6A2F\u6A31\u6A65\u6A71\u6A79\u6A7C\u6A90\u6AA9\u6B22\u6B24\u6B27\u6B7C\u6B81\u6B87\u6B8B\u6B92\u6B93\u6B9A\u6BA1\u6BB4\u6BC1\u6BC2\u6BD5\u6BD9\u6BE1\u6BF5\u6C07\u6C14\u6C22\u6C29\u6C32\u6C47\u6C49\u6C61\u6C64\u6C79\u6C93\u6C9F\u6CA1\u6CA3\u6CA4\u6CA5\u6CA6\u6CA7\u6CA8\u6CA9\u6CAA\u6CB5\u6CDE\u6CEA\u6CF6\u6CF7\u6CF8\u6CFA\u6CFB\u6CFC\u6CFD\u6CFE\u6D01\u6D12\u6D3C\u6D43\u6D45\u6D46\u6D47\u6D48\u6D49\u6D4A\u6D4B\u6D4D\u6D4E\u6D4F\u6D50\u6D51\u6D52\u6D53\u6D54\u6D55\u6D82\u6D8C\u6D9B\u6D9D\u6D9E\u6D9F\u6DA0\u6DA1\u6DA2\u6DA3\u6DA4\u6DA6\u6DA7\u6DA8\u6DA9\u6DC0\u6E0A\u6E0C\u6E0D\u6E0E\u6E10\u6E11\u6E14\u6E16\u6E17\u6E29\u6E38\u6E7E\u6E7F\u6E83\u6E85\u6E86\u6E87\u6ED7\u6EDA\u6EDE\u6EDF\u6EE0\u6EE1\u6EE2\u6EE4\u6EE5\u6EE6\u6EE8\u6EE9\u6EEA\u6F24\u6F46\u6F47\u6F4B\u6F4D\u6F5C\u6F74\u6F9C\u6FD1\u6FD2\u704F\u706D\u706F\u7075\u707E\u707F\u7080\u7089\u7096\u709C\u709D\u70B9\u70BC\u70BD\u70C1\u70C2\u70C3\u70DB\u70DF\u70E6\u70E7\u70E8\u70E9\u70EB\u70EC\u70ED\u7115\u7116\u7118\u7145\u7173\u7198\u7231\u7237\u724D\u7266\u7275\u727A\u728A\u729F\u72B6\u72B7\u72B8\u72B9\u72C8\u72CD\u72DD\u72DE\u72EC\u72ED\u72EE\u72EF\u72F0\u72F1\u72F2\u7303\u730E\u7315\u7321\u732A\u732B\u732C\u732E\u736D\u7391\u7399\u739A\u739B\u73AE\u73AF\u73B0\u73B1\u73BA\u73C9\u73CF\u73D0\u73D1\u73F0\u73F2\u740E\u740F\u7410\u743C\u7476\u7477\u7487\u748E\u74D2\u74EE\u74EF\u7535\u753B\u7545\u7572\u7574\u7596\u7597\u759F\u75A0\u75A1\u75AC\u75AE\u75AF\u75B1\u75B4\u75C8\u75C9\u75D2\u75D6\u75E8\u75EA\u75EB\u75F4\u7605\u7606\u7617\u7618\u762A\u762B\u763E\u763F\u765E\u7663\u766B\u766F\u7691\u76B1\u76B2\u76CF\u76D0\u76D1\u76D6\u76D7\u76D8\u770D\u7726\u772C\u7740\u7741\u7750\u7751\u7792\u77A9\u77EB\u77F6\u77FE\u77FF\u7800\u7801\u7816\u7817\u781A\u781C\u783A\u783B\u783E\u7840\u7841\u7845\u7855\u7856\u7857\u7859\u785A\u786E\u7877\u788D\u789B\u789C\u78B1\u78B9\u78D9\u793C\u794E\u7962\u796F\u7977\u7978\u7980\u7984\u7985\u79BB\u79C3\u79C6\u79CD\u79EF\u79F0\u79FD\u79FE\u7A06\u7A0E\u7A23\u7A33\u7A51\u7A77\u7A83\u7A8D\u7A91\u7A9C\u7A9D\u7AA5\u7AA6\u7AAD\u7AD6\u7ADE\u7B03\u7B0B\u7B14\u7B15\u7B3A\u7B3C\u7B3E\u7B51\u7B5A\u7B5B\u7B5C\u7B5D\u7B79\u7B7E\u7B80\u7B93\u7BA6\u7BA7\u7BA8\u7BA9\u7BAA\u7BAB\u7BD1\u7BD3\u7BEE\u7BF1\u7C16\u7C41\u7C74\u7C7B\u7C7C\u7C9C\u7C9D\u7CA4\u7CAA\u7CAE\u7CC1\u7CC7\u7D27\u7D77\u7E9F\u7EA0\u7EA1\u7EA2\u7EA3\u7EA4\u7EA5\u7EA6\u7EA7\u7EA8\u7EA9\u7EAA\u7EAB\u7EAC\u7EAD\u7EAE\u7EAF\u7EB0\u7EB1\u7EB2\u7EB3\u7EB4\u7EB5\u7EB6\u7EB7\u7EB8\u7EB9\u7EBA\u7EBB\u7EBC\u7EBD\u7EBE\u7EBF\u7EC0\u7EC1\u7EC2\u7EC3\u7EC4\u7EC5\u7EC6\u7EC7\u7EC8\u7EC9\u7ECA\u7ECB\u7ECC\u7ECD\u7ECE\u7ECF\u7ED0\u7ED1\u7ED2\u7ED3\u7ED4\u7ED5\u7ED6\u7ED7\u7ED8\u7ED9\u7EDA\u7EDB\u7EDC\u7EDD\u7EDE\u7EDF\u7EE0\u7EE1\u7EE2\u7EE3\u7EE4\u7EE5\u7EE6\u7EE7\u7EE8\u7EE9\u7EEA\u7EEB\u7EEC\u7EED\u7EEE\u7EEF\u7EF0\u7EF1\u7EF2\u7EF3\u7EF4\u7EF5\u7EF6\u7EF7\u7EF8\u7EF9\u7EFA\u7EFB\u7EFC\u7EFD\u7EFE\u7EFF\u7F00\u7F01\u7F02\u7F03\u7F04\u7F05\u7F06\u7F07\u7F08\u7F09\u7F0A\u7F0B\u7F0C\u7F0D\u7F0E\u7F0F\u7F10\u7F11\u7F12\u7F13\u7F14\u7F15\u7F16\u7F17\u7F18\u7F19\u7F1A\u7F1B\u7F1C\u7F1D\u7F1E\u7F1F\u7F20\u7F21\u7F22\u7F23\u7F24\u7F25\u7F26\u7F27\u7F28\u7F29\u7F2A\u7F2B\u7F2C\u7F2D\u7F2E\u7F2F\u7F30\u7F31\u7F32\u7F33\u7F34\u7F35\u7F42\u7F51\u7F57\u7F5A\u7F62\u7F74\u7F81\u7F9F\u7FA1\u7FD8\u7FD9\u7FDA\u8022\u8027\u8038\u803B\u8042\u804B\u804C\u804D\u8054\u8069\u806A\u8083\u80A0\u80A4\u80B7\u80BE\u80BF\u80C0\u80C1\u80C6\u80DC\u80E7\u80E8\u80EA\u80EB\u80F6\u8109\u810D\u810F\u8110\u8111\u8113\u8114\u811A\u8131\u8136\u8138\u814A\u814C\u8158\u816D\u817B\u817C\u817D\u817E\u8191\u81DC\u8206\u8223\u8230\u8231\u823B\u8270\u8273\u8279\u827A\u8282\u8288\u8297\u829C\u82A6\u82C1\u82C7\u82C8\u82CB\u82CC\u82CD\u82CE\u82CF\u82D8\u82F9\u830E\u830F\u8311\u8314\u8315\u8327\u8346\u8350\u8359\u835A\u835B\u835C\u835E\u835F\u8360\u8361\u8363\u8364\u8365\u8366\u8367\u8368\u8369\u836A\u836B\u836C\u836D\u836E\u836F\u8385\u839C\u83B1\u83B2\u83B3\u83B4\u83B6\u83B7\u83B8\u83B9\u83BA\u83BC\u841A\u841D\u8424\u8425\u8426\u8427\u8428\u8471\u8487\u8489\u848B\u848C\u84DD\u84DF\u84E0\u84E3\u84E5\u84E6\u8537\u8539\u853A\u853C\u8572\u8574\u85AE\u85C1\u85D3\u864F\u8651\u865A\u866B\u866C\u866E\u867D\u867E\u867F\u8680\u8681\u8682\u8695\u869D\u86AC\u86CA\u86CE\u86CF\u86EE\u86F0\u86F1\u86F2\u86F3\u86F4\u8715\u8717\u8721\u8747\u8748\u8749\u874E\u877C\u877E\u8780\u87A8\u87CF\u8845\u8854\u8865\u886C\u886E\u8884\u8885\u8886\u889C\u88AD\u88AF\u88C5\u88C6\u88C8\u88E2\u88E3\u88E4\u88E5\u891B\u8934\u8941\u8955\u89C1\u89C2\u89C3\u89C4\u89C5\u89C6\u89C7\u89C8\u89C9\u89CA\u89CB\u89CC\u89CD\u89CE\u89CF\u89D0\u89D1\u89DE\u89E6\u89EF\u8A5F\u8A89\u8A8A\u8BA0\u8BA1\u8BA2\u8BA3\u8BA4\u8BA5\u8BA6\u8BA7\u8BA8\u8BA9\u8BAA\u8BAB\u8BAD\u8BAE\u8BAF\u8BB0\u8BB1\u8BB2\u8BB3\u8BB4\u8BB5\u8BB6\u8BB7\u8BB8\u8BB9\u8BBA\u8BBB\u8BBC\u8BBD\u8BBE\u8BBF\u8BC0\u8BC1\u8BC2\u8BC3\u8BC4\u8BC5\u8BC6\u8BC7\u8BC8\u8BC9\u8BCA\u8BCB\u8BCC\u8BCD\u8BCE\u8BCF\u8BD0\u8BD1\u8BD2\u8BD3\u8BD4\u8BD5\u8BD6\u8BD7\u8BD8\u8BD9\u8BDA\u8BDB\u8BDC\u8BDD\u8BDE\u8BDF\u8BE0\u8BE1\u8BE2\u8BE3\u8BE4\u8BE5\u8BE6\u8BE7\u8BE8\u8BE9\u8BEA\u8BEB\u8BEC\u8BED\u8BEE\u8BEF\u8BF0\u8BF1\u8BF2\u8BF3\u8BF4\u8BF5\u8BF6\u8BF7\u8BF8\u8BF9\u8BFA\u8BFB\u8BFC\u8BFD\u8BFE\u8BFF\u8C00\u8C01\u8C02\u8C03\u8C04\u8C05\u8C06\u8C07\u8C08\u8C0A\u8C0B\u8C0C\u8C0D\u8C0E\u8C0F\u8C10\u8C11\u8C12\u8C13\u8C14\u8C15\u8C16\u8C17\u8C18\u8C19\u8C1A\u8C1B\u8C1C\u8C1D\u8C1E\u8C1F\u8C20\u8C21\u8C22\u8C23\u8C24\u8C25\u8C26\u8C27\u8C28\u8C29\u8C2A\u8C2B\u8C2C\u8C2D\u8C2E\u8C2F\u8C30\u8C31\u8C32\u8C33\u8C34\u8C35\u8C36\u8C37\u8C6E\u8D1D\u8D1E\u8D1F\u8D20\u8D21\u8D22\u8D23\u8D24\u8D25\u8D26\u8D27\u8D28\u8D29\u8D2A\u8D2B\u8D2C\u8D2D\u8D2E\u8D2F\u8D30\u8D31\u8D32\u8D33\u8D34\u8D35\u8D36\u8D37\u8D38\u8D39\u8D3A\u8D3B\u8D3C\u8D3D\u8D3E\u8D3F\u8D40\u8D41\u8D42\u8D43\u8D44\u8D45\u8D46\u8D47\u8D48\u8D49\u8D4A\u8D4B\u8D4C\u8D4D\u8D4E\u8D4F\u8D50\u8D51\u8D52\u8D53\u8D54\u8D55\u8D56\u8D57\u8D58\u8D59\u8D5A\u8D5B\u8D5C\u8D5D\u8D5E\u8D5F\u8D60\u8D61\u8D62\u8D63\u8D6A\u8D75\u8D76\u8D8B\u8DB1\u8DB8\u8DC3\u8DC4\u8DD6\u8DDE\u8DF5\u8DF6\u8DF7\u8DF8\u8DF9\u8DFB\u8E0A\u8E0C\u8E2A\u8E2C\u8E2F\u8E51\u8E52\u8E70\u8E7F\u8E8F\u8E9C\u8EAF\u8F66\u8F67\u8F68\u8F69\u8F6A\u8F6B\u8F6C\u8F6D\u8F6E\u8F6F\u8F70\u8F71\u8F72\u8F73\u8F74\u8F75\u8F76\u8F77\u8F78\u8F79\u8F7A\u8F7B\u8F7C\u8F7D\u8F7E\u8F7F\u8F80\u8F81\u8F82\u8F83\u8F84\u8F85\u8F86\u8F87\u8F88\u8F89\u8F8A\u8F8B\u8F8C\u8F8D\u8F8E\u8F8F\u8F90\u8F91\u8F92\u8F93\u8F94\u8F95\u8F96\u8F97\u8F98\u8F99\u8F9A\u8F9E\u8FA9\u8FAB\u8FB9\u8FBD\u8FBE\u8FC1\u8FC7\u8FC8\u8FD0\u8FD8\u8FD9\u8FDB\u8FDC\u8FDD\u8FDE\u8FDF\u8FE9\u8FF3\u8FF9\u9002\u9009\u900A\u9012\u9026\u903B\u9057\u9065\u9093\u909D\u90AC\u90AE\u90B9\u90BA\u90BB\u90C1\u90C4\u90CF\u90D0\u90D1\u90D3\u90E6\u90E7\u90F8\u915D\u9166\u9171\u917D\u917E\u917F\u91CA\u91CC\u9245\u9274\u92AE\u933E\u9486\u9487\u9488\u9489\u948A\u948B\u948C\u948D\u948E\u948F\u9490\u9491\u9492\u9493\u9494\u9495\u9496\u9497\u9498\u9499\u949A\u949B\u949D\u949E\u949F\u94A0\u94A1\u94A2\u94A3\u94A4\u94A5\u94A6\u94A7\u94A8\u94A9\u94AA\u94AB\u94AC\u94AD\u94AE\u94AF\u94B0\u94B1\u94B2\u94B3\u94B4\u94B5\u94B6\u94B7\u94B8\u94B9\u94BA\u94BB\u94BC\u94BD\u94BE\u94BF\u94C0\u94C1\u94C2\u94C3\u94C4\u94C5\u94C6\u94C8\u94C9\u94CA\u94CB\u94CD\u94CE\u94CF\u94D0\u94D1\u94D2\u94D5\u94D7\u94D8\u94D9\u94DA\u94DB\u94DC\u94DD\u94DE\u94DF\u94E0\u94E1\u94E2\u94E3\u94E4\u94E5\u94E6\u94E7\u94E8\u94EA\u94EB\u94EC\u94ED\u94EE\u94EF\u94F0\u94F1\u94F2\u94F3\u94F4\u94F5\u94F6\u94F7\u94F8\u94F9\u94FA\u94FB\u94FC\u94FD\u94FE\u94FF\u9500\u9501\u9502\u9503\u9504\u9505\u9506\u9507\u9508\u9509\u950A\u950B\u950C\u950D\u950E\u950F\u9510\u9511\u9512\u9513\u9514\u9515\u9516\u9517\u9519\u951A\u951C\u951E\u951F\u9520\u9521\u9522\u9523\u9524\u9525\u9526\u9528\u9529\u952B\u952C\u952D\u952E\u952F\u9530\u9531\u9532\u9533\u9534\u9535\u9536\u9537\u9538\u9539\u953A\u953B\u953C\u953D\u953E\u953F\u9540\u9541\u9542\u9543\u9546\u9547\u9548\u9549\u954A\u954C\u954D\u954E\u954F\u9550\u9551\u9552\u9555\u9556\u9557\u9559\u955A\u955B\u955C\u955D\u955E\u955F\u9560\u9561\u9562\u9563\u9564\u9565\u9566\u9567\u9568\u9569\u956A\u956B\u956C\u956D\u956E\u956F\u9570\u9571\u9572\u9573\u9574\u9576\u957F\u95E8\u95E9\u95EA\u95EB\u95EC\u95ED\u95EE\u95EF\u95F0\u95F1\u95F2\u95F3\u95F4\u95F5\u95F6\u95F7\u95F8\u95F9\u95FA\u95FB\u95FC\u95FD\u95FE\u95FF\u9600\u9601\u9602\u9603\u9604\u9605\u9606\u9607\u9608\u9609\u960A\u960B\u960C\u960D\u960E\u960F\u9610\u9611\u9612\u9613\u9614\u9615\u9616\u9617\u9618\u9619\u961A\u961B\u961F\u9633\u9634\u9635\u9636\u9645\u9646\u9647\u9648\u9649\u9655\u9667\u9668\u9669\u968F\u9690\u96B6\u96BD\u96BE\u96CF\u96E0\u96F3\u96FE\u9701\u9709\u972D\u9753\u9759\u9765\u9791\u9792\u97AF\u97B4\u97E6\u97E7\u97E8\u97E9\u97EA\u97EB\u97EC\u97F5\u9875\u9876\u9877\u9878\u9879\u987A\u987B\u987C\u987D\u987E\u987F\u9880\u9881\u9882\u9883\u9884\u9885\u9886\u9887\u9888\u9889\u988A\u988B\u988C\u988D\u988E\u988F\u9890\u9891\u9892\u9893\u9894\u9895\u9896\u9897\u9898\u9899\u989A\u989B\u989C\u989D\u989E\u989F\u98A0\u98A1\u98A2\u98A3\u98A4\u98A5\u98A6\u98A7\u98CE\u98CF\u98D0\u98D1\u98D2\u98D3\u98D4\u98D5\u98D6\u98D7\u98D8\u98D9\u98DA\u98DE\u98E8\u990D\u9964\u9965\u9966\u9967\u9968\u9969\u996A\u996B\u996C\u996D\u996E\u996F\u9970\u9971\u9972\u9973\u9974\u9975\u9976\u9977\u9978\u9979\u997A\u997B\u997C\u997D\u997E\u997F\u9980\u9981\u9982\u9983\u9984\u9985\u9986\u9987\u9988\u9989\u998A\u998B\u998C\u998D\u998E\u998F\u9990\u9991\u9992\u9993\u9994\u9995\u9A6C\u9A6D\u9A6E\u9A6F\u9A70\u9A71\u9A72\u9A73\u9A74\u9A75\u9A76\u9A77\u9A78\u9A79\u9A7A\u9A7B\u9A7C\u9A7D\u9A7E\u9A7F\u9A80\u9A81\u9A82\u9A83\u9A84\u9A85\u9A86\u9A87\u9A88\u9A89\u9A8A\u9A8B\u9A8C\u9A8D\u9A8E\u9A8F\u9A90\u9A91\u9A92\u9A93\u9A94\u9A95\u9A96\u9A97\u9A98\u9A99\u9A9A\u9A9B\u9A9C\u9A9D\u9A9E\u9A9F\u9AA0\u9AA1\u9AA2\u9AA3\u9AA4\u9AA5\u9AA6\u9AA7\u9AC5\u9ACB\u9ACC\u9B13\u9B47\u9B49\u9C7C\u9C7D\u9C7E\u9C7F\u9C80\u9C81\u9C82\u9C84\u9C85\u9C86\u9C87\u9C88\u9C89\u9C8A\u9C8B\u9C8C\u9C8D\u9C8E\u9C8F\u9C90\u9C91\u9C92\u9C93\u9C94\u9C95\u9C96\u9C97\u9C98\u9C99\u9C9A\u9C9B\u9C9C\u9C9D\u9C9E\u9C9F\u9CA0\u9CA1\u9CA2\u9CA3\u9CA4\u9CA5\u9CA6\u9CA7\u9CA8\u9CA9\u9CAA\u9CAB\u9CAC\u9CAD\u9CAE\u9CAF\u9CB0\u9CB1\u9CB2\u9CB3\u9CB4\u9CB5\u9CB6\u9CB7\u9CB8\u9CB9\u9CBA\u9CBB\u9CBC\u9CBD\u9CBE\u9CBF\u9CC0\u9CC1\u9CC2\u9CC3\u9CC4\u9CC5\u9CC6\u9CC7\u9CC8\u9CC9\u9CCA\u9CCB\u9CCC\u9CCD\u9CCE\u9CCF\u9CD0\u9CD1\u9CD2\u9CD3\u9CD4\u9CD5\u9CD6\u9CD7\u9CD8\u9CD9\u9CDB\u9CDC\u9CDD\u9CDE\u9CDF\u9CE0\u9CE1\u9CE2\u9CE3\u9E1F\u9E20\u9E21\u9E22\u9E23\u9E24\u9E25\u9E26\u9E27\u9E28\u9E29\u9E2A\u9E2B\u9E2C\u9E2D\u9E2E\u9E2F\u9E30\u9E31\u9E32\u9E33\u9E34\u9E35\u9E36\u9E37\u9E38\u9E39\u9E3A\u9E3B\u9E3C\u9E3D\u9E3E\u9E3F\u9E40\u9E41\u9E42\u9E43\u9E44\u9E45\u9E46\u9E47\u9E48\u9E49\u9E4A\u9E4B\u9E4C\u9E4D\u9E4E\u9E4F\u9E50\u9E51\u9E52\u9E53\u9E54\u9E55\u9E56\u9E57\u9E58\u9E5A\u9E5B\u9E5C\u9E5D\u9E5E\u9E5F\u9E60\u9E61\u9E62\u9E63\u9E64\u9E65\u9E66\u9E67\u9E68\u9E69\u9E6A\u9E6B\u9E6C\u9E6D\u9E6F\u9E70\u9E71\u9E72\u9E73\u9E74\u9E7E\u9EA6\u9EB8\u9EC4\u9EC9\u9EE1\u9EE9\u9EEA\u9EFE\u9F0B\u9F0C\u9F0D\u9F17\u9F39\u9F44\u9F50\u9F51\u9F7F\u9F80\u9F81\u9F82\u9F83\u9F84\u9F85\u9F86\u9F87\u9F88\u9F89\u9F8A\u9F8B\u9F8C\u9F99\u9F9A\u9F9B\u9F9F\u5FD7\u5236\u54A8\u53EA\u91CC\u7CFB\u8303\u677E\u6CA1\u5C1D\u5C1D\u95F9\u9762\u51C6\u949F\u522B\u95F2\u4E7E\u5C3D\u810F\u62FC",T:"\u842C\u8207\u919C\u5C08\u696D\u53E2\u6771\u7D72\u4E1F\u5169\u56B4\u55AA\u500B\u723F\u8C50\u81E8\u70BA\u9E97\u8209\u9EBD\u7FA9\u70CF\u6A02\u55AC\u7FD2\u9109\u66F8\u8CB7\u4E82\u722D\u65BC\u8667\u96F2\u4E99\u4E9E\u7522\u755D\u89AA\u893B\u4EB8\u5104\u50C5\u5F9E\u4F96\u5009\u5100\u5011\u50F9\u773E\u512A\u5925\u6703\u50B4\u5098\u5049\u50B3\u50B7\u5000\u502B\u5096\u507D\u4F47\u9AD4\u4F59\u50AD\u50C9\u4FE0\u4FB6\u50E5\u5075\u5074\u50D1\u5108\u5115\u5102\u4FC1\u5114\u513C\u5006\u5137\u5109\u50B5\u50BE\u50AF\u50C2\u50E8\u511F\u513B\u5110\u5132\u513A\u5152\u514C\u5157\u9EE8\u862D\u95DC\u8208\u8332\u990A\u7378\u56C5\u5167\u5CA1\u518A\u5BEB\u8ECD\u8FB2\u51A2\u99AE\u6C96\u6C7A\u6CC1\u51CD\u51C8\u6DD2\u6DBC\u6DE9\u6E1B\u6E4A\u51DC\u5E7E\u9CF3\u9CE7\u6191\u51F1\u64CA\u6C39\u947F\u82BB\u5283\u5289\u5247\u525B\u5275\u522A\u5225\u522C\u5244\u528A\u528C\u5274\u5291\u526E\u528D\u525D\u5287\u52F8\u8FA6\u52D9\u52F1\u52D5\u52F5\u52C1\u52DE\u52E2\u52DB\u731B\u52DA\u52FB\u532D\u5331\u5340\u91AB\u83EF\u5354\u55AE\u8CE3\u76E7\u9E75\u81E5\u885B\u537B\u5DF9\u5EE0\u5EF3\u6B77\u53B2\u58D3\u53AD\u5399\u5EC1\u5EC2\u53B4\u5EC8\u5EDA\u5EC4\u5EDD\u7E23\u53C3\u53C6\u53C7\u96D9\u767C\u8B8A\u6558\u53E0\u8449\u865F\u5606\u5630\u7C72\u5F8C\u5687\u5442\u55CE\u551A\u5678\u807D\u555F\u5433\u5638\u56C8\u5614\u56A6\u5504\u54E1\u54BC\u55C6\u55DA\u8A60\u54E2\u56A8\u5680\u565D\u54A4\u5645\u9E79\u54CC\u97FF\u555E\u5660\u5635\u55F6\u5666\u5629\u5672\u568C\u5665\u55B2\u561C\u551D\u562E\u5521\u55E9\u5523\u559A\u553F\u5616\u55C7\u56C0\u5699\u5570\u5574\u562F\u5674\u560D\u56B3\u56C1\u5475\u566F\u5653\u56B6\u56D1\u5695\u5288\u56C2\u8B14\u5718\u5712\u56EA\u570D\u5707\u570B\u5716\u5713\u8056\u58D9\u5834\u962A\u58DE\u584A\u5805\u58C7\u58E2\u58E9\u5862\u58B3\u589C\u58DF\u58DF\u58DA\u58D8\u58BE\u5770\u580A\u588A\u57E1\u57AF\u57B1\u584F\u5816\u5852\u5864\u581D\u588A\u57B5\u5879\u58AE\u5846\u58BB\u58EF\u8072\u6BBC\u58FA\u58F8\u8655\u5099\u5FA9\u5920\u982D\u8A87\u593E\u596A\u5969\u5950\u596E\u734E\u5967\u599D\u5A66\u5ABD\u5AF5\u5AD7\u5AAF\u59CD\u59DC\u5A41\u5A6D\u5B08\u5B0C\u5B4C\u5A1B\u5AA7\u5AFB\u5A73\u5B30\u5B0B\u5B38\u5ABC\u5B21\u5B2A\u5B19\u5B24\u5B6B\u5B78\u5B7F\u5BE7\u5BF6\u5BE6\u5BF5\u5BE9\u61B2\u5BAE\u5BEC\u8CD3\u5BE2\u5C0D\u5C0B\u5C0E\u58FD\u5C07\u723E\u5875\u582F\u5C37\u5C4D\u76E1\u5C64\u5C43\u5C5C\u5C46\u5C6C\u5C62\u5C68\u5DBC\u6B72\u8C48\u5D87\u5D17\u5CF4\u5DB4\u5D50\u5CF6\u5DBA\u5DBD\u5D20\u5DCB\u5CC3\u5DA7\u5CFD\u5CE3\u5DA0\u5D22\u5DD2\u5D97\u5D0D\u5D04\u5D84\u5DB8\u5D5A\u5D33\u5D81\u810A\u5DD4\u978F\u5DF0\u5E63\u5E25\u5E2B\u5E43\u5E33\u7C3E\u5E5F\u5E36\u5E40\u5E6B\u5E6C\u5E58\u5E57\u51AA\u8946\u5E79\u4E26\u5EE3\u838A\u6176\u5EEC\u5EE1\u5EAB\u61C9\u5EDF\u9F90\u5EE2\u5EBC\u5EE9\u958B\u7570\u68C4\u5F35\u5F4C\u5F33\u5F4E\u5F48\u5F37\u6B78\u7576\u9304\u5F5F\u5F65\u5FB9\u5F91\u5FA0\u79A6\u61B6\u61FA\u6182\u613E\u61F7\u614B\u616B\u61AE\u616A\u60B5\u6134\u6190\u7E3D\u61DF\u61CC\u6200\u61C7\u60E1\u615F\u61E8\u6137\u60FB\u60F1\u60F2\u6085\u6128\u61F8\u6173\u61AB\u9A5A\u61FC\u6158\u61F2\u618A\u611C\u615A\u619A\u6163\u6E63\u614D\u61A4\u6192\u9858\u61FE\u616D\u6035\u61E3\u61F6\u61CD\u6207\u6214\u6232\u6227\u6230\u6229\u6236\u7D2E\u64B2\u6261\u57F7\u64F4\u636B\u6383\u63DA\u64FE\u64AB\u62CB\u6476\u6473\u6384\u6436\u8B77\u5831\u64D4\u64EC\u650F\u63C0\u64C1\u6514\u64F0\u64A5\u64C7\u639B\u646F\u6523\u631C\u64BE\u64BB\u633E\u6493\u64CB\u649F\u6399\u64E0\u63EE\u6326\u6488\u640D\u64BF\u63DB\u6417\u64DA\u649A\u64C4\u6451\u64F2\u64A3\u647B\u645C\u6463\u652C\u64B3\u6519\u64F1\u645F\u652A\u651C\u651D\u6504\u64FA\u6416\u64EF\u6524\u6516\u6490\u6506\u64F7\u64FC\u651B\u64FB\u6522\u6575\u6582\u6578\u9F4B\u6595\u9B25\u65AC\u65B7\u7121\u820A\u6642\u66E0\u65F8\u66C7\u665D\u663D\u986F\u6649\u66EC\u66C9\u66C4\u6688\u6689\u66AB\u66D6\u5284\u8853\u6A38\u6A5F\u6BBA\u96DC\u6B0A\u689D\u4F86\u694A\u69AA\u5091\u6975\u69CB\u6A05\u6A1E\u68D7\u6AEA\u6898\u68D6\u69CD\u6953\u689F\u6AC3\u6AB8\u6A89\u6894\u67F5\u6A19\u68E7\u6ADB\u6AF3\u68DF\u6AE8\u6ADF\u6B04\u6A39\u68F2\u6A23\u6B12\u68EC\u690F\u6A48\u6968\u6A94\u69BF\u6A4B\u6A3A\u6A9C\u69F3\u6A01\u5922\u68BC\u68BE\u6AA2\u6B1E\u69E8\u6ADD\u69E7\u6B0F\u6A62\u6A13\u6B16\u6AEC\u6ADA\u6AF8\u69DA\u6ABB\u6AB3\u6AE7\u6A6B\u6AA3\u6AFB\u6AEB\u6AE5\u6AD3\u6ADE\u6A90\u6A81\u6B61\u6B5F\u6B50\u6BB2\u6B7F\u6BA4\u6B98\u6B9E\u6BAE\u6BAB\u6BAF\u6BC6\u6BC0\u8F42\u7562\u6583\u6C08\u6BFF\u6C0C\u6C23\u6C2B\u6C2C\u6C33\u532F\u6F22\u6C59\u6E6F\u6D36\u6C93\u6E9D\u6C92\u7043\u6F1A\u701D\u6DEA\u6EC4\u6CA8\u6E88\u6EEC\u6CB5\u6FD8\u6DDA\u6FA9\u7027\u7018\u6FFC\u7009\u6F51\u6FA4\u6D87\u6F54\u7051\u7AAA\u6D79\u6DFA\u6F3F\u6F86\u6E5E\u6D49\u6FC1\u6E2C\u6FAE\u6FDF\u700F\u6D50\u6E3E\u6EF8\u6FC3\u6F6F\u6D55\u5857\u6E67\u6FE4\u6F87\u6DF6\u6F23\u6F7F\u6E26\u6DA2\u6E19\u6ECC\u6F64\u6F97\u6F32\u6F80\u6FB1\u6DF5\u6DE5\u6F2C\u7006\u6F38\u6FA0\u6F01\u700B\u6EF2\u6EAB\u904A\u7063\u6FD5\u6F70\u6FFA\u6F35\u6E87\u6F77\u6EFE\u6EEF\u7069\u7044\u6EFF\u7005\u6FFE\u6FEB\u7064\u6FF1\u7058\u6EEA\u6FEB\u7020\u701F\u7032\u6FF0\u6F5B\u7026\u703E\u7028\u7015\u705D\u6EC5\u71C8\u9748\u707D\u71E6\u716C\u7210\u71C9\u7152\u7197\u9EDE\u7149\u71BE\u720D\u721B\u70F4\u71ED\u7159\u7169\u71D2\u71C1\u71F4\u71D9\u71FC\u71B1\u7165\u71DC\u71FE\u7146\u7CCA\u6E9C\u611B\u723A\u7258\u7266\u727D\u72A7\u72A2\u729F\u72C0\u7377\u7341\u7336\u72FD\u9E85\u72DD\u7370\u7368\u72F9\u7345\u736A\u7319\u7344\u733B\u736B\u7375\u737C\u7380\u8C6C\u8C93\u732C\u737B\u737A\u74A3\u7399\u739A\u746A\u744B\u74B0\u73FE\u73B1\u74BD\u7449\u73A8\u743A\u74CF\u73F0\u743F\u740E\u7489\u7463\u74CA\u7464\u74A6\u7487\u74D4\u74DA\u7515\u750C\u96FB\u756B\u66A2\u756C\u7587\u7664\u7642\u7627\u7658\u760D\u7667\u7621\u760B\u76B0\u5C59\u7670\u75D9\u7662\u7602\u7646\u7613\u7647\u7661\u7649\u7606\u761E\u763A\u765F\u7671\u766E\u766D\u7669\u766C\u7672\u81D2\u769A\u76BA\u76B8\u76DE\u9E7D\u76E3\u84CB\u76DC\u76E4\u7798\u7725\u772C\u8457\u775C\u775E\u77BC\u779E\u77DA\u77EF\u78EF\u792C\u7926\u78AD\u78BC\u78DA\u7868\u786F\u78B8\u792A\u7931\u792B\u790E\u7841\u77FD\u78A9\u7864\u78FD\u7859\u785A\u78BA\u9E7C\u7919\u78E7\u78E3\u583F\u78B9\u6EFE\u79AE\u794E\u79B0\u798E\u79B1\u798D\u7A1F\u797F\u79AA\u96E2\u79BF\u7A08\u7A2E\u7A4D\u7A31\u7A62\u79FE\u7A6D\u7A05\u7A4C\u7A69\u7A61\u7AAE\u7ACA\u7AC5\u7AAF\u7AC4\u7AA9\u7ABA\u7AC7\u7AB6\u8C4E\u7AF6\u7BE4\u7B4D\u7B46\u7B67\u7B8B\u7C60\u7C69\u7BC9\u7BF3\u7BE9\u7B5C\u7B8F\u7C4C\u7C3D\u7C21\u7B93\u7C00\u7BCB\u7C5C\u7C6E\u7C1E\u7C2B\u7C23\u7C0D\u7C43\u7C6C\u7C6A\u7C5F\u7CF4\u985E\u79C8\u7CF6\u7CF2\u7CB5\u7CDE\u7CE7\u7CDD\u7CC7\u7DCA\u7E36\u7CF8\u7CFE\u7D06\u7D05\u7D02\u7E96\u7D07\u7D04\u7D1A\u7D08\u7E8A\u7D00\u7D09\u7DEF\u7D1C\u7EAE\u7D14\u7D15\u7D17\u7DB1\u7D0D\u7EB4\u7E31\u7DB8\u7D1B\u7D19\u7D0B\u7D21\u7EBB\u7EBC\u7D10\u7D13\u7DDA\u7D3A\u7D32\u7D31\u7DF4\u7D44\u7D33\u7D30\u7E54\u7D42\u7E10\u7D46\u7D3C\u7D40\u7D39\u7E79\u7D93\u7D3F\u7D81\u7D68\u7D50\u7D5D\u7E5E\u7ED6\u7D4E\u7E6A\u7D66\u7D62\u7D73\u7D61\u7D55\u7D5E\u7D71\u7D86\u7D83\u7D79\u7E61\u7EE4\u7D8F\u7D73\u7E7C\u7D88\u7E3E\u7DD2\u7DBE\u7EEC\u7E8C\u7DBA\u7DCB\u7DBD\u7DD4\u7DC4\u7E69\u7DAD\u7DBF\u7DAC\u7E43\u7DA2\u7EF9\u7DB9\u7DA3\u7D9C\u7DBB\u7DB0\u7DA0\u7DB4\u7DC7\u7DD9\u7DD7\u7DD8\u7DEC\u7E9C\u7DF9\u7DF2\u7DDD\u7F0A\u7E62\u7DE6\u7D9E\u7DDE\u7DF6\u7F10\u7DF1\u7E0B\u7DE9\u7DE0\u7E37\u7DE8\u7DE1\u7DE3\u7E09\u7E1B\u7E1F\u7E1D\u7E2B\u7F1E\u7E1E\u7E8F\u7E2D\u7E0A\u7E11\u7E7D\u7E39\u7E35\u7E32\u7E93\u7E2E\u7E46\u7E45\u7E88\u7E5A\u7E55\u7E52\u97C1\u7E7E\u7E70\u7E6F\u7E73\u7E98\u7F4C\u7DB2\u7F85\u7F70\u7F77\u7F86\u7F88\u7FA5\u7FA8\u7FF9\u7FD9\u7FDA\u802E\u802C\u8073\u6065\u8076\u807E\u8077\u8079\u806F\u8075\u8070\u8085\u8178\u819A\u8181\u814E\u816B\u8139\u8105\u81BD\u52DD\u6727\u8156\u81DA\u811B\u81A0\u8108\u81BE\u81DF\u81CD\u8166\u81BF\u81E0\u8173\u812B\u8161\u81C9\u81D8\u814C\u8158\u816D\u81A9\u9766\u8183\u9A30\u81CF\u81DC\u8F3F\u8264\u8266\u8259\u826B\u8271\u8277\u8279\u85DD\u7BC0\u7F8B\u858C\u856A\u8606\u84EF\u8466\u85F6\u83A7\u8407\u84BC\u82E7\u8607\u6ABE\u860B\u8396\u8622\u8526\u584B\u7162\u7E6D\u834A\u85A6\u8359\u83A2\u8558\u84FD\u854E\u8588\u85BA\u8569\u69AE\u8477\u6ECE\u7296\u7192\u8541\u85CE\u84C0\u852D\u8552\u8452\u8464\u85E5\u849E\u84E7\u840A\u84EE\u8494\u8435\u859F\u7372\u8555\u7469\u9DAF\u8493\u841A\u863F\u87A2\u71DF\u7E08\u856D\u85A9\u8525\u8546\u8562\u8523\u851E\u85CD\u858A\u863A\u8577\u93A3\u9A40\u8594\u861E\u85FA\u85F9\u8604\u860A\u85EA\u69C1\u861A\u865C\u616E\u865B\u87F2\u866C\u87E3\u96D6\u8766\u8806\u8755\u87FB\u879E\u8836\u8814\u8706\u8831\u8823\u87F6\u883B\u87C4\u86FA\u87EF\u8784\u8810\u86FB\u8778\u881F\u8805\u87C8\u87EC\u880D\u87BB\u8811\u8780\u87CE\u87CF\u91C1\u929C\u88DC\u896F\u889E\u8956\u88CA\u8886\u896A\u8972\u88AF\u88DD\u8960\u88C8\u8933\u895D\u8932\u8947\u8938\u8964\u7E48\u8955\u898B\u89C0\u89C3\u898F\u8993\u8996\u8998\u89BD\u89BA\u89AC\u89A1\u89BF\u89CD\u89A6\u89AF\u89B2\u89B7\u89F4\u89F8\u89F6\u8A5F\u8B7D\u8B04\u8A01\u8A08\u8A02\u8A03\u8A8D\u8B4F\u8A10\u8A0C\u8A0E\u8B93\u8A15\u8A16\u8A13\u8B70\u8A0A\u8A18\u8BB1\u8B1B\u8AF1\u8B33\u8A4E\u8A1D\u8A25\u8A31\u8A1B\u8AD6\u8BBB\u8A1F\u8AF7\u8A2D\u8A2A\u8A23\u8B49\u8A41\u8A36\u8A55\u8A5B\u8B58\u8BC7\u8A50\u8A34\u8A3A\u8A46\u8B05\u8A5E\u8A58\u8A54\u8BD0\u8B6F\u8A52\u8A86\u8A84\u8A66\u8A7F\u8A69\u8A70\u8A7C\u8AA0\u8A85\u8A75\u8A71\u8A95\u8A6C\u8A6E\u8A6D\u8A62\u8A63\u8ACD\u8A72\u8A73\u8A6B\u8AE2\u8A61\u8BEA\u8AA1\u8AA3\u8A9E\u8A9A\u8AA4\u8AA5\u8A98\u8AA8\u8A91\u8AAA\u8AA6\u8A92\u8ACB\u8AF8\u8ACF\u8AFE\u8B80\u8AD1\u8AB9\u8AB2\u8AC9\u8ADB\u8AB0\u8AD7\u8ABF\u8AC2\u8AD2\u8AC4\u8AB6\u8AC7\u8ABC\u8B00\u8AF6\u8ADC\u8B0A\u8AEB\u8AE7\u8B14\u8B01\u8B02\u8AE4\u8AED\u8AFC\u8B92\u8AEE\u8AF3\u8AFA\u8AE6\u8B0E\u8ADE\u8C1E\u8B28\u8B9C\u8B16\u8B1D\u8B20\u8B17\u8B1A\u8B19\u8B10\u8B39\u8B3E\u8B2B\u8B7E\u8B2C\u8B5A\u8B56\u8B59\u8B95\u8B5C\u8B4E\u8B9E\u8B74\u8B6B\u8B96\u8C37\u8C6E\u8C9D\u8C9E\u8CA0\u8D20\u8CA2\u8CA1\u8CAC\u8CE2\u6557\u8CEC\u8CA8\u8CEA\u8CA9\u8CAA\u8CA7\u8CB6\u8CFC\u8CAF\u8CAB\u8CB3\u8CE4\u8CC1\u8CB0\u8CBC\u8CB4\u8CBA\u8CB8\u8CBF\u8CBB\u8CC0\u8CBD\u8CCA\u8D04\u8CC8\u8CC4\u8CB2\u8CC3\u8CC2\u8D13\u8CC7\u8CC5\u8D10\u8CD5\u8CD1\u8CDA\u8CD2\u8CE6\u8CED\u8CEB\u8D16\u8CDE\u8CDC\u8D51\u8D52\u8CE1\u8CE0\u8CE7\u8CF4\u8D57\u8D05\u8CFB\u8CFA\u8CFD\u8CFE\u8D17\u8D0A\u8D5F\u8D08\u8D0D\u8D0F\u8D1B\u8D6A\u8D99\u8D95\u8DA8\u8DB2\u8E89\u8E8D\u8E4C\u8DD6\u8E92\u8E10\u8DF6\u8E7A\u8E55\u8E9A\u8E8B\u8E34\u8E8A\u8E64\u8E93\u8E91\u8EA1\u8E63\u8E95\u8EA5\u8EAA\u8EA6\u8EC0\u8ECA\u8ECB\u8ECC\u8ED2\u8F6A\u8ED4\u8F49\u8EDB\u8F2A\u8EDF\u8F5F\u8EF2\u8EFB\u8F64\u8EF8\u8EF9\u8EFC\u8EE4\u8EEB\u8F62\u8EFA\u8F15\u8EFE\u8F09\u8F0A\u8F4E\u8F80\u8F07\u8F05\u8F03\u8F12\u8F14\u8F1B\u8F26\u8F29\u8F1D\u8F25\u8F1E\u8F8C\u8F1F\u8F1C\u8F33\u8F3B\u8F2F\u8F92\u8F38\u8F61\u8F45\u8F44\u8F3E\u8F46\u8F4D\u8F54\u8FAD\u8FAF\u8FAE\u908A\u907C\u9054\u9077\u904E\u9081\u904B\u9084\u9019\u9032\u9060\u9055\u9023\u9072\u9087\u9015\u8DE1\u9069\u9078\u905C\u905E\u9090\u908F\u907A\u9059\u9127\u913A\u9114\u90F5\u9112\u9134\u9130\u90C1\u90E4\u90DF\u9136\u912D\u9106\u9148\u9116\u9132\u919E\u9166\u91AC\u91C5\u91C3\u91C0\u91CB\u88CF\u9245\u9452\u947E\u93E8\u91D3\u91D4\u91DD\u91D8\u91D7\u91D9\u91D5\u91F7\u91EC\u91E7\u91E4\u9491\u91E9\u91E3\u9346\u91F9\u9496\u91F5\u9498\u9223\u9208\u9226\u920D\u9214\u9418\u9209\u92C7\u92FC\u9211\u9210\u9470\u6B3D\u921E\u93A2\u9264\u9227\u9201\u9225\u9204\u9215\u9200\u923A\u9322\u9266\u9257\u9237\u7F3D\u9233\u9255\u923D\u9238\u925E\u9246\u926C\u926D\u9240\u923F\u923E\u9435\u9251\u9234\u9460\u925B\u925A\u9230\u9249\u9248\u924D\u9239\u9438\u94CF\u92AC\u92A0\u927A\u92AA\u92CF\u92E3\u9403\u94DA\u943A\u9285\u92C1\u92B1\u92A6\u93A7\u9358\u9296\u9291\u92CC\u92A9\u94E6\u93F5\u9293\u927F\u929A\u927B\u9298\u931A\u92AB\u9278\u92A5\u93DF\u9283\u940B\u92A8\u9280\u92A3\u9444\u9412\u92EA\u94FB\u9338\u92F1\u93C8\u93D7\u92B7\u9396\u92F0\u92E5\u92E4\u934B\u92EF\u92E8\u92B9\u92BC\u92DD\u92D2\u92C5\u92F6\u9426\u9427\u92B3\u92BB\u92C3\u92DF\u92E6\u9312\u9306\u937A\u932F\u9328\u951C\u9301\u9315\u9520\u932B\u932E\u947C\u9318\u9310\u9326\u9341\u9308\u9307\u931F\u9320\u9375\u92F8\u9333\u9319\u9365\u9533\u9347\u93D8\u9376\u9354\u9364\u936C\u937E\u935B\u93AA\u953D\u9370\u9384\u934D\u9382\u93E4\u9543\u93CC\u93AE\u9548\u9398\u9477\u942B\u93B3\u93BF\u93A6\u93AC\u938A\u93B0\u9555\u93E2\u93DC\u93CD\u955A\u93DE\u93E1\u93D1\u93C3\u93C7\u9560\u9414\u941D\u9410\u93F7\u9465\u9413\u946D\u9420\u9479\u93F9\u9419\u944A\u9433\u956E\u9432\u942E\u943F\u9454\u9463\u9574\u9472\u9577\u9580\u9582\u9583\u9586\u95EC\u9589\u554F\u95D6\u958F\u95C8\u9591\u958E\u9593\u9594\u958C\u60B6\u9598\u9B27\u95A8\u805E\u95E5\u95A9\u95AD\u95FF\u95A5\u95A3\u95A1\u95AB\u9B2E\u95B1\u95AC\u9607\u95BE\u95B9\u95B6\u9B29\u95BF\u95BD\u95BB\u95BC\u95E1\u95CC\u95C3\u9613\u95CA\u95CB\u95D4\u95D0\u9618\u95D5\u95DE\u961B\u968A\u967D\u9670\u9663\u968E\u969B\u9678\u96B4\u9673\u9658\u965C\u9689\u9695\u96AA\u96A8\u96B1\u96B8\u96CB\u96E3\u96DB\u8B8E\u9742\u9727\u973D\u9EF4\u9744\u975A\u975C\u9768\u97C3\u97BD\u97C9\u97DD\u97CB\u97CC\u97E8\u97D3\u97D9\u97DE\u97DC\u97FB\u9801\u9802\u9803\u9807\u9805\u9806\u9808\u980A\u9811\u9867\u9813\u980E\u9812\u980C\u980F\u9810\u9871\u9818\u9817\u9838\u9821\u9830\u988B\u981C\u6F41\u988E\u9826\u9824\u983B\u9892\u9839\u9837\u9895\u7A4E\u9846\u984C\u9899\u984E\u9853\u984F\u984D\u9873\u9862\u985B\u9859\u9865\u98A3\u986B\u986C\u9870\u9874\u98A8\u98CF\u98D0\u98AE\u98AF\u98B6\u98D4\u98BC\u98D6\u98D7\u98C4\u98C6\u98C8\u98DB\u9957\u995C\u9964\u9951\u9966\u9933\u98E9\u993C\u98EA\u98EB\u98ED\u98EF\u98F2\u991E\u98FE\u98FD\u98FC\u9973\u98F4\u990C\u9952\u9909\u9978\u9979\u9903\u997B\u9905\u9911\u997E\u9913\u9918\u9912\u9982\u9983\u991B\u9921\u9928\u9937\u994B\u9989\u993F\u995E\u998C\u9943\u998E\u993E\u9948\u9949\u9945\u994A\u994C\u9962\u99AC\u99AD\u99B1\u99B4\u99B3\u9A45\u9A72\u99C1\u9A62\u99D4\u99DB\u99DF\u99D9\u99D2\u9A36\u99D0\u99DD\u99D1\u99D5\u9A5B\u99D8\u9A4D\u7F75\u9A83\u9A55\u9A4A\u99F1\u99ED\u99E2\u9A89\u9A6A\u9A01\u9A57\u9A8D\u9A8E\u99FF\u9A0F\u9A0E\u9A0D\u9A05\u9A94\u9A95\u9A42\u9A19\u9A2D\u9A99\u9A37\u9A16\u9A41\u9A2E\u9A2B\u9A38\u9A43\u9A3E\u9A44\u9A4F\u9A5F\u9A65\u9AA6\u9A64\u9ACF\u9AD6\u9AD5\u9B22\u9B58\u9B4E\u9B5A\u9C7D\u9C7E\u9B77\u9C80\u9B6F\u9B74\u9C84\u9B81\u9B83\u9B8E\u9C78\u9C89\u9C8A\u9B92\u9C8C\u9B91\u9C5F\u9C8F\u9B90\u9BAD\u9B9A\u9C93\u9BAA\u9B9E\u9C96\u9C97\u9C98\u9C99\u9C6D\u9BAB\u9BAE\u9C9D\u9BD7\u9C58\u9BC1\u9C7A\u9C31\u9C39\u9BC9\u9C23\u9C37\u9BC0\u9BCA\u9BC7\u9CAA\u9BFD\u9CAC\u9BD6\u9BEA\u9CAF\u9BEB\u9BE1\u9BE4\u9BE7\u9BDD\u9BE2\u9BF0\u9BDB\u9BE8\u9CB9\u9BF4\u9BD4\u9C5D\u9C08\u9CBE\u9CBF\u9CC0\u9CC1\u9CC2\u9C13\u9C77\u9C0D\u9C12\u9C09\u9CC8\u9CC9\u9BFF\u9C20\u9C32\u9C2D\u9C28\u9C25\u9C29\u9CD1\u9CD2\u9C33\u9C3E\u9C48\u9C49\u9C3B\u9C35\u9C45\u9CDB\u9C56\u9C54\u9C57\u9C52\u9CE0\u9CE1\u9C67\u9CE3\u9CE5\u9CE9\u96DE\u9CF6\u9CF4\u9E24\u9DD7\u9D09\u9E27\u9D07\u9D06\u9D23\u9D87\u9E15\u9D28\u9E2E\u9D26\u9E30\u9D1F\u9D1D\u9D1B\u9E34\u9D15\u9DE5\u9DD9\u9D2F\u9D30\u9D42\u9E3B\u9E3C\u9D3F\u9E1E\u9D3B\u9E40\u9D53\u9E1D\u9D51\u9D60\u9D5D\u9D52\u9DF4\u9D5C\u9D61\u9D72\u9D93\u9D6A\u9E4D\u9D6F\u9D6C\u9E50\u9D89\u9E52\u9E53\u9E54\u9D98\u9E56\u9D9A\u9DBB\u9DBF\u9DA5\u9DA9\u9E5D\u9DC2\u9E5F\u9E60\u9E61\u9E62\u9DBC\u9DB4\u9E65\u9E1A\u9DD3\u9DDA\u9DEF\u9DE6\u9DF2\u9DF8\u9DFA\u9E6F\u9DF9\u9E0C\u9E72\u9E1B\u9E74\u9E7A\u9EA5\u9EA9\u9EC3\u9ECC\u9EE1\u9EF7\u9EF2\u9EFD\u9EFF\u9F0C\u9F09\u9F17\u9F34\u9F47\u9F4A\u9F4F\u9F52\u9F54\u9F81\u9F82\u9F5F\u9F61\u9F59\u9F60\u9F5C\u9F66\u9F6C\u9F6A\u9F72\u9F77\u9F8D\u9F94\u9F95\u9F9C\u8A8C\u5236\u54A8\u53EA\u88CF\u7CFB\u7BC4\u677E\u6C92\u5617\u5617\u9B27\u9762\u6E96\u9418\u5225\u9591\u4E7E\u76E1\u81DF\u62FC"},pp=gp,od=pp,Xc=od.S,Yc=od.T;function qc(e,r){var t,a,n,i,o,s,l,c="";if(r?(s=Xc,l=Yc):(s=Yc,l=Xc),typeof e!="string")return e;for(t=0;t<e.length;t++){if(a=e.charAt(t),n=e.charCodeAt(t),i=n>13312&&n<40899||n>63744&&n<64106,!i){c+=a;continue}o=s.indexOf(a),o!==-1?c+=l.charAt(o):c+=a}return c}var mp={s2t:function(e){return qc(e,!0)},t2s:function(e){return qc(e,!1)}},wp=mp;/*! xlsx.js (C) 2013-present SheetJS -- http://sheetjs.com */var ts={};ts.version="0.18.5";var sd=1252,yp=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],Gl={0:1252,1:65001,2:65001,77:1e4,128:932,129:949,130:1361,134:936,136:950,161:1253,162:1254,163:1258,177:1255,178:1256,186:1257,204:1251,222:874,238:1250,255:1252,69:6969},Xl=function(e){yp.indexOf(e)!=-1&&(sd=Gl[0]=e)};function _p(){Xl(1252)}var ca=function(e){Xl(e)};function Yl(){ca(1200),_p()}function Jc(e){for(var r=[],t=0,a=e.length;t<a;++t)r[t]=e.charCodeAt(t);return r}function bp(e){for(var r=[],t=0;t<e.length>>1;++t)r[t]=String.fromCharCode(e.charCodeAt(2*t)+(e.charCodeAt(2*t+1)<<8));return r.join("")}function ld(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 Si=function(e){var r=e.charCodeAt(0),t=e.charCodeAt(1);return r==255&&t==254?bp(e.slice(2)):r==254&&t==255?ld(e.slice(2)):r==65279?e.slice(1):e},Fo=function(r){return String.fromCharCode(r)},Zc=function(r){return String.fromCharCode(r)},Ja,Qa="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function Hi(e){for(var r="",t=0,a=0,n=0,i=0,o=0,s=0,l=0,c=0;c<e.length;)t=e.charCodeAt(c++),i=t>>2,a=e.charCodeAt(c++),o=(t&3)<<4|a>>4,n=e.charCodeAt(c++),s=(a&15)<<2|n>>6,l=n&63,isNaN(a)?s=l=64:isNaN(n)&&(l=64),r+=Qa.charAt(i)+Qa.charAt(o)+Qa.charAt(s)+Qa.charAt(l);return r}function jt(e){var r="",t=0,a=0,n=0,i=0,o=0,s=0,l=0;e=e.replace(/[^\w\+\/\=]/g,"");for(var c=0;c<e.length;)i=Qa.indexOf(e.charAt(c++)),o=Qa.indexOf(e.charAt(c++)),t=i<<2|o>>4,r+=String.fromCharCode(t),s=Qa.indexOf(e.charAt(c++)),a=(o&15)<<4|s>>2,s!==64&&(r+=String.fromCharCode(a)),l=Qa.indexOf(e.charAt(c++)),n=(s&3)<<6|l,l!==64&&(r+=String.fromCharCode(n));return r}var Je=function(){return typeof Buffer<"u"&&typeof process<"u"&&typeof process.versions<"u"&&!!process.versions.node}(),Ua=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.bind(Buffer)}return function(){}}();function rn(e){return Je?Buffer.alloc?Buffer.alloc(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}function Qc(e){return Je?Buffer.allocUnsafe?Buffer.allocUnsafe(e):new Buffer(e):typeof Uint8Array<"u"?new Uint8Array(e):new Array(e)}var Bt=function(r){return Je?Ua(r,"binary"):r.split("").map(function(t){return t.charCodeAt(0)&255})};function ws(e){if(typeof ArrayBuffer>"u")return Bt(e);for(var r=new ArrayBuffer(e.length),t=new Uint8Array(r),a=0;a!=e.length;++a)t[a]=e.charCodeAt(a)&255;return r}function ln(e){if(Array.isArray(e))return e.map(function(a){return String.fromCharCode(a)}).join("");for(var r=[],t=0;t<e.length;++t)r[t]=String.fromCharCode(e[t]);return r.join("")}function Sp(e){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(e)}function ql(e){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(e instanceof ArrayBuffer)return ql(new Uint8Array(e));for(var r=new Array(e.length),t=0;t<e.length;++t)r[t]=e[t];return r}var tt=Je?function(e){return Buffer.concat(e.map(function(r){return Buffer.isBuffer(r)?r:Ua(r)}))}:function(e){if(typeof Uint8Array<"u"){var r=0,t=0;for(r=0;r<e.length;++r)t+=e[r].length;var a=new Uint8Array(t),n=0;for(r=0,t=0;r<e.length;t+=n,++r)if(n=e[r].length,e[r]instanceof Uint8Array)a.set(e[r],t);else{if(typeof e[r]=="string")throw"wtf";a.set(new Uint8Array(e[r]),t)}return a}return[].concat.apply([],e.map(function(i){return Array.isArray(i)?i:[].slice.call(i)}))};function Ep(e){for(var r=[],t=0,a=e.length+250,n=rn(e.length+255),i=0;i<e.length;++i){var o=e.charCodeAt(i);if(o<128)n[t++]=o;else if(o<2048)n[t++]=192|o>>6&31,n[t++]=128|o&63;else if(o>=55296&&o<57344){o=(o&1023)+64;var s=e.charCodeAt(++i)&1023;n[t++]=240|o>>8&7,n[t++]=128|o>>2&63,n[t++]=128|s>>6&15|(o&3)<<4,n[t++]=128|s&63}else n[t++]=224|o>>12&15,n[t++]=128|o>>6&63,n[t++]=128|o&63;t>a&&(r.push(n.slice(0,t)),t=0,n=rn(65535),a=65530)}return r.push(n.slice(0,t)),tt(r)}var Ct=/\u0000/g,Ei=/[\u0001-\u0006]/g;function ai(e){for(var r="",t=e.length-1;t>=0;)r+=e.charAt(t--);return r}function fa(e,r){var t=""+e;return t.length>=r?t:Mr("0",r-t.length)+t}function Jl(e,r){var t=""+e;return t.length>=r?t:Mr(" ",r-t.length)+t}function as(e,r){var t=""+e;return t.length>=r?t:t+Mr(" ",r-t.length)}function Cp(e,r){var t=""+Math.round(e);return t.length>=r?t:Mr("0",r-t.length)+t}function Tp(e,r){var t=""+e;return t.length>=r?t:Mr("0",r-t.length)+t}var ef=Math.pow(2,32);function $n(e,r){if(e>ef||e<-ef)return Cp(e,r);var t=Math.round(e);return Tp(t,r)}function ns(e,r){return r=r||0,e.length>=7+r&&(e.charCodeAt(r)|32)===103&&(e.charCodeAt(r+1)|32)===101&&(e.charCodeAt(r+2)|32)===110&&(e.charCodeAt(r+3)|32)===101&&(e.charCodeAt(r+4)|32)===114&&(e.charCodeAt(r+5)|32)===97&&(e.charCodeAt(r+6)|32)===108}var rf=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],$s=[["J","Jan","January"],["F","Feb","February"],["M","Mar","March"],["A","Apr","April"],["M","May","May"],["J","Jun","June"],["J","Jul","July"],["A","Aug","August"],["S","Sep","September"],["O","Oct","October"],["N","Nov","November"],["D","Dec","December"]];function kp(e){return e||(e={}),e[0]="General",e[1]="0",e[2]="0.00",e[3]="#,##0",e[4]="#,##0.00",e[9]="0%",e[10]="0.00%",e[11]="0.00E+00",e[12]="# ?/?",e[13]="# ??/??",e[14]="m/d/yy",e[15]="d-mmm-yy",e[16]="d-mmm",e[17]="mmm-yy",e[18]="h:mm AM/PM",e[19]="h:mm:ss AM/PM",e[20]="h:mm",e[21]="h:mm:ss",e[22]="m/d/yy h:mm",e[37]="#,##0 ;(#,##0)",e[38]="#,##0 ;[Red](#,##0)",e[39]="#,##0.00;(#,##0.00)",e[40]="#,##0.00;[Red](#,##0.00)",e[45]="mm:ss",e[46]="[h]:mm:ss",e[47]="mmss.0",e[48]="##0.0E+0",e[49]="@",e[56]='"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "',e}var Ue={0:"General",1:"0",2:"0.00",3:"#,##0",4:"#,##0.00",9:"0%",10:"0.00%",11:"0.00E+00",12:"# ?/?",13:"# ??/??",14:"m/d/yy",15:"d-mmm-yy",16:"d-mmm",17:"mmm-yy",18:"h:mm AM/PM",19:"h:mm:ss AM/PM",20:"h:mm",21:"h:mm:ss",22:"m/d/yy h:mm",37:"#,##0 ;(#,##0)",38:"#,##0 ;[Red](#,##0)",39:"#,##0.00;(#,##0.00)",40:"#,##0.00;[Red](#,##0.00)",45:"mm:ss",46:"[h]:mm:ss",47:"mmss.0",48:"##0.0E+0",49:"@",56:'"\u4E0A\u5348/\u4E0B\u5348 "hh"\u6642"mm"\u5206"ss"\u79D2 "'},tf={5:37,6:38,7:39,8:40,23:0,24:0,25:0,26:0,27:14,28:14,29:14,30:14,31:14,50:14,51:14,52:14,53:14,54:14,55:14,56:14,57:14,58:14,59:1,60:2,61:3,62:4,67:9,68:10,69:12,70:13,71:14,72:14,73:15,74:16,75:17,76:20,77:21,78:22,79:45,80:46,81:47,82:0},Fp={5:'"$"#,##0_);\\("$"#,##0\\)',63:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',41:'_(* #,##0_);_(* \\(#,##0\\);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* \\(#,##0\\);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* \\(#,##0.00\\);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* \\(#,##0.00\\);_("$"* "-"??_);_(@_)'};function is(e,r,t){for(var a=e<0?-1:1,n=e*a,i=0,o=1,s=0,l=1,c=0,f=0,u=Math.floor(n);c<r&&(u=Math.floor(n),s=u*o+i,f=u*c+l,!(n-u<5e-8));)n=1/(n-u),i=o,o=s,l=c,c=f;if(f>r&&(c>r?(f=l,s=i):(f=c,s=o)),!t)return[0,a*s,f];var d=Math.floor(a*s/f);return[d,a*s-d*f,f]}function mn(e,r,t){if(e>2958465||e<0)return null;var a=e|0,n=Math.floor(86400*(e-a)),i=0,o=[],s={D:a,T:n,u:86400*(e-a)-n,y:0,m:0,d:0,H:0,M:0,S:0,q:0};if(Math.abs(s.u)<1e-6&&(s.u=0),r&&r.date1904&&(a+=1462),s.u>.9999&&(s.u=0,++n==86400&&(s.T=n=0,++a,++s.D)),a===60)o=t?[1317,10,29]:[1900,2,29],i=3;else if(a===0)o=t?[1317,8,29]:[1900,1,0],i=6;else{a>60&&--a;var l=new Date(1900,0,1);l.setDate(l.getDate()+a-1),o=[l.getFullYear(),l.getMonth()+1,l.getDate()],i=l.getDay(),a<60&&(i=(i+6)%7),t&&(i=Pp(l,o))}return s.y=o[0],s.m=o[1],s.d=o[2],s.S=n%60,n=Math.floor(n/60),s.M=n%60,n=Math.floor(n/60),s.H=n,s.q=i,s}var cd=new Date(1899,11,31,0,0,0),Ap=cd.getTime(),Op=new Date(1900,2,1,0,0,0);function fd(e,r){var t=e.getTime();return r?t-=1461*24*60*60*1e3:e>=Op&&(t+=24*60*60*1e3),(t-(Ap+(e.getTimezoneOffset()-cd.getTimezoneOffset())*6e4))/(24*60*60*1e3)}function Zl(e){return e.indexOf(".")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Dp(e){return e.indexOf("E")==-1?e:e.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2")}function Rp(e){var r=e<0?12:11,t=Zl(e.toFixed(12));return t.length<=r||(t=e.toPrecision(10),t.length<=r)?t:e.toExponential(5)}function Ip(e){var r=Zl(e.toFixed(11));return r.length>(e<0?12:11)||r==="0"||r==="-0"?e.toPrecision(6):r}function Vi(e){var r=Math.floor(Math.log(Math.abs(e))*Math.LOG10E),t;return r>=-4&&r<=-1?t=e.toPrecision(10+r):Math.abs(r)<=9?t=Rp(e):r===10?t=e.toFixed(10).substr(0,12):t=Ip(e),Zl(Dp(t.toUpperCase()))}function En(e,r){switch(typeof e){case"string":return e;case"boolean":return e?"TRUE":"FALSE";case"number":return(e|0)===e?e.toString(10):Vi(e);case"undefined":return"";case"object":if(e==null)return"";if(e instanceof Date)return ea(14,fd(e,r&&r.date1904),r)}throw new Error("unsupported value in General format: "+e)}function Pp(e,r){r[0]-=581;var t=e.getDay();return e<60&&(t=(t+6)%7),t}function Np(e,r,t,a){var n="",i=0,o=0,s=t.y,l,c=0;switch(e){case 98:s=t.y+543;case 121:switch(r.length){case 1:case 2:l=s%100,c=2;break;default:l=s%1e4,c=4;break}break;case 109:switch(r.length){case 1:case 2:l=t.m,c=r.length;break;case 3:return $s[t.m-1][1];case 5:return $s[t.m-1][0];default:return $s[t.m-1][2]}break;case 100:switch(r.length){case 1:case 2:l=t.d,c=r.length;break;case 3:return rf[t.q][0];default:return rf[t.q][1]}break;case 104:switch(r.length){case 1:case 2:l=1+(t.H+11)%12,c=r.length;break;default:throw"bad hour format: "+r}break;case 72:switch(r.length){case 1:case 2:l=t.H,c=r.length;break;default:throw"bad hour format: "+r}break;case 77:switch(r.length){case 1:case 2:l=t.M,c=r.length;break;default:throw"bad minute format: "+r}break;case 115:if(r!="s"&&r!="ss"&&r!=".0"&&r!=".00"&&r!=".000")throw"bad second format: "+r;return t.u===0&&(r=="s"||r=="ss")?fa(t.S,r.length):(a>=2?o=a===3?1e3:100:o=a===1?10:1,i=Math.round(o*(t.S+t.u)),i>=60*o&&(i=0),r==="s"?i===0?"0":""+i/o:(n=fa(i,2+a),r==="ss"?n.substr(0,2):"."+n.substr(2,r.length-1)));case 90:switch(r){case"[h]":case"[hh]":l=t.D*24+t.H;break;case"[m]":case"[mm]":l=(t.D*24+t.H)*60+t.M;break;case"[s]":case"[ss]":l=((t.D*24+t.H)*60+t.M)*60+Math.round(t.S+t.u);break;default:throw"bad abstime format: "+r}c=r.length===3?1:2;break;case 101:l=s,c=1;break}var f=c>0?fa(l,c):"";return f}function en(e){var r=3;if(e.length<=r)return e;for(var t=e.length%r,a=e.substr(0,t);t!=e.length;t+=r)a+=(a.length>0?",":"")+e.substr(t,r);return a}var ud=/%/g;function Lp(e,r,t){var a=r.replace(ud,""),n=r.length-a.length;return Ia(e,a,t*Math.pow(10,2*n))+Mr("%",n)}function Bp(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Ia(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function dd(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+dd(e,-r);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0&&(i+=n),t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n),t.indexOf("e")===-1){var o=Math.floor(Math.log(r)*Math.LOG10E);for(t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(o-t.length+i):t+="E+"+(o-i);t.substr(0,2)==="0.";)t=t.charAt(0)+t.substr(2,n)+"."+t.substr(2+n),t=t.replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,f){return l+c+f.substr(0,(n+i)%n)+"."+f.substr(i)+"E"})}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}var hd=/# (\?+)( ?)\/( ?)(\d+)/;function Mp(e,r,t){var a=parseInt(e[4],10),n=Math.round(r*a),i=Math.floor(n/a),o=n-i*a,s=a;return t+(i===0?"":""+i)+" "+(o===0?Mr(" ",e[1].length+1+e[4].length):Jl(o,e[1].length)+e[2]+"/"+e[3]+fa(s,e[4].length))}function Kp(e,r,t){return t+(r===0?"":""+r)+Mr(" ",e[1].length+2+e[4].length)}var vd=/^#*0*\.([0#]+)/,xd=/\).*[0#]/,gd=/\(###\) ###\\?-####/;function St(e){for(var r="",t,a=0;a!=e.length;++a)switch(t=e.charCodeAt(a)){case 35:break;case 63:r+=" ";break;case 48:r+="0";break;default:r+=String.fromCharCode(t)}return r}function af(e,r){var t=Math.pow(10,r);return""+Math.round(e*t)/t}function nf(e,r){var t=e-Math.floor(e),a=Math.pow(10,r);return r<(""+Math.round(t*a)).length?0:Math.round(t*a)}function jp(e,r){return r<(""+Math.round((e-Math.floor(e))*Math.pow(10,r))).length?1:0}function Wp(e){return e<2147483647&&e>-2147483648?""+(e>=0?e|0:e-1|0):""+Math.floor(e)}function Gt(e,r,t){if(e.charCodeAt(0)===40&&!r.match(xd)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?Gt("n",a,t):"("+Gt("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Bp(e,r,t);if(r.indexOf("%")!==-1)return Lp(e,r,t);if(r.indexOf("E")!==-1)return dd(r,t);if(r.charCodeAt(0)===36)return"$"+Gt(e,r.substr(r.charAt(1)==" "?2:1),t);var n,i,o,s,l=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+$n(l,r.length);if(r.match(/^[#?]+$/))return n=$n(t,0),n==="0"&&(n=""),n.length>r.length?n:St(r.substr(0,r.length-n.length))+n;if(i=r.match(hd))return Mp(i,l,c);if(r.match(/^#+0+$/))return c+$n(l,r.length-r.indexOf("0"));if(i=r.match(vd))return n=af(t,i[1].length).replace(/^([^\.]+)$/,"$1."+St(i[1])).replace(/\.$/,"."+St(i[1])).replace(/\.(\d*)$/,function(x,h){return"."+h+Mr("0",St(i[1]).length-h.length)}),r.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),i=r.match(/^(0*)\.(#*)$/))return c+af(l,i[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=r.match(/^#{1,3},##0(\.?)$/))return c+en($n(l,0));if(i=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+Gt(e,r,-t):en(""+(Math.floor(t)+jp(t,i[1].length)))+"."+fa(nf(t,i[1].length),i[1].length);if(i=r.match(/^#,#*,#0/))return Gt(e,r.replace(/^#,#*,/,""),t);if(i=r.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ai(Gt(e,r.replace(/[\\-]/g,""),t)),o=0,ai(ai(r.replace(/\\/g,"")).replace(/[0#]/g,function(x){return o<n.length?n.charAt(o++):x==="0"?"0":""}));if(r.match(gd))return n=Gt(e,"##########",t),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var f="";if(i=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=is(l,Math.pow(10,o)-1,!1),n=""+c,f=Ia("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),n+=f+i[2]+"/"+i[3],f=as(s[2],o),f.length<i[4].length&&(f=St(i[4].substr(i[4].length-f.length))+f),n+=f,n;if(i=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=is(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Jl(s[1],o)+i[2]+"/"+i[3]+as(s[2],o):Mr(" ",2*o+1+i[2].length+i[3].length));if(i=r.match(/^[#0?]+$/))return n=$n(t,0),r.length<=n.length?n:St(r.substr(0,r.length-n.length))+n;if(i=r.match(/^([#0?]+)\.([#0]+)$/)){n=""+t.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=n.indexOf(".");var u=r.indexOf(".")-o,d=r.length-n.length-u;return St(r.substr(0,u)+n+r.substr(r.length-d))}if(i=r.match(/^00,000\.([#0]*0)$/))return o=nf(t,i[1].length),t<0?"-"+Gt(e,r,-t):en(Wp(t)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(x){return"00,"+(x.length<3?fa(0,3-x.length):"")+x})+"."+fa(o,i[1].length);switch(r){case"###,##0.00":return Gt(e,"#,##0.00",t);case"###,###":case"##,###":case"#,###":var v=en($n(l,0));return v!=="0"?c+v:"";case"###,###.00":return Gt(e,"###,##0.00",t).replace(/^0\./,".");case"#,###.00":return Gt(e,"#,##0.00",t).replace(/^0\./,".")}throw new Error("unsupported format |"+r+"|")}function Up(e,r,t){for(var a=r.length-1;r.charCodeAt(a-1)===44;)--a;return Ia(e,r.substr(0,a),t/Math.pow(10,3*(r.length-a)))}function Hp(e,r,t){var a=r.replace(ud,""),n=r.length-a.length;return Ia(e,a,t*Math.pow(10,2*n))+Mr("%",n)}function pd(e,r){var t,a=e.indexOf("E")-e.indexOf(".")-1;if(e.match(/^#+0.0E\+0$/)){if(r==0)return"0.0E+0";if(r<0)return"-"+pd(e,-r);var n=e.indexOf(".");n===-1&&(n=e.indexOf("E"));var i=Math.floor(Math.log(r)*Math.LOG10E)%n;if(i<0&&(i+=n),t=(r/Math.pow(10,i)).toPrecision(a+1+(n+i)%n),!t.match(/[Ee]/)){var o=Math.floor(Math.log(r)*Math.LOG10E);t.indexOf(".")===-1?t=t.charAt(0)+"."+t.substr(1)+"E+"+(o-t.length+i):t+="E+"+(o-i),t=t.replace(/\+-/,"-")}t=t.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(s,l,c,f){return l+c+f.substr(0,(n+i)%n)+"."+f.substr(i)+"E"})}else t=r.toExponential(a);return e.match(/E\+00$/)&&t.match(/e[+-]\d$/)&&(t=t.substr(0,t.length-1)+"0"+t.charAt(t.length-1)),e.match(/E\-/)&&t.match(/e\+/)&&(t=t.replace(/e\+/,"e")),t.replace("e","E")}function ma(e,r,t){if(e.charCodeAt(0)===40&&!r.match(xd)){var a=r.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return t>=0?ma("n",a,t):"("+ma("n",a,-t)+")"}if(r.charCodeAt(r.length-1)===44)return Up(e,r,t);if(r.indexOf("%")!==-1)return Hp(e,r,t);if(r.indexOf("E")!==-1)return pd(r,t);if(r.charCodeAt(0)===36)return"$"+ma(e,r.substr(r.charAt(1)==" "?2:1),t);var n,i,o,s,l=Math.abs(t),c=t<0?"-":"";if(r.match(/^00+$/))return c+fa(l,r.length);if(r.match(/^[#?]+$/))return n=""+t,t===0&&(n=""),n.length>r.length?n:St(r.substr(0,r.length-n.length))+n;if(i=r.match(hd))return Kp(i,l,c);if(r.match(/^#+0+$/))return c+fa(l,r.length-r.indexOf("0"));if(i=r.match(vd))return n=(""+t).replace(/^([^\.]+)$/,"$1."+St(i[1])).replace(/\.$/,"."+St(i[1])),n=n.replace(/\.(\d*)$/,function(x,h){return"."+h+Mr("0",St(i[1]).length-h.length)}),r.indexOf("0.")!==-1?n:n.replace(/^0\./,".");if(r=r.replace(/^#+([0.])/,"$1"),i=r.match(/^(0*)\.(#*)$/))return c+(""+l).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,i[1].length?"0.":".");if(i=r.match(/^#{1,3},##0(\.?)$/))return c+en(""+l);if(i=r.match(/^#,##0\.([#0]*0)$/))return t<0?"-"+ma(e,r,-t):en(""+t)+"."+Mr("0",i[1].length);if(i=r.match(/^#,#*,#0/))return ma(e,r.replace(/^#,#*,/,""),t);if(i=r.match(/^([0#]+)(\\?-([0#]+))+$/))return n=ai(ma(e,r.replace(/[\\-]/g,""),t)),o=0,ai(ai(r.replace(/\\/g,"")).replace(/[0#]/g,function(x){return o<n.length?n.charAt(o++):x==="0"?"0":""}));if(r.match(gd))return n=ma(e,"##########",t),"("+n.substr(0,3)+") "+n.substr(3,3)+"-"+n.substr(6);var f="";if(i=r.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(i[4].length,7),s=is(l,Math.pow(10,o)-1,!1),n=""+c,f=Ia("n",i[1],s[1]),f.charAt(f.length-1)==" "&&(f=f.substr(0,f.length-1)+"0"),n+=f+i[2]+"/"+i[3],f=as(s[2],o),f.length<i[4].length&&(f=St(i[4].substr(i[4].length-f.length))+f),n+=f,n;if(i=r.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return o=Math.min(Math.max(i[1].length,i[4].length),7),s=is(l,Math.pow(10,o)-1,!0),c+(s[0]||(s[1]?"":"0"))+" "+(s[1]?Jl(s[1],o)+i[2]+"/"+i[3]+as(s[2],o):Mr(" ",2*o+1+i[2].length+i[3].length));if(i=r.match(/^[#0?]+$/))return n=""+t,r.length<=n.length?n:St(r.substr(0,r.length-n.length))+n;if(i=r.match(/^([#0]+)\.([#0]+)$/)){n=""+t.toFixed(Math.min(i[2].length,10)).replace(/([^0])0+$/,"$1"),o=n.indexOf(".");var u=r.indexOf(".")-o,d=r.length-n.length-u;return St(r.substr(0,u)+n+r.substr(r.length-d))}if(i=r.match(/^00,000\.([#0]*0)$/))return t<0?"-"+ma(e,r,-t):en(""+t).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(x){return"00,"+(x.length<3?fa(0,3-x.length):"")+x})+"."+fa(0,i[1].length);switch(r){case"###,###":case"##,###":case"#,###":var v=en(""+l);return v!=="0"?c+v:"";default:if(r.match(/\.[0#?]*$/))return ma(e,r.slice(0,r.lastIndexOf(".")),t)+St(r.slice(r.lastIndexOf(".")))}throw new Error("unsupported format |"+r+"|")}function Ia(e,r,t){return(t|0)===t?ma(e,r,t):Gt(e,r,t)}function Vp(e){for(var r=[],t=!1,a=0,n=0;a<e.length;++a)switch(e.charCodeAt(a)){case 34:t=!t;break;case 95:case 42:case 92:++a;break;case 59:r[r.length]=e.substr(n,a-n),n=a+1}if(r[r.length]=e.substr(n),t===!0)throw new Error("Format |"+e+"| unterminated string ");return r}var md=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function di(e){for(var r=0,t="",a="";r<e.length;)switch(t=e.charAt(r)){case"G":ns(e,r)&&(r+=6),r++;break;case'"':for(;e.charCodeAt(++r)!==34&&r<e.length;);++r;break;case"\\":r+=2;break;case"_":r+=2;break;case"@":++r;break;case"B":case"b":if(e.charAt(r+1)==="1"||e.charAt(r+1)==="2")return!0;case"M":case"D":case"Y":case"H":case"S":case"E":case"m":case"d":case"y":case"h":case"s":case"e":case"g":return!0;case"A":case"a":case"\u4E0A":if(e.substr(r,3).toUpperCase()==="A/P"||e.substr(r,5).toUpperCase()==="AM/PM"||e.substr(r,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348")return!0;++r;break;case"[":for(a=t;e.charAt(r++)!=="]"&&r<e.length;)a+=e.charAt(r);if(a.match(md))return!0;break;case".":case"0":case"#":for(;r<e.length&&("0#?.,E+-%".indexOf(t=e.charAt(++r))>-1||t=="\\"&&e.charAt(r+1)=="-"&&"0#".indexOf(e.charAt(r+2))>-1););break;case"?":for(;e.charAt(++r)===t;);break;case"*":++r,(e.charAt(r)==" "||e.charAt(r)=="*")&&++r;break;case"(":case")":++r;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;r<e.length&&"0123456789".indexOf(e.charAt(++r))>-1;);break;case" ":++r;break;default:++r;break}return!1}function zp(e,r,t,a){for(var n=[],i="",o=0,s="",l="t",c,f,u,d="H";o<e.length;)switch(s=e.charAt(o)){case"G":if(!ns(e,o))throw new Error("unrecognized character "+s+" in "+e);n[n.length]={t:"G",v:"General"},o+=7;break;case'"':for(i="";(u=e.charCodeAt(++o))!==34&&o<e.length;)i+=String.fromCharCode(u);n[n.length]={t:"t",v:i},++o;break;case"\\":var v=e.charAt(++o),x=v==="("||v===")"?v:"t";n[n.length]={t:x,v},++o;break;case"_":n[n.length]={t:"t",v:" "},o+=2;break;case"@":n[n.length]={t:"T",v:r},++o;break;case"B":case"b":if(e.charAt(o+1)==="1"||e.charAt(o+1)==="2"){if(c==null&&(c=mn(r,t,e.charAt(o+1)==="2"),c==null))return"";n[n.length]={t:"X",v:e.substr(o,2)},l=s,o+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":s=s.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(r<0||c==null&&(c=mn(r,t),c==null))return"";for(i=s;++o<e.length&&e.charAt(o).toLowerCase()===s;)i+=s;s==="m"&&l.toLowerCase()==="h"&&(s="M"),s==="h"&&(s=d),n[n.length]={t:s,v:i},l=s;break;case"A":case"a":case"\u4E0A":var h={t:s,v:s};if(c==null&&(c=mn(r,t)),e.substr(o,3).toUpperCase()==="A/P"?(c!=null&&(h.v=c.H>=12?"P":"A"),h.t="T",d="h",o+=3):e.substr(o,5).toUpperCase()==="AM/PM"?(c!=null&&(h.v=c.H>=12?"PM":"AM"),h.t="T",o+=5,d="h"):e.substr(o,5).toUpperCase()==="\u4E0A\u5348/\u4E0B\u5348"?(c!=null&&(h.v=c.H>=12?"\u4E0B\u5348":"\u4E0A\u5348"),h.t="T",o+=5,d="h"):(h.t="t",++o),c==null&&h.t==="T")return"";n[n.length]=h,l=s;break;case"[":for(i=s;e.charAt(o++)!=="]"&&o<e.length;)i+=e.charAt(o);if(i.slice(-1)!=="]")throw'unterminated "[" block: |'+i+"|";if(i.match(md)){if(c==null&&(c=mn(r,t),c==null))return"";n[n.length]={t:"Z",v:i.toLowerCase()},l=i.charAt(1)}else i.indexOf("$")>-1&&(i=(i.match(/\$([^-\[\]]*)/)||[])[1]||"$",di(e)||(n[n.length]={t:"t",v:i}));break;case".":if(c!=null){for(i=s;++o<e.length&&(s=e.charAt(o))==="0";)i+=s;n[n.length]={t:"s",v:i};break}case"0":case"#":for(i=s;++o<e.length&&"0#?.,E+-%".indexOf(s=e.charAt(o))>-1;)i+=s;n[n.length]={t:"n",v:i};break;case"?":for(i=s;e.charAt(++o)===s;)i+=s;n[n.length]={t:s,v:i},l=s;break;case"*":++o,(e.charAt(o)==" "||e.charAt(o)=="*")&&++o;break;case"(":case")":n[n.length]={t:a===1?"t":s,v:s},++o;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(i=s;o<e.length&&"0123456789".indexOf(e.charAt(++o))>-1;)i+=e.charAt(o);n[n.length]={t:"D",v:i};break;case" ":n[n.length]={t:s,v:s},++o;break;case"$":n[n.length]={t:"t",v:"$"},++o;break;default:if(",$-+/():!^&'~{}<>=\u20ACacfijklopqrtuvwxzP".indexOf(s)===-1)throw new Error("unrecognized character "+s+" in "+e);n[n.length]={t:"t",v:s},++o;break}var p=0,m=0,S;for(o=n.length-1,l="t";o>=0;--o)switch(n[o].t){case"h":case"H":n[o].t=d,l="h",p<1&&(p=1);break;case"s":(S=n[o].v.match(/\.0+$/))&&(m=Math.max(m,S[0].length-1)),p<3&&(p=3);case"d":case"y":case"M":case"e":l=n[o].t;break;case"m":l==="s"&&(n[o].t="M",p<2&&(p=2));break;case"X":break;case"Z":p<1&&n[o].v.match(/[Hh]/)&&(p=1),p<2&&n[o].v.match(/[Mm]/)&&(p=2),p<3&&n[o].v.match(/[Ss]/)&&(p=3)}switch(p){case 0:break;case 1:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M),c.M>=60&&(c.M=0,++c.H);break;case 2:c.u>=.5&&(c.u=0,++c.S),c.S>=60&&(c.S=0,++c.M);break}var g="",w;for(o=0;o<n.length;++o)switch(n[o].t){case"t":case"T":case" ":case"D":break;case"X":n[o].v="",n[o].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":n[o].v=Np(n[o].t.charCodeAt(0),n[o].v,c,m),n[o].t="t";break;case"n":case"?":for(w=o+1;n[w]!=null&&((s=n[w].t)==="?"||s==="D"||(s===" "||s==="t")&&n[w+1]!=null&&(n[w+1].t==="?"||n[w+1].t==="t"&&n[w+1].v==="/")||n[o].t==="("&&(s===" "||s==="n"||s===")")||s==="t"&&(n[w].v==="/"||n[w].v===" "&&n[w+1]!=null&&n[w+1].t=="?"));)n[o].v+=n[w].v,n[w]={v:"",t:";"},++w;g+=n[o].v,o=w-1;break;case"G":n[o].t="t",n[o].v=En(r,t);break}var C="",F,_;if(g.length>0){g.charCodeAt(0)==40?(F=r<0&&g.charCodeAt(0)===45?-r:r,_=Ia("n",g,F)):(F=r<0&&a>1?-r:r,_=Ia("n",g,F),F<0&&n[0]&&n[0].t=="t"&&(_=_.substr(1),n[0].v="-"+n[0].v)),w=_.length-1;var R=n.length;for(o=0;o<n.length;++o)if(n[o]!=null&&n[o].t!="t"&&n[o].v.indexOf(".")>-1){R=o;break}var y=n.length;if(R===n.length&&_.indexOf("E")===-1){for(o=n.length-1;o>=0;--o)n[o]==null||"n?".indexOf(n[o].t)===-1||(w>=n[o].v.length-1?(w-=n[o].v.length,n[o].v=_.substr(w+1,n[o].v.length)):w<0?n[o].v="":(n[o].v=_.substr(0,w+1),w=-1),n[o].t="t",y=o);w>=0&&y<n.length&&(n[y].v=_.substr(0,w+1)+n[y].v)}else if(R!==n.length&&_.indexOf("E")===-1){for(w=_.indexOf(".")-1,o=R;o>=0;--o)if(!(n[o]==null||"n?".indexOf(n[o].t)===-1)){for(f=n[o].v.indexOf(".")>-1&&o===R?n[o].v.indexOf(".")-1:n[o].v.length-1,C=n[o].v.substr(f+1);f>=0;--f)w>=0&&(n[o].v.charAt(f)==="0"||n[o].v.charAt(f)==="#")&&(C=_.charAt(w--)+C);n[o].v=C,n[o].t="t",y=o}for(w>=0&&y<n.length&&(n[y].v=_.substr(0,w+1)+n[y].v),w=_.indexOf(".")+1,o=R;o<n.length;++o)if(!(n[o]==null||"n?(".indexOf(n[o].t)===-1&&o!==R)){for(f=n[o].v.indexOf(".")>-1&&o===R?n[o].v.indexOf(".")+1:0,C=n[o].v.substr(0,f);f<n[o].v.length;++f)w<_.length&&(C+=_.charAt(w++));n[o].v=C,n[o].t="t",y=o}}}for(o=0;o<n.length;++o)n[o]!=null&&"n?".indexOf(n[o].t)>-1&&(F=a>1&&r<0&&o>0&&n[o-1].v==="-"?-r:r,n[o].v=Ia(n[o].t,n[o].v,F),n[o].t="t");var W="";for(o=0;o!==n.length;++o)n[o]!=null&&(W+=n[o].v);return W}var of=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function sf(e,r){if(r==null)return!1;var t=parseFloat(r[2]);switch(r[1]){case"=":if(e==t)return!0;break;case">":if(e>t)return!0;break;case"<":if(e<t)return!0;break;case"<>":if(e!=t)return!0;break;case">=":if(e>=t)return!0;break;case"<=":if(e<=t)return!0;break}return!1}function $p(e,r){var t=Vp(e),a=t.length,n=t[a-1].indexOf("@");if(a<4&&n>-1&&--a,t.length>4)throw new Error("cannot find right format for |"+t.join("|")+"|");if(typeof r!="number")return[4,t.length===4||n>-1?t[t.length-1]:"@"];switch(t.length){case 1:t=n>-1?["General","General","General",t[0]]:[t[0],t[0],t[0],"@"];break;case 2:t=n>-1?[t[0],t[0],t[0],t[1]]:[t[0],t[1],t[0],"@"];break;case 3:t=n>-1?[t[0],t[1],t[0],t[2]]:[t[0],t[1],t[2],"@"];break}var i=r>0?t[0]:r<0?t[1]:t[2];if(t[0].indexOf("[")===-1&&t[1].indexOf("[")===-1)return[a,i];if(t[0].match(/\[[=<>]/)!=null||t[1].match(/\[[=<>]/)!=null){var o=t[0].match(of),s=t[1].match(of);return sf(r,o)?[a,t[0]]:sf(r,s)?[a,t[1]]:[a,t[o!=null&&s!=null?2:1]]}return[a,i]}function ea(e,r,t){t==null&&(t={});var a="";switch(typeof e){case"string":e=="m/d/yy"&&t.dateNF?a=t.dateNF:a=e;break;case"number":e==14&&t.dateNF?a=t.dateNF:a=(t.table!=null?t.table:Ue)[e],a==null&&(a=t.table&&t.table[tf[e]]||Ue[tf[e]]),a==null&&(a=Fp[e]||"General");break}if(ns(a,0))return En(r,t);r instanceof Date&&(r=fd(r,t.date1904));var n=$p(a,r);if(ns(n[1]))return En(r,t);if(r===!0)r="TRUE";else if(r===!1)r="FALSE";else if(r===""||r==null)return"";return zp(n[1],r,t,n[0])}function Pa(e,r){if(typeof r!="number"){r=+r||-1;for(var t=0;t<392;++t){if(Ue[t]==null){r<0&&(r=t);continue}if(Ue[t]==e){r=t;break}}r<0&&(r=391)}return Ue[r]=e,r}function ys(e){for(var r=0;r!=392;++r)e[r]!==void 0&&Pa(e[r],r)}function hi(){Ue=kp()}var Gp={5:'"$"#,##0_);\\("$"#,##0\\)',6:'"$"#,##0_);[Red]\\("$"#,##0\\)',7:'"$"#,##0.00_);\\("$"#,##0.00\\)',8:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',23:"General",24:"General",25:"General",26:"General",27:"m/d/yy",28:"m/d/yy",29:"m/d/yy",30:"m/d/yy",31:"m/d/yy",32:"h:mm:ss",33:"h:mm:ss",34:"h:mm:ss",35:"h:mm:ss",36:"m/d/yy",41:'_(* #,##0_);_(* (#,##0);_(* "-"_);_(@_)',42:'_("$"* #,##0_);_("$"* (#,##0);_("$"* "-"_);_(@_)',43:'_(* #,##0.00_);_(* (#,##0.00);_(* "-"??_);_(@_)',44:'_("$"* #,##0.00_);_("$"* (#,##0.00);_("$"* "-"??_);_(@_)',50:"m/d/yy",51:"m/d/yy",52:"m/d/yy",53:"m/d/yy",54:"m/d/yy",55:"m/d/yy",56:"m/d/yy",57:"m/d/yy",58:"m/d/yy",59:"0",60:"0.00",61:"#,##0",62:"#,##0.00",63:'"$"#,##0_);\\("$"#,##0\\)',64:'"$"#,##0_);[Red]\\("$"#,##0\\)',65:'"$"#,##0.00_);\\("$"#,##0.00\\)',66:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',67:"0%",68:"0.00%",69:"# ?/?",70:"# ??/??",71:"m/d/yy",72:"m/d/yy",73:"d-mmm-yy",74:"d-mmm",75:"mmm-yy",76:"h:mm",77:"h:mm:ss",78:"m/d/yy h:mm",79:"mm:ss",80:"[h]:mm:ss",81:"mmss.0"},wd=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g;function Xp(e){var r=typeof e=="number"?Ue[e]:e;return r=r.replace(wd,"(\\d+)"),new RegExp("^"+r+"$")}function Yp(e,r,t){var a=-1,n=-1,i=-1,o=-1,s=-1,l=-1;(r.match(wd)||[]).forEach(function(u,d){var v=parseInt(t[d+1],10);switch(u.toLowerCase().charAt(0)){case"y":a=v;break;case"d":i=v;break;case"h":o=v;break;case"s":l=v;break;case"m":o>=0?s=v:n=v;break}}),l>=0&&s==-1&&n>=0&&(s=n,n=-1);var c=(""+(a>=0?a:new Date().getFullYear())).slice(-4)+"-"+("00"+(n>=1?n:1)).slice(-2)+"-"+("00"+(i>=1?i:1)).slice(-2);c.length==7&&(c="0"+c),c.length==8&&(c="20"+c);var f=("00"+(o>=0?o:0)).slice(-2)+":"+("00"+(s>=0?s:0)).slice(-2)+":"+("00"+(l>=0?l:0)).slice(-2);return o==-1&&s==-1&&l==-1?c:a==-1&&n==-1&&i==-1?f:c+"T"+f}var qp=function(){var e={};e.version="1.2.0";function r(){for(var _=0,R=new Array(256),y=0;y!=256;++y)_=y,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,_=_&1?-306674912^_>>>1:_>>>1,R[y]=_;return typeof Int32Array<"u"?new Int32Array(R):R}var t=r();function a(_){var R=0,y=0,W=0,D=typeof Int32Array<"u"?new Int32Array(4096):new Array(4096);for(W=0;W!=256;++W)D[W]=_[W];for(W=0;W!=256;++W)for(y=_[W],R=256+W;R<4096;R+=256)y=D[R]=y>>>8^_[y&255];var E=[];for(W=1;W!=16;++W)E[W-1]=typeof Int32Array<"u"?D.subarray(W*256,W*256+256):D.slice(W*256,W*256+256);return E}var n=a(t),i=n[0],o=n[1],s=n[2],l=n[3],c=n[4],f=n[5],u=n[6],d=n[7],v=n[8],x=n[9],h=n[10],p=n[11],m=n[12],S=n[13],g=n[14];function w(_,R){for(var y=R^-1,W=0,D=_.length;W<D;)y=y>>>8^t[(y^_.charCodeAt(W++))&255];return~y}function C(_,R){for(var y=R^-1,W=_.length-15,D=0;D<W;)y=g[_[D++]^y&255]^S[_[D++]^y>>8&255]^m[_[D++]^y>>16&255]^p[_[D++]^y>>>24]^h[_[D++]]^x[_[D++]]^v[_[D++]]^d[_[D++]]^u[_[D++]]^f[_[D++]]^c[_[D++]]^l[_[D++]]^s[_[D++]]^o[_[D++]]^i[_[D++]]^t[_[D++]];for(W+=15;D<W;)y=y>>>8^t[(y^_[D++])&255];return~y}function F(_,R){for(var y=R^-1,W=0,D=_.length,E=0,T=0;W<D;)E=_.charCodeAt(W++),E<128?y=y>>>8^t[(y^E)&255]:E<2048?(y=y>>>8^t[(y^(192|E>>6&31))&255],y=y>>>8^t[(y^(128|E&63))&255]):E>=55296&&E<57344?(E=(E&1023)+64,T=_.charCodeAt(W++)&1023,y=y>>>8^t[(y^(240|E>>8&7))&255],y=y>>>8^t[(y^(128|E>>2&63))&255],y=y>>>8^t[(y^(128|T>>6&15|(E&3)<<4))&255],y=y>>>8^t[(y^(128|T&63))&255]):(y=y>>>8^t[(y^(224|E>>12&15))&255],y=y>>>8^t[(y^(128|E>>6&63))&255],y=y>>>8^t[(y^(128|E&63))&255]);return~y}return e.table=t,e.bstr=w,e.buf=C,e.str=F,e}(),Me=function(){var r={};r.version="1.2.1";function t(k,j){for(var P=k.split("/"),B=j.split("/"),M=0,H=0,ae=Math.min(P.length,B.length);M<ae;++M){if(H=P[M].length-B[M].length)return H;if(P[M]!=B[M])return P[M]<B[M]?-1:1}return P.length-B.length}function a(k){if(k.charAt(k.length-1)=="/")return k.slice(0,-1).indexOf("/")===-1?k:a(k.slice(0,-1));var j=k.lastIndexOf("/");return j===-1?k:k.slice(0,j+1)}function n(k){if(k.charAt(k.length-1)=="/")return n(k.slice(0,-1));var j=k.lastIndexOf("/");return j===-1?k:k.slice(j+1)}function i(k,j){typeof j=="string"&&(j=new Date(j));var P=j.getHours();P=P<<6|j.getMinutes(),P=P<<5|j.getSeconds()>>>1,k.write_shift(2,P);var B=j.getFullYear()-1980;B=B<<4|j.getMonth()+1,B=B<<5|j.getDate(),k.write_shift(2,B)}function o(k){var j=k.read_shift(2)&65535,P=k.read_shift(2)&65535,B=new Date,M=P&31;P>>>=5;var H=P&15;P>>>=4,B.setMilliseconds(0),B.setFullYear(P+1980),B.setMonth(H-1),B.setDate(M);var ae=j&31;j>>>=5;var oe=j&63;return j>>>=6,B.setHours(j),B.setMinutes(oe),B.setSeconds(ae<<1),B}function s(k){st(k,0);for(var j={},P=0;k.l<=k.length-4;){var B=k.read_shift(2),M=k.read_shift(2),H=k.l+M,ae={};switch(B){case 21589:P=k.read_shift(1),P&1&&(ae.mtime=k.read_shift(4)),M>5&&(P&2&&(ae.atime=k.read_shift(4)),P&4&&(ae.ctime=k.read_shift(4))),ae.mtime&&(ae.mt=new Date(ae.mtime*1e3));break}k.l=H,j[B]=ae}return j}var l;function c(){return l||(l={})}function f(k,j){if(k[0]==80&&k[1]==75)return ia(k,j);if((k[0]|32)==109&&(k[1]|32)==105)return Sr(k,j);if(k.length<512)throw new Error("CFB file size "+k.length+" < 512");var P=3,B=512,M=0,H=0,ae=0,oe=0,re=0,ne=[],ie=k.slice(0,512);st(ie,0);var we=u(ie);switch(P=we[0],P){case 3:B=512;break;case 4:B=4096;break;case 0:if(we[1]==0)return ia(k,j);default:throw new Error("Major Version: Expected 3 or 4 saw "+P)}B!==512&&(ie=k.slice(0,B),st(ie,28));var Ce=k.slice(0,B);d(ie,P);var pe=ie.read_shift(4,"i");if(P===3&&pe!==0)throw new Error("# Directory Sectors: Expected 0 saw "+pe);ie.l+=4,ae=ie.read_shift(4,"i"),ie.l+=4,ie.chk("00100000","Mini Stream Cutoff Size: "),oe=ie.read_shift(4,"i"),M=ie.read_shift(4,"i"),re=ie.read_shift(4,"i"),H=ie.read_shift(4,"i");for(var fe=-1,xe=0;xe<109&&(fe=ie.read_shift(4,"i"),!(fe<0));++xe)ne[xe]=fe;var Re=v(k,B);p(re,H,Re,B,ne);var ar=S(Re,ae,ne,B);ar[ae].name="!Directory",M>0&&oe!==T&&(ar[oe].name="!MiniFAT"),ar[ne[0]].name="!FAT",ar.fat_addrs=ne,ar.ssz=B;var lr={},Lr=[],va=[],fn=[];g(ae,ar,Re,Lr,M,lr,va,oe),x(va,fn,Lr),Lr.shift();var un={FileIndex:va,FullPaths:fn};return j&&j.raw&&(un.raw={header:Ce,sectors:Re}),un}function u(k){if(k[k.l]==80&&k[k.l+1]==75)return[0,0];k.chk(A,"Header Signature: "),k.l+=16;var j=k.read_shift(2,"u");return[k.read_shift(2,"u"),j]}function d(k,j){var P=9;switch(k.l+=2,P=k.read_shift(2)){case 9:if(j!=3)throw new Error("Sector Shift: Expected 9 saw "+P);break;case 12:if(j!=4)throw new Error("Sector Shift: Expected 12 saw "+P);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+P)}k.chk("0600","Mini Sector Shift: "),k.chk("000000000000","Reserved: ")}function v(k,j){for(var P=Math.ceil(k.length/j)-1,B=[],M=1;M<P;++M)B[M-1]=k.slice(M*j,(M+1)*j);return B[P-1]=k.slice(P*j),B}function x(k,j,P){for(var B=0,M=0,H=0,ae=0,oe=0,re=P.length,ne=[],ie=[];B<re;++B)ne[B]=ie[B]=B,j[B]=P[B];for(;oe<ie.length;++oe)B=ie[oe],M=k[B].L,H=k[B].R,ae=k[B].C,ne[B]===B&&(M!==-1&&ne[M]!==M&&(ne[B]=ne[M]),H!==-1&&ne[H]!==H&&(ne[B]=ne[H])),ae!==-1&&(ne[ae]=B),M!==-1&&B!=ne[B]&&(ne[M]=ne[B],ie.lastIndexOf(M)<oe&&ie.push(M)),H!==-1&&B!=ne[B]&&(ne[H]=ne[B],ie.lastIndexOf(H)<oe&&ie.push(H));for(B=1;B<re;++B)ne[B]===B&&(H!==-1&&ne[H]!==H?ne[B]=ne[H]:M!==-1&&ne[M]!==M&&(ne[B]=ne[M]));for(B=1;B<re;++B)if(k[B].type!==0){if(oe=B,oe!=ne[oe])do oe=ne[oe],j[B]=j[oe]+"/"+j[B];while(oe!==0&&ne[oe]!==-1&&oe!=ne[oe]);ne[B]=-1}for(j[0]+="/",B=1;B<re;++B)k[B].type!==2&&(j[B]+="/")}function h(k,j,P){for(var B=k.start,M=k.size,H=[],ae=B;P&&M>0&&ae>=0;)H.push(j.slice(ae*E,ae*E+E)),M-=E,ae=pn(P,ae*4);return H.length===0?se(0):tt(H).slice(0,k.size)}function p(k,j,P,B,M){var H=T;if(k===T){if(j!==0)throw new Error("DIFAT chain shorter than expected")}else if(k!==-1){var ae=P[k],oe=(B>>>2)-1;if(!ae)return;for(var re=0;re<oe&&(H=pn(ae,re*4))!==T;++re)M.push(H);p(pn(ae,B-4),j-1,P,B,M)}}function m(k,j,P,B,M){var H=[],ae=[];M||(M=[]);var oe=B-1,re=0,ne=0;for(re=j;re>=0;){M[re]=!0,H[H.length]=re,ae.push(k[re]);var ie=P[Math.floor(re*4/B)];if(ne=re*4&oe,B<4+ne)throw new Error("FAT boundary crossed: "+re+" 4 "+B);if(!k[ie])break;re=pn(k[ie],ne)}return{nodes:H,data:wf([ae])}}function S(k,j,P,B){var M=k.length,H=[],ae=[],oe=[],re=[],ne=B-1,ie=0,we=0,Ce=0,pe=0;for(ie=0;ie<M;++ie)if(oe=[],Ce=ie+j,Ce>=M&&(Ce-=M),!ae[Ce]){re=[];var fe=[];for(we=Ce;we>=0;){fe[we]=!0,ae[we]=!0,oe[oe.length]=we,re.push(k[we]);var xe=P[Math.floor(we*4/B)];if(pe=we*4&ne,B<4+pe)throw new Error("FAT boundary crossed: "+we+" 4 "+B);if(!k[xe]||(we=pn(k[xe],pe),fe[we]))break}H[Ce]={nodes:oe,data:wf([re])}}return H}function g(k,j,P,B,M,H,ae,oe){for(var re=0,ne=B.length?2:0,ie=j[k].data,we=0,Ce=0,pe;we<ie.length;we+=128){var fe=ie.slice(we,we+128);st(fe,64),Ce=fe.read_shift(2),pe=i0(fe,0,Ce-ne),B.push(pe);var xe={name:pe,type:fe.read_shift(1),color:fe.read_shift(1),L:fe.read_shift(4,"i"),R:fe.read_shift(4,"i"),C:fe.read_shift(4,"i"),clsid:fe.read_shift(16),state:fe.read_shift(4,"i"),start:0,size:0},Re=fe.read_shift(2)+fe.read_shift(2)+fe.read_shift(2)+fe.read_shift(2);Re!==0&&(xe.ct=w(fe,fe.l-8));var ar=fe.read_shift(2)+fe.read_shift(2)+fe.read_shift(2)+fe.read_shift(2);ar!==0&&(xe.mt=w(fe,fe.l-8)),xe.start=fe.read_shift(4,"i"),xe.size=fe.read_shift(4,"i"),xe.size<0&&xe.start<0&&(xe.size=xe.type=0,xe.start=T,xe.name=""),xe.type===5?(re=xe.start,M>0&&re!==T&&(j[re].name="!StreamData")):xe.size>=4096?(xe.storage="fat",j[xe.start]===void 0&&(j[xe.start]=m(P,xe.start,j.fat_addrs,j.ssz)),j[xe.start].name=xe.name,xe.content=j[xe.start].data.slice(0,xe.size)):(xe.storage="minifat",xe.size<0?xe.size=0:re!==T&&xe.start!==T&&j[re]&&(xe.content=h(xe,j[re].data,(j[oe]||{}).data))),xe.content&&st(xe.content,0),H[pe]=xe,ae.push(xe)}}function w(k,j){return new Date((Nt(k,j+4)/1e7*Math.pow(2,32)+Nt(k,j)/1e7-11644473600)*1e3)}function C(k,j){return c(),f(l.readFileSync(k),j)}function F(k,j){var P=j&&j.type;switch(P||Je&&Buffer.isBuffer(k)&&(P="buffer"),P||"base64"){case"file":return C(k,j);case"base64":return f(Bt(jt(k)),j);case"binary":return f(Bt(k),j)}return f(k,j)}function _(k,j){var P=j||{},B=P.root||"Root Entry";if(k.FullPaths||(k.FullPaths=[]),k.FileIndex||(k.FileIndex=[]),k.FullPaths.length!==k.FileIndex.length)throw new Error("inconsistent CFB structure");k.FullPaths.length===0&&(k.FullPaths[0]=B+"/",k.FileIndex[0]={name:B,type:5}),P.CLSID&&(k.FileIndex[0].clsid=P.CLSID),R(k)}function R(k){var j="Sh33tJ5";if(!Me.find(k,"/"+j)){var P=se(4);P[0]=55,P[1]=P[3]=50,P[2]=54,k.FileIndex.push({name:j,type:2,content:P,size:4,L:69,R:69,C:69}),k.FullPaths.push(k.FullPaths[0]+j),y(k)}}function y(k,j){_(k);for(var P=!1,B=!1,M=k.FullPaths.length-1;M>=0;--M){var H=k.FileIndex[M];switch(H.type){case 0:B?P=!0:(k.FileIndex.pop(),k.FullPaths.pop());break;case 1:case 2:case 5:B=!0,isNaN(H.R*H.L*H.C)&&(P=!0),H.R>-1&&H.L>-1&&H.R==H.L&&(P=!0);break;default:P=!0;break}}if(!(!P&&!j)){var ae=new Date(1987,1,19),oe=0,re=Object.create?Object.create(null):{},ne=[];for(M=0;M<k.FullPaths.length;++M)re[k.FullPaths[M]]=!0,k.FileIndex[M].type!==0&&ne.push([k.FullPaths[M],k.FileIndex[M]]);for(M=0;M<ne.length;++M){var ie=a(ne[M][0]);B=re[ie],B||(ne.push([ie,{name:n(ie).replace("/",""),type:1,clsid:O,ct:ae,mt:ae,content:null}]),re[ie]=!0)}for(ne.sort(function(pe,fe){return t(pe[0],fe[0])}),k.FullPaths=[],k.FileIndex=[],M=0;M<ne.length;++M)k.FullPaths[M]=ne[M][0],k.FileIndex[M]=ne[M][1];for(M=0;M<ne.length;++M){var we=k.FileIndex[M],Ce=k.FullPaths[M];if(we.name=n(Ce).replace("/",""),we.L=we.R=we.C=-(we.color=1),we.size=we.content?we.content.length:0,we.start=0,we.clsid=we.clsid||O,M===0)we.C=ne.length>1?1:-1,we.size=0,we.type=5;else if(Ce.slice(-1)=="/"){for(oe=M+1;oe<ne.length&&a(k.FullPaths[oe])!=Ce;++oe);for(we.C=oe>=ne.length?-1:oe,oe=M+1;oe<ne.length&&a(k.FullPaths[oe])!=a(Ce);++oe);we.R=oe>=ne.length?-1:oe,we.type=1}else a(k.FullPaths[M+1]||"")==a(Ce)&&(we.R=M+1),we.type=2}}}function W(k,j){var P=j||{};if(P.fileType=="mad")return Zr(k,P);switch(y(k),P.fileType){case"zip":return ha(k,P)}var B=function(pe){for(var fe=0,xe=0,Re=0;Re<pe.FileIndex.length;++Re){var ar=pe.FileIndex[Re];if(!!ar.content){var lr=ar.content.length;lr>0&&(lr<4096?fe+=lr+63>>6:xe+=lr+511>>9)}}for(var Lr=pe.FullPaths.length+3>>2,va=fe+7>>3,fn=fe+127>>7,un=va+xe+Lr+fn,dn=un+127>>7,Fs=dn<=109?0:Math.ceil((dn-109)/127);un+dn+Fs+127>>7>dn;)Fs=++dn<=109?0:Math.ceil((dn-109)/127);var Fa=[1,Fs,dn,fn,Lr,xe,fe,0];return pe.FileIndex[0].size=fe<<6,Fa[7]=(pe.FileIndex[0].start=Fa[0]+Fa[1]+Fa[2]+Fa[3]+Fa[4]+Fa[5])+(Fa[6]+7>>3),Fa}(k),M=se(B[7]<<9),H=0,ae=0;{for(H=0;H<8;++H)M.write_shift(1,b[H]);for(H=0;H<8;++H)M.write_shift(2,0);for(M.write_shift(2,62),M.write_shift(2,3),M.write_shift(2,65534),M.write_shift(2,9),M.write_shift(2,6),H=0;H<3;++H)M.write_shift(2,0);for(M.write_shift(4,0),M.write_shift(4,B[2]),M.write_shift(4,B[0]+B[1]+B[2]+B[3]-1),M.write_shift(4,0),M.write_shift(4,1<<12),M.write_shift(4,B[3]?B[0]+B[1]+B[2]-1:T),M.write_shift(4,B[3]),M.write_shift(-4,B[1]?B[0]-1:T),M.write_shift(4,B[1]),H=0;H<109;++H)M.write_shift(-4,H<B[2]?B[1]+H:-1)}if(B[1])for(ae=0;ae<B[1];++ae){for(;H<236+ae*127;++H)M.write_shift(-4,H<B[2]?B[1]+H:-1);M.write_shift(-4,ae===B[1]-1?T:ae+1)}var oe=function(pe){for(ae+=pe;H<ae-1;++H)M.write_shift(-4,H+1);pe&&(++H,M.write_shift(-4,T))};for(ae=H=0,ae+=B[1];H<ae;++H)M.write_shift(-4,N.DIFSECT);for(ae+=B[2];H<ae;++H)M.write_shift(-4,N.FATSECT);oe(B[3]),oe(B[4]);for(var re=0,ne=0,ie=k.FileIndex[0];re<k.FileIndex.length;++re)ie=k.FileIndex[re],ie.content&&(ne=ie.content.length,!(ne<4096)&&(ie.start=ae,oe(ne+511>>9)));for(oe(B[6]+7>>3);M.l&511;)M.write_shift(-4,N.ENDOFCHAIN);for(ae=H=0,re=0;re<k.FileIndex.length;++re)ie=k.FileIndex[re],ie.content&&(ne=ie.content.length,!(!ne||ne>=4096)&&(ie.start=ae,oe(ne+63>>6)));for(;M.l&511;)M.write_shift(-4,N.ENDOFCHAIN);for(H=0;H<B[4]<<2;++H){var we=k.FullPaths[H];if(!we||we.length===0){for(re=0;re<17;++re)M.write_shift(4,0);for(re=0;re<3;++re)M.write_shift(4,-1);for(re=0;re<12;++re)M.write_shift(4,0);continue}ie=k.FileIndex[H],H===0&&(ie.start=ie.size?ie.start-1:T);var Ce=H===0&&P.root||ie.name;if(ne=2*(Ce.length+1),M.write_shift(64,Ce,"utf16le"),M.write_shift(2,ne),M.write_shift(1,ie.type),M.write_shift(1,ie.color),M.write_shift(-4,ie.L),M.write_shift(-4,ie.R),M.write_shift(-4,ie.C),ie.clsid)M.write_shift(16,ie.clsid,"hex");else for(re=0;re<4;++re)M.write_shift(4,0);M.write_shift(4,ie.state||0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,0),M.write_shift(4,ie.start),M.write_shift(4,ie.size),M.write_shift(4,0)}for(H=1;H<k.FileIndex.length;++H)if(ie=k.FileIndex[H],ie.size>=4096)if(M.l=ie.start+1<<9,Je&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+511&-512;else{for(re=0;re<ie.size;++re)M.write_shift(1,ie.content[re]);for(;re&511;++re)M.write_shift(1,0)}for(H=1;H<k.FileIndex.length;++H)if(ie=k.FileIndex[H],ie.size>0&&ie.size<4096)if(Je&&Buffer.isBuffer(ie.content))ie.content.copy(M,M.l,0,ie.size),M.l+=ie.size+63&-64;else{for(re=0;re<ie.size;++re)M.write_shift(1,ie.content[re]);for(;re&63;++re)M.write_shift(1,0)}if(Je)M.l=M.length;else for(;M.l<M.length;)M.write_shift(1,0);return M}function D(k,j){var P=k.FullPaths.map(function(re){return re.toUpperCase()}),B=P.map(function(re){var ne=re.split("/");return ne[ne.length-(re.slice(-1)=="/"?2:1)]}),M=!1;j.charCodeAt(0)===47?(M=!0,j=P[0].slice(0,-1)+j):M=j.indexOf("/")!==-1;var H=j.toUpperCase(),ae=M===!0?P.indexOf(H):B.indexOf(H);if(ae!==-1)return k.FileIndex[ae];var oe=!H.match(Ei);for(H=H.replace(Ct,""),oe&&(H=H.replace(Ei,"!")),ae=0;ae<P.length;++ae)if((oe?P[ae].replace(Ei,"!"):P[ae]).replace(Ct,"")==H||(oe?B[ae].replace(Ei,"!"):B[ae]).replace(Ct,"")==H)return k.FileIndex[ae];return null}var E=64,T=-2,A="d0cf11e0a1b11ae1",b=[208,207,17,224,161,177,26,225],O="00000000000000000000000000000000",N={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:T,FREESECT:-1,HEADER_SIGNATURE:A,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:O,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function G(k,j,P){c();var B=W(k,P);l.writeFileSync(j,B)}function L(k){for(var j=new Array(k.length),P=0;P<k.length;++P)j[P]=String.fromCharCode(k[P]);return j.join("")}function X(k,j){var P=W(k,j);switch(j&&j.type||"buffer"){case"file":return c(),l.writeFileSync(j.filename,P),P;case"binary":return typeof P=="string"?P:L(P);case"base64":return Hi(typeof P=="string"?P:L(P));case"buffer":if(Je)return Buffer.isBuffer(P)?P:Ua(P);case"array":return typeof P=="string"?Bt(P):P}return P}var Z;function I(k){try{var j=k.InflateRaw,P=new j;if(P._processChunk(new Uint8Array([3,0]),P._finishFlushFlag),P.bytesRead)Z=k;else throw new Error("zlib does not expose bytesRead")}catch(B){console.error("cannot use native zlib: "+(B.message||B))}}function z(k,j){if(!Z)return Fr(k,j);var P=Z.InflateRaw,B=new P,M=B._processChunk(k.slice(k.l),B._finishFlushFlag);return k.l+=B.bytesRead,M}function U(k){return Z?Z.deflateRawSync(k):me(k)}var V=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],q=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258],ee=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577];function Y(k){var j=(k<<1|k<<11)&139536|(k<<5|k<<15)&558144;return(j>>16|j>>8|j)&255}for(var J=typeof Uint8Array<"u",Q=J?new Uint8Array(1<<8):[],ce=0;ce<1<<8;++ce)Q[ce]=Y(ce);function K(k,j){var P=Q[k&255];return j<=8?P>>>8-j:(P=P<<8|Q[k>>8&255],j<=16?P>>>16-j:(P=P<<8|Q[k>>16&255],P>>>24-j))}function Oe(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=6?0:k[B+1]<<8))>>>P&3}function Ie(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=5?0:k[B+1]<<8))>>>P&7}function Le(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=4?0:k[B+1]<<8))>>>P&15}function Pe(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=3?0:k[B+1]<<8))>>>P&31}function ve(k,j){var P=j&7,B=j>>>3;return(k[B]|(P<=1?0:k[B+1]<<8))>>>P&127}function Ye(k,j,P){var B=j&7,M=j>>>3,H=(1<<P)-1,ae=k[M]>>>B;return P<8-B||(ae|=k[M+1]<<8-B,P<16-B)||(ae|=k[M+2]<<16-B,P<24-B)||(ae|=k[M+3]<<24-B),ae&H}function dr(k,j,P){var B=j&7,M=j>>>3;return B<=5?k[M]|=(P&7)<<B:(k[M]|=P<<B&255,k[M+1]=(P&7)>>8-B),j+3}function hr(k,j,P){var B=j&7,M=j>>>3;return P=(P&1)<<B,k[M]|=P,j+1}function kr(k,j,P){var B=j&7,M=j>>>3;return P<<=B,k[M]|=P&255,P>>>=8,k[M+1]=P,j+8}function Qe(k,j,P){var B=j&7,M=j>>>3;return P<<=B,k[M]|=P&255,P>>>=8,k[M+1]=P&255,k[M+2]=P>>>8,j+16}function zr(k,j){var P=k.length,B=2*P>j?2*P:j+5,M=0;if(P>=j)return k;if(Je){var H=Qc(B);if(k.copy)k.copy(H);else for(;M<k.length;++M)H[M]=k[M];return H}else if(J){var ae=new Uint8Array(B);if(ae.set)ae.set(k);else for(;M<P;++M)ae[M]=k[M];return ae}return k.length=B,k}function ge(k){for(var j=new Array(k),P=0;P<k;++P)j[P]=0;return j}function Fe(k,j,P){var B=1,M=0,H=0,ae=0,oe=0,re=k.length,ne=J?new Uint16Array(32):ge(32);for(H=0;H<32;++H)ne[H]=0;for(H=re;H<P;++H)k[H]=0;re=k.length;var ie=J?new Uint16Array(re):ge(re);for(H=0;H<re;++H)ne[M=k[H]]++,B<M&&(B=M),ie[H]=0;for(ne[0]=0,H=1;H<=B;++H)ne[H+16]=oe=oe+ne[H-1]<<1;for(H=0;H<re;++H)oe=k[H],oe!=0&&(ie[H]=ne[oe+16]++);var we=0;for(H=0;H<re;++H)if(we=k[H],we!=0)for(oe=K(ie[H],B)>>B-we,ae=(1<<B+4-we)-1;ae>=0;--ae)j[oe|ae<<we]=we&15|H<<4;return B}var Ae=J?new Uint16Array(512):ge(512),de=J?new Uint16Array(32):ge(32);if(!J){for(var be=0;be<512;++be)Ae[be]=0;for(be=0;be<32;++be)de[be]=0}(function(){for(var k=[],j=0;j<32;j++)k.push(5);Fe(k,de,32);var P=[];for(j=0;j<=143;j++)P.push(8);for(;j<=255;j++)P.push(9);for(;j<=279;j++)P.push(7);for(;j<=287;j++)P.push(8);Fe(P,Ae,288)})();var ke=function(){for(var j=J?new Uint8Array(32768):[],P=0,B=0;P<ee.length-1;++P)for(;B<ee[P+1];++B)j[B]=P;for(;B<32768;++B)j[B]=29;var M=J?new Uint8Array(259):[];for(P=0,B=0;P<q.length-1;++P)for(;B<q[P+1];++B)M[B]=P;function H(oe,re){for(var ne=0;ne<oe.length;){var ie=Math.min(65535,oe.length-ne),we=ne+ie==oe.length;for(re.write_shift(1,+we),re.write_shift(2,ie),re.write_shift(2,~ie&65535);ie-- >0;)re[re.l++]=oe[ne++]}return re.l}function ae(oe,re){for(var ne=0,ie=0,we=J?new Uint16Array(32768):[];ie<oe.length;){var Ce=Math.min(65535,oe.length-ie);if(Ce<10){for(ne=dr(re,ne,+(ie+Ce==oe.length)),ne&7&&(ne+=8-(ne&7)),re.l=ne/8|0,re.write_shift(2,Ce),re.write_shift(2,~Ce&65535);Ce-- >0;)re[re.l++]=oe[ie++];ne=re.l*8;continue}ne=dr(re,ne,+(ie+Ce==oe.length)+2);for(var pe=0;Ce-- >0;){var fe=oe[ie];pe=(pe<<5^fe)&32767;var xe=-1,Re=0;if((xe=we[pe])&&(xe|=ie&-32768,xe>ie&&(xe-=32768),xe<ie))for(;oe[xe+Re]==oe[ie+Re]&&Re<250;)++Re;if(Re>2){fe=M[Re],fe<=22?ne=kr(re,ne,Q[fe+1]>>1)-1:(kr(re,ne,3),ne+=5,kr(re,ne,Q[fe-23]>>5),ne+=3);var ar=fe<8?0:fe-4>>2;ar>0&&(Qe(re,ne,Re-q[fe]),ne+=ar),fe=j[ie-xe],ne=kr(re,ne,Q[fe]>>3),ne-=3;var lr=fe<4?0:fe-2>>1;lr>0&&(Qe(re,ne,ie-xe-ee[fe]),ne+=lr);for(var Lr=0;Lr<Re;++Lr)we[pe]=ie&32767,pe=(pe<<5^oe[ie])&32767,++ie;Ce-=Re-1}else fe<=143?fe=fe+48:ne=hr(re,ne,1),ne=kr(re,ne,Q[fe]),we[pe]=ie&32767,++ie}ne=kr(re,ne,0)-1}return re.l=(ne+7)/8|0,re.l}return function(re,ne){return re.length<8?H(re,ne):ae(re,ne)}}();function me(k){var j=se(50+Math.floor(k.length*1.1)),P=ke(k,j);return j.slice(0,P)}var De=J?new Uint16Array(32768):ge(32768),Ke=J?new Uint16Array(32768):ge(32768),Ne=J?new Uint16Array(128):ge(128),Be=1,tr=1;function sr(k,j){var P=Pe(k,j)+257;j+=5;var B=Pe(k,j)+1;j+=5;var M=Le(k,j)+4;j+=4;for(var H=0,ae=J?new Uint8Array(19):ge(19),oe=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],re=1,ne=J?new Uint8Array(8):ge(8),ie=J?new Uint8Array(8):ge(8),we=ae.length,Ce=0;Ce<M;++Ce)ae[V[Ce]]=H=Ie(k,j),re<H&&(re=H),ne[H]++,j+=3;var pe=0;for(ne[0]=0,Ce=1;Ce<=re;++Ce)ie[Ce]=pe=pe+ne[Ce-1]<<1;for(Ce=0;Ce<we;++Ce)(pe=ae[Ce])!=0&&(oe[Ce]=ie[pe]++);var fe=0;for(Ce=0;Ce<we;++Ce)if(fe=ae[Ce],fe!=0){pe=Q[oe[Ce]]>>8-fe;for(var xe=(1<<7-fe)-1;xe>=0;--xe)Ne[pe|xe<<fe]=fe&7|Ce<<3}var Re=[];for(re=1;Re.length<P+B;)switch(pe=Ne[ve(k,j)],j+=pe&7,pe>>>=3){case 16:for(H=3+Oe(k,j),j+=2,pe=Re[Re.length-1];H-- >0;)Re.push(pe);break;case 17:for(H=3+Ie(k,j),j+=3;H-- >0;)Re.push(0);break;case 18:for(H=11+ve(k,j),j+=7;H-- >0;)Re.push(0);break;default:Re.push(pe),re<pe&&(re=pe);break}var ar=Re.slice(0,P),lr=Re.slice(P);for(Ce=P;Ce<286;++Ce)ar[Ce]=0;for(Ce=B;Ce<30;++Ce)lr[Ce]=0;return Be=Fe(ar,De,286),tr=Fe(lr,Ke,30),j}function wr(k,j){if(k[0]==3&&!(k[1]&3))return[rn(j),2];for(var P=0,B=0,M=Qc(j||1<<18),H=0,ae=M.length>>>0,oe=0,re=0;(B&1)==0;){if(B=Ie(k,P),P+=3,B>>>1==0){P&7&&(P+=8-(P&7));var ne=k[P>>>3]|k[(P>>>3)+1]<<8;if(P+=32,ne>0)for(!j&&ae<H+ne&&(M=zr(M,H+ne),ae=M.length);ne-- >0;)M[H++]=k[P>>>3],P+=8;continue}else B>>1==1?(oe=9,re=5):(P=sr(k,P),oe=Be,re=tr);for(;;){!j&&ae<H+32767&&(M=zr(M,H+32767),ae=M.length);var ie=Ye(k,P,oe),we=B>>>1==1?Ae[ie]:De[ie];if(P+=we&15,we>>>=4,(we>>>8&255)===0)M[H++]=we;else{if(we==256)break;we-=257;var Ce=we<8?0:we-4>>2;Ce>5&&(Ce=0);var pe=H+q[we];Ce>0&&(pe+=Ye(k,P,Ce),P+=Ce),ie=Ye(k,P,re),we=B>>>1==1?de[ie]:Ke[ie],P+=we&15,we>>>=4;var fe=we<4?0:we-2>>1,xe=ee[we];for(fe>0&&(xe+=Ye(k,P,fe),P+=fe),!j&&ae<pe&&(M=zr(M,pe+100),ae=M.length);H<pe;)M[H]=M[H-xe],++H}}}return j?[M,P+7>>>3]:[M.slice(0,H),P+7>>>3]}function Fr(k,j){var P=k.slice(k.l||0),B=wr(P,j);return k.l+=B[1],B[0]}function Wt(k,j){if(k)typeof console<"u"&&console.error(j);else throw new Error(j)}function ia(k,j){var P=k;st(P,0);var B=[],M=[],H={FileIndex:B,FullPaths:M};_(H,{root:j.root});for(var ae=P.length-4;(P[ae]!=80||P[ae+1]!=75||P[ae+2]!=5||P[ae+3]!=6)&&ae>=0;)--ae;P.l=ae+4,P.l+=4;var oe=P.read_shift(2);P.l+=6;var re=P.read_shift(4);for(P.l=re,ae=0;ae<oe;++ae){P.l+=20;var ne=P.read_shift(4),ie=P.read_shift(4),we=P.read_shift(2),Ce=P.read_shift(2),pe=P.read_shift(2);P.l+=8;var fe=P.read_shift(4),xe=s(P.slice(P.l+we,P.l+we+Ce));P.l+=we+Ce+pe;var Re=P.l;P.l=fe+4,ft(P,ne,ie,H,xe),P.l=Re}return H}function ft(k,j,P,B,M){k.l+=2;var H=k.read_shift(2),ae=k.read_shift(2),oe=o(k);if(H&8257)throw new Error("Unsupported ZIP encryption");for(var re=k.read_shift(4),ne=k.read_shift(4),ie=k.read_shift(4),we=k.read_shift(2),Ce=k.read_shift(2),pe="",fe=0;fe<we;++fe)pe+=String.fromCharCode(k[k.l++]);if(Ce){var xe=s(k.slice(k.l,k.l+Ce));(xe[21589]||{}).mt&&(oe=xe[21589].mt),((M||{})[21589]||{}).mt&&(oe=M[21589].mt)}k.l+=Ce;var Re=k.slice(k.l,k.l+ne);switch(ae){case 8:Re=z(k,ie);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ae)}var ar=!1;H&8&&(re=k.read_shift(4),re==134695760&&(re=k.read_shift(4),ar=!0),ne=k.read_shift(4),ie=k.read_shift(4)),ne!=j&&Wt(ar,"Bad compressed size: "+j+" != "+ne),ie!=P&&Wt(ar,"Bad uncompressed size: "+P+" != "+ie),_t(B,pe,Re,{unsafe:!0,mt:oe})}function ha(k,j){var P=j||{},B=[],M=[],H=se(1),ae=P.compression?8:0,oe=0,re=0,ne=0,ie=0,we=0,Ce=k.FullPaths[0],pe=Ce,fe=k.FileIndex[0],xe=[],Re=0;for(re=1;re<k.FullPaths.length;++re)if(pe=k.FullPaths[re].slice(Ce.length),fe=k.FileIndex[re],!(!fe.size||!fe.content||pe=="Sh33tJ5")){var ar=ie,lr=se(pe.length);for(ne=0;ne<pe.length;++ne)lr.write_shift(1,pe.charCodeAt(ne)&127);lr=lr.slice(0,lr.l),xe[we]=qp.buf(fe.content,0);var Lr=fe.content;ae==8&&(Lr=U(Lr)),H=se(30),H.write_shift(4,67324752),H.write_shift(2,20),H.write_shift(2,oe),H.write_shift(2,ae),fe.mt?i(H,fe.mt):H.write_shift(4,0),H.write_shift(-4,xe[we]),H.write_shift(4,Lr.length),H.write_shift(4,fe.content.length),H.write_shift(2,lr.length),H.write_shift(2,0),ie+=H.length,B.push(H),ie+=lr.length,B.push(lr),ie+=Lr.length,B.push(Lr),H=se(46),H.write_shift(4,33639248),H.write_shift(2,0),H.write_shift(2,20),H.write_shift(2,oe),H.write_shift(2,ae),H.write_shift(4,0),H.write_shift(-4,xe[we]),H.write_shift(4,Lr.length),H.write_shift(4,fe.content.length),H.write_shift(2,lr.length),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(4,0),H.write_shift(4,ar),Re+=H.l,M.push(H),Re+=lr.length,M.push(lr),++we}return H=se(22),H.write_shift(4,101010256),H.write_shift(2,0),H.write_shift(2,0),H.write_shift(2,we),H.write_shift(2,we),H.write_shift(4,Re),H.write_shift(4,ie),H.write_shift(2,0),tt([tt(B),tt(M),H])}var yt={htm:"text/html",xml:"text/xml",gif:"image/gif",jpg:"image/jpeg",png:"image/png",mso:"application/x-mso",thmx:"application/vnd.ms-officetheme",sh33tj5:"application/octet-stream"};function za(k,j){if(k.ctype)return k.ctype;var P=k.name||"",B=P.match(/\.([^\.]+)$/);return B&&yt[B[1]]||j&&(B=(P=j).match(/[\.\\]([^\.\\])+$/),B&&yt[B[1]])?yt[B[1]]:"application/octet-stream"}function Ut(k){for(var j=Hi(k),P=[],B=0;B<j.length;B+=76)P.push(j.slice(B,B+76));return P.join(`\r
|
||
`)+`\r
|
||
`}function Ht(k){var j=k.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ne){var ie=ne.charCodeAt(0).toString(16).toUpperCase();return"="+(ie.length==1?"0"+ie:ie)});j=j.replace(/ $/mg,"=20").replace(/\t$/mg,"=09"),j.charAt(0)==`
|
||
`&&(j="=0D"+j.slice(1)),j=j.replace(/\r(?!\n)/mg,"=0D").replace(/\n\n/mg,`
|
||
=0A`).replace(/([^\r\n])\n/mg,"$1=0A");for(var P=[],B=j.split(`\r
|
||
`),M=0;M<B.length;++M){var H=B[M];if(H.length==0){P.push("");continue}for(var ae=0;ae<H.length;){var oe=76,re=H.slice(ae,ae+oe);re.charAt(oe-1)=="="?oe--:re.charAt(oe-2)=="="?oe-=2:re.charAt(oe-3)=="="&&(oe-=3),re=H.slice(ae,ae+oe),ae+=oe,ae<H.length&&(re+="="),P.push(re)}}return P.join(`\r
|
||
`)}function er(k){for(var j=[],P=0;P<k.length;++P){for(var B=k[P];P<=k.length&&B.charAt(B.length-1)=="=";)B=B.slice(0,B.length-1)+k[++P];j.push(B)}for(var M=0;M<j.length;++M)j[M]=j[M].replace(/[=][0-9A-Fa-f]{2}/g,function(H){return String.fromCharCode(parseInt(H.slice(1),16))});return Bt(j.join(`\r
|
||
`))}function Ve(k,j,P){for(var B="",M="",H="",ae,oe=0;oe<10;++oe){var re=j[oe];if(!re||re.match(/^\s*$/))break;var ne=re.match(/^(.*?):\s*([^\s].*)$/);if(ne)switch(ne[1].toLowerCase()){case"content-location":B=ne[2].trim();break;case"content-type":H=ne[2].trim();break;case"content-transfer-encoding":M=ne[2].trim();break}}switch(++oe,M.toLowerCase()){case"base64":ae=Bt(jt(j.slice(oe).join("")));break;case"quoted-printable":ae=er(j.slice(oe));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+M)}var ie=_t(k,B.slice(P.length),ae,{unsafe:!0});H&&(ie.ctype=H)}function Sr(k,j){if(L(k.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var P=j&&j.root||"",B=(Je&&Buffer.isBuffer(k)?k.toString("binary"):L(k)).split(`\r
|
||
`),M=0,H="";for(M=0;M<B.length;++M)if(H=B[M],!!/^Content-Location:/i.test(H)&&(H=H.slice(H.indexOf("file")),P||(P=H.slice(0,H.lastIndexOf("/")+1)),H.slice(0,P.length)!=P))for(;P.length>0&&(P=P.slice(0,P.length-1),P=P.slice(0,P.lastIndexOf("/")+1),H.slice(0,P.length)!=P););var ae=(B[1]||"").match(/boundary="(.*?)"/);if(!ae)throw new Error("MAD cannot find boundary");var oe="--"+(ae[1]||""),re=[],ne=[],ie={FileIndex:re,FullPaths:ne};_(ie);var we,Ce=0;for(M=0;M<B.length;++M){var pe=B[M];pe!==oe&&pe!==oe+"--"||(Ce++&&Ve(ie,B.slice(we,M),P),we=M)}return ie}function Zr(k,j){var P=j||{},B=P.boundary||"SheetJS";B="------="+B;for(var M=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+B.slice(2)+'"',"","",""],H=k.FullPaths[0],ae=H,oe=k.FileIndex[0],re=1;re<k.FullPaths.length;++re)if(ae=k.FullPaths[re].slice(H.length),oe=k.FileIndex[re],!(!oe.size||!oe.content||ae=="Sh33tJ5")){ae=ae.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(Re){return"_x"+Re.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(Re){return"_u"+Re.charCodeAt(0).toString(16)+"_"});for(var ne=oe.content,ie=Je&&Buffer.isBuffer(ne)?ne.toString("binary"):L(ne),we=0,Ce=Math.min(1024,ie.length),pe=0,fe=0;fe<=Ce;++fe)(pe=ie.charCodeAt(fe))>=32&&pe<128&&++we;var xe=we>=Ce*4/5;M.push(B),M.push("Content-Location: "+(P.root||"file:///C:/SheetJS/")+ae),M.push("Content-Transfer-Encoding: "+(xe?"quoted-printable":"base64")),M.push("Content-Type: "+za(oe,ae)),M.push(""),M.push(xe?Ht(ie):Ut(ie))}return M.push(B+`--\r
|
||
`),M.join(`\r
|
||
`)}function Wr(k){var j={};return _(j,k),j}function _t(k,j,P,B){var M=B&&B.unsafe;M||_(k);var H=!M&&Me.find(k,j);if(!H){var ae=k.FullPaths[0];j.slice(0,ae.length)==ae?ae=j:(ae.slice(-1)!="/"&&(ae+="/"),ae=(ae+j).replace("//","/")),H={name:n(j),type:2},k.FileIndex.push(H),k.FullPaths.push(ae),M||Me.utils.cfb_gc(k)}return H.content=P,H.size=P?P.length:0,B&&(B.CLSID&&(H.clsid=B.CLSID),B.mt&&(H.mt=B.mt),B.ct&&(H.ct=B.ct)),H}function Ta(k,j){_(k);var P=Me.find(k,j);if(P){for(var B=0;B<k.FileIndex.length;++B)if(k.FileIndex[B]==P)return k.FileIndex.splice(B,1),k.FullPaths.splice(B,1),!0}return!1}function Wn(k,j,P){_(k);var B=Me.find(k,j);if(B){for(var M=0;M<k.FileIndex.length;++M)if(k.FileIndex[M]==B)return k.FileIndex[M].name=n(P),k.FullPaths[M]=P,!0}return!1}function ka(k){y(k,!0)}return r.find=D,r.read=F,r.parse=f,r.write=X,r.writeFile=G,r.utils={cfb_new:Wr,cfb_add:_t,cfb_del:Ta,cfb_mov:Wn,cfb_gc:ka,ReadShift:Ri,CheckField:Wd,prep_blob:st,bconcat:tt,use_zlib:I,_deflateRaw:me,_inflateRaw:Fr,consts:N},r}();function Jp(e){return typeof e=="string"?ws(e):Array.isArray(e)?Sp(e):e}function io(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=ws(r);break;default:throw new Error("Unsupported encoding "+t)}return Deno.writeFileSync(e,r)}var a=t=="utf8"?ya(r):r;if(typeof IE_SaveFile<"u")return IE_SaveFile(a,e);if(typeof Blob<"u"){var n=new Blob([Jp(a)],{type:"application/octet-stream"});if(typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(n,e);if(typeof saveAs<"u")return saveAs(n,e);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var i=URL.createObjectURL(n);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 o=document.createElement("a");if(o.download!=null)return o.download=e,o.href=i,document.body.appendChild(o),o.click(),document.body.removeChild(o),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(i)},6e4),i}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var s=File(e);return s.open("w"),s.encoding="binary",Array.isArray(r)&&(r=ln(r)),s.write(r),s.close(),r}catch(l){if(!l.message||!l.message.match(/onstruct/))throw l}throw new Error("cannot save file "+e)}function Zp(e){if(typeof Deno<"u")return Deno.readFileSync(e);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var r=File(e);r.open("r"),r.encoding="binary";var t=r.read();return r.close(),t}catch(a){if(!a.message||!a.message.match(/onstruct/))throw a}throw new Error("Cannot access file "+e)}function Hr(e){for(var r=Object.keys(e),t=[],a=0;a<r.length;++a)Object.prototype.hasOwnProperty.call(e,r[a])&&t.push(r[a]);return t}function lf(e,r){for(var t=[],a=Hr(e),n=0;n!==a.length;++n)t[e[a[n]][r]]==null&&(t[e[a[n]][r]]=a[n]);return t}function _s(e){for(var r=[],t=Hr(e),a=0;a!==t.length;++a)r[e[t[a]]]=t[a];return r}function bs(e){for(var r=[],t=Hr(e),a=0;a!==t.length;++a)r[e[t[a]]]=parseInt(t[a],10);return r}function Qp(e){for(var r=[],t=Hr(e),a=0;a!==t.length;++a)r[e[t[a]]]==null&&(r[e[t[a]]]=[]),r[e[t[a]]].push(t[a]);return r}var os=new Date(1899,11,30,0,0,0);function ct(e,r){var t=e.getTime();r&&(t-=1462*24*60*60*1e3);var a=os.getTime()+(e.getTimezoneOffset()-os.getTimezoneOffset())*6e4;return(t-a)/(24*60*60*1e3)}var yd=new Date,em=os.getTime()+(yd.getTimezoneOffset()-os.getTimezoneOffset())*6e4,cf=yd.getTimezoneOffset();function Ss(e){var r=new Date;return r.setTime(e*24*60*60*1e3+em),r.getTimezoneOffset()!==cf&&r.setTime(r.getTime()+(r.getTimezoneOffset()-cf)*6e4),r}function rm(e){var r=0,t=0,a=!1,n=e.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!n)throw new Error("|"+e+"| is not an ISO8601 Duration");for(var i=1;i!=n.length;++i)if(!!n[i]){switch(t=1,i>3&&(a=!0),n[i].slice(n[i].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+n[i].slice(n[i].length-1));case"D":t*=24;case"H":t*=60;case"M":if(a)t*=60;else throw new Error("Unsupported ISO Duration Field: M")}r+=t*parseInt(n[i],10)}return r}var ff=new Date("2017-02-19T19:06:09.000Z"),_d=isNaN(ff.getFullYear())?new Date("2/19/17"):ff,tm=_d.getFullYear()==2017;function Ir(e,r){var t=new Date(e);if(tm)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(_d.getFullYear()==1917&&!isNaN(t.getFullYear())){var a=t.getFullYear();return e.indexOf(""+a)>-1||t.setFullYear(t.getFullYear()+100),t}var n=e.match(/\d+/g)||["2017","2","19","0","0","0"],i=new Date(+n[0],+n[1]-1,+n[2],+n[3]||0,+n[4]||0,+n[5]||0);return e.indexOf("Z")>-1&&(i=new Date(i.getTime()-i.getTimezoneOffset()*60*1e3)),i}function Cn(e,r){if(Je&&Buffer.isBuffer(e)){if(r){if(e[0]==255&&e[1]==254)return ya(e.slice(2).toString("utf16le"));if(e[1]==254&&e[2]==255)return ya(ld(e.slice(2).toString("binary")))}return e.toString("binary")}if(typeof TextDecoder<"u")try{if(r){if(e[0]==255&&e[1]==254)return ya(new TextDecoder("utf-16le").decode(e.slice(2)));if(e[0]==254&&e[1]==255)return ya(new TextDecoder("utf-16be").decode(e.slice(2)))}var t={"\u20AC":"\x80","\u201A":"\x82",\u0192:"\x83","\u201E":"\x84","\u2026":"\x85","\u2020":"\x86","\u2021":"\x87","\u02C6":"\x88","\u2030":"\x89",\u0160:"\x8A","\u2039":"\x8B",\u0152:"\x8C",\u017D:"\x8E","\u2018":"\x91","\u2019":"\x92","\u201C":"\x93","\u201D":"\x94","\u2022":"\x95","\u2013":"\x96","\u2014":"\x97","\u02DC":"\x98","\u2122":"\x99",\u0161:"\x9A","\u203A":"\x9B",\u0153:"\x9C",\u017E:"\x9E",\u0178:"\x9F"};return Array.isArray(e)&&(e=new Uint8Array(e)),new TextDecoder("latin1").decode(e).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(i){return t[i]||i})}catch{}for(var a=[],n=0;n!=e.length;++n)a.push(String.fromCharCode(e[n]));return a.join("")}function Dr(e){if(typeof JSON<"u"&&!Array.isArray(e))return JSON.parse(JSON.stringify(e));if(typeof e!="object"||e==null)return e;if(e instanceof Date)return new Date(e.getTime());var r={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(r[t]=Dr(e[t]));return r}function Mr(e,r){for(var t="";t.length<r;)t+=e;return t}function Na(e){var r=Number(e);if(!isNaN(r))return isFinite(r)?r:NaN;if(!/\d/.test(e))return r;var t=1,a=e.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return t*=100,""});return!isNaN(r=Number(a))||(a=a.replace(/[(](.*)[)]/,function(n,i){return t=-t,i}),!isNaN(r=Number(a)))?r/t:r}var am=["january","february","march","april","may","june","july","august","september","october","november","december"];function zi(e){var r=new Date(e),t=new Date(NaN),a=r.getYear(),n=r.getMonth(),i=r.getDate();if(isNaN(i))return t;var o=e.toLowerCase();if(o.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(o=o.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,""),o.length>3&&am.indexOf(o)==-1)return t}else if(o.match(/[a-z]/))return t;return a<0||a>8099?t:(n>0||i>1)&&a!=101?r:e.match(/[^-0-9:,\/\\]/)?t:r}var nm=function(){var e="abacaba".split(/(:?b)/i).length==5;return function(t,a,n){if(e||typeof a=="string")return t.split(a);for(var i=t.split(a),o=[i[0]],s=1;s<i.length;++s)o.push(n),o.push(i[s]);return o}}();function bd(e){return e?e.content&&e.type?Cn(e.content,!0):e.data?Si(e.data):e.asNodeBuffer&&Je?Si(e.asNodeBuffer().toString("binary")):e.asBinary?Si(e.asBinary()):e._data&&e._data.getContent?Si(Cn(Array.prototype.slice.call(e._data.getContent(),0))):null:null}function Sd(e){if(!e)return null;if(e.data)return Jc(e.data);if(e.asNodeBuffer&&Je)return e.asNodeBuffer();if(e._data&&e._data.getContent){var r=e._data.getContent();return typeof r=="string"?Jc(r):Array.prototype.slice.call(r)}return e.content&&e.type?e.content:null}function im(e){return e&&e.name.slice(-4)===".bin"?Sd(e):bd(e)}function Jt(e,r){for(var t=e.FullPaths||Hr(e.files),a=r.toLowerCase().replace(/[\/]/g,"\\"),n=a.replace(/\\/g,"/"),i=0;i<t.length;++i){var o=t[i].replace(/^Root Entry[\/]/,"").toLowerCase();if(a==o||n==o)return e.files?e.files[t[i]]:e.FileIndex[i]}return null}function Ql(e,r){var t=Jt(e,r);if(t==null)throw new Error("Cannot find file "+r+" in zip");return t}function Xr(e,r,t){if(!t)return im(Ql(e,r));if(!r)return null;try{return Xr(e,r)}catch{return null}}function Mt(e,r,t){if(!t)return bd(Ql(e,r));if(!r)return null;try{return Mt(e,r)}catch{return null}}function Ed(e,r,t){if(!t)return Sd(Ql(e,r));if(!r)return null;try{return Ed(e,r)}catch{return null}}function uf(e){for(var r=e.FullPaths||Hr(e.files),t=[],a=0;a<r.length;++a)r[a].slice(-1)!="/"&&t.push(r[a].replace(/^Root Entry[\/]/,""));return t.sort()}function qe(e,r,t){if(e.FullPaths){if(typeof t=="string"){var a;return Je?a=Ua(t):a=Ep(t),Me.utils.cfb_add(e,r,a)}Me.utils.cfb_add(e,r,t)}else e.file(r,t)}function e0(){return Me.utils.cfb_new()}function Cd(e,r){switch(r.type){case"base64":return Me.read(e,{type:"base64"});case"binary":return Me.read(e,{type:"binary"});case"buffer":case"array":return Me.read(e,{type:"buffer"})}throw new Error("Unrecognized type "+r.type)}function Ci(e,r){if(e.charAt(0)=="/")return e.slice(1);var t=r.split("/");r.slice(-1)!="/"&&t.pop();for(var a=e.split("/");a.length!==0;){var n=a.shift();n===".."?t.pop():n!=="."&&t.push(n)}return t.join("/")}var Vr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r
|
||
`,om=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,df=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/mg,sm=/<[^>]*>/g,wt=Vr.match(df)?df:sm,lm=/<\w*:/,cm=/<(\/?)\w+:/;function He(e,r,t){for(var a={},n=0,i=0;n!==e.length&&!((i=e.charCodeAt(n))===32||i===10||i===13);++n);if(r||(a[0]=e.slice(0,n)),n===e.length)return a;var o=e.match(om),s=0,l="",c=0,f="",u="",d=1;if(o)for(c=0;c!=o.length;++c){for(u=o[c],i=0;i!=u.length&&u.charCodeAt(i)!==61;++i);for(f=u.slice(0,i).trim();u.charCodeAt(i+1)==32;)++i;for(d=(n=u.charCodeAt(i+1))==34||n==39?1:0,l=u.slice(i+1+d,u.length-d),s=0;s!=f.length&&f.charCodeAt(s)!==58;++s);if(s===f.length)f.indexOf("_")>0&&(f=f.slice(0,f.indexOf("_"))),a[f]=l,t||(a[f.toLowerCase()]=l);else{var v=(s===5&&f.slice(0,5)==="xmlns"?"xmlns":"")+f.slice(s+1);if(a[v]&&f.slice(s-3,s)=="ext")continue;a[v]=l,t||(a[v.toLowerCase()]=l)}}return a}function Ea(e){return e.replace(cm,"<$1")}var Td={""":'"',"'":"'",">":">","<":"<","&":"&"},r0=_s(Td),ir=function(){var e=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/ig,r=/_x([\da-fA-F]{4})_/ig;return function t(a){var n=a+"",i=n.indexOf("<![CDATA[");if(i==-1)return n.replace(e,function(s,l){return Td[s]||String.fromCharCode(parseInt(l,s.indexOf("x")>-1?16:10))||s}).replace(r,function(s,l){return String.fromCharCode(parseInt(l,16))});var o=n.indexOf("]]>");return t(n.slice(0,i))+n.slice(i+9,o)+t(n.slice(o+3))}}(),t0=/[&<>'"]/g,fm=/[\u0000-\u0008\u000b-\u001f]/g;function mr(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(fm,function(t){return"_x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+"_"})}function hf(e){return mr(e).replace(/ /g,"_x0020_")}var kd=/[\u0000-\u001f]/g;function a0(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(/\n/g,"<br/>").replace(kd,function(t){return"&#x"+("000"+t.charCodeAt(0).toString(16)).slice(-4)+";"})}function um(e){var r=e+"";return r.replace(t0,function(t){return r0[t]}).replace(kd,function(t){return"&#x"+t.charCodeAt(0).toString(16).toUpperCase()+";"})}var vf=function(){var e=/&#(\d+);/g;function r(t,a){return String.fromCharCode(parseInt(a,10))}return function(a){return a.replace(e,r)}}();function dm(e){return e.replace(/(\r\n|[\r\n])/g," ")}function Ar(e){switch(e){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Gs(e){for(var r="",t=0,a=0,n=0,i=0,o=0,s=0;t<e.length;){if(a=e.charCodeAt(t++),a<128){r+=String.fromCharCode(a);continue}if(n=e.charCodeAt(t++),a>191&&a<224){o=(a&31)<<6,o|=n&63,r+=String.fromCharCode(o);continue}if(i=e.charCodeAt(t++),a<240){r+=String.fromCharCode((a&15)<<12|(n&63)<<6|i&63);continue}o=e.charCodeAt(t++),s=((a&7)<<18|(n&63)<<12|(i&63)<<6|o&63)-65536,r+=String.fromCharCode(55296+(s>>>10&1023)),r+=String.fromCharCode(56320+(s&1023))}return r}function xf(e){var r=rn(2*e.length),t,a,n=1,i=0,o=0,s;for(a=0;a<e.length;a+=n)n=1,(s=e.charCodeAt(a))<128?t=s:s<224?(t=(s&31)*64+(e.charCodeAt(a+1)&63),n=2):s<240?(t=(s&15)*4096+(e.charCodeAt(a+1)&63)*64+(e.charCodeAt(a+2)&63),n=3):(n=4,t=(s&7)*262144+(e.charCodeAt(a+1)&63)*4096+(e.charCodeAt(a+2)&63)*64+(e.charCodeAt(a+3)&63),t-=65536,o=55296+(t>>>10&1023),t=56320+(t&1023)),o!==0&&(r[i++]=o&255,r[i++]=o>>>8,o=0),r[i++]=t%256,r[i++]=t>>>8;return r.slice(0,i).toString("ucs2")}function gf(e){return Ua(e,"binary").toString("utf8")}var Ao="foo bar baz\xE2\x98\x83\xF0\x9F\x8D\xA3",br=Je&&(gf(Ao)==Gs(Ao)&&gf||xf(Ao)==Gs(Ao)&&xf)||Gs,ya=Je?function(e){return Ua(e,"utf8").toString("binary")}:function(e){for(var r=[],t=0,a=0,n=0;t<e.length;)switch(a=e.charCodeAt(t++),!0){case a<128:r.push(String.fromCharCode(a));break;case a<2048:r.push(String.fromCharCode(192+(a>>6))),r.push(String.fromCharCode(128+(a&63)));break;case(a>=55296&&a<57344):a-=55296,n=e.charCodeAt(t++)-56320+(a<<10),r.push(String.fromCharCode(240+(n>>18&7))),r.push(String.fromCharCode(144+(n>>12&63))),r.push(String.fromCharCode(128+(n>>6&63))),r.push(String.fromCharCode(128+(n&63)));break;default:r.push(String.fromCharCode(224+(a>>12))),r.push(String.fromCharCode(128+(a>>6&63))),r.push(String.fromCharCode(128+(a&63)))}return r.join("")},$i=function(){var e={};return function(t,a){var n=t+"|"+(a||"");return e[n]?e[n]:e[n]=new RegExp("<(?:\\w+:)?"+t+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+t+">",a||"")}}(),hm=function(){var e=[["nbsp"," "],["middot","\xB7"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(r){return[new RegExp("&"+r[0]+";","ig"),r[1]]});return function(t){for(var a=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,""),n=0;n<e.length;++n)a=a.replace(e[n][0],e[n][1]);return a}}(),vm=function(){var e={};return function(t){return e[t]!==void 0?e[t]:e[t]=new RegExp("<(?:vt:)?"+t+">([\\s\\S]*?)</(?:vt:)?"+t+">","g")}}(),xm=/<\/?(?:vt:)?variant>/g,gm=/<(?:vt:)([^>]*)>([\s\S]*)</;function pf(e,r){var t=He(e),a=e.match(vm(t.baseType))||[],n=[];if(a.length!=t.size){if(r.WTF)throw new Error("unexpected vector length "+a.length+" != "+t.size);return n}return a.forEach(function(i){var o=i.replace(xm,"").match(gm);o&&n.push({v:br(o[2]),t:o[1]})}),n}var Fd=/(^\s|\s$|\n)/;function lt(e,r){return"<"+e+(r.match(Fd)?' xml:space="preserve"':"")+">"+r+"</"+e+">"}function Gi(e){return Hr(e).map(function(r){return" "+r+'="'+e[r]+'"'}).join("")}function Se(e,r,t){return"<"+e+(t!=null?Gi(t):"")+(r!=null?(r.match(Fd)?' xml:space="preserve"':"")+">"+r+"</"+e:"/")+">"}function yl(e,r){try{return e.toISOString().replace(/\.\d*/,"")}catch(t){if(r)throw t}return""}function pm(e,r){switch(typeof e){case"string":var t=Se("vt:lpwstr",mr(e));return r&&(t=t.replace(/"/g,"_x0022_")),t;case"number":return Se((e|0)==e?"vt:i4":"vt:r8",mr(String(e)));case"boolean":return Se("vt:bool",e?"true":"false")}if(e instanceof Date)return Se("vt:filetime",yl(e));throw new Error("Unable to serialize "+e)}function n0(e){if(Je&&Buffer.isBuffer(e))return e.toString("utf8");if(typeof e=="string")return e;if(typeof Uint8Array<"u"&&e instanceof Uint8Array)return br(ln(ql(e)));throw new Error("Bad input format: expected Buffer or string")}var Xi=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/mg,Qr={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"},Pn=["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"],Pt={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 mm(e,r){for(var t=1-2*(e[r+7]>>>7),a=((e[r+7]&127)<<4)+(e[r+6]>>>4&15),n=e[r+6]&15,i=5;i>=0;--i)n=n*256+e[r+i];return a==2047?n==0?t*(1/0):NaN:(a==0?a=-1022:(a-=1023,n+=Math.pow(2,52)),t*Math.pow(2,a-52)*n)}function wm(e,r,t){var a=(r<0||1/r==-1/0?1:0)<<7,n=0,i=0,o=a?-r:r;isFinite(o)?o==0?n=i=0:(n=Math.floor(Math.log(o)/Math.LN2),i=o*Math.pow(2,52-n),n<=-1023&&(!isFinite(i)||i<Math.pow(2,52))?n=-1022:(i-=Math.pow(2,52),n+=1023)):(n=2047,i=isNaN(r)?26985:0);for(var s=0;s<=5;++s,i/=256)e[t+s]=i&255;e[t+6]=(n&15)<<4|i&15,e[t+7]=n>>4|a}var mf=function(e){for(var r=[],t=10240,a=0;a<e[0].length;++a)if(e[0][a])for(var n=0,i=e[0][a].length;n<i;n+=t)r.push.apply(r,e[0][a].slice(n,n+t));return r},wf=Je?function(e){return e[0].length>0&&Buffer.isBuffer(e[0][0])?Buffer.concat(e[0].map(function(r){return Buffer.isBuffer(r)?r:Ua(r)})):mf(e)}:mf,yf=function(e,r,t){for(var a=[],n=r;n<t;n+=2)a.push(String.fromCharCode(Da(e,n)));return a.join("").replace(Ct,"")},i0=Je?function(e,r,t){return Buffer.isBuffer(e)?e.toString("utf16le",r,t).replace(Ct,""):yf(e,r,t)}:yf,_f=function(e,r,t){for(var a=[],n=r;n<r+t;++n)a.push(("0"+e[n].toString(16)).slice(-2));return a.join("")},Ad=Je?function(e,r,t){return Buffer.isBuffer(e)?e.toString("hex",r,r+t):_f(e,r,t)}:_f,bf=function(e,r,t){for(var a=[],n=r;n<t;n++)a.push(String.fromCharCode(qn(e,n)));return a.join("")},oo=Je?function(r,t,a){return Buffer.isBuffer(r)?r.toString("utf8",t,a):bf(r,t,a)}:bf,Od=function(e,r){var t=Nt(e,r);return t>0?oo(e,r+4,r+4+t-1):""},Dd=Od,Rd=function(e,r){var t=Nt(e,r);return t>0?oo(e,r+4,r+4+t-1):""},Id=Rd,Pd=function(e,r){var t=2*Nt(e,r);return t>0?oo(e,r+4,r+4+t-1):""},Nd=Pd,Ld=function(r,t){var a=Nt(r,t);return a>0?i0(r,t+4,t+4+a):""},Bd=Ld,Md=function(e,r){var t=Nt(e,r);return t>0?oo(e,r+4,r+4+t):""},Kd=Md,jd=function(e,r){return mm(e,r)},ss=jd,o0=function(r){return Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array};Je&&(Dd=function(r,t){if(!Buffer.isBuffer(r))return Od(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},Id=function(r,t){if(!Buffer.isBuffer(r))return Rd(r,t);var a=r.readUInt32LE(t);return a>0?r.toString("utf8",t+4,t+4+a-1):""},Nd=function(r,t){if(!Buffer.isBuffer(r))return Pd(r,t);var a=2*r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a-1)},Bd=function(r,t){if(!Buffer.isBuffer(r))return Ld(r,t);var a=r.readUInt32LE(t);return r.toString("utf16le",t+4,t+4+a)},Kd=function(r,t){if(!Buffer.isBuffer(r))return Md(r,t);var a=r.readUInt32LE(t);return r.toString("utf8",t+4,t+4+a)},ss=function(r,t){return Buffer.isBuffer(r)?r.readDoubleLE(t):jd(r,t)},o0=function(r){return Buffer.isBuffer(r)||Array.isArray(r)||typeof Uint8Array<"u"&&r instanceof Uint8Array});var qn=function(e,r){return e[r]},Da=function(e,r){return e[r+1]*(1<<8)+e[r]},ym=function(e,r){var t=e[r+1]*256+e[r];return t<32768?t:(65535-t+1)*-1},Nt=function(e,r){return e[r+3]*(1<<24)+(e[r+2]<<16)+(e[r+1]<<8)+e[r]},pn=function(e,r){return e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]},_m=function(e,r){return e[r]<<24|e[r+1]<<16|e[r+2]<<8|e[r+3]};function Ri(e,r){var t="",a,n,i=[],o,s,l,c;switch(r){case"dbcs":if(c=this.l,Je&&Buffer.isBuffer(this))t=this.slice(this.l,this.l+2*e).toString("utf16le");else for(l=0;l<e;++l)t+=String.fromCharCode(Da(this,c)),c+=2;e*=2;break;case"utf8":t=oo(this,this.l,this.l+e);break;case"utf16le":e*=2,t=i0(this,this.l,this.l+e);break;case"wstr":return Ri.call(this,e,"dbcs");case"lpstr-ansi":t=Dd(this,this.l),e=4+Nt(this,this.l);break;case"lpstr-cp":t=Id(this,this.l),e=4+Nt(this,this.l);break;case"lpwstr":t=Nd(this,this.l),e=4+2*Nt(this,this.l);break;case"lpp4":e=4+Nt(this,this.l),t=Bd(this,this.l),e&2&&(e+=2);break;case"8lpp4":e=4+Nt(this,this.l),t=Kd(this,this.l),e&3&&(e+=4-(e&3));break;case"cstr":for(e=0,t="";(o=qn(this,this.l+e++))!==0;)i.push(Fo(o));t=i.join("");break;case"_wstr":for(e=0,t="";(o=Da(this,this.l+e))!==0;)i.push(Fo(o)),e+=2;e+=2,t=i.join("");break;case"dbcs-cont":for(t="",c=this.l,l=0;l<e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=qn(this,c),this.l=c+1,s=Ri.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(Fo(Da(this,c))),c+=2}t=i.join(""),e*=2;break;case"cpstr":case"sbcs-cont":for(t="",c=this.l,l=0;l!=e;++l){if(this.lens&&this.lens.indexOf(c)!==-1)return o=qn(this,c),this.l=c+1,s=Ri.call(this,e-l,o?"dbcs-cont":"sbcs-cont"),i.join("")+s;i.push(Fo(qn(this,c))),c+=1}t=i.join("");break;default:switch(e){case 1:return a=qn(this,this.l),this.l++,a;case 2:return a=(r==="i"?ym:Da)(this,this.l),this.l+=2,a;case 4:case-4:return r==="i"||(this[this.l+3]&128)===0?(a=(e>0?pn:_m)(this,this.l),this.l+=4,a):(n=Nt(this,this.l),this.l+=4,n);case 8:case-8:if(r==="f")return e==8?n=ss(this,this.l):n=ss([this[this.l+7],this[this.l+6],this[this.l+5],this[this.l+4],this[this.l+3],this[this.l+2],this[this.l+1],this[this.l+0]],0),this.l+=8,n;e=8;case 16:t=Ad(this,this.l,e);break}}return this.l+=e,t}var bm=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255,e[t+2]=r>>>16&255,e[t+3]=r>>>24&255},Sm=function(e,r,t){e[t]=r&255,e[t+1]=r>>8&255,e[t+2]=r>>16&255,e[t+3]=r>>24&255},Em=function(e,r,t){e[t]=r&255,e[t+1]=r>>>8&255};function Cm(e,r,t){var a=0,n=0;if(t==="dbcs"){for(n=0;n!=r.length;++n)Em(this,r.charCodeAt(n),this.l+2*n);a=2*r.length}else if(t==="sbcs"){for(r=r.replace(/[^\x00-\x7F]/g,"_"),n=0;n!=r.length;++n)this[this.l+n]=r.charCodeAt(n)&255;a=r.length}else if(t==="hex"){for(;n<e;++n)this[this.l++]=parseInt(r.slice(2*n,2*n+2),16)||0;return this}else if(t==="utf16le"){var i=Math.min(this.l+e,this.length);for(n=0;n<Math.min(r.length,e);++n){var o=r.charCodeAt(n);this[this.l++]=o&255,this[this.l++]=o>>8}for(;this.l<i;)this[this.l++]=0;return this}else switch(e){case 1:a=1,this[this.l]=r&255;break;case 2:a=2,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255;break;case 3:a=3,this[this.l]=r&255,r>>>=8,this[this.l+1]=r&255,r>>>=8,this[this.l+2]=r&255;break;case 4:a=4,bm(this,r,this.l);break;case 8:if(a=8,t==="f"){wm(this,r,this.l);break}case 16:break;case-4:a=4,Sm(this,r,this.l);break}return this.l+=a,this}function Wd(e,r){var t=Ad(this,this.l,e.length>>1);if(t!==e)throw new Error(r+"Expected "+e+" saw "+t);this.l+=e.length>>1}function st(e,r){e.l=r,e.read_shift=Ri,e.chk=Wd,e.write_shift=Cm}function mt(e,r){e.l+=r}function se(e){var r=rn(e);return st(r,0),r}function Ha(e,r,t){if(!!e){var a,n,i;st(e,e.l||0);for(var o=e.length,s=0,l=0;e.l<o;){s=e.read_shift(1),s&128&&(s=(s&127)+((e.read_shift(1)&127)<<7));var c=eo[s]||eo[65535];for(a=e.read_shift(1),i=a&127,n=1;n<4&&a&128;++n)i+=((a=e.read_shift(1))&127)<<7*n;l=e.l+i;var f=c.f&&c.f(e,i,t);if(e.l=l,r(f,c,s))return}}}function Ot(){var e=[],r=Je?256:2048,t=function(c){var f=se(c);return st(f,0),f},a=t(r),n=function(){!a||(a.length>a.l&&(a=a.slice(0,a.l),a.l=a.length),a.length>0&&e.push(a),a=null)},i=function(c){return a&&c<a.length-a.l?a:(n(),a=t(Math.max(c+1,r)))},o=function(){return n(),tt(e)},s=function(c){n(),a=c,a.l==null&&(a.l=a.length),i(r)};return{next:i,push:s,end:o,_bufs:e}}function he(e,r,t,a){var n=+r,i;if(!isNaN(n)){a||(a=eo[n].p||(t||[]).length||0),i=1+(n>=128?1:0)+1,a>=128&&++i,a>=16384&&++i,a>=2097152&&++i;var o=e.next(i);n<=127?o.write_shift(1,n):(o.write_shift(1,(n&127)+128),o.write_shift(1,n>>7));for(var s=0;s!=4;++s)if(a>=128)o.write_shift(1,(a&127)+128),a>>=7;else{o.write_shift(1,a);break}a>0&&o0(t)&&e.push(t)}}function Ii(e,r,t){var a=Dr(e);if(r.s?(a.cRel&&(a.c+=r.s.c),a.rRel&&(a.r+=r.s.r)):(a.cRel&&(a.c+=r.c),a.rRel&&(a.r+=r.r)),!t||t.biff<12){for(;a.c>=256;)a.c-=256;for(;a.r>=65536;)a.r-=65536}return a}function Sf(e,r,t){var a=Dr(e);return a.s=Ii(a.s,r.s,t),a.e=Ii(a.e,r.s,t),a}function Pi(e,r){if(e.cRel&&e.c<0)for(e=Dr(e);e.c<0;)e.c+=r>8?16384:256;if(e.rRel&&e.r<0)for(e=Dr(e);e.r<0;)e.r+=r>8?1048576:r>5?65536:16384;var t=$e(e);return!e.cRel&&e.cRel!=null&&(t=Fm(t)),!e.rRel&&e.rRel!=null&&(t=Tm(t)),t}function Xs(e,r){return e.s.r==0&&!e.s.rRel&&e.e.r==(r.biff>=12?1048575:r.biff>=8?65536:16384)&&!e.e.rRel?(e.s.cRel?"":"$")+Jr(e.s.c)+":"+(e.e.cRel?"":"$")+Jr(e.e.c):e.s.c==0&&!e.s.cRel&&e.e.c==(r.biff>=12?16383:255)&&!e.e.cRel?(e.s.rRel?"":"$")+nt(e.s.r)+":"+(e.e.rRel?"":"$")+nt(e.e.r):Pi(e.s,r.biff)+":"+Pi(e.e,r.biff)}function Ud(e){return parseInt(km(e),10)-1}function nt(e){return""+(e+1)}function Tm(e){return e.replace(/([A-Z]|^)(\d+)$/,"$1$$$2")}function km(e){return e.replace(/\$(\d+)$/,"$1")}function Hd(e){for(var r=Am(e),t=0,a=0;a!==r.length;++a)t=26*t+r.charCodeAt(a)-64;return t-1}function Jr(e){if(e<0)throw new Error("invalid column "+e);var r="";for(++e;e;e=Math.floor((e-1)/26))r=String.fromCharCode((e-1)%26+65)+r;return r}function Fm(e){return e.replace(/^([A-Z])/,"$$$1")}function Am(e){return e.replace(/^\$([A-Z])/,"$1")}function et(e){for(var r=0,t=0,a=0;a<e.length;++a){var n=e.charCodeAt(a);n>=48&&n<=57?r=10*r+(n-48):n>=65&&n<=90&&(t=26*t+(n-64))}return{c:t-1,r:r-1}}function $e(e){for(var r=e.c+1,t="";r;r=(r-1)/26|0)t=String.fromCharCode((r-1)%26+65)+t;return t+(e.r+1)}function ra(e){var r=e.indexOf(":");return r==-1?{s:et(e),e:et(e)}:{s:et(e.slice(0,r)),e:et(e.slice(r+1))}}function rr(e,r){return typeof r>"u"||typeof r=="number"?rr(e.s,e.e):(typeof e!="string"&&(e=$e(e)),typeof r!="string"&&(r=$e(r)),e==r?e:e+":"+r)}function xr(e){var r={s:{c:0,r:0},e:{c:0,r:0}},t=0,a=0,n=0,i=e.length;for(t=0;a<i&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)t=26*t+n;for(r.s.c=--t,t=0;a<i&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)t=10*t+n;if(r.s.r=--t,a===i||n!=10)return r.e.c=r.s.c,r.e.r=r.s.r,r;for(++a,t=0;a!=i&&!((n=e.charCodeAt(a)-64)<1||n>26);++a)t=26*t+n;for(r.e.c=--t,t=0;a!=i&&!((n=e.charCodeAt(a)-48)<0||n>9);++a)t=10*t+n;return r.e.r=--t,r}function Ef(e,r){var t=e.t=="d"&&r instanceof Date;if(e.z!=null)try{return e.w=ea(e.z,t?ct(r):r)}catch{}try{return e.w=ea((e.XF||{}).numFmtId||(t?14:0),t?ct(r):r)}catch{return""+r}}function tn(e,r,t){return e==null||e.t==null||e.t=="z"?"":e.w!==void 0?e.w:(e.t=="d"&&!e.z&&t&&t.dateNF&&(e.z=t.dateNF),e.t=="e"?Va[e.v]||e.v:r==null?Ef(e,e.v):Ef(e,r))}function Nn(e,r){var t=r&&r.sheet?r.sheet:"Sheet1",a={};return a[t]=e,{SheetNames:[t],Sheets:a}}function Om(e,r,t){var a=t||{},n=e?Array.isArray(e):a.dense,i=e||(n?[]:{}),o=0,s=0;if(i&&a.origin!=null){if(typeof a.origin=="number")o=a.origin;else{var l=typeof a.origin=="string"?et(a.origin):a.origin;o=l.r,s=l.c}i["!ref"]||(i["!ref"]="A1:A1")}var c={s:{c:1e7,r:1e7},e:{c:0,r:0}};if(i["!ref"]){var f=xr(i["!ref"]);c.s.c=f.s.c,c.s.r=f.s.r,c.e.c=Math.max(c.e.c,f.e.c),c.e.r=Math.max(c.e.r,f.e.r),o==-1&&(c.e.r=o=f.e.r+1)}for(var u=0;u!=r.length;++u)if(!!r[u]){if(!Array.isArray(r[u]))throw new Error("aoa_to_sheet expects an array of arrays");for(var d=0;d!=r[u].length;++d)if(!(typeof r[u][d]>"u")){var v={v:r[u][d]},x=o+u,h=s+d;if(c.s.r>x&&(c.s.r=x),c.s.c>h&&(c.s.c=h),c.e.r<x&&(c.e.r=x),c.e.c<h&&(c.e.c=h),r[u][d]&&typeof r[u][d]=="object"&&!Array.isArray(r[u][d])&&!(r[u][d]instanceof Date))v=r[u][d];else if(Array.isArray(v.v)&&(v.f=r[u][d][1],v.v=v.v[0]),v.v===null)if(v.f)v.t="n";else if(a.nullError)v.t="e",v.v=0;else if(a.sheetStubs)v.t="z";else continue;else typeof v.v=="number"?v.t="n":typeof v.v=="boolean"?v.t="b":v.v instanceof Date?(v.z=a.dateNF||Ue[14],a.cellDates?(v.t="d",v.w=ea(v.z,ct(v.v))):(v.t="n",v.v=ct(v.v),v.w=ea(v.z,v.v))):v.t="s";if(n)i[x]||(i[x]=[]),i[x][h]&&i[x][h].z&&(v.z=i[x][h].z),i[x][h]=v;else{var p=$e({c:h,r:x});i[p]&&i[p].z&&(v.z=i[p].z),i[p]=v}}}return c.s.c<1e7&&(i["!ref"]=rr(c)),i}function so(e,r){return Om(null,e,r)}function Dm(e){return e.read_shift(4,"i")}function ua(e,r){return r||(r=se(4)),r.write_shift(4,e),r}function pt(e){var r=e.read_shift(4);return r===0?"":e.read_shift(r,"dbcs")}function at(e,r){var t=!1;return r==null&&(t=!0,r=se(4+2*e.length)),r.write_shift(4,e.length),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}function Rm(e){return{ich:e.read_shift(2),ifnt:e.read_shift(2)}}function Im(e,r){return r||(r=se(4)),r.write_shift(2,e.ich||0),r.write_shift(2,e.ifnt||0),r}function s0(e,r){var t=e.l,a=e.read_shift(1),n=pt(e),i=[],o={t:n,h:n};if((a&1)!==0){for(var s=e.read_shift(4),l=0;l!=s;++l)i.push(Rm(e));o.r=i}else o.r=[{ich:0,ifnt:0}];return e.l=t+r,o}function Pm(e,r){var t=!1;return r==null&&(t=!0,r=se(15+4*e.t.length)),r.write_shift(1,0),at(e.t,r),t?r.slice(0,r.l):r}var Nm=s0;function Lm(e,r){var t=!1;return r==null&&(t=!0,r=se(23+4*e.t.length)),r.write_shift(1,1),at(e.t,r),r.write_shift(4,1),Im({ich:0,ifnt:0},r),t?r.slice(0,r.l):r}function na(e){var r=e.read_shift(4),t=e.read_shift(2);return t+=e.read_shift(1)<<16,e.l++,{c:r,iStyleRef:t}}function Ln(e,r){return r==null&&(r=se(8)),r.write_shift(-4,e.c),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}function Bn(e){var r=e.read_shift(2);return r+=e.read_shift(1)<<16,e.l++,{c:-1,iStyleRef:r}}function Mn(e,r){return r==null&&(r=se(4)),r.write_shift(3,e.iStyleRef||e.s),r.write_shift(1,0),r}var Bm=pt,Vd=at;function l0(e){var r=e.read_shift(4);return r===0||r===4294967295?"":e.read_shift(r,"dbcs")}function ls(e,r){var t=!1;return r==null&&(t=!0,r=se(127)),r.write_shift(4,e.length>0?e.length:4294967295),e.length>0&&r.write_shift(0,e,"dbcs"),t?r.slice(0,r.l):r}var Mm=pt,_l=l0,c0=ls;function f0(e){var r=e.slice(e.l,e.l+4),t=r[0]&1,a=r[0]&2;e.l+=4;var n=a===0?ss([0,0,0,0,r[0]&252,r[1],r[2],r[3]],0):pn(r,0)>>2;return t?n/100:n}function zd(e,r){r==null&&(r=se(4));var t=0,a=0,n=e*100;if(e==(e|0)&&e>=-(1<<29)&&e<1<<29?a=1:n==(n|0)&&n>=-(1<<29)&&n<1<<29&&(a=1,t=1),a)r.write_shift(-4,((t?n:e)<<2)+(t+2));else throw new Error("unsupported RkNumber "+e)}function $d(e){var r={s:{},e:{}};return r.s.r=e.read_shift(4),r.e.r=e.read_shift(4),r.s.c=e.read_shift(4),r.e.c=e.read_shift(4),r}function Km(e,r){return r||(r=se(16)),r.write_shift(4,e.s.r),r.write_shift(4,e.e.r),r.write_shift(4,e.s.c),r.write_shift(4,e.e.c),r}var Kn=$d,vi=Km;function gt(e){if(e.length-e.l<8)throw"XLS Xnum Buffer underflow";return e.read_shift(8,"f")}function Tn(e,r){return(r||se(8)).write_shift(8,e,"f")}function jm(e){var r={},t=e.read_shift(1),a=t>>>1,n=e.read_shift(1),i=e.read_shift(2,"i"),o=e.read_shift(1),s=e.read_shift(1),l=e.read_shift(1);switch(e.l++,a){case 0:r.auto=1;break;case 1:r.index=n;var c=wn[n];c&&(r.rgb=qi(c));break;case 2:r.rgb=qi([o,s,l]);break;case 3:r.theme=n;break}return i!=0&&(r.tint=i>0?i/32767:i/32768),r}function cs(e,r){if(r||(r=se(8)),!e||e.auto)return r.write_shift(4,0),r.write_shift(4,0),r;e.index!=null?(r.write_shift(1,2),r.write_shift(1,e.index)):e.theme!=null?(r.write_shift(1,6),r.write_shift(1,e.theme)):(r.write_shift(1,5),r.write_shift(1,0));var t=e.tint||0;if(t>0?t*=32767:t<0&&(t*=32768),r.write_shift(2,t),!e.rgb||e.theme!=null)r.write_shift(2,0),r.write_shift(1,0),r.write_shift(1,0);else{var a=e.rgb||"FFFFFF";typeof a=="number"&&(a=("000000"+a.toString(16)).slice(-6)),r.write_shift(1,parseInt(a.slice(0,2),16)),r.write_shift(1,parseInt(a.slice(2,4),16)),r.write_shift(1,parseInt(a.slice(4,6),16)),r.write_shift(1,255)}return r}function Wm(e){var r=e.read_shift(1);e.l++;var t={fBold:r&1,fItalic:r&2,fUnderline:r&4,fStrikeout:r&8,fOutline:r&16,fShadow:r&32,fCondense:r&64,fExtend:r&128};return t}function Um(e,r){r||(r=se(2));var t=(e.italic?2:0)|(e.strike?8:0)|(e.outline?16:0)|(e.shadow?32:0)|(e.condense?64:0)|(e.extend?128:0);return r.write_shift(1,t),r.write_shift(1,0),r}function Gd(e,r){var t={2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"},a=e.read_shift(4);switch(a){case 0:return"";case 4294967295:case 4294967294:return t[e.read_shift(4)]||""}if(a>400)throw new Error("Unsupported Clipboard: "+a.toString(16));return e.l-=4,e.read_shift(0,r==1?"lpstr":"lpwstr")}function Hm(e){return Gd(e,1)}function Vm(e){return Gd(e,2)}var u0=2,At=3,Oo=11,Cf=12,fs=19,Do=64,zm=65,$m=71,Gm=4108,Xm=4126,rt=80,Xd=81,Ym=[rt,Xd],bl={1:{n:"CodePage",t:u0},2:{n:"Category",t:rt},3:{n:"PresentationFormat",t:rt},4:{n:"ByteCount",t:At},5:{n:"LineCount",t:At},6:{n:"ParagraphCount",t:At},7:{n:"SlideCount",t:At},8:{n:"NoteCount",t:At},9:{n:"HiddenCount",t:At},10:{n:"MultimediaClipCount",t:At},11:{n:"ScaleCrop",t:Oo},12:{n:"HeadingPairs",t:Gm},13:{n:"TitlesOfParts",t:Xm},14:{n:"Manager",t:rt},15:{n:"Company",t:rt},16:{n:"LinksUpToDate",t:Oo},17:{n:"CharacterCount",t:At},19:{n:"SharedDoc",t:Oo},22:{n:"HyperlinksChanged",t:Oo},23:{n:"AppVersion",t:At,p:"version"},24:{n:"DigSig",t:zm},26:{n:"ContentType",t:rt},27:{n:"ContentStatus",t:rt},28:{n:"Language",t:rt},29:{n:"Version",t:rt},255:{},2147483648:{n:"Locale",t:fs},2147483651:{n:"Behavior",t:fs},1919054434:{}},Sl={1:{n:"CodePage",t:u0},2:{n:"Title",t:rt},3:{n:"Subject",t:rt},4:{n:"Author",t:rt},5:{n:"Keywords",t:rt},6:{n:"Comments",t:rt},7:{n:"Template",t:rt},8:{n:"LastAuthor",t:rt},9:{n:"RevNumber",t:rt},10:{n:"EditTime",t:Do},11:{n:"LastPrinted",t:Do},12:{n:"CreatedDate",t:Do},13:{n:"ModifiedDate",t:Do},14:{n:"PageCount",t:At},15:{n:"WordCount",t:At},16:{n:"CharCount",t:At},17:{n:"Thumbnail",t:$m},18:{n:"Application",t:rt},19:{n:"DocSecurity",t:At},255:{},2147483648:{n:"Locale",t:fs},2147483651:{n:"Behavior",t:fs},1919054434:{}},Tf={1:"US",2:"CA",3:"",7:"RU",20:"EG",30:"GR",31:"NL",32:"BE",33:"FR",34:"ES",36:"HU",39:"IT",41:"CH",43:"AT",44:"GB",45:"DK",46:"SE",47:"NO",48:"PL",49:"DE",52:"MX",55:"BR",61:"AU",64:"NZ",66:"TH",81:"JP",82:"KR",84:"VN",86:"CN",90:"TR",105:"JS",213:"DZ",216:"MA",218:"LY",351:"PT",354:"IS",358:"FI",420:"CZ",886:"TW",961:"LB",962:"JO",963:"SY",964:"IQ",965:"KW",966:"SA",971:"AE",972:"IL",974:"QA",981:"IR",65535:"US"},qm=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"];function Jm(e){return e.map(function(r){return[r>>16&255,r>>8&255,r&255]})}var Zm=Jm([0,16777215,16711680,65280,255,16776960,16711935,65535,0,16777215,16711680,65280,255,16776960,16711935,65535,8388608,32768,128,8421376,8388736,32896,12632256,8421504,10066431,10040166,16777164,13434879,6684774,16744576,26316,13421823,128,16711935,16776960,65535,8388736,8388608,32896,255,52479,13434879,13434828,16777113,10079487,16751052,13408767,16764057,3368703,3394764,10079232,16763904,16750848,16737792,6710937,9868950,13158,3381606,13056,3355392,10040064,10040166,3355545,3355443,16777215,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]),wn=Dr(Zm),Va={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Yd={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},El={"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml":"workbooks","application/vnd.ms-excel.sheet.macroEnabled.main+xml":"workbooks","application/vnd.ms-excel.sheet.binary.macroEnabled.main":"workbooks","application/vnd.ms-excel.addin.macroEnabled.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml":"workbooks","application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml":"sheets","application/vnd.ms-excel.worksheet":"sheets","application/vnd.ms-excel.binIndexWs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml":"charts","application/vnd.ms-excel.chartsheet":"charts","application/vnd.ms-excel.macrosheet+xml":"macros","application/vnd.ms-excel.macrosheet":"macros","application/vnd.ms-excel.intlmacrosheet":"TODO","application/vnd.ms-excel.binIndexMs":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml":"dialogs","application/vnd.ms-excel.dialogsheet":"dialogs","application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml":"strs","application/vnd.ms-excel.sharedStrings":"strs","application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml":"styles","application/vnd.ms-excel.styles":"styles","application/vnd.openxmlformats-package.core-properties+xml":"coreprops","application/vnd.openxmlformats-officedocument.custom-properties+xml":"custprops","application/vnd.openxmlformats-officedocument.extended-properties+xml":"extprops","application/vnd.openxmlformats-officedocument.customXmlProperties+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.customProperty":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml":"comments","application/vnd.ms-excel.comments":"comments","application/vnd.ms-excel.threadedcomments+xml":"threadedcomments","application/vnd.ms-excel.person+xml":"people","application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml":"metadata","application/vnd.ms-excel.sheetMetadata":"metadata","application/vnd.ms-excel.pivotTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotTable+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.chart+xml":"TODO","application/vnd.ms-office.chartcolorstyle+xml":"TODO","application/vnd.ms-office.chartstyle+xml":"TODO","application/vnd.ms-office.chartex+xml":"TODO","application/vnd.ms-excel.calcChain":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.calcChain+xml":"calcchains","application/vnd.openxmlformats-officedocument.spreadsheetml.printerSettings":"TODO","application/vnd.ms-office.activeX":"TODO","application/vnd.ms-office.activeX+xml":"TODO","application/vnd.ms-excel.attachedToolbars":"TODO","application/vnd.ms-excel.connections":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.connections+xml":"TODO","application/vnd.ms-excel.externalLink":"links","application/vnd.openxmlformats-officedocument.spreadsheetml.externalLink+xml":"links","application/vnd.ms-excel.pivotCacheDefinition":"TODO","application/vnd.ms-excel.pivotCacheRecords":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheDefinition+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.pivotCacheRecords+xml":"TODO","application/vnd.ms-excel.queryTable":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.queryTable+xml":"TODO","application/vnd.ms-excel.userNames":"TODO","application/vnd.ms-excel.revisionHeaders":"TODO","application/vnd.ms-excel.revisionLog":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionHeaders+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.revisionLog+xml":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.userNames+xml":"TODO","application/vnd.ms-excel.tableSingleCells":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.tableSingleCells+xml":"TODO","application/vnd.ms-excel.slicer":"TODO","application/vnd.ms-excel.slicerCache":"TODO","application/vnd.ms-excel.slicer+xml":"TODO","application/vnd.ms-excel.slicerCache+xml":"TODO","application/vnd.ms-excel.wsSortMap":"TODO","application/vnd.ms-excel.table":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.table+xml":"TODO","application/vnd.openxmlformats-officedocument.theme+xml":"themes","application/vnd.openxmlformats-officedocument.themeOverride+xml":"TODO","application/vnd.ms-excel.Timeline+xml":"TODO","application/vnd.ms-excel.TimelineCache+xml":"TODO","application/vnd.ms-office.vbaProject":"vba","application/vnd.ms-office.vbaProjectSignature":"TODO","application/vnd.ms-office.volatileDependencies":"TODO","application/vnd.openxmlformats-officedocument.spreadsheetml.volatileDependencies+xml":"TODO","application/vnd.ms-excel.controlproperties+xml":"TODO","application/vnd.openxmlformats-officedocument.model+data":"TODO","application/vnd.ms-excel.Survey+xml":"TODO","application/vnd.openxmlformats-officedocument.drawing+xml":"drawings","application/vnd.openxmlformats-officedocument.drawingml.chartshapes+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramColors+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramData+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramLayout+xml":"TODO","application/vnd.openxmlformats-officedocument.drawingml.diagramStyle+xml":"TODO","application/vnd.openxmlformats-officedocument.vmlDrawing":"TODO","application/vnd.openxmlformats-package.relationships+xml":"rels","application/vnd.openxmlformats-officedocument.oleObject":"TODO","image/png":"TODO",sheet:"js"},Ro={workbooks:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet.main+xml",xlsm:"application/vnd.ms-excel.sheet.macroEnabled.main+xml",xlsb:"application/vnd.ms-excel.sheet.binary.macroEnabled.main",xlam:"application/vnd.ms-excel.addin.macroEnabled.main+xml",xltx:"application/vnd.openxmlformats-officedocument.spreadsheetml.template.main+xml"},strs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sharedStrings+xml",xlsb:"application/vnd.ms-excel.sharedStrings"},comments:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.comments+xml",xlsb:"application/vnd.ms-excel.comments"},sheets:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.worksheet+xml",xlsb:"application/vnd.ms-excel.worksheet"},charts:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.chartsheet+xml",xlsb:"application/vnd.ms-excel.chartsheet"},dialogs:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.dialogsheet+xml",xlsb:"application/vnd.ms-excel.dialogsheet"},macros:{xlsx:"application/vnd.ms-excel.macrosheet+xml",xlsb:"application/vnd.ms-excel.macrosheet"},metadata:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheetMetadata+xml",xlsb:"application/vnd.ms-excel.sheetMetadata"},styles:{xlsx:"application/vnd.openxmlformats-officedocument.spreadsheetml.styles+xml",xlsb:"application/vnd.ms-excel.styles"}};function d0(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Qm(e){var r=d0();if(!e||!e.match)return r;var t={};if((e.match(wt)||[]).forEach(function(a){var n=He(a);switch(n[0].replace(lm,"<")){case"<?xml":break;case"<Types":r.xmlns=n["xmlns"+(n[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":t[n.Extension]=n.ContentType;break;case"<Override":r[El[n.ContentType]]!==void 0&&r[El[n.ContentType]].push(n.PartName);break}}),r.xmlns!==Qr.CT)throw new Error("Unknown Namespace: "+r.xmlns);return r.calcchain=r.calcchains.length>0?r.calcchains[0]:"",r.sst=r.strs.length>0?r.strs[0]:"",r.style=r.styles.length>0?r.styles[0]:"",r.defaults=t,delete r.calcchains,r}function qd(e,r){var t=Qp(El),a=[],n;a[a.length]=Vr,a[a.length]=Se("Types",null,{xmlns:Qr.CT,"xmlns:xsd":Qr.xsd,"xmlns:xsi":Qr.xsi}),a=a.concat([["xml","application/xml"],["bin","application/vnd.ms-excel.sheet.binary.macroEnabled.main"],["vml","application/vnd.openxmlformats-officedocument.vmlDrawing"],["data","application/vnd.openxmlformats-officedocument.model+data"],["bmp","image/bmp"],["png","image/png"],["gif","image/gif"],["emf","image/x-emf"],["wmf","image/x-wmf"],["jpg","image/jpeg"],["jpeg","image/jpeg"],["tif","image/tiff"],["tiff","image/tiff"],["pdf","application/pdf"],["rels","application/vnd.openxmlformats-package.relationships+xml"]].map(function(l){return Se("Default",null,{Extension:l[0],ContentType:l[1]})}));var i=function(l){e[l]&&e[l].length>0&&(n=e[l][0],a[a.length]=Se("Override",null,{PartName:(n[0]=="/"?"":"/")+n,ContentType:Ro[l][r.bookType]||Ro[l].xlsx}))},o=function(l){(e[l]||[]).forEach(function(c){a[a.length]=Se("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:Ro[l][r.bookType]||Ro[l].xlsx})})},s=function(l){(e[l]||[]).forEach(function(c){a[a.length]=Se("Override",null,{PartName:(c[0]=="/"?"":"/")+c,ContentType:t[l][0]})})};return i("workbooks"),o("sheets"),o("charts"),s("themes"),["strs","styles"].forEach(i),["coreprops","extprops","custprops"].forEach(s),s("vba"),s("comments"),s("threadedcomments"),s("drawings"),o("metadata"),s("people"),a.length>2&&(a[a.length]="</Types>",a[1]=a[1].replace("/>",">")),a.join("")}var Ze={WB:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/officeDocument",SHEET:"http://sheetjs.openxmlformats.org/officeDocument/2006/relationships/officeDocument",HLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/hyperlink",VML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/vmlDrawing",XPATH:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLinkPath",XMISS:"http://schemas.microsoft.com/office/2006/relationships/xlExternalLinkPath/xlPathMissing",XLINK:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/externalLink",CXML:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXml",CXMLP:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/customXmlProps",CMNT:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/comments",CORE_PROPS:"http://schemas.openxmlformats.org/package/2006/relationships/metadata/core-properties",EXT_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/extended-properties",CUST_PROPS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/custom-properties",SST:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sharedStrings",STY:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/styles",THEME:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/theme",CHART:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chart",CHARTEX:"http://schemas.microsoft.com/office/2014/relationships/chartEx",CS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/chartsheet",WS:["http://schemas.openxmlformats.org/officeDocument/2006/relationships/worksheet","http://purl.oclc.org/ooxml/officeDocument/relationships/worksheet"],DS:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/dialogsheet",MS:"http://schemas.microsoft.com/office/2006/relationships/xlMacrosheet",IMG:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/image",DRAW:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/drawing",XLMETA:"http://schemas.openxmlformats.org/officeDocument/2006/relationships/sheetMetadata",TCMNT:"http://schemas.microsoft.com/office/2017/10/relationships/threadedComment",PEOPLE:"http://schemas.microsoft.com/office/2017/10/relationships/person",VBA:"http://schemas.microsoft.com/office/2006/relationships/vbaProject"};function Yi(e){var r=e.lastIndexOf("/");return e.slice(0,r+1)+"_rels/"+e.slice(r+1)+".rels"}function Ni(e,r){var t={"!id":{}};if(!e)return t;r.charAt(0)!=="/"&&(r="/"+r);var a={};return(e.match(wt)||[]).forEach(function(n){var i=He(n);if(i[0]==="<Relationship"){var o={};o.Type=i.Type,o.Target=i.Target,o.Id=i.Id,i.TargetMode&&(o.TargetMode=i.TargetMode);var s=i.TargetMode==="External"?i.Target:Ci(i.Target,r);t[s]=o,a[i.Id]=o}}),t["!id"]=a,t}function ni(e){var r=[Vr,Se("Relationships",null,{xmlns:Qr.RELS})];return Hr(e["!id"]).forEach(function(t){r[r.length]=Se("Relationship",null,e["!id"][t])}),r.length>2&&(r[r.length]="</Relationships>",r[1]=r[1].replace("/>",">")),r.join("")}function pr(e,r,t,a,n,i){if(n||(n={}),e["!id"]||(e["!id"]={}),e["!idx"]||(e["!idx"]=1),r<0)for(r=e["!idx"];e["!id"]["rId"+r];++r);if(e["!idx"]=r+1,n.Id="rId"+r,n.Type=a,n.Target=t,i?n.TargetMode=i:[Ze.HLINK,Ze.XPATH,Ze.XMISS].indexOf(n.Type)>-1&&(n.TargetMode="External"),e["!id"][n.Id])throw new Error("Cannot rewrite rId "+r);return e["!id"][n.Id]=n,e[("/"+n.Target).replace("//","/")]=n,r}var ew="application/vnd.oasis.opendocument.spreadsheet";function rw(e,r){for(var t=n0(e),a,n;a=Xi.exec(t);)switch(a[3]){case"manifest":break;case"file-entry":if(n=He(a[0],!1),n.path=="/"&&n.type!==ew)throw new Error("This OpenDocument is not a spreadsheet");break;case"encryption-data":case"algorithm":case"start-key-generation":case"key-derivation":throw new Error("Unsupported ODS Encryption");default:if(r&&r.WTF)throw a}}function tw(e){var r=[Vr];r.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2">
|
||
`),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]+`"/>
|
||
`);return r.push("</manifest:manifest>"),r.join("")}function kf(e,r,t){return[' <rdf:Description rdf:about="'+e+`">
|
||
`,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(t||"odf")+"#"+r+`"/>
|
||
`,` </rdf:Description>
|
||
`].join("")}function aw(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 nw(e){var r=[Vr];r.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
|
||
`);for(var t=0;t!=e.length;++t)r.push(kf(e[t][0],e[t][1])),r.push(aw("",e[t][0]));return r.push(kf("","Document","pkg")),r.push("</rdf:RDF>"),r.join("")}function Jd(){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 '+ts.version+"</meta:generator></office:meta></office:document-meta>"}var Qt=[["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"]],iw=function(){for(var e=new Array(Qt.length),r=0;r<Qt.length;++r){var t=Qt[r],a="(?:"+t[0].slice(0,t[0].indexOf(":"))+":)"+t[0].slice(t[0].indexOf(":")+1);e[r]=new RegExp("<"+a+"[^>]*>([\\s\\S]*?)</"+a+">")}return e}();function Zd(e){var r={};e=br(e);for(var t=0;t<Qt.length;++t){var a=Qt[t],n=e.match(iw[t]);n!=null&&n.length>0&&(r[a[1]]=ir(n[1])),a[2]==="date"&&r[a[1]]&&(r[a[1]]=Ir(r[a[1]]))}return r}function Ys(e,r,t,a,n){n[e]!=null||r==null||r===""||(n[e]=r,r=mr(r),a[a.length]=t?Se(e,r,t):lt(e,r))}function Qd(e,r){var t=r||{},a=[Vr,Se("cp:coreProperties",null,{"xmlns:cp":Qr.CORE_PROPS,"xmlns:dc":Qr.dc,"xmlns:dcterms":Qr.dcterms,"xmlns:dcmitype":Qr.dcmitype,"xmlns:xsi":Qr.xsi})],n={};if(!e&&!t.Props)return a.join("");e&&(e.CreatedDate!=null&&Ys("dcterms:created",typeof e.CreatedDate=="string"?e.CreatedDate:yl(e.CreatedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n),e.ModifiedDate!=null&&Ys("dcterms:modified",typeof e.ModifiedDate=="string"?e.ModifiedDate:yl(e.ModifiedDate,t.WTF),{"xsi:type":"dcterms:W3CDTF"},a,n));for(var i=0;i!=Qt.length;++i){var o=Qt[i],s=t.Props&&t.Props[o[1]]!=null?t.Props[o[1]]:e?e[o[1]]:null;s===!0?s="1":s===!1?s="0":typeof s=="number"&&(s=String(s)),s!=null&&Ys(o[0],s,null,a,n)}return a.length>2&&(a[a.length]="</cp:coreProperties>",a[1]=a[1].replace("/>",">")),a.join("")}var yn=[["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"]],eh=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function rh(e,r,t,a){var n=[];if(typeof e=="string")n=pf(e,a);else for(var i=0;i<e.length;++i)n=n.concat(e[i].map(function(f){return{v:f}}));var o=typeof r=="string"?pf(r,a).map(function(f){return f.v}):r,s=0,l=0;if(o.length>0)for(var c=0;c!==n.length;c+=2){switch(l=+n[c+1].v,n[c].v){case"Worksheets":case"\u5DE5\u4F5C\u8868":case"\u041B\u0438\u0441\u0442\u044B":case"\u0623\u0648\u0631\u0627\u0642 \u0627\u0644\u0639\u0645\u0644":case"\u30EF\u30FC\u30AF\u30B7\u30FC\u30C8":case"\u05D2\u05DC\u05D9\u05D5\u05E0\u05D5\u05EA \u05E2\u05D1\u05D5\u05D3\u05D4":case"Arbeitsbl\xE4tter":case"\xC7al\u0131\u015Fma Sayfalar\u0131":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de c\xE1lculo":case"Planilhas":case"Regneark":case"Hojas de c\xE1lculo":case"Werkbladen":t.Worksheets=l,t.SheetNames=o.slice(s,s+l);break;case"Named Ranges":case"Rangos con nombre":case"\u540D\u524D\u4ED8\u304D\u4E00\u89A7":case"Benannte Bereiche":case"Navngivne omr\xE5der":t.NamedRanges=l,t.DefinedNames=o.slice(s,s+l);break;case"Charts":case"Diagramme":t.Chartsheets=l,t.ChartNames=o.slice(s,s+l);break}s+=l}}function ow(e,r,t){var a={};return r||(r={}),e=br(e),yn.forEach(function(n){var i=(e.match($i(n[0]))||[])[1];switch(n[2]){case"string":i&&(r[n[1]]=ir(i));break;case"bool":r[n[1]]=i==="true";break;case"raw":var o=e.match(new RegExp("<"+n[0]+"[^>]*>([\\s\\S]*?)</"+n[0]+">"));o&&o.length>0&&(a[n[1]]=o[1]);break}}),a.HeadingPairs&&a.TitlesOfParts&&rh(a.HeadingPairs,a.TitlesOfParts,r,t),r}function th(e){var r=[],t=Se;return e||(e={}),e.Application="SheetJS",r[r.length]=Vr,r[r.length]=Se("Properties",null,{xmlns:Qr.EXT_PROPS,"xmlns:vt":Qr.vt}),yn.forEach(function(a){if(e[a[1]]!==void 0){var n;switch(a[2]){case"string":n=mr(String(e[a[1]]));break;case"bool":n=e[a[1]]?"true":"false";break}n!==void 0&&(r[r.length]=t(a[0],n))}}),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(a){return"<vt:lpstr>"+mr(a)+"</vt:lpstr>"}).join(""),{size:e.Worksheets,baseType:"lpstr"})),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var sw=/<[^>]+>[^<]*/g;function lw(e,r){var t={},a="",n=e.match(sw);if(n)for(var i=0;i!=n.length;++i){var o=n[i],s=He(o);switch(s[0]){case"<?xml":break;case"<Properties":break;case"<property":a=ir(s.name);break;case"</property>":a=null;break;default:if(o.indexOf("<vt:")===0){var l=o.split(">"),c=l[0].slice(4),f=l[1];switch(c){case"lpstr":case"bstr":case"lpwstr":t[a]=ir(f);break;case"bool":t[a]=Ar(f);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":t[a]=parseInt(f,10);break;case"r4":case"r8":case"decimal":t[a]=parseFloat(f);break;case"filetime":case"date":t[a]=Ir(f);break;case"cy":case"error":t[a]=ir(f);break;default:if(c.slice(-1)=="/")break;r.WTF&&typeof console<"u"&&console.warn("Unexpected",o,c,l)}}else if(o.slice(0,2)!=="</"){if(r.WTF)throw new Error(o)}}}return t}function ah(e){var r=[Vr,Se("Properties",null,{xmlns:Qr.CUST_PROPS,"xmlns:vt":Qr.vt})];if(!e)return r.join("");var t=1;return Hr(e).forEach(function(n){++t,r[r.length]=Se("property",pm(e[n],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:t,name:mr(n)})}),r.length>2&&(r[r.length]="</Properties>",r[1]=r[1].replace("/>",">")),r.join("")}var Cl={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"},qs;function cw(e,r,t){qs||(qs=_s(Cl)),r=qs[r]||r,e[r]=t}function fw(e,r){var t=[];return Hr(Cl).map(function(a){for(var n=0;n<Qt.length;++n)if(Qt[n][1]==a)return Qt[n];for(n=0;n<yn.length;++n)if(yn[n][1]==a)return yn[n];throw a}).forEach(function(a){if(e[a[1]]!=null){var n=r&&r.Props&&r.Props[a[1]]!=null?r.Props[a[1]]:e[a[1]];switch(a[2]){case"date":n=new Date(n).toISOString().replace(/\.\d*Z/,"Z");break}typeof n=="number"?n=String(n):n===!0||n===!1?n=n?"1":"0":n instanceof Date&&(n=new Date(n).toISOString().replace(/\.\d*Z/,"")),t.push(lt(Cl[a[1]]||a[1],n))}}),Se("DocumentProperties",t.join(""),{xmlns:Pt.o})}function uw(e,r){var t=["Worksheets","SheetNames"],a="CustomDocumentProperties",n=[];return e&&Hr(e).forEach(function(i){if(!!Object.prototype.hasOwnProperty.call(e,i)){for(var o=0;o<Qt.length;++o)if(i==Qt[o][1])return;for(o=0;o<yn.length;++o)if(i==yn[o][1])return;for(o=0;o<t.length;++o)if(i==t[o])return;var s=e[i],l="string";typeof s=="number"?(l="float",s=String(s)):s===!0||s===!1?(l="boolean",s=s?"1":"0"):s=String(s),n.push(Se(hf(i),s,{"dt:dt":l}))}}),r&&Hr(r).forEach(function(i){if(!!Object.prototype.hasOwnProperty.call(r,i)&&!(e&&Object.prototype.hasOwnProperty.call(e,i))){var o=r[i],s="string";typeof o=="number"?(s="float",o=String(o)):o===!0||o===!1?(s="boolean",o=o?"1":"0"):o instanceof Date?(s="dateTime.tz",o=o.toISOString()):o=String(o),n.push(Se(hf(i),o,{"dt:dt":s}))}}),"<"+a+' xmlns="'+Pt.o+'">'+n.join("")+"</"+a+">"}function h0(e){var r=e.read_shift(4),t=e.read_shift(4);return new Date((t/1e7*Math.pow(2,32)+r/1e7-11644473600)*1e3).toISOString().replace(/\.000/,"")}function dw(e){var r=typeof e=="string"?new Date(Date.parse(e)):e,t=r.getTime()/1e3+11644473600,a=t%Math.pow(2,32),n=(t-a)/Math.pow(2,32);a*=1e7,n*=1e7;var i=a/Math.pow(2,32)|0;i>0&&(a=a%Math.pow(2,32),n+=i);var o=se(8);return o.write_shift(4,a),o.write_shift(4,n),o}function nh(e,r,t){var a=e.l,n=e.read_shift(0,"lpstr-cp");if(t)for(;e.l-a&3;)++e.l;return n}function ih(e,r,t){var a=e.read_shift(0,"lpwstr");return t&&(e.l+=4-(a.length+1&3)&3),a}function oh(e,r,t){return r===31?ih(e):nh(e,r,t)}function Tl(e,r,t){return oh(e,r,t===!1?0:4)}function hw(e,r){if(!r)throw new Error("VtUnalignedString must have positive length");return oh(e,r,0)}function vw(e){for(var r=e.read_shift(4),t=[],a=0;a!=r;++a){var n=e.l;t[a]=e.read_shift(0,"lpwstr").replace(Ct,""),e.l-n&2&&(e.l+=2)}return t}function xw(e){for(var r=e.read_shift(4),t=[],a=0;a!=r;++a)t[a]=e.read_shift(0,"lpstr-cp").replace(Ct,"");return t}function gw(e){var r=e.l,t=us(e,Xd);e[e.l]==0&&e[e.l+1]==0&&e.l-r&2&&(e.l+=2);var a=us(e,At);return[t,a]}function pw(e){for(var r=e.read_shift(4),t=[],a=0;a<r/2;++a)t.push(gw(e));return t}function Ff(e,r){for(var t=e.read_shift(4),a={},n=0;n!=t;++n){var i=e.read_shift(4),o=e.read_shift(4);a[i]=e.read_shift(o,r===1200?"utf16le":"utf8").replace(Ct,"").replace(Ei,"!"),r===1200&&o%2&&(e.l+=2)}return e.l&3&&(e.l=e.l>>2+1<<2),a}function sh(e){var r=e.read_shift(4),t=e.slice(e.l,e.l+r);return e.l+=r,(r&3)>0&&(e.l+=4-(r&3)&3),t}function mw(e){var r={};return r.Size=e.read_shift(4),e.l+=r.Size+3-(r.Size-1)%4,r}function us(e,r,t){var a=e.read_shift(2),n,i=t||{};if(e.l+=2,r!==Cf&&a!==r&&Ym.indexOf(r)===-1&&!((r&65534)==4126&&(a&65534)==4126))throw new Error("Expected type "+r+" saw "+a);switch(r===Cf?a:r){case 2:return n=e.read_shift(2,"i"),i.raw||(e.l+=2),n;case 3:return n=e.read_shift(4,"i"),n;case 11:return e.read_shift(4)!==0;case 19:return n=e.read_shift(4),n;case 30:return nh(e,a,4).replace(Ct,"");case 31:return ih(e);case 64:return h0(e);case 65:return sh(e);case 71:return mw(e);case 80:return Tl(e,a,!i.raw).replace(Ct,"");case 81:return hw(e,a).replace(Ct,"");case 4108:return pw(e);case 4126:case 4127:return a==4127?vw(e):xw(e);default:throw new Error("TypedPropertyValue unrecognized type "+r+" "+a)}}function Af(e,r){var t=se(4),a=se(4);switch(t.write_shift(4,e==80?31:e),e){case 3:a.write_shift(-4,r);break;case 5:a=se(8),a.write_shift(8,r,"f");break;case 11:a.write_shift(4,r?1:0);break;case 64:a=dw(r);break;case 31:case 80:for(a=se(4+2*(r.length+1)+(r.length%2?0:2)),a.write_shift(4,r.length+1),a.write_shift(0,r,"dbcs");a.l!=a.length;)a.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+e+" "+r)}return tt([t,a])}function Of(e,r){var t=e.l,a=e.read_shift(4),n=e.read_shift(4),i=[],o=0,s=0,l=-1,c={};for(o=0;o!=n;++o){var f=e.read_shift(4),u=e.read_shift(4);i[o]=[f,u+t]}i.sort(function(S,g){return S[1]-g[1]});var d={};for(o=0;o!=n;++o){if(e.l!==i[o][1]){var v=!0;if(o>0&&r)switch(r[i[o-1][0]].t){case 2:e.l+2===i[o][1]&&(e.l+=2,v=!1);break;case 80:e.l<=i[o][1]&&(e.l=i[o][1],v=!1);break;case 4108:e.l<=i[o][1]&&(e.l=i[o][1],v=!1);break}if((!r||o==0)&&e.l<=i[o][1]&&(v=!1,e.l=i[o][1]),v)throw new Error("Read Error: Expected address "+i[o][1]+" at "+e.l+" :"+o)}if(r){var x=r[i[o][0]];if(d[x.n]=us(e,x.t,{raw:!0}),x.p==="version"&&(d[x.n]=String(d[x.n]>>16)+"."+("0000"+String(d[x.n]&65535)).slice(-4)),x.n=="CodePage")switch(d[x.n]){case 0:d[x.n]=1252;case 874:case 932:case 936:case 949:case 950:case 1250:case 1251:case 1253:case 1254:case 1255:case 1256:case 1257:case 1258:case 1e4:case 1200:case 1201:case 1252:case 65e3:case-536:case 65001:case-535:ca(s=d[x.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+d[x.n])}}else if(i[o][0]===1){if(s=d.CodePage=us(e,u0),ca(s),l!==-1){var h=e.l;e.l=i[l][1],c=Ff(e,s),e.l=h}}else if(i[o][0]===0){if(s===0){l=o,e.l=i[o+1][1];continue}c=Ff(e,s)}else{var p=c[i[o][0]],m;switch(e[e.l]){case 65:e.l+=4,m=sh(e);break;case 30:e.l+=4,m=Tl(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 31:e.l+=4,m=Tl(e,e[e.l-4]).replace(/\u0000+$/,"");break;case 3:e.l+=4,m=e.read_shift(4,"i");break;case 19:e.l+=4,m=e.read_shift(4);break;case 5:e.l+=4,m=e.read_shift(8,"f");break;case 11:e.l+=4,m=Ur(e,4);break;case 64:e.l+=4,m=Ir(h0(e));break;default:throw new Error("unparsed value: "+e[e.l])}d[p]=m}}return e.l=t+a,d}var lh=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function ww(e){switch(typeof e){case"boolean":return 11;case"number":return(e|0)==e?3:5;case"string":return 31;case"object":if(e instanceof Date)return 64;break}return-1}function Df(e,r,t){var a=se(8),n=[],i=[],o=8,s=0,l=se(8),c=se(8);if(l.write_shift(4,2),l.write_shift(4,1200),c.write_shift(4,1),i.push(l),n.push(c),o+=8+l.length,!r){c=se(8),c.write_shift(4,0),n.unshift(c);var f=[se(4)];for(f[0].write_shift(4,e.length),s=0;s<e.length;++s){var u=e[s][0];for(l=se(4+4+2*(u.length+1)+(u.length%2?0:2)),l.write_shift(4,s+2),l.write_shift(4,u.length+1),l.write_shift(0,u,"dbcs");l.l!=l.length;)l.write_shift(1,0);f.push(l)}l=tt(f),i.unshift(l),o+=8+l.length}for(s=0;s<e.length;++s)if(!(r&&!r[e[s][0]])&&!(lh.indexOf(e[s][0])>-1||eh.indexOf(e[s][0])>-1)&&e[s][1]!=null){var d=e[s][1],v=0;if(r){v=+r[e[s][0]];var x=t[v];if(x.p=="version"&&typeof d=="string"){var h=d.split(".");d=(+h[0]<<16)+(+h[1]||0)}l=Af(x.t,d)}else{var p=ww(d);p==-1&&(p=31,d=String(d)),l=Af(p,d)}i.push(l),c=se(8),c.write_shift(4,r?v:2+s),n.push(c),o+=8+l.length}var m=8*(i.length+1);for(s=0;s<i.length;++s)n[s].write_shift(4,m),m+=i[s].length;return a.write_shift(4,o),a.write_shift(4,i.length),tt([a].concat(n).concat(i))}function Rf(e,r,t){var a=e.content;if(!a)return{};st(a,0);var n,i,o,s,l=0;a.chk("feff","Byte Order: "),a.read_shift(2);var c=a.read_shift(4),f=a.read_shift(16);if(f!==Me.utils.consts.HEADER_CLSID&&f!==t)throw new Error("Bad PropertySet CLSID "+f);if(n=a.read_shift(4),n!==1&&n!==2)throw new Error("Unrecognized #Sets: "+n);if(i=a.read_shift(16),s=a.read_shift(4),n===1&&s!==a.l)throw new Error("Length mismatch: "+s+" !== "+a.l);n===2&&(o=a.read_shift(16),l=a.read_shift(4));var u=Of(a,r),d={SystemIdentifier:c};for(var v in u)d[v]=u[v];if(d.FMTID=i,n===1)return d;if(l-a.l==2&&(a.l+=2),a.l!==l)throw new Error("Length mismatch 2: "+a.l+" !== "+l);var x;try{x=Of(a,null)}catch{}for(v in x)d[v]=x[v];return d.FMTID=[i,o],d}function If(e,r,t,a,n,i){var o=se(n?68:48),s=[o];o.write_shift(2,65534),o.write_shift(2,0),o.write_shift(4,842412599),o.write_shift(16,Me.utils.consts.HEADER_CLSID,"hex"),o.write_shift(4,n?2:1),o.write_shift(16,r,"hex"),o.write_shift(4,n?68:48);var l=Df(e,t,a);if(s.push(l),n){var c=Df(n,null,null);o.write_shift(16,i,"hex"),o.write_shift(4,68+l.length),s.push(c)}return tt(s)}function Xa(e,r){return e.read_shift(r),null}function yw(e,r){r||(r=se(e));for(var t=0;t<e;++t)r.write_shift(1,0);return r}function _w(e,r,t){for(var a=[],n=e.l+r;e.l<n;)a.push(t(e,n-e.l));if(n!==e.l)throw new Error("Slurp error");return a}function Ur(e,r){return e.read_shift(r)===1}function Et(e,r){return r||(r=se(2)),r.write_shift(2,+!!e),r}function Yr(e){return e.read_shift(2,"u")}function Zt(e,r){return r||(r=se(2)),r.write_shift(2,e),r}function ch(e,r){return _w(e,r,Yr)}function bw(e){var r=e.read_shift(1),t=e.read_shift(1);return t===1?r:r===1}function fh(e,r,t){return t||(t=se(2)),t.write_shift(1,r=="e"?+e:+!!e),t.write_shift(1,r=="e"?1:0),t}function lo(e,r,t){var a=e.read_shift(t&&t.biff>=12?2:1),n="sbcs-cont";if(t&&t.biff>=8,!t||t.biff==8){var i=e.read_shift(1);i&&(n="dbcs-cont")}else t.biff==12&&(n="wstr");t.biff>=2&&t.biff<=5&&(n="cpstr");var o=a?e.read_shift(a,n):"";return o}function Sw(e){var r=e.read_shift(2),t=e.read_shift(1),a=t&4,n=t&8,i=1+(t&1),o=0,s,l={};n&&(o=e.read_shift(2)),a&&(s=e.read_shift(4));var c=i==2?"dbcs-cont":"sbcs-cont",f=r===0?"":e.read_shift(r,c);return n&&(e.l+=4*o),a&&(e.l+=s),l.t=f,n||(l.raw="<t>"+l.t+"</t>",l.r=l.t),l}function Ew(e){var r=e.t||"",t=se(3+0);t.write_shift(2,r.length),t.write_shift(1,1);var a=se(2*r.length);a.write_shift(2*r.length,r,"utf16le");var n=[t,a];return tt(n)}function kn(e,r,t){var a;if(t){if(t.biff>=2&&t.biff<=5)return e.read_shift(r,"cpstr");if(t.biff>=12)return e.read_shift(r,"dbcs-cont")}var n=e.read_shift(1);return n===0?a=e.read_shift(r,"sbcs-cont"):a=e.read_shift(r,"dbcs-cont"),a}function co(e,r,t){var a=e.read_shift(t&&t.biff==2?1:2);return a===0?(e.l++,""):kn(e,a,t)}function jn(e,r,t){if(t.biff>5)return co(e,r,t);var a=e.read_shift(1);return a===0?(e.l++,""):e.read_shift(a,t.biff<=4||!e.lens?"cpstr":"sbcs-cont")}function uh(e,r,t){return t||(t=se(3+2*e.length)),t.write_shift(2,e.length),t.write_shift(1,1),t.write_shift(31,e,"utf16le"),t}function Cw(e){var r=e.read_shift(1);e.l++;var t=e.read_shift(2);return e.l+=2,[r,t]}function Tw(e){var r=e.read_shift(4),t=e.l,a=!1;r>24&&(e.l+=r-24,e.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(a=!0),e.l=t);var n=e.read_shift((a?r-24:r)>>1,"utf16le").replace(Ct,"");return a&&(e.l+=24),n}function kw(e){for(var r=e.read_shift(2),t="";r-- >0;)t+="../";var a=e.read_shift(0,"lpstr-ansi");if(e.l+=2,e.read_shift(2)!=57005)throw new Error("Bad FileMoniker");var n=e.read_shift(4);if(n===0)return t+a.replace(/\\/g,"/");var i=e.read_shift(4);if(e.read_shift(2)!=3)throw new Error("Bad FileMoniker");var o=e.read_shift(i>>1,"utf16le").replace(Ct,"");return t+o}function Fw(e,r){var t=e.read_shift(16);switch(t){case"e0c9ea79f9bace118c8200aa004ba90b":return Tw(e);case"0303000000000000c000000000000046":return kw(e);default:throw new Error("Unsupported Moniker "+t)}}function Io(e){var r=e.read_shift(4),t=r>0?e.read_shift(r,"utf16le").replace(Ct,""):"";return t}function Pf(e,r){r||(r=se(6+e.length*2)),r.write_shift(4,1+e.length);for(var t=0;t<e.length;++t)r.write_shift(2,e.charCodeAt(t));return r.write_shift(2,0),r}function Aw(e,r){var t=e.l+r,a=e.read_shift(4);if(a!==2)throw new Error("Unrecognized streamVersion: "+a);var n=e.read_shift(2);e.l+=2;var i,o,s,l,c="",f,u;n&16&&(i=Io(e,t-e.l)),n&128&&(o=Io(e,t-e.l)),(n&257)===257&&(s=Io(e,t-e.l)),(n&257)===1&&(l=Fw(e,t-e.l)),n&8&&(c=Io(e,t-e.l)),n&32&&(f=e.read_shift(16)),n&64&&(u=h0(e)),e.l=t;var d=o||s||l||"";d&&c&&(d+="#"+c),d||(d="#"+c),n&2&&d.charAt(0)=="/"&&d.charAt(1)!="/"&&(d="file://"+d);var v={Target:d};return f&&(v.guid=f),u&&(v.time=u),i&&(v.Tooltip=i),v}function Ow(e){var r=se(512),t=0,a=e.Target;a.slice(0,7)=="file://"&&(a=a.slice(7));var n=a.indexOf("#"),i=n>-1?31:23;switch(a.charAt(0)){case"#":i=28;break;case".":i&=-3;break}r.write_shift(4,2),r.write_shift(4,i);var o=[8,6815827,6619237,4849780,83];for(t=0;t<o.length;++t)r.write_shift(4,o[t]);if(i==28)a=a.slice(1),Pf(a,r);else if(i&2){for(o="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),t=0;t<o.length;++t)r.write_shift(1,parseInt(o[t],16));var s=n>-1?a.slice(0,n):a;for(r.write_shift(4,2*(s.length+1)),t=0;t<s.length;++t)r.write_shift(2,s.charCodeAt(t));r.write_shift(2,0),i&8&&Pf(n>-1?a.slice(n+1):"",r)}else{for(o="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),t=0;t<o.length;++t)r.write_shift(1,parseInt(o[t],16));for(var l=0;a.slice(l*3,l*3+3)=="../"||a.slice(l*3,l*3+3)=="..\\";)++l;for(r.write_shift(2,l),r.write_shift(4,a.length-3*l+1),t=0;t<a.length-3*l;++t)r.write_shift(1,a.charCodeAt(t+3*l)&255);for(r.write_shift(1,0),r.write_shift(2,65535),r.write_shift(2,57005),t=0;t<6;++t)r.write_shift(4,0)}return r.slice(0,r.l)}function dh(e){var r=e.read_shift(1),t=e.read_shift(1),a=e.read_shift(1),n=e.read_shift(1);return[r,t,a,n]}function hh(e,r){var t=dh(e);return t[3]=0,t}function Ca(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return{r,c:t,ixfe:a}}function Fn(e,r,t,a){return a||(a=se(6)),a.write_shift(2,e),a.write_shift(2,r),a.write_shift(2,t||0),a}function Dw(e){var r=e.read_shift(2),t=e.read_shift(2);return e.l+=8,{type:r,flags:t}}function Rw(e,r,t){return r===0?"":jn(e,r,t)}function Iw(e,r,t){var a=t.biff>8?4:2,n=e.read_shift(a),i=e.read_shift(a,"i"),o=e.read_shift(a,"i");return[n,i,o]}function vh(e){var r=e.read_shift(2),t=f0(e);return[r,t]}function Pw(e,r,t){e.l+=4,r-=4;var a=e.l+r,n=lo(e,r,t),i=e.read_shift(2);if(a-=e.l,i!==a)throw new Error("Malformed AddinUdf: padding = "+a+" != "+i);return e.l+=i,n}function Es(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2);return{s:{c:a,r},e:{c:n,r:t}}}function xh(e,r){return r||(r=se(8)),r.write_shift(2,e.s.r),r.write_shift(2,e.e.r),r.write_shift(2,e.s.c),r.write_shift(2,e.e.c),r}function gh(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(1),n=e.read_shift(1);return{s:{c:a,r},e:{c:n,r:t}}}var Nw=gh;function ph(e){e.l+=4;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2);return e.l+=12,[t,r,a]}function Lw(e){var r={};return e.l+=4,e.l+=16,r.fSharedNote=e.read_shift(2),e.l+=4,r}function Bw(e){var r={};return e.l+=4,e.cf=e.read_shift(2),r}function dt(e){e.l+=2,e.l+=e.read_shift(2)}var Mw={0:dt,4:dt,5:dt,6:dt,7:Bw,8:dt,9:dt,10:dt,11:dt,12:dt,13:Lw,14:dt,15:dt,16:dt,17:dt,18:dt,19:dt,20:dt,21:ph};function Kw(e,r){for(var t=e.l+r,a=[];e.l<t;){var n=e.read_shift(2);e.l-=2;try{a.push(Mw[n](e,t-e.l))}catch{return e.l=t,a}}return e.l!=t&&(e.l=t),a}function Po(e,r){var t={BIFFVer:0,dt:0};switch(t.BIFFVer=e.read_shift(2),r-=2,r>=2&&(t.dt=e.read_shift(2),e.l-=2),t.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(r>6)throw new Error("Unexpected BIFF Ver "+t.BIFFVer)}return e.read_shift(r),t}function v0(e,r,t){var a=1536,n=16;switch(t.bookType){case"biff8":break;case"biff5":a=1280,n=8;break;case"biff4":a=4,n=6;break;case"biff3":a=3,n=6;break;case"biff2":a=2,n=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}var i=se(n);return i.write_shift(2,a),i.write_shift(2,r),n>4&&i.write_shift(2,29282),n>6&&i.write_shift(2,1997),n>8&&(i.write_shift(2,49161),i.write_shift(2,1),i.write_shift(2,1798),i.write_shift(2,0)),i}function jw(e,r){return r===0||e.read_shift(2),1200}function Ww(e,r,t){if(t.enc)return e.l+=r,"";var a=e.l,n=jn(e,0,t);return e.read_shift(r+a-e.l),n}function Uw(e,r){var t=!r||r.biff==8,a=se(t?112:54);for(a.write_shift(r.biff==8?2:1,7),t&&a.write_shift(1,0),a.write_shift(4,859007059),a.write_shift(4,5458548|(t?0:536870912));a.l<a.length;)a.write_shift(1,t?0:32);return a}function Hw(e,r,t){var a=t&&t.biff==8||r==2?e.read_shift(2):(e.l+=r,0);return{fDialog:a&16,fBelow:a&64,fRight:a&128}}function Vw(e,r,t){var a=e.read_shift(4),n=e.read_shift(1)&3,i=e.read_shift(1);switch(i){case 0:i="Worksheet";break;case 1:i="Macrosheet";break;case 2:i="Chartsheet";break;case 6:i="VBAModule";break}var o=lo(e,0,t);return o.length===0&&(o="Sheet1"),{pos:a,hs:n,dt:i,name:o}}function zw(e,r){var t=!r||r.biff>=8?2:1,a=se(8+t*e.name.length);a.write_shift(4,e.pos),a.write_shift(1,e.hs||0),a.write_shift(1,e.dt),a.write_shift(1,e.name.length),r.biff>=8&&a.write_shift(1,1),a.write_shift(t*e.name.length,e.name,r.biff<8?"sbcs":"utf16le");var n=a.slice(0,a.l);return n.l=a.l,n}function $w(e,r){for(var t=e.l+r,a=e.read_shift(4),n=e.read_shift(4),i=[],o=0;o!=n&&e.l<t;++o)i.push(Sw(e));return i.Count=a,i.Unique=n,i}function Gw(e,r){var t=se(8);t.write_shift(4,e.Count),t.write_shift(4,e.Unique);for(var a=[],n=0;n<e.length;++n)a[n]=Ew(e[n]);var i=tt([t].concat(a));return i.parts=[t.length].concat(a.map(function(o){return o.length})),i}function Xw(e,r){var t={};return t.dsst=e.read_shift(2),e.l+=r-2,t}function Yw(e){var r={};r.r=e.read_shift(2),r.c=e.read_shift(2),r.cnt=e.read_shift(2)-r.c;var t=e.read_shift(2);e.l+=4;var a=e.read_shift(1);return e.l+=3,a&7&&(r.level=a&7),a&32&&(r.hidden=!0),a&64&&(r.hpt=t/20),r}function qw(e){var r=Dw(e);if(r.type!=2211)throw new Error("Invalid Future Record "+r.type);var t=e.read_shift(4);return t!==0}function Jw(e){return e.read_shift(2),e.read_shift(4)}function Nf(e,r,t){var a=0;t&&t.biff==2||(a=e.read_shift(2));var n=e.read_shift(2);t&&t.biff==2&&(a=1-(n>>15),n&=32767);var i={Unsynced:a&1,DyZero:(a&2)>>1,ExAsc:(a&4)>>2,ExDsc:(a&8)>>3};return[i,n]}function Zw(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=e.read_shift(2),l=e.read_shift(2),c=e.read_shift(2);return{Pos:[r,t],Dim:[a,n],Flags:i,CurTab:o,FirstTab:s,Selected:l,TabRatio:c}}function Qw(){var e=se(18);return e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,29280),e.write_shift(2,17600),e.write_shift(2,56),e.write_shift(2,0),e.write_shift(2,0),e.write_shift(2,1),e.write_shift(2,500),e}function e2(e,r,t){if(t&&t.biff>=2&&t.biff<5)return{};var a=e.read_shift(2);return{RTL:a&64}}function r2(e){var r=se(18),t=1718;return e&&e.RTL&&(t|=64),r.write_shift(2,t),r.write_shift(4,0),r.write_shift(4,64),r.write_shift(4,0),r.write_shift(4,0),r}function t2(){}function a2(e,r,t){var a={dyHeight:e.read_shift(2),fl:e.read_shift(2)};switch(t&&t.biff||8){case 2:break;case 3:case 4:e.l+=2;break;default:e.l+=10;break}return a.name=lo(e,0,t),a}function n2(e,r){var t=e.name||"Arial",a=r&&r.biff==5,n=a?15+t.length:16+2*t.length,i=se(n);return i.write_shift(2,(e.sz||12)*20),i.write_shift(4,0),i.write_shift(2,400),i.write_shift(4,0),i.write_shift(2,0),i.write_shift(1,t.length),a||i.write_shift(1,1),i.write_shift((a?1:2)*t.length,t,a?"sbcs":"utf16le"),i}function i2(e){var r=Ca(e);return r.isst=e.read_shift(4),r}function o2(e,r,t,a){var n=se(10);return Fn(e,r,a,n),n.write_shift(4,t),n}function s2(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=e.l+r,n=Ca(e);t.biff==2&&e.l++;var i=co(e,a-e.l,t);return n.val=i,n}function l2(e,r,t,a,n){var i=!n||n.biff==8,o=se(6+2+ +i+(1+i)*t.length);return Fn(e,r,a,o),o.write_shift(2,t.length),i&&o.write_shift(1,1),o.write_shift((1+i)*t.length,t,i?"utf16le":"sbcs"),o}function c2(e,r,t){var a=e.read_shift(2),n=jn(e,0,t);return[a,n]}function f2(e,r,t,a){var n=t&&t.biff==5;a||(a=se(n?3+r.length:5+2*r.length)),a.write_shift(2,e),a.write_shift(n?1:2,r.length),n||a.write_shift(1,1),a.write_shift((n?1:2)*r.length,r,n?"sbcs":"utf16le");var i=a.length>a.l?a.slice(0,a.l):a;return i.l==null&&(i.l=i.length),i}var u2=jn;function Lf(e,r,t){var a=e.l+r,n=t.biff==8||!t.biff?4:2,i=e.read_shift(n),o=e.read_shift(n),s=e.read_shift(2),l=e.read_shift(2);return e.l=a,{s:{r:i,c:s},e:{r:o,c:l}}}function d2(e,r){var t=r.biff==8||!r.biff?4:2,a=se(2*t+6);return a.write_shift(t,e.s.r),a.write_shift(t,e.e.r+1),a.write_shift(2,e.s.c),a.write_shift(2,e.e.c+1),a.write_shift(2,0),a}function h2(e){var r=e.read_shift(2),t=e.read_shift(2),a=vh(e);return{r,c:t,ixfe:a[0],rknum:a[1]}}function v2(e,r){for(var t=e.l+r-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l<t;)i.push(vh(e));if(e.l!==t)throw new Error("MulRK read error");var o=e.read_shift(2);if(i.length!=o-n+1)throw new Error("MulRK length mismatch");return{r:a,c:n,C:o,rkrec:i}}function x2(e,r){for(var t=e.l+r-2,a=e.read_shift(2),n=e.read_shift(2),i=[];e.l<t;)i.push(e.read_shift(2));if(e.l!==t)throw new Error("MulBlank read error");var o=e.read_shift(2);if(i.length!=o-n+1)throw new Error("MulBlank length mismatch");return{r:a,c:n,C:o,ixfe:i}}function g2(e,r,t,a){var n={},i=e.read_shift(4),o=e.read_shift(4),s=e.read_shift(4),l=e.read_shift(2);return n.patternType=qm[s>>26],a.cellStyles&&(n.alc=i&7,n.fWrap=i>>3&1,n.alcV=i>>4&7,n.fJustLast=i>>7&1,n.trot=i>>8&255,n.cIndent=i>>16&15,n.fShrinkToFit=i>>20&1,n.iReadOrder=i>>22&2,n.fAtrNum=i>>26&1,n.fAtrFnt=i>>27&1,n.fAtrAlc=i>>28&1,n.fAtrBdr=i>>29&1,n.fAtrPat=i>>30&1,n.fAtrProt=i>>31&1,n.dgLeft=o&15,n.dgRight=o>>4&15,n.dgTop=o>>8&15,n.dgBottom=o>>12&15,n.icvLeft=o>>16&127,n.icvRight=o>>23&127,n.grbitDiag=o>>30&3,n.icvTop=s&127,n.icvBottom=s>>7&127,n.icvDiag=s>>14&127,n.dgDiag=s>>21&15,n.icvFore=l&127,n.icvBack=l>>7&127,n.fsxButton=l>>14&1),n}function p2(e,r,t){var a={};return a.ifnt=e.read_shift(2),a.numFmtId=e.read_shift(2),a.flags=e.read_shift(2),a.fStyle=a.flags>>2&1,r-=6,a.data=g2(e,r,a.fStyle,t),a}function Bf(e,r,t,a){var n=t&&t.biff==5;a||(a=se(n?16:20)),a.write_shift(2,0),e.style?(a.write_shift(2,e.numFmtId||0),a.write_shift(2,65524)):(a.write_shift(2,e.numFmtId||0),a.write_shift(2,r<<4));var i=0;return e.numFmtId>0&&n&&(i|=1024),a.write_shift(4,i),a.write_shift(4,0),n||a.write_shift(4,0),a.write_shift(2,0),a}function m2(e){e.l+=4;var r=[e.read_shift(2),e.read_shift(2)];if(r[0]!==0&&r[0]--,r[1]!==0&&r[1]--,r[0]>7||r[1]>7)throw new Error("Bad Gutters: "+r.join("|"));return r}function w2(e){var r=se(8);return r.write_shift(4,0),r.write_shift(2,e[0]?e[0]+1:0),r.write_shift(2,e[1]?e[1]+1:0),r}function Mf(e,r,t){var a=Ca(e);(t.biff==2||r==9)&&++e.l;var n=bw(e);return a.val=n,a.t=n===!0||n===!1?"b":"e",a}function y2(e,r,t,a,n,i){var o=se(8);return Fn(e,r,a,o),fh(t,i,o),o}function _2(e,r,t){t.biffguess&&t.biff==2&&(t.biff=5);var a=Ca(e),n=gt(e);return a.val=n,a}function b2(e,r,t,a){var n=se(14);return Fn(e,r,a,n),Tn(t,n),n}var Kf=Rw;function S2(e,r,t){var a=e.l+r,n=e.read_shift(2),i=e.read_shift(2);if(t.sbcch=i,i==1025||i==14849)return[i,n];if(i<1||i>255)throw new Error("Unexpected SupBook type: "+i);for(var o=kn(e,i),s=[];a>e.l;)s.push(co(e));return[i,n,o,s]}function jf(e,r,t){var a=e.read_shift(2),n,i={fBuiltIn:a&1,fWantAdvise:a>>>1&1,fWantPict:a>>>2&1,fOle:a>>>3&1,fOleLink:a>>>4&1,cf:a>>>5&1023,fIcon:a>>>15&1};return t.sbcch===14849&&(n=Pw(e,r-2,t)),i.body=n||e.read_shift(r-2),typeof n=="string"&&(i.Name=n),i}var E2=["_xlnm.Consolidate_Area","_xlnm.Auto_Open","_xlnm.Auto_Close","_xlnm.Extract","_xlnm.Database","_xlnm.Criteria","_xlnm.Print_Area","_xlnm.Print_Titles","_xlnm.Recorder","_xlnm.Data_Form","_xlnm.Auto_Activate","_xlnm.Auto_Deactivate","_xlnm.Sheet_Title","_xlnm._FilterDatabase"];function Wf(e,r,t){var a=e.l+r,n=e.read_shift(2),i=e.read_shift(1),o=e.read_shift(1),s=e.read_shift(t&&t.biff==2?1:2),l=0;(!t||t.biff>=5)&&(t.biff!=5&&(e.l+=2),l=e.read_shift(2),t.biff==5&&(e.l+=2),e.l+=4);var c=kn(e,o,t);n&32&&(c=E2[c.charCodeAt(0)]);var f=a-e.l;t&&t.biff==2&&--f;var u=a==e.l||s===0||!(f>0)?[]:KS(e,f,t,s);return{chKey:i,Name:c,itab:l,rgce:u}}function mh(e,r,t){if(t.biff<8)return C2(e,r,t);for(var a=[],n=e.l+r,i=e.read_shift(t.biff>8?4:2);i--!==0;)a.push(Iw(e,t.biff>8?12:6,t));if(e.l!=n)throw new Error("Bad ExternSheet: "+e.l+" != "+n);return a}function C2(e,r,t){e[e.l+1]==3&&e[e.l]++;var a=lo(e,r,t);return a.charCodeAt(0)==3?a.slice(1):a}function T2(e,r,t){if(t.biff<8){e.l+=r;return}var a=e.read_shift(2),n=e.read_shift(2),i=kn(e,a,t),o=kn(e,n,t);return[i,o]}function k2(e,r,t){var a=gh(e);e.l++;var n=e.read_shift(1);return r-=8,[jS(e,r,t),n,a]}function Uf(e,r,t){var a=Nw(e);switch(t.biff){case 2:e.l++,r-=7;break;case 3:case 4:e.l+=2,r-=8;break;default:e.l+=6,r-=12}return[a,BS(e,r,t)]}function F2(e){var r=e.read_shift(4)!==0,t=e.read_shift(4)!==0,a=e.read_shift(4);return[r,t,a]}function A2(e,r,t){if(!(t.biff<8)){var a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2),o=e.read_shift(2),s=jn(e,0,t);return t.biff<8&&e.read_shift(1),[{r:a,c:n},s,o,i]}}function O2(e,r,t){return A2(e,r,t)}function D2(e,r){for(var t=[],a=e.read_shift(2);a--;)t.push(Es(e));return t}function R2(e){var r=se(2+e.length*8);r.write_shift(2,e.length);for(var t=0;t<e.length;++t)xh(e[t],r);return r}function I2(e,r,t){if(t&&t.biff<8)return N2(e,r,t);var a=ph(e),n=Kw(e,r-22,a[1]);return{cmo:a,ft:n}}var P2={8:function(e,r){var t=e.l+r;e.l+=10;var a=e.read_shift(2);e.l+=4,e.l+=2,e.l+=2,e.l+=2,e.l+=4;var n=e.read_shift(1);return e.l+=n,e.l=t,{fmt:a}}};function N2(e,r,t){e.l+=4;var a=e.read_shift(2),n=e.read_shift(2),i=e.read_shift(2);e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=2,e.l+=6,r-=36;var o=[];return o.push((P2[a]||mt)(e,r,t)),{cmo:[n,a,i],ft:o}}function L2(e,r,t){var a=e.l,n="";try{e.l+=4;var i=(t.lastobj||{cmo:[0,0]}).cmo[1],o;[0,5,7,11,12,14].indexOf(i)==-1?e.l+=6:o=Cw(e,6,t);var s=e.read_shift(2);e.read_shift(2),Yr(e,2);var l=e.read_shift(2);e.l+=l;for(var c=1;c<e.lens.length-1;++c){if(e.l-a!=e.lens[c])throw new Error("TxO: bad continue record");var f=e[e.l],u=kn(e,e.lens[c+1]-e.lens[c]-1);if(n+=u,n.length>=(f?s:2*s))break}if(n.length!==s&&n.length!==s*2)throw new Error("cchText: "+s+" != "+n.length);return e.l=a+r,{t:n}}catch{return e.l=a+r,{t:n}}}function B2(e,r){var t=Es(e);e.l+=16;var a=Aw(e,r-24);return[t,a]}function M2(e){var r=se(24),t=et(e[0]);r.write_shift(2,t.r),r.write_shift(2,t.r),r.write_shift(2,t.c),r.write_shift(2,t.c);for(var a="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),n=0;n<16;++n)r.write_shift(1,parseInt(a[n],16));return tt([r,Ow(e[1])])}function K2(e,r){e.read_shift(2);var t=Es(e),a=e.read_shift((r-10)/2,"dbcs-cont");return a=a.replace(Ct,""),[t,a]}function j2(e){var r=e[1].Tooltip,t=se(10+2*(r.length+1));t.write_shift(2,2048);var a=et(e[0]);t.write_shift(2,a.r),t.write_shift(2,a.r),t.write_shift(2,a.c),t.write_shift(2,a.c);for(var n=0;n<r.length;++n)t.write_shift(2,r.charCodeAt(n));return t.write_shift(2,0),t}function W2(e){var r=[0,0],t;return t=e.read_shift(2),r[0]=Tf[t]||t,t=e.read_shift(2),r[1]=Tf[t]||t,r}function U2(e){return e||(e=se(4)),e.write_shift(2,1),e.write_shift(2,1),e}function H2(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(hh(e));return t}function V2(e){for(var r=e.read_shift(2),t=[];r-- >0;)t.push(hh(e));return t}function z2(e){e.l+=2;var r={cxfs:0,crc:0};return r.cxfs=e.read_shift(2),r.crc=e.read_shift(4),r}function wh(e,r,t){if(!t.cellStyles)return mt(e,r);var a=t&&t.biff>=12?4:2,n=e.read_shift(a),i=e.read_shift(a),o=e.read_shift(a),s=e.read_shift(a),l=e.read_shift(2);a==2&&(e.l+=2);var c={s:n,e:i,w:o,ixfe:s,flags:l};return(t.biff>=5||!t.biff)&&(c.level=l>>8&7),c}function $2(e,r){var t=se(12);t.write_shift(2,r),t.write_shift(2,r),t.write_shift(2,e.width*256),t.write_shift(2,0);var a=0;return e.hidden&&(a|=1),t.write_shift(1,a),a=e.level||0,t.write_shift(1,a),t.write_shift(2,0),t}function G2(e,r){var t={};return r<32||(e.l+=16,t.header=gt(e),t.footer=gt(e),e.l+=2),t}function X2(e,r,t){var a={area:!1};if(t.biff!=5)return e.l+=r,a;var n=e.read_shift(1);return e.l+=3,n&16&&(a.area=!0),a}function Y2(e){for(var r=se(2*e),t=0;t<e;++t)r.write_shift(2,t+1);return r}var q2=Ca,J2=ch,Z2=co;function Q2(e){var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),n={fmt:r,env:t,len:a,data:e.slice(e.l,e.l+a)};return e.l+=a,n}function ey(e,r,t){t.biffguess&&t.biff==5&&(t.biff=2);var a=Ca(e);++e.l;var n=jn(e,r-7,t);return a.t="str",a.val=n,a}function ry(e){var r=Ca(e);++e.l;var t=gt(e);return r.t="n",r.val=t,r}function ty(e,r,t){var a=se(15);return vo(a,e,r),a.write_shift(8,t,"f"),a}function ay(e){var r=Ca(e);++e.l;var t=e.read_shift(2);return r.t="n",r.val=t,r}function ny(e,r,t){var a=se(9);return vo(a,e,r),a.write_shift(2,t),a}function iy(e){var r=e.read_shift(1);return r===0?(e.l++,""):e.read_shift(r,"sbcs-cont")}function oy(e,r){e.l+=6,e.l+=2,e.l+=1,e.l+=3,e.l+=1,e.l+=r-13}function sy(e,r,t){var a=e.l+r,n=Ca(e),i=e.read_shift(2),o=kn(e,i,t);return e.l=a,n.t="str",n.val=o,n}var ly=[2,3,48,49,131,139,140,245],kl=function(){var e={1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127,8:865,9:437,10:850,11:437,13:437,14:850,15:437,16:850,17:437,18:850,19:932,20:850,21:437,22:850,23:865,24:437,25:437,26:850,27:437,28:863,29:850,31:852,34:852,35:852,36:860,37:850,38:866,55:850,64:852,77:936,78:949,79:950,80:874,87:1252,88:1252,89:1252,108:863,134:737,135:852,136:857,204:1257,255:16969},r=_s({1:437,2:850,3:1252,4:1e4,100:852,101:866,102:865,103:861,104:895,105:620,106:737,107:857,120:950,121:949,122:936,123:932,124:874,125:1255,126:1256,150:10007,151:10029,152:10006,200:1250,201:1251,202:1254,203:1253,0:20127});function t(s,l){var c=[],f=rn(1);switch(l.type){case"base64":f=Bt(jt(s));break;case"binary":f=Bt(s);break;case"buffer":case"array":f=s;break}st(f,0);var u=f.read_shift(1),d=!!(u&136),v=!1,x=!1;switch(u){case 2:break;case 3:break;case 48:v=!0,d=!0;break;case 49:v=!0,d=!0;break;case 131:break;case 139:break;case 140:x=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+u.toString(16))}var h=0,p=521;u==2&&(h=f.read_shift(2)),f.l+=3,u!=2&&(h=f.read_shift(4)),h>1048576&&(h=1e6),u!=2&&(p=f.read_shift(2));var m=f.read_shift(2),S=l.codepage||1252;u!=2&&(f.l+=16,f.read_shift(1),f[f.l]!==0&&(S=e[f[f.l]]),f.l+=1,f.l+=2),x&&(f.l+=36);for(var g=[],w={},C=Math.min(f.length,u==2?521:p-10-(v?264:0)),F=x?32:11;f.l<C&&f[f.l]!=13;)switch(w={},w.name=Ja.utils.decode(S,f.slice(f.l,f.l+F)).replace(/[\u0000\r\n].*$/g,""),f.l+=F,w.type=String.fromCharCode(f.read_shift(1)),u!=2&&!x&&(w.offset=f.read_shift(4)),w.len=f.read_shift(1),u==2&&(w.offset=f.read_shift(2)),w.dec=f.read_shift(1),w.name.length&&g.push(w),u!=2&&(f.l+=x?13:14),w.type){case"B":(!v||w.len!=8)&&l.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"G":case"P":l.WTF&&console.log("Skipping "+w.name+":"+w.type);break;case"+":case"0":case"@":case"C":case"D":case"F":case"I":case"L":case"M":case"N":case"O":case"T":case"Y":break;default:throw new Error("Unknown Field Type: "+w.type)}if(f[f.l]!==13&&(f.l=p-1),f.read_shift(1)!==13)throw new Error("DBF Terminator not found "+f.l+" "+f[f.l]);f.l=p;var _=0,R=0;for(c[0]=[],R=0;R!=g.length;++R)c[0][R]=g[R].name;for(;h-- >0;){if(f[f.l]===42){f.l+=m;continue}for(++f.l,c[++_]=[],R=0,R=0;R!=g.length;++R){var y=f.slice(f.l,f.l+g[R].len);f.l+=g[R].len,st(y,0);var W=Ja.utils.decode(S,y);switch(g[R].type){case"C":W.trim().length&&(c[_][R]=W.replace(/\s+$/,""));break;case"D":W.length===8?c[_][R]=new Date(+W.slice(0,4),+W.slice(4,6)-1,+W.slice(6,8)):c[_][R]=W;break;case"F":c[_][R]=parseFloat(W.trim());break;case"+":case"I":c[_][R]=x?y.read_shift(-4,"i")^2147483648:y.read_shift(4,"i");break;case"L":switch(W.trim().toUpperCase()){case"Y":case"T":c[_][R]=!0;break;case"N":case"F":c[_][R]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+W+"|")}break;case"M":if(!d)throw new Error("DBF Unexpected MEMO for type "+u.toString(16));c[_][R]="##MEMO##"+(x?parseInt(W.trim(),10):y.read_shift(4));break;case"N":W=W.replace(/\u0000/g,"").trim(),W&&W!="."&&(c[_][R]=+W||0);break;case"@":c[_][R]=new Date(y.read_shift(-8,"f")-621356832e5);break;case"T":c[_][R]=new Date((y.read_shift(4)-2440588)*864e5+y.read_shift(4));break;case"Y":c[_][R]=y.read_shift(4,"i")/1e4+y.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":c[_][R]=-y.read_shift(-8,"f");break;case"B":if(v&&g[R].len==8){c[_][R]=y.read_shift(8,"f");break}case"G":case"P":y.l+=g[R].len;break;case"0":if(g[R].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+g[R].type)}}}if(u!=2&&f.l<f.length&&f[f.l++]!=26)throw new Error("DBF EOF Marker missing "+(f.l-1)+" of "+f.length+" "+f[f.l-1].toString(16));return l&&l.sheetRows&&(c=c.slice(0,l.sheetRows)),l.DBF=g,c}function a(s,l){var c=l||{};c.dateNF||(c.dateNF="yyyymmdd");var f=so(t(s,c),c);return f["!cols"]=c.DBF.map(function(u){return{wch:u.len,DBF:u}}),delete c.DBF,f}function n(s,l){try{return Nn(a(s,l),l)}catch(c){if(l&&l.WTF)throw c}return{SheetNames:[],Sheets:{}}}var i={B:8,C:250,L:1,D:8,"?":0,"":0};function o(s,l){var c=l||{};if(+c.codepage>=0&&ca(+c.codepage),c.type=="string")throw new Error("Cannot write DBF to JS string");var f=Ot(),u=uv(s,{header:1,raw:!0,cellDates:!0}),d=u[0],v=u.slice(1),x=s["!cols"]||[],h=0,p=0,m=0,S=1;for(h=0;h<d.length;++h){if(((x[h]||{}).DBF||{}).name){d[h]=x[h].DBF.name,++m;continue}if(d[h]!=null){if(++m,typeof d[h]=="number"&&(d[h]=d[h].toString(10)),typeof d[h]!="string")throw new Error("DBF Invalid column name "+d[h]+" |"+typeof d[h]+"|");if(d.indexOf(d[h])!==h){for(p=0;p<1024;++p)if(d.indexOf(d[h]+"_"+p)==-1){d[h]+="_"+p;break}}}}var g=xr(s["!ref"]),w=[],C=[],F=[];for(h=0;h<=g.e.c-g.s.c;++h){var _="",R="",y=0,W=[];for(p=0;p<v.length;++p)v[p][h]!=null&&W.push(v[p][h]);if(W.length==0||d[h]==null){w[h]="?";continue}for(p=0;p<W.length;++p){switch(typeof W[p]){case"number":R="B";break;case"string":R="C";break;case"boolean":R="L";break;case"object":R=W[p]instanceof Date?"D":"C";break;default:R="C"}y=Math.max(y,String(W[p]).length),_=_&&_!=R?"C":R}y>250&&(y=250),R=((x[h]||{}).DBF||{}).type,R=="C"&&x[h].DBF.len>y&&(y=x[h].DBF.len),_=="B"&&R=="N"&&(_="N",F[h]=x[h].DBF.dec,y=x[h].DBF.len),C[h]=_=="C"||R=="N"?y:i[_]||0,S+=C[h],w[h]=_}var D=f.next(32);for(D.write_shift(4,318902576),D.write_shift(4,v.length),D.write_shift(2,296+32*m),D.write_shift(2,S),h=0;h<4;++h)D.write_shift(4,0);for(D.write_shift(4,0|(+r[sd]||3)<<8),h=0,p=0;h<d.length;++h)if(d[h]!=null){var E=f.next(32),T=(d[h].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11);E.write_shift(1,T,"sbcs"),E.write_shift(1,w[h]=="?"?"C":w[h],"sbcs"),E.write_shift(4,p),E.write_shift(1,C[h]||i[w[h]]||0),E.write_shift(1,F[h]||0),E.write_shift(1,2),E.write_shift(4,0),E.write_shift(1,0),E.write_shift(4,0),E.write_shift(4,0),p+=C[h]||i[w[h]]||0}var A=f.next(264);for(A.write_shift(4,13),h=0;h<65;++h)A.write_shift(4,0);for(h=0;h<v.length;++h){var b=f.next(S);for(b.write_shift(1,0),p=0;p<d.length;++p)if(d[p]!=null)switch(w[p]){case"L":b.write_shift(1,v[h][p]==null?63:v[h][p]?84:70);break;case"B":b.write_shift(8,v[h][p]||0,"f");break;case"N":var O="0";for(typeof v[h][p]=="number"&&(O=v[h][p].toFixed(F[p]||0)),m=0;m<C[p]-O.length;++m)b.write_shift(1,32);b.write_shift(1,O,"sbcs");break;case"D":v[h][p]?(b.write_shift(4,("0000"+v[h][p].getFullYear()).slice(-4),"sbcs"),b.write_shift(2,("00"+(v[h][p].getMonth()+1)).slice(-2),"sbcs"),b.write_shift(2,("00"+v[h][p].getDate()).slice(-2),"sbcs")):b.write_shift(8,"00000000","sbcs");break;case"C":var N=String(v[h][p]!=null?v[h][p]:"").slice(0,C[p]);for(b.write_shift(1,N,"sbcs"),m=0;m<C[p]-N.length;++m)b.write_shift(1,32);break}}return f.next(1).write_shift(1,26),f.end()}return{to_workbook:n,to_sheet:a,from_sheet:o}}(),yh=function(){var e={AA:"\xC0",BA:"\xC1",CA:"\xC2",DA:195,HA:"\xC4",JA:197,AE:"\xC8",BE:"\xC9",CE:"\xCA",HE:"\xCB",AI:"\xCC",BI:"\xCD",CI:"\xCE",HI:"\xCF",AO:"\xD2",BO:"\xD3",CO:"\xD4",DO:213,HO:"\xD6",AU:"\xD9",BU:"\xDA",CU:"\xDB",HU:"\xDC",Aa:"\xE0",Ba:"\xE1",Ca:"\xE2",Da:227,Ha:"\xE4",Ja:229,Ae:"\xE8",Be:"\xE9",Ce:"\xEA",He:"\xEB",Ai:"\xEC",Bi:"\xED",Ci:"\xEE",Hi:"\xEF",Ao:"\xF2",Bo:"\xF3",Co:"\xF4",Do:245,Ho:"\xF6",Au:"\xF9",Bu:"\xFA",Cu:"\xFB",Hu:"\xFC",KC:"\xC7",Kc:"\xE7",q:"\xE6",z:"\u0153",a:"\xC6",j:"\u0152",DN:209,Dn:241,Hy:255,S:169,c:170,R:174,"B ":180,0:176,1:177,2:178,3:179,5:181,6:182,7:183,Q:185,k:186,b:208,i:216,l:222,s:240,y:248,"!":161,'"':162,"#":163,"(":164,"%":165,"'":167,"H ":168,"+":171,";":187,"<":188,"=":189,">":190,"?":191,"{":223},r=new RegExp("\x1BN("+Hr(e).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),t=function(d,v){var x=e[v];return typeof x=="number"?Zc(x):x},a=function(d,v,x){var h=v.charCodeAt(0)-32<<4|x.charCodeAt(0)-48;return h==59?d:Zc(h)};e["|"]=254;function n(d,v){switch(v.type){case"base64":return i(jt(d),v);case"binary":return i(d,v);case"buffer":return i(Je&&Buffer.isBuffer(d)?d.toString("binary"):ln(d),v);case"array":return i(Cn(d),v)}throw new Error("Unrecognized type "+v.type)}function i(d,v){var x=d.split(/[\n\r]+/),h=-1,p=-1,m=0,S=0,g=[],w=[],C=null,F={},_=[],R=[],y=[],W=0,D;for(+v.codepage>=0&&ca(+v.codepage);m!==x.length;++m){W=0;var E=x[m].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,a).replace(r,t),T=E.replace(/;;/g,"\0").split(";").map(function(V){return V.replace(/\u0000/g,";")}),A=T[0],b;if(E.length>0)switch(A){case"ID":break;case"E":break;case"B":break;case"O":break;case"W":break;case"P":T[1].charAt(0)=="P"&&w.push(E.slice(3).replace(/;;/g,";"));break;case"C":var O=!1,N=!1,G=!1,L=!1,X=-1,Z=-1;for(S=1;S<T.length;++S)switch(T[S].charAt(0)){case"A":break;case"X":p=parseInt(T[S].slice(1))-1,N=!0;break;case"Y":for(h=parseInt(T[S].slice(1))-1,N||(p=0),D=g.length;D<=h;++D)g[D]=[];break;case"K":b=T[S].slice(1),b.charAt(0)==='"'?b=b.slice(1,b.length-1):b==="TRUE"?b=!0:b==="FALSE"?b=!1:isNaN(Na(b))?isNaN(zi(b).getDate())||(b=Ir(b)):(b=Na(b),C!==null&&di(C)&&(b=Ss(b))),O=!0;break;case"E":L=!0;var I=ii(T[S].slice(1),{r:h,c:p});g[h][p]=[g[h][p],I];break;case"S":G=!0,g[h][p]=[g[h][p],"S5S"];break;case"G":break;case"R":X=parseInt(T[S].slice(1))-1;break;case"C":Z=parseInt(T[S].slice(1))-1;break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+E)}if(O&&(g[h][p]&&g[h][p].length==2?g[h][p][0]=b:g[h][p]=b,C=null),G){if(L)throw new Error("SYLK shared formula cannot have own formula");var z=X>-1&&g[X][Z];if(!z||!z[1])throw new Error("SYLK shared formula cannot find base");g[h][p][1]=Mh(z[1],{r:h-X,c:p-Z})}break;case"F":var U=0;for(S=1;S<T.length;++S)switch(T[S].charAt(0)){case"X":p=parseInt(T[S].slice(1))-1,++U;break;case"Y":for(h=parseInt(T[S].slice(1))-1,D=g.length;D<=h;++D)g[D]=[];break;case"M":W=parseInt(T[S].slice(1))/20;break;case"F":break;case"G":break;case"P":C=w[parseInt(T[S].slice(1))];break;case"S":break;case"D":break;case"N":break;case"W":for(y=T[S].slice(1).split(" "),D=parseInt(y[0],10);D<=parseInt(y[1],10);++D)W=parseInt(y[2],10),R[D-1]=W===0?{hidden:!0}:{wch:W},an(R[D-1]);break;case"C":p=parseInt(T[S].slice(1))-1,R[p]||(R[p]={});break;case"R":h=parseInt(T[S].slice(1))-1,_[h]||(_[h]={}),W>0?(_[h].hpt=W,_[h].hpx=fi(W)):W===0&&(_[h].hidden=!0);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+E)}U<1&&(C=null);break;default:if(v&&v.WTF)throw new Error("SYLK bad record "+E)}}return _.length>0&&(F["!rows"]=_),R.length>0&&(F["!cols"]=R),v&&v.sheetRows&&(g=g.slice(0,v.sheetRows)),[g,F]}function o(d,v){var x=n(d,v),h=x[0],p=x[1],m=so(h,v);return Hr(p).forEach(function(S){m[S]=p[S]}),m}function s(d,v){return Nn(o(d,v),v)}function l(d,v,x,h){var p="C;Y"+(x+1)+";X"+(h+1)+";K";switch(d.t){case"n":p+=d.v||0,d.f&&!d.F&&(p+=";E"+y0(d.f,{r:x,c:h}));break;case"b":p+=d.v?"TRUE":"FALSE";break;case"e":p+=d.w||d.v;break;case"d":p+='"'+(d.w||d.v)+'"';break;case"s":p+='"'+d.v.replace(/"/g,"").replace(/;/g,";;")+'"';break}return p}function c(d,v){v.forEach(function(x,h){var p="F;W"+(h+1)+" "+(h+1)+" ";x.hidden?p+="0":(typeof x.width=="number"&&!x.wpx&&(x.wpx=Ji(x.width)),typeof x.wpx=="number"&&!x.wch&&(x.wch=Zi(x.wpx)),typeof x.wch=="number"&&(p+=Math.round(x.wch))),p.charAt(p.length-1)!=" "&&d.push(p)})}function f(d,v){v.forEach(function(x,h){var p="F;";x.hidden?p+="M0;":x.hpt?p+="M"+20*x.hpt+";":x.hpx&&(p+="M"+20*Qi(x.hpx)+";"),p.length>2&&d.push(p+"R"+(h+1))})}function u(d,v){var x=["ID;PWXL;N;E"],h=[],p=xr(d["!ref"]),m,S=Array.isArray(d),g=`\r
|
||
`;x.push("P;PGeneral"),x.push("F;P0;DG0G8;M255"),d["!cols"]&&c(x,d["!cols"]),d["!rows"]&&f(x,d["!rows"]),x.push("B;Y"+(p.e.r-p.s.r+1)+";X"+(p.e.c-p.s.c+1)+";D"+[p.s.c,p.s.r,p.e.c,p.e.r].join(" "));for(var w=p.s.r;w<=p.e.r;++w)for(var C=p.s.c;C<=p.e.c;++C){var F=$e({r:w,c:C});m=S?(d[w]||[])[C]:d[F],!(!m||m.v==null&&(!m.f||m.F))&&h.push(l(m,d,w,C))}return x.join(g)+g+h.join(g)+g+"E"+g}return{to_workbook:s,to_sheet:o,from_sheet:u}}(),_h=function(){function e(i,o){switch(o.type){case"base64":return r(jt(i),o);case"binary":return r(i,o);case"buffer":return r(Je&&Buffer.isBuffer(i)?i.toString("binary"):ln(i),o);case"array":return r(Cn(i),o)}throw new Error("Unrecognized type "+o.type)}function r(i,o){for(var s=i.split(`
|
||
`),l=-1,c=-1,f=0,u=[];f!==s.length;++f){if(s[f].trim()==="BOT"){u[++l]=[],c=0;continue}if(!(l<0)){var d=s[f].trim().split(","),v=d[0],x=d[1];++f;for(var h=s[f]||"";(h.match(/["]/g)||[]).length&1&&f<s.length-1;)h+=`
|
||
`+s[++f];switch(h=h.trim(),+v){case-1:if(h==="BOT"){u[++l]=[],c=0;continue}else if(h!=="EOD")throw new Error("Unrecognized DIF special command "+h);break;case 0:h==="TRUE"?u[l][c]=!0:h==="FALSE"?u[l][c]=!1:isNaN(Na(x))?isNaN(zi(x).getDate())?u[l][c]=x:u[l][c]=Ir(x):u[l][c]=Na(x),++c;break;case 1:h=h.slice(1,h.length-1),h=h.replace(/""/g,'"'),h&&h.match(/^=".*"$/)&&(h=h.slice(2,-1)),u[l][c++]=h!==""?h:null;break}if(h==="EOD")break}}return o&&o.sheetRows&&(u=u.slice(0,o.sheetRows)),u}function t(i,o){return so(e(i,o),o)}function a(i,o){return Nn(t(i,o),o)}var n=function(){var i=function(l,c,f,u,d){l.push(c),l.push(f+","+u),l.push('"'+d.replace(/"/g,'""')+'"')},o=function(l,c,f,u){l.push(c+","+f),l.push(c==1?'"'+u.replace(/"/g,'""')+'"':u)};return function(l){var c=[],f=xr(l["!ref"]),u,d=Array.isArray(l);i(c,"TABLE",0,1,"sheetjs"),i(c,"VECTORS",0,f.e.r-f.s.r+1,""),i(c,"TUPLES",0,f.e.c-f.s.c+1,""),i(c,"DATA",0,0,"");for(var v=f.s.r;v<=f.e.r;++v){o(c,-1,0,"BOT");for(var x=f.s.c;x<=f.e.c;++x){var h=$e({r:v,c:x});if(u=d?(l[v]||[])[x]:l[h],!u){o(c,1,0,"");continue}switch(u.t){case"n":var p=u.w;!p&&u.v!=null&&(p=u.v),p==null?u.f&&!u.F?o(c,1,0,"="+u.f):o(c,1,0,""):o(c,0,p,"V");break;case"b":o(c,0,u.v?1:0,u.v?"TRUE":"FALSE");break;case"s":o(c,1,0,isNaN(u.v)?u.v:'="'+u.v+'"');break;case"d":u.w||(u.w=ea(u.z||Ue[14],ct(Ir(u.v)))),o(c,0,u.w,"V");break;default:o(c,1,0,"")}}}o(c,-1,0,"EOD");var m=`\r
|
||
`,S=c.join(m);return S}}();return{to_workbook:a,to_sheet:t,from_sheet:n}}(),bh=function(){function e(u){return u.replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,`
|
||
`)}function r(u){return u.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function t(u,d){for(var v=u.split(`
|
||
`),x=-1,h=-1,p=0,m=[];p!==v.length;++p){var S=v[p].trim().split(":");if(S[0]==="cell"){var g=et(S[1]);if(m.length<=g.r)for(x=m.length;x<=g.r;++x)m[x]||(m[x]=[]);switch(x=g.r,h=g.c,S[2]){case"t":m[x][h]=e(S[3]);break;case"v":m[x][h]=+S[3];break;case"vtf":var w=S[S.length-1];case"vtc":switch(S[3]){case"nl":m[x][h]=!!+S[4];break;default:m[x][h]=+S[4];break}S[2]=="vtf"&&(m[x][h]=[m[x][h],w])}}}return d&&d.sheetRows&&(m=m.slice(0,d.sheetRows)),m}function a(u,d){return so(t(u,d),d)}function n(u,d){return Nn(a(u,d),d)}var i=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(`
|
||
`),o=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(`
|
||
`)+`
|
||
`,s=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(`
|
||
`),l="--SocialCalcSpreadsheetControlSave--";function c(u){if(!u||!u["!ref"])return"";for(var d=[],v=[],x,h="",p=ra(u["!ref"]),m=Array.isArray(u),S=p.s.r;S<=p.e.r;++S)for(var g=p.s.c;g<=p.e.c;++g)if(h=$e({r:S,c:g}),x=m?(u[S]||[])[g]:u[h],!(!x||x.v==null||x.t==="z")){switch(v=["cell",h,"t"],x.t){case"s":case"str":v.push(r(x.v));break;case"n":x.f?(v[2]="vtf",v[3]="n",v[4]=x.v,v[5]=r(x.f)):(v[2]="v",v[3]=x.v);break;case"b":v[2]="vt"+(x.f?"f":"c"),v[3]="nl",v[4]=x.v?"1":"0",v[5]=r(x.f||(x.v?"TRUE":"FALSE"));break;case"d":var w=ct(Ir(x.v));v[2]="vtc",v[3]="nd",v[4]=""+w,v[5]=x.w||ea(x.z||Ue[14],w);break;case"e":continue}d.push(v.join(":"))}return d.push("sheet:c:"+(p.e.c-p.s.c+1)+":r:"+(p.e.r-p.s.r+1)+":tvf:1"),d.push("valueformat:1:text-wiki"),d.join(`
|
||
`)}function f(u){return[i,o,s,o,c(u),l].join(`
|
||
`)}return{to_workbook:n,to_sheet:a,from_sheet:f}}(),ci=function(){function e(f,u,d,v,x){x.raw?u[d][v]=f:f===""||(f==="TRUE"?u[d][v]=!0:f==="FALSE"?u[d][v]=!1:isNaN(Na(f))?isNaN(zi(f).getDate())?u[d][v]=f:u[d][v]=Ir(f):u[d][v]=Na(f))}function r(f,u){var d=u||{},v=[];if(!f||f.length===0)return v;for(var x=f.split(/[\r\n]/),h=x.length-1;h>=0&&x[h].length===0;)--h;for(var p=10,m=0,S=0;S<=h;++S)m=x[S].indexOf(" "),m==-1?m=x[S].length:m++,p=Math.max(p,m);for(S=0;S<=h;++S){v[S]=[];var g=0;for(e(x[S].slice(0,p).trim(),v,S,g,d),g=1;g<=(x[S].length-p)/10+1;++g)e(x[S].slice(p+(g-1)*10,p+g*10).trim(),v,S,g,d)}return d.sheetRows&&(v=v.slice(0,d.sheetRows)),v}var t={44:",",9:" ",59:";",124:"|"},a={44:3,9:2,59:1,124:0};function n(f){for(var u={},d=!1,v=0,x=0;v<f.length;++v)(x=f.charCodeAt(v))==34?d=!d:!d&&x in t&&(u[x]=(u[x]||0)+1);x=[];for(v in u)Object.prototype.hasOwnProperty.call(u,v)&&x.push([u[v],v]);if(!x.length){u=a;for(v in u)Object.prototype.hasOwnProperty.call(u,v)&&x.push([u[v],v])}return x.sort(function(h,p){return h[0]-p[0]||a[h[1]]-a[p[1]]}),t[x.pop()[1]]||44}function i(f,u){var d=u||{},v="",x=d.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};f.slice(0,4)=="sep="?f.charCodeAt(5)==13&&f.charCodeAt(6)==10?(v=f.charAt(4),f=f.slice(7)):f.charCodeAt(5)==13||f.charCodeAt(5)==10?(v=f.charAt(4),f=f.slice(6)):v=n(f.slice(0,1024)):d&&d.FS?v=d.FS:v=n(f.slice(0,1024));var p=0,m=0,S=0,g=0,w=0,C=v.charCodeAt(0),F=!1,_=0,R=f.charCodeAt(0);f=f.replace(/\r\n/mg,`
|
||
`);var y=d.dateNF!=null?Xp(d.dateNF):null;function W(){var D=f.slice(g,w),E={};if(D.charAt(0)=='"'&&D.charAt(D.length-1)=='"'&&(D=D.slice(1,-1).replace(/""/g,'"')),D.length===0)E.t="z";else if(d.raw)E.t="s",E.v=D;else if(D.trim().length===0)E.t="s",E.v=D;else if(D.charCodeAt(0)==61)D.charCodeAt(1)==34&&D.charCodeAt(D.length-1)==34?(E.t="s",E.v=D.slice(2,-1).replace(/""/g,'"')):Sb(D)?(E.t="n",E.f=D.slice(1)):(E.t="s",E.v=D);else if(D=="TRUE")E.t="b",E.v=!0;else if(D=="FALSE")E.t="b",E.v=!1;else if(!isNaN(S=Na(D)))E.t="n",d.cellText!==!1&&(E.w=D),E.v=S;else if(!isNaN(zi(D).getDate())||y&&D.match(y)){E.z=d.dateNF||Ue[14];var T=0;y&&D.match(y)&&(D=Yp(D,d.dateNF,D.match(y)||[]),T=1),d.cellDates?(E.t="d",E.v=Ir(D,T)):(E.t="n",E.v=ct(Ir(D,T))),d.cellText!==!1&&(E.w=ea(E.z,E.v instanceof Date?ct(E.v):E.v)),d.cellNF||delete E.z}else E.t="s",E.v=D;if(E.t=="z"||(d.dense?(x[p]||(x[p]=[]),x[p][m]=E):x[$e({c:m,r:p})]=E),g=w+1,R=f.charCodeAt(g),h.e.c<m&&(h.e.c=m),h.e.r<p&&(h.e.r=p),_==C)++m;else if(m=0,++p,d.sheetRows&&d.sheetRows<=p)return!0}e:for(;w<f.length;++w)switch(_=f.charCodeAt(w)){case 34:R===34&&(F=!F);break;case C:case 10:case 13:if(!F&&W())break e;break}return w-g>0&&W(),x["!ref"]=rr(h),x}function o(f,u){return!(u&&u.PRN)||u.FS||f.slice(0,4)=="sep="||f.indexOf(" ")>=0||f.indexOf(",")>=0||f.indexOf(";")>=0?i(f,u):so(r(f,u),u)}function s(f,u){var d="",v=u.type=="string"?[0,0,0,0]:F0(f,u);switch(u.type){case"base64":d=jt(f);break;case"binary":d=f;break;case"buffer":u.codepage==65001?d=f.toString("utf8"):u.codepage&&typeof Ja<"u"?d=Ja.utils.decode(u.codepage,f):d=Je&&Buffer.isBuffer(f)?f.toString("binary"):ln(f);break;case"array":d=Cn(f);break;case"string":d=f;break;default:throw new Error("Unrecognized type "+u.type)}return v[0]==239&&v[1]==187&&v[2]==191?d=br(d.slice(3)):u.type!="string"&&u.type!="buffer"&&u.codepage==65001?d=br(d):u.type=="binary"&&typeof Ja<"u"&&u.codepage&&(d=Ja.utils.decode(u.codepage,Ja.utils.encode(28591,d))),d.slice(0,19)=="socialcalc:version:"?bh.to_sheet(u.type=="string"?d:br(d),u):o(d,u)}function l(f,u){return Nn(s(f,u),u)}function c(f){for(var u=[],d=xr(f["!ref"]),v,x=Array.isArray(f),h=d.s.r;h<=d.e.r;++h){for(var p=[],m=d.s.c;m<=d.e.c;++m){var S=$e({r:h,c:m});if(v=x?(f[h]||[])[m]:f[S],!v||v.v==null){p.push(" ");continue}for(var g=(v.w||(tn(v),v.w)||"").slice(0,10);g.length<10;)g+=" ";p.push(g+(m===0?" ":""))}u.push(p.join(""))}return u.join(`
|
||
`)}return{to_workbook:l,to_sheet:s,from_sheet:c}}();function cy(e,r){var t=r||{},a=!!t.WTF;t.WTF=!0;try{var n=yh.to_workbook(e,t);return t.WTF=a,n}catch(i){if(t.WTF=a,!i.message.match(/SYLK bad record ID/)&&a)throw i;return ci.to_workbook(e,r)}}var _n=function(){function e(I,z,U){if(!!I){st(I,I.l||0);for(var V=U.Enum||X;I.l<I.length;){var q=I.read_shift(2),ee=V[q]||V[65535],Y=I.read_shift(2),J=I.l+Y,Q=ee.f&&ee.f(I,Y,U);if(I.l=J,z(Q,ee,q))return}}}function r(I,z){switch(z.type){case"base64":return t(Bt(jt(I)),z);case"binary":return t(Bt(I),z);case"buffer":case"array":return t(I,z)}throw"Unsupported type "+z.type}function t(I,z){if(!I)return I;var U=z||{},V=U.dense?[]:{},q="Sheet1",ee="",Y=0,J={},Q=[],ce=[],K={s:{r:0,c:0},e:{r:0,c:0}},Oe=U.sheetRows||0;if(I[2]==0&&(I[3]==8||I[3]==9)&&I.length>=16&&I[14]==5&&I[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(I[2]==2)U.Enum=X,e(I,function(ve,Ye,dr){switch(dr){case 0:U.vers=ve,ve>=4096&&(U.qpro=!0);break;case 6:K=ve;break;case 204:ve&&(ee=ve);break;case 222:ee=ve;break;case 15:case 51:U.qpro||(ve[1].v=ve[1].v.slice(1));case 13:case 14:case 16:dr==14&&(ve[2]&112)==112&&(ve[2]&15)>1&&(ve[2]&15)<15&&(ve[1].z=U.dateNF||Ue[14],U.cellDates&&(ve[1].t="d",ve[1].v=Ss(ve[1].v))),U.qpro&&ve[3]>Y&&(V["!ref"]=rr(K),J[q]=V,Q.push(q),V=U.dense?[]:{},K={s:{r:0,c:0},e:{r:0,c:0}},Y=ve[3],q=ee||"Sheet"+(Y+1),ee="");var hr=U.dense?(V[ve[0].r]||[])[ve[0].c]:V[$e(ve[0])];if(hr){hr.t=ve[1].t,hr.v=ve[1].v,ve[1].z!=null&&(hr.z=ve[1].z),ve[1].f!=null&&(hr.f=ve[1].f);break}U.dense?(V[ve[0].r]||(V[ve[0].r]=[]),V[ve[0].r][ve[0].c]=ve[1]):V[$e(ve[0])]=ve[1];break}},U);else if(I[2]==26||I[2]==14)U.Enum=Z,I[2]==14&&(U.qpro=!0,I.l=0),e(I,function(ve,Ye,dr){switch(dr){case 204:q=ve;break;case 22:ve[1].v=ve[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(ve[3]>Y&&(V["!ref"]=rr(K),J[q]=V,Q.push(q),V=U.dense?[]:{},K={s:{r:0,c:0},e:{r:0,c:0}},Y=ve[3],q="Sheet"+(Y+1)),Oe>0&&ve[0].r>=Oe)break;U.dense?(V[ve[0].r]||(V[ve[0].r]=[]),V[ve[0].r][ve[0].c]=ve[1]):V[$e(ve[0])]=ve[1],K.e.c<ve[0].c&&(K.e.c=ve[0].c),K.e.r<ve[0].r&&(K.e.r=ve[0].r);break;case 27:ve[14e3]&&(ce[ve[14e3][0]]=ve[14e3][1]);break;case 1537:ce[ve[0]]=ve[1],ve[0]==Y&&(q=ve[1]);break}},U);else throw new Error("Unrecognized LOTUS BOF "+I[2]);if(V["!ref"]=rr(K),J[ee||q]=V,Q.push(ee||q),!ce.length)return{SheetNames:Q,Sheets:J};for(var Ie={},Le=[],Pe=0;Pe<ce.length;++Pe)J[Q[Pe]]?(Le.push(ce[Pe]||Q[Pe]),Ie[ce[Pe]]=J[ce[Pe]]||J[Q[Pe]]):(Le.push(ce[Pe]),Ie[ce[Pe]]={"!ref":"A1"});return{SheetNames:Le,Sheets:Ie}}function a(I,z){var U=z||{};if(+U.codepage>=0&&ca(+U.codepage),U.type=="string")throw new Error("Cannot write WK1 to JS string");var V=Ot(),q=xr(I["!ref"]),ee=Array.isArray(I),Y=[];Ee(V,0,i(1030)),Ee(V,6,l(q));for(var J=Math.min(q.e.r,8191),Q=q.s.r;Q<=J;++Q)for(var ce=nt(Q),K=q.s.c;K<=q.e.c;++K){Q===q.s.r&&(Y[K]=Jr(K));var Oe=Y[K]+ce,Ie=ee?(I[Q]||[])[K]:I[Oe];if(!(!Ie||Ie.t=="z"))if(Ie.t=="n")(Ie.v|0)==Ie.v&&Ie.v>=-32768&&Ie.v<=32767?Ee(V,13,v(Q,K,Ie.v)):Ee(V,14,h(Q,K,Ie.v));else{var Le=tn(Ie);Ee(V,15,u(Q,K,Le.slice(0,239)))}}return Ee(V,1),V.end()}function n(I,z){var U=z||{};if(+U.codepage>=0&&ca(+U.codepage),U.type=="string")throw new Error("Cannot write WK3 to JS string");var V=Ot();Ee(V,0,o(I));for(var q=0,ee=0;q<I.SheetNames.length;++q)(I.Sheets[I.SheetNames[q]]||{})["!ref"]&&Ee(V,27,L(I.SheetNames[q],ee++));var Y=0;for(q=0;q<I.SheetNames.length;++q){var J=I.Sheets[I.SheetNames[q]];if(!(!J||!J["!ref"])){for(var Q=xr(J["!ref"]),ce=Array.isArray(J),K=[],Oe=Math.min(Q.e.r,8191),Ie=Q.s.r;Ie<=Oe;++Ie)for(var Le=nt(Ie),Pe=Q.s.c;Pe<=Q.e.c;++Pe){Ie===Q.s.r&&(K[Pe]=Jr(Pe));var ve=K[Pe]+Le,Ye=ce?(J[Ie]||[])[Pe]:J[ve];if(!(!Ye||Ye.t=="z"))if(Ye.t=="n")Ee(V,23,W(Ie,Pe,Y,Ye.v));else{var dr=tn(Ye);Ee(V,22,_(Ie,Pe,Y,dr.slice(0,239)))}}++Y}}return Ee(V,1),V.end()}function i(I){var z=se(2);return z.write_shift(2,I),z}function o(I){var z=se(26);z.write_shift(2,4096),z.write_shift(2,4),z.write_shift(4,0);for(var U=0,V=0,q=0,ee=0;ee<I.SheetNames.length;++ee){var Y=I.SheetNames[ee],J=I.Sheets[Y];if(!(!J||!J["!ref"])){++q;var Q=ra(J["!ref"]);U<Q.e.r&&(U=Q.e.r),V<Q.e.c&&(V=Q.e.c)}}return U>8191&&(U=8191),z.write_shift(2,U),z.write_shift(1,q),z.write_shift(1,V),z.write_shift(2,0),z.write_shift(2,0),z.write_shift(1,1),z.write_shift(1,2),z.write_shift(4,0),z.write_shift(4,0),z}function s(I,z,U){var V={s:{c:0,r:0},e:{c:0,r:0}};return z==8&&U.qpro?(V.s.c=I.read_shift(1),I.l++,V.s.r=I.read_shift(2),V.e.c=I.read_shift(1),I.l++,V.e.r=I.read_shift(2),V):(V.s.c=I.read_shift(2),V.s.r=I.read_shift(2),z==12&&U.qpro&&(I.l+=2),V.e.c=I.read_shift(2),V.e.r=I.read_shift(2),z==12&&U.qpro&&(I.l+=2),V.s.c==65535&&(V.s.c=V.e.c=V.s.r=V.e.r=0),V)}function l(I){var z=se(8);return z.write_shift(2,I.s.c),z.write_shift(2,I.s.r),z.write_shift(2,I.e.c),z.write_shift(2,I.e.r),z}function c(I,z,U){var V=[{c:0,r:0},{t:"n",v:0},0,0];return U.qpro&&U.vers!=20768?(V[0].c=I.read_shift(1),V[3]=I.read_shift(1),V[0].r=I.read_shift(2),I.l+=2):(V[2]=I.read_shift(1),V[0].c=I.read_shift(2),V[0].r=I.read_shift(2)),V}function f(I,z,U){var V=I.l+z,q=c(I,z,U);if(q[1].t="s",U.vers==20768){I.l++;var ee=I.read_shift(1);return q[1].v=I.read_shift(ee,"utf8"),q}return U.qpro&&I.l++,q[1].v=I.read_shift(V-I.l,"cstr"),q}function u(I,z,U){var V=se(7+U.length);V.write_shift(1,255),V.write_shift(2,z),V.write_shift(2,I),V.write_shift(1,39);for(var q=0;q<V.length;++q){var ee=U.charCodeAt(q);V.write_shift(1,ee>=128?95:ee)}return V.write_shift(1,0),V}function d(I,z,U){var V=c(I,z,U);return V[1].v=I.read_shift(2,"i"),V}function v(I,z,U){var V=se(7);return V.write_shift(1,255),V.write_shift(2,z),V.write_shift(2,I),V.write_shift(2,U,"i"),V}function x(I,z,U){var V=c(I,z,U);return V[1].v=I.read_shift(8,"f"),V}function h(I,z,U){var V=se(13);return V.write_shift(1,255),V.write_shift(2,z),V.write_shift(2,I),V.write_shift(8,U,"f"),V}function p(I,z,U){var V=I.l+z,q=c(I,z,U);if(q[1].v=I.read_shift(8,"f"),U.qpro)I.l=V;else{var ee=I.read_shift(2);w(I.slice(I.l,I.l+ee),q),I.l+=ee}return q}function m(I,z,U){var V=z&32768;return z&=-32769,z=(V?I:0)+(z>=8192?z-16384:z),(V?"":"$")+(U?Jr(z):nt(z))}var S={51:["FALSE",0],52:["TRUE",0],70:["LEN",1],80:["SUM",69],81:["AVERAGEA",69],82:["COUNTA",69],83:["MINA",69],84:["MAXA",69],111:["T",1]},g=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""];function w(I,z){st(I,0);for(var U=[],V=0,q="",ee="",Y="",J="";I.l<I.length;){var Q=I[I.l++];switch(Q){case 0:U.push(I.read_shift(8,"f"));break;case 1:ee=m(z[0].c,I.read_shift(2),!0),q=m(z[0].r,I.read_shift(2),!1),U.push(ee+q);break;case 2:{var ce=m(z[0].c,I.read_shift(2),!0),K=m(z[0].r,I.read_shift(2),!1);ee=m(z[0].c,I.read_shift(2),!0),q=m(z[0].r,I.read_shift(2),!1),U.push(ce+K+":"+ee+q)}break;case 3:if(I.l<I.length){console.error("WK1 premature formula end");return}break;case 4:U.push("("+U.pop()+")");break;case 5:U.push(I.read_shift(2));break;case 6:{for(var Oe="";Q=I[I.l++];)Oe+=String.fromCharCode(Q);U.push('"'+Oe.replace(/"/g,'""')+'"')}break;case 8:U.push("-"+U.pop());break;case 23:U.push("+"+U.pop());break;case 22:U.push("NOT("+U.pop()+")");break;case 20:case 21:J=U.pop(),Y=U.pop(),U.push(["AND","OR"][Q-20]+"("+Y+","+J+")");break;default:if(Q<32&&g[Q])J=U.pop(),Y=U.pop(),U.push(Y+g[Q]+J);else if(S[Q]){if(V=S[Q][1],V==69&&(V=I[I.l++]),V>U.length){console.error("WK1 bad formula parse 0x"+Q.toString(16)+":|"+U.join("|")+"|");return}var Ie=U.slice(-V);U.length-=V,U.push(S[Q][0]+"("+Ie.join(",")+")")}else return Q<=7?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=24?console.error("WK1 unsupported op "+Q.toString(16)):Q<=30?console.error("WK1 invalid opcode "+Q.toString(16)):Q<=115?console.error("WK1 unsupported function opcode "+Q.toString(16)):console.error("WK1 unrecognized opcode "+Q.toString(16))}}U.length==1?z[1].f=""+U[0]:console.error("WK1 bad formula parse |"+U.join("|")+"|")}function C(I){var z=[{c:0,r:0},{t:"n",v:0},0];return z[0].r=I.read_shift(2),z[3]=I[I.l++],z[0].c=I[I.l++],z}function F(I,z){var U=C(I);return U[1].t="s",U[1].v=I.read_shift(z-4,"cstr"),U}function _(I,z,U,V){var q=se(6+V.length);q.write_shift(2,I),q.write_shift(1,U),q.write_shift(1,z),q.write_shift(1,39);for(var ee=0;ee<V.length;++ee){var Y=V.charCodeAt(ee);q.write_shift(1,Y>=128?95:Y)}return q.write_shift(1,0),q}function R(I,z){var U=C(I);U[1].v=I.read_shift(2);var V=U[1].v>>1;if(U[1].v&1)switch(V&7){case 0:V=(V>>3)*5e3;break;case 1:V=(V>>3)*500;break;case 2:V=(V>>3)/20;break;case 3:V=(V>>3)/200;break;case 4:V=(V>>3)/2e3;break;case 5:V=(V>>3)/2e4;break;case 6:V=(V>>3)/16;break;case 7:V=(V>>3)/64;break}return U[1].v=V,U}function y(I,z){var U=C(I),V=I.read_shift(4),q=I.read_shift(4),ee=I.read_shift(2);if(ee==65535)return V===0&&q===3221225472?(U[1].t="e",U[1].v=15):V===0&&q===3489660928?(U[1].t="e",U[1].v=42):U[1].v=0,U;var Y=ee&32768;return ee=(ee&32767)-16446,U[1].v=(1-Y*2)*(q*Math.pow(2,ee+32)+V*Math.pow(2,ee)),U}function W(I,z,U,V){var q=se(14);if(q.write_shift(2,I),q.write_shift(1,U),q.write_shift(1,z),V==0)return q.write_shift(4,0),q.write_shift(4,0),q.write_shift(2,65535),q;var ee=0,Y=0,J=0,Q=0;return V<0&&(ee=1,V=-V),Y=Math.log2(V)|0,V/=Math.pow(2,Y-31),Q=V>>>0,(Q&2147483648)==0&&(V/=2,++Y,Q=V>>>0),V-=Q,Q|=2147483648,Q>>>=0,V*=Math.pow(2,32),J=V>>>0,q.write_shift(4,J),q.write_shift(4,Q),Y+=16383+(ee?32768:0),q.write_shift(2,Y),q}function D(I,z){var U=y(I);return I.l+=z-14,U}function E(I,z){var U=C(I),V=I.read_shift(4);return U[1].v=V>>6,U}function T(I,z){var U=C(I),V=I.read_shift(8,"f");return U[1].v=V,U}function A(I,z){var U=T(I);return I.l+=z-10,U}function b(I,z){return I[I.l+z-1]==0?I.read_shift(z,"cstr"):""}function O(I,z){var U=I[I.l++];U>z-1&&(U=z-1);for(var V="";V.length<U;)V+=String.fromCharCode(I[I.l++]);return V}function N(I,z,U){if(!(!U.qpro||z<21)){var V=I.read_shift(1);I.l+=17,I.l+=1,I.l+=2;var q=I.read_shift(z-21,"cstr");return[V,q]}}function G(I,z){for(var U={},V=I.l+z;I.l<V;){var q=I.read_shift(2);if(q==14e3){for(U[q]=[0,""],U[q][0]=I.read_shift(2);I[I.l];)U[q][1]+=String.fromCharCode(I[I.l]),I.l++;I.l++}}return U}function L(I,z){var U=se(5+I.length);U.write_shift(2,14e3),U.write_shift(2,z);for(var V=0;V<I.length;++V){var q=I.charCodeAt(V);U[U.l++]=q>127?95:q}return U[U.l++]=0,U}var X={0:{n:"BOF",f:Yr},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:s},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:d},14:{n:"NUMBER",f:x},15:{n:"LABEL",f},16:{n:"FORMULA",f:p},24:{n:"TABLE"},25:{n:"ORANGE"},26:{n:"PRANGE"},27:{n:"SRANGE"},28:{n:"FRANGE"},29:{n:"KRANGE1"},32:{n:"HRANGE"},35:{n:"KRANGE2"},36:{n:"PROTEC"},37:{n:"FOOTER"},38:{n:"HEADER"},39:{n:"SETUP"},40:{n:"MARGINS"},41:{n:"LABELFMT"},42:{n:"TITLES"},43:{n:"SHEETJS"},45:{n:"GRAPH"},46:{n:"NGRAPH"},47:{n:"CALCCOUNT"},48:{n:"UNFORMATTED"},49:{n:"CURSORW12"},50:{n:"WINDOW"},51:{n:"STRING",f},55:{n:"PASSWORD"},56:{n:"LOCKED"},60:{n:"QUERY"},61:{n:"QUERYNAME"},62:{n:"PRINT"},63:{n:"PRINTNAME"},64:{n:"GRAPH2"},65:{n:"GRAPHNAME"},66:{n:"ZOOM"},67:{n:"SYMSPLIT"},68:{n:"NSROWS"},69:{n:"NSCOLS"},70:{n:"RULER"},71:{n:"NNAME"},72:{n:"ACOMM"},73:{n:"AMACRO"},74:{n:"PARSE"},102:{n:"PRANGES??"},103:{n:"RRANGES??"},104:{n:"FNAME??"},105:{n:"MRANGES??"},204:{n:"SHEETNAMECS",f:b},222:{n:"SHEETNAMELP",f:O},65535:{n:""}},Z={0:{n:"BOF"},1:{n:"EOF"},2:{n:"PASSWORD"},3:{n:"CALCSET"},4:{n:"WINDOWSET"},5:{n:"SHEETCELLPTR"},6:{n:"SHEETLAYOUT"},7:{n:"COLUMNWIDTH"},8:{n:"HIDDENCOLUMN"},9:{n:"USERRANGE"},10:{n:"SYSTEMRANGE"},11:{n:"ZEROFORCE"},12:{n:"SORTKEYDIR"},13:{n:"FILESEAL"},14:{n:"DATAFILLNUMS"},15:{n:"PRINTMAIN"},16:{n:"PRINTSTRING"},17:{n:"GRAPHMAIN"},18:{n:"GRAPHSTRING"},19:{n:"??"},20:{n:"ERRCELL"},21:{n:"NACELL"},22:{n:"LABEL16",f:F},23:{n:"NUMBER17",f:y},24:{n:"NUMBER18",f:R},25:{n:"FORMULA19",f:D},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:G},28:{n:"DTLABELMISC"},29:{n:"DTLABELCELL"},30:{n:"GRAPHWINDOW"},31:{n:"CPA"},32:{n:"LPLAUTO"},33:{n:"QUERY"},34:{n:"HIDDENSHEET"},35:{n:"??"},37:{n:"NUMBER25",f:E},38:{n:"??"},39:{n:"NUMBER27",f:T},40:{n:"FORMULA28",f:A},142:{n:"??"},147:{n:"??"},150:{n:"??"},151:{n:"??"},152:{n:"??"},153:{n:"??"},154:{n:"??"},155:{n:"??"},156:{n:"??"},163:{n:"??"},174:{n:"??"},175:{n:"??"},176:{n:"??"},177:{n:"??"},184:{n:"??"},185:{n:"??"},186:{n:"??"},187:{n:"??"},188:{n:"??"},195:{n:"??"},201:{n:"??"},204:{n:"SHEETNAMECS",f:b},205:{n:"??"},206:{n:"??"},207:{n:"??"},208:{n:"??"},256:{n:"??"},259:{n:"??"},260:{n:"??"},261:{n:"??"},262:{n:"??"},263:{n:"??"},265:{n:"??"},266:{n:"??"},267:{n:"??"},268:{n:"??"},270:{n:"??"},271:{n:"??"},384:{n:"??"},389:{n:"??"},390:{n:"??"},393:{n:"??"},396:{n:"??"},512:{n:"??"},514:{n:"??"},513:{n:"??"},516:{n:"??"},517:{n:"??"},640:{n:"??"},641:{n:"??"},642:{n:"??"},643:{n:"??"},644:{n:"??"},645:{n:"??"},646:{n:"??"},647:{n:"??"},648:{n:"??"},658:{n:"??"},659:{n:"??"},660:{n:"??"},661:{n:"??"},662:{n:"??"},665:{n:"??"},666:{n:"??"},768:{n:"??"},772:{n:"??"},1537:{n:"SHEETINFOQP",f:N},1600:{n:"??"},1602:{n:"??"},1793:{n:"??"},1794:{n:"??"},1795:{n:"??"},1796:{n:"??"},1920:{n:"??"},2048:{n:"??"},2049:{n:"??"},2052:{n:"??"},2688:{n:"??"},10998:{n:"??"},12849:{n:"??"},28233:{n:"??"},28484:{n:"??"},65535:{n:""}};return{sheet_to_wk1:a,book_to_wk3:n,to_workbook:r}}();function fy(e){var r={},t=e.match(wt),a=0,n=!1;if(t)for(;a!=t.length;++a){var i=He(t[a]);switch(i[0].replace(/\w*:/g,"")){case"<condense":break;case"<extend":break;case"<shadow":if(!i.val)break;case"<shadow>":case"<shadow/>":r.shadow=1;break;case"</shadow>":break;case"<charset":if(i.val=="1")break;r.cp=Gl[parseInt(i.val,10)];break;case"<outline":if(!i.val)break;case"<outline>":case"<outline/>":r.outline=1;break;case"</outline>":break;case"<rFont":r.name=i.val;break;case"<sz":r.sz=i.val;break;case"<strike":if(!i.val)break;case"<strike>":case"<strike/>":r.strike=1;break;case"</strike>":break;case"<u":if(!i.val)break;switch(i.val){case"double":r.uval="double";break;case"singleAccounting":r.uval="single-accounting";break;case"doubleAccounting":r.uval="double-accounting";break}case"<u>":case"<u/>":r.u=1;break;case"</u>":break;case"<b":if(i.val=="0")break;case"<b>":case"<b/>":r.b=1;break;case"</b>":break;case"<i":if(i.val=="0")break;case"<i>":case"<i/>":r.i=1;break;case"</i>":break;case"<color":i.rgb&&(r.color=i.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":r.family=i.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":r.valign=i.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":break;case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(i[0].charCodeAt(1)!==47&&!n)throw new Error("Unrecognized rich format "+i[0])}}return r}var uy=function(){var e=$i("t"),r=$i("rPr");function t(i){var o=i.match(e);if(!o)return{t:"s",v:""};var s={t:"s",v:ir(o[1])},l=i.match(r);return l&&(s.s=fy(l[1])),s}var a=/<(?:\w+:)?r>/g,n=/<\/(?:\w+:)?r>/;return function(o){return o.replace(a,"").split(n).map(t).filter(function(s){return s.v})}}(),dy=function(){var r=/(\r\n|\n)/g;function t(n,i,o){var s=[];n.u&&s.push("text-decoration: underline;"),n.uval&&s.push("text-underline-style:"+n.uval+";"),n.sz&&s.push("font-size:"+n.sz+"pt;"),n.outline&&s.push("text-effect: outline;"),n.shadow&&s.push("text-shadow: auto;"),i.push('<span style="'+s.join("")+'">'),n.b&&(i.push("<b>"),o.push("</b>")),n.i&&(i.push("<i>"),o.push("</i>")),n.strike&&(i.push("<s>"),o.push("</s>"));var l=n.valign||"";return l=="superscript"||l=="super"?l="sup":l=="subscript"&&(l="sub"),l!=""&&(i.push("<"+l+">"),o.push("</"+l+">")),o.push("</span>"),n}function a(n){var i=[[],n.v,[]];return n.v?(n.s&&t(n.s,i[0],i[2]),i[0].join("")+i[1].replace(r,"<br/>")+i[2].join("")):""}return function(i){return i.map(a).join("")}}(),hy=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,vy=/<(?:\w+:)?r>/,xy=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function x0(e,r){var t=r?r.cellHTML:!0,a={};return e?(e.match(/^\s*<(?:\w+:)?t[^>]*>/)?(a.t=ir(br(e.slice(e.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),a.r=br(e),t&&(a.h=a0(a.t))):e.match(vy)&&(a.r=br(e),a.t=ir(br((e.replace(xy,"").match(hy)||[]).join("").replace(wt,""))),t&&(a.h=dy(uy(a.r)))),a):{t:""}}var gy=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,py=/<(?:\w+:)?(?:si|sstItem)>/g,my=/<\/(?:\w+:)?(?:si|sstItem)>/;function wy(e,r){var t=[],a="";if(!e)return t;var n=e.match(gy);if(n){a=n[2].replace(py,"").split(my);for(var i=0;i!=a.length;++i){var o=x0(a[i].trim(),r);o!=null&&(t[t.length]=o)}n=He(n[1]),t.Count=n.count,t.Unique=n.uniqueCount}return t}var yy=/^\s|\s$|[\t\n\r]/;function Sh(e,r){if(!r.bookSST)return"";var t=[Vr];t[t.length]=Se("sst",null,{xmlns:Pn[0],count:e.Count,uniqueCount:e.Unique});for(var a=0;a!=e.length;++a)if(e[a]!=null){var n=e[a],i="<si>";n.r?i+=n.r:(i+="<t",n.t||(n.t=""),n.t.match(yy)&&(i+=' xml:space="preserve"'),i+=">"+mr(n.t)+"</t>"),i+="</si>",t[t.length]=i}return t.length>2&&(t[t.length]="</sst>",t[1]=t[1].replace("/>",">")),t.join("")}function _y(e){return[e.read_shift(4),e.read_shift(4)]}function by(e,r){var t=[],a=!1;return Ha(e,function(i,o,s){switch(s){case 159:t.Count=i[0],t.Unique=i[1];break;case 19:t.push(i);break;case 160:return!0;case 35:a=!0;break;case 36:a=!1;break;default:if(o.T,!a||r.WTF)throw new Error("Unexpected record 0x"+s.toString(16))}}),t}function Sy(e,r){return r||(r=se(8)),r.write_shift(4,e.Count),r.write_shift(4,e.Unique),r}var Ey=Pm;function Cy(e){var r=Ot();he(r,159,Sy(e));for(var t=0;t<e.length;++t)he(r,19,Ey(e[t]));return he(r,160),r.end()}function Eh(e){for(var r=[],t=e.split(""),a=0;a<t.length;++a)r[a]=t[a].charCodeAt(0);return r}function La(e,r){var t={};return t.Major=e.read_shift(2),t.Minor=e.read_shift(2),r>=4&&(e.l+=r-4),t}function Ty(e){var r={};return r.id=e.read_shift(0,"lpp4"),r.R=La(e,4),r.U=La(e,4),r.W=La(e,4),r}function ky(e){for(var r=e.read_shift(4),t=e.l+r-4,a={},n=e.read_shift(4),i=[];n-- >0;)i.push({t:e.read_shift(4),v:e.read_shift(0,"lpp4")});if(a.name=e.read_shift(0,"lpp4"),a.comps=i,e.l!=t)throw new Error("Bad DataSpaceMapEntry: "+e.l+" != "+t);return a}function Fy(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(ky(e));return r}function Ay(e){var r=[];e.l+=4;for(var t=e.read_shift(4);t-- >0;)r.push(e.read_shift(0,"lpp4"));return r}function Oy(e){var r={};return e.read_shift(4),e.l+=4,r.id=e.read_shift(0,"lpp4"),r.name=e.read_shift(0,"lpp4"),r.R=La(e,4),r.U=La(e,4),r.W=La(e,4),r}function Dy(e){var r=Oy(e);if(r.ename=e.read_shift(0,"8lpp4"),r.blksz=e.read_shift(4),r.cmode=e.read_shift(4),e.read_shift(4)!=4)throw new Error("Bad !Primary record");return r}function Ch(e,r){var t=e.l+r,a={};a.Flags=e.read_shift(4)&63,e.l+=4,a.AlgID=e.read_shift(4);var n=!1;switch(a.AlgID){case 26126:case 26127:case 26128:n=a.Flags==36;break;case 26625:n=a.Flags==4;break;case 0:n=a.Flags==16||a.Flags==4||a.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+a.AlgID}if(!n)throw new Error("Encryption Flags/AlgID mismatch");return a.AlgIDHash=e.read_shift(4),a.KeySize=e.read_shift(4),a.ProviderType=e.read_shift(4),e.l+=8,a.CSPName=e.read_shift(t-e.l>>1,"utf16le"),e.l=t,a}function Th(e,r){var t={},a=e.l+r;return e.l+=4,t.Salt=e.slice(e.l,e.l+16),e.l+=16,t.Verifier=e.slice(e.l,e.l+16),e.l+=16,e.read_shift(4),t.VerifierHash=e.slice(e.l,a),e.l=a,t}function Ry(e){var r=La(e);switch(r.Minor){case 2:return[r.Minor,Iy(e)];case 3:return[r.Minor,Py()];case 4:return[r.Minor,Ny(e)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+r.Minor)}function Iy(e){var r=e.read_shift(4);if((r&63)!=36)throw new Error("EncryptionInfo mismatch");var t=e.read_shift(4),a=Ch(e,t),n=Th(e,e.length-e.l);return{t:"Std",h:a,v:n}}function Py(){throw new Error("File is password-protected: ECMA-376 Extensible")}function Ny(e){var r=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];e.l+=4;var t=e.read_shift(e.length-e.l,"utf8"),a={};return t.replace(wt,function(i){var o=He(i);switch(Ea(o[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":r.forEach(function(s){a[s]=o[s]});break;case"<dataIntegrity":a.encryptedHmacKey=o.encryptedHmacKey,a.encryptedHmacValue=o.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":a.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":a.uri=o.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":a.encs.push(o);break;default:throw o[0]}}),a}function Ly(e,r){var t={},a=t.EncryptionVersionInfo=La(e,4);if(r-=4,a.Minor!=2)throw new Error("unrecognized minor version code: "+a.Minor);if(a.Major>4||a.Major<2)throw new Error("unrecognized major version code: "+a.Major);t.Flags=e.read_shift(4),r-=4;var n=e.read_shift(4);return r-=4,t.EncryptionHeader=Ch(e,n),r-=n,t.EncryptionVerifier=Th(e,r),t}function By(e){var r={},t=r.EncryptionVersionInfo=La(e,4);if(t.Major!=1||t.Minor!=1)throw"unrecognized version code "+t.Major+" : "+t.Minor;return r.Salt=e.read_shift(16),r.EncryptedVerifier=e.read_shift(16),r.EncryptedVerifierHash=e.read_shift(16),r}function g0(e){var r=0,t,a=Eh(e),n=a.length+1,i,o,s,l,c;for(t=rn(n),t[0]=a.length,i=1;i!=n;++i)t[i]=a[i-1];for(i=n-1;i>=0;--i)o=t[i],s=(r&16384)===0?0:1,l=r<<1&32767,c=s|l,r=c^o;return r^52811}var kh=function(){var e=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],r=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],t=[44796,19929,39858,10053,20106,40212,10761,31585,63170,64933,60267,50935,40399,11199,17763,35526,1453,2906,5812,11624,23248,885,1770,3540,7080,14160,28320,56640,55369,41139,20807,41614,21821,43642,17621,28485,56970,44341,19019,38038,14605,29210,60195,50791,40175,10751,21502,43004,24537,18387,36774,3949,7898,15796,31592,63184,47201,24803,49606,37805,14203,28406,56812,17824,35648,1697,3394,6788,13576,27152,43601,17539,35078,557,1114,2228,4456,30388,60776,51953,34243,7079,14158,28316,14128,28256,56512,43425,17251,34502,7597,13105,26210,52420,35241,883,1766,3532,4129,8258,16516,33032,4657,9314,18628],a=function(o){return(o/2|o*128)&255},n=function(o,s){return a(o^s)},i=function(o){for(var s=r[o.length-1],l=104,c=o.length-1;c>=0;--c)for(var f=o[c],u=0;u!=7;++u)f&64&&(s^=t[l]),f*=2,--l;return s};return function(o){for(var s=Eh(o),l=i(s),c=s.length,f=rn(16),u=0;u!=16;++u)f[u]=0;var d,v,x;for((c&1)===1&&(d=l>>8,f[c]=n(e[0],d),--c,d=l&255,v=s[s.length-1],f[c]=n(v,d));c>0;)--c,d=l>>8,f[c]=n(s[c],d),--c,d=l&255,f[c]=n(s[c],d);for(c=15,x=15-s.length;x>0;)d=l>>8,f[c]=n(e[x],d),--c,--x,d=l&255,f[c]=n(s[c],d),--c,--x;return f}}(),My=function(e,r,t,a,n){n||(n=r),a||(a=kh(e));var i,o;for(i=0;i!=r.length;++i)o=r[i],o^=a[t],o=(o>>5|o<<3)&255,n[i]=o,++t;return[n,t,a]},Ky=function(e){var r=0,t=kh(e);return function(a){var n=My("",a,r,t);return r=n[1],n[0]}};function jy(e,r,t,a){var n={key:Yr(e),verificationBytes:Yr(e)};return t.password&&(n.verifier=g0(t.password)),a.valid=n.verificationBytes===n.verifier,a.valid&&(a.insitu=Ky(t.password)),n}function Wy(e,r,t){var a=t||{};return a.Info=e.read_shift(2),e.l-=2,a.Info===1?a.Data=By(e):a.Data=Ly(e,r),a}function Uy(e,r,t){var a={Type:t.biff>=8?e.read_shift(2):0};return a.Type?Wy(e,r-2,a):jy(e,t.biff>=8?r:r-2,t,a),a}var Fh=function(){function e(n,i){switch(i.type){case"base64":return r(jt(n),i);case"binary":return r(n,i);case"buffer":return r(Je&&Buffer.isBuffer(n)?n.toString("binary"):ln(n),i);case"array":return r(Cn(n),i)}throw new Error("Unrecognized type "+i.type)}function r(n,i){var o=i||{},s=o.dense?[]:{},l=n.match(/\\trowd.*?\\row\b/g);if(!l.length)throw new Error("RTF missing table");var c={s:{c:0,r:0},e:{c:0,r:l.length-1}};return l.forEach(function(f,u){Array.isArray(s)&&(s[u]=[]);for(var d=/\\\w+\b/g,v=0,x,h=-1;x=d.exec(f);){switch(x[0]){case"\\cell":var p=f.slice(v,d.lastIndex-x[0].length);if(p[0]==" "&&(p=p.slice(1)),++h,p.length){var m={v:p,t:"s"};Array.isArray(s)?s[u][h]=m:s[$e({r:u,c:h})]=m}break}v=d.lastIndex}h>c.e.c&&(c.e.c=h)}),s["!ref"]=rr(c),s}function t(n,i){return Nn(e(n,i),i)}function a(n){for(var i=["{\\rtf1\\ansi"],o=xr(n["!ref"]),s,l=Array.isArray(n),c=o.s.r;c<=o.e.r;++c){i.push("\\trowd\\trautofit1");for(var f=o.s.c;f<=o.e.c;++f)i.push("\\cellx"+(f+1));for(i.push("\\pard\\intbl"),f=o.s.c;f<=o.e.c;++f){var u=$e({r:c,c:f});s=l?(n[c]||[])[f]:n[u],!(!s||s.v==null&&(!s.f||s.F))&&(i.push(" "+(s.w||(tn(s),s.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}return{to_workbook:t,to_sheet:e,from_sheet:a}}();function Hy(e){var r=e.slice(e[0]==="#"?1:0).slice(0,6);return[parseInt(r.slice(0,2),16),parseInt(r.slice(2,4),16),parseInt(r.slice(4,6),16)]}function qi(e){for(var r=0,t=1;r!=3;++r)t=t*256+(e[r]>255?255:e[r]<0?0:e[r]);return t.toString(16).toUpperCase().slice(1)}function Vy(e){var r=e[0]/255,t=e[1]/255,a=e[2]/255,n=Math.max(r,t,a),i=Math.min(r,t,a),o=n-i;if(o===0)return[0,0,r];var s=0,l=0,c=n+i;switch(l=o/(c>1?2-c:c),n){case r:s=((t-a)/o+6)%6;break;case t:s=(a-r)/o+2;break;case a:s=(r-t)/o+4;break}return[s/6,l,c/2]}function zy(e){var r=e[0],t=e[1],a=e[2],n=t*2*(a<.5?a:1-a),i=a-n/2,o=[i,i,i],s=6*r,l;if(t!==0)switch(s|0){case 0:case 6:l=n*s,o[0]+=n,o[1]+=l;break;case 1:l=n*(2-s),o[0]+=l,o[1]+=n;break;case 2:l=n*(s-2),o[1]+=n,o[2]+=l;break;case 3:l=n*(4-s),o[1]+=l,o[2]+=n;break;case 4:l=n*(s-4),o[2]+=n,o[0]+=l;break;case 5:l=n*(6-s),o[2]+=l,o[0]+=n;break}for(var c=0;c!=3;++c)o[c]=Math.round(o[c]*255);return o}function ds(e,r){if(r===0)return e;var t=Vy(Hy(e));return r<0?t[2]=t[2]*(1+r):t[2]=1-(1-t[2])*(1-r),qi(zy(t))}var Ah=6,$y=15,Gy=1,xt=Ah;function Ji(e){return Math.floor((e+Math.round(128/xt)/256)*xt)}function Zi(e){return Math.floor((e-5)/xt*100+.5)/100}function hs(e){return Math.round((e*xt+5)/xt*256)/256}function Js(e){return hs(Zi(Ji(e)))}function p0(e){var r=Math.abs(e-Js(e)),t=xt;if(r>.005)for(xt=Gy;xt<$y;++xt)Math.abs(e-Js(e))<=r&&(r=Math.abs(e-Js(e)),t=xt);xt=t}function an(e){e.width?(e.wpx=Ji(e.width),e.wch=Zi(e.wpx),e.MDW=xt):e.wpx?(e.wch=Zi(e.wpx),e.width=hs(e.wch),e.MDW=xt):typeof e.wch=="number"&&(e.width=hs(e.wch),e.wpx=Ji(e.width),e.MDW=xt),e.customWidth&&delete e.customWidth}var Xy=96,Oh=Xy;function Qi(e){return e*96/Oh}function fi(e){return e*Oh/96}var Yy={None:"none",Solid:"solid",Gray50:"mediumGray",Gray75:"darkGray",Gray25:"lightGray",HorzStripe:"darkHorizontal",VertStripe:"darkVertical",ReverseDiagStripe:"darkDown",DiagStripe:"darkUp",DiagCross:"darkGrid",ThickDiagCross:"darkTrellis",ThinHorzStripe:"lightHorizontal",ThinVertStripe:"lightVertical",ThinReverseDiagStripe:"lightDown",ThinHorzCross:"lightGrid"};function qy(e,r,t,a){r.Borders=[];var n={},i=!1;(e[0].match(wt)||[]).forEach(function(o){var s=He(o);switch(Ea(s[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":n={},s.diagonalUp&&(n.diagonalUp=Ar(s.diagonalUp)),s.diagonalDown&&(n.diagonalDown=Ar(s.diagonalDown)),r.Borders.push(n);break;case"</border>":break;case"<left/>":break;case"<left":case"<left>":break;case"</left>":break;case"<right/>":break;case"<right":case"<right>":break;case"</right>":break;case"<top/>":break;case"<top":case"<top>":break;case"</top>":break;case"<bottom/>":break;case"<bottom":case"<bottom>":break;case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":break;case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":break;case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":break;case"</vertical>":break;case"<start":case"<start>":case"<start/>":break;case"</start>":break;case"<end":case"<end>":case"<end/>":break;case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+s[0]+" in borders")}})}function Jy(e,r,t,a){r.Fills=[];var n={},i=!1;(e[0].match(wt)||[]).forEach(function(o){var s=He(o);switch(Ea(s[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":n={},r.Fills.push(n);break;case"</fill>":break;case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":r.Fills.push(n),n={};break;case"<patternFill":case"<patternFill>":s.patternType&&(n.patternType=s.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":n.bgColor||(n.bgColor={}),s.indexed&&(n.bgColor.indexed=parseInt(s.indexed,10)),s.theme&&(n.bgColor.theme=parseInt(s.theme,10)),s.tint&&(n.bgColor.tint=parseFloat(s.tint)),s.rgb&&(n.bgColor.rgb=s.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":n.fgColor||(n.fgColor={}),s.theme&&(n.fgColor.theme=parseInt(s.theme,10)),s.tint&&(n.fgColor.tint=parseFloat(s.tint)),s.rgb!=null&&(n.fgColor.rgb=s.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":break;case"</stop>":break;case"<color":case"<color/>":break;case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fills")}})}function Zy(e,r,t,a){r.Fonts=[];var n={},i=!1;(e[0].match(wt)||[]).forEach(function(o){var s=He(o);switch(Ea(s[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":r.Fonts.push(n),n={};break;case"<name":s.val&&(n.name=br(s.val));break;case"<name/>":case"</name>":break;case"<b":n.bold=s.val?Ar(s.val):1;break;case"<b/>":n.bold=1;break;case"<i":n.italic=s.val?Ar(s.val):1;break;case"<i/>":n.italic=1;break;case"<u":switch(s.val){case"none":n.underline=0;break;case"single":n.underline=1;break;case"double":n.underline=2;break;case"singleAccounting":n.underline=33;break;case"doubleAccounting":n.underline=34;break}break;case"<u/>":n.underline=1;break;case"<strike":n.strike=s.val?Ar(s.val):1;break;case"<strike/>":n.strike=1;break;case"<outline":n.outline=s.val?Ar(s.val):1;break;case"<outline/>":n.outline=1;break;case"<shadow":n.shadow=s.val?Ar(s.val):1;break;case"<shadow/>":n.shadow=1;break;case"<condense":n.condense=s.val?Ar(s.val):1;break;case"<condense/>":n.condense=1;break;case"<extend":n.extend=s.val?Ar(s.val):1;break;case"<extend/>":n.extend=1;break;case"<sz":s.val&&(n.sz=+s.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":s.val&&(n.vertAlign=s.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":s.val&&(n.family=parseInt(s.val,10));break;case"<family/>":case"</family>":break;case"<scheme":s.val&&(n.scheme=s.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(s.val=="1")break;s.codepage=Gl[parseInt(s.val,10)];break;case"<color":if(n.color||(n.color={}),s.auto&&(n.color.auto=Ar(s.auto)),s.rgb)n.color.rgb=s.rgb.slice(-6);else if(s.indexed){n.color.index=parseInt(s.indexed,10);var l=wn[n.color.index];n.color.index==81&&(l=wn[1]),l||(l=wn[1]),n.color.rgb=l[0].toString(16)+l[1].toString(16)+l[2].toString(16)}else s.theme&&(n.color.theme=parseInt(s.theme,10),s.tint&&(n.color.tint=parseFloat(s.tint)),s.theme&&t.themeElements&&t.themeElements.clrScheme&&(n.color.rgb=ds(t.themeElements.clrScheme[n.color.theme].rgb,n.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":i=!0;break;case"</AlternateContent>":i=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":i=!0;break;case"</ext>":i=!1;break;default:if(a&&a.WTF&&!i)throw new Error("unrecognized "+s[0]+" in fonts")}})}function Qy(e,r,t){r.NumberFmt=[];for(var a=Hr(Ue),n=0;n<a.length;++n)r.NumberFmt[a[n]]=Ue[a[n]];var i=e[0].match(wt);if(!!i)for(n=0;n<i.length;++n){var o=He(i[n]);switch(Ea(o[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":{var s=ir(br(o.formatCode)),l=parseInt(o.numFmtId,10);if(r.NumberFmt[l]=s,l>0){if(l>392){for(l=392;l>60&&r.NumberFmt[l]!=null;--l);r.NumberFmt[l]=s}Pa(s,l)}}break;case"</numFmt>":break;default:if(t.WTF)throw new Error("unrecognized "+o[0]+" in numFmts")}}}function e_(e){var r=["<numFmts>"];return[[5,8],[23,26],[41,44],[50,392]].forEach(function(t){for(var a=t[0];a<=t[1];++a)e[a]!=null&&(r[r.length]=Se("numFmt",null,{numFmtId:a,formatCode:mr(e[a])}))}),r.length===1?"":(r[r.length]="</numFmts>",r[0]=Se("numFmts",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var No=["numFmtId","fillId","fontId","borderId","xfId"],Lo=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"];function r_(e,r,t){r.CellXf=[];var a,n=!1;(e[0].match(wt)||[]).forEach(function(i){var o=He(i),s=0;switch(Ea(o[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(a=o,delete a[0],s=0;s<No.length;++s)a[No[s]]&&(a[No[s]]=parseInt(a[No[s]],10));for(s=0;s<Lo.length;++s)a[Lo[s]]&&(a[Lo[s]]=Ar(a[Lo[s]]));if(r.NumberFmt&&a.numFmtId>392){for(s=392;s>60;--s)if(r.NumberFmt[a.numFmtId]==r.NumberFmt[s]){a.numFmtId=s;break}}r.CellXf.push(a);break;case"</xf>":break;case"<alignment":case"<alignment/>":var l={};o.vertical&&(l.vertical=o.vertical),o.horizontal&&(l.horizontal=o.horizontal),o.textRotation!=null&&(l.textRotation=o.textRotation),o.indent&&(l.indent=o.indent),o.wrapText&&(l.wrapText=Ar(o.wrapText)),a.alignment=l;break;case"</alignment>":break;case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":n=!0;break;case"</AlternateContent>":n=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;default:if(t&&t.WTF&&!n)throw new Error("unrecognized "+o[0]+" in cellXfs")}})}function t_(e){var r=[];return r[r.length]=Se("cellXfs",null),e.forEach(function(t){r[r.length]=Se("xf",null,t)}),r[r.length]="</cellXfs>",r.length===2?"":(r[0]=Se("cellXfs",null,{count:r.length-2}).replace("/>",">"),r.join(""))}var a_=function(){var r=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,t=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,a=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,n=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,i=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/;return function(s,l,c){var f={};if(!s)return f;s=s.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");var u;return(u=s.match(r))&&Qy(u,f,c),(u=s.match(n))&&Zy(u,f,l,c),(u=s.match(a))&&Jy(u,f,l,c),(u=s.match(i))&&qy(u,f,l,c),(u=s.match(t))&&r_(u,f,c),f}}();function Dh(e,r){var t=[Vr,Se("styleSheet",null,{xmlns:Pn[0],"xmlns:vt":Qr.vt})],a;return e.SSF&&(a=e_(e.SSF))!=null&&(t[t.length]=a),t[t.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',t[t.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',t[t.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',t[t.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',(a=t_(r.cellXfs))&&(t[t.length]=a),t[t.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',t[t.length]='<dxfs count="0"/>',t[t.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',t.length>2&&(t[t.length]="</styleSheet>",t[1]=t[1].replace("/>",">")),t.join("")}function n_(e,r){var t=e.read_shift(2),a=pt(e);return[t,a]}function i_(e,r,t){t||(t=se(6+4*r.length)),t.write_shift(2,e),at(r,t);var a=t.length>t.l?t.slice(0,t.l):t;return t.l==null&&(t.l=t.length),a}function o_(e,r,t){var a={};a.sz=e.read_shift(2)/20;var n=Wm(e);n.fItalic&&(a.italic=1),n.fCondense&&(a.condense=1),n.fExtend&&(a.extend=1),n.fShadow&&(a.shadow=1),n.fOutline&&(a.outline=1),n.fStrikeout&&(a.strike=1);var i=e.read_shift(2);switch(i===700&&(a.bold=1),e.read_shift(2)){case 1:a.vertAlign="superscript";break;case 2:a.vertAlign="subscript";break}var o=e.read_shift(1);o!=0&&(a.underline=o);var s=e.read_shift(1);s>0&&(a.family=s);var l=e.read_shift(1);switch(l>0&&(a.charset=l),e.l++,a.color=jm(e),e.read_shift(1)){case 1:a.scheme="major";break;case 2:a.scheme="minor";break}return a.name=pt(e),a}function s_(e,r){r||(r=se(25+4*32)),r.write_shift(2,e.sz*20),Um(e,r),r.write_shift(2,e.bold?700:400);var t=0;e.vertAlign=="superscript"?t=1:e.vertAlign=="subscript"&&(t=2),r.write_shift(2,t),r.write_shift(1,e.underline||0),r.write_shift(1,e.family||0),r.write_shift(1,e.charset||0),r.write_shift(1,0),cs(e.color,r);var a=0;return e.scheme=="major"&&(a=1),e.scheme=="minor"&&(a=2),r.write_shift(1,a),at(e.name,r),r.length>r.l?r.slice(0,r.l):r}var l_=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Zs,c_=mt;function Hf(e,r){r||(r=se(4*3+8*7+16*1)),Zs||(Zs=_s(l_));var t=Zs[e.patternType];t==null&&(t=40),r.write_shift(4,t);var a=0;if(t!=40)for(cs({auto:1},r),cs({auto:1},r);a<12;++a)r.write_shift(4,0);else{for(;a<4;++a)r.write_shift(4,0);for(;a<12;++a)r.write_shift(4,0)}return r.length>r.l?r.slice(0,r.l):r}function f_(e,r){var t=e.l+r,a=e.read_shift(2),n=e.read_shift(2);return e.l=t,{ixfe:a,numFmtId:n}}function Rh(e,r,t){t||(t=se(16)),t.write_shift(2,r||0),t.write_shift(2,e.numFmtId||0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(1,0),t.write_shift(1,0);var a=0;return t.write_shift(1,a),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(1,0),t}function pi(e,r){return r||(r=se(10)),r.write_shift(1,0),r.write_shift(1,0),r.write_shift(4,0),r.write_shift(4,0),r}var u_=mt;function d_(e,r){return r||(r=se(51)),r.write_shift(1,0),pi(null,r),pi(null,r),pi(null,r),pi(null,r),pi(null,r),r.length>r.l?r.slice(0,r.l):r}function h_(e,r){return r||(r=se(12+4*10)),r.write_shift(4,e.xfId),r.write_shift(2,1),r.write_shift(1,+e.builtinId),r.write_shift(1,0),ls(e.name||"",r),r.length>r.l?r.slice(0,r.l):r}function v_(e,r,t){var a=se(2052);return a.write_shift(4,e),ls(r,a),ls(t,a),a.length>a.l?a.slice(0,a.l):a}function x_(e,r,t){var a={};a.NumberFmt=[];for(var n in Ue)a.NumberFmt[n]=Ue[n];a.CellXf=[],a.Fonts=[];var i=[],o=!1;return Ha(e,function(l,c,f){switch(f){case 44:a.NumberFmt[l[0]]=l[1],Pa(l[1],l[0]);break;case 43:a.Fonts.push(l),l.color.theme!=null&&r&&r.themeElements&&r.themeElements.clrScheme&&(l.color.rgb=ds(r.themeElements.clrScheme[l.color.theme].rgb,l.color.tint||0));break;case 1025:break;case 45:break;case 46:break;case 47:i[i.length-1]==617&&a.CellXf.push(l);break;case 48:case 507:case 572:case 475:break;case 1171:case 2102:case 1130:case 512:case 2095:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:i.push(f),o=!0;break;case 38:i.pop(),o=!1;break;default:if(c.T>0)i.push(f);else if(c.T<0)i.pop();else if(!o||t.WTF&&i[i.length-1]!=37)throw new Error("Unexpected record 0x"+f.toString(16))}}),a}function g_(e,r){if(!!r){var t=0;[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(var n=a[0];n<=a[1];++n)r[n]!=null&&++t}),t!=0&&(he(e,615,ua(t)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(var n=a[0];n<=a[1];++n)r[n]!=null&&he(e,44,i_(n,r[n]))}),he(e,616))}}function p_(e){var r=1;he(e,611,ua(r)),he(e,43,s_({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),he(e,612)}function m_(e){var r=2;he(e,603,ua(r)),he(e,45,Hf({patternType:"none"})),he(e,45,Hf({patternType:"gray125"})),he(e,604)}function w_(e){var r=1;he(e,613,ua(r)),he(e,46,d_()),he(e,614)}function y_(e){var r=1;he(e,626,ua(r)),he(e,47,Rh({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),he(e,627)}function __(e,r){he(e,617,ua(r.length)),r.forEach(function(t){he(e,47,Rh(t,0))}),he(e,618)}function b_(e){var r=1;he(e,619,ua(r)),he(e,48,h_({xfId:0,builtinId:0,name:"Normal"})),he(e,620)}function S_(e){var r=0;he(e,505,ua(r)),he(e,506)}function E_(e){var r=0;he(e,508,v_(r,"TableStyleMedium9","PivotStyleMedium4")),he(e,509)}function C_(e,r){var t=Ot();return he(t,278),g_(t,e.SSF),p_(t),m_(t),w_(t),y_(t),__(t,r.cellXfs),b_(t),S_(t),E_(t),he(t,279),t.end()}var T_=["</a:lt1>","</a:dk1>","</a:lt2>","</a:dk2>","</a:accent1>","</a:accent2>","</a:accent3>","</a:accent4>","</a:accent5>","</a:accent6>","</a:hlink>","</a:folHlink>"];function k_(e,r,t){r.themeElements.clrScheme=[];var a={};(e[0].match(wt)||[]).forEach(function(n){var i=He(n);switch(i[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":a.rgb=i.val;break;case"<a:sysClr":a.rgb=i.lastClr;break;case"<a:dk1>":case"</a:dk1>":case"<a:lt1>":case"</a:lt1>":case"<a:dk2>":case"</a:dk2>":case"<a:lt2>":case"</a:lt2>":case"<a:accent1>":case"</a:accent1>":case"<a:accent2>":case"</a:accent2>":case"<a:accent3>":case"</a:accent3>":case"<a:accent4>":case"</a:accent4>":case"<a:accent5>":case"</a:accent5>":case"<a:accent6>":case"</a:accent6>":case"<a:hlink>":case"</a:hlink>":case"<a:folHlink>":case"</a:folHlink>":i[0].charAt(1)==="/"?(r.themeElements.clrScheme[T_.indexOf(i[0])]=a,a={}):a.name=i[0].slice(3,i[0].length-1);break;default:if(t&&t.WTF)throw new Error("Unrecognized "+i[0]+" in clrScheme")}})}function F_(){}function A_(){}var O_=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,D_=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,R_=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/;function I_(e,r,t){r.themeElements={};var a;[["clrScheme",O_,k_],["fontScheme",D_,F_],["fmtScheme",R_,A_]].forEach(function(n){if(!(a=e.match(n[1])))throw new Error(n[0]+" not found in themeElements");n[2](a,r,t)})}var P_=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Ih(e,r){(!e||e.length===0)&&(e=m0());var t,a={};if(!(t=e.match(P_)))throw new Error("themeElements not found in theme");return I_(t[0],a,r),a.raw=e,a}function m0(e,r){if(r&&r.themeXLSX)return r.themeXLSX;if(e&&typeof e.raw=="string")return e.raw;var t=[Vr];return t[t.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',t[t.length]="<a:themeElements>",t[t.length]='<a:clrScheme name="Office">',t[t.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',t[t.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',t[t.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',t[t.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',t[t.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',t[t.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',t[t.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',t[t.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',t[t.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',t[t.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',t[t.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',t[t.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',t[t.length]="</a:clrScheme>",t[t.length]='<a:fontScheme name="Office">',t[t.length]="<a:majorFont>",t[t.length]='<a:latin typeface="Cambria"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',t[t.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',t[t.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',t[t.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',t[t.length]='<a:font script="Arab" typeface="Times New Roman"/>',t[t.length]='<a:font script="Hebr" typeface="Times New Roman"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="MoolBoran"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Times New Roman"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:majorFont>",t[t.length]="<a:minorFont>",t[t.length]='<a:latin typeface="Calibri"/>',t[t.length]='<a:ea typeface=""/>',t[t.length]='<a:cs typeface=""/>',t[t.length]='<a:font script="Jpan" typeface="\uFF2D\uFF33 \uFF30\u30B4\u30B7\u30C3\u30AF"/>',t[t.length]='<a:font script="Hang" typeface="\uB9D1\uC740 \uACE0\uB515"/>',t[t.length]='<a:font script="Hans" typeface="\u5B8B\u4F53"/>',t[t.length]='<a:font script="Hant" typeface="\u65B0\u7D30\u660E\u9AD4"/>',t[t.length]='<a:font script="Arab" typeface="Arial"/>',t[t.length]='<a:font script="Hebr" typeface="Arial"/>',t[t.length]='<a:font script="Thai" typeface="Tahoma"/>',t[t.length]='<a:font script="Ethi" typeface="Nyala"/>',t[t.length]='<a:font script="Beng" typeface="Vrinda"/>',t[t.length]='<a:font script="Gujr" typeface="Shruti"/>',t[t.length]='<a:font script="Khmr" typeface="DaunPenh"/>',t[t.length]='<a:font script="Knda" typeface="Tunga"/>',t[t.length]='<a:font script="Guru" typeface="Raavi"/>',t[t.length]='<a:font script="Cans" typeface="Euphemia"/>',t[t.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',t[t.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',t[t.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',t[t.length]='<a:font script="Thaa" typeface="MV Boli"/>',t[t.length]='<a:font script="Deva" typeface="Mangal"/>',t[t.length]='<a:font script="Telu" typeface="Gautami"/>',t[t.length]='<a:font script="Taml" typeface="Latha"/>',t[t.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',t[t.length]='<a:font script="Orya" typeface="Kalinga"/>',t[t.length]='<a:font script="Mlym" typeface="Kartika"/>',t[t.length]='<a:font script="Laoo" typeface="DokChampa"/>',t[t.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',t[t.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',t[t.length]='<a:font script="Viet" typeface="Arial"/>',t[t.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',t[t.length]='<a:font script="Geor" typeface="Sylfaen"/>',t[t.length]="</a:minorFont>",t[t.length]="</a:fontScheme>",t[t.length]='<a:fmtScheme name="Office">',t[t.length]="<a:fillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="1"/>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="100000"/><a:shade val="100000"/><a:satMod val="130000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="50000"/><a:shade val="100000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:lin ang="16200000" scaled="0"/>',t[t.length]="</a:gradFill>",t[t.length]="</a:fillStyleLst>",t[t.length]="<a:lnStyleLst>",t[t.length]='<a:ln w="9525" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"><a:shade val="95000"/><a:satMod val="105000"/></a:schemeClr></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="25400" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]='<a:ln w="38100" cap="flat" cmpd="sng" algn="ctr"><a:solidFill><a:schemeClr val="phClr"/></a:solidFill><a:prstDash val="solid"/></a:ln>',t[t.length]="</a:lnStyleLst>",t[t.length]="<a:effectStyleLst>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]="</a:effectStyle>",t[t.length]="<a:effectStyle>",t[t.length]="<a:effectLst>",t[t.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',t[t.length]="</a:effectLst>",t[t.length]='<a:scene3d><a:camera prst="orthographicFront"><a:rot lat="0" lon="0" rev="0"/></a:camera><a:lightRig rig="threePt" dir="t"><a:rot lat="0" lon="0" rev="1200000"/></a:lightRig></a:scene3d>',t[t.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',t[t.length]="</a:effectStyle>",t[t.length]="</a:effectStyleLst>",t[t.length]="<a:bgFillStyleLst>",t[t.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="40000"><a:schemeClr val="phClr"><a:tint val="45000"/><a:shade val="99000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]='<a:gradFill rotWithShape="1">',t[t.length]="<a:gsLst>",t[t.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',t[t.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',t[t.length]="</a:gsLst>",t[t.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',t[t.length]="</a:gradFill>",t[t.length]="</a:bgFillStyleLst>",t[t.length]="</a:fmtScheme>",t[t.length]="</a:themeElements>",t[t.length]="<a:objectDefaults>",t[t.length]="<a:spDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="1"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="3"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="2"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="lt1"/></a:fontRef></a:style>',t[t.length]="</a:spDef>",t[t.length]="<a:lnDef>",t[t.length]='<a:spPr/><a:bodyPr/><a:lstStyle/><a:style><a:lnRef idx="2"><a:schemeClr val="accent1"/></a:lnRef><a:fillRef idx="0"><a:schemeClr val="accent1"/></a:fillRef><a:effectRef idx="1"><a:schemeClr val="accent1"/></a:effectRef><a:fontRef idx="minor"><a:schemeClr val="tx1"/></a:fontRef></a:style>',t[t.length]="</a:lnDef>",t[t.length]="</a:objectDefaults>",t[t.length]="<a:extraClrSchemeLst/>",t[t.length]="</a:theme>",t.join("")}function N_(e,r,t){var a=e.l+r,n=e.read_shift(4);if(n!==124226){if(!t.cellStyles){e.l=a;return}var i=e.slice(e.l);e.l=a;var o;try{o=Cd(i,{type:"array"})}catch{return}var s=Mt(o,"theme/theme/theme1.xml",!0);if(!!s)return Ih(s,t)}}function L_(e){return e.read_shift(4)}function B_(e){var r={};switch(r.xclrType=e.read_shift(2),r.nTintShade=e.read_shift(2),r.xclrType){case 0:e.l+=4;break;case 1:r.xclrValue=M_(e,4);break;case 2:r.xclrValue=dh(e);break;case 3:r.xclrValue=L_(e);break;case 4:e.l+=4;break}return e.l+=8,r}function M_(e,r){return mt(e,r)}function K_(e,r){return mt(e,r)}function j_(e){var r=e.read_shift(2),t=e.read_shift(2)-4,a=[r];switch(r){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:a[1]=B_(e);break;case 6:a[1]=K_(e,t);break;case 14:case 15:a[1]=e.read_shift(t===1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+r+" "+t)}return a}function W_(e,r){var t=e.l+r;e.l+=2;var a=e.read_shift(2);e.l+=2;for(var n=e.read_shift(2),i=[];n-- >0;)i.push(j_(e,t-e.l));return{ixfe:a,ext:i}}function U_(e,r){r.forEach(function(t){switch(t[0]){}})}function H_(e,r){return{flags:e.read_shift(4),version:e.read_shift(4),name:pt(e)}}function V_(e){var r=se(12+2*e.name.length);return r.write_shift(4,e.flags),r.write_shift(4,e.version),at(e.name,r),r.slice(0,r.l)}function z_(e){for(var r=[],t=e.read_shift(4);t-- >0;)r.push([e.read_shift(4),e.read_shift(4)]);return r}function $_(e){var r=se(4+8*e.length);r.write_shift(4,e.length);for(var t=0;t<e.length;++t)r.write_shift(4,e[t][0]),r.write_shift(4,e[t][1]);return r}function G_(e,r){var t=se(8+2*r.length);return t.write_shift(4,e),at(r,t),t.slice(0,t.l)}function X_(e){return e.l+=4,e.read_shift(4)!=0}function Y_(e,r){var t=se(8);return t.write_shift(4,e),t.write_shift(4,r?1:0),t}function q_(e,r,t){var a={Types:[],Cell:[],Value:[]},n=t||{},i=[],o=!1,s=2;return Ha(e,function(l,c,f){switch(f){case 335:a.Types.push({name:l.name});break;case 51:l.forEach(function(u){s==1?a.Cell.push({type:a.Types[u[0]-1].name,index:u[1]}):s==0&&a.Value.push({type:a.Types[u[0]-1].name,index:u[1]})});break;case 337:s=l?1:0;break;case 338:s=2;break;case 35:i.push(f),o=!0;break;case 36:i.pop(),o=!1;break;default:if(!c.T){if(!o||n.WTF&&i[i.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}}),a}function J_(){var e=Ot();return he(e,332),he(e,334,ua(1)),he(e,335,V_({name:"XLDAPR",version:12e4,flags:3496657072})),he(e,336),he(e,339,G_(1,"XLDAPR")),he(e,52),he(e,35,ua(514)),he(e,4096,ua(0)),he(e,4097,Zt(1)),he(e,36),he(e,53),he(e,340),he(e,337,Y_(1,!0)),he(e,51,$_([[1,0]])),he(e,338),he(e,333),e.end()}function Z_(e,r,t){var a={Types:[],Cell:[],Value:[]};if(!e)return a;var n=!1,i=2,o;return e.replace(wt,function(s){var l=He(s);switch(Ea(l[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":a.Types.push({name:l.name});break;case"</metadataType>":break;case"<futureMetadata":for(var c=0;c<a.Types.length;++c)a.Types[c].name==l.name&&(o=a.Types[c]);break;case"</futureMetadata>":break;case"<bk>":break;case"</bk>":break;case"<rc":i==1?a.Cell.push({type:a.Types[l.t-1].name,index:+l.v}):i==0&&a.Value.push({type:a.Types[l.t-1].name,index:+l.v});break;case"</rc>":break;case"<cellMetadata":i=1;break;case"</cellMetadata>":i=2;break;case"<valueMetadata":i=0;break;case"</valueMetadata>":i=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":n=!0;break;case"</ext>":n=!1;break;case"<rvb":if(!o)break;o.offsets||(o.offsets=[]),o.offsets.push(+l.i);break;default:if(!n&&t.WTF)throw new Error("unrecognized "+l[0]+" in metadata")}return s}),a}function Ph(){var e=[Vr];return e.push(`<metadata xmlns="http://schemas.openxmlformats.org/spreadsheetml/2006/main" xmlns:xlrd="http://schemas.microsoft.com/office/spreadsheetml/2017/richdata" xmlns:xda="http://schemas.microsoft.com/office/spreadsheetml/2017/dynamicarray">
|
||
<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 Q_(e){var r=[];if(!e)return r;var t=1;return(e.match(wt)||[]).forEach(function(a){var n=He(a);switch(n[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete n[0],n.i?t=n.i:n.i=t,r.push(n);break}}),r}function eb(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=$e(t);var a=e.read_shift(1);return a&2&&(r.l="1"),a&8&&(r.a="1"),r}function rb(e,r,t){var a=[];return Ha(e,function(i,o,s){switch(s){case 63:a.push(i);break;default:if(!o.T)throw new Error("Unexpected record 0x"+s.toString(16))}}),a}function tb(e,r,t,a){if(!e)return e;var n=a||{},i=!1;Ha(e,function(s,l,c){switch(c){case 359:case 363:case 364:case 366:case 367:case 368:case 369:case 370:case 371:case 472:case 577:case 578:case 579:case 580:case 581:case 582:case 583:case 584:case 585:case 586:case 587:break;case 35:i=!0;break;case 36:i=!1;break;default:if(!l.T){if(!i||n.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}},n)}function ab(e,r){if(!e)return"??";var t=(e.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1];return r["!id"][t].Target}var Qn=1024;function Nh(e,r){for(var t=[21600,21600],a=["m0,0l0",t[1],t[0],t[1],t[0],"0xe"].join(","),n=[Se("xml",null,{"xmlns:v":Pt.v,"xmlns:o":Pt.o,"xmlns:x":Pt.x,"xmlns:mv":Pt.mv}).replace(/\/>/,">"),Se("o:shapelayout",Se("o:idmap",null,{"v:ext":"edit",data:e}),{"v:ext":"edit"}),Se("v:shapetype",[Se("v:stroke",null,{joinstyle:"miter"}),Se("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:t.join(","),path:a})];Qn<e*1e3;)Qn+=1e3;return r.forEach(function(i){var o=et(i[0]),s={color2:"#BEFF82",type:"gradient"};s.type=="gradient"&&(s.angle="-180");var l=s.type=="gradient"?Se("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,c=Se("v:fill",l,s),f={on:"t",obscured:"t"};++Qn,n=n.concat(["<v:shape"+Gi({id:"_x0000_s"+Qn,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"})+">",c,Se("v:shadow",null,f),Se("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",lt("x:Anchor",[o.c+1,0,o.r+1,0,o.c+3,20,o.r+5,20].join(",")),lt("x:AutoFill","False"),lt("x:Row",String(o.r)),lt("x:Column",String(o.c)),i[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),n.push("</xml>"),n.join("")}function Vf(e,r,t,a){var n=Array.isArray(e),i;r.forEach(function(o){var s=et(o.ref);if(n?(e[s.r]||(e[s.r]=[]),i=e[s.r][s.c]):i=e[o.ref],!i){i={t:"z"},n?e[s.r][s.c]=i:e[o.ref]=i;var l=xr(e["!ref"]||"BDWGO1000001:A1");l.s.r>s.r&&(l.s.r=s.r),l.e.r<s.r&&(l.e.r=s.r),l.s.c>s.c&&(l.s.c=s.c),l.e.c<s.c&&(l.e.c=s.c);var c=rr(l);c!==e["!ref"]&&(e["!ref"]=c)}i.c||(i.c=[]);var f={a:o.author,t:o.t,r:o.r,T:t};o.h&&(f.h=o.h);for(var u=i.c.length-1;u>=0;--u){if(!t&&i.c[u].T)return;t&&!i.c[u].T&&i.c.splice(u,1)}if(t&&a){for(u=0;u<a.length;++u)if(f.a==a[u].id){f.a=a[u].name||f.a;break}}i.c.push(f)})}function nb(e,r){if(e.match(/<(?:\w+:)?comments *\/>/))return[];var t=[],a=[],n=e.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);n&&n[1]&&n[1].split(/<\/\w*:?author>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?author[^>]*>(.*)/);s&&t.push(s[1])}});var i=e.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/);return i&&i[1]&&i[1].split(/<\/\w*:?comment>/).forEach(function(o){if(!(o===""||o.trim()==="")){var s=o.match(/<(?:\w+:)?comment[^>]*>/);if(!!s){var l=He(s[0]),c={author:l.authorId&&t[l.authorId]||"sheetjsghost",ref:l.ref,guid:l.guid},f=et(l.ref);if(!(r.sheetRows&&r.sheetRows<=f.r)){var u=o.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/),d=!!u&&!!u[1]&&x0(u[1])||{r:"",t:"",h:""};c.r=d.r,d.r=="<t></t>"&&(d.t=d.h=""),c.t=(d.t||"").replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),r.cellHTML&&(c.h=d.h),a.push(c)}}}}),a}function Lh(e){var r=[Vr,Se("comments",null,{xmlns:Pn[0]})],t=[];return r.push("<authors>"),e.forEach(function(a){a[1].forEach(function(n){var i=mr(n.a);t.indexOf(i)==-1&&(t.push(i),r.push("<author>"+i+"</author>")),n.T&&n.ID&&t.indexOf("tc="+n.ID)==-1&&(t.push("tc="+n.ID),r.push("<author>tc="+n.ID+"</author>"))})}),t.length==0&&(t.push("SheetJ5"),r.push("<author>SheetJ5</author>")),r.push("</authors>"),r.push("<commentList>"),e.forEach(function(a){var n=0,i=[];if(a[1][0]&&a[1][0].T&&a[1][0].ID?n=t.indexOf("tc="+a[1][0].ID):a[1].forEach(function(l){l.a&&(n=t.indexOf(mr(l.a))),i.push(l.t||"")}),r.push('<comment ref="'+a[0]+'" authorId="'+n+'"><text>'),i.length<=1)r.push(lt("t",mr(i[0]||"")));else{for(var o=`Comment:
|
||
`+i[0]+`
|
||
`,s=1;s<i.length;++s)o+=`Reply:
|
||
`+i[s]+`
|
||
`;r.push(lt("t",mr(o)))}r.push("</text></comment>")}),r.push("</commentList>"),r.length>2&&(r[r.length]="</comments>",r[1]=r[1].replace("/>",">")),r.join("")}function ib(e,r){var t=[],a=!1,n={},i=0;return e.replace(wt,function(s,l){var c=He(s);switch(Ea(c[0])){case"<?xml":break;case"<ThreadedComments":break;case"</ThreadedComments>":break;case"<threadedComment":n={author:c.personId,guid:c.id,ref:c.ref,T:1};break;case"</threadedComment>":n.t!=null&&t.push(n);break;case"<text>":case"<text":i=l+s.length;break;case"</text>":n.t=e.slice(i,l).replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`);break;case"<mentions":case"<mentions>":a=!0;break;case"</mentions>":a=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+c[0]+" in threaded comments")}return s}),t}function ob(e,r,t){var a=[Vr,Se("ThreadedComments",null,{xmlns:Qr.TCMNT}).replace(/[\/]>/,">")];return e.forEach(function(n){var i="";(n[1]||[]).forEach(function(o,s){if(!o.T){delete o.ID;return}o.a&&r.indexOf(o.a)==-1&&r.push(o.a);var l={ref:n[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+t.tcid++).slice(-12)+"}"};s==0?i=l.id:l.parentId=i,o.ID=l.id,o.a&&(l.personId="{54EE7950-7262-4200-6969-"+("000000000000"+r.indexOf(o.a)).slice(-12)+"}"),a.push(Se("threadedComment",lt("text",o.t||""),l))})}),a.push("</ThreadedComments>"),a.join("")}function sb(e,r){var t=[],a=!1;return e.replace(wt,function(i){var o=He(i);switch(Ea(o[0])){case"<?xml":break;case"<personList":break;case"</personList>":break;case"<person":t.push({name:o.displayname,id:o.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;default:if(!a&&r.WTF)throw new Error("unrecognized "+o[0]+" in threaded comments")}return i}),t}function lb(e){var r=[Vr,Se("personList",null,{xmlns:Qr.TCMNT,"xmlns:x":Pn[0]}).replace(/[\/]>/,">")];return e.forEach(function(t,a){r.push(Se("person",null,{displayName:t,id:"{54EE7950-7262-4200-6969-"+("000000000000"+a).slice(-12)+"}",userId:t,providerId:"None"}))}),r.push("</personList>"),r.join("")}function cb(e){var r={};r.iauthor=e.read_shift(4);var t=Kn(e);return r.rfx=t.s,r.ref=$e(t.s),e.l+=16,r}function fb(e,r){return r==null&&(r=se(36)),r.write_shift(4,e[1].iauthor),vi(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 ub=pt;function db(e){return at(e.slice(0,54))}function hb(e,r){var t=[],a=[],n={},i=!1;return Ha(e,function(s,l,c){switch(c){case 632:a.push(s);break;case 635:n=s;break;case 637:n.t=s.t,n.h=s.h,n.r=s.r;break;case 636:if(n.author=a[n.iauthor],delete n.iauthor,r.sheetRows&&n.rfx&&r.sheetRows<=n.rfx.r)break;n.t||(n.t=""),delete n.rfx,t.push(n);break;case 3072:break;case 35:i=!0;break;case 36:i=!1;break;case 37:break;case 38:break;default:if(!l.T){if(!i||r.WTF)throw new Error("Unexpected record 0x"+c.toString(16))}}}),t}function vb(e){var r=Ot(),t=[];return he(r,628),he(r,630),e.forEach(function(a){a[1].forEach(function(n){t.indexOf(n.a)>-1||(t.push(n.a.slice(0,54)),he(r,632,db(n.a)))})}),he(r,631),he(r,633),e.forEach(function(a){a[1].forEach(function(n){n.iauthor=t.indexOf(n.a);var i={s:et(a[0]),e:et(a[0])};he(r,635,fb([i,n])),n.t&&n.t.length>0&&he(r,637,Lm(n)),he(r,636),delete n.iauthor})}),he(r,634),he(r,629),r.end()}var xb="application/vnd.ms-office.vbaProject";function gb(e){var r=Me.utils.cfb_new({root:"R"});return e.FullPaths.forEach(function(t,a){if(!(t.slice(-1)==="/"||!t.match(/_VBA_PROJECT_CUR/))){var n=t.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,"");Me.utils.cfb_add(r,n,e.FileIndex[a].content)}}),Me.write(r)}function pb(e,r){r.FullPaths.forEach(function(t,a){if(a!=0){var n=t.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/");n.slice(-1)!=="/"&&Me.utils.cfb_add(e,n,r.FileIndex[a].content)}})}var Bh=["xlsb","xlsm","xlam","biff8","xla"];function mb(){return{"!type":"dialog"}}function wb(){return{"!type":"dialog"}}function yb(){return{"!type":"macro"}}function _b(){return{"!type":"macro"}}var ii=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(a,n,i,o){var s=!1,l=!1;i.length==0?l=!0:i.charAt(0)=="["&&(l=!0,i=i.slice(1,-1)),o.length==0?s=!0:o.charAt(0)=="["&&(s=!0,o=o.slice(1,-1));var c=i.length>0?parseInt(i,10)|0:0,f=o.length>0?parseInt(o,10)|0:0;return s?f+=r.c:--f,l?c+=r.r:--c,n+(s?"":"$")+Jr(f)+(l?"":"$")+nt(c)}return function(n,i){return r=i,n.replace(e,t)}}(),w0=/(^|[^._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,y0=function(){return function(r,t){return r.replace(w0,function(a,n,i,o,s,l){var c=Hd(o)-(i?0:t.c),f=Ud(l)-(s?0:t.r),u=f==0?"":s?f+1:"["+f+"]",d=c==0?"":i?c+1:"["+c+"]";return n+"R"+u+"C"+d})}}();function Mh(e,r){return e.replace(w0,function(t,a,n,i,o,s){return a+(n=="$"?n+i:Jr(Hd(i)+r.c))+(o=="$"?o+s:nt(Ud(s)+r.r))})}function bb(e,r,t){var a=ra(r),n=a.s,i=et(t),o={r:i.r-n.r,c:i.c-n.c};return Mh(e,o)}function Sb(e){return e.length!=1}function zf(e){return e.replace(/_xlfn\./g,"")}function $r(e){e.l+=1}function nn(e,r){var t=e.read_shift(r==1?1:2);return[t&16383,t>>14&1,t>>15&1]}function Kh(e,r,t){var a=2;if(t){if(t.biff>=2&&t.biff<=5)return jh(e);t.biff==12&&(a=4)}var n=e.read_shift(a),i=e.read_shift(a),o=nn(e,2),s=nn(e,2);return{s:{r:n,c:o[0],cRel:o[1],rRel:o[2]},e:{r:i,c:s[0],cRel:s[1],rRel:s[2]}}}function jh(e){var r=nn(e,2),t=nn(e,2),a=e.read_shift(1),n=e.read_shift(1);return{s:{r:r[0],c:a,cRel:r[1],rRel:r[2]},e:{r:t[0],c:n,cRel:t[1],rRel:t[2]}}}function Eb(e,r,t){if(t.biff<8)return jh(e);var a=e.read_shift(t.biff==12?4:2),n=e.read_shift(t.biff==12?4:2),i=nn(e,2),o=nn(e,2);return{s:{r:a,c:i[0],cRel:i[1],rRel:i[2]},e:{r:n,c:o[0],cRel:o[1],rRel:o[2]}}}function Wh(e,r,t){if(t&&t.biff>=2&&t.biff<=5)return Cb(e);var a=e.read_shift(t&&t.biff==12?4:2),n=nn(e,2);return{r:a,c:n[0],cRel:n[1],rRel:n[2]}}function Cb(e){var r=nn(e,2),t=e.read_shift(1);return{r:r[0],c:t,cRel:r[1],rRel:r[2]}}function Tb(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 kb(e,r,t){var a=t&&t.biff?t.biff:8;if(a>=2&&a<=5)return Fb(e);var n=e.read_shift(a>=12?4:2),i=e.read_shift(2),o=(i&16384)>>14,s=(i&32768)>>15;if(i&=16383,s==1)for(;n>524287;)n-=1048576;if(o==1)for(;i>8191;)i=i-16384;return{r:n,c:i,cRel:o,rRel:s}}function Fb(e){var r=e.read_shift(2),t=e.read_shift(1),a=(r&32768)>>15,n=(r&16384)>>14;return r&=16383,a==1&&r>=8192&&(r=r-16384),n==1&&t>=128&&(t=t-256),{r,c:t,cRel:n,rRel:a}}function Ab(e,r,t){var a=(e[e.l++]&96)>>5,n=Kh(e,t.biff>=2&&t.biff<=5?6:8,t);return[a,n]}function Ob(e,r,t){var a=(e[e.l++]&96)>>5,n=e.read_shift(2,"i"),i=8;if(t)switch(t.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}var o=Kh(e,i,t);return[a,n,o]}function Db(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t&&t.biff>8?12:t.biff<8?6:8,[a]}function Rb(e,r,t){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=8;if(t)switch(t.biff){case 5:e.l+=12,i=6;break;case 12:i=12;break}return e.l+=i,[a,n]}function Ib(e,r,t){var a=(e[e.l++]&96)>>5,n=Eb(e,r-1,t);return[a,n]}function Pb(e,r,t){var a=(e[e.l++]&96)>>5;return e.l+=t.biff==2?6:t.biff==12?14:7,[a]}function $f(e){var r=e[e.l+1]&1,t=1;return e.l+=4,[r,t]}function Nb(e,r,t){e.l+=2;for(var a=e.read_shift(t&&t.biff==2?1:2),n=[],i=0;i<=a;++i)n.push(e.read_shift(t&&t.biff==2?1:2));return n}function Lb(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(t&&t.biff==2?1:2)]}function Bb(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=2,[a,e.read_shift(t&&t.biff==2?1:2)]}function Mb(e){var r=e[e.l+1]&255?1:0;return e.l+=2,[r,e.read_shift(2)]}function Kb(e,r,t){var a=e[e.l+1]&255?1:0;return e.l+=t&&t.biff==2?3:4,[a]}function Uh(e){var r=e.read_shift(1),t=e.read_shift(1);return[r,t]}function jb(e){return e.read_shift(2),Uh(e)}function Wb(e){return e.read_shift(2),Uh(e)}function Ub(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=Wh(e,0,t);return[a,n]}function Hb(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=kb(e,0,t);return[a,n]}function Vb(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(2);t&&t.biff==5&&(e.l+=12);var i=Wh(e,0,t);return[a,n,i]}function zb(e,r,t){var a=(e[e.l]&96)>>5;e.l+=1;var n=e.read_shift(t&&t.biff<=3?1:2);return[XS[n],zh[n],a]}function $b(e,r,t){var a=e[e.l++],n=e.read_shift(1),i=t&&t.biff<=3?[a==88?-1:0,e.read_shift(1)]:Gb(e);return[n,(i[0]===0?zh:GS)[i[1]]]}function Gb(e){return[e[e.l+1]>>7,e.read_shift(2)&32767]}function Xb(e,r,t){e.l+=t&&t.biff==2?3:4}function Yb(e,r,t){if(e.l++,t&&t.biff==12)return[e.read_shift(4,"i"),0];var a=e.read_shift(2),n=e.read_shift(t&&t.biff==2?1:2);return[a,n]}function qb(e){return e.l++,Va[e.read_shift(1)]}function Jb(e){return e.l++,e.read_shift(2)}function Zb(e){return e.l++,e.read_shift(1)!==0}function Qb(e){return e.l++,gt(e)}function eS(e,r,t){return e.l++,lo(e,r-1,t)}function rS(e,r){var t=[e.read_shift(1)];if(r==12)switch(t[0]){case 2:t[0]=4;break;case 4:t[0]=16;break;case 0:t[0]=1;break;case 1:t[0]=2;break}switch(t[0]){case 4:t[1]=Ur(e,1)?"TRUE":"FALSE",r!=12&&(e.l+=7);break;case 37:case 16:t[1]=Va[e[e.l]],e.l+=r==12?4:8;break;case 0:e.l+=8;break;case 1:t[1]=gt(e);break;case 2:t[1]=jn(e,0,{biff:r>0&&r<8?2:r});break;default:throw new Error("Bad SerAr: "+t[0])}return t}function tS(e,r,t){for(var a=e.read_shift(t.biff==12?4:2),n=[],i=0;i!=a;++i)n.push((t.biff==12?Kn:Es)(e));return n}function aS(e,r,t){var a=0,n=0;t.biff==12?(a=e.read_shift(4),n=e.read_shift(4)):(n=1+e.read_shift(1),a=1+e.read_shift(2)),t.biff>=2&&t.biff<8&&(--a,--n==0&&(n=256));for(var i=0,o=[];i!=a&&(o[i]=[]);++i)for(var s=0;s!=n;++s)o[i][s]=rS(e,t.biff);return o}function nS(e,r,t){var a=e.read_shift(1)>>>5&3,n=!t||t.biff>=8?4:2,i=e.read_shift(n);switch(t.biff){case 2:e.l+=5;break;case 3:case 4:e.l+=8;break;case 5:e.l+=12;break}return[a,0,i]}function iS(e,r,t){if(t.biff==5)return oS(e);var a=e.read_shift(1)>>>5&3,n=e.read_shift(2),i=e.read_shift(4);return[a,n,i]}function oS(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2,"i");e.l+=8;var a=e.read_shift(2);return e.l+=12,[r,t,a]}function sS(e,r,t){var a=e.read_shift(1)>>>5&3;e.l+=t&&t.biff==2?3:4;var n=e.read_shift(t&&t.biff==2?1:2);return[a,n]}function lS(e,r,t){var a=e.read_shift(1)>>>5&3,n=e.read_shift(t&&t.biff==2?1:2);return[a,n]}function cS(e,r,t){var a=e.read_shift(1)>>>5&3;return e.l+=4,t.biff<8&&e.l--,t.biff==12&&(e.l+=2),[a]}function fS(e,r,t){var a=(e[e.l++]&96)>>5,n=e.read_shift(2),i=4;if(t)switch(t.biff){case 5:i=15;break;case 12:i=6;break}return e.l+=i,[a,n]}var uS=mt,dS=mt,hS=mt;function fo(e,r,t){return e.l+=2,[Tb(e)]}function _0(e){return e.l+=6,[]}var vS=fo,xS=_0,gS=_0,pS=fo;function Hh(e){return e.l+=2,[Yr(e),e.read_shift(2)&1]}var mS=fo,wS=Hh,yS=_0,_S=fo,bS=fo,SS=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"];function ES(e){e.l+=2;var r=e.read_shift(2),t=e.read_shift(2),a=e.read_shift(4),n=e.read_shift(2),i=e.read_shift(2),o=SS[t>>2&31];return{ixti:r,coltype:t&3,rt:o,idx:a,c:n,C:i}}function CS(e){return e.l+=2,[e.read_shift(4)]}function TS(e,r,t){return e.l+=5,e.l+=2,e.l+=t.biff==2?1:4,["PTGSHEET"]}function kS(e,r,t){return e.l+=t.biff==2?4:5,["PTGENDSHEET"]}function FS(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function AS(e){var r=e.read_shift(1)>>>5&3,t=e.read_shift(2);return[r,t]}function OS(e){return e.l+=4,[0,0]}var Gf={1:{n:"PtgExp",f:Yb},2:{n:"PtgTbl",f:hS},3:{n:"PtgAdd",f:$r},4:{n:"PtgSub",f:$r},5:{n:"PtgMul",f:$r},6:{n:"PtgDiv",f:$r},7:{n:"PtgPower",f:$r},8:{n:"PtgConcat",f:$r},9:{n:"PtgLt",f:$r},10:{n:"PtgLe",f:$r},11:{n:"PtgEq",f:$r},12:{n:"PtgGe",f:$r},13:{n:"PtgGt",f:$r},14:{n:"PtgNe",f:$r},15:{n:"PtgIsect",f:$r},16:{n:"PtgUnion",f:$r},17:{n:"PtgRange",f:$r},18:{n:"PtgUplus",f:$r},19:{n:"PtgUminus",f:$r},20:{n:"PtgPercent",f:$r},21:{n:"PtgParen",f:$r},22:{n:"PtgMissArg",f:$r},23:{n:"PtgStr",f:eS},26:{n:"PtgSheet",f:TS},27:{n:"PtgEndSheet",f:kS},28:{n:"PtgErr",f:qb},29:{n:"PtgBool",f:Zb},30:{n:"PtgInt",f:Jb},31:{n:"PtgNum",f:Qb},32:{n:"PtgArray",f:Pb},33:{n:"PtgFunc",f:zb},34:{n:"PtgFuncVar",f:$b},35:{n:"PtgName",f:nS},36:{n:"PtgRef",f:Ub},37:{n:"PtgArea",f:Ab},38:{n:"PtgMemArea",f:sS},39:{n:"PtgMemErr",f:uS},40:{n:"PtgMemNoMem",f:dS},41:{n:"PtgMemFunc",f:lS},42:{n:"PtgRefErr",f:cS},43:{n:"PtgAreaErr",f:Db},44:{n:"PtgRefN",f:Hb},45:{n:"PtgAreaN",f:Ib},46:{n:"PtgMemAreaN",f:FS},47:{n:"PtgMemNoMemN",f:AS},57:{n:"PtgNameX",f:iS},58:{n:"PtgRef3d",f:Vb},59:{n:"PtgArea3d",f:Ob},60:{n:"PtgRefErr3d",f:fS},61:{n:"PtgAreaErr3d",f:Rb},255:{}},DS={64:32,96:32,65:33,97:33,66:34,98:34,67:35,99:35,68:36,100:36,69:37,101:37,70:38,102:38,71:39,103:39,72:40,104:40,73:41,105:41,74:42,106:42,75:43,107:43,76:44,108:44,77:45,109:45,78:46,110:46,79:47,111:47,88:34,120:34,89:57,121:57,90:58,122:58,91:59,123:59,92:60,124:60,93:61,125:61},RS={1:{n:"PtgElfLel",f:Hh},2:{n:"PtgElfRw",f:_S},3:{n:"PtgElfCol",f:vS},6:{n:"PtgElfRwV",f:bS},7:{n:"PtgElfColV",f:pS},10:{n:"PtgElfRadical",f:mS},11:{n:"PtgElfRadicalS",f:yS},13:{n:"PtgElfColS",f:xS},15:{n:"PtgElfColSV",f:gS},16:{n:"PtgElfRadicalLel",f:wS},25:{n:"PtgList",f:ES},29:{n:"PtgSxName",f:CS},255:{}},IS={0:{n:"PtgAttrNoop",f:OS},1:{n:"PtgAttrSemi",f:Kb},2:{n:"PtgAttrIf",f:Bb},4:{n:"PtgAttrChoose",f:Nb},8:{n:"PtgAttrGoto",f:Lb},16:{n:"PtgAttrSum",f:Xb},32:{n:"PtgAttrBaxcel",f:$f},33:{n:"PtgAttrBaxcel",f:$f},64:{n:"PtgAttrSpace",f:jb},65:{n:"PtgAttrSpaceSemi",f:Wb},128:{n:"PtgAttrIfError",f:Mb},255:{}};function uo(e,r,t,a){if(a.biff<8)return mt(e,r);for(var n=e.l+r,i=[],o=0;o!==t.length;++o)switch(t[o][0]){case"PtgArray":t[o][1]=aS(e,0,a),i.push(t[o][1]);break;case"PtgMemArea":t[o][2]=tS(e,t[o][1],a),i.push(t[o][2]);break;case"PtgExp":a&&a.biff==12&&(t[o][1][1]=e.read_shift(4),i.push(t[o][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+t[o][0]}return r=n-e.l,r!==0&&i.push(mt(e,r)),i}function ho(e,r,t){for(var a=e.l+r,n,i,o=[];a!=e.l;)r=a-e.l,i=e[e.l],n=Gf[i]||Gf[DS[i]],(i===24||i===25)&&(n=(i===24?RS:IS)[e[e.l+1]]),!n||!n.f?mt(e,r):o.push([n.n,n.f(e,r,t)]);return o}function PS(e){for(var r=[],t=0;t<e.length;++t){for(var a=e[t],n=[],i=0;i<a.length;++i){var o=a[i];if(o)switch(o[0]){case 2:n.push('"'+o[1].replace(/"/g,'""')+'"');break;default:n.push(o[1])}else n.push("")}r.push(n.join(","))}return r.join(";")}var NS={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function LS(e,r){if(!e&&!(r&&r.biff<=5&&r.biff>=2))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(e)?"'"+e+"'":e}function Vh(e,r,t){if(!e)return"SH33TJSERR0";if(t.biff>8&&(!e.XTI||!e.XTI[r]))return e.SheetNames[r];if(!e.XTI)return"SH33TJSERR6";var a=e.XTI[r];if(t.biff<8)return r>1e4&&(r-=65536),r<0&&(r=-r),r==0?"":e.XTI[r-1];if(!a)return"SH33TJSERR1";var n="";if(t.biff>8)switch(e[a[0]][0]){case 357:return n=a[1]==-1?"#REF":e.SheetNames[a[1]],a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 358:return t.SID!=null?e.SheetNames[t.SID]:"SH33TJSSAME"+e[a[0]][0];case 355:default:return"SH33TJSSRC"+e[a[0]][0]}switch(e[a[0]][0][0]){case 1025:return n=a[1]==-1?"#REF":e.SheetNames[a[1]]||"SH33TJSERR3",a[1]==a[2]?n:n+":"+e.SheetNames[a[2]];case 14849:return e[a[0]].slice(1).map(function(i){return i.Name}).join(";;");default:return e[a[0]][0][3]?(n=a[1]==-1?"#REF":e[a[0]][0][3][a[1]]||"SH33TJSERR4",a[1]==a[2]?n:n+":"+e[a[0]][0][3][a[2]]):"SH33TJSERR2"}}function Xf(e,r,t){var a=Vh(e,r,t);return a=="#REF"?a:LS(a,t)}function vt(e,r,t,a,n){var i=n&&n.biff||8,o={s:{c:0,r:0},e:{c:0,r:0}},s=[],l,c,f,u=0,d=0,v,x="";if(!e[0]||!e[0][0])return"";for(var h=-1,p="",m=0,S=e[0].length;m<S;++m){var g=e[0][m];switch(g[0]){case"PtgUminus":s.push("-"+s.pop());break;case"PtgUplus":s.push("+"+s.pop());break;case"PtgPercent":s.push(s.pop()+"%");break;case"PtgAdd":case"PtgConcat":case"PtgDiv":case"PtgEq":case"PtgGe":case"PtgGt":case"PtgLe":case"PtgLt":case"PtgMul":case"PtgNe":case"PtgPower":case"PtgSub":if(l=s.pop(),c=s.pop(),h>=0){switch(e[0][h][1][0]){case 0:p=Mr(" ",e[0][h][1][1]);break;case 1:p=Mr("\r",e[0][h][1][1]);break;default:if(p="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][h][1][0])}c=c+p,h=-1}s.push(c+NS[g[0]]+l);break;case"PtgIsect":l=s.pop(),c=s.pop(),s.push(c+" "+l);break;case"PtgUnion":l=s.pop(),c=s.pop(),s.push(c+","+l);break;case"PtgRange":l=s.pop(),c=s.pop(),s.push(c+":"+l);break;case"PtgAttrChoose":break;case"PtgAttrGoto":break;case"PtgAttrIf":break;case"PtgAttrIfError":break;case"PtgRef":f=Ii(g[1][1],o,n),s.push(Pi(f,i));break;case"PtgRefN":f=t?Ii(g[1][1],t,n):g[1][1],s.push(Pi(f,i));break;case"PtgRef3d":u=g[1][1],f=Ii(g[1][2],o,n),x=Xf(a,u,n),s.push(x+"!"+Pi(f,i));break;case"PtgFunc":case"PtgFuncVar":var w=g[1][0],C=g[1][1];w||(w=0),w&=127;var F=w==0?[]:s.slice(-w);s.length-=w,C==="User"&&(C=F.shift()),s.push(C+"("+F.join(",")+")");break;case"PtgBool":s.push(g[1]?"TRUE":"FALSE");break;case"PtgInt":s.push(g[1]);break;case"PtgNum":s.push(String(g[1]));break;case"PtgStr":s.push('"'+g[1].replace(/"/g,'""')+'"');break;case"PtgErr":s.push(g[1]);break;case"PtgAreaN":v=Sf(g[1][1],t?{s:t}:o,n),s.push(Xs(v,n));break;case"PtgArea":v=Sf(g[1][1],o,n),s.push(Xs(v,n));break;case"PtgArea3d":u=g[1][1],v=g[1][2],x=Xf(a,u,n),s.push(x+"!"+Xs(v,n));break;case"PtgAttrSum":s.push("SUM("+s.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":d=g[1][2];var _=(a.names||[])[d-1]||(a[0]||[])[d],R=_?_.Name:"SH33TJSNAME"+String(d);R&&R.slice(0,6)=="_xlfn."&&!n.xlfn&&(R=R.slice(6)),s.push(R);break;case"PtgNameX":var y=g[1][1];d=g[1][2];var W;if(n.biff<=5)y<0&&(y=-y),a[y]&&(W=a[y][d]);else{var D="";if(((a[y]||[])[0]||[])[0]==14849||(((a[y]||[])[0]||[])[0]==1025?a[y][d]&&a[y][d].itab>0&&(D=a.SheetNames[a[y][d].itab-1]+"!"):D=a.SheetNames[d-1]+"!"),a[y]&&a[y][d])D+=a[y][d].Name;else if(a[0]&&a[0][d])D+=a[0][d].Name;else{var E=(Vh(a,y,n)||"").split(";;");E[d-1]?D=E[d-1]:D+="SH33TJSERRX"}s.push(D);break}W||(W={Name:"SH33TJSERRY"}),s.push(W.Name);break;case"PtgParen":var T="(",A=")";if(h>=0){switch(p="",e[0][h][1][0]){case 2:T=Mr(" ",e[0][h][1][1])+T;break;case 3:T=Mr("\r",e[0][h][1][1])+T;break;case 4:A=Mr(" ",e[0][h][1][1])+A;break;case 5:A=Mr("\r",e[0][h][1][1])+A;break;default:if(n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+e[0][h][1][0])}h=-1}s.push(T+s.pop()+A);break;case"PtgRefErr":s.push("#REF!");break;case"PtgRefErr3d":s.push("#REF!");break;case"PtgExp":f={c:g[1][1],r:g[1][0]};var b={c:t.c,r:t.r};if(a.sharedf[$e(f)]){var O=a.sharedf[$e(f)];s.push(vt(O,o,b,a,n))}else{var N=!1;for(l=0;l!=a.arrayf.length;++l)if(c=a.arrayf[l],!(f.c<c[0].s.c||f.c>c[0].e.c)&&!(f.r<c[0].s.r||f.r>c[0].e.r)){s.push(vt(c[1],o,b,a,n)),N=!0;break}N||s.push(g[1])}break;case"PtgArray":s.push("{"+PS(g[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":h=m;break;case"PtgTbl":break;case"PtgMemErr":break;case"PtgMissArg":s.push("");break;case"PtgAreaErr":s.push("#REF!");break;case"PtgAreaErr3d":s.push("#REF!");break;case"PtgList":s.push("Table"+g[1].idx+"[#"+g[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":break;case"PtgMemFunc":break;case"PtgMemNoMem":break;case"PtgElfCol":case"PtgElfColS":case"PtgElfColSV":case"PtgElfColV":case"PtgElfLel":case"PtgElfRadical":case"PtgElfRadicalLel":case"PtgElfRadicalS":case"PtgElfRw":case"PtgElfRwV":throw new Error("Unsupported ELFs");case"PtgSxName":throw new Error("Unrecognized Formula Token: "+String(g));default:throw new Error("Unrecognized Formula Token: "+String(g))}var G=["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"];if(n.biff!=3&&h>=0&&G.indexOf(e[0][m][0])==-1){g=e[0][h];var L=!0;switch(g[1][0]){case 4:L=!1;case 0:p=Mr(" ",g[1][1]);break;case 5:L=!1;case 1:p=Mr("\r",g[1][1]);break;default:if(p="",n.WTF)throw new Error("Unexpected PtgAttrSpaceType "+g[1][0])}s.push((L?p:"")+s.pop()+(L?"":p)),h=-1}}if(s.length>1&&n.WTF)throw new Error("bad formula stack");return s[0]}function BS(e,r,t){var a=e.l+r,n=t.biff==2?1:2,i,o=e.read_shift(n);if(o==65535)return[[],mt(e,r-2)];var s=ho(e,o,t);return r!==o+n&&(i=uo(e,r-o-n,s,t)),e.l=a,[s,i]}function MS(e,r,t){var a=e.l+r,n=t.biff==2?1:2,i,o=e.read_shift(n);if(o==65535)return[[],mt(e,r-2)];var s=ho(e,o,t);return r!==o+n&&(i=uo(e,r-o-n,s,t)),e.l=a,[s,i]}function KS(e,r,t,a){var n=e.l+r,i=ho(e,a,t),o;return n!==e.l&&(o=uo(e,n-e.l,i,t)),[i,o]}function jS(e,r,t){var a=e.l+r,n,i=e.read_shift(2),o=ho(e,i,t);return i==65535?[[],mt(e,r-2)]:(r!==i+2&&(n=uo(e,a-i-2,o,t)),[o,n])}function WS(e){var r;if(Da(e,e.l+6)!==65535)return[gt(e),"n"];switch(e[e.l]){case 0:return e.l+=8,["String","s"];case 1:return r=e[e.l+2]===1,e.l+=8,[r,"b"];case 2:return r=e[e.l+2],e.l+=8,[r,"e"];case 3:return e.l+=8,["","s"]}return[]}function US(e){if(e==null){var r=se(8);return r.write_shift(1,3),r.write_shift(1,0),r.write_shift(2,0),r.write_shift(2,0),r.write_shift(2,65535),r}else if(typeof e=="number")return Tn(e);return Tn(0)}function Qs(e,r,t){var a=e.l+r,n=Ca(e);t.biff==2&&++e.l;var i=WS(e),o=e.read_shift(1);t.biff!=2&&(e.read_shift(1),t.biff>=5&&e.read_shift(4));var s=MS(e,a-e.l,t);return{cell:n,val:i[0],formula:s,shared:o>>3&1,tt:i[1]}}function HS(e,r,t,a,n){var i=Fn(r,t,n),o=US(e.v),s=se(6),l=33;s.write_shift(2,l),s.write_shift(4,0);for(var c=se(e.bf.length),f=0;f<e.bf.length;++f)c[f]=e.bf[f];var u=tt([i,o,s,c]);return u}function Cs(e,r,t){var a=e.read_shift(4),n=ho(e,a,t),i=e.read_shift(4),o=i>0?uo(e,i,n,t):null;return[n,o]}var VS=Cs,Ts=Cs,zS=Cs,$S=Cs,GS={0:"BEEP",1:"OPEN",2:"OPEN.LINKS",3:"CLOSE.ALL",4:"SAVE",5:"SAVE.AS",6:"FILE.DELETE",7:"PAGE.SETUP",8:"PRINT",9:"PRINTER.SETUP",10:"QUIT",11:"NEW.WINDOW",12:"ARRANGE.ALL",13:"WINDOW.SIZE",14:"WINDOW.MOVE",15:"FULL",16:"CLOSE",17:"RUN",22:"SET.PRINT.AREA",23:"SET.PRINT.TITLES",24:"SET.PAGE.BREAK",25:"REMOVE.PAGE.BREAK",26:"FONT",27:"DISPLAY",28:"PROTECT.DOCUMENT",29:"PRECISION",30:"A1.R1C1",31:"CALCULATE.NOW",32:"CALCULATION",34:"DATA.FIND",35:"EXTRACT",36:"DATA.DELETE",37:"SET.DATABASE",38:"SET.CRITERIA",39:"SORT",40:"DATA.SERIES",41:"TABLE",42:"FORMAT.NUMBER",43:"ALIGNMENT",44:"STYLE",45:"BORDER",46:"CELL.PROTECTION",47:"COLUMN.WIDTH",48:"UNDO",49:"CUT",50:"COPY",51:"PASTE",52:"CLEAR",53:"PASTE.SPECIAL",54:"EDIT.DELETE",55:"INSERT",56:"FILL.RIGHT",57:"FILL.DOWN",61:"DEFINE.NAME",62:"CREATE.NAMES",63:"FORMULA.GOTO",64:"FORMULA.FIND",65:"SELECT.LAST.CELL",66:"SHOW.ACTIVE.CELL",67:"GALLERY.AREA",68:"GALLERY.BAR",69:"GALLERY.COLUMN",70:"GALLERY.LINE",71:"GALLERY.PIE",72:"GALLERY.SCATTER",73:"COMBINATION",74:"PREFERRED",75:"ADD.OVERLAY",76:"GRIDLINES",77:"SET.PREFERRED",78:"AXES",79:"LEGEND",80:"ATTACH.TEXT",81:"ADD.ARROW",82:"SELECT.CHART",83:"SELECT.PLOT.AREA",84:"PATTERNS",85:"MAIN.CHART",86:"OVERLAY",87:"SCALE",88:"FORMAT.LEGEND",89:"FORMAT.TEXT",90:"EDIT.REPEAT",91:"PARSE",92:"JUSTIFY",93:"HIDE",94:"UNHIDE",95:"WORKSPACE",96:"FORMULA",97:"FORMULA.FILL",98:"FORMULA.ARRAY",99:"DATA.FIND.NEXT",100:"DATA.FIND.PREV",101:"FORMULA.FIND.NEXT",102:"FORMULA.FIND.PREV",103:"ACTIVATE",104:"ACTIVATE.NEXT",105:"ACTIVATE.PREV",106:"UNLOCKED.NEXT",107:"UNLOCKED.PREV",108:"COPY.PICTURE",109:"SELECT",110:"DELETE.NAME",111:"DELETE.FORMAT",112:"VLINE",113:"HLINE",114:"VPAGE",115:"HPAGE",116:"VSCROLL",117:"HSCROLL",118:"ALERT",119:"NEW",120:"CANCEL.COPY",121:"SHOW.CLIPBOARD",122:"MESSAGE",124:"PASTE.LINK",125:"APP.ACTIVATE",126:"DELETE.ARROW",127:"ROW.HEIGHT",128:"FORMAT.MOVE",129:"FORMAT.SIZE",130:"FORMULA.REPLACE",131:"SEND.KEYS",132:"SELECT.SPECIAL",133:"APPLY.NAMES",134:"REPLACE.FONT",135:"FREEZE.PANES",136:"SHOW.INFO",137:"SPLIT",138:"ON.WINDOW",139:"ON.DATA",140:"DISABLE.INPUT",142:"OUTLINE",143:"LIST.NAMES",144:"FILE.CLOSE",145:"SAVE.WORKBOOK",146:"DATA.FORM",147:"COPY.CHART",148:"ON.TIME",149:"WAIT",150:"FORMAT.FONT",151:"FILL.UP",152:"FILL.LEFT",153:"DELETE.OVERLAY",155:"SHORT.MENUS",159:"SET.UPDATE.STATUS",161:"COLOR.PALETTE",162:"DELETE.STYLE",163:"WINDOW.RESTORE",164:"WINDOW.MAXIMIZE",166:"CHANGE.LINK",167:"CALCULATE.DOCUMENT",168:"ON.KEY",169:"APP.RESTORE",170:"APP.MOVE",171:"APP.SIZE",172:"APP.MINIMIZE",173:"APP.MAXIMIZE",174:"BRING.TO.FRONT",175:"SEND.TO.BACK",185:"MAIN.CHART.TYPE",186:"OVERLAY.CHART.TYPE",187:"SELECT.END",188:"OPEN.MAIL",189:"SEND.MAIL",190:"STANDARD.FONT",191:"CONSOLIDATE",192:"SORT.SPECIAL",193:"GALLERY.3D.AREA",194:"GALLERY.3D.COLUMN",195:"GALLERY.3D.LINE",196:"GALLERY.3D.PIE",197:"VIEW.3D",198:"GOAL.SEEK",199:"WORKGROUP",200:"FILL.GROUP",201:"UPDATE.LINK",202:"PROMOTE",203:"DEMOTE",204:"SHOW.DETAIL",206:"UNGROUP",207:"OBJECT.PROPERTIES",208:"SAVE.NEW.OBJECT",209:"SHARE",210:"SHARE.NAME",211:"DUPLICATE",212:"APPLY.STYLE",213:"ASSIGN.TO.OBJECT",214:"OBJECT.PROTECTION",215:"HIDE.OBJECT",216:"SET.EXTRACT",217:"CREATE.PUBLISHER",218:"SUBSCRIBE.TO",219:"ATTRIBUTES",220:"SHOW.TOOLBAR",222:"PRINT.PREVIEW",223:"EDIT.COLOR",224:"SHOW.LEVELS",225:"FORMAT.MAIN",226:"FORMAT.OVERLAY",227:"ON.RECALC",228:"EDIT.SERIES",229:"DEFINE.STYLE",240:"LINE.PRINT",243:"ENTER.DATA",249:"GALLERY.RADAR",250:"MERGE.STYLES",251:"EDITION.OPTIONS",252:"PASTE.PICTURE",253:"PASTE.PICTURE.LINK",254:"SPELLING",256:"ZOOM",259:"INSERT.OBJECT",260:"WINDOW.MINIMIZE",265:"SOUND.NOTE",266:"SOUND.PLAY",267:"FORMAT.SHAPE",268:"EXTEND.POLYGON",269:"FORMAT.AUTO",272:"GALLERY.3D.BAR",273:"GALLERY.3D.SURFACE",274:"FILL.AUTO",276:"CUSTOMIZE.TOOLBAR",277:"ADD.TOOL",278:"EDIT.OBJECT",279:"ON.DOUBLECLICK",280:"ON.ENTRY",281:"WORKBOOK.ADD",282:"WORKBOOK.MOVE",283:"WORKBOOK.COPY",284:"WORKBOOK.OPTIONS",285:"SAVE.WORKSPACE",288:"CHART.WIZARD",289:"DELETE.TOOL",290:"MOVE.TOOL",291:"WORKBOOK.SELECT",292:"WORKBOOK.ACTIVATE",293:"ASSIGN.TO.TOOL",295:"COPY.TOOL",296:"RESET.TOOL",297:"CONSTRAIN.NUMERIC",298:"PASTE.TOOL",302:"WORKBOOK.NEW",305:"SCENARIO.CELLS",306:"SCENARIO.DELETE",307:"SCENARIO.ADD",308:"SCENARIO.EDIT",309:"SCENARIO.SHOW",310:"SCENARIO.SHOW.NEXT",311:"SCENARIO.SUMMARY",312:"PIVOT.TABLE.WIZARD",313:"PIVOT.FIELD.PROPERTIES",314:"PIVOT.FIELD",315:"PIVOT.ITEM",316:"PIVOT.ADD.FIELDS",318:"OPTIONS.CALCULATION",319:"OPTIONS.EDIT",320:"OPTIONS.VIEW",321:"ADDIN.MANAGER",322:"MENU.EDITOR",323:"ATTACH.TOOLBARS",324:"VBAActivate",325:"OPTIONS.CHART",328:"VBA.INSERT.FILE",330:"VBA.PROCEDURE.DEFINITION",336:"ROUTING.SLIP",338:"ROUTE.DOCUMENT",339:"MAIL.LOGON",342:"INSERT.PICTURE",343:"EDIT.TOOL",344:"GALLERY.DOUGHNUT",350:"CHART.TREND",352:"PIVOT.ITEM.PROPERTIES",354:"WORKBOOK.INSERT",355:"OPTIONS.TRANSITION",356:"OPTIONS.GENERAL",370:"FILTER.ADVANCED",373:"MAIL.ADD.MAILER",374:"MAIL.DELETE.MAILER",375:"MAIL.REPLY",376:"MAIL.REPLY.ALL",377:"MAIL.FORWARD",378:"MAIL.NEXT.LETTER",379:"DATA.LABEL",380:"INSERT.TITLE",381:"FONT.PROPERTIES",382:"MACRO.OPTIONS",383:"WORKBOOK.HIDE",384:"WORKBOOK.UNHIDE",385:"WORKBOOK.DELETE",386:"WORKBOOK.NAME",388:"GALLERY.CUSTOM",390:"ADD.CHART.AUTOFORMAT",391:"DELETE.CHART.AUTOFORMAT",392:"CHART.ADD.DATA",393:"AUTO.OUTLINE",394:"TAB.ORDER",395:"SHOW.DIALOG",396:"SELECT.ALL",397:"UNGROUP.SHEETS",398:"SUBTOTAL.CREATE",399:"SUBTOTAL.REMOVE",400:"RENAME.OBJECT",412:"WORKBOOK.SCROLL",413:"WORKBOOK.NEXT",414:"WORKBOOK.PREV",415:"WORKBOOK.TAB.SPLIT",416:"FULL.SCREEN",417:"WORKBOOK.PROTECT",420:"SCROLLBAR.PROPERTIES",421:"PIVOT.SHOW.PAGES",422:"TEXT.TO.COLUMNS",423:"FORMAT.CHARTTYPE",424:"LINK.FORMAT",425:"TRACER.DISPLAY",430:"TRACER.NAVIGATE",431:"TRACER.CLEAR",432:"TRACER.ERROR",433:"PIVOT.FIELD.GROUP",434:"PIVOT.FIELD.UNGROUP",435:"CHECKBOX.PROPERTIES",436:"LABEL.PROPERTIES",437:"LISTBOX.PROPERTIES",438:"EDITBOX.PROPERTIES",439:"PIVOT.REFRESH",440:"LINK.COMBO",441:"OPEN.TEXT",442:"HIDE.DIALOG",443:"SET.DIALOG.FOCUS",444:"ENABLE.OBJECT",445:"PUSHBUTTON.PROPERTIES",446:"SET.DIALOG.DEFAULT",447:"FILTER",448:"FILTER.SHOW.ALL",449:"CLEAR.OUTLINE",450:"FUNCTION.WIZARD",451:"ADD.LIST.ITEM",452:"SET.LIST.ITEM",453:"REMOVE.LIST.ITEM",454:"SELECT.LIST.ITEM",455:"SET.CONTROL.VALUE",456:"SAVE.COPY.AS",458:"OPTIONS.LISTS.ADD",459:"OPTIONS.LISTS.DELETE",460:"SERIES.AXES",461:"SERIES.X",462:"SERIES.Y",463:"ERRORBAR.X",464:"ERRORBAR.Y",465:"FORMAT.CHART",466:"SERIES.ORDER",467:"MAIL.LOGOFF",468:"CLEAR.ROUTING.SLIP",469:"APP.ACTIVATE.MICROSOFT",470:"MAIL.EDIT.MAILER",471:"ON.SHEET",472:"STANDARD.WIDTH",473:"SCENARIO.MERGE",474:"SUMMARY.INFO",475:"FIND.FILE",476:"ACTIVE.CELL.FONT",477:"ENABLE.TIPWIZARD",478:"VBA.MAKE.ADDIN",480:"INSERTDATATABLE",481:"WORKGROUP.OPTIONS",482:"MAIL.SEND.MAILER",485:"AUTOCORRECT",489:"POST.DOCUMENT",491:"PICKLIST",493:"VIEW.SHOW",494:"VIEW.DEFINE",495:"VIEW.DELETE",509:"SHEET.BACKGROUND",510:"INSERT.MAP.OBJECT",511:"OPTIONS.MENONO",517:"MSOCHECKS",518:"NORMAL",519:"LAYOUT",520:"RM.PRINT.AREA",521:"CLEAR.PRINT.AREA",522:"ADD.PRINT.AREA",523:"MOVE.BRK",545:"HIDECURR.NOTE",546:"HIDEALL.NOTES",547:"DELETE.NOTE",548:"TRAVERSE.NOTES",549:"ACTIVATE.NOTES",620:"PROTECT.REVISIONS",621:"UNPROTECT.REVISIONS",647:"OPTIONS.ME",653:"WEB.PUBLISH",667:"NEWWEBQUERY",673:"PIVOT.TABLE.CHART",753:"OPTIONS.SAVE",755:"OPTIONS.SPELL",808:"HIDEALL.INKANNOTS"},zh={0:"COUNT",1:"IF",2:"ISNA",3:"ISERROR",4:"SUM",5:"AVERAGE",6:"MIN",7:"MAX",8:"ROW",9:"COLUMN",10:"NA",11:"NPV",12:"STDEV",13:"DOLLAR",14:"FIXED",15:"SIN",16:"COS",17:"TAN",18:"ATAN",19:"PI",20:"SQRT",21:"EXP",22:"LN",23:"LOG10",24:"ABS",25:"INT",26:"SIGN",27:"ROUND",28:"LOOKUP",29:"INDEX",30:"REPT",31:"MID",32:"LEN",33:"VALUE",34:"TRUE",35:"FALSE",36:"AND",37:"OR",38:"NOT",39:"MOD",40:"DCOUNT",41:"DSUM",42:"DAVERAGE",43:"DMIN",44:"DMAX",45:"DSTDEV",46:"VAR",47:"DVAR",48:"TEXT",49:"LINEST",50:"TREND",51:"LOGEST",52:"GROWTH",53:"GOTO",54:"HALT",55:"RETURN",56:"PV",57:"FV",58:"NPER",59:"PMT",60:"RATE",61:"MIRR",62:"IRR",63:"RAND",64:"MATCH",65:"DATE",66:"TIME",67:"DAY",68:"MONTH",69:"YEAR",70:"WEEKDAY",71:"HOUR",72:"MINUTE",73:"SECOND",74:"NOW",75:"AREAS",76:"ROWS",77:"COLUMNS",78:"OFFSET",79:"ABSREF",80:"RELREF",81:"ARGUMENT",82:"SEARCH",83:"TRANSPOSE",84:"ERROR",85:"STEP",86:"TYPE",87:"ECHO",88:"SET.NAME",89:"CALLER",90:"DEREF",91:"WINDOWS",92:"SERIES",93:"DOCUMENTS",94:"ACTIVE.CELL",95:"SELECTION",96:"RESULT",97:"ATAN2",98:"ASIN",99:"ACOS",100:"CHOOSE",101:"HLOOKUP",102:"VLOOKUP",103:"LINKS",104:"INPUT",105:"ISREF",106:"GET.FORMULA",107:"GET.NAME",108:"SET.VALUE",109:"LOG",110:"EXEC",111:"CHAR",112:"LOWER",113:"UPPER",114:"PROPER",115:"LEFT",116:"RIGHT",117:"EXACT",118:"TRIM",119:"REPLACE",120:"SUBSTITUTE",121:"CODE",122:"NAMES",123:"DIRECTORY",124:"FIND",125:"CELL",126:"ISERR",127:"ISTEXT",128:"ISNUMBER",129:"ISBLANK",130:"T",131:"N",132:"FOPEN",133:"FCLOSE",134:"FSIZE",135:"FREADLN",136:"FREAD",137:"FWRITELN",138:"FWRITE",139:"FPOS",140:"DATEVALUE",141:"TIMEVALUE",142:"SLN",143:"SYD",144:"DDB",145:"GET.DEF",146:"REFTEXT",147:"TEXTREF",148:"INDIRECT",149:"REGISTER",150:"CALL",151:"ADD.BAR",152:"ADD.MENU",153:"ADD.COMMAND",154:"ENABLE.COMMAND",155:"CHECK.COMMAND",156:"RENAME.COMMAND",157:"SHOW.BAR",158:"DELETE.MENU",159:"DELETE.COMMAND",160:"GET.CHART.ITEM",161:"DIALOG.BOX",162:"CLEAN",163:"MDETERM",164:"MINVERSE",165:"MMULT",166:"FILES",167:"IPMT",168:"PPMT",169:"COUNTA",170:"CANCEL.KEY",171:"FOR",172:"WHILE",173:"BREAK",174:"NEXT",175:"INITIATE",176:"REQUEST",177:"POKE",178:"EXECUTE",179:"TERMINATE",180:"RESTART",181:"HELP",182:"GET.BAR",183:"PRODUCT",184:"FACT",185:"GET.CELL",186:"GET.WORKSPACE",187:"GET.WINDOW",188:"GET.DOCUMENT",189:"DPRODUCT",190:"ISNONTEXT",191:"GET.NOTE",192:"NOTE",193:"STDEVP",194:"VARP",195:"DSTDEVP",196:"DVARP",197:"TRUNC",198:"ISLOGICAL",199:"DCOUNTA",200:"DELETE.BAR",201:"UNREGISTER",204:"USDOLLAR",205:"FINDB",206:"SEARCHB",207:"REPLACEB",208:"LEFTB",209:"RIGHTB",210:"MIDB",211:"LENB",212:"ROUNDUP",213:"ROUNDDOWN",214:"ASC",215:"DBCS",216:"RANK",219:"ADDRESS",220:"DAYS360",221:"TODAY",222:"VDB",223:"ELSE",224:"ELSE.IF",225:"END.IF",226:"FOR.CELL",227:"MEDIAN",228:"SUMPRODUCT",229:"SINH",230:"COSH",231:"TANH",232:"ASINH",233:"ACOSH",234:"ATANH",235:"DGET",236:"CREATE.OBJECT",237:"VOLATILE",238:"LAST.ERROR",239:"CUSTOM.UNDO",240:"CUSTOM.REPEAT",241:"FORMULA.CONVERT",242:"GET.LINK.INFO",243:"TEXT.BOX",244:"INFO",245:"GROUP",246:"GET.OBJECT",247:"DB",248:"PAUSE",251:"RESUME",252:"FREQUENCY",253:"ADD.TOOLBAR",254:"DELETE.TOOLBAR",255:"User",256:"RESET.TOOLBAR",257:"EVALUATE",258:"GET.TOOLBAR",259:"GET.TOOL",260:"SPELLING.CHECK",261:"ERROR.TYPE",262:"APP.TITLE",263:"WINDOW.TITLE",264:"SAVE.TOOLBAR",265:"ENABLE.TOOL",266:"PRESS.TOOL",267:"REGISTER.ID",268:"GET.WORKBOOK",269:"AVEDEV",270:"BETADIST",271:"GAMMALN",272:"BETAINV",273:"BINOMDIST",274:"CHIDIST",275:"CHIINV",276:"COMBIN",277:"CONFIDENCE",278:"CRITBINOM",279:"EVEN",280:"EXPONDIST",281:"FDIST",282:"FINV",283:"FISHER",284:"FISHERINV",285:"FLOOR",286:"GAMMADIST",287:"GAMMAINV",288:"CEILING",289:"HYPGEOMDIST",290:"LOGNORMDIST",291:"LOGINV",292:"NEGBINOMDIST",293:"NORMDIST",294:"NORMSDIST",295:"NORMINV",296:"NORMSINV",297:"STANDARDIZE",298:"ODD",299:"PERMUT",300:"POISSON",301:"TDIST",302:"WEIBULL",303:"SUMXMY2",304:"SUMX2MY2",305:"SUMX2PY2",306:"CHITEST",307:"CORREL",308:"COVAR",309:"FORECAST",310:"FTEST",311:"INTERCEPT",312:"PEARSON",313:"RSQ",314:"STEYX",315:"SLOPE",316:"TTEST",317:"PROB",318:"DEVSQ",319:"GEOMEAN",320:"HARMEAN",321:"SUMSQ",322:"KURT",323:"SKEW",324:"ZTEST",325:"LARGE",326:"SMALL",327:"QUARTILE",328:"PERCENTILE",329:"PERCENTRANK",330:"MODE",331:"TRIMMEAN",332:"TINV",334:"MOVIE.COMMAND",335:"GET.MOVIE",336:"CONCATENATE",337:"POWER",338:"PIVOT.ADD.DATA",339:"GET.PIVOT.TABLE",340:"GET.PIVOT.FIELD",341:"GET.PIVOT.ITEM",342:"RADIANS",343:"DEGREES",344:"SUBTOTAL",345:"SUMIF",346:"COUNTIF",347:"COUNTBLANK",348:"SCENARIO.GET",349:"OPTIONS.LISTS.GET",350:"ISPMT",351:"DATEDIF",352:"DATESTRING",353:"NUMBERSTRING",354:"ROMAN",355:"OPEN.DIALOG",356:"SAVE.DIALOG",357:"VIEW.GET",358:"GETPIVOTDATA",359:"HYPERLINK",360:"PHONETIC",361:"AVERAGEA",362:"MAXA",363:"MINA",364:"STDEVPA",365:"VARPA",366:"STDEVA",367:"VARA",368:"BAHTTEXT",369:"THAIDAYOFWEEK",370:"THAIDIGIT",371:"THAIMONTHOFYEAR",372:"THAINUMSOUND",373:"THAINUMSTRING",374:"THAISTRINGLENGTH",375:"ISTHAIDIGIT",376:"ROUNDBAHTDOWN",377:"ROUNDBAHTUP",378:"THAIYEAR",379:"RTD",380:"CUBEVALUE",381:"CUBEMEMBER",382:"CUBEMEMBERPROPERTY",383:"CUBERANKEDMEMBER",384:"HEX2BIN",385:"HEX2DEC",386:"HEX2OCT",387:"DEC2BIN",388:"DEC2HEX",389:"DEC2OCT",390:"OCT2BIN",391:"OCT2HEX",392:"OCT2DEC",393:"BIN2DEC",394:"BIN2OCT",395:"BIN2HEX",396:"IMSUB",397:"IMDIV",398:"IMPOWER",399:"IMABS",400:"IMSQRT",401:"IMLN",402:"IMLOG2",403:"IMLOG10",404:"IMSIN",405:"IMCOS",406:"IMEXP",407:"IMARGUMENT",408:"IMCONJUGATE",409:"IMAGINARY",410:"IMREAL",411:"COMPLEX",412:"IMSUM",413:"IMPRODUCT",414:"SERIESSUM",415:"FACTDOUBLE",416:"SQRTPI",417:"QUOTIENT",418:"DELTA",419:"GESTEP",420:"ISEVEN",421:"ISODD",422:"MROUND",423:"ERF",424:"ERFC",425:"BESSELJ",426:"BESSELK",427:"BESSELY",428:"BESSELI",429:"XIRR",430:"XNPV",431:"PRICEMAT",432:"YIELDMAT",433:"INTRATE",434:"RECEIVED",435:"DISC",436:"PRICEDISC",437:"YIELDDISC",438:"TBILLEQ",439:"TBILLPRICE",440:"TBILLYIELD",441:"PRICE",442:"YIELD",443:"DOLLARDE",444:"DOLLARFR",445:"NOMINAL",446:"EFFECT",447:"CUMPRINC",448:"CUMIPMT",449:"EDATE",450:"EOMONTH",451:"YEARFRAC",452:"COUPDAYBS",453:"COUPDAYS",454:"COUPDAYSNC",455:"COUPNCD",456:"COUPNUM",457:"COUPPCD",458:"DURATION",459:"MDURATION",460:"ODDLPRICE",461:"ODDLYIELD",462:"ODDFPRICE",463:"ODDFYIELD",464:"RANDBETWEEN",465:"WEEKNUM",466:"AMORDEGRC",467:"AMORLINC",468:"CONVERT",724:"SHEETJS",469:"ACCRINT",470:"ACCRINTM",471:"WORKDAY",472:"NETWORKDAYS",473:"GCD",474:"MULTINOMIAL",475:"LCM",476:"FVSCHEDULE",477:"CUBEKPIMEMBER",478:"CUBESET",479:"CUBESETCOUNT",480:"IFERROR",481:"COUNTIFS",482:"SUMIFS",483:"AVERAGEIF",484:"AVERAGEIFS"},XS={2:1,3:1,10:0,15:1,16:1,17:1,18:1,19:0,20:1,21:1,22:1,23:1,24:1,25:1,26:1,27:2,30:2,31:3,32:1,33:1,34:0,35:0,38:1,39:2,40:3,41:3,42:3,43:3,44:3,45:3,47:3,48:2,53:1,61:3,63:0,65:3,66:3,67:1,68:1,69:1,70:1,71:1,72:1,73:1,74:0,75:1,76:1,77:1,79:2,80:2,83:1,85:0,86:1,89:0,90:1,94:0,95:0,97:2,98:1,99:1,101:3,102:3,105:1,106:1,108:2,111:1,112:1,113:1,114:1,117:2,118:1,119:4,121:1,126:1,127:1,128:1,129:1,130:1,131:1,133:1,134:1,135:1,136:2,137:2,138:2,140:1,141:1,142:3,143:4,144:4,161:1,162:1,163:1,164:1,165:2,172:1,175:2,176:2,177:3,178:2,179:1,184:1,186:1,189:3,190:1,195:3,196:3,197:1,198:1,199:3,201:1,207:4,210:3,211:1,212:2,213:2,214:1,215:1,225:0,229:1,230:1,231:1,232:1,233:1,234:1,235:3,244:1,247:4,252:2,257:1,261:1,271:1,273:4,274:2,275:2,276:2,277:3,278:3,279:1,280:3,281:3,282:3,283:1,284:1,285:2,286:4,287:3,288:2,289:4,290:3,291:3,292:3,293:4,294:1,295:3,296:1,297:3,298:1,299:2,300:3,301:3,302:4,303:2,304:2,305:2,306:2,307:2,308:2,309:3,310:2,311:2,312:2,313:2,314:2,315:2,316:4,325:2,326:2,327:2,328:2,331:2,332:2,337:2,342:1,343:1,346:2,347:1,350:4,351:3,352:1,353:2,360:1,368:1,369:1,370:1,371:1,372:1,373:1,374:1,375:1,376:1,377:1,378:1,382:3,385:1,392:1,393:1,396:2,397:2,398:2,399:1,400:1,401:1,402:1,403:1,404:1,405:1,406:1,407:1,408:1,409:1,410:1,414:4,415:1,416:1,417:2,420:1,421:1,422:2,424:1,425:2,426:2,427:2,428:2,430:3,438:3,439:3,440:3,443:2,444:2,445:2,446:2,447:6,448:6,449:2,450:2,464:2,468:3,476:2,479:1,480:2,65535:0};function Yf(e){return e.slice(0,3)=="of:"&&(e=e.slice(3)),e.charCodeAt(0)==61&&(e=e.slice(1),e.charCodeAt(0)==61&&(e=e.slice(1))),e=e.replace(/COM\.MICROSOFT\./g,""),e=e.replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(r,t){return t.replace(/\./g,"")}),e=e.replace(/\[.(#[A-Z]*[?!])\]/g,"$1"),e.replace(/[;~]/g,",").replace(/\|/g,";")}function YS(e){var r="of:="+e.replace(w0,"$1[.$2$3$4$5]").replace(/\]:\[/g,":");return r.replace(/;/g,"|").replace(/,/g,";")}function el(e){var r=e.split(":"),t=r[0].split(".")[0];return[t,r[0].split(".")[1]+(r.length>1?":"+(r[1].split(".")[1]||r[1].split(".")[0]):"")]}function qS(e){return e.replace(/\./,"!")}var Li={},oi={},Bi=typeof Map<"u";function b0(e,r,t){var a=0,n=e.length;if(t){if(Bi?t.has(r):Object.prototype.hasOwnProperty.call(t,r)){for(var i=Bi?t.get(r):t[r];a<i.length;++a)if(e[i[a]].t===r)return e.Count++,i[a]}}else for(;a<n;++a)if(e[a].t===r)return e.Count++,a;return e[n]={t:r},e.Count++,e.Unique++,t&&(Bi?(t.has(r)||t.set(r,[]),t.get(r).push(n)):(Object.prototype.hasOwnProperty.call(t,r)||(t[r]=[]),t[r].push(n))),n}function ks(e,r){var t={min:e+1,max:e+1},a=-1;return r.MDW&&(xt=r.MDW),r.width!=null?t.customWidth=1:r.wpx!=null?a=Zi(r.wpx):r.wch!=null&&(a=r.wch),a>-1?(t.width=hs(a),t.customWidth=1):r.width!=null&&(t.width=r.width),r.hidden&&(t.hidden=!0),r.level!=null&&(t.outlineLevel=t.level=r.level),t}function bn(e,r){if(!!e){var t=[.7,.7,.75,.75,.3,.3];r=="xlml"&&(t=[1,1,1,1,.5,.5]),e.left==null&&(e.left=t[0]),e.right==null&&(e.right=t[1]),e.top==null&&(e.top=t[2]),e.bottom==null&&(e.bottom=t[3]),e.header==null&&(e.header=t[4]),e.footer==null&&(e.footer=t[5])}}function cn(e,r,t){var a=t.revssf[r.z!=null?r.z:"General"],n=60,i=e.length;if(a==null&&t.ssf){for(;n<392;++n)if(t.ssf[n]==null){Pa(r.z,n),t.ssf[n]=r.z,t.revssf[r.z]=a=n;break}}for(n=0;n!=i;++n)if(e[n].numFmtId===a)return n;return e[i]={numFmtId:a,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},i}function $h(e,r,t,a,n,i){try{a.cellNF&&(e.z=Ue[r])}catch(s){if(a.WTF)throw s}if(!(e.t==="z"&&!a.cellStyles)){if(e.t==="d"&&typeof e.v=="string"&&(e.v=Ir(e.v)),(!a||a.cellText!==!1)&&e.t!=="z")try{if(Ue[r]==null&&Pa(Gp[r]||"General",r),e.t==="e")e.w=e.w||Va[e.v];else if(r===0)if(e.t==="n")(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v);else if(e.t==="d"){var o=ct(e.v);(o|0)===o?e.w=o.toString(10):e.w=Vi(o)}else{if(e.v===void 0)return"";e.w=En(e.v,oi)}else e.t==="d"?e.w=ea(r,ct(e.v),oi):e.w=ea(r,e.v,oi)}catch(s){if(a.WTF)throw s}if(!!a.cellStyles&&t!=null)try{e.s=i.Fills[t],e.s.fgColor&&e.s.fgColor.theme&&!e.s.fgColor.rgb&&(e.s.fgColor.rgb=ds(n.themeElements.clrScheme[e.s.fgColor.theme].rgb,e.s.fgColor.tint||0),a.WTF&&(e.s.fgColor.raw_rgb=n.themeElements.clrScheme[e.s.fgColor.theme].rgb)),e.s.bgColor&&e.s.bgColor.theme&&(e.s.bgColor.rgb=ds(n.themeElements.clrScheme[e.s.bgColor.theme].rgb,e.s.bgColor.tint||0),a.WTF&&(e.s.bgColor.raw_rgb=n.themeElements.clrScheme[e.s.bgColor.theme].rgb))}catch(s){if(a.WTF&&i.Fills)throw s}}}function JS(e,r,t){if(e&&e["!ref"]){var a=xr(e["!ref"]);if(a.e.c<a.s.c||a.e.r<a.s.r)throw new Error("Bad range ("+t+"): "+e["!ref"])}}function ZS(e,r){var t=xr(r);t.s.r<=t.e.r&&t.s.c<=t.e.c&&t.s.r>=0&&t.s.c>=0&&(e["!ref"]=rr(t))}var QS=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,eE=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,rE=/<(?:\w:)?hyperlink [^>]*>/mg,tE=/"(\w*:\w*)"/,aE=/<(?:\w:)?col\b[^>]*[\/]?>/g,nE=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,iE=/<(?:\w:)?pageMargins[^>]*\/>/g,Gh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,oE=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,sE=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function lE(e,r,t,a,n,i,o){if(!e)return e;a||(a={"!id":{}});var s=r.dense?[]:{},l={s:{r:2e6,c:2e6},e:{r:0,c:0}},c="",f="",u=e.match(eE);u?(c=e.slice(0,u.index),f=e.slice(u.index+u[0].length)):c=f=e;var d=c.match(Gh);d?S0(d[0],s,n,t):(d=c.match(oE))&&fE(d[0],d[1]||"",s,n,t);var v=(c.match(/<(?:\w*:)?dimension/)||{index:-1}).index;if(v>0){var x=c.slice(v,v+50).match(tE);x&&ZS(s,x[1])}var h=c.match(sE);h&&h[1]&&SE(h[1],n);var p=[];if(r.cellStyles){var m=c.match(aE);m&&mE(p,m)}u&&TE(u[1],s,r,l,i,o);var S=f.match(nE);S&&(s["!autofilter"]=yE(S[0]));var g=[],w=f.match(QS);if(w)for(v=0;v!=w.length;++v)g[v]=xr(w[v].slice(w[v].indexOf('"')+1));var C=f.match(rE);C&&xE(s,C,a);var F=f.match(iE);if(F&&(s["!margins"]=gE(He(F[0]))),!s["!ref"]&&l.e.c>=l.s.c&&l.e.r>=l.s.r&&(s["!ref"]=rr(l)),r.sheetRows>0&&s["!ref"]){var _=xr(s["!ref"]);r.sheetRows<=+_.e.r&&(_.e.r=r.sheetRows-1,_.e.r>l.e.r&&(_.e.r=l.e.r),_.e.r<_.s.r&&(_.s.r=_.e.r),_.e.c>l.e.c&&(_.e.c=l.e.c),_.e.c<_.s.c&&(_.s.c=_.e.c),s["!fullref"]=s["!ref"],s["!ref"]=rr(_))}return p.length>0&&(s["!cols"]=p),g.length>0&&(s["!merges"]=g),s}function cE(e){if(e.length===0)return"";for(var r='<mergeCells count="'+e.length+'">',t=0;t!=e.length;++t)r+='<mergeCell ref="'+rr(e[t])+'"/>';return r+"</mergeCells>"}function S0(e,r,t,a){var n=He(e);t.Sheets[a]||(t.Sheets[a]={}),n.codeName&&(t.Sheets[a].CodeName=ir(br(n.codeName)))}function fE(e,r,t,a,n){S0(e.slice(0,e.indexOf(">")),t,a,n)}function uE(e,r,t,a,n){var i=!1,o={},s=null;if(a.bookType!=="xlsx"&&r.vbaraw){var l=r.SheetNames[t];try{r.Workbook&&(l=r.Workbook.Sheets[t].CodeName||l)}catch{}i=!0,o.codeName=ya(mr(l))}if(e&&e["!outline"]){var c={summaryBelow:1,summaryRight:1};e["!outline"].above&&(c.summaryBelow=0),e["!outline"].left&&(c.summaryRight=0),s=(s||"")+Se("outlinePr",null,c)}!i&&!s||(n[n.length]=Se("sheetPr",s,o))}var dE=["objects","scenarios","selectLockedCells","selectUnlockedCells"],hE=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"];function vE(e){var r={sheet:1};return dE.forEach(function(t){e[t]!=null&&e[t]&&(r[t]="1")}),hE.forEach(function(t){e[t]!=null&&!e[t]&&(r[t]="0")}),e.password&&(r.password=g0(e.password).toString(16).toUpperCase()),Se("sheetProtection",null,r)}function xE(e,r,t){for(var a=Array.isArray(e),n=0;n!=r.length;++n){var i=He(br(r[n]),!0);if(!i.ref)return;var o=((t||{})["!id"]||[])[i.id];o?(i.Target=o.Target,i.location&&(i.Target+="#"+ir(i.location))):(i.Target="#"+ir(i.location),o={Target:i.Target,TargetMode:"Internal"}),i.Rel=o,i.tooltip&&(i.Tooltip=i.tooltip,delete i.tooltip);for(var s=xr(i.ref),l=s.s.r;l<=s.e.r;++l)for(var c=s.s.c;c<=s.e.c;++c){var f=$e({c,r:l});a?(e[l]||(e[l]=[]),e[l][c]||(e[l][c]={t:"z",v:void 0}),e[l][c].l=i):(e[f]||(e[f]={t:"z",v:void 0}),e[f].l=i)}}}function gE(e){var r={};return["left","right","top","bottom","header","footer"].forEach(function(t){e[t]&&(r[t]=parseFloat(e[t]))}),r}function pE(e){return bn(e),Se("pageMargins",null,e)}function mE(e,r){for(var t=!1,a=0;a!=r.length;++a){var n=He(r[a],!0);n.hidden&&(n.hidden=Ar(n.hidden));var i=parseInt(n.min,10)-1,o=parseInt(n.max,10)-1;for(n.outlineLevel&&(n.level=+n.outlineLevel||0),delete n.min,delete n.max,n.width=+n.width,!t&&n.width&&(t=!0,p0(n.width)),an(n);i<=o;)e[i++]=Dr(n)}}function wE(e,r){for(var t=["<cols>"],a,n=0;n!=r.length;++n)!(a=r[n])||(t[t.length]=Se("col",null,ks(n,a)));return t[t.length]="</cols>",t.join("")}function yE(e){var r={ref:(e.match(/ref="([^"]*)"/)||[])[1]};return r}function _E(e,r,t,a){var n=typeof e.ref=="string"?e.ref:rr(e.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var i=t.Workbook.Names,o=ra(n);o.s.r==o.e.r&&(o.e.r=ra(r["!ref"]).e.r,n=rr(o));for(var s=0;s<i.length;++s){var l=i[s];if(l.Name=="_xlnm._FilterDatabase"&&l.Sheet==a){l.Ref="'"+t.SheetNames[a]+"'!"+n;break}}return s==i.length&&i.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+n}),Se("autoFilter",null,{ref:n})}var bE=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/;function SE(e,r){r.Views||(r.Views=[{}]),(e.match(bE)||[]).forEach(function(t,a){var n=He(t);r.Views[a]||(r.Views[a]={}),+n.zoomScale&&(r.Views[a].zoom=+n.zoomScale),Ar(n.rightToLeft)&&(r.Views[a].RTL=!0)})}function EE(e,r,t,a){var n={workbookViewId:"0"};return(((a||{}).Workbook||{}).Views||[])[0]&&(n.rightToLeft=a.Workbook.Views[0].RTL?"1":"0"),Se("sheetViews",Se("sheetView",null,n),{})}function CE(e,r,t,a){if(e.c&&t["!comments"].push([r,e.c]),e.v===void 0&&typeof e.f!="string"||e.t==="z"&&!e.f)return"";var n="",i=e.t,o=e.v;if(e.t!=="z")switch(e.t){case"b":n=e.v?"1":"0";break;case"n":n=""+e.v;break;case"e":n=Va[e.v];break;case"d":a&&a.cellDates?n=Ir(e.v,-1).toISOString():(e=Dr(e),e.t="n",n=""+(e.v=ct(Ir(e.v)))),typeof e.z>"u"&&(e.z=Ue[14]);break;default:n=e.v;break}var s=lt("v",mr(n)),l={r},c=cn(a.cellXfs,e,a);switch(c!==0&&(l.s=c),e.t){case"n":break;case"d":l.t="d";break;case"b":l.t="b";break;case"e":l.t="e";break;case"z":break;default:if(e.v==null){delete e.t;break}if(e.v.length>32767)throw new Error("Text length must not exceed 32767 characters");if(a&&a.bookSST){s=lt("v",""+b0(a.Strings,e.v,a.revStrings)),l.t="s";break}l.t="str";break}if(e.t!=i&&(e.t=i,e.v=o),typeof e.f=="string"&&e.f){var f=e.F&&e.F.slice(0,r.length)==r?{t:"array",ref:e.F}:null;s=Se("f",mr(e.f),f)+(e.v!=null?s:"")}return e.l&&t["!links"].push([r,e.l]),e.D&&(l.cm=1),Se("c",s,l)}var TE=function(){var e=/<(?:\w+:)?c[ \/>]/,r=/<\/(?:\w+:)?row>/,t=/r=["']([^"']*)["']/,a=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,n=/ref=["']([^"']*)["']/,i=$i("v"),o=$i("f");return function(l,c,f,u,d,v){for(var x=0,h="",p=[],m=[],S=0,g=0,w=0,C="",F,_,R=0,y=0,W,D,E=0,T=0,A=Array.isArray(v.CellXf),b,O=[],N=[],G=Array.isArray(c),L=[],X={},Z=!1,I=!!f.sheetStubs,z=l.split(r),U=0,V=z.length;U!=V;++U){h=z[U].trim();var q=h.length;if(q===0)continue;var ee=0;e:for(x=0;x<q;++x)switch(h[x]){case">":if(h[x-1]!="/"){++x;break e}if(f&&f.cellStyles){if(_=He(h.slice(ee,x),!0),R=_.r!=null?parseInt(_.r,10):R+1,y=-1,f.sheetRows&&f.sheetRows<R)continue;X={},Z=!1,_.ht&&(Z=!0,X.hpt=parseFloat(_.ht),X.hpx=fi(X.hpt)),_.hidden=="1"&&(Z=!0,X.hidden=!0),_.outlineLevel!=null&&(Z=!0,X.level=+_.outlineLevel),Z&&(L[R-1]=X)}break;case"<":ee=x;break}if(ee>=x)break;if(_=He(h.slice(ee,x),!0),R=_.r!=null?parseInt(_.r,10):R+1,y=-1,!(f.sheetRows&&f.sheetRows<R)){u.s.r>R-1&&(u.s.r=R-1),u.e.r<R-1&&(u.e.r=R-1),f&&f.cellStyles&&(X={},Z=!1,_.ht&&(Z=!0,X.hpt=parseFloat(_.ht),X.hpx=fi(X.hpt)),_.hidden=="1"&&(Z=!0,X.hidden=!0),_.outlineLevel!=null&&(Z=!0,X.level=+_.outlineLevel),Z&&(L[R-1]=X)),p=h.slice(x).split(e);for(var Y=0;Y!=p.length&&p[Y].trim().charAt(0)=="<";++Y);for(p=p.slice(Y),x=0;x!=p.length;++x)if(h=p[x].trim(),h.length!==0){if(m=h.match(t),S=x,g=0,w=0,h="<c "+(h.slice(0,1)=="<"?">":"")+h,m!=null&&m.length===2){for(S=0,C=m[1],g=0;g!=C.length&&!((w=C.charCodeAt(g)-64)<1||w>26);++g)S=26*S+w;--S,y=S}else++y;for(g=0;g!=h.length&&h.charCodeAt(g)!==62;++g);if(++g,_=He(h.slice(0,g),!0),_.r||(_.r=$e({r:R-1,c:y})),C=h.slice(g),F={t:""},(m=C.match(i))!=null&&m[1]!==""&&(F.v=ir(m[1])),f.cellFormula){if((m=C.match(o))!=null&&m[1]!==""){if(F.f=ir(br(m[1])).replace(/\r\n/g,`
|
||
`),f.xlfn||(F.f=zf(F.f)),m[0].indexOf('t="array"')>-1)F.F=(C.match(n)||[])[1],F.F.indexOf(":")>-1&&O.push([xr(F.F),F.F]);else if(m[0].indexOf('t="shared"')>-1){D=He(m[0]);var J=ir(br(m[1]));f.xlfn||(J=zf(J)),N[parseInt(D.si,10)]=[D,J,_.r]}}else(m=C.match(/<f[^>]*\/>/))&&(D=He(m[0]),N[D.si]&&(F.f=bb(N[D.si][1],N[D.si][2],_.r)));var Q=et(_.r);for(g=0;g<O.length;++g)Q.r>=O[g][0].s.r&&Q.r<=O[g][0].e.r&&Q.c>=O[g][0].s.c&&Q.c<=O[g][0].e.c&&(F.F=O[g][1])}if(_.t==null&&F.v===void 0)if(F.f||F.F)F.v=0,F.t="n";else if(I)F.t="z";else continue;else F.t=_.t||"n";switch(u.s.c>y&&(u.s.c=y),u.e.c<y&&(u.e.c=y),F.t){case"n":if(F.v==""||F.v==null){if(!I)continue;F.t="z"}else F.v=parseFloat(F.v);break;case"s":if(typeof F.v>"u"){if(!I)continue;F.t="z"}else W=Li[parseInt(F.v,10)],F.v=W.t,F.r=W.r,f.cellHTML&&(F.h=W.h);break;case"str":F.t="s",F.v=F.v!=null?br(F.v):"",f.cellHTML&&(F.h=a0(F.v));break;case"inlineStr":m=C.match(a),F.t="s",m!=null&&(W=x0(m[1]))?(F.v=W.t,f.cellHTML&&(F.h=W.h)):F.v="";break;case"b":F.v=Ar(F.v);break;case"d":f.cellDates?F.v=Ir(F.v,1):(F.v=ct(Ir(F.v,1)),F.t="n");break;case"e":(!f||f.cellText!==!1)&&(F.w=F.v),F.v=Yd[F.v];break}if(E=T=0,b=null,A&&_.s!==void 0&&(b=v.CellXf[_.s],b!=null&&(b.numFmtId!=null&&(E=b.numFmtId),f.cellStyles&&b.fillId!=null&&(T=b.fillId))),$h(F,E,T,f,d,v),f.cellDates&&A&&F.t=="n"&&di(Ue[E])&&(F.t="d",F.v=Ss(F.v)),_.cm&&f.xlmeta){var ce=(f.xlmeta.Cell||[])[+_.cm-1];ce&&ce.type=="XLDAPR"&&(F.D=!0)}if(G){var K=et(_.r);c[K.r]||(c[K.r]=[]),c[K.r][K.c]=F}else c[_.r]=F}}}L.length>0&&(c["!rows"]=L)}}();function kE(e,r,t,a){var n=[],i=[],o=xr(e["!ref"]),s="",l,c="",f=[],u=0,d=0,v=e["!rows"],x=Array.isArray(e),h={r:c},p,m=-1;for(d=o.s.c;d<=o.e.c;++d)f[d]=Jr(d);for(u=o.s.r;u<=o.e.r;++u){for(i=[],c=nt(u),d=o.s.c;d<=o.e.c;++d){l=f[d]+c;var S=x?(e[u]||[])[d]:e[l];S!==void 0&&(s=CE(S,l,e,r))!=null&&i.push(s)}(i.length>0||v&&v[u])&&(h={r:c},v&&v[u]&&(p=v[u],p.hidden&&(h.hidden=1),m=-1,p.hpx?m=Qi(p.hpx):p.hpt&&(m=p.hpt),m>-1&&(h.ht=m,h.customHeight=1),p.level&&(h.outlineLevel=p.level)),n[n.length]=Se("row",i.join(""),h))}if(v)for(;u<v.length;++u)v&&v[u]&&(h={r:u+1},p=v[u],p.hidden&&(h.hidden=1),m=-1,p.hpx?m=Qi(p.hpx):p.hpt&&(m=p.hpt),m>-1&&(h.ht=m,h.customHeight=1),p.level&&(h.outlineLevel=p.level),n[n.length]=Se("row","",h));return n.join("")}function Xh(e,r,t,a){var n=[Vr,Se("worksheet",null,{xmlns:Pn[0],"xmlns:r":Qr.r})],i=t.SheetNames[e],o=0,s="",l=t.Sheets[i];l==null&&(l={});var c=l["!ref"]||"A1",f=xr(c);if(f.e.c>16383||f.e.r>1048575){if(r.WTF)throw new Error("Range "+c+" exceeds format limit A1:XFD1048576");f.e.c=Math.min(f.e.c,16383),f.e.r=Math.min(f.e.c,1048575),c=rr(f)}a||(a={}),l["!comments"]=[];var u=[];uE(l,t,e,r,n),n[n.length]=Se("dimension",null,{ref:c}),n[n.length]=EE(l,r,e,t),r.sheetFormat&&(n[n.length]=Se("sheetFormatPr",null,{defaultRowHeight:r.sheetFormat.defaultRowHeight||"16",baseColWidth:r.sheetFormat.baseColWidth||"10",outlineLevelRow:r.sheetFormat.outlineLevelRow||"7"})),l["!cols"]!=null&&l["!cols"].length>0&&(n[n.length]=wE(l,l["!cols"])),n[o=n.length]="<sheetData/>",l["!links"]=[],l["!ref"]!=null&&(s=kE(l,r),s.length>0&&(n[n.length]=s)),n.length>o+1&&(n[n.length]="</sheetData>",n[o]=n[o].replace("/>",">")),l["!protect"]&&(n[n.length]=vE(l["!protect"])),l["!autofilter"]!=null&&(n[n.length]=_E(l["!autofilter"],l,t,e)),l["!merges"]!=null&&l["!merges"].length>0&&(n[n.length]=cE(l["!merges"]));var d=-1,v,x=-1;return l["!links"].length>0&&(n[n.length]="<hyperlinks>",l["!links"].forEach(function(h){!h[1].Target||(v={ref:h[0]},h[1].Target.charAt(0)!="#"&&(x=pr(a,-1,mr(h[1].Target).replace(/#.*$/,""),Ze.HLINK),v["r:id"]="rId"+x),(d=h[1].Target.indexOf("#"))>-1&&(v.location=mr(h[1].Target.slice(d+1))),h[1].Tooltip&&(v.tooltip=mr(h[1].Tooltip)),n[n.length]=Se("hyperlink",null,v))}),n[n.length]="</hyperlinks>"),delete l["!links"],l["!margins"]!=null&&(n[n.length]=pE(l["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&(n[n.length]=lt("ignoredErrors",Se("ignoredError",null,{numberStoredAsText:1,sqref:c}))),u.length>0&&(x=pr(a,-1,"../drawings/drawing"+(e+1)+".xml",Ze.DRAW),n[n.length]=Se("drawing",null,{"r:id":"rId"+x}),l["!drawing"]=u),l["!comments"].length>0&&(x=pr(a,-1,"../drawings/vmlDrawing"+(e+1)+".vml",Ze.VML),n[n.length]=Se("legacyDrawing",null,{"r:id":"rId"+x}),l["!legacy"]=x),n.length>1&&(n[n.length]="</worksheet>",n[1]=n[1].replace("/>",">")),n.join("")}function FE(e,r){var t={},a=e.l+r;t.r=e.read_shift(4),e.l+=4;var n=e.read_shift(2);e.l+=1;var i=e.read_shift(1);return e.l=a,i&7&&(t.level=i&7),i&16&&(t.hidden=!0),i&32&&(t.hpt=n/20),t}function AE(e,r,t){var a=se(145),n=(t["!rows"]||[])[e]||{};a.write_shift(4,e),a.write_shift(4,0);var i=320;n.hpx?i=Qi(n.hpx)*20:n.hpt&&(i=n.hpt*20),a.write_shift(2,i),a.write_shift(1,0);var o=0;n.level&&(o|=n.level),n.hidden&&(o|=16),(n.hpx||n.hpt)&&(o|=32),a.write_shift(1,o),a.write_shift(1,0);var s=0,l=a.l;a.l+=4;for(var c={r:e,c:0},f=0;f<16;++f)if(!(r.s.c>f+1<<10||r.e.c<f<<10)){for(var u=-1,d=-1,v=f<<10;v<f+1<<10;++v){c.c=v;var x=Array.isArray(t)?(t[c.r]||[])[c.c]:t[$e(c)];x&&(u<0&&(u=v),d=v)}u<0||(++s,a.write_shift(4,u),a.write_shift(4,d))}var h=a.l;return a.l=l,a.write_shift(4,s),a.l=h,a.length>a.l?a.slice(0,a.l):a}function OE(e,r,t,a){var n=AE(a,t,r);(n.length>17||(r["!rows"]||[])[a])&&he(e,0,n)}var DE=Kn,RE=vi;function IE(){}function PE(e,r){var t={},a=e[e.l];return++e.l,t.above=!(a&64),t.left=!(a&128),e.l+=18,t.name=Bm(e),t}function NE(e,r,t){t==null&&(t=se(84+4*e.length));var a=192;r&&(r.above&&(a&=-65),r.left&&(a&=-129)),t.write_shift(1,a);for(var n=1;n<3;++n)t.write_shift(1,0);return cs({auto:1},t),t.write_shift(-4,-1),t.write_shift(-4,-1),Vd(e,t),t.slice(0,t.l)}function LE(e){var r=na(e);return[r]}function BE(e,r,t){return t==null&&(t=se(8)),Ln(r,t)}function ME(e){var r=Bn(e);return[r]}function KE(e,r,t){return t==null&&(t=se(4)),Mn(r,t)}function jE(e){var r=na(e),t=e.read_shift(1);return[r,t,"b"]}function WE(e,r,t){return t==null&&(t=se(9)),Ln(r,t),t.write_shift(1,e.v?1:0),t}function UE(e){var r=Bn(e),t=e.read_shift(1);return[r,t,"b"]}function HE(e,r,t){return t==null&&(t=se(5)),Mn(r,t),t.write_shift(1,e.v?1:0),t}function VE(e){var r=na(e),t=e.read_shift(1);return[r,t,"e"]}function zE(e,r,t){return t==null&&(t=se(9)),Ln(r,t),t.write_shift(1,e.v),t}function $E(e){var r=Bn(e),t=e.read_shift(1);return[r,t,"e"]}function GE(e,r,t){return t==null&&(t=se(8)),Mn(r,t),t.write_shift(1,e.v),t.write_shift(2,0),t.write_shift(1,0),t}function XE(e){var r=na(e),t=e.read_shift(4);return[r,t,"s"]}function YE(e,r,t){return t==null&&(t=se(12)),Ln(r,t),t.write_shift(4,r.v),t}function qE(e){var r=Bn(e),t=e.read_shift(4);return[r,t,"s"]}function JE(e,r,t){return t==null&&(t=se(8)),Mn(r,t),t.write_shift(4,r.v),t}function ZE(e){var r=na(e),t=gt(e);return[r,t,"n"]}function QE(e,r,t){return t==null&&(t=se(16)),Ln(r,t),Tn(e.v,t),t}function Yh(e){var r=Bn(e),t=gt(e);return[r,t,"n"]}function eC(e,r,t){return t==null&&(t=se(12)),Mn(r,t),Tn(e.v,t),t}function rC(e){var r=na(e),t=f0(e);return[r,t,"n"]}function tC(e,r,t){return t==null&&(t=se(12)),Ln(r,t),zd(e.v,t),t}function aC(e){var r=Bn(e),t=f0(e);return[r,t,"n"]}function nC(e,r,t){return t==null&&(t=se(8)),Mn(r,t),zd(e.v,t),t}function iC(e){var r=na(e),t=s0(e);return[r,t,"is"]}function oC(e){var r=na(e),t=pt(e);return[r,t,"str"]}function sC(e,r,t){return t==null&&(t=se(12+4*e.v.length)),Ln(r,t),at(e.v,t),t.length>t.l?t.slice(0,t.l):t}function lC(e){var r=Bn(e),t=pt(e);return[r,t,"str"]}function cC(e,r,t){return t==null&&(t=se(8+4*e.v.length)),Mn(r,t),at(e.v,t),t.length>t.l?t.slice(0,t.l):t}function fC(e,r,t){var a=e.l+r,n=na(e);n.r=t["!row"];var i=e.read_shift(1),o=[n,i,"b"];if(t.cellFormula){e.l+=2;var s=Ts(e,a-e.l,t);o[3]=vt(s,null,n,t.supbooks,t)}else e.l=a;return o}function uC(e,r,t){var a=e.l+r,n=na(e);n.r=t["!row"];var i=e.read_shift(1),o=[n,i,"e"];if(t.cellFormula){e.l+=2;var s=Ts(e,a-e.l,t);o[3]=vt(s,null,n,t.supbooks,t)}else e.l=a;return o}function dC(e,r,t){var a=e.l+r,n=na(e);n.r=t["!row"];var i=gt(e),o=[n,i,"n"];if(t.cellFormula){e.l+=2;var s=Ts(e,a-e.l,t);o[3]=vt(s,null,n,t.supbooks,t)}else e.l=a;return o}function hC(e,r,t){var a=e.l+r,n=na(e);n.r=t["!row"];var i=pt(e),o=[n,i,"str"];if(t.cellFormula){e.l+=2;var s=Ts(e,a-e.l,t);o[3]=vt(s,null,n,t.supbooks,t)}else e.l=a;return o}var vC=Kn,xC=vi;function gC(e,r){return r==null&&(r=se(4)),r.write_shift(4,e),r}function pC(e,r){var t=e.l+r,a=Kn(e),n=l0(e),i=pt(e),o=pt(e),s=pt(e);e.l=t;var l={rfx:a,relId:n,loc:i,display:s};return o&&(l.Tooltip=o),l}function mC(e,r){var t=se(50+4*(e[1].Target.length+(e[1].Tooltip||"").length));vi({s:et(e[0]),e:et(e[0])},t),c0("rId"+r,t);var a=e[1].Target.indexOf("#"),n=a==-1?"":e[1].Target.slice(a+1);return at(n||"",t),at(e[1].Tooltip||"",t),at("",t),t.slice(0,t.l)}function wC(){}function yC(e,r,t){var a=e.l+r,n=$d(e),i=e.read_shift(1),o=[n];if(o[2]=i,t.cellFormula){var s=VS(e,a-e.l,t);o[1]=s}else e.l=a;return o}function _C(e,r,t){var a=e.l+r,n=Kn(e),i=[n];if(t.cellFormula){var o=$S(e,a-e.l,t);i[1]=o,e.l=a}else e.l=a;return i}function bC(e,r,t){t==null&&(t=se(18));var a=ks(e,r);t.write_shift(-4,e),t.write_shift(-4,e),t.write_shift(4,(a.width||10)*256),t.write_shift(4,0);var n=0;return r.hidden&&(n|=1),typeof a.width=="number"&&(n|=2),r.level&&(n|=r.level<<8),t.write_shift(2,n),t}var qh=["left","right","top","bottom","header","footer"];function SC(e){var r={};return qh.forEach(function(t){r[t]=gt(e)}),r}function EC(e,r){return r==null&&(r=se(6*8)),bn(e),qh.forEach(function(t){Tn(e[t],r)}),r}function CC(e){var r=e.read_shift(2);return e.l+=28,{RTL:r&32}}function TC(e,r,t){t==null&&(t=se(30));var a=924;return(((r||{}).Views||[])[0]||{}).RTL&&(a|=32),t.write_shift(2,a),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(1,0),t.write_shift(1,0),t.write_shift(2,0),t.write_shift(2,100),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(2,0),t.write_shift(4,0),t}function kC(e){var r=se(24);return r.write_shift(4,4),r.write_shift(4,1),vi(e,r),r}function FC(e,r){return r==null&&(r=se(16*4+2)),r.write_shift(2,e.password?g0(e.password):0),r.write_shift(4,1),[["objects",!1],["scenarios",!1],["formatCells",!0],["formatColumns",!0],["formatRows",!0],["insertColumns",!0],["insertRows",!0],["insertHyperlinks",!0],["deleteColumns",!0],["deleteRows",!0],["selectLockedCells",!1],["sort",!0],["autoFilter",!0],["pivotTables",!0],["selectUnlockedCells",!1]].forEach(function(t){t[1]?r.write_shift(4,e[t[0]]!=null&&!e[t[0]]?1:0):r.write_shift(4,e[t[0]]!=null&&e[t[0]]?0:1)}),r}function AC(){}function OC(){}function DC(e,r,t,a,n,i,o){if(!e)return e;var s=r||{};a||(a={"!id":{}});var l=s.dense?[]:{},c,f={s:{r:2e6,c:2e6},e:{r:0,c:0}},u=!1,d=!1,v,x,h,p,m,S,g,w,C,F=[];s.biff=12,s["!row"]=0;var _=0,R=!1,y=[],W={},D=s.supbooks||n.supbooks||[[]];if(D.sharedf=W,D.arrayf=y,D.SheetNames=n.SheetNames||n.Sheets.map(function(G){return G.name}),!s.supbooks&&(s.supbooks=D,n.Names))for(var E=0;E<n.Names.length;++E)D[0][E+1]=n.Names[E];var T=[],A=[],b=!1;eo[16]={n:"BrtShortReal",f:Yh};var O;if(Ha(e,function(L,X,Z){if(!d)switch(Z){case 148:c=L;break;case 0:v=L,s.sheetRows&&s.sheetRows<=v.r&&(d=!0),w=nt(p=v.r),s["!row"]=v.r,(L.hidden||L.hpt||L.level!=null)&&(L.hpt&&(L.hpx=fi(L.hpt)),A[L.r]=L);break;case 2:case 3:case 4:case 5:case 6:case 7:case 8:case 9:case 10:case 11:case 13:case 14:case 15:case 16:case 17:case 18:case 62:switch(x={t:L[2]},L[2]){case"n":x.v=L[1];break;case"s":g=Li[L[1]],x.v=g.t,x.r=g.r;break;case"b":x.v=!!L[1];break;case"e":x.v=L[1],s.cellText!==!1&&(x.w=Va[x.v]);break;case"str":x.t="s",x.v=L[1];break;case"is":x.t="s",x.v=L[1].t;break}if((h=o.CellXf[L[0].iStyleRef])&&$h(x,h.numFmtId,null,s,i,o),m=L[0].c==-1?m+1:L[0].c,s.dense?(l[p]||(l[p]=[]),l[p][m]=x):l[Jr(m)+w]=x,s.cellFormula){for(R=!1,_=0;_<y.length;++_){var I=y[_];v.r>=I[0].s.r&&v.r<=I[0].e.r&&m>=I[0].s.c&&m<=I[0].e.c&&(x.F=rr(I[0]),R=!0)}!R&&L.length>3&&(x.f=L[3])}if(f.s.r>v.r&&(f.s.r=v.r),f.s.c>m&&(f.s.c=m),f.e.r<v.r&&(f.e.r=v.r),f.e.c<m&&(f.e.c=m),s.cellDates&&h&&x.t=="n"&&di(Ue[h.numFmtId])){var z=mn(x.v);z&&(x.t="d",x.v=new Date(z.y,z.m-1,z.d,z.H,z.M,z.S,z.u))}O&&(O.type=="XLDAPR"&&(x.D=!0),O=void 0);break;case 1:case 12:if(!s.sheetStubs||u)break;x={t:"z",v:void 0},m=L[0].c==-1?m+1:L[0].c,s.dense?(l[p]||(l[p]=[]),l[p][m]=x):l[Jr(m)+w]=x,f.s.r>v.r&&(f.s.r=v.r),f.s.c>m&&(f.s.c=m),f.e.r<v.r&&(f.e.r=v.r),f.e.c<m&&(f.e.c=m),O&&(O.type=="XLDAPR"&&(x.D=!0),O=void 0);break;case 176:F.push(L);break;case 49:O=((s.xlmeta||{}).Cell||[])[L-1];break;case 494:var U=a["!id"][L.relId];for(U?(L.Target=U.Target,L.loc&&(L.Target+="#"+L.loc),L.Rel=U):L.relId==""&&(L.Target="#"+L.loc),p=L.rfx.s.r;p<=L.rfx.e.r;++p)for(m=L.rfx.s.c;m<=L.rfx.e.c;++m)s.dense?(l[p]||(l[p]=[]),l[p][m]||(l[p][m]={t:"z",v:void 0}),l[p][m].l=L):(S=$e({c:m,r:p}),l[S]||(l[S]={t:"z",v:void 0}),l[S].l=L);break;case 426:if(!s.cellFormula)break;y.push(L),C=s.dense?l[p][m]:l[Jr(m)+w],C.f=vt(L[1],f,{r:v.r,c:m},D,s),C.F=rr(L[0]);break;case 427:if(!s.cellFormula)break;W[$e(L[0].s)]=L[1],C=s.dense?l[p][m]:l[Jr(m)+w],C.f=vt(L[1],f,{r:v.r,c:m},D,s);break;case 60:if(!s.cellStyles)break;for(;L.e>=L.s;)T[L.e--]={width:L.w/256,hidden:!!(L.flags&1),level:L.level},b||(b=!0,p0(L.w/256)),an(T[L.e+1]);break;case 161:l["!autofilter"]={ref:rr(L)};break;case 476:l["!margins"]=L;break;case 147:n.Sheets[t]||(n.Sheets[t]={}),L.name&&(n.Sheets[t].CodeName=L.name),(L.above||L.left)&&(l["!outline"]={above:L.above,left:L.left});break;case 137:n.Views||(n.Views=[{}]),n.Views[0]||(n.Views[0]={}),L.RTL&&(n.Views[0].RTL=!0);break;case 485:break;case 64:case 1053:break;case 151:break;case 152:case 175:case 644:case 625:case 562:case 396:case 1112:case 1146:case 471:case 1050:case 649:case 1105:case 589:case 607:case 564:case 1055:case 168:case 174:case 1180:case 499:case 507:case 550:case 171:case 167:case 1177:case 169:case 1181:case 551:case 552:case 661:case 639:case 478:case 537:case 477:case 536:case 1103:case 680:case 1104:case 1024:case 663:case 535:case 678:case 504:case 1043:case 428:case 170:case 3072:case 50:case 2070:case 1045:break;case 35:u=!0;break;case 36:u=!1;break;case 37:u=!0;break;case 38:u=!1;break;default:if(!X.T){if(!u||s.WTF)throw new Error("Unexpected record 0x"+Z.toString(16))}}},s),delete s.supbooks,delete s["!row"],!l["!ref"]&&(f.s.r<2e6||c&&(c.e.r>0||c.e.c>0||c.s.r>0||c.s.c>0))&&(l["!ref"]=rr(c||f)),s.sheetRows&&l["!ref"]){var N=xr(l["!ref"]);s.sheetRows<=+N.e.r&&(N.e.r=s.sheetRows-1,N.e.r>f.e.r&&(N.e.r=f.e.r),N.e.r<N.s.r&&(N.s.r=N.e.r),N.e.c>f.e.c&&(N.e.c=f.e.c),N.e.c<N.s.c&&(N.s.c=N.e.c),l["!fullref"]=l["!ref"],l["!ref"]=rr(N))}return F.length>0&&(l["!merges"]=F),T.length>0&&(l["!cols"]=T),A.length>0&&(l["!rows"]=A),l}function RC(e,r,t,a,n,i,o){if(r.v===void 0)return!1;var s="";switch(r.t){case"b":s=r.v?"1":"0";break;case"d":r=Dr(r),r.z=r.z||Ue[14],r.v=ct(Ir(r.v)),r.t="n";break;case"n":case"e":s=""+r.v;break;default:s=r.v;break}var l={r:t,c:a};switch(l.s=cn(n.cellXfs,r,n),r.l&&i["!links"].push([$e(l),r.l]),r.c&&i["!comments"].push([$e(l),r.c]),r.t){case"s":case"str":return n.bookSST?(s=b0(n.Strings,r.v,n.revStrings),l.t="s",l.v=s,o?he(e,18,JE(r,l)):he(e,7,YE(r,l))):(l.t="str",o?he(e,17,cC(r,l)):he(e,6,sC(r,l))),!0;case"n":return r.v==(r.v|0)&&r.v>-1e3&&r.v<1e3?o?he(e,13,nC(r,l)):he(e,2,tC(r,l)):o?he(e,16,eC(r,l)):he(e,5,QE(r,l)),!0;case"b":return l.t="b",o?he(e,15,HE(r,l)):he(e,4,WE(r,l)),!0;case"e":return l.t="e",o?he(e,14,GE(r,l)):he(e,3,zE(r,l)),!0}return o?he(e,12,KE(r,l)):he(e,1,BE(r,l)),!0}function IC(e,r,t,a){var n=xr(r["!ref"]||"A1"),i,o="",s=[];he(e,145);var l=Array.isArray(r),c=n.e.r;r["!rows"]&&(c=Math.max(n.e.r,r["!rows"].length-1));for(var f=n.s.r;f<=c;++f){o=nt(f),OE(e,r,n,f);var u=!1;if(f<=n.e.r)for(var d=n.s.c;d<=n.e.c;++d){f===n.s.r&&(s[d]=Jr(d)),i=s[d]+o;var v=l?(r[f]||[])[d]:r[i];if(!v){u=!1;continue}u=RC(e,v,f,d,a,r,u)}}he(e,146)}function PC(e,r){!r||!r["!merges"]||(he(e,177,gC(r["!merges"].length)),r["!merges"].forEach(function(t){he(e,176,xC(t))}),he(e,178))}function NC(e,r){!r||!r["!cols"]||(he(e,390),r["!cols"].forEach(function(t,a){t&&he(e,60,bC(a,t))}),he(e,391))}function LC(e,r){!r||!r["!ref"]||(he(e,648),he(e,649,kC(xr(r["!ref"]))),he(e,650))}function BC(e,r,t){r["!links"].forEach(function(a){if(!!a[1].Target){var n=pr(t,-1,a[1].Target.replace(/#.*$/,""),Ze.HLINK);he(e,494,mC(a,n))}}),delete r["!links"]}function MC(e,r,t,a){if(r["!comments"].length>0){var n=pr(a,-1,"../drawings/vmlDrawing"+(t+1)+".vml",Ze.VML);he(e,551,c0("rId"+n)),r["!legacy"]=n}}function KC(e,r,t,a){if(!!r["!autofilter"]){var n=r["!autofilter"],i=typeof n.ref=="string"?n.ref:rr(n.ref);t.Workbook||(t.Workbook={Sheets:[]}),t.Workbook.Names||(t.Workbook.Names=[]);var o=t.Workbook.Names,s=ra(i);s.s.r==s.e.r&&(s.e.r=ra(r["!ref"]).e.r,i=rr(s));for(var l=0;l<o.length;++l){var c=o[l];if(c.Name=="_xlnm._FilterDatabase"&&c.Sheet==a){c.Ref="'"+t.SheetNames[a]+"'!"+i;break}}l==o.length&&o.push({Name:"_xlnm._FilterDatabase",Sheet:a,Ref:"'"+t.SheetNames[a]+"'!"+i}),he(e,161,vi(xr(i))),he(e,162)}}function jC(e,r,t){he(e,133),he(e,137,TC(r,t)),he(e,138),he(e,134)}function WC(e,r){!r["!protect"]||he(e,535,FC(r["!protect"]))}function UC(e,r,t,a){var n=Ot(),i=t.SheetNames[e],o=t.Sheets[i]||{},s=i;try{t&&t.Workbook&&(s=t.Workbook.Sheets[e].CodeName||s)}catch{}var l=xr(o["!ref"]||"A1");if(l.e.c>16383||l.e.r>1048575){if(r.WTF)throw new Error("Range "+(o["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");l.e.c=Math.min(l.e.c,16383),l.e.r=Math.min(l.e.c,1048575)}return o["!links"]=[],o["!comments"]=[],he(n,129),(t.vbaraw||o["!outline"])&&he(n,147,NE(s,o["!outline"])),he(n,148,RE(l)),jC(n,o,t.Workbook),NC(n,o),IC(n,o,e,r),WC(n,o),KC(n,o,t,e),PC(n,o),BC(n,o,a),o["!margins"]&&he(n,476,EC(o["!margins"])),(!r||r.ignoreEC||r.ignoreEC==null)&&LC(n,o),MC(n,o,e,a),he(n,130),n.end()}function HC(e){var r=[],t=e.match(/^<c:numCache>/),a;(e.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/mg)||[]).forEach(function(i){var o=i.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/);!o||(r[+o[1]]=t?+o[2]:o[2])});var n=ir((e.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(e.match(/<c:f>(.*?)<\/c:f>/mg)||[]).forEach(function(i){a=i.replace(/<.*?>/g,"")}),[r,n,a]}function VC(e,r,t,a,n,i){var o=i||{"!type":"chart"};if(!e)return i;var s=0,l=0,c="A",f={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(e.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(u){var d=HC(u);f.s.r=f.s.c=0,f.e.c=s,c=Jr(s),d[0].forEach(function(v,x){o[c+nt(x)]={t:"n",v,z:d[1]},l=x}),f.e.r<l&&(f.e.r=l),++s}),s>0&&(o["!ref"]=rr(f)),o}function zC(e,r,t,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o,s=e.match(Gh);return s&&S0(s[0],i,n,t),(o=e.match(/drawing r:id="(.*?)"/))&&(i["!rel"]=o[1]),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}function $C(e,r){e.l+=10;var t=pt(e);return{name:t}}function GC(e,r,t,a,n){if(!e)return e;a||(a={"!id":{}});var i={"!type":"chart","!drawel":null,"!rel":""},o=!1;return Ha(e,function(l,c,f){switch(f){case 550:i["!rel"]=l;break;case 651:n.Sheets[t]||(n.Sheets[t]={}),l.name&&(n.Sheets[t].CodeName=l.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:o=!0;break;case 36:o=!1;break;case 37:break;case 38:break;default:if(!(c.T>0)){if(!(c.T<0)){if(!o||r.WTF)throw new Error("Unexpected record 0x"+f.toString(16))}}}},r),a["!id"][i["!rel"]]&&(i["!drawel"]=a["!id"][i["!rel"]]),i}var E0=[["allowRefreshQuery",!1,"bool"],["autoCompressPictures",!0,"bool"],["backupFile",!1,"bool"],["checkCompatibility",!1,"bool"],["CodeName",""],["date1904",!1,"bool"],["defaultThemeVersion",0,"int"],["filterPrivacy",!1,"bool"],["hidePivotFieldList",!1,"bool"],["promptedSolutions",!1,"bool"],["publishItems",!1,"bool"],["refreshAllConnections",!1,"bool"],["saveExternalLinkValues",!0,"bool"],["showBorderUnselectedTables",!0,"bool"],["showInkAnnotation",!0,"bool"],["showObjects","all"],["showPivotChartFilter",!1,"bool"],["updateLinks","userSet"]],XC=[["activeTab",0,"int"],["autoFilterDateGrouping",!0,"bool"],["firstSheet",0,"int"],["minimized",!1,"bool"],["showHorizontalScroll",!0,"bool"],["showSheetTabs",!0,"bool"],["showVerticalScroll",!0,"bool"],["tabRatio",600,"int"],["visibility","visible"]],YC=[],qC=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function qf(e,r){for(var t=0;t!=e.length;++t)for(var a=e[t],n=0;n!=r.length;++n){var i=r[n];if(a[i[0]]==null)a[i[0]]=i[1];else switch(i[2]){case"bool":typeof a[i[0]]=="string"&&(a[i[0]]=Ar(a[i[0]]));break;case"int":typeof a[i[0]]=="string"&&(a[i[0]]=parseInt(a[i[0]],10));break}}}function Jf(e,r){for(var t=0;t!=r.length;++t){var a=r[t];if(e[a[0]]==null)e[a[0]]=a[1];else switch(a[2]){case"bool":typeof e[a[0]]=="string"&&(e[a[0]]=Ar(e[a[0]]));break;case"int":typeof e[a[0]]=="string"&&(e[a[0]]=parseInt(e[a[0]],10));break}}}function Jh(e){Jf(e.WBProps,E0),Jf(e.CalcPr,qC),qf(e.WBView,XC),qf(e.Sheets,YC),oi.date1904=Ar(e.WBProps.date1904)}function JC(e){return!e.Workbook||!e.Workbook.WBProps?"false":Ar(e.Workbook.WBProps.date1904)?"true":"false"}var ZC="][*?/\\".split("");function Zh(e,r){if(e.length>31){if(r)return!1;throw new Error("Sheet names cannot exceed 31 chars")}var t=!0;return ZC.forEach(function(a){if(e.indexOf(a)!=-1){if(!r)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");t=!1}}),t}function QC(e,r,t){e.forEach(function(a,n){Zh(a);for(var i=0;i<n;++i)if(a==e[i])throw new Error("Duplicate Sheet Name: "+a);if(t){var o=r&&r[n]&&r[n].CodeName||a;if(o.charCodeAt(0)==95&&o.length>22)throw new Error("Bad Code Name: Worksheet"+o)}})}function eT(e){if(!e||!e.SheetNames||!e.Sheets)throw new Error("Invalid Workbook");if(!e.SheetNames.length)throw new Error("Workbook is empty");var r=e.Workbook&&e.Workbook.Sheets||[];QC(e.SheetNames,r,!!e.vbaraw);for(var t=0;t<e.SheetNames.length;++t)JS(e.Sheets[e.SheetNames[t]],e.SheetNames[t],t)}var rT=/<\w+:workbook/;function tT(e,r){if(!e)throw new Error("Could not find file");var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},a=!1,n="xmlns",i={},o=0;if(e.replace(wt,function(l,c){var f=He(l);switch(Ea(f[0])){case"<?xml":break;case"<workbook":l.match(rT)&&(n="xmlns"+l.match(/<(\w+):/)[1]),t.xmlns=f[n];break;case"</workbook>":break;case"<fileVersion":delete f[0],t.AppVersion=f;break;case"<fileVersion/>":case"</fileVersion>":break;case"<fileSharing":break;case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":E0.forEach(function(u){if(f[u[0]]!=null)switch(u[2]){case"bool":t.WBProps[u[0]]=Ar(f[u[0]]);break;case"int":t.WBProps[u[0]]=parseInt(f[u[0]],10);break;default:t.WBProps[u[0]]=f[u[0]]}}),f.codeName&&(t.WBProps.CodeName=br(f.codeName));break;case"</workbookPr>":break;case"<workbookProtection":break;case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete f[0],t.WBView.push(f);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(f.state){case"hidden":f.Hidden=1;break;case"veryHidden":f.Hidden=2;break;default:f.Hidden=0}delete f.state,f.name=ir(br(f.name)),delete f[0],t.Sheets.push(f);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":break;case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":break;case"<externalReference":break;case"<definedNames/>":break;case"<definedNames>":case"<definedNames":a=!0;break;case"</definedNames>":a=!1;break;case"<definedName":i={},i.Name=br(f.name),f.comment&&(i.Comment=f.comment),f.localSheetId&&(i.Sheet=+f.localSheetId),Ar(f.hidden||"0")&&(i.Hidden=!0),o=c+l.length;break;case"</definedName>":i.Ref=ir(br(e.slice(o,c))),t.Names.push(i);break;case"<definedName/>":break;case"<calcPr":delete f[0],t.CalcPr=f;break;case"<calcPr/>":delete f[0],t.CalcPr=f;break;case"</calcPr>":break;case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":break;case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":break;case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":break;case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":a=!0;break;case"</ext>":a=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":a=!0;break;case"</AlternateContent>":a=!1;break;case"<revisionPtr":break;default:if(!a&&r.WTF)throw new Error("unrecognized "+f[0]+" in workbook")}return l}),Pn.indexOf(t.xmlns)===-1)throw new Error("Unknown Namespace: "+t.xmlns);return Jh(t),t}function Qh(e){var r=[Vr];r[r.length]=Se("workbook",null,{xmlns:Pn[0],"xmlns:r":Qr.r});var t=e.Workbook&&(e.Workbook.Names||[]).length>0,a={codeName:"ThisWorkbook"};e.Workbook&&e.Workbook.WBProps&&(E0.forEach(function(s){e.Workbook.WBProps[s[0]]!=null&&e.Workbook.WBProps[s[0]]!=s[1]&&(a[s[0]]=e.Workbook.WBProps[s[0]])}),e.Workbook.WBProps.CodeName&&(a.codeName=e.Workbook.WBProps.CodeName,delete a.CodeName)),r[r.length]=Se("workbookPr",null,a);var n=e.Workbook&&e.Workbook.Sheets||[],i=0;if(n&&n[0]&&!!n[0].Hidden){for(r[r.length]="<bookViews>",i=0;i!=e.SheetNames.length&&!(!n[i]||!n[i].Hidden);++i);i==e.SheetNames.length&&(i=0),r[r.length]='<workbookView firstSheet="'+i+'" activeTab="'+i+'"/>',r[r.length]="</bookViews>"}for(r[r.length]="<sheets>",i=0;i!=e.SheetNames.length;++i){var o={name:mr(e.SheetNames[i].slice(0,31))};if(o.sheetId=""+(i+1),o["r:id"]="rId"+(i+1),n[i])switch(n[i].Hidden){case 1:o.state="hidden";break;case 2:o.state="veryHidden";break}r[r.length]=Se("sheet",null,o)}return r[r.length]="</sheets>",t&&(r[r.length]="<definedNames>",e.Workbook&&e.Workbook.Names&&e.Workbook.Names.forEach(function(s){var l={name:s.Name};s.Comment&&(l.comment=s.Comment),s.Sheet!=null&&(l.localSheetId=""+s.Sheet),s.Hidden&&(l.hidden="1"),s.Ref&&(r[r.length]=Se("definedName",mr(s.Ref),l))}),r[r.length]="</definedNames>"),r.length>2&&(r[r.length]="</workbook>",r[1]=r[1].replace("/>",">")),r.join("")}function aT(e,r){var t={};return t.Hidden=e.read_shift(4),t.iTabID=e.read_shift(4),t.strRelID=_l(e),t.name=pt(e),t}function nT(e,r){return r||(r=se(127)),r.write_shift(4,e.Hidden),r.write_shift(4,e.iTabID),c0(e.strRelID,r),at(e.name.slice(0,31),r),r.length>r.l?r.slice(0,r.l):r}function iT(e,r){var t={},a=e.read_shift(4);t.defaultThemeVersion=e.read_shift(4);var n=r>8?pt(e):"";return n.length>0&&(t.CodeName=n),t.autoCompressPictures=!!(a&65536),t.backupFile=!!(a&64),t.checkCompatibility=!!(a&4096),t.date1904=!!(a&1),t.filterPrivacy=!!(a&8),t.hidePivotFieldList=!!(a&1024),t.promptedSolutions=!!(a&16),t.publishItems=!!(a&2048),t.refreshAllConnections=!!(a&262144),t.saveExternalLinkValues=!!(a&128),t.showBorderUnselectedTables=!!(a&4),t.showInkAnnotation=!!(a&32),t.showObjects=["all","placeholders","none"][a>>13&3],t.showPivotChartFilter=!!(a&32768),t.updateLinks=["userSet","never","always"][a>>8&3],t}function oT(e,r){r||(r=se(72));var t=0;return e&&e.filterPrivacy&&(t|=8),r.write_shift(4,t),r.write_shift(4,0),Vd(e&&e.CodeName||"ThisWorkbook",r),r.slice(0,r.l)}function sT(e,r){var t={};return e.read_shift(4),t.ArchID=e.read_shift(4),e.l+=r-8,t}function lT(e,r,t){var a=e.l+r;e.l+=4,e.l+=1;var n=e.read_shift(4),i=Mm(e),o=zS(e,0,t),s=l0(e);e.l=a;var l={Name:i,Ptg:o};return n<268435455&&(l.Sheet=n),s&&(l.Comment=s),l}function cT(e,r){var t={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},a=[],n=!1;r||(r={}),r.biff=12;var i=[],o=[[]];return o.SheetNames=[],o.XTI=[],eo[16]={n:"BrtFRTArchID$",f:sT},Ha(e,function(l,c,f){switch(f){case 156:o.SheetNames.push(l.name),t.Sheets.push(l);break;case 153:t.WBProps=l;break;case 39:l.Sheet!=null&&(r.SID=l.Sheet),l.Ref=vt(l.Ptg,null,null,o,r),delete r.SID,delete l.Ptg,i.push(l);break;case 1036:break;case 357:case 358:case 355:case 667:o[0].length?o.push([f,l]):o[0]=[f,l],o[o.length-1].XTI=[];break;case 362:o.length===0&&(o[0]=[],o[0].XTI=[]),o[o.length-1].XTI=o[o.length-1].XTI.concat(l),o.XTI=o.XTI.concat(l);break;case 361:break;case 2071:case 158:case 143:case 664:case 353:break;case 3072:case 3073:case 534:case 677:case 157:case 610:case 2050:case 155:case 548:case 676:case 128:case 665:case 2128:case 2125:case 549:case 2053:case 596:case 2076:case 2075:case 2082:case 397:case 154:case 1117:case 553:case 2091:break;case 35:a.push(f),n=!0;break;case 36:a.pop(),n=!1;break;case 37:a.push(f),n=!0;break;case 38:a.pop(),n=!1;break;case 16:break;default:if(!c.T){if(!n||r.WTF&&a[a.length-1]!=37&&a[a.length-1]!=35)throw new Error("Unexpected record 0x"+f.toString(16))}}},r),Jh(t),t.Names=i,t.supbooks=o,t}function fT(e,r){he(e,143);for(var t=0;t!=r.SheetNames.length;++t){var a=r.Workbook&&r.Workbook.Sheets&&r.Workbook.Sheets[t]&&r.Workbook.Sheets[t].Hidden||0,n={Hidden:a,iTabID:t+1,strRelID:"rId"+(t+1),name:r.SheetNames[t]};he(e,156,nT(n))}he(e,144)}function uT(e,r){r||(r=se(127));for(var t=0;t!=4;++t)r.write_shift(4,0);return at("SheetJS",r),at(ts.version,r),at(ts.version,r),at("7262",r),r.length>r.l?r.slice(0,r.l):r}function dT(e,r){r||(r=se(29)),r.write_shift(-4,0),r.write_shift(-4,460),r.write_shift(4,28800),r.write_shift(4,17600),r.write_shift(4,500),r.write_shift(4,e),r.write_shift(4,e);var t=120;return r.write_shift(1,t),r.length>r.l?r.slice(0,r.l):r}function hT(e,r){if(!(!r.Workbook||!r.Workbook.Sheets)){for(var t=r.Workbook.Sheets,a=0,n=-1,i=-1;a<t.length;++a)!t[a]||!t[a].Hidden&&n==-1?n=a:t[a].Hidden==1&&i==-1&&(i=a);i>n||(he(e,135),he(e,158,dT(n)),he(e,136))}}function vT(e,r){var t=Ot();return he(t,131),he(t,128,uT()),he(t,153,oT(e.Workbook&&e.Workbook.WBProps||null)),hT(t,e),fT(t,e),he(t,132),t.end()}function xT(e,r,t){return r.slice(-4)===".bin"?cT(e,t):tT(e,t)}function gT(e,r,t,a,n,i,o,s){return r.slice(-4)===".bin"?DC(e,a,t,n,i,o,s):lE(e,a,t,n,i,o,s)}function pT(e,r,t,a,n,i,o,s){return r.slice(-4)===".bin"?GC(e,a,t,n,i):zC(e,a,t,n,i)}function mT(e,r,t,a,n,i,o,s){return r.slice(-4)===".bin"?yb():_b()}function wT(e,r,t,a,n,i,o,s){return r.slice(-4)===".bin"?mb():wb()}function yT(e,r,t,a){return r.slice(-4)===".bin"?x_(e,t,a):a_(e,t,a)}function _T(e,r,t){return Ih(e,t)}function bT(e,r,t){return r.slice(-4)===".bin"?by(e,t):wy(e,t)}function ST(e,r,t){return r.slice(-4)===".bin"?hb(e,t):nb(e,t)}function ET(e,r,t){return r.slice(-4)===".bin"?rb(e):Q_(e)}function CT(e,r,t,a){return t.slice(-4)===".bin"?tb(e,r,t,a):void 0}function TT(e,r,t){return r.slice(-4)===".bin"?q_(e,r,t):Z_(e,r,t)}function kT(e,r,t){return(r.slice(-4)===".bin"?vT:Qh)(e)}function FT(e,r,t,a,n){return(r.slice(-4)===".bin"?UC:Xh)(e,t,a,n)}function AT(e,r,t){return(r.slice(-4)===".bin"?C_:Dh)(e,t)}function OT(e,r,t){return(r.slice(-4)===".bin"?Cy:Sh)(e,t)}function DT(e,r,t){return(r.slice(-4)===".bin"?vb:Lh)(e)}function RT(e){return(e.slice(-4)===".bin"?J_:Ph)()}var ev=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,rv=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function sa(e,r){var t=e.split(/\s+/),a=[];if(r||(a[0]=t[0]),t.length===1)return a;var n=e.match(ev),i,o,s,l;if(n)for(l=0;l!=n.length;++l)i=n[l].match(rv),(o=i[1].indexOf(":"))===-1?a[i[1]]=i[2].slice(1,i[2].length-1):(i[1].slice(0,6)==="xmlns:"?s="xmlns"+i[1].slice(6):s=i[1].slice(o+1),a[s]=i[2].slice(1,i[2].length-1));return a}function IT(e){var r=e.split(/\s+/),t={};if(r.length===1)return t;var a=e.match(ev),n,i,o,s;if(a)for(s=0;s!=a.length;++s)n=a[s].match(rv),(i=n[1].indexOf(":"))===-1?t[n[1]]=n[2].slice(1,n[2].length-1):(n[1].slice(0,6)==="xmlns:"?o="xmlns"+n[1].slice(6):o=n[1].slice(i+1),t[o]=n[2].slice(1,n[2].length-1));return t}var Mi;function PT(e,r){var t=Mi[e]||ir(e);return t==="General"?En(r):ea(t,r)}function NT(e,r,t,a){var n=a;switch((t[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":n=Ar(a);break;case"i2":case"int":n=parseInt(a,10);break;case"r4":case"float":n=parseFloat(a);break;case"date":case"dateTime.tz":n=Ir(a);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+t[0])}e[ir(r)]=n}function LT(e,r,t){if(e.t!=="z"){if(!t||t.cellText!==!1)try{e.t==="e"?e.w=e.w||Va[e.v]:r==="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v):e.w=En(e.v):e.w=PT(r||"General",e.v)}catch(i){if(t.WTF)throw i}try{var a=Mi[r]||r||"General";if(t.cellNF&&(e.z=a),t.cellDates&&e.t=="n"&&di(a)){var n=mn(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}catch(i){if(t.WTF)throw i}}}function BT(e,r,t){if(t.cellStyles&&r.Interior){var a=r.Interior;a.Pattern&&(a.patternType=Yy[a.Pattern]||a.Pattern)}e[r.ID]=r}function MT(e,r,t,a,n,i,o,s,l,c){var f="General",u=a.StyleID,d={};c=c||{};var v=[],x=0;for(u===void 0&&s&&(u=s.StyleID),u===void 0&&o&&(u=o.StyleID);i[u]!==void 0&&(i[u].nf&&(f=i[u].nf),i[u].Interior&&v.push(i[u].Interior),!!i[u].Parent);)u=i[u].Parent;switch(t.Type){case"Boolean":a.t="b",a.v=Ar(e);break;case"String":a.t="s",a.r=vf(ir(e)),a.v=e.indexOf("<")>-1?ir(r||e).replace(/<.*?>/g,""):a.r;break;case"DateTime":e.slice(-1)!="Z"&&(e+="Z"),a.v=(Ir(e)-new Date(Date.UTC(1899,11,30)))/(24*60*60*1e3),a.v!==a.v?a.v=ir(e):a.v<60&&(a.v=a.v-1),(!f||f=="General")&&(f="yyyy-mm-dd");case"Number":a.v===void 0&&(a.v=+e),a.t||(a.t="n");break;case"Error":a.t="e",a.v=Yd[e],c.cellText!==!1&&(a.w=e);break;default:e==""&&r==""?a.t="z":(a.t="s",a.v=vf(r||e));break}if(LT(a,f,c),c.cellFormula!==!1)if(a.Formula){var h=ir(a.Formula);h.charCodeAt(0)==61&&(h=h.slice(1)),a.f=ii(h,n),delete a.Formula,a.ArrayRange=="RC"?a.F=ii("RC:RC",n):a.ArrayRange&&(a.F=ii(a.ArrayRange,n),l.push([xr(a.F),a.F]))}else for(x=0;x<l.length;++x)n.r>=l[x][0].s.r&&n.r<=l[x][0].e.r&&n.c>=l[x][0].s.c&&n.c<=l[x][0].e.c&&(a.F=l[x][1]);c.cellStyles&&(v.forEach(function(p){!d.patternType&&p.patternType&&(d.patternType=p.patternType)}),a.s=d),a.StyleID!==void 0&&(a.ixfe=a.StyleID)}function KT(e){e.t=e.v||"",e.t=e.t.replace(/\r\n/g,`
|
||
`).replace(/\r/g,`
|
||
`),e.v=e.w=e.ixfe=void 0}function rl(e,r){var t=r||{};hi();var a=Si(n0(e));(t.type=="binary"||t.type=="array"||t.type=="base64")&&(a=br(a));var n=a.slice(0,1024).toLowerCase(),i=!1;if(n=n.replace(/".*?"/g,""),(n.indexOf(">")&1023)>Math.min(n.indexOf(",")&1023,n.indexOf(";")&1023)){var o=Dr(t);return o.type="string",ci.to_workbook(a,o)}if(n.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(Ye){n.indexOf("<"+Ye)>=0&&(i=!0)}),i)return Ek(a,t);Mi={"General Number":"General","General Date":Ue[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":Ue[15],"Short Date":Ue[14],"Long Time":Ue[19],"Medium Time":Ue[18],"Short Time":Ue[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:Ue[2],Standard:Ue[4],Percent:Ue[10],Scientific:Ue[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var s,l=[],c,f={},u=[],d=t.dense?[]:{},v="",x={},h={},p=sa('<Data ss:Type="String">'),m=0,S=0,g=0,w={s:{r:2e6,c:2e6},e:{r:0,c:0}},C={},F={},_="",R=0,y=[],W={},D={},E=0,T=[],A=[],b={},O=[],N,G=!1,L=[],X=[],Z={},I=0,z=0,U={Sheets:[],WBProps:{date1904:!1}},V={};Xi.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"");for(var q="";s=Xi.exec(a);)switch(s[3]=(q=s[3]).toLowerCase()){case"data":if(q=="data"){if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break}if(l[l.length-1][1])break;s[1]==="/"?MT(a.slice(m,s.index),_,p,l[l.length-1][0]=="comment"?b:x,{c:S,r:g},C,O[S],h,L,t):(_="",p=sa(s[0]),m=s.index+s[0].length);break;case"cell":if(s[1]==="/")if(A.length>0&&(x.c=A),(!t.sheetRows||t.sheetRows>g)&&x.v!==void 0&&(t.dense?(d[g]||(d[g]=[]),d[g][S]=x):d[Jr(S)+nt(g)]=x),x.HRef&&(x.l={Target:ir(x.HRef)},x.HRefScreenTip&&(x.l.Tooltip=x.HRefScreenTip),delete x.HRef,delete x.HRefScreenTip),(x.MergeAcross||x.MergeDown)&&(I=S+(parseInt(x.MergeAcross,10)|0),z=g+(parseInt(x.MergeDown,10)|0),y.push({s:{c:S,r:g},e:{c:I,r:z}})),!t.sheetStubs)x.MergeAcross?S=I+1:++S;else if(x.MergeAcross||x.MergeDown){for(var ee=S;ee<=I;++ee)for(var Y=g;Y<=z;++Y)(ee>S||Y>g)&&(t.dense?(d[Y]||(d[Y]=[]),d[Y][ee]={t:"z"}):d[Jr(ee)+nt(Y)]={t:"z"});S=I+1}else++S;else x=IT(s[0]),x.Index&&(S=+x.Index-1),S<w.s.c&&(w.s.c=S),S>w.e.c&&(w.e.c=S),s[0].slice(-2)==="/>"&&++S,A=[];break;case"row":s[1]==="/"||s[0].slice(-2)==="/>"?(g<w.s.r&&(w.s.r=g),g>w.e.r&&(w.e.r=g),s[0].slice(-2)==="/>"&&(h=sa(s[0]),h.Index&&(g=+h.Index-1)),S=0,++g):(h=sa(s[0]),h.Index&&(g=+h.Index-1),Z={},(h.AutoFitHeight=="0"||h.Height)&&(Z.hpx=parseInt(h.Height,10),Z.hpt=Qi(Z.hpx),X[g]=Z),h.Hidden=="1"&&(Z.hidden=!0,X[g]=Z));break;case"worksheet":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));u.push(v),w.s.r<=w.e.r&&w.s.c<=w.e.c&&(d["!ref"]=rr(w),t.sheetRows&&t.sheetRows<=w.e.r&&(d["!fullref"]=d["!ref"],w.e.r=t.sheetRows-1,d["!ref"]=rr(w))),y.length&&(d["!merges"]=y),O.length>0&&(d["!cols"]=O),X.length>0&&(d["!rows"]=X),f[v]=d}else w={s:{r:2e6,c:2e6},e:{r:0,c:0}},g=S=0,l.push([s[3],!1]),c=sa(s[0]),v=ir(c.Name),d=t.dense?[]:{},y=[],L=[],X=[],V={name:v,Hidden:0},U.Sheets.push(V);break;case"table":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else{if(s[0].slice(-2)=="/>")break;l.push([s[3],!1]),O=[],G=!1}break;case"style":s[1]==="/"?BT(C,F,t):F=sa(s[0]);break;case"numberformat":F.nf=ir(sa(s[0]).Format||"General"),Mi[F.nf]&&(F.nf=Mi[F.nf]);for(var J=0;J!=392&&Ue[J]!=F.nf;++J);if(J==392){for(J=57;J!=392;++J)if(Ue[J]==null){Pa(F.nf,J);break}}break;case"column":if(l[l.length-1][0]!=="table")break;if(N=sa(s[0]),N.Hidden&&(N.hidden=!0,delete N.Hidden),N.Width&&(N.wpx=parseInt(N.Width,10)),!G&&N.wpx>10){G=!0,xt=Ah;for(var Q=0;Q<O.length;++Q)O[Q]&&an(O[Q])}G&&an(N),O[N.Index-1||O.length]=N;for(var ce=0;ce<+N.Span;++ce)O[O.length]=Dr(N);break;case"namedrange":if(s[1]==="/")break;U.Names||(U.Names=[]);var K=He(s[0]),Oe={Name:K.Name,Ref:ii(K.RefersTo.slice(1),{r:0,c:0})};U.Sheets.length>0&&(Oe.Sheet=U.Sheets.length-1),U.Names.push(Oe);break;case"namedcell":break;case"b":break;case"i":break;case"u":break;case"s":break;case"em":break;case"h2":break;case"h3":break;case"sub":break;case"sup":break;case"span":break;case"alignment":break;case"borders":break;case"border":break;case"font":if(s[0].slice(-2)==="/>")break;s[1]==="/"?_+=a.slice(R,s.index):R=s.index+s[0].length;break;case"interior":if(!t.cellStyles)break;F.Interior=sa(s[0]);break;case"protection":break;case"author":case"title":case"description":case"created":case"keywords":case"subject":case"category":case"company":case"lastauthor":case"lastsaved":case"lastprinted":case"version":case"revision":case"totaltime":case"hyperlinkbase":case"manager":case"contentstatus":case"identifier":case"language":case"appname":if(s[0].slice(-2)==="/>")break;s[1]==="/"?cw(W,q,a.slice(E,s.index)):E=s.index+s[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else l.push([s[3],!1]);break;case"comment":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"));KT(b),A.push(b)}else l.push([s[3],!1]),c=sa(s[0]),b={a:c.Author};break;case"autofilter":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else if(s[0].charAt(s[0].length-2)!=="/"){var Ie=sa(s[0]);d["!autofilter"]={ref:ii(Ie.Range).replace(/\$/g,"")},l.push([s[3],!0])}break;case"name":break;case"datavalidation":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"pixelsperinch":break;case"componentoptions":case"documentproperties":case"customdocumentproperties":case"officedocumentsettings":case"pivottable":case"pivotcache":case"names":case"mapinfo":case"pagebreaks":case"querytable":case"sorting":case"schema":case"conditionalformatting":case"smarttagtype":case"smarttags":case"excelworkbook":case"workbookoptions":case"worksheetoptions":if(s[1]==="/"){if((c=l.pop())[0]!==s[3])throw new Error("Bad state: "+c.join("|"))}else s[0].charAt(s[0].length-2)!=="/"&&l.push([s[3],!0]);break;case"null":break;default:if(l.length==0&&s[3]=="document"||l.length==0&&s[3]=="uof")return ru(a,t);var Le=!0;switch(l[l.length-1][0]){case"officedocumentsettings":switch(s[3]){case"allowpng":break;case"removepersonalinformation":break;case"downloadcomponents":break;case"locationofcomponents":break;case"colors":break;case"color":break;case"index":break;case"rgb":break;case"targetscreensize":break;case"readonlyrecommended":break;default:Le=!1}break;case"componentoptions":switch(s[3]){case"toolbar":break;case"hideofficelogo":break;case"spreadsheetautofit":break;case"label":break;case"caption":break;case"maxheight":break;case"maxwidth":break;case"nextsheetnumber":break;default:Le=!1}break;case"excelworkbook":switch(s[3]){case"date1904":U.WBProps.date1904=!0;break;case"windowheight":break;case"windowwidth":break;case"windowtopx":break;case"windowtopy":break;case"tabratio":break;case"protectstructure":break;case"protectwindow":break;case"protectwindows":break;case"activesheet":break;case"displayinknotes":break;case"firstvisiblesheet":break;case"supbook":break;case"sheetname":break;case"sheetindex":break;case"sheetindexfirst":break;case"sheetindexlast":break;case"dll":break;case"acceptlabelsinformulas":break;case"donotsavelinkvalues":break;case"iteration":break;case"maxiterations":break;case"maxchange":break;case"path":break;case"xct":break;case"count":break;case"selectedsheets":break;case"calculation":break;case"uncalced":break;case"startupprompt":break;case"crn":break;case"externname":break;case"formula":break;case"colfirst":break;case"collast":break;case"wantadvise":break;case"boolean":break;case"error":break;case"text":break;case"ole":break;case"noautorecover":break;case"publishobjects":break;case"donotcalculatebeforesave":break;case"number":break;case"refmoder1c1":break;case"embedsavesmarttags":break;default:Le=!1}break;case"workbookoptions":switch(s[3]){case"owcversion":break;case"height":break;case"width":break;default:Le=!1}break;case"worksheetoptions":switch(s[3]){case"visible":if(s[0].slice(-2)!=="/>")if(s[1]==="/")switch(a.slice(E,s.index)){case"SheetHidden":V.Hidden=1;break;case"SheetVeryHidden":V.Hidden=2;break}else E=s.index+s[0].length;break;case"header":d["!margins"]||bn(d["!margins"]={},"xlml"),isNaN(+He(s[0]).Margin)||(d["!margins"].header=+He(s[0]).Margin);break;case"footer":d["!margins"]||bn(d["!margins"]={},"xlml"),isNaN(+He(s[0]).Margin)||(d["!margins"].footer=+He(s[0]).Margin);break;case"pagemargins":var Pe=He(s[0]);d["!margins"]||bn(d["!margins"]={},"xlml"),isNaN(+Pe.Top)||(d["!margins"].top=+Pe.Top),isNaN(+Pe.Left)||(d["!margins"].left=+Pe.Left),isNaN(+Pe.Right)||(d["!margins"].right=+Pe.Right),isNaN(+Pe.Bottom)||(d["!margins"].bottom=+Pe.Bottom);break;case"displayrighttoleft":U.Views||(U.Views=[]),U.Views[0]||(U.Views[0]={}),U.Views[0].RTL=!0;break;case"freezepanes":break;case"frozennosplit":break;case"splithorizontal":case"splitvertical":break;case"donotdisplaygridlines":break;case"activerow":break;case"activecol":break;case"toprowbottompane":break;case"leftcolumnrightpane":break;case"unsynced":break;case"print":break;case"printerrors":break;case"panes":break;case"scale":break;case"pane":break;case"number":break;case"layout":break;case"pagesetup":break;case"selected":break;case"protectobjects":break;case"enableselection":break;case"protectscenarios":break;case"validprinterinfo":break;case"horizontalresolution":break;case"verticalresolution":break;case"numberofcopies":break;case"activepane":break;case"toprowvisible":break;case"leftcolumnvisible":break;case"fittopage":break;case"rangeselection":break;case"papersizeindex":break;case"pagelayoutzoom":break;case"pagebreakzoom":break;case"filteron":break;case"fitwidth":break;case"fitheight":break;case"commentslayout":break;case"zoom":break;case"lefttoright":break;case"gridlines":break;case"allowsort":break;case"allowfilter":break;case"allowinsertrows":break;case"allowdeleterows":break;case"allowinsertcols":break;case"allowdeletecols":break;case"allowinserthyperlinks":break;case"allowformatcells":break;case"allowsizecols":break;case"allowsizerows":break;case"nosummaryrowsbelowdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].above=!0;break;case"tabcolorindex":break;case"donotdisplayheadings":break;case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":d["!outline"]||(d["!outline"]={}),d["!outline"].left=!0;break;case"blackandwhite":break;case"donotdisplayzeros":break;case"displaypagebreak":break;case"rowcolheadings":break;case"donotdisplayoutline":break;case"noorientation":break;case"allowusepivottables":break;case"zeroheight":break;case"viewablerange":break;case"selection":break;case"protectcontents":break;default:Le=!1}break;case"pivottable":case"pivotcache":switch(s[3]){case"immediateitemsondrop":break;case"showpagemultipleitemlabel":break;case"compactrowindent":break;case"location":break;case"pivotfield":break;case"orientation":break;case"layoutform":break;case"layoutsubtotallocation":break;case"layoutcompactrow":break;case"position":break;case"pivotitem":break;case"datatype":break;case"datafield":break;case"sourcename":break;case"parentfield":break;case"ptlineitems":break;case"ptlineitem":break;case"countofsameitems":break;case"item":break;case"itemtype":break;case"ptsource":break;case"cacheindex":break;case"consolidationreference":break;case"filename":break;case"reference":break;case"nocolumngrand":break;case"norowgrand":break;case"blanklineafteritems":break;case"hidden":break;case"subtotal":break;case"basefield":break;case"mapchilditems":break;case"function":break;case"refreshonfileopen":break;case"printsettitles":break;case"mergelabels":break;case"defaultversion":break;case"refreshname":break;case"refreshdate":break;case"refreshdatecopy":break;case"versionlastrefresh":break;case"versionlastupdate":break;case"versionupdateablemin":break;case"versionrefreshablemin":break;case"calculation":break;default:Le=!1}break;case"pagebreaks":switch(s[3]){case"colbreaks":break;case"colbreak":break;case"rowbreaks":break;case"rowbreak":break;case"colstart":break;case"colend":break;case"rowend":break;default:Le=!1}break;case"autofilter":switch(s[3]){case"autofiltercolumn":break;case"autofiltercondition":break;case"autofilterand":break;case"autofilteror":break;default:Le=!1}break;case"querytable":switch(s[3]){case"id":break;case"autoformatfont":break;case"autoformatpattern":break;case"querysource":break;case"querytype":break;case"enableredirections":break;case"refreshedinxl9":break;case"urlstring":break;case"htmltables":break;case"connection":break;case"commandtext":break;case"refreshinfo":break;case"notitles":break;case"nextid":break;case"columninfo":break;case"overwritecells":break;case"donotpromptforfile":break;case"textwizardsettings":break;case"source":break;case"number":break;case"decimal":break;case"thousandseparator":break;case"trailingminusnumbers":break;case"formatsettings":break;case"fieldtype":break;case"delimiters":break;case"tab":break;case"comma":break;case"autoformatname":break;case"versionlastedit":break;case"versionlastrefresh":break;default:Le=!1}break;case"datavalidation":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;case"cellrangelist":break;default:Le=!1}break;case"sorting":case"conditionalformatting":switch(s[3]){case"range":break;case"type":break;case"min":break;case"max":break;case"sort":break;case"descending":break;case"order":break;case"casesensitive":break;case"value":break;case"errorstyle":break;case"errormessage":break;case"errortitle":break;case"cellrangelist":break;case"inputmessage":break;case"inputtitle":break;case"combohide":break;case"inputhide":break;case"condition":break;case"qualifier":break;case"useblank":break;case"value1":break;case"value2":break;case"format":break;default:Le=!1}break;case"mapinfo":case"schema":case"data":switch(s[3]){case"map":break;case"entry":break;case"range":break;case"xpath":break;case"field":break;case"xsdtype":break;case"filteron":break;case"aggregate":break;case"elementtype":break;case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":break;case"row":break;default:Le=!1}break;case"smarttags":break;default:Le=!1;break}if(Le||s[3].match(/!\[CDATA/))break;if(!l[l.length-1][1])throw"Unrecognized tag: "+s[3]+"|"+l.join("|");if(l[l.length-1][0]==="customdocumentproperties"){if(s[0].slice(-2)==="/>")break;s[1]==="/"?NT(D,q,T,a.slice(E,s.index)):(T=s,E=s.index+s[0].length);break}if(t.WTF)throw"Unrecognized tag: "+s[3]+"|"+l.join("|")}var ve={};return!t.bookSheets&&!t.bookProps&&(ve.Sheets=f),ve.SheetNames=u,ve.Workbook=U,ve.SSF=Dr(Ue),ve.Props=W,ve.Custprops=D,ve}function Fl(e,r){switch(T0(r=r||{}),r.type||"base64"){case"base64":return rl(jt(e),r);case"binary":case"buffer":case"file":return rl(e,r);case"array":return rl(ln(e),r)}}function jT(e,r){var t=[];return e.Props&&t.push(fw(e.Props,r)),e.Custprops&&t.push(uw(e.Props,e.Custprops)),t.join("")}function WT(){return""}function UT(e,r){var t=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'];return r.cellXfs.forEach(function(a,n){var i=[];i.push(Se("NumberFormat",null,{"ss:Format":mr(Ue[a.numFmtId])}));var o={"ss:ID":"s"+(21+n)};t.push(Se("Style",i.join(""),o))}),Se("Styles",t.join(""))}function tv(e){return Se("NamedRange",null,{"ss:Name":e.Name,"ss:RefersTo":"="+y0(e.Ref,{r:0,c:0})})}function HT(e){if(!((e||{}).Workbook||{}).Names)return"";for(var r=e.Workbook.Names,t=[],a=0;a<r.length;++a){var n=r[a];n.Sheet==null&&(n.Name.match(/^_xlfn\./)||t.push(tv(n)))}return Se("Names",t.join(""))}function VT(e,r,t,a){if(!e||!((a||{}).Workbook||{}).Names)return"";for(var n=a.Workbook.Names,i=[],o=0;o<n.length;++o){var s=n[o];s.Sheet==t&&(s.Name.match(/^_xlfn\./)||i.push(tv(s)))}return i.join("")}function zT(e,r,t,a){if(!e)return"";var n=[];if(e["!margins"]&&(n.push("<PageSetup>"),e["!margins"].header&&n.push(Se("Header",null,{"x:Margin":e["!margins"].header})),e["!margins"].footer&&n.push(Se("Footer",null,{"x:Margin":e["!margins"].footer})),n.push(Se("PageMargins",null,{"x:Bottom":e["!margins"].bottom||"0.75","x:Left":e["!margins"].left||"0.7","x:Right":e["!margins"].right||"0.7","x:Top":e["!margins"].top||"0.75"})),n.push("</PageSetup>")),a&&a.Workbook&&a.Workbook.Sheets&&a.Workbook.Sheets[t])if(a.Workbook.Sheets[t].Hidden)n.push(Se("Visible",a.Workbook.Sheets[t].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var i=0;i<t&&!(a.Workbook.Sheets[i]&&!a.Workbook.Sheets[i].Hidden);++i);i==t&&n.push("<Selected/>")}return((((a||{}).Workbook||{}).Views||[])[0]||{}).RTL&&n.push("<DisplayRightToLeft/>"),e["!protect"]&&(n.push(lt("ProtectContents","True")),e["!protect"].objects&&n.push(lt("ProtectObjects","True")),e["!protect"].scenarios&&n.push(lt("ProtectScenarios","True")),e["!protect"].selectLockedCells!=null&&!e["!protect"].selectLockedCells?n.push(lt("EnableSelection","NoSelection")):e["!protect"].selectUnlockedCells!=null&&!e["!protect"].selectUnlockedCells&&n.push(lt("EnableSelection","UnlockedCells")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(o){e["!protect"][o[0]]&&n.push("<"+o[1]+"/>")})),n.length==0?"":Se("WorksheetOptions",n.join(""),{xmlns:Pt.x})}function $T(e){return e.map(function(r){var t=dm(r.t||""),a=Se("ss:Data",t,{xmlns:"http://www.w3.org/TR/REC-html40"});return Se("Comment",a,{"ss:Author":r.a})}).join("")}function GT(e,r,t,a,n,i,o){if(!e||e.v==null&&e.f==null)return"";var s={};if(e.f&&(s["ss:Formula"]="="+mr(y0(e.f,o))),e.F&&e.F.slice(0,r.length)==r){var l=et(e.F.slice(r.length+1));s["ss:ArrayRange"]="RC:R"+(l.r==o.r?"":"["+(l.r-o.r)+"]")+"C"+(l.c==o.c?"":"["+(l.c-o.c)+"]")}if(e.l&&e.l.Target&&(s["ss:HRef"]=mr(e.l.Target),e.l.Tooltip&&(s["x:HRefScreenTip"]=mr(e.l.Tooltip))),t["!merges"])for(var c=t["!merges"],f=0;f!=c.length;++f)c[f].s.c!=o.c||c[f].s.r!=o.r||(c[f].e.c>c[f].s.c&&(s["ss:MergeAcross"]=c[f].e.c-c[f].s.c),c[f].e.r>c[f].s.r&&(s["ss:MergeDown"]=c[f].e.r-c[f].s.r));var u="",d="";switch(e.t){case"z":if(!a.sheetStubs)return"";break;case"n":u="Number",d=String(e.v);break;case"b":u="Boolean",d=e.v?"1":"0";break;case"e":u="Error",d=Va[e.v];break;case"d":u="DateTime",d=new Date(e.v).toISOString(),e.z==null&&(e.z=e.z||Ue[14]);break;case"s":u="String",d=um(e.v||"");break}var v=cn(a.cellXfs,e,a);s["ss:StyleID"]="s"+(21+v),s["ss:Index"]=o.c+1;var x=e.v!=null?d:"",h=e.t=="z"?"":'<Data ss:Type="'+u+'">'+x+"</Data>";return(e.c||[]).length>0&&(h+=$T(e.c)),Se("Cell",h,s)}function XT(e,r){var t='<Row ss:Index="'+(e+1)+'"';return r&&(r.hpt&&!r.hpx&&(r.hpx=fi(r.hpt)),r.hpx&&(t+=' ss:AutoFitHeight="0" ss:Height="'+r.hpx+'"'),r.hidden&&(t+=' ss:Hidden="1"')),t+">"}function YT(e,r,t,a){if(!e["!ref"])return"";var n=xr(e["!ref"]),i=e["!merges"]||[],o=0,s=[];e["!cols"]&&e["!cols"].forEach(function(p,m){an(p);var S=!!p.width,g=ks(m,p),w={"ss:Index":m+1};S&&(w["ss:Width"]=Ji(g.width)),p.hidden&&(w["ss:Hidden"]="1"),s.push(Se("Column",null,w))});for(var l=Array.isArray(e),c=n.s.r;c<=n.e.r;++c){for(var f=[XT(c,(e["!rows"]||[])[c])],u=n.s.c;u<=n.e.c;++u){var d=!1;for(o=0;o!=i.length;++o)if(!(i[o].s.c>u)&&!(i[o].s.r>c)&&!(i[o].e.c<u)&&!(i[o].e.r<c)){(i[o].s.c!=u||i[o].s.r!=c)&&(d=!0);break}if(!d){var v={r:c,c:u},x=$e(v),h=l?(e[c]||[])[u]:e[x];f.push(GT(h,x,e,r,t,a,v))}}f.push("</Row>"),f.length>2&&s.push(f.join(""))}return s.join("")}function qT(e,r,t){var a=[],n=t.SheetNames[e],i=t.Sheets[n],o=i?VT(i,r,e,t):"";return o.length>0&&a.push("<Names>"+o+"</Names>"),o=i?YT(i,r,e,t):"",o.length>0&&a.push("<Table>"+o+"</Table>"),a.push(zT(i,r,e,t)),a.join("")}function JT(e,r){r||(r={}),e.SSF||(e.SSF=Dr(Ue)),e.SSF&&(hi(),ys(e.SSF),r.revssf=bs(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF,r.cellXfs=[],cn(r.cellXfs,{},{revssf:{General:0}}));var t=[];t.push(jT(e,r)),t.push(WT()),t.push(""),t.push("");for(var a=0;a<e.SheetNames.length;++a)t.push(Se("Worksheet",qT(a,r,e),{"ss:Name":mr(e.SheetNames[a])}));return t[2]=UT(e,r),t[3]=HT(e),Vr+Se("Workbook",t.join(""),{xmlns:Pt.ss,"xmlns:o":Pt.o,"xmlns:x":Pt.x,"xmlns:ss":Pt.ss,"xmlns:dt":Pt.dt,"xmlns:html":Pt.html})}function ZT(e){var r={},t=e.content;if(t.l=28,r.AnsiUserType=t.read_shift(0,"lpstr-ansi"),r.AnsiClipboardFormat=Hm(t),t.length-t.l<=4)return r;var a=t.read_shift(4);if(a==0||a>40||(t.l-=4,r.Reserved1=t.read_shift(0,"lpstr-ansi"),t.length-t.l<=4)||(a=t.read_shift(4),a!==1907505652)||(r.UnicodeClipboardFormat=Vm(t),a=t.read_shift(4),a==0||a>40))return r;t.l-=4,r.Reserved2=t.read_shift(0,"lpwstr")}var QT=[60,1084,2066,2165,2175];function ek(e,r,t,a,n){var i=a,o=[],s=t.slice(t.l,t.l+i);if(n&&n.enc&&n.enc.insitu&&s.length>0)switch(e){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:break;case 133:break;default:n.enc.insitu(s)}o.push(s),t.l+=i;for(var l=Da(t,t.l),c=Al[l],f=0;c!=null&&QT.indexOf(l)>-1;)i=Da(t,t.l+2),f=t.l+4,l==2066?f+=4:(l==2165||l==2175)&&(f+=12),s=t.slice(f,t.l+4+i),o.push(s),t.l+=4+i,c=Al[l=Da(t,t.l)];var u=tt(o);st(u,0);var d=0;u.lens=[];for(var v=0;v<o.length;++v)u.lens.push(d),d+=o[v].length;if(u.length<a)throw"XLS Record 0x"+e.toString(16)+" Truncated: "+u.length+" < "+a;return r.f(u,u.length,n)}function pa(e,r,t){if(e.t!=="z"&&!!e.XF){var a=0;try{a=e.z||e.XF.numFmtId||0,r.cellNF&&(e.z=Ue[a])}catch(i){if(r.WTF)throw i}if(!r||r.cellText!==!1)try{e.t==="e"?e.w=e.w||Va[e.v]:a===0||a=="General"?e.t==="n"?(e.v|0)===e.v?e.w=e.v.toString(10):e.w=Vi(e.v):e.w=En(e.v):e.w=ea(a,e.v,{date1904:!!t,dateNF:r&&r.dateNF})}catch(i){if(r.WTF)throw i}if(r.cellDates&&a&&e.t=="n"&&di(Ue[a]||String(a))){var n=mn(e.v);n&&(e.t="d",e.v=new Date(n.y,n.m-1,n.d,n.H,n.M,n.S,n.u))}}}function Bo(e,r,t){return{v:e,ixfe:r,t}}function rk(e,r){var t={opts:{}},a={},n=r.dense?[]:{},i={},o={},s=null,l=[],c="",f={},u,d="",v,x,h,p,m={},S=[],g,w,C=[],F=[],_={Sheets:[],WBProps:{date1904:!1},Views:[{}]},R={},y=function(me){return me<8?wn[me]:me<64&&F[me-8]||wn[me]},W=function(me,De,Ke){var Ne=De.XF.data;if(!(!Ne||!Ne.patternType||!Ke||!Ke.cellStyles)){De.s={},De.s.patternType=Ne.patternType;var Be;(Be=qi(y(Ne.icvFore)))&&(De.s.fgColor={rgb:Be}),(Be=qi(y(Ne.icvBack)))&&(De.s.bgColor={rgb:Be})}},D=function(me,De,Ke){if(!(Z>1)&&!(Ke.sheetRows&&me.r>=Ke.sheetRows)){if(Ke.cellStyles&&De.XF&&De.XF.data&&W(me,De,Ke),delete De.ixfe,delete De.XF,u=me,d=$e(me),(!o||!o.s||!o.e)&&(o={s:{r:0,c:0},e:{r:0,c:0}}),me.r<o.s.r&&(o.s.r=me.r),me.c<o.s.c&&(o.s.c=me.c),me.r+1>o.e.r&&(o.e.r=me.r+1),me.c+1>o.e.c&&(o.e.c=me.c+1),Ke.cellFormula&&De.f){for(var Ne=0;Ne<S.length;++Ne)if(!(S[Ne][0].s.c>me.c||S[Ne][0].s.r>me.r)&&!(S[Ne][0].e.c<me.c||S[Ne][0].e.r<me.r)){De.F=rr(S[Ne][0]),(S[Ne][0].s.c!=me.c||S[Ne][0].s.r!=me.r)&&delete De.f,De.f&&(De.f=""+vt(S[Ne][1],o,me,L,E));break}}Ke.dense?(n[me.r]||(n[me.r]=[]),n[me.r][me.c]=De):n[d]=De}},E={enc:!1,sbcch:0,snames:[],sharedf:m,arrayf:S,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!r&&!!r.cellStyles,WTF:!!r&&!!r.wtf};r.password&&(E.password=r.password);var T,A=[],b=[],O=[],N=[],G=!1,L=[];L.SheetNames=E.snames,L.sharedf=E.sharedf,L.arrayf=E.arrayf,L.names=[],L.XTI=[];var X=0,Z=0,I=0,z=[],U=[],V;E.codepage=1200,ca(1200);for(var q=!1;e.l<e.length-1;){var ee=e.l,Y=e.read_shift(2);if(Y===0&&X===10)break;var J=e.l===e.length?0:e.read_shift(2),Q=Al[Y];if(Q&&Q.f){if(r.bookSheets&&X===133&&Y!==133)break;if(X=Y,Q.r===2||Q.r==12){var ce=e.read_shift(2);if(J-=2,!E.enc&&ce!==Y&&((ce&255)<<8|ce>>8)!==Y)throw new Error("rt mismatch: "+ce+"!="+Y);Q.r==12&&(e.l+=10,J-=10)}var K={};if(Y===10?K=Q.f(e,J,E):K=ek(Y,Q,e,J,E),Z==0&&[9,521,1033,2057].indexOf(X)===-1)continue;switch(Y){case 34:t.opts.Date1904=_.WBProps.date1904=K;break;case 134:t.opts.WriteProtect=!0;break;case 47:if(E.enc||(e.l=0),E.enc=K,!r.password)throw new Error("File is password-protected");if(K.valid==null)throw new Error("Encryption scheme unsupported");if(!K.valid)throw new Error("Password is incorrect");break;case 92:E.lastuser=K;break;case 66:var Oe=Number(K);switch(Oe){case 21010:Oe=1200;break;case 32768:Oe=1e4;break;case 32769:Oe=1252;break}ca(E.codepage=Oe),q=!0;break;case 317:E.rrtabid=K;break;case 25:E.winlocked=K;break;case 439:t.opts.RefreshAll=K;break;case 12:t.opts.CalcCount=K;break;case 16:t.opts.CalcDelta=K;break;case 17:t.opts.CalcIter=K;break;case 13:t.opts.CalcMode=K;break;case 14:t.opts.CalcPrecision=K;break;case 95:t.opts.CalcSaveRecalc=K;break;case 15:E.CalcRefMode=K;break;case 2211:t.opts.FullCalc=K;break;case 129:K.fDialog&&(n["!type"]="dialog"),K.fBelow||((n["!outline"]||(n["!outline"]={})).above=!0),K.fRight||((n["!outline"]||(n["!outline"]={})).left=!0);break;case 224:C.push(K);break;case 430:L.push([K]),L[L.length-1].XTI=[];break;case 35:case 547:L[L.length-1].push(K);break;case 24:case 536:V={Name:K.Name,Ref:vt(K.rgce,o,null,L,E)},K.itab>0&&(V.Sheet=K.itab-1),L.names.push(V),L[0]||(L[0]=[],L[0].XTI=[]),L[L.length-1].push(K),K.Name=="_xlnm._FilterDatabase"&&K.itab>0&&K.rgce&&K.rgce[0]&&K.rgce[0][0]&&K.rgce[0][0][0]=="PtgArea3d"&&(U[K.itab-1]={ref:rr(K.rgce[0][0][1][2])});break;case 22:E.ExternCount=K;break;case 23:L.length==0&&(L[0]=[],L[0].XTI=[]),L[L.length-1].XTI=L[L.length-1].XTI.concat(K),L.XTI=L.XTI.concat(K);break;case 2196:if(E.biff<8)break;V!=null&&(V.Comment=K[1]);break;case 18:n["!protect"]=K;break;case 19:K!==0&&E.WTF&&console.error("Password verifier: "+K);break;case 133:i[K.pos]=K,E.snames.push(K.name);break;case 10:{if(--Z)break;if(o.e){if(o.e.r>0&&o.e.c>0){if(o.e.r--,o.e.c--,n["!ref"]=rr(o),r.sheetRows&&r.sheetRows<=o.e.r){var Ie=o.e.r;o.e.r=r.sheetRows-1,n["!fullref"]=n["!ref"],n["!ref"]=rr(o),o.e.r=Ie}o.e.r++,o.e.c++}A.length>0&&(n["!merges"]=A),b.length>0&&(n["!objects"]=b),O.length>0&&(n["!cols"]=O),N.length>0&&(n["!rows"]=N),_.Sheets.push(R)}c===""?f=n:a[c]=n,n=r.dense?[]:{}}break;case 9:case 521:case 1033:case 2057:{if(E.biff===8&&(E.biff={9:2,521:3,1033:4}[Y]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[K.BIFFVer]||8),E.biffguess=K.BIFFVer==0,K.BIFFVer==0&&K.dt==4096&&(E.biff=5,q=!0,ca(E.codepage=28591)),E.biff==8&&K.BIFFVer==0&&K.dt==16&&(E.biff=2),Z++)break;if(n=r.dense?[]:{},E.biff<8&&!q&&(q=!0,ca(E.codepage=r.codepage||1252)),E.biff<5||K.BIFFVer==0&&K.dt==4096){c===""&&(c="Sheet1"),o={s:{r:0,c:0},e:{r:0,c:0}};var Le={pos:e.l-J,name:c};i[Le.pos]=Le,E.snames.push(c)}else c=(i[ee]||{name:""}).name;K.dt==32&&(n["!type"]="chart"),K.dt==64&&(n["!type"]="macro"),A=[],b=[],E.arrayf=S=[],O=[],N=[],G=!1,R={Hidden:(i[ee]||{hs:0}).hs,name:c}}break;case 515:case 3:case 2:n["!type"]=="chart"&&(r.dense?(n[K.r]||[])[K.c]:n[$e({c:K.c,r:K.r})])&&++K.c,g={ixfe:K.ixfe,XF:C[K.ixfe]||{},v:K.val,t:"n"},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r);break;case 5:case 517:g={ixfe:K.ixfe,XF:C[K.ixfe],v:K.val,t:K.t},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r);break;case 638:g={ixfe:K.ixfe,XF:C[K.ixfe],v:K.rknum,t:"n"},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r);break;case 189:for(var Pe=K.c;Pe<=K.C;++Pe){var ve=K.rkrec[Pe-K.c][0];g={ixfe:ve,XF:C[ve],v:K.rkrec[Pe-K.c][1],t:"n"},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:Pe,r:K.r},g,r)}break;case 6:case 518:case 1030:{if(K.val=="String"){s=K;break}if(g=Bo(K.val,K.cell.ixfe,K.tt),g.XF=C[g.ixfe],r.cellFormula){var Ye=K.formula;if(Ye&&Ye[0]&&Ye[0][0]&&Ye[0][0][0]=="PtgExp"){var dr=Ye[0][0][1][0],hr=Ye[0][0][1][1],kr=$e({r:dr,c:hr});m[kr]?g.f=""+vt(K.formula,o,K.cell,L,E):g.F=((r.dense?(n[dr]||[])[hr]:n[kr])||{}).F}else g.f=""+vt(K.formula,o,K.cell,L,E)}I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D(K.cell,g,r),s=K}break;case 7:case 519:if(s)s.val=K,g=Bo(K,s.cell.ixfe,"s"),g.XF=C[g.ixfe],r.cellFormula&&(g.f=""+vt(s.formula,o,s.cell,L,E)),I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D(s.cell,g,r),s=null;else throw new Error("String record expects Formula");break;case 33:case 545:{S.push(K);var Qe=$e(K[0].s);if(v=r.dense?(n[K[0].s.r]||[])[K[0].s.c]:n[Qe],r.cellFormula&&v){if(!s||!Qe||!v)break;v.f=""+vt(K[1],o,K[0],L,E),v.F=rr(K[0])}}break;case 1212:{if(!r.cellFormula)break;if(d){if(!s)break;m[$e(s.cell)]=K[0],v=r.dense?(n[s.cell.r]||[])[s.cell.c]:n[$e(s.cell)],(v||{}).f=""+vt(K[0],o,u,L,E)}}break;case 253:g=Bo(l[K.isst].t,K.ixfe,"s"),l[K.isst].h&&(g.h=l[K.isst].h),g.XF=C[g.ixfe],I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r);break;case 513:r.sheetStubs&&(g={ixfe:K.ixfe,XF:C[K.ixfe],t:"z"},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r));break;case 190:if(r.sheetStubs)for(var zr=K.c;zr<=K.C;++zr){var ge=K.ixfe[zr-K.c];g={ixfe:ge,XF:C[ge],t:"z"},I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:zr,r:K.r},g,r)}break;case 214:case 516:case 4:g=Bo(K.val,K.ixfe,"s"),g.XF=C[g.ixfe],I>0&&(g.z=z[g.ixfe>>8&63]),pa(g,r,t.opts.Date1904),D({c:K.c,r:K.r},g,r);break;case 0:case 512:Z===1&&(o=K);break;case 252:l=K;break;case 1054:if(E.biff==4){z[I++]=K[1];for(var Fe=0;Fe<I+163&&Ue[Fe]!=K[1];++Fe);Fe>=163&&Pa(K[1],I+163)}else Pa(K[1],K[0]);break;case 30:{z[I++]=K;for(var Ae=0;Ae<I+163&&Ue[Ae]!=K;++Ae);Ae>=163&&Pa(K,I+163)}break;case 229:A=A.concat(K);break;case 93:b[K.cmo[0]]=E.lastobj=K;break;case 438:E.lastobj.TxO=K;break;case 127:E.lastobj.ImData=K;break;case 440:for(p=K[0].s.r;p<=K[0].e.r;++p)for(h=K[0].s.c;h<=K[0].e.c;++h)v=r.dense?(n[p]||[])[h]:n[$e({c:h,r:p})],v&&(v.l=K[1]);break;case 2048:for(p=K[0].s.r;p<=K[0].e.r;++p)for(h=K[0].s.c;h<=K[0].e.c;++h)v=r.dense?(n[p]||[])[h]:n[$e({c:h,r:p})],v&&v.l&&(v.l.Tooltip=K[1]);break;case 28:{if(E.biff<=5&&E.biff>=2)break;v=r.dense?(n[K[0].r]||[])[K[0].c]:n[$e(K[0])];var de=b[K[2]];v||(r.dense?(n[K[0].r]||(n[K[0].r]=[]),v=n[K[0].r][K[0].c]={t:"z"}):v=n[$e(K[0])]={t:"z"},o.e.r=Math.max(o.e.r,K[0].r),o.s.r=Math.min(o.s.r,K[0].r),o.e.c=Math.max(o.e.c,K[0].c),o.s.c=Math.min(o.s.c,K[0].c)),v.c||(v.c=[]),x={a:K[1],t:de.TxO.t},v.c.push(x)}break;case 2173:U_(C[K.ixfe],K.ext);break;case 125:{if(!E.cellStyles)break;for(;K.e>=K.s;)O[K.e--]={width:K.w/256,level:K.level||0,hidden:!!(K.flags&1)},G||(G=!0,p0(K.w/256)),an(O[K.e+1])}break;case 520:{var be={};K.level!=null&&(N[K.r]=be,be.level=K.level),K.hidden&&(N[K.r]=be,be.hidden=!0),K.hpt&&(N[K.r]=be,be.hpt=K.hpt,be.hpx=fi(K.hpt))}break;case 38:case 39:case 40:case 41:n["!margins"]||bn(n["!margins"]={}),n["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Y]]=K;break;case 161:n["!margins"]||bn(n["!margins"]={}),n["!margins"].header=K.header,n["!margins"].footer=K.footer;break;case 574:K.RTL&&(_.Views[0].RTL=!0);break;case 146:F=K;break;case 2198:T=K;break;case 140:w=K;break;case 442:c?R.CodeName=K||R.name:_.WBProps.CodeName=K||"ThisWorkbook";break}}else Q||console.error("Missing Info for XLS Record 0x"+Y.toString(16)),e.l+=J}return t.SheetNames=Hr(i).sort(function(ke,me){return Number(ke)-Number(me)}).map(function(ke){return i[ke].name}),r.bookSheets||(t.Sheets=a),!t.SheetNames.length&&f["!ref"]?(t.SheetNames.push("Sheet1"),t.Sheets&&(t.Sheets.Sheet1=f)):t.Preamble=f,t.Sheets&&U.forEach(function(ke,me){t.Sheets[t.SheetNames[me]]["!autofilter"]=ke}),t.Strings=l,t.SSF=Dr(Ue),E.enc&&(t.Encryption=E.enc),T&&(t.Themes=T),t.Metadata={},w!==void 0&&(t.Metadata.Country=w),L.names.length>0&&(_.Names=L.names),t.Workbook=_,t}var Ki={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function tk(e,r,t){var a=Me.find(e,"/!DocumentSummaryInformation");if(a&&a.size>0)try{var n=Rf(a,bl,Ki.DSI);for(var i in n)r[i]=n[i]}catch(c){if(t.WTF)throw c}var o=Me.find(e,"/!SummaryInformation");if(o&&o.size>0)try{var s=Rf(o,Sl,Ki.SI);for(var l in s)r[l]==null&&(r[l]=s[l])}catch(c){if(t.WTF)throw c}r.HeadingPairs&&r.TitlesOfParts&&(rh(r.HeadingPairs,r.TitlesOfParts,r,t),delete r.HeadingPairs,delete r.TitlesOfParts)}function ak(e,r){var t=[],a=[],n=[],i=0,o,s=lf(bl,"n"),l=lf(Sl,"n");if(e.Props)for(o=Hr(e.Props),i=0;i<o.length;++i)(Object.prototype.hasOwnProperty.call(s,o[i])?t:Object.prototype.hasOwnProperty.call(l,o[i])?a:n).push([o[i],e.Props[o[i]]]);if(e.Custprops)for(o=Hr(e.Custprops),i=0;i<o.length;++i)Object.prototype.hasOwnProperty.call(e.Props||{},o[i])||(Object.prototype.hasOwnProperty.call(s,o[i])?t:Object.prototype.hasOwnProperty.call(l,o[i])?a:n).push([o[i],e.Custprops[o[i]]]);var c=[];for(i=0;i<n.length;++i)lh.indexOf(n[i][0])>-1||eh.indexOf(n[i][0])>-1||n[i][1]!=null&&c.push(n[i]);a.length&&Me.utils.cfb_add(r,"/SummaryInformation",If(a,Ki.SI,l,Sl)),(t.length||c.length)&&Me.utils.cfb_add(r,"/DocumentSummaryInformation",If(t,Ki.DSI,s,bl,c.length?c:null,Ki.UDI))}function av(e,r){r||(r={}),T0(r),Yl(),r.codepage&&Xl(r.codepage);var t,a;if(e.FullPaths){if(Me.find(e,"/encryption"))throw new Error("File is password-protected");t=Me.find(e,"!CompObj"),a=Me.find(e,"/Workbook")||Me.find(e,"/Book")}else{switch(r.type){case"base64":e=Bt(jt(e));break;case"binary":e=Bt(e);break;case"buffer":break;case"array":Array.isArray(e)||(e=Array.prototype.slice.call(e));break}st(e,0),a={content:e}}var n,i;if(t&&ZT(t),r.bookProps&&!r.bookSheets)n={};else{var o=Je?"buffer":"array";if(a&&a.content)n=rk(a.content,r);else if((i=Me.find(e,"PerfectOffice_MAIN"))&&i.content)n=_n.to_workbook(i.content,(r.type=o,r));else if((i=Me.find(e,"NativeContent_MAIN"))&&i.content)n=_n.to_workbook(i.content,(r.type=o,r));else throw(i=Me.find(e,"MN0"))&&i.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");r.bookVBA&&e.FullPaths&&Me.find(e,"/_VBA_PROJECT_CUR/VBA/dir")&&(n.vbaraw=gb(e))}var s={};return e.FullPaths&&tk(e,s,r),n.Props=n.Custprops=s,r.bookFiles&&(n.cfb=e),n}function nk(e,r){var t=r||{},a=Me.utils.cfb_new({root:"R"}),n="/Workbook";switch(t.bookType||"xls"){case"xls":t.bookType="biff8";case"xla":t.bookType||(t.bookType="xla");case"biff8":n="/Workbook",t.biff=8;break;case"biff5":n="/Book",t.biff=5;break;default:throw new Error("invalid type "+t.bookType+" for XLS CFB")}return Me.utils.cfb_add(a,n,nv(e,t)),t.biff==8&&(e.Props||e.Custprops)&&ak(e,a),t.biff==8&&e.vbaraw&&pb(a,Me.read(e.vbaraw,{type:typeof e.vbaraw=="string"?"binary":"buffer"})),a}var eo={0:{f:FE},1:{f:LE},2:{f:rC},3:{f:VE},4:{f:jE},5:{f:ZE},6:{f:oC},7:{f:XE},8:{f:hC},9:{f:dC},10:{f:fC},11:{f:uC},12:{f:ME},13:{f:aC},14:{f:$E},15:{f:UE},16:{f:Yh},17:{f:lC},18:{f:qE},19:{f:s0},20:{},21:{},22:{},23:{},24:{},25:{},26:{},27:{},28:{},29:{},30:{},31:{},32:{},33:{},34:{},35:{T:1},36:{T:-1},37:{T:1},38:{T:-1},39:{f:lT},40:{},42:{},43:{f:o_},44:{f:n_},45:{f:c_},46:{f:u_},47:{f:f_},48:{},49:{f:Dm},50:{},51:{f:z_},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:wh},62:{f:iC},63:{f:eb},64:{f:AC},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:mt,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:CC},138:{T:-1},139:{T:1},140:{T:-1},141:{T:1},142:{T:-1},143:{T:1},144:{T:-1},145:{T:1},146:{T:-1},147:{f:PE},148:{f:DE,p:16},151:{f:wC},152:{},153:{f:iT},154:{},155:{},156:{f:aT},157:{},158:{},159:{T:1,f:_y},160:{T:-1},161:{T:1,f:Kn},162:{T:-1},163:{T:1},164:{T:-1},165:{T:1},166:{T:-1},167:{},168:{},169:{},170:{},171:{},172:{T:1},173:{T:-1},174:{},175:{},176:{f:vC},177:{T:1},178:{T:-1},179:{T:1},180:{T:-1},181:{T:1},182:{T:-1},183:{T:1},184:{T:-1},185:{T:1},186:{T:-1},187:{T:1},188:{T:-1},189:{T:1},190:{T:-1},191:{T:1},192:{T:-1},193:{T:1},194:{T:-1},195:{T:1},196:{T:-1},197:{T:1},198:{T:-1},199:{T:1},200:{T:-1},201:{T:1},202:{T:-1},203:{T:1},204:{T:-1},205:{T:1},206:{T:-1},207:{T:1},208:{T:-1},209:{T:1},210:{T:-1},211:{T:1},212:{T:-1},213:{T:1},214:{T:-1},215:{T:1},216:{T:-1},217:{T:1},218:{T:-1},219:{T:1},220:{T:-1},221:{T:1},222:{T:-1},223:{T:1},224:{T:-1},225:{T:1},226:{T:-1},227:{T:1},228:{T:-1},229:{T:1},230:{T:-1},231:{T:1},232:{T:-1},233:{T:1},234:{T:-1},235:{T:1},236:{T:-1},237:{T:1},238:{T:-1},239:{T:1},240:{T:-1},241:{T:1},242:{T:-1},243:{T:1},244:{T:-1},245:{T:1},246:{T:-1},247:{T:1},248:{T:-1},249:{T:1},250:{T:-1},251:{T:1},252:{T:-1},253:{T:1},254:{T:-1},255:{T:1},256:{T:-1},257:{T:1},258:{T:-1},259:{T:1},260:{T:-1},261:{T:1},262:{T:-1},263:{T:1},264:{T:-1},265:{T:1},266:{T:-1},267:{T:1},268:{T:-1},269:{T:1},270:{T:-1},271:{T:1},272:{T:-1},273:{T:1},274:{T:-1},275:{T:1},276:{T:-1},277:{},278:{T:1},279:{T:-1},280:{T:1},281:{T:-1},282:{T:1},283:{T:1},284:{T:-1},285:{T:1},286:{T:-1},287:{T:1},288:{T:-1},289:{T:1},290:{T:-1},291:{T:1},292:{T:-1},293:{T:1},294:{T:-1},295:{T:1},296:{T:-1},297:{T:1},298:{T:-1},299:{T:1},300:{T:-1},301:{T:1},302:{T:-1},303:{T:1},304:{T:-1},305:{T:1},306:{T:-1},307:{T:1},308:{T:-1},309:{T:1},310:{T:-1},311:{T:1},312:{T:-1},313:{T:-1},314:{T:1},315:{T:-1},316:{T:1},317:{T:-1},318:{T:1},319:{T:-1},320:{T:1},321:{T:-1},322:{T:1},323:{T:-1},324:{T:1},325:{T:-1},326:{T:1},327:{T:-1},328:{T:1},329:{T:-1},330:{T:1},331:{T:-1},332:{T:1},333:{T:-1},334:{T:1},335:{f:H_},336:{T:-1},337:{f:X_,T:1},338:{T:-1},339:{T:1},340:{T:-1},341:{T:1},342:{T:-1},343:{T:1},344:{T:-1},345:{T:1},346:{T:-1},347:{T:1},348:{T:-1},349:{T:1},350:{T:-1},351:{},352:{},353:{T:1},354:{T:-1},355:{f:_l},357:{},358:{},359:{},360:{T:1},361:{},362:{f:mh},363:{},364:{},366:{},367:{},368:{},369:{},370:{},371:{},372:{T:1},373:{T:-1},374:{T:1},375:{T:-1},376:{T:1},377:{T:-1},378:{T:1},379:{T:-1},380:{T:1},381:{T:-1},382:{T:1},383:{T:-1},384:{T:1},385:{T:-1},386:{T:1},387:{T:-1},388:{T:1},389:{T:-1},390:{T:1},391:{T:-1},392:{T:1},393:{T:-1},394:{T:1},395:{T:-1},396:{},397:{},398:{},399:{},400:{},401:{T:1},403:{},404:{},405:{},406:{},407:{},408:{},409:{},410:{},411:{},412:{},413:{},414:{},415:{},416:{},417:{},418:{},419:{},420:{},421:{},422:{T:1},423:{T:1},424:{T:-1},425:{T:-1},426:{f:yC},427:{f:_C},428:{},429:{T:1},430:{T:-1},431:{T:1},432:{T:-1},433:{T:1},434:{T:-1},435:{T:1},436:{T:-1},437:{T:1},438:{T:-1},439:{T:1},440:{T:-1},441:{T:1},442:{T:-1},443:{T:1},444:{T:-1},445:{T:1},446:{T:-1},447:{T:1},448:{T:-1},449:{T:1},450:{T:-1},451:{T:1},452:{T:-1},453:{T:1},454:{T:-1},455:{T:1},456:{T:-1},457:{T:1},458:{T:-1},459:{T:1},460:{T:-1},461:{T:1},462:{T:-1},463:{T:1},464:{T:-1},465:{T:1},466:{T:-1},467:{T:1},468:{T:-1},469:{T:1},470:{T:-1},471:{},472:{},473:{T:1},474:{T:-1},475:{},476:{f:SC},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:IE},486:{T:1},487:{T:-1},488:{T:1},489:{T:-1},490:{T:1},491:{T:-1},492:{T:1},493:{T:-1},494:{f:pC},495:{T:1},496:{T:-1},497:{T:1},498:{T:-1},499:{},500:{T:1},501:{T:-1},502:{T:1},503:{T:-1},504:{},505:{T:1},506:{T:-1},507:{},508:{T:1},509:{T:-1},510:{T:1},511:{T:-1},512:{},513:{},514:{T:1},515:{T:-1},516:{T:1},517:{T:-1},518:{T:1},519:{T:-1},520:{T:1},521:{T:-1},522:{},523:{},524:{},525:{},526:{},527:{},528:{T:1},529:{T:-1},530:{T:1},531:{T:-1},532:{T:1},533:{T:-1},534:{},535:{},536:{},537:{},538:{T:1},539:{T:-1},540:{T:1},541:{T:-1},542:{T:1},548:{},549:{},550:{f:_l},551:{},552:{},553:{},554:{T:1},555:{T:-1},556:{T:1},557:{T:-1},558:{T:1},559:{T:-1},560:{T:1},561:{T:-1},562:{},564:{},565:{T:1},566:{T:-1},569:{T:1},570:{T:-1},572:{},573:{T:1},574:{T:-1},577:{},578:{},579:{},580:{},581:{},582:{},583:{},584:{},585:{},586:{},587:{},588:{T:-1},589:{},590:{T:1},591:{T:-1},592:{T:1},593:{T:-1},594:{T:1},595:{T:-1},596:{},597:{T:1},598:{T:-1},599:{T:1},600:{T:-1},601:{T:1},602:{T:-1},603:{T:1},604:{T:-1},605:{T:1},606:{T:-1},607:{},608:{T:1},609:{T:-1},610:{},611:{T:1},612:{T:-1},613:{T:1},614:{T:-1},615:{T:1},616:{T:-1},617:{T:1},618:{T:-1},619:{T:1},620:{T:-1},625:{},626:{T:1},627:{T:-1},628:{T:1},629:{T:-1},630:{T:1},631:{T:-1},632:{f:ub},633:{T:1},634:{T:-1},635:{T:1,f:cb},636:{T:-1},637:{f:Nm},638:{T:1},639:{},640:{T:-1},641:{T:1},642:{T:-1},643:{T:1},644:{},645:{T:-1},646:{T:1},648:{T:1},649:{},650:{T:-1},651:{f:$C},652:{},653:{T:1},654:{T:-1},655:{T:1},656:{T:-1},657:{T:1},658:{T:-1},659:{},660:{T:1},661:{},662:{T:-1},663:{},664:{T:1},665:{},666:{T:-1},667:{},668:{},669:{},671:{T:1},672:{T:-1},673:{T:1},674:{T:-1},675:{},676:{},677:{},678:{},679:{},680:{},681:{},1024:{},1025:{},1026:{T:1},1027:{T:-1},1028:{T:1},1029:{T:-1},1030:{},1031:{T:1},1032:{T:-1},1033:{T:1},1034:{T:-1},1035:{},1036:{},1037:{},1038:{T:1},1039:{T:-1},1040:{},1041:{T:1},1042:{T:-1},1043:{},1044:{},1045:{},1046:{T:1},1047:{T:-1},1048:{T:1},1049:{T:-1},1050:{},1051:{T:1},1052:{T:1},1053:{f:OC},1054:{T:1},1055:{},1056:{T:1},1057:{T:-1},1058:{T:1},1059:{T:-1},1061:{},1062:{T:1},1063:{T:-1},1064:{T:1},1065:{T:-1},1066:{T:1},1067:{T:-1},1068:{T:1},1069:{T:-1},1070:{T:1},1071:{T:-1},1072:{T:1},1073:{T:-1},1075:{T:1},1076:{T:-1},1077:{T:1},1078:{T:-1},1079:{T:1},1080:{T:-1},1081:{T:1},1082:{T:-1},1083:{T:1},1084:{T:-1},1085:{},1086:{T:1},1087:{T:-1},1088:{T:1},1089:{T:-1},1090:{T:1},1091:{T:-1},1092:{T:1},1093:{T:-1},1094:{T:1},1095:{T:-1},1096:{},1097:{T:1},1098:{},1099:{T:-1},1100:{T:1},1101:{T:-1},1102:{},1103:{},1104:{},1105:{},1111:{},1112:{},1113:{T:1},1114:{T:-1},1115:{T:1},1116:{T:-1},1117:{},1118:{T:1},1119:{T:-1},1120:{T:1},1121:{T:-1},1122:{T:1},1123:{T:-1},1124:{T:1},1125:{T:-1},1126:{},1128:{T:1},1129:{T:-1},1130:{},1131:{T:1},1132:{T:-1},1133:{T:1},1134:{T:-1},1135:{T:1},1136:{T:-1},1137:{T:1},1138:{T:-1},1139:{T:1},1140:{T:-1},1141:{},1142:{T:1},1143:{T:-1},1144:{T:1},1145:{T:-1},1146:{},1147:{T:1},1148:{T:-1},1149:{T:1},1150:{T:-1},1152:{T:1},1153:{T:-1},1154:{T:-1},1155:{T:-1},1156:{T:-1},1157:{T:1},1158:{T:-1},1159:{T:1},1160:{T:-1},1161:{T:1},1162:{T:-1},1163:{T:1},1164:{T:-1},1165:{T:1},1166:{T:-1},1167:{T:1},1168:{T:-1},1169:{T:1},1170:{T:-1},1171:{},1172:{T:1},1173:{T:-1},1177:{},1178:{T:1},1180:{},1181:{},1182:{},2048:{T:1},2049:{T:-1},2050:{},2051:{T:1},2052:{T:-1},2053:{},2054:{},2055:{T:1},2056:{T:-1},2057:{T:1},2058:{T:-1},2060:{},2067:{},2068:{T:1},2069:{T:-1},2070:{},2071:{},2072:{T:1},2073:{T:-1},2075:{},2076:{},2077:{T:1},2078:{T:-1},2079:{},2080:{T:1},2081:{T:-1},2082:{},2083:{T:1},2084:{T:-1},2085:{T:1},2086:{T:-1},2087:{T:1},2088:{T:-1},2089:{T:1},2090:{T:-1},2091:{},2092:{},2093:{T:1},2094:{T:-1},2095:{},2096:{T:1},2097:{T:-1},2098:{T:1},2099:{T:-1},2100:{T:1},2101:{T:-1},2102:{},2103:{T:1},2104:{T:-1},2105:{},2106:{T:1},2107:{T:-1},2108:{},2109:{T:1},2110:{T:-1},2111:{T:1},2112:{T:-1},2113:{T:1},2114:{T:-1},2115:{},2116:{},2117:{},2118:{T:1},2119:{T:-1},2120:{},2121:{T:1},2122:{T:-1},2123:{T:1},2124:{T:-1},2125:{},2126:{T:1},2127:{T:-1},2128:{},2129:{T:1},2130:{T:-1},2131:{T:1},2132:{T:-1},2133:{T:1},2134:{},2135:{},2136:{},2137:{T:1},2138:{T:-1},2139:{T:1},2140:{T:-1},2141:{},3072:{},3073:{},4096:{T:1},4097:{T:-1},5002:{T:1},5003:{T:-1},5081:{T:1},5082:{T:-1},5083:{},5084:{T:1},5085:{T:-1},5086:{T:1},5087:{T:-1},5088:{},5089:{},5090:{},5092:{T:1},5093:{T:-1},5094:{},5095:{T:1},5096:{T:-1},5097:{},5099:{},65535:{n:""}},Al={6:{f:Qs},10:{f:Xa},12:{f:Yr},13:{f:Yr},14:{f:Ur},15:{f:Ur},16:{f:gt},17:{f:Ur},18:{f:Ur},19:{f:Yr},20:{f:Kf},21:{f:Kf},23:{f:mh},24:{f:Wf},25:{f:Ur},26:{},27:{},28:{f:O2},29:{},34:{f:Ur},35:{f:jf},38:{f:gt},39:{f:gt},40:{f:gt},41:{f:gt},42:{f:Ur},43:{f:Ur},47:{f:Uy},49:{f:a2},51:{f:Yr},60:{},61:{f:Zw},64:{f:Ur},65:{f:t2},66:{f:Yr},77:{},80:{},81:{},82:{},85:{f:Yr},89:{},90:{},91:{},92:{f:Ww},93:{f:I2},94:{},95:{f:Ur},96:{},97:{},99:{f:Ur},125:{f:wh},128:{f:m2},129:{f:Hw},130:{f:Yr},131:{f:Ur},132:{f:Ur},133:{f:Vw},134:{},140:{f:W2},141:{f:Yr},144:{},146:{f:V2},151:{},152:{},153:{},154:{},155:{},156:{f:Yr},157:{},158:{},160:{f:J2},161:{f:G2},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:v2},190:{f:x2},193:{f:Xa},197:{},198:{},199:{},200:{},201:{},202:{f:Ur},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:Yr},220:{},221:{f:Ur},222:{},224:{f:p2},225:{f:jw},226:{f:Xa},227:{},229:{f:D2},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:$w},253:{f:i2},255:{f:Xw},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:ch},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Ur},353:{f:Xa},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:S2},431:{f:Ur},432:{},433:{},434:{},437:{},438:{f:L2},439:{f:Ur},440:{f:B2},441:{},442:{f:co},443:{},444:{f:Yr},445:{},446:{},448:{f:Xa},449:{f:Jw,r:2},450:{f:Xa},512:{f:Lf},513:{f:q2},515:{f:_2},516:{f:s2},517:{f:Mf},519:{f:Z2},520:{f:Yw},523:{},545:{f:Uf},549:{f:Nf},566:{},574:{f:e2},638:{f:h2},659:{},1048:{},1054:{f:c2},1084:{},1212:{f:k2},2048:{f:K2},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Po},2058:{},2059:{},2060:{},2061:{},2062:{},2063:{},2064:{},2066:{},2067:{},2128:{},2129:{},2130:{},2131:{},2132:{},2133:{},2134:{},2135:{},2136:{},2137:{},2138:{},2146:{},2147:{r:12},2148:{},2149:{},2150:{},2151:{f:Xa},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:z2,r:12},2173:{f:W_,r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Ur,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:T2,r:12},2197:{},2198:{f:N_,r:12},2199:{},2200:{},2201:{},2202:{f:F2,r:12},2203:{f:Xa},2204:{},2205:{},2206:{},2207:{},2211:{f:qw},2212:{},2213:{},2214:{},2215:{},4097:{},4098:{},4099:{},4102:{},4103:{},4105:{},4106:{},4107:{},4108:{},4109:{},4116:{},4117:{},4118:{},4119:{},4120:{},4121:{},4122:{},4123:{},4124:{},4125:{},4126:{},4127:{},4128:{},4129:{},4130:{},4132:{},4133:{},4134:{f:Yr},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:X2},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:H2},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:Lf},1:{},2:{f:ay},3:{f:ry},4:{f:ey},5:{f:Mf},7:{f:iy},8:{},9:{f:Po},11:{},22:{f:Yr},30:{f:u2},31:{},32:{},33:{f:Uf},36:{},37:{f:Nf},50:{f:oy},62:{},52:{},67:{},68:{f:Yr},69:{},86:{},126:{},127:{f:Q2},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:sy},223:{},234:{},354:{},421:{},518:{f:Qs},521:{f:Po},536:{f:Wf},547:{f:jf},561:{},579:{},1030:{f:Qs},1033:{f:Po},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function Ee(e,r,t,a){var n=r;if(!isNaN(n)){var i=a||(t||[]).length||0,o=e.next(4);o.write_shift(2,n),o.write_shift(2,i),i>0&&o0(t)&&e.push(t)}}function ik(e,r,t,a){var n=a||(t||[]).length||0;if(n<=8224)return Ee(e,r,t,n);var i=r;if(!isNaN(i)){for(var o=t.parts||[],s=0,l=0,c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;var f=e.next(4);for(f.write_shift(2,i),f.write_shift(2,c),e.push(t.slice(l,l+c)),l+=c;l<n;){for(f=e.next(4),f.write_shift(2,60),c=0;c+(o[s]||8224)<=8224;)c+=o[s]||8224,s++;f.write_shift(2,c),e.push(t.slice(l,l+c)),l+=c}}}function vo(e,r,t){return e||(e=se(7)),e.write_shift(2,r),e.write_shift(2,t),e.write_shift(2,0),e.write_shift(1,0),e}function ok(e,r,t,a){var n=se(9);return vo(n,e,r),fh(t,a||"b",n),n}function sk(e,r,t){var a=se(8+2*t.length);return vo(a,e,r),a.write_shift(1,t.length),a.write_shift(t.length,t,"sbcs"),a.l<a.length?a.slice(0,a.l):a}function lk(e,r,t,a){if(r.v!=null)switch(r.t){case"d":case"n":var n=r.t=="d"?ct(Ir(r.v)):r.v;n==(n|0)&&n>=0&&n<65536?Ee(e,2,ny(t,a,n)):Ee(e,3,ty(t,a,n));return;case"b":case"e":Ee(e,5,ok(t,a,r.v,r.t));return;case"s":case"str":Ee(e,4,sk(t,a,(r.v||"").slice(0,255)));return}Ee(e,1,vo(null,t,a))}function ck(e,r,t,a){var n=Array.isArray(r),i=xr(r["!ref"]||"A1"),o,s="",l=[];if(i.e.c>255||i.e.r>16383){if(a.WTF)throw new Error("Range "+(r["!ref"]||"A1")+" exceeds format limit A1:IV16384");i.e.c=Math.min(i.e.c,255),i.e.r=Math.min(i.e.c,16383),o=rr(i)}for(var c=i.s.r;c<=i.e.r;++c){s=nt(c);for(var f=i.s.c;f<=i.e.c;++f){c===i.s.r&&(l[f]=Jr(f)),o=l[f]+s;var u=n?(r[c]||[])[f]:r[o];!u||lk(e,u,c,f)}}}function fk(e,r){for(var t=r||{},a=Ot(),n=0,i=0;i<e.SheetNames.length;++i)e.SheetNames[i]==t.sheet&&(n=i);if(n==0&&!!t.sheet&&e.SheetNames[0]!=t.sheet)throw new Error("Sheet not found: "+t.sheet);return Ee(a,t.biff==4?1033:t.biff==3?521:9,v0(e,16,t)),ck(a,e.Sheets[e.SheetNames[n]],n,t),Ee(a,10),a.end()}function uk(e,r,t){Ee(e,49,n2({sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"},t))}function dk(e,r,t){!r||[[5,8],[23,26],[41,44],[50,392]].forEach(function(a){for(var n=a[0];n<=a[1];++n)r[n]!=null&&Ee(e,1054,f2(n,r[n],t))})}function hk(e,r){var t=se(19);t.write_shift(4,2151),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,1),t.write_shift(4,0),Ee(e,2151,t),t=se(39),t.write_shift(4,2152),t.write_shift(4,0),t.write_shift(4,0),t.write_shift(2,3),t.write_shift(1,0),t.write_shift(4,0),t.write_shift(2,1),t.write_shift(4,4),t.write_shift(2,0),xh(xr(r["!ref"]||"A1"),t),t.write_shift(4,4),Ee(e,2152,t)}function vk(e,r){for(var t=0;t<16;++t)Ee(e,224,Bf({numFmtId:0,style:!0},0,r));r.cellXfs.forEach(function(a){Ee(e,224,Bf(a,0,r))})}function xk(e,r){for(var t=0;t<r["!links"].length;++t){var a=r["!links"][t];Ee(e,440,M2(a)),a[1].Tooltip&&Ee(e,2048,j2(a))}delete r["!links"]}function gk(e,r){if(!!r){var t=0;r.forEach(function(a,n){++t<=256&&a&&Ee(e,125,$2(ks(n,a),n))})}}function pk(e,r,t,a,n){var i=16+cn(n.cellXfs,r,n);if(r.v==null&&!r.bf){Ee(e,513,Fn(t,a,i));return}if(r.bf)Ee(e,6,HS(r,t,a,n,i));else switch(r.t){case"d":case"n":var o=r.t=="d"?ct(Ir(r.v)):r.v;Ee(e,515,b2(t,a,o,i));break;case"b":case"e":Ee(e,517,y2(t,a,r.v,i,n,r.t));break;case"s":case"str":if(n.bookSST){var s=b0(n.Strings,r.v,n.revStrings);Ee(e,253,o2(t,a,s,i))}else Ee(e,516,l2(t,a,(r.v||"").slice(0,255),i,n));break;default:Ee(e,513,Fn(t,a,i))}}function mk(e,r,t){var a=Ot(),n=t.SheetNames[e],i=t.Sheets[n]||{},o=(t||{}).Workbook||{},s=(o.Sheets||[])[e]||{},l=Array.isArray(i),c=r.biff==8,f,u="",d=[],v=xr(i["!ref"]||"A1"),x=c?65536:16384;if(v.e.c>255||v.e.r>=x){if(r.WTF)throw new Error("Range "+(i["!ref"]||"A1")+" exceeds format limit A1:IV16384");v.e.c=Math.min(v.e.c,255),v.e.r=Math.min(v.e.c,x-1)}Ee(a,2057,v0(t,16,r)),Ee(a,13,Zt(1)),Ee(a,12,Zt(100)),Ee(a,15,Et(!0)),Ee(a,17,Et(!1)),Ee(a,16,Tn(.001)),Ee(a,95,Et(!0)),Ee(a,42,Et(!1)),Ee(a,43,Et(!1)),Ee(a,130,Zt(1)),Ee(a,128,w2([0,0])),Ee(a,131,Et(!1)),Ee(a,132,Et(!1)),c&&gk(a,i["!cols"]),Ee(a,512,d2(v,r)),c&&(i["!links"]=[]);for(var h=v.s.r;h<=v.e.r;++h){u=nt(h);for(var p=v.s.c;p<=v.e.c;++p){h===v.s.r&&(d[p]=Jr(p)),f=d[p]+u;var m=l?(i[h]||[])[p]:i[f];!m||(pk(a,m,h,p,r),c&&m.l&&i["!links"].push([f,m.l]))}}var S=s.CodeName||s.name||n;return c&&Ee(a,574,r2((o.Views||[])[0])),c&&(i["!merges"]||[]).length&&Ee(a,229,R2(i["!merges"])),c&&xk(a,i),Ee(a,442,uh(S)),c&&hk(a,i),Ee(a,10),a.end()}function wk(e,r,t){var a=Ot(),n=(e||{}).Workbook||{},i=n.Sheets||[],o=n.WBProps||{},s=t.biff==8,l=t.biff==5;if(Ee(a,2057,v0(e,5,t)),t.bookType=="xla"&&Ee(a,135),Ee(a,225,s?Zt(1200):null),Ee(a,193,yw(2)),l&&Ee(a,191),l&&Ee(a,192),Ee(a,226),Ee(a,92,Uw("SheetJS",t)),Ee(a,66,Zt(s?1200:1252)),s&&Ee(a,353,Zt(0)),s&&Ee(a,448),Ee(a,317,Y2(e.SheetNames.length)),s&&e.vbaraw&&Ee(a,211),s&&e.vbaraw){var c=o.CodeName||"ThisWorkbook";Ee(a,442,uh(c))}Ee(a,156,Zt(17)),Ee(a,25,Et(!1)),Ee(a,18,Et(!1)),Ee(a,19,Zt(0)),s&&Ee(a,431,Et(!1)),s&&Ee(a,444,Zt(0)),Ee(a,61,Qw()),Ee(a,64,Et(!1)),Ee(a,141,Zt(0)),Ee(a,34,Et(JC(e)=="true")),Ee(a,14,Et(!0)),s&&Ee(a,439,Et(!1)),Ee(a,218,Zt(0)),uk(a,e,t),dk(a,e.SSF,t),vk(a,t),s&&Ee(a,352,Et(!1));var f=a.end(),u=Ot();s&&Ee(u,140,U2()),s&&t.Strings&&ik(u,252,Gw(t.Strings)),Ee(u,10);var d=u.end(),v=Ot(),x=0,h=0;for(h=0;h<e.SheetNames.length;++h)x+=(s?12:11)+(s?2:1)*e.SheetNames[h].length;var p=f.length+x+d.length;for(h=0;h<e.SheetNames.length;++h){var m=i[h]||{};Ee(v,133,zw({pos:p,hs:m.Hidden||0,dt:0,name:e.SheetNames[h]},t)),p+=r[h].length}var S=v.end();if(x!=S.length)throw new Error("BS8 "+x+" != "+S.length);var g=[];return f.length&&g.push(f),S.length&&g.push(S),d.length&&g.push(d),tt(g)}function yk(e,r){var t=r||{},a=[];e&&!e.SSF&&(e.SSF=Dr(Ue)),e&&e.SSF&&(hi(),ys(e.SSF),t.revssf=bs(e.SSF),t.revssf[e.SSF[65535]]=0,t.ssf=e.SSF),t.Strings=[],t.Strings.Count=0,t.Strings.Unique=0,k0(t),t.cellXfs=[],cn(t.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={});for(var n=0;n<e.SheetNames.length;++n)a[a.length]=mk(n,t,e);return a.unshift(wk(e,a,t)),tt(a)}function nv(e,r){for(var t=0;t<=e.SheetNames.length;++t){var a=e.Sheets[e.SheetNames[t]];if(!(!a||!a["!ref"])){var n=ra(a["!ref"]);n.e.c>255&&typeof console<"u"&&console.error&&console.error("Worksheet '"+e.SheetNames[t]+"' extends beyond column IV (255). Data may be lost.")}}var i=r||{};switch(i.biff||2){case 8:case 5:return yk(e,r);case 4:case 3:case 2:return fk(e,r)}throw new Error("invalid type "+i.bookType+" for BIFF")}function Zf(e,r){var t=r||{},a=t.dense?[]:{};e=e.replace(/<!--.*?-->/g,"");var n=e.match(/<table/i);if(!n)throw new Error("Invalid HTML: could not find <table>");var i=e.match(/<\/table/i),o=n.index,s=i&&i.index||e.length,l=nm(e.slice(o,s),/(:?<tr[^>]*>)/i,"<tr>"),c=-1,f=0,u=0,d=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},x=[];for(o=0;o<l.length;++o){var h=l[o].trim(),p=h.slice(0,3).toLowerCase();if(p=="<tr"){if(++c,t.sheetRows&&t.sheetRows<=c){--c;break}f=0;continue}if(!(p!="<td"&&p!="<th")){var m=h.split(/<\/t[dh]>/i);for(s=0;s<m.length;++s){var S=m[s].trim();if(!!S.match(/<t[dh]/i)){for(var g=S,w=0;g.charAt(0)=="<"&&(w=g.indexOf(">"))>-1;)g=g.slice(w+1);for(var C=0;C<x.length;++C){var F=x[C];F.s.c==f&&F.s.r<c&&c<=F.e.r&&(f=F.e.c+1,C=-1)}var _=He(S.slice(0,S.indexOf(">")));d=_.colspan?+_.colspan:1,((u=+_.rowspan)>1||d>1)&&x.push({s:{r:c,c:f},e:{r:c+(u||1)-1,c:f+d-1}});var R=_.t||_["data-t"]||"";if(!g.length){f+=d;continue}if(g=hm(g),v.s.r>c&&(v.s.r=c),v.e.r<c&&(v.e.r=c),v.s.c>f&&(v.s.c=f),v.e.c<f&&(v.e.c=f),!g.length){f+=d;continue}var y={t:"s",v:g};t.raw||!g.trim().length||R=="s"||(g==="TRUE"?y={t:"b",v:!0}:g==="FALSE"?y={t:"b",v:!1}:isNaN(Na(g))?isNaN(zi(g).getDate())||(y={t:"d",v:Ir(g)},t.cellDates||(y={t:"n",v:ct(y.v)}),y.z=t.dateNF||Ue[14]):y={t:"n",v:Na(g)}),t.dense?(a[c]||(a[c]=[]),a[c][f]=y):a[$e({r:c,c:f})]=y,f+=d}}}}return a["!ref"]=rr(v),x.length&&(a["!merges"]=x),a}function _k(e,r,t,a){for(var n=e["!merges"]||[],i=[],o=r.s.c;o<=r.e.c;++o){for(var s=0,l=0,c=0;c<n.length;++c)if(!(n[c].s.r>t||n[c].s.c>o)&&!(n[c].e.r<t||n[c].e.c<o)){if(n[c].s.r<t||n[c].s.c<o){s=-1;break}s=n[c].e.r-n[c].s.r+1,l=n[c].e.c-n[c].s.c+1;break}if(!(s<0)){var f=$e({r:t,c:o}),u=a.dense?(e[t]||[])[o]:e[f],d=u&&u.v!=null&&(u.h||a0(u.w||(tn(u),u.w)||""))||"",v={};s>1&&(v.rowspan=s),l>1&&(v.colspan=l),a.editable?d='<span contenteditable="true">'+d+"</span>":u&&(v["data-t"]=u&&u.t||"z",u.v!=null&&(v["data-v"]=u.v),u.z!=null&&(v["data-z"]=u.z),u.l&&(u.l.Target||"#").charAt(0)!="#"&&(d='<a href="'+u.l.Target+'">'+d+"</a>")),v.id=(a.id||"sjs")+"-"+f,i.push(Se("td",d,v))}}var x="<tr>";return x+i.join("")+"</tr>"}var bk='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',Sk="</body></html>";function Ek(e,r){var t=e.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi);if(!t||t.length==0)throw new Error("Invalid HTML: could not find <table>");if(t.length==1)return Nn(Zf(t[0],r),r);var a=hv();return t.forEach(function(n,i){vv(a,Zf(n,r),"Sheet"+(i+1))}),a}function Ck(e,r,t){var a=[];return a.join("")+"<table"+(t&&t.id?' id="'+t.id+'"':"")+">"}function Tk(e,r){var t=r||{},a=t.header!=null?t.header:bk,n=t.footer!=null?t.footer:Sk,i=[a],o=ra(e["!ref"]);t.dense=Array.isArray(e),i.push(Ck(e,o,t));for(var s=o.s.r;s<=o.e.r;++s)i.push(_k(e,o,s,t));return i.push("</table>"+n),i.join("")}function kk(e){var r=e.replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(a,n){return Array(parseInt(n,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,`
|
||
`),t=ir(r.replace(/<[^>]*>/g,""));return[t]}var Qf={day:["d","dd"],month:["m","mm"],year:["y","yy"],hours:["h","hh"],minutes:["m","mm"],seconds:["s","ss"],"am-pm":["A/P","AM/PM"],"day-of-week":["ddd","dddd"],era:["e","ee"],quarter:["\\Qm",'m\\"th quarter"']};function iv(e,r){var t=r||{},a=n0(e),n=[],i,o,s={name:""},l="",c=0,f,u,d={},v=[],x=t.dense?[]:{},h,p,m={value:""},S="",g=0,w=[],C=-1,F=-1,_={s:{r:1e6,c:1e7},e:{r:0,c:0}},R=0,y={},W=[],D={},E=0,T=0,A=[],b=1,O=1,N=[],G={Names:[]},L={},X=["",""],Z=[],I={},z="",U=0,V=!1,q=!1,ee=0;for(Xi.lastIndex=0,a=a.replace(/<!--([\s\S]*?)-->/mg,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");h=Xi.exec(a);)switch(h[3]=h[3].replace(/_.*$/,"")){case"table":case"\u5DE5\u4F5C\u8868":h[1]==="/"?(_.e.c>=_.s.c&&_.e.r>=_.s.r?x["!ref"]=rr(_):x["!ref"]="A1:A1",t.sheetRows>0&&t.sheetRows<=_.e.r&&(x["!fullref"]=x["!ref"],_.e.r=t.sheetRows-1,x["!ref"]=rr(_)),W.length&&(x["!merges"]=W),A.length&&(x["!rows"]=A),f.name=f.\u540D\u79F0||f.name,typeof JSON<"u"&&JSON.stringify(f),v.push(f.name),d[f.name]=x,q=!1):h[0].charAt(h[0].length-2)!=="/"&&(f=He(h[0],!1),C=F=-1,_.s.r=_.s.c=1e7,_.e.r=_.e.c=0,x=t.dense?[]:{},W=[],A=[],q=!0);break;case"table-row-group":h[1]==="/"?--R:++R;break;case"table-row":case"\u884C":if(h[1]==="/"){C+=b,b=1;break}if(u=He(h[0],!1),u.\u884C\u53F7?C=u.\u884C\u53F7-1:C==-1&&(C=0),b=+u["number-rows-repeated"]||1,b<10)for(ee=0;ee<b;++ee)R>0&&(A[C+ee]={level:R});F=-1;break;case"covered-table-cell":h[1]!=="/"&&++F,t.sheetStubs&&(t.dense?(x[C]||(x[C]=[]),x[C][F]={t:"z"}):x[$e({r:C,c:F})]={t:"z"}),S="",w=[];break;case"table-cell":case"\u6570\u636E":if(h[0].charAt(h[0].length-2)==="/")++F,m=He(h[0],!1),O=parseInt(m["number-columns-repeated"]||"1",10),p={t:"z",v:null},m.formula&&t.cellFormula!=!1&&(p.f=Yf(ir(m.formula))),(m.\u6570\u636E\u7C7B\u578B||m["value-type"])=="string"&&(p.t="s",p.v=ir(m["string-value"]||""),t.dense?(x[C]||(x[C]=[]),x[C][F]=p):x[$e({r:C,c:F})]=p),F+=O-1;else if(h[1]!=="/"){++F,S="",g=0,w=[],O=1;var Y=b?C+b-1:C;if(F>_.e.c&&(_.e.c=F),F<_.s.c&&(_.s.c=F),C<_.s.r&&(_.s.r=C),Y>_.e.r&&(_.e.r=Y),m=He(h[0],!1),Z=[],I={},p={t:m.\u6570\u636E\u7C7B\u578B||m["value-type"],v:null},t.cellFormula)if(m.formula&&(m.formula=ir(m.formula)),m["number-matrix-columns-spanned"]&&m["number-matrix-rows-spanned"]&&(E=parseInt(m["number-matrix-rows-spanned"],10)||0,T=parseInt(m["number-matrix-columns-spanned"],10)||0,D={s:{r:C,c:F},e:{r:C+E-1,c:F+T-1}},p.F=rr(D),N.push([D,p.F])),m.formula)p.f=Yf(m.formula);else for(ee=0;ee<N.length;++ee)C>=N[ee][0].s.r&&C<=N[ee][0].e.r&&F>=N[ee][0].s.c&&F<=N[ee][0].e.c&&(p.F=N[ee][1]);switch((m["number-columns-spanned"]||m["number-rows-spanned"])&&(E=parseInt(m["number-rows-spanned"],10)||0,T=parseInt(m["number-columns-spanned"],10)||0,D={s:{r:C,c:F},e:{r:C+E-1,c:F+T-1}},W.push(D)),m["number-columns-repeated"]&&(O=parseInt(m["number-columns-repeated"],10)),p.t){case"boolean":p.t="b",p.v=Ar(m["boolean-value"]);break;case"float":p.t="n",p.v=parseFloat(m.value);break;case"percentage":p.t="n",p.v=parseFloat(m.value);break;case"currency":p.t="n",p.v=parseFloat(m.value);break;case"date":p.t="d",p.v=Ir(m["date-value"]),t.cellDates||(p.t="n",p.v=ct(p.v)),p.z="m/d/yy";break;case"time":p.t="n",p.v=rm(m["time-value"])/86400,t.cellDates&&(p.t="d",p.v=Ss(p.v)),p.z="HH:MM:SS";break;case"number":p.t="n",p.v=parseFloat(m.\u6570\u636E\u6570\u503C);break;default:if(p.t==="string"||p.t==="text"||!p.t)p.t="s",m["string-value"]!=null&&(S=ir(m["string-value"]),w=[]);else throw new Error("Unsupported value type "+p.t)}}else{if(V=!1,p.t==="s"&&(p.v=S||"",w.length&&(p.R=w),V=g==0),L.Target&&(p.l=L),Z.length>0&&(p.c=Z,Z=[]),S&&t.cellText!==!1&&(p.w=S),V&&(p.t="z",delete p.v),(!V||t.sheetStubs)&&!(t.sheetRows&&t.sheetRows<=C))for(var J=0;J<b;++J){if(O=parseInt(m["number-columns-repeated"]||"1",10),t.dense)for(x[C+J]||(x[C+J]=[]),x[C+J][F]=J==0?p:Dr(p);--O>0;)x[C+J][F+O]=Dr(p);else for(x[$e({r:C+J,c:F})]=p;--O>0;)x[$e({r:C+J,c:F+O})]=Dr(p);_.e.c<=F&&(_.e.c=F)}O=parseInt(m["number-columns-repeated"]||"1",10),F+=O-1,O=0,p={},S="",w=[]}L={};break;case"document":case"document-content":case"\u7535\u5B50\u8868\u683C\u6587\u6863":case"spreadsheet":case"\u4E3B\u4F53":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(h[1]==="/"){if((i=n.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&n.push([h[3],!0]);break;case"annotation":if(h[1]==="/"){if((i=n.pop())[0]!==h[3])throw"Bad state: "+i;I.t=S,w.length&&(I.R=w),I.a=z,Z.push(I)}else h[0].charAt(h[0].length-2)!=="/"&&n.push([h[3],!1]);z="",U=0,S="",g=0,w=[];break;case"creator":h[1]==="/"?z=a.slice(U,h.index):U=h.index+h[0].length;break;case"meta":case"\u5143\u6570\u636E":case"settings":case"config-item-set":case"config-item-map-indexed":case"config-item-map-entry":case"config-item-map-named":case"shapes":case"frame":case"text-box":case"image":case"data-pilot-tables":case"list-style":case"form":case"dde-links":case"event-listeners":case"chart":if(h[1]==="/"){if((i=n.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&n.push([h[3],!1]);S="",g=0,w=[];break;case"scientific-number":break;case"currency-symbol":break;case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(h[1]==="/"){if(y[s.name]=l,(i=n.pop())[0]!==h[3])throw"Bad state: "+i}else h[0].charAt(h[0].length-2)!=="/"&&(l="",s=He(h[0],!1),n.push([h[3],!0]));break;case"script":break;case"libraries":break;case"automatic-styles":break;case"default-style":case"page-layout":break;case"style":break;case"map":break;case"font-face":break;case"paragraph-properties":break;case"table-properties":break;case"table-column-properties":break;case"table-row-properties":break;case"table-cell-properties":break;case"number":switch(n[n.length-1][0]){case"time-style":case"date-style":o=He(h[0],!1),l+=Qf[h[3]][o.style==="long"?1:0];break}break;case"fraction":break;case"day":case"month":case"year":case"era":case"day-of-week":case"week-of-year":case"quarter":case"hours":case"minutes":case"seconds":case"am-pm":switch(n[n.length-1][0]){case"time-style":case"date-style":o=He(h[0],!1),l+=Qf[h[3]][o.style==="long"?1:0];break}break;case"boolean-style":break;case"boolean":break;case"text-style":break;case"text":if(h[0].slice(-2)==="/>")break;if(h[1]==="/")switch(n[n.length-1][0]){case"number-style":case"date-style":case"time-style":l+=a.slice(c,h.index);break}else c=h.index+h[0].length;break;case"named-range":o=He(h[0],!1),X=el(o["cell-range-address"]);var Q={Name:o.name,Ref:X[0]+"!"+X[1]};q&&(Q.Sheet=v.length),G.Names.push(Q);break;case"text-content":break;case"text-properties":break;case"embedded-text":break;case"body":case"\u7535\u5B50\u8868\u683C":break;case"forms":break;case"table-column":break;case"table-header-rows":break;case"table-rows":break;case"table-column-group":break;case"table-header-columns":break;case"table-columns":break;case"null-date":break;case"graphic-properties":break;case"calculation-settings":break;case"named-expressions":break;case"label-range":break;case"label-ranges":break;case"named-expression":break;case"sort":break;case"sort-by":break;case"sort-groups":break;case"tab":break;case"line-break":break;case"span":break;case"p":case"\u6587\u672C\u4E32":if(["master-styles"].indexOf(n[n.length-1][0])>-1)break;if(h[1]==="/"&&(!m||!m["string-value"])){var ce=kk(a.slice(g,h.index));S=(S.length>0?S+`
|
||
`:"")+ce[0]}else He(h[0],!1),g=h.index+h[0].length;break;case"s":break;case"database-range":if(h[1]==="/")break;try{X=el(He(h[0])["target-range-address"]),d[X[0]]["!autofilter"]={ref:X[1]}}catch{}break;case"date":break;case"object":break;case"title":case"\u6807\u9898":break;case"desc":break;case"binary-data":break;case"table-source":break;case"scenario":break;case"iteration":break;case"content-validations":break;case"content-validation":break;case"help-message":break;case"error-message":break;case"database-ranges":break;case"filter":break;case"filter-and":break;case"filter-or":break;case"filter-condition":break;case"list-level-style-bullet":break;case"list-level-style-number":break;case"list-level-properties":break;case"sender-firstname":case"sender-lastname":case"sender-initials":case"sender-title":case"sender-position":case"sender-email":case"sender-phone-private":case"sender-fax":case"sender-company":case"sender-phone-work":case"sender-street":case"sender-city":case"sender-postal-code":case"sender-country":case"sender-state-or-province":case"author-name":case"author-initials":case"chapter":case"file-name":case"template-name":case"sheet-name":break;case"event-listener":break;case"initial-creator":case"creation-date":case"print-date":case"generator":case"document-statistic":case"user-defined":case"editing-duration":case"editing-cycles":break;case"config-item":break;case"page-number":break;case"page-count":break;case"time":break;case"cell-range-source":break;case"detective":break;case"operation":break;case"highlighted-range":break;case"data-pilot-table":case"source-cell-range":case"source-service":case"data-pilot-field":case"data-pilot-level":case"data-pilot-subtotals":case"data-pilot-subtotal":case"data-pilot-members":case"data-pilot-member":case"data-pilot-display-info":case"data-pilot-sort-info":case"data-pilot-layout-info":case"data-pilot-field-reference":case"data-pilot-groups":case"data-pilot-group":case"data-pilot-group-member":break;case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":break;case"properties":break;case"property":break;case"a":if(h[1]!=="/"){if(L=He(h[0],!1),!L.href)break;L.Target=ir(L.href),delete L.href,L.Target.charAt(0)=="#"&&L.Target.indexOf(".")>-1?(X=el(L.Target.slice(1)),L.Target="#"+X[0]+"!"+X[1]):L.Target.match(/^\.\.[\\\/]/)&&(L.Target=L.Target.slice(3))}break;case"table-protection":break;case"data-pilot-grand-total":break;case"office-document-common-attrs":break;default:switch(h[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"\u8868:":case"\u5B57:":break;default:if(t.WTF)throw new Error(h)}}var K={Sheets:d,SheetNames:v,Workbook:G};return t.bookSheets&&delete K.Sheets,K}function eu(e,r){r=r||{},Jt(e,"META-INF/manifest.xml")&&rw(Xr(e,"META-INF/manifest.xml"),r);var t=Mt(e,"content.xml");if(!t)throw new Error("Missing content.xml in ODS / UOF file");var a=iv(br(t),r);return Jt(e,"meta.xml")&&(a.Props=Zd(Xr(e,"meta.xml"))),a}function ru(e,r){return iv(e,r)}var Fk=function(){var e=["<office:master-styles>",'<style:master-page style:name="mp1" style:page-layout-name="mp1">',"<style:header/>",'<style:header-left style:display="false"/>',"<style:footer/>",'<style:footer-left style:display="false"/>',"</style:master-page>","</office:master-styles>"].join(""),r="<office:document-styles "+Gi({"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:number":"urn:oasis:names:tc:opendocument:xmlns:datastyle:1.0","xmlns:svg":"urn:oasis:names:tc:opendocument:xmlns:svg-compatible:1.0","xmlns:of":"urn:oasis:names:tc:opendocument:xmlns:of:1.2","office:version":"1.2"})+">"+e+"</office:document-styles>";return function(){return Vr+r}}(),tu=function(){var e=function(i){return mr(i).replace(/ +/g,function(o){return'<text:s text:c="'+o.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>")},r=` <table:table-cell />
|
||
`,t=` <table:covered-table-cell/>
|
||
`,a=function(i,o,s){var l=[];l.push(' <table:table table:name="'+mr(o.SheetNames[s])+`" table:style-name="ta1">
|
||
`);var c=0,f=0,u=ra(i["!ref"]||"A1"),d=i["!merges"]||[],v=0,x=Array.isArray(i);if(i["!cols"])for(f=0;f<=u.e.c;++f)l.push(" <table:table-column"+(i["!cols"][f]?' table:style-name="co'+i["!cols"][f].ods+'"':"")+`></table:table-column>
|
||
`);var h="",p=i["!rows"]||[];for(c=0;c<u.s.r;++c)h=p[c]?' table:style-name="ro'+p[c].ods+'"':"",l.push(" <table:table-row"+h+`></table:table-row>
|
||
`);for(;c<=u.e.r;++c){for(h=p[c]?' table:style-name="ro'+p[c].ods+'"':"",l.push(" <table:table-row"+h+`>
|
||
`),f=0;f<u.s.c;++f)l.push(r);for(;f<=u.e.c;++f){var m=!1,S={},g="";for(v=0;v!=d.length;++v)if(!(d[v].s.c>f)&&!(d[v].s.r>c)&&!(d[v].e.c<f)&&!(d[v].e.r<c)){(d[v].s.c!=f||d[v].s.r!=c)&&(m=!0),S["table:number-columns-spanned"]=d[v].e.c-d[v].s.c+1,S["table:number-rows-spanned"]=d[v].e.r-d[v].s.r+1;break}if(m){l.push(t);continue}var w=$e({r:c,c:f}),C=x?(i[c]||[])[f]:i[w];if(C&&C.f&&(S["table:formula"]=mr(YS(C.f)),C.F&&C.F.slice(0,w.length)==w)){var F=ra(C.F);S["table:number-matrix-columns-spanned"]=F.e.c-F.s.c+1,S["table:number-matrix-rows-spanned"]=F.e.r-F.s.r+1}if(!C){l.push(r);continue}switch(C.t){case"b":g=C.v?"TRUE":"FALSE",S["office:value-type"]="boolean",S["office:boolean-value"]=C.v?"true":"false";break;case"n":g=C.w||String(C.v||0),S["office:value-type"]="float",S["office:value"]=C.v||0;break;case"s":case"str":g=C.v==null?"":C.v,S["office:value-type"]="string";break;case"d":g=C.w||Ir(C.v).toISOString(),S["office:value-type"]="date",S["office:date-value"]=Ir(C.v).toISOString(),S["table:style-name"]="ce1";break;default:l.push(r);continue}var _=e(g);if(C.l&&C.l.Target){var R=C.l.Target;R=R.charAt(0)=="#"?"#"+qS(R.slice(1)):R,R.charAt(0)!="#"&&!R.match(/^\w+:/)&&(R="../"+R),_=Se("text:a",_,{"xlink:href":R.replace(/&/g,"&")})}l.push(" "+Se("table:table-cell",Se("text:p",_,{}),S)+`
|
||
`)}l.push(` </table:table-row>
|
||
`)}return l.push(` </table:table>
|
||
`),l.join("")},n=function(i,o){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 s=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(!!c&&c["!cols"]){for(var f=0;f<c["!cols"].length;++f)if(c["!cols"][f]){var u=c["!cols"][f];if(u.width==null&&u.wpx==null&&u.wch==null)continue;an(u),u.ods=s;var d=c["!cols"][f].wpx+"px";i.push(' <style:style style:name="co'+s+`" style:family="table-column">
|
||
`),i.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+d+`"/>
|
||
`),i.push(` </style:style>
|
||
`),++s}}});var l=0;o.SheetNames.map(function(c){return o.Sheets[c]}).forEach(function(c){if(!!c&&c["!rows"]){for(var f=0;f<c["!rows"].length;++f)if(c["!rows"][f]){c["!rows"][f].ods=l;var u=c["!rows"][f].hpx+"px";i.push(' <style:style style:name="ro'+l+`" style:family="table-row">
|
||
`),i.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+u+`"/>
|
||
`),i.push(` </style:style>
|
||
`),++l}}}),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(o,s){var l=[Vr],c=Gi({"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"}),f=Gi({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});s.bookType=="fods"?(l.push("<office:document"+c+f+`>
|
||
`),l.push(Jd().replace(/office:document-meta/g,"office:meta"))):l.push("<office:document-content"+c+`>
|
||
`),n(l,o),l.push(` <office:body>
|
||
`),l.push(` <office:spreadsheet>
|
||
`);for(var u=0;u!=o.SheetNames.length;++u)l.push(a(o.Sheets[o.SheetNames[u]],o,u));return l.push(` </office:spreadsheet>
|
||
`),l.push(` </office:body>
|
||
`),s.bookType=="fods"?l.push("</office:document>"):l.push("</office:document-content>"),l.join("")}}();function ov(e,r){if(r.bookType=="fods")return tu(e,r);var t=e0(),a="",n=[],i=[];return a="mimetype",qe(t,a,"application/vnd.oasis.opendocument.spreadsheet"),a="content.xml",qe(t,a,tu(e,r)),n.push([a,"text/xml"]),i.push([a,"ContentFile"]),a="styles.xml",qe(t,a,Fk(e,r)),n.push([a,"text/xml"]),i.push([a,"StylesFile"]),a="meta.xml",qe(t,a,Vr+Jd()),n.push([a,"text/xml"]),i.push([a,"MetadataFile"]),a="manifest.rdf",qe(t,a,nw(i)),n.push([a,"application/rdf+xml"]),a="META-INF/manifest.xml",qe(t,a,tw(n)),t}/*! sheetjs (C) 2013-present SheetJS -- http://sheetjs.com */function An(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function Ol(e){return typeof TextDecoder<"u"?new TextDecoder().decode(e):br(ln(e))}function Ak(e){return typeof TextEncoder<"u"?new TextEncoder().encode(e):Bt(ya(e))}function Ok(e,r){e:for(var t=0;t<=e.length-r.length;++t){for(var a=0;a<r.length;++a)if(e[t+a]!=r[a])continue e;return!0}return!1}function on(e){var r=e.reduce(function(n,i){return n+i.length},0),t=new Uint8Array(r),a=0;return e.forEach(function(n){t.set(n,a),a+=n.length}),t}function au(e){return e-=e>>1&1431655765,e=(e&858993459)+(e>>2&858993459),(e+(e>>4)&252645135)*16843009>>>24}function Dk(e,r){for(var t=(e[r+15]&127)<<7|e[r+14]>>1,a=e[r+14]&1,n=r+13;n>=r;--n)a=a*256+e[n];return(e[r+15]&128?-a:a)*Math.pow(10,t-6176)}function Rk(e,r,t){var a=Math.floor(t==0?0:Math.LOG10E*Math.log(Math.abs(t)))+6176-20,n=t/Math.pow(10,a-6176);e[r+15]|=a>>7,e[r+14]|=(a&127)<<1;for(var i=0;n>=1;++i,n/=256)e[r+i]=n&255;e[r+15]|=t>=0?0:128}function ro(e,r){var t=r?r[0]:0,a=e[t]&127;e:if(e[t++]>=128&&(a|=(e[t]&127)<<7,e[t++]<128||(a|=(e[t]&127)<<14,e[t++]<128)||(a|=(e[t]&127)<<21,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,28),++t,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,35),++t,e[t++]<128)||(a+=(e[t]&127)*Math.pow(2,42),++t,e[t++]<128)))break e;return r&&(r[0]=t),a}function gr(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 jr(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 fr(e){for(var r=[],t=[0];t[0]<e.length;){var a=t[0],n=ro(e,t),i=n&7;n=Math.floor(n/8);var o=0,s;if(n==0)break;switch(i){case 0:{for(var l=t[0];e[t[0]++]>=128;);s=e.slice(l,t[0])}break;case 5:o=4,s=e.slice(t[0],t[0]+o),t[0]+=o;break;case 1:o=8,s=e.slice(t[0],t[0]+o),t[0]+=o;break;case 2:o=ro(e,t),s=e.slice(t[0],t[0]+o),t[0]+=o;break;case 3:case 4:default:throw new Error("PB Type ".concat(i," for Field ").concat(n," at offset ").concat(a))}var c={data:s,type:i};r[n]==null?r[n]=[c]:r[n].push(c)}return r}function ot(e){var r=[];return e.forEach(function(t,a){t.forEach(function(n){!n.data||(r.push(gr(a*8+n.type)),n.type==2&&r.push(gr(n.data.length)),r.push(n.data))})}),on(r)}function C0(e,r){return(e==null?void 0:e.map(function(t){return r(t.data)}))||[]}function Xt(e){for(var r,t=[],a=[0];a[0]<e.length;){var n=ro(e,a),i=fr(e.slice(a[0],a[0]+n));a[0]+=n;var o={id:jr(i[1][0].data),messages:[]};i[2].forEach(function(s){var l=fr(s.data),c=jr(l[3][0].data);o.messages.push({meta:l,data:e.slice(a[0],a[0]+c)}),a[0]+=c}),(r=i[3])!=null&&r[0]&&(o.merge=jr(i[3][0].data)>>>0>0),t.push(o)}return t}function Gn(e){var r=[];return e.forEach(function(t){var a=[];a[1]=[{data:gr(t.id),type:0}],a[2]=[],t.merge!=null&&(a[3]=[{data:gr(+!!t.merge),type:0}]);var n=[];t.messages.forEach(function(o){n.push(o.data),o.meta[3]=[{type:0,data:gr(o.data.length)}],a[2].push({data:ot(o.meta),type:2})});var i=ot(a);r.push(gr(i.length)),r.push(i),n.forEach(function(o){return r.push(o)})}),on(r)}function Ik(e,r){if(e!=0)throw new Error("Unexpected Snappy chunk type ".concat(e));for(var t=[0],a=ro(r,t),n=[];t[0]<r.length;){var i=r[t[0]]&3;if(i==0){var o=r[t[0]++]>>2;if(o<60)++o;else{var s=o-59;o=r[t[0]],s>1&&(o|=r[t[0]+1]<<8),s>2&&(o|=r[t[0]+2]<<16),s>3&&(o|=r[t[0]+3]<<24),o>>>=0,o++,t[0]+=s}n.push(r.slice(t[0],t[0]+o)),t[0]+=o;continue}else{var l=0,c=0;if(i==1?(c=(r[t[0]]>>2&7)+4,l=(r[t[0]++]&224)<<3,l|=r[t[0]++]):(c=(r[t[0]++]>>2)+1,i==2?(l=r[t[0]]|r[t[0]+1]<<8,t[0]+=2):(l=(r[t[0]]|r[t[0]+1]<<8|r[t[0]+2]<<16|r[t[0]+3]<<24)>>>0,t[0]+=4)),n=[on(n)],l==0)throw new Error("Invalid offset 0");if(l>n[0].length)throw new Error("Invalid offset beyond length");if(c>=l)for(n.push(n[0].slice(-l)),c-=l;c>=n[n.length-1].length;)n.push(n[n.length-1]),c-=n[n.length-1].length;n.push(n[0].slice(-l,-l+c))}}var f=on(n);if(f.length!=a)throw new Error("Unexpected length: ".concat(f.length," != ").concat(a));return f}function Yt(e){for(var r=[],t=0;t<e.length;){var a=e[t++],n=e[t]|e[t+1]<<8|e[t+2]<<16;t+=3,r.push(Ik(a,e.slice(t,t+n))),t+=n}if(t!==e.length)throw new Error("data is not a valid framed stream!");return on(r)}function Xn(e){for(var r=[],t=0;t<e.length;){var a=Math.min(e.length-t,268435455),n=new Uint8Array(4);r.push(n);var i=gr(a),o=i.length;r.push(i),a<=60?(o++,r.push(new Uint8Array([a-1<<2]))):a<=256?(o+=2,r.push(new Uint8Array([240,a-1&255]))):a<=65536?(o+=3,r.push(new Uint8Array([244,a-1&255,a-1>>8&255]))):a<=16777216?(o+=4,r.push(new Uint8Array([248,a-1&255,a-1>>8&255,a-1>>16&255]))):a<=4294967296&&(o+=5,r.push(new Uint8Array([252,a-1&255,a-1>>8&255,a-1>>16&255,a-1>>>24&255]))),r.push(e.slice(t,t+a)),o+=a,n[0]=0,n[1]=o&255,n[2]=o>>8&255,n[3]=o>>16&255,t+=a}return on(r)}function Pk(e,r,t,a){var n=An(e),i=n.getUint32(4,!0),o=(a>1?12:8)+au(i&(a>1?3470:398))*4,s=-1,l=-1,c=NaN,f=new Date(2001,0,1);i&512&&(s=n.getUint32(o,!0),o+=4),o+=au(i&(a>1?12288:4096))*4,i&16&&(l=n.getUint32(o,!0),o+=4),i&32&&(c=n.getFloat64(o,!0),o+=8),i&64&&(f.setTime(f.getTime()+n.getFloat64(o,!0)*1e3),o+=8);var u;switch(e[2]){case 0:break;case 2:u={t:"n",v:c};break;case 3:u={t:"s",v:r[l]};break;case 5:u={t:"d",v:f};break;case 6:u={t:"b",v:c>0};break;case 7:u={t:"n",v:c/86400};break;case 8:u={t:"e",v:0};break;case 9:if(s>-1)u={t:"s",v:t[s]};else if(l>-1)u={t:"s",v:r[l]};else if(!isNaN(c))u={t:"n",v:c};else throw new Error("Unsupported cell type ".concat(e.slice(0,4)));break;default:throw new Error("Unsupported cell type ".concat(e.slice(0,4)))}return u}function Nk(e,r,t){var a=An(e),n=a.getUint32(8,!0),i=12,o=-1,s=-1,l=NaN,c=NaN,f=new Date(2001,0,1);n&1&&(l=Dk(e,i),i+=16),n&2&&(c=a.getFloat64(i,!0),i+=8),n&4&&(f.setTime(f.getTime()+a.getFloat64(i,!0)*1e3),i+=8),n&8&&(s=a.getUint32(i,!0),i+=4),n&16&&(o=a.getUint32(i,!0),i+=4);var u;switch(e[1]){case 0:break;case 2:u={t:"n",v:l};break;case 3:u={t:"s",v:r[s]};break;case 5:u={t:"d",v:f};break;case 6:u={t:"b",v:c>0};break;case 7:u={t:"n",v:c/86400};break;case 8:u={t:"e",v:0};break;case 9:if(o>-1)u={t:"s",v:t[o]};else throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)));break;case 10:u={t:"n",v:l};break;default:throw new Error("Unsupported cell type ".concat(e[1]," : ").concat(n&31," : ").concat(e.slice(0,4)))}return u}function tl(e,r){var t=new Uint8Array(32),a=An(t),n=12,i=0;switch(t[0]=5,e.t){case"n":t[1]=2,Rk(t,n,e.v),i|=1,n+=16;break;case"b":t[1]=6,a.setFloat64(n,e.v?1:0,!0),i|=2,n+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[1]=3,a.setUint32(n,r.indexOf(e.v),!0),i|=8,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(8,i,!0),t.slice(0,n)}function al(e,r){var t=new Uint8Array(32),a=An(t),n=12,i=0;switch(t[0]=3,e.t){case"n":t[2]=2,a.setFloat64(n,e.v,!0),i|=32,n+=8;break;case"b":t[2]=6,a.setFloat64(n,e.v?1:0,!0),i|=32,n+=8;break;case"s":if(r.indexOf(e.v)==-1)throw new Error("Value ".concat(e.v," missing from SST!"));t[2]=3,a.setUint32(n,r.indexOf(e.v),!0),i|=16,n+=4;break;default:throw"unsupported cell type "+e.t}return a.setUint32(4,i,!0),t.slice(0,n)}function Lk(e,r,t){switch(e[0]){case 0:case 1:case 2:case 3:return Pk(e,r,t,e[0]);case 5:return Nk(e,r,t);default:throw new Error("Unsupported payload version ".concat(e[0]))}}function ht(e){var r=fr(e);return ro(r[1][0].data)}function nu(e,r){var t=fr(r.data),a=jr(t[1][0].data),n=t[3],i=[];return(n||[]).forEach(function(o){var s=fr(o.data),l=jr(s[1][0].data)>>>0;switch(a){case 1:i[l]=Ol(s[3][0].data);break;case 8:{var c=e[ht(s[9][0].data)][0],f=fr(c.data),u=e[ht(f[1][0].data)][0],d=jr(u.meta[1][0].data);if(d!=2001)throw new Error("2000 unexpected reference to ".concat(d));var v=fr(u.data);i[l]=v[3].map(function(x){return Ol(x.data)}).join("")}break}}),i}function Bk(e,r){var t,a,n,i,o,s,l,c,f,u,d,v,x,h,p=fr(e),m=jr(p[1][0].data)>>>0,S=jr(p[2][0].data)>>>0,g=((a=(t=p[8])==null?void 0:t[0])==null?void 0:a.data)&&jr(p[8][0].data)>0||!1,w,C;if(((i=(n=p[7])==null?void 0:n[0])==null?void 0:i.data)&&r!=0)w=(s=(o=p[7])==null?void 0:o[0])==null?void 0:s.data,C=(c=(l=p[6])==null?void 0:l[0])==null?void 0:c.data;else if(((u=(f=p[4])==null?void 0:f[0])==null?void 0:u.data)&&r!=1)w=(v=(d=p[4])==null?void 0:d[0])==null?void 0:v.data,C=(h=(x=p[3])==null?void 0:x[0])==null?void 0:h.data;else throw"NUMBERS Tile missing ".concat(r," cell storage");for(var F=g?4:1,_=An(w),R=[],y=0;y<w.length/2;++y){var W=_.getUint16(y*2,!0);W<65535&&R.push([y,W])}if(R.length!=S)throw"Expected ".concat(S," cells, found ").concat(R.length);var D=[];for(y=0;y<R.length-1;++y)D[R[y][0]]=C.subarray(R[y][1]*F,R[y+1][1]*F);return R.length>=1&&(D[R[R.length-1][0]]=C.subarray(R[R.length-1][1]*F)),{R:m,cells:D}}function Mk(e,r){var t,a=fr(r.data),n=(t=a==null?void 0:a[7])!=null&&t[0]?jr(a[7][0].data)>>>0>0?1:0:-1,i=C0(a[5],function(o){return Bk(o,n)});return{nrows:jr(a[4][0].data)>>>0,data:i.reduce(function(o,s){return o[s.R]||(o[s.R]=[]),s.cells.forEach(function(l,c){if(o[s.R][c])throw new Error("Duplicate cell r=".concat(s.R," c=").concat(c));o[s.R][c]=l}),o},[])}}function Kk(e,r,t){var a,n=fr(r.data),i={s:{r:0,c:0},e:{r:0,c:0}};if(i.e.r=(jr(n[6][0].data)>>>0)-1,i.e.r<0)throw new Error("Invalid row varint ".concat(n[6][0].data));if(i.e.c=(jr(n[7][0].data)>>>0)-1,i.e.c<0)throw new Error("Invalid col varint ".concat(n[7][0].data));t["!ref"]=rr(i);var o=fr(n[4][0].data),s=nu(e,e[ht(o[4][0].data)][0]),l=(a=o[17])!=null&&a[0]?nu(e,e[ht(o[17][0].data)][0]):[],c=fr(o[3][0].data),f=0;c[1].forEach(function(u){var d=fr(u.data),v=e[ht(d[2][0].data)][0],x=jr(v.meta[1][0].data);if(x!=6002)throw new Error("6001 unexpected reference to ".concat(x));var h=Mk(e,v);h.data.forEach(function(p,m){p.forEach(function(S,g){var w=$e({r:f+m,c:g}),C=Lk(S,s,l);C&&(t[w]=C)})}),f+=h.nrows})}function jk(e,r){var t=fr(r.data),a={"!ref":"A1"},n=e[ht(t[2][0].data)],i=jr(n[0].meta[1][0].data);if(i!=6001)throw new Error("6000 unexpected reference to ".concat(i));return Kk(e,n[0],a),a}function Wk(e,r){var t,a=fr(r.data),n={name:(t=a[1])!=null&&t[0]?Ol(a[1][0].data):"",sheets:[]},i=C0(a[2],ht);return i.forEach(function(o){e[o].forEach(function(s){var l=jr(s.meta[1][0].data);l==6e3&&n.sheets.push(jk(e,s))})}),n}function Uk(e,r){var t=hv(),a=fr(r.data),n=C0(a[1],ht);if(n.forEach(function(i){e[i].forEach(function(o){var s=jr(o.meta[1][0].data);if(s==2){var l=Wk(e,o);l.sheets.forEach(function(c,f){vv(t,c,f==0?l.name:l.name+"_"+f,!0)})}})}),t.SheetNames.length==0)throw new Error("Empty NUMBERS file");return t}function nl(e){var r,t,a,n,i={},o=[];if(e.FullPaths.forEach(function(l){if(l.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),e.FileIndex.forEach(function(l){if(!!l.name.match(/\.iwa$/)){var c;try{c=Yt(l.content)}catch(u){return console.log("?? "+l.content.length+" "+(u.message||u))}var f;try{f=Xt(c)}catch(u){return console.log("## "+(u.message||u))}f.forEach(function(u){i[u.id]=u.messages,o.push(u.id)})}}),!o.length)throw new Error("File has no messages");var s=((n=(a=(t=(r=i==null?void 0:i[1])==null?void 0:r[0])==null?void 0:t.meta)==null?void 0:a[1])==null?void 0:n[0].data)&&jr(i[1][0].meta[1][0].data)==1&&i[1][0];if(s||o.forEach(function(l){i[l].forEach(function(c){var f=jr(c.meta[1][0].data)>>>0;if(f==1)if(!s)s=c;else throw new Error("Document has multiple roots")})}),!s)throw new Error("Cannot find Document root");return Uk(i,s)}function Hk(e,r,t){var a,n,i,o;if(!((a=e[6])!=null&&a[0])||!((n=e[7])!=null&&n[0]))throw"Mutation only works on post-BNC storages!";var s=((o=(i=e[8])==null?void 0:i[0])==null?void 0:o.data)&&jr(e[8][0].data)>0||!1;if(s)throw"Math only works with normal offsets";for(var l=0,c=An(e[7][0].data),f=0,u=[],d=An(e[4][0].data),v=0,x=[],h=0;h<r.length;++h){if(r[h]==null){c.setUint16(h*2,65535,!0),d.setUint16(h*2,65535);continue}c.setUint16(h*2,f,!0),d.setUint16(h*2,v,!0);var p,m;switch(typeof r[h]){case"string":p=tl({t:"s",v:r[h]},t),m=al({t:"s",v:r[h]},t);break;case"number":p=tl({t:"n",v:r[h]},t),m=al({t:"n",v:r[h]},t);break;case"boolean":p=tl({t:"b",v:r[h]},t),m=al({t:"b",v:r[h]},t);break;default:throw new Error("Unsupported value "+r[h])}u.push(p),f+=p.length,x.push(m),v+=m.length,++l}for(e[2][0].data=gr(l);h<e[7][0].data.length/2;++h)c.setUint16(h*2,65535,!0),d.setUint16(h*2,65535,!0);return e[6][0].data=on(u),e[3][0].data=on(x),l}function Vk(e,r){if(!r||!r.numbers)throw new Error("Must pass a `numbers` option -- check the README");var t=e.Sheets[e.SheetNames[0]];e.SheetNames.length>1&&console.error("The Numbers writer currently writes only the first table");var a=ra(t["!ref"]);a.s.r=a.s.c=0;var n=!1;a.e.c>9&&(n=!0,a.e.c=9),a.e.r>49&&(n=!0,a.e.r=49),n&&console.error("The Numbers writer is currently limited to ".concat(rr(a)));var i=uv(t,{range:a,header:1}),o=["~Sh33tJ5~"];i.forEach(function(z){return z.forEach(function(U){typeof U=="string"&&o.push(U)})});var s={},l=[],c=Me.read(r.numbers,{type:"base64"});c.FileIndex.map(function(z,U){return[z,c.FullPaths[U]]}).forEach(function(z){var U=z[0],V=z[1];if(U.type==2&&!!U.name.match(/\.iwa/)){var q=U.content,ee=Yt(q),Y=Xt(ee);Y.forEach(function(J){l.push(J.id),s[J.id]={deps:[],location:V,type:jr(J.messages[0].meta[1][0].data)}})}}),l.sort(function(z,U){return z-U});var f=l.filter(function(z){return z>1}).map(function(z){return[z,gr(z)]});c.FileIndex.map(function(z,U){return[z,c.FullPaths[U]]}).forEach(function(z){var U=z[0];if(z[1],!!U.name.match(/\.iwa/)){var V=Xt(Yt(U.content));V.forEach(function(q){q.messages.forEach(function(ee){f.forEach(function(Y){q.messages.some(function(J){return jr(J.meta[1][0].data)!=11006&&Ok(J.data,Y[1])})&&s[Y[0]].deps.push(q.id)})})})}});for(var u=Me.find(c,s[1].location),d=Xt(Yt(u.content)),v,x=0;x<d.length;++x){var h=d[x];h.id==1&&(v=h)}var p=ht(fr(v.messages[0].data)[1][0].data);for(u=Me.find(c,s[p].location),d=Xt(Yt(u.content)),x=0;x<d.length;++x)h=d[x],h.id==p&&(v=h);for(p=ht(fr(v.messages[0].data)[2][0].data),u=Me.find(c,s[p].location),d=Xt(Yt(u.content)),x=0;x<d.length;++x)h=d[x],h.id==p&&(v=h);for(p=ht(fr(v.messages[0].data)[2][0].data),u=Me.find(c,s[p].location),d=Xt(Yt(u.content)),x=0;x<d.length;++x)h=d[x],h.id==p&&(v=h);var m=fr(v.messages[0].data);{m[6][0].data=gr(a.e.r+1),m[7][0].data=gr(a.e.c+1);var S=ht(m[46][0].data),g=Me.find(c,s[S].location),w=Xt(Yt(g.content));{for(var C=0;C<w.length&&w[C].id!=S;++C);if(w[C].id!=S)throw"Bad ColumnRowUIDMapArchive";var F=fr(w[C].messages[0].data);F[1]=[],F[2]=[],F[3]=[];for(var _=0;_<=a.e.c;++_){var R=[];R[1]=R[2]=[{type:0,data:gr(_+420690)}],F[1].push({type:2,data:ot(R)}),F[2].push({type:0,data:gr(_)}),F[3].push({type:0,data:gr(_)})}F[4]=[],F[5]=[],F[6]=[];for(var y=0;y<=a.e.r;++y)R=[],R[1]=R[2]=[{type:0,data:gr(y+726270)}],F[4].push({type:2,data:ot(R)}),F[5].push({type:0,data:gr(y)}),F[6].push({type:0,data:gr(y)});w[C].messages[0].data=ot(F)}g.content=Xn(Gn(w)),g.size=g.content.length,delete m[46];var W=fr(m[4][0].data);{W[7][0].data=gr(a.e.r+1);var D=fr(W[1][0].data),E=ht(D[2][0].data);g=Me.find(c,s[E].location),w=Xt(Yt(g.content));{if(w[0].id!=E)throw"Bad HeaderStorageBucket";var T=fr(w[0].messages[0].data);for(y=0;y<i.length;++y){var A=fr(T[2][0].data);A[1][0].data=gr(y),A[4][0].data=gr(i[y].length),T[2][y]={type:T[2][0].type,data:ot(A)}}w[0].messages[0].data=ot(T)}g.content=Xn(Gn(w)),g.size=g.content.length;var b=ht(W[2][0].data);g=Me.find(c,s[b].location),w=Xt(Yt(g.content));{if(w[0].id!=b)throw"Bad HeaderStorageBucket";for(T=fr(w[0].messages[0].data),_=0;_<=a.e.c;++_)A=fr(T[2][0].data),A[1][0].data=gr(_),A[4][0].data=gr(a.e.r+1),T[2][_]={type:T[2][0].type,data:ot(A)};w[0].messages[0].data=ot(T)}g.content=Xn(Gn(w)),g.size=g.content.length;var O=ht(W[4][0].data);(function(){for(var z=Me.find(c,s[O].location),U=Xt(Yt(z.content)),V,q=0;q<U.length;++q){var ee=U[q];ee.id==O&&(V=ee)}var Y=fr(V.messages[0].data);{Y[3]=[];var J=[];o.forEach(function(K,Oe){J[1]=[{type:0,data:gr(Oe)}],J[2]=[{type:0,data:gr(1)}],J[3]=[{type:2,data:Ak(K)}],Y[3].push({type:2,data:ot(J)})})}V.messages[0].data=ot(Y);var Q=Gn(U),ce=Xn(Q);z.content=ce,z.size=z.content.length})();var N=fr(W[3][0].data);{var G=N[1][0];delete N[2];var L=fr(G.data);{var X=ht(L[2][0].data);(function(){for(var z=Me.find(c,s[X].location),U=Xt(Yt(z.content)),V,q=0;q<U.length;++q){var ee=U[q];ee.id==X&&(V=ee)}var Y=fr(V.messages[0].data);{delete Y[6],delete N[7];var J=new Uint8Array(Y[5][0].data);Y[5]=[];for(var Q=0,ce=0;ce<=a.e.r;++ce){var K=fr(J);Q+=Hk(K,i[ce],o),K[1][0].data=gr(ce),Y[5].push({data:ot(K),type:2})}Y[1]=[{type:0,data:gr(a.e.c+1)}],Y[2]=[{type:0,data:gr(a.e.r+1)}],Y[3]=[{type:0,data:gr(Q)}],Y[4]=[{type:0,data:gr(a.e.r+1)}]}V.messages[0].data=ot(Y);var Oe=Gn(U),Ie=Xn(Oe);z.content=Ie,z.size=z.content.length})()}G.data=ot(L)}W[3][0].data=ot(N)}m[4][0].data=ot(W)}v.messages[0].data=ot(m);var Z=Gn(d),I=Xn(Z);return u.content=I,u.size=u.content.length,c}function sv(e){return function(t){for(var a=0;a!=e.length;++a){var n=e[a];t[n[0]]===void 0&&(t[n[0]]=n[1]),n[2]==="n"&&(t[n[0]]=Number(t[n[0]]))}}}function T0(e){sv([["cellNF",!1],["cellHTML",!0],["cellFormula",!0],["cellStyles",!1],["cellText",!0],["cellDates",!1],["sheetStubs",!1],["sheetRows",0,"n"],["bookDeps",!1],["bookSheets",!1],["bookProps",!1],["bookFiles",!1],["bookVBA",!1],["password",""],["WTF",!1]])(e)}function k0(e){sv([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(e)}function zk(e){return Ze.WS.indexOf(e)>-1?"sheet":e==Ze.CS?"chart":e==Ze.DS?"dialog":e==Ze.MS?"macro":e&&e.length?e:"sheet"}function $k(e,r){if(!e)return 0;try{e=r.map(function(a){return a.id||(a.id=a.strRelID),[a.name,e["!id"][a.id].Target,zk(e["!id"][a.id].Type)]})}catch{return null}return!e||e.length===0?null:e}function Gk(e,r,t,a,n,i,o,s,l,c,f,u){try{i[a]=Ni(Mt(e,t,!0),r);var d=Xr(e,r),v;switch(s){case"sheet":v=gT(d,r,n,l,i[a],c,f,u);break;case"chart":if(v=pT(d,r,n,l,i[a],c,f,u),!v||!v["!drawel"])break;var x=Ci(v["!drawel"].Target,r),h=Yi(x),p=ab(Mt(e,x,!0),Ni(Mt(e,h,!0),x)),m=Ci(p,x),S=Yi(m);v=VC(Mt(e,m,!0),m,l,Ni(Mt(e,S,!0),m),c,v);break;case"macro":v=mT(d,r,n,l,i[a],c,f,u);break;case"dialog":v=wT(d,r,n,l,i[a],c,f,u);break;default:throw new Error("Unrecognized sheet type "+s)}o[a]=v;var g=[];i&&i[a]&&Hr(i[a]).forEach(function(w){var C="";if(i[a][w].Type==Ze.CMNT){C=Ci(i[a][w].Target,r);var F=ST(Xr(e,C,!0),C,l);if(!F||!F.length)return;Vf(v,F,!1)}i[a][w].Type==Ze.TCMNT&&(C=Ci(i[a][w].Target,r),g=g.concat(ib(Xr(e,C,!0),l)))}),g&&g.length&&Vf(v,g,!0,l.people||[])}catch(w){if(l.WTF)throw w}}function $t(e){return e.charAt(0)=="/"?e.slice(1):e}function Xk(e,r){if(hi(),r=r||{},T0(r),Jt(e,"META-INF/manifest.xml")||Jt(e,"objectdata.xml"))return eu(e,r);if(Jt(e,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(typeof nl<"u"){if(e.FileIndex)return nl(e);var t=Me.utils.cfb_new();return uf(e).forEach(function(A){qe(t,A,Ed(e,A))}),nl(t)}throw new Error("Unsupported NUMBERS file")}if(!Jt(e,"[Content_Types].xml"))throw Jt(e,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Jt(e,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var a=uf(e),n=Qm(Mt(e,"[Content_Types].xml")),i=!1,o,s;if(n.workbooks.length===0&&(s="xl/workbook.xml",Xr(e,s,!0)&&n.workbooks.push(s)),n.workbooks.length===0){if(s="xl/workbook.bin",!Xr(e,s,!0))throw new Error("Could not find workbook");n.workbooks.push(s),i=!0}n.workbooks[0].slice(-3)=="bin"&&(i=!0);var l={},c={};if(!r.bookSheets&&!r.bookProps){if(Li=[],n.sst)try{Li=bT(Xr(e,$t(n.sst)),n.sst,r)}catch(A){if(r.WTF)throw A}r.cellStyles&&n.themes.length&&(l=_T(Mt(e,n.themes[0].replace(/^\//,""),!0)||"",n.themes[0],r)),n.style&&(c=yT(Xr(e,$t(n.style)),n.style,l,r))}n.links.map(function(A){try{var b=Ni(Mt(e,Yi($t(A))),A);return CT(Xr(e,$t(A)),b,A,r)}catch{}});var f=xT(Xr(e,$t(n.workbooks[0])),n.workbooks[0],r),u={},d="";n.coreprops.length&&(d=Xr(e,$t(n.coreprops[0]),!0),d&&(u=Zd(d)),n.extprops.length!==0&&(d=Xr(e,$t(n.extprops[0]),!0),d&&ow(d,u,r)));var v={};(!r.bookSheets||r.bookProps)&&n.custprops.length!==0&&(d=Mt(e,$t(n.custprops[0]),!0),d&&(v=lw(d,r)));var x={};if((r.bookSheets||r.bookProps)&&(f.Sheets?o=f.Sheets.map(function(b){return b.name}):u.Worksheets&&u.SheetNames.length>0&&(o=u.SheetNames),r.bookProps&&(x.Props=u,x.Custprops=v),r.bookSheets&&typeof o<"u"&&(x.SheetNames=o),r.bookSheets?x.SheetNames:r.bookProps))return x;o={};var h={};r.bookDeps&&n.calcchain&&(h=ET(Xr(e,$t(n.calcchain)),n.calcchain));var p=0,m={},S,g;{var w=f.Sheets;u.Worksheets=w.length,u.SheetNames=[];for(var C=0;C!=w.length;++C)u.SheetNames[C]=w[C].name}var F=i?"bin":"xml",_=n.workbooks[0].lastIndexOf("/"),R=(n.workbooks[0].slice(0,_+1)+"_rels/"+n.workbooks[0].slice(_+1)+".rels").replace(/^\//,"");Jt(e,R)||(R="xl/_rels/workbook."+F+".rels");var y=Ni(Mt(e,R,!0),R.replace(/_rels.*/,"s5s"));(n.metadata||[]).length>=1&&(r.xlmeta=TT(Xr(e,$t(n.metadata[0])),n.metadata[0],r)),(n.people||[]).length>=1&&(r.people=sb(Xr(e,$t(n.people[0])),r)),y&&(y=$k(y,f.Sheets));var W=Xr(e,"xl/worksheets/sheet.xml",!0)?1:0;e:for(p=0;p!=u.Worksheets;++p){var D="sheet";if(y&&y[p]?(S="xl/"+y[p][1].replace(/[\/]?xl\//,""),Jt(e,S)||(S=y[p][1]),Jt(e,S)||(S=R.replace(/_rels\/.*$/,"")+y[p][1]),D=y[p][2]):(S="xl/worksheets/sheet"+(p+1-W)+"."+F,S=S.replace(/sheet0\./,"sheet.")),g=S.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),r&&r.sheets!=null)switch(typeof r.sheets){case"number":if(p!=r.sheets)continue e;break;case"string":if(u.SheetNames[p].toLowerCase()!=r.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(r.sheets)){for(var E=!1,T=0;T!=r.sheets.length;++T)typeof r.sheets[T]=="number"&&r.sheets[T]==p&&(E=1),typeof r.sheets[T]=="string"&&r.sheets[T].toLowerCase()==u.SheetNames[p].toLowerCase()&&(E=1);if(!E)continue e}}Gk(e,S,g,u.SheetNames[p],p,m,o,D,r,f,l,c)}return x={Directory:n,Workbook:f,Props:u,Custprops:v,Deps:h,Sheets:o,SheetNames:u.SheetNames,Strings:Li,Styles:c,Themes:l,SSF:Dr(Ue)},r&&r.bookFiles&&(e.files?(x.keys=a,x.files=e.files):(x.keys=[],x.files={},e.FullPaths.forEach(function(A,b){A=A.replace(/^Root Entry[\/]/,""),x.keys.push(A),x.files[A]=e.FileIndex[b]}))),r&&r.bookVBA&&(n.vba.length>0?x.vbaraw=Xr(e,$t(n.vba[0]),!0):n.defaults&&n.defaults.bin===xb&&(x.vbaraw=Xr(e,"xl/vbaProject.bin",!0))),x}function Yk(e,r){var t=r||{},a="Workbook",n=Me.find(e,a);try{if(a="/!DataSpaces/Version",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(Ty(n.content),a="/!DataSpaces/DataSpaceMap",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var i=Fy(n.content);if(i.length!==1||i[0].comps.length!==1||i[0].comps[0].t!==0||i[0].name!=="StrongEncryptionDataSpace"||i[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var o=Ay(n.content);if(o.length!=1||o[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+a);if(a="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);Dy(n.content)}catch{}if(a="/EncryptionInfo",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);var s=Ry(n.content);if(a="/EncryptedPackage",n=Me.find(e,a),!n||!n.content)throw new Error("ECMA-376 Encrypted file missing "+a);if(s[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(s[1],n.content,t.password||"",t);if(s[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(s[1],n.content,t.password||"",t);throw new Error("File is password-protected")}function qk(e,r){return r.bookType=="ods"?ov(e,r):r.bookType=="numbers"?Vk(e,r):r.bookType=="xlsb"?Jk(e,r):Zk(e,r)}function Jk(e,r){Qn=1024,e&&!e.SSF&&(e.SSF=Dr(Ue)),e&&e.SSF&&(hi(),ys(e.SSF),r.revssf=bs(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Bi?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t=r.bookType=="xlsb"?"bin":"xml",a=Bh.indexOf(r.bookType)>-1,n=d0();k0(r=r||{});var i=e0(),o="",s=0;if(r.cellXfs=[],cn(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qe(i,o,Qd(e.Props,r)),n.coreprops.push(o),pr(r.rels,2,o,Ze.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}for(e.Props.Worksheets=e.Props.SheetNames.length,qe(i,o,th(e.Props)),n.extprops.push(o),pr(r.rels,3,o,Ze.EXT_PROPS),e.Custprops!==e.Props&&Hr(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qe(i,o,ah(e.Custprops)),n.custprops.push(o),pr(r.rels,4,o,Ze.CUST_PROPS)),s=1;s<=e.SheetNames.length;++s){var f={"!id":{}},u=e.Sheets[e.SheetNames[s-1]],d=(u||{})["!type"]||"sheet";switch(d){case"chart":default:o="xl/worksheets/sheet"+s+"."+t,qe(i,o,FT(s-1,o,r,e,f)),n.sheets.push(o),pr(r.wbrels,-1,"worksheets/sheet"+s+"."+t,Ze.WS[0])}if(u){var v=u["!comments"],x=!1,h="";v&&v.length>0&&(h="xl/comments"+s+"."+t,qe(i,h,DT(v,h)),n.comments.push(h),pr(f,-1,"../comments"+s+"."+t,Ze.CMNT),x=!0),u["!legacy"]&&x&&qe(i,"xl/drawings/vmlDrawing"+s+".vml",Nh(s,u["!comments"])),delete u["!comments"],delete u["!legacy"]}f["!id"].rId1&&qe(i,Yi(o),ni(f))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+t,qe(i,o,OT(r.Strings,o,r)),n.strs.push(o),pr(r.wbrels,-1,"sharedStrings."+t,Ze.SST)),o="xl/workbook."+t,qe(i,o,kT(e,o)),n.workbooks.push(o),pr(r.rels,1,o,Ze.WB),o="xl/theme/theme1.xml",qe(i,o,m0(e.Themes,r)),n.themes.push(o),pr(r.wbrels,-1,"theme/theme1.xml",Ze.THEME),o="xl/styles."+t,qe(i,o,AT(e,o,r)),n.styles.push(o),pr(r.wbrels,-1,"styles."+t,Ze.STY),e.vbaraw&&a&&(o="xl/vbaProject.bin",qe(i,o,e.vbaraw),n.vba.push(o),pr(r.wbrels,-1,"vbaProject.bin",Ze.VBA)),o="xl/metadata."+t,qe(i,o,RT(o)),n.metadata.push(o),pr(r.wbrels,-1,"metadata."+t,Ze.XLMETA),qe(i,"[Content_Types].xml",qd(n,r)),qe(i,"_rels/.rels",ni(r.rels)),qe(i,"xl/_rels/workbook."+t+".rels",ni(r.wbrels)),delete r.revssf,delete r.ssf,i}function Zk(e,r){Qn=1024,e&&!e.SSF&&(e.SSF=Dr(Ue)),e&&e.SSF&&(hi(),ys(e.SSF),r.revssf=bs(e.SSF),r.revssf[e.SSF[65535]]=0,r.ssf=e.SSF),r.rels={},r.wbrels={},r.Strings=[],r.Strings.Count=0,r.Strings.Unique=0,Bi?r.revStrings=new Map:(r.revStrings={},r.revStrings.foo=[],delete r.revStrings.foo);var t="xml",a=Bh.indexOf(r.bookType)>-1,n=d0();k0(r=r||{});var i=e0(),o="",s=0;if(r.cellXfs=[],cn(r.cellXfs,{},{revssf:{General:0}}),e.Props||(e.Props={}),o="docProps/core.xml",qe(i,o,Qd(e.Props,r)),n.coreprops.push(o),pr(r.rels,2,o,Ze.CORE_PROPS),o="docProps/app.xml",!(e.Props&&e.Props.SheetNames))if(!e.Workbook||!e.Workbook.Sheets)e.Props.SheetNames=e.SheetNames;else{for(var l=[],c=0;c<e.SheetNames.length;++c)(e.Workbook.Sheets[c]||{}).Hidden!=2&&l.push(e.SheetNames[c]);e.Props.SheetNames=l}e.Props.Worksheets=e.Props.SheetNames.length,qe(i,o,th(e.Props)),n.extprops.push(o),pr(r.rels,3,o,Ze.EXT_PROPS),e.Custprops!==e.Props&&Hr(e.Custprops||{}).length>0&&(o="docProps/custom.xml",qe(i,o,ah(e.Custprops)),n.custprops.push(o),pr(r.rels,4,o,Ze.CUST_PROPS));var f=["SheetJ5"];for(r.tcid=0,s=1;s<=e.SheetNames.length;++s){var u={"!id":{}},d=e.Sheets[e.SheetNames[s-1]],v=(d||{})["!type"]||"sheet";switch(v){case"chart":default:o="xl/worksheets/sheet"+s+"."+t,qe(i,o,Xh(s-1,r,e,u)),n.sheets.push(o),pr(r.wbrels,-1,"worksheets/sheet"+s+"."+t,Ze.WS[0])}if(d){var x=d["!comments"],h=!1,p="";if(x&&x.length>0){var m=!1;x.forEach(function(S){S[1].forEach(function(g){g.T==!0&&(m=!0)})}),m&&(p="xl/threadedComments/threadedComment"+s+"."+t,qe(i,p,ob(x,f,r)),n.threadedcomments.push(p),pr(u,-1,"../threadedComments/threadedComment"+s+"."+t,Ze.TCMNT)),p="xl/comments"+s+"."+t,qe(i,p,Lh(x)),n.comments.push(p),pr(u,-1,"../comments"+s+"."+t,Ze.CMNT),h=!0}d["!legacy"]&&h&&qe(i,"xl/drawings/vmlDrawing"+s+".vml",Nh(s,d["!comments"])),delete d["!comments"],delete d["!legacy"]}u["!id"].rId1&&qe(i,Yi(o),ni(u))}return r.Strings!=null&&r.Strings.length>0&&(o="xl/sharedStrings."+t,qe(i,o,Sh(r.Strings,r)),n.strs.push(o),pr(r.wbrels,-1,"sharedStrings."+t,Ze.SST)),o="xl/workbook."+t,qe(i,o,Qh(e)),n.workbooks.push(o),pr(r.rels,1,o,Ze.WB),o="xl/theme/theme1.xml",qe(i,o,m0(e.Themes,r)),n.themes.push(o),pr(r.wbrels,-1,"theme/theme1.xml",Ze.THEME),o="xl/styles."+t,qe(i,o,Dh(e,r)),n.styles.push(o),pr(r.wbrels,-1,"styles."+t,Ze.STY),e.vbaraw&&a&&(o="xl/vbaProject.bin",qe(i,o,e.vbaraw),n.vba.push(o),pr(r.wbrels,-1,"vbaProject.bin",Ze.VBA)),o="xl/metadata."+t,qe(i,o,Ph()),n.metadata.push(o),pr(r.wbrels,-1,"metadata."+t,Ze.XLMETA),f.length>1&&(o="xl/persons/person.xml",qe(i,o,lb(f)),n.people.push(o),pr(r.wbrels,-1,"persons/person.xml",Ze.PEOPLE)),qe(i,"[Content_Types].xml",qd(n,r)),qe(i,"_rels/.rels",ni(r.rels)),qe(i,"xl/_rels/workbook."+t+".rels",ni(r.wbrels)),delete r.revssf,delete r.ssf,i}function F0(e,r){var t="";switch((r||{}).type||"base64"){case"buffer":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];case"base64":t=jt(e.slice(0,12));break;case"binary":t=e;break;case"array":return[e[0],e[1],e[2],e[3],e[4],e[5],e[6],e[7]];default:throw new Error("Unrecognized type "+(r&&r.type||"undefined"))}return[t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2),t.charCodeAt(3),t.charCodeAt(4),t.charCodeAt(5),t.charCodeAt(6),t.charCodeAt(7)]}function Qk(e,r){return Me.find(e,"EncryptedPackage")?Yk(e,r):av(e,r)}function e4(e,r){var t,a=e,n=r||{};return n.type||(n.type=Je&&Buffer.isBuffer(e)?"buffer":"base64"),t=Cd(a,n),Xk(t,n)}function lv(e,r){var t=0;e:for(;t<e.length;)switch(e.charCodeAt(t)){case 10:case 13:case 32:++t;break;case 60:return Fl(e.slice(t),r);default:break e}return ci.to_workbook(e,r)}function r4(e,r){var t="",a=F0(e,r);switch(r.type){case"base64":t=jt(e);break;case"binary":t=e;break;case"buffer":t=e.toString("binary");break;case"array":t=Cn(e);break;default:throw new Error("Unrecognized type "+r.type)}return a[0]==239&&a[1]==187&&a[2]==191&&(t=br(t)),r.type="binary",lv(t,r)}function t4(e,r){var t=e;return r.type=="base64"&&(t=jt(t)),t=Ja.utils.decode(1200,t.slice(2),"str"),r.type="binary",lv(t,r)}function a4(e){return e.match(/[^\x00-\x7F]/)?ya(e):e}function il(e,r,t,a){return a?(t.type="string",ci.to_workbook(e,t)):ci.to_workbook(r,t)}function vs(e,r){Yl();var t=r||{};if(typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer)return vs(new Uint8Array(e),(t=Dr(t),t.type="array",t));typeof Uint8Array<"u"&&e instanceof Uint8Array&&!t.type&&(t.type=typeof Deno<"u"?"buffer":"array");var a=e,n=[0,0,0,0],i=!1;if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),oi={},t.dateNF&&(oi.dateNF=t.dateNF),t.type||(t.type=Je&&Buffer.isBuffer(e)?"buffer":"base64"),t.type=="file"&&(t.type=Je?"buffer":"binary",a=Zp(e),typeof Uint8Array<"u"&&!Je&&(t.type="array")),t.type=="string"&&(i=!0,t.type="binary",t.codepage=65001,a=a4(e)),t.type=="array"&&typeof Uint8Array<"u"&&e instanceof Uint8Array&&typeof ArrayBuffer<"u"){var o=new ArrayBuffer(3),s=new Uint8Array(o);if(s.foo="bar",!s.foo)return t=Dr(t),t.type="array",vs(ql(a),t)}switch((n=F0(a,t))[0]){case 208:if(n[1]===207&&n[2]===17&&n[3]===224&&n[4]===161&&n[5]===177&&n[6]===26&&n[7]===225)return Qk(Me.read(a,t),t);break;case 9:if(n[1]<=8)return av(a,t);break;case 60:return Fl(a,t);case 73:if(n[1]===73&&n[2]===42&&n[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(n[1]===68)return cy(a,t);break;case 84:if(n[1]===65&&n[2]===66&&n[3]===76)return _h.to_workbook(a,t);break;case 80:return n[1]===75&&n[2]<9&&n[3]<9?e4(a,t):il(e,a,t,i);case 239:return n[3]===60?Fl(a,t):il(e,a,t,i);case 255:if(n[1]===254)return t4(a,t);if(n[1]===0&&n[2]===2&&n[3]===0)return _n.to_workbook(a,t);break;case 0:if(n[1]===0&&(n[2]>=2&&n[3]===0||n[2]===0&&(n[3]===8||n[3]===9)))return _n.to_workbook(a,t);break;case 3:case 131:case 139:case 140:return kl.to_workbook(a,t);case 123:if(n[1]===92&&n[2]===114&&n[3]===116)return Fh.to_workbook(a,t);break;case 10:case 13:case 32:return r4(a,t);case 137:if(n[1]===80&&n[2]===78&&n[3]===71)throw new Error("PNG Image File is not a spreadsheet");break}return ly.indexOf(n[0])>-1&&n[2]<=12&&n[3]<=31?kl.to_workbook(a,t):il(e,a,t,i)}function cv(e,r){switch(r.type){case"base64":case"binary":break;case"buffer":case"array":r.type="";break;case"file":return io(r.file,Me.write(e,{type:Je?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");default:throw new Error("Unrecognized type "+r.type)}return Me.write(e,r)}function n4(e,r){var t=Dr(r||{}),a=qk(e,t);return i4(a,t)}function i4(e,r){var t={},a=Je?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(r.compression&&(t.compression="DEFLATE"),r.password)t.type=a;else switch(r.type){case"base64":t.type="base64";break;case"binary":t.type="string";break;case"string":throw new Error("'string' output type invalid for '"+r.bookType+"' files");case"buffer":case"file":t.type=a;break;default:throw new Error("Unrecognized type "+r.type)}var n=e.FullPaths?Me.write(e,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[t.type]||t.type,compression:!!r.compression}):e.generate(t);if(typeof Deno<"u"&&typeof n=="string"){if(r.type=="binary"||r.type=="base64")return n;n=new Uint8Array(ws(n))}return r.password&&typeof encrypt_agile<"u"?cv(encrypt_agile(n,r.password),r):r.type==="file"?io(r.file,n):r.type=="string"?br(n):n}function o4(e,r){var t=r||{},a=nk(e,t);return cv(a,t)}function wa(e,r,t){t||(t="");var a=t+e;switch(r.type){case"base64":return Hi(ya(a));case"binary":return ya(a);case"string":return e;case"file":return io(r.file,a,"utf8");case"buffer":return Je?Ua(a,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(a):wa(a,{type:"binary"}).split("").map(function(n){return n.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function s4(e,r){switch(r.type){case"base64":return Hi(e);case"binary":return e;case"string":return e;case"file":return io(r.file,e,"binary");case"buffer":return Je?Ua(e,"binary"):e.split("").map(function(t){return t.charCodeAt(0)})}throw new Error("Unrecognized type "+r.type)}function Mo(e,r){switch(r.type){case"string":case"base64":case"binary":for(var t="",a=0;a<e.length;++a)t+=String.fromCharCode(e[a]);return r.type=="base64"?Hi(t):r.type=="string"?br(t):t;case"file":return io(r.file,e);case"buffer":return e;default:throw new Error("Unrecognized type "+r.type)}}function fv(e,r){Yl(),eT(e);var t=Dr(r||{});if(t.cellStyles&&(t.cellNF=!0,t.sheetStubs=!0),t.type=="array"){t.type="binary";var a=fv(e,t);return t.type="array",ws(a)}var n=0;if(t.sheet&&(typeof t.sheet=="number"?n=t.sheet:n=e.SheetNames.indexOf(t.sheet),!e.SheetNames[n]))throw new Error("Sheet not found: "+t.sheet+" : "+typeof t.sheet);switch(t.bookType||"xlsb"){case"xml":case"xlml":return wa(JT(e,t),t);case"slk":case"sylk":return wa(yh.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"htm":case"html":return wa(Tk(e.Sheets[e.SheetNames[n]],t),t);case"txt":return s4(d4(e.Sheets[e.SheetNames[n]],t),t);case"csv":return wa(dv(e.Sheets[e.SheetNames[n]],t),t,"\uFEFF");case"dif":return wa(_h.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"dbf":return Mo(kl.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"prn":return wa(ci.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"rtf":return wa(Fh.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"eth":return wa(bh.from_sheet(e.Sheets[e.SheetNames[n]],t),t);case"fods":return wa(ov(e,t),t);case"wk1":return Mo(_n.sheet_to_wk1(e.Sheets[e.SheetNames[n]],t),t);case"wk3":return Mo(_n.book_to_wk3(e,t),t);case"biff2":t.biff||(t.biff=2);case"biff3":t.biff||(t.biff=3);case"biff4":return t.biff||(t.biff=4),Mo(nv(e,t),t);case"biff5":t.biff||(t.biff=5);case"biff8":case"xla":case"xls":return t.biff||(t.biff=8),o4(e,t);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return n4(e,t);default:throw new Error("Unrecognized bookType |"+t.bookType+"|")}}function l4(e){if(!e.bookType){var r={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"},t=e.file.slice(e.file.lastIndexOf(".")).toLowerCase();t.match(/^\.[a-z]+$/)&&(e.bookType=t.slice(1)),e.bookType=r[e.bookType]||e.bookType}}function c4(e,r,t){var a=t||{};return a.type="file",a.file=r,l4(a),fv(e,a)}function f4(e,r,t,a,n,i,o,s){var l=nt(t),c=s.defval,f=s.raw||!Object.prototype.hasOwnProperty.call(s,"raw"),u=!0,d=n===1?[]:{};if(n!==1)if(Object.defineProperty)try{Object.defineProperty(d,"__rowNum__",{value:t,enumerable:!1})}catch{d.__rowNum__=t}else d.__rowNum__=t;if(!o||e[t])for(var v=r.s.c;v<=r.e.c;++v){var x=o?e[t][v]:e[a[v]+l];if(x===void 0||x.t===void 0){if(c===void 0)continue;i[v]!=null&&(d[i[v]]=c);continue}var h=x.v;switch(x.t){case"z":if(h==null)break;continue;case"e":h=h==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+x.t)}if(i[v]!=null){if(h==null)if(x.t=="e"&&h===null)d[i[v]]=null;else if(c!==void 0)d[i[v]]=c;else if(f&&h===null)d[i[v]]=null;else continue;else d[i[v]]=f&&(x.t!=="n"||x.t==="n"&&s.rawNumbers!==!1)?h:tn(x,h,s);h!=null&&(u=!1)}}return{row:d,isempty:u}}function uv(e,r){if(e==null||e["!ref"]==null)return[];var t={t:"n",v:0},a=0,n=1,i=[],o=0,s="",l={s:{r:0,c:0},e:{r:0,c:0}},c=r||{},f=c.range!=null?c.range:e["!ref"];switch(c.header===1?a=1:c.header==="A"?a=2:Array.isArray(c.header)?a=3:c.header==null&&(a=0),typeof f){case"string":l=xr(f);break;case"number":l=xr(e["!ref"]),l.s.r=f;break;default:l=f}a>0&&(n=0);var u=nt(l.s.r),d=[],v=[],x=0,h=0,p=Array.isArray(e),m=l.s.r,S=0,g={};p&&!e[m]&&(e[m]=[]);var w=c.skipHidden&&e["!cols"]||[],C=c.skipHidden&&e["!rows"]||[];for(S=l.s.c;S<=l.e.c;++S)if(!(w[S]||{}).hidden)switch(d[S]=Jr(S),t=p?e[m][S]:e[d[S]+u],a){case 1:i[S]=S-l.s.c;break;case 2:i[S]=d[S];break;case 3:i[S]=c.header[S-l.s.c];break;default:if(t==null&&(t={w:"__EMPTY",t:"s"}),s=o=tn(t,null,c),h=g[o]||0,!h)g[o]=1;else{do s=o+"_"+h++;while(g[s]);g[o]=h,g[s]=1}i[S]=s}for(m=l.s.r+n;m<=l.e.r;++m)if(!(C[m]||{}).hidden){var F=f4(e,l,m,d,a,i,p,c);(F.isempty===!1||(a===1?c.blankrows!==!1:!!c.blankrows))&&(v[x++]=F.row)}return v.length=x,v}var iu=/"/g;function u4(e,r,t,a,n,i,o,s){for(var l=!0,c=[],f="",u=nt(t),d=r.s.c;d<=r.e.c;++d)if(!!a[d]){var v=s.dense?(e[t]||[])[d]:e[a[d]+u];if(v==null)f="";else if(v.v!=null){l=!1,f=""+(s.rawNumbers&&v.t=="n"?v.v:tn(v,null,s));for(var x=0,h=0;x!==f.length;++x)if((h=f.charCodeAt(x))===n||h===i||h===34||s.forceQuotes){f='"'+f.replace(iu,'""')+'"';break}f=="ID"&&(f='"ID"')}else v.f!=null&&!v.F?(l=!1,f="="+v.f,f.indexOf(",")>=0&&(f='"'+f.replace(iu,'""')+'"')):f="";c.push(f)}return s.blankrows===!1&&l?null:c.join(o)}function dv(e,r){var t=[],a=r==null?{}:r;if(e==null||e["!ref"]==null)return"";var n=xr(e["!ref"]),i=a.FS!==void 0?a.FS:",",o=i.charCodeAt(0),s=a.RS!==void 0?a.RS:`
|
||
`,l=s.charCodeAt(0),c=new RegExp((i=="|"?"\\|":i)+"+$"),f="",u=[];a.dense=Array.isArray(e);for(var d=a.skipHidden&&e["!cols"]||[],v=a.skipHidden&&e["!rows"]||[],x=n.s.c;x<=n.e.c;++x)(d[x]||{}).hidden||(u[x]=Jr(x));for(var h=0,p=n.s.r;p<=n.e.r;++p)(v[p]||{}).hidden||(f=u4(e,n,p,u,o,l,i,a),f!=null&&(a.strip&&(f=f.replace(c,"")),(f||a.blankrows!==!1)&&t.push((h++?s:"")+f)));return delete a.dense,t.join("")}function d4(e,r){r||(r={}),r.FS=" ",r.RS=`
|
||
`;var t=dv(e,r);return t}function hv(){return{SheetNames:[],Sheets:{}}}function vv(e,r,t,a){var n=1;if(!t)for(;n<=65535&&e.SheetNames.indexOf(t="Sheet"+n)!=-1;++n,t=void 0);if(!t||e.SheetNames.length>=65535)throw new Error("Too many worksheets");if(a&&e.SheetNames.indexOf(t)>=0){var i=t.match(/(^.*?)(\d+)$/);n=i&&+i[2]||0;var o=i&&i[1]||t;for(++n;n<=65535&&e.SheetNames.indexOf(t=o+n)!=-1;++n);}if(Zh(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}const h4=e=>(Gv("data-v-bf863a88"),e=e(),Xv(),e),v4={class:"container"},x4=h4(()=>ll("br",null,null,-1)),g4={name:"SearchTable"},p4=Tr({...g4,setup(e){const{t:r}=Ev.exports.useI18n(),t=Cv(),{loading:a,setLoading:n}=Yv(!1),i={bandwidthOption:{0:"25KHz",1:"12.5KHz"},modeOption:{0:"FM",1:"AM",2:"USB"},powerOption:{0:"\u4F4E",1:"\u4E2D",2:"\u9AD8"},toneOption:{1:"\u4E9A\u97F3\u9891",2:"\u6570\u5B57\u4E9A\u97F3",3:"\u53CD\u5411\u6570\u5B57\u4E9A\u97F3"},CTCSSOption:[67,69.3,71.9,74.4,77,79.7,82.5,85.4,88.5,91.5,94.8,97.4,100,103.5,107.2,110.9,114.8,118.8,123,127.3,131.8,136.5,141.3,146.2,151.4,156.7,159.8,162.2,165.5,167.9,171.3,173.8,177.3,179.9,183.5,186.2,189.9,192.8,196.6,199.5,203.5,206.5,210.7,218.1,225.7,229.1,233.6,241.8,250.3,254.1],DCSOption:[23,25,26,31,32,36,43,47,51,53,54,65,71,72,73,74,114,115,116,122,125,131,132,134,143,145,152,155,156,162,165,172,174,205,212,223,225,226,243,244,245,246,251,252,255,261,263,265,266,271,274,306,311,315,325,331,332,343,346,351,356,364,365,371,411,412,413,423,431,432,445,446,452,454,455,462,464,465,466,503,506,516,523,526,532,546,565,606,612,624,627,631,632,654,662,664,703,712,723,731,732,734,743,754],stepOption:[2.5,5,6.25,10,12.5,25,8.33,.01,.05,.1,.25,.5,1,1.25,9,15,20,30,50,100,125,200,250,500],scrambOption:["1","2","3","4","5","6","7","8","9","10"],pttidOption:["\u4E0A\u7EBF\u7801","\u4E0B\u7EBF\u7801","\u4E0A\u7EBF+\u4E0B\u7EBF\u7801","Quindar\u7801"]},o=Sn({renderData:Array.from({length:200}).map(g=>({scanlist:[]})),pageSize:15,nowPage:1}),s=Sn({showHide:0}),l=g=>{o.renderData=g.newData},c=le(()=>[{colKey:"drag",title:r("cps.sort"),width:46},{title:"#",colKey:"index",align:"left",width:100},{title:r("cps.name"),colKey:"name",width:250,align:"left",edit:{component:jo,props:{clearable:!0},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.bandwidth"),colKey:"bandwidth",align:"left",width:150,cell:(g,{row:w})=>{var C;return(C=i.bandwidthOption[w.bandwidth])!=null?C:""},edit:{component:Vt,props:{clearable:!0,options:Object.keys(i.bandwidthOption).map(g=>({value:g,label:i.bandwidthOption[g]}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.rx"),colKey:"rx",align:"left",width:200,cell:(g,{row:w})=>parseFloat(w.rx)?parseFloat(w.rx).toFixed(5):void 0,edit:{component:jo,props:{clearable:!0},onEdited:g=>{g.newRowData.rx=g.newRowData.rx?g.newRowData.rx:void 0;const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.tx"),colKey:"tx",align:"left",width:200,cell:(g,{row:w})=>parseFloat(w.tx)?parseFloat(w.tx).toFixed(5):void 0,edit:{component:jo,props:{clearable:!0},onEdited:g=>{g.newRowData.tx=g.newRowData.tx?g.newRowData.tx:void 0;const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.power"),colKey:"power",align:"left",width:150,cell:(g,{row:w})=>{var C;return(C=i.powerOption[w.power])!=null?C:""},edit:{component:Vt,props:{clearable:!0,options:Object.keys(i.powerOption).map(g=>({value:g,label:i.powerOption[g]}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.rxToneType"),colKey:"rxTone",align:"left",width:180,cell:(g,{row:w})=>{var C;return(C=i.toneOption[w.rxTone])!=null?C:""},edit:{component:Vt,props:{clearable:!0,options:Object.keys(i.toneOption).map(g=>({value:g,label:i.toneOption[g]}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.rxToneCTCSS"),colKey:"rxCTCSS",align:"left",width:150,cell:(g,{row:w})=>{var C;return i.CTCSSOption.indexOf(w.rxCTCSS)>=0?(C=w.rxCTCSS)==null?void 0:C.toFixed(1):void 0},edit:{component:Vt,props:{clearable:!0,options:i.CTCSSOption.map(g=>({value:g,label:g.toFixed(1)}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.rxToneDCS"),colKey:"rxDCS",align:"left",width:150,cell:(g,{row:w})=>i.DCSOption.indexOf(w.rxDCS)>=0?"0"+w.rxDCS:void 0,edit:{component:Vt,props:{clearable:!0,options:i.DCSOption.map(g=>({value:g,label:"0"+g}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.txToneType"),colKey:"txTone",align:"left",width:180,cell:(g,{row:w})=>{var C;return(C=i.toneOption[w.txTone])!=null?C:""},edit:{component:Vt,props:{clearable:!0,options:Object.keys(i.toneOption).map(g=>({value:g,label:i.toneOption[g]}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.txToneCTCSS"),colKey:"txCTCSS",align:"left",width:150,cell:(g,{row:w})=>{var C;return i.CTCSSOption.indexOf(w.txCTCSS)>=0?(C=w.txCTCSS)==null?void 0:C.toFixed(1):void 0},edit:{component:Vt,props:{clearable:!0,options:i.CTCSSOption.map(g=>({value:g,label:g.toFixed(1)}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.txToneDCS"),colKey:"txDCS",align:"left",width:150,cell:(g,{row:w})=>i.DCSOption.indexOf(w.txDCS)>=0?"0"+w.txDCS:void 0,edit:{component:Vt,props:{clearable:!0,options:i.DCSOption.map(g=>({value:g,label:"0"+g}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.step"),colKey:"step",align:"left",width:150,cell:(g,{row:w})=>{var C;return i.stepOption.indexOf(w.step)>=0?(C=w.step)==null?void 0:C.toFixed(2):void 0},edit:{component:Vt,props:{clearable:!0,options:i.stepOption.map(g=>({value:g,label:g.toFixed(2)}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.reverse"),colKey:"reverse",align:"left",width:150},{title:r("cps.scramb"),colKey:"scramb",align:"left",width:150,edit:{component:Vt,props:{clearable:!0,options:i.scrambOption.map(g=>({value:g,label:g}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.busy"),colKey:"busy",align:"left",width:150},{title:r("cps.pttid"),colKey:"pttid",align:"left",width:150,edit:{component:Vt,props:{clearable:!0,options:i.pttidOption.map(g=>({value:g,label:g}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.mode"),colKey:"mode",align:"left",width:150,cell:(g,{row:w})=>{var C;return(C=i.modeOption[w.mode])!=null?C:""},edit:{component:Vt,props:{clearable:!0,options:Object.keys(i.modeOption).map(g=>({value:g,label:i.modeOption[g]}))},onEdited:g=>{const w=[...o.renderData];w.splice((o.nowPage-1)*o.pageSize+g.rowIndex,1,g.newRowData),o.renderData=w}}},{title:r("cps.dtmf"),colKey:"dtmf",align:"left",width:150},{title:r("cps.scanlist"),colKey:"scanlist",align:"left",width:150},{title:r("cps.operate"),colKey:"operate",align:"left",width:150}]),f=[50,108,136,174,350,400,470],u=async()=>{var _,R,y,W;if(t.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await R0(t.connectPort),n(!0);let g=new Uint8Array(3200);for(let D=0;D<3200;D+=128){const E=await As(t.connectPort,D,128,(_=t.configuration)==null?void 0:_.uart);g.set(E,D)}let w=new Uint8Array(192);for(let D=3424;D<3616;D+=64){const E=await As(t.connectPort,D,64,(R=t.configuration)==null?void 0:R.uart);w.set(E,D-3424)}let C=new Uint8Array(3200);for(let D=3920;D<7120;D+=128){const E=await As(t.connectPort,D,128,(y=t.configuration)==null?void 0:y.uart);C.set(E,D-3920)}const F=[];for(let D=0;D<3200;D+=16){const E=I0(g.subarray(D,D+16)),T=I0(w.subarray(D/16,D/16+1)),A={scanlist:[]};A.rx=E.substr(24,8)!="ffffffff"?parseInt(E.substr(24,8),16)/1e5:void 0,A.rx&&T!="ff"?(console.info(E),console.info(T),A.offset=E.substr(16,8)!="00000000"?parseInt(E.substr(16,8),16)/1e5:void 0,A.txcodeflag=E.substr(9,1),A.txcodeflag=="1"&&(A.tx=A.rx+A.offset),A.txcodeflag=="2"&&(A.tx=A.rx-A.offset),A.txTone=parseInt(E.substr(10,1),16)>0?parseInt(E.substr(10,1),16).toString():void 0,A.rxTone=parseInt(E.substr(11,1),16)>0?parseInt(E.substr(11,1),16).toString():void 0,A.txTone=="1"&&(A.txCTCSS=i.CTCSSOption[parseInt(E.substr(12,2),16)]),(A.txTone=="2"||A.txTone=="3")&&(A.txDCS=i.DCSOption[parseInt(E.substr(12,2),16)]),A.rxTone=="1"&&(A.rxCTCSS=i.CTCSSOption[parseInt(E.substr(14,2),16)]),(A.rxTone=="2"||A.rxTone=="3")&&(A.rxDCS=i.DCSOption[parseInt(E.substr(14,2),16)]),A.step=i.stepOption[parseInt(E.substr(2,2),16)],A.scramb=parseInt(E.substr(0,2),16)>0?parseInt(E.substr(0,2),16).toString():void 0,A.power_reverse_busy_width=parseInt(E.substr(6,2),16),A.reverse=!!(A.power_reverse_busy_width>>0&1),A.bandwidth=(A.power_reverse_busy_width>>1&1).toString(),A.power=(A.power_reverse_busy_width>>2&3).toString(),A.busy=!!(A.power_reverse_busy_width>>4&1),A.pttid_dtmf=parseInt(E.substr(4,2),16),A.pttid=i.pttidOption[(A.pttid_dtmf>>1)-1],A.dtmf=!!(A.pttid_dtmf>>0&1),A.mode=parseInt(E.substr(8,1),16).toString(),A.name=qv(C.subarray(D,D+16),(W=t.configuration)==null?void 0:W.charset),parseInt(T.substr(0,1),16)&8&&A.scanlist.push("I"),parseInt(T.substr(0,1),16)&4&&A.scanlist.push("II")):A.rx=void 0,F.push(A)}o.renderData=F,n(!1)},d=async()=>{var _,R;if(t.connectState!=!0){alert(sessionStorage.getItem("noticeConnectK5"));return}await R0(t.connectPort),n(!0);let g=new Uint8Array(3200),w=new Uint8Array(200),C=new Uint8Array(3200),F=0;o.renderData.map(y=>{var W,D,E;if(y.rx){let T="";T+=parseInt(y.scramb)>0?parseInt(y.scramb).toString(16).padStart(2,"0"):"00",T+=i.stepOption.indexOf(y.step)>=0?i.stepOption.indexOf(y.step).toString(16).padStart(2,"0"):"00";let A=i.pttidOption.indexOf(y.pttid)+1<<1;A+=y.dtmf?1:0,T+=A.toString(16).padStart(2,"0");let b=y.busy?1<<4:0;switch(b+=y.power<<2,b+=y.bandwidth<<1,b+=y.reverse?1:0,T+=b.toString(16).padStart(2,"0"),T+=y.mode?y.mode.toString(16):"0",y.tx>0&&y.tx>y.rx?T+="1":y.tx>0&&y.tx<y.rx?T+="2":T+="0",T+=parseInt(y.txTone)>0?y.txTone.toString(16):"0",T+=parseInt(y.rxTone)>0?y.rxTone.toString(16):"0",y.txTone){case"1":T+=i.CTCSSOption.indexOf(y.txCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":T+=i.DCSOption.indexOf(y.txDCS).toString(16).padStart(2,"0");break;default:T+="00"}switch(y.rxTone){case"1":T+=i.CTCSSOption.indexOf(y.rxCTCSS).toString(16).padStart(2,"0");break;case"2":case"3":T+=i.DCSOption.indexOf(y.rxDCS).toString(16).padStart(2,"0");break;default:T+="00"}const O=y.tx&&y.rx?Math.abs(parseInt((y.tx*1e5).toFixed(0))-parseInt((y.rx*1e5).toFixed(0))):NaN;T+=Number.isNaN(O)?"00000000":O.toString(16).padStart(8,"0"),T+=parseInt((y.rx*1e5).toFixed(0)).toString(16).padStart(8,"0"),console.log(T),g.set(Os(T),F);let N=0;((W=y.scanlist)==null?void 0:W.indexOf("I"))>=0&&(N+=8),((D=y.scanlist)==null?void 0:D.indexOf("II"))>=0&&(N+=4),w.set([(N<<4)+f.indexOf(f.reduce((L,X)=>X<y.rx?X:L))],F/16);const G=new Uint8Array(16);G.set(Jv(y.name?wp.t2s(y.name):"",(E=t.configuration)==null?void 0:E.charset).subarray(0,16),0),C.set(G,F)}else g.set(Os("ffffffffffffffffffffffffffffffff"),F),w.set([255],F/16),C.set(Os("ffffffffffffffffffffffffffffffff"),F);F+=16});for(let y=0;y<3200;y+=128)await Ds(t.connectPort,y,g.slice(y,y+128),128,(_=t.configuration)==null?void 0:_.uart);await Ds(t.connectPort,3424,w,200);for(let y=3920;y<7120;y+=128)await Ds(t.connectPort,y,C.slice(y-3920,y-3920+128),128,(R=t.configuration)==null?void 0:R.uart);await Zv(t.connectPort),n(!1)},v=async g=>{const w=[...o.renderData];w.splice(g,1,{scanlist:[]}),o.renderData=w},x=()=>{const g=JSON.stringify(o.renderData),w=new Blob([g],{type:"application/octet-stream"}),C=URL.createObjectURL(w),F=document.createElement("a");F.download="channel.json",F.href=C,document.body.appendChild(F),F.click(),document.body.removeChild(F),URL.revokeObjectURL(C)},h=()=>{const g=document.createElement("input");g.type="file",g.onchange=async()=>{const C=await new Blob([g.files[0]],{type:"application/octet-stream"}).text();o.renderData=JSON.parse(C)},g.click()},p=()=>{const g=document.createElement("a");g.href="/K5Channel.xlsx",g.download="K5Channel.xlsx",document.body.appendChild(g),g.click(),document.body.removeChild(g)},m=async()=>{var F,_,R,y,W,D,E,T,A,b,O,N,G,L,X,Z,I,z,U,V,q,ee,Y,J,Q,ce,K,Oe,Ie,Le,Pe,ve,Ye,dr,hr,kr,Qe,zr;const g=await fetch("/K5Channel.xlsx"),w=vs(await g.arrayBuffer()),C=w.Sheets[w.SheetNames[0]];for(let ge=2;ge<202;ge++)(F=o.renderData[ge-2])!=null&&F.name&&(C["B"+ge]={},C["B"+ge].v=(_=o.renderData[ge-2])==null?void 0:_.name),(R=o.renderData[ge-2])!=null&&R.bandwidth&&(C["C"+ge]={},C["C"+ge].v=i.bandwidthOption[(y=o.renderData[ge-2])==null?void 0:y.bandwidth]),(W=o.renderData[ge-2])!=null&&W.rx&&(C["D"+ge]={},C["D"+ge].v=(D=o.renderData[ge-2])==null?void 0:D.rx),(E=o.renderData[ge-2])!=null&&E.tx&&(C["E"+ge]={},C["E"+ge].v=(T=o.renderData[ge-2])==null?void 0:T.tx),(A=o.renderData[ge-2])!=null&&A.power&&(C["F"+ge]={},C["F"+ge].v=i.powerOption[(b=o.renderData[ge-2])==null?void 0:b.power]),(O=o.renderData[ge-2])!=null&&O.rxTone&&(C["G"+ge]={},C["G"+ge].v=i.toneOption[(N=o.renderData[ge-2])==null?void 0:N.rxTone]),(G=o.renderData[ge-2])!=null&&G.rxCTCSS&&(C["H"+ge]={},C["H"+ge].v=(L=o.renderData[ge-2])==null?void 0:L.rxCTCSS),(X=o.renderData[ge-2])!=null&&X.rxDCS&&(C["I"+ge]={},C["I"+ge].v=(Z=o.renderData[ge-2])==null?void 0:Z.rxDCS),(I=o.renderData[ge-2])!=null&&I.txTone&&(C["J"+ge]={},C["J"+ge].v=i.toneOption[(z=o.renderData[ge-2])==null?void 0:z.txTone]),(U=o.renderData[ge-2])!=null&&U.txCTCSS&&(C["K"+ge]={},C["K"+ge].v=(V=o.renderData[ge-2])==null?void 0:V.txCTCSS),(q=o.renderData[ge-2])!=null&&q.txDCS&&(C["L"+ge]={},C["L"+ge].v=(ee=o.renderData[ge-2])==null?void 0:ee.txDCS),(Y=o.renderData[ge-2])!=null&&Y.step&&(C["M"+ge]={},C["M"+ge].v=(J=o.renderData[ge-2])==null?void 0:J.step),(Q=o.renderData[ge-2])!=null&&Q.reverse&&(C["N"+ge]={},C["N"+ge].v=((ce=o.renderData[ge-2])==null?void 0:ce.reverse)==!0?"\u5F00":"\u5173"),(K=o.renderData[ge-2])!=null&&K.scramb&&(C["O"+ge]={},C["O"+ge].v=(Oe=o.renderData[ge-2])==null?void 0:Oe.scramb),(Ie=o.renderData[ge-2])!=null&&Ie.busy&&(C["P"+ge]={},C["P"+ge].v=((Le=o.renderData[ge-2])==null?void 0:Le.busy)==!0?"\u5F00":"\u5173"),(Pe=o.renderData[ge-2])!=null&&Pe.pttid&&(C["Q"+ge]={},C["Q"+ge].v=(ve=o.renderData[ge-2])==null?void 0:ve.pttid),(Ye=o.renderData[ge-2])!=null&&Ye.mode&&(C["R"+ge]={},C["R"+ge].v=i.modeOption[(dr=o.renderData[ge-2])==null?void 0:dr.mode]),(hr=o.renderData[ge-2])!=null&&hr.dtmf&&(C["S"+ge]={},C["S"+ge].v=((kr=o.renderData[ge-2])==null?void 0:kr.dtmf)==!0?"\u5F00":"\u5173"),(Qe=o.renderData[ge-2])!=null&&Qe.scanlist&&(C["T"+ge]={},C["T"+ge].v=(zr=o.renderData[ge-2])==null?void 0:zr.scanlist.join(","));c4(w,"K5Channel.xlsx")},S=()=>{const g=document.createElement("input");g.type="file",g.onchange=async()=>{const w=new Blob([g.files[0]],{type:"application/octet-stream"}),C=new FileReader;C.onload=function(F){var W,D,E,T,A,b,O,N,G,L,X,Z,I,z,U,V,q,ee,Y,J,Q,ce,K,Oe,Ie,Le,Pe,ve,Ye,dr,hr,kr,Qe,zr,ge;const _=Array.from({length:200}).map(Fe=>({scanlist:[]}));var R=(W=F.target)==null?void 0:W.result,y=vs(R);for(let Fe=2;Fe<202;Fe++)(D=y.Sheets.Sheet1["B"+Fe])!=null&&D.w&&(_[Fe-2].name=(E=y.Sheets.Sheet1["B"+Fe])==null?void 0:E.w),(T=y.Sheets.Sheet1["C"+Fe])!=null&&T.w&&(_[Fe-2].bandwidth=Object.keys(i.bandwidthOption).find(Ae=>{var de;return i.bandwidthOption[Ae]==((de=y.Sheets.Sheet1["C"+Fe])==null?void 0:de.w)})),(A=y.Sheets.Sheet1["D"+Fe])!=null&&A.w&&(_[Fe-2].rx=(b=y.Sheets.Sheet1["D"+Fe])==null?void 0:b.w),(O=y.Sheets.Sheet1["E"+Fe])!=null&&O.w&&(_[Fe-2].tx=(N=y.Sheets.Sheet1["E"+Fe])==null?void 0:N.w),(G=y.Sheets.Sheet1["F"+Fe])!=null&&G.w&&(_[Fe-2].power=Object.keys(i.powerOption).find(Ae=>{var de;return i.powerOption[Ae]==((de=y.Sheets.Sheet1["F"+Fe])==null?void 0:de.w)})),(L=y.Sheets.Sheet1["G"+Fe])!=null&&L.w&&(_[Fe-2].rxTone=Object.keys(i.toneOption).find(Ae=>{var de;return i.toneOption[Ae]==((de=y.Sheets.Sheet1["G"+Fe])==null?void 0:de.w)})),(X=y.Sheets.Sheet1["H"+Fe])!=null&&X.w&&(_[Fe-2].rxCTCSS=parseFloat((Z=y.Sheets.Sheet1["H"+Fe])==null?void 0:Z.w)),(I=y.Sheets.Sheet1["I"+Fe])!=null&&I.w&&(_[Fe-2].rxDCS=parseFloat((z=y.Sheets.Sheet1["I"+Fe])==null?void 0:z.w)),(U=y.Sheets.Sheet1["J"+Fe])!=null&&U.w&&(_[Fe-2].txTone=Object.keys(i.toneOption).find(Ae=>{var de;return i.toneOption[Ae]==((de=y.Sheets.Sheet1["J"+Fe])==null?void 0:de.w)})),(V=y.Sheets.Sheet1["K"+Fe])!=null&&V.w&&(_[Fe-2].txCTCSS=parseFloat((q=y.Sheets.Sheet1["K"+Fe])==null?void 0:q.w)),(ee=y.Sheets.Sheet1["L"+Fe])!=null&&ee.w&&(_[Fe-2].txDCS=parseFloat((Y=y.Sheets.Sheet1["L"+Fe])==null?void 0:Y.w)),(J=y.Sheets.Sheet1["M"+Fe])!=null&&J.w&&(_[Fe-2].step=parseFloat((Q=y.Sheets.Sheet1["M"+Fe])==null?void 0:Q.w)),(ce=y.Sheets.Sheet1["N"+Fe])!=null&&ce.w&&(_[Fe-2].reverse=((K=y.Sheets.Sheet1["N"+Fe])==null?void 0:K.w)=="\u5F00"),(Oe=y.Sheets.Sheet1["O"+Fe])!=null&&Oe.w&&(_[Fe-2].scramb=parseFloat((Ie=y.Sheets.Sheet1["O"+Fe])==null?void 0:Ie.w)),(Le=y.Sheets.Sheet1["P"+Fe])!=null&&Le.w&&(_[Fe-2].busy=((Pe=y.Sheets.Sheet1["P"+Fe])==null?void 0:Pe.w)=="\u5F00"),(ve=y.Sheets.Sheet1["Q"+Fe])!=null&&ve.w&&(_[Fe-2].pttid=(Ye=y.Sheets.Sheet1["Q"+Fe])==null?void 0:Ye.w),(dr=y.Sheets.Sheet1["R"+Fe])!=null&&dr.w&&(_[Fe-2].mode=Object.keys(i.modeOption).find(Ae=>{var de;return i.modeOption[Ae]==((de=y.Sheets.Sheet1["R"+Fe])==null?void 0:de.w)})),(hr=y.Sheets.Sheet1["S"+Fe])!=null&&hr.w&&(_[Fe-2].dtmf=((kr=y.Sheets.Sheet1["S"+Fe])==null?void 0:kr.w)=="\u5F00"),(Qe=y.Sheets.Sheet1["T"+Fe])!=null&&Qe.w&&(((zr=y.Sheets.Sheet1["T"+Fe])==null?void 0:zr.w.split(",").indexOf("I"))>=0&&_[Fe-2].scanlist.push("I"),((ge=y.Sheets.Sheet1["T"+Fe])==null?void 0:ge.w.split(",").indexOf("II"))>=0&&_[Fe-2].scanlist.push("II"));o.renderData=_},C.readAsArrayBuffer(w)},g.click()};return(g,w)=>{const C=Tv,F=jv,_=Wv,R=Uv,y=Hv,W=Vv,D=zv,E=$v,T=gx,A=Go,b=Pl,O=Wi,N=xp,G=Lv;return D0(),Bv("div",v4,[te(C,{items:[g.$t("menu.dashboard"),g.$t("menu.cps.channel")]},null,8,["items"]),te(G,{class:"general-card"},{title:yr(()=>[ll("span",{onClick:w[0]||(w[0]=()=>{s.showHide+=1})},$a(g.$t("menu.cps.channel")+g.$t("global.onStart")),1)]),default:yr(()=>[te(E,{style:{"margin-bottom":"16px"}},{default:yr(()=>[te(y,{span:12},{default:yr(()=>[te(R,null,{default:yr(()=>[te(_,{type:"primary",onClick:u},{icon:yr(()=>[te(F)]),default:yr(()=>[xa(" "+$a(g.$t("cps.onDeviceRead")),1)]),_:1}),te(_,{onClick:d},{icon:yr(()=>[te(F)]),default:yr(()=>[xa(" "+$a(g.$t("cps.onDeviceWrite")),1)]),_:1})]),_:1})]),_:1}),te(y,{span:12,style:{"text-align":"right"}},{default:yr(()=>[te(R,null,{default:yr(()=>[s.showHide>=5?(D0(),Mv(D,{key:0},{content:yr(()=>[te(_,{style:{width:"200px",margin:"10px","margin-bottom":"0px"},type:"primary",onClick:x},{default:yr(()=>[xa(" \u4FDD\u5B58 ")]),_:1}),x4,te(_,{style:{width:"200px",margin:"10px"},onClick:h},{default:yr(()=>[xa(" \u52A0\u8F7D ")]),_:1})]),default:yr(()=>[te(_,null,{default:yr(()=>[xa(" \u4FDD\u5B58/\u52A0\u8F7D\uFF08\u5DF2\u5E9F\u5F03\uFF09"),te(W)]),_:1})]),_:1})):Kv("",!0),te(_,{type:"text",onClick:p},{default:yr(()=>[xa($a(g.$t("cps.downloadImportTemplate")),1)]),_:1}),te(_,{type:"primary",onClick:S},{default:yr(()=>[xa($a(g.$t("cps.import")),1)]),_:1}),te(_,{onClick:m},{default:yr(()=>[xa($a(g.$t("cps.export")),1)]),_:1})]),_:1})]),_:1})]),_:1}),te(N,{class:"ttable",loading:sl(a),size:"medium",columns:c.value,data:o.renderData,pagination:{defaultPageSize:o.pageSize,total:o.renderData.length,defaultCurrent:1,pageSizeOptions:[15,30,50,100,200]},onChange:w[1]||(w[1]=L=>{o.pageSize=L.pagination.pageSize,o.nowPage=L.pagination.current}),bordered:"","lazy-load":"",headerAffixedTop:{offsetTop:60},hover:!0,"drag-sort":"row-handler",onDragSort:l},{drag:yr(({row:L,rowIndex:X})=>[ll("span",null,[te(sl(M1))])]),index:yr(({row:L,rowIndex:X})=>[xa($a((o.nowPage-1)*o.pageSize+X+1),1)]),reverse:yr(({row:L,rowIndex:X})=>[te(T,{modelValue:L.reverse,"onUpdate:modelValue":Z=>L.reverse=Z},null,8,["modelValue","onUpdate:modelValue"])]),busy:yr(({row:L,rowIndex:X})=>[te(T,{modelValue:L.busy,"onUpdate:modelValue":Z=>L.busy=Z},null,8,["modelValue","onUpdate:modelValue"])]),dtmf:yr(({row:L,rowIndex:X})=>[te(T,{modelValue:L.dtmf,"onUpdate:modelValue":Z=>L.dtmf=Z},null,8,["modelValue","onUpdate:modelValue"])]),scanlist:yr(({row:L,rowIndex:X})=>[te(b,{modelValue:L.scanlist,"onUpdate:modelValue":Z=>L.scanlist=Z},{default:yr(()=>[te(A,{key:"I",label:"I",value:"I"}),te(A,{key:"II",label:"II",value:"II"})]),_:2},1032,["modelValue","onUpdate:modelValue"])]),operate:yr(({row:L,rowIndex:X})=>[te(O,{theme:"default",variant:"dashed",onClick:Z=>v((o.nowPage-1)*o.pageSize+X)},{default:yr(()=>[xa($a(g.$t("cps.clear")),1)]),_:2},1032,["onClick"])]),_:1},8,["loading","columns","data","pagination"])]),_:1})])}}});const N4=kv(p4,[["__scopeId","data-v-bf863a88"]]);export{N4 as default};
|