File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.47f04e26.js
Back
import{a as cs,J as um,r as K,o as ae,b as Be,F as Cr,m as Y0,d as j,e as k,C as Rb,f as Lb,t as fs,h as Mb,n as Ob,p as Zo,X as Pb,c as Ge,j as ye,_ as Rt,w as W,k as Ut,ai as of,x as Nb,V as Ib,ah as oa,s as dm,S as Vb}from"./index.836ff972.js";import{I as er}from"./index.31d8f3a7.js";import{L as zt}from"./index.0fd81098.js";import{C as tr}from"./index.d162669d.js";import{F as rr}from"./index.79d99a66.js";/* empty css */import"./vue-cleave.min.6d14d8ca.js";import{B as ir}from"./index.43ed8c16.js";/* empty css */import{S as Gt}from"./SubmitButton.bd665ffe.js";import{E as Bb}from"./jspdf.es.min.2bae4710.js";/* empty css */import{M as jt}from"./Multiselect.20e5cf80.js";import{i as _f,l as Ub,A as zb,B as Gb,g as jb,D as Wb,M as Hb,N as Yb,O as qb,S as Kb,V as Wt,d as Jb,h as q0,b as vf,j as Xb,e as Qb,c as Wr,r as Zb,f as $b,a as Lt}from"./array.af0a862f.js";import{L as qt}from"./Loading.8843dce9.js";import{T as nr}from"./index.a708de2e.js";import{V as lr}from"./VueSelect.7228c3ba.js";import{F as Kt}from"./index.15b43d58.js";import{T as cr}from"./index.59c8323e.js";import{L as wf}from"./LeaveTypeService.838cc30c.js";import{C as fr}from"./CloseButton.f70e8453.js";import{U as ur}from"./UpdateButton.767a80b3.js";import{A as dr}from"./ActionCellRenderer.e25051af.js";import{A as Jt}from"./main.esm.228b04c8.js";import{C as sr}from"./CompanyService.464d7558.js";/* empty css */import{D as yr}from"./DealershipService.814f265f.js";import{D as Zr}from"./DepartmentService.fc2a7012.js";import{P as xf}from"./PayrollService.0408a3b1.js";import{E as Tr}from"./EmployeeService.9dcde6e5.js";import{P as js}from"./PayrollDateService.42d1cda7.js";import"./jspdf.plugin.autotable.6141dca0.js";import{D as Ps}from"./DivisionService.bd0499bc.js";import{G as ey}from"./GroupService.4e2e8d95.js";import{J as yl}from"./JobClassficationService.5e029687.js";import{J as ks}from"./JobTitleService.2212d67d.js";import{S as ty}from"./SalaryGradeService.705c6b86.js";import{S as hm}from"./SectionService.7b328bc3.js";import{U as ry}from"./UnitService.6ec57441.js";import{H as pt}from"./HelperService.e10aa3b1.js";import{N as Cf}from"./NatureOfRequestService.31321c07.js";import{M as sy}from"./MrfService.2ee21269.js";import{R as pm}from"./index.07604ab5.js";import{P as ay}from"./PayrollItemsService.2ae3cec5.js";import{L as mm}from"./LoanTypeService.99a9731b.js";const Ii="https://ahg-hr-api.autohub.ph/api/v1/report",oy="https://ahg-hr-api.autohub.ph/api/v1/report-module",iy="https://ahg-hr-api.autohub.ph/api/v1/report-module-columns",ny="https://ahg-hr-api.autohub.ph/api/v1/report-generation",mt={fetchRecords(s={}){return cs.get(`${Ii}`,{params:s})},fetchRecord(s){return cs.get(`${Ii}/${s}`)},async create(s,r){return cs.post(`${Ii}/${s}`,r)},async update(s,r){return cs.put(`${Ii}/${s}`,r)},async remove(s){return cs.delete(`${Ii}/${s}`)},fetchReportModuleRecords(s={}){return cs.get(`${oy}`,{params:s})},fetchReportModuleColumnRecord(s){return cs.get(`${iy}/${s}`)},fetchGeneratedReport(s={}){return cs.get(`${ny}`,{params:s})},GenerateAttendancePostingReport(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/report-generation-attendance-posting",{params:s})},GenerateEmployeeTaxApplicationReport(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-tax-application",{params:s})},GenerateEmployeePhilhealth(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-philhealth",{params:s})},GenerateEmployeePagibig(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-pagibig",{params:s})},GenerateHdmfLoan(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-hdmf-loan",{params:s})},GenerateEmployeeSSS(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-sss",{params:s})},GenerateEmployeeFlags(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-flags",{params:s})},GenerateEmployeeDeductions(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-deductions",{params:s})},GenerateEmployeeAdjustments(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-adjustments",{params:s})},GenerateEmployeeLoans(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-employee-loans",{params:s})},GeneratePayrollSummary(s={}){return cs.get("https://ahg-hr-api.autohub.ph/api/v1/generation-payroll-summary",{params:s})}};function ly(s){return new cy(s)}class cy{constructor(r){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(o,n={})=>{let t=this.builder(o,n);if(!_f(t))throw new TypeError("lazy() functions must return a valid schema");return t.resolve(n)},this.builder=r}resolve(r){return this._resolve(r.value,r)}cast(r,o){return this._resolve(r,o).cast(r,o)}validate(r,o,n){return this._resolve(r,o).validate(r,o,n)}validateSync(r,o){return this._resolve(r,o).validateSync(r,o)}validateAt(r,o,n){return this._resolve(o,n).validateAt(r,o,n)}validateSyncAt(r,o,n){return this._resolve(o,n).validateSyncAt(r,o,n)}describe(){return null}isValid(r,o){return this._resolve(r,o).isValid(r,o)}isValidSync(r,o){return this._resolve(r,o).isValidSync(r,o)}}function fy(s){Object.keys(s).forEach(r=>{Object.keys(s[r]).forEach(o=>{Ub[r][o]=s[r][o]})})}function uy(s,r,o){if(!s||!_f(s.prototype))throw new TypeError("You must provide a yup schema constructor function");if(typeof r!="string")throw new TypeError("A Method name must be provided");if(typeof o!="function")throw new TypeError("Method function must be provided");s.prototype[r]=o}const Ff=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:zb,BaseSchema:Gb,BooleanSchema:jb,DateSchema:Wb,MixedSchema:Hb,NumberSchema:Yb,ObjectSchema:qb,StringSchema:Kb,ValidationError:Wt,addMethod:uy,array:Jb,bool:q0,boolean:q0,date:vf,isSchema:_f,lazy:ly,mixed:Xb,number:Qb,object:Wr,reach:Zb,ref:$b,setLocale:fy,string:Lt},Symbol.toStringTag,{value:"Module"})),dy=["onClick"],hy={class:"flex items-center gap-2"},py={key:0},my={__name:"TreeItem",props:{model:Array,level:{type:Number,default:0}},emits:["tree-node-clicked"],setup(s,{emit:r}){const o=r,n=um({});function t(b){return b.children&&b.children.length>0}function e(b){n.value[b.name]=!n.value[b.name]}function u(b){return!!n.value[b.name]}function m(b){e(b),o("tree-node-clicked",b)}return(b,_)=>{const w=K("TreeItem",!0);return ae(),Be("li",null,[(ae(!0),Be(Cr,null,Y0(s.model,S=>(ae(),Be("div",{key:S.name},[j("div",{class:Mb(["text-gray-500 hover:text-gray-900 hover:underline pb-2",{bold:t(S)}]),onClick:D=>m(S),style:Ob({"padding-left":`${s.level*20}px`})},[j("div",hy,[k(Rb(er),{icon:t(S)?u(S)?"ph:folder-open-fill":"ph:folder-open-duotone":"ph:file-text"},null,8,["icon"]),Lb(" "+fs(S.name),1)])],14,dy),t(S)?Zo((ae(),Be("ul",py,[(ae(!0),Be(Cr,null,Y0(S.children,(D,E)=>(ae(),Ge(w,{model:[D],key:E,level:s.level+1.5,onTreeNodeClicked:m},null,8,["model","level"]))),128))],512)),[[Pb,u(S)]]):ye("",!0)]))),128))])}}},gy="/assets/20943555.23dd355e.jpg";/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */function Ma(){}const by=function(){let s=0;return function(){return s++}}();function xr(s){return s===null||typeof s>"u"}function Vr(s){if(Array.isArray&&Array.isArray(s))return!0;const r=Object.prototype.toString.call(s);return r.slice(0,7)==="[object"&&r.slice(-6)==="Array]"}function br(s){return s!==null&&Object.prototype.toString.call(s)==="[object Object]"}const ys=s=>(typeof s=="number"||s instanceof Number)&&isFinite(+s);function ta(s,r){return ys(s)?s:r}function Bt(s,r){return typeof s>"u"?r:s}const yy=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100:s/r,gm=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100*r:+s;function Or(s,r,o){if(s&&typeof s.call=="function")return s.apply(o,r)}function Dr(s,r,o,n){let t,e,u;if(Vr(s))if(e=s.length,n)for(t=e-1;t>=0;t--)r.call(o,s[t],t);else for(t=0;t<e;t++)r.call(o,s[t],t);else if(br(s))for(u=Object.keys(s),e=u.length,t=0;t<e;t++)r.call(o,s[u[t]],u[t])}function cl(s,r){let o,n,t,e;if(!s||!r||s.length!==r.length)return!1;for(o=0,n=s.length;o<n;++o)if(t=s[o],e=r[o],t.datasetIndex!==e.datasetIndex||t.index!==e.index)return!1;return!0}function fl(s){if(Vr(s))return s.map(fl);if(br(s)){const r=Object.create(null),o=Object.keys(s),n=o.length;let t=0;for(;t<n;++t)r[o[t]]=fl(s[o[t]]);return r}return s}function bm(s){return["__proto__","prototype","constructor"].indexOf(s)===-1}function _y(s,r,o,n){if(!bm(s))return;const t=r[s],e=o[s];br(t)&&br(e)?Qi(t,e,n):r[s]=fl(e)}function Qi(s,r,o){const n=Vr(r)?r:[r],t=n.length;if(!br(s))return s;o=o||{};const e=o.merger||_y;for(let u=0;u<t;++u){if(r=n[u],!br(r))continue;const m=Object.keys(r);for(let b=0,_=m.length;b<_;++b)e(m[b],s,r,o)}return s}function Yi(s,r){return Qi(s,r,{merger:vy})}function vy(s,r,o){if(!bm(s))return;const n=r[s],t=o[s];br(n)&&br(t)?Yi(n,t):Object.prototype.hasOwnProperty.call(r,s)||(r[s]=fl(t))}const K0={"":s=>s,x:s=>s.x,y:s=>s.y};function Ja(s,r){return(K0[r]||(K0[r]=wy(r)))(s)}function wy(s){const r=xy(s);return o=>{for(const n of r){if(n==="")break;o=o&&o[n]}return o}}function xy(s){const r=s.split("."),o=[];let n="";for(const t of r)n+=t,n.endsWith("\\")?n=n.slice(0,-1)+".":(o.push(n),n="");return o}function Af(s){return s.charAt(0).toUpperCase()+s.slice(1)}const aa=s=>typeof s<"u",Xa=s=>typeof s=="function",J0=(s,r)=>{if(s.size!==r.size)return!1;for(const o of s)if(!r.has(o))return!1;return!0};function Cy(s){return s.type==="mouseup"||s.type==="click"||s.type==="contextmenu"}const Ur=Math.PI,Mr=2*Ur,Fy=Mr+Ur,ul=Number.POSITIVE_INFINITY,Ay=Ur/180,Jr=Ur/2,Vi=Ur/4,X0=Ur*2/3,ra=Math.log10,Fa=Math.sign;function Q0(s){const r=Math.round(s);s=qi(s,r,s/1e3)?r:s;const o=Math.pow(10,Math.floor(ra(s))),n=s/o;return(n<=1?1:n<=2?2:n<=5?5:10)*o}function Dy(s){const r=[],o=Math.sqrt(s);let n;for(n=1;n<o;n++)s%n===0&&(r.push(n),r.push(s/n));return o===(o|0)&&r.push(o),r.sort((t,e)=>t-e).pop(),r}function $o(s){return!isNaN(parseFloat(s))&&isFinite(s)}function qi(s,r,o){return Math.abs(s-r)<o}function Sy(s,r){const o=Math.round(s);return o-r<=s&&o+r>=s}function ym(s,r,o){let n,t,e;for(n=0,t=s.length;n<t;n++)e=s[n][o],isNaN(e)||(r.min=Math.min(r.min,e),r.max=Math.max(r.max,e))}function fa(s){return s*(Ur/180)}function Df(s){return s*(180/Ur)}function Z0(s){if(!ys(s))return;let r=1,o=0;for(;Math.round(s*r)/r!==s;)r*=10,o++;return o}function _m(s,r){const o=r.x-s.x,n=r.y-s.y,t=Math.sqrt(o*o+n*n);let e=Math.atan2(n,o);return e<-.5*Ur&&(e+=Mr),{angle:e,distance:t}}function nf(s,r){return Math.sqrt(Math.pow(r.x-s.x,2)+Math.pow(r.y-s.y,2))}function Ey(s,r){return(s-r+Fy)%Mr-Ur}function ca(s){return(s%Mr+Mr)%Mr}function Zi(s,r,o,n){const t=ca(s),e=ca(r),u=ca(o),m=ca(e-t),b=ca(u-t),_=ca(t-e),w=ca(t-u);return t===e||t===u||n&&e===u||m>b&&_<w}function Es(s,r,o){return Math.max(r,Math.min(o,s))}function Ty(s){return Es(s,-32768,32767)}function Ha(s,r,o,n=1e-6){return s>=Math.min(r,o)-n&&s<=Math.max(r,o)+n}function Sf(s,r,o){o=o||(u=>s[u]<r);let n=s.length-1,t=0,e;for(;n-t>1;)e=t+n>>1,o(e)?t=e:n=e;return{lo:t,hi:n}}const xo=(s,r,o,n)=>Sf(s,o,n?t=>s[t][r]<=o:t=>s[t][r]<o),ky=(s,r,o)=>Sf(s,o,n=>s[n][r]>=o);function Ry(s,r,o){let n=0,t=s.length;for(;n<t&&s[n]<r;)n++;for(;t>n&&s[t-1]>o;)t--;return n>0||t<s.length?s.slice(n,t):s}const vm=["push","pop","shift","splice","unshift"];function Ly(s,r){if(s._chartjs){s._chartjs.listeners.push(r);return}Object.defineProperty(s,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[r]}}),vm.forEach(o=>{const n="_onData"+Af(o),t=s[o];Object.defineProperty(s,o,{configurable:!0,enumerable:!1,value(...e){const u=t.apply(this,e);return s._chartjs.listeners.forEach(m=>{typeof m[n]=="function"&&m[n](...e)}),u}})})}function $0(s,r){const o=s._chartjs;if(!o)return;const n=o.listeners,t=n.indexOf(r);t!==-1&&n.splice(t,1),!(n.length>0)&&(vm.forEach(e=>{delete s[e]}),delete s._chartjs)}function wm(s){const r=new Set;let o,n;for(o=0,n=s.length;o<n;++o)r.add(s[o]);return r.size===n?s:Array.from(r)}const xm=function(){return typeof window>"u"?function(s){return s()}:window.requestAnimationFrame}();function Cm(s,r,o){const n=o||(u=>Array.prototype.slice.call(u));let t=!1,e=[];return function(...u){e=n(u),t||(t=!0,xm.call(window,()=>{t=!1,s.apply(r,e)}))}}function My(s,r){let o;return function(...n){return r?(clearTimeout(o),o=setTimeout(s,r,n)):s.apply(this,n),r}}const Ef=s=>s==="start"?"left":s==="end"?"right":"center",Ss=(s,r,o)=>s==="start"?r:s==="end"?o:(r+o)/2,Oy=(s,r,o,n)=>s===(n?"left":"right")?o:s==="center"?(r+o)/2:r;function Fm(s,r,o){const n=r.length;let t=0,e=n;if(s._sorted){const{iScale:u,_parsed:m}=s,b=u.axis,{min:_,max:w,minDefined:S,maxDefined:D}=u.getUserBounds();S&&(t=Es(Math.min(xo(m,u.axis,_).lo,o?n:xo(r,b,u.getPixelForValue(_)).lo),0,n-1)),D?e=Es(Math.max(xo(m,u.axis,w,!0).hi+1,o?0:xo(r,b,u.getPixelForValue(w),!0).hi+1),t,n)-t:e=n-t}return{start:t,count:e}}function Am(s){const{xScale:r,yScale:o,_scaleRanges:n}=s,t={xmin:r.min,xmax:r.max,ymin:o.min,ymax:o.max};if(!n)return s._scaleRanges=t,!0;const e=n.xmin!==r.min||n.xmax!==r.max||n.ymin!==o.min||n.ymax!==o.max;return Object.assign(n,t),e}const Jn=s=>s===0||s===1,ep=(s,r,o)=>-(Math.pow(2,10*(s-=1))*Math.sin((s-r)*Mr/o)),tp=(s,r,o)=>Math.pow(2,-10*s)*Math.sin((s-r)*Mr/o)+1,Ki={linear:s=>s,easeInQuad:s=>s*s,easeOutQuad:s=>-s*(s-2),easeInOutQuad:s=>(s/=.5)<1?.5*s*s:-.5*(--s*(s-2)-1),easeInCubic:s=>s*s*s,easeOutCubic:s=>(s-=1)*s*s+1,easeInOutCubic:s=>(s/=.5)<1?.5*s*s*s:.5*((s-=2)*s*s+2),easeInQuart:s=>s*s*s*s,easeOutQuart:s=>-((s-=1)*s*s*s-1),easeInOutQuart:s=>(s/=.5)<1?.5*s*s*s*s:-.5*((s-=2)*s*s*s-2),easeInQuint:s=>s*s*s*s*s,easeOutQuint:s=>(s-=1)*s*s*s*s+1,easeInOutQuint:s=>(s/=.5)<1?.5*s*s*s*s*s:.5*((s-=2)*s*s*s*s+2),easeInSine:s=>-Math.cos(s*Jr)+1,easeOutSine:s=>Math.sin(s*Jr),easeInOutSine:s=>-.5*(Math.cos(Ur*s)-1),easeInExpo:s=>s===0?0:Math.pow(2,10*(s-1)),easeOutExpo:s=>s===1?1:-Math.pow(2,-10*s)+1,easeInOutExpo:s=>Jn(s)?s:s<.5?.5*Math.pow(2,10*(s*2-1)):.5*(-Math.pow(2,-10*(s*2-1))+2),easeInCirc:s=>s>=1?s:-(Math.sqrt(1-s*s)-1),easeOutCirc:s=>Math.sqrt(1-(s-=1)*s),easeInOutCirc:s=>(s/=.5)<1?-.5*(Math.sqrt(1-s*s)-1):.5*(Math.sqrt(1-(s-=2)*s)+1),easeInElastic:s=>Jn(s)?s:ep(s,.075,.3),easeOutElastic:s=>Jn(s)?s:tp(s,.075,.3),easeInOutElastic(s){return Jn(s)?s:s<.5?.5*ep(s*2,.1125,.45):.5+.5*tp(s*2-1,.1125,.45)},easeInBack(s){return s*s*((1.70158+1)*s-1.70158)},easeOutBack(s){return(s-=1)*s*((1.70158+1)*s+1.70158)+1},easeInOutBack(s){let r=1.70158;return(s/=.5)<1?.5*(s*s*(((r*=1.525)+1)*s-r)):.5*((s-=2)*s*(((r*=1.525)+1)*s+r)+2)},easeInBounce:s=>1-Ki.easeOutBounce(1-s),easeOutBounce(s){return s<1/2.75?7.5625*s*s:s<2/2.75?7.5625*(s-=1.5/2.75)*s+.75:s<2.5/2.75?7.5625*(s-=2.25/2.75)*s+.9375:7.5625*(s-=2.625/2.75)*s+.984375},easeInOutBounce:s=>s<.5?Ki.easeInBounce(s*2)*.5:Ki.easeOutBounce(s*2-1)*.5+.5};/*! * @kurkle/color v0.2.1 * https://github.com/kurkle/color#readme * (c) 2022 Jukka Kurkela * Released under the MIT License */function rn(s){return s+.5|0}const Ya=(s,r,o)=>Math.max(Math.min(s,o),r);function Wi(s){return Ya(rn(s*2.55),0,255)}function Ka(s){return Ya(rn(s*255),0,255)}function Na(s){return Ya(rn(s/2.55)/100,0,1)}function rp(s){return Ya(rn(s*100),0,100)}const ea={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},lf=[..."0123456789ABCDEF"],Py=s=>lf[s&15],Ny=s=>lf[(s&240)>>4]+lf[s&15],Xn=s=>(s&240)>>4===(s&15),Iy=s=>Xn(s.r)&&Xn(s.g)&&Xn(s.b)&&Xn(s.a);function Vy(s){var r=s.length,o;return s[0]==="#"&&(r===4||r===5?o={r:255&ea[s[1]]*17,g:255&ea[s[2]]*17,b:255&ea[s[3]]*17,a:r===5?ea[s[4]]*17:255}:(r===7||r===9)&&(o={r:ea[s[1]]<<4|ea[s[2]],g:ea[s[3]]<<4|ea[s[4]],b:ea[s[5]]<<4|ea[s[6]],a:r===9?ea[s[7]]<<4|ea[s[8]]:255})),o}const By=(s,r)=>s<255?r(s):"";function Uy(s){var r=Iy(s)?Py:Ny;return s?"#"+r(s.r)+r(s.g)+r(s.b)+By(s.a,r):void 0}const zy=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Dm(s,r,o){const n=r*Math.min(o,1-o),t=(e,u=(e+s/30)%12)=>o-n*Math.max(Math.min(u-3,9-u,1),-1);return[t(0),t(8),t(4)]}function Gy(s,r,o){const n=(t,e=(t+s/60)%6)=>o-o*r*Math.max(Math.min(e,4-e,1),0);return[n(5),n(3),n(1)]}function jy(s,r,o){const n=Dm(s,1,.5);let t;for(r+o>1&&(t=1/(r+o),r*=t,o*=t),t=0;t<3;t++)n[t]*=1-r-o,n[t]+=r;return n}function Wy(s,r,o,n,t){return s===t?(r-o)/n+(r<o?6:0):r===t?(o-s)/n+2:(s-r)/n+4}function Tf(s){const o=s.r/255,n=s.g/255,t=s.b/255,e=Math.max(o,n,t),u=Math.min(o,n,t),m=(e+u)/2;let b,_,w;return e!==u&&(w=e-u,_=m>.5?w/(2-e-u):w/(e+u),b=Wy(o,n,t,w,e),b=b*60+.5),[b|0,_||0,m]}function kf(s,r,o,n){return(Array.isArray(r)?s(r[0],r[1],r[2]):s(r,o,n)).map(Ka)}function Rf(s,r,o){return kf(Dm,s,r,o)}function Hy(s,r,o){return kf(jy,s,r,o)}function Yy(s,r,o){return kf(Gy,s,r,o)}function Sm(s){return(s%360+360)%360}function qy(s){const r=zy.exec(s);let o=255,n;if(!r)return;r[5]!==n&&(o=r[6]?Wi(+r[5]):Ka(+r[5]));const t=Sm(+r[2]),e=+r[3]/100,u=+r[4]/100;return r[1]==="hwb"?n=Hy(t,e,u):r[1]==="hsv"?n=Yy(t,e,u):n=Rf(t,e,u),{r:n[0],g:n[1],b:n[2],a:o}}function Ky(s,r){var o=Tf(s);o[0]=Sm(o[0]+r),o=Rf(o),s.r=o[0],s.g=o[1],s.b=o[2]}function Jy(s){if(!s)return;const r=Tf(s),o=r[0],n=rp(r[1]),t=rp(r[2]);return s.a<255?`hsla(${o}, ${n}%, ${t}%, ${Na(s.a)})`:`hsl(${o}, ${n}%, ${t}%)`}const sp={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},ap={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function Xy(){const s={},r=Object.keys(ap),o=Object.keys(sp);let n,t,e,u,m;for(n=0;n<r.length;n++){for(u=m=r[n],t=0;t<o.length;t++)e=o[t],m=m.replace(e,sp[e]);e=parseInt(ap[u],16),s[m]=[e>>16&255,e>>8&255,e&255]}return s}let Qn;function Qy(s){Qn||(Qn=Xy(),Qn.transparent=[0,0,0,0]);const r=Qn[s.toLowerCase()];return r&&{r:r[0],g:r[1],b:r[2],a:r.length===4?r[3]:255}}const Zy=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function $y(s){const r=Zy.exec(s);let o=255,n,t,e;if(r){if(r[7]!==n){const u=+r[7];o=r[8]?Wi(u):Ya(u*255,0,255)}return n=+r[1],t=+r[3],e=+r[5],n=255&(r[2]?Wi(n):Ya(n,0,255)),t=255&(r[4]?Wi(t):Ya(t,0,255)),e=255&(r[6]?Wi(e):Ya(e,0,255)),{r:n,g:t,b:e,a:o}}}function e_(s){return s&&(s.a<255?`rgba(${s.r}, ${s.g}, ${s.b}, ${Na(s.a)})`:`rgb(${s.r}, ${s.g}, ${s.b})`)}const Hc=s=>s<=.0031308?s*12.92:Math.pow(s,1/2.4)*1.055-.055,Jo=s=>s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4);function t_(s,r,o){const n=Jo(Na(s.r)),t=Jo(Na(s.g)),e=Jo(Na(s.b));return{r:Ka(Hc(n+o*(Jo(Na(r.r))-n))),g:Ka(Hc(t+o*(Jo(Na(r.g))-t))),b:Ka(Hc(e+o*(Jo(Na(r.b))-e))),a:s.a+o*(r.a-s.a)}}function Zn(s,r,o){if(s){let n=Tf(s);n[r]=Math.max(0,Math.min(n[r]+n[r]*o,r===0?360:1)),n=Rf(n),s.r=n[0],s.g=n[1],s.b=n[2]}}function Em(s,r){return s&&Object.assign(r||{},s)}function op(s){var r={r:0,g:0,b:0,a:255};return Array.isArray(s)?s.length>=3&&(r={r:s[0],g:s[1],b:s[2],a:255},s.length>3&&(r.a=Ka(s[3]))):(r=Em(s,{r:0,g:0,b:0,a:1}),r.a=Ka(r.a)),r}function r_(s){return s.charAt(0)==="r"?$y(s):qy(s)}class dl{constructor(r){if(r instanceof dl)return r;const o=typeof r;let n;o==="object"?n=op(r):o==="string"&&(n=Vy(r)||Qy(r)||r_(r)),this._rgb=n,this._valid=!!n}get valid(){return this._valid}get rgb(){var r=Em(this._rgb);return r&&(r.a=Na(r.a)),r}set rgb(r){this._rgb=op(r)}rgbString(){return this._valid?e_(this._rgb):void 0}hexString(){return this._valid?Uy(this._rgb):void 0}hslString(){return this._valid?Jy(this._rgb):void 0}mix(r,o){if(r){const n=this.rgb,t=r.rgb;let e;const u=o===e?.5:o,m=2*u-1,b=n.a-t.a,_=((m*b===-1?m:(m+b)/(1+m*b))+1)/2;e=1-_,n.r=255&_*n.r+e*t.r+.5,n.g=255&_*n.g+e*t.g+.5,n.b=255&_*n.b+e*t.b+.5,n.a=u*n.a+(1-u)*t.a,this.rgb=n}return this}interpolate(r,o){return r&&(this._rgb=t_(this._rgb,r._rgb,o)),this}clone(){return new dl(this.rgb)}alpha(r){return this._rgb.a=Ka(r),this}clearer(r){const o=this._rgb;return o.a*=1-r,this}greyscale(){const r=this._rgb,o=rn(r.r*.3+r.g*.59+r.b*.11);return r.r=r.g=r.b=o,this}opaquer(r){const o=this._rgb;return o.a*=1+r,this}negate(){const r=this._rgb;return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,this}lighten(r){return Zn(this._rgb,2,r),this}darken(r){return Zn(this._rgb,2,-r),this}saturate(r){return Zn(this._rgb,1,r),this}desaturate(r){return Zn(this._rgb,1,-r),this}rotate(r){return Ky(this._rgb,r),this}}function Tm(s){return new dl(s)}function km(s){if(s&&typeof s=="object"){const r=s.toString();return r==="[object CanvasPattern]"||r==="[object CanvasGradient]"}return!1}function ip(s){return km(s)?s:Tm(s)}function Yc(s){return km(s)?s:Tm(s).saturate(.5).darken(.1).hexString()}const Ao=Object.create(null),cf=Object.create(null);function Ji(s,r){if(!r)return s;const o=r.split(".");for(let n=0,t=o.length;n<t;++n){const e=o[n];s=s[e]||(s[e]=Object.create(null))}return s}function qc(s,r,o){return typeof r=="string"?Qi(Ji(s,r),o):Qi(Ji(s,""),r)}class s_{constructor(r){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=o=>o.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(o,n)=>Yc(n.backgroundColor),this.hoverBorderColor=(o,n)=>Yc(n.borderColor),this.hoverColor=(o,n)=>Yc(n.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(r)}set(r,o){return qc(this,r,o)}get(r){return Ji(this,r)}describe(r,o){return qc(cf,r,o)}override(r,o){return qc(Ao,r,o)}route(r,o,n,t){const e=Ji(this,r),u=Ji(this,n),m="_"+o;Object.defineProperties(e,{[m]:{value:e[o],writable:!0},[o]:{enumerable:!0,get(){const b=this[m],_=u[t];return br(b)?Object.assign({},_,b):Bt(b,_)},set(b){this[m]=b}}})}}var or=new s_({_scriptable:s=>!s.startsWith("on"),_indexable:s=>s!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function a_(s){return!s||xr(s.size)||xr(s.family)?null:(s.style?s.style+" ":"")+(s.weight?s.weight+" ":"")+s.size+"px "+s.family}function hl(s,r,o,n,t){let e=r[t];return e||(e=r[t]=s.measureText(t).width,o.push(t)),e>n&&(n=e),n}function o_(s,r,o,n){n=n||{};let t=n.data=n.data||{},e=n.garbageCollect=n.garbageCollect||[];n.font!==r&&(t=n.data={},e=n.garbageCollect=[],n.font=r),s.save(),s.font=r;let u=0;const m=o.length;let b,_,w,S,D;for(b=0;b<m;b++)if(S=o[b],S!=null&&Vr(S)!==!0)u=hl(s,t,e,u,S);else if(Vr(S))for(_=0,w=S.length;_<w;_++)D=S[_],D!=null&&!Vr(D)&&(u=hl(s,t,e,u,D));s.restore();const E=e.length/2;if(E>o.length){for(b=0;b<E;b++)delete t[e[b]];e.splice(0,E)}return u}function yo(s,r,o){const n=s.currentDevicePixelRatio,t=o!==0?Math.max(o/2,.5):0;return Math.round((r-t)*n)/n+t}function np(s,r){r=r||s.getContext("2d"),r.save(),r.resetTransform(),r.clearRect(0,0,s.width,s.height),r.restore()}function ff(s,r,o,n){Rm(s,r,o,n,null)}function Rm(s,r,o,n,t){let e,u,m,b,_,w;const S=r.pointStyle,D=r.rotation,E=r.radius;let M=(D||0)*Ay;if(S&&typeof S=="object"&&(e=S.toString(),e==="[object HTMLImageElement]"||e==="[object HTMLCanvasElement]")){s.save(),s.translate(o,n),s.rotate(M),s.drawImage(S,-S.width/2,-S.height/2,S.width,S.height),s.restore();return}if(!(isNaN(E)||E<=0)){switch(s.beginPath(),S){default:t?s.ellipse(o,n,t/2,E,0,0,Mr):s.arc(o,n,E,0,Mr),s.closePath();break;case"triangle":s.moveTo(o+Math.sin(M)*E,n-Math.cos(M)*E),M+=X0,s.lineTo(o+Math.sin(M)*E,n-Math.cos(M)*E),M+=X0,s.lineTo(o+Math.sin(M)*E,n-Math.cos(M)*E),s.closePath();break;case"rectRounded":_=E*.516,b=E-_,u=Math.cos(M+Vi)*b,m=Math.sin(M+Vi)*b,s.arc(o-u,n-m,_,M-Ur,M-Jr),s.arc(o+m,n-u,_,M-Jr,M),s.arc(o+u,n+m,_,M,M+Jr),s.arc(o-m,n+u,_,M+Jr,M+Ur),s.closePath();break;case"rect":if(!D){b=Math.SQRT1_2*E,w=t?t/2:b,s.rect(o-w,n-b,2*w,2*b);break}M+=Vi;case"rectRot":u=Math.cos(M)*E,m=Math.sin(M)*E,s.moveTo(o-u,n-m),s.lineTo(o+m,n-u),s.lineTo(o+u,n+m),s.lineTo(o-m,n+u),s.closePath();break;case"crossRot":M+=Vi;case"cross":u=Math.cos(M)*E,m=Math.sin(M)*E,s.moveTo(o-u,n-m),s.lineTo(o+u,n+m),s.moveTo(o+m,n-u),s.lineTo(o-m,n+u);break;case"star":u=Math.cos(M)*E,m=Math.sin(M)*E,s.moveTo(o-u,n-m),s.lineTo(o+u,n+m),s.moveTo(o+m,n-u),s.lineTo(o-m,n+u),M+=Vi,u=Math.cos(M)*E,m=Math.sin(M)*E,s.moveTo(o-u,n-m),s.lineTo(o+u,n+m),s.moveTo(o+m,n-u),s.lineTo(o-m,n+u);break;case"line":u=t?t/2:Math.cos(M)*E,m=Math.sin(M)*E,s.moveTo(o-u,n-m),s.lineTo(o+u,n+m);break;case"dash":s.moveTo(o,n),s.lineTo(o+Math.cos(M)*E,n+Math.sin(M)*E);break}s.fill(),r.borderWidth>0&&s.stroke()}}function $i(s,r,o){return o=o||.5,!r||s&&s.x>r.left-o&&s.x<r.right+o&&s.y>r.top-o&&s.y<r.bottom+o}function Lf(s,r){s.save(),s.beginPath(),s.rect(r.left,r.top,r.right-r.left,r.bottom-r.top),s.clip()}function Mf(s){s.restore()}function i_(s,r,o,n,t){if(!r)return s.lineTo(o.x,o.y);if(t==="middle"){const e=(r.x+o.x)/2;s.lineTo(e,r.y),s.lineTo(e,o.y)}else t==="after"!=!!n?s.lineTo(r.x,o.y):s.lineTo(o.x,r.y);s.lineTo(o.x,o.y)}function n_(s,r,o,n){if(!r)return s.lineTo(o.x,o.y);s.bezierCurveTo(n?r.cp1x:r.cp2x,n?r.cp1y:r.cp2y,n?o.cp2x:o.cp1x,n?o.cp2y:o.cp1y,o.x,o.y)}function Do(s,r,o,n,t,e={}){const u=Vr(r)?r:[r],m=e.strokeWidth>0&&e.strokeColor!=="";let b,_;for(s.save(),s.font=t.string,l_(s,e),b=0;b<u.length;++b)_=u[b],m&&(e.strokeColor&&(s.strokeStyle=e.strokeColor),xr(e.strokeWidth)||(s.lineWidth=e.strokeWidth),s.strokeText(_,o,n,e.maxWidth)),s.fillText(_,o,n,e.maxWidth),c_(s,o,n,_,e),n+=t.lineHeight;s.restore()}function l_(s,r){r.translation&&s.translate(r.translation[0],r.translation[1]),xr(r.rotation)||s.rotate(r.rotation),r.color&&(s.fillStyle=r.color),r.textAlign&&(s.textAlign=r.textAlign),r.textBaseline&&(s.textBaseline=r.textBaseline)}function c_(s,r,o,n,t){if(t.strikethrough||t.underline){const e=s.measureText(n),u=r-e.actualBoundingBoxLeft,m=r+e.actualBoundingBoxRight,b=o-e.actualBoundingBoxAscent,_=o+e.actualBoundingBoxDescent,w=t.strikethrough?(b+_)/2:_;s.strokeStyle=s.fillStyle,s.beginPath(),s.lineWidth=t.decorationWidth||2,s.moveTo(u,w),s.lineTo(m,w),s.stroke()}}function en(s,r){const{x:o,y:n,w:t,h:e,radius:u}=r;s.arc(o+u.topLeft,n+u.topLeft,u.topLeft,-Jr,Ur,!0),s.lineTo(o,n+e-u.bottomLeft),s.arc(o+u.bottomLeft,n+e-u.bottomLeft,u.bottomLeft,Ur,Jr,!0),s.lineTo(o+t-u.bottomRight,n+e),s.arc(o+t-u.bottomRight,n+e-u.bottomRight,u.bottomRight,Jr,0,!0),s.lineTo(o+t,n+u.topRight),s.arc(o+t-u.topRight,n+u.topRight,u.topRight,0,-Jr,!0),s.lineTo(o+u.topLeft,n)}const f_=new RegExp(/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/),u_=new RegExp(/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/);function d_(s,r){const o=(""+s).match(f_);if(!o||o[1]==="normal")return r*1.2;switch(s=+o[2],o[3]){case"px":return s;case"%":s/=100;break}return r*s}const h_=s=>+s||0;function Of(s,r){const o={},n=br(r),t=n?Object.keys(r):r,e=br(s)?n?u=>Bt(s[u],s[r[u]]):u=>s[u]:()=>s;for(const u of t)o[u]=h_(e(u));return o}function Lm(s){return Of(s,{top:"y",right:"x",bottom:"y",left:"x"})}function Co(s){return Of(s,["topLeft","topRight","bottomLeft","bottomRight"])}function Ts(s){const r=Lm(s);return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function us(s,r){s=s||{},r=r||or.font;let o=Bt(s.size,r.size);typeof o=="string"&&(o=parseInt(o,10));let n=Bt(s.style,r.style);n&&!(""+n).match(u_)&&(console.warn('Invalid font style specified: "'+n+'"'),n="");const t={family:Bt(s.family,r.family),lineHeight:d_(Bt(s.lineHeight,r.lineHeight),o),size:o,style:n,weight:Bt(s.weight,r.weight),string:""};return t.string=a_(t),t}function $n(s,r,o,n){let t=!0,e,u,m;for(e=0,u=s.length;e<u;++e)if(m=s[e],m!==void 0&&(r!==void 0&&typeof m=="function"&&(m=m(r),t=!1),o!==void 0&&Vr(m)&&(m=m[o%m.length],t=!1),m!==void 0))return n&&!t&&(n.cacheable=!1),m}function p_(s,r,o){const{min:n,max:t}=s,e=gm(r,(t-n)/2),u=(m,b)=>o&&m===0?0:m+b;return{min:u(n,-Math.abs(e)),max:u(t,e)}}function Qa(s,r){return Object.assign(Object.create(s),r)}function Pf(s,r=[""],o=s,n,t=()=>s[0]){aa(n)||(n=Nm("_fallback",s));const e={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:s,_rootScopes:o,_fallback:n,_getTarget:t,override:u=>Pf([u,...s],r,o,n)};return new Proxy(e,{deleteProperty(u,m){return delete u[m],delete u._keys,delete s[0][m],!0},get(u,m){return Om(u,m,()=>x_(m,r,s,u))},getOwnPropertyDescriptor(u,m){return Reflect.getOwnPropertyDescriptor(u._scopes[0],m)},getPrototypeOf(){return Reflect.getPrototypeOf(s[0])},has(u,m){return cp(u).includes(m)},ownKeys(u){return cp(u)},set(u,m,b){const _=u._storage||(u._storage=t());return u[m]=_[m]=b,delete u._keys,!0}})}function ei(s,r,o,n){const t={_cacheable:!1,_proxy:s,_context:r,_subProxy:o,_stack:new Set,_descriptors:Mm(s,n),setContext:e=>ei(s,e,o,n),override:e=>ei(s.override(e),r,o,n)};return new Proxy(t,{deleteProperty(e,u){return delete e[u],delete s[u],!0},get(e,u,m){return Om(e,u,()=>g_(e,u,m))},getOwnPropertyDescriptor(e,u){return e._descriptors.allKeys?Reflect.has(s,u)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(s,u)},getPrototypeOf(){return Reflect.getPrototypeOf(s)},has(e,u){return Reflect.has(s,u)},ownKeys(){return Reflect.ownKeys(s)},set(e,u,m){return s[u]=m,delete e[u],!0}})}function Mm(s,r={scriptable:!0,indexable:!0}){const{_scriptable:o=r.scriptable,_indexable:n=r.indexable,_allKeys:t=r.allKeys}=s;return{allKeys:t,scriptable:o,indexable:n,isScriptable:Xa(o)?o:()=>o,isIndexable:Xa(n)?n:()=>n}}const m_=(s,r)=>s?s+Af(r):r,Nf=(s,r)=>br(r)&&s!=="adapters"&&(Object.getPrototypeOf(r)===null||r.constructor===Object);function Om(s,r,o){if(Object.prototype.hasOwnProperty.call(s,r))return s[r];const n=o();return s[r]=n,n}function g_(s,r,o){const{_proxy:n,_context:t,_subProxy:e,_descriptors:u}=s;let m=n[r];return Xa(m)&&u.isScriptable(r)&&(m=b_(r,m,s,o)),Vr(m)&&m.length&&(m=y_(r,m,s,u.isIndexable)),Nf(r,m)&&(m=ei(m,t,e&&e[r],u)),m}function b_(s,r,o,n){const{_proxy:t,_context:e,_subProxy:u,_stack:m}=o;if(m.has(s))throw new Error("Recursion detected: "+Array.from(m).join("->")+"->"+s);return m.add(s),r=r(e,u||n),m.delete(s),Nf(s,r)&&(r=If(t._scopes,t,s,r)),r}function y_(s,r,o,n){const{_proxy:t,_context:e,_subProxy:u,_descriptors:m}=o;if(aa(e.index)&&n(s))r=r[e.index%r.length];else if(br(r[0])){const b=r,_=t._scopes.filter(w=>w!==b);r=[];for(const w of b){const S=If(_,t,s,w);r.push(ei(S,e,u&&u[s],m))}}return r}function Pm(s,r,o){return Xa(s)?s(r,o):s}const __=(s,r)=>s===!0?r:typeof s=="string"?Ja(r,s):void 0;function v_(s,r,o,n,t){for(const e of r){const u=__(o,e);if(u){s.add(u);const m=Pm(u._fallback,o,t);if(aa(m)&&m!==o&&m!==n)return m}else if(u===!1&&aa(n)&&o!==n)return null}return!1}function If(s,r,o,n){const t=r._rootScopes,e=Pm(r._fallback,o,n),u=[...s,...t],m=new Set;m.add(n);let b=lp(m,u,o,e||o,n);return b===null||aa(e)&&e!==o&&(b=lp(m,u,e,b,n),b===null)?!1:Pf(Array.from(m),[""],t,e,()=>w_(r,o,n))}function lp(s,r,o,n,t){for(;o;)o=v_(s,r,o,n,t);return o}function w_(s,r,o){const n=s._getTarget();r in n||(n[r]={});const t=n[r];return Vr(t)&&br(o)?o:t}function x_(s,r,o,n){let t;for(const e of r)if(t=Nm(m_(e,s),o),aa(t))return Nf(s,t)?If(o,n,s,t):t}function Nm(s,r){for(const o of r){if(!o)continue;const n=o[s];if(aa(n))return n}}function cp(s){let r=s._keys;return r||(r=s._keys=C_(s._scopes)),r}function C_(s){const r=new Set;for(const o of s)for(const n of Object.keys(o).filter(t=>!t.startsWith("_")))r.add(n);return Array.from(r)}function Im(s,r,o,n){const{iScale:t}=s,{key:e="r"}=this._parsing,u=new Array(n);let m,b,_,w;for(m=0,b=n;m<b;++m)_=m+o,w=r[_],u[m]={r:t.parse(Ja(w,e),_)};return u}const F_=Number.EPSILON||1e-14,ti=(s,r)=>r<s.length&&!s[r].skip&&s[r],Vm=s=>s==="x"?"y":"x";function A_(s,r,o,n){const t=s.skip?r:s,e=r,u=o.skip?r:o,m=nf(e,t),b=nf(u,e);let _=m/(m+b),w=b/(m+b);_=isNaN(_)?0:_,w=isNaN(w)?0:w;const S=n*_,D=n*w;return{previous:{x:e.x-S*(u.x-t.x),y:e.y-S*(u.y-t.y)},next:{x:e.x+D*(u.x-t.x),y:e.y+D*(u.y-t.y)}}}function D_(s,r,o){const n=s.length;let t,e,u,m,b,_=ti(s,0);for(let w=0;w<n-1;++w)if(b=_,_=ti(s,w+1),!(!b||!_)){if(qi(r[w],0,F_)){o[w]=o[w+1]=0;continue}t=o[w]/r[w],e=o[w+1]/r[w],m=Math.pow(t,2)+Math.pow(e,2),!(m<=9)&&(u=3/Math.sqrt(m),o[w]=t*u*r[w],o[w+1]=e*u*r[w])}}function S_(s,r,o="x"){const n=Vm(o),t=s.length;let e,u,m,b=ti(s,0);for(let _=0;_<t;++_){if(u=m,m=b,b=ti(s,_+1),!m)continue;const w=m[o],S=m[n];u&&(e=(w-u[o])/3,m[`cp1${o}`]=w-e,m[`cp1${n}`]=S-e*r[_]),b&&(e=(b[o]-w)/3,m[`cp2${o}`]=w+e,m[`cp2${n}`]=S+e*r[_])}}function E_(s,r="x"){const o=Vm(r),n=s.length,t=Array(n).fill(0),e=Array(n);let u,m,b,_=ti(s,0);for(u=0;u<n;++u)if(m=b,b=_,_=ti(s,u+1),!!b){if(_){const w=_[r]-b[r];t[u]=w!==0?(_[o]-b[o])/w:0}e[u]=m?_?Fa(t[u-1])!==Fa(t[u])?0:(t[u-1]+t[u])/2:t[u-1]:t[u]}D_(s,t,e),S_(s,e,r)}function el(s,r,o){return Math.max(Math.min(s,o),r)}function T_(s,r){let o,n,t,e,u,m=$i(s[0],r);for(o=0,n=s.length;o<n;++o)u=e,e=m,m=o<n-1&&$i(s[o+1],r),e&&(t=s[o],u&&(t.cp1x=el(t.cp1x,r.left,r.right),t.cp1y=el(t.cp1y,r.top,r.bottom)),m&&(t.cp2x=el(t.cp2x,r.left,r.right),t.cp2y=el(t.cp2y,r.top,r.bottom)))}function k_(s,r,o,n,t){let e,u,m,b;if(r.spanGaps&&(s=s.filter(_=>!_.skip)),r.cubicInterpolationMode==="monotone")E_(s,t);else{let _=n?s[s.length-1]:s[0];for(e=0,u=s.length;e<u;++e)m=s[e],b=A_(_,m,s[Math.min(e+1,u-(n?0:1))%u],r.tension),m.cp1x=b.previous.x,m.cp1y=b.previous.y,m.cp2x=b.next.x,m.cp2y=b.next.y,_=m}r.capBezierPoints&&T_(s,o)}function Bm(){return typeof window<"u"&&typeof document<"u"}function Vf(s){let r=s.parentNode;return r&&r.toString()==="[object ShadowRoot]"&&(r=r.host),r}function pl(s,r,o){let n;return typeof s=="string"?(n=parseInt(s,10),s.indexOf("%")!==-1&&(n=n/100*r.parentNode[o])):n=s,n}const _l=s=>window.getComputedStyle(s,null);function R_(s,r){return _l(s).getPropertyValue(r)}const L_=["top","right","bottom","left"];function Fo(s,r,o){const n={};o=o?"-"+o:"";for(let t=0;t<4;t++){const e=L_[t];n[e]=parseFloat(s[r+"-"+e+o])||0}return n.width=n.left+n.right,n.height=n.top+n.bottom,n}const M_=(s,r,o)=>(s>0||r>0)&&(!o||!o.shadowRoot);function O_(s,r){const o=s.touches,n=o&&o.length?o[0]:s,{offsetX:t,offsetY:e}=n;let u=!1,m,b;if(M_(t,e,s.target))m=t,b=e;else{const _=r.getBoundingClientRect();m=n.clientX-_.left,b=n.clientY-_.top,u=!0}return{x:m,y:b,box:u}}function vo(s,r){if("native"in s)return s;const{canvas:o,currentDevicePixelRatio:n}=r,t=_l(o),e=t.boxSizing==="border-box",u=Fo(t,"padding"),m=Fo(t,"border","width"),{x:b,y:_,box:w}=O_(s,o),S=u.left+(w&&m.left),D=u.top+(w&&m.top);let{width:E,height:M}=r;return e&&(E-=u.width+m.width,M-=u.height+m.height),{x:Math.round((b-S)/E*o.width/n),y:Math.round((_-D)/M*o.height/n)}}function P_(s,r,o){let n,t;if(r===void 0||o===void 0){const e=Vf(s);if(!e)r=s.clientWidth,o=s.clientHeight;else{const u=e.getBoundingClientRect(),m=_l(e),b=Fo(m,"border","width"),_=Fo(m,"padding");r=u.width-_.width-b.width,o=u.height-_.height-b.height,n=pl(m.maxWidth,e,"clientWidth"),t=pl(m.maxHeight,e,"clientHeight")}}return{width:r,height:o,maxWidth:n||ul,maxHeight:t||ul}}const Kc=s=>Math.round(s*10)/10;function N_(s,r,o,n){const t=_l(s),e=Fo(t,"margin"),u=pl(t.maxWidth,s,"clientWidth")||ul,m=pl(t.maxHeight,s,"clientHeight")||ul,b=P_(s,r,o);let{width:_,height:w}=b;if(t.boxSizing==="content-box"){const S=Fo(t,"border","width"),D=Fo(t,"padding");_-=D.width+S.width,w-=D.height+S.height}return _=Math.max(0,_-e.width),w=Math.max(0,n?Math.floor(_/n):w-e.height),_=Kc(Math.min(_,u,b.maxWidth)),w=Kc(Math.min(w,m,b.maxHeight)),_&&!w&&(w=Kc(_/2)),{width:_,height:w}}function fp(s,r,o){const n=r||1,t=Math.floor(s.height*n),e=Math.floor(s.width*n);s.height=t/n,s.width=e/n;const u=s.canvas;return u.style&&(o||!u.style.height&&!u.style.width)&&(u.style.height=`${s.height}px`,u.style.width=`${s.width}px`),s.currentDevicePixelRatio!==n||u.height!==t||u.width!==e?(s.currentDevicePixelRatio=n,u.height=t,u.width=e,s.ctx.setTransform(n,0,0,n,0,0),!0):!1}const I_=function(){let s=!1;try{const r={get passive(){return s=!0,!1}};window.addEventListener("test",null,r),window.removeEventListener("test",null,r)}catch{}return s}();function up(s,r){const o=R_(s,r),n=o&&o.match(/^(\d+)(\.\d+)?px$/);return n?+n[1]:void 0}function wo(s,r,o,n){return{x:s.x+o*(r.x-s.x),y:s.y+o*(r.y-s.y)}}function V_(s,r,o,n){return{x:s.x+o*(r.x-s.x),y:n==="middle"?o<.5?s.y:r.y:n==="after"?o<1?s.y:r.y:o>0?r.y:s.y}}function B_(s,r,o,n){const t={x:s.cp2x,y:s.cp2y},e={x:r.cp1x,y:r.cp1y},u=wo(s,t,o),m=wo(t,e,o),b=wo(e,r,o),_=wo(u,m,o),w=wo(m,b,o);return wo(_,w,o)}const dp=new Map;function U_(s,r){r=r||{};const o=s+JSON.stringify(r);let n=dp.get(o);return n||(n=new Intl.NumberFormat(s,r),dp.set(o,n)),n}function sn(s,r,o){return U_(r,o).format(s)}const z_=function(s,r){return{x(o){return s+s+r-o},setWidth(o){r=o},textAlign(o){return o==="center"?o:o==="right"?"left":"right"},xPlus(o,n){return o-n},leftForLtr(o,n){return o-n}}},G_=function(){return{x(s){return s},setWidth(s){},textAlign(s){return s},xPlus(s,r){return s+r},leftForLtr(s,r){return s}}};function Qo(s,r,o){return s?z_(r,o):G_()}function Um(s,r){let o,n;(r==="ltr"||r==="rtl")&&(o=s.canvas.style,n=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",r,"important"),s.prevTextDirection=n)}function zm(s,r){r!==void 0&&(delete s.prevTextDirection,s.canvas.style.setProperty("direction",r[0],r[1]))}function Gm(s){return s==="angle"?{between:Zi,compare:Ey,normalize:ca}:{between:Ha,compare:(r,o)=>r-o,normalize:r=>r}}function hp({start:s,end:r,count:o,loop:n,style:t}){return{start:s%o,end:r%o,loop:n&&(r-s+1)%o===0,style:t}}function j_(s,r,o){const{property:n,start:t,end:e}=o,{between:u,normalize:m}=Gm(n),b=r.length;let{start:_,end:w,loop:S}=s,D,E;if(S){for(_+=b,w+=b,D=0,E=b;D<E&&u(m(r[_%b][n]),t,e);++D)_--,w--;_%=b,w%=b}return w<_&&(w+=b),{start:_,end:w,loop:S,style:s.style}}function W_(s,r,o){if(!o)return[s];const{property:n,start:t,end:e}=o,u=r.length,{compare:m,between:b,normalize:_}=Gm(n),{start:w,end:S,loop:D,style:E}=j_(s,r,o),M=[];let V=!1,Y=null,U,ee,ie;const z=()=>b(t,ie,U)&&m(t,ie)!==0,H=()=>m(e,U)===0||b(e,ie,U),ne=()=>V||z(),G=()=>!V||H();for(let De=w,ve=w;De<=S;++De)ee=r[De%u],!ee.skip&&(U=_(ee[n]),U!==ie&&(V=b(U,t,e),Y===null&&ne()&&(Y=m(U,t)===0?De:ve),Y!==null&&G()&&(M.push(hp({start:Y,end:De,loop:D,count:u,style:E})),Y=null),ve=De,ie=U));return Y!==null&&M.push(hp({start:Y,end:S,loop:D,count:u,style:E})),M}function H_(s,r){const o=[],n=s.segments;for(let t=0;t<n.length;t++){const e=W_(n[t],s.points,r);e.length&&o.push(...e)}return o}function Y_(s,r,o,n){let t=0,e=r-1;if(o&&!n)for(;t<r&&!s[t].skip;)t++;for(;t<r&&s[t].skip;)t++;for(t%=r,o&&(e+=t);e>t&&s[e%r].skip;)e--;return e%=r,{start:t,end:e}}function q_(s,r,o,n){const t=s.length,e=[];let u=r,m=s[r],b;for(b=r+1;b<=o;++b){const _=s[b%t];_.skip||_.stop?m.skip||(n=!1,e.push({start:r%t,end:(b-1)%t,loop:n}),r=u=_.stop?b:null):(u=b,m.skip&&(r=b)),m=_}return u!==null&&e.push({start:r%t,end:u%t,loop:n}),e}function K_(s,r){const o=s.points,n=s.options.spanGaps,t=o.length;if(!t)return[];const e=!!s._loop,{start:u,end:m}=Y_(o,t,e,n);if(n===!0)return pp(s,[{start:u,end:m,loop:e}],o,r);const b=m<u?m+t:m,_=!!s._fullLoop&&u===0&&m===t-1;return pp(s,q_(o,u,b,_),o,r)}function pp(s,r,o,n){return!n||!n.setContext||!o?r:J_(s,r,o,n)}function J_(s,r,o,n){const t=s._chart.getContext(),e=mp(s.options),{_datasetIndex:u,options:{spanGaps:m}}=s,b=o.length,_=[];let w=e,S=r[0].start,D=S;function E(M,V,Y,U){const ee=m?-1:1;if(M!==V){for(M+=b;o[M%b].skip;)M-=ee;for(;o[V%b].skip;)V+=ee;M%b!==V%b&&(_.push({start:M%b,end:V%b,loop:Y,style:U}),w=U,S=V%b)}}for(const M of r){S=m?S:M.start;let V=o[S%b],Y;for(D=S+1;D<=M.end;D++){const U=o[D%b];Y=mp(n.setContext(Qa(t,{type:"segment",p0:V,p1:U,p0DataIndex:(D-1)%b,p1DataIndex:D%b,datasetIndex:u}))),X_(Y,w)&&E(S,D-1,M.loop,w),V=U,w=Y}S<D-1&&E(S,D-1,M.loop,w)}return _}function mp(s){return{backgroundColor:s.backgroundColor,borderCapStyle:s.borderCapStyle,borderDash:s.borderDash,borderDashOffset:s.borderDashOffset,borderJoinStyle:s.borderJoinStyle,borderWidth:s.borderWidth,borderColor:s.borderColor}}function X_(s,r){return r&&JSON.stringify(s)!==JSON.stringify(r)}/*! * Chart.js v3.9.1 * https://www.chartjs.org * (c) 2022 Chart.js Contributors * Released under the MIT License */class Q_{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(r,o,n,t){const e=o.listeners[t],u=o.duration;e.forEach(m=>m({chart:r,initial:o.initial,numSteps:u,currentStep:Math.min(n-o.start,u)}))}_refresh(){this._request||(this._running=!0,this._request=xm.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(r=Date.now()){let o=0;this._charts.forEach((n,t)=>{if(!n.running||!n.items.length)return;const e=n.items;let u=e.length-1,m=!1,b;for(;u>=0;--u)b=e[u],b._active?(b._total>n.duration&&(n.duration=b._total),b.tick(r),m=!0):(e[u]=e[e.length-1],e.pop());m&&(t.draw(),this._notify(t,n,r,"progress")),e.length||(n.running=!1,this._notify(t,n,r,"complete"),n.initial=!1),o+=e.length}),this._lastDate=r,o===0&&(this._running=!1)}_getAnims(r){const o=this._charts;let n=o.get(r);return n||(n={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(r,n)),n}listen(r,o,n){this._getAnims(r).listeners[o].push(n)}add(r,o){!o||!o.length||this._getAnims(r).items.push(...o)}has(r){return this._getAnims(r).items.length>0}start(r){const o=this._charts.get(r);o&&(o.running=!0,o.start=Date.now(),o.duration=o.items.reduce((n,t)=>Math.max(n,t._duration),0),this._refresh())}running(r){if(!this._running)return!1;const o=this._charts.get(r);return!(!o||!o.running||!o.items.length)}stop(r){const o=this._charts.get(r);if(!o||!o.items.length)return;const n=o.items;let t=n.length-1;for(;t>=0;--t)n[t].cancel();o.items=[],this._notify(r,o,Date.now(),"complete")}remove(r){return this._charts.delete(r)}}var Oa=new Q_;const gp="transparent",Z_={boolean(s,r,o){return o>.5?r:s},color(s,r,o){const n=ip(s||gp),t=n.valid&&ip(r||gp);return t&&t.valid?t.mix(n,o).hexString():r},number(s,r,o){return s+(r-s)*o}};class $_{constructor(r,o,n,t){const e=o[n];t=$n([r.to,t,e,r.from]);const u=$n([r.from,e,t]);this._active=!0,this._fn=r.fn||Z_[r.type||typeof u],this._easing=Ki[r.easing]||Ki.linear,this._start=Math.floor(Date.now()+(r.delay||0)),this._duration=this._total=Math.floor(r.duration),this._loop=!!r.loop,this._target=o,this._prop=n,this._from=u,this._to=t,this._promises=void 0}active(){return this._active}update(r,o,n){if(this._active){this._notify(!1);const t=this._target[this._prop],e=n-this._start,u=this._duration-e;this._start=n,this._duration=Math.floor(Math.max(u,r.duration)),this._total+=e,this._loop=!!r.loop,this._to=$n([r.to,o,t,r.from]),this._from=$n([r.from,t,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(r){const o=r-this._start,n=this._duration,t=this._prop,e=this._from,u=this._loop,m=this._to;let b;if(this._active=e!==m&&(u||o<n),!this._active){this._target[t]=m,this._notify(!0);return}if(o<0){this._target[t]=e;return}b=o/n%2,b=u&&b>1?2-b:b,b=this._easing(Math.min(1,Math.max(0,b))),this._target[t]=this._fn(e,m,b)}wait(){const r=this._promises||(this._promises=[]);return new Promise((o,n)=>{r.push({res:o,rej:n})})}_notify(r){const o=r?"res":"rej",n=this._promises||[];for(let t=0;t<n.length;t++)n[t][o]()}}const ev=["x","y","borderWidth","radius","tension"],tv=["color","borderColor","backgroundColor"];or.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const rv=Object.keys(or.animation);or.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:s=>s!=="onProgress"&&s!=="onComplete"&&s!=="fn"});or.set("animations",{colors:{type:"color",properties:tv},numbers:{type:"number",properties:ev}});or.describe("animations",{_fallback:"animation"});or.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:s=>s|0}}}});class jm{constructor(r,o){this._chart=r,this._properties=new Map,this.configure(o)}configure(r){if(!br(r))return;const o=this._properties;Object.getOwnPropertyNames(r).forEach(n=>{const t=r[n];if(!br(t))return;const e={};for(const u of rv)e[u]=t[u];(Vr(t.properties)&&t.properties||[n]).forEach(u=>{(u===n||!o.has(u))&&o.set(u,e)})})}_animateOptions(r,o){const n=o.options,t=av(r,n);if(!t)return[];const e=this._createAnimations(t,n);return n.$shared&&sv(r.options.$animations,n).then(()=>{r.options=n},()=>{}),e}_createAnimations(r,o){const n=this._properties,t=[],e=r.$animations||(r.$animations={}),u=Object.keys(o),m=Date.now();let b;for(b=u.length-1;b>=0;--b){const _=u[b];if(_.charAt(0)==="$")continue;if(_==="options"){t.push(...this._animateOptions(r,o));continue}const w=o[_];let S=e[_];const D=n.get(_);if(S)if(D&&S.active()){S.update(D,w,m);continue}else S.cancel();if(!D||!D.duration){r[_]=w;continue}e[_]=S=new $_(D,r,_,w),t.push(S)}return t}update(r,o){if(this._properties.size===0){Object.assign(r,o);return}const n=this._createAnimations(r,o);if(n.length)return Oa.add(this._chart,n),!0}}function sv(s,r){const o=[],n=Object.keys(r);for(let t=0;t<n.length;t++){const e=s[n[t]];e&&e.active()&&o.push(e.wait())}return Promise.all(o)}function av(s,r){if(!r)return;let o=s.options;if(!o){s.options=r;return}return o.$shared&&(s.options=o=Object.assign({},o,{$shared:!1,$animations:{}})),o}function bp(s,r){const o=s&&s.options||{},n=o.reverse,t=o.min===void 0?r:0,e=o.max===void 0?r:0;return{start:n?e:t,end:n?t:e}}function ov(s,r,o){if(o===!1)return!1;const n=bp(s,o),t=bp(r,o);return{top:t.end,right:n.end,bottom:t.start,left:n.start}}function iv(s){let r,o,n,t;return br(s)?(r=s.top,o=s.right,n=s.bottom,t=s.left):r=o=n=t=s,{top:r,right:o,bottom:n,left:t,disabled:s===!1}}function Wm(s,r){const o=[],n=s._getSortedDatasetMetas(r);let t,e;for(t=0,e=n.length;t<e;++t)o.push(n[t].index);return o}function yp(s,r,o,n={}){const t=s.keys,e=n.mode==="single";let u,m,b,_;if(r!==null){for(u=0,m=t.length;u<m;++u){if(b=+t[u],b===o){if(n.all)continue;break}_=s.values[b],ys(_)&&(e||r===0||Fa(r)===Fa(_))&&(r+=_)}return r}}function nv(s){const r=Object.keys(s),o=new Array(r.length);let n,t,e;for(n=0,t=r.length;n<t;++n)e=r[n],o[n]={x:e,y:s[e]};return o}function _p(s,r){const o=s&&s.options.stacked;return o||o===void 0&&r.stack!==void 0}function lv(s,r,o){return`${s.id}.${r.id}.${o.stack||o.type}`}function cv(s){const{min:r,max:o,minDefined:n,maxDefined:t}=s.getUserBounds();return{min:n?r:Number.NEGATIVE_INFINITY,max:t?o:Number.POSITIVE_INFINITY}}function fv(s,r,o){const n=s[r]||(s[r]={});return n[o]||(n[o]={})}function vp(s,r,o,n){for(const t of r.getMatchingVisibleMetas(n).reverse()){const e=s[t.index];if(o&&e>0||!o&&e<0)return t.index}return null}function wp(s,r){const{chart:o,_cachedMeta:n}=s,t=o._stacks||(o._stacks={}),{iScale:e,vScale:u,index:m}=n,b=e.axis,_=u.axis,w=lv(e,u,n),S=r.length;let D;for(let E=0;E<S;++E){const M=r[E],{[b]:V,[_]:Y}=M,U=M._stacks||(M._stacks={});D=U[_]=fv(t,w,V),D[m]=Y,D._top=vp(D,u,!0,n.type),D._bottom=vp(D,u,!1,n.type)}}function Jc(s,r){const o=s.scales;return Object.keys(o).filter(n=>o[n].axis===r).shift()}function uv(s,r){return Qa(s,{active:!1,dataset:void 0,datasetIndex:r,index:r,mode:"default",type:"dataset"})}function dv(s,r,o){return Qa(s,{active:!1,dataIndex:r,parsed:void 0,raw:void 0,element:o,index:r,mode:"default",type:"data"})}function Bi(s,r){const o=s.controller.index,n=s.vScale&&s.vScale.axis;if(n){r=r||s._parsed;for(const t of r){const e=t._stacks;if(!e||e[n]===void 0||e[n][o]===void 0)return;delete e[n][o]}}}const Xc=s=>s==="reset"||s==="none",xp=(s,r)=>r?s:Object.assign({},s),hv=(s,r,o)=>s&&!r.hidden&&r._stacked&&{keys:Wm(o,!0),values:null};class ua{constructor(r,o){this.chart=r,this._ctx=r.ctx,this.index=o,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.initialize()}initialize(){const r=this._cachedMeta;this.configure(),this.linkScales(),r._stacked=_p(r.vScale,r),this.addElements()}updateIndex(r){this.index!==r&&Bi(this._cachedMeta),this.index=r}linkScales(){const r=this.chart,o=this._cachedMeta,n=this.getDataset(),t=(S,D,E,M)=>S==="x"?D:S==="r"?M:E,e=o.xAxisID=Bt(n.xAxisID,Jc(r,"x")),u=o.yAxisID=Bt(n.yAxisID,Jc(r,"y")),m=o.rAxisID=Bt(n.rAxisID,Jc(r,"r")),b=o.indexAxis,_=o.iAxisID=t(b,e,u,m),w=o.vAxisID=t(b,u,e,m);o.xScale=this.getScaleForId(e),o.yScale=this.getScaleForId(u),o.rScale=this.getScaleForId(m),o.iScale=this.getScaleForId(_),o.vScale=this.getScaleForId(w)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(r){return this.chart.scales[r]}_getOtherScale(r){const o=this._cachedMeta;return r===o.iScale?o.vScale:o.iScale}reset(){this._update("reset")}_destroy(){const r=this._cachedMeta;this._data&&$0(this._data,this),r._stacked&&Bi(r)}_dataCheck(){const r=this.getDataset(),o=r.data||(r.data=[]),n=this._data;if(br(o))this._data=nv(o);else if(n!==o){if(n){$0(n,this);const t=this._cachedMeta;Bi(t),t._parsed=[]}o&&Object.isExtensible(o)&&Ly(o,this),this._syncList=[],this._data=o}}addElements(){const r=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(r.dataset=new this.datasetElementType)}buildOrUpdateElements(r){const o=this._cachedMeta,n=this.getDataset();let t=!1;this._dataCheck();const e=o._stacked;o._stacked=_p(o.vScale,o),o.stack!==n.stack&&(t=!0,Bi(o),o.stack=n.stack),this._resyncElements(r),(t||e!==o._stacked)&&wp(this,o._parsed)}configure(){const r=this.chart.config,o=r.datasetScopeKeys(this._type),n=r.getOptionScopes(this.getDataset(),o,!0);this.options=r.createResolver(n,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(r,o){const{_cachedMeta:n,_data:t}=this,{iScale:e,_stacked:u}=n,m=e.axis;let b=r===0&&o===t.length?!0:n._sorted,_=r>0&&n._parsed[r-1],w,S,D;if(this._parsing===!1)n._parsed=t,n._sorted=!0,D=t;else{Vr(t[r])?D=this.parseArrayData(n,t,r,o):br(t[r])?D=this.parseObjectData(n,t,r,o):D=this.parsePrimitiveData(n,t,r,o);const E=()=>S[m]===null||_&&S[m]<_[m];for(w=0;w<o;++w)n._parsed[w+r]=S=D[w],b&&(E()&&(b=!1),_=S);n._sorted=b}u&&wp(this,D)}parsePrimitiveData(r,o,n,t){const{iScale:e,vScale:u}=r,m=e.axis,b=u.axis,_=e.getLabels(),w=e===u,S=new Array(t);let D,E,M;for(D=0,E=t;D<E;++D)M=D+n,S[D]={[m]:w||e.parse(_[M],M),[b]:u.parse(o[M],M)};return S}parseArrayData(r,o,n,t){const{xScale:e,yScale:u}=r,m=new Array(t);let b,_,w,S;for(b=0,_=t;b<_;++b)w=b+n,S=o[w],m[b]={x:e.parse(S[0],w),y:u.parse(S[1],w)};return m}parseObjectData(r,o,n,t){const{xScale:e,yScale:u}=r,{xAxisKey:m="x",yAxisKey:b="y"}=this._parsing,_=new Array(t);let w,S,D,E;for(w=0,S=t;w<S;++w)D=w+n,E=o[D],_[w]={x:e.parse(Ja(E,m),D),y:u.parse(Ja(E,b),D)};return _}getParsed(r){return this._cachedMeta._parsed[r]}getDataElement(r){return this._cachedMeta.data[r]}applyStack(r,o,n){const t=this.chart,e=this._cachedMeta,u=o[r.axis],m={keys:Wm(t,!0),values:o._stacks[r.axis]};return yp(m,u,e.index,{mode:n})}updateRangeFromParsed(r,o,n,t){const e=n[o.axis];let u=e===null?NaN:e;const m=t&&n._stacks[o.axis];t&&m&&(t.values=m,u=yp(t,e,this._cachedMeta.index)),r.min=Math.min(r.min,u),r.max=Math.max(r.max,u)}getMinMax(r,o){const n=this._cachedMeta,t=n._parsed,e=n._sorted&&r===n.iScale,u=t.length,m=this._getOtherScale(r),b=hv(o,n,this.chart),_={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:w,max:S}=cv(m);let D,E;function M(){E=t[D];const V=E[m.axis];return!ys(E[r.axis])||w>V||S<V}for(D=0;D<u&&!(!M()&&(this.updateRangeFromParsed(_,r,E,b),e));++D);if(e){for(D=u-1;D>=0;--D)if(!M()){this.updateRangeFromParsed(_,r,E,b);break}}return _}getAllParsedValues(r){const o=this._cachedMeta._parsed,n=[];let t,e,u;for(t=0,e=o.length;t<e;++t)u=o[t][r.axis],ys(u)&&n.push(u);return n}getMaxOverflow(){return!1}getLabelAndValue(r){const o=this._cachedMeta,n=o.iScale,t=o.vScale,e=this.getParsed(r);return{label:n?""+n.getLabelForValue(e[n.axis]):"",value:t?""+t.getLabelForValue(e[t.axis]):""}}_update(r){const o=this._cachedMeta;this.update(r||"default"),o._clip=iv(Bt(this.options.clip,ov(o.xScale,o.yScale,this.getMaxOverflow())))}update(r){}draw(){const r=this._ctx,o=this.chart,n=this._cachedMeta,t=n.data||[],e=o.chartArea,u=[],m=this._drawStart||0,b=this._drawCount||t.length-m,_=this.options.drawActiveElementsOnTop;let w;for(n.dataset&&n.dataset.draw(r,e,m,b),w=m;w<m+b;++w){const S=t[w];S.hidden||(S.active&&_?u.push(S):S.draw(r,e))}for(w=0;w<u.length;++w)u[w].draw(r,e)}getStyle(r,o){const n=o?"active":"default";return r===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(n):this.resolveDataElementOptions(r||0,n)}getContext(r,o,n){const t=this.getDataset();let e;if(r>=0&&r<this._cachedMeta.data.length){const u=this._cachedMeta.data[r];e=u.$context||(u.$context=dv(this.getContext(),r,u)),e.parsed=this.getParsed(r),e.raw=t.data[r],e.index=e.dataIndex=r}else e=this.$context||(this.$context=uv(this.chart.getContext(),this.index)),e.dataset=t,e.index=e.datasetIndex=this.index;return e.active=!!o,e.mode=n,e}resolveDatasetElementOptions(r){return this._resolveElementOptions(this.datasetElementType.id,r)}resolveDataElementOptions(r,o){return this._resolveElementOptions(this.dataElementType.id,o,r)}_resolveElementOptions(r,o="default",n){const t=o==="active",e=this._cachedDataOpts,u=r+"-"+o,m=e[u],b=this.enableOptionSharing&&aa(n);if(m)return xp(m,b);const _=this.chart.config,w=_.datasetElementScopeKeys(this._type,r),S=t?[`${r}Hover`,"hover",r,""]:[r,""],D=_.getOptionScopes(this.getDataset(),w),E=Object.keys(or.elements[r]),M=()=>this.getContext(n,t),V=_.resolveNamedOptions(D,E,M,S);return V.$shared&&(V.$shared=b,e[u]=Object.freeze(xp(V,b))),V}_resolveAnimations(r,o,n){const t=this.chart,e=this._cachedDataOpts,u=`animation-${o}`,m=e[u];if(m)return m;let b;if(t.options.animation!==!1){const w=this.chart.config,S=w.datasetAnimationScopeKeys(this._type,o),D=w.getOptionScopes(this.getDataset(),S);b=w.createResolver(D,this.getContext(r,n,o))}const _=new jm(t,b&&b.animations);return b&&b._cacheable&&(e[u]=Object.freeze(_)),_}getSharedOptions(r){if(r.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},r))}includeOptions(r,o){return!o||Xc(r)||this.chart._animationsDisabled}_getSharedOptions(r,o){const n=this.resolveDataElementOptions(r,o),t=this._sharedOptions,e=this.getSharedOptions(n),u=this.includeOptions(o,e)||e!==t;return this.updateSharedOptions(e,o,n),{sharedOptions:e,includeOptions:u}}updateElement(r,o,n,t){Xc(t)?Object.assign(r,n):this._resolveAnimations(o,t).update(r,n)}updateSharedOptions(r,o,n){r&&!Xc(o)&&this._resolveAnimations(void 0,o).update(r,n)}_setStyle(r,o,n,t){r.active=t;const e=this.getStyle(o,t);this._resolveAnimations(o,n,t).update(r,{options:!t&&this.getSharedOptions(e)||e})}removeHoverStyle(r,o,n){this._setStyle(r,n,"active",!1)}setHoverStyle(r,o,n){this._setStyle(r,n,"active",!0)}_removeDatasetHoverStyle(){const r=this._cachedMeta.dataset;r&&this._setStyle(r,void 0,"active",!1)}_setDatasetHoverStyle(){const r=this._cachedMeta.dataset;r&&this._setStyle(r,void 0,"active",!0)}_resyncElements(r){const o=this._data,n=this._cachedMeta.data;for(const[m,b,_]of this._syncList)this[m](b,_);this._syncList=[];const t=n.length,e=o.length,u=Math.min(e,t);u&&this.parse(0,u),e>t?this._insertElements(t,e-t,r):e<t&&this._removeElements(e,t-e)}_insertElements(r,o,n=!0){const t=this._cachedMeta,e=t.data,u=r+o;let m;const b=_=>{for(_.length+=o,m=_.length-1;m>=u;m--)_[m]=_[m-o]};for(b(e),m=r;m<u;++m)e[m]=new this.dataElementType;this._parsing&&b(t._parsed),this.parse(r,o),n&&this.updateElements(e,r,o,"reset")}updateElements(r,o,n,t){}_removeElements(r,o){const n=this._cachedMeta;if(this._parsing){const t=n._parsed.splice(r,o);n._stacked&&Bi(n,t)}n.data.splice(r,o)}_sync(r){if(this._parsing)this._syncList.push(r);else{const[o,n,t]=r;this[o](n,t)}this.chart._dataChanges.push([this.index,...r])}_onDataPush(){const r=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-r,r])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(r,o){o&&this._sync(["_removeElements",r,o]);const n=arguments.length-2;n&&this._sync(["_insertElements",r,n])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}ua.defaults={};ua.prototype.datasetElementType=null;ua.prototype.dataElementType=null;function pv(s,r){if(!s._cache.$bar){const o=s.getMatchingVisibleMetas(r);let n=[];for(let t=0,e=o.length;t<e;t++)n=n.concat(o[t].controller.getAllParsedValues(s));s._cache.$bar=wm(n.sort((t,e)=>t-e))}return s._cache.$bar}function mv(s){const r=s.iScale,o=pv(r,s.type);let n=r._length,t,e,u,m;const b=()=>{u===32767||u===-32768||(aa(m)&&(n=Math.min(n,Math.abs(u-m)||n)),m=u)};for(t=0,e=o.length;t<e;++t)u=r.getPixelForValue(o[t]),b();for(m=void 0,t=0,e=r.ticks.length;t<e;++t)u=r.getPixelForTick(t),b();return n}function gv(s,r,o,n){const t=o.barThickness;let e,u;return xr(t)?(e=r.min*o.categoryPercentage,u=o.barPercentage):(e=t*n,u=1),{chunk:e/n,ratio:u,start:r.pixels[s]-e/2}}function bv(s,r,o,n){const t=r.pixels,e=t[s];let u=s>0?t[s-1]:null,m=s<t.length-1?t[s+1]:null;const b=o.categoryPercentage;u===null&&(u=e-(m===null?r.end-r.start:m-e)),m===null&&(m=e+e-u);const _=e-(e-Math.min(u,m))/2*b;return{chunk:Math.abs(m-u)/2*b/n,ratio:o.barPercentage,start:_}}function yv(s,r,o,n){const t=o.parse(s[0],n),e=o.parse(s[1],n),u=Math.min(t,e),m=Math.max(t,e);let b=u,_=m;Math.abs(u)>Math.abs(m)&&(b=m,_=u),r[o.axis]=_,r._custom={barStart:b,barEnd:_,start:t,end:e,min:u,max:m}}function Hm(s,r,o,n){return Vr(s)?yv(s,r,o,n):r[o.axis]=o.parse(s,n),r}function Cp(s,r,o,n){const t=s.iScale,e=s.vScale,u=t.getLabels(),m=t===e,b=[];let _,w,S,D;for(_=o,w=o+n;_<w;++_)D=r[_],S={},S[t.axis]=m||t.parse(u[_],_),b.push(Hm(D,S,e,_));return b}function Qc(s){return s&&s.barStart!==void 0&&s.barEnd!==void 0}function _v(s,r,o){return s!==0?Fa(s):(r.isHorizontal()?1:-1)*(r.min>=o?1:-1)}function vv(s){let r,o,n,t,e;return s.horizontal?(r=s.base>s.x,o="left",n="right"):(r=s.base<s.y,o="bottom",n="top"),r?(t="end",e="start"):(t="start",e="end"),{start:o,end:n,reverse:r,top:t,bottom:e}}function wv(s,r,o,n){let t=r.borderSkipped;const e={};if(!t){s.borderSkipped=e;return}if(t===!0){s.borderSkipped={top:!0,right:!0,bottom:!0,left:!0};return}const{start:u,end:m,reverse:b,top:_,bottom:w}=vv(s);t==="middle"&&o&&(s.enableBorderRadius=!0,(o._top||0)===n?t=_:(o._bottom||0)===n?t=w:(e[Fp(w,u,m,b)]=!0,t=_)),e[Fp(t,u,m,b)]=!0,s.borderSkipped=e}function Fp(s,r,o,n){return n?(s=xv(s,r,o),s=Ap(s,o,r)):s=Ap(s,r,o),s}function xv(s,r,o){return s===r?o:s===o?r:s}function Ap(s,r,o){return s==="start"?r:s==="end"?o:s}function Cv(s,{inflateAmount:r},o){s.inflateAmount=r==="auto"?o===1?.33:0:r}class Eo extends ua{parsePrimitiveData(r,o,n,t){return Cp(r,o,n,t)}parseArrayData(r,o,n,t){return Cp(r,o,n,t)}parseObjectData(r,o,n,t){const{iScale:e,vScale:u}=r,{xAxisKey:m="x",yAxisKey:b="y"}=this._parsing,_=e.axis==="x"?m:b,w=u.axis==="x"?m:b,S=[];let D,E,M,V;for(D=n,E=n+t;D<E;++D)V=o[D],M={},M[e.axis]=e.parse(Ja(V,_),D),S.push(Hm(Ja(V,w),M,u,D));return S}updateRangeFromParsed(r,o,n,t){super.updateRangeFromParsed(r,o,n,t);const e=n._custom;e&&o===this._cachedMeta.vScale&&(r.min=Math.min(r.min,e.min),r.max=Math.max(r.max,e.max))}getMaxOverflow(){return 0}getLabelAndValue(r){const o=this._cachedMeta,{iScale:n,vScale:t}=o,e=this.getParsed(r),u=e._custom,m=Qc(u)?"["+u.start+", "+u.end+"]":""+t.getLabelForValue(e[t.axis]);return{label:""+n.getLabelForValue(e[n.axis]),value:m}}initialize(){this.enableOptionSharing=!0,super.initialize();const r=this._cachedMeta;r.stack=this.getDataset().stack}update(r){const o=this._cachedMeta;this.updateElements(o.data,0,o.data.length,r)}updateElements(r,o,n,t){const e=t==="reset",{index:u,_cachedMeta:{vScale:m}}=this,b=m.getBasePixel(),_=m.isHorizontal(),w=this._getRuler(),{sharedOptions:S,includeOptions:D}=this._getSharedOptions(o,t);for(let E=o;E<o+n;E++){const M=this.getParsed(E),V=e||xr(M[m.axis])?{base:b,head:b}:this._calculateBarValuePixels(E),Y=this._calculateBarIndexPixels(E,w),U=(M._stacks||{})[m.axis],ee={horizontal:_,base:V.base,enableBorderRadius:!U||Qc(M._custom)||u===U._top||u===U._bottom,x:_?V.head:Y.center,y:_?Y.center:V.head,height:_?Y.size:Math.abs(V.size),width:_?Math.abs(V.size):Y.size};D&&(ee.options=S||this.resolveDataElementOptions(E,r[E].active?"active":t));const ie=ee.options||r[E].options;wv(ee,ie,U,u),Cv(ee,ie,w.ratio),this.updateElement(r[E],E,ee,t)}}_getStacks(r,o){const{iScale:n}=this._cachedMeta,t=n.getMatchingVisibleMetas(this._type).filter(b=>b.controller.options.grouped),e=n.options.stacked,u=[],m=b=>{const _=b.controller.getParsed(o),w=_&&_[b.vScale.axis];if(xr(w)||isNaN(w))return!0};for(const b of t)if(!(o!==void 0&&m(b))&&((e===!1||u.indexOf(b.stack)===-1||e===void 0&&b.stack===void 0)&&u.push(b.stack),b.index===r))break;return u.length||u.push(void 0),u}_getStackCount(r){return this._getStacks(void 0,r).length}_getStackIndex(r,o,n){const t=this._getStacks(r,n),e=o!==void 0?t.indexOf(o):-1;return e===-1?t.length-1:e}_getRuler(){const r=this.options,o=this._cachedMeta,n=o.iScale,t=[];let e,u;for(e=0,u=o.data.length;e<u;++e)t.push(n.getPixelForValue(this.getParsed(e)[n.axis],e));const m=r.barThickness;return{min:m||mv(o),pixels:t,start:n._startPixel,end:n._endPixel,stackCount:this._getStackCount(),scale:n,grouped:r.grouped,ratio:m?1:r.categoryPercentage*r.barPercentage}}_calculateBarValuePixels(r){const{_cachedMeta:{vScale:o,_stacked:n},options:{base:t,minBarLength:e}}=this,u=t||0,m=this.getParsed(r),b=m._custom,_=Qc(b);let w=m[o.axis],S=0,D=n?this.applyStack(o,m,n):w,E,M;D!==w&&(S=D-w,D=w),_&&(w=b.barStart,D=b.barEnd-b.barStart,w!==0&&Fa(w)!==Fa(b.barEnd)&&(S=0),S+=w);const V=!xr(t)&&!_?t:S;let Y=o.getPixelForValue(V);if(this.chart.getDataVisibility(r)?E=o.getPixelForValue(S+D):E=Y,M=E-Y,Math.abs(M)<e){M=_v(M,o,u)*e,w===u&&(Y-=M/2);const U=o.getPixelForDecimal(0),ee=o.getPixelForDecimal(1),ie=Math.min(U,ee),z=Math.max(U,ee);Y=Math.max(Math.min(Y,z),ie),E=Y+M}if(Y===o.getPixelForValue(u)){const U=Fa(M)*o.getLineWidthForValue(u)/2;Y+=U,M-=U}return{size:M,base:Y,head:E,center:E+M/2}}_calculateBarIndexPixels(r,o){const n=o.scale,t=this.options,e=t.skipNull,u=Bt(t.maxBarThickness,1/0);let m,b;if(o.grouped){const _=e?this._getStackCount(r):o.stackCount,w=t.barThickness==="flex"?bv(r,o,t,_):gv(r,o,t,_),S=this._getStackIndex(this.index,this._cachedMeta.stack,e?r:void 0);m=w.start+w.chunk*S+w.chunk/2,b=Math.min(u,w.chunk*w.ratio)}else m=n.getPixelForValue(this.getParsed(r)[n.axis],r),b=Math.min(u,o.min*o.ratio);return{base:m-b/2,head:m+b/2,center:m,size:b}}draw(){const r=this._cachedMeta,o=r.vScale,n=r.data,t=n.length;let e=0;for(;e<t;++e)this.getParsed(e)[o.axis]!==null&&n[e].draw(this._ctx)}}Eo.id="bar";Eo.defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};Eo.overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};class Bf extends ua{initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(r,o,n,t){const e=super.parsePrimitiveData(r,o,n,t);for(let u=0;u<e.length;u++)e[u]._custom=this.resolveDataElementOptions(u+n).radius;return e}parseArrayData(r,o,n,t){const e=super.parseArrayData(r,o,n,t);for(let u=0;u<e.length;u++){const m=o[n+u];e[u]._custom=Bt(m[2],this.resolveDataElementOptions(u+n).radius)}return e}parseObjectData(r,o,n,t){const e=super.parseObjectData(r,o,n,t);for(let u=0;u<e.length;u++){const m=o[n+u];e[u]._custom=Bt(m&&m.r&&+m.r,this.resolveDataElementOptions(u+n).radius)}return e}getMaxOverflow(){const r=this._cachedMeta.data;let o=0;for(let n=r.length-1;n>=0;--n)o=Math.max(o,r[n].size(this.resolveDataElementOptions(n))/2);return o>0&&o}getLabelAndValue(r){const o=this._cachedMeta,{xScale:n,yScale:t}=o,e=this.getParsed(r),u=n.getLabelForValue(e.x),m=t.getLabelForValue(e.y),b=e._custom;return{label:o.label,value:"("+u+", "+m+(b?", "+b:"")+")"}}update(r){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,r)}updateElements(r,o,n,t){const e=t==="reset",{iScale:u,vScale:m}=this._cachedMeta,{sharedOptions:b,includeOptions:_}=this._getSharedOptions(o,t),w=u.axis,S=m.axis;for(let D=o;D<o+n;D++){const E=r[D],M=!e&&this.getParsed(D),V={},Y=V[w]=e?u.getPixelForDecimal(.5):u.getPixelForValue(M[w]),U=V[S]=e?m.getBasePixel():m.getPixelForValue(M[S]);V.skip=isNaN(Y)||isNaN(U),_&&(V.options=b||this.resolveDataElementOptions(D,E.active?"active":t),e&&(V.options.radius=0)),this.updateElement(E,D,V,t)}}resolveDataElementOptions(r,o){const n=this.getParsed(r);let t=super.resolveDataElementOptions(r,o);t.$shared&&(t=Object.assign({},t,{$shared:!1}));const e=t.radius;return o!=="active"&&(t.radius=0),t.radius+=Bt(n&&n._custom,e),t}}Bf.id="bubble";Bf.defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};Bf.overrides={scales:{x:{type:"linear"},y:{type:"linear"}},plugins:{tooltip:{callbacks:{title(){return""}}}}};function Fv(s,r,o){let n=1,t=1,e=0,u=0;if(r<Mr){const m=s,b=m+r,_=Math.cos(m),w=Math.sin(m),S=Math.cos(b),D=Math.sin(b),E=(ie,z,H)=>Zi(ie,m,b,!0)?1:Math.max(z,z*o,H,H*o),M=(ie,z,H)=>Zi(ie,m,b,!0)?-1:Math.min(z,z*o,H,H*o),V=E(0,_,S),Y=E(Jr,w,D),U=M(Ur,_,S),ee=M(Ur+Jr,w,D);n=(V-U)/2,t=(Y-ee)/2,e=-(V+U)/2,u=-(Y+ee)/2}return{ratioX:n,ratioY:t,offsetX:e,offsetY:u}}class an extends ua{constructor(r,o){super(r,o),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(r,o){const n=this.getDataset().data,t=this._cachedMeta;if(this._parsing===!1)t._parsed=n;else{let e=b=>+n[b];if(br(n[r])){const{key:b="value"}=this._parsing;e=_=>+Ja(n[_],b)}let u,m;for(u=r,m=r+o;u<m;++u)t._parsed[u]=e(u)}}_getRotation(){return fa(this.options.rotation-90)}_getCircumference(){return fa(this.options.circumference)}_getRotationExtents(){let r=Mr,o=-Mr;for(let n=0;n<this.chart.data.datasets.length;++n)if(this.chart.isDatasetVisible(n)){const t=this.chart.getDatasetMeta(n).controller,e=t._getRotation(),u=t._getCircumference();r=Math.min(r,e),o=Math.max(o,e+u)}return{rotation:r,circumference:o-r}}update(r){const o=this.chart,{chartArea:n}=o,t=this._cachedMeta,e=t.data,u=this.getMaxBorderWidth()+this.getMaxOffset(e)+this.options.spacing,m=Math.max((Math.min(n.width,n.height)-u)/2,0),b=Math.min(yy(this.options.cutout,m),1),_=this._getRingWeight(this.index),{circumference:w,rotation:S}=this._getRotationExtents(),{ratioX:D,ratioY:E,offsetX:M,offsetY:V}=Fv(S,w,b),Y=(n.width-u)/D,U=(n.height-u)/E,ee=Math.max(Math.min(Y,U)/2,0),ie=gm(this.options.radius,ee),z=Math.max(ie*b,0),H=(ie-z)/this._getVisibleDatasetWeightTotal();this.offsetX=M*ie,this.offsetY=V*ie,t.total=this.calculateTotal(),this.outerRadius=ie-H*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-H*_,0),this.updateElements(e,0,e.length,r)}_circumference(r,o){const n=this.options,t=this._cachedMeta,e=this._getCircumference();return o&&n.animation.animateRotate||!this.chart.getDataVisibility(r)||t._parsed[r]===null||t.data[r].hidden?0:this.calculateCircumference(t._parsed[r]*e/Mr)}updateElements(r,o,n,t){const e=t==="reset",u=this.chart,m=u.chartArea,_=u.options.animation,w=(m.left+m.right)/2,S=(m.top+m.bottom)/2,D=e&&_.animateScale,E=D?0:this.innerRadius,M=D?0:this.outerRadius,{sharedOptions:V,includeOptions:Y}=this._getSharedOptions(o,t);let U=this._getRotation(),ee;for(ee=0;ee<o;++ee)U+=this._circumference(ee,e);for(ee=o;ee<o+n;++ee){const ie=this._circumference(ee,e),z=r[ee],H={x:w+this.offsetX,y:S+this.offsetY,startAngle:U,endAngle:U+ie,circumference:ie,outerRadius:M,innerRadius:E};Y&&(H.options=V||this.resolveDataElementOptions(ee,z.active?"active":t)),U+=ie,this.updateElement(z,ee,H,t)}}calculateTotal(){const r=this._cachedMeta,o=r.data;let n=0,t;for(t=0;t<o.length;t++){const e=r._parsed[t];e!==null&&!isNaN(e)&&this.chart.getDataVisibility(t)&&!o[t].hidden&&(n+=Math.abs(e))}return n}calculateCircumference(r){const o=this._cachedMeta.total;return o>0&&!isNaN(r)?Mr*(Math.abs(r)/o):0}getLabelAndValue(r){const o=this._cachedMeta,n=this.chart,t=n.data.labels||[],e=sn(o._parsed[r],n.options.locale);return{label:t[r]||"",value:e}}getMaxBorderWidth(r){let o=0;const n=this.chart;let t,e,u,m,b;if(!r){for(t=0,e=n.data.datasets.length;t<e;++t)if(n.isDatasetVisible(t)){u=n.getDatasetMeta(t),r=u.data,m=u.controller;break}}if(!r)return 0;for(t=0,e=r.length;t<e;++t)b=m.resolveDataElementOptions(t),b.borderAlign!=="inner"&&(o=Math.max(o,b.borderWidth||0,b.hoverBorderWidth||0));return o}getMaxOffset(r){let o=0;for(let n=0,t=r.length;n<t;++n){const e=this.resolveDataElementOptions(n);o=Math.max(o,e.offset||0,e.hoverOffset||0)}return o}_getRingWeightOffset(r){let o=0;for(let n=0;n<r;++n)this.chart.isDatasetVisible(n)&&(o+=this._getRingWeight(n));return o}_getRingWeight(r){return Math.max(Bt(this.chart.data.datasets[r].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}an.id="doughnut";an.defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};an.descriptors={_scriptable:s=>s!=="spacing",_indexable:s=>s!=="spacing"};an.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const r=s.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:o}}=s.legend.options;return r.labels.map((n,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:o,hidden:!s.getDataVisibility(t),index:t}})}return[]}},onClick(s,r,o){o.chart.toggleDataVisibility(r.index),o.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){let r=s.label;const o=": "+s.formattedValue;return Vr(r)?(r=r.slice(),r[0]+=o):r+=o,r}}}}};class Uf extends ua{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(r){const o=this._cachedMeta,{dataset:n,data:t=[],_dataset:e}=o,u=this.chart._animationsDisabled;let{start:m,count:b}=Fm(o,t,u);this._drawStart=m,this._drawCount=b,Am(o)&&(m=0,b=t.length),n._chart=this.chart,n._datasetIndex=this.index,n._decimated=!!e._decimated,n.points=t;const _=this.resolveDatasetElementOptions(r);this.options.showLine||(_.borderWidth=0),_.segment=this.options.segment,this.updateElement(n,void 0,{animated:!u,options:_},r),this.updateElements(t,m,b,r)}updateElements(r,o,n,t){const e=t==="reset",{iScale:u,vScale:m,_stacked:b,_dataset:_}=this._cachedMeta,{sharedOptions:w,includeOptions:S}=this._getSharedOptions(o,t),D=u.axis,E=m.axis,{spanGaps:M,segment:V}=this.options,Y=$o(M)?M:Number.POSITIVE_INFINITY,U=this.chart._animationsDisabled||e||t==="none";let ee=o>0&&this.getParsed(o-1);for(let ie=o;ie<o+n;++ie){const z=r[ie],H=this.getParsed(ie),ne=U?z:{},G=xr(H[E]),De=ne[D]=u.getPixelForValue(H[D],ie),ve=ne[E]=e||G?m.getBasePixel():m.getPixelForValue(b?this.applyStack(m,H,b):H[E],ie);ne.skip=isNaN(De)||isNaN(ve)||G,ne.stop=ie>0&&Math.abs(H[D]-ee[D])>Y,V&&(ne.parsed=H,ne.raw=_.data[ie]),S&&(ne.options=w||this.resolveDataElementOptions(ie,z.active?"active":t)),U||this.updateElement(z,ie,ne,t),ee=H}}getMaxOverflow(){const r=this._cachedMeta,o=r.dataset,n=o.options&&o.options.borderWidth||0,t=r.data||[];if(!t.length)return n;const e=t[0].size(this.resolveDataElementOptions(0)),u=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(n,e,u)/2}draw(){const r=this._cachedMeta;r.dataset.updateControlPoints(this.chart.chartArea,r.iScale.axis),super.draw()}}Uf.id="line";Uf.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};Uf.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class zf extends ua{constructor(r,o){super(r,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(r){const o=this._cachedMeta,n=this.chart,t=n.data.labels||[],e=sn(o._parsed[r].r,n.options.locale);return{label:t[r]||"",value:e}}parseObjectData(r,o,n,t){return Im.bind(this)(r,o,n,t)}update(r){const o=this._cachedMeta.data;this._updateRadius(),this.updateElements(o,0,o.length,r)}getMinMax(){const r=this._cachedMeta,o={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return r.data.forEach((n,t)=>{const e=this.getParsed(t).r;!isNaN(e)&&this.chart.getDataVisibility(t)&&(e<o.min&&(o.min=e),e>o.max&&(o.max=e))}),o}_updateRadius(){const r=this.chart,o=r.chartArea,n=r.options,t=Math.min(o.right-o.left,o.bottom-o.top),e=Math.max(t/2,0),u=Math.max(n.cutoutPercentage?e/100*n.cutoutPercentage:1,0),m=(e-u)/r.getVisibleDatasetCount();this.outerRadius=e-m*this.index,this.innerRadius=this.outerRadius-m}updateElements(r,o,n,t){const e=t==="reset",u=this.chart,b=u.options.animation,_=this._cachedMeta.rScale,w=_.xCenter,S=_.yCenter,D=_.getIndexAngle(0)-.5*Ur;let E=D,M;const V=360/this.countVisibleElements();for(M=0;M<o;++M)E+=this._computeAngle(M,t,V);for(M=o;M<o+n;M++){const Y=r[M];let U=E,ee=E+this._computeAngle(M,t,V),ie=u.getDataVisibility(M)?_.getDistanceFromCenterForValue(this.getParsed(M).r):0;E=ee,e&&(b.animateScale&&(ie=0),b.animateRotate&&(U=ee=D));const z={x:w,y:S,innerRadius:0,outerRadius:ie,startAngle:U,endAngle:ee,options:this.resolveDataElementOptions(M,Y.active?"active":t)};this.updateElement(Y,M,z,t)}}countVisibleElements(){const r=this._cachedMeta;let o=0;return r.data.forEach((n,t)=>{!isNaN(this.getParsed(t).r)&&this.chart.getDataVisibility(t)&&o++}),o}_computeAngle(r,o,n){return this.chart.getDataVisibility(r)?fa(this.resolveDataElementOptions(r,o).angle||n):0}}zf.id="polarArea";zf.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};zf.overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(s){const r=s.data;if(r.labels.length&&r.datasets.length){const{labels:{pointStyle:o}}=s.legend.options;return r.labels.map((n,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:n,fillStyle:u.backgroundColor,strokeStyle:u.borderColor,lineWidth:u.borderWidth,pointStyle:o,hidden:!s.getDataVisibility(t),index:t}})}return[]}},onClick(s,r,o){o.chart.toggleDataVisibility(r.index),o.chart.update()}},tooltip:{callbacks:{title(){return""},label(s){return s.chart.data.labels[s.dataIndex]+": "+s.formattedValue}}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};class Ym extends an{}Ym.id="pie";Ym.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class Gf extends ua{getLabelAndValue(r){const o=this._cachedMeta.vScale,n=this.getParsed(r);return{label:o.getLabels()[r],value:""+o.getLabelForValue(n[o.axis])}}parseObjectData(r,o,n,t){return Im.bind(this)(r,o,n,t)}update(r){const o=this._cachedMeta,n=o.dataset,t=o.data||[],e=o.iScale.getLabels();if(n.points=t,r!=="resize"){const u=this.resolveDatasetElementOptions(r);this.options.showLine||(u.borderWidth=0);const m={_loop:!0,_fullLoop:e.length===t.length,options:u};this.updateElement(n,void 0,m,r)}this.updateElements(t,0,t.length,r)}updateElements(r,o,n,t){const e=this._cachedMeta.rScale,u=t==="reset";for(let m=o;m<o+n;m++){const b=r[m],_=this.resolveDataElementOptions(m,b.active?"active":t),w=e.getPointPositionForValue(m,this.getParsed(m).r),S=u?e.xCenter:w.x,D=u?e.yCenter:w.y,E={x:S,y:D,angle:w.angle,skip:isNaN(S)||isNaN(D),options:_};this.updateElement(b,m,E,t)}}}Gf.id="radar";Gf.defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};Gf.overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};class da{constructor(){this.x=void 0,this.y=void 0,this.active=!1,this.options=void 0,this.$animations=void 0}tooltipPosition(r){const{x:o,y:n}=this.getProps(["x","y"],r);return{x:o,y:n}}hasValue(){return $o(this.x)&&$o(this.y)}getProps(r,o){const n=this.$animations;if(!o||!n)return this;const t={};return r.forEach(e=>{t[e]=n[e]&&n[e].active()?n[e]._to:this[e]}),t}}da.defaults={};da.defaultRoutes=void 0;const qm={values(s){return Vr(s)?s:""+s},numeric(s,r,o){if(s===0)return"0";const n=this.chart.options.locale;let t,e=s;if(o.length>1){const _=Math.max(Math.abs(o[0].value),Math.abs(o[o.length-1].value));(_<1e-4||_>1e15)&&(t="scientific"),e=Av(s,o)}const u=ra(Math.abs(e)),m=Math.max(Math.min(-1*Math.floor(u),20),0),b={notation:t,minimumFractionDigits:m,maximumFractionDigits:m};return Object.assign(b,this.options.ticks.format),sn(s,n,b)},logarithmic(s,r,o){if(s===0)return"0";const n=s/Math.pow(10,Math.floor(ra(s)));return n===1||n===2||n===5?qm.numeric.call(this,s,r,o):""}};function Av(s,r){let o=r.length>3?r[2].value-r[1].value:r[1].value-r[0].value;return Math.abs(o)>=1&&s!==Math.floor(s)&&(o=s-Math.floor(s)),o}var vl={formatters:qm};or.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawBorder:!0,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(s,r)=>r.lineWidth,tickColor:(s,r)=>r.color,offset:!1,borderDash:[],borderDashOffset:0,borderWidth:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:vl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});or.route("scale.ticks","color","","color");or.route("scale.grid","color","","borderColor");or.route("scale.grid","borderColor","","borderColor");or.route("scale.title","color","","color");or.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"});or.describe("scales",{_fallback:"scale"});or.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"});function Dv(s,r){const o=s.options.ticks,n=o.maxTicksLimit||Sv(s),t=o.major.enabled?Tv(r):[],e=t.length,u=t[0],m=t[e-1],b=[];if(e>n)return kv(r,b,t,e/n),b;const _=Ev(t,r,n);if(e>0){let w,S;const D=e>1?Math.round((m-u)/(e-1)):null;for(tl(r,b,_,xr(D)?0:u-D,u),w=0,S=e-1;w<S;w++)tl(r,b,_,t[w],t[w+1]);return tl(r,b,_,m,xr(D)?r.length:m+D),b}return tl(r,b,_),b}function Sv(s){const r=s.options.offset,o=s._tickSize(),n=s._length/o+(r?0:1),t=s._maxLength/o;return Math.floor(Math.min(n,t))}function Ev(s,r,o){const n=Rv(s),t=r.length/o;if(!n)return Math.max(t,1);const e=Dy(n);for(let u=0,m=e.length-1;u<m;u++){const b=e[u];if(b>t)return b}return Math.max(t,1)}function Tv(s){const r=[];let o,n;for(o=0,n=s.length;o<n;o++)s[o].major&&r.push(o);return r}function kv(s,r,o,n){let t=0,e=o[0],u;for(n=Math.ceil(n),u=0;u<s.length;u++)u===e&&(r.push(s[u]),t++,e=o[t*n])}function tl(s,r,o,n,t){const e=Bt(n,0),u=Math.min(Bt(t,s.length),s.length);let m=0,b,_,w;for(o=Math.ceil(o),t&&(b=t-n,o=b/Math.floor(b/o)),w=e;w<0;)m++,w=Math.round(e+m*o);for(_=Math.max(e,0);_<u;_++)_===w&&(r.push(s[_]),m++,w=Math.round(e+m*o))}function Rv(s){const r=s.length;let o,n;if(r<2)return!1;for(n=s[0],o=1;o<r;++o)if(s[o]-s[o-1]!==n)return!1;return n}const Lv=s=>s==="left"?"right":s==="right"?"left":s,Dp=(s,r,o)=>r==="top"||r==="left"?s[r]+o:s[r]-o;function Sp(s,r){const o=[],n=s.length/r,t=s.length;let e=0;for(;e<t;e+=n)o.push(s[Math.floor(e)]);return o}function Mv(s,r,o){const n=s.ticks.length,t=Math.min(r,n-1),e=s._startPixel,u=s._endPixel,m=1e-6;let b=s.getPixelForTick(t),_;if(!(o&&(n===1?_=Math.max(b-e,u-b):r===0?_=(s.getPixelForTick(1)-b)/2:_=(b-s.getPixelForTick(t-1))/2,b+=t<r?_:-_,b<e-m||b>u+m)))return b}function Ov(s,r){Dr(s,o=>{const n=o.gc,t=n.length/2;let e;if(t>r){for(e=0;e<t;++e)delete o.data[n[e]];n.splice(0,t)}})}function Ui(s){return s.drawTicks?s.tickLength:0}function Ep(s,r){if(!s.display)return 0;const o=us(s.font,r),n=Ts(s.padding);return(Vr(s.text)?s.text.length:1)*o.lineHeight+n.height}function Pv(s,r){return Qa(s,{scale:r,type:"scale"})}function Nv(s,r,o){return Qa(s,{tick:o,index:r,type:"tick"})}function Iv(s,r,o){let n=Ef(s);return(o&&r!=="right"||!o&&r==="right")&&(n=Lv(n)),n}function Vv(s,r,o,n){const{top:t,left:e,bottom:u,right:m,chart:b}=s,{chartArea:_,scales:w}=b;let S=0,D,E,M;const V=u-t,Y=m-e;if(s.isHorizontal()){if(E=Ss(n,e,m),br(o)){const U=Object.keys(o)[0],ee=o[U];M=w[U].getPixelForValue(ee)+V-r}else o==="center"?M=(_.bottom+_.top)/2+V-r:M=Dp(s,o,r);D=m-e}else{if(br(o)){const U=Object.keys(o)[0],ee=o[U];E=w[U].getPixelForValue(ee)-Y+r}else o==="center"?E=(_.left+_.right)/2-Y+r:E=Dp(s,o,r);M=Ss(n,u,t),S=o==="left"?-Jr:Jr}return{titleX:E,titleY:M,maxWidth:D,rotation:S}}class To extends da{constructor(r){super(),this.id=r.id,this.type=r.type,this.options=void 0,this.ctx=r.ctx,this.chart=r.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(r){this.options=r.setContext(this.getContext()),this.axis=r.axis,this._userMin=this.parse(r.min),this._userMax=this.parse(r.max),this._suggestedMin=this.parse(r.suggestedMin),this._suggestedMax=this.parse(r.suggestedMax)}parse(r,o){return r}getUserBounds(){let{_userMin:r,_userMax:o,_suggestedMin:n,_suggestedMax:t}=this;return r=ta(r,Number.POSITIVE_INFINITY),o=ta(o,Number.NEGATIVE_INFINITY),n=ta(n,Number.POSITIVE_INFINITY),t=ta(t,Number.NEGATIVE_INFINITY),{min:ta(r,n),max:ta(o,t),minDefined:ys(r),maxDefined:ys(o)}}getMinMax(r){let{min:o,max:n,minDefined:t,maxDefined:e}=this.getUserBounds(),u;if(t&&e)return{min:o,max:n};const m=this.getMatchingVisibleMetas();for(let b=0,_=m.length;b<_;++b)u=m[b].controller.getMinMax(this,r),t||(o=Math.min(o,u.min)),e||(n=Math.max(n,u.max));return o=e&&o>n?n:o,n=t&&o>n?o:n,{min:ta(o,ta(n,o)),max:ta(n,ta(o,n))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const r=this.chart.data;return this.options.labels||(this.isHorizontal()?r.xLabels:r.yLabels)||r.labels||[]}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){Or(this.options.beforeUpdate,[this])}update(r,o,n){const{beginAtZero:t,grace:e,ticks:u}=this.options,m=u.sampleSize;this.beforeUpdate(),this.maxWidth=r,this.maxHeight=o,this._margins=n=Object.assign({left:0,right:0,top:0,bottom:0},n),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+n.left+n.right:this.height+n.top+n.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=p_(this,e,t),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const b=m<this.ticks.length;this._convertTicksToLabels(b?Sp(this.ticks,m):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),u.display&&(u.autoSkip||u.source==="auto")&&(this.ticks=Dv(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),b&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let r=this.options.reverse,o,n;this.isHorizontal()?(o=this.left,n=this.right):(o=this.top,n=this.bottom,r=!r),this._startPixel=o,this._endPixel=n,this._reversePixels=r,this._length=n-o,this._alignToPixels=this.options.alignToPixels}afterUpdate(){Or(this.options.afterUpdate,[this])}beforeSetDimensions(){Or(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){Or(this.options.afterSetDimensions,[this])}_callHooks(r){this.chart.notifyPlugins(r,this.getContext()),Or(this.options[r],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){Or(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(r){const o=this.options.ticks;let n,t,e;for(n=0,t=r.length;n<t;n++)e=r[n],e.label=Or(o.callback,[e.value,n,r],this)}afterTickToLabelConversion(){Or(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){Or(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const r=this.options,o=r.ticks,n=this.ticks.length,t=o.minRotation||0,e=o.maxRotation;let u=t,m,b,_;if(!this._isVisible()||!o.display||t>=e||n<=1||!this.isHorizontal()){this.labelRotation=t;return}const w=this._getLabelSizes(),S=w.widest.width,D=w.highest.height,E=Es(this.chart.width-S,0,this.maxWidth);m=r.offset?this.maxWidth/n:E/(n-1),S+6>m&&(m=E/(n-(r.offset?.5:1)),b=this.maxHeight-Ui(r.grid)-o.padding-Ep(r.title,this.chart.options.font),_=Math.sqrt(S*S+D*D),u=Df(Math.min(Math.asin(Es((w.highest.height+6)/m,-1,1)),Math.asin(Es(b/_,-1,1))-Math.asin(Es(D/_,-1,1)))),u=Math.max(t,Math.min(e,u))),this.labelRotation=u}afterCalculateLabelRotation(){Or(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Or(this.options.beforeFit,[this])}fit(){const r={width:0,height:0},{chart:o,options:{ticks:n,title:t,grid:e}}=this,u=this._isVisible(),m=this.isHorizontal();if(u){const b=Ep(t,o.options.font);if(m?(r.width=this.maxWidth,r.height=Ui(e)+b):(r.height=this.maxHeight,r.width=Ui(e)+b),n.display&&this.ticks.length){const{first:_,last:w,widest:S,highest:D}=this._getLabelSizes(),E=n.padding*2,M=fa(this.labelRotation),V=Math.cos(M),Y=Math.sin(M);if(m){const U=n.mirror?0:Y*S.width+V*D.height;r.height=Math.min(this.maxHeight,r.height+U+E)}else{const U=n.mirror?0:V*S.width+Y*D.height;r.width=Math.min(this.maxWidth,r.width+U+E)}this._calculatePadding(_,w,Y,V)}}this._handleMargins(),m?(this.width=this._length=o.width-this._margins.left-this._margins.right,this.height=r.height):(this.width=r.width,this.height=this._length=o.height-this._margins.top-this._margins.bottom)}_calculatePadding(r,o,n,t){const{ticks:{align:e,padding:u},position:m}=this.options,b=this.labelRotation!==0,_=m!=="top"&&this.axis==="x";if(this.isHorizontal()){const w=this.getPixelForTick(0)-this.left,S=this.right-this.getPixelForTick(this.ticks.length-1);let D=0,E=0;b?_?(D=t*r.width,E=n*o.height):(D=n*r.height,E=t*o.width):e==="start"?E=o.width:e==="end"?D=r.width:e!=="inner"&&(D=r.width/2,E=o.width/2),this.paddingLeft=Math.max((D-w+u)*this.width/(this.width-w),0),this.paddingRight=Math.max((E-S+u)*this.width/(this.width-S),0)}else{let w=o.height/2,S=r.height/2;e==="start"?(w=0,S=r.height):e==="end"&&(w=o.height,S=0),this.paddingTop=w+u,this.paddingBottom=S+u}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){Or(this.options.afterFit,[this])}isHorizontal(){const{axis:r,position:o}=this.options;return o==="top"||o==="bottom"||r==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(r){this.beforeTickToLabelConversion(),this.generateTickLabels(r);let o,n;for(o=0,n=r.length;o<n;o++)xr(r[o].label)&&(r.splice(o,1),n--,o--);this.afterTickToLabelConversion()}_getLabelSizes(){let r=this._labelSizes;if(!r){const o=this.options.ticks.sampleSize;let n=this.ticks;o<n.length&&(n=Sp(n,o)),this._labelSizes=r=this._computeLabelSizes(n,n.length)}return r}_computeLabelSizes(r,o){const{ctx:n,_longestTextCache:t}=this,e=[],u=[];let m=0,b=0,_,w,S,D,E,M,V,Y,U,ee,ie;for(_=0;_<o;++_){if(D=r[_].label,E=this._resolveTickFontOptions(_),n.font=M=E.string,V=t[M]=t[M]||{data:{},gc:[]},Y=E.lineHeight,U=ee=0,!xr(D)&&!Vr(D))U=hl(n,V.data,V.gc,U,D),ee=Y;else if(Vr(D))for(w=0,S=D.length;w<S;++w)ie=D[w],!xr(ie)&&!Vr(ie)&&(U=hl(n,V.data,V.gc,U,ie),ee+=Y);e.push(U),u.push(ee),m=Math.max(U,m),b=Math.max(ee,b)}Ov(t,o);const z=e.indexOf(m),H=u.indexOf(b),ne=G=>({width:e[G]||0,height:u[G]||0});return{first:ne(0),last:ne(o-1),widest:ne(z),highest:ne(H),widths:e,heights:u}}getLabelForValue(r){return r}getPixelForValue(r,o){return NaN}getValueForPixel(r){}getPixelForTick(r){const o=this.ticks;return r<0||r>o.length-1?null:this.getPixelForValue(o[r].value)}getPixelForDecimal(r){this._reversePixels&&(r=1-r);const o=this._startPixel+r*this._length;return Ty(this._alignToPixels?yo(this.chart,o,0):o)}getDecimalForPixel(r){const o=(r-this._startPixel)/this._length;return this._reversePixels?1-o:o}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:r,max:o}=this;return r<0&&o<0?o:r>0&&o>0?r:0}getContext(r){const o=this.ticks||[];if(r>=0&&r<o.length){const n=o[r];return n.$context||(n.$context=Nv(this.getContext(),r,n))}return this.$context||(this.$context=Pv(this.chart.getContext(),this))}_tickSize(){const r=this.options.ticks,o=fa(this.labelRotation),n=Math.abs(Math.cos(o)),t=Math.abs(Math.sin(o)),e=this._getLabelSizes(),u=r.autoSkipPadding||0,m=e?e.widest.width+u:0,b=e?e.highest.height+u:0;return this.isHorizontal()?b*n>m*t?m/n:b/t:b*t<m*n?b/n:m/t}_isVisible(){const r=this.options.display;return r!=="auto"?!!r:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(r){const o=this.axis,n=this.chart,t=this.options,{grid:e,position:u}=t,m=e.offset,b=this.isHorizontal(),w=this.ticks.length+(m?1:0),S=Ui(e),D=[],E=e.setContext(this.getContext()),M=E.drawBorder?E.borderWidth:0,V=M/2,Y=function(rt){return yo(n,rt,M)};let U,ee,ie,z,H,ne,G,De,ve,ot,ct,Je;if(u==="top")U=Y(this.bottom),ne=this.bottom-S,De=U-V,ot=Y(r.top)+V,Je=r.bottom;else if(u==="bottom")U=Y(this.top),ot=r.top,Je=Y(r.bottom)-V,ne=U+V,De=this.top+S;else if(u==="left")U=Y(this.right),H=this.right-S,G=U-V,ve=Y(r.left)+V,ct=r.right;else if(u==="right")U=Y(this.left),ve=r.left,ct=Y(r.right)-V,H=U+V,G=this.left+S;else if(o==="x"){if(u==="center")U=Y((r.top+r.bottom)/2+.5);else if(br(u)){const rt=Object.keys(u)[0],kt=u[rt];U=Y(this.chart.scales[rt].getPixelForValue(kt))}ot=r.top,Je=r.bottom,ne=U+V,De=ne+S}else if(o==="y"){if(u==="center")U=Y((r.left+r.right)/2);else if(br(u)){const rt=Object.keys(u)[0],kt=u[rt];U=Y(this.chart.scales[rt].getPixelForValue(kt))}H=U-V,G=H-S,ve=r.left,ct=r.right}const ft=Bt(t.ticks.maxTicksLimit,w),bt=Math.max(1,Math.ceil(w/ft));for(ee=0;ee<w;ee+=bt){const rt=e.setContext(this.getContext(ee)),kt=rt.lineWidth,Tt=rt.color,Sr=rt.borderDash||[],At=rt.borderDashOffset,Se=rt.tickWidth,Q=rt.tickColor,Ce=rt.tickBorderDash||[],Te=rt.tickBorderDashOffset;ie=Mv(this,ee,m),ie!==void 0&&(z=yo(n,ie,kt),b?H=G=ve=ct=z:ne=De=ot=Je=z,D.push({tx1:H,ty1:ne,tx2:G,ty2:De,x1:ve,y1:ot,x2:ct,y2:Je,width:kt,color:Tt,borderDash:Sr,borderDashOffset:At,tickWidth:Se,tickColor:Q,tickBorderDash:Ce,tickBorderDashOffset:Te}))}return this._ticksLength=w,this._borderValue=U,D}_computeLabelItems(r){const o=this.axis,n=this.options,{position:t,ticks:e}=n,u=this.isHorizontal(),m=this.ticks,{align:b,crossAlign:_,padding:w,mirror:S}=e,D=Ui(n.grid),E=D+w,M=S?-w:E,V=-fa(this.labelRotation),Y=[];let U,ee,ie,z,H,ne,G,De,ve,ot,ct,Je,ft="middle";if(t==="top")ne=this.bottom-M,G=this._getXAxisLabelAlignment();else if(t==="bottom")ne=this.top+M,G=this._getXAxisLabelAlignment();else if(t==="left"){const rt=this._getYAxisLabelAlignment(D);G=rt.textAlign,H=rt.x}else if(t==="right"){const rt=this._getYAxisLabelAlignment(D);G=rt.textAlign,H=rt.x}else if(o==="x"){if(t==="center")ne=(r.top+r.bottom)/2+E;else if(br(t)){const rt=Object.keys(t)[0],kt=t[rt];ne=this.chart.scales[rt].getPixelForValue(kt)+E}G=this._getXAxisLabelAlignment()}else if(o==="y"){if(t==="center")H=(r.left+r.right)/2-E;else if(br(t)){const rt=Object.keys(t)[0],kt=t[rt];H=this.chart.scales[rt].getPixelForValue(kt)}G=this._getYAxisLabelAlignment(D).textAlign}o==="y"&&(b==="start"?ft="top":b==="end"&&(ft="bottom"));const bt=this._getLabelSizes();for(U=0,ee=m.length;U<ee;++U){ie=m[U],z=ie.label;const rt=e.setContext(this.getContext(U));De=this.getPixelForTick(U)+e.labelOffset,ve=this._resolveTickFontOptions(U),ot=ve.lineHeight,ct=Vr(z)?z.length:1;const kt=ct/2,Tt=rt.color,Sr=rt.textStrokeColor,At=rt.textStrokeWidth;let Se=G;u?(H=De,G==="inner"&&(U===ee-1?Se=this.options.reverse?"left":"right":U===0?Se=this.options.reverse?"right":"left":Se="center"),t==="top"?_==="near"||V!==0?Je=-ct*ot+ot/2:_==="center"?Je=-bt.highest.height/2-kt*ot+ot:Je=-bt.highest.height+ot/2:_==="near"||V!==0?Je=ot/2:_==="center"?Je=bt.highest.height/2-kt*ot:Je=bt.highest.height-ct*ot,S&&(Je*=-1)):(ne=De,Je=(1-ct)*ot/2);let Q;if(rt.showLabelBackdrop){const Ce=Ts(rt.backdropPadding),Te=bt.heights[U],xe=bt.widths[U];let oe=ne+Je-Ce.top,pe=H-Ce.left;switch(ft){case"middle":oe-=Te/2;break;case"bottom":oe-=Te;break}switch(G){case"center":pe-=xe/2;break;case"right":pe-=xe;break}Q={left:pe,top:oe,width:xe+Ce.width,height:Te+Ce.height,color:rt.backdropColor}}Y.push({rotation:V,label:z,font:ve,color:Tt,strokeColor:Sr,strokeWidth:At,textOffset:Je,textAlign:Se,textBaseline:ft,translation:[H,ne],backdrop:Q})}return Y}_getXAxisLabelAlignment(){const{position:r,ticks:o}=this.options;if(-fa(this.labelRotation))return r==="top"?"left":"right";let t="center";return o.align==="start"?t="left":o.align==="end"?t="right":o.align==="inner"&&(t="inner"),t}_getYAxisLabelAlignment(r){const{position:o,ticks:{crossAlign:n,mirror:t,padding:e}}=this.options,u=this._getLabelSizes(),m=r+e,b=u.widest.width;let _,w;return o==="left"?t?(w=this.right+e,n==="near"?_="left":n==="center"?(_="center",w+=b/2):(_="right",w+=b)):(w=this.right-m,n==="near"?_="right":n==="center"?(_="center",w-=b/2):(_="left",w=this.left)):o==="right"?t?(w=this.left+e,n==="near"?_="right":n==="center"?(_="center",w-=b/2):(_="left",w-=b)):(w=this.left+m,n==="near"?_="left":n==="center"?(_="center",w+=b/2):(_="right",w=this.right)):_="right",{textAlign:_,x:w}}_computeLabelArea(){if(this.options.ticks.mirror)return;const r=this.chart,o=this.options.position;if(o==="left"||o==="right")return{top:0,left:this.left,bottom:r.height,right:this.right};if(o==="top"||o==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:r.width}}drawBackground(){const{ctx:r,options:{backgroundColor:o},left:n,top:t,width:e,height:u}=this;o&&(r.save(),r.fillStyle=o,r.fillRect(n,t,e,u),r.restore())}getLineWidthForValue(r){const o=this.options.grid;if(!this._isVisible()||!o.display)return 0;const t=this.ticks.findIndex(e=>e.value===r);return t>=0?o.setContext(this.getContext(t)).lineWidth:0}drawGrid(r){const o=this.options.grid,n=this.ctx,t=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(r));let e,u;const m=(b,_,w)=>{!w.width||!w.color||(n.save(),n.lineWidth=w.width,n.strokeStyle=w.color,n.setLineDash(w.borderDash||[]),n.lineDashOffset=w.borderDashOffset,n.beginPath(),n.moveTo(b.x,b.y),n.lineTo(_.x,_.y),n.stroke(),n.restore())};if(o.display)for(e=0,u=t.length;e<u;++e){const b=t[e];o.drawOnChartArea&&m({x:b.x1,y:b.y1},{x:b.x2,y:b.y2},b),o.drawTicks&&m({x:b.tx1,y:b.ty1},{x:b.tx2,y:b.ty2},{color:b.tickColor,width:b.tickWidth,borderDash:b.tickBorderDash,borderDashOffset:b.tickBorderDashOffset})}}drawBorder(){const{chart:r,ctx:o,options:{grid:n}}=this,t=n.setContext(this.getContext()),e=n.drawBorder?t.borderWidth:0;if(!e)return;const u=n.setContext(this.getContext(0)).lineWidth,m=this._borderValue;let b,_,w,S;this.isHorizontal()?(b=yo(r,this.left,e)-e/2,_=yo(r,this.right,u)+u/2,w=S=m):(w=yo(r,this.top,e)-e/2,S=yo(r,this.bottom,u)+u/2,b=_=m),o.save(),o.lineWidth=t.borderWidth,o.strokeStyle=t.borderColor,o.beginPath(),o.moveTo(b,w),o.lineTo(_,S),o.stroke(),o.restore()}drawLabels(r){if(!this.options.ticks.display)return;const n=this.ctx,t=this._computeLabelArea();t&&Lf(n,t);const e=this._labelItems||(this._labelItems=this._computeLabelItems(r));let u,m;for(u=0,m=e.length;u<m;++u){const b=e[u],_=b.font,w=b.label;b.backdrop&&(n.fillStyle=b.backdrop.color,n.fillRect(b.backdrop.left,b.backdrop.top,b.backdrop.width,b.backdrop.height));let S=b.textOffset;Do(n,w,0,S,_,b)}t&&Mf(n)}drawTitle(){const{ctx:r,options:{position:o,title:n,reverse:t}}=this;if(!n.display)return;const e=us(n.font),u=Ts(n.padding),m=n.align;let b=e.lineHeight/2;o==="bottom"||o==="center"||br(o)?(b+=u.bottom,Vr(n.text)&&(b+=e.lineHeight*(n.text.length-1))):b+=u.top;const{titleX:_,titleY:w,maxWidth:S,rotation:D}=Vv(this,b,o,m);Do(r,n.text,0,0,e,{color:n.color,maxWidth:S,rotation:D,textAlign:Iv(m,o,t),textBaseline:"middle",translation:[_,w]})}draw(r){this._isVisible()&&(this.drawBackground(),this.drawGrid(r),this.drawBorder(),this.drawTitle(),this.drawLabels(r))}_layers(){const r=this.options,o=r.ticks&&r.ticks.z||0,n=Bt(r.grid&&r.grid.z,-1);return!this._isVisible()||this.draw!==To.prototype.draw?[{z:o,draw:t=>{this.draw(t)}}]:[{z:n,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:n+1,draw:()=>{this.drawBorder()}},{z:o,draw:t=>{this.drawLabels(t)}}]}getMatchingVisibleMetas(r){const o=this.chart.getSortedVisibleDatasetMetas(),n=this.axis+"AxisID",t=[];let e,u;for(e=0,u=o.length;e<u;++e){const m=o[e];m[n]===this.id&&(!r||m.type===r)&&t.push(m)}return t}_resolveTickFontOptions(r){const o=this.options.ticks.setContext(this.getContext(r));return us(o.font)}_maxDigits(){const r=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/r}}class rl{constructor(r,o,n){this.type=r,this.scope=o,this.override=n,this.items=Object.create(null)}isForType(r){return Object.prototype.isPrototypeOf.call(this.type.prototype,r.prototype)}register(r){const o=Object.getPrototypeOf(r);let n;zv(o)&&(n=this.register(o));const t=this.items,e=r.id,u=this.scope+"."+e;if(!e)throw new Error("class does not have id: "+r);return e in t||(t[e]=r,Bv(r,u,n),this.override&&or.override(r.id,r.overrides)),u}get(r){return this.items[r]}unregister(r){const o=this.items,n=r.id,t=this.scope;n in o&&delete o[n],t&&n in or[t]&&(delete or[t][n],this.override&&delete Ao[n])}}function Bv(s,r,o){const n=Qi(Object.create(null),[o?or.get(o):{},or.get(r),s.defaults]);or.set(r,n),s.defaultRoutes&&Uv(r,s.defaultRoutes),s.descriptors&&or.describe(r,s.descriptors)}function Uv(s,r){Object.keys(r).forEach(o=>{const n=o.split("."),t=n.pop(),e=[s].concat(n).join("."),u=r[o].split("."),m=u.pop(),b=u.join(".");or.route(e,t,b,m)})}function zv(s){return"id"in s&&"defaults"in s}class Gv{constructor(){this.controllers=new rl(ua,"datasets",!0),this.elements=new rl(da,"elements"),this.plugins=new rl(Object,"plugins"),this.scales=new rl(To,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...r){this._each("register",r)}remove(...r){this._each("unregister",r)}addControllers(...r){this._each("register",r,this.controllers)}addElements(...r){this._each("register",r,this.elements)}addPlugins(...r){this._each("register",r,this.plugins)}addScales(...r){this._each("register",r,this.scales)}getController(r){return this._get(r,this.controllers,"controller")}getElement(r){return this._get(r,this.elements,"element")}getPlugin(r){return this._get(r,this.plugins,"plugin")}getScale(r){return this._get(r,this.scales,"scale")}removeControllers(...r){this._each("unregister",r,this.controllers)}removeElements(...r){this._each("unregister",r,this.elements)}removePlugins(...r){this._each("unregister",r,this.plugins)}removeScales(...r){this._each("unregister",r,this.scales)}_each(r,o,n){[...o].forEach(t=>{const e=n||this._getRegistryForType(t);n||e.isForType(t)||e===this.plugins&&t.id?this._exec(r,e,t):Dr(t,u=>{const m=n||this._getRegistryForType(u);this._exec(r,m,u)})})}_exec(r,o,n){const t=Af(r);Or(n["before"+t],[],n),o[r](n),Or(n["after"+t],[],n)}_getRegistryForType(r){for(let o=0;o<this._typedRegistries.length;o++){const n=this._typedRegistries[o];if(n.isForType(r))return n}return this.plugins}_get(r,o,n){const t=o.get(r);if(t===void 0)throw new Error('"'+r+'" is not a registered '+n+".");return t}}var Ca=new Gv;class jf extends ua{update(r){const o=this._cachedMeta,{data:n=[]}=o,t=this.chart._animationsDisabled;let{start:e,count:u}=Fm(o,n,t);if(this._drawStart=e,this._drawCount=u,Am(o)&&(e=0,u=n.length),this.options.showLine){const{dataset:m,_dataset:b}=o;m._chart=this.chart,m._datasetIndex=this.index,m._decimated=!!b._decimated,m.points=n;const _=this.resolveDatasetElementOptions(r);_.segment=this.options.segment,this.updateElement(m,void 0,{animated:!t,options:_},r)}this.updateElements(n,e,u,r)}addElements(){const{showLine:r}=this.options;!this.datasetElementType&&r&&(this.datasetElementType=Ca.getElement("line")),super.addElements()}updateElements(r,o,n,t){const e=t==="reset",{iScale:u,vScale:m,_stacked:b,_dataset:_}=this._cachedMeta,w=this.resolveDataElementOptions(o,t),S=this.getSharedOptions(w),D=this.includeOptions(t,S),E=u.axis,M=m.axis,{spanGaps:V,segment:Y}=this.options,U=$o(V)?V:Number.POSITIVE_INFINITY,ee=this.chart._animationsDisabled||e||t==="none";let ie=o>0&&this.getParsed(o-1);for(let z=o;z<o+n;++z){const H=r[z],ne=this.getParsed(z),G=ee?H:{},De=xr(ne[M]),ve=G[E]=u.getPixelForValue(ne[E],z),ot=G[M]=e||De?m.getBasePixel():m.getPixelForValue(b?this.applyStack(m,ne,b):ne[M],z);G.skip=isNaN(ve)||isNaN(ot)||De,G.stop=z>0&&Math.abs(ne[E]-ie[E])>U,Y&&(G.parsed=ne,G.raw=_.data[z]),D&&(G.options=S||this.resolveDataElementOptions(z,H.active?"active":t)),ee||this.updateElement(H,z,G,t),ie=ne}this.updateSharedOptions(S,t,w)}getMaxOverflow(){const r=this._cachedMeta,o=r.data||[];if(!this.options.showLine){let m=0;for(let b=o.length-1;b>=0;--b)m=Math.max(m,o[b].size(this.resolveDataElementOptions(b))/2);return m>0&&m}const n=r.dataset,t=n.options&&n.options.borderWidth||0;if(!o.length)return t;const e=o[0].size(this.resolveDataElementOptions(0)),u=o[o.length-1].size(this.resolveDataElementOptions(o.length-1));return Math.max(t,e,u)/2}}jf.id="scatter";jf.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};jf.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(s){return"("+s.label+", "+s.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function _o(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class uf{constructor(r){this.options=r||{}}init(r){}formats(){return _o()}parse(r,o){return _o()}format(r,o){return _o()}add(r,o,n){return _o()}diff(r,o,n){return _o()}startOf(r,o,n){return _o()}endOf(r,o){return _o()}}uf.override=function(s){Object.assign(uf.prototype,s)};var jv={_date:uf};function Wv(s,r,o,n){const{controller:t,data:e,_sorted:u}=s,m=t._cachedMeta.iScale;if(m&&r===m.axis&&r!=="r"&&u&&e.length){const b=m._reversePixels?ky:xo;if(n){if(t._sharedOptions){const _=e[0],w=typeof _.getRange=="function"&&_.getRange(r);if(w){const S=b(e,r,o-w),D=b(e,r,o+w);return{lo:S.lo,hi:D.hi}}}}else return b(e,r,o)}return{lo:0,hi:e.length-1}}function on(s,r,o,n,t){const e=s.getSortedVisibleDatasetMetas(),u=o[r];for(let m=0,b=e.length;m<b;++m){const{index:_,data:w}=e[m],{lo:S,hi:D}=Wv(e[m],r,u,t);for(let E=S;E<=D;++E){const M=w[E];M.skip||n(M,_,E)}}}function Hv(s){const r=s.indexOf("x")!==-1,o=s.indexOf("y")!==-1;return function(n,t){const e=r?Math.abs(n.x-t.x):0,u=o?Math.abs(n.y-t.y):0;return Math.sqrt(Math.pow(e,2)+Math.pow(u,2))}}function Zc(s,r,o,n,t){const e=[];return!t&&!s.isPointInArea(r)||on(s,o,r,function(m,b,_){!t&&!$i(m,s.chartArea,0)||m.inRange(r.x,r.y,n)&&e.push({element:m,datasetIndex:b,index:_})},!0),e}function Yv(s,r,o,n){let t=[];function e(u,m,b){const{startAngle:_,endAngle:w}=u.getProps(["startAngle","endAngle"],n),{angle:S}=_m(u,{x:r.x,y:r.y});Zi(S,_,w)&&t.push({element:u,datasetIndex:m,index:b})}return on(s,o,r,e),t}function qv(s,r,o,n,t,e){let u=[];const m=Hv(o);let b=Number.POSITIVE_INFINITY;function _(w,S,D){const E=w.inRange(r.x,r.y,t);if(n&&!E)return;const M=w.getCenterPoint(t);if(!(!!e||s.isPointInArea(M))&&!E)return;const Y=m(r,M);Y<b?(u=[{element:w,datasetIndex:S,index:D}],b=Y):Y===b&&u.push({element:w,datasetIndex:S,index:D})}return on(s,o,r,_),u}function $c(s,r,o,n,t,e){return!e&&!s.isPointInArea(r)?[]:o==="r"&&!n?Yv(s,r,o,t):qv(s,r,o,n,t,e)}function Tp(s,r,o,n,t){const e=[],u=o==="x"?"inXRange":"inYRange";let m=!1;return on(s,o,r,(b,_,w)=>{b[u](r[o],t)&&(e.push({element:b,datasetIndex:_,index:w}),m=m||b.inRange(r.x,r.y,t))}),n&&!m?[]:e}var Kv={evaluateInteractionItems:on,modes:{index(s,r,o,n){const t=vo(r,s),e=o.axis||"x",u=o.includeInvisible||!1,m=o.intersect?Zc(s,t,e,n,u):$c(s,t,e,!1,n,u),b=[];return m.length?(s.getSortedVisibleDatasetMetas().forEach(_=>{const w=m[0].index,S=_.data[w];S&&!S.skip&&b.push({element:S,datasetIndex:_.index,index:w})}),b):[]},dataset(s,r,o,n){const t=vo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;let m=o.intersect?Zc(s,t,e,n,u):$c(s,t,e,!1,n,u);if(m.length>0){const b=m[0].datasetIndex,_=s.getDatasetMeta(b).data;m=[];for(let w=0;w<_.length;++w)m.push({element:_[w],datasetIndex:b,index:w})}return m},point(s,r,o,n){const t=vo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return Zc(s,t,e,n,u)},nearest(s,r,o,n){const t=vo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return $c(s,t,e,o.intersect,n,u)},x(s,r,o,n){const t=vo(r,s);return Tp(s,t,"x",o.intersect,n)},y(s,r,o,n){const t=vo(r,s);return Tp(s,t,"y",o.intersect,n)}}};const Km=["left","top","right","bottom"];function zi(s,r){return s.filter(o=>o.pos===r)}function kp(s,r){return s.filter(o=>Km.indexOf(o.pos)===-1&&o.box.axis===r)}function Gi(s,r){return s.sort((o,n)=>{const t=r?n:o,e=r?o:n;return t.weight===e.weight?t.index-e.index:t.weight-e.weight})}function Jv(s){const r=[];let o,n,t,e,u,m;for(o=0,n=(s||[]).length;o<n;++o)t=s[o],{position:e,options:{stack:u,stackWeight:m=1}}=t,r.push({index:o,box:t,pos:e,horizontal:t.isHorizontal(),weight:t.weight,stack:u&&e+u,stackWeight:m});return r}function Xv(s){const r={};for(const o of s){const{stack:n,pos:t,stackWeight:e}=o;if(!n||!Km.includes(t))continue;const u=r[n]||(r[n]={count:0,placed:0,weight:0,size:0});u.count++,u.weight+=e}return r}function Qv(s,r){const o=Xv(s),{vBoxMaxWidth:n,hBoxMaxHeight:t}=r;let e,u,m;for(e=0,u=s.length;e<u;++e){m=s[e];const{fullSize:b}=m.box,_=o[m.stack],w=_&&m.stackWeight/_.weight;m.horizontal?(m.width=w?w*n:b&&r.availableWidth,m.height=t):(m.width=n,m.height=w?w*t:b&&r.availableHeight)}return o}function Zv(s){const r=Jv(s),o=Gi(r.filter(_=>_.box.fullSize),!0),n=Gi(zi(r,"left"),!0),t=Gi(zi(r,"right")),e=Gi(zi(r,"top"),!0),u=Gi(zi(r,"bottom")),m=kp(r,"x"),b=kp(r,"y");return{fullSize:o,leftAndTop:n.concat(e),rightAndBottom:t.concat(b).concat(u).concat(m),chartArea:zi(r,"chartArea"),vertical:n.concat(t).concat(b),horizontal:e.concat(u).concat(m)}}function Rp(s,r,o,n){return Math.max(s[o],r[o])+Math.max(s[n],r[n])}function Jm(s,r){s.top=Math.max(s.top,r.top),s.left=Math.max(s.left,r.left),s.bottom=Math.max(s.bottom,r.bottom),s.right=Math.max(s.right,r.right)}function $v(s,r,o,n){const{pos:t,box:e}=o,u=s.maxPadding;if(!br(t)){o.size&&(s[t]-=o.size);const S=n[o.stack]||{size:0,count:1};S.size=Math.max(S.size,o.horizontal?e.height:e.width),o.size=S.size/S.count,s[t]+=o.size}e.getPadding&&Jm(u,e.getPadding());const m=Math.max(0,r.outerWidth-Rp(u,s,"left","right")),b=Math.max(0,r.outerHeight-Rp(u,s,"top","bottom")),_=m!==s.w,w=b!==s.h;return s.w=m,s.h=b,o.horizontal?{same:_,other:w}:{same:w,other:_}}function e4(s){const r=s.maxPadding;function o(n){const t=Math.max(r[n]-s[n],0);return s[n]+=t,t}s.y+=o("top"),s.x+=o("left"),o("right"),o("bottom")}function t4(s,r){const o=r.maxPadding;function n(t){const e={left:0,top:0,right:0,bottom:0};return t.forEach(u=>{e[u]=Math.max(r[u],o[u])}),e}return n(s?["left","right"]:["top","bottom"])}function Hi(s,r,o,n){const t=[];let e,u,m,b,_,w;for(e=0,u=s.length,_=0;e<u;++e){m=s[e],b=m.box,b.update(m.width||r.w,m.height||r.h,t4(m.horizontal,r));const{same:S,other:D}=$v(r,o,m,n);_|=S&&t.length,w=w||D,b.fullSize||t.push(m)}return _&&Hi(t,r,o,n)||w}function sl(s,r,o,n,t){s.top=o,s.left=r,s.right=r+n,s.bottom=o+t,s.width=n,s.height=t}function Lp(s,r,o,n){const t=o.padding;let{x:e,y:u}=r;for(const m of s){const b=m.box,_=n[m.stack]||{count:1,placed:0,weight:1},w=m.stackWeight/_.weight||1;if(m.horizontal){const S=r.w*w,D=_.size||b.height;aa(_.start)&&(u=_.start),b.fullSize?sl(b,t.left,u,o.outerWidth-t.right-t.left,D):sl(b,r.left+_.placed,u,S,D),_.start=u,_.placed+=S,u=b.bottom}else{const S=r.h*w,D=_.size||b.width;aa(_.start)&&(e=_.start),b.fullSize?sl(b,e,t.top,D,o.outerHeight-t.bottom-t.top):sl(b,e,r.top+_.placed,D,S),_.start=e,_.placed+=S,e=b.right}}r.x=e,r.y=u}or.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}});var sa={addBox(s,r){s.boxes||(s.boxes=[]),r.fullSize=r.fullSize||!1,r.position=r.position||"top",r.weight=r.weight||0,r._layers=r._layers||function(){return[{z:0,draw(o){r.draw(o)}}]},s.boxes.push(r)},removeBox(s,r){const o=s.boxes?s.boxes.indexOf(r):-1;o!==-1&&s.boxes.splice(o,1)},configure(s,r,o){r.fullSize=o.fullSize,r.position=o.position,r.weight=o.weight},update(s,r,o,n){if(!s)return;const t=Ts(s.options.layout.padding),e=Math.max(r-t.width,0),u=Math.max(o-t.height,0),m=Zv(s.boxes),b=m.vertical,_=m.horizontal;Dr(s.boxes,V=>{typeof V.beforeLayout=="function"&&V.beforeLayout()});const w=b.reduce((V,Y)=>Y.box.options&&Y.box.options.display===!1?V:V+1,0)||1,S=Object.freeze({outerWidth:r,outerHeight:o,padding:t,availableWidth:e,availableHeight:u,vBoxMaxWidth:e/2/w,hBoxMaxHeight:u/2}),D=Object.assign({},t);Jm(D,Ts(n));const E=Object.assign({maxPadding:D,w:e,h:u,x:t.left,y:t.top},t),M=Qv(b.concat(_),S);Hi(m.fullSize,E,S,M),Hi(b,E,S,M),Hi(_,E,S,M)&&Hi(b,E,S,M),e4(E),Lp(m.leftAndTop,E,S,M),E.x+=E.w,E.y+=E.h,Lp(m.rightAndBottom,E,S,M),s.chartArea={left:E.left,top:E.top,right:E.left+E.w,bottom:E.top+E.h,height:E.h,width:E.w},Dr(m.chartArea,V=>{const Y=V.box;Object.assign(Y,s.chartArea),Y.update(E.w,E.h,{left:0,top:0,right:0,bottom:0})})}};class Xm{acquireContext(r,o){}releaseContext(r){return!1}addEventListener(r,o,n){}removeEventListener(r,o,n){}getDevicePixelRatio(){return 1}getMaximumSize(r,o,n,t){return o=Math.max(0,o||r.width),n=n||r.height,{width:o,height:Math.max(0,t?Math.floor(o/t):n)}}isAttached(r){return!0}updateConfig(r){}}class r4 extends Xm{acquireContext(r){return r&&r.getContext&&r.getContext("2d")||null}updateConfig(r){r.options.animation=!1}}const nl="$chartjs",s4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Mp=s=>s===null||s==="";function a4(s,r){const o=s.style,n=s.getAttribute("height"),t=s.getAttribute("width");if(s[nl]={initial:{height:n,width:t,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",Mp(t)){const e=up(s,"width");e!==void 0&&(s.width=e)}if(Mp(n))if(s.style.height==="")s.height=s.width/(r||2);else{const e=up(s,"height");e!==void 0&&(s.height=e)}return s}const Qm=I_?{passive:!0}:!1;function o4(s,r,o){s.addEventListener(r,o,Qm)}function i4(s,r,o){s.canvas.removeEventListener(r,o,Qm)}function n4(s,r){const o=s4[s.type]||s.type,{x:n,y:t}=vo(s,r);return{type:o,chart:r,native:s,x:n!==void 0?n:null,y:t!==void 0?t:null}}function ml(s,r){for(const o of s)if(o===r||o.contains(r))return!0}function l4(s,r,o){const n=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const m of e)u=u||ml(m.addedNodes,n),u=u&&!ml(m.removedNodes,n);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}function c4(s,r,o){const n=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const m of e)u=u||ml(m.removedNodes,n),u=u&&!ml(m.addedNodes,n);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}const tn=new Map;let Op=0;function Zm(){const s=window.devicePixelRatio;s!==Op&&(Op=s,tn.forEach((r,o)=>{o.currentDevicePixelRatio!==s&&r()}))}function f4(s,r){tn.size||window.addEventListener("resize",Zm),tn.set(s,r)}function u4(s){tn.delete(s),tn.size||window.removeEventListener("resize",Zm)}function d4(s,r,o){const n=s.canvas,t=n&&Vf(n);if(!t)return;const e=Cm((m,b)=>{const _=t.clientWidth;o(m,b),_<t.clientWidth&&o()},window),u=new ResizeObserver(m=>{const b=m[0],_=b.contentRect.width,w=b.contentRect.height;_===0&&w===0||e(_,w)});return u.observe(t),f4(s,e),u}function ef(s,r,o){o&&o.disconnect(),r==="resize"&&u4(s)}function h4(s,r,o){const n=s.canvas,t=Cm(e=>{s.ctx!==null&&o(n4(e,s))},s,e=>{const u=e[0];return[u,u.offsetX,u.offsetY]});return o4(n,r,t),t}class p4 extends Xm{acquireContext(r,o){const n=r&&r.getContext&&r.getContext("2d");return n&&n.canvas===r?(a4(r,o),n):null}releaseContext(r){const o=r.canvas;if(!o[nl])return!1;const n=o[nl].initial;["height","width"].forEach(e=>{const u=n[e];xr(u)?o.removeAttribute(e):o.setAttribute(e,u)});const t=n.style||{};return Object.keys(t).forEach(e=>{o.style[e]=t[e]}),o.width=o.width,delete o[nl],!0}addEventListener(r,o,n){this.removeEventListener(r,o);const t=r.$proxies||(r.$proxies={}),u={attach:l4,detach:c4,resize:d4}[o]||h4;t[o]=u(r,o,n)}removeEventListener(r,o){const n=r.$proxies||(r.$proxies={}),t=n[o];if(!t)return;({attach:ef,detach:ef,resize:ef}[o]||i4)(r,o,t),n[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(r,o,n,t){return N_(r,o,n,t)}isAttached(r){const o=Vf(r);return!!(o&&o.isConnected)}}function m4(s){return!Bm()||typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas?r4:p4}class g4{constructor(){this._init=[]}notify(r,o,n,t){o==="beforeInit"&&(this._init=this._createDescriptors(r,!0),this._notify(this._init,r,"install"));const e=t?this._descriptors(r).filter(t):this._descriptors(r),u=this._notify(e,r,o,n);return o==="afterDestroy"&&(this._notify(e,r,"stop"),this._notify(this._init,r,"uninstall")),u}_notify(r,o,n,t){t=t||{};for(const e of r){const u=e.plugin,m=u[n],b=[o,t,e.options];if(Or(m,b,u)===!1&&t.cancelable)return!1}return!0}invalidate(){xr(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(r){if(this._cache)return this._cache;const o=this._cache=this._createDescriptors(r);return this._notifyStateChanges(r),o}_createDescriptors(r,o){const n=r&&r.config,t=Bt(n.options&&n.options.plugins,{}),e=b4(n);return t===!1&&!o?[]:_4(r,e,t,o)}_notifyStateChanges(r){const o=this._oldCache||[],n=this._cache,t=(e,u)=>e.filter(m=>!u.some(b=>m.plugin.id===b.plugin.id));this._notify(t(o,n),r,"stop"),this._notify(t(n,o),r,"start")}}function b4(s){const r={},o=[],n=Object.keys(Ca.plugins.items);for(let e=0;e<n.length;e++)o.push(Ca.getPlugin(n[e]));const t=s.plugins||[];for(let e=0;e<t.length;e++){const u=t[e];o.indexOf(u)===-1&&(o.push(u),r[u.id]=!0)}return{plugins:o,localIds:r}}function y4(s,r){return!r&&s===!1?null:s===!0?{}:s}function _4(s,{plugins:r,localIds:o},n,t){const e=[],u=s.getContext();for(const m of r){const b=m.id,_=y4(n[b],t);_!==null&&e.push({plugin:m,options:v4(s.config,{plugin:m,local:o[b]},_,u)})}return e}function v4(s,{plugin:r,local:o},n,t){const e=s.pluginScopeKeys(r),u=s.getOptionScopes(n,e);return o&&r.defaults&&u.push(r.defaults),s.createResolver(u,t,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function df(s,r){const o=or.datasets[s]||{};return((r.datasets||{})[s]||{}).indexAxis||r.indexAxis||o.indexAxis||"x"}function w4(s,r){let o=s;return s==="_index_"?o=r:s==="_value_"&&(o=r==="x"?"y":"x"),o}function x4(s,r){return s===r?"_index_":"_value_"}function C4(s){if(s==="top"||s==="bottom")return"x";if(s==="left"||s==="right")return"y"}function hf(s,r){return s==="x"||s==="y"?s:r.axis||C4(r.position)||s.charAt(0).toLowerCase()}function F4(s,r){const o=Ao[s.type]||{scales:{}},n=r.scales||{},t=df(s.type,r),e=Object.create(null),u=Object.create(null);return Object.keys(n).forEach(m=>{const b=n[m];if(!br(b))return console.error(`Invalid scale configuration for scale: ${m}`);if(b._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${m}`);const _=hf(m,b),w=x4(_,t),S=o.scales||{};e[_]=e[_]||m,u[m]=Yi(Object.create(null),[{axis:_},b,S[_],S[w]])}),s.data.datasets.forEach(m=>{const b=m.type||s.type,_=m.indexAxis||df(b,r),S=(Ao[b]||{}).scales||{};Object.keys(S).forEach(D=>{const E=w4(D,_),M=m[E+"AxisID"]||e[E]||E;u[M]=u[M]||Object.create(null),Yi(u[M],[{axis:E},n[M],S[D]])})}),Object.keys(u).forEach(m=>{const b=u[m];Yi(b,[or.scales[b.type],or.scale])}),u}function $m(s){const r=s.options||(s.options={});r.plugins=Bt(r.plugins,{}),r.scales=F4(s,r)}function e1(s){return s=s||{},s.datasets=s.datasets||[],s.labels=s.labels||[],s}function A4(s){return s=s||{},s.data=e1(s.data),$m(s),s}const Pp=new Map,t1=new Set;function al(s,r){let o=Pp.get(s);return o||(o=r(),Pp.set(s,o),t1.add(o)),o}const ji=(s,r,o)=>{const n=Ja(r,o);n!==void 0&&s.add(n)};class D4{constructor(r){this._config=A4(r),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(r){this._config.type=r}get data(){return this._config.data}set data(r){this._config.data=e1(r)}get options(){return this._config.options}set options(r){this._config.options=r}get plugins(){return this._config.plugins}update(){const r=this._config;this.clearCache(),$m(r)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(r){return al(r,()=>[[`datasets.${r}`,""]])}datasetAnimationScopeKeys(r,o){return al(`${r}.transition.${o}`,()=>[[`datasets.${r}.transitions.${o}`,`transitions.${o}`],[`datasets.${r}`,""]])}datasetElementScopeKeys(r,o){return al(`${r}-${o}`,()=>[[`datasets.${r}.elements.${o}`,`datasets.${r}`,`elements.${o}`,""]])}pluginScopeKeys(r){const o=r.id,n=this.type;return al(`${n}-plugin-${o}`,()=>[[`plugins.${o}`,...r.additionalOptionScopes||[]]])}_cachedScopes(r,o){const n=this._scopeCache;let t=n.get(r);return(!t||o)&&(t=new Map,n.set(r,t)),t}getOptionScopes(r,o,n){const{options:t,type:e}=this,u=this._cachedScopes(r,n),m=u.get(o);if(m)return m;const b=new Set;o.forEach(w=>{r&&(b.add(r),w.forEach(S=>ji(b,r,S))),w.forEach(S=>ji(b,t,S)),w.forEach(S=>ji(b,Ao[e]||{},S)),w.forEach(S=>ji(b,or,S)),w.forEach(S=>ji(b,cf,S))});const _=Array.from(b);return _.length===0&&_.push(Object.create(null)),t1.has(o)&&u.set(o,_),_}chartOptionScopes(){const{options:r,type:o}=this;return[r,Ao[o]||{},or.datasets[o]||{},{type:o},or,cf]}resolveNamedOptions(r,o,n,t=[""]){const e={$shared:!0},{resolver:u,subPrefixes:m}=Np(this._resolverCache,r,t);let b=u;if(E4(u,o)){e.$shared=!1,n=Xa(n)?n():n;const _=this.createResolver(r,n,m);b=ei(u,n,_)}for(const _ of o)e[_]=b[_];return e}createResolver(r,o,n=[""],t){const{resolver:e}=Np(this._resolverCache,r,n);return br(o)?ei(e,o,void 0,t):e}}function Np(s,r,o){let n=s.get(r);n||(n=new Map,s.set(r,n));const t=o.join();let e=n.get(t);return e||(e={resolver:Pf(r,o),subPrefixes:o.filter(m=>!m.toLowerCase().includes("hover"))},n.set(t,e)),e}const S4=s=>br(s)&&Object.getOwnPropertyNames(s).reduce((r,o)=>r||Xa(s[o]),!1);function E4(s,r){const{isScriptable:o,isIndexable:n}=Mm(s);for(const t of r){const e=o(t),u=n(t),m=(u||e)&&s[t];if(e&&(Xa(m)||S4(m))||u&&Vr(m))return!0}return!1}var T4="3.9.1";const k4=["top","bottom","left","right","chartArea"];function Ip(s,r){return s==="top"||s==="bottom"||k4.indexOf(s)===-1&&r==="x"}function Vp(s,r){return function(o,n){return o[s]===n[s]?o[r]-n[r]:o[s]-n[s]}}function Bp(s){const r=s.chart,o=r.options.animation;r.notifyPlugins("afterRender"),Or(o&&o.onComplete,[s],r)}function R4(s){const r=s.chart,o=r.options.animation;Or(o&&o.onProgress,[s],r)}function r1(s){return Bm()&&typeof s=="string"?s=document.getElementById(s):s&&s.length&&(s=s[0]),s&&s.canvas&&(s=s.canvas),s}const gl={},s1=s=>{const r=r1(s);return Object.values(gl).filter(o=>o.canvas===r).pop()};function L4(s,r,o){const n=Object.keys(s);for(const t of n){const e=+t;if(e>=r){const u=s[t];delete s[t],(o>0||e>r)&&(s[e+o]=u)}}}function M4(s,r,o,n){return!o||s.type==="mouseout"?null:n?r:s}class Aa{constructor(r,o){const n=this.config=new D4(o),t=r1(r),e=s1(t);if(e)throw new Error("Canvas is already in use. Chart with ID '"+e.id+"' must be destroyed before the canvas with ID '"+e.canvas.id+"' can be reused.");const u=n.createResolver(n.chartOptionScopes(),this.getContext());this.platform=new(n.platform||m4(t)),this.platform.updateConfig(n);const m=this.platform.acquireContext(t,u.aspectRatio),b=m&&m.canvas,_=b&&b.height,w=b&&b.width;if(this.id=by(),this.ctx=m,this.canvas=b,this.width=w,this.height=_,this._options=u,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new g4,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=My(S=>this.update(S),u.resizeDelay||0),this._dataChanges=[],gl[this.id]=this,!m||!b){console.error("Failed to create chart: can't acquire context from the given item");return}Oa.listen(this,"complete",Bp),Oa.listen(this,"progress",R4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:r,maintainAspectRatio:o},width:n,height:t,_aspectRatio:e}=this;return xr(r)?o&&e?e:t?n/t:null:r}get data(){return this.config.data}set data(r){this.config.data=r}get options(){return this._options}set options(r){this.config.options=r}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():fp(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return np(this.canvas,this.ctx),this}stop(){return Oa.stop(this),this}resize(r,o){Oa.running(this)?this._resizeBeforeDraw={width:r,height:o}:this._resize(r,o)}_resize(r,o){const n=this.options,t=this.canvas,e=n.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(t,r,o,e),m=n.devicePixelRatio||this.platform.getDevicePixelRatio(),b=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,fp(this,m,!0)&&(this.notifyPlugins("resize",{size:u}),Or(n.onResize,[this,u],this),this.attached&&this._doResize(b)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};Dr(o,(n,t)=>{n.id=t})}buildOrUpdateScales(){const r=this.options,o=r.scales,n=this.scales,t=Object.keys(n).reduce((u,m)=>(u[m]=!1,u),{});let e=[];o&&(e=e.concat(Object.keys(o).map(u=>{const m=o[u],b=hf(u,m),_=b==="r",w=b==="x";return{options:m,dposition:_?"chartArea":w?"bottom":"left",dtype:_?"radialLinear":w?"category":"linear"}}))),Dr(e,u=>{const m=u.options,b=m.id,_=hf(b,m),w=Bt(m.type,u.dtype);(m.position===void 0||Ip(m.position,_)!==Ip(u.dposition))&&(m.position=u.dposition),t[b]=!0;let S=null;if(b in n&&n[b].type===w)S=n[b];else{const D=Ca.getScale(w);S=new D({id:b,type:w,ctx:this.ctx,chart:this}),n[S.id]=S}S.init(m,r)}),Dr(t,(u,m)=>{u||delete n[m]}),Dr(n,u=>{sa.configure(this,u,u.options),sa.addBox(this,u)})}_updateMetasets(){const r=this._metasets,o=this.data.datasets.length,n=r.length;if(r.sort((t,e)=>t.index-e.index),n>o){for(let t=o;t<n;++t)this._destroyDatasetMeta(t);r.splice(o,n-o)}this._sortedMetasets=r.slice(0).sort(Vp("order","index"))}_removeUnreferencedMetasets(){const{_metasets:r,data:{datasets:o}}=this;r.length>o.length&&delete this._stacks,r.forEach((n,t)=>{o.filter(e=>e===n._dataset).length===0&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){const r=[],o=this.data.datasets;let n,t;for(this._removeUnreferencedMetasets(),n=0,t=o.length;n<t;n++){const e=o[n];let u=this.getDatasetMeta(n);const m=e.type||this.config.type;if(u.type&&u.type!==m&&(this._destroyDatasetMeta(n),u=this.getDatasetMeta(n)),u.type=m,u.indexAxis=e.indexAxis||df(m,this.options),u.order=e.order||0,u.index=n,u.label=""+e.label,u.visible=this.isDatasetVisible(n),u.controller)u.controller.updateIndex(n),u.controller.linkScales();else{const b=Ca.getController(m),{datasetElementType:_,dataElementType:w}=or.datasets[m];Object.assign(b.prototype,{dataElementType:Ca.getElement(w),datasetElementType:_&&Ca.getElement(_)}),u.controller=new b(this,n),r.push(u.controller)}}return this._updateMetasets(),r}_resetElements(){Dr(this.data.datasets,(r,o)=>{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(r){const o=this.config;o.update();const n=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),t=this._animationsDisabled=!n.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:r,cancelable:!0})===!1)return;const e=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let u=0;for(let _=0,w=this.data.datasets.length;_<w;_++){const{controller:S}=this.getDatasetMeta(_),D=!t&&e.indexOf(S)===-1;S.buildOrUpdateElements(D),u=Math.max(+S.getMaxOverflow(),u)}u=this._minPadding=n.layout.autoPadding?u:0,this._updateLayout(u),t||Dr(e,_=>{_.reset()}),this._updateDatasets(r),this.notifyPlugins("afterUpdate",{mode:r}),this._layers.sort(Vp("z","_idx"));const{_active:m,_lastEvent:b}=this;b?this._eventHandler(b,!0):m.length&&this._updateHoverStyles(m,m,!0),this.render()}_updateScales(){Dr(this.scales,r=>{sa.removeBox(this,r)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const r=this.options,o=new Set(Object.keys(this._listeners)),n=new Set(r.events);(!J0(o,n)||!!this._responsiveListeners!==r.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:r}=this,o=this._getUniformDataChanges()||[];for(const{method:n,start:t,count:e}of o){const u=n==="_removeElements"?-e:e;L4(r,t,u)}}_getUniformDataChanges(){const r=this._dataChanges;if(!r||!r.length)return;this._dataChanges=[];const o=this.data.datasets.length,n=e=>new Set(r.filter(u=>u[0]===e).map((u,m)=>m+","+u.splice(1).join(","))),t=n(0);for(let e=1;e<o;e++)if(!J0(t,n(e)))return;return Array.from(t).map(e=>e.split(",")).map(e=>({method:e[1],start:+e[2],count:+e[3]}))}_updateLayout(r){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;sa.update(this,this.width,this.height,r);const o=this.chartArea,n=o.width<=0||o.height<=0;this._layers=[],Dr(this.boxes,t=>{n&&t.position==="chartArea"||(t.configure&&t.configure(),this._layers.push(...t._layers()))},this),this._layers.forEach((t,e)=>{t._idx=e}),this.notifyPlugins("afterLayout")}_updateDatasets(r){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:r,cancelable:!0})!==!1){for(let o=0,n=this.data.datasets.length;o<n;++o)this.getDatasetMeta(o).controller.configure();for(let o=0,n=this.data.datasets.length;o<n;++o)this._updateDataset(o,Xa(r)?r({datasetIndex:o}):r);this.notifyPlugins("afterDatasetsUpdate",{mode:r})}}_updateDataset(r,o){const n=this.getDatasetMeta(r),t={meta:n,index:r,mode:o,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",t)!==!1&&(n.controller._update(o),t.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",t))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(Oa.has(this)?this.attached&&!Oa.running(this)&&Oa.start(this):(this.draw(),Bp({chart:this})))}draw(){let r;if(this._resizeBeforeDraw){const{width:n,height:t}=this._resizeBeforeDraw;this._resize(n,t),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;const o=this._layers;for(r=0;r<o.length&&o[r].z<=0;++r)o[r].draw(this.chartArea);for(this._drawDatasets();r<o.length;++r)o[r].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(r){const o=this._sortedMetasets,n=[];let t,e;for(t=0,e=o.length;t<e;++t){const u=o[t];(!r||u.visible)&&n.push(u)}return n}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;const r=this.getSortedVisibleDatasetMetas();for(let o=r.length-1;o>=0;--o)this._drawDataset(r[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(r){const o=this.ctx,n=r._clip,t=!n.disabled,e=this.chartArea,u={meta:r,index:r.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",u)!==!1&&(t&&Lf(o,{left:n.left===!1?0:e.left-n.left,right:n.right===!1?this.width:e.right+n.right,top:n.top===!1?0:e.top-n.top,bottom:n.bottom===!1?this.height:e.bottom+n.bottom}),r.controller.draw(),t&&Mf(o),u.cancelable=!1,this.notifyPlugins("afterDatasetDraw",u))}isPointInArea(r){return $i(r,this.chartArea,this._minPadding)}getElementsAtEventForMode(r,o,n,t){const e=Kv.modes[o];return typeof e=="function"?e(this,r,n,t):[]}getDatasetMeta(r){const o=this.data.datasets[r],n=this._metasets;let t=n.filter(e=>e&&e._dataset===o).pop();return t||(t={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:o&&o.order||0,index:r,_dataset:o,_parsed:[],_sorted:!1},n.push(t)),t}getContext(){return this.$context||(this.$context=Qa(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(r){const o=this.data.datasets[r];if(!o)return!1;const n=this.getDatasetMeta(r);return typeof n.hidden=="boolean"?!n.hidden:!o.hidden}setDatasetVisibility(r,o){const n=this.getDatasetMeta(r);n.hidden=!o}toggleDataVisibility(r){this._hiddenIndices[r]=!this._hiddenIndices[r]}getDataVisibility(r){return!this._hiddenIndices[r]}_updateVisibility(r,o,n){const t=n?"show":"hide",e=this.getDatasetMeta(r),u=e.controller._resolveAnimations(void 0,t);aa(o)?(e.data[o].hidden=!n,this.update()):(this.setDatasetVisibility(r,n),u.update(e,{visible:n}),this.update(m=>m.datasetIndex===r?t:void 0))}hide(r,o){this._updateVisibility(r,o,!1)}show(r,o){this._updateVisibility(r,o,!0)}_destroyDatasetMeta(r){const o=this._metasets[r];o&&o.controller&&o.controller._destroy(),delete this._metasets[r]}_stop(){let r,o;for(this.stop(),Oa.remove(this),r=0,o=this.data.datasets.length;r<o;++r)this._destroyDatasetMeta(r)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:r,ctx:o}=this;this._stop(),this.config.clearCache(),r&&(this.unbindEvents(),np(r,o),this.platform.releaseContext(o),this.canvas=null,this.ctx=null),this.notifyPlugins("destroy"),delete gl[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...r){return this.canvas.toDataURL(...r)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const r=this._listeners,o=this.platform,n=(e,u)=>{o.addEventListener(this,e,u),r[e]=u},t=(e,u,m)=>{e.offsetX=u,e.offsetY=m,this._eventHandler(e)};Dr(this.options.events,e=>n(e,t))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const r=this._responsiveListeners,o=this.platform,n=(b,_)=>{o.addEventListener(this,b,_),r[b]=_},t=(b,_)=>{r[b]&&(o.removeEventListener(this,b,_),delete r[b])},e=(b,_)=>{this.canvas&&this.resize(b,_)};let u;const m=()=>{t("attach",m),this.attached=!0,this.resize(),n("resize",e),n("detach",u)};u=()=>{this.attached=!1,t("resize",e),this._stop(),this._resize(0,0),n("attach",m)},o.isAttached(this.canvas)?m():u()}unbindEvents(){Dr(this._listeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._listeners={},Dr(this._responsiveListeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._responsiveListeners=void 0}updateHoverStyle(r,o,n){const t=n?"set":"remove";let e,u,m,b;for(o==="dataset"&&(e=this.getDatasetMeta(r[0].datasetIndex),e.controller["_"+t+"DatasetHoverStyle"]()),m=0,b=r.length;m<b;++m){u=r[m];const _=u&&this.getDatasetMeta(u.datasetIndex).controller;_&&_[t+"HoverStyle"](u.element,u.datasetIndex,u.index)}}getActiveElements(){return this._active||[]}setActiveElements(r){const o=this._active||[],n=r.map(({datasetIndex:e,index:u})=>{const m=this.getDatasetMeta(e);if(!m)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:m.data[u],index:u}});!cl(n,o)&&(this._active=n,this._lastEvent=null,this._updateHoverStyles(n,o))}notifyPlugins(r,o,n){return this._plugins.notify(this,r,o,n)}_updateHoverStyles(r,o,n){const t=this.options.hover,e=(b,_)=>b.filter(w=>!_.some(S=>w.datasetIndex===S.datasetIndex&&w.index===S.index)),u=e(o,r),m=n?r:e(r,o);u.length&&this.updateHoverStyle(u,t.mode,!1),m.length&&t.mode&&this.updateHoverStyle(m,t.mode,!0)}_eventHandler(r,o){const n={event:r,replay:o,cancelable:!0,inChartArea:this.isPointInArea(r)},t=u=>(u.options.events||this.options.events).includes(r.native.type);if(this.notifyPlugins("beforeEvent",n,t)===!1)return;const e=this._handleEvent(r,o,n.inChartArea);return n.cancelable=!1,this.notifyPlugins("afterEvent",n,t),(e||n.changed)&&this.render(),this}_handleEvent(r,o,n){const{_active:t=[],options:e}=this,u=o,m=this._getActiveElements(r,t,n,u),b=Cy(r),_=M4(r,this._lastEvent,n,b);n&&(this._lastEvent=null,Or(e.onHover,[r,m,this],this),b&&Or(e.onClick,[r,m,this],this));const w=!cl(m,t);return(w||o)&&(this._active=m,this._updateHoverStyles(m,t,o)),this._lastEvent=_,w}_getActiveElements(r,o,n,t){if(r.type==="mouseout")return[];if(!n)return o;const e=this.options.hover;return this.getElementsAtEventForMode(r,e.mode,e,t)}}const Up=()=>Dr(Aa.instances,s=>s._plugins.invalidate()),Wa=!0;Object.defineProperties(Aa,{defaults:{enumerable:Wa,value:or},instances:{enumerable:Wa,value:gl},overrides:{enumerable:Wa,value:Ao},registry:{enumerable:Wa,value:Ca},version:{enumerable:Wa,value:T4},getChart:{enumerable:Wa,value:s1},register:{enumerable:Wa,value:(...s)=>{Ca.add(...s),Up()}},unregister:{enumerable:Wa,value:(...s)=>{Ca.remove(...s),Up()}}});function a1(s,r,o){const{startAngle:n,pixelMargin:t,x:e,y:u,outerRadius:m,innerRadius:b}=r;let _=t/m;s.beginPath(),s.arc(e,u,m,n-_,o+_),b>t?(_=t/b,s.arc(e,u,b,o+_,n-_,!0)):s.arc(e,u,t,o+Jr,n-Jr),s.closePath(),s.clip()}function O4(s){return Of(s,["outerStart","outerEnd","innerStart","innerEnd"])}function P4(s,r,o,n){const t=O4(s.options.borderRadius),e=(o-r)/2,u=Math.min(e,n*r/2),m=b=>{const _=(o-Math.min(e,b))*n/2;return Es(b,0,Math.min(e,_))};return{outerStart:m(t.outerStart),outerEnd:m(t.outerEnd),innerStart:Es(t.innerStart,0,u),innerEnd:Es(t.innerEnd,0,u)}}function Xo(s,r,o,n){return{x:o+s*Math.cos(r),y:n+s*Math.sin(r)}}function pf(s,r,o,n,t,e){const{x:u,y:m,startAngle:b,pixelMargin:_,innerRadius:w}=r,S=Math.max(r.outerRadius+n+o-_,0),D=w>0?w+n+o+_:0;let E=0;const M=t-b;if(n){const rt=w>0?w-n:0,kt=S>0?S-n:0,Tt=(rt+kt)/2,Sr=Tt!==0?M*Tt/(Tt+n):M;E=(M-Sr)/2}const V=Math.max(.001,M*S-o/Ur)/S,Y=(M-V)/2,U=b+Y+E,ee=t-Y-E,{outerStart:ie,outerEnd:z,innerStart:H,innerEnd:ne}=P4(r,D,S,ee-U),G=S-ie,De=S-z,ve=U+ie/G,ot=ee-z/De,ct=D+H,Je=D+ne,ft=U+H/ct,bt=ee-ne/Je;if(s.beginPath(),e){if(s.arc(u,m,S,ve,ot),z>0){const Tt=Xo(De,ot,u,m);s.arc(Tt.x,Tt.y,z,ot,ee+Jr)}const rt=Xo(Je,ee,u,m);if(s.lineTo(rt.x,rt.y),ne>0){const Tt=Xo(Je,bt,u,m);s.arc(Tt.x,Tt.y,ne,ee+Jr,bt+Math.PI)}if(s.arc(u,m,D,ee-ne/D,U+H/D,!0),H>0){const Tt=Xo(ct,ft,u,m);s.arc(Tt.x,Tt.y,H,ft+Math.PI,U-Jr)}const kt=Xo(G,U,u,m);if(s.lineTo(kt.x,kt.y),ie>0){const Tt=Xo(G,ve,u,m);s.arc(Tt.x,Tt.y,ie,U-Jr,ve)}}else{s.moveTo(u,m);const rt=Math.cos(ve)*S+u,kt=Math.sin(ve)*S+m;s.lineTo(rt,kt);const Tt=Math.cos(ot)*S+u,Sr=Math.sin(ot)*S+m;s.lineTo(Tt,Sr)}s.closePath()}function N4(s,r,o,n,t){const{fullCircles:e,startAngle:u,circumference:m}=r;let b=r.endAngle;if(e){pf(s,r,o,n,u+Mr,t);for(let _=0;_<e;++_)s.fill();isNaN(m)||(b=u+m%Mr,m%Mr===0&&(b+=Mr))}return pf(s,r,o,n,b,t),s.fill(),b}function I4(s,r,o){const{x:n,y:t,startAngle:e,pixelMargin:u,fullCircles:m}=r,b=Math.max(r.outerRadius-u,0),_=r.innerRadius+u;let w;for(o&&a1(s,r,e+Mr),s.beginPath(),s.arc(n,t,_,e+Mr,e,!0),w=0;w<m;++w)s.stroke();for(s.beginPath(),s.arc(n,t,b,e,e+Mr),w=0;w<m;++w)s.stroke()}function V4(s,r,o,n,t,e){const{options:u}=r,{borderWidth:m,borderJoinStyle:b}=u,_=u.borderAlign==="inner";m&&(_?(s.lineWidth=m*2,s.lineJoin=b||"round"):(s.lineWidth=m,s.lineJoin=b||"bevel"),r.fullCircles&&I4(s,r,_),_&&a1(s,r,t),pf(s,r,o,n,t,e),s.stroke())}class Wf extends da{constructor(r){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,r&&Object.assign(this,r)}inRange(r,o,n){const t=this.getProps(["x","y"],n),{angle:e,distance:u}=_m(t,{x:r,y:o}),{startAngle:m,endAngle:b,innerRadius:_,outerRadius:w,circumference:S}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],n),D=this.options.spacing/2,M=Bt(S,b-m)>=Mr||Zi(e,m,b),V=Ha(u,_+D,w+D);return M&&V}getCenterPoint(r){const{x:o,y:n,startAngle:t,endAngle:e,innerRadius:u,outerRadius:m}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],r),{offset:b,spacing:_}=this.options,w=(t+e)/2,S=(u+m+_+b)/2;return{x:o+Math.cos(w)*S,y:n+Math.sin(w)*S}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:o,circumference:n}=this,t=(o.offset||0)/2,e=(o.spacing||0)/2,u=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=n>Mr?Math.floor(n/Mr):0,n===0||this.innerRadius<0||this.outerRadius<0)return;r.save();let m=0;if(t){m=t/2;const _=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(_)*m,Math.sin(_)*m),this.circumference>=Ur&&(m=t)}r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor;const b=N4(r,this,m,e,u);V4(r,this,m,e,b,u),r.restore()}}Wf.id="arc";Wf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};Wf.defaultRoutes={backgroundColor:"backgroundColor"};function o1(s,r,o=r){s.lineCap=Bt(o.borderCapStyle,r.borderCapStyle),s.setLineDash(Bt(o.borderDash,r.borderDash)),s.lineDashOffset=Bt(o.borderDashOffset,r.borderDashOffset),s.lineJoin=Bt(o.borderJoinStyle,r.borderJoinStyle),s.lineWidth=Bt(o.borderWidth,r.borderWidth),s.strokeStyle=Bt(o.borderColor,r.borderColor)}function B4(s,r,o){s.lineTo(o.x,o.y)}function U4(s){return s.stepped?i_:s.tension||s.cubicInterpolationMode==="monotone"?n_:B4}function i1(s,r,o={}){const n=s.length,{start:t=0,end:e=n-1}=o,{start:u,end:m}=r,b=Math.max(t,u),_=Math.min(e,m),w=t<u&&e<u||t>m&&e>m;return{count:n,start:b,loop:r.loop,ilen:_<b&&!w?n+_-b:_-b}}function z4(s,r,o,n){const{points:t,options:e}=r,{count:u,start:m,loop:b,ilen:_}=i1(t,o,n),w=U4(e);let{move:S=!0,reverse:D}=n||{},E,M,V;for(E=0;E<=_;++E)M=t[(m+(D?_-E:E))%u],!M.skip&&(S?(s.moveTo(M.x,M.y),S=!1):w(s,V,M,D,e.stepped),V=M);return b&&(M=t[(m+(D?_:0))%u],w(s,V,M,D,e.stepped)),!!b}function G4(s,r,o,n){const t=r.points,{count:e,start:u,ilen:m}=i1(t,o,n),{move:b=!0,reverse:_}=n||{};let w=0,S=0,D,E,M,V,Y,U;const ee=z=>(u+(_?m-z:z))%e,ie=()=>{V!==Y&&(s.lineTo(w,Y),s.lineTo(w,V),s.lineTo(w,U))};for(b&&(E=t[ee(0)],s.moveTo(E.x,E.y)),D=0;D<=m;++D){if(E=t[ee(D)],E.skip)continue;const z=E.x,H=E.y,ne=z|0;ne===M?(H<V?V=H:H>Y&&(Y=H),w=(S*w+z)/++S):(ie(),s.lineTo(z,H),M=ne,S=0,V=Y=H),U=H}ie()}function mf(s){const r=s.options,o=r.borderDash&&r.borderDash.length;return!s._decimated&&!s._loop&&!r.tension&&r.cubicInterpolationMode!=="monotone"&&!r.stepped&&!o?G4:z4}function j4(s){return s.stepped?V_:s.tension||s.cubicInterpolationMode==="monotone"?B_:wo}function W4(s,r,o,n){let t=r._path;t||(t=r._path=new Path2D,r.path(t,o,n)&&t.closePath()),o1(s,r.options),s.stroke(t)}function H4(s,r,o,n){const{segments:t,options:e}=r,u=mf(r);for(const m of t)o1(s,e,m.style),s.beginPath(),u(s,r,m,{start:o,end:o+n-1})&&s.closePath(),s.stroke()}const Y4=typeof Path2D=="function";function q4(s,r,o,n){Y4&&!r.options.segment?W4(s,r,o,n):H4(s,r,o,n)}class wl extends da{constructor(r){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,r&&Object.assign(this,r)}updateControlPoints(r,o){const n=this.options;if((n.tension||n.cubicInterpolationMode==="monotone")&&!n.stepped&&!this._pointsUpdated){const t=n.spanGaps?this._loop:this._fullLoop;k_(this._points,n,r,t,o),this._pointsUpdated=!0}}set points(r){this._points=r,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=K_(this,this.options.segment))}first(){const r=this.segments,o=this.points;return r.length&&o[r[0].start]}last(){const r=this.segments,o=this.points,n=r.length;return n&&o[r[n-1].end]}interpolate(r,o){const n=this.options,t=r[o],e=this.points,u=H_(this,{property:o,start:t,end:t});if(!u.length)return;const m=[],b=j4(n);let _,w;for(_=0,w=u.length;_<w;++_){const{start:S,end:D}=u[_],E=e[S],M=e[D];if(E===M){m.push(E);continue}const V=Math.abs((t-E[o])/(M[o]-E[o])),Y=b(E,M,V,n.stepped);Y[o]=r[o],m.push(Y)}return m.length===1?m[0]:m}pathSegment(r,o,n){return mf(this)(r,this,o,n)}path(r,o,n){const t=this.segments,e=mf(this);let u=this._loop;o=o||0,n=n||this.points.length-o;for(const m of t)u&=e(r,this,m,{start:o,end:o+n-1});return!!u}draw(r,o,n,t){const e=this.options||{};(this.points||[]).length&&e.borderWidth&&(r.save(),q4(r,this,n,t),r.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}wl.id="line";wl.defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};wl.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};wl.descriptors={_scriptable:!0,_indexable:s=>s!=="borderDash"&&s!=="fill"};function zp(s,r,o,n){const t=s.options,{[o]:e}=s.getProps([o],n);return Math.abs(r-e)<t.radius+t.hitRadius}class Hf extends da{constructor(r){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,r&&Object.assign(this,r)}inRange(r,o,n){const t=this.options,{x:e,y:u}=this.getProps(["x","y"],n);return Math.pow(r-e,2)+Math.pow(o-u,2)<Math.pow(t.hitRadius+t.radius,2)}inXRange(r,o){return zp(this,r,"x",o)}inYRange(r,o){return zp(this,r,"y",o)}getCenterPoint(r){const{x:o,y:n}=this.getProps(["x","y"],r);return{x:o,y:n}}size(r){r=r||this.options||{};let o=r.radius||0;o=Math.max(o,o&&r.hoverRadius||0);const n=o&&r.borderWidth||0;return(o+n)*2}draw(r,o){const n=this.options;this.skip||n.radius<.1||!$i(this,o,this.size(n)/2)||(r.strokeStyle=n.borderColor,r.lineWidth=n.borderWidth,r.fillStyle=n.backgroundColor,ff(r,n,this.x,this.y))}getRange(){const r=this.options||{};return r.radius+r.hitRadius}}Hf.id="point";Hf.defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};Hf.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};function n1(s,r){const{x:o,y:n,base:t,width:e,height:u}=s.getProps(["x","y","base","width","height"],r);let m,b,_,w,S;return s.horizontal?(S=u/2,m=Math.min(o,t),b=Math.max(o,t),_=n-S,w=n+S):(S=e/2,m=o-S,b=o+S,_=Math.min(n,t),w=Math.max(n,t)),{left:m,top:_,right:b,bottom:w}}function qa(s,r,o,n){return s?0:Es(r,o,n)}function K4(s,r,o){const n=s.options.borderWidth,t=s.borderSkipped,e=Lm(n);return{t:qa(t.top,e.top,0,o),r:qa(t.right,e.right,0,r),b:qa(t.bottom,e.bottom,0,o),l:qa(t.left,e.left,0,r)}}function J4(s,r,o){const{enableBorderRadius:n}=s.getProps(["enableBorderRadius"]),t=s.options.borderRadius,e=Co(t),u=Math.min(r,o),m=s.borderSkipped,b=n||br(t);return{topLeft:qa(!b||m.top||m.left,e.topLeft,0,u),topRight:qa(!b||m.top||m.right,e.topRight,0,u),bottomLeft:qa(!b||m.bottom||m.left,e.bottomLeft,0,u),bottomRight:qa(!b||m.bottom||m.right,e.bottomRight,0,u)}}function X4(s){const r=n1(s),o=r.right-r.left,n=r.bottom-r.top,t=K4(s,o/2,n/2),e=J4(s,o/2,n/2);return{outer:{x:r.left,y:r.top,w:o,h:n,radius:e},inner:{x:r.left+t.l,y:r.top+t.t,w:o-t.l-t.r,h:n-t.t-t.b,radius:{topLeft:Math.max(0,e.topLeft-Math.max(t.t,t.l)),topRight:Math.max(0,e.topRight-Math.max(t.t,t.r)),bottomLeft:Math.max(0,e.bottomLeft-Math.max(t.b,t.l)),bottomRight:Math.max(0,e.bottomRight-Math.max(t.b,t.r))}}}}function tf(s,r,o,n){const t=r===null,e=o===null,m=s&&!(t&&e)&&n1(s,n);return m&&(t||Ha(r,m.left,m.right))&&(e||Ha(o,m.top,m.bottom))}function Q4(s){return s.topLeft||s.topRight||s.bottomLeft||s.bottomRight}function Z4(s,r){s.rect(r.x,r.y,r.w,r.h)}function rf(s,r,o={}){const n=s.x!==o.x?-r:0,t=s.y!==o.y?-r:0,e=(s.x+s.w!==o.x+o.w?r:0)-n,u=(s.y+s.h!==o.y+o.h?r:0)-t;return{x:s.x+n,y:s.y+t,w:s.w+e,h:s.h+u,radius:s.radius}}class ko extends da{constructor(r){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,r&&Object.assign(this,r)}draw(r){const{inflateAmount:o,options:{borderColor:n,backgroundColor:t}}=this,{inner:e,outer:u}=X4(this),m=Q4(u.radius)?en:Z4;r.save(),(u.w!==e.w||u.h!==e.h)&&(r.beginPath(),m(r,rf(u,o,e)),r.clip(),m(r,rf(e,-o,u)),r.fillStyle=n,r.fill("evenodd")),r.beginPath(),m(r,rf(e,o)),r.fillStyle=t,r.fill(),r.restore()}inRange(r,o,n){return tf(this,r,o,n)}inXRange(r,o){return tf(this,r,null,o)}inYRange(r,o){return tf(this,null,r,o)}getCenterPoint(r){const{x:o,y:n,base:t,horizontal:e}=this.getProps(["x","y","base","horizontal"],r);return{x:e?(o+t)/2:o,y:e?n:(n+t)/2}}getRange(r){return r==="x"?this.width/2:this.height/2}}ko.id="bar";ko.defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};ko.defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};const Gp=(s,r)=>{let{boxHeight:o=r,boxWidth:n=r}=s;return s.usePointStyle&&(o=Math.min(o,r),n=s.pointStyleWidth||Math.min(n,r)),{boxWidth:n,boxHeight:o,itemHeight:Math.max(r,o)}},$4=(s,r)=>s!==null&&r!==null&&s.datasetIndex===r.datasetIndex&&s.index===r.index;class jp extends da{constructor(r){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,o,n){this.maxWidth=r,this.maxHeight=o,this._margins=n,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const r=this.options.labels||{};let o=Or(r.generateLabels,[this.chart],this)||[];r.filter&&(o=o.filter(n=>r.filter(n,this.chart.data))),r.sort&&(o=o.sort((n,t)=>r.sort(n,t,this.chart.data))),this.options.reverse&&o.reverse(),this.legendItems=o}fit(){const{options:r,ctx:o}=this;if(!r.display){this.width=this.height=0;return}const n=r.labels,t=us(n.font),e=t.size,u=this._computeTitleHeight(),{boxWidth:m,itemHeight:b}=Gp(n,e);let _,w;o.font=t.string,this.isHorizontal()?(_=this.maxWidth,w=this._fitRows(u,e,m,b)+10):(w=this.maxHeight,_=this._fitCols(u,e,m,b)+10),this.width=Math.min(_,r.maxWidth||this.maxWidth),this.height=Math.min(w,r.maxHeight||this.maxHeight)}_fitRows(r,o,n,t){const{ctx:e,maxWidth:u,options:{labels:{padding:m}}}=this,b=this.legendHitBoxes=[],_=this.lineWidths=[0],w=t+m;let S=r;e.textAlign="left",e.textBaseline="middle";let D=-1,E=-w;return this.legendItems.forEach((M,V)=>{const Y=n+o/2+e.measureText(M.text).width;(V===0||_[_.length-1]+Y+2*m>u)&&(S+=w,_[_.length-(V>0?0:1)]=0,E+=w,D++),b[V]={left:0,top:E,row:D,width:Y,height:t},_[_.length-1]+=Y+m}),S}_fitCols(r,o,n,t){const{ctx:e,maxHeight:u,options:{labels:{padding:m}}}=this,b=this.legendHitBoxes=[],_=this.columnSizes=[],w=u-r;let S=m,D=0,E=0,M=0,V=0;return this.legendItems.forEach((Y,U)=>{const ee=n+o/2+e.measureText(Y.text).width;U>0&&E+t+2*m>w&&(S+=D+m,_.push({width:D,height:E}),M+=D+m,V++,D=E=0),b[U]={left:M,top:E,col:V,width:ee,height:t},D=Math.max(D,ee),E+=t+m}),S+=D,_.push({width:D,height:E}),S}adjustHitBoxes(){if(!this.options.display)return;const r=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:n,labels:{padding:t},rtl:e}}=this,u=Qo(e,this.left,this.width);if(this.isHorizontal()){let m=0,b=Ss(n,this.left+t,this.right-this.lineWidths[m]);for(const _ of o)m!==_.row&&(m=_.row,b=Ss(n,this.left+t,this.right-this.lineWidths[m])),_.top+=this.top+r+t,_.left=u.leftForLtr(u.x(b),_.width),b+=_.width+t}else{let m=0,b=Ss(n,this.top+r+t,this.bottom-this.columnSizes[m].height);for(const _ of o)_.col!==m&&(m=_.col,b=Ss(n,this.top+r+t,this.bottom-this.columnSizes[m].height)),_.top=b,_.left+=this.left+t,_.left=u.leftForLtr(u.x(_.left),_.width),b+=_.height+t}}isHorizontal(){return this.options.position==="top"||this.options.position==="bottom"}draw(){if(this.options.display){const r=this.ctx;Lf(r,this),this._draw(),Mf(r)}}_draw(){const{options:r,columnSizes:o,lineWidths:n,ctx:t}=this,{align:e,labels:u}=r,m=or.color,b=Qo(r.rtl,this.left,this.width),_=us(u.font),{color:w,padding:S}=u,D=_.size,E=D/2;let M;this.drawTitle(),t.textAlign=b.textAlign("left"),t.textBaseline="middle",t.lineWidth=.5,t.font=_.string;const{boxWidth:V,boxHeight:Y,itemHeight:U}=Gp(u,D),ee=function(G,De,ve){if(isNaN(V)||V<=0||isNaN(Y)||Y<0)return;t.save();const ot=Bt(ve.lineWidth,1);if(t.fillStyle=Bt(ve.fillStyle,m),t.lineCap=Bt(ve.lineCap,"butt"),t.lineDashOffset=Bt(ve.lineDashOffset,0),t.lineJoin=Bt(ve.lineJoin,"miter"),t.lineWidth=ot,t.strokeStyle=Bt(ve.strokeStyle,m),t.setLineDash(Bt(ve.lineDash,[])),u.usePointStyle){const ct={radius:Y*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:ot},Je=b.xPlus(G,V/2),ft=De+E;Rm(t,ct,Je,ft,u.pointStyleWidth&&V)}else{const ct=De+Math.max((D-Y)/2,0),Je=b.leftForLtr(G,V),ft=Co(ve.borderRadius);t.beginPath(),Object.values(ft).some(bt=>bt!==0)?en(t,{x:Je,y:ct,w:V,h:Y,radius:ft}):t.rect(Je,ct,V,Y),t.fill(),ot!==0&&t.stroke()}t.restore()},ie=function(G,De,ve){Do(t,ve.text,G,De+U/2,_,{strikethrough:ve.hidden,textAlign:b.textAlign(ve.textAlign)})},z=this.isHorizontal(),H=this._computeTitleHeight();z?M={x:Ss(e,this.left+S,this.right-n[0]),y:this.top+S+H,line:0}:M={x:this.left+S,y:Ss(e,this.top+H+S,this.bottom-o[0].height),line:0},Um(this.ctx,r.textDirection);const ne=U+S;this.legendItems.forEach((G,De)=>{t.strokeStyle=G.fontColor||w,t.fillStyle=G.fontColor||w;const ve=t.measureText(G.text).width,ot=b.textAlign(G.textAlign||(G.textAlign=u.textAlign)),ct=V+E+ve;let Je=M.x,ft=M.y;b.setWidth(this.width),z?De>0&&Je+ct+S>this.right&&(ft=M.y+=ne,M.line++,Je=M.x=Ss(e,this.left+S,this.right-n[M.line])):De>0&&ft+ne>this.bottom&&(Je=M.x=Je+o[M.line].width+S,M.line++,ft=M.y=Ss(e,this.top+H+S,this.bottom-o[M.line].height));const bt=b.x(Je);ee(bt,ft,G),Je=Oy(ot,Je+V+E,z?Je+ct:this.right,r.rtl),ie(b.x(Je),ft,G),z?M.x+=ct+S:M.y+=ne}),zm(this.ctx,r.textDirection)}drawTitle(){const r=this.options,o=r.title,n=us(o.font),t=Ts(o.padding);if(!o.display)return;const e=Qo(r.rtl,this.left,this.width),u=this.ctx,m=o.position,b=n.size/2,_=t.top+b;let w,S=this.left,D=this.width;if(this.isHorizontal())D=Math.max(...this.lineWidths),w=this.top+_,S=Ss(r.align,S,this.right-D);else{const M=this.columnSizes.reduce((V,Y)=>Math.max(V,Y.height),0);w=_+Ss(r.align,this.top,this.bottom-M-r.labels.padding-this._computeTitleHeight())}const E=Ss(m,S,S+D);u.textAlign=e.textAlign(Ef(m)),u.textBaseline="middle",u.strokeStyle=o.color,u.fillStyle=o.color,u.font=n.string,Do(u,o.text,E,w,n)}_computeTitleHeight(){const r=this.options.title,o=us(r.font),n=Ts(r.padding);return r.display?o.lineHeight+n.height:0}_getLegendItemAt(r,o){let n,t,e;if(Ha(r,this.left,this.right)&&Ha(o,this.top,this.bottom)){for(e=this.legendHitBoxes,n=0;n<e.length;++n)if(t=e[n],Ha(r,t.left,t.left+t.width)&&Ha(o,t.top,t.top+t.height))return this.legendItems[n]}return null}handleEvent(r){const o=this.options;if(!ew(r.type,o))return;const n=this._getLegendItemAt(r.x,r.y);if(r.type==="mousemove"||r.type==="mouseout"){const t=this._hoveredItem,e=$4(t,n);t&&!e&&Or(o.onLeave,[r,t,this],this),this._hoveredItem=n,n&&!e&&Or(o.onHover,[r,n,this],this)}else n&&Or(o.onClick,[r,n,this],this)}}function ew(s,r){return!!((s==="mousemove"||s==="mouseout")&&(r.onHover||r.onLeave)||r.onClick&&(s==="click"||s==="mouseup"))}var xl={id:"legend",_element:jp,start(s,r,o){const n=s.legend=new jp({ctx:s.ctx,options:o,chart:s});sa.configure(s,n,o),sa.addBox(s,n)},stop(s){sa.removeBox(s,s.legend),delete s.legend},beforeUpdate(s,r,o){const n=s.legend;sa.configure(s,n,o),n.options=o},afterUpdate(s){const r=s.legend;r.buildLabels(),r.adjustHitBoxes()},afterEvent(s,r){r.replay||s.legend.handleEvent(r.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(s,r,o){const n=r.datasetIndex,t=o.chart;t.isDatasetVisible(n)?(t.hide(n),r.hidden=!0):(t.show(n),r.hidden=!1)},onHover:null,onLeave:null,labels:{color:s=>s.chart.options.color,boxWidth:40,padding:10,generateLabels(s){const r=s.data.datasets,{labels:{usePointStyle:o,pointStyle:n,textAlign:t,color:e}}=s.legend.options;return s._getSortedDatasetMetas().map(u=>{const m=u.controller.getStyle(o?0:void 0),b=Ts(m.borderWidth);return{text:r[u.index].label,fillStyle:m.backgroundColor,fontColor:e,hidden:!u.visible,lineCap:m.borderCapStyle,lineDash:m.borderDash,lineDashOffset:m.borderDashOffset,lineJoin:m.borderJoinStyle,lineWidth:(b.width+b.height)/4,strokeStyle:m.borderColor,pointStyle:n||m.pointStyle,rotation:m.rotation,textAlign:t||m.textAlign,borderRadius:0,datasetIndex:u.index}},this)}},title:{color:s=>s.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:s=>!s.startsWith("on"),labels:{_scriptable:s=>!["generateLabels","filter","sort"].includes(s)}}};class l1 extends da{constructor(r){super(),this.chart=r.chart,this.options=r.options,this.ctx=r.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(r,o){const n=this.options;if(this.left=0,this.top=0,!n.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=r,this.height=this.bottom=o;const t=Vr(n.text)?n.text.length:1;this._padding=Ts(n.padding);const e=t*us(n.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=e:this.width=e}isHorizontal(){const r=this.options.position;return r==="top"||r==="bottom"}_drawArgs(r){const{top:o,left:n,bottom:t,right:e,options:u}=this,m=u.align;let b=0,_,w,S;return this.isHorizontal()?(w=Ss(m,n,e),S=o+r,_=e-n):(u.position==="left"?(w=n+r,S=Ss(m,t,o),b=Ur*-.5):(w=e-r,S=Ss(m,o,t),b=Ur*.5),_=t-o),{titleX:w,titleY:S,maxWidth:_,rotation:b}}draw(){const r=this.ctx,o=this.options;if(!o.display)return;const n=us(o.font),e=n.lineHeight/2+this._padding.top,{titleX:u,titleY:m,maxWidth:b,rotation:_}=this._drawArgs(e);Do(r,o.text,0,0,n,{color:o.color,maxWidth:b,rotation:_,textAlign:Ef(o.align),textBaseline:"middle",translation:[u,m]})}}function tw(s,r){const o=new l1({ctx:s.ctx,options:r,chart:s});sa.configure(s,o,r),sa.addBox(s,o),s.titleBlock=o}var Cl={id:"title",_element:l1,start(s,r,o){tw(s,o)},stop(s){const r=s.titleBlock;sa.removeBox(s,r),delete s.titleBlock},beforeUpdate(s,r,o){const n=s.titleBlock;sa.configure(s,n,o),n.options=o},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Xi={average(s){if(!s.length)return!1;let r,o,n=0,t=0,e=0;for(r=0,o=s.length;r<o;++r){const u=s[r].element;if(u&&u.hasValue()){const m=u.tooltipPosition();n+=m.x,t+=m.y,++e}}return{x:n/e,y:t/e}},nearest(s,r){if(!s.length)return!1;let o=r.x,n=r.y,t=Number.POSITIVE_INFINITY,e,u,m;for(e=0,u=s.length;e<u;++e){const b=s[e].element;if(b&&b.hasValue()){const _=b.getCenterPoint(),w=nf(r,_);w<t&&(t=w,m=b)}}if(m){const b=m.tooltipPosition();o=b.x,n=b.y}return{x:o,y:n}}};function xa(s,r){return r&&(Vr(r)?Array.prototype.push.apply(s,r):s.push(r)),s}function Pa(s){return(typeof s=="string"||s instanceof String)&&s.indexOf(` `)>-1?s.split(` `):s}function rw(s,r){const{element:o,datasetIndex:n,index:t}=r,e=s.getDatasetMeta(n).controller,{label:u,value:m}=e.getLabelAndValue(t);return{chart:s,label:u,parsed:e.getParsed(t),raw:s.data.datasets[n].data[t],formattedValue:m,dataset:e.getDataset(),dataIndex:t,datasetIndex:n,element:o}}function Wp(s,r){const o=s.chart.ctx,{body:n,footer:t,title:e}=s,{boxWidth:u,boxHeight:m}=r,b=us(r.bodyFont),_=us(r.titleFont),w=us(r.footerFont),S=e.length,D=t.length,E=n.length,M=Ts(r.padding);let V=M.height,Y=0,U=n.reduce((z,H)=>z+H.before.length+H.lines.length+H.after.length,0);if(U+=s.beforeBody.length+s.afterBody.length,S&&(V+=S*_.lineHeight+(S-1)*r.titleSpacing+r.titleMarginBottom),U){const z=r.displayColors?Math.max(m,b.lineHeight):b.lineHeight;V+=E*z+(U-E)*b.lineHeight+(U-1)*r.bodySpacing}D&&(V+=r.footerMarginTop+D*w.lineHeight+(D-1)*r.footerSpacing);let ee=0;const ie=function(z){Y=Math.max(Y,o.measureText(z).width+ee)};return o.save(),o.font=_.string,Dr(s.title,ie),o.font=b.string,Dr(s.beforeBody.concat(s.afterBody),ie),ee=r.displayColors?u+2+r.boxPadding:0,Dr(n,z=>{Dr(z.before,ie),Dr(z.lines,ie),Dr(z.after,ie)}),ee=0,o.font=w.string,Dr(s.footer,ie),o.restore(),Y+=M.width,{width:Y,height:V}}function sw(s,r){const{y:o,height:n}=r;return o<n/2?"top":o>s.height-n/2?"bottom":"center"}function aw(s,r,o,n){const{x:t,width:e}=n,u=o.caretSize+o.caretPadding;if(s==="left"&&t+e+u>r.width||s==="right"&&t-e-u<0)return!0}function ow(s,r,o,n){const{x:t,width:e}=o,{width:u,chartArea:{left:m,right:b}}=s;let _="center";return n==="center"?_=t<=(m+b)/2?"left":"right":t<=e/2?_="left":t>=u-e/2&&(_="right"),aw(_,s,r,o)&&(_="center"),_}function Hp(s,r,o){const n=o.yAlign||r.yAlign||sw(s,o);return{xAlign:o.xAlign||r.xAlign||ow(s,r,o,n),yAlign:n}}function iw(s,r){let{x:o,width:n}=s;return r==="right"?o-=n:r==="center"&&(o-=n/2),o}function nw(s,r,o){let{y:n,height:t}=s;return r==="top"?n+=o:r==="bottom"?n-=t+o:n-=t/2,n}function Yp(s,r,o,n){const{caretSize:t,caretPadding:e,cornerRadius:u}=s,{xAlign:m,yAlign:b}=o,_=t+e,{topLeft:w,topRight:S,bottomLeft:D,bottomRight:E}=Co(u);let M=iw(r,m);const V=nw(r,b,_);return b==="center"?m==="left"?M+=_:m==="right"&&(M-=_):m==="left"?M-=Math.max(w,D)+t:m==="right"&&(M+=Math.max(S,E)+t),{x:Es(M,0,n.width-r.width),y:Es(V,0,n.height-r.height)}}function ol(s,r,o){const n=Ts(o.padding);return r==="center"?s.x+s.width/2:r==="right"?s.x+s.width-n.right:s.x+n.left}function qp(s){return xa([],Pa(s))}function lw(s,r,o){return Qa(s,{tooltip:r,tooltipItems:o,type:"tooltip"})}function Kp(s,r){const o=r&&r.dataset&&r.dataset.tooltip&&r.dataset.tooltip.callbacks;return o?s.override(o):s}class gf extends da{constructor(r){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=r.chart||r._chart,this._chart=this.chart,this.options=r.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(r){this.options=r,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const r=this._cachedAnimations;if(r)return r;const o=this.chart,n=this.options.setContext(this.getContext()),t=n.enabled&&o.options.animation&&n.animations,e=new jm(this.chart,t);return t._cacheable&&(this._cachedAnimations=Object.freeze(e)),e}getContext(){return this.$context||(this.$context=lw(this.chart.getContext(),this,this._tooltipItems))}getTitle(r,o){const{callbacks:n}=o,t=n.beforeTitle.apply(this,[r]),e=n.title.apply(this,[r]),u=n.afterTitle.apply(this,[r]);let m=[];return m=xa(m,Pa(t)),m=xa(m,Pa(e)),m=xa(m,Pa(u)),m}getBeforeBody(r,o){return qp(o.callbacks.beforeBody.apply(this,[r]))}getBody(r,o){const{callbacks:n}=o,t=[];return Dr(r,e=>{const u={before:[],lines:[],after:[]},m=Kp(n,e);xa(u.before,Pa(m.beforeLabel.call(this,e))),xa(u.lines,m.label.call(this,e)),xa(u.after,Pa(m.afterLabel.call(this,e))),t.push(u)}),t}getAfterBody(r,o){return qp(o.callbacks.afterBody.apply(this,[r]))}getFooter(r,o){const{callbacks:n}=o,t=n.beforeFooter.apply(this,[r]),e=n.footer.apply(this,[r]),u=n.afterFooter.apply(this,[r]);let m=[];return m=xa(m,Pa(t)),m=xa(m,Pa(e)),m=xa(m,Pa(u)),m}_createItems(r){const o=this._active,n=this.chart.data,t=[],e=[],u=[];let m=[],b,_;for(b=0,_=o.length;b<_;++b)m.push(rw(this.chart,o[b]));return r.filter&&(m=m.filter((w,S,D)=>r.filter(w,S,D,n))),r.itemSort&&(m=m.sort((w,S)=>r.itemSort(w,S,n))),Dr(m,w=>{const S=Kp(r.callbacks,w);t.push(S.labelColor.call(this,w)),e.push(S.labelPointStyle.call(this,w)),u.push(S.labelTextColor.call(this,w))}),this.labelColors=t,this.labelPointStyles=e,this.labelTextColors=u,this.dataPoints=m,m}update(r,o){const n=this.options.setContext(this.getContext()),t=this._active;let e,u=[];if(!t.length)this.opacity!==0&&(e={opacity:0});else{const m=Xi[n.position].call(this,t,this._eventPosition);u=this._createItems(n),this.title=this.getTitle(u,n),this.beforeBody=this.getBeforeBody(u,n),this.body=this.getBody(u,n),this.afterBody=this.getAfterBody(u,n),this.footer=this.getFooter(u,n);const b=this._size=Wp(this,n),_=Object.assign({},m,b),w=Hp(this.chart,n,_),S=Yp(n,_,w,this.chart);this.xAlign=w.xAlign,this.yAlign=w.yAlign,e={opacity:1,x:S.x,y:S.y,width:b.width,height:b.height,caretX:m.x,caretY:m.y}}this._tooltipItems=u,this.$context=void 0,e&&this._resolveAnimations().update(this,e),r&&n.external&&n.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(r,o,n,t){const e=this.getCaretPosition(r,n,t);o.lineTo(e.x1,e.y1),o.lineTo(e.x2,e.y2),o.lineTo(e.x3,e.y3)}getCaretPosition(r,o,n){const{xAlign:t,yAlign:e}=this,{caretSize:u,cornerRadius:m}=n,{topLeft:b,topRight:_,bottomLeft:w,bottomRight:S}=Co(m),{x:D,y:E}=r,{width:M,height:V}=o;let Y,U,ee,ie,z,H;return e==="center"?(z=E+V/2,t==="left"?(Y=D,U=Y-u,ie=z+u,H=z-u):(Y=D+M,U=Y+u,ie=z-u,H=z+u),ee=Y):(t==="left"?U=D+Math.max(b,w)+u:t==="right"?U=D+M-Math.max(_,S)-u:U=this.caretX,e==="top"?(ie=E,z=ie-u,Y=U-u,ee=U+u):(ie=E+V,z=ie+u,Y=U+u,ee=U-u),H=ie),{x1:Y,x2:U,x3:ee,y1:ie,y2:z,y3:H}}drawTitle(r,o,n){const t=this.title,e=t.length;let u,m,b;if(e){const _=Qo(n.rtl,this.x,this.width);for(r.x=ol(this,n.titleAlign,n),o.textAlign=_.textAlign(n.titleAlign),o.textBaseline="middle",u=us(n.titleFont),m=n.titleSpacing,o.fillStyle=n.titleColor,o.font=u.string,b=0;b<e;++b)o.fillText(t[b],_.x(r.x),r.y+u.lineHeight/2),r.y+=u.lineHeight+m,b+1===e&&(r.y+=n.titleMarginBottom-m)}}_drawColorBox(r,o,n,t,e){const u=this.labelColors[n],m=this.labelPointStyles[n],{boxHeight:b,boxWidth:_,boxPadding:w}=e,S=us(e.bodyFont),D=ol(this,"left",e),E=t.x(D),M=b<S.lineHeight?(S.lineHeight-b)/2:0,V=o.y+M;if(e.usePointStyle){const Y={radius:Math.min(_,b)/2,pointStyle:m.pointStyle,rotation:m.rotation,borderWidth:1},U=t.leftForLtr(E,_)+_/2,ee=V+b/2;r.strokeStyle=e.multiKeyBackground,r.fillStyle=e.multiKeyBackground,ff(r,Y,U,ee),r.strokeStyle=u.borderColor,r.fillStyle=u.backgroundColor,ff(r,Y,U,ee)}else{r.lineWidth=br(u.borderWidth)?Math.max(...Object.values(u.borderWidth)):u.borderWidth||1,r.strokeStyle=u.borderColor,r.setLineDash(u.borderDash||[]),r.lineDashOffset=u.borderDashOffset||0;const Y=t.leftForLtr(E,_-w),U=t.leftForLtr(t.xPlus(E,1),_-w-2),ee=Co(u.borderRadius);Object.values(ee).some(ie=>ie!==0)?(r.beginPath(),r.fillStyle=e.multiKeyBackground,en(r,{x:Y,y:V,w:_,h:b,radius:ee}),r.fill(),r.stroke(),r.fillStyle=u.backgroundColor,r.beginPath(),en(r,{x:U,y:V+1,w:_-2,h:b-2,radius:ee}),r.fill()):(r.fillStyle=e.multiKeyBackground,r.fillRect(Y,V,_,b),r.strokeRect(Y,V,_,b),r.fillStyle=u.backgroundColor,r.fillRect(U,V+1,_-2,b-2))}r.fillStyle=this.labelTextColors[n]}drawBody(r,o,n){const{body:t}=this,{bodySpacing:e,bodyAlign:u,displayColors:m,boxHeight:b,boxWidth:_,boxPadding:w}=n,S=us(n.bodyFont);let D=S.lineHeight,E=0;const M=Qo(n.rtl,this.x,this.width),V=function(De){o.fillText(De,M.x(r.x+E),r.y+D/2),r.y+=D+e},Y=M.textAlign(u);let U,ee,ie,z,H,ne,G;for(o.textAlign=u,o.textBaseline="middle",o.font=S.string,r.x=ol(this,Y,n),o.fillStyle=n.bodyColor,Dr(this.beforeBody,V),E=m&&Y!=="right"?u==="center"?_/2+w:_+2+w:0,z=0,ne=t.length;z<ne;++z){for(U=t[z],ee=this.labelTextColors[z],o.fillStyle=ee,Dr(U.before,V),ie=U.lines,m&&ie.length&&(this._drawColorBox(o,r,z,M,n),D=Math.max(S.lineHeight,b)),H=0,G=ie.length;H<G;++H)V(ie[H]),D=S.lineHeight;Dr(U.after,V)}E=0,D=S.lineHeight,Dr(this.afterBody,V),r.y-=e}drawFooter(r,o,n){const t=this.footer,e=t.length;let u,m;if(e){const b=Qo(n.rtl,this.x,this.width);for(r.x=ol(this,n.footerAlign,n),r.y+=n.footerMarginTop,o.textAlign=b.textAlign(n.footerAlign),o.textBaseline="middle",u=us(n.footerFont),o.fillStyle=n.footerColor,o.font=u.string,m=0;m<e;++m)o.fillText(t[m],b.x(r.x),r.y+u.lineHeight/2),r.y+=u.lineHeight+n.footerSpacing}}drawBackground(r,o,n,t){const{xAlign:e,yAlign:u}=this,{x:m,y:b}=r,{width:_,height:w}=n,{topLeft:S,topRight:D,bottomLeft:E,bottomRight:M}=Co(t.cornerRadius);o.fillStyle=t.backgroundColor,o.strokeStyle=t.borderColor,o.lineWidth=t.borderWidth,o.beginPath(),o.moveTo(m+S,b),u==="top"&&this.drawCaret(r,o,n,t),o.lineTo(m+_-D,b),o.quadraticCurveTo(m+_,b,m+_,b+D),u==="center"&&e==="right"&&this.drawCaret(r,o,n,t),o.lineTo(m+_,b+w-M),o.quadraticCurveTo(m+_,b+w,m+_-M,b+w),u==="bottom"&&this.drawCaret(r,o,n,t),o.lineTo(m+E,b+w),o.quadraticCurveTo(m,b+w,m,b+w-E),u==="center"&&e==="left"&&this.drawCaret(r,o,n,t),o.lineTo(m,b+S),o.quadraticCurveTo(m,b,m+S,b),o.closePath(),o.fill(),t.borderWidth>0&&o.stroke()}_updateAnimationTarget(r){const o=this.chart,n=this.$animations,t=n&&n.x,e=n&&n.y;if(t||e){const u=Xi[r.position].call(this,this._active,this._eventPosition);if(!u)return;const m=this._size=Wp(this,r),b=Object.assign({},u,this._size),_=Hp(o,r,b),w=Yp(r,b,_,o);(t._to!==w.x||e._to!==w.y)&&(this.xAlign=_.xAlign,this.yAlign=_.yAlign,this.width=m.width,this.height=m.height,this.caretX=u.x,this.caretY=u.y,this._resolveAnimations().update(this,w))}}_willRender(){return!!this.opacity}draw(r){const o=this.options.setContext(this.getContext());let n=this.opacity;if(!n)return;this._updateAnimationTarget(o);const t={width:this.width,height:this.height},e={x:this.x,y:this.y};n=Math.abs(n)<.001?0:n;const u=Ts(o.padding),m=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&m&&(r.save(),r.globalAlpha=n,this.drawBackground(e,r,t,o),Um(r,o.textDirection),e.y+=u.top,this.drawTitle(e,r,o),this.drawBody(e,r,o),this.drawFooter(e,r,o),zm(r,o.textDirection),r.restore())}getActiveElements(){return this._active||[]}setActiveElements(r,o){const n=this._active,t=r.map(({datasetIndex:m,index:b})=>{const _=this.chart.getDatasetMeta(m);if(!_)throw new Error("Cannot find a dataset at index "+m);return{datasetIndex:m,element:_.data[b],index:b}}),e=!cl(n,t),u=this._positionChanged(t,o);(e||u)&&(this._active=t,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(r,o,n=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const t=this.options,e=this._active||[],u=this._getActiveElements(r,e,o,n),m=this._positionChanged(u,r),b=o||!cl(u,e)||m;return b&&(this._active=u,(t.enabled||t.external)&&(this._eventPosition={x:r.x,y:r.y},this.update(!0,o))),b}_getActiveElements(r,o,n,t){const e=this.options;if(r.type==="mouseout")return[];if(!t)return o;const u=this.chart.getElementsAtEventForMode(r,e.mode,e,n);return e.reverse&&u.reverse(),u}_positionChanged(r,o){const{caretX:n,caretY:t,options:e}=this,u=Xi[e.position].call(this,r,o);return u!==!1&&(n!==u.x||t!==u.y)}}gf.positioners=Xi;var Fl={id:"tooltip",_element:gf,positioners:Xi,afterInit(s,r,o){o&&(s.tooltip=new gf({chart:s,options:o}))},beforeUpdate(s,r,o){s.tooltip&&s.tooltip.initialize(o)},reset(s,r,o){s.tooltip&&s.tooltip.initialize(o)},afterDraw(s){const r=s.tooltip;if(r&&r._willRender()){const o={tooltip:r};if(s.notifyPlugins("beforeTooltipDraw",o)===!1)return;r.draw(s.ctx),s.notifyPlugins("afterTooltipDraw",o)}},afterEvent(s,r){if(s.tooltip){const o=r.replay;s.tooltip.handleEvent(r.event,o,r.inChartArea)&&(r.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(s,r)=>r.bodyFont.size,boxWidth:(s,r)=>r.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:{beforeTitle:Ma,title(s){if(s.length>0){const r=s[0],o=r.chart.data.labels,n=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return r.dataset.label||"";if(r.label)return r.label;if(n>0&&r.dataIndex<n)return o[r.dataIndex]}return""},afterTitle:Ma,beforeBody:Ma,beforeLabel:Ma,label(s){if(this&&this.options&&this.options.mode==="dataset")return s.label+": "+s.formattedValue||s.formattedValue;let r=s.dataset.label||"";r&&(r+=": ");const o=s.formattedValue;return xr(o)||(r+=o),r},labelColor(s){const o=s.chart.getDatasetMeta(s.datasetIndex).controller.getStyle(s.dataIndex);return{borderColor:o.borderColor,backgroundColor:o.backgroundColor,borderWidth:o.borderWidth,borderDash:o.borderDash,borderDashOffset:o.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(s){const o=s.chart.getDatasetMeta(s.datasetIndex).controller.getStyle(s.dataIndex);return{pointStyle:o.pointStyle,rotation:o.rotation}},afterLabel:Ma,afterBody:Ma,beforeFooter:Ma,footer:Ma,afterFooter:Ma}},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:s=>s!=="filter"&&s!=="itemSort"&&s!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const cw=(s,r,o,n)=>(typeof r=="string"?(o=s.push(r)-1,n.unshift({index:o,label:r})):isNaN(r)&&(o=null),o);function fw(s,r,o,n){const t=s.indexOf(r);if(t===-1)return cw(s,r,o,n);const e=s.lastIndexOf(r);return t!==e?o:t}const uw=(s,r)=>s===null?null:Es(Math.round(s),0,r);class So extends To{constructor(r){super(r),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(r){const o=this._addedLabels;if(o.length){const n=this.getLabels();for(const{index:t,label:e}of o)n[t]===e&&n.splice(t,1);this._addedLabels=[]}super.init(r)}parse(r,o){if(xr(r))return null;const n=this.getLabels();return o=isFinite(o)&&n[o]===r?o:fw(n,r,Bt(o,r),this._addedLabels),uw(o,n.length-1)}determineDataLimits(){const{minDefined:r,maxDefined:o}=this.getUserBounds();let{min:n,max:t}=this.getMinMax(!0);this.options.bounds==="ticks"&&(r||(n=0),o||(t=this.getLabels().length-1)),this.min=n,this.max=t}buildTicks(){const r=this.min,o=this.max,n=this.options.offset,t=[];let e=this.getLabels();e=r===0&&o===e.length-1?e:e.slice(r,o+1),this._valueRange=Math.max(e.length-(n?0:1),1),this._startValue=this.min-(n?.5:0);for(let u=r;u<=o;u++)t.push({value:u});return t}getLabelForValue(r){const o=this.getLabels();return r>=0&&r<o.length?o[r]:r}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(r){return typeof r!="number"&&(r=this.parse(r)),r===null?NaN:this.getPixelForDecimal((r-this._startValue)/this._valueRange)}getPixelForTick(r){const o=this.ticks;return r<0||r>o.length-1?null:this.getPixelForValue(o[r].value)}getValueForPixel(r){return Math.round(this._startValue+this.getDecimalForPixel(r)*this._valueRange)}getBasePixel(){return this.bottom}}So.id="category";So.defaults={ticks:{callback:So.prototype.getLabelForValue}};function dw(s,r){const o=[],{bounds:t,step:e,min:u,max:m,precision:b,count:_,maxTicks:w,maxDigits:S,includeBounds:D}=s,E=e||1,M=w-1,{min:V,max:Y}=r,U=!xr(u),ee=!xr(m),ie=!xr(_),z=(Y-V)/(S+1);let H=Q0((Y-V)/M/E)*E,ne,G,De,ve;if(H<1e-14&&!U&&!ee)return[{value:V},{value:Y}];ve=Math.ceil(Y/H)-Math.floor(V/H),ve>M&&(H=Q0(ve*H/M/E)*E),xr(b)||(ne=Math.pow(10,b),H=Math.ceil(H*ne)/ne),t==="ticks"?(G=Math.floor(V/H)*H,De=Math.ceil(Y/H)*H):(G=V,De=Y),U&&ee&&e&&Sy((m-u)/e,H/1e3)?(ve=Math.round(Math.min((m-u)/H,w)),H=(m-u)/ve,G=u,De=m):ie?(G=U?u:G,De=ee?m:De,ve=_-1,H=(De-G)/ve):(ve=(De-G)/H,qi(ve,Math.round(ve),H/1e3)?ve=Math.round(ve):ve=Math.ceil(ve));const ot=Math.max(Z0(H),Z0(G));ne=Math.pow(10,xr(b)?ot:b),G=Math.round(G*ne)/ne,De=Math.round(De*ne)/ne;let ct=0;for(U&&(D&&G!==u?(o.push({value:u}),G<u&&ct++,qi(Math.round((G+ct*H)*ne)/ne,u,Jp(u,z,s))&&ct++):G<u&&ct++);ct<ve;++ct)o.push({value:Math.round((G+ct*H)*ne)/ne});return ee&&D&&De!==m?o.length&&qi(o[o.length-1].value,m,Jp(m,z,s))?o[o.length-1].value=m:o.push({value:m}):(!ee||De===m)&&o.push({value:De}),o}function Jp(s,r,{horizontal:o,minRotation:n}){const t=fa(n),e=(o?Math.sin(t):Math.cos(t))||.001,u=.75*r*(""+s).length;return Math.min(r/e,u)}class bl extends To{constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(r,o){return xr(r)||(typeof r=="number"||r instanceof Number)&&!isFinite(+r)?null:+r}handleTickRangeOptions(){const{beginAtZero:r}=this.options,{minDefined:o,maxDefined:n}=this.getUserBounds();let{min:t,max:e}=this;const u=b=>t=o?t:b,m=b=>e=n?e:b;if(r){const b=Fa(t),_=Fa(e);b<0&&_<0?m(0):b>0&&_>0&&u(0)}if(t===e){let b=1;(e>=Number.MAX_SAFE_INTEGER||t<=Number.MIN_SAFE_INTEGER)&&(b=Math.abs(e*.05)),m(e+b),r||u(t-b)}this.min=t,this.max=e}getTickLimit(){const r=this.options.ticks;let{maxTicksLimit:o,stepSize:n}=r,t;return n?(t=Math.ceil(this.max/n)-Math.floor(this.min/n)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${n} would result generating up to ${t} ticks. Limiting to 1000.`),t=1e3)):(t=this.computeTickLimit(),o=o||11),o&&(t=Math.min(o,t)),t}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const r=this.options,o=r.ticks;let n=this.getTickLimit();n=Math.max(2,n);const t={maxTicks:n,bounds:r.bounds,min:r.min,max:r.max,precision:o.precision,step:o.stepSize,count:o.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:o.minRotation||0,includeBounds:o.includeBounds!==!1},e=this._range||this,u=dw(t,e);return r.bounds==="ticks"&&ym(u,this,"value"),r.reverse?(u.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),u}configure(){const r=this.ticks;let o=this.min,n=this.max;if(super.configure(),this.options.offset&&r.length){const t=(n-o)/Math.max(r.length-1,1)/2;o-=t,n+=t}this._startValue=o,this._endValue=n,this._valueRange=n-o}getLabelForValue(r){return sn(r,this.chart.options.locale,this.options.ticks.format)}}class ri extends bl{determineDataLimits(){const{min:r,max:o}=this.getMinMax(!0);this.min=ys(r)?r:0,this.max=ys(o)?o:1,this.handleTickRangeOptions()}computeTickLimit(){const r=this.isHorizontal(),o=r?this.width:this.height,n=fa(this.options.ticks.minRotation),t=(r?Math.sin(n):Math.cos(n))||.001,e=this._resolveTickFontOptions(0);return Math.ceil(o/Math.min(40,e.lineHeight/t))}getPixelForValue(r){return r===null?NaN:this.getPixelForDecimal((r-this._startValue)/this._valueRange)}getValueForPixel(r){return this._startValue+this.getDecimalForPixel(r)*this._valueRange}}ri.id="linear";ri.defaults={ticks:{callback:vl.formatters.numeric}};function Xp(s){return s/Math.pow(10,Math.floor(ra(s)))===1}function hw(s,r){const o=Math.floor(ra(r.max)),n=Math.ceil(r.max/Math.pow(10,o)),t=[];let e=ta(s.min,Math.pow(10,Math.floor(ra(r.min)))),u=Math.floor(ra(e)),m=Math.floor(e/Math.pow(10,u)),b=u<0?Math.pow(10,Math.abs(u)):1;do t.push({value:e,major:Xp(e)}),++m,m===10&&(m=1,++u,b=u>=0?1:b),e=Math.round(m*Math.pow(10,u)*b)/b;while(u<o||u===o&&m<n);const _=ta(s.max,e);return t.push({value:_,major:Xp(e)}),t}class c1 extends To{constructor(r){super(r),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(r,o){const n=bl.prototype.parse.apply(this,[r,o]);if(n===0){this._zero=!0;return}return ys(n)&&n>0?n:null}determineDataLimits(){const{min:r,max:o}=this.getMinMax(!0);this.min=ys(r)?Math.max(0,r):null,this.max=ys(o)?Math.max(0,o):null,this.options.beginAtZero&&(this._zero=!0),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:r,maxDefined:o}=this.getUserBounds();let n=this.min,t=this.max;const e=b=>n=r?n:b,u=b=>t=o?t:b,m=(b,_)=>Math.pow(10,Math.floor(ra(b))+_);n===t&&(n<=0?(e(1),u(10)):(e(m(n,-1)),u(m(t,1)))),n<=0&&e(m(t,-1)),t<=0&&u(m(n,1)),this._zero&&this.min!==this._suggestedMin&&n===m(this.min,0)&&e(m(n,-1)),this.min=n,this.max=t}buildTicks(){const r=this.options,o={min:this._userMin,max:this._userMax},n=hw(o,this);return r.bounds==="ticks"&&ym(n,this,"value"),r.reverse?(n.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),n}getLabelForValue(r){return r===void 0?"0":sn(r,this.chart.options.locale,this.options.ticks.format)}configure(){const r=this.min;super.configure(),this._startValue=ra(r),this._valueRange=ra(this.max)-ra(r)}getPixelForValue(r){return(r===void 0||r===0)&&(r=this.min),r===null||isNaN(r)?NaN:this.getPixelForDecimal(r===this.min?0:(ra(r)-this._startValue)/this._valueRange)}getValueForPixel(r){const o=this.getDecimalForPixel(r);return Math.pow(10,this._startValue+o*this._valueRange)}}c1.id="logarithmic";c1.defaults={ticks:{callback:vl.formatters.logarithmic,major:{enabled:!0}}};function bf(s){const r=s.ticks;if(r.display&&s.display){const o=Ts(r.backdropPadding);return Bt(r.font&&r.font.size,or.font.size)+o.height}return 0}function pw(s,r,o){return o=Vr(o)?o:[o],{w:o_(s,r.string,o),h:o.length*r.lineHeight}}function Qp(s,r,o,n,t){return s===n||s===t?{start:r-o/2,end:r+o/2}:s<n||s>t?{start:r-o,end:r}:{start:r,end:r+o}}function mw(s){const r={l:s.left+s._padding.left,r:s.right-s._padding.right,t:s.top+s._padding.top,b:s.bottom-s._padding.bottom},o=Object.assign({},r),n=[],t=[],e=s._pointLabels.length,u=s.options.pointLabels,m=u.centerPointLabels?Ur/e:0;for(let b=0;b<e;b++){const _=u.setContext(s.getPointLabelContext(b));t[b]=_.padding;const w=s.getPointPosition(b,s.drawingArea+t[b],m),S=us(_.font),D=pw(s.ctx,S,s._pointLabels[b]);n[b]=D;const E=ca(s.getIndexAngle(b)+m),M=Math.round(Df(E)),V=Qp(M,w.x,D.w,0,180),Y=Qp(M,w.y,D.h,90,270);gw(o,r,E,V,Y)}s.setCenterPoint(r.l-o.l,o.r-r.r,r.t-o.t,o.b-r.b),s._pointLabelItems=bw(s,n,t)}function gw(s,r,o,n,t){const e=Math.abs(Math.sin(o)),u=Math.abs(Math.cos(o));let m=0,b=0;n.start<r.l?(m=(r.l-n.start)/e,s.l=Math.min(s.l,r.l-m)):n.end>r.r&&(m=(n.end-r.r)/e,s.r=Math.max(s.r,r.r+m)),t.start<r.t?(b=(r.t-t.start)/u,s.t=Math.min(s.t,r.t-b)):t.end>r.b&&(b=(t.end-r.b)/u,s.b=Math.max(s.b,r.b+b))}function bw(s,r,o){const n=[],t=s._pointLabels.length,e=s.options,u=bf(e)/2,m=s.drawingArea,b=e.pointLabels.centerPointLabels?Ur/t:0;for(let _=0;_<t;_++){const w=s.getPointPosition(_,m+u+o[_],b),S=Math.round(Df(ca(w.angle+Jr))),D=r[_],E=vw(w.y,D.h,S),M=yw(S),V=_w(w.x,D.w,M);n.push({x:w.x,y:E,textAlign:M,left:V,top:E,right:V+D.w,bottom:E+D.h})}return n}function yw(s){return s===0||s===180?"center":s<180?"left":"right"}function _w(s,r,o){return o==="right"?s-=r:o==="center"&&(s-=r/2),s}function vw(s,r,o){return o===90||o===270?s-=r/2:(o>270||o<90)&&(s-=r),s}function ww(s,r){const{ctx:o,options:{pointLabels:n}}=s;for(let t=r-1;t>=0;t--){const e=n.setContext(s.getPointLabelContext(t)),u=us(e.font),{x:m,y:b,textAlign:_,left:w,top:S,right:D,bottom:E}=s._pointLabelItems[t],{backdropColor:M}=e;if(!xr(M)){const V=Co(e.borderRadius),Y=Ts(e.backdropPadding);o.fillStyle=M;const U=w-Y.left,ee=S-Y.top,ie=D-w+Y.width,z=E-S+Y.height;Object.values(V).some(H=>H!==0)?(o.beginPath(),en(o,{x:U,y:ee,w:ie,h:z,radius:V}),o.fill()):o.fillRect(U,ee,ie,z)}Do(o,s._pointLabels[t],m,b+u.lineHeight/2,u,{color:e.color,textAlign:_,textBaseline:"middle"})}}function f1(s,r,o,n){const{ctx:t}=s;if(o)t.arc(s.xCenter,s.yCenter,r,0,Mr);else{let e=s.getPointPosition(0,r);t.moveTo(e.x,e.y);for(let u=1;u<n;u++)e=s.getPointPosition(u,r),t.lineTo(e.x,e.y)}}function xw(s,r,o,n){const t=s.ctx,e=r.circular,{color:u,lineWidth:m}=r;!e&&!n||!u||!m||o<0||(t.save(),t.strokeStyle=u,t.lineWidth=m,t.setLineDash(r.borderDash),t.lineDashOffset=r.borderDashOffset,t.beginPath(),f1(s,o,e,n),t.closePath(),t.stroke(),t.restore())}function Cw(s,r,o){return Qa(s,{label:o,index:r,type:"pointLabel"})}class Al extends bl{constructor(r){super(r),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const r=this._padding=Ts(bf(this.options)/2),o=this.width=this.maxWidth-r.width,n=this.height=this.maxHeight-r.height;this.xCenter=Math.floor(this.left+o/2+r.left),this.yCenter=Math.floor(this.top+n/2+r.top),this.drawingArea=Math.floor(Math.min(o,n)/2)}determineDataLimits(){const{min:r,max:o}=this.getMinMax(!1);this.min=ys(r)&&!isNaN(r)?r:0,this.max=ys(o)&&!isNaN(o)?o:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/bf(this.options))}generateTickLabels(r){bl.prototype.generateTickLabels.call(this,r),this._pointLabels=this.getLabels().map((o,n)=>{const t=Or(this.options.pointLabels.callback,[o,n],this);return t||t===0?t:""}).filter((o,n)=>this.chart.getDataVisibility(n))}fit(){const r=this.options;r.display&&r.pointLabels.display?mw(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(r,o,n,t){this.xCenter+=Math.floor((r-o)/2),this.yCenter+=Math.floor((n-t)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(r,o,n,t))}getIndexAngle(r){const o=Mr/(this._pointLabels.length||1),n=this.options.startAngle||0;return ca(r*o+fa(n))}getDistanceFromCenterForValue(r){if(xr(r))return NaN;const o=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-r)*o:(r-this.min)*o}getValueForDistanceFromCenter(r){if(xr(r))return NaN;const o=r/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-o:this.min+o}getPointLabelContext(r){const o=this._pointLabels||[];if(r>=0&&r<o.length){const n=o[r];return Cw(this.getContext(),r,n)}}getPointPosition(r,o,n=0){const t=this.getIndexAngle(r)-Jr+n;return{x:Math.cos(t)*o+this.xCenter,y:Math.sin(t)*o+this.yCenter,angle:t}}getPointPositionForValue(r,o){return this.getPointPosition(r,this.getDistanceFromCenterForValue(o))}getBasePosition(r){return this.getPointPositionForValue(r||0,this.getBaseValue())}getPointLabelPosition(r){const{left:o,top:n,right:t,bottom:e}=this._pointLabelItems[r];return{left:o,top:n,right:t,bottom:e}}drawBackground(){const{backgroundColor:r,grid:{circular:o}}=this.options;if(r){const n=this.ctx;n.save(),n.beginPath(),f1(this,this.getDistanceFromCenterForValue(this._endValue),o,this._pointLabels.length),n.closePath(),n.fillStyle=r,n.fill(),n.restore()}}drawGrid(){const r=this.ctx,o=this.options,{angleLines:n,grid:t}=o,e=this._pointLabels.length;let u,m,b;if(o.pointLabels.display&&ww(this,e),t.display&&this.ticks.forEach((_,w)=>{if(w!==0){m=this.getDistanceFromCenterForValue(_.value);const S=t.setContext(this.getContext(w-1));xw(this,S,m,e)}}),n.display){for(r.save(),u=e-1;u>=0;u--){const _=n.setContext(this.getPointLabelContext(u)),{color:w,lineWidth:S}=_;!S||!w||(r.lineWidth=S,r.strokeStyle=w,r.setLineDash(_.borderDash),r.lineDashOffset=_.borderDashOffset,m=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),b=this.getPointPosition(u,m),r.beginPath(),r.moveTo(this.xCenter,this.yCenter),r.lineTo(b.x,b.y),r.stroke())}r.restore()}}drawBorder(){}drawLabels(){const r=this.ctx,o=this.options,n=o.ticks;if(!n.display)return;const t=this.getIndexAngle(0);let e,u;r.save(),r.translate(this.xCenter,this.yCenter),r.rotate(t),r.textAlign="center",r.textBaseline="middle",this.ticks.forEach((m,b)=>{if(b===0&&!o.reverse)return;const _=n.setContext(this.getContext(b)),w=us(_.font);if(e=this.getDistanceFromCenterForValue(this.ticks[b].value),_.showLabelBackdrop){r.font=w.string,u=r.measureText(m.label).width,r.fillStyle=_.backdropColor;const S=Ts(_.backdropPadding);r.fillRect(-u/2-S.left,-e-w.size/2-S.top,u+S.width,w.size+S.height)}Do(r,m.label,0,-e,w,{color:_.color})}),r.restore()}drawTitle(){}}Al.id="radialLinear";Al.defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:vl.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(s){return s},padding:5,centerPointLabels:!1}};Al.defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};Al.descriptors={angleLines:{_fallback:"grid"}};const Dl={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Bs=Object.keys(Dl);function Fw(s,r){return s-r}function Zp(s,r){if(xr(r))return null;const o=s._adapter,{parser:n,round:t,isoWeekday:e}=s._parseOpts;let u=r;return typeof n=="function"&&(u=n(u)),ys(u)||(u=typeof n=="string"?o.parse(u,n):o.parse(u)),u===null?null:(t&&(u=t==="week"&&($o(e)||e===!0)?o.startOf(u,"isoWeek",e):o.startOf(u,t)),+u)}function $p(s,r,o,n){const t=Bs.length;for(let e=Bs.indexOf(s);e<t-1;++e){const u=Dl[Bs[e]],m=u.steps?u.steps:Number.MAX_SAFE_INTEGER;if(u.common&&Math.ceil((o-r)/(m*u.size))<=n)return Bs[e]}return Bs[t-1]}function Aw(s,r,o,n,t){for(let e=Bs.length-1;e>=Bs.indexOf(o);e--){const u=Bs[e];if(Dl[u].common&&s._adapter.diff(t,n,u)>=r-1)return u}return Bs[o?Bs.indexOf(o):0]}function Dw(s){for(let r=Bs.indexOf(s)+1,o=Bs.length;r<o;++r)if(Dl[Bs[r]].common)return Bs[r]}function em(s,r,o){if(!o)s[r]=!0;else if(o.length){const{lo:n,hi:t}=Sf(o,r),e=o[n]>=r?o[n]:o[t];s[e]=!0}}function Sw(s,r,o,n){const t=s._adapter,e=+t.startOf(r[0].value,n),u=r[r.length-1].value;let m,b;for(m=e;m<=u;m=+t.add(m,1,n))b=o[m],b>=0&&(r[b].major=!0);return r}function tm(s,r,o){const n=[],t={},e=r.length;let u,m;for(u=0;u<e;++u)m=r[u],t[m]=u,n.push({value:m,major:!1});return e===0||!o?n:Sw(s,n,t,o)}class Sl extends To{constructor(r){super(r),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(r,o){const n=r.time||(r.time={}),t=this._adapter=new jv._date(r.adapters.date);t.init(o),Yi(n.displayFormats,t.formats()),this._parseOpts={parser:n.parser,round:n.round,isoWeekday:n.isoWeekday},super.init(r),this._normalized=o.normalized}parse(r,o){return r===void 0?null:Zp(this,r)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const r=this.options,o=this._adapter,n=r.time.unit||"day";let{min:t,max:e,minDefined:u,maxDefined:m}=this.getUserBounds();function b(_){!u&&!isNaN(_.min)&&(t=Math.min(t,_.min)),!m&&!isNaN(_.max)&&(e=Math.max(e,_.max))}(!u||!m)&&(b(this._getLabelBounds()),(r.bounds!=="ticks"||r.ticks.source!=="labels")&&b(this.getMinMax(!1))),t=ys(t)&&!isNaN(t)?t:+o.startOf(Date.now(),n),e=ys(e)&&!isNaN(e)?e:+o.endOf(Date.now(),n)+1,this.min=Math.min(t,e-1),this.max=Math.max(t+1,e)}_getLabelBounds(){const r=this.getLabelTimestamps();let o=Number.POSITIVE_INFINITY,n=Number.NEGATIVE_INFINITY;return r.length&&(o=r[0],n=r[r.length-1]),{min:o,max:n}}buildTicks(){const r=this.options,o=r.time,n=r.ticks,t=n.source==="labels"?this.getLabelTimestamps():this._generate();r.bounds==="ticks"&&t.length&&(this.min=this._userMin||t[0],this.max=this._userMax||t[t.length-1]);const e=this.min,u=this.max,m=Ry(t,e,u);return this._unit=o.unit||(n.autoSkip?$p(o.minUnit,this.min,this.max,this._getLabelCapacity(e)):Aw(this,m.length,o.minUnit,this.min,this.max)),this._majorUnit=!n.major.enabled||this._unit==="year"?void 0:Dw(this._unit),this.initOffsets(t),r.reverse&&m.reverse(),tm(this,m,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(r=>+r.value))}initOffsets(r){let o=0,n=0,t,e;this.options.offset&&r.length&&(t=this.getDecimalForValue(r[0]),r.length===1?o=1-t:o=(this.getDecimalForValue(r[1])-t)/2,e=this.getDecimalForValue(r[r.length-1]),r.length===1?n=e:n=(e-this.getDecimalForValue(r[r.length-2]))/2);const u=r.length<3?.5:.25;o=Es(o,0,u),n=Es(n,0,u),this._offsets={start:o,end:n,factor:1/(o+1+n)}}_generate(){const r=this._adapter,o=this.min,n=this.max,t=this.options,e=t.time,u=e.unit||$p(e.minUnit,o,n,this._getLabelCapacity(o)),m=Bt(e.stepSize,1),b=u==="week"?e.isoWeekday:!1,_=$o(b)||b===!0,w={};let S=o,D,E;if(_&&(S=+r.startOf(S,"isoWeek",b)),S=+r.startOf(S,_?"day":u),r.diff(n,o,u)>1e5*m)throw new Error(o+" and "+n+" are too far apart with stepSize of "+m+" "+u);const M=t.ticks.source==="data"&&this.getDataTimestamps();for(D=S,E=0;D<n;D=+r.add(D,m,u),E++)em(w,D,M);return(D===n||t.bounds==="ticks"||E===1)&&em(w,D,M),Object.keys(w).sort((V,Y)=>V-Y).map(V=>+V)}getLabelForValue(r){const o=this._adapter,n=this.options.time;return n.tooltipFormat?o.format(r,n.tooltipFormat):o.format(r,n.displayFormats.datetime)}_tickFormatFunction(r,o,n,t){const e=this.options,u=e.time.displayFormats,m=this._unit,b=this._majorUnit,_=m&&u[m],w=b&&u[b],S=n[o],D=b&&w&&S&&S.major,E=this._adapter.format(r,t||(D?w:_)),M=e.ticks.callback;return M?Or(M,[E,o,n],this):E}generateTickLabels(r){let o,n,t;for(o=0,n=r.length;o<n;++o)t=r[o],t.label=this._tickFormatFunction(t.value,o,r)}getDecimalForValue(r){return r===null?NaN:(r-this.min)/(this.max-this.min)}getPixelForValue(r){const o=this._offsets,n=this.getDecimalForValue(r);return this.getPixelForDecimal((o.start+n)*o.factor)}getValueForPixel(r){const o=this._offsets,n=this.getDecimalForPixel(r)/o.factor-o.end;return this.min+n*(this.max-this.min)}_getLabelSize(r){const o=this.options.ticks,n=this.ctx.measureText(r).width,t=fa(this.isHorizontal()?o.maxRotation:o.minRotation),e=Math.cos(t),u=Math.sin(t),m=this._resolveTickFontOptions(0).size;return{w:n*e+m*u,h:n*u+m*e}}_getLabelCapacity(r){const o=this.options.time,n=o.displayFormats,t=n[o.unit]||n.millisecond,e=this._tickFormatFunction(r,0,tm(this,[r],this._majorUnit),t),u=this._getLabelSize(e),m=Math.floor(this.isHorizontal()?this.width/u.w:this.height/u.h)-1;return m>0?m:1}getDataTimestamps(){let r=this._cache.data||[],o,n;if(r.length)return r;const t=this.getMatchingVisibleMetas();if(this._normalized&&t.length)return this._cache.data=t[0].controller.getAllParsedValues(this);for(o=0,n=t.length;o<n;++o)r=r.concat(t[o].controller.getAllParsedValues(this));return this._cache.data=this.normalize(r)}getLabelTimestamps(){const r=this._cache.labels||[];let o,n;if(r.length)return r;const t=this.getLabels();for(o=0,n=t.length;o<n;++o)r.push(Zp(this,t[o]));return this._cache.labels=this._normalized?r:this.normalize(r)}normalize(r){return wm(r.sort(Fw))}}Sl.id="time";Sl.defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",major:{enabled:!1}}};function il(s,r,o){let n=0,t=s.length-1,e,u,m,b;o?(r>=s[n].pos&&r<=s[t].pos&&({lo:n,hi:t}=xo(s,"pos",r)),{pos:e,time:m}=s[n],{pos:u,time:b}=s[t]):(r>=s[n].time&&r<=s[t].time&&({lo:n,hi:t}=xo(s,"time",r)),{time:e,pos:m}=s[n],{time:u,pos:b}=s[t]);const _=u-e;return _?m+(b-m)*(r-e)/_:m}class u1 extends Sl{constructor(r){super(r),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const r=this._getTimestampsForTable(),o=this._table=this.buildLookupTable(r);this._minPos=il(o,this.min),this._tableRange=il(o,this.max)-this._minPos,super.initOffsets(r)}buildLookupTable(r){const{min:o,max:n}=this,t=[],e=[];let u,m,b,_,w;for(u=0,m=r.length;u<m;++u)_=r[u],_>=o&&_<=n&&t.push(_);if(t.length<2)return[{time:o,pos:0},{time:n,pos:1}];for(u=0,m=t.length;u<m;++u)w=t[u+1],b=t[u-1],_=t[u],Math.round((w+b)/2)!==_&&e.push({time:_,pos:u/(m-1)});return e}_getTimestampsForTable(){let r=this._cache.all||[];if(r.length)return r;const o=this.getDataTimestamps(),n=this.getLabelTimestamps();return o.length&&n.length?r=this.normalize(o.concat(n)):r=o.length?o:n,r=this._cache.all=r,r}getDecimalForValue(r){return(il(this._table,r)-this._minPos)/this._tableRange}getValueForPixel(r){const o=this._offsets,n=this.getDecimalForPixel(r)/o.factor-o.end;return il(this._table,n*this._tableRange+this._minPos,!0)}}u1.id="timeseries";u1.defaults=Sl.defaults;const Ew={props:["finalData","form"],mounted(){Aa.register(ko,Eo,So,ri,Cl,Fl,xl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",m=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${m})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),n=Object.values(r);this.chartInstance=new Aa(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:n,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function Tw(s,r,o,n,t,e){return ae(),Be("div",null,r[0]||(r[0]=[j("canvas",{id:"reportChart"},null,-1)]))}const kw=Rt(Ew,[["render",Tw],["__scopeId","data-v-3b637c24"]]);const Rw={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,LeaveReportChart:kw,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:1,columns:[],leave_id:"",status:"",from_date:"",to_date:""},included:{leave_id:!1,status:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({from_date:Lt().required("From Date is required"),to_date:Lt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"1",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await wf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(1);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="leave_id"&&(this.fetchLeaveType(),this.included.leave_id=!0),s==="status"&&(this.included.status=!0)},onRemove(s){s==="leave_id"&&(this.included.leave_id=!1),s==="status"&&(this.included.status=!1)}},mounted(){this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("leave_id")?(this.fetchLeaveType(),this.included.leave_id=!0):this.included.leave_id=!1,this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},Lw={class:"grid grid-cols-1 gap-2"},Mw={class:"grid grid-cols-5 gap-2"},Ow={class:"grid grid-cols-2 gap-2"},Pw={class:"flex justify-between items-center"},Nw={class:"flex gap-1 justify-end"};function Iw(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card"),E=K("LeaveReportChart");return ae(),Be(Cr,null,[j("form",{onSubmit:r[7]||(r[7]=Ut((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[r[8]||(r[8]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",Lw,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.columns=M),options:t.reportModuleColums,class:"form-multiselect w-full",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...M)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...M))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",Mw,[t.included.charge_to?(ae(),Ge(m,{key:0,label:"Charges To"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.charge_to=M),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.leave_id?(ae(),Ge(m,{key:1,label:"Leave Type"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.leave_id,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.leave_id=M),options:t.leaveType,class:"form-multiselect w-full",loading:t.state.isLeaveTypeLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.status?(ae(),Ge(m,{key:2,label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.status=M),options:t.statusOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})):ye("",!0)]),j("div",Ow,[k(m,{label:"From Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.from_date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.from_date=M),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"To Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.to_date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.to_date=M),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",Pw,[s.items?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",Nw,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),s.items?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),j("div",null,[t.form.modules==1&&t.finalData.length!=0?(ae(),Ge(E,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):ye("",!0)])],64)}const Vw=Rt(Rw,[["render",Iw],["__scopeId","data-v-8af2f6e5"]]);Aa.register(Eo,ko,So,ri,Cl,Fl,xl);const Bw={props:["overtimeData"],data(){return{chartInstance:null}},mounted(){this.renderChart()},methods:{renderChart(){const s=document.getElementById("overtimeChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.overtimeData.reduce((t,e)=>{const u=e["Date From"],m=parseFloat(e.Hours)||0;return t[u]||(t[u]=0),t[u]+=m,t},{}),o=Object.keys(r),n=Object.values(r);this.chartInstance=new Aa(s,{type:"bar",data:{labels:o,datasets:[{label:"Overtime Hours",data:n,backgroundColor:"rgba(75, 192, 192, 0.2)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0}}}})}},watch:{overtimeData(s){s&&s.length>0&&this.renderChart()}},beforeDestroy(){this.chartInstance&&this.chartInstance.destroy()}};function Uw(s,r,o,n,t,e){return ae(),Be("div",null,r[0]||(r[0]=[j("canvas",{id:"overtimeChart"},null,-1)]))}const zw=Rt(Bw,[["render",Uw],["__scopeId","data-v-04873387"]]);const Gw={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,OvertimeReportChart:zw,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:2,columns:[],charge_to:"",status:"",from_date:"",to_date:""},included:{leave_id:!1,status:!1,charge_to:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompanies(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(console.log(s.data),this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({from_date:Lt().required("From Date is required"),to_date:Lt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"2",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await wf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(2);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="charge_to"&&(this.fetchCompanies(),this.included.charge_to=!0),s==="status"&&(this.included.status=!0)},onRemove(s){selectedOption==="charge_to"&&(this.fetchCompanies(),this.included.charge_to=!0),s==="status"&&(this.included.status=!1)}},mounted(){this.fetchCompanies(),this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("charge_to")?(this.fetchCompanies(),this.included.charge_to=!0):this.included.charge_to=!1,this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},jw={class:"grid grid-cols-1 gap-2"},Ww={class:"grid grid-cols-5 gap-2"},Hw={class:"grid grid-cols-2 gap-2"},Yw={class:"flex justify-between items-center"},qw={class:"flex gap-1 justify-end"};function Kw(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card"),E=K("OvertimeReportChart");return ae(),Be(Cr,null,[j("form",{onSubmit:r[6]||(r[6]=Ut((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[r[7]||(r[7]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",jw,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.columns=M),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...M)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...M))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",Ww,[t.included.charge_to?(ae(),Ge(m,{key:0,label:"Charges To"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.charge_to=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.status?(ae(),Ge(m,{key:1,label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.status=M),options:t.statusOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0)]),j("div",Hw,[k(m,{label:"From Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.from_date,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.from_date=M),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"To Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.to_date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.to_date=M),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",Yw,[s.items?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",qw,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),s.items?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),j("div",null,[t.form.modules==2&&t.finalData.length!=0?(ae(),Ge(E,{key:0,overtimeData:t.resultData,form:t.form},null,8,["overtimeData","form"])):ye("",!0)])],64)}const Jw=Rt(Gw,[["render",Kw],["__scopeId","data-v-9d797caf"]]);const rm=sr,sm=yr,am=Zr,Xw=mt,om=xf,Qw={components:{Layout:zt,Yup:Ff,FormGroup:Kt,Multiselect:jt,SubmitButton:Gt,CompanyService:rm,DealershipService:sm,DepartmentService:am,PayrollService:om,AgGridVue:Jt,Loading:qt},data(){return{companies:[],dealerships:[],filteredDealerships:[],departments:[],payroll_dates:[],companyName:"",dealershipName:"",form:{dealership_id:null,department_id:null,selectedCompanyId:null,payroll_date:null,modules:19},errors:{date_from:"",date_to:"",month:""},state:{isLoadingCompanies:!1,isLoadingDealerships:!1,isLoadingDepartments:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,isLoading:!1},colDefs:[],rowData:[]}},methods:{async fetchCompanies(){this.state.isLoadingCompanies=!0;try{const s=await rm.fetchRecords();s.status==200?this.companies=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`})):console.warn("Unexpected response status: ",s.status)}catch(s){console.error("Error fetching companies: ",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.state.isLoadingDealerships=!0;try{const s=await sm.fetchRecords();s.status==200?this.dealerships=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`,companyId:r.company_id})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},filterDealerships(){this.form.selectedCompanyId?(console.log("selected company id "),this.filteredDealerships=this.dealerships.filter(s=>s.companyId===this.form.selectedCompanyId),console.log(this.filteredDealerships)):this.filteredDealerships=this.dealerships},async fetchDepartments(){this.state.isLoadingDepartments=!0;try{const s=await am.fetchRecords();s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:`${r.name}`})))}catch(s){console.error("Error fetching departments",s.message)}finally{this.state.isLoadingDepartments=!1}},async fetchPayrollDate(){this.state.isLoadingPayrollDates=!0;try{const s=await om.fetchRecords();s.status==200&&(this.payroll_dates=s.data.data.map(r=>({value:r.payroll_date,label:`${r.cut_off_start} - ${r.cut_off_end}`})))}catch(s){console.log("Error fetching payroll date",s.message)}finally{this.state.isLoadingPayrollDates=!1}},async submitForm(){if(console.log("FORM"),console.log(this.form),this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{this.submitReport(),this.state.isSubmiting=!1})}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){var s,r,o;if(!this.state.isGenerating){this.state.isGenerating=!0,this.state.isLoading=!0;try{const n=await Xw.fetchGeneratedReport(this.form);if((s=n.data)!=null&&s.data&&Object.keys(n.data.data).length>0){let t=[];console.log("After adding header row:",t),Object.entries(n.data.data).forEach(([e,u])=>{t.push({department:e,isGroup:!0});let m={total_over_times:0,frequency:0,total_ot_pay:0,holiday_total:0,dayOff_pay:0,night_diff_pay:0,total_meal:0,total_transpo:0,row_total:0,isSumarry:!0,name:"SUB TOTAL (DEPARTMENT)"};u.forEach(b=>{t.push({...b,department:e||b.department,isGroup:!1}),m.total_over_times+=parseFloat(b.total_over_times||0),m.frequency+=parseFloat(b.frequency||0),m.total_ot_pay+=parseFloat(b.total_ot_pay||0),m.holiday_total+=parseFloat(b.holiday_total||0),m.dayOff_pay+=parseFloat(b.dayOff_pay||0),m.total_meal+=parseFloat(b.total_meal||0),m.total_transpo+=parseFloat(m.total_transpo||0),m.row_total+=parseFloat(m.row_total||0)}),m.row_total=parseFloat((m.total_ot_pay+m.holiday_total+m.dayOff_pay+m.night_diff_pay+m.total_meal+m.total_transpo).toFixed(2)),m.dayOff_pay=parseFloat(m.dayOff_pay.toFixed(2)),t.push(m)}),this.rowData=t,console.log("rowData"),console.log(this.rowData),this.colDefs=[{headerName:`COMPANY: ${this.companyName} / DEALER: ${this.dealershipName}`,field:"department",flex:1,children:[{headerName:`Cut-off Period: ${this.getCutoffPeriodLabels()}`,field:"department",flex:1,children:[{headerName:"DEPARTMENT / GROUP",field:"department",flex:1,sortable:!0,filter:!0,cellRenderer:e=>{if(!e.data)return"";if(e.data.isGroup2)return`<strong>${e.data.department}</strong>`;if(e.data.isGroup)return`<strong>${e.data.department}</strong>`},cellStyle:e=>{var u,m;return(u=e.data)!=null&&u.isGroup?{fontWeight:"bold",backgroundColor:"#f0f0f0"}:((m=e.data)!=null&&m.isSumarry,null)}},{headerName:"Employee Name",field:"name",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.name}</strong>`:e.data.name:""},{headerName:"Total OT Hours",field:"total_over_times",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_over_times}</strong>`:e.data.total_over_times:""},{headerName:"Frequency",field:"frequency",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.frequency}</strong>`:e.data.frequency:""},{headerName:"OT PAY",field:"total_ot_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_ot_pay}</strong>`:e.data.total_ot_pay:""},{headerName:"HOLIDAY PAY",field:"holiday_total",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.holiday_total}</strong>`:e.data.holiday_total:""},{headerName:"DAYOFF PAY",field:"dayOff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.dayOff_pay}</strong>`:e.data.dayOff_pay:""},{headerName:"NIGHT DIFF PAY",field:"night_diff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.night_diff_pay}</strong>`:e.data.night_diff_pay:""},{headerName:"OT MEAL",field:"total_meal",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_meal}</strong>`:e.data.total_meal:""},{headerName:"TRANSPO",field:"total_transpo",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.total_transpo}</strong>`:e.data.total_transpo:""},{headerName:"TOTAL",field:"row_total",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`<strong>${e.data.row_total}</strong>`:e.data.row_total:""}]}]}],console.log("def"),console.log(this.colDefs)}else this.$swal.fire({title:"No Data Found",text:"No records were found matching the criteria.",icon:"info",timer:3e3});this.state.isGenerating=!1}catch(n){console.error("Error submitting report:",n),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=n.response)==null?void 0:r.data)==null?void 0:o.message)||"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1,this.state.isLoading=!1}}},exportToCSV(){if(this.gridApi){const s=this.companyName||"ALL",r=this.dealershipName||"ALL",o=[`COMPANY: ${s} / DEALER: ${r}`,`Cut-off Period: ${this.getCutoffPeriodLabels()}`,""],n=[];this.gridApi.forEachNodeAfterFilterAndSort(_=>{_.group||(_.data?(console.log("node"),console.log(_),_.data.isGroup?n.push([_.data.department,"","","","","","","","","",""]):n.push([_.data.isGroup?_.data.department:"",_.data.name||0,_.data.total_over_times||0,_.data.frequency||0,_.data.total_ot_pay||0,_.data.holiday_total||0,_.data.dayOff_pay||0,_.data.night_diff_pay||0,_.data.total_meal||0,_.data.total_transpo||0,_.data.row_total||0])):_.aggData&&n.push([`SUB TOTAL (${_.key})`,"",_.aggData.total_over_times||0,_.aggData.frequency||0,_.aggData.total_ot_pay||0,_.aggData.holiday_total||0,_.aggData.dayOff_pay||0,_.aggData.night_diff_pay||0,_.aggData.total_meal||0,_.aggData.total_transpo||0,_.aggData.row_total||0]))});const e=[...o.map(_=>[_]),["DEPARTMENT / GROUP","Employee Name","Total OT Hours","Frequency","OT PAY","HOLIDAY PAY","DAYOFF PAY","NIGHT DIFF PAY","OT MEAL","TRANSPO","TOTAL"],...n].map(_=>_.join(",")).join(` `),u=new Blob([e],{type:"text/csv;charset=utf-8;"}),m=document.createElement("a"),b=URL.createObjectURL(u);m.setAttribute("href",b),m.setAttribute("download","Overtime_Report.csv"),m.style.visibility="hidden",document.body.appendChild(m),m.click(),document.body.removeChild(m)}},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){const r=this.companies.find(o=>o.value===s);return this.companyName=r?r.label:"All",this.companyName},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return console.log("DEALER NAME"),console.log(r),this.dealershipName=r?r.label:"All",r?r.label:"All"},onChangeCompany(s){this.getCompanyName(s),this.form.selectedCompanyId=s,this.filterDealerships()},onChangeDealership(s){this.getDealershipName(s)},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},getCutoffPeriodLabels(){return this.form.payroll_date.map(s=>{const r=this.payroll_dates.find(o=>o.value===s);return r?r.label:""}).join(" , ")},resetErrors(){this.errors={month:""}}},mounted(){this.fetchCompanies(),this.fetchDealerships(),this.fetchDepartments(),this.fetchPayrollDate()}},Zw={class:"grid grid-cols-3 gap-2"},$w={class:""},ex={class:""},tx={class:""},rx={class:""},sx={key:0,class:"text-red-400"},ax={class:"flex justify-between items-center mt-2"},ox={class:"flex gap-1 justify-end"},ix={key:0,class:"mt-3"},nx={class:"flex gap-1 justify-end"};function lx(s,r,o,n,t,e){const u=K("Loading"),m=K("Multiselect"),b=K("FormGroup"),_=K("SubmitButton"),w=K("ag-grid-vue");return ae(),Be(Cr,null,[j("form",{onSubmit:r[4]||(r[4]=Ut((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isLoading?(ae(),Ge(u,{key:0,text:"Processing"})):ye("",!0),j("div",Zw,[j("div",$w,[k(b,{label:"Company"},{default:W(()=>[k(m,{id:"company_id",label:s.Company,modelValue:t.form.selectedCompanyId,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.selectedCompanyId=S),loading:t.state.isLoadingCompanies,options:t.companies,disabled:t.state.isLoadingCompanies||!t.companies.length,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeCompany},null,8,["label","modelValue","loading","options","disabled","onChange"])]),_:1})]),j("div",ex,[k(b,{label:"Dealership"},{default:W(()=>[k(m,{id:"dealership_id",name:"dealership_id",modelValue:t.form.dealership_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.dealership_id=S),label:s.Dealership,loading:t.state.isLoadingDealerships,options:t.filteredDealerships,disabled:t.state.isLoadingDealerships||!e.filterDealerships,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeDealership},null,8,["modelValue","label","loading","options","disabled","onChange"])]),_:1})]),j("div",tx,[k(b,{label:"Department"},{default:W(()=>[k(m,{id:"department_id",modelValue:t.form.department_id,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.department_id=S),label:s.Departments,loading:t.state.isLoadingDepartments,options:t.departments,disabled:t.state.isLoadingDepartments||!t.departments.length,placeholder:"(ALL)",mode:"tags",searchable:!0},null,8,["modelValue","label","loading","options","disabled"])]),_:1})]),j("div",rx,[k(b,{label:"Cut-Off",isRequired:!0},{default:W(()=>[k(m,{id:"payroll_date",modelValue:t.form.payroll_date,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.payroll_date=S),loading:t.state.isLoadingPayrollDates,options:t.payroll_dates,disabled:t.state.isLoadingPayrollDates||!t.payroll_dates.length,placeholder:"Select cut-off",mode:"tags"},null,8,["modelValue","loading","options","disabled"]),t.errors.payroll_date?(ae(),Be("span",sx,fs(t.errors.payroll_date),1)):ye("",!0)]),_:1})])]),j("div",ax,[j("div",ox,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(ae(),Be("div",ix,[j("div",nx,[j("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[5]||(r[5]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),k(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",pinnedTopRowData:s.pinnedTopRowData,style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","pinnedTopRowData","onGridReady"])])):ye("",!0)],64)}const cx=Rt(Qw,[["render",lx],["__scopeId","data-v-02485efb"]]);const im=sr,nm=yr,lm=Zr,fx=mt,cm=xf,ux=Tr,dx={components:{Layout:zt,Yup:Ff,FormGroup:Kt,Multiselect:jt,SubmitButton:Gt,CompanyService:im,DealershipService:nm,DepartmentService:lm,PayrollService:cm,AgGridVue:Jt,Loading:qt},data(){return{companies:[],dealerships:[],filteredDealerships:[],departments:[],payroll_dates:[],employees:[],compnayName:"",dealershipName:"",form:{dealership_id:null,department_id:null,selectedCompanyId:null,payroll_date:null,employee_id:null,modules:20,type:null},moduleTypes:[{value:1,label:"Leave"},{value:2,label:"OB"},{value:3,label:"Overtime"},{value:4,label:"Time Adjustment"},{value:5,label:"Change Schedule"},{value:6,label:"Offset"}],errors:{selectedCompanyId:"",payroll_date:"",type:""},state:{isLoadingCompanies:!1,isLoadingDealerships:!1,isLoadingDepartments:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1},pinnedTopRowData:[],pinnedBottomRowData:[],colDefs:[],rowData:[]}},watch:{},methods:{onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi,this.updateTotalHoursRow()},moduleColumns(s){this.colDefs=[...s]},ModuleLabel(){const s=this.moduleTypes.find(r=>r.value===this.form.type);return s?s.label:"Select Module"},calculateTotalHours(){return this.rowData.length===0?0:this.rowData.reduce((s,r)=>s+(r.hours||0),0)},async fetchEmployee(){this.state.isLoadingEmployees=!0,await ux.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)}),this.state.isLoadingEmployees=!1},async fetchCompanies(){this.state.isLoadingCompanies=!0;try{const s=await im.fetchRecords();s.status==200?this.companies=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`})):console.warn("Unexpected response status: ",s.status)}catch(s){console.error("Error fetching companies: ",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.state.isLoadingDealerships=!0;try{const s=await nm.fetchRecords();s.status==200?this.dealerships=s.data.data.map(r=>({value:r.id,label:`${r.code} - ${r.name}`,companyId:r.company_id})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},filterDealerships(){this.form.selectedCompanyId?(console.log("selected company id "),console.log(this.selectedCompanyId),this.filteredDealerships=this.dealerships.filter(s=>s.companyId===this.form.selectedCompanyId),console.log(this.filteredDealerships)):this.filteredDealerships=this.dealerships},onChangeCompany(s){console.log("selected companies :"+s),this.form.selectedCompanyId=s,this.filterDealerships(),this.moduleColumns([])},onChangeType(s){this.moduleColumns([])},async fetchDepartments(){this.state.isLoadingDepartments=!0;try{const s=await lm.fetchRecords();s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:`${r.name}`})))}catch(s){console.error("Error fetching departments",s.message)}finally{this.state.isLoadingDepartments=!1}},async fetchPayrollDate(){this.state.isLoadingPayrollDates=!0;try{const s=await cm.fetchRecords();s.status==200&&(this.payroll_dates=s.data.data.map(r=>({value:r.payroll_date,label:`${r.cut_off_start} - ${r.cut_off_end}`})))}catch(s){console.log("Error fetching payroll date",s.message)}finally{this.state.isLoadingPayrollDates=!1}},async submitForm(){if(console.log("FORM"),console.log(this.form),this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({selectedCompanyId:Lt().nullable().required("Company is required"),payroll_date:vf().nullable().required("Cut-Off date is required").typeError("Cut-Off date must be a valid date"),type:Lt().nullable().required("Module is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){var s,r,o;if(!this.state.isGenerating){this.state.isGenerating=!0;try{const n=await fx.fetchGeneratedReport(this.form);if((s=n.data)!=null&&s.data&&Object.keys(n.data.data).length>0){console.log("DATA"),console.log(n.data.data);const t=n.data.data.map(e=>({...e,approved_at:e.approved_at?new Date(e.approved_at).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric",hour:"2-digit",minute:"2-digit",second:"2-digit"}):null,date_from:e.date_from?new Date(e.date_from).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null,date_to:e.date_to?new Date(e.date_to).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null,date:e.date?new Date(e.date).toLocaleString("en-US",{year:"numeric",month:"short",day:"numeric"}):null}));switch(this.rowData=t,this.form.type){case 1:const e=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"leavetype",headerName:"Leave Type",sortable:!0,filter:!0},{field:"reason",headerName:"Reason",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(e);break;case 2:const u=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(u);break;case 3:const m=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(m);break;case 4:const b=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date",headerName:"Date",sortable:!0,filter:!0},{field:"In/Out",headerName:"In/Out",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(b);break;case 5:const _=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date",headerName:"Date",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(_);break;case 6:const w=[{headerName:this.ModuleLabel(),field:"company",children:[{field:"company",headerName:"Company",sortable:!0,filter:!0},{field:"dealer",headerName:"Dealer",sortable:!0,filter:!0},{field:"employee_id",headerName:"Employee ID",sortable:!0,filter:!0},{field:"name",headerName:"Name",sortable:!0,filter:!0},{field:"description",headerName:"Description",sortable:!0,filter:!0},{field:"date_from",headerName:"Date From",sortable:!0,filter:!0},{field:"date_to",headerName:"Date To",sortable:!0,filter:!0},{field:"hours",headerName:"Hours",sortable:!0,filter:!0},{field:"approver_name",headerName:"Approved by",sortable:!0,filter:!0},{field:"approved_at",headerName:"Date approved",sortable:!0,filter:!0}]}];this.moduleColumns(w);break;default:}}else this.rowData=[],this.moduleColumns([]),this.$swal.fire({title:"No Data Found",text:"No records were found matching the criteria.",icon:"info",timer:3e3});this.state.isGenerating=!1}catch(n){console.error("Error submitting report:",n),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=n.response)==null?void 0:r.data)==null?void 0:o.message)||"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){console.log("company id : "+s);const r=this.companies.find(o=>o.value===s);return this.compnayName=r?r.label:"Unknown Company",r?r.label:"Unknown Company"},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return this.dealershipName=r?r.label:"Unknown Dealership",r?r.label:"Unknown Dealership"},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},resetErrors(){this.errors={month:""}}},mounted(){this.fetchEmployee(),this.fetchCompanies(),this.fetchDealerships(),this.fetchDepartments(),this.fetchPayrollDate()}},hx={class:"grid grid-cols-3 gap-2"},px={class:""},mx={key:0,class:"text-red-400"},gx={class:"grid grid-cols-1 gap-2"},bx={class:""},yx={key:0,class:"text-red-400"},_x={class:""},vx={class:""},wx={key:0,class:"text-red-400"},xx={key:0},Cx={class:"mt-8 p-2 inline-block bg-green-300"},Fx={class:"flex justify-between items-center mt-2"},Ax={class:"flex gap-1 justify-end"},Dx={key:0,class:"mt-3"},Sx={class:"flex gap-1 justify-end"};function Ex(s,r,o,n,t,e){const u=K("Loading"),m=K("Multiselect"),b=K("FormGroup"),_=K("SubmitButton"),w=K("ag-grid-vue");return ae(),Be(Cr,null,[j("form",{onSubmit:r[5]||(r[5]=Ut((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(ae(),Ge(u,{key:0,text:"Processing"})):ye("",!0),j("div",hx,[j("div",px,[k(b,{label:"Type"},{default:W(()=>[k(m,{id:"type",label:s.Type,modelValue:t.form.type,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.type=S),placeholder:"(Module)",options:t.moduleTypes,searchable:!0,"close-on-select":!0,onChange:e.onChangeType,"track-by":"label"},null,8,["label","modelValue","options","onChange"]),t.errors.type?(ae(),Be("span",mx,fs(t.errors.type),1)):ye("",!0)]),_:1})]),j("div",gx,[k(b,{label:"Employee"},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.employee_id=S),disabled:t.state.isLoadingEmployee||!t.employees.length,options:t.employees,loading:t.state.isLoadingEmployees,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1})]),j("div",bx,[k(b,{label:"Company"},{default:W(()=>[k(m,{id:"company_id",label:s.Company,modelValue:t.form.selectedCompanyId,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.selectedCompanyId=S),loading:t.state.isLoadingCompanies,options:t.companies,disabled:t.state.isLoadingCompanies||!t.companies.length,placeholder:"(ALL)",searchable:!0,onChange:e.onChangeCompany},null,8,["label","modelValue","loading","options","disabled","onChange"]),t.errors.selectedCompanyId?(ae(),Be("span",yx,fs(t.errors.selectedCompanyId),1)):ye("",!0)]),_:1})]),j("div",_x,[k(b,{label:"Dealership"},{default:W(()=>[k(m,{id:"dealership_id",name:"dealership_id",modelValue:t.form.dealership_id,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.dealership_id=S),label:s.Dealership,loading:t.state.isLoadingDealerships,options:t.filteredDealerships,disabled:t.state.isLoadingDealerships||!e.filterDealerships,placeholder:"(ALL)",searchable:!0},null,8,["modelValue","label","loading","options","disabled"])]),_:1})]),j("div",vx,[k(b,{label:"Cut-Off Date",isRequired:!0},{default:W(()=>[k(m,{id:"payroll_date",modelValue:t.form.payroll_date,"onUpdate:modelValue":r[4]||(r[4]=S=>t.form.payroll_date=S),loading:t.state.isLoadingPayrollDates,options:t.payroll_dates,disabled:t.state.isLoadingPayrollDates||!t.payroll_dates.length},null,8,["modelValue","loading","options","disabled"]),t.errors.payroll_date?(ae(),Be("span",wx,fs(t.errors.payroll_date),1)):ye("",!0)]),_:1})]),t.form.payroll_date?(ae(),Be("div",xx,[k(b,{class:"rounded-md"},{default:W(()=>[j("p",Cx,"Payroll date : "+fs(t.form.payroll_date),1)]),_:1})])):ye("",!0)]),j("div",Fx,[j("div",Ax,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(ae(),Be("div",Dx,[j("div",Sx,[j("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[6]||(r[6]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),k(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","onGridReady"])])):ye("",!0)],64)}const Tx=Rt(dx,[["render",Ex],["__scopeId","data-v-c15642ad"]]);const kx=sr,Rx=yr,Lx=Zr,Mx=mt,Ox=xf,Px=Tr,Nx={components:{Layout:zt,Yup:Ff,FormGroup:Kt,Multiselect:jt,SubmitButton:Gt,CompanyService:kx,DealershipService:Rx,DepartmentService:Lx,PayrollService:Ox,AgGridVue:Jt,Loading:qt},data(){return{finalData:[],dealershipsOptions:[],companiesOptions:[],filteredDealerships:[],payroll_dates:[],payrollDateOptions:[],dealershipPosting:[],employeeOptions:[],form:{dealership_id:null,payroll_date:null,employee_id:null,modules:20,type:null},moduleTypes:[{value:1,label:"Leave"},{value:2,label:"OB"},{value:3,label:"Overtime"},{value:4,label:"Time Adjustment"},{value:5,label:"Change Schedule"},{value:6,label:"Offset"}],errors:{selectedCompanyId:"",payroll_date:"",type:""},state:{isLoadingDealerships:!1,isLoadingCompanies:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1},pinnedTopRowData:[],pinnedBottomRowData:[],colDefs:[],rowData:[]}},watch:{},methods:{onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi,this.updateTotalHoursRow()},moduleColumns(s){this.colDefs=[...s]},ModuleLabel(){const s=this.moduleTypes.find(r=>r.value===this.form.type);return s?s.label:"Select Module"},calculateTotalHours(){return this.rowData.length===0?0:this.rowData.reduce((s,r)=>s+(r.hours||0),0)},async fetchEmployees(){this.state.isLoadingEmployees=!0,await Px.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employeeOptions=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)}),this.state.isLoadingEmployees=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchCompany(){this.form.company_id=null,this.state.isLoadingCompanies=!0,console.log("payroll date",this.form.payroll_date);try{const s=await js.fetchCompanyAttendancePosted({payroll_date:this.form.payroll_date});s.status==200?this.companiesOptions=s.data.map(r=>({value:r.id,label:r.name,reference_no:r.attendance_posting[0].reference_no})):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching companies",s.message)}finally{this.state.isLoadingCompanies=!1}},async fetchDealerships(){this.form.dealership_id=null,this.state.isLoadingDealerships=!0,console.log("payroll date",this.form.payroll_date);try{const s=await js.fetchDealerAttendancePosted({payroll_date:this.form.payroll_date});s.status==200?(console.log("dealer res",s.data),this.dealershipsOptions=s.data.map(r=>({value:r.id,label:r.name,reference_no:r.attendance_posting[0].reference_no}))):console.warn("Enexpected response status : ",s.status)}catch(s){console.error("Error fetching dealerships",s.message)}finally{this.state.isLoadingDealerships=!1}},async fetchEmployee(s){this.state.isLoadingEmployees=!0,console.log("reference no",s);try{const r=await js.fetchEmployeeAttendancePosted({reference_no:s});r.status===200?(console.log("Employee",r.data),this.employeeOptions=r.data.map(o=>({value:o.employee_id,label:o.lastname+", "+o.firstname}))):console.warn("Unexpected response status: ",r.status)}catch(r){console.error("Error fetching employees",r.message)}finally{this.state.isLoadingEmployees=!1}},async submitForm(){if(this.resetErrors(),!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({payroll_date:vf().nullable().required("Payroll Date date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),console.log("Fetched Attendance Data:",this.finalData),this.generatePDF()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},async fetchAttendanceData(){try{const s=this.dealershipsOptions.find(t=>t.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no));const r=await Mx.GenerateAttendancePostingReport(this.form);console.log("resp",r);const o=r.data.attendance||{};let n=Object.values(o);n&&(this.employee={emp_no:n.emp_no,name:n.name}),this.finalData=Object.values(o)}catch(s){throw console.error("Error fetching attendance data:",s),s}},generatePDF(){if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}const s=new Bb({orientation:"landscape",unit:"mm",format:"a4"}),r=10;let o=20;const n=[["Day","Date","Shift","Time In/Out","Work","Late","Under","ND","OT","Absent","Leave","Type"]],t={0:{cellWidth:13},1:{cellWidth:25},2:{cellWidth:40},3:{cellWidth:40},4:{cellWidth:15},5:{cellWidth:13},6:{cellWidth:17},7:{cellWidth:13},8:{cellWidth:13},9:{cellWidth:20},10:{cellWidth:17},11:{cellWidth:15}};this.finalData.forEach((e,u)=>{u!==0&&s.addPage(),s.setFontSize(14),s.setTextColor(20,50,120),s.text("Attendance Sheet",r,15),s.setFontSize(10),s.setTextColor(0,0,0),s.text(`${e.start_date} - ${e.end_date}`,r,20),s.text(`ID: ${e.employee_id}`,r,27),s.text(`Name: ${e.name+" ("+e.payroll_rate+")"}`,r,32),o=35;const m={duty_hours:Array.isArray(e.duty_hours)?e.duty_hours.reduce((_,w)=>_+(parseFloat(w)||0),0):0,tardiness_mins:Array.isArray(e.tardiness_mins)?e.tardiness_mins.reduce((_,w)=>_+parseFloat(w||0),0).toFixed(2):"0.00",undertime_mins:Array.isArray(e.undertime_mins)?e.undertime_mins.reduce((_,w)=>_+parseFloat(w||0),0).toFixed(2):"0.00",nd_hrs:Array.isArray(e.nd_hrs)?e.nd_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0,overtime_hrs:Array.isArray(e.overtime_hrs)?e.overtime_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0,absent_days:Array.isArray(e.absent_days)?e.absent_days.reduce((_,w,S)=>{let D=e.payroll_rate==="Daily"&&parseFloat(w)>=8?0:parseFloat(w)||0;return _+D},0):0,leave_hrs:Array.isArray(e.leave_hrs)?e.leave_hrs.reduce((_,w)=>_+(parseFloat(w)||0),0):0},b=((e==null?void 0:e.day)||[]).map((_,w)=>{var S,D,E,M,V,Y,U,ee,ie,z,H,ne,G;return[_||"",((S=e==null?void 0:e.date)==null?void 0:S[w])||"",((D=e==null?void 0:e.shift)==null?void 0:D[w])||"",((E=e==null?void 0:e.time_in_out)==null?void 0:E[w])||"",((M=e==null?void 0:e.duty_hours)==null?void 0:M[w])||"",((V=e==null?void 0:e.tardiness_mins)==null?void 0:V[w])||"",((Y=e==null?void 0:e.undertime_mins)==null?void 0:Y[w])||"",((U=e==null?void 0:e.nd_hrs)==null?void 0:U[w])||"",((ee=e==null?void 0:e.overtime_hrs)==null?void 0:ee[w])||"",e.payroll_rate==="Daily"&&parseFloat((ie=e==null?void 0:e.absent_days)==null?void 0:ie[w])>=8?"0.0":((z=e==null?void 0:e.absent_days)==null?void 0:z[w])||"",e.payroll_rate==="Monthly"&&parseFloat((H=e==null?void 0:e.absent_days)==null?void 0:H[w])>=8?"":((ne=e==null?void 0:e.leave_hrs)==null?void 0:ne[w])||"",((G=e==null?void 0:e.type)==null?void 0:G[w])||""]});b.push(["","","","Subtotal",m.duty_hours.toFixed(2),parseFloat(m.tardiness_mins).toFixed(2),parseFloat(m.undertime_mins).toFixed(2),m.nd_hrs.toFixed(2),m.overtime_hrs.toFixed(2),m.absent_days.toFixed(2),m.leave_hrs.toFixed(2),""]),s.autoTable({head:n,body:b,startY:o,styles:{fontSize:10,cellPadding:2,minCellHeight:6},theme:"grid",margin:{left:r,right:10},columnStyles:t,headStyles:{fillColor:[20,150,120],textColor:[255,255,255],fontSize:10},bodyStyles:{valign:"middle",fontSize:9},didParseCell:function(_){_.row.index===b.length-1&&(_.cell.styles.fontStyle="bold",_.cell.styles.fillColor=[230,230,230])}})}),s.save("Attendance_Sheet.pdf")},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},onGridReady(s){this.gridApi=s.api,this.gridColumnApi=s.columnApi},getCompanyName(s){console.log("company id : "+s);const r=this.companies.find(o=>o.value===s);return this.compnayName=r?r.label:"Unknown Company",r?r.label:"Unknown Company"},getDealershipName(s){const r=this.filteredDealerships.find(o=>o.value===s);return this.dealershipName=r?r.label:"Unknown Dealership",r?r.label:"Unknown Dealership"},getPayrollDates(s){console.log("getPayrollDates executed with ID:",s);const r=this.payrollDates.find(o=>o.payroll_date===s);return r?r.date:"N/A"},resetErrors(){this.errors={month:""}}},mounted(){this.fetchPayrollDates()},watch:{"form.payroll_date":{handler(s){this.fetchDealerships(s),this.fetchCompany(s)},immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},Ix={class:"grid grid-cols-3 gap-2"},Vx={class:"relative"},Bx={class:"flex justify-between items-center mt-2"},Ux={class:"flex gap-1 justify-end"},zx={key:0,class:"mt-3"},Gx={class:"flex gap-1 justify-end"};function jx(s,r,o,n,t,e){const u=K("Loading"),m=K("Multiselect"),b=K("FormGroup"),_=K("SubmitButton"),w=K("ag-grid-vue");return ae(),Be(Cr,null,[j("form",{onSubmit:r[4]||(r[4]=Ut((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(ae(),Ge(u,{key:0,text:"Processing"})):ye("",!0),j("div",Ix,[k(b,{label:"Payroll Date",class:"w-full"},{default:W(()=>[j("div",Vx,[k(m,{modelValue:t.form.payroll_date,"onUpdate:modelValue":r[0]||(r[0]=S=>t.form.payroll_date=S),"close-on-select":!0,searchable:!0,id:"payroll_date",options:t.payrollDateOptions,placeholder:t.state.fetchingPayrollDates?"Loading data":"",disabled:t.state.fetchingPayrollDates,loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","placeholder","disabled","loading"])])]),_:1}),k(b,{label:"Company",isRequired:!0},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=S=>t.form.company_id=S),options:t.companiesOptions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isLoadingCompanies},null,8,["modelValue","options","loading"])]),_:1}),k(b,{label:"Dealership"},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealership_id,"onUpdate:modelValue":r[2]||(r[2]=S=>t.form.dealership_id=S),disabled:t.state.isLoadingDealerships,options:t.dealershipsOptions,loading:t.state.isLoadingDealerships,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1}),k(b,{label:"Employee"},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[3]||(r[3]=S=>t.form.employee_id=S),disabled:t.state.isLoadingEmployee,options:t.employeeOptions,loading:t.state.isLoadingEmployees,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1})]),j("div",Bx,[j("div",Ux,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(ae(),Be("div",zx,[j("div",Gx,[j("button",{class:"btn btn-sm btn-dark mb-2",icon:"heroicons-outline:download",onClick:r[5]||(r[5]=(...S)=>e.exportToCSV&&e.exportToCSV(...S))},"Export csv")]),k(w,{rowData:t.rowData,columnDefs:t.colDefs,class:"ag-theme-alpine",style:{width:"100%",height:"400px"},groupIncludeFooter:!0,groupIncludeTotalFooter:!0,animateRows:!0,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","onGridReady"])])):ye("",!0)],64)}const Wx=Rt(Nx,[["render",jx],["__scopeId","data-v-c4da9af3"]]);const Hx={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],jobtitles:[],dealers:[],jobgrades:[],jobclassifications:[],groups:[],divisions:[],departments:[],sections:[],units:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:3,columns:[],leave_id:"",position_id:"",company_id:"",dealer_id:"",job_grade_id:"",job_classification_id:"",group_id:"",division_id:"",department_id:"",section_id:"",unit_id:"",date_hired_from:"",date_hired_to:""},included:{position_id:!1,company_id:!1,dealer_id:!1,job_grade_id:!1,job_classification_id:!1,group_id:!1,division_id:!1,department_id:!1,section_id:!1,unit_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isJobTitleLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isJobGradeLoading:!1,isJobClassificationLoading:!1,isGroupLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionsLoading:!1,isUnitLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({date_hired_from:Lt().required("Date Hired From is required"),date_hired_to:Lt().required("Date Hired To is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"3",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchJobTitle(){this.state.isJobTitleLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.jobtitles=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobTitleLoading=!1)}catch(s){console.log(s)}},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchJobGrade(){this.state.isJobGradeLoading=!0;try{const s=await ty.fetchRecords();s.status===200&&(this.jobgrades=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobGradeLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJobClassificationLoading=!0;try{const s=await yl.fetchRecords();s.status===200&&(this.jobclassifications=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJobClassificationLoading=!1)}catch(s){console.log(s)}},async fetchGrade(){this.state.isGroupLoading=!0;try{const s=await ey.fetchRecords();s.status===200&&(this.groups=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isGroupLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchSection(){this.state.isSectionsLoading=!0;try{const s=await hm.fetchRecords();s.status===200&&(this.sections=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isSectionsLoading=!1)}catch(s){console.log(s)}},async fetchUnit(){this.state.isUnitLoading=!0;try{const s=await ry.fetchRecords();s.status===200&&(this.units=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isUnitLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(3);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){this.updateIncludedFlag(s,!0)},onRemove(s){this.updateIncludedFlag(s,!1)},updateIncludedFlag(s,r){const o={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};o[s]&&(this.included[o[s]]=r)}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchJobGrade(),this.fetchJobClassification(),this.fetchGrade(),this.fetchDivision(),this.fetchDepartment(),this.fetchSection(),this.fetchUnit(),this.fetchJobTitle(),this.fetchReportModuleColumn()},watch:{"form.columns"(s){if(s!=null){const r={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};for(const[o,n]of Object.entries(r))this.form.columns.includes(o)?this.included[n]=!0:this.included[n]=!1}}}},Yx={class:"grid grid-cols-1 gap-2"},qx={class:"grid grid-cols-5 gap-2"},Kx={class:"grid grid-cols-2 gap-2"},Jx={class:"flex justify-between items-center"},Xx={class:"flex gap-1 justify-end"};function Qx(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[14]||(r[14]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[15]||(r[15]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",Yx,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.columns=E),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",qx,[t.included.position_id?(ae(),Ge(m,{key:0,label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.position_id=E),options:t.jobtitles,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobTitleLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.company_id?(ae(),Ge(m,{key:1,label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.dealer_id?(ae(),Ge(m,{key:2,label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.job_grade_id?(ae(),Ge(m,{key:3,label:"Job Grade"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_grade_id,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.job_grade_id=E),options:t.jobgrades,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobGradeLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.job_classification_id?(ae(),Ge(m,{key:4,label:"Job Classification"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.job_classification_id=E),options:t.jobclassifications,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJobClassificationLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.group_id?(ae(),Ge(m,{key:5,label:"Group"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.group_id,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.group_id=E),options:t.groups,class:"form-control w-full h-[48px] mt-2",loading:t.state.isGroupLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.division_id?(ae(),Ge(m,{key:6,label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[8]||(r[8]=E=>t.form.division_id=E),options:t.divisions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.department_id?(ae(),Ge(m,{key:7,label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[9]||(r[9]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.section_id?(ae(),Ge(m,{key:8,label:"Section"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.section_id,"onUpdate:modelValue":r[10]||(r[10]=E=>t.form.section_id=E),options:t.sections,class:"form-control w-full h-[48px] mt-2",loading:t.state.isSectionsLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.unit_id?(ae(),Ge(m,{key:9,label:"Unit"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.unit_id,"onUpdate:modelValue":r[11]||(r[11]=E=>t.form.unit_id=E),options:t.units,class:"form-control w-full h-[48px] mt-2",loading:t.state.isUnitLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0)]),j("div",Kx,[k(m,{label:"Date Hired From",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.date_hired_from,"onUpdate:modelValue":r[12]||(r[12]=E=>t.form.date_hired_from=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"Date Hired To",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.date_hired_to,"onUpdate:modelValue":r[13]||(r[13]=E=>t.form.date_hired_to=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",Jx,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",Xx,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),r[16]||(r[16]=j("div",null,null,-1))],64)}const Zx=Rt(Hx,[["render",Qx],["__scopeId","data-v-5d7ad82e"]]);const $x={props:["finalData","form"],mounted(){Aa.register(ko,Eo,So,ri,Cl,Fl,xl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",m=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${m})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),n=Object.values(r);this.chartInstance=new Aa(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:n,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function eC(s,r,o,n,t,e){return ae(),Be("div",null,r[0]||(r[0]=[j("canvas",{id:"reportChart"},null,-1)]))}const tC=Rt($x,[["render",eC],["__scopeId","data-v-f3f7ded1"]]),rC={props:{modelValue:{type:Object,required:!0},min:{type:Number,default:0},max:{type:Number,default:2e3}},data(){return{internalMin:this.modelValue.min,internalMax:this.modelValue.max}},watch:{modelValue:{handler(s){this.internalMin=s.min,this.internalMax=s.max},deep:!0}},methods:{updateRange(){this.$emit("update:modelValue",{min:this.internalMin,max:this.internalMax})}}},sC={for:"min-price"},aC=["min","max"],oC={for:"max-price"},iC=["min","max"];function nC(s,r,o,n,t,e){return ae(),Be("div",null,[j("label",sC,"Min: "+fs(o.modelValue.min),1),Zo(j("input",{type:"range",min:o.min,max:o.max,"onUpdate:modelValue":r[0]||(r[0]=u=>t.internalMin=u),onInput:r[1]||(r[1]=(...u)=>e.updateRange&&e.updateRange(...u))},null,40,aC),[[of,t.internalMin]]),j("label",oC,"Max: "+fs(o.modelValue.max),1),Zo(j("input",{type:"range",min:o.min,max:o.max,"onUpdate:modelValue":r[2]||(r[2]=u=>t.internalMax=u),onInput:r[3]||(r[3]=(...u)=>e.updateRange&&e.updateRange(...u))},null,40,iC),[[of,t.internalMax]])])}const d1=Rt(rC,[["render",nC]]);const lC={setup(){},components:{PriceRange:d1,AgGridVue:Jt,ActionCellRenderer:dr,LeaveReportChart:tC,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,payrollRateOptions:[{label:"Monthly",value:"Monthly"},{label:"Daily",value:"Daily"}],paymentTypeOptions:[{label:"Cut-Off",value:"Cut-Off"},{label:"Monthly",value:"Monthly"}],priceRange:{min:0,max:5e5},gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],form:{modules:4,columns:[],salary_rate:"",payroll_rate:"",payment_type:"",salary_effectivity_date:""},included:{leave_id:!1,salary_rate:!1,payroll_rate:!1,payment_type:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{handlePriceRangeUpdate(s){this.priceRange=s},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({salary_effectivity_date:Lt().required("Effeectivity Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"1",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(4);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="salary_rate"&&(this.fetchLeaveType(),this.included.salary_rate=!0),s==="payroll_rate"&&(this.included.payroll_rate=!0),s==="payment_type"&&(this.included.payment_type=!0)},onRemove(s){s==="salary_rate"&&(this.included.salary_rate=!1),s==="payroll_rate"&&(this.included.payroll_rate=!1),s==="payment_type"&&(this.included.payment_type=!1)}},mounted(){this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("salary_rate")?this.included.salary_rate=!0:this.included.salary_rate=!1,this.form.columns.includes("payroll_rate")?this.included.payroll_rate=!0:this.included.payroll_rate=!1,this.form.columns.includes("payment_type")?this.included.payment_type=!0:this.included.payment_type=!1)}}},cC={class:"grid grid-cols-1 gap-2"},fC={class:"grid grid-cols-5 gap-2"},uC={class:"grid grid-cols-2 gap-2"},dC={class:"flex justify-between items-center"},hC={class:"flex gap-1 justify-end"};function pC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("PriceRange"),_=K("flat-pickr"),w=K("Button"),S=K("SubmitButton"),D=K("ag-grid-vue"),E=K("Card"),M=K("LeaveReportChart");return ae(),Be(Cr,null,[j("form",{onSubmit:r[6]||(r[6]=Ut((...V)=>s.confirmSubmit&&s.confirmSubmit(...V),["prevent"])),class:"space-y-4"},[r[7]||(r[7]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",cC,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=V=>t.form.columns=V),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...V)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...V))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",fC,[t.included.payroll_rate?(ae(),Ge(m,{key:0,label:"Payroll Rate"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=V=>t.form.payroll_rate=V),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0),t.included.salary_rate?(ae(),Ge(m,{key:1,label:"Salary Rate"},{default:W(()=>[k(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=V=>t.form.salary_rate=V)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):ye("",!0),t.included.payment_type?(ae(),Ge(m,{key:2,label:"Payment Type"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=V=>t.form.payment_type=V),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0)]),j("div",uC,[k(m,{label:"Effectivity Date",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.salary_effectivity_date,"onUpdate:modelValue":r[5]||(r[5]=V=>t.form.salary_effectivity_date=V),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",dC,[t.hasValue?(ae(),Ge(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",hC,[k(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(E,{key:0,class:"p-2"},{default:W(()=>[k(D,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),j("div",null,[t.form.modules==1&&t.finalData.length!=0?(ae(),Ge(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):ye("",!0)])],64)}const mC=Rt(lC,[["render",pC],["__scopeId","data-v-74bf07da"]]);const gC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],jobtitles:[],dealers:[],jobgrades:[],jobclassifications:[],groups:[],divisions:[],departments:[],sections:[],units:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:5,company_id:"",dealer_id:"",columns:[]},included:{position_id:!1,company_id:!1,dealer_id:!1,job_grade_id:!1,job_classification_id:!1,group_id:!1,division_id:!1,department_id:!1,section_id:!1,unit_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isJobTitleLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isJobGradeLoading:!1,isJobClassificationLoading:!1,isGroupLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionsLoading:!1,isUnitLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"3",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){this.updateIncludedFlag(s,!0)},onRemove(s){this.updateIncludedFlag(s,!1)},updateIncludedFlag(s,r){const o={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};o[s]&&(this.included[o[s]]=r)}},mounted(){this.fetchReportModuleColumn(),this.fetchCompany(),this.fetchDealership()},watch:{"form.columns"(s){if(s!=null){const r={position_id:"position_id",company_id:"company_id",dealer_id:"dealer_id",job_grade_id:"job_grade_id",job_classification_id:"job_classification_id",group_id:"group_id",division_id:"division_id",department_id:"department_id",section_id:"section_id",unit_id:"unit_id"};for(const[o,n]of Object.entries(r))this.form.columns.includes(o)?this.included[n]=!0:this.included[n]=!1}}}},bC={class:"grid grid-cols-1 gap-2"},yC={class:"grid grid-cols-2 gap-2"},_C={class:"flex justify-between items-center"},vC={class:"flex gap-1 justify-end"};function wC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[4]||(r[4]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",bC,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.columns=D),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...D)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...D))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",yC,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=D=>t.form.company_id=D),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[3]||(r[3]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",_C,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",vC,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),r[6]||(r[6]=j("div",null,null,-1))],64)}const xC=Rt(gC,[["render",wC],["__scopeId","data-v-7fd57102"]]);const CC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:6,columns:[],company_id:"",dealer_id:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"3",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0,flex:3},{field:"fullname",filter:!0,floatingFilter:!0,flex:3},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchDealership()},watch:{}},FC={class:"grid grid-cols-2 gap-2"},AC={class:"flex justify-between items-center"},DC={class:"flex gap-1 justify-end"};function SC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[2]||(r[2]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[r[3]||(r[3]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",FC,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",AC,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",DC,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),r[4]||(r[4]=j("div",null,null,-1))],64)}const EC=Rt(CC,[["render",SC],["__scopeId","data-v-5acce385"]]);const TC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:7,employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data,console.log("wiw",s.data);const r=this.finalData.map(o=>{let n=[];return o.absent.absent&&Array.isArray(o.absent.absent)&&(n=o.absent.absent.map(t=>this.$formatDate(t.date))),console.log("Data Item:",n),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,absent_dates:n}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"absent_dates",headerName:"Absent Dates",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.join(", ")}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},kC={class:"grid grid-cols-1 gap-2"},RC={class:"grid grid-cols-2 gap-2"},LC={class:"grid grid-cols-2 gap-2"},MC={class:"flex justify-between items-center"},OC={class:"flex gap-1 justify-end"};function PC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[5]||(r[5]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",kC,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",RC,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",LC,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",MC,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",OC,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const NC=Rt(TC,[["render",PC],["__scopeId","data-v-0c343272"]]);const IC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:8,employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let n=[];return o.tardiness&&Array.isArray(o.tardiness)&&(n=o.tardiness.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",n),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,tardiness_records:n}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"tardiness_records",headerName:"Tardiness Records",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.map(n=>`${n.date} (${n.value} minutes)`).join(", ")}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},VC={class:"grid grid-cols-1 gap-2"},BC={class:"grid grid-cols-2 gap-2"},UC={class:"grid grid-cols-2 gap-2"},zC={class:"flex justify-between items-center"},GC={class:"flex gap-1 justify-end"};function jC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[5]||(r[5]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",VC,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",BC,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",UC,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",zC,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",GC,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const WC=Rt(IC,[["render",jC],["__scopeId","data-v-330667ed"]]);const HC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:9,company_id:"",dealer_id:"",month:[]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,birth_date:this.$formatDate(o.birth_date)}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:3},{field:"birth_date",headerName:"Birthdate",filter:!0,floatingFilter:!0,flex:2}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},YC={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},qC={class:"flex justify-between items-center"},KC={class:"flex gap-1 justify-end"};function JC(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[3]||(r[3]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[j("div",YC,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:t.companies,class:"form-multiselect w-full mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-multiselect w-full mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[2]||(r[2]=D=>t.form.month=D),options:t.months,mode:"tags",class:"form-multiselect w-full mt-2"},null,8,["modelValue","options"])]),_:1})]),j("div",qC,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",KC,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const XC=Rt(HC,[["render",JC],["__scopeId","data-v-b9509db6"]]);const QC={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:10,employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let n=[];return o.undertime&&Array.isArray(o.undertime)&&(n=o.undertime.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",n),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,undertime_records:n}});this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:2},{field:"undertime_records",headerName:"Undertime Records",filter:!0,floatingFilter:!0,flex:3,valueFormatter:o=>o.value.map(n=>`${n.date} (${n.value} minutes)`).join(", ")}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},ZC={class:"grid grid-cols-1 gap-2"},$C={class:"grid grid-cols-2 gap-2"},e3={class:"grid grid-cols-2 gap-2"},t3={class:"flex justify-between items-center"},r3={class:"flex gap-1 justify-end"};function s3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[5]||(r[5]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",ZC,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",$C,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",e3,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",t3,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",r3,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const a3=Rt(QC,[["render",s3],["__scopeId","data-v-14d7ac46"]]);const o3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:11,employee_id:[],company_id:"",dealer_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){if(this.finalData=s.data.data,this.finalData.length>1e3){this.exportToExcel(this.finalData);return}const r=new Date(this.form.start_date),o=new Date(this.form.end_date),n=[];for(let e=new Date(r);e<=o;e.setDate(e.getDate()+1)){const u=this.$formatDate(e);n.push({field:u,headerName:u,filter:!0,floatingFilter:!0,flex:2})}this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:1},{field:"fullname",headerName:"Full Name",filter:!0,floatingFilter:!0,flex:3},...n];const t=this.finalData.map(e=>{const u={employee_id:e.employee_id||null,fullname:`${e.firstname} ${e.lastname}`||null};for(let m=new Date(r);m<=o;m.setDate(m.getDate()+1)){const b=this.$formatDate(m);console.log(e.timelog),e.timelog.map(D=>{console.log(D.datetimelog+" - "+b)});const _=e.timelog.filter(D=>this.$formatDate(D.datetimelog).startsWith(b));let w="No data",S="No data";_.forEach(D=>{D.in_out==="I"?w=D.datetimelog.split(" ")[1]:D.in_out==="O"&&(S=D.datetimelog.split(" ")[1])}),u[b]=`In: ${w}, Out: ${S}`}return u});this.resultData=t,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},i3={class:"grid grid-cols-1 gap-2"},n3={class:"grid grid-cols-2 gap-2"},l3={class:"grid grid-cols-2 gap-2"},c3={class:"flex justify-between items-center"},f3={class:"flex gap-1 justify-end"};function u3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[5]||(r[5]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",i3,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",n3,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",l3,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",c3,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",f3,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz ag-grid-overflow",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const d3=Rt(o3,[["render",u3],["__scopeId","data-v-412fe5fc"]]);const h3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{items:"",gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],leaveType:[],companies:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:12,columns:[],company_id:"",dealer_id:"",date:"",from_time:"",to_time:"",attachment:"",destination:"",description:"",status:"",recommending_id:"",approver_id:"",approved_at:""},included:{leave_id:!1,status:!1,charge_to:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({from_date:Lt().required("From Date is required"),to_date:Lt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"12",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,console.log("Mapped Data",this.colDefs)}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchLeaveType(){this.state.isLeaveTypeLoading=!0;try{const s=await wf.fetchRecords();s.status===200&&(console.log(s.data),this.leaveType=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isLeaveTypeLoading=!1)}catch(s){console.log(s)}},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(12);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="status"&&(this.included.status=!0)},onRemove(s){s==="status"&&(this.included.status=!1)}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchReportModuleColumn()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("status")?(this.fetchLeaveType(),this.included.status=!0):this.included.status=!1)}}},p3={class:"grid grid-cols-1 gap-2"},m3={class:"grid grid-cols-2 gap-2"},g3={class:"grid grid-cols-5 gap-2"},b3={class:"grid grid-cols-2 gap-2"},y3={class:"flex justify-between items-center"},_3={class:"flex gap-1 justify-end"};function v3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[8]||(r[8]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",p3,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.columns=E),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",m3,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.dealer_id=E),options:s.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",g3,[t.included.charge_to?(ae(),Ge(m,{key:0,label:"Charges To"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.charge_to=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):ye("",!0),t.included.status?(ae(),Ge(m,{key:1,label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.status=E),options:t.statusOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0)]),j("div",b3,[k(m,{label:"From Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.from_date,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.from_date=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"To Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.to_date,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.to_date=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",y3,[t.items?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",_3,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.items?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),r[10]||(r[10]=j("div",null,null,-1))],64)}const w3=Rt(h3,[["render",v3],["__scopeId","data-v-409e4aa6"]]);function ll(s){throw new Error('Could not dynamically require "'+s+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var yf={exports:{}},sf={exports:{}};/*! cpexcel.js (C) 2013-present SheetJS -- http://sheetjs.com */var fm;function x3(){return fm||(fm=1,function(s){var r={version:"1.15.0"};r[437]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[620]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[737]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[850]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´±‗¾¶§÷¸°¨·¹³²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[852]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´˝˛ˇ˘§÷¸°¨˙űŘř■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[857]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´±�¾¶§÷¸°¨·¹³²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[861]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[865]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[866]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[874]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[895]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[932]=function(){var o=[],n={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������。「」、・ヲァィゥェォャュョッーアイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワン゙゚��������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(n[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="���������������������������������������������������������������� 、。,.・:;?!゛゜´`¨^ ̄_ヽヾゝゞ〃仝々〆〇ー―‐/\~∥|…‥‘’“”()〔〕[]{}〈〉《》「」『』【】+-±×�÷=≠<>≦≧∞∴♂♀°′″℃¥$¢£%#&*@§☆★○●◎◇◆□■△▲▽▼※〒→←↑↓〓�����������∈∋⊆⊇⊂⊃∪∩��������∧∨¬⇒⇔∀∃�����������∠⊥⌒∂∇≡≒≪≫√∽∝∵∫∬�������ʼn♯♭♪†‡¶����◯���".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(n[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="�������������������������������������������������������������������������������0123456789�������ABCDEFGHIJKLMNOPQRSTUVWXYZ�������abcdefghijklmnopqrstuvwxyz����ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん��������������".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(n[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="����������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミ�ムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ��������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�����������������������������������������".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(n[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="����������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмн�опрстуфхцчшщъыьэюя�������������─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂�����������������������������������������������������������������".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(n[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[135]="����������������������������������������������������������������①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮⑯⑰⑱⑲⑳ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�㍉㌔㌢㍍㌘㌧㌃㌶㍑㍗㌍㌦㌣㌫㍊㌻㎜㎝㎞㎎㎏㏄㎡��������㍻�〝〟№㏍℡㊤㊥㊦㊧㊨㈱㈲㈹㍾㍽㍼≒≡∫∮∑√⊥∠∟⊿∵∩∪���������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(n[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="���������������������������������������������������������������������������������������������������������������������������������������������������������������亜唖娃阿哀愛挨姶逢葵茜穐悪握渥旭葦芦鯵梓圧斡扱宛姐虻飴絢綾鮎或粟袷安庵按暗案闇鞍杏以伊位依偉囲夷委威尉惟意慰易椅為畏異移維緯胃萎衣謂違遺医井亥域育郁磯一壱溢逸稲茨芋鰯允印咽員因姻引飲淫胤蔭���".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(n[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="����������������������������������������������������������������院陰隠韻吋右宇烏羽迂雨卯鵜窺丑碓臼渦嘘唄欝蔚鰻姥厩浦瓜閏噂云運雲荏餌叡営嬰影映曳栄永泳洩瑛盈穎頴英衛詠鋭液疫益駅悦謁越閲榎厭円�園堰奄宴延怨掩援沿演炎焔煙燕猿縁艶苑薗遠鉛鴛塩於汚甥凹央奥往応押旺横欧殴王翁襖鴬鴎黄岡沖荻億屋憶臆桶牡乙俺卸恩温穏音下化仮何伽価佳加可嘉夏嫁家寡科暇果架歌河火珂禍禾稼箇花苛茄荷華菓蝦課嘩貨迦過霞蚊俄峨我牙画臥芽蛾賀雅餓駕介会解回塊壊廻快怪悔恢懐戒拐改���".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(n[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="����������������������������������������������������������������魁晦械海灰界皆絵芥蟹開階貝凱劾外咳害崖慨概涯碍蓋街該鎧骸浬馨蛙垣柿蛎鈎劃嚇各廓拡撹格核殻獲確穫覚角赫較郭閣隔革学岳楽額顎掛笠樫�橿梶鰍潟割喝恰括活渇滑葛褐轄且鰹叶椛樺鞄株兜竃蒲釜鎌噛鴨栢茅萱粥刈苅瓦乾侃冠寒刊勘勧巻喚堪姦完官寛干幹患感慣憾換敢柑桓棺款歓汗漢澗潅環甘監看竿管簡緩缶翰肝艦莞観諌貫還鑑間閑関陥韓館舘丸含岸巌玩癌眼岩翫贋雁頑顔願企伎危喜器基奇嬉寄岐希幾忌揮机旗既期棋棄���".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(n[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="����������������������������������������������������������������機帰毅気汽畿祈季稀紀徽規記貴起軌輝飢騎鬼亀偽儀妓宜戯技擬欺犠疑祇義蟻誼議掬菊鞠吉吃喫桔橘詰砧杵黍却客脚虐逆丘久仇休及吸宮弓急救�朽求汲泣灸球究窮笈級糾給旧牛去居巨拒拠挙渠虚許距鋸漁禦魚亨享京供侠僑兇競共凶協匡卿叫喬境峡強彊怯恐恭挟教橋況狂狭矯胸脅興蕎郷鏡響饗驚仰凝尭暁業局曲極玉桐粁僅勤均巾錦斤欣欽琴禁禽筋緊芹菌衿襟謹近金吟銀九倶句区狗玖矩苦躯駆駈駒具愚虞喰空偶寓遇隅串櫛釧屑屈���".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(n[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="����������������������������������������������������������������掘窟沓靴轡窪熊隈粂栗繰桑鍬勲君薫訓群軍郡卦袈祁係傾刑兄啓圭珪型契形径恵慶慧憩掲携敬景桂渓畦稽系経継繋罫茎荊蛍計詣警軽頚鶏芸迎鯨�劇戟撃激隙桁傑欠決潔穴結血訣月件倹倦健兼券剣喧圏堅嫌建憲懸拳捲検権牽犬献研硯絹県肩見謙賢軒遣鍵険顕験鹸元原厳幻弦減源玄現絃舷言諺限乎個古呼固姑孤己庫弧戸故枯湖狐糊袴股胡菰虎誇跨鈷雇顧鼓五互伍午呉吾娯後御悟梧檎瑚碁語誤護醐乞鯉交佼侯候倖光公功効勾厚口向���".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(n[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="����������������������������������������������������������������后喉坑垢好孔孝宏工巧巷幸広庚康弘恒慌抗拘控攻昂晃更杭校梗構江洪浩港溝甲皇硬稿糠紅紘絞綱耕考肯肱腔膏航荒行衡講貢購郊酵鉱砿鋼閤降�項香高鴻剛劫号合壕拷濠豪轟麹克刻告国穀酷鵠黒獄漉腰甑忽惚骨狛込此頃今困坤墾婚恨懇昏昆根梱混痕紺艮魂些佐叉唆嵯左差査沙瑳砂詐鎖裟坐座挫債催再最哉塞妻宰彩才採栽歳済災采犀砕砦祭斎細菜裁載際剤在材罪財冴坂阪堺榊肴咲崎埼碕鷺作削咋搾昨朔柵窄策索錯桜鮭笹匙冊刷���".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(n[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="����������������������������������������������������������������察拶撮擦札殺薩雑皐鯖捌錆鮫皿晒三傘参山惨撒散桟燦珊産算纂蚕讃賛酸餐斬暫残仕仔伺使刺司史嗣四士始姉姿子屍市師志思指支孜斯施旨枝止�死氏獅祉私糸紙紫肢脂至視詞詩試誌諮資賜雌飼歯事似侍児字寺慈持時次滋治爾璽痔磁示而耳自蒔辞汐鹿式識鴫竺軸宍雫七叱執失嫉室悉湿漆疾質実蔀篠偲柴芝屡蕊縞舎写射捨赦斜煮社紗者謝車遮蛇邪借勺尺杓灼爵酌釈錫若寂弱惹主取守手朱殊狩珠種腫趣酒首儒受呪寿授樹綬需囚収周���".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(n[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="����������������������������������������������������������������宗就州修愁拾洲秀秋終繍習臭舟蒐衆襲讐蹴輯週酋酬集醜什住充十従戎柔汁渋獣縦重銃叔夙宿淑祝縮粛塾熟出術述俊峻春瞬竣舜駿准循旬楯殉淳�準潤盾純巡遵醇順処初所暑曙渚庶緒署書薯藷諸助叙女序徐恕鋤除傷償勝匠升召哨商唱嘗奨妾娼宵将小少尚庄床廠彰承抄招掌捷昇昌昭晶松梢樟樵沼消渉湘焼焦照症省硝礁祥称章笑粧紹肖菖蒋蕉衝裳訟証詔詳象賞醤鉦鍾鐘障鞘上丈丞乗冗剰城場壌嬢常情擾条杖浄状畳穣蒸譲醸錠嘱埴飾���".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(n[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="����������������������������������������������������������������拭植殖燭織職色触食蝕辱尻伸信侵唇娠寝審心慎振新晋森榛浸深申疹真神秦紳臣芯薪親診身辛進針震人仁刃塵壬尋甚尽腎訊迅陣靭笥諏須酢図厨�逗吹垂帥推水炊睡粋翠衰遂酔錐錘随瑞髄崇嵩数枢趨雛据杉椙菅頗雀裾澄摺寸世瀬畝是凄制勢姓征性成政整星晴棲栖正清牲生盛精聖声製西誠誓請逝醒青静斉税脆隻席惜戚斥昔析石積籍績脊責赤跡蹟碩切拙接摂折設窃節説雪絶舌蝉仙先千占宣専尖川戦扇撰栓栴泉浅洗染潜煎煽旋穿箭線���".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(n[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="����������������������������������������������������������������繊羨腺舛船薦詮賎践選遷銭銑閃鮮前善漸然全禅繕膳糎噌塑岨措曾曽楚狙疏疎礎祖租粗素組蘇訴阻遡鼠僧創双叢倉喪壮奏爽宋層匝惣想捜掃挿掻�操早曹巣槍槽漕燥争痩相窓糟総綜聡草荘葬蒼藻装走送遭鎗霜騒像増憎臓蔵贈造促側則即息捉束測足速俗属賊族続卒袖其揃存孫尊損村遜他多太汰詑唾堕妥惰打柁舵楕陀駄騨体堆対耐岱帯待怠態戴替泰滞胎腿苔袋貸退逮隊黛鯛代台大第醍題鷹滝瀧卓啄宅托択拓沢濯琢託鐸濁諾茸凧蛸只���".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(n[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="����������������������������������������������������������������叩但達辰奪脱巽竪辿棚谷狸鱈樽誰丹単嘆坦担探旦歎淡湛炭短端箪綻耽胆蛋誕鍛団壇弾断暖檀段男談値知地弛恥智池痴稚置致蜘遅馳築畜竹筑蓄�逐秩窒茶嫡着中仲宙忠抽昼柱注虫衷註酎鋳駐樗瀦猪苧著貯丁兆凋喋寵帖帳庁弔張彫徴懲挑暢朝潮牒町眺聴脹腸蝶調諜超跳銚長頂鳥勅捗直朕沈珍賃鎮陳津墜椎槌追鎚痛通塚栂掴槻佃漬柘辻蔦綴鍔椿潰坪壷嬬紬爪吊釣鶴亭低停偵剃貞呈堤定帝底庭廷弟悌抵挺提梯汀碇禎程締艇訂諦蹄逓���".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(n[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="����������������������������������������������������������������邸鄭釘鼎泥摘擢敵滴的笛適鏑溺哲徹撤轍迭鉄典填天展店添纏甜貼転顛点伝殿澱田電兎吐堵塗妬屠徒斗杜渡登菟賭途都鍍砥砺努度土奴怒倒党冬�凍刀唐塔塘套宕島嶋悼投搭東桃梼棟盗淘湯涛灯燈当痘祷等答筒糖統到董蕩藤討謄豆踏逃透鐙陶頭騰闘働動同堂導憧撞洞瞳童胴萄道銅峠鴇匿得徳涜特督禿篤毒独読栃橡凸突椴届鳶苫寅酉瀞噸屯惇敦沌豚遁頓呑曇鈍奈那内乍凪薙謎灘捺鍋楢馴縄畷南楠軟難汝二尼弐迩匂賑肉虹廿日乳入���".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(n[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="����������������������������������������������������������������如尿韮任妊忍認濡禰祢寧葱猫熱年念捻撚燃粘乃廼之埜嚢悩濃納能脳膿農覗蚤巴把播覇杷波派琶破婆罵芭馬俳廃拝排敗杯盃牌背肺輩配倍培媒梅�楳煤狽買売賠陪這蝿秤矧萩伯剥博拍柏泊白箔粕舶薄迫曝漠爆縛莫駁麦函箱硲箸肇筈櫨幡肌畑畠八鉢溌発醗髪伐罰抜筏閥鳩噺塙蛤隼伴判半反叛帆搬斑板氾汎版犯班畔繁般藩販範釆煩頒飯挽晩番盤磐蕃蛮匪卑否妃庇彼悲扉批披斐比泌疲皮碑秘緋罷肥被誹費避非飛樋簸備尾微枇毘琵眉美���".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(n[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="����������������������������������������������������������������鼻柊稗匹疋髭彦膝菱肘弼必畢筆逼桧姫媛紐百謬俵彪標氷漂瓢票表評豹廟描病秒苗錨鋲蒜蛭鰭品彬斌浜瀕貧賓頻敏瓶不付埠夫婦富冨布府怖扶敷�斧普浮父符腐膚芙譜負賦赴阜附侮撫武舞葡蕪部封楓風葺蕗伏副復幅服福腹複覆淵弗払沸仏物鮒分吻噴墳憤扮焚奮粉糞紛雰文聞丙併兵塀幣平弊柄並蔽閉陛米頁僻壁癖碧別瞥蔑箆偏変片篇編辺返遍便勉娩弁鞭保舗鋪圃捕歩甫補輔穂募墓慕戊暮母簿菩倣俸包呆報奉宝峰峯崩庖抱捧放方朋���".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(n[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="����������������������������������������������������������������法泡烹砲縫胞芳萌蓬蜂褒訪豊邦鋒飽鳳鵬乏亡傍剖坊妨帽忘忙房暴望某棒冒紡肪膨謀貌貿鉾防吠頬北僕卜墨撲朴牧睦穆釦勃没殆堀幌奔本翻凡盆�摩磨魔麻埋妹昧枚毎哩槙幕膜枕鮪柾鱒桝亦俣又抹末沫迄侭繭麿万慢満漫蔓味未魅巳箕岬密蜜湊蓑稔脈妙粍民眠務夢無牟矛霧鵡椋婿娘冥名命明盟迷銘鳴姪牝滅免棉綿緬面麺摸模茂妄孟毛猛盲網耗蒙儲木黙目杢勿餅尤戻籾貰問悶紋門匁也冶夜爺耶野弥矢厄役約薬訳躍靖柳薮鑓愉愈油癒���".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(n[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="����������������������������������������������������������������諭輸唯佑優勇友宥幽悠憂揖有柚湧涌猶猷由祐裕誘遊邑郵雄融夕予余与誉輿預傭幼妖容庸揚揺擁曜楊様洋溶熔用窯羊耀葉蓉要謡踊遥陽養慾抑欲�沃浴翌翼淀羅螺裸来莱頼雷洛絡落酪乱卵嵐欄濫藍蘭覧利吏履李梨理璃痢裏裡里離陸律率立葎掠略劉流溜琉留硫粒隆竜龍侶慮旅虜了亮僚両凌寮料梁涼猟療瞭稜糧良諒遼量陵領力緑倫厘林淋燐琳臨輪隣鱗麟瑠塁涙累類令伶例冷励嶺怜玲礼苓鈴隷零霊麗齢暦歴列劣烈裂廉恋憐漣煉簾練聯���".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(n[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="����������������������������������������������������������������蓮連錬呂魯櫓炉賂路露労婁廊弄朗楼榔浪漏牢狼篭老聾蝋郎六麓禄肋録論倭和話歪賄脇惑枠鷲亙亘鰐詫藁蕨椀湾碗腕��������������������������������������������弌丐丕个丱丶丼丿乂乖乘亂亅豫亊舒弍于亞亟亠亢亰亳亶从仍仄仆仂仗仞仭仟价伉佚估佛佝佗佇佶侈侏侘佻佩佰侑佯來侖儘俔俟俎俘俛俑俚俐俤俥倚倨倔倪倥倅伜俶倡倩倬俾俯們倆偃假會偕偐偈做偖偬偸傀傚傅傴傲���".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(n[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="����������������������������������������������������������������僉僊傳僂僖僞僥僭僣僮價僵儉儁儂儖儕儔儚儡儺儷儼儻儿兀兒兌兔兢竸兩兪兮冀冂囘册冉冏冑冓冕冖冤冦冢冩冪冫决冱冲冰况冽凅凉凛几處凩凭�凰凵凾刄刋刔刎刧刪刮刳刹剏剄剋剌剞剔剪剴剩剳剿剽劍劔劒剱劈劑辨辧劬劭劼劵勁勍勗勞勣勦飭勠勳勵勸勹匆匈甸匍匐匏匕匚匣匯匱匳匸區卆卅丗卉卍凖卞卩卮夘卻卷厂厖厠厦厥厮厰厶參簒雙叟曼燮叮叨叭叺吁吽呀听吭吼吮吶吩吝呎咏呵咎呟呱呷呰咒呻咀呶咄咐咆哇咢咸咥咬哄哈咨���".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(n[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="����������������������������������������������������������������咫哂咤咾咼哘哥哦唏唔哽哮哭哺哢唹啀啣啌售啜啅啖啗唸唳啝喙喀咯喊喟啻啾喘喞單啼喃喩喇喨嗚嗅嗟嗄嗜嗤嗔嘔嗷嘖嗾嗽嘛嗹噎噐營嘴嘶嘲嘸�噫噤嘯噬噪嚆嚀嚊嚠嚔嚏嚥嚮嚶嚴囂嚼囁囃囀囈囎囑囓囗囮囹圀囿圄圉圈國圍圓團圖嗇圜圦圷圸坎圻址坏坩埀垈坡坿垉垓垠垳垤垪垰埃埆埔埒埓堊埖埣堋堙堝塲堡塢塋塰毀塒堽塹墅墹墟墫墺壞墻墸墮壅壓壑壗壙壘壥壜壤壟壯壺壹壻壼壽夂夊夐夛梦夥夬夭夲夸夾竒奕奐奎奚奘奢奠奧奬奩���".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(n[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="����������������������������������������������������������������奸妁妝佞侫妣妲姆姨姜妍姙姚娥娟娑娜娉娚婀婬婉娵娶婢婪媚媼媾嫋嫂媽嫣嫗嫦嫩嫖嫺嫻嬌嬋嬖嬲嫐嬪嬶嬾孃孅孀孑孕孚孛孥孩孰孳孵學斈孺宀�它宦宸寃寇寉寔寐寤實寢寞寥寫寰寶寳尅將專對尓尠尢尨尸尹屁屆屎屓屐屏孱屬屮乢屶屹岌岑岔妛岫岻岶岼岷峅岾峇峙峩峽峺峭嶌峪崋崕崗嵜崟崛崑崔崢崚崙崘嵌嵒嵎嵋嵬嵳嵶嶇嶄嶂嶢嶝嶬嶮嶽嶐嶷嶼巉巍巓巒巖巛巫已巵帋帚帙帑帛帶帷幄幃幀幎幗幔幟幢幤幇幵并幺麼广庠廁廂廈廐廏���".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(n[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="����������������������������������������������������������������廖廣廝廚廛廢廡廨廩廬廱廳廰廴廸廾弃弉彝彜弋弑弖弩弭弸彁彈彌彎弯彑彖彗彙彡彭彳彷徃徂彿徊很徑徇從徙徘徠徨徭徼忖忻忤忸忱忝悳忿怡恠�怙怐怩怎怱怛怕怫怦怏怺恚恁恪恷恟恊恆恍恣恃恤恂恬恫恙悁悍惧悃悚悄悛悖悗悒悧悋惡悸惠惓悴忰悽惆悵惘慍愕愆惶惷愀惴惺愃愡惻惱愍愎慇愾愨愧慊愿愼愬愴愽慂慄慳慷慘慙慚慫慴慯慥慱慟慝慓慵憙憖憇憬憔憚憊憑憫憮懌懊應懷懈懃懆憺懋罹懍懦懣懶懺懴懿懽懼懾戀戈戉戍戌戔戛���".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(n[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="����������������������������������������������������������������戞戡截戮戰戲戳扁扎扞扣扛扠扨扼抂抉找抒抓抖拔抃抔拗拑抻拏拿拆擔拈拜拌拊拂拇抛拉挌拮拱挧挂挈拯拵捐挾捍搜捏掖掎掀掫捶掣掏掉掟掵捫�捩掾揩揀揆揣揉插揶揄搖搴搆搓搦搶攝搗搨搏摧摯摶摎攪撕撓撥撩撈撼據擒擅擇撻擘擂擱擧舉擠擡抬擣擯攬擶擴擲擺攀擽攘攜攅攤攣攫攴攵攷收攸畋效敖敕敍敘敞敝敲數斂斃變斛斟斫斷旃旆旁旄旌旒旛旙无旡旱杲昊昃旻杳昵昶昴昜晏晄晉晁晞晝晤晧晨晟晢晰暃暈暎暉暄暘暝曁暹曉暾暼���".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(n[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="����������������������������������������������������������������曄暸曖曚曠昿曦曩曰曵曷朏朖朞朦朧霸朮朿朶杁朸朷杆杞杠杙杣杤枉杰枩杼杪枌枋枦枡枅枷柯枴柬枳柩枸柤柞柝柢柮枹柎柆柧檜栞框栩桀桍栲桎�梳栫桙档桷桿梟梏梭梔條梛梃檮梹桴梵梠梺椏梍桾椁棊椈棘椢椦棡椌棍棔棧棕椶椒椄棗棣椥棹棠棯椨椪椚椣椡棆楹楷楜楸楫楔楾楮椹楴椽楙椰楡楞楝榁楪榲榮槐榿槁槓榾槎寨槊槝榻槃榧樮榑榠榜榕榴槞槨樂樛槿權槹槲槧樅榱樞槭樔槫樊樒櫁樣樓橄樌橲樶橸橇橢橙橦橈樸樢檐檍檠檄檢檣���".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(n[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="����������������������������������������������������������������檗蘗檻櫃櫂檸檳檬櫞櫑櫟檪櫚櫪櫻欅蘖櫺欒欖鬱欟欸欷盜欹飮歇歃歉歐歙歔歛歟歡歸歹歿殀殄殃殍殘殕殞殤殪殫殯殲殱殳殷殼毆毋毓毟毬毫毳毯�麾氈氓气氛氤氣汞汕汢汪沂沍沚沁沛汾汨汳沒沐泄泱泓沽泗泅泝沮沱沾沺泛泯泙泪洟衍洶洫洽洸洙洵洳洒洌浣涓浤浚浹浙涎涕濤涅淹渕渊涵淇淦涸淆淬淞淌淨淒淅淺淙淤淕淪淮渭湮渮渙湲湟渾渣湫渫湶湍渟湃渺湎渤滿渝游溂溪溘滉溷滓溽溯滄溲滔滕溏溥滂溟潁漑灌滬滸滾漿滲漱滯漲滌���".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(n[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[224]="����������������������������������������������������������������漾漓滷澆潺潸澁澀潯潛濳潭澂潼潘澎澑濂潦澳澣澡澤澹濆澪濟濕濬濔濘濱濮濛瀉瀋濺瀑瀁瀏濾瀛瀚潴瀝瀘瀟瀰瀾瀲灑灣炙炒炯烱炬炸炳炮烟烋烝�烙焉烽焜焙煥煕熈煦煢煌煖煬熏燻熄熕熨熬燗熹熾燒燉燔燎燠燬燧燵燼燹燿爍爐爛爨爭爬爰爲爻爼爿牀牆牋牘牴牾犂犁犇犒犖犢犧犹犲狃狆狄狎狒狢狠狡狹狷倏猗猊猜猖猝猴猯猩猥猾獎獏默獗獪獨獰獸獵獻獺珈玳珎玻珀珥珮珞璢琅瑯琥珸琲琺瑕琿瑟瑙瑁瑜瑩瑰瑣瑪瑶瑾璋璞璧瓊瓏瓔珱���".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(n[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������瓠瓣瓧瓩瓮瓲瓰瓱瓸瓷甄甃甅甌甎甍甕甓甞甦甬甼畄畍畊畉畛畆畚畩畤畧畫畭畸當疆疇畴疊疉疂疔疚疝疥疣痂疳痃疵疽疸疼疱痍痊痒痙痣痞痾痿�痼瘁痰痺痲痳瘋瘍瘉瘟瘧瘠瘡瘢瘤瘴瘰瘻癇癈癆癜癘癡癢癨癩癪癧癬癰癲癶癸發皀皃皈皋皎皖皓皙皚皰皴皸皹皺盂盍盖盒盞盡盥盧盪蘯盻眈眇眄眩眤眞眥眦眛眷眸睇睚睨睫睛睥睿睾睹瞎瞋瞑瞠瞞瞰瞶瞹瞿瞼瞽瞻矇矍矗矚矜矣矮矼砌砒礦砠礪硅碎硴碆硼碚碌碣碵碪碯磑磆磋磔碾碼磅磊磬���".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(n[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������磧磚磽磴礇礒礑礙礬礫祀祠祗祟祚祕祓祺祿禊禝禧齋禪禮禳禹禺秉秕秧秬秡秣稈稍稘稙稠稟禀稱稻稾稷穃穗穉穡穢穩龝穰穹穽窈窗窕窘窖窩竈窰�窶竅竄窿邃竇竊竍竏竕竓站竚竝竡竢竦竭竰笂笏笊笆笳笘笙笞笵笨笶筐筺笄筍笋筌筅筵筥筴筧筰筱筬筮箝箘箟箍箜箚箋箒箏筝箙篋篁篌篏箴篆篝篩簑簔篦篥籠簀簇簓篳篷簗簍篶簣簧簪簟簷簫簽籌籃籔籏籀籐籘籟籤籖籥籬籵粃粐粤粭粢粫粡粨粳粲粱粮粹粽糀糅糂糘糒糜糢鬻糯糲糴糶糺紆���".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(n[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������紂紜紕紊絅絋紮紲紿紵絆絳絖絎絲絨絮絏絣經綉絛綏絽綛綺綮綣綵緇綽綫總綢綯緜綸綟綰緘緝緤緞緻緲緡縅縊縣縡縒縱縟縉縋縢繆繦縻縵縹繃縷�縲縺繧繝繖繞繙繚繹繪繩繼繻纃緕繽辮繿纈纉續纒纐纓纔纖纎纛纜缸缺罅罌罍罎罐网罕罔罘罟罠罨罩罧罸羂羆羃羈羇羌羔羞羝羚羣羯羲羹羮羶羸譱翅翆翊翕翔翡翦翩翳翹飜耆耄耋耒耘耙耜耡耨耿耻聊聆聒聘聚聟聢聨聳聲聰聶聹聽聿肄肆肅肛肓肚肭冐肬胛胥胙胝胄胚胖脉胯胱脛脩脣脯腋���".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(n[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������隋腆脾腓腑胼腱腮腥腦腴膃膈膊膀膂膠膕膤膣腟膓膩膰膵膾膸膽臀臂膺臉臍臑臙臘臈臚臟臠臧臺臻臾舁舂舅與舊舍舐舖舩舫舸舳艀艙艘艝艚艟艤�艢艨艪艫舮艱艷艸艾芍芒芫芟芻芬苡苣苟苒苴苳苺莓范苻苹苞茆苜茉苙茵茴茖茲茱荀茹荐荅茯茫茗茘莅莚莪莟莢莖茣莎莇莊荼莵荳荵莠莉莨菴萓菫菎菽萃菘萋菁菷萇菠菲萍萢萠莽萸蔆菻葭萪萼蕚蒄葷葫蒭葮蒂葩葆萬葯葹萵蓊葢蒹蒿蒟蓙蓍蒻蓚蓐蓁蓆蓖蒡蔡蓿蓴蔗蔘蔬蔟蔕蔔蓼蕀蕣蕘蕈���".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(n[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������蕁蘂蕋蕕薀薤薈薑薊薨蕭薔薛藪薇薜蕷蕾薐藉薺藏薹藐藕藝藥藜藹蘊蘓蘋藾藺蘆蘢蘚蘰蘿虍乕虔號虧虱蚓蚣蚩蚪蚋蚌蚶蚯蛄蛆蚰蛉蠣蚫蛔蛞蛩蛬�蛟蛛蛯蜒蜆蜈蜀蜃蛻蜑蜉蜍蛹蜊蜴蜿蜷蜻蜥蜩蜚蝠蝟蝸蝌蝎蝴蝗蝨蝮蝙蝓蝣蝪蠅螢螟螂螯蟋螽蟀蟐雖螫蟄螳蟇蟆螻蟯蟲蟠蠏蠍蟾蟶蟷蠎蟒蠑蠖蠕蠢蠡蠱蠶蠹蠧蠻衄衂衒衙衞衢衫袁衾袞衵衽袵衲袂袗袒袮袙袢袍袤袰袿袱裃裄裔裘裙裝裹褂裼裴裨裲褄褌褊褓襃褞褥褪褫襁襄褻褶褸襌褝襠襞���".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(n[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������襦襤襭襪襯襴襷襾覃覈覊覓覘覡覩覦覬覯覲覺覽覿觀觚觜觝觧觴觸訃訖訐訌訛訝訥訶詁詛詒詆詈詼詭詬詢誅誂誄誨誡誑誥誦誚誣諄諍諂諚諫諳諧�諤諱謔諠諢諷諞諛謌謇謚諡謖謐謗謠謳鞫謦謫謾謨譁譌譏譎證譖譛譚譫譟譬譯譴譽讀讌讎讒讓讖讙讚谺豁谿豈豌豎豐豕豢豬豸豺貂貉貅貊貍貎貔豼貘戝貭貪貽貲貳貮貶賈賁賤賣賚賽賺賻贄贅贊贇贏贍贐齎贓賍贔贖赧赭赱赳趁趙跂趾趺跏跚跖跌跛跋跪跫跟跣跼踈踉跿踝踞踐踟蹂踵踰踴蹊���".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(n[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������蹇蹉蹌蹐蹈蹙蹤蹠踪蹣蹕蹶蹲蹼躁躇躅躄躋躊躓躑躔躙躪躡躬躰軆躱躾軅軈軋軛軣軼軻軫軾輊輅輕輒輙輓輜輟輛輌輦輳輻輹轅轂輾轌轉轆轎轗轜�轢轣轤辜辟辣辭辯辷迚迥迢迪迯邇迴逅迹迺逑逕逡逍逞逖逋逧逶逵逹迸遏遐遑遒逎遉逾遖遘遞遨遯遶隨遲邂遽邁邀邊邉邏邨邯邱邵郢郤扈郛鄂鄒鄙鄲鄰酊酖酘酣酥酩酳酲醋醉醂醢醫醯醪醵醴醺釀釁釉釋釐釖釟釡釛釼釵釶鈞釿鈔鈬鈕鈑鉞鉗鉅鉉鉤鉈銕鈿鉋鉐銜銖銓銛鉚鋏銹銷鋩錏鋺鍄錮���".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(n[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������錙錢錚錣錺錵錻鍜鍠鍼鍮鍖鎰鎬鎭鎔鎹鏖鏗鏨鏥鏘鏃鏝鏐鏈鏤鐚鐔鐓鐃鐇鐐鐶鐫鐵鐡鐺鑁鑒鑄鑛鑠鑢鑞鑪鈩鑰鑵鑷鑽鑚鑼鑾钁鑿閂閇閊閔閖閘閙�閠閨閧閭閼閻閹閾闊濶闃闍闌闕闔闖關闡闥闢阡阨阮阯陂陌陏陋陷陜陞陝陟陦陲陬隍隘隕隗險隧隱隲隰隴隶隸隹雎雋雉雍襍雜霍雕雹霄霆霈霓霎霑霏霖霙霤霪霰霹霽霾靄靆靈靂靉靜靠靤靦靨勒靫靱靹鞅靼鞁靺鞆鞋鞏鞐鞜鞨鞦鞣鞳鞴韃韆韈韋韜韭齏韲竟韶韵頏頌頸頤頡頷頽顆顏顋顫顯顰���".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(n[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������顱顴顳颪颯颱颶飄飃飆飩飫餃餉餒餔餘餡餝餞餤餠餬餮餽餾饂饉饅饐饋饑饒饌饕馗馘馥馭馮馼駟駛駝駘駑駭駮駱駲駻駸騁騏騅駢騙騫騷驅驂驀驃�騾驕驍驛驗驟驢驥驤驩驫驪骭骰骼髀髏髑髓體髞髟髢髣髦髯髫髮髴髱髷髻鬆鬘鬚鬟鬢鬣鬥鬧鬨鬩鬪鬮鬯鬲魄魃魏魍魎魑魘魴鮓鮃鮑鮖鮗鮟鮠鮨鮴鯀鯊鮹鯆鯏鯑鯒鯣鯢鯤鯔鯡鰺鯲鯱鯰鰕鰔鰉鰓鰌鰆鰈鰒鰊鰄鰮鰛鰥鰤鰡鰰鱇鰲鱆鰾鱚鱠鱧鱶鱸鳧鳬鳰鴉鴈鳫鴃鴆鴪鴦鶯鴣鴟鵄鴕鴒鵁鴿鴾鵆鵈���".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(n[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������鵝鵞鵤鵑鵐鵙鵲鶉鶇鶫鵯鵺鶚鶤鶩鶲鷄鷁鶻鶸鶺鷆鷏鷂鷙鷓鷸鷦鷭鷯鷽鸚鸛鸞鹵鹹鹽麁麈麋麌麒麕麑麝麥麩麸麪麭靡黌黎黏黐黔黜點黝黠黥黨黯�黴黶黷黹黻黼黽鼇鼈皷鼕鼡鼬鼾齊齒齔齣齟齠齡齦齧齬齪齷齲齶龕龜龠堯槇遙瑤凜熙�������������������������������������������������������������������������������������������".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(n[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[237]="����������������������������������������������������������������纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏�塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱���".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(n[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙�蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑��ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ¬¦'"���".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(n[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[250]="����������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ¬¦'"㈱№℡∵纊褜鍈銈蓜俉炻昱棈鋹曻彅丨仡仼伀伃伹佖侒侊侚侔俍偀倢俿倞偆偰偂傔僴僘兊�兤冝冾凬刕劜劦勀勛匀匇匤卲厓厲叝﨎咜咊咩哿喆坙坥垬埈埇﨏塚增墲夋奓奛奝奣妤妺孖寀甯寘寬尞岦岺峵崧嵓﨑嵂嵭嶸嶹巐弡弴彧德忞恝悅悊惞惕愠惲愑愷愰憘戓抦揵摠撝擎敎昀昕昻昉昮昞昤晥晗晙晴晳暙暠暲暿曺朎朗杦枻桒柀栁桄棏﨓楨﨔榘槢樰橫橆橳橾櫢櫤毖氿汜沆汯泚洄涇浯���".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(n[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="����������������������������������������������������������������涖涬淏淸淲淼渹湜渧渼溿澈澵濵瀅瀇瀨炅炫焏焄煜煆煇凞燁燾犱犾猤猪獷玽珉珖珣珒琇珵琦琪琩琮瑢璉璟甁畯皂皜皞皛皦益睆劯砡硎硤硺礰礼神�祥禔福禛竑竧靖竫箞精絈絜綷綠緖繒罇羡羽茁荢荿菇菶葈蒴蕓蕙蕫﨟薰蘒﨡蠇裵訒訷詹誧誾諟諸諶譓譿賰賴贒赶﨣軏﨤逸遧郞都鄕鄧釚釗釞釭釮釤釥鈆鈐鈊鈺鉀鈼鉎鉙鉑鈹鉧銧鉷鉸鋧鋗鋙鋐﨧鋕鋠鋓錥錡鋻﨨錞鋿錝錂鍰鍗鎤鏆鏞鏸鐱鑅鑈閒隆﨩隝隯霳霻靃靍靏靑靕顗顥飯飼餧館馞驎髙���".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(n[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="����������������������������������������������������������������髜魵魲鮏鮱鮻鰀鵰鵫鶴鸙黑������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(n[t[252][e]]=64512+e,o[64512+e]=t[252][e]);return{enc:n,dec:o}}(),r[936]=function(){var o=[],n={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(n[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="����������������������������������������������������������������丂丄丅丆丏丒丗丟丠両丣並丩丮丯丱丳丵丷丼乀乁乂乄乆乊乑乕乗乚乛乢乣乤乥乧乨乪乫乬乭乮乯乲乴乵乶乷乸乹乺乻乼乽乿亀亁亂亃亄亅亇亊�亐亖亗亙亜亝亞亣亪亯亰亱亴亶亷亸亹亼亽亾仈仌仏仐仒仚仛仜仠仢仦仧仩仭仮仯仱仴仸仹仺仼仾伀伂伃伄伅伆伇伈伋伌伒伓伔伕伖伜伝伡伣伨伩伬伭伮伱伳伵伷伹伻伾伿佀佁佂佄佅佇佈佉佊佋佌佒佔佖佡佢佦佨佪佫佭佮佱佲併佷佸佹佺佽侀侁侂侅來侇侊侌侎侐侒侓侕侖侘侙侚侜侞侟価侢�".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(n[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="����������������������������������������������������������������侤侫侭侰侱侲侳侴侶侷侸侹侺侻侼侽侾俀俁係俆俇俈俉俋俌俍俒俓俔俕俖俙俛俠俢俤俥俧俫俬俰俲俴俵俶俷俹俻俼俽俿倀倁倂倃倄倅倆倇倈倉倊�個倎倐們倓倕倖倗倛倝倞倠倢倣値倧倫倯倰倱倲倳倴倵倶倷倸倹倻倽倿偀偁偂偄偅偆偉偊偋偍偐偑偒偓偔偖偗偘偙偛偝偞偟偠偡偢偣偤偦偧偨偩偪偫偭偮偯偰偱偲偳側偵偸偹偺偼偽傁傂傃傄傆傇傉傊傋傌傎傏傐傑傒傓傔傕傖傗傘備傚傛傜傝傞傟傠傡傢傤傦傪傫傭傮傯傰傱傳傴債傶傷傸傹傼�".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(n[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="����������������������������������������������������������������傽傾傿僀僁僂僃僄僅僆僇僈僉僊僋僌働僎僐僑僒僓僔僕僗僘僙僛僜僝僞僟僠僡僢僣僤僥僨僩僪僫僯僰僱僲僴僶僷僸價僺僼僽僾僿儀儁儂儃億儅儈�儉儊儌儍儎儏儐儑儓儔儕儖儗儘儙儚儛儜儝儞償儠儢儣儤儥儦儧儨儩優儫儬儭儮儯儰儱儲儳儴儵儶儷儸儹儺儻儼儽儾兂兇兊兌兎兏児兒兓兗兘兙兛兝兞兟兠兡兣兤兦內兩兪兯兲兺兾兿冃冄円冇冊冋冎冏冐冑冓冔冘冚冝冞冟冡冣冦冧冨冩冪冭冮冴冸冹冺冾冿凁凂凃凅凈凊凍凎凐凒凓凔凕凖凗�".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(n[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="����������������������������������������������������������������凘凙凚凜凞凟凢凣凥処凧凨凩凪凬凮凱凲凴凷凾刄刅刉刋刌刏刐刓刔刕刜刞刟刡刢刣別刦刧刪刬刯刱刲刴刵刼刾剄剅剆則剈剉剋剎剏剒剓剕剗剘�剙剚剛剝剟剠剢剣剤剦剨剫剬剭剮剰剱剳剴創剶剷剸剹剺剻剼剾劀劃劄劅劆劇劉劊劋劌劍劎劏劑劒劔劕劖劗劘劙劚劜劤劥劦劧劮劯劰労劵劶劷劸効劺劻劼劽勀勁勂勄勅勆勈勊勌勍勎勏勑勓勔動勗務勚勛勜勝勞勠勡勢勣勥勦勧勨勩勪勫勬勭勮勯勱勲勳勴勵勶勷勸勻勼勽匁匂匃匄匇匉匊匋匌匎�".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(n[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[133]="����������������������������������������������������������������匑匒匓匔匘匛匜匞匟匢匤匥匧匨匩匫匬匭匯匰匱匲匳匴匵匶匷匸匼匽區卂卄卆卋卌卍卐協単卙卛卝卥卨卪卬卭卲卶卹卻卼卽卾厀厁厃厇厈厊厎厏�厐厑厒厓厔厖厗厙厛厜厞厠厡厤厧厪厫厬厭厯厰厱厲厳厴厵厷厸厹厺厼厽厾叀參叄叅叆叇収叏叐叒叓叕叚叜叝叞叡叢叧叴叺叾叿吀吂吅吇吋吔吘吙吚吜吢吤吥吪吰吳吶吷吺吽吿呁呂呄呅呇呉呌呍呎呏呑呚呝呞呟呠呡呣呥呧呩呪呫呬呭呮呯呰呴呹呺呾呿咁咃咅咇咈咉咊咍咑咓咗咘咜咞咟咠咡�".split(""),e=0;e!=t[133].length;++e)t[133][e].charCodeAt(0)!==65533&&(n[t[133][e]]=34048+e,o[34048+e]=t[133][e]);for(t[134]="����������������������������������������������������������������咢咥咮咰咲咵咶咷咹咺咼咾哃哅哊哋哖哘哛哠員哢哣哤哫哬哯哰哱哴哵哶哷哸哹哻哾唀唂唃唄唅唈唊唋唌唍唎唒唓唕唖唗唘唙唚唜唝唞唟唡唥唦�唨唩唫唭唲唴唵唶唸唹唺唻唽啀啂啅啇啈啋啌啍啎問啑啒啓啔啗啘啙啚啛啝啞啟啠啢啣啨啩啫啯啰啱啲啳啴啹啺啽啿喅喆喌喍喎喐喒喓喕喖喗喚喛喞喠喡喢喣喤喥喦喨喩喪喫喬喭單喯喰喲喴営喸喺喼喿嗀嗁嗂嗃嗆嗇嗈嗊嗋嗎嗏嗐嗕嗗嗘嗙嗚嗛嗞嗠嗢嗧嗩嗭嗮嗰嗱嗴嗶嗸嗹嗺嗻嗼嗿嘂嘃嘄嘅�".split(""),e=0;e!=t[134].length;++e)t[134][e].charCodeAt(0)!==65533&&(n[t[134][e]]=34304+e,o[34304+e]=t[134][e]);for(t[135]="����������������������������������������������������������������嘆嘇嘊嘋嘍嘐嘑嘒嘓嘔嘕嘖嘗嘙嘚嘜嘝嘠嘡嘢嘥嘦嘨嘩嘪嘫嘮嘯嘰嘳嘵嘷嘸嘺嘼嘽嘾噀噁噂噃噄噅噆噇噈噉噊噋噏噐噑噒噓噕噖噚噛噝噞噟噠噡�噣噥噦噧噭噮噯噰噲噳噴噵噷噸噹噺噽噾噿嚀嚁嚂嚃嚄嚇嚈嚉嚊嚋嚌嚍嚐嚑嚒嚔嚕嚖嚗嚘嚙嚚嚛嚜嚝嚞嚟嚠嚡嚢嚤嚥嚦嚧嚨嚩嚪嚫嚬嚭嚮嚰嚱嚲嚳嚴嚵嚶嚸嚹嚺嚻嚽嚾嚿囀囁囂囃囄囅囆囇囈囉囋囌囍囎囏囐囑囒囓囕囖囘囙囜団囥囦囧囨囩囪囬囮囯囲図囶囷囸囻囼圀圁圂圅圇國圌圍圎圏圐圑�".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(n[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="����������������������������������������������������������������園圓圔圕圖圗團圙圚圛圝圞圠圡圢圤圥圦圧圫圱圲圴圵圶圷圸圼圽圿坁坃坄坅坆坈坉坋坒坓坔坕坖坘坙坢坣坥坧坬坮坰坱坲坴坵坸坹坺坽坾坿垀�垁垇垈垉垊垍垎垏垐垑垔垕垖垗垘垙垚垜垝垞垟垥垨垪垬垯垰垱垳垵垶垷垹垺垻垼垽垾垿埀埁埄埅埆埇埈埉埊埌埍埐埑埓埖埗埛埜埞埡埢埣埥埦埧埨埩埪埫埬埮埰埱埲埳埵埶執埻埼埾埿堁堃堄堅堈堉堊堌堎堏堐堒堓堔堖堗堘堚堛堜堝堟堢堣堥堦堧堨堩堫堬堭堮堯報堲堳場堶堷堸堹堺堻堼堽�".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(n[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="����������������������������������������������������������������堾堿塀塁塂塃塅塆塇塈塉塊塋塎塏塐塒塓塕塖塗塙塚塛塜塝塟塠塡塢塣塤塦塧塨塩塪塭塮塯塰塱塲塳塴塵塶塷塸塹塺塻塼塽塿墂墄墆墇墈墊墋墌�墍墎墏墐墑墔墕墖増墘墛墜墝墠墡墢墣墤墥墦墧墪墫墬墭墮墯墰墱墲墳墴墵墶墷墸墹墺墻墽墾墿壀壂壃壄壆壇壈壉壊壋壌壍壎壏壐壒壓壔壖壗壘壙壚壛壜壝壞壟壠壡壢壣壥壦壧壨壩壪壭壯壱売壴壵壷壸壺壻壼壽壾壿夀夁夃夅夆夈変夊夋夌夎夐夑夒夓夗夘夛夝夞夠夡夢夣夦夨夬夰夲夳夵夶夻�".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(n[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="����������������������������������������������������������������夽夾夿奀奃奅奆奊奌奍奐奒奓奙奛奜奝奞奟奡奣奤奦奧奨奩奪奫奬奭奮奯奰奱奲奵奷奺奻奼奾奿妀妅妉妋妌妎妏妐妑妔妕妘妚妛妜妝妟妠妡妢妦�妧妬妭妰妱妳妴妵妶妷妸妺妼妽妿姀姁姂姃姄姅姇姈姉姌姍姎姏姕姖姙姛姞姟姠姡姢姤姦姧姩姪姫姭姮姯姰姱姲姳姴姵姶姷姸姺姼姽姾娀娂娊娋娍娎娏娐娒娔娕娖娗娙娚娛娝娞娡娢娤娦娧娨娪娫娬娭娮娯娰娳娵娷娸娹娺娻娽娾娿婁婂婃婄婅婇婈婋婌婍婎婏婐婑婒婓婔婖婗婘婙婛婜婝婞婟婠�".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(n[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="����������������������������������������������������������������婡婣婤婥婦婨婩婫婬婭婮婯婰婱婲婳婸婹婻婼婽婾媀媁媂媃媄媅媆媇媈媉媊媋媌媍媎媏媐媑媓媔媕媖媗媘媙媜媝媞媟媠媡媢媣媤媥媦媧媨媩媫媬�媭媮媯媰媱媴媶媷媹媺媻媼媽媿嫀嫃嫄嫅嫆嫇嫈嫊嫋嫍嫎嫏嫐嫑嫓嫕嫗嫙嫚嫛嫝嫞嫟嫢嫤嫥嫧嫨嫪嫬嫭嫮嫯嫰嫲嫳嫴嫵嫶嫷嫸嫹嫺嫻嫼嫽嫾嫿嬀嬁嬂嬃嬄嬅嬆嬇嬈嬊嬋嬌嬍嬎嬏嬐嬑嬒嬓嬔嬕嬘嬙嬚嬛嬜嬝嬞嬟嬠嬡嬢嬣嬤嬥嬦嬧嬨嬩嬪嬫嬬嬭嬮嬯嬰嬱嬳嬵嬶嬸嬹嬺嬻嬼嬽嬾嬿孁孂孃孄孅孆孇�".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(n[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="����������������������������������������������������������������孈孉孊孋孌孍孎孏孒孖孞孠孡孧孨孫孭孮孯孲孴孶孷學孹孻孼孾孿宂宆宊宍宎宐宑宒宔宖実宧宨宩宬宭宮宯宱宲宷宺宻宼寀寁寃寈寉寊寋寍寎寏�寑寔寕寖寗寘寙寚寛寜寠寢寣實寧審寪寫寬寭寯寱寲寳寴寵寶寷寽対尀専尃尅將專尋尌對導尐尒尓尗尙尛尞尟尠尡尣尦尨尩尪尫尭尮尯尰尲尳尵尶尷屃屄屆屇屌屍屒屓屔屖屗屘屚屛屜屝屟屢層屧屨屩屪屫屬屭屰屲屳屴屵屶屷屸屻屼屽屾岀岃岄岅岆岇岉岊岋岎岏岒岓岕岝岞岟岠岡岤岥岦岧岨�".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(n[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="����������������������������������������������������������������岪岮岯岰岲岴岶岹岺岻岼岾峀峂峃峅峆峇峈峉峊峌峍峎峏峐峑峓峔峕峖峗峘峚峛峜峝峞峟峠峢峣峧峩峫峬峮峯峱峲峳峴峵島峷峸峹峺峼峽峾峿崀�崁崄崅崈崉崊崋崌崍崏崐崑崒崓崕崗崘崙崚崜崝崟崠崡崢崣崥崨崪崫崬崯崰崱崲崳崵崶崷崸崹崺崻崼崿嵀嵁嵂嵃嵄嵅嵆嵈嵉嵍嵎嵏嵐嵑嵒嵓嵔嵕嵖嵗嵙嵚嵜嵞嵟嵠嵡嵢嵣嵤嵥嵦嵧嵨嵪嵭嵮嵰嵱嵲嵳嵵嵶嵷嵸嵹嵺嵻嵼嵽嵾嵿嶀嶁嶃嶄嶅嶆嶇嶈嶉嶊嶋嶌嶍嶎嶏嶐嶑嶒嶓嶔嶕嶖嶗嶘嶚嶛嶜嶞嶟嶠�".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(n[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="����������������������������������������������������������������嶡嶢嶣嶤嶥嶦嶧嶨嶩嶪嶫嶬嶭嶮嶯嶰嶱嶲嶳嶴嶵嶶嶸嶹嶺嶻嶼嶽嶾嶿巀巁巂巃巄巆巇巈巉巊巋巌巎巏巐巑巒巓巔巕巖巗巘巙巚巜巟巠巣巤巪巬巭�巰巵巶巸巹巺巻巼巿帀帄帇帉帊帋帍帎帒帓帗帞帟帠帡帢帣帤帥帨帩帪師帬帯帰帲帳帴帵帶帹帺帾帿幀幁幃幆幇幈幉幊幋幍幎幏幐幑幒幓幖幗幘幙幚幜幝幟幠幣幤幥幦幧幨幩幪幫幬幭幮幯幰幱幵幷幹幾庁庂広庅庈庉庌庍庎庒庘庛庝庡庢庣庤庨庩庪庫庬庮庯庰庱庲庴庺庻庼庽庿廀廁廂廃廄廅�".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(n[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="����������������������������������������������������������������廆廇廈廋廌廍廎廏廐廔廕廗廘廙廚廜廝廞廟廠廡廢廣廤廥廦廧廩廫廬廭廮廯廰廱廲廳廵廸廹廻廼廽弅弆弇弉弌弍弎弐弒弔弖弙弚弜弝弞弡弢弣弤�弨弫弬弮弰弲弳弴張弶強弸弻弽弾弿彁彂彃彄彅彆彇彈彉彊彋彌彍彎彏彑彔彙彚彛彜彞彟彠彣彥彧彨彫彮彯彲彴彵彶彸彺彽彾彿徃徆徍徎徏徑従徔徖徚徛徝從徟徠徢徣徤徥徦徧復徫徬徯徰徱徲徳徴徶徸徹徺徻徾徿忀忁忂忇忈忊忋忎忓忔忕忚忛応忞忟忢忣忥忦忨忩忬忯忰忲忳忴忶忷忹忺忼怇�".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(n[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="����������������������������������������������������������������怈怉怋怌怐怑怓怗怘怚怞怟怢怣怤怬怭怮怰怱怲怳怴怶怷怸怹怺怽怾恀恄恅恆恇恈恉恊恌恎恏恑恓恔恖恗恘恛恜恞恟恠恡恥恦恮恱恲恴恵恷恾悀�悁悂悅悆悇悈悊悋悎悏悐悑悓悕悗悘悙悜悞悡悢悤悥悧悩悪悮悰悳悵悶悷悹悺悽悾悿惀惁惂惃惄惇惈惉惌惍惎惏惐惒惓惔惖惗惙惛惞惡惢惣惤惥惪惱惲惵惷惸惻惼惽惾惿愂愃愄愅愇愊愋愌愐愑愒愓愔愖愗愘愙愛愜愝愞愡愢愥愨愩愪愬愭愮愯愰愱愲愳愴愵愶愷愸愹愺愻愼愽愾慀慁慂慃慄慅慆�".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(n[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="����������������������������������������������������������������慇慉態慍慏慐慒慓慔慖慗慘慙慚慛慜慞慟慠慡慣慤慥慦慩慪慫慬慭慮慯慱慲慳慴慶慸慹慺慻慼慽慾慿憀憁憂憃憄憅憆憇憈憉憊憌憍憏憐憑憒憓憕�憖憗憘憙憚憛憜憞憟憠憡憢憣憤憥憦憪憫憭憮憯憰憱憲憳憴憵憶憸憹憺憻憼憽憿懀懁懃懄懅懆懇應懌懍懎懏懐懓懕懖懗懘懙懚懛懜懝懞懟懠懡懢懣懤懥懧懨懩懪懫懬懭懮懯懰懱懲懳懴懶懷懸懹懺懻懼懽懾戀戁戂戃戄戅戇戉戓戔戙戜戝戞戠戣戦戧戨戩戫戭戯戰戱戲戵戶戸戹戺戻戼扂扄扅扆扊�".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(n[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="����������������������������������������������������������������扏扐払扖扗扙扚扜扝扞扟扠扡扢扤扥扨扱扲扴扵扷扸扺扻扽抁抂抃抅抆抇抈抋抌抍抎抏抐抔抙抜抝択抣抦抧抩抪抭抮抯抰抲抳抴抶抷抸抺抾拀拁�拃拋拏拑拕拝拞拠拡拤拪拫拰拲拵拸拹拺拻挀挃挄挅挆挊挋挌挍挏挐挒挓挔挕挗挘挙挜挦挧挩挬挭挮挰挱挳挴挵挶挷挸挻挼挾挿捀捁捄捇捈捊捑捒捓捔捖捗捘捙捚捛捜捝捠捤捥捦捨捪捫捬捯捰捲捳捴捵捸捹捼捽捾捿掁掃掄掅掆掋掍掑掓掔掕掗掙掚掛掜掝掞掟採掤掦掫掯掱掲掵掶掹掻掽掿揀�".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(n[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="����������������������������������������������������������������揁揂揃揅揇揈揊揋揌揑揓揔揕揗揘揙揚換揜揝揟揢揤揥揦揧揨揫揬揮揯揰揱揳揵揷揹揺揻揼揾搃搄搆搇搈搉搊損搎搑搒搕搖搗搘搙搚搝搟搢搣搤�搥搧搨搩搫搮搯搰搱搲搳搵搶搷搸搹搻搼搾摀摂摃摉摋摌摍摎摏摐摑摓摕摖摗摙摚摛摜摝摟摠摡摢摣摤摥摦摨摪摫摬摮摯摰摱摲摳摴摵摶摷摻摼摽摾摿撀撁撃撆撈撉撊撋撌撍撎撏撐撓撔撗撘撚撛撜撝撟撠撡撢撣撥撦撧撨撪撫撯撱撲撳撴撶撹撻撽撾撿擁擃擄擆擇擈擉擊擋擌擏擑擓擔擕擖擙據�".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(n[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="����������������������������������������������������������������擛擜擝擟擠擡擣擥擧擨擩擪擫擬擭擮擯擰擱擲擳擴擵擶擷擸擹擺擻擼擽擾擿攁攂攃攄攅攆攇攈攊攋攌攍攎攏攐攑攓攔攕攖攗攙攚攛攜攝攞攟攠攡�攢攣攤攦攧攨攩攪攬攭攰攱攲攳攷攺攼攽敀敁敂敃敄敆敇敊敋敍敎敐敒敓敔敗敘敚敜敟敠敡敤敥敧敨敩敪敭敮敯敱敳敵敶數敹敺敻敼敽敾敿斀斁斂斃斄斅斆斈斉斊斍斎斏斒斔斕斖斘斚斝斞斠斢斣斦斨斪斬斮斱斲斳斴斵斶斷斸斺斻斾斿旀旂旇旈旉旊旍旐旑旓旔旕旘旙旚旛旜旝旞旟旡旣旤旪旫�".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(n[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="����������������������������������������������������������������旲旳旴旵旸旹旻旼旽旾旿昁昄昅昇昈昉昋昍昐昑昒昖昗昘昚昛昜昞昡昢昣昤昦昩昪昫昬昮昰昲昳昷昸昹昺昻昽昿晀時晄晅晆晇晈晉晊晍晎晐晑晘�晙晛晜晝晞晠晢晣晥晧晩晪晫晬晭晱晲晳晵晸晹晻晼晽晿暀暁暃暅暆暈暉暊暋暍暎暏暐暒暓暔暕暘暙暚暛暜暞暟暠暡暢暣暤暥暦暩暪暫暬暭暯暰暱暲暳暵暶暷暸暺暻暼暽暿曀曁曂曃曄曅曆曇曈曉曊曋曌曍曎曏曐曑曒曓曔曕曖曗曘曚曞曟曠曡曢曣曤曥曧曨曪曫曬曭曮曯曱曵曶書曺曻曽朁朂會�".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(n[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="����������������������������������������������������������������朄朅朆朇朌朎朏朑朒朓朖朘朙朚朜朞朠朡朢朣朤朥朧朩朮朰朲朳朶朷朸朹朻朼朾朿杁杄杅杇杊杋杍杒杔杕杗杘杙杚杛杝杢杣杤杦杧杫杬杮東杴杶�杸杹杺杻杽枀枂枃枅枆枈枊枌枍枎枏枑枒枓枔枖枙枛枟枠枡枤枦枩枬枮枱枲枴枹枺枻枼枽枾枿柀柂柅柆柇柈柉柊柋柌柍柎柕柖柗柛柟柡柣柤柦柧柨柪柫柭柮柲柵柶柷柸柹柺査柼柾栁栂栃栄栆栍栐栒栔栕栘栙栚栛栜栞栟栠栢栣栤栥栦栧栨栫栬栭栮栯栰栱栴栵栶栺栻栿桇桋桍桏桒桖桗桘桙桚桛�".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(n[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="����������������������������������������������������������������桜桝桞桟桪桬桭桮桯桰桱桲桳桵桸桹桺桻桼桽桾桿梀梂梄梇梈梉梊梋梌梍梎梐梑梒梔梕梖梘梙梚梛梜條梞梟梠梡梣梤梥梩梪梫梬梮梱梲梴梶梷梸�梹梺梻梼梽梾梿棁棃棄棅棆棇棈棊棌棎棏棐棑棓棔棖棗棙棛棜棝棞棟棡棢棤棥棦棧棨棩棪棫棬棭棯棲棳棴棶棷棸棻棽棾棿椀椂椃椄椆椇椈椉椊椌椏椑椓椔椕椖椗椘椙椚椛検椝椞椡椢椣椥椦椧椨椩椪椫椬椮椯椱椲椳椵椶椷椸椺椻椼椾楀楁楃楄楅楆楇楈楉楊楋楌楍楎楏楐楑楒楓楕楖楘楙楛楜楟�".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(n[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="����������������������������������������������������������������楡楢楤楥楧楨楩楪楬業楯楰楲楳楴極楶楺楻楽楾楿榁榃榅榊榋榌榎榏榐榑榒榓榖榗榙榚榝榞榟榠榡榢榣榤榥榦榩榪榬榮榯榰榲榳榵榶榸榹榺榼榽�榾榿槀槂槃槄槅槆槇槈槉構槍槏槑槒槓槕槖槗様槙槚槜槝槞槡槢槣槤槥槦槧槨槩槪槫槬槮槯槰槱槳槴槵槶槷槸槹槺槻槼槾樀樁樂樃樄樅樆樇樈樉樋樌樍樎樏樐樑樒樓樔樕樖標樚樛樜樝樞樠樢樣樤樥樦樧権樫樬樭樮樰樲樳樴樶樷樸樹樺樻樼樿橀橁橂橃橅橆橈橉橊橋橌橍橎橏橑橒橓橔橕橖橗橚�".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(n[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="����������������������������������������������������������������橜橝橞機橠橢橣橤橦橧橨橩橪橫橬橭橮橯橰橲橳橴橵橶橷橸橺橻橽橾橿檁檂檃檅檆檇檈檉檊檋檌檍檏檒檓檔檕檖檘檙檚檛檜檝檞檟檡檢檣檤檥檦�檧檨檪檭檮檯檰檱檲檳檴檵檶檷檸檹檺檻檼檽檾檿櫀櫁櫂櫃櫄櫅櫆櫇櫈櫉櫊櫋櫌櫍櫎櫏櫐櫑櫒櫓櫔櫕櫖櫗櫘櫙櫚櫛櫜櫝櫞櫟櫠櫡櫢櫣櫤櫥櫦櫧櫨櫩櫪櫫櫬櫭櫮櫯櫰櫱櫲櫳櫴櫵櫶櫷櫸櫹櫺櫻櫼櫽櫾櫿欀欁欂欃欄欅欆欇欈欉權欋欌欍欎欏欐欑欒欓欔欕欖欗欘欙欚欛欜欝欞欟欥欦欨欩欪欫欬欭欮�".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(n[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="����������������������������������������������������������������欯欰欱欳欴欵欶欸欻欼欽欿歀歁歂歄歅歈歊歋歍歎歏歐歑歒歓歔歕歖歗歘歚歛歜歝歞歟歠歡歨歩歫歬歭歮歯歰歱歲歳歴歵歶歷歸歺歽歾歿殀殅殈�殌殎殏殐殑殔殕殗殘殙殜殝殞殟殠殢殣殤殥殦殧殨殩殫殬殭殮殯殰殱殲殶殸殹殺殻殼殽殾毀毃毄毆毇毈毉毊毌毎毐毑毘毚毜毝毞毟毠毢毣毤毥毦毧毨毩毬毭毮毰毱毲毴毶毷毸毺毻毼毾毿氀氁氂氃氄氈氉氊氋氌氎氒気氜氝氞氠氣氥氫氬氭氱氳氶氷氹氺氻氼氾氿汃汄汅汈汋汌汍汎汏汑汒汓汖汘�".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(n[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="����������������������������������������������������������������汙汚汢汣汥汦汧汫汬汭汮汯汱汳汵汷汸決汻汼汿沀沄沇沊沋沍沎沑沒沕沖沗沘沚沜沝沞沠沢沨沬沯沰沴沵沶沷沺泀況泂泃泆泇泈泋泍泎泏泑泒泘�泙泚泜泝泟泤泦泧泩泬泭泲泴泹泿洀洂洃洅洆洈洉洊洍洏洐洑洓洔洕洖洘洜洝洟洠洡洢洣洤洦洨洩洬洭洯洰洴洶洷洸洺洿浀浂浄浉浌浐浕浖浗浘浛浝浟浡浢浤浥浧浨浫浬浭浰浱浲浳浵浶浹浺浻浽浾浿涀涁涃涄涆涇涊涋涍涏涐涒涖涗涘涙涚涜涢涥涬涭涰涱涳涴涶涷涹涺涻涼涽涾淁淂淃淈淉淊�".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(n[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="����������������������������������������������������������������淍淎淏淐淒淓淔淕淗淚淛淜淟淢淣淥淧淨淩淪淭淯淰淲淴淵淶淸淺淽淾淿渀渁渂渃渄渆渇済渉渋渏渒渓渕渘渙減渜渞渟渢渦渧渨渪測渮渰渱渳渵�渶渷渹渻渼渽渾渿湀湁湂湅湆湇湈湉湊湋湌湏湐湑湒湕湗湙湚湜湝湞湠湡湢湣湤湥湦湧湨湩湪湬湭湯湰湱湲湳湴湵湶湷湸湹湺湻湼湽満溁溂溄溇溈溊溋溌溍溎溑溒溓溔溕準溗溙溚溛溝溞溠溡溣溤溦溨溩溫溬溭溮溰溳溵溸溹溼溾溿滀滃滄滅滆滈滉滊滌滍滎滐滒滖滘滙滛滜滝滣滧滪滫滬滭滮滯�".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(n[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="����������������������������������������������������������������滰滱滲滳滵滶滷滸滺滻滼滽滾滿漀漁漃漄漅漇漈漊漋漌漍漎漐漑漒漖漗漘漙漚漛漜漝漞漟漡漢漣漥漦漧漨漬漮漰漲漴漵漷漸漹漺漻漼漽漿潀潁潂�潃潄潅潈潉潊潌潎潏潐潑潒潓潔潕潖潗潙潚潛潝潟潠潡潣潤潥潧潨潩潪潫潬潯潰潱潳潵潶潷潹潻潽潾潿澀澁澂澃澅澆澇澊澋澏澐澑澒澓澔澕澖澗澘澙澚澛澝澞澟澠澢澣澤澥澦澨澩澪澫澬澭澮澯澰澱澲澴澵澷澸澺澻澼澽澾澿濁濃濄濅濆濇濈濊濋濌濍濎濏濐濓濔濕濖濗濘濙濚濛濜濝濟濢濣濤濥�".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(n[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="����������������������������������������������������������������濦濧濨濩濪濫濬濭濰濱濲濳濴濵濶濷濸濹濺濻濼濽濾濿瀀瀁瀂瀃瀄瀅瀆瀇瀈瀉瀊瀋瀌瀍瀎瀏瀐瀒瀓瀔瀕瀖瀗瀘瀙瀜瀝瀞瀟瀠瀡瀢瀤瀥瀦瀧瀨瀩瀪�瀫瀬瀭瀮瀯瀰瀱瀲瀳瀴瀶瀷瀸瀺瀻瀼瀽瀾瀿灀灁灂灃灄灅灆灇灈灉灊灋灍灎灐灑灒灓灔灕灖灗灘灙灚灛灜灝灟灠灡灢灣灤灥灦灧灨灩灪灮灱灲灳灴灷灹灺灻災炁炂炃炄炆炇炈炋炌炍炏炐炑炓炗炘炚炛炞炟炠炡炢炣炤炥炦炧炨炩炪炰炲炴炵炶為炾炿烄烅烆烇烉烋烌烍烎烏烐烑烒烓烔烕烖烗烚�".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(n[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="����������������������������������������������������������������烜烝烞烠烡烢烣烥烪烮烰烱烲烳烴烵烶烸烺烻烼烾烿焀焁焂焃焄焅焆焇焈焋焌焍焎焏焑焒焔焗焛焜焝焞焟焠無焢焣焤焥焧焨焩焪焫焬焭焮焲焳焴�焵焷焸焹焺焻焼焽焾焿煀煁煂煃煄煆煇煈煉煋煍煏煐煑煒煓煔煕煖煗煘煙煚煛煝煟煠煡煢煣煥煩煪煫煬煭煯煰煱煴煵煶煷煹煻煼煾煿熀熁熂熃熅熆熇熈熉熋熌熍熎熐熑熒熓熕熖熗熚熛熜熝熞熡熢熣熤熥熦熧熩熪熫熭熮熯熰熱熲熴熶熷熸熺熻熼熽熾熿燀燁燂燄燅燆燇燈燉燊燋燌燍燏燐燑燒燓�".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(n[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[160]="����������������������������������������������������������������燖燗燘燙燚燛燜燝燞營燡燢燣燤燦燨燩燪燫燬燭燯燰燱燲燳燴燵燶燷燸燺燻燼燽燾燿爀爁爂爃爄爅爇爈爉爊爋爌爍爎爏爐爑爒爓爔爕爖爗爘爙爚�爛爜爞爟爠爡爢爣爤爥爦爧爩爫爭爮爯爲爳爴爺爼爾牀牁牂牃牄牅牆牉牊牋牎牏牐牑牓牔牕牗牘牚牜牞牠牣牤牥牨牪牫牬牭牰牱牳牴牶牷牸牻牼牽犂犃犅犆犇犈犉犌犎犐犑犓犔犕犖犗犘犙犚犛犜犝犞犠犡犢犣犤犥犦犧犨犩犪犫犮犱犲犳犵犺犻犼犽犾犿狀狅狆狇狉狊狋狌狏狑狓狔狕狖狘狚狛�".split(""),e=0;e!=t[160].length;++e)t[160][e].charCodeAt(0)!==65533&&(n[t[160][e]]=40960+e,o[40960+e]=t[160][e]);for(t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。·ˉˇ¨〃々—~‖…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(n[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(n[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(n[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(n[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(n[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������︵︶︹︺︿﹀︽︾﹁﹂﹃﹄��︻︼︷︸︱�︳︴����������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(n[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(n[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="����������������������������������������������������������������ˊˋ˙–―‥‵℅℉↖↗↘↙∕∟∣≒≦≧⊿═║╒╓╔╕╖╗╘╙╚╛╜╝╞╟╠╡╢╣╤╥╦╧╨╩╪╫╬╭╮╯╰╱╲╳▁▂▃▄▅▆▇�█▉▊▋▌▍▎▏▓▔▕▼▽◢◣◤◥☉⊕〒〝〞�����������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüêɑ�ńň�ɡ����ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(n[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="����������������������������������������������������������������〡〢〣〤〥〦〧〨〩㊣㎎㎏㎜㎝㎞㎡㏄㏎㏑㏒㏕︰¬¦�℡㈱�‐���ー゛゜ヽヾ〆ゝゞ﹉﹊﹋﹌﹍﹎﹏﹐﹑﹒﹔﹕﹖﹗﹙﹚﹛﹜﹝﹞﹟﹠﹡�﹢﹣﹤﹥﹦﹨﹩﹪﹫�������������〇�������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(n[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="����������������������������������������������������������������狜狝狟狢狣狤狥狦狧狪狫狵狶狹狽狾狿猀猂猄猅猆猇猈猉猋猌猍猏猐猑猒猔猘猙猚猟猠猣猤猦猧猨猭猯猰猲猳猵猶猺猻猼猽獀獁獂獃獄獅獆獇獈�獉獊獋獌獎獏獑獓獔獕獖獘獙獚獛獜獝獞獟獡獢獣獤獥獦獧獨獩獪獫獮獰獱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(n[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="����������������������������������������������������������������獲獳獴獵獶獷獸獹獺獻獼獽獿玀玁玂玃玅玆玈玊玌玍玏玐玒玓玔玕玗玘玙玚玜玝玞玠玡玣玤玥玦玧玨玪玬玭玱玴玵玶玸玹玼玽玾玿珁珃珄珅珆珇�珋珌珎珒珓珔珕珖珗珘珚珛珜珝珟珡珢珣珤珦珨珪珫珬珮珯珰珱珳珴珵珶珷�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(n[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="����������������������������������������������������������������珸珹珺珻珼珽現珿琀琁琂琄琇琈琋琌琍琎琑琒琓琔琕琖琗琘琙琜琝琞琟琠琡琣琤琧琩琫琭琯琱琲琷琸琹琺琻琽琾琿瑀瑂瑃瑄瑅瑆瑇瑈瑉瑊瑋瑌瑍�瑎瑏瑐瑑瑒瑓瑔瑖瑘瑝瑠瑡瑢瑣瑤瑥瑦瑧瑨瑩瑪瑫瑬瑮瑯瑱瑲瑳瑴瑵瑸瑹瑺�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(n[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="����������������������������������������������������������������瑻瑼瑽瑿璂璄璅璆璈璉璊璌璍璏璑璒璓璔璕璖璗璘璙璚璛璝璟璠璡璢璣璤璥璦璪璫璬璭璮璯環璱璲璳璴璵璶璷璸璹璻璼璽璾璿瓀瓁瓂瓃瓄瓅瓆瓇�瓈瓉瓊瓋瓌瓍瓎瓏瓐瓑瓓瓔瓕瓖瓗瓘瓙瓚瓛瓝瓟瓡瓥瓧瓨瓩瓪瓫瓬瓭瓰瓱瓲�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(n[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="����������������������������������������������������������������瓳瓵瓸瓹瓺瓻瓼瓽瓾甀甁甂甃甅甆甇甈甉甊甋甌甎甐甒甔甕甖甗甛甝甞甠甡產産甤甦甧甪甮甴甶甹甼甽甿畁畂畃畄畆畇畉畊畍畐畑畒畓畕畖畗畘�畝畞畟畠畡畢畣畤畧畨畩畫畬畭畮畯異畱畳畵當畷畺畻畼畽畾疀疁疂疄疅疇�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(n[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="����������������������������������������������������������������疈疉疊疌疍疎疐疓疕疘疛疜疞疢疦疧疨疩疪疭疶疷疺疻疿痀痁痆痋痌痎痏痐痑痓痗痙痚痜痝痟痠痡痥痩痬痭痮痯痲痳痵痶痷痸痺痻痽痾瘂瘄瘆瘇�瘈瘉瘋瘍瘎瘏瘑瘒瘓瘔瘖瘚瘜瘝瘞瘡瘣瘧瘨瘬瘮瘯瘱瘲瘶瘷瘹瘺瘻瘽癁療癄�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(n[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="����������������������������������������������������������������癅癆癇癈癉癊癋癎癏癐癑癒癓癕癗癘癙癚癛癝癟癠癡癢癤癥癦癧癨癩癪癬癭癮癰癱癲癳癴癵癶癷癹発發癿皀皁皃皅皉皊皌皍皏皐皒皔皕皗皘皚皛�皜皝皞皟皠皡皢皣皥皦皧皨皩皪皫皬皭皯皰皳皵皶皷皸皹皺皻皼皽皾盀盁盃啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(n[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="����������������������������������������������������������������盄盇盉盋盌盓盕盙盚盜盝盞盠盡盢監盤盦盧盨盩盪盫盬盭盰盳盵盶盷盺盻盽盿眀眂眃眅眆眊県眎眏眐眑眒眓眔眕眖眗眘眛眜眝眞眡眣眤眥眧眪眫�眬眮眰眱眲眳眴眹眻眽眾眿睂睄睅睆睈睉睊睋睌睍睎睏睒睓睔睕睖睗睘睙睜薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(n[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="����������������������������������������������������������������睝睞睟睠睤睧睩睪睭睮睯睰睱睲睳睴睵睶睷睸睺睻睼瞁瞂瞃瞆瞇瞈瞉瞊瞋瞏瞐瞓瞔瞕瞖瞗瞘瞙瞚瞛瞜瞝瞞瞡瞣瞤瞦瞨瞫瞭瞮瞯瞱瞲瞴瞶瞷瞸瞹瞺�瞼瞾矀矁矂矃矄矅矆矇矈矉矊矋矌矎矏矐矑矒矓矔矕矖矘矙矚矝矞矟矠矡矤病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(n[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="����������������������������������������������������������������矦矨矪矯矰矱矲矴矵矷矹矺矻矼砃砄砅砆砇砈砊砋砎砏砐砓砕砙砛砞砠砡砢砤砨砪砫砮砯砱砲砳砵砶砽砿硁硂硃硄硆硈硉硊硋硍硏硑硓硔硘硙硚�硛硜硞硟硠硡硢硣硤硥硦硧硨硩硯硰硱硲硳硴硵硶硸硹硺硻硽硾硿碀碁碂碃场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(n[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="����������������������������������������������������������������碄碅碆碈碊碋碏碐碒碔碕碖碙碝碞碠碢碤碦碨碩碪碫碬碭碮碯碵碶碷碸確碻碼碽碿磀磂磃磄磆磇磈磌磍磎磏磑磒磓磖磗磘磚磛磜磝磞磟磠磡磢磣�磤磥磦磧磩磪磫磭磮磯磰磱磳磵磶磸磹磻磼磽磾磿礀礂礃礄礆礇礈礉礊礋礌础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(n[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="����������������������������������������������������������������礍礎礏礐礑礒礔礕礖礗礘礙礚礛礜礝礟礠礡礢礣礥礦礧礨礩礪礫礬礭礮礯礰礱礲礳礵礶礷礸礹礽礿祂祃祄祅祇祊祋祌祍祎祏祐祑祒祔祕祘祙祡祣�祤祦祩祪祫祬祮祰祱祲祳祴祵祶祹祻祼祽祾祿禂禃禆禇禈禉禋禌禍禎禐禑禒怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(n[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="����������������������������������������������������������������禓禔禕禖禗禘禙禛禜禝禞禟禠禡禢禣禤禥禦禨禩禪禫禬禭禮禯禰禱禲禴禵禶禷禸禼禿秂秄秅秇秈秊秌秎秏秐秓秔秖秗秙秚秛秜秝秞秠秡秢秥秨秪�秬秮秱秲秳秴秵秶秷秹秺秼秾秿稁稄稅稇稈稉稊稌稏稐稑稒稓稕稖稘稙稛稜丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(n[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="����������������������������������������������������������������稝稟稡稢稤稥稦稧稨稩稪稫稬稭種稯稰稱稲稴稵稶稸稺稾穀穁穂穃穄穅穇穈穉穊穋穌積穎穏穐穒穓穔穕穖穘穙穚穛穜穝穞穟穠穡穢穣穤穥穦穧穨�穩穪穫穬穭穮穯穱穲穳穵穻穼穽穾窂窅窇窉窊窋窌窎窏窐窓窔窙窚窛窞窡窢贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(n[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="����������������������������������������������������������������窣窤窧窩窪窫窮窯窰窱窲窴窵窶窷窸窹窺窻窼窽窾竀竁竂竃竄竅竆竇竈竉竊竌竍竎竏竐竑竒竓竔竕竗竘竚竛竜竝竡竢竤竧竨竩竪竫竬竮竰竱竲竳�竴竵競竷竸竻竼竾笀笁笂笅笇笉笌笍笎笐笒笓笖笗笘笚笜笝笟笡笢笣笧笩笭浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(n[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="����������������������������������������������������������������笯笰笲笴笵笶笷笹笻笽笿筀筁筂筃筄筆筈筊筍筎筓筕筗筙筜筞筟筡筣筤筥筦筧筨筩筪筫筬筭筯筰筳筴筶筸筺筼筽筿箁箂箃箄箆箇箈箉箊箋箌箎箏�箑箒箓箖箘箙箚箛箞箟箠箣箤箥箮箯箰箲箳箵箶箷箹箺箻箼箽箾箿節篂篃範埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(n[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="����������������������������������������������������������������篅篈築篊篋篍篎篏篐篒篔篕篖篗篘篛篜篞篟篠篢篣篤篧篨篩篫篬篭篯篰篲篳篴篵篶篸篹篺篻篽篿簀簁簂簃簄簅簆簈簉簊簍簎簐簑簒簓簔簕簗簘簙�簚簛簜簝簞簠簡簢簣簤簥簨簩簫簬簭簮簯簰簱簲簳簴簵簶簷簹簺簻簼簽簾籂骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(n[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="����������������������������������������������������������������籃籄籅籆籇籈籉籊籋籌籎籏籐籑籒籓籔籕籖籗籘籙籚籛籜籝籞籟籠籡籢籣籤籥籦籧籨籩籪籫籬籭籮籯籰籱籲籵籶籷籸籹籺籾籿粀粁粂粃粄粅粆粇�粈粊粋粌粍粎粏粐粓粔粖粙粚粛粠粡粣粦粧粨粩粫粬粭粯粰粴粵粶粷粸粺粻弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(n[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="����������������������������������������������������������������粿糀糂糃糄糆糉糋糎糏糐糑糒糓糔糘糚糛糝糞糡糢糣糤糥糦糧糩糪糫糬糭糮糰糱糲糳糴糵糶糷糹糺糼糽糾糿紀紁紂紃約紅紆紇紈紉紋紌納紎紏紐�紑紒紓純紕紖紗紘紙級紛紜紝紞紟紡紣紤紥紦紨紩紪紬紭紮細紱紲紳紴紵紶肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(n[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="����������������������������������������������������������������紷紸紹紺紻紼紽紾紿絀絁終絃組絅絆絇絈絉絊絋経絍絎絏結絑絒絓絔絕絖絗絘絙絚絛絜絝絞絟絠絡絢絣絤絥給絧絨絩絪絫絬絭絯絰統絲絳絴絵絶�絸絹絺絻絼絽絾絿綀綁綂綃綄綅綆綇綈綉綊綋綌綍綎綏綐綑綒經綔綕綖綗綘健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(n[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="����������������������������������������������������������������継続綛綜綝綞綟綠綡綢綣綤綥綧綨綩綪綫綬維綯綰綱網綳綴綵綶綷綸綹綺綻綼綽綾綿緀緁緂緃緄緅緆緇緈緉緊緋緌緍緎総緐緑緒緓緔緕緖緗緘緙�線緛緜緝緞緟締緡緢緣緤緥緦緧編緩緪緫緬緭緮緯緰緱緲緳練緵緶緷緸緹緺尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(n[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="����������������������������������������������������������������緻緼緽緾緿縀縁縂縃縄縅縆縇縈縉縊縋縌縍縎縏縐縑縒縓縔縕縖縗縘縙縚縛縜縝縞縟縠縡縢縣縤縥縦縧縨縩縪縫縬縭縮縯縰縱縲縳縴縵縶縷縸縹�縺縼總績縿繀繂繃繄繅繆繈繉繊繋繌繍繎繏繐繑繒繓織繕繖繗繘繙繚繛繜繝俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(n[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="����������������������������������������������������������������繞繟繠繡繢繣繤繥繦繧繨繩繪繫繬繭繮繯繰繱繲繳繴繵繶繷繸繹繺繻繼繽繾繿纀纁纃纄纅纆纇纈纉纊纋續纍纎纏纐纑纒纓纔纕纖纗纘纙纚纜纝纞�纮纴纻纼绖绤绬绹缊缐缞缷缹缻缼缽缾缿罀罁罃罆罇罈罉罊罋罌罍罎罏罒罓馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(n[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="����������������������������������������������������������������罖罙罛罜罝罞罠罣罤罥罦罧罫罬罭罯罰罳罵罶罷罸罺罻罼罽罿羀羂羃羄羅羆羇羈羉羋羍羏羐羑羒羓羕羖羗羘羙羛羜羠羢羣羥羦羨義羪羫羬羭羮羱�羳羴羵羶羷羺羻羾翀翂翃翄翆翇翈翉翋翍翏翐翑習翓翖翗翙翚翛翜翝翞翢翣痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(n[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="����������������������������������������������������������������翤翧翨翪翫翬翭翯翲翴翵翶翷翸翹翺翽翾翿耂耇耈耉耊耎耏耑耓耚耛耝耞耟耡耣耤耫耬耭耮耯耰耲耴耹耺耼耾聀聁聄聅聇聈聉聎聏聐聑聓聕聖聗�聙聛聜聝聞聟聠聡聢聣聤聥聦聧聨聫聬聭聮聯聰聲聳聴聵聶職聸聹聺聻聼聽隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(n[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="����������������������������������������������������������������聾肁肂肅肈肊肍肎肏肐肑肒肔肕肗肙肞肣肦肧肨肬肰肳肵肶肸肹肻胅胇胈胉胊胋胏胐胑胒胓胔胕胘胟胠胢胣胦胮胵胷胹胻胾胿脀脁脃脄脅脇脈脋�脌脕脗脙脛脜脝脟脠脡脢脣脤脥脦脧脨脩脪脫脭脮脰脳脴脵脷脹脺脻脼脽脿谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(n[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="����������������������������������������������������������������腀腁腂腃腄腅腇腉腍腎腏腒腖腗腘腛腜腝腞腟腡腢腣腤腦腨腪腫腬腯腲腳腵腶腷腸膁膃膄膅膆膇膉膋膌膍膎膐膒膓膔膕膖膗膙膚膞膟膠膡膢膤膥�膧膩膫膬膭膮膯膰膱膲膴膵膶膷膸膹膼膽膾膿臄臅臇臈臉臋臍臎臏臐臑臒臓摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(n[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="����������������������������������������������������������������臔臕臖臗臘臙臚臛臜臝臞臟臠臡臢臤臥臦臨臩臫臮臯臰臱臲臵臶臷臸臹臺臽臿舃與興舉舊舋舎舏舑舓舕舖舗舘舙舚舝舠舤舥舦舧舩舮舲舺舼舽舿�艀艁艂艃艅艆艈艊艌艍艎艐艑艒艓艔艕艖艗艙艛艜艝艞艠艡艢艣艤艥艦艧艩拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(n[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="����������������������������������������������������������������艪艫艬艭艱艵艶艷艸艻艼芀芁芃芅芆芇芉芌芐芓芔芕芖芚芛芞芠芢芣芧芲芵芶芺芻芼芿苀苂苃苅苆苉苐苖苙苚苝苢苧苨苩苪苬苭苮苰苲苳苵苶苸�苺苼苽苾苿茀茊茋茍茐茒茓茖茘茙茝茞茟茠茡茢茣茤茥茦茩茪茮茰茲茷茻茽啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(n[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="����������������������������������������������������������������茾茿荁荂荄荅荈荊荋荌荍荎荓荕荖荗荘荙荝荢荰荱荲荳荴荵荶荹荺荾荿莀莁莂莃莄莇莈莊莋莌莍莏莐莑莔莕莖莗莙莚莝莟莡莢莣莤莥莦莧莬莭莮�莯莵莻莾莿菂菃菄菆菈菉菋菍菎菐菑菒菓菕菗菙菚菛菞菢菣菤菦菧菨菫菬菭恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(n[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="����������������������������������������������������������������菮華菳菴菵菶菷菺菻菼菾菿萀萂萅萇萈萉萊萐萒萓萔萕萖萗萙萚萛萞萟萠萡萢萣萩萪萫萬萭萮萯萰萲萳萴萵萶萷萹萺萻萾萿葀葁葂葃葄葅葇葈葉�葊葋葌葍葎葏葐葒葓葔葕葖葘葝葞葟葠葢葤葥葦葧葨葪葮葯葰葲葴葷葹葻葼取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(n[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[201]="����������������������������������������������������������������葽葾葿蒀蒁蒃蒄蒅蒆蒊蒍蒏蒐蒑蒒蒓蒔蒕蒖蒘蒚蒛蒝蒞蒟蒠蒢蒣蒤蒥蒦蒧蒨蒩蒪蒫蒬蒭蒮蒰蒱蒳蒵蒶蒷蒻蒼蒾蓀蓂蓃蓅蓆蓇蓈蓋蓌蓎蓏蓒蓔蓕蓗�蓘蓙蓚蓛蓜蓞蓡蓢蓤蓧蓨蓩蓪蓫蓭蓮蓯蓱蓲蓳蓴蓵蓶蓷蓸蓹蓺蓻蓽蓾蔀蔁蔂伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(n[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="����������������������������������������������������������������蔃蔄蔅蔆蔇蔈蔉蔊蔋蔍蔎蔏蔐蔒蔔蔕蔖蔘蔙蔛蔜蔝蔞蔠蔢蔣蔤蔥蔦蔧蔨蔩蔪蔭蔮蔯蔰蔱蔲蔳蔴蔵蔶蔾蔿蕀蕁蕂蕄蕅蕆蕇蕋蕌蕍蕎蕏蕐蕑蕒蕓蕔蕕�蕗蕘蕚蕛蕜蕝蕟蕠蕡蕢蕣蕥蕦蕧蕩蕪蕫蕬蕭蕮蕯蕰蕱蕳蕵蕶蕷蕸蕼蕽蕿薀薁省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(n[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="����������������������������������������������������������������薂薃薆薈薉薊薋薌薍薎薐薑薒薓薔薕薖薗薘薙薚薝薞薟薠薡薢薣薥薦薧薩薫薬薭薱薲薳薴薵薶薸薺薻薼薽薾薿藀藂藃藄藅藆藇藈藊藋藌藍藎藑藒�藔藖藗藘藙藚藛藝藞藟藠藡藢藣藥藦藧藨藪藫藬藭藮藯藰藱藲藳藴藵藶藷藸恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(n[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="����������������������������������������������������������������藹藺藼藽藾蘀蘁蘂蘃蘄蘆蘇蘈蘉蘊蘋蘌蘍蘎蘏蘐蘒蘓蘔蘕蘗蘘蘙蘚蘛蘜蘝蘞蘟蘠蘡蘢蘣蘤蘥蘦蘨蘪蘫蘬蘭蘮蘯蘰蘱蘲蘳蘴蘵蘶蘷蘹蘺蘻蘽蘾蘿虀�虁虂虃虄虅虆虇虈虉虊虋虌虒虓處虖虗虘虙虛虜虝號虠虡虣虤虥虦虧虨虩虪獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(n[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="����������������������������������������������������������������虭虯虰虲虳虴虵虶虷虸蚃蚄蚅蚆蚇蚈蚉蚎蚏蚐蚑蚒蚔蚖蚗蚘蚙蚚蚛蚞蚟蚠蚡蚢蚥蚦蚫蚭蚮蚲蚳蚷蚸蚹蚻蚼蚽蚾蚿蛁蛂蛃蛅蛈蛌蛍蛒蛓蛕蛖蛗蛚蛜�蛝蛠蛡蛢蛣蛥蛦蛧蛨蛪蛫蛬蛯蛵蛶蛷蛺蛻蛼蛽蛿蜁蜄蜅蜆蜋蜌蜎蜏蜐蜑蜔蜖汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(n[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="����������������������������������������������������������������蜙蜛蜝蜟蜠蜤蜦蜧蜨蜪蜫蜬蜭蜯蜰蜲蜳蜵蜶蜸蜹蜺蜼蜽蝀蝁蝂蝃蝄蝅蝆蝊蝋蝍蝏蝐蝑蝒蝔蝕蝖蝘蝚蝛蝜蝝蝞蝟蝡蝢蝦蝧蝨蝩蝪蝫蝬蝭蝯蝱蝲蝳蝵�蝷蝸蝹蝺蝿螀螁螄螆螇螉螊螌螎螏螐螑螒螔螕螖螘螙螚螛螜螝螞螠螡螢螣螤巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(n[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="����������������������������������������������������������������螥螦螧螩螪螮螰螱螲螴螶螷螸螹螻螼螾螿蟁蟂蟃蟄蟅蟇蟈蟉蟌蟍蟎蟏蟐蟔蟕蟖蟗蟘蟙蟚蟜蟝蟞蟟蟡蟢蟣蟤蟦蟧蟨蟩蟫蟬蟭蟯蟰蟱蟲蟳蟴蟵蟶蟷蟸�蟺蟻蟼蟽蟿蠀蠁蠂蠄蠅蠆蠇蠈蠉蠋蠌蠍蠎蠏蠐蠑蠒蠔蠗蠘蠙蠚蠜蠝蠞蠟蠠蠣稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(n[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="����������������������������������������������������������������蠤蠥蠦蠧蠨蠩蠪蠫蠬蠭蠮蠯蠰蠱蠳蠴蠵蠶蠷蠸蠺蠻蠽蠾蠿衁衂衃衆衇衈衉衊衋衎衏衐衑衒術衕衖衘衚衛衜衝衞衟衠衦衧衪衭衯衱衳衴衵衶衸衹衺�衻衼袀袃袆袇袉袊袌袎袏袐袑袓袔袕袗袘袙袚袛袝袞袟袠袡袣袥袦袧袨袩袪小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(n[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="����������������������������������������������������������������袬袮袯袰袲袳袴袵袶袸袹袺袻袽袾袿裀裃裄裇裈裊裋裌裍裏裐裑裓裖裗裚裛補裝裞裠裡裦裧裩裪裫裬裭裮裯裲裵裶裷裺裻製裿褀褁褃褄褅褆複褈�褉褋褌褍褎褏褑褔褕褖褗褘褜褝褞褟褠褢褣褤褦褧褨褩褬褭褮褯褱褲褳褵褷选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(n[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="����������������������������������������������������������������褸褹褺褻褼褽褾褿襀襂襃襅襆襇襈襉襊襋襌襍襎襏襐襑襒襓襔襕襖襗襘襙襚襛襜襝襠襡襢襣襤襥襧襨襩襪襫襬襭襮襯襰襱襲襳襴襵襶襷襸襹襺襼�襽襾覀覂覄覅覇覈覉覊見覌覍覎規覐覑覒覓覔覕視覗覘覙覚覛覜覝覞覟覠覡摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(n[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="����������������������������������������������������������������覢覣覤覥覦覧覨覩親覫覬覭覮覯覰覱覲観覴覵覶覷覸覹覺覻覼覽覾覿觀觃觍觓觔觕觗觘觙觛觝觟觠觡觢觤觧觨觩觪觬觭觮觰觱觲觴觵觶觷觸觹觺�觻觼觽觾觿訁訂訃訄訅訆計訉訊訋訌訍討訏訐訑訒訓訔訕訖託記訙訚訛訜訝印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(n[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="����������������������������������������������������������������訞訟訠訡訢訣訤訥訦訧訨訩訪訫訬設訮訯訰許訲訳訴訵訶訷訸訹診註証訽訿詀詁詂詃詄詅詆詇詉詊詋詌詍詎詏詐詑詒詓詔評詖詗詘詙詚詛詜詝詞�詟詠詡詢詣詤詥試詧詨詩詪詫詬詭詮詯詰話該詳詴詵詶詷詸詺詻詼詽詾詿誀浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(n[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="����������������������������������������������������������������誁誂誃誄誅誆誇誈誋誌認誎誏誐誑誒誔誕誖誗誘誙誚誛誜誝語誟誠誡誢誣誤誥誦誧誨誩說誫説読誮誯誰誱課誳誴誵誶誷誸誹誺誻誼誽誾調諀諁諂�諃諄諅諆談諈諉諊請諌諍諎諏諐諑諒諓諔諕論諗諘諙諚諛諜諝諞諟諠諡諢諣铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(n[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="����������������������������������������������������������������諤諥諦諧諨諩諪諫諬諭諮諯諰諱諲諳諴諵諶諷諸諹諺諻諼諽諾諿謀謁謂謃謄謅謆謈謉謊謋謌謍謎謏謐謑謒謓謔謕謖謗謘謙謚講謜謝謞謟謠謡謢謣�謤謥謧謨謩謪謫謬謭謮謯謰謱謲謳謴謵謶謷謸謹謺謻謼謽謾謿譀譁譂譃譄譅帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(n[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="����������������������������������������������������������������譆譇譈證譊譋譌譍譎譏譐譑譒譓譔譕譖譗識譙譚譛譜譝譞譟譠譡譢譣譤譥譧譨譩譪譫譭譮譯議譱譲譳譴譵譶護譸譹譺譻譼譽譾譿讀讁讂讃讄讅讆�讇讈讉變讋讌讍讎讏讐讑讒讓讔讕讖讗讘讙讚讛讜讝讞讟讬讱讻诇诐诪谉谞住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(n[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="����������������������������������������������������������������谸谹谺谻谼谽谾谿豀豂豃豄豅豈豊豋豍豎豏豐豑豒豓豔豖豗豘豙豛豜豝豞豟豠豣豤豥豦豧豨豩豬豭豮豯豰豱豲豴豵豶豷豻豼豽豾豿貀貁貃貄貆貇�貈貋貍貎貏貐貑貒貓貕貖貗貙貚貛貜貝貞貟負財貢貣貤貥貦貧貨販貪貫責貭亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(n[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="����������������������������������������������������������������貮貯貰貱貲貳貴貵貶買貸貹貺費貼貽貾貿賀賁賂賃賄賅賆資賈賉賊賋賌賍賎賏賐賑賒賓賔賕賖賗賘賙賚賛賜賝賞賟賠賡賢賣賤賥賦賧賨賩質賫賬�賭賮賯賰賱賲賳賴賵賶賷賸賹賺賻購賽賾賿贀贁贂贃贄贅贆贇贈贉贊贋贌贍佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(n[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="����������������������������������������������������������������贎贏贐贑贒贓贔贕贖贗贘贙贚贛贜贠赑赒赗赟赥赨赩赪赬赮赯赱赲赸赹赺赻赼赽赾赿趀趂趃趆趇趈趉趌趍趎趏趐趒趓趕趖趗趘趙趚趛趜趝趞趠趡�趢趤趥趦趧趨趩趪趫趬趭趮趯趰趲趶趷趹趻趽跀跁跂跅跇跈跉跊跍跐跒跓跔凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(n[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="����������������������������������������������������������������跕跘跙跜跠跡跢跥跦跧跩跭跮跰跱跲跴跶跼跾跿踀踁踂踃踄踆踇踈踋踍踎踐踑踒踓踕踖踗踘踙踚踛踜踠踡踤踥踦踧踨踫踭踰踲踳踴踶踷踸踻踼踾�踿蹃蹅蹆蹌蹍蹎蹏蹐蹓蹔蹕蹖蹗蹘蹚蹛蹜蹝蹞蹟蹠蹡蹢蹣蹤蹥蹧蹨蹪蹫蹮蹱邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(n[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="����������������������������������������������������������������蹳蹵蹷蹸蹹蹺蹻蹽蹾躀躂躃躄躆躈躉躊躋躌躍躎躑躒躓躕躖躗躘躙躚躛躝躟躠躡躢躣躤躥躦躧躨躩躪躭躮躰躱躳躴躵躶躷躸躹躻躼躽躾躿軀軁軂�軃軄軅軆軇軈軉車軋軌軍軏軐軑軒軓軔軕軖軗軘軙軚軛軜軝軞軟軠軡転軣軤堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(n[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="����������������������������������������������������������������軥軦軧軨軩軪軫軬軭軮軯軰軱軲軳軴軵軶軷軸軹軺軻軼軽軾軿輀輁輂較輄輅輆輇輈載輊輋輌輍輎輏輐輑輒輓輔輕輖輗輘輙輚輛輜輝輞輟輠輡輢輣�輤輥輦輧輨輩輪輫輬輭輮輯輰輱輲輳輴輵輶輷輸輹輺輻輼輽輾輿轀轁轂轃轄荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(n[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="����������������������������������������������������������������轅轆轇轈轉轊轋轌轍轎轏轐轑轒轓轔轕轖轗轘轙轚轛轜轝轞轟轠轡轢轣轤轥轪辀辌辒辝辠辡辢辤辥辦辧辪辬辭辮辯農辳辴辵辷辸辺辻込辿迀迃迆�迉迊迋迌迍迏迒迖迗迚迠迡迣迧迬迯迱迲迴迵迶迺迻迼迾迿逇逈逌逎逓逕逘蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(n[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="����������������������������������������������������������������這逜連逤逥逧逨逩逪逫逬逰週進逳逴逷逹逺逽逿遀遃遅遆遈遉遊運遌過達違遖遙遚遜遝遞遟遠遡遤遦遧適遪遫遬遯遰遱遲遳遶遷選遹遺遻遼遾邁�還邅邆邇邉邊邌邍邎邏邐邒邔邖邘邚邜邞邟邠邤邥邧邨邩邫邭邲邷邼邽邿郀摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(n[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="����������������������������������������������������������������郂郃郆郈郉郋郌郍郒郔郕郖郘郙郚郞郟郠郣郤郥郩郪郬郮郰郱郲郳郵郶郷郹郺郻郼郿鄀鄁鄃鄅鄆鄇鄈鄉鄊鄋鄌鄍鄎鄏鄐鄑鄒鄓鄔鄕鄖鄗鄘鄚鄛鄜�鄝鄟鄠鄡鄤鄥鄦鄧鄨鄩鄪鄫鄬鄭鄮鄰鄲鄳鄴鄵鄶鄷鄸鄺鄻鄼鄽鄾鄿酀酁酂酄唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(n[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������酅酇酈酑酓酔酕酖酘酙酛酜酟酠酦酧酨酫酭酳酺酻酼醀醁醂醃醄醆醈醊醎醏醓醔醕醖醗醘醙醜醝醞醟醠醡醤醥醦醧醨醩醫醬醰醱醲醳醶醷醸醹醻�醼醽醾醿釀釁釂釃釄釅釆釈釋釐釒釓釔釕釖釗釘釙釚釛針釞釟釠釡釢釣釤釥帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(n[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������釦釧釨釩釪釫釬釭釮釯釰釱釲釳釴釵釶釷釸釹釺釻釼釽釾釿鈀鈁鈂鈃鈄鈅鈆鈇鈈鈉鈊鈋鈌鈍鈎鈏鈐鈑鈒鈓鈔鈕鈖鈗鈘鈙鈚鈛鈜鈝鈞鈟鈠鈡鈢鈣鈤�鈥鈦鈧鈨鈩鈪鈫鈬鈭鈮鈯鈰鈱鈲鈳鈴鈵鈶鈷鈸鈹鈺鈻鈼鈽鈾鈿鉀鉁鉂鉃鉄鉅狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(n[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������鉆鉇鉈鉉鉊鉋鉌鉍鉎鉏鉐鉑鉒鉓鉔鉕鉖鉗鉘鉙鉚鉛鉜鉝鉞鉟鉠鉡鉢鉣鉤鉥鉦鉧鉨鉩鉪鉫鉬鉭鉮鉯鉰鉱鉲鉳鉵鉶鉷鉸鉹鉺鉻鉼鉽鉾鉿銀銁銂銃銄銅�銆銇銈銉銊銋銌銍銏銐銑銒銓銔銕銖銗銘銙銚銛銜銝銞銟銠銡銢銣銤銥銦銧恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(n[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������銨銩銪銫銬銭銯銰銱銲銳銴銵銶銷銸銹銺銻銼銽銾銿鋀鋁鋂鋃鋄鋅鋆鋇鋉鋊鋋鋌鋍鋎鋏鋐鋑鋒鋓鋔鋕鋖鋗鋘鋙鋚鋛鋜鋝鋞鋟鋠鋡鋢鋣鋤鋥鋦鋧鋨�鋩鋪鋫鋬鋭鋮鋯鋰鋱鋲鋳鋴鋵鋶鋷鋸鋹鋺鋻鋼鋽鋾鋿錀錁錂錃錄錅錆錇錈錉洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(n[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������錊錋錌錍錎錏錐錑錒錓錔錕錖錗錘錙錚錛錜錝錞錟錠錡錢錣錤錥錦錧錨錩錪錫錬錭錮錯錰錱録錳錴錵錶錷錸錹錺錻錼錽錿鍀鍁鍂鍃鍄鍅鍆鍇鍈鍉�鍊鍋鍌鍍鍎鍏鍐鍑鍒鍓鍔鍕鍖鍗鍘鍙鍚鍛鍜鍝鍞鍟鍠鍡鍢鍣鍤鍥鍦鍧鍨鍩鍫濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(n[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������鍬鍭鍮鍯鍰鍱鍲鍳鍴鍵鍶鍷鍸鍹鍺鍻鍼鍽鍾鍿鎀鎁鎂鎃鎄鎅鎆鎇鎈鎉鎊鎋鎌鎍鎎鎐鎑鎒鎓鎔鎕鎖鎗鎘鎙鎚鎛鎜鎝鎞鎟鎠鎡鎢鎣鎤鎥鎦鎧鎨鎩鎪鎫�鎬鎭鎮鎯鎰鎱鎲鎳鎴鎵鎶鎷鎸鎹鎺鎻鎼鎽鎾鎿鏀鏁鏂鏃鏄鏅鏆鏇鏈鏉鏋鏌鏍妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(n[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������鏎鏏鏐鏑鏒鏓鏔鏕鏗鏘鏙鏚鏛鏜鏝鏞鏟鏠鏡鏢鏣鏤鏥鏦鏧鏨鏩鏪鏫鏬鏭鏮鏯鏰鏱鏲鏳鏴鏵鏶鏷鏸鏹鏺鏻鏼鏽鏾鏿鐀鐁鐂鐃鐄鐅鐆鐇鐈鐉鐊鐋鐌鐍�鐎鐏鐐鐑鐒鐓鐔鐕鐖鐗鐘鐙鐚鐛鐜鐝鐞鐟鐠鐡鐢鐣鐤鐥鐦鐧鐨鐩鐪鐫鐬鐭鐮纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(n[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������鐯鐰鐱鐲鐳鐴鐵鐶鐷鐸鐹鐺鐻鐼鐽鐿鑀鑁鑂鑃鑄鑅鑆鑇鑈鑉鑊鑋鑌鑍鑎鑏鑐鑑鑒鑓鑔鑕鑖鑗鑘鑙鑚鑛鑜鑝鑞鑟鑠鑡鑢鑣鑤鑥鑦鑧鑨鑩鑪鑬鑭鑮鑯�鑰鑱鑲鑳鑴鑵鑶鑷鑸鑹鑺鑻鑼鑽鑾鑿钀钁钂钃钄钑钖钘铇铏铓铔铚铦铻锜锠琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(n[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������锧锳锽镃镈镋镕镚镠镮镴镵長镸镹镺镻镼镽镾門閁閂閃閄閅閆閇閈閉閊開閌閍閎閏閐閑閒間閔閕閖閗閘閙閚閛閜閝閞閟閠閡関閣閤閥閦閧閨閩閪�閫閬閭閮閯閰閱閲閳閴閵閶閷閸閹閺閻閼閽閾閿闀闁闂闃闄闅闆闇闈闉闊闋椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(n[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������闌闍闎闏闐闑闒闓闔闕闖闗闘闙闚闛關闝闞闟闠闡闢闣闤闥闦闧闬闿阇阓阘阛阞阠阣阤阥阦阧阨阩阫阬阭阯阰阷阸阹阺阾陁陃陊陎陏陑陒陓陖陗�陘陙陚陜陝陞陠陣陥陦陫陭陮陯陰陱陳陸陹険陻陼陽陾陿隀隁隂隃隄隇隉隊辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(n[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="����������������������������������������������������������������隌階隑隒隓隕隖隚際隝隞隟隠隡隢隣隤隥隦隨隩險隫隬隭隮隯隱隲隴隵隷隸隺隻隿雂雃雈雊雋雐雑雓雔雖雗雘雙雚雛雜雝雞雟雡離難雤雥雦雧雫�雬雭雮雰雱雲雴雵雸雺電雼雽雿霂霃霅霊霋霌霐霑霒霔霕霗霘霙霚霛霝霟霠搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(n[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="����������������������������������������������������������������霡霢霣霤霥霦霧霨霩霫霬霮霯霱霳霴霵霶霷霺霻霼霽霿靀靁靂靃靄靅靆靇靈靉靊靋靌靍靎靏靐靑靔靕靗靘靚靜靝靟靣靤靦靧靨靪靫靬靭靮靯靰靱�靲靵靷靸靹靺靻靽靾靿鞀鞁鞂鞃鞄鞆鞇鞈鞉鞊鞌鞎鞏鞐鞓鞕鞖鞗鞙鞚鞛鞜鞝臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(n[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="����������������������������������������������������������������鞞鞟鞡鞢鞤鞥鞦鞧鞨鞩鞪鞬鞮鞰鞱鞳鞵鞶鞷鞸鞹鞺鞻鞼鞽鞾鞿韀韁韂韃韄韅韆韇韈韉韊韋韌韍韎韏韐韑韒韓韔韕韖韗韘韙韚韛韜韝韞韟韠韡韢韣�韤韥韨韮韯韰韱韲韴韷韸韹韺韻韼韽韾響頀頁頂頃頄項順頇須頉頊頋頌頍頎怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(n[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������頏預頑頒頓頔頕頖頗領頙頚頛頜頝頞頟頠頡頢頣頤頥頦頧頨頩頪頫頬頭頮頯頰頱頲頳頴頵頶頷頸頹頺頻頼頽頾頿顀顁顂顃顄顅顆顇顈顉顊顋題額�顎顏顐顑顒顓顔顕顖顗願顙顚顛顜顝類顟顠顡顢顣顤顥顦顧顨顩顪顫顬顭顮睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(n[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="����������������������������������������������������������������顯顰顱顲顳顴颋颎颒颕颙颣風颩颪颫颬颭颮颯颰颱颲颳颴颵颶颷颸颹颺颻颼颽颾颿飀飁飂飃飄飅飆飇飈飉飊飋飌飍飏飐飔飖飗飛飜飝飠飡飢飣飤�飥飦飩飪飫飬飭飮飯飰飱飲飳飴飵飶飷飸飹飺飻飼飽飾飿餀餁餂餃餄餅餆餇铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(n[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="����������������������������������������������������������������餈餉養餋餌餎餏餑餒餓餔餕餖餗餘餙餚餛餜餝餞餟餠餡餢餣餤餥餦餧館餩餪餫餬餭餯餰餱餲餳餴餵餶餷餸餹餺餻餼餽餾餿饀饁饂饃饄饅饆饇饈饉�饊饋饌饍饎饏饐饑饒饓饖饗饘饙饚饛饜饝饞饟饠饡饢饤饦饳饸饹饻饾馂馃馉稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(n[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="����������������������������������������������������������������馌馎馚馛馜馝馞馟馠馡馢馣馤馦馧馩馪馫馬馭馮馯馰馱馲馳馴馵馶馷馸馹馺馻馼馽馾馿駀駁駂駃駄駅駆駇駈駉駊駋駌駍駎駏駐駑駒駓駔駕駖駗駘�駙駚駛駜駝駞駟駠駡駢駣駤駥駦駧駨駩駪駫駬駭駮駯駰駱駲駳駴駵駶駷駸駹瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(n[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="����������������������������������������������������������������駺駻駼駽駾駿騀騁騂騃騄騅騆騇騈騉騊騋騌騍騎騏騐騑騒験騔騕騖騗騘騙騚騛騜騝騞騟騠騡騢騣騤騥騦騧騨騩騪騫騬騭騮騯騰騱騲騳騴騵騶騷騸�騹騺騻騼騽騾騿驀驁驂驃驄驅驆驇驈驉驊驋驌驍驎驏驐驑驒驓驔驕驖驗驘驙颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(n[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="����������������������������������������������������������������驚驛驜驝驞驟驠驡驢驣驤驥驦驧驨驩驪驫驲骃骉骍骎骔骕骙骦骩骪骫骬骭骮骯骲骳骴骵骹骻骽骾骿髃髄髆髇髈髉髊髍髎髏髐髒體髕髖髗髙髚髛髜�髝髞髠髢髣髤髥髧髨髩髪髬髮髰髱髲髳髴髵髶髷髸髺髼髽髾髿鬀鬁鬂鬄鬅鬆蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(n[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="����������������������������������������������������������������鬇鬉鬊鬋鬌鬍鬎鬐鬑鬒鬔鬕鬖鬗鬘鬙鬚鬛鬜鬝鬞鬠鬡鬢鬤鬥鬦鬧鬨鬩鬪鬫鬬鬭鬮鬰鬱鬳鬴鬵鬶鬷鬸鬹鬺鬽鬾鬿魀魆魊魋魌魎魐魒魓魕魖魗魘魙魚�魛魜魝魞魟魠魡魢魣魤魥魦魧魨魩魪魫魬魭魮魯魰魱魲魳魴魵魶魷魸魹魺魻簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(n[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="����������������������������������������������������������������魼魽魾魿鮀鮁鮂鮃鮄鮅鮆鮇鮈鮉鮊鮋鮌鮍鮎鮏鮐鮑鮒鮓鮔鮕鮖鮗鮘鮙鮚鮛鮜鮝鮞鮟鮠鮡鮢鮣鮤鮥鮦鮧鮨鮩鮪鮫鮬鮭鮮鮯鮰鮱鮲鮳鮴鮵鮶鮷鮸鮹鮺�鮻鮼鮽鮾鮿鯀鯁鯂鯃鯄鯅鯆鯇鯈鯉鯊鯋鯌鯍鯎鯏鯐鯑鯒鯓鯔鯕鯖鯗鯘鯙鯚鯛酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(n[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="����������������������������������������������������������������鯜鯝鯞鯟鯠鯡鯢鯣鯤鯥鯦鯧鯨鯩鯪鯫鯬鯭鯮鯯鯰鯱鯲鯳鯴鯵鯶鯷鯸鯹鯺鯻鯼鯽鯾鯿鰀鰁鰂鰃鰄鰅鰆鰇鰈鰉鰊鰋鰌鰍鰎鰏鰐鰑鰒鰓鰔鰕鰖鰗鰘鰙鰚�鰛鰜鰝鰞鰟鰠鰡鰢鰣鰤鰥鰦鰧鰨鰩鰪鰫鰬鰭鰮鰯鰰鰱鰲鰳鰴鰵鰶鰷鰸鰹鰺鰻觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(n[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="����������������������������������������������������������������鰼鰽鰾鰿鱀鱁鱂鱃鱄鱅鱆鱇鱈鱉鱊鱋鱌鱍鱎鱏鱐鱑鱒鱓鱔鱕鱖鱗鱘鱙鱚鱛鱜鱝鱞鱟鱠鱡鱢鱣鱤鱥鱦鱧鱨鱩鱪鱫鱬鱭鱮鱯鱰鱱鱲鱳鱴鱵鱶鱷鱸鱹鱺�鱻鱽鱾鲀鲃鲄鲉鲊鲌鲏鲓鲖鲗鲘鲙鲝鲪鲬鲯鲹鲾鲿鳀鳁鳂鳈鳉鳑鳒鳚鳛鳠鳡鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(n[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="����������������������������������������������������������������鳣鳤鳥鳦鳧鳨鳩鳪鳫鳬鳭鳮鳯鳰鳱鳲鳳鳴鳵鳶鳷鳸鳹鳺鳻鳼鳽鳾鳿鴀鴁鴂鴃鴄鴅鴆鴇鴈鴉鴊鴋鴌鴍鴎鴏鴐鴑鴒鴓鴔鴕鴖鴗鴘鴙鴚鴛鴜鴝鴞鴟鴠鴡�鴢鴣鴤鴥鴦鴧鴨鴩鴪鴫鴬鴭鴮鴯鴰鴱鴲鴳鴴鴵鴶鴷鴸鴹鴺鴻鴼鴽鴾鴿鵀鵁鵂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(n[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="����������������������������������������������������������������鵃鵄鵅鵆鵇鵈鵉鵊鵋鵌鵍鵎鵏鵐鵑鵒鵓鵔鵕鵖鵗鵘鵙鵚鵛鵜鵝鵞鵟鵠鵡鵢鵣鵤鵥鵦鵧鵨鵩鵪鵫鵬鵭鵮鵯鵰鵱鵲鵳鵴鵵鵶鵷鵸鵹鵺鵻鵼鵽鵾鵿鶀鶁�鶂鶃鶄鶅鶆鶇鶈鶉鶊鶋鶌鶍鶎鶏鶐鶑鶒鶓鶔鶕鶖鶗鶘鶙鶚鶛鶜鶝鶞鶟鶠鶡鶢�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(n[t[249][e]]=63744+e,o[63744+e]=t[249][e]);for(t[250]="����������������������������������������������������������������鶣鶤鶥鶦鶧鶨鶩鶪鶫鶬鶭鶮鶯鶰鶱鶲鶳鶴鶵鶶鶷鶸鶹鶺鶻鶼鶽鶾鶿鷀鷁鷂鷃鷄鷅鷆鷇鷈鷉鷊鷋鷌鷍鷎鷏鷐鷑鷒鷓鷔鷕鷖鷗鷘鷙鷚鷛鷜鷝鷞鷟鷠鷡�鷢鷣鷤鷥鷦鷧鷨鷩鷪鷫鷬鷭鷮鷯鷰鷱鷲鷳鷴鷵鷶鷷鷸鷹鷺鷻鷼鷽鷾鷿鸀鸁鸂�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(n[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="����������������������������������������������������������������鸃鸄鸅鸆鸇鸈鸉鸊鸋鸌鸍鸎鸏鸐鸑鸒鸓鸔鸕鸖鸗鸘鸙鸚鸛鸜鸝鸞鸤鸧鸮鸰鸴鸻鸼鹀鹍鹐鹒鹓鹔鹖鹙鹝鹟鹠鹡鹢鹥鹮鹯鹲鹴鹵鹶鹷鹸鹹鹺鹻鹼鹽麀�麁麃麄麅麆麉麊麌麍麎麏麐麑麔麕麖麗麘麙麚麛麜麞麠麡麢麣麤麥麧麨麩麪�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(n[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="����������������������������������������������������������������麫麬麭麮麯麰麱麲麳麵麶麷麹麺麼麿黀黁黂黃黅黆黇黈黊黋黌黐黒黓黕黖黗黙黚點黡黣黤黦黨黫黬黭黮黰黱黲黳黴黵黶黷黸黺黽黿鼀鼁鼂鼃鼄鼅�鼆鼇鼈鼉鼊鼌鼏鼑鼒鼔鼕鼖鼘鼚鼛鼜鼝鼞鼟鼡鼣鼤鼥鼦鼧鼨鼩鼪鼫鼭鼮鼰鼱�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(n[t[252][e]]=64512+e,o[64512+e]=t[252][e]);for(t[253]="����������������������������������������������������������������鼲鼳鼴鼵鼶鼸鼺鼼鼿齀齁齂齃齅齆齇齈齉齊齋齌齍齎齏齒齓齔齕齖齗齘齙齚齛齜齝齞齟齠齡齢齣齤齥齦齧齨齩齪齫齬齭齮齯齰齱齲齳齴齵齶齷齸�齹齺齻齼齽齾龁龂龍龎龏龐龑龒龓龔龕龖龗龘龜龝龞龡龢龣龤龥郎凉秊裏隣�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[253].length;++e)t[253][e].charCodeAt(0)!==65533&&(n[t[253][e]]=64768+e,o[64768+e]=t[253][e]);for(t[254]="����������������������������������������������������������������兀嗀﨎﨏﨑﨓﨔礼﨟蘒﨡﨣﨤﨧﨨﨩��������������������������������������������������������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[254].length;++e)t[254][e].charCodeAt(0)!==65533&&(n[t[254][e]]=65024+e,o[65024+e]=t[254][e]);return{enc:n,dec:o}}(),r[949]=function(){var o=[],n={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(n[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[129]="�����������������������������������������������������������������갂갃갅갆갋갌갍갎갏갘갞갟갡갢갣갥갦갧갨갩갪갫갮갲갳갴������갵갶갷갺갻갽갾갿걁걂걃걄걅걆걇걈걉걊걌걎걏걐걑걒걓걕������걖걗걙걚걛걝걞걟걠걡걢걣걤걥걦걧걨걩걪걫걬걭걮걯걲걳걵걶걹걻걼걽걾걿겂겇겈겍겎겏겑겒겓겕겖겗겘겙겚겛겞겢겣겤겥겦겧겫겭겮겱겲겳겴겵겶겷겺겾겿곀곂곃곅곆곇곉곊곋곍곎곏곐곑곒곓곔곖곘곙곚곛곜곝곞곟곢곣곥곦곩곫곭곮곲곴곷곸곹곺곻곾곿괁괂괃괅괇괈괉괊괋괎괐괒괓�".split(""),e=0;e!=t[129].length;++e)t[129][e].charCodeAt(0)!==65533&&(n[t[129][e]]=33024+e,o[33024+e]=t[129][e]);for(t[130]="�����������������������������������������������������������������괔괕괖괗괙괚괛괝괞괟괡괢괣괤괥괦괧괨괪괫괮괯괰괱괲괳������괶괷괹괺괻괽괾괿굀굁굂굃굆굈굊굋굌굍굎굏굑굒굓굕굖굗������굙굚굛굜굝굞굟굠굢굤굥굦굧굨굩굪굫굮굯굱굲굷굸굹굺굾궀궃궄궅궆궇궊궋궍궎궏궑궒궓궔궕궖궗궘궙궚궛궞궟궠궡궢궣궥궦궧궨궩궪궫궬궭궮궯궰궱궲궳궴궵궶궸궹궺궻궼궽궾궿귂귃귅귆귇귉귊귋귌귍귎귏귒귔귕귖귗귘귙귚귛귝귞귟귡귢귣귥귦귧귨귩귪귫귬귭귮귯귰귱귲귳귴귵귶귷�".split(""),e=0;e!=t[130].length;++e)t[130][e].charCodeAt(0)!==65533&&(n[t[130][e]]=33280+e,o[33280+e]=t[130][e]);for(t[131]="�����������������������������������������������������������������귺귻귽귾긂긃긄긅긆긇긊긌긎긏긐긑긒긓긕긖긗긘긙긚긛긜������긝긞긟긠긡긢긣긤긥긦긧긨긩긪긫긬긭긮긯긲긳긵긶긹긻긼������긽긾긿깂깄깇깈깉깋깏깑깒깓깕깗깘깙깚깛깞깢깣깤깦깧깪깫깭깮깯깱깲깳깴깵깶깷깺깾깿꺀꺁꺂꺃꺆꺇꺈꺉꺊꺋꺍꺎꺏꺐꺑꺒꺓꺔꺕꺖꺗꺘꺙꺚꺛꺜꺝꺞꺟꺠꺡꺢꺣꺤꺥꺦꺧꺨꺩꺪꺫꺬꺭꺮꺯꺰꺱꺲꺳꺴꺵꺶꺷꺸꺹꺺꺻꺿껁껂껃껅껆껇껈껉껊껋껎껒껓껔껕껖껗껚껛껝껞껟껠껡껢껣껤껥�".split(""),e=0;e!=t[131].length;++e)t[131][e].charCodeAt(0)!==65533&&(n[t[131][e]]=33536+e,o[33536+e]=t[131][e]);for(t[132]="�����������������������������������������������������������������껦껧껩껪껬껮껯껰껱껲껳껵껶껷껹껺껻껽껾껿꼀꼁꼂꼃꼄꼅������꼆꼉꼊꼋꼌꼎꼏꼑꼒꼓꼔꼕꼖꼗꼘꼙꼚꼛꼜꼝꼞꼟꼠꼡꼢꼣������꼤꼥꼦꼧꼨꼩꼪꼫꼮꼯꼱꼳꼵꼶꼷꼸꼹꼺꼻꼾꽀꽄꽅꽆꽇꽊꽋꽌꽍꽎꽏꽑꽒꽓꽔꽕꽖꽗꽘꽙꽚꽛꽞꽟꽠꽡꽢꽣꽦꽧꽨꽩꽪꽫꽬꽭꽮꽯꽰꽱꽲꽳꽴꽵꽶꽷꽸꽺꽻꽼꽽꽾꽿꾁꾂꾃꾅꾆꾇꾉꾊꾋꾌꾍꾎꾏꾒꾓꾔꾖꾗꾘꾙꾚꾛꾝꾞꾟꾠꾡꾢꾣꾤꾥꾦꾧꾨꾩꾪꾫꾬꾭꾮꾯꾰꾱꾲꾳꾴꾵꾶꾷꾺꾻꾽꾾�".split(""),e=0;e!=t[132].length;++e)t[132][e].charCodeAt(0)!==65533&&(n[t[132][e]]=33792+e,o[33792+e]=t[132][e]);for(t[133]="�����������������������������������������������������������������꾿꿁꿂꿃꿄꿅꿆꿊꿌꿏꿐꿑꿒꿓꿕꿖꿗꿘꿙꿚꿛꿝꿞꿟꿠꿡������꿢꿣꿤꿥꿦꿧꿪꿫꿬꿭꿮꿯꿲꿳꿵꿶꿷꿹꿺꿻꿼꿽꿾꿿뀂뀃������뀅뀆뀇뀈뀉뀊뀋뀍뀎뀏뀑뀒뀓뀕뀖뀗뀘뀙뀚뀛뀞뀟뀠뀡뀢뀣뀤뀥뀦뀧뀩뀪뀫뀬뀭뀮뀯뀰뀱뀲뀳뀴뀵뀶뀷뀸뀹뀺뀻뀼뀽뀾뀿끀끁끂끃끆끇끉끋끍끏끐끑끒끖끘끚끛끜끞끟끠끡끢끣끤끥끦끧끨끩끪끫끬끭끮끯끰끱끲끳끴끵끶끷끸끹끺끻끾끿낁낂낃낅낆낇낈낉낊낋낎낐낒낓낔낕낖낗낛낝낞낣낤�".split(""),e=0;e!=t[133].length;++e)t[133][e].charCodeAt(0)!==65533&&(n[t[133][e]]=34048+e,o[34048+e]=t[133][e]);for(t[134]="�����������������������������������������������������������������낥낦낧낪낰낲낶낷낹낺낻낽낾낿냀냁냂냃냆냊냋냌냍냎냏냒������냓냕냖냗냙냚냛냜냝냞냟냡냢냣냤냦냧냨냩냪냫냬냭냮냯냰������냱냲냳냴냵냶냷냸냹냺냻냼냽냾냿넀넁넂넃넄넅넆넇넊넍넎넏넑넔넕넖넗넚넞넟넠넡넢넦넧넩넪넫넭넮넯넰넱넲넳넶넺넻넼넽넾넿녂녃녅녆녇녉녊녋녌녍녎녏녒녓녖녗녙녚녛녝녞녟녡녢녣녤녥녦녧녨녩녪녫녬녭녮녯녰녱녲녳녴녵녶녷녺녻녽녾녿놁놃놄놅놆놇놊놌놎놏놐놑놕놖놗놙놚놛놝�".split(""),e=0;e!=t[134].length;++e)t[134][e].charCodeAt(0)!==65533&&(n[t[134][e]]=34304+e,o[34304+e]=t[134][e]);for(t[135]="�����������������������������������������������������������������놞놟놠놡놢놣놤놥놦놧놩놪놫놬놭놮놯놰놱놲놳놴놵놶놷놸������놹놺놻놼놽놾놿뇀뇁뇂뇃뇄뇅뇆뇇뇈뇉뇊뇋뇍뇎뇏뇑뇒뇓뇕������뇖뇗뇘뇙뇚뇛뇞뇠뇡뇢뇣뇤뇥뇦뇧뇪뇫뇭뇮뇯뇱뇲뇳뇴뇵뇶뇷뇸뇺뇼뇾뇿눀눁눂눃눆눇눉눊눍눎눏눐눑눒눓눖눘눚눛눜눝눞눟눡눢눣눤눥눦눧눨눩눪눫눬눭눮눯눰눱눲눳눵눶눷눸눹눺눻눽눾눿뉀뉁뉂뉃뉄뉅뉆뉇뉈뉉뉊뉋뉌뉍뉎뉏뉐뉑뉒뉓뉔뉕뉖뉗뉙뉚뉛뉝뉞뉟뉡뉢뉣뉤뉥뉦뉧뉪뉫뉬뉭뉮�".split(""),e=0;e!=t[135].length;++e)t[135][e].charCodeAt(0)!==65533&&(n[t[135][e]]=34560+e,o[34560+e]=t[135][e]);for(t[136]="�����������������������������������������������������������������뉯뉰뉱뉲뉳뉶뉷뉸뉹뉺뉻뉽뉾뉿늀늁늂늃늆늇늈늊늋늌늍늎������늏늒늓늕늖늗늛늜늝늞늟늢늤늧늨늩늫늭늮늯늱늲늳늵늶늷������늸늹늺늻늼늽늾늿닀닁닂닃닄닅닆닇닊닋닍닎닏닑닓닔닕닖닗닚닜닞닟닠닡닣닧닩닪닰닱닲닶닼닽닾댂댃댅댆댇댉댊댋댌댍댎댏댒댖댗댘댙댚댛댝댞댟댠댡댢댣댤댥댦댧댨댩댪댫댬댭댮댯댰댱댲댳댴댵댶댷댸댹댺댻댼댽댾댿덀덁덂덃덄덅덆덇덈덉덊덋덌덍덎덏덐덑덒덓덗덙덚덝덠덡덢덣�".split(""),e=0;e!=t[136].length;++e)t[136][e].charCodeAt(0)!==65533&&(n[t[136][e]]=34816+e,o[34816+e]=t[136][e]);for(t[137]="�����������������������������������������������������������������덦덨덪덬덭덯덲덳덵덶덷덹덺덻덼덽덾덿뎂뎆뎇뎈뎉뎊뎋뎍������뎎뎏뎑뎒뎓뎕뎖뎗뎘뎙뎚뎛뎜뎝뎞뎟뎢뎣뎤뎥뎦뎧뎩뎪뎫뎭������뎮뎯뎰뎱뎲뎳뎴뎵뎶뎷뎸뎹뎺뎻뎼뎽뎾뎿돀돁돂돃돆돇돉돊돍돏돑돒돓돖돘돚돜돞돟돡돢돣돥돦돧돩돪돫돬돭돮돯돰돱돲돳돴돵돶돷돸돹돺돻돽돾돿됀됁됂됃됄됅됆됇됈됉됊됋됌됍됎됏됑됒됓됔됕됖됗됙됚됛됝됞됟됡됢됣됤됥됦됧됪됬됭됮됯됰됱됲됳됵됶됷됸됹됺됻됼됽됾됿둀둁둂둃둄�".split(""),e=0;e!=t[137].length;++e)t[137][e].charCodeAt(0)!==65533&&(n[t[137][e]]=35072+e,o[35072+e]=t[137][e]);for(t[138]="�����������������������������������������������������������������둅둆둇둈둉둊둋둌둍둎둏둒둓둕둖둗둙둚둛둜둝둞둟둢둤둦������둧둨둩둪둫둭둮둯둰둱둲둳둴둵둶둷둸둹둺둻둼둽둾둿뒁뒂������뒃뒄뒅뒆뒇뒉뒊뒋뒌뒍뒎뒏뒐뒑뒒뒓뒔뒕뒖뒗뒘뒙뒚뒛뒜뒞뒟뒠뒡뒢뒣뒥뒦뒧뒩뒪뒫뒭뒮뒯뒰뒱뒲뒳뒴뒶뒸뒺뒻뒼뒽뒾뒿듁듂듃듅듆듇듉듊듋듌듍듎듏듑듒듓듔듖듗듘듙듚듛듞듟듡듢듥듧듨듩듪듫듮듰듲듳듴듵듶듷듹듺듻듼듽듾듿딀딁딂딃딄딅딆딇딈딉딊딋딌딍딎딏딐딑딒딓딖딗딙딚딝�".split(""),e=0;e!=t[138].length;++e)t[138][e].charCodeAt(0)!==65533&&(n[t[138][e]]=35328+e,o[35328+e]=t[138][e]);for(t[139]="�����������������������������������������������������������������딞딟딠딡딢딣딦딫딬딭딮딯딲딳딵딶딷딹딺딻딼딽딾딿땂땆������땇땈땉땊땎땏땑땒땓땕땖땗땘땙땚땛땞땢땣땤땥땦땧땨땩땪������땫땬땭땮땯땰땱땲땳땴땵땶땷땸땹땺땻땼땽땾땿떀떁떂떃떄떅떆떇떈떉떊떋떌떍떎떏떐떑떒떓떔떕떖떗떘떙떚떛떜떝떞떟떢떣떥떦떧떩떬떭떮떯떲떶떷떸떹떺떾떿뗁뗂뗃뗅뗆뗇뗈뗉뗊뗋뗎뗒뗓뗔뗕뗖뗗뗙뗚뗛뗜뗝뗞뗟뗠뗡뗢뗣뗤뗥뗦뗧뗨뗩뗪뗫뗭뗮뗯뗰뗱뗲뗳뗴뗵뗶뗷뗸뗹뗺뗻뗼뗽뗾뗿�".split(""),e=0;e!=t[139].length;++e)t[139][e].charCodeAt(0)!==65533&&(n[t[139][e]]=35584+e,o[35584+e]=t[139][e]);for(t[140]="�����������������������������������������������������������������똀똁똂똃똄똅똆똇똈똉똊똋똌똍똎똏똒똓똕똖똗똙똚똛똜똝������똞똟똠똡똢똣똤똦똧똨똩똪똫똭똮똯똰똱똲똳똵똶똷똸똹똺������똻똼똽똾똿뙀뙁뙂뙃뙄뙅뙆뙇뙉뙊뙋뙌뙍뙎뙏뙐뙑뙒뙓뙔뙕뙖뙗뙘뙙뙚뙛뙜뙝뙞뙟뙠뙡뙢뙣뙥뙦뙧뙩뙪뙫뙬뙭뙮뙯뙰뙱뙲뙳뙴뙵뙶뙷뙸뙹뙺뙻뙼뙽뙾뙿뚀뚁뚂뚃뚄뚅뚆뚇뚈뚉뚊뚋뚌뚍뚎뚏뚐뚑뚒뚓뚔뚕뚖뚗뚘뚙뚚뚛뚞뚟뚡뚢뚣뚥뚦뚧뚨뚩뚪뚭뚮뚯뚰뚲뚳뚴뚵뚶뚷뚸뚹뚺뚻뚼뚽뚾뚿뛀뛁뛂�".split(""),e=0;e!=t[140].length;++e)t[140][e].charCodeAt(0)!==65533&&(n[t[140][e]]=35840+e,o[35840+e]=t[140][e]);for(t[141]="�����������������������������������������������������������������뛃뛄뛅뛆뛇뛈뛉뛊뛋뛌뛍뛎뛏뛐뛑뛒뛓뛕뛖뛗뛘뛙뛚뛛뛜뛝������뛞뛟뛠뛡뛢뛣뛤뛥뛦뛧뛨뛩뛪뛫뛬뛭뛮뛯뛱뛲뛳뛵뛶뛷뛹뛺������뛻뛼뛽뛾뛿뜂뜃뜄뜆뜇뜈뜉뜊뜋뜌뜍뜎뜏뜐뜑뜒뜓뜔뜕뜖뜗뜘뜙뜚뜛뜜뜝뜞뜟뜠뜡뜢뜣뜤뜥뜦뜧뜪뜫뜭뜮뜱뜲뜳뜴뜵뜶뜷뜺뜼뜽뜾뜿띀띁띂띃띅띆띇띉띊띋띍띎띏띐띑띒띓띖띗띘띙띚띛띜띝띞띟띡띢띣띥띦띧띩띪띫띬띭띮띯띲띴띶띷띸띹띺띻띾띿랁랂랃랅랆랇랈랉랊랋랎랓랔랕랚랛랝랞�".split(""),e=0;e!=t[141].length;++e)t[141][e].charCodeAt(0)!==65533&&(n[t[141][e]]=36096+e,o[36096+e]=t[141][e]);for(t[142]="�����������������������������������������������������������������랟랡랢랣랤랥랦랧랪랮랯랰랱랲랳랶랷랹랺랻랼랽랾랿럀럁������럂럃럄럅럆럈럊럋럌럍럎럏럐럑럒럓럔럕럖럗럘럙럚럛럜럝������럞럟럠럡럢럣럤럥럦럧럨럩럪럫럮럯럱럲럳럵럶럷럸럹럺럻럾렂렃렄렅렆렊렋렍렎렏렑렒렓렔렕렖렗렚렜렞렟렠렡렢렣렦렧렩렪렫렭렮렯렰렱렲렳렶렺렻렼렽렾렿롁롂롃롅롆롇롈롉롊롋롌롍롎롏롐롒롔롕롖롗롘롙롚롛롞롟롡롢롣롥롦롧롨롩롪롫롮롰롲롳롴롵롶롷롹롺롻롽롾롿뢀뢁뢂뢃뢄�".split(""),e=0;e!=t[142].length;++e)t[142][e].charCodeAt(0)!==65533&&(n[t[142][e]]=36352+e,o[36352+e]=t[142][e]);for(t[143]="�����������������������������������������������������������������뢅뢆뢇뢈뢉뢊뢋뢌뢎뢏뢐뢑뢒뢓뢔뢕뢖뢗뢘뢙뢚뢛뢜뢝뢞뢟������뢠뢡뢢뢣뢤뢥뢦뢧뢩뢪뢫뢬뢭뢮뢯뢱뢲뢳뢵뢶뢷뢹뢺뢻뢼뢽������뢾뢿룂룄룆룇룈룉룊룋룍룎룏룑룒룓룕룖룗룘룙룚룛룜룞룠룢룣룤룥룦룧룪룫룭룮룯룱룲룳룴룵룶룷룺룼룾룿뤀뤁뤂뤃뤅뤆뤇뤈뤉뤊뤋뤌뤍뤎뤏뤐뤑뤒뤓뤔뤕뤖뤗뤙뤚뤛뤜뤝뤞뤟뤡뤢뤣뤤뤥뤦뤧뤨뤩뤪뤫뤬뤭뤮뤯뤰뤱뤲뤳뤴뤵뤶뤷뤸뤹뤺뤻뤾뤿륁륂륃륅륆륇륈륉륊륋륍륎륐륒륓륔륕륖륗�".split(""),e=0;e!=t[143].length;++e)t[143][e].charCodeAt(0)!==65533&&(n[t[143][e]]=36608+e,o[36608+e]=t[143][e]);for(t[144]="�����������������������������������������������������������������륚륛륝륞륟륡륢륣륤륥륦륧륪륬륮륯륰륱륲륳륶륷륹륺륻륽������륾륿릀릁릂릃릆릈릋릌릏릐릑릒릓릔릕릖릗릘릙릚릛릜릝릞������릟릠릡릢릣릤릥릦릧릨릩릪릫릮릯릱릲릳릵릶릷릸릹릺릻릾맀맂맃맄맅맆맇맊맋맍맓맔맕맖맗맚맜맟맠맢맦맧맩맪맫맭맮맯맰맱맲맳맶맻맼맽맾맿먂먃먄먅먆먇먉먊먋먌먍먎먏먐먑먒먓먔먖먗먘먙먚먛먜먝먞먟먠먡먢먣먤먥먦먧먨먩먪먫먬먭먮먯먰먱먲먳먴먵먶먷먺먻먽먾먿멁멃멄멅멆�".split(""),e=0;e!=t[144].length;++e)t[144][e].charCodeAt(0)!==65533&&(n[t[144][e]]=36864+e,o[36864+e]=t[144][e]);for(t[145]="�����������������������������������������������������������������멇멊멌멏멐멑멒멖멗멙멚멛멝멞멟멠멡멢멣멦멪멫멬멭멮멯������멲멳멵멶멷멹멺멻멼멽멾멿몀몁몂몆몈몉몊몋몍몎몏몐몑몒������몓몔몕몖몗몘몙몚몛몜몝몞몟몠몡몢몣몤몥몦몧몪몭몮몯몱몳몴몵몶몷몺몼몾몿뫀뫁뫂뫃뫅뫆뫇뫉뫊뫋뫌뫍뫎뫏뫐뫑뫒뫓뫔뫕뫖뫗뫚뫛뫜뫝뫞뫟뫠뫡뫢뫣뫤뫥뫦뫧뫨뫩뫪뫫뫬뫭뫮뫯뫰뫱뫲뫳뫴뫵뫶뫷뫸뫹뫺뫻뫽뫾뫿묁묂묃묅묆묇묈묉묊묋묌묎묐묒묓묔묕묖묗묙묚묛묝묞묟묡묢묣묤묥묦묧�".split(""),e=0;e!=t[145].length;++e)t[145][e].charCodeAt(0)!==65533&&(n[t[145][e]]=37120+e,o[37120+e]=t[145][e]);for(t[146]="�����������������������������������������������������������������묨묪묬묭묮묯묰묱묲묳묷묹묺묿뭀뭁뭂뭃뭆뭈뭊뭋뭌뭎뭑뭒������뭓뭕뭖뭗뭙뭚뭛뭜뭝뭞뭟뭠뭢뭤뭥뭦뭧뭨뭩뭪뭫뭭뭮뭯뭰뭱������뭲뭳뭴뭵뭶뭷뭸뭹뭺뭻뭼뭽뭾뭿뮀뮁뮂뮃뮄뮅뮆뮇뮉뮊뮋뮍뮎뮏뮑뮒뮓뮔뮕뮖뮗뮘뮙뮚뮛뮜뮝뮞뮟뮠뮡뮢뮣뮥뮦뮧뮩뮪뮫뮭뮮뮯뮰뮱뮲뮳뮵뮶뮸뮹뮺뮻뮼뮽뮾뮿믁믂믃믅믆믇믉믊믋믌믍믎믏믑믒믔믕믖믗믘믙믚믛믜믝믞믟믠믡믢믣믤믥믦믧믨믩믪믫믬믭믮믯믰믱믲믳믴믵믶믷믺믻믽믾밁�".split(""),e=0;e!=t[146].length;++e)t[146][e].charCodeAt(0)!==65533&&(n[t[146][e]]=37376+e,o[37376+e]=t[146][e]);for(t[147]="�����������������������������������������������������������������밃밄밅밆밇밊밎밐밒밓밙밚밠밡밢밣밦밨밪밫밬밮밯밲밳밵������밶밷밹밺밻밼밽밾밿뱂뱆뱇뱈뱊뱋뱎뱏뱑뱒뱓뱔뱕뱖뱗뱘뱙������뱚뱛뱜뱞뱟뱠뱡뱢뱣뱤뱥뱦뱧뱨뱩뱪뱫뱬뱭뱮뱯뱰뱱뱲뱳뱴뱵뱶뱷뱸뱹뱺뱻뱼뱽뱾뱿벀벁벂벃벆벇벉벊벍벏벐벑벒벓벖벘벛벜벝벞벟벢벣벥벦벩벪벫벬벭벮벯벲벶벷벸벹벺벻벾벿볁볂볃볅볆볇볈볉볊볋볌볎볒볓볔볖볗볙볚볛볝볞볟볠볡볢볣볤볥볦볧볨볩볪볫볬볭볮볯볰볱볲볳볷볹볺볻볽�".split(""),e=0;e!=t[147].length;++e)t[147][e].charCodeAt(0)!==65533&&(n[t[147][e]]=37632+e,o[37632+e]=t[147][e]);for(t[148]="�����������������������������������������������������������������볾볿봀봁봂봃봆봈봊봋봌봍봎봏봑봒봓봕봖봗봘봙봚봛봜봝������봞봟봠봡봢봣봥봦봧봨봩봪봫봭봮봯봰봱봲봳봴봵봶봷봸봹������봺봻봼봽봾봿뵁뵂뵃뵄뵅뵆뵇뵊뵋뵍뵎뵏뵑뵒뵓뵔뵕뵖뵗뵚뵛뵜뵝뵞뵟뵠뵡뵢뵣뵥뵦뵧뵩뵪뵫뵬뵭뵮뵯뵰뵱뵲뵳뵴뵵뵶뵷뵸뵹뵺뵻뵼뵽뵾뵿붂붃붅붆붋붌붍붎붏붒붔붖붗붘붛붝붞붟붠붡붢붣붥붦붧붨붩붪붫붬붭붮붯붱붲붳붴붵붶붷붹붺붻붼붽붾붿뷀뷁뷂뷃뷄뷅뷆뷇뷈뷉뷊뷋뷌뷍뷎뷏뷐뷑�".split(""),e=0;e!=t[148].length;++e)t[148][e].charCodeAt(0)!==65533&&(n[t[148][e]]=37888+e,o[37888+e]=t[148][e]);for(t[149]="�����������������������������������������������������������������뷒뷓뷖뷗뷙뷚뷛뷝뷞뷟뷠뷡뷢뷣뷤뷥뷦뷧뷨뷪뷫뷬뷭뷮뷯뷱������뷲뷳뷵뷶뷷뷹뷺뷻뷼뷽뷾뷿븁븂븄븆븇븈븉븊븋븎븏븑븒븓������븕븖븗븘븙븚븛븞븠븡븢븣븤븥븦븧븨븩븪븫븬븭븮븯븰븱븲븳븴븵븶븷븸븹븺븻븼븽븾븿빀빁빂빃빆빇빉빊빋빍빏빐빑빒빓빖빘빜빝빞빟빢빣빥빦빧빩빫빬빭빮빯빲빶빷빸빹빺빾빿뺁뺂뺃뺅뺆뺇뺈뺉뺊뺋뺎뺒뺓뺔뺕뺖뺗뺚뺛뺜뺝뺞뺟뺠뺡뺢뺣뺤뺥뺦뺧뺩뺪뺫뺬뺭뺮뺯뺰뺱뺲뺳뺴뺵뺶뺷�".split(""),e=0;e!=t[149].length;++e)t[149][e].charCodeAt(0)!==65533&&(n[t[149][e]]=38144+e,o[38144+e]=t[149][e]);for(t[150]="�����������������������������������������������������������������뺸뺹뺺뺻뺼뺽뺾뺿뻀뻁뻂뻃뻄뻅뻆뻇뻈뻉뻊뻋뻌뻍뻎뻏뻒뻓������뻕뻖뻙뻚뻛뻜뻝뻞뻟뻡뻢뻦뻧뻨뻩뻪뻫뻭뻮뻯뻰뻱뻲뻳뻴뻵������뻶뻷뻸뻹뻺뻻뻼뻽뻾뻿뼀뼂뼃뼄뼅뼆뼇뼊뼋뼌뼍뼎뼏뼐뼑뼒뼓뼔뼕뼖뼗뼚뼞뼟뼠뼡뼢뼣뼤뼥뼦뼧뼨뼩뼪뼫뼬뼭뼮뼯뼰뼱뼲뼳뼴뼵뼶뼷뼸뼹뼺뼻뼼뼽뼾뼿뽂뽃뽅뽆뽇뽉뽊뽋뽌뽍뽎뽏뽒뽓뽔뽖뽗뽘뽙뽚뽛뽜뽝뽞뽟뽠뽡뽢뽣뽤뽥뽦뽧뽨뽩뽪뽫뽬뽭뽮뽯뽰뽱뽲뽳뽴뽵뽶뽷뽸뽹뽺뽻뽼뽽뽾뽿뾀뾁뾂�".split(""),e=0;e!=t[150].length;++e)t[150][e].charCodeAt(0)!==65533&&(n[t[150][e]]=38400+e,o[38400+e]=t[150][e]);for(t[151]="�����������������������������������������������������������������뾃뾄뾅뾆뾇뾈뾉뾊뾋뾌뾍뾎뾏뾐뾑뾒뾓뾕뾖뾗뾘뾙뾚뾛뾜뾝������뾞뾟뾠뾡뾢뾣뾤뾥뾦뾧뾨뾩뾪뾫뾬뾭뾮뾯뾱뾲뾳뾴뾵뾶뾷뾸������뾹뾺뾻뾼뾽뾾뾿뿀뿁뿂뿃뿄뿆뿇뿈뿉뿊뿋뿎뿏뿑뿒뿓뿕뿖뿗뿘뿙뿚뿛뿝뿞뿠뿢뿣뿤뿥뿦뿧뿨뿩뿪뿫뿬뿭뿮뿯뿰뿱뿲뿳뿴뿵뿶뿷뿸뿹뿺뿻뿼뿽뿾뿿쀀쀁쀂쀃쀄쀅쀆쀇쀈쀉쀊쀋쀌쀍쀎쀏쀐쀑쀒쀓쀔쀕쀖쀗쀘쀙쀚쀛쀜쀝쀞쀟쀠쀡쀢쀣쀤쀥쀦쀧쀨쀩쀪쀫쀬쀭쀮쀯쀰쀱쀲쀳쀴쀵쀶쀷쀸쀹쀺쀻쀽쀾쀿�".split(""),e=0;e!=t[151].length;++e)t[151][e].charCodeAt(0)!==65533&&(n[t[151][e]]=38656+e,o[38656+e]=t[151][e]);for(t[152]="�����������������������������������������������������������������쁀쁁쁂쁃쁄쁅쁆쁇쁈쁉쁊쁋쁌쁍쁎쁏쁐쁒쁓쁔쁕쁖쁗쁙쁚쁛������쁝쁞쁟쁡쁢쁣쁤쁥쁦쁧쁪쁫쁬쁭쁮쁯쁰쁱쁲쁳쁴쁵쁶쁷쁸쁹������쁺쁻쁼쁽쁾쁿삀삁삂삃삄삅삆삇삈삉삊삋삌삍삎삏삒삓삕삖삗삙삚삛삜삝삞삟삢삤삦삧삨삩삪삫삮삱삲삷삸삹삺삻삾샂샃샄샆샇샊샋샍샎샏샑샒샓샔샕샖샗샚샞샟샠샡샢샣샦샧샩샪샫샭샮샯샰샱샲샳샶샸샺샻샼샽샾샿섁섂섃섅섆섇섉섊섋섌섍섎섏섑섒섓섔섖섗섘섙섚섛섡섢섥섨섩섪섫섮�".split(""),e=0;e!=t[152].length;++e)t[152][e].charCodeAt(0)!==65533&&(n[t[152][e]]=38912+e,o[38912+e]=t[152][e]);for(t[153]="�����������������������������������������������������������������섲섳섴섵섷섺섻섽섾섿셁셂셃셄셅셆셇셊셎셏셐셑셒셓셖셗������셙셚셛셝셞셟셠셡셢셣셦셪셫셬셭셮셯셱셲셳셵셶셷셹셺셻������셼셽셾셿솀솁솂솃솄솆솇솈솉솊솋솏솑솒솓솕솗솘솙솚솛솞솠솢솣솤솦솧솪솫솭솮솯솱솲솳솴솵솶솷솸솹솺솻솼솾솿쇀쇁쇂쇃쇅쇆쇇쇉쇊쇋쇍쇎쇏쇐쇑쇒쇓쇕쇖쇙쇚쇛쇜쇝쇞쇟쇡쇢쇣쇥쇦쇧쇩쇪쇫쇬쇭쇮쇯쇲쇴쇵쇶쇷쇸쇹쇺쇻쇾쇿숁숂숃숅숆숇숈숉숊숋숎숐숒숓숔숕숖숗숚숛숝숞숡숢숣�".split(""),e=0;e!=t[153].length;++e)t[153][e].charCodeAt(0)!==65533&&(n[t[153][e]]=39168+e,o[39168+e]=t[153][e]);for(t[154]="�����������������������������������������������������������������숤숥숦숧숪숬숮숰숳숵숶숷숸숹숺숻숼숽숾숿쉀쉁쉂쉃쉄쉅������쉆쉇쉉쉊쉋쉌쉍쉎쉏쉒쉓쉕쉖쉗쉙쉚쉛쉜쉝쉞쉟쉡쉢쉣쉤쉦������쉧쉨쉩쉪쉫쉮쉯쉱쉲쉳쉵쉶쉷쉸쉹쉺쉻쉾슀슂슃슄슅슆슇슊슋슌슍슎슏슑슒슓슔슕슖슗슙슚슜슞슟슠슡슢슣슦슧슩슪슫슮슯슰슱슲슳슶슸슺슻슼슽슾슿싀싁싂싃싄싅싆싇싈싉싊싋싌싍싎싏싐싑싒싓싔싕싖싗싘싙싚싛싞싟싡싢싥싦싧싨싩싪싮싰싲싳싴싵싷싺싽싾싿쌁쌂쌃쌄쌅쌆쌇쌊쌋쌎쌏�".split(""),e=0;e!=t[154].length;++e)t[154][e].charCodeAt(0)!==65533&&(n[t[154][e]]=39424+e,o[39424+e]=t[154][e]);for(t[155]="�����������������������������������������������������������������쌐쌑쌒쌖쌗쌙쌚쌛쌝쌞쌟쌠쌡쌢쌣쌦쌧쌪쌫쌬쌭쌮쌯쌰쌱쌲������쌳쌴쌵쌶쌷쌸쌹쌺쌻쌼쌽쌾쌿썀썁썂썃썄썆썇썈썉썊썋썌썍������썎썏썐썑썒썓썔썕썖썗썘썙썚썛썜썝썞썟썠썡썢썣썤썥썦썧썪썫썭썮썯썱썳썴썵썶썷썺썻썾썿쎀쎁쎂쎃쎅쎆쎇쎉쎊쎋쎍쎎쎏쎐쎑쎒쎓쎔쎕쎖쎗쎘쎙쎚쎛쎜쎝쎞쎟쎠쎡쎢쎣쎤쎥쎦쎧쎨쎩쎪쎫쎬쎭쎮쎯쎰쎱쎲쎳쎴쎵쎶쎷쎸쎹쎺쎻쎼쎽쎾쎿쏁쏂쏃쏄쏅쏆쏇쏈쏉쏊쏋쏌쏍쏎쏏쏐쏑쏒쏓쏔쏕쏖쏗쏚�".split(""),e=0;e!=t[155].length;++e)t[155][e].charCodeAt(0)!==65533&&(n[t[155][e]]=39680+e,o[39680+e]=t[155][e]);for(t[156]="�����������������������������������������������������������������쏛쏝쏞쏡쏣쏤쏥쏦쏧쏪쏫쏬쏮쏯쏰쏱쏲쏳쏶쏷쏹쏺쏻쏼쏽쏾������쏿쐀쐁쐂쐃쐄쐅쐆쐇쐉쐊쐋쐌쐍쐎쐏쐑쐒쐓쐔쐕쐖쐗쐘쐙쐚������쐛쐜쐝쐞쐟쐠쐡쐢쐣쐥쐦쐧쐨쐩쐪쐫쐭쐮쐯쐱쐲쐳쐵쐶쐷쐸쐹쐺쐻쐾쐿쑀쑁쑂쑃쑄쑅쑆쑇쑉쑊쑋쑌쑍쑎쑏쑐쑑쑒쑓쑔쑕쑖쑗쑘쑙쑚쑛쑜쑝쑞쑟쑠쑡쑢쑣쑦쑧쑩쑪쑫쑭쑮쑯쑰쑱쑲쑳쑶쑷쑸쑺쑻쑼쑽쑾쑿쒁쒂쒃쒄쒅쒆쒇쒈쒉쒊쒋쒌쒍쒎쒏쒐쒑쒒쒓쒕쒖쒗쒘쒙쒚쒛쒝쒞쒟쒠쒡쒢쒣쒤쒥쒦쒧쒨쒩�".split(""),e=0;e!=t[156].length;++e)t[156][e].charCodeAt(0)!==65533&&(n[t[156][e]]=39936+e,o[39936+e]=t[156][e]);for(t[157]="�����������������������������������������������������������������쒪쒫쒬쒭쒮쒯쒰쒱쒲쒳쒴쒵쒶쒷쒹쒺쒻쒽쒾쒿쓀쓁쓂쓃쓄쓅������쓆쓇쓈쓉쓊쓋쓌쓍쓎쓏쓐쓑쓒쓓쓔쓕쓖쓗쓘쓙쓚쓛쓜쓝쓞쓟������쓠쓡쓢쓣쓤쓥쓦쓧쓨쓪쓫쓬쓭쓮쓯쓲쓳쓵쓶쓷쓹쓻쓼쓽쓾씂씃씄씅씆씇씈씉씊씋씍씎씏씑씒씓씕씖씗씘씙씚씛씝씞씟씠씡씢씣씤씥씦씧씪씫씭씮씯씱씲씳씴씵씶씷씺씼씾씿앀앁앂앃앆앇앋앏앐앑앒앖앚앛앜앟앢앣앥앦앧앩앪앫앬앭앮앯앲앶앷앸앹앺앻앾앿얁얂얃얅얆얈얉얊얋얎얐얒얓얔�".split(""),e=0;e!=t[157].length;++e)t[157][e].charCodeAt(0)!==65533&&(n[t[157][e]]=40192+e,o[40192+e]=t[157][e]);for(t[158]="�����������������������������������������������������������������얖얙얚얛얝얞얟얡얢얣얤얥얦얧얨얪얫얬얭얮얯얰얱얲얳얶������얷얺얿엀엁엂엃엋엍엏엒엓엕엖엗엙엚엛엜엝엞엟엢엤엦엧������엨엩엪엫엯엱엲엳엵엸엹엺엻옂옃옄옉옊옋옍옎옏옑옒옓옔옕옖옗옚옝옞옟옠옡옢옣옦옧옩옪옫옯옱옲옶옸옺옼옽옾옿왂왃왅왆왇왉왊왋왌왍왎왏왒왖왗왘왙왚왛왞왟왡왢왣왤왥왦왧왨왩왪왫왭왮왰왲왳왴왵왶왷왺왻왽왾왿욁욂욃욄욅욆욇욊욌욎욏욐욑욒욓욖욗욙욚욛욝욞욟욠욡욢욣욦�".split(""),e=0;e!=t[158].length;++e)t[158][e].charCodeAt(0)!==65533&&(n[t[158][e]]=40448+e,o[40448+e]=t[158][e]);for(t[159]="�����������������������������������������������������������������욨욪욫욬욭욮욯욲욳욵욶욷욻욼욽욾욿웂웄웆웇웈웉웊웋웎������웏웑웒웓웕웖웗웘웙웚웛웞웟웢웣웤웥웦웧웪웫웭웮웯웱웲������웳웴웵웶웷웺웻웼웾웿윀윁윂윃윆윇윉윊윋윍윎윏윐윑윒윓윖윘윚윛윜윝윞윟윢윣윥윦윧윩윪윫윬윭윮윯윲윴윶윸윹윺윻윾윿읁읂읃읅읆읇읈읉읋읎읐읙읚읛읝읞읟읡읢읣읤읥읦읧읩읪읬읭읮읯읰읱읲읳읶읷읹읺읻읿잀잁잂잆잋잌잍잏잒잓잕잙잛잜잝잞잟잢잧잨잩잪잫잮잯잱잲잳잵잶잷�".split(""),e=0;e!=t[159].length;++e)t[159][e].charCodeAt(0)!==65533&&(n[t[159][e]]=40704+e,o[40704+e]=t[159][e]);for(t[160]="�����������������������������������������������������������������잸잹잺잻잾쟂쟃쟄쟅쟆쟇쟊쟋쟍쟏쟑쟒쟓쟔쟕쟖쟗쟙쟚쟛쟜������쟞쟟쟠쟡쟢쟣쟥쟦쟧쟩쟪쟫쟭쟮쟯쟰쟱쟲쟳쟴쟵쟶쟷쟸쟹쟺������쟻쟼쟽쟾쟿젂젃젅젆젇젉젋젌젍젎젏젒젔젗젘젙젚젛젞젟젡젢젣젥젦젧젨젩젪젫젮젰젲젳젴젵젶젷젹젺젻젽젾젿졁졂졃졄졅졆졇졊졋졎졏졐졑졒졓졕졖졗졘졙졚졛졜졝졞졟졠졡졢졣졤졥졦졧졨졩졪졫졬졭졮졯졲졳졵졶졷졹졻졼졽졾졿좂좄좈좉좊좎좏좐좑좒좓좕좖좗좘좙좚좛좜좞좠좢좣좤�".split(""),e=0;e!=t[160].length;++e)t[160][e].charCodeAt(0)!==65533&&(n[t[160][e]]=40960+e,o[40960+e]=t[160][e]);for(t[161]="�����������������������������������������������������������������좥좦좧좩좪좫좬좭좮좯좰좱좲좳좴좵좶좷좸좹좺좻좾좿죀죁������죂죃죅죆죇죉죊죋죍죎죏죐죑죒죓죖죘죚죛죜죝죞죟죢죣죥������죦죧죨죩죪죫죬죭죮죯죰죱죲죳죴죶죷죸죹죺죻죾죿줁줂줃줇줈줉줊줋줎 、。·‥…¨〃―∥\∼‘’“”〔〕〈〉《》「」『』【】±×÷≠≤≥∞∴°′″℃Å¢£¥♂♀∠⊥⌒∂∇≡≒§※☆★○●◎◇◆□■△▲▽▼→←↑↓↔〓≪≫√∽∝∵∫∬∈∋⊆⊇⊂⊃∪∩∧∨¬�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(n[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="�����������������������������������������������������������������줐줒줓줔줕줖줗줙줚줛줜줝줞줟줠줡줢줣줤줥줦줧줨줩줪줫������줭줮줯줰줱줲줳줵줶줷줸줹줺줻줼줽줾줿쥀쥁쥂쥃쥄쥅쥆쥇������쥈쥉쥊쥋쥌쥍쥎쥏쥒쥓쥕쥖쥗쥙쥚쥛쥜쥝쥞쥟쥢쥤쥥쥦쥧쥨쥩쥪쥫쥭쥮쥯⇒⇔∀∃´~ˇ˘˝˚˙¸˛¡¿ː∮∑∏¤℉‰◁◀▷▶♤♠♡♥♧♣⊙◈▣◐◑▒▤▥▨▧▦▩♨☏☎☜☞¶†‡↕↗↙↖↘♭♩♪♬㉿㈜№㏇™㏂㏘℡€®������������������������".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(n[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������쥱쥲쥳쥵쥶쥷쥸쥹쥺쥻쥽쥾쥿즀즁즂즃즄즅즆즇즊즋즍즎즏������즑즒즓즔즕즖즗즚즜즞즟즠즡즢즣즤즥즦즧즨즩즪즫즬즭즮������즯즰즱즲즳즴즵즶즷즸즹즺즻즼즽즾즿짂짃짅짆짉짋짌짍짎짏짒짔짗짘짛!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[₩]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(n[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������짞짟짡짣짥짦짨짩짪짫짮짲짳짴짵짶짷짺짻짽짾짿쨁쨂쨃쨄������쨅쨆쨇쨊쨎쨏쨐쨑쨒쨓쨕쨖쨗쨙쨚쨛쨜쨝쨞쨟쨠쨡쨢쨣쨤쨥������쨦쨧쨨쨪쨫쨬쨭쨮쨯쨰쨱쨲쨳쨴쨵쨶쨷쨸쨹쨺쨻쨼쨽쨾쨿쩀쩁쩂쩃쩄쩅쩆ㄱㄲㄳㄴㄵㄶㄷㄸㄹㄺㄻㄼㄽㄾㄿㅀㅁㅂㅃㅄㅅㅆㅇㅈㅉㅊㅋㅌㅍㅎㅏㅐㅑㅒㅓㅔㅕㅖㅗㅘㅙㅚㅛㅜㅝㅞㅟㅠㅡㅢㅣㅤㅥㅦㅧㅨㅩㅪㅫㅬㅭㅮㅯㅰㅱㅲㅳㅴㅵㅶㅷㅸㅹㅺㅻㅼㅽㅾㅿㆀㆁㆂㆃㆄㆅㆆㆇㆈㆉㆊㆋㆌㆍㆎ�".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(n[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������쩇쩈쩉쩊쩋쩎쩏쩑쩒쩓쩕쩖쩗쩘쩙쩚쩛쩞쩢쩣쩤쩥쩦쩧쩩쩪������쩫쩬쩭쩮쩯쩰쩱쩲쩳쩴쩵쩶쩷쩸쩹쩺쩻쩼쩾쩿쪀쪁쪂쪃쪅쪆������쪇쪈쪉쪊쪋쪌쪍쪎쪏쪐쪑쪒쪓쪔쪕쪖쪗쪙쪚쪛쪜쪝쪞쪟쪠쪡쪢쪣쪤쪥쪦쪧ⅰⅱⅲⅳⅴⅵⅶⅷⅸⅹ�����ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ�������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω�������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(n[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������쪨쪩쪪쪫쪬쪭쪮쪯쪰쪱쪲쪳쪴쪵쪶쪷쪸쪹쪺쪻쪾쪿쫁쫂쫃쫅������쫆쫇쫈쫉쫊쫋쫎쫐쫒쫔쫕쫖쫗쫚쫛쫜쫝쫞쫟쫡쫢쫣쫤쫥쫦쫧������쫨쫩쫪쫫쫭쫮쫯쫰쫱쫲쫳쫵쫶쫷쫸쫹쫺쫻쫼쫽쫾쫿쬀쬁쬂쬃쬄쬅쬆쬇쬉쬊─│┌┐┘└├┬┤┴┼━┃┏┓┛┗┣┳┫┻╋┠┯┨┷┿┝┰┥┸╂┒┑┚┙┖┕┎┍┞┟┡┢┦┧┩┪┭┮┱┲┵┶┹┺┽┾╀╁╃╄╅╆╇╈╉╊���������������������������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(n[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������쬋쬌쬍쬎쬏쬑쬒쬓쬕쬖쬗쬙쬚쬛쬜쬝쬞쬟쬢쬣쬤쬥쬦쬧쬨쬩������쬪쬫쬬쬭쬮쬯쬰쬱쬲쬳쬴쬵쬶쬷쬸쬹쬺쬻쬼쬽쬾쬿쭀쭂쭃쭄������쭅쭆쭇쭊쭋쭍쭎쭏쭑쭒쭓쭔쭕쭖쭗쭚쭛쭜쭞쭟쭠쭡쭢쭣쭥쭦쭧쭨쭩쭪쭫쭬㎕㎖㎗ℓ㎘㏄㎣㎤㎥㎦㎙㎚㎛㎜㎝㎞㎟㎠㎡㎢㏊㎍㎎㎏㏏㎈㎉㏈㎧㎨㎰㎱㎲㎳㎴㎵㎶㎷㎸㎹㎀㎁㎂㎃㎄㎺㎻㎼㎽㎾㎿㎐㎑㎒㎓㎔Ω㏀㏁㎊㎋㎌㏖㏅㎭㎮㎯㏛㎩㎪㎫㎬㏝㏐㏓㏃㏉㏜㏆����������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(n[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="�����������������������������������������������������������������쭭쭮쭯쭰쭱쭲쭳쭴쭵쭶쭷쭺쭻쭼쭽쭾쭿쮀쮁쮂쮃쮄쮅쮆쮇쮈������쮉쮊쮋쮌쮍쮎쮏쮐쮑쮒쮓쮔쮕쮖쮗쮘쮙쮚쮛쮝쮞쮟쮠쮡쮢쮣������쮤쮥쮦쮧쮨쮩쮪쮫쮬쮭쮮쮯쮰쮱쮲쮳쮴쮵쮶쮷쮹쮺쮻쮼쮽쮾쮿쯀쯁쯂쯃쯄ÆÐªĦ�IJ�ĿŁØŒºÞŦŊ�㉠㉡㉢㉣㉤㉥㉦㉧㉨㉩㉪㉫㉬㉭㉮㉯㉰㉱㉲㉳㉴㉵㉶㉷㉸㉹㉺㉻ⓐⓑⓒⓓⓔⓕⓖⓗⓘⓙⓚⓛⓜⓝⓞⓟⓠⓡⓢⓣⓤⓥⓦⓧⓨⓩ①②③④⑤⑥⑦⑧⑨⑩⑪⑫⑬⑭⑮½⅓⅔¼¾⅛⅜⅝⅞�".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(n[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="�����������������������������������������������������������������쯅쯆쯇쯈쯉쯊쯋쯌쯍쯎쯏쯐쯑쯒쯓쯕쯖쯗쯘쯙쯚쯛쯜쯝쯞쯟������쯠쯡쯢쯣쯥쯦쯨쯪쯫쯬쯭쯮쯯쯰쯱쯲쯳쯴쯵쯶쯷쯸쯹쯺쯻쯼������쯽쯾쯿찀찁찂찃찄찅찆찇찈찉찊찋찎찏찑찒찓찕찖찗찘찙찚찛찞찟찠찣찤æđðħıijĸŀłøœßþŧŋʼn㈀㈁㈂㈃㈄㈅㈆㈇㈈㈉㈊㈋㈌㈍㈎㈏㈐㈑㈒㈓㈔㈕㈖㈗㈘㈙㈚㈛⒜⒝⒞⒟⒠⒡⒢⒣⒤⒥⒦⒧⒨⒩⒪⒫⒬⒭⒮⒯⒰⒱⒲⒳⒴⒵⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂¹²³⁴ⁿ₁₂₃₄�".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(n[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="�����������������������������������������������������������������찥찦찪찫찭찯찱찲찳찴찵찶찷찺찿챀챁챂챃챆챇챉챊챋챍챎������챏챐챑챒챓챖챚챛챜챝챞챟챡챢챣챥챧챩챪챫챬챭챮챯챱챲������챳챴챶챷챸챹챺챻챼챽챾챿첀첁첂첃첄첅첆첇첈첉첊첋첌첍첎첏첐첑첒첓ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(n[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="�����������������������������������������������������������������첔첕첖첗첚첛첝첞첟첡첢첣첤첥첦첧첪첮첯첰첱첲첳첶첷첹������첺첻첽첾첿쳀쳁쳂쳃쳆쳈쳊쳋쳌쳍쳎쳏쳑쳒쳓쳕쳖쳗쳘쳙쳚������쳛쳜쳝쳞쳟쳠쳡쳢쳣쳥쳦쳧쳨쳩쳪쳫쳭쳮쳯쳱쳲쳳쳴쳵쳶쳷쳸쳹쳺쳻쳼쳽ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(n[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="�����������������������������������������������������������������쳾쳿촀촂촃촄촅촆촇촊촋촍촎촏촑촒촓촔촕촖촗촚촜촞촟촠������촡촢촣촥촦촧촩촪촫촭촮촯촰촱촲촳촴촵촶촷촸촺촻촼촽촾������촿쵀쵁쵂쵃쵄쵅쵆쵇쵈쵉쵊쵋쵌쵍쵎쵏쵐쵑쵒쵓쵔쵕쵖쵗쵘쵙쵚쵛쵝쵞쵟АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(n[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="�����������������������������������������������������������������쵡쵢쵣쵥쵦쵧쵨쵩쵪쵫쵮쵰쵲쵳쵴쵵쵶쵷쵹쵺쵻쵼쵽쵾쵿춀������춁춂춃춄춅춆춇춉춊춋춌춍춎춏춐춑춒춓춖춗춙춚춛춝춞춟������춠춡춢춣춦춨춪춫춬춭춮춯춱춲춳춴춵춶춷춸춹춺춻춼춽춾춿췀췁췂췃췅�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(n[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="�����������������������������������������������������������������췆췇췈췉췊췋췍췎췏췑췒췓췔췕췖췗췘췙췚췛췜췝췞췟췠췡������췢췣췤췥췦췧췩췪췫췭췮췯췱췲췳췴췵췶췷췺췼췾췿츀츁츂������츃츅츆츇츉츊츋츍츎츏츐츑츒츓츕츖츗츘츚츛츜츝츞츟츢츣츥츦츧츩츪츫�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(n[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="�����������������������������������������������������������������츬츭츮츯츲츴츶츷츸츹츺츻츼츽츾츿칀칁칂칃칄칅칆칇칈칉������칊칋칌칍칎칏칐칑칒칓칔칕칖칗칚칛칝칞칢칣칤칥칦칧칪칬������칮칯칰칱칲칳칶칷칹칺칻칽칾칿캀캁캂캃캆캈캊캋캌캍캎캏캒캓캕캖캗캙�����������������������������������������������������������������������������������������������".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(n[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="�����������������������������������������������������������������캚캛캜캝캞캟캢캦캧캨캩캪캫캮캯캰캱캲캳캴캵캶캷캸캹캺������캻캼캽캾캿컀컂컃컄컅컆컇컈컉컊컋컌컍컎컏컐컑컒컓컔컕������컖컗컘컙컚컛컜컝컞컟컠컡컢컣컦컧컩컪컭컮컯컰컱컲컳컶컺컻컼컽컾컿가각간갇갈갉갊감갑값갓갔강갖갗같갚갛개객갠갤갬갭갯갰갱갸갹갼걀걋걍걔걘걜거걱건걷걸걺검겁것겄겅겆겉겊겋게겐겔겜겝겟겠겡겨격겪견겯결겸겹겻겼경곁계곈곌곕곗고곡곤곧골곪곬곯곰곱곳공곶과곽관괄괆�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(n[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="�����������������������������������������������������������������켂켃켅켆켇켉켊켋켌켍켎켏켒켔켖켗켘켙켚켛켝켞켟켡켢켣������켥켦켧켨켩켪켫켮켲켳켴켵켶켷켹켺켻켼켽켾켿콀콁콂콃콄������콅콆콇콈콉콊콋콌콍콎콏콐콑콒콓콖콗콙콚콛콝콞콟콠콡콢콣콦콨콪콫콬괌괍괏광괘괜괠괩괬괭괴괵괸괼굄굅굇굉교굔굘굡굣구국군굳굴굵굶굻굼굽굿궁궂궈궉권궐궜궝궤궷귀귁귄귈귐귑귓규균귤그극근귿글긁금급긋긍긔기긱긴긷길긺김깁깃깅깆깊까깍깎깐깔깖깜깝깟깠깡깥깨깩깬깰깸�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(n[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="�����������������������������������������������������������������콭콮콯콲콳콵콶콷콹콺콻콼콽콾콿쾁쾂쾃쾄쾆쾇쾈쾉쾊쾋쾍������쾎쾏쾐쾑쾒쾓쾔쾕쾖쾗쾘쾙쾚쾛쾜쾝쾞쾟쾠쾢쾣쾤쾥쾦쾧쾩������쾪쾫쾬쾭쾮쾯쾱쾲쾳쾴쾵쾶쾷쾸쾹쾺쾻쾼쾽쾾쾿쿀쿁쿂쿃쿅쿆쿇쿈쿉쿊쿋깹깻깼깽꺄꺅꺌꺼꺽꺾껀껄껌껍껏껐껑께껙껜껨껫껭껴껸껼꼇꼈꼍꼐꼬꼭꼰꼲꼴꼼꼽꼿꽁꽂꽃꽈꽉꽐꽜꽝꽤꽥꽹꾀꾄꾈꾐꾑꾕꾜꾸꾹꾼꿀꿇꿈꿉꿋꿍꿎꿔꿜꿨꿩꿰꿱꿴꿸뀀뀁뀄뀌뀐뀔뀜뀝뀨끄끅끈끊끌끎끓끔끕끗끙�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(n[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="�����������������������������������������������������������������쿌쿍쿎쿏쿐쿑쿒쿓쿔쿕쿖쿗쿘쿙쿚쿛쿜쿝쿞쿟쿢쿣쿥쿦쿧쿩������쿪쿫쿬쿭쿮쿯쿲쿴쿶쿷쿸쿹쿺쿻쿽쿾쿿퀁퀂퀃퀅퀆퀇퀈퀉퀊������퀋퀌퀍퀎퀏퀐퀒퀓퀔퀕퀖퀗퀙퀚퀛퀜퀝퀞퀟퀠퀡퀢퀣퀤퀥퀦퀧퀨퀩퀪퀫퀬끝끼끽낀낄낌낍낏낑나낙낚난낟날낡낢남납낫났낭낮낯낱낳내낵낸낼냄냅냇냈냉냐냑냔냘냠냥너넉넋넌널넒넓넘넙넛넜넝넣네넥넨넬넴넵넷넸넹녀녁년녈념녑녔녕녘녜녠노녹논놀놂놈놉놋농높놓놔놘놜놨뇌뇐뇔뇜뇝�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(n[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="�����������������������������������������������������������������퀮퀯퀰퀱퀲퀳퀶퀷퀹퀺퀻퀽퀾퀿큀큁큂큃큆큈큊큋큌큍큎큏������큑큒큓큕큖큗큙큚큛큜큝큞큟큡큢큣큤큥큦큧큨큩큪큫큮큯������큱큲큳큵큶큷큸큹큺큻큾큿킀킂킃킄킅킆킇킈킉킊킋킌킍킎킏킐킑킒킓킔뇟뇨뇩뇬뇰뇹뇻뇽누눅눈눋눌눔눕눗눙눠눴눼뉘뉜뉠뉨뉩뉴뉵뉼늄늅늉느늑는늘늙늚늠늡늣능늦늪늬늰늴니닉닌닐닒님닙닛닝닢다닥닦단닫달닭닮닯닳담답닷닸당닺닻닿대댁댄댈댐댑댓댔댕댜더덕덖던덛덜덞덟덤덥�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(n[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="�����������������������������������������������������������������킕킖킗킘킙킚킛킜킝킞킟킠킡킢킣킦킧킩킪킫킭킮킯킰킱킲������킳킶킸킺킻킼킽킾킿탂탃탅탆탇탊탋탌탍탎탏탒탖탗탘탙탚������탛탞탟탡탢탣탥탦탧탨탩탪탫탮탲탳탴탵탶탷탹탺탻탼탽탾탿턀턁턂턃턄덧덩덫덮데덱덴델뎀뎁뎃뎄뎅뎌뎐뎔뎠뎡뎨뎬도독돈돋돌돎돐돔돕돗동돛돝돠돤돨돼됐되된될됨됩됫됴두둑둔둘둠둡둣둥둬뒀뒈뒝뒤뒨뒬뒵뒷뒹듀듄듈듐듕드득든듣들듦듬듭듯등듸디딕딘딛딜딤딥딧딨딩딪따딱딴딸�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(n[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="�����������������������������������������������������������������턅턆턇턈턉턊턋턌턎턏턐턑턒턓턔턕턖턗턘턙턚턛턜턝턞턟������턠턡턢턣턤턥턦턧턨턩턪턫턬턭턮턯턲턳턵턶턷턹턻턼턽턾������턿텂텆텇텈텉텊텋텎텏텑텒텓텕텖텗텘텙텚텛텞텠텢텣텤텥텦텧텩텪텫텭땀땁땃땄땅땋때땍땐땔땜땝땟땠땡떠떡떤떨떪떫떰떱떳떴떵떻떼떽뗀뗄뗌뗍뗏뗐뗑뗘뗬또똑똔똘똥똬똴뙈뙤뙨뚜뚝뚠뚤뚫뚬뚱뛔뛰뛴뛸뜀뜁뜅뜨뜩뜬뜯뜰뜸뜹뜻띄띈띌띔띕띠띤띨띰띱띳띵라락란랄람랍랏랐랑랒랖랗�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(n[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="�����������������������������������������������������������������텮텯텰텱텲텳텴텵텶텷텸텹텺텻텽텾텿톀톁톂톃톅톆톇톉톊������톋톌톍톎톏톐톑톒톓톔톕톖톗톘톙톚톛톜톝톞톟톢톣톥톦톧������톩톪톫톬톭톮톯톲톴톶톷톸톹톻톽톾톿퇁퇂퇃퇄퇅퇆퇇퇈퇉퇊퇋퇌퇍퇎퇏래랙랜랠램랩랫랬랭랴략랸럇량러럭런럴럼럽럿렀렁렇레렉렌렐렘렙렛렝려력련렬렴렵렷렸령례롄롑롓로록론롤롬롭롯롱롸롼뢍뢨뢰뢴뢸룀룁룃룅료룐룔룝룟룡루룩룬룰룸룹룻룽뤄뤘뤠뤼뤽륀륄륌륏륑류륙륜률륨륩�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(n[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="�����������������������������������������������������������������퇐퇑퇒퇓퇔퇕퇖퇗퇙퇚퇛퇜퇝퇞퇟퇠퇡퇢퇣퇤퇥퇦퇧퇨퇩퇪������퇫퇬퇭퇮퇯퇰퇱퇲퇳퇵퇶퇷퇹퇺퇻퇼퇽퇾퇿툀툁툂툃툄툅툆������툈툊툋툌툍툎툏툑툒툓툔툕툖툗툘툙툚툛툜툝툞툟툠툡툢툣툤툥툦툧툨툩륫륭르륵른를름릅릇릉릊릍릎리릭린릴림립릿링마막만많맏말맑맒맘맙맛망맞맡맣매맥맨맬맴맵맷맸맹맺먀먁먈먕머먹먼멀멂멈멉멋멍멎멓메멕멘멜멤멥멧멨멩며멱면멸몃몄명몇몌모목몫몬몰몲몸몹못몽뫄뫈뫘뫙뫼�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(n[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="�����������������������������������������������������������������툪툫툮툯툱툲툳툵툶툷툸툹툺툻툾퉀퉂퉃퉄퉅퉆퉇퉉퉊퉋퉌������퉍퉎퉏퉐퉑퉒퉓퉔퉕퉖퉗퉘퉙퉚퉛퉝퉞퉟퉠퉡퉢퉣퉥퉦퉧퉨������퉩퉪퉫퉬퉭퉮퉯퉰퉱퉲퉳퉴퉵퉶퉷퉸퉹퉺퉻퉼퉽퉾퉿튂튃튅튆튇튉튊튋튌묀묄묍묏묑묘묜묠묩묫무묵묶문묻물묽묾뭄뭅뭇뭉뭍뭏뭐뭔뭘뭡뭣뭬뮈뮌뮐뮤뮨뮬뮴뮷므믄믈믐믓미믹민믿밀밂밈밉밋밌밍및밑바박밖밗반받발밝밞밟밤밥밧방밭배백밴밸뱀뱁뱃뱄뱅뱉뱌뱍뱐뱝버벅번벋벌벎범법벗�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(n[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="�����������������������������������������������������������������튍튎튏튒튓튔튖튗튘튙튚튛튝튞튟튡튢튣튥튦튧튨튩튪튫튭������튮튯튰튲튳튴튵튶튷튺튻튽튾틁틃틄틅틆틇틊틌틍틎틏틐틑������틒틓틕틖틗틙틚틛틝틞틟틠틡틢틣틦틧틨틩틪틫틬틭틮틯틲틳틵틶틷틹틺벙벚베벡벤벧벨벰벱벳벴벵벼벽변별볍볏볐병볕볘볜보복볶본볼봄봅봇봉봐봔봤봬뵀뵈뵉뵌뵐뵘뵙뵤뵨부북분붇불붉붊붐붑붓붕붙붚붜붤붰붸뷔뷕뷘뷜뷩뷰뷴뷸븀븃븅브븍븐블븜븝븟비빅빈빌빎빔빕빗빙빚빛빠빡빤�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(n[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="�����������������������������������������������������������������틻틼틽틾틿팂팄팆팇팈팉팊팋팏팑팒팓팕팗팘팙팚팛팞팢팣������팤팦팧팪팫팭팮팯팱팲팳팴팵팶팷팺팾팿퍀퍁퍂퍃퍆퍇퍈퍉������퍊퍋퍌퍍퍎퍏퍐퍑퍒퍓퍔퍕퍖퍗퍘퍙퍚퍛퍜퍝퍞퍟퍠퍡퍢퍣퍤퍥퍦퍧퍨퍩빨빪빰빱빳빴빵빻빼빽뺀뺄뺌뺍뺏뺐뺑뺘뺙뺨뻐뻑뻔뻗뻘뻠뻣뻤뻥뻬뼁뼈뼉뼘뼙뼛뼜뼝뽀뽁뽄뽈뽐뽑뽕뾔뾰뿅뿌뿍뿐뿔뿜뿟뿡쀼쁑쁘쁜쁠쁨쁩삐삑삔삘삠삡삣삥사삭삯산삳살삵삶삼삽삿샀상샅새색샌샐샘샙샛샜생샤�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(n[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="�����������������������������������������������������������������퍪퍫퍬퍭퍮퍯퍰퍱퍲퍳퍴퍵퍶퍷퍸퍹퍺퍻퍾퍿펁펂펃펅펆펇������펈펉펊펋펎펒펓펔펕펖펗펚펛펝펞펟펡펢펣펤펥펦펧펪펬펮������펯펰펱펲펳펵펶펷펹펺펻펽펾펿폀폁폂폃폆폇폊폋폌폍폎폏폑폒폓폔폕폖샥샨샬샴샵샷샹섀섄섈섐섕서석섞섟선섣설섦섧섬섭섯섰성섶세섹센셀셈셉셋셌셍셔셕션셜셤셥셧셨셩셰셴셸솅소속솎손솔솖솜솝솟송솥솨솩솬솰솽쇄쇈쇌쇔쇗쇘쇠쇤쇨쇰쇱쇳쇼쇽숀숄숌숍숏숑수숙순숟술숨숩숫숭�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(n[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="�����������������������������������������������������������������폗폙폚폛폜폝폞폟폠폢폤폥폦폧폨폩폪폫폮폯폱폲폳폵폶폷������폸폹폺폻폾퐀퐂퐃퐄퐅퐆퐇퐉퐊퐋퐌퐍퐎퐏퐐퐑퐒퐓퐔퐕퐖������퐗퐘퐙퐚퐛퐜퐞퐟퐠퐡퐢퐣퐤퐥퐦퐧퐨퐩퐪퐫퐬퐭퐮퐯퐰퐱퐲퐳퐴퐵퐶퐷숯숱숲숴쉈쉐쉑쉔쉘쉠쉥쉬쉭쉰쉴쉼쉽쉿슁슈슉슐슘슛슝스슥슨슬슭슴습슷승시식신싣실싫심십싯싱싶싸싹싻싼쌀쌈쌉쌌쌍쌓쌔쌕쌘쌜쌤쌥쌨쌩썅써썩썬썰썲썸썹썼썽쎄쎈쎌쏀쏘쏙쏜쏟쏠쏢쏨쏩쏭쏴쏵쏸쐈쐐쐤쐬쐰�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(n[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="�����������������������������������������������������������������퐸퐹퐺퐻퐼퐽퐾퐿푁푂푃푅푆푇푈푉푊푋푌푍푎푏푐푑푒푓������푔푕푖푗푘푙푚푛푝푞푟푡푢푣푥푦푧푨푩푪푫푬푮푰푱푲������푳푴푵푶푷푺푻푽푾풁풃풄풅풆풇풊풌풎풏풐풑풒풓풕풖풗풘풙풚풛풜풝쐴쐼쐽쑈쑤쑥쑨쑬쑴쑵쑹쒀쒔쒜쒸쒼쓩쓰쓱쓴쓸쓺쓿씀씁씌씐씔씜씨씩씬씰씸씹씻씽아악안앉않알앍앎앓암압앗았앙앝앞애액앤앨앰앱앳앴앵야약얀얄얇얌얍얏양얕얗얘얜얠얩어억언얹얻얼얽얾엄업없엇었엉엊엌엎�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(n[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="�����������������������������������������������������������������풞풟풠풡풢풣풤풥풦풧풨풪풫풬풭풮풯풰풱풲풳풴풵풶풷풸������풹풺풻풼풽풾풿퓀퓁퓂퓃퓄퓅퓆퓇퓈퓉퓊퓋퓍퓎퓏퓑퓒퓓퓕������퓖퓗퓘퓙퓚퓛퓝퓞퓠퓡퓢퓣퓤퓥퓦퓧퓩퓪퓫퓭퓮퓯퓱퓲퓳퓴퓵퓶퓷퓹퓺퓼에엑엔엘엠엡엣엥여역엮연열엶엷염엽엾엿였영옅옆옇예옌옐옘옙옛옜오옥온올옭옮옰옳옴옵옷옹옻와왁완왈왐왑왓왔왕왜왝왠왬왯왱외왹왼욀욈욉욋욍요욕욘욜욤욥욧용우욱운울욹욺움웁웃웅워웍원월웜웝웠웡웨�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(n[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="�����������������������������������������������������������������퓾퓿픀픁픂픃픅픆픇픉픊픋픍픎픏픐픑픒픓픖픘픙픚픛픜픝������픞픟픠픡픢픣픤픥픦픧픨픩픪픫픬픭픮픯픰픱픲픳픴픵픶픷������픸픹픺픻픾픿핁핂핃핅핆핇핈핉핊핋핎핐핒핓핔핕핖핗핚핛핝핞핟핡핢핣웩웬웰웸웹웽위윅윈윌윔윕윗윙유육윤율윰윱윳융윷으윽은을읊음읍읏응읒읓읔읕읖읗의읜읠읨읫이익인일읽읾잃임입잇있잉잊잎자작잔잖잗잘잚잠잡잣잤장잦재잭잰잴잼잽잿쟀쟁쟈쟉쟌쟎쟐쟘쟝쟤쟨쟬저적전절젊�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(n[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="�����������������������������������������������������������������핤핦핧핪핬핮핯핰핱핲핳핶핷핹핺핻핽핾핿햀햁햂햃햆햊햋������햌햍햎햏햑햒햓햔햕햖햗햘햙햚햛햜햝햞햟햠햡햢햣햤햦햧������햨햩햪햫햬햭햮햯햰햱햲햳햴햵햶햷햸햹햺햻햼햽햾햿헀헁헂헃헄헅헆헇점접젓정젖제젝젠젤젬젭젯젱져젼졀졈졉졌졍졔조족존졸졺좀좁좃종좆좇좋좌좍좔좝좟좡좨좼좽죄죈죌죔죕죗죙죠죡죤죵주죽준줄줅줆줌줍줏중줘줬줴쥐쥑쥔쥘쥠쥡쥣쥬쥰쥴쥼즈즉즌즐즘즙즛증지직진짇질짊짐집짓�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(n[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="�����������������������������������������������������������������헊헋헍헎헏헑헓헔헕헖헗헚헜헞헟헠헡헢헣헦헧헩헪헫헭헮������헯헰헱헲헳헶헸헺헻헼헽헾헿혂혃혅혆혇혉혊혋혌혍혎혏혒������혖혗혘혙혚혛혝혞혟혡혢혣혥혦혧혨혩혪혫혬혮혯혰혱혲혳혴혵혶혷혺혻징짖짙짚짜짝짠짢짤짧짬짭짯짰짱째짹짼쨀쨈쨉쨋쨌쨍쨔쨘쨩쩌쩍쩐쩔쩜쩝쩟쩠쩡쩨쩽쪄쪘쪼쪽쫀쫄쫌쫍쫏쫑쫓쫘쫙쫠쫬쫴쬈쬐쬔쬘쬠쬡쭁쭈쭉쭌쭐쭘쭙쭝쭤쭸쭹쮜쮸쯔쯤쯧쯩찌찍찐찔찜찝찡찢찧차착찬찮찰참찹찻�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(n[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="�����������������������������������������������������������������혽혾혿홁홂홃홄홆홇홊홌홎홏홐홒홓홖홗홙홚홛홝홞홟홠홡������홢홣홤홥홦홨홪홫홬홭홮홯홲홳홵홶홷홸홹홺홻홼홽홾홿횀������횁횂횄횆횇횈횉횊횋횎횏횑횒횓횕횖횗횘횙횚횛횜횞횠횢횣횤횥횦횧횩횪찼창찾채책챈챌챔챕챗챘챙챠챤챦챨챰챵처척천철첨첩첫첬청체첵첸첼쳄쳅쳇쳉쳐쳔쳤쳬쳰촁초촉촌촐촘촙촛총촤촨촬촹최쵠쵤쵬쵭쵯쵱쵸춈추축춘출춤춥춧충춰췄췌췐취췬췰췸췹췻췽츄츈츌츔츙츠측츤츨츰츱츳층�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(n[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="�����������������������������������������������������������������횫횭횮횯횱횲횳횴횵횶횷횸횺횼횽횾횿훀훁훂훃훆훇훉훊훋������훍훎훏훐훒훓훕훖훘훚훛훜훝훞훟훡훢훣훥훦훧훩훪훫훬훭������훮훯훱훲훳훴훶훷훸훹훺훻훾훿휁휂휃휅휆휇휈휉휊휋휌휍휎휏휐휒휓휔치칙친칟칠칡침칩칫칭카칵칸칼캄캅캇캉캐캑캔캘캠캡캣캤캥캬캭컁커컥컨컫컬컴컵컷컸컹케켁켄켈켐켑켓켕켜켠켤켬켭켯켰켱켸코콕콘콜콤콥콧콩콰콱콴콸쾀쾅쾌쾡쾨쾰쿄쿠쿡쿤쿨쿰쿱쿳쿵쿼퀀퀄퀑퀘퀭퀴퀵퀸퀼�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(n[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="�����������������������������������������������������������������휕휖휗휚휛휝휞휟휡휢휣휤휥휦휧휪휬휮휯휰휱휲휳휶휷휹������휺휻휽휾휿흀흁흂흃흅흆흈흊흋흌흍흎흏흒흓흕흚흛흜흝흞������흟흢흤흦흧흨흪흫흭흮흯흱흲흳흵흶흷흸흹흺흻흾흿힀힂힃힄힅힆힇힊힋큄큅큇큉큐큔큘큠크큭큰클큼큽킁키킥킨킬킴킵킷킹타탁탄탈탉탐탑탓탔탕태택탠탤탬탭탯탰탱탸턍터턱턴털턺텀텁텃텄텅테텍텐텔템텝텟텡텨텬텼톄톈토톡톤톨톰톱톳통톺톼퇀퇘퇴퇸툇툉툐투툭툰툴툼툽툿퉁퉈퉜�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(n[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="�����������������������������������������������������������������힍힎힏힑힒힓힔힕힖힗힚힜힞힟힠힡힢힣������������������������������������������������������������������������������퉤튀튁튄튈튐튑튕튜튠튤튬튱트특튼튿틀틂틈틉틋틔틘틜틤틥티틱틴틸팀팁팃팅파팍팎판팔팖팜팝팟팠팡팥패팩팬팰팸팹팻팼팽퍄퍅퍼퍽펀펄펌펍펏펐펑페펙펜펠펨펩펫펭펴편펼폄폅폈평폐폘폡폣포폭폰폴폼폽폿퐁�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(n[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������퐈퐝푀푄표푠푤푭푯푸푹푼푿풀풂품풉풋풍풔풩퓌퓐퓔퓜퓟퓨퓬퓰퓸퓻퓽프픈플픔픕픗피픽핀필핌핍핏핑하학한할핥함합핫항해핵핸핼햄햅햇했행햐향허헉헌헐헒험헙헛헝헤헥헨헬헴헵헷헹혀혁현혈혐협혓혔형혜혠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(n[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������혤혭호혹혼홀홅홈홉홋홍홑화확환활홧황홰홱홴횃횅회획횐횔횝횟횡효횬횰횹횻후훅훈훌훑훔훗훙훠훤훨훰훵훼훽휀휄휑휘휙휜휠휨휩휫휭휴휵휸휼흄흇흉흐흑흔흖흗흘흙흠흡흣흥흩희흰흴흼흽힁히힉힌힐힘힙힛힝�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(n[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伽佳假價加可呵哥嘉嫁家暇架枷柯歌珂痂稼苛茄街袈訶賈跏軻迦駕刻却各恪慤殼珏脚覺角閣侃刊墾奸姦干幹懇揀杆柬桿澗癎看磵稈竿簡肝艮艱諫間乫喝曷渴碣竭葛褐蝎鞨勘坎堪嵌感憾戡敢柑橄減甘疳監瞰紺邯鑑鑒龕�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(n[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������匣岬甲胛鉀閘剛堈姜岡崗康强彊慷江畺疆糠絳綱羌腔舡薑襁講鋼降鱇介价個凱塏愷愾慨改槪漑疥皆盖箇芥蓋豈鎧開喀客坑更粳羹醵倨去居巨拒据據擧渠炬祛距踞車遽鉅鋸乾件健巾建愆楗腱虔蹇鍵騫乞傑杰桀儉劍劒檢�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(n[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瞼鈐黔劫怯迲偈憩揭擊格檄激膈覡隔堅牽犬甄絹繭肩見譴遣鵑抉決潔結缺訣兼慊箝謙鉗鎌京俓倞傾儆勁勍卿坰境庚徑慶憬擎敬景暻更梗涇炅烱璟璥瓊痙硬磬竟競絅經耕耿脛莖警輕逕鏡頃頸驚鯨係啓堺契季屆悸戒桂械�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(n[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棨溪界癸磎稽系繫繼計誡谿階鷄古叩告呱固姑孤尻庫拷攷故敲暠枯槁沽痼皐睾稿羔考股膏苦苽菰藁蠱袴誥賈辜錮雇顧高鼓哭斛曲梏穀谷鵠困坤崑昆梱棍滾琨袞鯤汨滑骨供公共功孔工恐恭拱控攻珙空蚣貢鞏串寡戈果瓜�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(n[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������科菓誇課跨過鍋顆廓槨藿郭串冠官寬慣棺款灌琯瓘管罐菅觀貫關館刮恝括适侊光匡壙廣曠洸炚狂珖筐胱鑛卦掛罫乖傀塊壞怪愧拐槐魁宏紘肱轟交僑咬喬嬌嶠巧攪敎校橋狡皎矯絞翹膠蕎蛟較轎郊餃驕鮫丘久九仇俱具勾�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(n[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������區口句咎嘔坵垢寇嶇廐懼拘救枸柩構歐毆毬求溝灸狗玖球瞿矩究絿耉臼舅舊苟衢謳購軀逑邱鉤銶駒驅鳩鷗龜國局菊鞠鞫麴君窘群裙軍郡堀屈掘窟宮弓穹窮芎躬倦券勸卷圈拳捲權淃眷厥獗蕨蹶闕机櫃潰詭軌饋句晷歸貴�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(n[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鬼龜叫圭奎揆槻珪硅窺竅糾葵規赳逵閨勻均畇筠菌鈞龜橘克剋劇戟棘極隙僅劤勤懃斤根槿瑾筋芹菫覲謹近饉契今妗擒昑檎琴禁禽芩衾衿襟金錦伋及急扱汲級給亘兢矜肯企伎其冀嗜器圻基埼夔奇妓寄岐崎己幾忌技旗旣�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(n[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������朞期杞棋棄機欺氣汽沂淇玘琦琪璂璣畸畿碁磯祁祇祈祺箕紀綺羈耆耭肌記譏豈起錡錤飢饑騎騏驥麒緊佶吉拮桔金喫儺喇奈娜懦懶拏拿癩羅蘿螺裸邏那樂洛烙珞落諾酪駱亂卵暖欄煖爛蘭難鸞捏捺南嵐枏楠湳濫男藍襤拉�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(n[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������納臘蠟衲囊娘廊朗浪狼郎乃來內奈柰耐冷女年撚秊念恬拈捻寧寗努勞奴弩怒擄櫓爐瑙盧老蘆虜路露駑魯鷺碌祿綠菉錄鹿論壟弄濃籠聾膿農惱牢磊腦賂雷尿壘屢樓淚漏累縷陋嫩訥杻紐勒肋凜凌稜綾能菱陵尼泥匿溺多茶�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(n[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丹亶但單團壇彖斷旦檀段湍短端簞緞蛋袒鄲鍛撻澾獺疸達啖坍憺擔曇淡湛潭澹痰聃膽蕁覃談譚錟沓畓答踏遝唐堂塘幢戇撞棠當糖螳黨代垈坮大對岱帶待戴擡玳臺袋貸隊黛宅德悳倒刀到圖堵塗導屠島嶋度徒悼挑掉搗桃�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(n[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������棹櫂淘渡滔濤燾盜睹禱稻萄覩賭跳蹈逃途道都鍍陶韜毒瀆牘犢獨督禿篤纛讀墩惇敦旽暾沌焞燉豚頓乭突仝冬凍動同憧東桐棟洞潼疼瞳童胴董銅兜斗杜枓痘竇荳讀豆逗頭屯臀芚遁遯鈍得嶝橙燈登等藤謄鄧騰喇懶拏癩羅�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(n[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蘿螺裸邏樂洛烙珞絡落諾酪駱丹亂卵欄欒瀾爛蘭鸞剌辣嵐擥攬欖濫籃纜藍襤覽拉臘蠟廊朗浪狼琅瑯螂郞來崍徠萊冷掠略亮倆兩凉梁樑粮粱糧良諒輛量侶儷勵呂廬慮戾旅櫚濾礪藜蠣閭驢驪麗黎力曆歷瀝礫轢靂憐戀攣漣�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(n[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煉璉練聯蓮輦連鍊冽列劣洌烈裂廉斂殮濂簾獵令伶囹寧岺嶺怜玲笭羚翎聆逞鈴零靈領齡例澧禮醴隷勞怒撈擄櫓潞瀘爐盧老蘆虜路輅露魯鷺鹵碌祿綠菉錄鹿麓論壟弄朧瀧瓏籠聾儡瀨牢磊賂賚賴雷了僚寮廖料燎療瞭聊蓼�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(n[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������遼鬧龍壘婁屢樓淚漏瘻累縷蔞褸鏤陋劉旒柳榴流溜瀏琉瑠留瘤硫謬類六戮陸侖倫崙淪綸輪律慄栗率隆勒肋凜凌楞稜綾菱陵俚利厘吏唎履悧李梨浬犁狸理璃異痢籬罹羸莉裏裡里釐離鯉吝潾燐璘藺躪隣鱗麟林淋琳臨霖砬�".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(n[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒摩瑪痲碼磨馬魔麻寞幕漠膜莫邈万卍娩巒彎慢挽晩曼滿漫灣瞞萬蔓蠻輓饅鰻唜抹末沫茉襪靺亡妄忘忙望網罔芒茫莽輞邙埋妹媒寐昧枚梅每煤罵買賣邁魅脈貊陌驀麥孟氓猛盲盟萌冪覓免冕勉棉沔眄眠綿緬面麵滅�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(n[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蔑冥名命明暝椧溟皿瞑茗蓂螟酩銘鳴袂侮冒募姆帽慕摸摹暮某模母毛牟牡瑁眸矛耗芼茅謀謨貌木沐牧目睦穆鶩歿沒夢朦蒙卯墓妙廟描昴杳渺猫竗苗錨務巫憮懋戊拇撫无楙武毋無珷畝繆舞茂蕪誣貿霧鵡墨默們刎吻問文�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(n[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汶紊紋聞蚊門雯勿沕物味媚尾嵋彌微未梶楣渼湄眉米美薇謎迷靡黴岷悶愍憫敏旻旼民泯玟珉緡閔密蜜謐剝博拍搏撲朴樸泊珀璞箔粕縛膊舶薄迫雹駁伴半反叛拌搬攀斑槃泮潘班畔瘢盤盼磐磻礬絆般蟠返頒飯勃拔撥渤潑�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(n[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������發跋醱鉢髮魃倣傍坊妨尨幇彷房放方旁昉枋榜滂磅紡肪膀舫芳蒡蚌訪謗邦防龐倍俳北培徘拜排杯湃焙盃背胚裴裵褙賠輩配陪伯佰帛柏栢白百魄幡樊煩燔番磻繁蕃藩飜伐筏罰閥凡帆梵氾汎泛犯範范法琺僻劈壁擘檗璧癖�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(n[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������碧蘗闢霹便卞弁變辨辯邊別瞥鱉鼈丙倂兵屛幷昞昺柄棅炳甁病秉竝輧餠騈保堡報寶普步洑湺潽珤甫菩補褓譜輔伏僕匐卜宓復服福腹茯蔔複覆輹輻馥鰒本乶俸奉封峯峰捧棒烽熢琫縫蓬蜂逢鋒鳳不付俯傅剖副否咐埠夫婦�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(n[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������孚孵富府復扶敷斧浮溥父符簿缶腐腑膚艀芙莩訃負賦賻赴趺部釜阜附駙鳧北分吩噴墳奔奮忿憤扮昐汾焚盆粉糞紛芬賁雰不佛弗彿拂崩朋棚硼繃鵬丕備匕匪卑妃婢庇悲憊扉批斐枇榧比毖毗毘沸泌琵痺砒碑秕秘粃緋翡肥�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(n[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������脾臂菲蜚裨誹譬費鄙非飛鼻嚬嬪彬斌檳殯浜濱瀕牝玭貧賓頻憑氷聘騁乍事些仕伺似使俟僿史司唆嗣四士奢娑寫寺射巳師徙思捨斜斯柶査梭死沙泗渣瀉獅砂社祀祠私篩紗絲肆舍莎蓑蛇裟詐詞謝賜赦辭邪飼駟麝削數朔索�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(n[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������傘刪山散汕珊産疝算蒜酸霰乷撒殺煞薩三參杉森渗芟蔘衫揷澁鈒颯上傷像償商喪嘗孀尙峠常床庠廂想桑橡湘爽牀狀相祥箱翔裳觴詳象賞霜塞璽賽嗇塞穡索色牲生甥省笙墅壻嶼序庶徐恕抒捿敍暑曙書栖棲犀瑞筮絮緖署�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(n[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������胥舒薯西誓逝鋤黍鼠夕奭席惜昔晳析汐淅潟石碩蓆釋錫仙僊先善嬋宣扇敾旋渲煽琁瑄璇璿癬禪線繕羨腺膳船蘚蟬詵跣選銑鐥饍鮮卨屑楔泄洩渫舌薛褻設說雪齧剡暹殲纖蟾贍閃陝攝涉燮葉城姓宬性惺成星晟猩珹盛省筬�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(n[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������聖聲腥誠醒世勢歲洗稅笹細說貰召嘯塑宵小少巢所掃搔昭梳沼消溯瀟炤燒甦疏疎瘙笑篠簫素紹蔬蕭蘇訴逍遡邵銷韶騷俗屬束涑粟續謖贖速孫巽損蓀遜飡率宋悚松淞訟誦送頌刷殺灑碎鎖衰釗修受嗽囚垂壽嫂守岫峀帥愁�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(n[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������戍手授搜收數樹殊水洙漱燧狩獸琇璲瘦睡秀穗竪粹綏綬繡羞脩茱蒐蓚藪袖誰讐輸遂邃酬銖銹隋隧隨雖需須首髓鬚叔塾夙孰宿淑潚熟琡璹肅菽巡徇循恂旬栒楯橓殉洵淳珣盾瞬筍純脣舜荀蓴蕣詢諄醇錞順馴戌術述鉥崇崧�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(n[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������嵩瑟膝蝨濕拾習褶襲丞乘僧勝升承昇繩蠅陞侍匙嘶始媤尸屎屍市弑恃施是時枾柴猜矢示翅蒔蓍視試詩諡豕豺埴寔式息拭植殖湜熄篒蝕識軾食飾伸侁信呻娠宸愼新晨燼申神紳腎臣莘薪藎蜃訊身辛辰迅失室實悉審尋心沁�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(n[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������沈深瀋甚芯諶什十拾雙氏亞俄兒啞娥峨我牙芽莪蛾衙訝阿雅餓鴉鵝堊岳嶽幄惡愕握樂渥鄂鍔顎鰐齷安岸按晏案眼雁鞍顔鮟斡謁軋閼唵岩巖庵暗癌菴闇壓押狎鴨仰央怏昻殃秧鴦厓哀埃崖愛曖涯碍艾隘靄厄扼掖液縊腋額�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(n[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������櫻罌鶯鸚也倻冶夜惹揶椰爺耶若野弱掠略約若葯蒻藥躍亮佯兩凉壤孃恙揚攘敭暘梁楊樣洋瀁煬痒瘍禳穰糧羊良襄諒讓釀陽量養圄御於漁瘀禦語馭魚齬億憶抑檍臆偃堰彦焉言諺孼蘖俺儼嚴奄掩淹嶪業円予余勵呂女如廬�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(n[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������旅歟汝濾璵礖礪與艅茹輿轝閭餘驪麗黎亦力域役易曆歷疫繹譯轢逆驛嚥堧姸娟宴年延憐戀捐挻撚椽沇沿涎涓淵演漣烟然煙煉燃燕璉硏硯秊筵緣練縯聯衍軟輦蓮連鉛鍊鳶列劣咽悅涅烈熱裂說閱厭廉念捻染殮炎焰琰艶苒�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(n[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簾閻髥鹽曄獵燁葉令囹塋寧嶺嶸影怜映暎楹榮永泳渶潁濚瀛瀯煐營獰玲瑛瑩瓔盈穎纓羚聆英詠迎鈴鍈零霙靈領乂倪例刈叡曳汭濊猊睿穢芮藝蘂禮裔詣譽豫醴銳隸霓預五伍俉傲午吾吳嗚塢墺奧娛寤悟惡懊敖旿晤梧汚澳�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(n[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������烏熬獒筽蜈誤鰲鼇屋沃獄玉鈺溫瑥瘟穩縕蘊兀壅擁瓮甕癰翁邕雍饔渦瓦窩窪臥蛙蝸訛婉完宛梡椀浣玩琓琬碗緩翫脘腕莞豌阮頑曰往旺枉汪王倭娃歪矮外嵬巍猥畏了僚僥凹堯夭妖姚寥寮尿嶢拗搖撓擾料曜樂橈燎燿瑤療�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(n[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������窈窯繇繞耀腰蓼蟯要謠遙遼邀饒慾欲浴縟褥辱俑傭冗勇埇墉容庸慂榕涌湧溶熔瑢用甬聳茸蓉踊鎔鏞龍于佑偶優又友右宇寓尤愚憂旴牛玗瑀盂祐禑禹紆羽芋藕虞迂遇郵釪隅雨雩勖彧旭昱栯煜稶郁頊云暈橒殞澐熉耘芸蕓�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(n[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������運隕雲韻蔚鬱亐熊雄元原員圓園垣媛嫄寃怨愿援沅洹湲源爰猿瑗苑袁轅遠阮院願鴛月越鉞位偉僞危圍委威尉慰暐渭爲瑋緯胃萎葦蔿蝟衛褘謂違韋魏乳侑儒兪劉唯喩孺宥幼幽庾悠惟愈愉揄攸有杻柔柚柳楡楢油洧流游溜�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(n[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濡猶猷琉瑜由留癒硫紐維臾萸裕誘諛諭踰蹂遊逾遺酉釉鍮類六堉戮毓肉育陸倫允奫尹崙淪潤玧胤贇輪鈗閏律慄栗率聿戎瀜絨融隆垠恩慇殷誾銀隱乙吟淫蔭陰音飮揖泣邑凝應膺鷹依倚儀宜意懿擬椅毅疑矣義艤薏蟻衣誼�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(n[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������議醫二以伊利吏夷姨履已弛彛怡易李梨泥爾珥理異痍痢移罹而耳肄苡荑裏裡貽貳邇里離飴餌匿溺瀷益翊翌翼謚人仁刃印吝咽因姻寅引忍湮燐璘絪茵藺蚓認隣靭靷鱗麟一佚佾壹日溢逸鎰馹任壬妊姙恁林淋稔臨荏賃入卄�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(n[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������立笠粒仍剩孕芿仔刺咨姉姿子字孜恣慈滋炙煮玆瓷疵磁紫者自茨蔗藉諮資雌作勺嚼斫昨灼炸爵綽芍酌雀鵲孱棧殘潺盞岑暫潛箴簪蠶雜丈仗匠場墻壯奬將帳庄張掌暲杖樟檣欌漿牆狀獐璋章粧腸臟臧莊葬蔣薔藏裝贓醬長�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(n[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������障再哉在宰才材栽梓渽滓災縡裁財載齋齎爭箏諍錚佇低儲咀姐底抵杵楮樗沮渚狙猪疽箸紵苧菹著藷詛貯躇這邸雎齟勣吊嫡寂摘敵滴狄炙的積笛籍績翟荻謫賊赤跡蹟迪迹適鏑佃佺傳全典前剪塡塼奠專展廛悛戰栓殿氈澱�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(n[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������煎琠田甸畑癲筌箋箭篆纏詮輾轉鈿銓錢鐫電顚顫餞切截折浙癤竊節絶占岾店漸点粘霑鮎點接摺蝶丁井亭停偵呈姃定幀庭廷征情挺政整旌晶晸柾楨檉正汀淀淨渟湞瀞炡玎珽町睛碇禎程穽精綎艇訂諪貞鄭酊釘鉦鋌錠霆靖�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(n[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������靜頂鼎制劑啼堤帝弟悌提梯濟祭第臍薺製諸蹄醍除際霽題齊俎兆凋助嘲弔彫措操早晁曺曹朝條棗槽漕潮照燥爪璪眺祖祚租稠窕粗糟組繰肇藻蚤詔調趙躁造遭釣阻雕鳥族簇足鏃存尊卒拙猝倧宗從悰慫棕淙琮種終綜縱腫�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(n[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������踪踵鍾鐘佐坐左座挫罪主住侏做姝胄呪周嗾奏宙州廚晝朱柱株注洲湊澍炷珠疇籌紂紬綢舟蛛註誅走躊輳週酎酒鑄駐竹粥俊儁准埈寯峻晙樽浚準濬焌畯竣蠢逡遵雋駿茁中仲衆重卽櫛楫汁葺增憎曾拯烝甑症繒蒸證贈之只�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(n[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������咫地址志持指摯支旨智枝枳止池沚漬知砥祉祗紙肢脂至芝芷蜘誌識贄趾遲直稙稷織職唇嗔塵振搢晉晋桭榛殄津溱珍瑨璡畛疹盡眞瞋秦縉縝臻蔯袗診賑軫辰進鎭陣陳震侄叱姪嫉帙桎瓆疾秩窒膣蛭質跌迭斟朕什執潗緝輯�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(n[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鏶集徵懲澄且侘借叉嗟嵯差次此磋箚茶蹉車遮捉搾着窄錯鑿齪撰澯燦璨瓚竄簒纂粲纘讚贊鑽餐饌刹察擦札紮僭參塹慘慙懺斬站讒讖倉倡創唱娼廠彰愴敞昌昶暢槍滄漲猖瘡窓脹艙菖蒼債埰寀寨彩採砦綵菜蔡采釵冊柵策�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(n[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������責凄妻悽處倜刺剔尺慽戚拓擲斥滌瘠脊蹠陟隻仟千喘天川擅泉淺玔穿舛薦賤踐遷釧闡阡韆凸哲喆徹撤澈綴輟轍鐵僉尖沾添甛瞻簽籤詹諂堞妾帖捷牒疊睫諜貼輒廳晴淸聽菁請靑鯖切剃替涕滯締諦逮遞體初剿哨憔抄招梢�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(n[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椒楚樵炒焦硝礁礎秒稍肖艸苕草蕉貂超酢醋醮促囑燭矗蜀觸寸忖村邨叢塚寵悤憁摠總聰蔥銃撮催崔最墜抽推椎楸樞湫皺秋芻萩諏趨追鄒酋醜錐錘鎚雛騶鰍丑畜祝竺筑築縮蓄蹙蹴軸逐春椿瑃出朮黜充忠沖蟲衝衷悴膵萃�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(n[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贅取吹嘴娶就炊翠聚脆臭趣醉驟鷲側仄厠惻測層侈値嗤峙幟恥梔治淄熾痔痴癡稚穉緇緻置致蚩輜雉馳齒則勅飭親七柒漆侵寢枕沈浸琛砧針鍼蟄秤稱快他咤唾墮妥惰打拖朶楕舵陀馱駝倬卓啄坼度托拓擢晫柝濁濯琢琸託�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(n[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鐸呑嘆坦彈憚歎灘炭綻誕奪脫探眈耽貪塔搭榻宕帑湯糖蕩兌台太怠態殆汰泰笞胎苔跆邰颱宅擇澤撑攄兎吐土討慟桶洞痛筒統通堆槌腿褪退頹偸套妬投透鬪慝特闖坡婆巴把播擺杷波派爬琶破罷芭跛頗判坂板版瓣販辦鈑�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(n[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������阪八叭捌佩唄悖敗沛浿牌狽稗覇貝彭澎烹膨愎便偏扁片篇編翩遍鞭騙貶坪平枰萍評吠嬖幣廢弊斃肺蔽閉陛佈包匍匏咆哺圃布怖抛抱捕暴泡浦疱砲胞脯苞葡蒲袍褒逋鋪飽鮑幅暴曝瀑爆輻俵剽彪慓杓標漂瓢票表豹飇飄驃�".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(n[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������品稟楓諷豊風馮彼披疲皮被避陂匹弼必泌珌畢疋筆苾馝乏逼下何厦夏廈昰河瑕荷蝦賀遐霞鰕壑學虐謔鶴寒恨悍旱汗漢澣瀚罕翰閑閒限韓割轄函含咸啣喊檻涵緘艦銜陷鹹合哈盒蛤閤闔陜亢伉姮嫦巷恒抗杭桁沆港缸肛航�".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(n[t[249][e]]=63744+e,o[63744+e]=t[249][e]);for(t[250]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������行降項亥偕咳垓奚孩害懈楷海瀣蟹解該諧邂駭骸劾核倖幸杏荇行享向嚮珦鄕響餉饗香噓墟虛許憲櫶獻軒歇險驗奕爀赫革俔峴弦懸晛泫炫玄玹現眩睍絃絢縣舷衒見賢鉉顯孑穴血頁嫌俠協夾峽挾浹狹脅脇莢鋏頰亨兄刑型�".split(""),e=0;e!=t[250].length;++e)t[250][e].charCodeAt(0)!==65533&&(n[t[250][e]]=64e3+e,o[64e3+e]=t[250][e]);for(t[251]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������形泂滎瀅灐炯熒珩瑩荊螢衡逈邢鎣馨兮彗惠慧暳蕙蹊醯鞋乎互呼壕壺好岵弧戶扈昊晧毫浩淏湖滸澔濠濩灝狐琥瑚瓠皓祜糊縞胡芦葫蒿虎號蝴護豪鎬頀顥惑或酷婚昏混渾琿魂忽惚笏哄弘汞泓洪烘紅虹訌鴻化和嬅樺火畵�".split(""),e=0;e!=t[251].length;++e)t[251][e].charCodeAt(0)!==65533&&(n[t[251][e]]=64256+e,o[64256+e]=t[251][e]);for(t[252]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������禍禾花華話譁貨靴廓擴攫確碻穫丸喚奐宦幻患換歡晥桓渙煥環紈還驩鰥活滑猾豁闊凰幌徨恍惶愰慌晃晄榥況湟滉潢煌璜皇篁簧荒蝗遑隍黃匯回廻徊恢悔懷晦會檜淮澮灰獪繪膾茴蛔誨賄劃獲宖橫鐄哮嚆孝效斅曉梟涍淆�".split(""),e=0;e!=t[252].length;++e)t[252][e].charCodeAt(0)!==65533&&(n[t[252][e]]=64512+e,o[64512+e]=t[252][e]);for(t[253]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������爻肴酵驍侯候厚后吼喉嗅帿後朽煦珝逅勛勳塤壎焄熏燻薰訓暈薨喧暄煊萱卉喙毁彙徽揮暉煇諱輝麾休携烋畦虧恤譎鷸兇凶匈洶胸黑昕欣炘痕吃屹紇訖欠欽歆吸恰洽翕興僖凞喜噫囍姬嬉希憙憘戱晞曦熙熹熺犧禧稀羲詰�".split(""),e=0;e!=t[253].length;++e)t[253][e].charCodeAt(0)!==65533&&(n[t[253][e]]=64768+e,o[64768+e]=t[253][e]);return{enc:n,dec:o}}(),r[950]=function(){var o=[],n={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~��������������������������������������������������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(n[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[161]="���������������������������������������������������������������� ,、。.‧;:?!︰…‥﹐﹑﹒·﹔﹕﹖﹗|–︱—︳╴︴﹏()︵︶{}︷︸〔〕︹︺【】︻︼《》︽︾〈〉︿﹀「」﹁﹂『』﹃﹄﹙﹚����������������������������������﹛﹜﹝﹞‘’“”〝〞‵′#&*※§〃○●△▲◎☆★◇◆□■▽▼㊣℅¯ ̄_ˍ﹉﹊﹍﹎﹋﹌﹟﹠﹡+-×÷±√<>=≦≧≠∞≒≡﹢﹣﹤﹥﹦~∩∪⊥∠∟⊿㏒㏑∫∮∵∴♀♂⊕⊙↑↓←→↖↗↙↘∥∣/�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(n[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="����������������������������������������������������������������\∕﹨$¥〒¢£%@℃℉﹩﹪﹫㏕㎜㎝㎞㏎㎡㎎㎏㏄°兙兛兞兝兡兣嗧瓩糎▁▂▃▄▅▆▇█▏▎▍▌▋▊▉┼┴┬┤├▔─│▕┌┐└┘╭����������������������������������╮╰╯═╞╪╡◢◣◥◤╱╲╳0123456789ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩ〡〢〣〤〥〦〧〨〩十卄卅ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuv�".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(n[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="����������������������������������������������������������������wxyzΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρστυφχψωㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏ����������������������������������ㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ˙ˉˊˇˋ���������������������������������€������������������������������".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(n[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="����������������������������������������������������������������一乙丁七乃九了二人儿入八几刀刁力匕十卜又三下丈上丫丸凡久么也乞于亡兀刃勺千叉口土士夕大女子孑孓寸小尢尸山川工己已巳巾干廾弋弓才����������������������������������丑丐不中丰丹之尹予云井互五亢仁什仃仆仇仍今介仄元允內六兮公冗凶分切刈勻勾勿化匹午升卅卞厄友及反壬天夫太夭孔少尤尺屯巴幻廿弔引心戈戶手扎支文斗斤方日曰月木欠止歹毋比毛氏水火爪父爻片牙牛犬王丙�".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(n[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="����������������������������������������������������������������世丕且丘主乍乏乎以付仔仕他仗代令仙仞充兄冉冊冬凹出凸刊加功包匆北匝仟半卉卡占卯卮去可古右召叮叩叨叼司叵叫另只史叱台句叭叻四囚外����������������������������������央失奴奶孕它尼巨巧左市布平幼弁弘弗必戊打扔扒扑斥旦朮本未末札正母民氐永汁汀氾犯玄玉瓜瓦甘生用甩田由甲申疋白皮皿目矛矢石示禾穴立丞丟乒乓乩亙交亦亥仿伉伙伊伕伍伐休伏仲件任仰仳份企伋光兇兆先全�".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(n[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="����������������������������������������������������������������共再冰列刑划刎刖劣匈匡匠印危吉吏同吊吐吁吋各向名合吃后吆吒因回囝圳地在圭圬圯圩夙多夷夸妄奸妃好她如妁字存宇守宅安寺尖屹州帆并年����������������������������������式弛忙忖戎戌戍成扣扛托收早旨旬旭曲曳有朽朴朱朵次此死氖汝汗汙江池汐汕污汛汍汎灰牟牝百竹米糸缶羊羽老考而耒耳聿肉肋肌臣自至臼舌舛舟艮色艾虫血行衣西阡串亨位住佇佗佞伴佛何估佐佑伽伺伸佃佔似但佣�".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(n[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="����������������������������������������������������������������作你伯低伶余佝佈佚兌克免兵冶冷別判利刪刨劫助努劬匣即卵吝吭吞吾否呎吧呆呃吳呈呂君吩告吹吻吸吮吵吶吠吼呀吱含吟听囪困囤囫坊坑址坍����������������������������������均坎圾坐坏圻壯夾妝妒妨妞妣妙妖妍妤妓妊妥孝孜孚孛完宋宏尬局屁尿尾岐岑岔岌巫希序庇床廷弄弟彤形彷役忘忌志忍忱快忸忪戒我抄抗抖技扶抉扭把扼找批扳抒扯折扮投抓抑抆改攻攸旱更束李杏材村杜杖杞杉杆杠�".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(n[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="����������������������������������������������������������������杓杗步每求汞沙沁沈沉沅沛汪決沐汰沌汨沖沒汽沃汲汾汴沆汶沍沔沘沂灶灼災灸牢牡牠狄狂玖甬甫男甸皂盯矣私秀禿究系罕肖肓肝肘肛肚育良芒����������������������������������芋芍見角言谷豆豕貝赤走足身車辛辰迂迆迅迄巡邑邢邪邦那酉釆里防阮阱阪阬並乖乳事些亞享京佯依侍佳使佬供例來侃佰併侈佩佻侖佾侏侑佺兔兒兕兩具其典冽函刻券刷刺到刮制剁劾劻卒協卓卑卦卷卸卹取叔受味呵�".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(n[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="����������������������������������������������������������������咖呸咕咀呻呷咄咒咆呼咐呱呶和咚呢周咋命咎固垃坷坪坩坡坦坤坼夜奉奇奈奄奔妾妻委妹妮姑姆姐姍始姓姊妯妳姒姅孟孤季宗定官宜宙宛尚屈居����������������������������������屆岷岡岸岩岫岱岳帘帚帖帕帛帑幸庚店府底庖延弦弧弩往征彿彼忝忠忽念忿怏怔怯怵怖怪怕怡性怩怫怛或戕房戾所承拉拌拄抿拂抹拒招披拓拔拋拈抨抽押拐拙拇拍抵拚抱拘拖拗拆抬拎放斧於旺昔易昌昆昂明昀昏昕昊�".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(n[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[170]="����������������������������������������������������������������昇服朋杭枋枕東果杳杷枇枝林杯杰板枉松析杵枚枓杼杪杲欣武歧歿氓氛泣注泳沱泌泥河沽沾沼波沫法泓沸泄油況沮泗泅泱沿治泡泛泊沬泯泜泖泠����������������������������������炕炎炒炊炙爬爭爸版牧物狀狎狙狗狐玩玨玟玫玥甽疝疙疚的盂盲直知矽社祀祁秉秈空穹竺糾罔羌羋者肺肥肢肱股肫肩肴肪肯臥臾舍芳芝芙芭芽芟芹花芬芥芯芸芣芰芾芷虎虱初表軋迎返近邵邸邱邶采金長門阜陀阿阻附�".split(""),e=0;e!=t[170].length;++e)t[170][e].charCodeAt(0)!==65533&&(n[t[170][e]]=43520+e,o[43520+e]=t[170][e]);for(t[171]="����������������������������������������������������������������陂隹雨青非亟亭亮信侵侯便俠俑俏保促侶俘俟俊俗侮俐俄係俚俎俞侷兗冒冑冠剎剃削前剌剋則勇勉勃勁匍南卻厚叛咬哀咨哎哉咸咦咳哇哂咽咪品����������������������������������哄哈咯咫咱咻咩咧咿囿垂型垠垣垢城垮垓奕契奏奎奐姜姘姿姣姨娃姥姪姚姦威姻孩宣宦室客宥封屎屏屍屋峙峒巷帝帥帟幽庠度建弈弭彥很待徊律徇後徉怒思怠急怎怨恍恰恨恢恆恃恬恫恪恤扁拜挖按拼拭持拮拽指拱拷�".split(""),e=0;e!=t[171].length;++e)t[171][e].charCodeAt(0)!==65533&&(n[t[171][e]]=43776+e,o[43776+e]=t[171][e]);for(t[172]="����������������������������������������������������������������拯括拾拴挑挂政故斫施既春昭映昧是星昨昱昤曷柿染柱柔某柬架枯柵柩柯柄柑枴柚查枸柏柞柳枰柙柢柝柒歪殃殆段毒毗氟泉洋洲洪流津洌洱洞洗����������������������������������活洽派洶洛泵洹洧洸洩洮洵洎洫炫為炳炬炯炭炸炮炤爰牲牯牴狩狠狡玷珊玻玲珍珀玳甚甭畏界畎畋疫疤疥疢疣癸皆皇皈盈盆盃盅省盹相眉看盾盼眇矜砂研砌砍祆祉祈祇禹禺科秒秋穿突竿竽籽紂紅紀紉紇約紆缸美羿耄�".split(""),e=0;e!=t[172].length;++e)t[172][e].charCodeAt(0)!==65533&&(n[t[172][e]]=44032+e,o[44032+e]=t[172][e]);for(t[173]="����������������������������������������������������������������耐耍耑耶胖胥胚胃胄背胡胛胎胞胤胝致舢苧范茅苣苛苦茄若茂茉苒苗英茁苜苔苑苞苓苟苯茆虐虹虻虺衍衫要觔計訂訃貞負赴赳趴軍軌述迦迢迪迥����������������������������������迭迫迤迨郊郎郁郃酋酊重閂限陋陌降面革韋韭音頁風飛食首香乘亳倌倍倣俯倦倥俸倩倖倆值借倚倒們俺倀倔倨俱倡個候倘俳修倭倪俾倫倉兼冤冥冢凍凌准凋剖剜剔剛剝匪卿原厝叟哨唐唁唷哼哥哲唆哺唔哩哭員唉哮哪�".split(""),e=0;e!=t[173].length;++e)t[173][e].charCodeAt(0)!==65533&&(n[t[173][e]]=44288+e,o[44288+e]=t[173][e]);for(t[174]="����������������������������������������������������������������哦唧唇哽唏圃圄埂埔埋埃堉夏套奘奚娑娘娜娟娛娓姬娠娣娩娥娌娉孫屘宰害家宴宮宵容宸射屑展屐峭峽峻峪峨峰島崁峴差席師庫庭座弱徒徑徐恙����������������������������������恣恥恐恕恭恩息悄悟悚悍悔悌悅悖扇拳挈拿捎挾振捕捂捆捏捉挺捐挽挪挫挨捍捌效敉料旁旅時晉晏晃晒晌晅晁書朔朕朗校核案框桓根桂桔栩梳栗桌桑栽柴桐桀格桃株桅栓栘桁殊殉殷氣氧氨氦氤泰浪涕消涇浦浸海浙涓�".split(""),e=0;e!=t[174].length;++e)t[174][e].charCodeAt(0)!==65533&&(n[t[174][e]]=44544+e,o[44544+e]=t[174][e]);for(t[175]="����������������������������������������������������������������浬涉浮浚浴浩涌涊浹涅浥涔烊烘烤烙烈烏爹特狼狹狽狸狷玆班琉珮珠珪珞畔畝畜畚留疾病症疲疳疽疼疹痂疸皋皰益盍盎眩真眠眨矩砰砧砸砝破砷����������������������������������砥砭砠砟砲祕祐祠祟祖神祝祗祚秤秣秧租秦秩秘窄窈站笆笑粉紡紗紋紊素索純紐紕級紜納紙紛缺罟羔翅翁耆耘耕耙耗耽耿胱脂胰脅胭胴脆胸胳脈能脊胼胯臭臬舀舐航舫舨般芻茫荒荔荊茸荐草茵茴荏茲茹茶茗荀茱茨荃�".split(""),e=0;e!=t[175].length;++e)t[175][e].charCodeAt(0)!==65533&&(n[t[175][e]]=44800+e,o[44800+e]=t[175][e]);for(t[176]="����������������������������������������������������������������虔蚊蚪蚓蚤蚩蚌蚣蚜衰衷袁袂衽衹記訐討訌訕訊託訓訖訏訑豈豺豹財貢起躬軒軔軏辱送逆迷退迺迴逃追逅迸邕郡郝郢酒配酌釘針釗釜釙閃院陣陡����������������������������������陛陝除陘陞隻飢馬骨高鬥鬲鬼乾偺偽停假偃偌做偉健偶偎偕偵側偷偏倏偯偭兜冕凰剪副勒務勘動匐匏匙匿區匾參曼商啪啦啄啞啡啃啊唱啖問啕唯啤唸售啜唬啣唳啁啗圈國圉域堅堊堆埠埤基堂堵執培夠奢娶婁婉婦婪婀�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(n[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="����������������������������������������������������������������娼婢婚婆婊孰寇寅寄寂宿密尉專將屠屜屝崇崆崎崛崖崢崑崩崔崙崤崧崗巢常帶帳帷康庸庶庵庾張強彗彬彩彫得徙從徘御徠徜恿患悉悠您惋悴惦悽����������������������������������情悻悵惜悼惘惕惆惟悸惚惇戚戛扈掠控捲掖探接捷捧掘措捱掩掉掃掛捫推掄授掙採掬排掏掀捻捩捨捺敝敖救教敗啟敏敘敕敔斜斛斬族旋旌旎晝晚晤晨晦晞曹勗望梁梯梢梓梵桿桶梱梧梗械梃棄梭梆梅梔條梨梟梡梂欲殺�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(n[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="����������������������������������������������������������������毫毬氫涎涼淳淙液淡淌淤添淺清淇淋涯淑涮淞淹涸混淵淅淒渚涵淚淫淘淪深淮淨淆淄涪淬涿淦烹焉焊烽烯爽牽犁猜猛猖猓猙率琅琊球理現琍瓠瓶����������������������������������瓷甜產略畦畢異疏痔痕疵痊痍皎盔盒盛眷眾眼眶眸眺硫硃硎祥票祭移窒窕笠笨笛第符笙笞笮粒粗粕絆絃統紮紹紼絀細紳組累終紲紱缽羞羚翌翎習耜聊聆脯脖脣脫脩脰脤舂舵舷舶船莎莞莘荸莢莖莽莫莒莊莓莉莠荷荻荼�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(n[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="����������������������������������������������������������������莆莧處彪蛇蛀蚶蛄蚵蛆蛋蚱蚯蛉術袞袈被袒袖袍袋覓規訪訝訣訥許設訟訛訢豉豚販責貫貨貪貧赧赦趾趺軛軟這逍通逗連速逝逐逕逞造透逢逖逛途����������������������������������部郭都酗野釵釦釣釧釭釩閉陪陵陳陸陰陴陶陷陬雀雪雩章竟頂頃魚鳥鹵鹿麥麻傢傍傅備傑傀傖傘傚最凱割剴創剩勞勝勛博厥啻喀喧啼喊喝喘喂喜喪喔喇喋喃喳單喟唾喲喚喻喬喱啾喉喫喙圍堯堪場堤堰報堡堝堠壹壺奠�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(n[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="����������������������������������������������������������������婷媚婿媒媛媧孳孱寒富寓寐尊尋就嵌嵐崴嵇巽幅帽幀幃幾廊廁廂廄弼彭復循徨惑惡悲悶惠愜愣惺愕惰惻惴慨惱愎惶愉愀愒戟扉掣掌描揀揩揉揆揍����������������������������������插揣提握揖揭揮捶援揪換摒揚揹敞敦敢散斑斐斯普晰晴晶景暑智晾晷曾替期朝棺棕棠棘棗椅棟棵森棧棹棒棲棣棋棍植椒椎棉棚楮棻款欺欽殘殖殼毯氮氯氬港游湔渡渲湧湊渠渥渣減湛湘渤湖湮渭渦湯渴湍渺測湃渝渾滋�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(n[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="����������������������������������������������������������������溉渙湎湣湄湲湩湟焙焚焦焰無然煮焜牌犄犀猶猥猴猩琺琪琳琢琥琵琶琴琯琛琦琨甥甦畫番痢痛痣痙痘痞痠登發皖皓皴盜睏短硝硬硯稍稈程稅稀窘����������������������������������窗窖童竣等策筆筐筒答筍筋筏筑粟粥絞結絨絕紫絮絲絡給絢絰絳善翔翕耋聒肅腕腔腋腑腎脹腆脾腌腓腴舒舜菩萃菸萍菠菅萋菁華菱菴著萊菰萌菌菽菲菊萸萎萄菜萇菔菟虛蛟蛙蛭蛔蛛蛤蛐蛞街裁裂袱覃視註詠評詞証詁�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(n[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="����������������������������������������������������������������詔詛詐詆訴診訶詖象貂貯貼貳貽賁費賀貴買貶貿貸越超趁跎距跋跚跑跌跛跆軻軸軼辜逮逵週逸進逶鄂郵鄉郾酣酥量鈔鈕鈣鈉鈞鈍鈐鈇鈑閔閏開閑����������������������������������間閒閎隊階隋陽隅隆隍陲隄雁雅雄集雇雯雲韌項順須飧飪飯飩飲飭馮馭黃黍黑亂傭債傲傳僅傾催傷傻傯僇剿剷剽募勦勤勢勣匯嗟嗨嗓嗦嗎嗜嗇嗑嗣嗤嗯嗚嗡嗅嗆嗥嗉園圓塞塑塘塗塚塔填塌塭塊塢塒塋奧嫁嫉嫌媾媽媼�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(n[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="����������������������������������������������������������������媳嫂媲嵩嵯幌幹廉廈弒彙徬微愚意慈感想愛惹愁愈慎慌慄慍愾愴愧愍愆愷戡戢搓搾搞搪搭搽搬搏搜搔損搶搖搗搆敬斟新暗暉暇暈暖暄暘暍會榔業����������������������������������楚楷楠楔極椰概楊楨楫楞楓楹榆楝楣楛歇歲毀殿毓毽溢溯滓溶滂源溝滇滅溥溘溼溺溫滑準溜滄滔溪溧溴煎煙煩煤煉照煜煬煦煌煥煞煆煨煖爺牒猷獅猿猾瑯瑚瑕瑟瑞瑁琿瑙瑛瑜當畸瘀痰瘁痲痱痺痿痴痳盞盟睛睫睦睞督�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(n[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="����������������������������������������������������������������睹睪睬睜睥睨睢矮碎碰碗碘碌碉硼碑碓硿祺祿禁萬禽稜稚稠稔稟稞窟窠筷節筠筮筧粱粳粵經絹綑綁綏絛置罩罪署義羨群聖聘肆肄腱腰腸腥腮腳腫����������������������������������腹腺腦舅艇蒂葷落萱葵葦葫葉葬葛萼萵葡董葩葭葆虞虜號蛹蜓蜈蜇蜀蛾蛻蜂蜃蜆蜊衙裟裔裙補裘裝裡裊裕裒覜解詫該詳試詩詰誇詼詣誠話誅詭詢詮詬詹詻訾詨豢貊貉賊資賈賄貲賃賂賅跡跟跨路跳跺跪跤跦躲較載軾輊�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(n[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="����������������������������������������������������������������辟農運遊道遂達逼違遐遇遏過遍遑逾遁鄒鄗酬酪酩釉鈷鉗鈸鈽鉀鈾鉛鉋鉤鉑鈴鉉鉍鉅鈹鈿鉚閘隘隔隕雍雋雉雊雷電雹零靖靴靶預頑頓頊頒頌飼飴����������������������������������飽飾馳馱馴髡鳩麂鼎鼓鼠僧僮僥僖僭僚僕像僑僱僎僩兢凳劃劂匱厭嗾嘀嘛嘗嗽嘔嘆嘉嘍嘎嗷嘖嘟嘈嘐嗶團圖塵塾境墓墊塹墅塽壽夥夢夤奪奩嫡嫦嫩嫗嫖嫘嫣孵寞寧寡寥實寨寢寤察對屢嶄嶇幛幣幕幗幔廓廖弊彆彰徹慇�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(n[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="����������������������������������������������������������������愿態慷慢慣慟慚慘慵截撇摘摔撤摸摟摺摑摧搴摭摻敲斡旗旖暢暨暝榜榨榕槁榮槓構榛榷榻榫榴槐槍榭槌榦槃榣歉歌氳漳演滾漓滴漩漾漠漬漏漂漢����������������������������������滿滯漆漱漸漲漣漕漫漯澈漪滬漁滲滌滷熔熙煽熊熄熒爾犒犖獄獐瑤瑣瑪瑰瑭甄疑瘧瘍瘋瘉瘓盡監瞄睽睿睡磁碟碧碳碩碣禎福禍種稱窪窩竭端管箕箋筵算箝箔箏箸箇箄粹粽精綻綰綜綽綾綠緊綴網綱綺綢綿綵綸維緒緇綬�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(n[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="����������������������������������������������������������������罰翠翡翟聞聚肇腐膀膏膈膊腿膂臧臺與舔舞艋蓉蒿蓆蓄蒙蒞蒲蒜蓋蒸蓀蓓蒐蒼蓑蓊蜿蜜蜻蜢蜥蜴蜘蝕蜷蜩裳褂裴裹裸製裨褚裯誦誌語誣認誡誓誤����������������������������������說誥誨誘誑誚誧豪貍貌賓賑賒赫趙趕跼輔輒輕輓辣遠遘遜遣遙遞遢遝遛鄙鄘鄞酵酸酷酴鉸銀銅銘銖鉻銓銜銨鉼銑閡閨閩閣閥閤隙障際雌雒需靼鞅韶頗領颯颱餃餅餌餉駁骯骰髦魁魂鳴鳶鳳麼鼻齊億儀僻僵價儂儈儉儅凜�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(n[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="����������������������������������������������������������������劇劈劉劍劊勰厲嘮嘻嘹嘲嘿嘴嘩噓噎噗噴嘶嘯嘰墀墟增墳墜墮墩墦奭嬉嫻嬋嫵嬌嬈寮寬審寫層履嶝嶔幢幟幡廢廚廟廝廣廠彈影德徵慶慧慮慝慕憂����������������������������������慼慰慫慾憧憐憫憎憬憚憤憔憮戮摩摯摹撞撲撈撐撰撥撓撕撩撒撮播撫撚撬撙撢撳敵敷數暮暫暴暱樣樟槨樁樞標槽模樓樊槳樂樅槭樑歐歎殤毅毆漿潼澄潑潦潔澆潭潛潸潮澎潺潰潤澗潘滕潯潠潟熟熬熱熨牖犛獎獗瑩璋璃�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(n[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="����������������������������������������������������������������瑾璀畿瘠瘩瘟瘤瘦瘡瘢皚皺盤瞎瞇瞌瞑瞋磋磅確磊碾磕碼磐稿稼穀稽稷稻窯窮箭箱範箴篆篇篁箠篌糊締練緯緻緘緬緝編緣線緞緩綞緙緲緹罵罷羯����������������������������������翩耦膛膜膝膠膚膘蔗蔽蔚蓮蔬蔭蔓蔑蔣蔡蔔蓬蔥蓿蔆螂蝴蝶蝠蝦蝸蝨蝙蝗蝌蝓衛衝褐複褒褓褕褊誼諒談諄誕請諸課諉諂調誰論諍誶誹諛豌豎豬賠賞賦賤賬賭賢賣賜質賡赭趟趣踫踐踝踢踏踩踟踡踞躺輝輛輟輩輦輪輜輞�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(n[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="����������������������������������������������������������������輥適遮遨遭遷鄰鄭鄧鄱醇醉醋醃鋅銻銷鋪銬鋤鋁銳銼鋒鋇鋰銲閭閱霄霆震霉靠鞍鞋鞏頡頫頜颳養餓餒餘駝駐駟駛駑駕駒駙骷髮髯鬧魅魄魷魯鴆鴉����������������������������������鴃麩麾黎墨齒儒儘儔儐儕冀冪凝劑劓勳噙噫噹噩噤噸噪器噥噱噯噬噢噶壁墾壇壅奮嬝嬴學寰導彊憲憑憩憊懍憶憾懊懈戰擅擁擋撻撼據擄擇擂操撿擒擔撾整曆曉暹曄曇暸樽樸樺橙橫橘樹橄橢橡橋橇樵機橈歙歷氅濂澱澡�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(n[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="����������������������������������������������������������������濃澤濁澧澳激澹澶澦澠澴熾燉燐燒燈燕熹燎燙燜燃燄獨璜璣璘璟璞瓢甌甍瘴瘸瘺盧盥瞠瞞瞟瞥磨磚磬磧禦積穎穆穌穋窺篙簑築篤篛篡篩篦糕糖縊����������������������������������縑縈縛縣縞縝縉縐罹羲翰翱翮耨膳膩膨臻興艘艙蕊蕙蕈蕨蕩蕃蕉蕭蕪蕞螃螟螞螢融衡褪褲褥褫褡親覦諦諺諫諱謀諜諧諮諾謁謂諷諭諳諶諼豫豭貓賴蹄踱踴蹂踹踵輻輯輸輳辨辦遵遴選遲遼遺鄴醒錠錶鋸錳錯錢鋼錫錄錚�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(n[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="����������������������������������������������������������������錐錦錡錕錮錙閻隧隨險雕霎霑霖霍霓霏靛靜靦鞘頰頸頻頷頭頹頤餐館餞餛餡餚駭駢駱骸骼髻髭鬨鮑鴕鴣鴦鴨鴒鴛默黔龍龜優償儡儲勵嚎嚀嚐嚅嚇����������������������������������嚏壕壓壑壎嬰嬪嬤孺尷屨嶼嶺嶽嶸幫彌徽應懂懇懦懋戲戴擎擊擘擠擰擦擬擱擢擭斂斃曙曖檀檔檄檢檜櫛檣橾檗檐檠歜殮毚氈濘濱濟濠濛濤濫濯澀濬濡濩濕濮濰燧營燮燦燥燭燬燴燠爵牆獰獲璩環璦璨癆療癌盪瞳瞪瞰瞬�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(n[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="����������������������������������������������������������������瞧瞭矯磷磺磴磯礁禧禪穗窿簇簍篾篷簌篠糠糜糞糢糟糙糝縮績繆縷縲繃縫總縱繅繁縴縹繈縵縿縯罄翳翼聱聲聰聯聳臆臃膺臂臀膿膽臉膾臨舉艱薪����������������������������������薄蕾薜薑薔薯薛薇薨薊虧蟀蟑螳蟒蟆螫螻螺蟈蟋褻褶襄褸褽覬謎謗謙講謊謠謝謄謐豁谿豳賺賽購賸賻趨蹉蹋蹈蹊轄輾轂轅輿避遽還邁邂邀鄹醣醞醜鍍鎂錨鍵鍊鍥鍋錘鍾鍬鍛鍰鍚鍔闊闋闌闈闆隱隸雖霜霞鞠韓顆颶餵騁�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(n[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="����������������������������������������������������������������駿鮮鮫鮪鮭鴻鴿麋黏點黜黝黛鼾齋叢嚕嚮壙壘嬸彝懣戳擴擲擾攆擺擻擷斷曜朦檳檬櫃檻檸櫂檮檯歟歸殯瀉瀋濾瀆濺瀑瀏燻燼燾燸獷獵璧璿甕癖癘����������������������������������癒瞽瞿瞻瞼礎禮穡穢穠竄竅簫簧簪簞簣簡糧織繕繞繚繡繒繙罈翹翻職聶臍臏舊藏薩藍藐藉薰薺薹薦蟯蟬蟲蟠覆覲觴謨謹謬謫豐贅蹙蹣蹦蹤蹟蹕軀轉轍邇邃邈醫醬釐鎔鎊鎖鎢鎳鎮鎬鎰鎘鎚鎗闔闖闐闕離雜雙雛雞霤鞣鞦�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(n[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="����������������������������������������������������������������鞭韹額顏題顎顓颺餾餿餽餮馥騎髁鬃鬆魏魎魍鯊鯉鯽鯈鯀鵑鵝鵠黠鼕鼬儳嚥壞壟壢寵龐廬懲懷懶懵攀攏曠曝櫥櫝櫚櫓瀛瀟瀨瀚瀝瀕瀘爆爍牘犢獸����������������������������������獺璽瓊瓣疇疆癟癡矇礙禱穫穩簾簿簸簽簷籀繫繭繹繩繪羅繳羶羹羸臘藩藝藪藕藤藥藷蟻蠅蠍蟹蟾襠襟襖襞譁譜識證譚譎譏譆譙贈贊蹼蹲躇蹶蹬蹺蹴轔轎辭邊邋醱醮鏡鏑鏟鏃鏈鏜鏝鏖鏢鏍鏘鏤鏗鏨關隴難霪霧靡韜韻類�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(n[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="����������������������������������������������������������������願顛颼饅饉騖騙鬍鯨鯧鯖鯛鶉鵡鵲鵪鵬麒麗麓麴勸嚨嚷嚶嚴嚼壤孀孃孽寶巉懸懺攘攔攙曦朧櫬瀾瀰瀲爐獻瓏癢癥礦礪礬礫竇競籌籃籍糯糰辮繽繼����������������������������������纂罌耀臚艦藻藹蘑藺蘆蘋蘇蘊蠔蠕襤覺觸議譬警譯譟譫贏贍躉躁躅躂醴釋鐘鐃鏽闡霰飄饒饑馨騫騰騷騵鰓鰍鹹麵黨鼯齟齣齡儷儸囁囀囂夔屬巍懼懾攝攜斕曩櫻欄櫺殲灌爛犧瓖瓔癩矓籐纏續羼蘗蘭蘚蠣蠢蠡蠟襪襬覽譴�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(n[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="����������������������������������������������������������������護譽贓躊躍躋轟辯醺鐮鐳鐵鐺鐸鐲鐫闢霸霹露響顧顥饗驅驃驀騾髏魔魑鰭鰥鶯鶴鷂鶸麝黯鼙齜齦齧儼儻囈囊囉孿巔巒彎懿攤權歡灑灘玀瓤疊癮癬����������������������������������禳籠籟聾聽臟襲襯觼讀贖贗躑躓轡酈鑄鑑鑒霽霾韃韁顫饕驕驍髒鬚鱉鰱鰾鰻鷓鷗鼴齬齪龔囌巖戀攣攫攪曬欐瓚竊籤籣籥纓纖纔臢蘸蘿蠱變邐邏鑣鑠鑤靨顯饜驚驛驗髓體髑鱔鱗鱖鷥麟黴囑壩攬灞癱癲矗罐羈蠶蠹衢讓讒�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(n[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="����������������������������������������������������������������讖艷贛釀鑪靂靈靄韆顰驟鬢魘鱟鷹鷺鹼鹽鼇齷齲廳欖灣籬籮蠻觀躡釁鑲鑰顱饞髖鬣黌灤矚讚鑷韉驢驥纜讜躪釅鑽鑾鑼鱷鱸黷豔鑿鸚爨驪鬱鸛鸞籲���������������������������������������������������������������������������������������������������������������������������������".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(n[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[201]="����������������������������������������������������������������乂乜凵匚厂万丌乇亍囗兀屮彳丏冇与丮亓仂仉仈冘勼卬厹圠夃夬尐巿旡殳毌气爿丱丼仨仜仩仡仝仚刌匜卌圢圣夗夯宁宄尒尻屴屳帄庀庂忉戉扐氕����������������������������������氶汃氿氻犮犰玊禸肊阞伎优伬仵伔仱伀价伈伝伂伅伢伓伄仴伒冱刓刉刐劦匢匟卍厊吇囡囟圮圪圴夼妀奼妅奻奾奷奿孖尕尥屼屺屻屾巟幵庄异弚彴忕忔忏扜扞扤扡扦扢扙扠扚扥旯旮朾朹朸朻机朿朼朳氘汆汒汜汏汊汔汋�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(n[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="����������������������������������������������������������������汌灱牞犴犵玎甪癿穵网艸艼芀艽艿虍襾邙邗邘邛邔阢阤阠阣佖伻佢佉体佤伾佧佒佟佁佘伭伳伿佡冏冹刜刞刡劭劮匉卣卲厎厏吰吷吪呔呅吙吜吥吘����������������������������������吽呏呁吨吤呇囮囧囥坁坅坌坉坋坒夆奀妦妘妠妗妎妢妐妏妧妡宎宒尨尪岍岏岈岋岉岒岊岆岓岕巠帊帎庋庉庌庈庍弅弝彸彶忒忑忐忭忨忮忳忡忤忣忺忯忷忻怀忴戺抃抌抎抏抔抇扱扻扺扰抁抈扷扽扲扴攷旰旴旳旲旵杅杇�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(n[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="����������������������������������������������������������������杙杕杌杈杝杍杚杋毐氙氚汸汧汫沄沋沏汱汯汩沚汭沇沕沜汦汳汥汻沎灴灺牣犿犽狃狆狁犺狅玕玗玓玔玒町甹疔疕皁礽耴肕肙肐肒肜芐芏芅芎芑芓����������������������������������芊芃芄豸迉辿邟邡邥邞邧邠阰阨阯阭丳侘佼侅佽侀侇佶佴侉侄佷佌侗佪侚佹侁佸侐侜侔侞侒侂侕佫佮冞冼冾刵刲刳剆刱劼匊匋匼厒厔咇呿咁咑咂咈呫呺呾呥呬呴呦咍呯呡呠咘呣呧呤囷囹坯坲坭坫坱坰坶垀坵坻坳坴坢�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(n[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="����������������������������������������������������������������坨坽夌奅妵妺姏姎妲姌姁妶妼姃姖妱妽姀姈妴姇孢孥宓宕屄屇岮岤岠岵岯岨岬岟岣岭岢岪岧岝岥岶岰岦帗帔帙弨弢弣弤彔徂彾彽忞忥怭怦怙怲怋����������������������������������怴怊怗怳怚怞怬怢怍怐怮怓怑怌怉怜戔戽抭抴拑抾抪抶拊抮抳抯抻抩抰抸攽斨斻昉旼昄昒昈旻昃昋昍昅旽昑昐曶朊枅杬枎枒杶杻枘枆构杴枍枌杺枟枑枙枃杽极杸杹枔欥殀歾毞氝沓泬泫泮泙沶泔沭泧沷泐泂沺泃泆泭泲�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(n[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="����������������������������������������������������������������泒泝沴沊沝沀泞泀洰泍泇沰泹泏泩泑炔炘炅炓炆炄炑炖炂炚炃牪狖狋狘狉狜狒狔狚狌狑玤玡玭玦玢玠玬玝瓝瓨甿畀甾疌疘皯盳盱盰盵矸矼矹矻矺����������������������������������矷祂礿秅穸穻竻籵糽耵肏肮肣肸肵肭舠芠苀芫芚芘芛芵芧芮芼芞芺芴芨芡芩苂芤苃芶芢虰虯虭虮豖迒迋迓迍迖迕迗邲邴邯邳邰阹阽阼阺陃俍俅俓侲俉俋俁俔俜俙侻侳俛俇俖侺俀侹俬剄剉勀勂匽卼厗厖厙厘咺咡咭咥哏�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(n[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="����������������������������������������������������������������哃茍咷咮哖咶哅哆咠呰咼咢咾呲哞咰垵垞垟垤垌垗垝垛垔垘垏垙垥垚垕壴复奓姡姞姮娀姱姝姺姽姼姶姤姲姷姛姩姳姵姠姾姴姭宨屌峐峘峌峗峋峛����������������������������������峞峚峉峇峊峖峓峔峏峈峆峎峟峸巹帡帢帣帠帤庰庤庢庛庣庥弇弮彖徆怷怹恔恲恞恅恓恇恉恛恌恀恂恟怤恄恘恦恮扂扃拏挍挋拵挎挃拫拹挏挌拸拶挀挓挔拺挕拻拰敁敃斪斿昶昡昲昵昜昦昢昳昫昺昝昴昹昮朏朐柁柲柈枺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(n[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="����������������������������������������������������������������柜枻柸柘柀枷柅柫柤柟枵柍枳柷柶柮柣柂枹柎柧柰枲柼柆柭柌枮柦柛柺柉柊柃柪柋欨殂殄殶毖毘毠氠氡洨洴洭洟洼洿洒洊泚洳洄洙洺洚洑洀洝浂����������������������������������洁洘洷洃洏浀洇洠洬洈洢洉洐炷炟炾炱炰炡炴炵炩牁牉牊牬牰牳牮狊狤狨狫狟狪狦狣玅珌珂珈珅玹玶玵玴珫玿珇玾珃珆玸珋瓬瓮甮畇畈疧疪癹盄眈眃眄眅眊盷盻盺矧矨砆砑砒砅砐砏砎砉砃砓祊祌祋祅祄秕种秏秖秎窀�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(n[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="����������������������������������������������������������������穾竑笀笁籺籸籹籿粀粁紃紈紁罘羑羍羾耇耎耏耔耷胘胇胠胑胈胂胐胅胣胙胜胊胕胉胏胗胦胍臿舡芔苙苾苹茇苨茀苕茺苫苖苴苬苡苲苵茌苻苶苰苪����������������������������������苤苠苺苳苭虷虴虼虳衁衎衧衪衩觓訄訇赲迣迡迮迠郱邽邿郕郅邾郇郋郈釔釓陔陏陑陓陊陎倞倅倇倓倢倰倛俵俴倳倷倬俶俷倗倜倠倧倵倯倱倎党冔冓凊凄凅凈凎剡剚剒剞剟剕剢勍匎厞唦哢唗唒哧哳哤唚哿唄唈哫唑唅哱�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(n[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="����������������������������������������������������������������唊哻哷哸哠唎唃唋圁圂埌堲埕埒垺埆垽垼垸垶垿埇埐垹埁夎奊娙娖娭娮娕娏娗娊娞娳孬宧宭宬尃屖屔峬峿峮峱峷崀峹帩帨庨庮庪庬弳弰彧恝恚恧����������������������������������恁悢悈悀悒悁悝悃悕悛悗悇悜悎戙扆拲挐捖挬捄捅挶捃揤挹捋捊挼挩捁挴捘捔捙挭捇挳捚捑挸捗捀捈敊敆旆旃旄旂晊晟晇晑朒朓栟栚桉栲栳栻桋桏栖栱栜栵栫栭栯桎桄栴栝栒栔栦栨栮桍栺栥栠欬欯欭欱欴歭肂殈毦毤�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(n[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="����������������������������������������������������������������毨毣毢毧氥浺浣浤浶洍浡涒浘浢浭浯涑涍淯浿涆浞浧浠涗浰浼浟涂涘洯浨涋浾涀涄洖涃浻浽浵涐烜烓烑烝烋缹烢烗烒烞烠烔烍烅烆烇烚烎烡牂牸����������������������������������牷牶猀狺狴狾狶狳狻猁珓珙珥珖玼珧珣珩珜珒珛珔珝珚珗珘珨瓞瓟瓴瓵甡畛畟疰痁疻痄痀疿疶疺皊盉眝眛眐眓眒眣眑眕眙眚眢眧砣砬砢砵砯砨砮砫砡砩砳砪砱祔祛祏祜祓祒祑秫秬秠秮秭秪秜秞秝窆窉窅窋窌窊窇竘笐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(n[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="����������������������������������������������������������������笄笓笅笏笈笊笎笉笒粄粑粊粌粈粍粅紞紝紑紎紘紖紓紟紒紏紌罜罡罞罠罝罛羖羒翃翂翀耖耾耹胺胲胹胵脁胻脀舁舯舥茳茭荄茙荑茥荖茿荁茦茜茢����������������������������������荂荎茛茪茈茼荍茖茤茠茷茯茩荇荅荌荓茞茬荋茧荈虓虒蚢蚨蚖蚍蚑蚞蚇蚗蚆蚋蚚蚅蚥蚙蚡蚧蚕蚘蚎蚝蚐蚔衃衄衭衵衶衲袀衱衿衯袃衾衴衼訒豇豗豻貤貣赶赸趵趷趶軑軓迾迵适迿迻逄迼迶郖郠郙郚郣郟郥郘郛郗郜郤酐�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(n[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="����������������������������������������������������������������酎酏釕釢釚陜陟隼飣髟鬯乿偰偪偡偞偠偓偋偝偲偈偍偁偛偊偢倕偅偟偩偫偣偤偆偀偮偳偗偑凐剫剭剬剮勖勓匭厜啵啶唼啍啐唴唪啑啢唶唵唰啒啅����������������������������������唌唲啥啎唹啈唭唻啀啋圊圇埻堔埢埶埜埴堀埭埽堈埸堋埳埏堇埮埣埲埥埬埡堎埼堐埧堁堌埱埩埰堍堄奜婠婘婕婧婞娸娵婭婐婟婥婬婓婤婗婃婝婒婄婛婈媎娾婍娹婌婰婩婇婑婖婂婜孲孮寁寀屙崞崋崝崚崠崌崨崍崦崥崏�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(n[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="����������������������������������������������������������������崰崒崣崟崮帾帴庱庴庹庲庳弶弸徛徖徟悊悐悆悾悰悺惓惔惏惤惙惝惈悱惛悷惊悿惃惍惀挲捥掊掂捽掽掞掭掝掗掫掎捯掇掐据掯捵掜捭掮捼掤挻掟����������������������������������捸掅掁掑掍捰敓旍晥晡晛晙晜晢朘桹梇梐梜桭桮梮梫楖桯梣梬梩桵桴梲梏桷梒桼桫桲梪梀桱桾梛梖梋梠梉梤桸桻梑梌梊桽欶欳欷欸殑殏殍殎殌氪淀涫涴涳湴涬淩淢涷淶淔渀淈淠淟淖涾淥淜淝淛淴淊涽淭淰涺淕淂淏淉�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(n[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="����������������������������������������������������������������淐淲淓淽淗淍淣涻烺焍烷焗烴焌烰焄烳焐烼烿焆焓焀烸烶焋焂焎牾牻牼牿猝猗猇猑猘猊猈狿猏猞玈珶珸珵琄琁珽琇琀珺珼珿琌琋珴琈畤畣痎痒痏����������������������������������痋痌痑痐皏皉盓眹眯眭眱眲眴眳眽眥眻眵硈硒硉硍硊硌砦硅硐祤祧祩祪祣祫祡离秺秸秶秷窏窔窐笵筇笴笥笰笢笤笳笘笪笝笱笫笭笯笲笸笚笣粔粘粖粣紵紽紸紶紺絅紬紩絁絇紾紿絊紻紨罣羕羜羝羛翊翋翍翐翑翇翏翉耟�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(n[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="����������������������������������������������������������������耞耛聇聃聈脘脥脙脛脭脟脬脞脡脕脧脝脢舑舸舳舺舴舲艴莐莣莨莍荺荳莤荴莏莁莕莙荵莔莩荽莃莌莝莛莪莋荾莥莯莈莗莰荿莦莇莮荶莚虙虖蚿蚷����������������������������������蛂蛁蛅蚺蚰蛈蚹蚳蚸蛌蚴蚻蚼蛃蚽蚾衒袉袕袨袢袪袚袑袡袟袘袧袙袛袗袤袬袌袓袎覂觖觙觕訰訧訬訞谹谻豜豝豽貥赽赻赹趼跂趹趿跁軘軞軝軜軗軠軡逤逋逑逜逌逡郯郪郰郴郲郳郔郫郬郩酖酘酚酓酕釬釴釱釳釸釤釹釪�".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(n[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="����������������������������������������������������������������釫釷釨釮镺閆閈陼陭陫陱陯隿靪頄飥馗傛傕傔傞傋傣傃傌傎傝偨傜傒傂傇兟凔匒匑厤厧喑喨喥喭啷噅喢喓喈喏喵喁喣喒喤啽喌喦啿喕喡喎圌堩堷����������������������������������堙堞堧堣堨埵塈堥堜堛堳堿堶堮堹堸堭堬堻奡媯媔媟婺媢媞婸媦婼媥媬媕媮娷媄媊媗媃媋媩婻婽媌媜媏媓媝寪寍寋寔寑寊寎尌尰崷嵃嵫嵁嵋崿崵嵑嵎嵕崳崺嵒崽崱嵙嵂崹嵉崸崼崲崶嵀嵅幄幁彘徦徥徫惉悹惌惢惎惄愔�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(n[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="����������������������������������������������������������������惲愊愖愅惵愓惸惼惾惁愃愘愝愐惿愄愋扊掔掱掰揎揥揨揯揃撝揳揊揠揶揕揲揵摡揟掾揝揜揄揘揓揂揇揌揋揈揰揗揙攲敧敪敤敜敨敥斌斝斞斮旐旒����������������������������������晼晬晻暀晱晹晪晲朁椌棓椄棜椪棬棪棱椏棖棷棫棤棶椓椐棳棡椇棌椈楰梴椑棯棆椔棸棐棽棼棨椋椊椗棎棈棝棞棦棴棑椆棔棩椕椥棇欹欻欿欼殔殗殙殕殽毰毲毳氰淼湆湇渟湉溈渼渽湅湢渫渿湁湝湳渜渳湋湀湑渻渃渮湞�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(n[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="����������������������������������������������������������������湨湜湡渱渨湠湱湫渹渢渰湓湥渧湸湤湷湕湹湒湦渵渶湚焠焞焯烻焮焱焣焥焢焲焟焨焺焛牋牚犈犉犆犅犋猒猋猰猢猱猳猧猲猭猦猣猵猌琮琬琰琫琖����������������������������������琚琡琭琱琤琣琝琩琠琲瓻甯畯畬痧痚痡痦痝痟痤痗皕皒盚睆睇睄睍睅睊睎睋睌矞矬硠硤硥硜硭硱硪确硰硩硨硞硢祴祳祲祰稂稊稃稌稄窙竦竤筊笻筄筈筌筎筀筘筅粢粞粨粡絘絯絣絓絖絧絪絏絭絜絫絒絔絩絑絟絎缾缿罥�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(n[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="����������������������������������������������������������������罦羢羠羡翗聑聏聐胾胔腃腊腒腏腇脽腍脺臦臮臷臸臹舄舼舽舿艵茻菏菹萣菀菨萒菧菤菼菶萐菆菈菫菣莿萁菝菥菘菿菡菋菎菖菵菉萉萏菞萑萆菂菳����������������������������������菕菺菇菑菪萓菃菬菮菄菻菗菢萛菛菾蛘蛢蛦蛓蛣蛚蛪蛝蛫蛜蛬蛩蛗蛨蛑衈衖衕袺裗袹袸裀袾袶袼袷袽袲褁裉覕覘覗觝觚觛詎詍訹詙詀詗詘詄詅詒詈詑詊詌詏豟貁貀貺貾貰貹貵趄趀趉跘跓跍跇跖跜跏跕跙跈跗跅軯軷軺�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(n[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="����������������������������������������������������������������軹軦軮軥軵軧軨軶軫軱軬軴軩逭逴逯鄆鄬鄄郿郼鄈郹郻鄁鄀鄇鄅鄃酡酤酟酢酠鈁鈊鈥鈃鈚鈦鈏鈌鈀鈒釿釽鈆鈄鈧鈂鈜鈤鈙鈗鈅鈖镻閍閌閐隇陾隈����������������������������������隉隃隀雂雈雃雱雰靬靰靮頇颩飫鳦黹亃亄亶傽傿僆傮僄僊傴僈僂傰僁傺傱僋僉傶傸凗剺剸剻剼嗃嗛嗌嗐嗋嗊嗝嗀嗔嗄嗩喿嗒喍嗏嗕嗢嗖嗈嗲嗍嗙嗂圔塓塨塤塏塍塉塯塕塎塝塙塥塛堽塣塱壼嫇嫄嫋媺媸媱媵媰媿嫈媻嫆�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(n[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="����������������������������������������������������������������媷嫀嫊媴媶嫍媹媐寖寘寙尟尳嵱嵣嵊嵥嵲嵬嵞嵨嵧嵢巰幏幎幊幍幋廅廌廆廋廇彀徯徭惷慉慊愫慅愶愲愮慆愯慏愩慀戠酨戣戥戤揅揱揫搐搒搉搠搤����������������������������������搳摃搟搕搘搹搷搢搣搌搦搰搨摁搵搯搊搚摀搥搧搋揧搛搮搡搎敯斒旓暆暌暕暐暋暊暙暔晸朠楦楟椸楎楢楱椿楅楪椹楂楗楙楺楈楉椵楬椳椽楥棰楸椴楩楀楯楄楶楘楁楴楌椻楋椷楜楏楑椲楒椯楻椼歆歅歃歂歈歁殛嗀毻毼�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(n[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="����������������������������������������������������������������毹毷毸溛滖滈溏滀溟溓溔溠溱溹滆滒溽滁溞滉溷溰滍溦滏溲溾滃滜滘溙溒溎溍溤溡溿溳滐滊溗溮溣煇煔煒煣煠煁煝煢煲煸煪煡煂煘煃煋煰煟煐煓����������������������������������煄煍煚牏犍犌犑犐犎猼獂猻猺獀獊獉瑄瑊瑋瑒瑑瑗瑀瑏瑐瑎瑂瑆瑍瑔瓡瓿瓾瓽甝畹畷榃痯瘏瘃痷痾痼痹痸瘐痻痶痭痵痽皙皵盝睕睟睠睒睖睚睩睧睔睙睭矠碇碚碔碏碄碕碅碆碡碃硹碙碀碖硻祼禂祽祹稑稘稙稒稗稕稢稓�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(n[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="����������������������������������������������������������������稛稐窣窢窞竫筦筤筭筴筩筲筥筳筱筰筡筸筶筣粲粴粯綈綆綀綍絿綅絺綎絻綃絼綌綔綄絽綒罭罫罧罨罬羦羥羧翛翜耡腤腠腷腜腩腛腢腲朡腞腶腧腯����������������������������������腄腡舝艉艄艀艂艅蓱萿葖葶葹蒏蒍葥葑葀蒆葧萰葍葽葚葙葴葳葝蔇葞萷萺萴葺葃葸萲葅萩菙葋萯葂萭葟葰萹葎葌葒葯蓅蒎萻葇萶萳葨葾葄萫葠葔葮葐蜋蜄蛷蜌蛺蛖蛵蝍蛸蜎蜉蜁蛶蜍蜅裖裋裍裎裞裛裚裌裐覅覛觟觥觤�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(n[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="����������������������������������������������������������������觡觠觢觜触詶誆詿詡訿詷誂誄詵誃誁詴詺谼豋豊豥豤豦貆貄貅賌赨赩趑趌趎趏趍趓趔趐趒跰跠跬跱跮跐跩跣跢跧跲跫跴輆軿輁輀輅輇輈輂輋遒逿����������������������������������遄遉逽鄐鄍鄏鄑鄖鄔鄋鄎酮酯鉈鉒鈰鈺鉦鈳鉥鉞銃鈮鉊鉆鉭鉬鉏鉠鉧鉯鈶鉡鉰鈱鉔鉣鉐鉲鉎鉓鉌鉖鈲閟閜閞閛隒隓隑隗雎雺雽雸雵靳靷靸靲頏頍頎颬飶飹馯馲馰馵骭骫魛鳪鳭鳧麀黽僦僔僗僨僳僛僪僝僤僓僬僰僯僣僠�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(n[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="����������������������������������������������������������������凘劀劁勩勫匰厬嘧嘕嘌嘒嗼嘏嘜嘁嘓嘂嗺嘝嘄嗿嗹墉塼墐墘墆墁塿塴墋塺墇墑墎塶墂墈塻墔墏壾奫嫜嫮嫥嫕嫪嫚嫭嫫嫳嫢嫠嫛嫬嫞嫝嫙嫨嫟孷寠����������������������������������寣屣嶂嶀嵽嶆嵺嶁嵷嶊嶉嶈嵾嵼嶍嵹嵿幘幙幓廘廑廗廎廜廕廙廒廔彄彃彯徶愬愨慁慞慱慳慒慓慲慬憀慴慔慺慛慥愻慪慡慖戩戧戫搫摍摛摝摴摶摲摳摽摵摦撦摎撂摞摜摋摓摠摐摿搿摬摫摙摥摷敳斠暡暠暟朅朄朢榱榶槉�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(n[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="����������������������������������������������������������������榠槎榖榰榬榼榑榙榎榧榍榩榾榯榿槄榽榤槔榹槊榚槏榳榓榪榡榞槙榗榐槂榵榥槆歊歍歋殞殟殠毃毄毾滎滵滱漃漥滸漷滻漮漉潎漙漚漧漘漻漒滭漊����������������������������������漶潳滹滮漭潀漰漼漵滫漇漎潃漅滽滶漹漜滼漺漟漍漞漈漡熇熐熉熀熅熂熏煻熆熁熗牄牓犗犕犓獃獍獑獌瑢瑳瑱瑵瑲瑧瑮甀甂甃畽疐瘖瘈瘌瘕瘑瘊瘔皸瞁睼瞅瞂睮瞀睯睾瞃碲碪碴碭碨硾碫碞碥碠碬碢碤禘禊禋禖禕禔禓�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(n[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="����������������������������������������������������������������禗禈禒禐稫穊稰稯稨稦窨窫窬竮箈箜箊箑箐箖箍箌箛箎箅箘劄箙箤箂粻粿粼粺綧綷緂綣綪緁緀緅綝緎緄緆緋緌綯綹綖綼綟綦綮綩綡緉罳翢翣翥翞����������������������������������耤聝聜膉膆膃膇膍膌膋舕蒗蒤蒡蒟蒺蓎蓂蒬蒮蒫蒹蒴蓁蓍蒪蒚蒱蓐蒝蒧蒻蒢蒔蓇蓌蒛蒩蒯蒨蓖蒘蒶蓏蒠蓗蓔蓒蓛蒰蒑虡蜳蜣蜨蝫蝀蜮蜞蜡蜙蜛蝃蜬蝁蜾蝆蜠蜲蜪蜭蜼蜒蜺蜱蜵蝂蜦蜧蜸蜤蜚蜰蜑裷裧裱裲裺裾裮裼裶裻�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(n[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="����������������������������������������������������������������裰裬裫覝覡覟覞觩觫觨誫誙誋誒誏誖谽豨豩賕賏賗趖踉踂跿踍跽踊踃踇踆踅跾踀踄輐輑輎輍鄣鄜鄠鄢鄟鄝鄚鄤鄡鄛酺酲酹酳銥銤鉶銛鉺銠銔銪銍����������������������������������銦銚銫鉹銗鉿銣鋮銎銂銕銢鉽銈銡銊銆銌銙銧鉾銇銩銝銋鈭隞隡雿靘靽靺靾鞃鞀鞂靻鞄鞁靿韎韍頖颭颮餂餀餇馝馜駃馹馻馺駂馽駇骱髣髧鬾鬿魠魡魟鳱鳲鳵麧僿儃儰僸儆儇僶僾儋儌僽儊劋劌勱勯噈噂噌嘵噁噊噉噆噘�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(n[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="����������������������������������������������������������������噚噀嘳嘽嘬嘾嘸嘪嘺圚墫墝墱墠墣墯墬墥墡壿嫿嫴嫽嫷嫶嬃嫸嬂嫹嬁嬇嬅嬏屧嶙嶗嶟嶒嶢嶓嶕嶠嶜嶡嶚嶞幩幝幠幜緳廛廞廡彉徲憋憃慹憱憰憢憉����������������������������������憛憓憯憭憟憒憪憡憍慦憳戭摮摰撖撠撅撗撜撏撋撊撌撣撟摨撱撘敶敺敹敻斲斳暵暰暩暲暷暪暯樀樆樗槥槸樕槱槤樠槿槬槢樛樝槾樧槲槮樔槷槧橀樈槦槻樍槼槫樉樄樘樥樏槶樦樇槴樖歑殥殣殢殦氁氀毿氂潁漦潾澇濆澒�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(n[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="����������������������������������������������������������������澍澉澌潢潏澅潚澖潶潬澂潕潲潒潐潗澔澓潝漀潡潫潽潧澐潓澋潩潿澕潣潷潪潻熲熯熛熰熠熚熩熵熝熥熞熤熡熪熜熧熳犘犚獘獒獞獟獠獝獛獡獚獙����������������������������������獢璇璉璊璆璁瑽璅璈瑼瑹甈甇畾瘥瘞瘙瘝瘜瘣瘚瘨瘛皜皝皞皛瞍瞏瞉瞈磍碻磏磌磑磎磔磈磃磄磉禚禡禠禜禢禛歶稹窲窴窳箷篋箾箬篎箯箹篊箵糅糈糌糋緷緛緪緧緗緡縃緺緦緶緱緰緮緟罶羬羰羭翭翫翪翬翦翨聤聧膣膟�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(n[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="����������������������������������������������������������������膞膕膢膙膗舖艏艓艒艐艎艑蔤蔻蔏蔀蔩蔎蔉蔍蔟蔊蔧蔜蓻蔫蓺蔈蔌蓴蔪蓲蔕蓷蓫蓳蓼蔒蓪蓩蔖蓾蔨蔝蔮蔂蓽蔞蓶蔱蔦蓧蓨蓰蓯蓹蔘蔠蔰蔋蔙蔯虢����������������������������������蝖蝣蝤蝷蟡蝳蝘蝔蝛蝒蝡蝚蝑蝞蝭蝪蝐蝎蝟蝝蝯蝬蝺蝮蝜蝥蝏蝻蝵蝢蝧蝩衚褅褌褔褋褗褘褙褆褖褑褎褉覢覤覣觭觰觬諏諆誸諓諑諔諕誻諗誾諀諅諘諃誺誽諙谾豍貏賥賟賙賨賚賝賧趠趜趡趛踠踣踥踤踮踕踛踖踑踙踦踧�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(n[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="����������������������������������������������������������������踔踒踘踓踜踗踚輬輤輘輚輠輣輖輗遳遰遯遧遫鄯鄫鄩鄪鄲鄦鄮醅醆醊醁醂醄醀鋐鋃鋄鋀鋙銶鋏鋱鋟鋘鋩鋗鋝鋌鋯鋂鋨鋊鋈鋎鋦鋍鋕鋉鋠鋞鋧鋑鋓����������������������������������銵鋡鋆銴镼閬閫閮閰隤隢雓霅霈霂靚鞊鞎鞈韐韏頞頝頦頩頨頠頛頧颲餈飺餑餔餖餗餕駜駍駏駓駔駎駉駖駘駋駗駌骳髬髫髳髲髱魆魃魧魴魱魦魶魵魰魨魤魬鳼鳺鳽鳿鳷鴇鴀鳹鳻鴈鴅鴄麃黓鼏鼐儜儓儗儚儑凞匴叡噰噠噮�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(n[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="����������������������������������������������������������������噳噦噣噭噲噞噷圜圛壈墽壉墿墺壂墼壆嬗嬙嬛嬡嬔嬓嬐嬖嬨嬚嬠嬞寯嶬嶱嶩嶧嶵嶰嶮嶪嶨嶲嶭嶯嶴幧幨幦幯廩廧廦廨廥彋徼憝憨憖懅憴懆懁懌憺����������������������������������憿憸憌擗擖擐擏擉撽撉擃擛擳擙攳敿敼斢曈暾曀曊曋曏暽暻暺曌朣樴橦橉橧樲橨樾橝橭橶橛橑樨橚樻樿橁橪橤橐橏橔橯橩橠樼橞橖橕橍橎橆歕歔歖殧殪殫毈毇氄氃氆澭濋澣濇澼濎濈潞濄澽澞濊澨瀄澥澮澺澬澪濏澿澸�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(n[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="����������������������������������������������������������������澢濉澫濍澯澲澰燅燂熿熸燖燀燁燋燔燊燇燏熽燘熼燆燚燛犝犞獩獦獧獬獥獫獪瑿璚璠璔璒璕璡甋疀瘯瘭瘱瘽瘳瘼瘵瘲瘰皻盦瞚瞝瞡瞜瞛瞢瞣瞕瞙����������������������������������瞗磝磩磥磪磞磣磛磡磢磭磟磠禤穄穈穇窶窸窵窱窷篞篣篧篝篕篥篚篨篹篔篪篢篜篫篘篟糒糔糗糐糑縒縡縗縌縟縠縓縎縜縕縚縢縋縏縖縍縔縥縤罃罻罼罺羱翯耪耩聬膱膦膮膹膵膫膰膬膴膲膷膧臲艕艖艗蕖蕅蕫蕍蕓蕡蕘�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(n[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="����������������������������������������������������������������蕀蕆蕤蕁蕢蕄蕑蕇蕣蔾蕛蕱蕎蕮蕵蕕蕧蕠薌蕦蕝蕔蕥蕬虣虥虤螛螏螗螓螒螈螁螖螘蝹螇螣螅螐螑螝螄螔螜螚螉褞褦褰褭褮褧褱褢褩褣褯褬褟觱諠����������������������������������諢諲諴諵諝謔諤諟諰諈諞諡諨諿諯諻貑貒貐賵賮賱賰賳赬赮趥趧踳踾踸蹀蹅踶踼踽蹁踰踿躽輶輮輵輲輹輷輴遶遹遻邆郺鄳鄵鄶醓醐醑醍醏錧錞錈錟錆錏鍺錸錼錛錣錒錁鍆錭錎錍鋋錝鋺錥錓鋹鋷錴錂錤鋿錩錹錵錪錔錌�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(n[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="����������������������������������������������������������������錋鋾錉錀鋻錖閼闍閾閹閺閶閿閵閽隩雔霋霒霐鞙鞗鞔韰韸頵頯頲餤餟餧餩馞駮駬駥駤駰駣駪駩駧骹骿骴骻髶髺髹髷鬳鮀鮅鮇魼魾魻鮂鮓鮒鮐魺鮕����������������������������������魽鮈鴥鴗鴠鴞鴔鴩鴝鴘鴢鴐鴙鴟麈麆麇麮麭黕黖黺鼒鼽儦儥儢儤儠儩勴嚓嚌嚍嚆嚄嚃噾嚂噿嚁壖壔壏壒嬭嬥嬲嬣嬬嬧嬦嬯嬮孻寱寲嶷幬幪徾徻懃憵憼懧懠懥懤懨懞擯擩擣擫擤擨斁斀斶旚曒檍檖檁檥檉檟檛檡檞檇檓檎�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(n[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="����������������������������������������������������������������檕檃檨檤檑橿檦檚檅檌檒歛殭氉濌澩濴濔濣濜濭濧濦濞濲濝濢濨燡燱燨燲燤燰燢獳獮獯璗璲璫璐璪璭璱璥璯甐甑甒甏疄癃癈癉癇皤盩瞵瞫瞲瞷瞶����������������������������������瞴瞱瞨矰磳磽礂磻磼磲礅磹磾礄禫禨穜穛穖穘穔穚窾竀竁簅簏篲簀篿篻簎篴簋篳簂簉簃簁篸篽簆篰篱簐簊糨縭縼繂縳顈縸縪繉繀繇縩繌縰縻縶繄縺罅罿罾罽翴翲耬膻臄臌臊臅臇膼臩艛艚艜薃薀薏薧薕薠薋薣蕻薤薚薞�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(n[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="����������������������������������������������������������������蕷蕼薉薡蕺蕸蕗薎薖薆薍薙薝薁薢薂薈薅蕹蕶薘薐薟虨螾螪螭蟅螰螬螹螵螼螮蟉蟃蟂蟌螷螯蟄蟊螴螶螿螸螽蟞螲褵褳褼褾襁襒褷襂覭覯覮觲觳謞����������������������������������謘謖謑謅謋謢謏謒謕謇謍謈謆謜謓謚豏豰豲豱豯貕貔賹赯蹎蹍蹓蹐蹌蹇轃轀邅遾鄸醚醢醛醙醟醡醝醠鎡鎃鎯鍤鍖鍇鍼鍘鍜鍶鍉鍐鍑鍠鍭鎏鍌鍪鍹鍗鍕鍒鍏鍱鍷鍻鍡鍞鍣鍧鎀鍎鍙闇闀闉闃闅閷隮隰隬霠霟霘霝霙鞚鞡鞜�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(n[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="����������������������������������������������������������������鞞鞝韕韔韱顁顄顊顉顅顃餥餫餬餪餳餲餯餭餱餰馘馣馡騂駺駴駷駹駸駶駻駽駾駼騃骾髾髽鬁髼魈鮚鮨鮞鮛鮦鮡鮥鮤鮆鮢鮠鮯鴳鵁鵧鴶鴮鴯鴱鴸鴰����������������������������������鵅鵂鵃鴾鴷鵀鴽翵鴭麊麉麍麰黈黚黻黿鼤鼣鼢齔龠儱儭儮嚘嚜嚗嚚嚝嚙奰嬼屩屪巀幭幮懘懟懭懮懱懪懰懫懖懩擿攄擽擸攁攃擼斔旛曚曛曘櫅檹檽櫡櫆檺檶檷櫇檴檭歞毉氋瀇瀌瀍瀁瀅瀔瀎濿瀀濻瀦濼濷瀊爁燿燹爃燽獶�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(n[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="����������������������������������������������������������������璸瓀璵瓁璾璶璻瓂甔甓癜癤癙癐癓癗癚皦皽盬矂瞺磿礌礓礔礉礐礒礑禭禬穟簜簩簙簠簟簭簝簦簨簢簥簰繜繐繖繣繘繢繟繑繠繗繓羵羳翷翸聵臑臒����������������������������������臐艟艞薴藆藀藃藂薳薵薽藇藄薿藋藎藈藅薱薶藒蘤薸薷薾虩蟧蟦蟢蟛蟫蟪蟥蟟蟳蟤蟔蟜蟓蟭蟘蟣螤蟗蟙蠁蟴蟨蟝襓襋襏襌襆襐襑襉謪謧謣謳謰謵譇謯謼謾謱謥謷謦謶謮謤謻謽謺豂豵貙貘貗賾贄贂贀蹜蹢蹠蹗蹖蹞蹥蹧�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(n[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="����������������������������������������������������������������蹛蹚蹡蹝蹩蹔轆轇轈轋鄨鄺鄻鄾醨醥醧醯醪鎵鎌鎒鎷鎛鎝鎉鎧鎎鎪鎞鎦鎕鎈鎙鎟鎍鎱鎑鎲鎤鎨鎴鎣鎥闒闓闑隳雗雚巂雟雘雝霣霢霥鞬鞮鞨鞫鞤鞪����������������������������������鞢鞥韗韙韖韘韺顐顑顒颸饁餼餺騏騋騉騍騄騑騊騅騇騆髀髜鬈鬄鬅鬩鬵魊魌魋鯇鯆鯃鮿鯁鮵鮸鯓鮶鯄鮹鮽鵜鵓鵏鵊鵛鵋鵙鵖鵌鵗鵒鵔鵟鵘鵚麎麌黟鼁鼀鼖鼥鼫鼪鼩鼨齌齕儴儵劖勷厴嚫嚭嚦嚧嚪嚬壚壝壛夒嬽嬾嬿巃幰�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(n[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="����������������������������������������������������������������徿懻攇攐攍攉攌攎斄旞旝曞櫧櫠櫌櫑櫙櫋櫟櫜櫐櫫櫏櫍櫞歠殰氌瀙瀧瀠瀖瀫瀡瀢瀣瀩瀗瀤瀜瀪爌爊爇爂爅犥犦犤犣犡瓋瓅璷瓃甖癠矉矊矄矱礝礛����������������������������������礡礜礗礞禰穧穨簳簼簹簬簻糬糪繶繵繸繰繷繯繺繲繴繨罋罊羃羆羷翽翾聸臗臕艤艡艣藫藱藭藙藡藨藚藗藬藲藸藘藟藣藜藑藰藦藯藞藢蠀蟺蠃蟶蟷蠉蠌蠋蠆蟼蠈蟿蠊蠂襢襚襛襗襡襜襘襝襙覈覷覶觶譐譈譊譀譓譖譔譋譕�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(n[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="����������������������������������������������������������������譑譂譒譗豃豷豶貚贆贇贉趬趪趭趫蹭蹸蹳蹪蹯蹻軂轒轑轏轐轓辴酀鄿醰醭鏞鏇鏏鏂鏚鏐鏹鏬鏌鏙鎩鏦鏊鏔鏮鏣鏕鏄鏎鏀鏒鏧镽闚闛雡霩霫霬霨霦����������������������������������鞳鞷鞶韝韞韟顜顙顝顗颿颽颻颾饈饇饃馦馧騚騕騥騝騤騛騢騠騧騣騞騜騔髂鬋鬊鬎鬌鬷鯪鯫鯠鯞鯤鯦鯢鯰鯔鯗鯬鯜鯙鯥鯕鯡鯚鵷鶁鶊鶄鶈鵱鶀鵸鶆鶋鶌鵽鵫鵴鵵鵰鵩鶅鵳鵻鶂鵯鵹鵿鶇鵨麔麑黀黼鼭齀齁齍齖齗齘匷嚲�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(n[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="����������������������������������������������������������������嚵嚳壣孅巆巇廮廯忀忁懹攗攖攕攓旟曨曣曤櫳櫰櫪櫨櫹櫱櫮櫯瀼瀵瀯瀷瀴瀱灂瀸瀿瀺瀹灀瀻瀳灁爓爔犨獽獼璺皫皪皾盭矌矎矏矍矲礥礣礧礨礤礩����������������������������������禲穮穬穭竷籉籈籊籇籅糮繻繾纁纀羺翿聹臛臙舋艨艩蘢藿蘁藾蘛蘀藶蘄蘉蘅蘌藽蠙蠐蠑蠗蠓蠖襣襦覹觷譠譪譝譨譣譥譧譭趮躆躈躄轙轖轗轕轘轚邍酃酁醷醵醲醳鐋鐓鏻鐠鐏鐔鏾鐕鐐鐨鐙鐍鏵鐀鏷鐇鐎鐖鐒鏺鐉鏸鐊鏿�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(n[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="����������������������������������������������������������������鏼鐌鏶鐑鐆闞闠闟霮霯鞹鞻韽韾顠顢顣顟飁飂饐饎饙饌饋饓騲騴騱騬騪騶騩騮騸騭髇髊髆鬐鬒鬑鰋鰈鯷鰅鰒鯸鱀鰇鰎鰆鰗鰔鰉鶟鶙鶤鶝鶒鶘鶐鶛����������������������������������鶠鶔鶜鶪鶗鶡鶚鶢鶨鶞鶣鶿鶩鶖鶦鶧麙麛麚黥黤黧黦鼰鼮齛齠齞齝齙龑儺儹劘劗囃嚽嚾孈孇巋巏廱懽攛欂櫼欃櫸欀灃灄灊灈灉灅灆爝爚爙獾甗癪矐礭礱礯籔籓糲纊纇纈纋纆纍罍羻耰臝蘘蘪蘦蘟蘣蘜蘙蘧蘮蘡蘠蘩蘞蘥�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(n[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="����������������������������������������������������������������蠩蠝蠛蠠蠤蠜蠫衊襭襩襮襫觺譹譸譅譺譻贐贔趯躎躌轞轛轝酆酄酅醹鐿鐻鐶鐩鐽鐼鐰鐹鐪鐷鐬鑀鐱闥闤闣霵霺鞿韡顤飉飆飀饘饖騹騽驆驄驂驁騺����������������������������������騿髍鬕鬗鬘鬖鬺魒鰫鰝鰜鰬鰣鰨鰩鰤鰡鶷鶶鶼鷁鷇鷊鷏鶾鷅鷃鶻鶵鷎鶹鶺鶬鷈鶱鶭鷌鶳鷍鶲鹺麜黫黮黭鼛鼘鼚鼱齎齥齤龒亹囆囅囋奱孋孌巕巑廲攡攠攦攢欋欈欉氍灕灖灗灒爞爟犩獿瓘瓕瓙瓗癭皭礵禴穰穱籗籜籙籛籚�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(n[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="����������������������������������������������������������������糴糱纑罏羇臞艫蘴蘵蘳蘬蘲蘶蠬蠨蠦蠪蠥襱覿覾觻譾讄讂讆讅譿贕躕躔躚躒躐躖躗轠轢酇鑌鑐鑊鑋鑏鑇鑅鑈鑉鑆霿韣顪顩飋饔饛驎驓驔驌驏驈驊����������������������������������驉驒驐髐鬙鬫鬻魖魕鱆鱈鰿鱄鰹鰳鱁鰼鰷鰴鰲鰽鰶鷛鷒鷞鷚鷋鷐鷜鷑鷟鷩鷙鷘鷖鷵鷕鷝麶黰鼵鼳鼲齂齫龕龢儽劙壨壧奲孍巘蠯彏戁戃戄攩攥斖曫欑欒欏毊灛灚爢玂玁玃癰矔籧籦纕艬蘺虀蘹蘼蘱蘻蘾蠰蠲蠮蠳襶襴襳觾�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(n[t[247][e]]=63232+e,o[63232+e]=t[247][e]);for(t[248]="����������������������������������������������������������������讌讎讋讈豅贙躘轤轣醼鑢鑕鑝鑗鑞韄韅頀驖驙鬞鬟鬠鱒鱘鱐鱊鱍鱋鱕鱙鱌鱎鷻鷷鷯鷣鷫鷸鷤鷶鷡鷮鷦鷲鷰鷢鷬鷴鷳鷨鷭黂黐黲黳鼆鼜鼸鼷鼶齃齏����������������������������������齱齰齮齯囓囍孎屭攭曭曮欓灟灡灝灠爣瓛瓥矕礸禷禶籪纗羉艭虃蠸蠷蠵衋讔讕躞躟躠躝醾醽釂鑫鑨鑩雥靆靃靇韇韥驞髕魙鱣鱧鱦鱢鱞鱠鸂鷾鸇鸃鸆鸅鸀鸁鸉鷿鷽鸄麠鼞齆齴齵齶囔攮斸欘欙欗欚灢爦犪矘矙礹籩籫糶纚�".split(""),e=0;e!=t[248].length;++e)t[248][e].charCodeAt(0)!==65533&&(n[t[248][e]]=63488+e,o[63488+e]=t[248][e]);for(t[249]="����������������������������������������������������������������纘纛纙臠臡虆虇虈襹襺襼襻觿讘讙躥躤躣鑮鑭鑯鑱鑳靉顲饟鱨鱮鱭鸋鸍鸐鸏鸒鸑麡黵鼉齇齸齻齺齹圞灦籯蠼趲躦釃鑴鑸鑶鑵驠鱴鱳鱱鱵鸔鸓黶鼊����������������������������������龤灨灥糷虪蠾蠽蠿讞貜躩軉靋顳顴飌饡馫驤驦驧鬤鸕鸗齈戇欞爧虌躨钂钀钁驩驨鬮鸙爩虋讟钃鱹麷癵驫鱺鸝灩灪麤齾齉龘碁銹裏墻恒粧嫺╔╦╗╠╬╣╚╩╝╒╤╕╞╪╡╘╧╛╓╥╖╟╫╢╙╨╜║═╭╮╰╯▓�".split(""),e=0;e!=t[249].length;++e)t[249][e].charCodeAt(0)!==65533&&(n[t[249][e]]=63744+e,o[63744+e]=t[249][e]);return{enc:n,dec:o}}(),r[1250]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1251]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1252]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1253]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1254]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1255]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת���`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1256]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œں ،¢£¤¥¦§¨©ھ«¬®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûüے`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1257]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1258]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[1e4]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[10006]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[10007]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[10008]=function(){var o=[],n={},t=[],e;for(t[0]=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~���������������������������������������������������������������������������������������`.split(""),e=0;e!=t[0].length;++e)t[0][e].charCodeAt(0)!==65533&&(n[t[0][e]]=0+e,o[0+e]=t[0][e]);for(t[161]="����������������������������������������������������������������������������������������������������������������������������������������������������������������� 、。・ˉˇ¨〃々―~�…‘’“”〔〕〈〉《》「」『』〖〗【】±×÷∶∧∨∑∏∪∩∈∷√⊥∥∠⌒⊙∫∮≡≌≈∽∝≠≮≯≤≥∞∵∴♂♀°′″℃$¤¢£‰§№☆★○●◎◇◆□■△▲※→←↑↓〓�".split(""),e=0;e!=t[161].length;++e)t[161][e].charCodeAt(0)!==65533&&(n[t[161][e]]=41216+e,o[41216+e]=t[161][e]);for(t[162]="���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������⒈⒉⒊⒋⒌⒍⒎⒏⒐⒑⒒⒓⒔⒕⒖⒗⒘⒙⒚⒛⑴⑵⑶⑷⑸⑹⑺⑻⑼⑽⑾⑿⒀⒁⒂⒃⒄⒅⒆⒇①②③④⑤⑥⑦⑧⑨⑩��㈠㈡㈢㈣㈤㈥㈦㈧㈨㈩��ⅠⅡⅢⅣⅤⅥⅦⅧⅨⅩⅪⅫ���".split(""),e=0;e!=t[162].length;++e)t[162][e].charCodeAt(0)!==65533&&(n[t[162][e]]=41472+e,o[41472+e]=t[162][e]);for(t[163]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������!"#¥%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|} ̄�".split(""),e=0;e!=t[163].length;++e)t[163][e].charCodeAt(0)!==65533&&(n[t[163][e]]=41728+e,o[41728+e]=t[163][e]);for(t[164]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ぁあぃいぅうぇえぉおかがきぎくぐけげこごさざしじすずせぜそぞただちぢっつづてでとどなにぬねのはばぱひびぴふぶぷへべぺほぼぽまみむめもゃやゅゆょよらりるれろゎわゐゑをん������������".split(""),e=0;e!=t[164].length;++e)t[164][e].charCodeAt(0)!==65533&&(n[t[164][e]]=41984+e,o[41984+e]=t[164][e]);for(t[165]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ァアィイゥウェエォオカガキギクグケゲコゴサザシジスズセゼソゾタダチヂッツヅテデトドナニヌネノハバパヒビピフブプヘベペホボポマミムメモャヤュユョヨラリルレロヮワヰヱヲンヴヵヶ���������".split(""),e=0;e!=t[165].length;++e)t[165][e].charCodeAt(0)!==65533&&(n[t[165][e]]=42240+e,o[42240+e]=t[165][e]);for(t[166]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩ��������αβγδεζηθικλμνξοπρστυφχψω���������������������������������������".split(""),e=0;e!=t[166].length;++e)t[166][e].charCodeAt(0)!==65533&&(n[t[166][e]]=42496+e,o[42496+e]=t[166][e]);for(t[167]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������АБВГДЕЁЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ���������������абвгдеёжзийклмнопрстуфхцчшщъыьэюя��������������".split(""),e=0;e!=t[167].length;++e)t[167][e].charCodeAt(0)!==65533&&(n[t[167][e]]=42752+e,o[42752+e]=t[167][e]);for(t[168]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������āáǎàēéěèīíǐìōóǒòūúǔùǖǘǚǜüê����������ㄅㄆㄇㄈㄉㄊㄋㄌㄍㄎㄏㄐㄑㄒㄓㄔㄕㄖㄗㄘㄙㄚㄛㄜㄝㄞㄟㄠㄡㄢㄣㄤㄥㄦㄧㄨㄩ����������������������".split(""),e=0;e!=t[168].length;++e)t[168][e].charCodeAt(0)!==65533&&(n[t[168][e]]=43008+e,o[43008+e]=t[168][e]);for(t[169]="��������������������������������������������������������������������������������������������������������������������������������������������������������������������─━│┃┄┅┆┇┈┉┊┋┌┍┎┏┐┑┒┓└┕┖┗┘┙┚┛├┝┞┟┠┡┢┣┤┥┦┧┨┩┪┫┬┭┮┯┰┱┲┳┴┵┶┷┸┹┺┻┼┽┾┿╀╁╂╃╄╅╆╇╈╉╊╋����������������".split(""),e=0;e!=t[169].length;++e)t[169][e].charCodeAt(0)!==65533&&(n[t[169][e]]=43264+e,o[43264+e]=t[169][e]);for(t[176]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啊阿埃挨哎唉哀皑癌蔼矮艾碍爱隘鞍氨安俺按暗岸胺案肮昂盎凹敖熬翱袄傲奥懊澳芭捌扒叭吧笆八疤巴拔跋靶把耙坝霸罢爸白柏百摆佰败拜稗斑班搬扳般颁板版扮拌伴瓣半办绊邦帮梆榜膀绑棒磅蚌镑傍谤苞胞包褒剥�".split(""),e=0;e!=t[176].length;++e)t[176][e].charCodeAt(0)!==65533&&(n[t[176][e]]=45056+e,o[45056+e]=t[176][e]);for(t[177]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������薄雹保堡饱宝抱报暴豹鲍爆杯碑悲卑北辈背贝钡倍狈备惫焙被奔苯本笨崩绷甭泵蹦迸逼鼻比鄙笔彼碧蓖蔽毕毙毖币庇痹闭敝弊必辟壁臂避陛鞭边编贬扁便变卞辨辩辫遍标彪膘表鳖憋别瘪彬斌濒滨宾摈兵冰柄丙秉饼炳�".split(""),e=0;e!=t[177].length;++e)t[177][e].charCodeAt(0)!==65533&&(n[t[177][e]]=45312+e,o[45312+e]=t[177][e]);for(t[178]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������病并玻菠播拨钵波博勃搏铂箔伯帛舶脖膊渤泊驳捕卜哺补埠不布步簿部怖擦猜裁材才财睬踩采彩菜蔡餐参蚕残惭惨灿苍舱仓沧藏操糙槽曹草厕策侧册测层蹭插叉茬茶查碴搽察岔差诧拆柴豺搀掺蝉馋谗缠铲产阐颤昌猖�".split(""),e=0;e!=t[178].length;++e)t[178][e].charCodeAt(0)!==65533&&(n[t[178][e]]=45568+e,o[45568+e]=t[178][e]);for(t[179]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������场尝常长偿肠厂敞畅唱倡超抄钞朝嘲潮巢吵炒车扯撤掣彻澈郴臣辰尘晨忱沉陈趁衬撑称城橙成呈乘程惩澄诚承逞骋秤吃痴持匙池迟弛驰耻齿侈尺赤翅斥炽充冲虫崇宠抽酬畴踌稠愁筹仇绸瞅丑臭初出橱厨躇锄雏滁除楚�".split(""),e=0;e!=t[179].length;++e)t[179][e].charCodeAt(0)!==65533&&(n[t[179][e]]=45824+e,o[45824+e]=t[179][e]);for(t[180]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������础储矗搐触处揣川穿椽传船喘串疮窗幢床闯创吹炊捶锤垂春椿醇唇淳纯蠢戳绰疵茨磁雌辞慈瓷词此刺赐次聪葱囱匆从丛凑粗醋簇促蹿篡窜摧崔催脆瘁粹淬翠村存寸磋撮搓措挫错搭达答瘩打大呆歹傣戴带殆代贷袋待逮�".split(""),e=0;e!=t[180].length;++e)t[180][e].charCodeAt(0)!==65533&&(n[t[180][e]]=46080+e,o[46080+e]=t[180][e]);for(t[181]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怠耽担丹单郸掸胆旦氮但惮淡诞弹蛋当挡党荡档刀捣蹈倒岛祷导到稻悼道盗德得的蹬灯登等瞪凳邓堤低滴迪敌笛狄涤翟嫡抵底地蒂第帝弟递缔颠掂滇碘点典靛垫电佃甸店惦奠淀殿碉叼雕凋刁掉吊钓调跌爹碟蝶迭谍叠�".split(""),e=0;e!=t[181].length;++e)t[181][e].charCodeAt(0)!==65533&&(n[t[181][e]]=46336+e,o[46336+e]=t[181][e]);for(t[182]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������丁盯叮钉顶鼎锭定订丢东冬董懂动栋侗恫冻洞兜抖斗陡豆逗痘都督毒犊独读堵睹赌杜镀肚度渡妒端短锻段断缎堆兑队对墩吨蹲敦顿囤钝盾遁掇哆多夺垛躲朵跺舵剁惰堕蛾峨鹅俄额讹娥恶厄扼遏鄂饿恩而儿耳尔饵洱二�".split(""),e=0;e!=t[182].length;++e)t[182][e].charCodeAt(0)!==65533&&(n[t[182][e]]=46592+e,o[46592+e]=t[182][e]);for(t[183]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������贰发罚筏伐乏阀法珐藩帆番翻樊矾钒繁凡烦反返范贩犯饭泛坊芳方肪房防妨仿访纺放菲非啡飞肥匪诽吠肺废沸费芬酚吩氛分纷坟焚汾粉奋份忿愤粪丰封枫蜂峰锋风疯烽逢冯缝讽奉凤佛否夫敷肤孵扶拂辐幅氟符伏俘服�".split(""),e=0;e!=t[183].length;++e)t[183][e].charCodeAt(0)!==65533&&(n[t[183][e]]=46848+e,o[46848+e]=t[183][e]);for(t[184]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浮涪福袱弗甫抚辅俯釜斧脯腑府腐赴副覆赋复傅付阜父腹负富讣附妇缚咐噶嘎该改概钙盖溉干甘杆柑竿肝赶感秆敢赣冈刚钢缸肛纲岗港杠篙皋高膏羔糕搞镐稿告哥歌搁戈鸽胳疙割革葛格蛤阁隔铬个各给根跟耕更庚羹�".split(""),e=0;e!=t[184].length;++e)t[184][e].charCodeAt(0)!==65533&&(n[t[184][e]]=47104+e,o[47104+e]=t[184][e]);for(t[185]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������埂耿梗工攻功恭龚供躬公宫弓巩汞拱贡共钩勾沟苟狗垢构购够辜菇咕箍估沽孤姑鼓古蛊骨谷股故顾固雇刮瓜剐寡挂褂乖拐怪棺关官冠观管馆罐惯灌贯光广逛瑰规圭硅归龟闺轨鬼诡癸桂柜跪贵刽辊滚棍锅郭国果裹过哈�".split(""),e=0;e!=t[185].length;++e)t[185][e].charCodeAt(0)!==65533&&(n[t[185][e]]=47360+e,o[47360+e]=t[185][e]);for(t[186]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������骸孩海氦亥害骇酣憨邯韩含涵寒函喊罕翰撼捍旱憾悍焊汗汉夯杭航壕嚎豪毫郝好耗号浩呵喝荷菏核禾和何合盒貉阂河涸赫褐鹤贺嘿黑痕很狠恨哼亨横衡恒轰哄烘虹鸿洪宏弘红喉侯猴吼厚候后呼乎忽瑚壶葫胡蝴狐糊湖�".split(""),e=0;e!=t[186].length;++e)t[186][e].charCodeAt(0)!==65533&&(n[t[186][e]]=47616+e,o[47616+e]=t[186][e]);for(t[187]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������弧虎唬护互沪户花哗华猾滑画划化话槐徊怀淮坏欢环桓还缓换患唤痪豢焕涣宦幻荒慌黄磺蝗簧皇凰惶煌晃幌恍谎灰挥辉徽恢蛔回毁悔慧卉惠晦贿秽会烩汇讳诲绘荤昏婚魂浑混豁活伙火获或惑霍货祸击圾基机畸稽积箕�".split(""),e=0;e!=t[187].length;++e)t[187][e].charCodeAt(0)!==65533&&(n[t[187][e]]=47872+e,o[47872+e]=t[187][e]);for(t[188]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������肌饥迹激讥鸡姬绩缉吉极棘辑籍集及急疾汲即嫉级挤几脊己蓟技冀季伎祭剂悸济寄寂计记既忌际妓继纪嘉枷夹佳家加荚颊贾甲钾假稼价架驾嫁歼监坚尖笺间煎兼肩艰奸缄茧检柬碱硷拣捡简俭剪减荐槛鉴践贱见键箭件�".split(""),e=0;e!=t[188].length;++e)t[188][e].charCodeAt(0)!==65533&&(n[t[188][e]]=48128+e,o[48128+e]=t[188][e]);for(t[189]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������健舰剑饯渐溅涧建僵姜将浆江疆蒋桨奖讲匠酱降蕉椒礁焦胶交郊浇骄娇嚼搅铰矫侥脚狡角饺缴绞剿教酵轿较叫窖揭接皆秸街阶截劫节桔杰捷睫竭洁结解姐戒藉芥界借介疥诫届巾筋斤金今津襟紧锦仅谨进靳晋禁近烬浸�".split(""),e=0;e!=t[189].length;++e)t[189][e].charCodeAt(0)!==65533&&(n[t[189][e]]=48384+e,o[48384+e]=t[189][e]);for(t[190]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������尽劲荆兢茎睛晶鲸京惊精粳经井警景颈静境敬镜径痉靖竟竞净炯窘揪究纠玖韭久灸九酒厩救旧臼舅咎就疚鞠拘狙疽居驹菊局咀矩举沮聚拒据巨具距踞锯俱句惧炬剧捐鹃娟倦眷卷绢撅攫抉掘倔爵觉决诀绝均菌钧军君峻�".split(""),e=0;e!=t[190].length;++e)t[190][e].charCodeAt(0)!==65533&&(n[t[190][e]]=48640+e,o[48640+e]=t[190][e]);for(t[191]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������俊竣浚郡骏喀咖卡咯开揩楷凯慨刊堪勘坎砍看康慷糠扛抗亢炕考拷烤靠坷苛柯棵磕颗科壳咳可渴克刻客课肯啃垦恳坑吭空恐孔控抠口扣寇枯哭窟苦酷库裤夸垮挎跨胯块筷侩快宽款匡筐狂框矿眶旷况亏盔岿窥葵奎魁傀�".split(""),e=0;e!=t[191].length;++e)t[191][e].charCodeAt(0)!==65533&&(n[t[191][e]]=48896+e,o[48896+e]=t[191][e]);for(t[192]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������馈愧溃坤昆捆困括扩廓阔垃拉喇蜡腊辣啦莱来赖蓝婪栏拦篮阑兰澜谰揽览懒缆烂滥琅榔狼廊郎朗浪捞劳牢老佬姥酪烙涝勒乐雷镭蕾磊累儡垒擂肋类泪棱楞冷厘梨犁黎篱狸离漓理李里鲤礼莉荔吏栗丽厉励砾历利傈例俐�".split(""),e=0;e!=t[192].length;++e)t[192][e].charCodeAt(0)!==65533&&(n[t[192][e]]=49152+e,o[49152+e]=t[192][e]);for(t[193]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������痢立粒沥隶力璃哩俩联莲连镰廉怜涟帘敛脸链恋炼练粮凉梁粱良两辆量晾亮谅撩聊僚疗燎寥辽潦了撂镣廖料列裂烈劣猎琳林磷霖临邻鳞淋凛赁吝拎玲菱零龄铃伶羚凌灵陵岭领另令溜琉榴硫馏留刘瘤流柳六龙聋咙笼窿�".split(""),e=0;e!=t[193].length;++e)t[193][e].charCodeAt(0)!==65533&&(n[t[193][e]]=49408+e,o[49408+e]=t[193][e]);for(t[194]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������隆垄拢陇楼娄搂篓漏陋芦卢颅庐炉掳卤虏鲁麓碌露路赂鹿潞禄录陆戮驴吕铝侣旅履屡缕虑氯律率滤绿峦挛孪滦卵乱掠略抡轮伦仑沦纶论萝螺罗逻锣箩骡裸落洛骆络妈麻玛码蚂马骂嘛吗埋买麦卖迈脉瞒馒蛮满蔓曼慢漫�".split(""),e=0;e!=t[194].length;++e)t[194][e].charCodeAt(0)!==65533&&(n[t[194][e]]=49664+e,o[49664+e]=t[194][e]);for(t[195]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������谩芒茫盲氓忙莽猫茅锚毛矛铆卯茂冒帽貌贸么玫枚梅酶霉煤没眉媒镁每美昧寐妹媚门闷们萌蒙檬盟锰猛梦孟眯醚靡糜迷谜弥米秘觅泌蜜密幂棉眠绵冕免勉娩缅面苗描瞄藐秒渺庙妙蔑灭民抿皿敏悯闽明螟鸣铭名命谬摸�".split(""),e=0;e!=t[195].length;++e)t[195][e].charCodeAt(0)!==65533&&(n[t[195][e]]=49920+e,o[49920+e]=t[195][e]);for(t[196]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摹蘑模膜磨摩魔抹末莫墨默沫漠寞陌谋牟某拇牡亩姆母墓暮幕募慕木目睦牧穆拿哪呐钠那娜纳氖乃奶耐奈南男难囊挠脑恼闹淖呢馁内嫩能妮霓倪泥尼拟你匿腻逆溺蔫拈年碾撵捻念娘酿鸟尿捏聂孽啮镊镍涅您柠狞凝宁�".split(""),e=0;e!=t[196].length;++e)t[196][e].charCodeAt(0)!==65533&&(n[t[196][e]]=50176+e,o[50176+e]=t[196][e]);for(t[197]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������拧泞牛扭钮纽脓浓农弄奴努怒女暖虐疟挪懦糯诺哦欧鸥殴藕呕偶沤啪趴爬帕怕琶拍排牌徘湃派攀潘盘磐盼畔判叛乓庞旁耪胖抛咆刨炮袍跑泡呸胚培裴赔陪配佩沛喷盆砰抨烹澎彭蓬棚硼篷膨朋鹏捧碰坯砒霹批披劈琵毗�".split(""),e=0;e!=t[197].length;++e)t[197][e].charCodeAt(0)!==65533&&(n[t[197][e]]=50432+e,o[50432+e]=t[197][e]);for(t[198]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������啤脾疲皮匹痞僻屁譬篇偏片骗飘漂瓢票撇瞥拼频贫品聘乒坪苹萍平凭瓶评屏坡泼颇婆破魄迫粕剖扑铺仆莆葡菩蒲埔朴圃普浦谱曝瀑期欺栖戚妻七凄漆柒沏其棋奇歧畦崎脐齐旗祈祁骑起岂乞企启契砌器气迄弃汽泣讫掐�".split(""),e=0;e!=t[198].length;++e)t[198][e].charCodeAt(0)!==65533&&(n[t[198][e]]=50688+e,o[50688+e]=t[198][e]);for(t[199]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恰洽牵扦钎铅千迁签仟谦乾黔钱钳前潜遣浅谴堑嵌欠歉枪呛腔羌墙蔷强抢橇锹敲悄桥瞧乔侨巧鞘撬翘峭俏窍切茄且怯窃钦侵亲秦琴勤芹擒禽寝沁青轻氢倾卿清擎晴氰情顷请庆琼穷秋丘邱球求囚酋泅趋区蛆曲躯屈驱渠�".split(""),e=0;e!=t[199].length;++e)t[199][e].charCodeAt(0)!==65533&&(n[t[199][e]]=50944+e,o[50944+e]=t[199][e]);for(t[200]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������取娶龋趣去圈颧权醛泉全痊拳犬券劝缺炔瘸却鹊榷确雀裙群然燃冉染瓤壤攘嚷让饶扰绕惹热壬仁人忍韧任认刃妊纫扔仍日戎茸蓉荣融熔溶容绒冗揉柔肉茹蠕儒孺如辱乳汝入褥软阮蕊瑞锐闰润若弱撒洒萨腮鳃塞赛三叁�".split(""),e=0;e!=t[200].length;++e)t[200][e].charCodeAt(0)!==65533&&(n[t[200][e]]=51200+e,o[51200+e]=t[200][e]);for(t[201]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������伞散桑嗓丧搔骚扫嫂瑟色涩森僧莎砂杀刹沙纱傻啥煞筛晒珊苫杉山删煽衫闪陕擅赡膳善汕扇缮墒伤商赏晌上尚裳梢捎稍烧芍勺韶少哨邵绍奢赊蛇舌舍赦摄射慑涉社设砷申呻伸身深娠绅神沈审婶甚肾慎渗声生甥牲升绳�".split(""),e=0;e!=t[201].length;++e)t[201][e].charCodeAt(0)!==65533&&(n[t[201][e]]=51456+e,o[51456+e]=t[201][e]);for(t[202]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������省盛剩胜圣师失狮施湿诗尸虱十石拾时什食蚀实识史矢使屎驶始式示士世柿事拭誓逝势是嗜噬适仕侍释饰氏市恃室视试收手首守寿授售受瘦兽蔬枢梳殊抒输叔舒淑疏书赎孰熟薯暑曙署蜀黍鼠属术述树束戍竖墅庶数漱�".split(""),e=0;e!=t[202].length;++e)t[202][e].charCodeAt(0)!==65533&&(n[t[202][e]]=51712+e,o[51712+e]=t[202][e]);for(t[203]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恕刷耍摔衰甩帅栓拴霜双爽谁水睡税吮瞬顺舜说硕朔烁斯撕嘶思私司丝死肆寺嗣四伺似饲巳松耸怂颂送宋讼诵搜艘擞嗽苏酥俗素速粟僳塑溯宿诉肃酸蒜算虽隋随绥髓碎岁穗遂隧祟孙损笋蓑梭唆缩琐索锁所塌他它她塔�".split(""),e=0;e!=t[203].length;++e)t[203][e].charCodeAt(0)!==65533&&(n[t[203][e]]=51968+e,o[51968+e]=t[203][e]);for(t[204]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������獭挞蹋踏胎苔抬台泰酞太态汰坍摊贪瘫滩坛檀痰潭谭谈坦毯袒碳探叹炭汤塘搪堂棠膛唐糖倘躺淌趟烫掏涛滔绦萄桃逃淘陶讨套特藤腾疼誊梯剔踢锑提题蹄啼体替嚏惕涕剃屉天添填田甜恬舔腆挑条迢眺跳贴铁帖厅听烃�".split(""),e=0;e!=t[204].length;++e)t[204][e].charCodeAt(0)!==65533&&(n[t[204][e]]=52224+e,o[52224+e]=t[204][e]);for(t[205]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������汀廷停亭庭挺艇通桐酮瞳同铜彤童桶捅筒统痛偷投头透凸秃突图徒途涂屠土吐兔湍团推颓腿蜕褪退吞屯臀拖托脱鸵陀驮驼椭妥拓唾挖哇蛙洼娃瓦袜歪外豌弯湾玩顽丸烷完碗挽晚皖惋宛婉万腕汪王亡枉网往旺望忘妄威�".split(""),e=0;e!=t[205].length;++e)t[205][e].charCodeAt(0)!==65533&&(n[t[205][e]]=52480+e,o[52480+e]=t[205][e]);for(t[206]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������巍微危韦违桅围唯惟为潍维苇萎委伟伪尾纬未蔚味畏胃喂魏位渭谓尉慰卫瘟温蚊文闻纹吻稳紊问嗡翁瓮挝蜗涡窝我斡卧握沃巫呜钨乌污诬屋无芜梧吾吴毋武五捂午舞伍侮坞戊雾晤物勿务悟误昔熙析西硒矽晰嘻吸锡牺�".split(""),e=0;e!=t[206].length;++e)t[206][e].charCodeAt(0)!==65533&&(n[t[206][e]]=52736+e,o[52736+e]=t[206][e]);for(t[207]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稀息希悉膝夕惜熄烯溪汐犀檄袭席习媳喜铣洗系隙戏细瞎虾匣霞辖暇峡侠狭下厦夏吓掀锨先仙鲜纤咸贤衔舷闲涎弦嫌显险现献县腺馅羡宪陷限线相厢镶香箱襄湘乡翔祥详想响享项巷橡像向象萧硝霄削哮嚣销消宵淆晓�".split(""),e=0;e!=t[207].length;++e)t[207][e].charCodeAt(0)!==65533&&(n[t[207][e]]=52992+e,o[52992+e]=t[207][e]);for(t[208]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������小孝校肖啸笑效楔些歇蝎鞋协挟携邪斜胁谐写械卸蟹懈泄泻谢屑薪芯锌欣辛新忻心信衅星腥猩惺兴刑型形邢行醒幸杏性姓兄凶胸匈汹雄熊休修羞朽嗅锈秀袖绣墟戌需虚嘘须徐许蓄酗叙旭序畜恤絮婿绪续轩喧宣悬旋玄�".split(""),e=0;e!=t[208].length;++e)t[208][e].charCodeAt(0)!==65533&&(n[t[208][e]]=53248+e,o[53248+e]=t[208][e]);for(t[209]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������选癣眩绚靴薛学穴雪血勋熏循旬询寻驯巡殉汛训讯逊迅压押鸦鸭呀丫芽牙蚜崖衙涯雅哑亚讶焉咽阉烟淹盐严研蜒岩延言颜阎炎沿奄掩眼衍演艳堰燕厌砚雁唁彦焰宴谚验殃央鸯秧杨扬佯疡羊洋阳氧仰痒养样漾邀腰妖瑶�".split(""),e=0;e!=t[209].length;++e)t[209][e].charCodeAt(0)!==65533&&(n[t[209][e]]=53504+e,o[53504+e]=t[209][e]);for(t[210]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摇尧遥窑谣姚咬舀药要耀椰噎耶爷野冶也页掖业叶曳腋夜液一壹医揖铱依伊衣颐夷遗移仪胰疑沂宜姨彝椅蚁倚已乙矣以艺抑易邑屹亿役臆逸肄疫亦裔意毅忆义益溢诣议谊译异翼翌绎茵荫因殷音阴姻吟银淫寅饮尹引隐�".split(""),e=0;e!=t[210].length;++e)t[210][e].charCodeAt(0)!==65533&&(n[t[210][e]]=53760+e,o[53760+e]=t[210][e]);for(t[211]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������印英樱婴鹰应缨莹萤营荧蝇迎赢盈影颖硬映哟拥佣臃痈庸雍踊蛹咏泳涌永恿勇用幽优悠忧尤由邮铀犹油游酉有友右佑釉诱又幼迂淤于盂榆虞愚舆余俞逾鱼愉渝渔隅予娱雨与屿禹宇语羽玉域芋郁吁遇喻峪御愈欲狱育誉�".split(""),e=0;e!=t[211].length;++e)t[211][e].charCodeAt(0)!==65533&&(n[t[211][e]]=54016+e,o[54016+e]=t[211][e]);for(t[212]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������浴寓裕预豫驭鸳渊冤元垣袁原援辕园员圆猿源缘远苑愿怨院曰约越跃钥岳粤月悦阅耘云郧匀陨允运蕴酝晕韵孕匝砸杂栽哉灾宰载再在咱攒暂赞赃脏葬遭糟凿藻枣早澡蚤躁噪造皂灶燥责择则泽贼怎增憎曾赠扎喳渣札轧�".split(""),e=0;e!=t[212].length;++e)t[212][e].charCodeAt(0)!==65533&&(n[t[212][e]]=54272+e,o[54272+e]=t[212][e]);for(t[213]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铡闸眨栅榨咋乍炸诈摘斋宅窄债寨瞻毡詹粘沾盏斩辗崭展蘸栈占战站湛绽樟章彰漳张掌涨杖丈帐账仗胀瘴障招昭找沼赵照罩兆肇召遮折哲蛰辙者锗蔗这浙珍斟真甄砧臻贞针侦枕疹诊震振镇阵蒸挣睁征狰争怔整拯正政�".split(""),e=0;e!=t[213].length;++e)t[213][e].charCodeAt(0)!==65533&&(n[t[213][e]]=54528+e,o[54528+e]=t[213][e]);for(t[214]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帧症郑证芝枝支吱蜘知肢脂汁之织职直植殖执值侄址指止趾只旨纸志挚掷至致置帜峙制智秩稚质炙痔滞治窒中盅忠钟衷终种肿重仲众舟周州洲诌粥轴肘帚咒皱宙昼骤珠株蛛朱猪诸诛逐竹烛煮拄瞩嘱主著柱助蛀贮铸筑�".split(""),e=0;e!=t[214].length;++e)t[214][e].charCodeAt(0)!==65533&&(n[t[214][e]]=54784+e,o[54784+e]=t[214][e]);for(t[215]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������住注祝驻抓爪拽专砖转撰赚篆桩庄装妆撞壮状椎锥追赘坠缀谆准捉拙卓桌琢茁酌啄着灼浊兹咨资姿滋淄孜紫仔籽滓子自渍字鬃棕踪宗综总纵邹走奏揍租足卒族祖诅阻组钻纂嘴醉最罪尊遵昨左佐柞做作坐座������".split(""),e=0;e!=t[215].length;++e)t[215][e].charCodeAt(0)!==65533&&(n[t[215][e]]=55040+e,o[55040+e]=t[215][e]);for(t[216]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������亍丌兀丐廿卅丕亘丞鬲孬噩丨禺丿匕乇夭爻卮氐囟胤馗毓睾鼗丶亟鼐乜乩亓芈孛啬嘏仄厍厝厣厥厮靥赝匚叵匦匮匾赜卦卣刂刈刎刭刳刿剀剌剞剡剜蒯剽劂劁劐劓冂罔亻仃仉仂仨仡仫仞伛仳伢佤仵伥伧伉伫佞佧攸佚佝�".split(""),e=0;e!=t[216].length;++e)t[216][e].charCodeAt(0)!==65533&&(n[t[216][e]]=55296+e,o[55296+e]=t[216][e]);for(t[217]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������佟佗伲伽佶佴侑侉侃侏佾佻侪佼侬侔俦俨俪俅俚俣俜俑俟俸倩偌俳倬倏倮倭俾倜倌倥倨偾偃偕偈偎偬偻傥傧傩傺僖儆僭僬僦僮儇儋仝氽佘佥俎龠汆籴兮巽黉馘冁夔勹匍訇匐凫夙兕亠兖亳衮袤亵脔裒禀嬴蠃羸冫冱冽冼�".split(""),e=0;e!=t[217].length;++e)t[217][e].charCodeAt(0)!==65533&&(n[t[217][e]]=55552+e,o[55552+e]=t[217][e]);for(t[218]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������凇冖冢冥讠讦讧讪讴讵讷诂诃诋诏诎诒诓诔诖诘诙诜诟诠诤诨诩诮诰诳诶诹诼诿谀谂谄谇谌谏谑谒谔谕谖谙谛谘谝谟谠谡谥谧谪谫谮谯谲谳谵谶卩卺阝阢阡阱阪阽阼陂陉陔陟陧陬陲陴隈隍隗隰邗邛邝邙邬邡邴邳邶邺�".split(""),e=0;e!=t[218].length;++e)t[218][e].charCodeAt(0)!==65533&&(n[t[218][e]]=55808+e,o[55808+e]=t[218][e]);for(t[219]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������邸邰郏郅邾郐郄郇郓郦郢郜郗郛郫郯郾鄄鄢鄞鄣鄱鄯鄹酃酆刍奂劢劬劭劾哿勐勖勰叟燮矍廴凵凼鬯厶弁畚巯坌垩垡塾墼壅壑圩圬圪圳圹圮圯坜圻坂坩垅坫垆坼坻坨坭坶坳垭垤垌垲埏垧垴垓垠埕埘埚埙埒垸埴埯埸埤埝�".split(""),e=0;e!=t[219].length;++e)t[219][e].charCodeAt(0)!==65533&&(n[t[219][e]]=56064+e,o[56064+e]=t[219][e]);for(t[220]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������堋堍埽埭堀堞堙塄堠塥塬墁墉墚墀馨鼙懿艹艽艿芏芊芨芄芎芑芗芙芫芸芾芰苈苊苣芘芷芮苋苌苁芩芴芡芪芟苄苎芤苡茉苷苤茏茇苜苴苒苘茌苻苓茑茚茆茔茕苠苕茜荑荛荜茈莒茼茴茱莛荞茯荏荇荃荟荀茗荠茭茺茳荦荥�".split(""),e=0;e!=t[220].length;++e)t[220][e].charCodeAt(0)!==65533&&(n[t[220][e]]=56320+e,o[56320+e]=t[220][e]);for(t[221]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������荨茛荩荬荪荭荮莰荸莳莴莠莪莓莜莅荼莶莩荽莸荻莘莞莨莺莼菁萁菥菘堇萘萋菝菽菖萜萸萑萆菔菟萏萃菸菹菪菅菀萦菰菡葜葑葚葙葳蒇蒈葺蒉葸萼葆葩葶蒌蒎萱葭蓁蓍蓐蓦蒽蓓蓊蒿蒺蓠蒡蒹蒴蒗蓥蓣蔌甍蔸蓰蔹蔟蔺�".split(""),e=0;e!=t[221].length;++e)t[221][e].charCodeAt(0)!==65533&&(n[t[221][e]]=56576+e,o[56576+e]=t[221][e]);for(t[222]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蕖蔻蓿蓼蕙蕈蕨蕤蕞蕺瞢蕃蕲蕻薤薨薇薏蕹薮薜薅薹薷薰藓藁藜藿蘧蘅蘩蘖蘼廾弈夼奁耷奕奚奘匏尢尥尬尴扌扪抟抻拊拚拗拮挢拶挹捋捃掭揶捱捺掎掴捭掬掊捩掮掼揲揸揠揿揄揞揎摒揆掾摅摁搋搛搠搌搦搡摞撄摭撖�".split(""),e=0;e!=t[222].length;++e)t[222][e].charCodeAt(0)!==65533&&(n[t[222][e]]=56832+e,o[56832+e]=t[222][e]);for(t[223]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������摺撷撸撙撺擀擐擗擤擢攉攥攮弋忒甙弑卟叱叽叩叨叻吒吖吆呋呒呓呔呖呃吡呗呙吣吲咂咔呷呱呤咚咛咄呶呦咝哐咭哂咴哒咧咦哓哔呲咣哕咻咿哌哙哚哜咩咪咤哝哏哞唛哧唠哽唔哳唢唣唏唑唧唪啧喏喵啉啭啁啕唿啐唼�".split(""),e=0;e!=t[223].length;++e)t[223][e].charCodeAt(0)!==65533&&(n[t[223][e]]=57088+e,o[57088+e]=t[223][e]);for(t[224]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������唷啖啵啶啷唳唰啜喋嗒喃喱喹喈喁喟啾嗖喑啻嗟喽喾喔喙嗪嗷嗉嘟嗑嗫嗬嗔嗦嗝嗄嗯嗥嗲嗳嗌嗍嗨嗵嗤辔嘞嘈嘌嘁嘤嘣嗾嘀嘧嘭噘嘹噗嘬噍噢噙噜噌噔嚆噤噱噫噻噼嚅嚓嚯囔囗囝囡囵囫囹囿圄圊圉圜帏帙帔帑帱帻帼�".split(""),e=0;e!=t[224].length;++e)t[224][e].charCodeAt(0)!==65533&&(n[t[224][e]]=57344+e,o[57344+e]=t[224][e]);for(t[225]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������帷幄幔幛幞幡岌屺岍岐岖岈岘岙岑岚岜岵岢岽岬岫岱岣峁岷峄峒峤峋峥崂崃崧崦崮崤崞崆崛嵘崾崴崽嵬嵛嵯嵝嵫嵋嵊嵩嵴嶂嶙嶝豳嶷巅彳彷徂徇徉後徕徙徜徨徭徵徼衢彡犭犰犴犷犸狃狁狎狍狒狨狯狩狲狴狷猁狳猃狺�".split(""),e=0;e!=t[225].length;++e)t[225][e].charCodeAt(0)!==65533&&(n[t[225][e]]=57600+e,o[57600+e]=t[225][e]);for(t[226]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������狻猗猓猡猊猞猝猕猢猹猥猬猸猱獐獍獗獠獬獯獾舛夥飧夤夂饣饧饨饩饪饫饬饴饷饽馀馄馇馊馍馐馑馓馔馕庀庑庋庖庥庠庹庵庾庳赓廒廑廛廨廪膺忄忉忖忏怃忮怄忡忤忾怅怆忪忭忸怙怵怦怛怏怍怩怫怊怿怡恸恹恻恺恂�".split(""),e=0;e!=t[226].length;++e)t[226][e].charCodeAt(0)!==65533&&(n[t[226][e]]=57856+e,o[57856+e]=t[226][e]);for(t[227]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������恪恽悖悚悭悝悃悒悌悛惬悻悱惝惘惆惚悴愠愦愕愣惴愀愎愫慊慵憬憔憧憷懔懵忝隳闩闫闱闳闵闶闼闾阃阄阆阈阊阋阌阍阏阒阕阖阗阙阚丬爿戕氵汔汜汊沣沅沐沔沌汨汩汴汶沆沩泐泔沭泷泸泱泗沲泠泖泺泫泮沱泓泯泾�".split(""),e=0;e!=t[227].length;++e)t[227][e].charCodeAt(0)!==65533&&(n[t[227][e]]=58112+e,o[58112+e]=t[227][e]);for(t[228]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������洹洧洌浃浈洇洄洙洎洫浍洮洵洚浏浒浔洳涑浯涞涠浞涓涔浜浠浼浣渚淇淅淞渎涿淠渑淦淝淙渖涫渌涮渫湮湎湫溲湟溆湓湔渲渥湄滟溱溘滠漭滢溥溧溽溻溷滗溴滏溏滂溟潢潆潇漤漕滹漯漶潋潴漪漉漩澉澍澌潸潲潼潺濑�".split(""),e=0;e!=t[228].length;++e)t[228][e].charCodeAt(0)!==65533&&(n[t[228][e]]=58368+e,o[58368+e]=t[228][e]);for(t[229]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������濉澧澹澶濂濡濮濞濠濯瀚瀣瀛瀹瀵灏灞宀宄宕宓宥宸甯骞搴寤寮褰寰蹇謇辶迓迕迥迮迤迩迦迳迨逅逄逋逦逑逍逖逡逵逶逭逯遄遑遒遐遨遘遢遛暹遴遽邂邈邃邋彐彗彖彘尻咫屐屙孱屣屦羼弪弩弭艴弼鬻屮妁妃妍妩妪妣�".split(""),e=0;e!=t[229].length;++e)t[229][e].charCodeAt(0)!==65533&&(n[t[229][e]]=58624+e,o[58624+e]=t[229][e]);for(t[230]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������妗姊妫妞妤姒妲妯姗妾娅娆姝娈姣姘姹娌娉娲娴娑娣娓婀婧婊婕娼婢婵胬媪媛婷婺媾嫫媲嫒嫔媸嫠嫣嫱嫖嫦嫘嫜嬉嬗嬖嬲嬷孀尕尜孚孥孳孑孓孢驵驷驸驺驿驽骀骁骅骈骊骐骒骓骖骘骛骜骝骟骠骢骣骥骧纟纡纣纥纨纩�".split(""),e=0;e!=t[230].length;++e)t[230][e].charCodeAt(0)!==65533&&(n[t[230][e]]=58880+e,o[58880+e]=t[230][e]);for(t[231]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������纭纰纾绀绁绂绉绋绌绐绔绗绛绠绡绨绫绮绯绱绲缍绶绺绻绾缁缂缃缇缈缋缌缏缑缒缗缙缜缛缟缡缢缣缤缥缦缧缪缫缬缭缯缰缱缲缳缵幺畿巛甾邕玎玑玮玢玟珏珂珑玷玳珀珉珈珥珙顼琊珩珧珞玺珲琏琪瑛琦琥琨琰琮琬�".split(""),e=0;e!=t[231].length;++e)t[231][e].charCodeAt(0)!==65533&&(n[t[231][e]]=59136+e,o[59136+e]=t[231][e]);for(t[232]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������琛琚瑁瑜瑗瑕瑙瑷瑭瑾璜璎璀璁璇璋璞璨璩璐璧瓒璺韪韫韬杌杓杞杈杩枥枇杪杳枘枧杵枨枞枭枋杷杼柰栉柘栊柩枰栌柙枵柚枳柝栀柃枸柢栎柁柽栲栳桠桡桎桢桄桤梃栝桕桦桁桧桀栾桊桉栩梵梏桴桷梓桫棂楮棼椟椠棹�".split(""),e=0;e!=t[232].length;++e)t[232][e].charCodeAt(0)!==65533&&(n[t[232][e]]=59392+e,o[59392+e]=t[232][e]);for(t[233]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������椤棰椋椁楗棣椐楱椹楠楂楝榄楫榀榘楸椴槌榇榈槎榉楦楣楹榛榧榻榫榭槔榱槁槊槟榕槠榍槿樯槭樗樘橥槲橄樾檠橐橛樵檎橹樽樨橘橼檑檐檩檗檫猷獒殁殂殇殄殒殓殍殚殛殡殪轫轭轱轲轳轵轶轸轷轹轺轼轾辁辂辄辇辋�".split(""),e=0;e!=t[233].length;++e)t[233][e].charCodeAt(0)!==65533&&(n[t[233][e]]=59648+e,o[59648+e]=t[233][e]);for(t[234]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������辍辎辏辘辚軎戋戗戛戟戢戡戥戤戬臧瓯瓴瓿甏甑甓攴旮旯旰昊昙杲昃昕昀炅曷昝昴昱昶昵耆晟晔晁晏晖晡晗晷暄暌暧暝暾曛曜曦曩贲贳贶贻贽赀赅赆赈赉赇赍赕赙觇觊觋觌觎觏觐觑牮犟牝牦牯牾牿犄犋犍犏犒挈挲掰�".split(""),e=0;e!=t[234].length;++e)t[234][e].charCodeAt(0)!==65533&&(n[t[234][e]]=59904+e,o[59904+e]=t[234][e]);for(t[235]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������搿擘耄毪毳毽毵毹氅氇氆氍氕氘氙氚氡氩氤氪氲攵敕敫牍牒牖爰虢刖肟肜肓肼朊肽肱肫肭肴肷胧胨胩胪胛胂胄胙胍胗朐胝胫胱胴胭脍脎胲胼朕脒豚脶脞脬脘脲腈腌腓腴腙腚腱腠腩腼腽腭腧塍媵膈膂膑滕膣膪臌朦臊膻�".split(""),e=0;e!=t[235].length;++e)t[235][e].charCodeAt(0)!==65533&&(n[t[235][e]]=60160+e,o[60160+e]=t[235][e]);for(t[236]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������臁膦欤欷欹歃歆歙飑飒飓飕飙飚殳彀毂觳斐齑斓於旆旄旃旌旎旒旖炀炜炖炝炻烀炷炫炱烨烊焐焓焖焯焱煳煜煨煅煲煊煸煺熘熳熵熨熠燠燔燧燹爝爨灬焘煦熹戾戽扃扈扉礻祀祆祉祛祜祓祚祢祗祠祯祧祺禅禊禚禧禳忑忐�".split(""),e=0;e!=t[236].length;++e)t[236][e].charCodeAt(0)!==65533&&(n[t[236][e]]=60416+e,o[60416+e]=t[236][e]);for(t[237]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������怼恝恚恧恁恙恣悫愆愍慝憩憝懋懑戆肀聿沓泶淼矶矸砀砉砗砘砑斫砭砜砝砹砺砻砟砼砥砬砣砩硎硭硖硗砦硐硇硌硪碛碓碚碇碜碡碣碲碹碥磔磙磉磬磲礅磴礓礤礞礴龛黹黻黼盱眄眍盹眇眈眚眢眙眭眦眵眸睐睑睇睃睚睨�".split(""),e=0;e!=t[237].length;++e)t[237][e].charCodeAt(0)!==65533&&(n[t[237][e]]=60672+e,o[60672+e]=t[237][e]);for(t[238]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������睢睥睿瞍睽瞀瞌瞑瞟瞠瞰瞵瞽町畀畎畋畈畛畲畹疃罘罡罟詈罨罴罱罹羁罾盍盥蠲钅钆钇钋钊钌钍钏钐钔钗钕钚钛钜钣钤钫钪钭钬钯钰钲钴钶钷钸钹钺钼钽钿铄铈铉铊铋铌铍铎铐铑铒铕铖铗铙铘铛铞铟铠铢铤铥铧铨铪�".split(""),e=0;e!=t[238].length;++e)t[238][e].charCodeAt(0)!==65533&&(n[t[238][e]]=60928+e,o[60928+e]=t[238][e]);for(t[239]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������铩铫铮铯铳铴铵铷铹铼铽铿锃锂锆锇锉锊锍锎锏锒锓锔锕锖锘锛锝锞锟锢锪锫锩锬锱锲锴锶锷锸锼锾锿镂锵镄镅镆镉镌镎镏镒镓镔镖镗镘镙镛镞镟镝镡镢镤镥镦镧镨镩镪镫镬镯镱镲镳锺矧矬雉秕秭秣秫稆嵇稃稂稞稔�".split(""),e=0;e!=t[239].length;++e)t[239][e].charCodeAt(0)!==65533&&(n[t[239][e]]=61184+e,o[61184+e]=t[239][e]);for(t[240]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������稹稷穑黏馥穰皈皎皓皙皤瓞瓠甬鸠鸢鸨鸩鸪鸫鸬鸲鸱鸶鸸鸷鸹鸺鸾鹁鹂鹄鹆鹇鹈鹉鹋鹌鹎鹑鹕鹗鹚鹛鹜鹞鹣鹦鹧鹨鹩鹪鹫鹬鹱鹭鹳疒疔疖疠疝疬疣疳疴疸痄疱疰痃痂痖痍痣痨痦痤痫痧瘃痱痼痿瘐瘀瘅瘌瘗瘊瘥瘘瘕瘙�".split(""),e=0;e!=t[240].length;++e)t[240][e].charCodeAt(0)!==65533&&(n[t[240][e]]=61440+e,o[61440+e]=t[240][e]);for(t[241]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������瘛瘼瘢瘠癀瘭瘰瘿瘵癃瘾瘳癍癞癔癜癖癫癯翊竦穸穹窀窆窈窕窦窠窬窨窭窳衤衩衲衽衿袂袢裆袷袼裉裢裎裣裥裱褚裼裨裾裰褡褙褓褛褊褴褫褶襁襦襻疋胥皲皴矜耒耔耖耜耠耢耥耦耧耩耨耱耋耵聃聆聍聒聩聱覃顸颀颃�".split(""),e=0;e!=t[241].length;++e)t[241][e].charCodeAt(0)!==65533&&(n[t[241][e]]=61696+e,o[61696+e]=t[241][e]);for(t[242]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������颉颌颍颏颔颚颛颞颟颡颢颥颦虍虔虬虮虿虺虼虻蚨蚍蚋蚬蚝蚧蚣蚪蚓蚩蚶蛄蚵蛎蚰蚺蚱蚯蛉蛏蚴蛩蛱蛲蛭蛳蛐蜓蛞蛴蛟蛘蛑蜃蜇蛸蜈蜊蜍蜉蜣蜻蜞蜥蜮蜚蜾蝈蜴蜱蜩蜷蜿螂蜢蝽蝾蝻蝠蝰蝌蝮螋蝓蝣蝼蝤蝙蝥螓螯螨蟒�".split(""),e=0;e!=t[242].length;++e)t[242][e].charCodeAt(0)!==65533&&(n[t[242][e]]=61952+e,o[61952+e]=t[242][e]);for(t[243]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������蟆螈螅螭螗螃螫蟥螬螵螳蟋蟓螽蟑蟀蟊蟛蟪蟠蟮蠖蠓蟾蠊蠛蠡蠹蠼缶罂罄罅舐竺竽笈笃笄笕笊笫笏筇笸笪笙笮笱笠笥笤笳笾笞筘筚筅筵筌筝筠筮筻筢筲筱箐箦箧箸箬箝箨箅箪箜箢箫箴篑篁篌篝篚篥篦篪簌篾篼簏簖簋�".split(""),e=0;e!=t[243].length;++e)t[243][e].charCodeAt(0)!==65533&&(n[t[243][e]]=62208+e,o[62208+e]=t[243][e]);for(t[244]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������簟簪簦簸籁籀臾舁舂舄臬衄舡舢舣舭舯舨舫舸舻舳舴舾艄艉艋艏艚艟艨衾袅袈裘裟襞羝羟羧羯羰羲籼敉粑粝粜粞粢粲粼粽糁糇糌糍糈糅糗糨艮暨羿翎翕翥翡翦翩翮翳糸絷綦綮繇纛麸麴赳趄趔趑趱赧赭豇豉酊酐酎酏酤�".split(""),e=0;e!=t[244].length;++e)t[244][e].charCodeAt(0)!==65533&&(n[t[244][e]]=62464+e,o[62464+e]=t[244][e]);for(t[245]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������酢酡酰酩酯酽酾酲酴酹醌醅醐醍醑醢醣醪醭醮醯醵醴醺豕鹾趸跫踅蹙蹩趵趿趼趺跄跖跗跚跞跎跏跛跆跬跷跸跣跹跻跤踉跽踔踝踟踬踮踣踯踺蹀踹踵踽踱蹉蹁蹂蹑蹒蹊蹰蹶蹼蹯蹴躅躏躔躐躜躞豸貂貊貅貘貔斛觖觞觚觜�".split(""),e=0;e!=t[245].length;++e)t[245][e].charCodeAt(0)!==65533&&(n[t[245][e]]=62720+e,o[62720+e]=t[245][e]);for(t[246]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������觥觫觯訾謦靓雩雳雯霆霁霈霏霎霪霭霰霾龀龃龅龆龇龈龉龊龌黾鼋鼍隹隼隽雎雒瞿雠銎銮鋈錾鍪鏊鎏鐾鑫鱿鲂鲅鲆鲇鲈稣鲋鲎鲐鲑鲒鲔鲕鲚鲛鲞鲟鲠鲡鲢鲣鲥鲦鲧鲨鲩鲫鲭鲮鲰鲱鲲鲳鲴鲵鲶鲷鲺鲻鲼鲽鳄鳅鳆鳇鳊鳋�".split(""),e=0;e!=t[246].length;++e)t[246][e].charCodeAt(0)!==65533&&(n[t[246][e]]=62976+e,o[62976+e]=t[246][e]);for(t[247]="�����������������������������������������������������������������������������������������������������������������������������������������������������������������鳌鳍鳎鳏鳐鳓鳔鳕鳗鳘鳙鳜鳝鳟鳢靼鞅鞑鞒鞔鞯鞫鞣鞲鞴骱骰骷鹘骶骺骼髁髀髅髂髋髌髑魅魃魇魉魈魍魑飨餍餮饕饔髟髡髦髯髫髻髭髹鬈鬏鬓鬟鬣麽麾縻麂麇麈麋麒鏖麝麟黛黜黝黠黟黢黩黧黥黪黯鼢鼬鼯鼹鼷鼽鼾齄�".split(""),e=0;e!=t[247].length;++e)t[247][e].charCodeAt(0)!==65533&&(n[t[247][e]]=63232+e,o[63232+e]=t[247][e]);return{enc:n,dec:o}}(),r[10029]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[10079]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[10081]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),r[28591]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ ¡¢£¤¥¦§¨©ª«¬®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,n=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),n[e]=o.charAt(e);return{enc:t,dec:n}}(),s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"&&(s.exports=r);/*! cputils.js (C) 2013-present SheetJS -- http://sheetjs.com */(function(o,n){if(typeof r>"u")if(typeof ll<"u"){var t=r;s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"?s.exports=n(t):o.cptable=n(t)}else throw new Error("cptable not found");else r=n(r)})(Nb,function(o){var n={1200:"utf16le",1201:"utf16be",12e3:"utf32le",12001:"utf32be",16969:"utf64le",20127:"ascii",65e3:"utf7",65001:"utf8"},t=[874,1250,1251,1252,1253,1254,1255,1256,1e4],e=[932,936,949,950],u=[65001],m={},b={},_={},w={},S=function(Se){return String.fromCharCode(Se)},D=function(Se){return Se.charCodeAt(0)},E=typeof Buffer<"u",M=function(){};if(E){var V=!Buffer.from;if(!V)try{Buffer.from("foo","utf8")}catch{V=!0}M=V?function(At,Se){return Se?new Buffer(At,Se):new Buffer(At)}:Buffer.from.bind(Buffer),Buffer.allocUnsafe||(Buffer.allocUnsafe=function(At){return new Buffer(At)});var Y=1024,U=Buffer.allocUnsafe(Y),ee=function(Se){for(var Q=Buffer.allocUnsafe(65536),Ce=0;Ce<65536;++Ce)Q[Ce]=0;for(var Te=Object.keys(Se),xe=Te.length,oe=0,pe=Te[oe];oe<xe;++oe)(pe=Te[oe])&&(Q[pe.charCodeAt(0)]=Se[pe]);return Q},ie=function(Se){var Q=ee(o[Se].enc);return function(Te,xe){var oe=Te.length,pe,re=0,it=0,Pe=0,hr=0;if(typeof Te=="string")for(pe=Buffer.allocUnsafe(oe),re=0;re<oe;++re)pe[re]=Q[Te.charCodeAt(re)];else if(Buffer.isBuffer(Te)){for(pe=Buffer.allocUnsafe(2*oe),it=0,re=0;re<oe;++re)Pe=Te[re],Pe<128?pe[it++]=Q[Pe]:Pe<224?(pe[it++]=Q[((Pe&31)<<6)+(Te[re+1]&63)],++re):Pe<240?(pe[it++]=Q[((Pe&15)<<12)+((Te[re+1]&63)<<6)+(Te[re+2]&63)],re+=2):(hr=((Pe&7)<<18)+((Te[re+1]&63)<<12)+((Te[re+2]&63)<<6)+(Te[re+3]&63),re+=3,hr<65536?pe[it++]=Q[hr]:(hr-=65536,pe[it++]=Q[55296+(hr>>10&1023)],pe[it++]=Q[56320+(hr&1023)]));pe=pe.slice(0,it)}else for(pe=Buffer.allocUnsafe(oe),re=0;re<oe;++re)pe[re]=Q[Te[re].charCodeAt(0)];return!xe||xe==="buf"?pe:xe!=="arr"?pe.toString("binary"):[].slice.call(pe)}},z=function(Se){var Q=o[Se].dec,Ce=Buffer.allocUnsafe(131072),Te=0,xe="";for(Te=0;Te<Q.length;++Te)if(xe=Q[Te]){var oe=xe.charCodeAt(0);Ce[2*Te]=oe&255,Ce[2*Te+1]=oe>>8}return function(re){var it=re.length,Pe=0,hr=0;if(2*it>Y&&(Y=2*it,U=Buffer.allocUnsafe(Y)),Buffer.isBuffer(re))for(Pe=0;Pe<it;Pe++)hr=2*re[Pe],U[2*Pe]=Ce[hr],U[2*Pe+1]=Ce[hr+1];else if(typeof re=="string")for(Pe=0;Pe<it;Pe++)hr=2*re.charCodeAt(Pe),U[2*Pe]=Ce[hr],U[2*Pe+1]=Ce[hr+1];else for(Pe=0;Pe<it;Pe++)hr=2*re[Pe],U[2*Pe]=Ce[hr],U[2*Pe+1]=Ce[hr+1];return U.slice(0,2*it).toString("ucs2")}},H=function(Se){for(var Q=o[Se].enc,Ce=Buffer.allocUnsafe(131072),Te=0;Te<131072;++Te)Ce[Te]=0;for(var xe=Object.keys(Q),oe=0,pe=xe[oe];oe<xe.length;++oe)if(pe=xe[oe]){var re=pe.charCodeAt(0);Ce[2*re]=Q[pe]&255,Ce[2*re+1]=Q[pe]>>8}return function(Pe,hr){var zr=Pe.length,yt=Buffer.allocUnsafe(2*zr),xt=0,Ct=0,Ns=0,kr=0,$r=0;if(typeof Pe=="string"){for(xt=kr=0;xt<zr;++xt)Ct=Pe.charCodeAt(xt)*2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]);yt=yt.slice(0,kr)}else if(Buffer.isBuffer(Pe)){for(xt=kr=0;xt<zr;++xt)$r=Pe[xt],$r<128?Ct=$r:$r<224?(Ct=(($r&31)<<6)+(Pe[xt+1]&63),++xt):$r<240?(Ct=(($r&15)<<12)+((Pe[xt+1]&63)<<6)+(Pe[xt+2]&63),xt+=2):(Ct=(($r&7)<<18)+((Pe[xt+1]&63)<<12)+((Pe[xt+2]&63)<<6)+(Pe[xt+3]&63),xt+=3),Ct<65536?(Ct*=2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct])):(Ns=Ct-65536,Ct=2*(55296+(Ns>>10&1023)),yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]),Ct=2*(56320+(Ns&1023)),yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]));yt=yt.slice(0,kr)}else for(xt=kr=0;xt<zr;xt++)Ct=Pe[xt].charCodeAt(0)*2,yt[kr++]=Ce[Ct+1]||Ce[Ct],Ce[Ct+1]>0&&(yt[kr++]=Ce[Ct]);return!hr||hr==="buf"?yt:hr!=="arr"?yt.toString("binary"):[].slice.call(yt)}},ne=function(Se){var Q=o[Se].dec,Ce=Buffer.allocUnsafe(131072),Te=0,xe,oe=0,pe=0,re=0;for(re=0;re<65536;++re)Ce[2*re]=255,Ce[2*re+1]=253;for(Te=0;Te<Q.length;++Te)(xe=Q[Te])&&(oe=xe.charCodeAt(0),pe=2*Te,Ce[pe]=oe&255,Ce[pe+1]=oe>>8);return function(Pe){var hr=Pe.length,zr=Buffer.allocUnsafe(2*hr),yt=0,xt=0,Ct=0;if(Buffer.isBuffer(Pe))for(yt=0;yt<hr;yt++)xt=2*Pe[yt],Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Pe[yt]<<8)+Pe[yt+1]),++yt),zr[Ct++]=Ce[xt],zr[Ct++]=Ce[xt+1];else if(typeof Pe=="string")for(yt=0;yt<hr;yt++)xt=2*Pe.charCodeAt(yt),Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Pe.charCodeAt(yt)<<8)+Pe.charCodeAt(yt+1)),++yt),zr[Ct++]=Ce[xt],zr[Ct++]=Ce[xt+1];else for(yt=0;yt<hr;yt++)xt=2*Pe[yt],Ce[xt]===255&&Ce[xt+1]===253&&(xt=2*((Pe[yt]<<8)+Pe[yt+1]),++yt),zr[Ct++]=Ce[xt],zr[Ct++]=Ce[xt+1];return zr.slice(0,Ct).toString("ucs2")}};m[65001]=function At(Se){if(typeof Se=="string")return At(Se.split("").map(D));var Q=Se.length,Ce=0,Te=0;4*Q>Y&&(Y=4*Q,U=Buffer.allocUnsafe(Y));var xe=0;Q>=3&&Se[0]==239&&Se[1]==187&&Se[2]==191&&(xe=3);for(var oe=1,pe=0,re=0;xe<Q;xe+=oe)oe=1,re=Se[xe],re<128?Ce=re:re<224?(Ce=(re&31)*64+(Se[xe+1]&63),oe=2):re<240?(Ce=((re&15)<<12)+(Se[xe+1]&63)*64+(Se[xe+2]&63),oe=3):(Ce=(re&7)*262144+((Se[xe+1]&63)<<12)+(Se[xe+2]&63)*64+(Se[xe+3]&63),oe=4),Ce<65536?(U[pe++]=Ce&255,U[pe++]=Ce>>8):(Ce-=65536,Te=55296+(Ce>>10&1023),Ce=56320+(Ce&1023),U[pe++]=Te&255,U[pe++]=Te>>>8,U[pe++]=Ce&255,U[pe++]=Ce>>>8&255);return U.slice(0,pe).toString("ucs2")},b[65001]=function(Se,Q){if(E&&Buffer.isBuffer(Se))return!Q||Q==="buf"?Se:Q!=="arr"?Se.toString("binary"):[].slice.call(Se);var Ce=Se.length,Te=0,xe=0,oe=0,pe=typeof Se=="string";4*Ce>Y&&(Y=4*Ce,U=Buffer.allocUnsafe(Y));for(var re=0;re<Ce;++re)Te=pe?Se.charCodeAt(re):Se[re].charCodeAt(0),Te<=127?U[oe++]=Te:Te<=2047?(U[oe++]=192+(Te>>6),U[oe++]=128+(Te&63)):Te>=55296&&Te<=57343?(Te-=55296,++re,xe=(pe?Se.charCodeAt(re):Se[re].charCodeAt(0))-56320+(Te<<10),U[oe++]=240+(xe>>>18&7),U[oe++]=144+(xe>>>12&63),U[oe++]=128+(xe>>>6&63),U[oe++]=128+(xe&63)):(U[oe++]=224+(Te>>12),U[oe++]=128+(Te>>6&63),U[oe++]=128+(Te&63));return!Q||Q==="buf"?U.slice(0,oe):Q!=="arr"?U.slice(0,oe).toString("binary"):[].slice.call(U,0,oe)}}var G=function(){if(E){if(_[t[0]])return;var Se=0,Q=0;for(Se=0;Se<t.length;++Se)Q=t[Se],o[Q]&&(_[Q]=z(Q),w[Q]=ie(Q));for(Se=0;Se<e.length;++Se)Q=e[Se],o[Q]&&(_[Q]=ne(Q),w[Q]=H(Q));for(Se=0;Se<u.length;++Se)Q=u[Se],m[Q]&&(_[Q]=m[Q]),b[Q]&&(w[Q]=b[Q])}},De=function(At,Se){return""},ve=function(Se){delete _[Se],delete w[Se]},ot=function(){if(E){if(!_[t[0]])return;t.forEach(ve),e.forEach(ve),u.forEach(ve)}bt=De,rt=0},ct={encache:G,decache:ot,sbcs:t,dbcs:e};G();var Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",ft="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'(),-./:?",bt=De,rt=0,kt=function At(Se,Q,Ce){if(Se===rt&&bt)return bt(Q,Ce);if(w[Se])return bt=w[rt=Se],bt(Q,Ce);E&&Buffer.isBuffer(Q)&&(Q=Q.toString("utf8"));var Te=Q.length,xe=E?Buffer.allocUnsafe(4*Te):[],oe=0,pe=0,re=0,it=0,Pe=o[Se],hr,zr="",yt=typeof Q=="string";if(Pe&&(hr=Pe.enc))for(pe=0;pe<Te;++pe,++re)oe=hr[yt?Q.charAt(pe):Q[pe]],oe>255?(xe[re]=oe>>8,xe[++re]=oe&255):xe[re]=oe&255;else if(zr=n[Se])switch(zr){case"utf8":if(E&&yt){xe=M(Q,zr),re=xe.length;break}for(pe=0;pe<Te;++pe,++re)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe<=127?xe[re]=oe:oe<=2047?(xe[re]=192+(oe>>6),xe[++re]=128+(oe&63)):oe>=55296&&oe<=57343?(oe-=55296,it=(yt?Q.charCodeAt(++pe):Q[++pe].charCodeAt(0))-56320+(oe<<10),xe[re]=240+(it>>>18&7),xe[++re]=144+(it>>>12&63),xe[++re]=128+(it>>>6&63),xe[++re]=128+(it&63)):(xe[re]=224+(oe>>12),xe[++re]=128+(oe>>6&63),xe[++re]=128+(oe&63));break;case"ascii":if(E&&typeof Q=="string"){xe=M(Q,zr),re=xe.length;break}for(pe=0;pe<Te;++pe,++re)if(oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe<=127)xe[re]=oe;else throw new Error("bad ascii "+oe);break;case"utf16le":if(E&&typeof Q=="string"){xe=M(Q,zr),re=xe.length;break}for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),xe[re++]=oe&255,xe[re++]=oe>>8;break;case"utf16be":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),xe[re++]=oe>>8,xe[re++]=oe&255;break;case"utf32le":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe>=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[re++]=oe&255,oe>>=8,xe[re++]=oe&255,oe>>=8,xe[re++]=oe&255,oe>>=8,xe[re++]=oe&255;break;case"utf32be":for(pe=0;pe<Te;++pe)oe=yt?Q.charCodeAt(pe):Q[pe].charCodeAt(0),oe>=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[re+3]=oe&255,oe>>=8,xe[re+2]=oe&255,oe>>=8,xe[re+1]=oe&255,oe>>=8,xe[re]=oe&255,re+=4;break;case"utf7":for(pe=0;pe<Te;pe++){var xt=yt?Q.charAt(pe):Q[pe].charAt(0);if(xt==="+"){xe[re++]=43,xe[re++]=45;continue}if(ft.indexOf(xt)>-1){xe[re++]=xt.charCodeAt(0);continue}var Ct=At(1201,xt);xe[re++]=43,xe[re++]=Je.charCodeAt(Ct[0]>>2),xe[re++]=Je.charCodeAt(((Ct[0]&3)<<4)+((Ct[1]||0)>>4)),xe[re++]=Je.charCodeAt(((Ct[1]&15)<<2)+((Ct[2]||0)>>6)),xe[re++]=45}break;default:throw new Error("Unsupported magic: "+Se+" "+n[Se])}else throw new Error("Unrecognized CP: "+Se);return xe=xe.slice(0,re),E?!Ce||Ce==="buf"?xe:Ce!=="arr"?xe.toString("binary"):[].slice.call(xe):Ce=="str"?xe.map(S).join(""):xe},Tt=function At(Se,Q){var Ce;if(Ce=_[Se])return Ce(Q);if(typeof Q=="string")return At(Se,Q.split("").map(D));var Te=Q.length,xe=new Array(Te),oe="",pe=0,re=0,it=1,Pe=0,hr=0,zr=o[Se],yt,xt="";if(zr&&(yt=zr.dec))for(re=0;re<Te;re+=it){if(it=2,oe=yt[(Q[re]<<8)+Q[re+1]],oe||(it=1,oe=yt[Q[re]]),!oe)throw new Error("Unrecognized code: "+Q[re]+" "+Q[re+it-1]+" "+re+" "+it+" "+yt[Q[re]]);xe[Pe++]=oe}else if(xt=n[Se])switch(xt){case"utf8":for(Te>=3&&Q[0]==239&&Q[1]==187&&Q[2]==191&&(re=3);re<Te;re+=it)it=1,Q[re]<128?pe=Q[re]:Q[re]<224?(pe=(Q[re]&31)*64+(Q[re+1]&63),it=2):Q[re]<240?(pe=((Q[re]&15)<<12)+(Q[re+1]&63)*64+(Q[re+2]&63),it=3):(pe=(Q[re]&7)*262144+((Q[re+1]&63)<<12)+(Q[re+2]&63)*64+(Q[re+3]&63),it=4),pe<65536||(pe-=65536,hr=55296+(pe>>10&1023),pe=56320+(pe&1023),xe[Pe++]=String.fromCharCode(hr)),xe[Pe++]=String.fromCharCode(pe);break;case"ascii":if(E&&Buffer.isBuffer(Q))return Q.toString(xt);for(re=0;re<Te;re++)xe[re]=String.fromCharCode(Q[re]);Pe=Te;break;case"utf16le":if(Te>=2&&Q[0]==255&&Q[1]==254&&(re=2),E&&Buffer.isBuffer(Q))return Q.toString(xt);for(it=2;re+1<Te;re+=it)xe[Pe++]=String.fromCharCode((Q[re+1]<<8)+Q[re]);break;case"utf16be":for(Te>=2&&Q[0]==254&&Q[1]==255&&(re=2),it=2;re+1<Te;re+=it)xe[Pe++]=String.fromCharCode((Q[re]<<8)+Q[re+1]);break;case"utf32le":for(Te>=4&&Q[0]==255&&Q[1]==254&&Q[2]===0&&Q[3]===0&&(re=4),it=4;re<Te;re+=it)pe=(Q[re+3]<<24)+(Q[re+2]<<16)+(Q[re+1]<<8)+Q[re],pe>65535?(pe-=65536,xe[Pe++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Pe++]=String.fromCharCode(56320+(pe&1023))):xe[Pe++]=String.fromCharCode(pe);break;case"utf32be":for(Te>=4&&Q[3]==255&&Q[2]==254&&Q[1]===0&&Q[0]===0&&(re=4),it=4;re<Te;re+=it)pe=(Q[re]<<24)+(Q[re+1]<<16)+(Q[re+2]<<8)+Q[re+3],pe>65535?(pe-=65536,xe[Pe++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Pe++]=String.fromCharCode(56320+(pe&1023))):xe[Pe++]=String.fromCharCode(pe);break;case"utf7":for(Te>=4&&Q[0]==43&&Q[1]==47&&Q[2]==118&&(Te>=5&&Q[3]==56&&Q[4]==45?re=5:(Q[3]==56||Q[3]==57||Q[3]==43||Q[3]==47)&&(re=4));re<Te;re+=it){if(Q[re]!==43){it=1,xe[Pe++]=String.fromCharCode(Q[re]);continue}if(it=1,Q[re+1]===45){it=2,xe[Pe++]="+";continue}for(;String.fromCharCode(Q[re+it]).match(/[A-Za-z0-9+\/]/);)it++;var Ct=0;Q[re+it]===45&&(++it,Ct=1);for(var Ns=[],kr="",$r=0,si=0,ai=0,oi=0,Ro=0,Za=0,es=0,Ws=1;Ws<it-Ct&&(oi=Je.indexOf(String.fromCharCode(Q[re+Ws++])),Ro=Je.indexOf(String.fromCharCode(Q[re+Ws++])),$r=oi<<2|Ro>>4,Ns.push($r),Za=Je.indexOf(String.fromCharCode(Q[re+Ws++])),!(Za===-1||(si=(Ro&15)<<4|Za>>2,Ns.push(si),es=Je.indexOf(String.fromCharCode(Q[re+Ws++])),es===-1)));)ai=(Za&3)<<6|es,es<64&&Ns.push(ai);for(kr=At(1201,Ns),Ws=0;Ws<kr.length;++Ws)xe[Pe++]=kr.charAt(Ws)}break;default:throw new Error("Unsupported magic: "+Se+" "+n[Se])}else throw new Error("Unrecognized CP: "+Se);return xe.slice(0,Pe).join("")},Sr=function(Se){return!!(o[Se]||n[Se])};return o.utils={decode:Tt,encode:kt,hascp:Sr,magic:n,cache:ct},o})}(sf)),sf.exports}const C3={},F3=Object.freeze(Object.defineProperty({__proto__:null,default:C3},Symbol.toStringTag,{value:"Module"})),af=Ib(F3);(function(s,r){var o={};function n(t){t.version="0.18.5",t.style_version="1.2.0";var e,u=1200,m=1252;typeof cptable<"u"?e=cptable:typeof ll<"u"&&(e=x3());var b=[874,932,936,949,950,1250,1251,1252,1253,1254,1255,1256,1257,1258,1e4],_={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},w=function(a){b.indexOf(a)!=-1&&(m=_[0]=a)},S=function(a){w(u=a)};function D(){S(1200),w(1252)}function E(a){for(var i=[],l=0,c=a.length;l<c;++l)i[l]=a.charCodeAt(l);return i}function M(a){for(var i=[],l=0;l<a.length>>1;++l)i[l]=String.fromCharCode(a.charCodeAt(2*l+1)+(a.charCodeAt(2*l)<<8));return i.join("")}var V=function(a){var i=a.charCodeAt(0),l=a.charCodeAt(1);return i==255&&l==254?function(c){for(var f=[],h=0;h<c.length>>1;++h)f[h]=String.fromCharCode(c.charCodeAt(2*h)+(c.charCodeAt(2*h+1)<<8));return f.join("")}(a.slice(2)):i==254&&l==255?M(a.slice(2)):i==65279?a.slice(1):a},Y=function(a){return String.fromCharCode(a)},U=function(a){return String.fromCharCode(a)};e!==void 0&&(S=function(a){w(u=a)},V=function(a){return a.charCodeAt(0)===255&&a.charCodeAt(1)===254?e.utils.decode(1200,E(a.slice(2))):a},Y=function(a){return u===1200?String.fromCharCode(a):e.utils.decode(u,[255&a,a>>8])[0]},U=function(a){return e.utils.decode(m,[a])[0]});var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ie(a){for(var i,l,c,f,h,d="",p=0,g=0,y=0;y<a.length;)f=(i=a.charCodeAt(y++))>>2,h=(3&i)<<4|(l=a.charCodeAt(y++))>>4,p=(15&l)<<2|(c=a.charCodeAt(y++))>>6,g=63&c,isNaN(l)?p=g=64:isNaN(c)&&(g=64),d+=ee.charAt(f)+ee.charAt(h)+ee.charAt(p)+ee.charAt(g);return d}function z(a){var i,l,c,f,h,d,p="";a=a.replace(/[^\w\+\/\=]/g,"");for(var g=0;g<a.length;)i=ee.indexOf(a.charAt(g++))<<2|(f=ee.indexOf(a.charAt(g++)))>>4,p+=String.fromCharCode(i),l=(15&f)<<4|(h=ee.indexOf(a.charAt(g++)))>>2,h!==64&&(p+=String.fromCharCode(l)),c=(3&h)<<6|(d=ee.indexOf(a.charAt(g++))),d!==64&&(p+=String.fromCharCode(c));return p}var H=typeof Buffer<"u"&&typeof process<"u"&&process.versions!==void 0&&!!process.versions.node,ne=function(){if(typeof Buffer>"u")return function(){};var a=!Buffer.from;if(!a)try{Buffer.from("foo","utf8")}catch{a=!0}return a?function(i,l){return l?new Buffer(i,l):new Buffer(i)}:Buffer.from.bind(Buffer)}();function G(a){return H?Buffer.alloc?Buffer.alloc(a):new Buffer(a):new(typeof Uint8Array<"u"?Uint8Array:Array)(a)}function De(a){return H?Buffer.allocUnsafe?Buffer.allocUnsafe(a):new Buffer(a):new(typeof Uint8Array<"u"?Uint8Array:Array)(a)}var ve=function(a){return H?ne(a,"binary"):a.split("").map(function(i){return 255&i.charCodeAt(0)})};function ot(a){if(typeof ArrayBuffer>"u")return ve(a);for(var i=new ArrayBuffer(a.length),l=new Uint8Array(i),c=0;c!=a.length;++c)l[c]=255&a.charCodeAt(c);return i}function ct(a){if(Array.isArray(a))return a.map(function(c){return String.fromCharCode(c)}).join("");for(var i=[],l=0;l<a.length;++l)i[l]=String.fromCharCode(a[l]);return i.join("")}function Je(a){if(typeof ArrayBuffer>"u")throw new Error("Unsupported");if(a instanceof ArrayBuffer)return Je(new Uint8Array(a));for(var i=new Array(a.length),l=0;l<a.length;++l)i[l]=a[l];return i}var ft=H?function(a){return Buffer.concat(a.map(function(i){return Buffer.isBuffer(i)?i:ne(i)}))}:function(a){if(typeof Uint8Array>"u")return[].concat.apply([],a.map(function(h){return Array.isArray(h)?h:[].slice.call(h)}));for(var l=0,i=0,l=0;l<a.length;++l)i+=a[l].length;for(var c,f=new Uint8Array(i),i=l=0;l<a.length;i+=c,++l)if(c=a[l].length,a[l]instanceof Uint8Array)f.set(a[l],i);else{if(typeof a[l]=="string")throw"wtf";f.set(new Uint8Array(a[l]),i)}return f},bt=/\u0000/g,rt=/[\u0001-\u0006]/g;function kt(a){for(var i="",l=a.length-1;0<=l;)i+=a.charAt(l--);return i}function Tt(a,i){return a=""+a,i<=a.length?a:Yr("0",i-a.length)+a}function Sr(a,i){return a=""+a,i<=a.length?a:Yr(" ",i-a.length)+a}function At(a,i){return a=""+a,i<=a.length?a:a+Yr(" ",i-a.length)}var Se=Math.pow(2,32);function Q(f,i){if(Se<f||f<-Se)return l=f,c=i,l=""+Math.round(l),c<=l.length?l:Yr("0",c-l.length)+l;var l,c,f=Math.round(f);return(i=i)<=(f=""+(f=f)).length?f:Yr("0",i-f.length)+f}function Ce(a,i){return i=i||0,a.length>=7+i&&(32|a.charCodeAt(i))==103&&(32|a.charCodeAt(i+1))==101&&(32|a.charCodeAt(i+2))==110&&(32|a.charCodeAt(i+3))==101&&(32|a.charCodeAt(i+4))==114&&(32|a.charCodeAt(i+5))==97&&(32|a.charCodeAt(i+6))==108}var Te=[["Sun","Sunday"],["Mon","Monday"],["Tue","Tuesday"],["Wed","Wednesday"],["Thu","Thursday"],["Fri","Friday"],["Sat","Saturday"]],xe=[["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"]],oe={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:'"上午/下午 "hh"時"mm"分"ss"秒 "'},pe={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},re={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 it(a,i,l){for(var c=a<0?-1:1,f=a*c,h=0,d=1,p=0,g=1,y=0,v=0,x=Math.floor(f);y<i&&(p=(x=Math.floor(f))*d+h,v=x*y+g,!(f-x<5e-8));)f=1/(f-x),h=d,d=p,g=y,y=v;return i<v&&(p=i<y?(v=g,h):(v=y,d)),l?(l=Math.floor(c*p/v),[l,c*p-l*v,v]):[0,c*p,v]}function Pe(p,i,l){if(2958465<p||p<0)return null;var c=0|p,f=Math.floor(86400*(p-c)),h=0,d=[],p={D:c,T:f,u:86400*(p-c)-f,y:0,m:0,d:0,H:0,M:0,S:0,q:0};return Math.abs(p.u)<1e-6&&(p.u=0),i&&i.date1904&&(c+=1462),.9999<p.u&&(p.u=0,++f==86400&&(p.T=f=0,++c,++p.D)),c===60?(d=l?[1317,10,29]:[1900,2,29],h=3):c===0?(d=l?[1317,8,29]:[1900,1,0],h=6):(60<c&&--c,(i=new Date(1900,0,1)).setDate(i.getDate()+c-1),d=[i.getFullYear(),i.getMonth()+1,i.getDate()],h=i.getDay(),c<60&&(h=(h+6)%7),l&&(h=function(g,y){return y[0]-=581,y=g.getDay(),g<60&&(y=(y+6)%7),y}(i,d))),p.y=d[0],p.m=d[1],p.d=d[2],p.S=f%60,f=Math.floor(f/60),p.M=f%60,f=Math.floor(f/60),p.H=f,p.q=h,p}var hr=new Date(1899,11,31,0,0,0),zr=hr.getTime(),yt=new Date(1900,2,1,0,0,0);function xt(a,i){var l=a.getTime();return i?l-=1262304e5:yt<=a&&(l+=864e5),(l-(zr+6e4*(a.getTimezoneOffset()-hr.getTimezoneOffset())))/864e5}function Ct(a){return a.indexOf(".")==-1?a:a.replace(/(?:\.0*|(\.\d*[1-9])0+)$/,"$1")}function Ns(a){var i,l,c,f=Math.floor(Math.log(Math.abs(a))*Math.LOG10E),h=-4<=f&&f<=-1?a.toPrecision(10+f):Math.abs(f)<=9?(l=(i=a)<0?12:11,(c=Ct(i.toFixed(12))).length<=l||(c=i.toPrecision(10)).length<=l?c:i.toExponential(5)):f===10?a.toFixed(10).substr(0,12):(h=Ct((a=a).toFixed(11))).length>(a<0?12:11)||h==="0"||h==="-0"?a.toPrecision(6):h;return Ct((h=h.toUpperCase()).indexOf("E")==-1?h:h.replace(/(?:\.0*|(\.\d*[1-9])0+)[Ee]/,"$1E").replace(/(E[+-])(\d)$/,"$10$2"))}function kr(a,i){switch(typeof a){case"string":return a;case"boolean":return a?"TRUE":"FALSE";case"number":return(0|a)===a?a.toString(10):Ns(a);case"undefined":return"";case"object":if(a==null)return"";if(a instanceof Date)return Us(14,xt(a,i&&i.date1904),i)}throw new Error("unsupported value in General format: "+a)}function $r(a){if(a.length<=3)return a;for(var i=a.length%3,l=a.substr(0,i);i!=a.length;i+=3)l+=(0<l.length?",":"")+a.substr(i,3);return l}var si=/%/g,ai=/# (\?+)( ?)\/( ?)(\d+)/,oi=/^#*0*\.([0#]+)/,Ro=/\).*[0#]/,Za=/\(###\) ###\\?-####/;function es(a){for(var i,l="",c=0;c!=a.length;++c)switch(i=a.charCodeAt(c)){case 35:break;case 63:l+=" ";break;case 48:l+="0";break;default:l+=String.fromCharCode(i)}return l}function Ws(a,i){return i=Math.pow(10,i),""+Math.round(a*i)/i}function Yf(c,i){var l=c-Math.floor(c),c=Math.pow(10,i);return i<(""+Math.round(l*c)).length?0:Math.round(l*c)}function Hs(a,i,l){if(a.charCodeAt(0)===40&&!i.match(Ro)){var c=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=l?Hs("n",c,l):"("+Hs("n",c,-l)+")"}if(i.charCodeAt(i.length-1)===44)return function(T,O,N){for(var I=O.length-1;O.charCodeAt(I-1)===44;)--I;return Da(T,O.substr(0,I),N/Math.pow(10,3*(O.length-I)))}(a,i,l);if(i.indexOf("%")!==-1)return p=a,y=l,g=(v=i).replace(si,""),v=v.length-g.length,Da(p,g,y*Math.pow(10,2*v))+Yr("%",v);var f;if(i.indexOf("E")!==-1)return function T(O,N){var I,X=O.indexOf("E")-O.indexOf(".")-1;if(O.match(/^#+0.0E\+0$/)){if(N==0)return"0.0E+0";if(N<0)return"-"+T(O,-N);var se=O.indexOf(".");se===-1&&(se=O.indexOf("E"));var te=Math.floor(Math.log(N)*Math.LOG10E)%se;if(te<0&&(te+=se),(I=(N/Math.pow(10,te)).toPrecision(1+X+(se+te)%se)).indexOf("e")===-1){var ce=Math.floor(Math.log(N)*Math.LOG10E);for(I.indexOf(".")===-1?I=I.charAt(0)+"."+I.substr(1)+"E+"+(ce-I.length+te):I+="E+"+(ce-te);I.substr(0,2)==="0.";)I=(I=I.charAt(0)+I.substr(2,se)+"."+I.substr(2+se)).replace(/^0+([1-9])/,"$1").replace(/^0+\./,"0.");I=I.replace(/\+-/,"-")}I=I.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(_e,we,de,Re){return we+de+Re.substr(0,(se+te)%se)+"."+Re.substr(te)+"E"})}else I=N.toExponential(X);return O.match(/E\+00$/)&&I.match(/e[+-]\d$/)&&(I=I.substr(0,I.length-1)+"0"+I.charAt(I.length-1)),(I=O.match(/E\-/)&&I.match(/e\+/)?I.replace(/e\+/,"e"):I).replace("e","E")}(i,l);if(i.charCodeAt(0)===36)return"$"+Hs(a,i.substr(i.charAt(1)==" "?2:1),l);var h,d,p,g,y,v,x,C=Math.abs(l),F=l<0?"-":"";if(i.match(/^00+$/))return F+Q(C,i.length);if(i.match(/^[#?]+$/))return(f=(f=Q(l,0))==="0"?"":f).length>i.length?f:es(i.substr(0,i.length-f.length))+f;if(h=i.match(ai))return x=h,p=C,g=F,y=parseInt(x[4],10),v=Math.round(p*y),p=Math.floor(v/y),g+(p===0?"":""+p)+" "+((v-=p*y)==0?Yr(" ",x[1].length+1+x[4].length):Sr(v,x[1].length)+x[2]+"/"+x[3]+Tt(y,x[4].length));if(i.match(/^#+0+$/))return F+Q(C,i.length-i.indexOf("0"));if(h=i.match(oi))return f=Ws(l,h[1].length).replace(/^([^\.]+)$/,"$1."+es(h[1])).replace(/\.$/,"."+es(h[1])).replace(/\.(\d*)$/,function(T,O){return"."+O+Yr("0",es(h[1]).length-O.length)}),i.indexOf("0.")!==-1?f:f.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),h=i.match(/^(0*)\.(#*)$/))return F+Ws(C,h[2].length).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,h[1].length?"0.":".");if(h=i.match(/^#{1,3},##0(\.?)$/))return F+$r(Q(C,0));if(h=i.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+Hs(a,i,-l):$r(""+(Math.floor(l)+(x=l,(R=h[1].length)<(""+Math.round((x-Math.floor(x))*Math.pow(10,R))).length?1:0)))+"."+Tt(Yf(l,h[1].length),h[1].length);if(h=i.match(/^#,#*,#0/))return Hs(a,i.replace(/^#,#*,/,""),l);if(h=i.match(/^([0#]+)(\\?-([0#]+))+$/))return f=kt(Hs(a,i.replace(/[\\-]/g,""),l)),d=0,kt(kt(i.replace(/\\/g,"")).replace(/[0#]/g,function(T){return d<f.length?f.charAt(d++):T==="0"?"0":""}));if(i.match(Za))return"("+(f=Hs(a,"##########",l)).substr(0,3)+") "+f.substr(3,3)+"-"+f.substr(6);var R="";if(h=i.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return d=Math.min(h[4].length,7),A=it(C,Math.pow(10,d)-1,!1),f=F,(R=Da("n",h[1],A[1])).charAt(R.length-1)==" "&&(R=R.substr(0,R.length-1)+"0"),f+=R+h[2]+"/"+h[3],(R=At(A[2],d)).length<h[4].length&&(R=es(h[4].substr(h[4].length-R.length))+R),f+=R;if(h=i.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return d=Math.min(Math.max(h[1].length,h[4].length),7),F+((A=it(C,Math.pow(10,d)-1,!0))[0]||(A[1]?"":"0"))+" "+(A[1]?Sr(A[1],d)+h[2]+"/"+h[3]+At(A[2],d):Yr(" ",2*d+1+h[2].length+h[3].length));if(h=i.match(/^[#0?]+$/))return f=Q(l,0),i.length<=f.length?f:es(i.substr(0,i.length-f.length))+f;if(h=i.match(/^([#0?]+)\.([#0]+)$/)){f=""+l.toFixed(Math.min(h[2].length,10)).replace(/([^0])0+$/,"$1"),d=f.indexOf(".");var A=i.indexOf(".")-d,P=i.length-f.length-A;return es(i.substr(0,A)+f+i.substr(i.length-P))}if(h=i.match(/^00,000\.([#0]*0)$/))return d=Yf(l,h[1].length),l<0?"-"+Hs(a,i,-l):$r((P=l)<2147483647&&-2147483648<P?""+(0<=P?0|P:P-1|0):""+Math.floor(P)).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(T){return"00,"+(T.length<3?Tt(0,3-T.length):"")+T})+"."+Tt(d,h[1].length);switch(i){case"###,##0.00":return Hs(a,"#,##0.00",l);case"###,###":case"##,###":case"#,###":var L=$r(Q(C,0));return L!=="0"?F+L:"";case"###,###.00":return Hs(a,"###,##0.00",l).replace(/^0\./,".");case"#,###.00":return Hs(a,"#,##0.00",l).replace(/^0\./,".")}throw new Error("unsupported format |"+i+"|")}function ha(a,i,l){if(a.charCodeAt(0)===40&&!i.match(Ro)){var c=i.replace(/\( */,"").replace(/ \)/,"").replace(/\)/,"");return 0<=l?ha("n",c,l):"("+ha("n",c,-l)+")"}if(i.charCodeAt(i.length-1)===44)return function(A,P,L){for(var T=P.length-1;P.charCodeAt(T-1)===44;)--T;return Da(A,P.substr(0,T),L/Math.pow(10,3*(P.length-T)))}(a,i,l);if(i.indexOf("%")!==-1)return f=a,d=l,c=(h=i).replace(si,""),h=h.length-c.length,Da(f,c,d*Math.pow(10,2*h))+Yr("%",h);var f,h,d,p;if(i.indexOf("E")!==-1)return function A(P,L){var T,O=P.indexOf("E")-P.indexOf(".")-1;if(P.match(/^#+0.0E\+0$/)){if(L==0)return"0.0E+0";if(L<0)return"-"+A(P,-L);var N=P.indexOf(".");N===-1&&(N=P.indexOf("E"));var I,X=Math.floor(Math.log(L)*Math.LOG10E)%N;X<0&&(X+=N),(T=(L/Math.pow(10,X)).toPrecision(1+O+(N+X)%N)).match(/[Ee]/)||(I=Math.floor(Math.log(L)*Math.LOG10E),T.indexOf(".")===-1?T=T.charAt(0)+"."+T.substr(1)+"E+"+(I-T.length+X):T+="E+"+(I-X),T=T.replace(/\+-/,"-")),T=T.replace(/^([+-]?)(\d*)\.(\d*)[Ee]/,function(se,te,ce,_e){return te+ce+_e.substr(0,(N+X)%N)+"."+_e.substr(X)+"E"})}else T=L.toExponential(O);return P.match(/E\+00$/)&&T.match(/e[+-]\d$/)&&(T=T.substr(0,T.length-1)+"0"+T.charAt(T.length-1)),(T=P.match(/E\-/)&&T.match(/e\+/)?T.replace(/e\+/,"e"):T).replace("e","E")}(i,l);if(i.charCodeAt(0)===36)return"$"+ha(a,i.substr(i.charAt(1)==" "?2:1),l);var g,y,v=Math.abs(l),x=l<0?"-":"";if(i.match(/^00+$/))return x+Tt(v,i.length);if(i.match(/^[#?]+$/))return(p=l===0?"":""+l).length>i.length?p:es(i.substr(0,i.length-p.length))+p;if(g=i.match(ai))return x+((C=v)===0?"":""+C)+Yr(" ",(C=g)[1].length+2+C[4].length);if(i.match(/^#+0+$/))return x+Tt(v,i.length-i.indexOf("0"));if(g=i.match(oi))return p=(p=(""+l).replace(/^([^\.]+)$/,"$1."+es(g[1])).replace(/\.$/,"."+es(g[1]))).replace(/\.(\d*)$/,function(A,P){return"."+P+Yr("0",es(g[1]).length-P.length)}),i.indexOf("0.")!==-1?p:p.replace(/^0\./,".");if(i=i.replace(/^#+([0.])/,"$1"),g=i.match(/^(0*)\.(#*)$/))return x+(""+v).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,g[1].length?"0.":".");if(g=i.match(/^#{1,3},##0(\.?)$/))return x+$r(""+v);if(g=i.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+ha(a,i,-l):$r(""+l)+"."+Yr("0",g[1].length);if(g=i.match(/^#,#*,#0/))return ha(a,i.replace(/^#,#*,/,""),l);if(g=i.match(/^([0#]+)(\\?-([0#]+))+$/))return p=kt(ha(a,i.replace(/[\\-]/g,""),l)),y=0,kt(kt(i.replace(/\\/g,"")).replace(/[0#]/g,function(A){return y<p.length?p.charAt(y++):A==="0"?"0":""}));if(i.match(Za))return"("+(p=ha(a,"##########",l)).substr(0,3)+") "+p.substr(3,3)+"-"+p.substr(6);var C="";if(g=i.match(/^([#0?]+)( ?)\/( ?)([#0?]+)/))return y=Math.min(g[4].length,7),F=it(v,Math.pow(10,y)-1,!1),p=x,(C=Da("n",g[1],F[1])).charAt(C.length-1)==" "&&(C=C.substr(0,C.length-1)+"0"),p+=C+g[2]+"/"+g[3],(C=At(F[2],y)).length<g[4].length&&(C=es(g[4].substr(g[4].length-C.length))+C),p+=C;if(g=i.match(/^# ([#0?]+)( ?)\/( ?)([#0?]+)/))return y=Math.min(Math.max(g[1].length,g[4].length),7),x+((F=it(v,Math.pow(10,y)-1,!0))[0]||(F[1]?"":"0"))+" "+(F[1]?Sr(F[1],y)+g[2]+"/"+g[3]+At(F[2],y):Yr(" ",2*y+1+g[2].length+g[3].length));if(g=i.match(/^[#0?]+$/))return p=""+l,i.length<=p.length?p:es(i.substr(0,i.length-p.length))+p;if(g=i.match(/^([#0]+)\.([#0]+)$/)){p=""+l.toFixed(Math.min(g[2].length,10)).replace(/([^0])0+$/,"$1"),y=p.indexOf(".");var C=i.indexOf(".")-y,F=i.length-p.length-C;return es(i.substr(0,C)+p+i.substr(i.length-F))}if(g=i.match(/^00,000\.([#0]*0)$/))return l<0?"-"+ha(a,i,-l):$r(""+l).replace(/^\d,\d{3}$/,"0$&").replace(/^\d*$/,function(A){return"00,"+(A.length<3?Tt(0,3-A.length):"")+A})+"."+Tt(0,g[1].length);switch(i){case"###,###":case"##,###":case"#,###":var R=$r(""+v);return R!=="0"?x+R:"";default:if(i.match(/\.[0#?]*$/))return ha(a,i.slice(0,i.lastIndexOf(".")),l)+es(i.slice(i.lastIndexOf(".")))}throw new Error("unsupported format |"+i+"|")}function Da(a,i,l){return((0|l)===l?ha:Hs)(a,i,l)}var qf=/\[[HhMmSs\u0E0A\u0E19\u0E17]*\]/;function $a(a){for(var i=0,l="",c="";i<a.length;)switch(l=a.charAt(i)){case"G":Ce(a,i)&&(i+=6),i++;break;case'"':for(;a.charCodeAt(++i)!==34&&i<a.length;);++i;break;case"\\":case"_":i+=2;break;case"@":++i;break;case"B":case"b":if(a.charAt(i+1)==="1"||a.charAt(i+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"上":if(a.substr(i,3).toUpperCase()==="A/P"||a.substr(i,5).toUpperCase()==="AM/PM"||a.substr(i,5).toUpperCase()==="上午/下午")return!0;++i;break;case"[":for(c=l;a.charAt(i++)!=="]"&&i<a.length;)c+=a.charAt(i);if(c.match(qf))return!0;break;case".":case"0":case"#":for(;i<a.length&&(-1<"0#?.,E+-%".indexOf(l=a.charAt(++i))||l=="\\"&&a.charAt(i+1)=="-"&&-1<"0#".indexOf(a.charAt(i+2))););break;case"?":for(;a.charAt(++i)===l;);break;case"*":++i,a.charAt(i)!=" "&&a.charAt(i)!="*"||++i;break;case"(":case")":++i;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(;i<a.length&&-1<"0123456789".indexOf(a.charAt(++i)););break;case" ":default:++i}return!1}function h1(a,i,l,c){for(var f,h,d,p=[],g="",y=0,v="",x="t",C="H";y<a.length;)switch(v=a.charAt(y)){case"G":if(!Ce(a,y))throw new Error("unrecognized character "+v+" in "+a);p[p.length]={t:"G",v:"General"},y+=7;break;case'"':for(g="";(d=a.charCodeAt(++y))!==34&&y<a.length;)g+=String.fromCharCode(d);p[p.length]={t:"t",v:g},++y;break;case"\\":var F=a.charAt(++y),R=F==="("||F===")"?F:"t";p[p.length]={t:R,v:F},++y;break;case"_":p[p.length]={t:"t",v:" "},y+=2;break;case"@":p[p.length]={t:"T",v:i},++y;break;case"B":case"b":if(a.charAt(y+1)==="1"||a.charAt(y+1)==="2"){if(f==null&&(f=Pe(i,l,a.charAt(y+1)==="2"))==null)return"";p[p.length]={t:"X",v:a.substr(y,2)},x=v,y+=2;break}case"M":case"D":case"Y":case"H":case"S":case"E":v=v.toLowerCase();case"m":case"d":case"y":case"h":case"s":case"e":case"g":if(i<0||f==null&&(f=Pe(i,l))==null)return"";for(g=v;++y<a.length&&a.charAt(y).toLowerCase()===v;)g+=v;(v=v==="m"&&x.toLowerCase()==="h"?"M":v)==="h"&&(v=C),p[p.length]={t:v,v:g},x=v;break;case"A":case"a":case"上":if(F={t:v,v},f==null&&(f=Pe(i,l)),a.substr(y,3).toUpperCase()==="A/P"?(f!=null&&(F.v=12<=f.H?"P":"A"),F.t="T",C="h",y+=3):a.substr(y,5).toUpperCase()==="AM/PM"?(f!=null&&(F.v=12<=f.H?"PM":"AM"),F.t="T",y+=5,C="h"):a.substr(y,5).toUpperCase()==="上午/下午"?(f!=null&&(F.v=12<=f.H?"下午":"上午"),F.t="T",y+=5,C="h"):(F.t="t",++y),f==null&&F.t==="T")return"";p[p.length]=F,x=v;break;case"[":for(g=v;a.charAt(y++)!=="]"&&y<a.length;)g+=a.charAt(y);if(g.slice(-1)!=="]")throw'unterminated "[" block: |'+g+"|";if(g.match(qf)){if(f==null&&(f=Pe(i,l))==null)return"";p[p.length]={t:"Z",v:g.toLowerCase()},x=g.charAt(1)}else-1<g.indexOf("$")&&(g=(g.match(/\$([^-\[\]]*)/)||[])[1]||"$",$a(a)||(p[p.length]={t:"t",v:g}));break;case".":if(f!=null){for(g=v;++y<a.length&&(v=a.charAt(y))==="0";)g+=v;p[p.length]={t:"s",v:g};break}case"0":case"#":for(g=v;++y<a.length&&-1<"0#?.,E+-%".indexOf(v=a.charAt(y));)g+=v;p[p.length]={t:"n",v:g};break;case"?":for(g=v;a.charAt(++y)===v;)g+=v;p[p.length]={t:v,v:g},x=v;break;case"*":++y,a.charAt(y)!=" "&&a.charAt(y)!="*"||++y;break;case"(":case")":p[p.length]={t:c===1?"t":v,v},++y;break;case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":for(g=v;y<a.length&&-1<"0123456789".indexOf(a.charAt(++y));)g+=a.charAt(y);p[p.length]={t:"D",v:g};break;case" ":p[p.length]={t:v,v},++y;break;case"$":p[p.length]={t:"t",v:"$"},++y;break;default:if(",$-+/():!^&'~{}<>=€acfijklopqrtuvwxzP".indexOf(v)===-1)throw new Error("unrecognized character "+v+" in "+a);p[p.length]={t:"t",v},++y}var A,P=0,L=0;for(y=p.length-1,x="t";0<=y;--y)switch(p[y].t){case"h":case"H":p[y].t=C,x="h",P<1&&(P=1);break;case"s":(A=p[y].v.match(/\.0+$/))&&(L=Math.max(L,A[0].length-1)),P<3&&(P=3);case"d":case"y":case"M":case"e":x=p[y].t;break;case"m":x==="s"&&(p[y].t="M",P<2&&(P=2));break;case"X":break;case"Z":(P=(P=P<1&&p[y].v.match(/[Hh]/)?1:P)<2&&p[y].v.match(/[Mm]/)?2:P)<3&&p[y].v.match(/[Ss]/)&&(P=3)}switch(P){case 0:break;case 1:.5<=f.u&&(f.u=0,++f.S),60<=f.S&&(f.S=0,++f.M),60<=f.M&&(f.M=0,++f.H);break;case 2:.5<=f.u&&(f.u=0,++f.S),60<=f.S&&(f.S=0,++f.M)}var T,O="";for(y=0;y<p.length;++y)switch(p[y].t){case"t":case"T":case" ":case"D":break;case"X":p[y].v="",p[y].t=";";break;case"d":case"m":case"y":case"h":case"H":case"M":case"s":case"e":case"b":case"Z":p[y].v=function(_e,we,de,Re){var qe,He="",Ne=0,Ue=0,Oe=de.y,Fe=0;switch(_e){case 98:Oe=de.y+543;case 121:switch(we.length){case 1:case 2:qe=Oe%100,Fe=2;break;default:qe=Oe%1e4,Fe=4}break;case 109:switch(we.length){case 1:case 2:qe=de.m,Fe=we.length;break;case 3:return xe[de.m-1][1];case 5:return xe[de.m-1][0];default:return xe[de.m-1][2]}break;case 100:switch(we.length){case 1:case 2:qe=de.d,Fe=we.length;break;case 3:return Te[de.q][0];default:return Te[de.q][1]}break;case 104:switch(we.length){case 1:case 2:qe=1+(de.H+11)%12,Fe=we.length;break;default:throw"bad hour format: "+we}break;case 72:switch(we.length){case 1:case 2:qe=de.H,Fe=we.length;break;default:throw"bad hour format: "+we}break;case 77:switch(we.length){case 1:case 2:qe=de.M,Fe=we.length;break;default:throw"bad minute format: "+we}break;case 115:if(we!="s"&&we!="ss"&&we!=".0"&&we!=".00"&&we!=".000")throw"bad second format: "+we;return de.u!==0||we!="s"&&we!="ss"?(60*(Ue=2<=Re?Re===3?1e3:100:Re===1?10:1)<=(Ne=Math.round(Ue*(de.S+de.u)))&&(Ne=0),we==="s"?Ne===0?"0":""+Ne/Ue:(He=Tt(Ne,2+Re),we==="ss"?He.substr(0,2):"."+He.substr(2,we.length-1))):Tt(de.S,we.length);case 90:switch(we){case"[h]":case"[hh]":qe=24*de.D+de.H;break;case"[m]":case"[mm]":qe=60*(24*de.D+de.H)+de.M;break;case"[s]":case"[ss]":qe=60*(60*(24*de.D+de.H)+de.M)+Math.round(de.S+de.u);break;default:throw"bad abstime format: "+we}Fe=we.length===3?1:2;break;case 101:qe=Oe,Fe=1}return 0<Fe?Tt(qe,Fe):""}(p[y].t.charCodeAt(0),p[y].v,f,L),p[y].t="t";break;case"n":case"?":for(T=y+1;p[T]!=null&&((v=p[T].t)==="?"||v==="D"||(v===" "||v==="t")&&p[T+1]!=null&&(p[T+1].t==="?"||p[T+1].t==="t"&&p[T+1].v==="/")||p[y].t==="("&&(v===" "||v==="n"||v===")")||v==="t"&&(p[T].v==="/"||p[T].v===" "&&p[T+1]!=null&&p[T+1].t=="?"));)p[y].v+=p[T].v,p[T]={v:"",t:";"},++T;O+=p[y].v,y=T-1;break;case"G":p[y].t="t",p[y].v=kr(i,l)}var N,I,X="";if(0<O.length){O.charCodeAt(0)==40?(N=i<0&&O.charCodeAt(0)===45?-i:i,I=Da("n",O,N)):(I=Da("n",O,N=i<0&&1<c?-i:i),N<0&&p[0]&&p[0].t=="t"&&(I=I.substr(1),p[0].v="-"+p[0].v)),T=I.length-1;for(var se=p.length,y=0;y<p.length;++y)if(p[y]!=null&&p[y].t!="t"&&-1<p[y].v.indexOf(".")){se=y;break}var te=p.length;if(se===p.length&&I.indexOf("E")===-1){for(y=p.length-1;0<=y;--y)p[y]!=null&&"n?".indexOf(p[y].t)!==-1&&(T>=p[y].v.length-1?(T-=p[y].v.length,p[y].v=I.substr(T+1,p[y].v.length)):T<0?p[y].v="":(p[y].v=I.substr(0,T+1),T=-1),p[y].t="t",te=y);0<=T&&te<p.length&&(p[te].v=I.substr(0,T+1)+p[te].v)}else if(se!==p.length&&I.indexOf("E")===-1){for(T=I.indexOf(".")-1,y=se;0<=y;--y)if(p[y]!=null&&"n?".indexOf(p[y].t)!==-1){for(h=-1<p[y].v.indexOf(".")&&y===se?p[y].v.indexOf(".")-1:p[y].v.length-1,X=p[y].v.substr(h+1);0<=h;--h)0<=T&&(p[y].v.charAt(h)==="0"||p[y].v.charAt(h)==="#")&&(X=I.charAt(T--)+X);p[y].v=X,p[y].t="t",te=y}for(0<=T&&te<p.length&&(p[te].v=I.substr(0,T+1)+p[te].v),T=I.indexOf(".")+1,y=se;y<p.length;++y)if(p[y]!=null&&("n?(".indexOf(p[y].t)!==-1||y===se)){for(h=-1<p[y].v.indexOf(".")&&y===se?p[y].v.indexOf(".")+1:0,X=p[y].v.substr(0,h);h<p[y].v.length;++h)T<I.length&&(X+=I.charAt(T++));p[y].v=X,p[y].t="t",te=y}}}for(y=0;y<p.length;++y)p[y]!=null&&-1<"n?".indexOf(p[y].t)&&(N=1<c&&i<0&&0<y&&p[y-1].v==="-"?-i:i,p[y].v=Da(p[y].t,p[y].v,N),p[y].t="t");var ce="";for(y=0;y!==p.length;++y)p[y]!=null&&(ce+=p[y].v);return ce}var Kf=/\[(=|>[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Jf(a,i){if(i!=null){var l=parseFloat(i[2]);switch(i[1]){case"=":if(a==l)return 1;break;case">":if(l<a)return 1;break;case"<":if(a<l)return 1;break;case"<>":if(a!=l)return 1;break;case">=":if(l<=a)return 1;break;case"<=":if(a<=l)return 1}}}function p1(a,i){var l=function(d){for(var p=[],g=!1,y=0,v=0;y<d.length;++y)switch(d.charCodeAt(y)){case 34:g=!g;break;case 95:case 42:case 92:++y;break;case 59:p[p.length]=d.substr(v,y-v),v=y+1}if(p[p.length]=d.substr(v),g===!0)throw new Error("Format |"+d+"| unterminated string ");return p}(a),c=l.length,f=l[c-1].indexOf("@");if(c<4&&-1<f&&--c,4<l.length)throw new Error("cannot find right format for |"+l.join("|")+"|");if(typeof i!="number")return[4,l.length===4||-1<f?l[l.length-1]:"@"];switch(l.length){case 1:l=-1<f?["General","General","General",l[0]]:[l[0],l[0],l[0],"@"];break;case 2:l=-1<f?[l[0],l[0],l[0],l[1]]:[l[0],l[1],l[0],"@"];break;case 3:l=-1<f?[l[0],l[1],l[0],l[2]]:[l[0],l[1],l[2],"@"]}var h=0<i?l[0]:i<0?l[1]:l[2];return l[0].indexOf("[")===-1&&l[1].indexOf("[")===-1?[c,h]:l[0].match(/\[[=<>]/)==null&&l[1].match(/\[[=<>]/)==null?[c,h]:(a=l[0].match(Kf),h=l[1].match(Kf),Jf(i,a)?[c,l[0]]:Jf(i,h)?[c,l[1]]:[c,l[a!=null&&h!=null?2:1]])}function Us(a,i,l){l==null&&(l={});var c="";switch(typeof a){case"string":c=a=="m/d/yy"&&l.dateNF?l.dateNF:a;break;case"number":(c=(c=a==14&&l.dateNF?l.dateNF:(l.table!=null?l.table:oe)[a])==null?l.table&&l.table[pe[a]]||oe[pe[a]]:c)==null&&(c=re[a]||"General")}if(Ce(c,0))return kr(i,l);var f=p1(c,i=i instanceof Date?xt(i,l.date1904):i);if(Ce(f[1]))return kr(i,l);if(i===!0)i="TRUE";else if(i===!1)i="FALSE";else if(i===""||i==null)return"";return h1(f[1],i,l,f[0])}function pa(a,i){if(typeof i!="number"){i=+i||-1;for(var l=0;l<392;++l)if(oe[l]!=null){if(oe[l]==a){i=l;break}}else i<0&&(i=l);i<0&&(i=391)}return oe[i]=a,i}function ii(a){for(var i=0;i!=392;++i)a[i]!==void 0&&pa(a[i],i)}function Lo(){var a;(a=a||{})[0]="General",a[1]="0",a[2]="0.00",a[3]="#,##0",a[4]="#,##0.00",a[9]="0%",a[10]="0.00%",a[11]="0.00E+00",a[12]="# ?/?",a[13]="# ??/??",a[14]="m/d/yy",a[15]="d-mmm-yy",a[16]="d-mmm",a[17]="mmm-yy",a[18]="h:mm AM/PM",a[19]="h:mm:ss AM/PM",a[20]="h:mm",a[21]="h:mm:ss",a[22]="m/d/yy h:mm",a[37]="#,##0 ;(#,##0)",a[38]="#,##0 ;[Red](#,##0)",a[39]="#,##0.00;(#,##0.00)",a[40]="#,##0.00;[Red](#,##0.00)",a[45]="mm:ss",a[46]="[h]:mm:ss",a[47]="mmss.0",a[48]="##0.0E+0",a[49]="@",a[56]='"上午/下午 "hh"時"mm"分"ss"秒 "',oe=a}var Xf={format:Us,load:pa,_table:oe,load_table:ii,parse_date_code:Pe,is_date:$a,get_table:function(){return Xf._table=oe}},m1={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"},Qf=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Ia,g1=function(){var a={};a.version="1.2.0";var i=function(){for(var T=0,O=new Array(256),N=0;N!=256;++N)T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=1&(T=N)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1)?-306674912^T>>>1:T>>>1,O[N]=T;return typeof Int32Array<"u"?new Int32Array(O):O}(),l=function(T){for(var O=0,N=0,X=0,I=new(typeof Int32Array<"u"?Int32Array:Array)(4096),X=0;X!=256;++X)I[X]=T[X];for(X=0;X!=256;++X)for(N=T[X],O=256+X;O<4096;O+=256)N=I[O]=N>>>8^T[255&N];var se=[];for(X=1;X!=16;++X)se[X-1]=typeof Int32Array<"u"?I.subarray(256*X,256*X+256):I.slice(256*X,256*X+256);return se}(i),c=l[0],f=l[1],h=l[2],d=l[3],p=l[4],g=l[5],y=l[6],v=l[7],x=l[8],C=l[9],F=l[10],R=l[11],A=l[12],P=l[13],L=l[14];return a.table=i,a.bstr=function(T,O){for(var N=-1^O,I=0,X=T.length;I<X;)N=N>>>8^i[255&(N^T.charCodeAt(I++))];return~N},a.buf=function(T,O){for(var N=-1^O,I=T.length-15,X=0;X<I;)N=L[T[X++]^255&N]^P[T[X++]^N>>8&255]^A[T[X++]^N>>16&255]^R[T[X++]^N>>>24]^F[T[X++]]^C[T[X++]]^x[T[X++]]^v[T[X++]]^y[T[X++]]^g[T[X++]]^p[T[X++]]^d[T[X++]]^h[T[X++]]^f[T[X++]]^c[T[X++]]^i[T[X++]];for(I+=15;X<I;)N=N>>>8^i[255&(N^T[X++])];return~N},a.str=function(T,O){for(var N,I=-1^O,X=0,se=T.length,te=0;X<se;)I=(te=T.charCodeAt(X++))<128?I>>>8^i[255&(I^te)]:te<2048?(I=I>>>8^i[255&(I^(192|te>>6&31))])>>>8^i[255&(I^(128|63&te))]:55296<=te&&te<57344?(te=64+(1023&te),N=1023&T.charCodeAt(X++),(I=(I=(I=I>>>8^i[255&(I^(240|te>>8&7))])>>>8^i[255&(I^(128|te>>2&63))])>>>8^i[255&(I^(128|N>>6&15|(3&te)<<4))])>>>8^i[255&(I^(128|63&N))]):(I=(I=I>>>8^i[255&(I^(224|te>>12&15))])>>>8^i[255&(I^(128|te>>6&63))])>>>8^i[255&(I^(128|63&te))];return~I},a}(),_t=function(){var a,i={};function l(B){if(B.charAt(B.length-1)=="/")return B.slice(0,-1).indexOf("/")===-1?B:l(B.slice(0,-1));var he=B.lastIndexOf("/");return he===-1?B:B.slice(0,he+1)}function c(B){if(B.charAt(B.length-1)=="/")return c(B.slice(0,-1));var he=B.lastIndexOf("/");return he===-1?B:B.slice(he+1)}function f(B){gs(B,0);for(var he,J={};B.l<=B.length-4;){var fe=B.read_shift(2),q=B.read_shift(2),Ee=B.l+q,ue={};fe===21589&&(1&(he=B.read_shift(1))&&(ue.mtime=B.read_shift(4)),5<q&&(2&he&&(ue.atime=B.read_shift(4)),4&he&&(ue.ctime=B.read_shift(4))),ue.mtime&&(ue.mt=new Date(1e3*ue.mtime))),B.l=Ee,J[fe]=ue}return J}function h(){return a=a||af}function d(B,he){if(B[0]==80&&B[1]==75)return _r(B,he);if((32|B[0])==109&&(32|B[1])==105)return function(Me,ht){if(T(Me.slice(0,13)).toLowerCase()!="mime-version:")throw new Error("Unsupported MAD header");var Qe=ht&&ht.root||"",Ie=(H&&Buffer.isBuffer(Me)?Me.toString("binary"):T(Me)).split(`\r `),vt=0,wt="";for(vt=0;vt<Ie.length;++vt)if(wt=Ie[vt],/^Content-Location:/i.test(wt)&&(wt=wt.slice(wt.indexOf("file")),Qe=Qe||wt.slice(0,wt.lastIndexOf("/")+1),wt.slice(0,Qe.length)!=Qe))for(;0<Qe.length&&(Qe=(Qe=Qe.slice(0,Qe.length-1)).slice(0,Qe.lastIndexOf("/")+1),wt.slice(0,Qe.length)!=Qe););if(Me=(Ie[1]||"").match(/boundary="(.*?)"/),!Me)throw new Error("MAD cannot find boundary");var Lr="--"+(Me[1]||""),Ft={FileIndex:[],FullPaths:[]};g(Ft);var Mt,lt=0;for(vt=0;vt<Ie.length;++vt){var Yt=Ie[vt];Yt!==Lr&&Yt!==Lr+"--"||(lt++&&function(Xt,Ke,at){for(var et,Vt="",gr="",ls="",ps=0;ps<10;++ps){var as=Ke[ps];if(!as||as.match(/^\s*$/))break;var As=as.match(/^(.*?):\s*([^\s].*)$/);if(As)switch(As[1].toLowerCase()){case"content-location":Vt=As[2].trim();break;case"content-type":ls=As[2].trim();break;case"content-transfer-encoding":gr=As[2].trim()}}switch(++ps,gr.toLowerCase()){case"base64":et=ve(z(Ke.slice(ps).join("")));break;case"quoted-printable":et=function(Ds){for(var go=[],Os=0;Os<Ds.length;++Os){for(var La=Ds[Os];Os<=Ds.length&&La.charAt(La.length-1)=="=";)La=La.slice(0,La.length-1)+Ds[++Os];go.push(La)}for(var bo=0;bo<go.length;++bo)go[bo]=go[bo].replace(/[=][0-9A-Fa-f]{2}/g,function(kb){return String.fromCharCode(parseInt(kb.slice(1),16))});return ve(go.join(`\r `))}(Ke.slice(ps));break;default:throw new Error("Unsupported Content-Transfer-Encoding "+gr)}at=$s(Xt,Vt.slice(at.length),et,{unsafe:!0}),ls&&(at.ctype=ls)}(Ft,Ie.slice(Mt,vt),Qe),Mt=vt)}return Ft}(B,he);if(B.length<512)throw new Error("CFB file size "+B.length+" < 512");var J,fe,q,Ee=3,ue=512,ze=0,me=[],le=B.slice(0,512);gs(le,0);var be=function(Me){if(Me[Me.l]==80&&Me[Me.l+1]==75)return[0,0];Me.chk(R,"Header Signature: "),Me.l+=16;var ht=Me.read_shift(2,"u");return[Me.read_shift(2,"u"),ht]}(le);switch(Ee=be[0]){case 3:ue=512;break;case 4:ue=4096;break;case 0:if(be[1]==0)return _r(B,he);default:throw new Error("Major Version: Expected 3 or 4 saw "+Ee)}ue!==512&&gs(le=B.slice(0,ue),28);var Le=B.slice(0,ue);(function(Me,ht){var Qe=9;switch(Me.l+=2,Qe=Me.read_shift(2)){case 9:if(ht!=3)throw new Error("Sector Shift: Expected 9 saw "+Qe);break;case 12:if(ht!=4)throw new Error("Sector Shift: Expected 12 saw "+Qe);break;default:throw new Error("Sector Shift: Expected 9 or 12 saw "+Qe)}Me.chk("0600","Mini Sector Shift: "),Me.chk("000000000000","Reserved: ")})(le,Ee);var ut=le.read_shift(4,"i");if(Ee===3&&ut!==0)throw new Error("# Directory Sectors: Expected 0 saw "+ut);le.l+=4,fe=le.read_shift(4,"i"),le.l+=4,le.chk("00100000","Mini Stream Cutoff Size: "),q=le.read_shift(4,"i"),J=le.read_shift(4,"i"),dt=le.read_shift(4,"i"),ze=le.read_shift(4,"i");for(var nt,Ze=0;Ze<109&&!((nt=le.read_shift(4,"i"))<0);++Ze)me[Ze]=nt;var Ye=function(Me,ht){for(var Qe=Math.ceil(Me.length/ht)-1,Ie=[],vt=1;vt<Qe;++vt)Ie[vt-1]=Me.slice(vt*ht,(vt+1)*ht);return Ie[Qe-1]=Me.slice(Qe*ht),Ie}(B,ue);(function Me(ht,Qe,Ie,vt,wt){var Lr=F;if(ht===F){if(Qe!==0)throw new Error("DIFAT chain shorter than expected")}else if(ht!==-1){var Ft=Ie[ht],Mt=(vt>>>2)-1;if(Ft){for(var lt=0;lt<Mt&&(Lr=ro(Ft,4*lt))!==F;++lt)wt.push(Lr);Me(ro(Ft,vt-4),Qe-1,Ie,vt,wt)}}})(dt,ze,Ye,ue,me);var st=function(Me,ht,Qe,Ie){var vt=Me.length,wt=[],Lr=[],Ft=[],Mt=[],lt=Ie-1,Yt=0,Xt=0,Ke=0,at=0;for(Yt=0;Yt<vt;++Yt)if(Ft=[],vt<=(Ke=Yt+ht)&&(Ke-=vt),!Lr[Ke]){Mt=[];var et=[];for(Xt=Ke;0<=Xt;){et[Xt]=!0,Lr[Xt]=!0,Ft[Ft.length]=Xt,Mt.push(Me[Xt]);var Vt=Qe[Math.floor(4*Xt/Ie)];if(Ie<4+(at=4*Xt<))throw new Error("FAT boundary crossed: "+Xt+" 4 "+Ie);if(!Me[Vt]||(Xt=ro(Me[Vt],at),et[Xt]))break}wt[Ke]={nodes:Ft,data:Eu([Mt])}}return wt}(Ye,fe,me,ue);st[fe].name="!Directory",0<J&&q!==F&&(st[q].name="!MiniFAT"),st[me[0]].name="!FAT",st.fat_addrs=me,st.ssz=ue;var ut=[],dt=[],ze=[];return function(Me,ht,Qe,Ie,vt,wt,Lr){for(var Ft,Mt=0,lt=Qe.length?2:0,Yt=Me[fe].data,Xt=0,Ke=0;Xt<Yt.length;Xt+=128){var at=Yt.slice(Xt,Xt+128);gs(at,64),Ke=at.read_shift(2),Ft=mn(at,0,Ke-lt),Qe.push(Ft);var et={name:Ft,type:at.read_shift(1),color:at.read_shift(1),L:at.read_shift(4,"i"),R:at.read_shift(4,"i"),C:at.read_shift(4,"i"),clsid:at.read_shift(16),state:at.read_shift(4,"i"),start:0,size:0};at.read_shift(2)+at.read_shift(2)+at.read_shift(2)+at.read_shift(2)!==0&&(et.ct=p(at,at.l-8)),at.read_shift(2)+at.read_shift(2)+at.read_shift(2)+at.read_shift(2)!==0&&(et.mt=p(at,at.l-8)),et.start=at.read_shift(4,"i"),et.size=at.read_shift(4,"i"),et.size<0&&et.start<0&&(et.size=et.type=0,et.start=F,et.name=""),et.type===5?(Mt=et.start,0<Ie&&Mt!==F&&(Me[Mt].name="!StreamData")):4096<=et.size?(et.storage="fat",Me[et.start]===void 0&&(Me[et.start]=function(Vt,gr,ls,ps,as){var As=[],Ds=[];as=as||[];var go=ps-1,Os=0,La=0;for(Os=gr;0<=Os;){as[Os]=!0,As[As.length]=Os,Ds.push(Vt[Os]);var bo=ls[Math.floor(4*Os/ps)];if(ps<4+(La=4*Os&go))throw new Error("FAT boundary crossed: "+Os+" 4 "+ps);if(!Vt[bo])break;Os=ro(Vt[bo],La)}return{nodes:As,data:Eu([Ds])}}(ht,et.start,Me.fat_addrs,Me.ssz)),Me[et.start].name=et.name,et.content=Me[et.start].data.slice(0,et.size)):(et.storage="minifat",et.size<0?et.size=0:Mt!==F&&et.start!==F&&Me[Mt]&&(et.content=function(Vt,gr,ls){for(var ps=Vt.start,as=Vt.size,As=[],Ds=ps;ls&&0<as&&0<=Ds;)As.push(gr.slice(Ds*C,Ds*C+C)),as-=C,Ds=ro(ls,4*Ds);return As.length===0?ge(0):ft(As).slice(0,Vt.size)}(et,Me[Mt].data,(Me[Lr]||{}).data))),et.content&&gs(et.content,0),vt[Ft]=et,wt.push(et)}}(st,Ye,ut,J,{},dt,q),function(Me,ht,Qe){for(var Ie=0,vt=0,wt=0,Lr=0,Ft=0,Mt=Qe.length,lt=[],Yt=[];Ie<Mt;++Ie)lt[Ie]=Yt[Ie]=Ie,ht[Ie]=Qe[Ie];for(;Ft<Yt.length;++Ft)Ie=Yt[Ft],vt=Me[Ie].L,wt=Me[Ie].R,Lr=Me[Ie].C,lt[Ie]===Ie&&(vt!==-1&<[vt]!==vt&&(lt[Ie]=lt[vt]),wt!==-1&<[wt]!==wt&&(lt[Ie]=lt[wt])),Lr!==-1&&(lt[Lr]=Ie),vt!==-1&&Ie!=lt[Ie]&&(lt[vt]=lt[Ie],Yt.lastIndexOf(vt)<Ft&&Yt.push(vt)),wt!==-1&&Ie!=lt[Ie]&&(lt[wt]=lt[Ie],Yt.lastIndexOf(wt)<Ft&&Yt.push(wt));for(Ie=1;Ie<Mt;++Ie)lt[Ie]===Ie&&(wt!==-1&<[wt]!==wt?lt[Ie]=lt[wt]:vt!==-1&<[vt]!==vt&&(lt[Ie]=lt[vt]));for(Ie=1;Ie<Mt;++Ie)if(Me[Ie].type!==0){if((Ft=Ie)!=lt[Ft])for(;Ft=lt[Ft],ht[Ie]=ht[Ft]+"/"+ht[Ie],Ft!==0&<[Ft]!==-1&&Ft!=lt[Ft];);lt[Ie]=-1}for(ht[0]+="/",Ie=1;Ie<Mt;++Ie)Me[Ie].type!==2&&(ht[Ie]+="/")}(dt,ze,ut),ut.shift(),ze={FileIndex:dt,FullPaths:ze},he&&he.raw&&(ze.raw={header:Le,sectors:Ye}),ze}function p(B,he){return new Date(1e3*(ds(B,he+4)/1e7*Math.pow(2,32)+ds(B,he)/1e7-11644473600))}function g(B,fe){var J=fe||{},fe=J.root||"Root Entry";if(B.FullPaths||(B.FullPaths=[]),B.FileIndex||(B.FileIndex=[]),B.FullPaths.length!==B.FileIndex.length)throw new Error("inconsistent CFB structure");B.FullPaths.length===0&&(B.FullPaths[0]=fe+"/",B.FileIndex[0]={name:fe,type:5}),J.CLSID&&(B.FileIndex[0].clsid=J.CLSID),fe=B,J="Sh33tJ5",_t.find(fe,"/"+J)||((B=ge(4))[0]=55,B[1]=B[3]=50,B[2]=54,fe.FileIndex.push({name:J,type:2,content:B,size:4,L:69,R:69,C:69}),fe.FullPaths.push(fe.FullPaths[0]+J),y(fe))}function y(B,he){g(B);for(var J=!1,fe=!1,q=B.FullPaths.length-1;0<=q;--q){var Ee=B.FileIndex[q];switch(Ee.type){case 0:fe?J=!0:(B.FileIndex.pop(),B.FullPaths.pop());break;case 1:case 2:case 5:fe=!0,isNaN(Ee.R*Ee.L*Ee.C)&&(J=!0),-1<Ee.R&&-1<Ee.L&&Ee.R==Ee.L&&(J=!0);break;default:J=!0}}if(J||he){for(var ue=new Date(1987,1,19),me=0,le=Object.create?Object.create(null):{},be=[],q=0;q<B.FullPaths.length;++q)le[B.FullPaths[q]]=!0,B.FileIndex[q].type!==0&&be.push([B.FullPaths[q],B.FileIndex[q]]);for(q=0;q<be.length;++q){var Le=l(be[q][0]);(fe=le[Le])||(be.push([Le,{name:c(Le).replace("/",""),type:1,clsid:P,ct:ue,mt:ue,content:null}]),le[Le]=!0)}for(be.sort(function(Ye,st){return function(ut,dt){for(var ze,Me=ut.split("/"),ht=dt.split("/"),Qe=0,Ie=Math.min(Me.length,ht.length);Qe<Ie;++Qe){if(ze=Me[Qe].length-ht[Qe].length)return ze;if(Me[Qe]!=ht[Qe])return Me[Qe]<ht[Qe]?-1:1}return Me.length-ht.length}(Ye[0],st[0])}),B.FullPaths=[],B.FileIndex=[],q=0;q<be.length;++q)B.FullPaths[q]=be[q][0],B.FileIndex[q]=be[q][1];for(q=0;q<be.length;++q){var nt=B.FileIndex[q],Ze=B.FullPaths[q];if(nt.name=c(Ze).replace("/",""),nt.L=nt.R=nt.C=-(nt.color=1),nt.size=nt.content?nt.content.length:0,nt.start=0,nt.clsid=nt.clsid||P,q===0)nt.C=1<be.length?1:-1,nt.size=0,nt.type=5;else if(Ze.slice(-1)=="/"){for(me=q+1;me<be.length&&l(B.FullPaths[me])!=Ze;++me);for(nt.C=me>=be.length?-1:me,me=q+1;me<be.length&&l(B.FullPaths[me])!=l(Ze);++me);nt.R=me>=be.length?-1:me,nt.type=1}else l(B.FullPaths[q+1]||"")==l(Ze)&&(nt.R=q+1),nt.type=2}}}function v(B,he){var J=he||{};if(J.fileType=="mad")return function(Ze,Ye){for(var st=Ye||{},ut=st.boundary||"SheetJS",dt=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(ut="------="+ut).slice(2)+'"',"","",""],ze=Ze.FullPaths[0],Me=ze,ht=Ze.FileIndex[0],Qe=1;Qe<Ze.FullPaths.length;++Qe)if(Me=Ze.FullPaths[Qe].slice(ze.length),(ht=Ze.FileIndex[Qe]).size&&ht.content&&Me!="Sh33tJ5"){Me=Me.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF]/g,function(lt){return"_x"+lt.charCodeAt(0).toString(16)+"_"}).replace(/[\u0080-\uFFFF]/g,function(lt){return"_u"+lt.charCodeAt(0).toString(16)+"_"});for(var Ie=ht.content,vt=H&&Buffer.isBuffer(Ie)?Ie.toString("binary"):T(Ie),wt=0,Lr=Math.min(1024,vt.length),Ft=0,Mt=0;Mt<=Lr;++Mt)32<=(Ft=vt.charCodeAt(Mt))&&Ft<128&&++wt;Ie=4*Lr/5<=wt,dt.push(ut),dt.push("Content-Location: "+(st.root||"file:///C:/SheetJS/")+Me),dt.push("Content-Transfer-Encoding: "+(Ie?"quoted-printable":"base64")),dt.push("Content-Type: "+function(Ke,Yt){if(Ke.ctype)return Ke.ctype;var Xt=Ke.name||"",Ke=Xt.match(/\.([^\.]+)$/);return Ke&&ns[Ke[1]]||Yt&&(Ke=(Xt=Yt).match(/[\.\\]([^\.\\])+$/))&&ns[Ke[1]]?ns[Ke[1]]:"application/octet-stream"}(ht,Me)),dt.push(""),dt.push((Ie?function(lt){lt=lt.replace(/[\x00-\x08\x0B\x0C\x0E-\x1F\x7E-\xFF=]/g,function(ls){return ls=ls.charCodeAt(0).toString(16).toUpperCase(),"="+(ls.length==1?"0"+ls:ls)}),(lt=lt.replace(/ $/gm,"=20").replace(/\t$/gm,"=09")).charAt(0)==` `&&(lt="=0D"+lt.slice(1)),lt=lt.replace(/\r(?!\n)/gm,"=0D").replace(/\n\n/gm,` =0A`).replace(/([^\r\n])\n/gm,"$1=0A");for(var Yt=[],Xt=lt.split(`\r `),Ke=0;Ke<Xt.length;++Ke){var at=Xt[Ke];if(at.length!=0)for(var et=0;et<at.length;){var Vt=76,gr=at.slice(et,et+Vt);gr.charAt(Vt-1)=="="?Vt--:gr.charAt(Vt-2)=="="?Vt-=2:gr.charAt(Vt-3)=="="&&(Vt-=3),gr=at.slice(et,et+Vt),(et+=Vt)<at.length&&(gr+="="),Yt.push(gr)}else Yt.push("")}return Yt.join(`\r `)}:function(lt){for(var Yt=ie(lt),Xt=[],Ke=0;Ke<Yt.length;Ke+=76)Xt.push(Yt.slice(Ke,Ke+76));return Xt.join(`\r `)+`\r `})(vt))}return dt.push(ut+`--\r `),dt.join(`\r `)}(B,J);if(y(B),J.fileType==="zip")return function(Ze,st){var st=st||{},ut=[],dt=[],ze=ge(1),Me=st.compression?8:0,ht=0,Qe=0,Ie=0,vt=0,wt=0,Lr=Ze.FullPaths[0],Ft=Lr,Mt=Ze.FileIndex[0],lt=[],Yt=0;for(Qe=1;Qe<Ze.FullPaths.length;++Qe)if(Ft=Ze.FullPaths[Qe].slice(Lr.length),(Mt=Ze.FileIndex[Qe]).size&&Mt.content&&Ft!="Sh33tJ5"){var Xt=vt,Ke=ge(Ft.length);for(Ie=0;Ie<Ft.length;++Ie)Ke.write_shift(1,127&Ft.charCodeAt(Ie));Ke=Ke.slice(0,Ke.l),lt[wt]=g1.buf(Mt.content,0);var at=Mt.content;Me==8&&(at=function(et){return x?x.deflateRawSync(et):Xe(et)}(at)),(ze=ge(30)).write_shift(4,67324752),ze.write_shift(2,20),ze.write_shift(2,ht),ze.write_shift(2,Me),Mt.mt?function(et,Vt){var gr=(Vt=typeof Vt=="string"?new Date(Vt):Vt).getHours();gr=(gr=gr<<6|Vt.getMinutes())<<5|Vt.getSeconds()>>>1,et.write_shift(2,gr),gr=(gr=(gr=Vt.getFullYear()-1980)<<4|Vt.getMonth()+1)<<5|Vt.getDate(),et.write_shift(2,gr)}(ze,Mt.mt):ze.write_shift(4,0),ze.write_shift(-4,lt[wt]),ze.write_shift(4,at.length),ze.write_shift(4,Mt.content.length),ze.write_shift(2,Ke.length),ze.write_shift(2,0),vt+=ze.length,ut.push(ze),vt+=Ke.length,ut.push(Ke),vt+=at.length,ut.push(at),(ze=ge(46)).write_shift(4,33639248),ze.write_shift(2,0),ze.write_shift(2,20),ze.write_shift(2,ht),ze.write_shift(2,Me),ze.write_shift(4,0),ze.write_shift(-4,lt[wt]),ze.write_shift(4,at.length),ze.write_shift(4,Mt.content.length),ze.write_shift(2,Ke.length),ze.write_shift(2,0),ze.write_shift(2,0),ze.write_shift(2,0),ze.write_shift(2,0),ze.write_shift(4,0),ze.write_shift(4,Xt),Yt+=ze.l,dt.push(ze),Yt+=Ke.length,dt.push(Ke),++wt}return(ze=ge(22)).write_shift(4,101010256),ze.write_shift(2,0),ze.write_shift(2,0),ze.write_shift(2,wt),ze.write_shift(2,wt),ze.write_shift(4,Yt),ze.write_shift(4,vt),ze.write_shift(2,0),ft([ft(ut),ft(dt),ze])}(B,J);for(var fe=function(Ze){for(var Ye=0,st=0,ut=0;ut<Ze.FileIndex.length;++ut){var dt=Ze.FileIndex[ut];dt.content&&0<(dt=dt.content.length)&&(dt<4096?Ye+=dt+63>>6:st+=dt+511>>9)}for(var ze=Ze.FullPaths.length+3>>2,Me=Ye+127>>7,ht=(Ye+7>>3)+st+ze+Me,Qe=ht+127>>7,Ie=Qe<=109?0:Math.ceil((Qe-109)/127);Qe<ht+Qe+Ie+127>>7;)Ie=++Qe<=109?0:Math.ceil((Qe-109)/127);return ze=[1,Ie,Qe,Me,ze,st,Ye,0],Ze.FileIndex[0].size=Ye<<6,ze[7]=(Ze.FileIndex[0].start=ze[0]+ze[1]+ze[2]+ze[3]+ze[4]+ze[5])+(ze[6]+7>>3),ze}(B),q=ge(fe[7]<<9),ue=0,Ee=0,ue=0;ue<8;++ue)q.write_shift(1,A[ue]);for(ue=0;ue<8;++ue)q.write_shift(2,0);for(q.write_shift(2,62),q.write_shift(2,3),q.write_shift(2,65534),q.write_shift(2,9),q.write_shift(2,6),ue=0;ue<3;++ue)q.write_shift(2,0);for(q.write_shift(4,0),q.write_shift(4,fe[2]),q.write_shift(4,fe[0]+fe[1]+fe[2]+fe[3]-1),q.write_shift(4,0),q.write_shift(4,4096),q.write_shift(4,fe[3]?fe[0]+fe[1]+fe[2]-1:F),q.write_shift(4,fe[3]),q.write_shift(-4,fe[1]?fe[0]-1:F),q.write_shift(4,fe[1]),ue=0;ue<109;++ue)q.write_shift(-4,ue<fe[2]?fe[1]+ue:-1);if(fe[1])for(Ee=0;Ee<fe[1];++Ee){for(;ue<236+127*Ee;++ue)q.write_shift(-4,ue<fe[2]?fe[1]+ue:-1);q.write_shift(-4,Ee===fe[1]-1?F:Ee+1)}function me(Ze){for(Ee+=Ze;ue<Ee-1;++ue)q.write_shift(-4,ue+1);Ze&&(++ue,q.write_shift(-4,F))}for(Ee=ue=0,Ee+=fe[1];ue<Ee;++ue)q.write_shift(-4,L.DIFSECT);for(Ee+=fe[2];ue<Ee;++ue)q.write_shift(-4,L.FATSECT);me(fe[3]),me(fe[4]);for(var le=0,be=0,Le=B.FileIndex[0];le<B.FileIndex.length;++le)(Le=B.FileIndex[le]).content&&((be=Le.content.length)<4096||(Le.start=Ee,me(be+511>>9)));for(me(fe[6]+7>>3);511&q.l;)q.write_shift(-4,L.ENDOFCHAIN);for(le=Ee=ue=0;le<B.FileIndex.length;++le)(Le=B.FileIndex[le]).content&&(!(be=Le.content.length)||4096<=be||(Le.start=Ee,me(be+63>>6)));for(;511&q.l;)q.write_shift(-4,L.ENDOFCHAIN);for(ue=0;ue<fe[4]<<2;++ue){var nt=B.FullPaths[ue];if(nt&&nt.length!==0){if(Le=B.FileIndex[ue],ue===0&&(Le.start=Le.size?Le.start-1:F),nt=ue===0&&J.root||Le.name,be=2*(nt.length+1),q.write_shift(64,nt,"utf16le"),q.write_shift(2,be),q.write_shift(1,Le.type),q.write_shift(1,Le.color),q.write_shift(-4,Le.L),q.write_shift(-4,Le.R),q.write_shift(-4,Le.C),Le.clsid)q.write_shift(16,Le.clsid,"hex");else for(le=0;le<4;++le)q.write_shift(4,0);q.write_shift(4,Le.state||0),q.write_shift(4,0),q.write_shift(4,0),q.write_shift(4,0),q.write_shift(4,0),q.write_shift(4,Le.start),q.write_shift(4,Le.size),q.write_shift(4,0)}else{for(le=0;le<17;++le)q.write_shift(4,0);for(le=0;le<3;++le)q.write_shift(4,-1);for(le=0;le<12;++le)q.write_shift(4,0)}}for(ue=1;ue<B.FileIndex.length;++ue)if(4096<=(Le=B.FileIndex[ue]).size)if(q.l=Le.start+1<<9,H&&Buffer.isBuffer(Le.content))Le.content.copy(q,q.l,0,Le.size),q.l+=Le.size+511&-512;else{for(le=0;le<Le.size;++le)q.write_shift(1,Le.content[le]);for(;511≤++le)q.write_shift(1,0)}for(ue=1;ue<B.FileIndex.length;++ue)if(0<(Le=B.FileIndex[ue]).size&&Le.size<4096)if(H&&Buffer.isBuffer(Le.content))Le.content.copy(q,q.l,0,Le.size),q.l+=Le.size+63&-64;else{for(le=0;le<Le.size;++le)q.write_shift(1,Le.content[le]);for(;63≤++le)q.write_shift(1,0)}if(H)q.l=q.length;else for(;q.l<q.length;)q.write_shift(1,0);return q}i.version="1.2.1";var x,C=64,F=-2,R="d0cf11e0a1b11ae1",A=[208,207,17,224,161,177,26,225],P="00000000000000000000000000000000",L={MAXREGSECT:-6,DIFSECT:-4,FATSECT:-3,ENDOFCHAIN:F,FREESECT:-1,HEADER_SIGNATURE:R,HEADER_MINOR_VERSION:"3e00",MAXREGSID:-6,NOSTREAM:-1,HEADER_CLSID:P,EntryTypes:["unknown","storage","stream","lockbytes","property","root"]};function T(B){for(var he=new Array(B.length),J=0;J<B.length;++J)he[J]=String.fromCharCode(B[J]);return he.join("")}for(var O=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],N=[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],I=[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],X,se=typeof Uint8Array<"u",te=se?new Uint8Array(256):[],ce=0;ce<256;++ce)te[ce]=255&((X=139536&((X=ce)<<1|X<<11)|558144&(X<<5|X<<15))>>16|X>>8|X);function _e(B,fe){var J=7&fe,fe=fe>>>3;return(B[fe]|(J<=5?0:B[1+fe]<<8))>>>J&7}function we(B,fe){var J=7&fe,fe=fe>>>3;return(B[fe]|(J<=3?0:B[1+fe]<<8))>>>J&31}function de(B,fe){var J=7&fe,fe=fe>>>3;return(B[fe]|(J<=1?0:B[1+fe]<<8))>>>J&127}function Re(B,ue,J){var fe=7&ue,q=ue>>>3,Ee=(1<<J)-1,ue=B[q]>>>fe;return J<8-fe?ue&Ee:(ue|=B[1+q]<<8-fe,J<16-fe?ue&Ee:(ue|=B[2+q]<<16-fe,J<24-fe?ue&Ee:(ue|=B[3+q]<<24-fe)&Ee))}function qe(B,he,J){var fe=7&he,q=he>>>3;return fe<=5?B[q]|=(7&J)<<fe:(B[q]|=J<<fe&255,B[1+q]=(7&J)>>8-fe),he+3}function He(B,he,J){var fe=he>>>3;return J<<=7&he,B[fe]|=255&J,J>>>=8,B[1+fe]=J,he+8}function Ne(B,he,J){var fe=he>>>3;return J<<=7&he,B[fe]|=255&J,J>>>=8,B[1+fe]=255&J,B[2+fe]=J>>>8,he+16}function Ue(B,he){var J=B.length,fe=he<2*J?2*J:he+5,q=0;if(he<=J)return B;if(H){var Ee=De(fe);if(B.copy)B.copy(Ee);else for(;q<B.length;++q)Ee[q]=B[q];return Ee}if(se){var ue=new Uint8Array(fe);if(ue.set)ue.set(B);else for(;q<J;++q)ue[q]=B[q];return ue}return B.length=fe,B}function Oe(B){for(var he=new Array(B),J=0;J<B;++J)he[J]=0;return he}function Fe(B,he,J){for(var fe,q=1,be=0,Ee=0,ue=0,me=B.length,le=se?new Uint16Array(32):Oe(32),be=0;be<32;++be)le[be]=0;for(be=me;be<J;++be)B[be]=0;me=B.length;var Le=se?new Uint16Array(me):Oe(me);for(be=0;be<me;++be)le[fe=B[be]]++,q<fe&&(q=fe),Le[be]=0;for(le[0]=0,be=1;be<=q;++be)le[be+16]=ue=ue+le[be-1]<<1;for(be=0;be<me;++be)(ue=B[be])!=0&&(Le[be]=le[ue+16]++);var nt,Ze,Ye,st;for(be=0;be<me;++be)if((nt=B[be])!=0)for(Ze=Le[be],Ye=q,st=void 0,st=te[255&Ze],ue=(Ye<=8?st>>>8-Ye:(st=st<<8|te[Ze>>8&255],Ye<=16?st>>>16-Ye:(st=st<<8|te[Ze>>16&255])>>>24-Ye))>>q-nt,Ee=(1<<q+4-nt)-1;0<=Ee;--Ee)he[ue|Ee<<nt]=15&nt|be<<4;return q}var $e=se?new Uint16Array(512):Oe(512),tt=se?new Uint16Array(32):Oe(32);if(!se){for(var gt=0;gt<512;++gt)$e[gt]=0;for(gt=0;gt<32;++gt)tt[gt]=0}(function(){for(var B=[],he=0;he<32;he++)B.push(5);Fe(B,tt,32);for(var J=[],he=0;he<=143;he++)J.push(8);for(;he<=255;he++)J.push(9);for(;he<=279;he++)J.push(7);for(;he<=287;he++)J.push(8);Fe(J,$e,288)})();var Pt=function(){for(var B=se?new Uint8Array(32768):[],he=0,J=0;he<I.length-1;++he)for(;J<I[he+1];++J)B[J]=he;for(;J<32768;++J)B[J]=29;for(var fe=se?new Uint8Array(259):[],he=0,J=0;he<N.length-1;++he)for(;J<N[he+1];++J)fe[J]=he;return function(q,Ee){return(q.length<8?function(ue,me){for(var le=0;le<ue.length;){var be=Math.min(65535,ue.length-le),Le=le+be==ue.length;for(me.write_shift(1,+Le),me.write_shift(2,be),me.write_shift(2,65535&~be);0<be--;)me[me.l++]=ue[le++]}return me.l}:function(ue,me){for(var le=0,be=0,Le=se?new Uint16Array(32768):[];be<ue.length;){var nt=Math.min(65535,ue.length-be);if(nt<10){for(7&(le=qe(me,le,+(be+nt==ue.length)))&&(le+=8-(7&le)),me.l=le/8|0,me.write_shift(2,nt),me.write_shift(2,65535&~nt);0<nt--;)me[me.l++]=ue[be++];le=8*me.l}else{le=qe(me,le,+(be+nt==ue.length)+2);for(var Ze=0;0<nt--;){var Ye=ue[be],Ze=32767&(Ze<<5^Ye),st=-1,ut=0;if((st=Le[Ze])&&(be<(st|=-32768&be)&&(st-=32768),st<be))for(;ue[st+ut]==ue[be+ut]&&ut<250;)++ut;if(2<ut){(Ye=fe[ut])<=22?le=He(me,le,te[Ye+1]>>1)-1:(He(me,le,3),He(me,le+=5,te[Ye-23]>>5),le+=3);var dt=Ye<8?0:Ye-4>>2;0<dt&&(Ne(me,le,ut-N[Ye]),le+=dt),Ye=B[be-st],le=He(me,le,te[Ye]>>3),le-=3;var ze=Ye<4?0:Ye-2>>1;0<ze&&(Ne(me,le,be-st-I[Ye]),le+=ze);for(var Me=0;Me<ut;++Me)Le[Ze]=32767&be,Ze=32767&(Ze<<5^ue[be]),++be;nt-=ut-1}else Ye<=143?Ye+=48:(dt=((dt=1)&dt)<<(7&(ze=le)),me[ze>>>3]|=dt,le=ze+1),le=He(me,le,te[Ye]),Le[Ze]=32767&be,++be}le=He(me,le,0)-1}}return me.l=(le+7)/8|0,me.l})(q,Ee)}}();function Xe(J){var he=ge(50+Math.floor(1.1*J.length)),J=Pt(J,he);return he.slice(0,J)}var ke=se?new Uint16Array(32768):Oe(32768),Et=se?new Uint16Array(32768):Oe(32768),$t=se?new Uint16Array(128):Oe(128),Ht=1,vr=1;function Kr(B,he){if(B[0]==3&&!(3&B[1]))return[G(he),2];for(var J=0,fe=0,q=De(he||1<<18),Ee=0,ue=q.length>>>0,me=0,le=0;!(1&fe);)if(fe=_e(B,J),J+=3,fe>>>1!=0)for(le=fe>>1==1?(me=9,5):(J=function(ut,dt){var ze,Me,ht,Qe=we(ut,dt)+257,Ie=we(ut,dt+=5)+1,vt=(ht=7&(Me=dt+=5),4+(((ze=ut)[Me=Me>>>3]|(ht<=4?0:ze[1+Me]<<8))>>>ht&15));dt+=4;for(var wt=0,Lr=se?new Uint8Array(19):Oe(19),Ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Mt=1,lt=se?new Uint8Array(8):Oe(8),Yt=se?new Uint8Array(8):Oe(8),Xt=Lr.length,Ke=0;Ke<vt;++Ke)Lr[O[Ke]]=wt=_e(ut,dt),Mt<wt&&(Mt=wt),lt[wt]++,dt+=3;var at=0;for(lt[0]=0,Ke=1;Ke<=Mt;++Ke)Yt[Ke]=at=at+lt[Ke-1]<<1;for(Ke=0;Ke<Xt;++Ke)(at=Lr[Ke])!=0&&(Ft[Ke]=Yt[at]++);for(var et,Ke=0;Ke<Xt;++Ke)if((et=Lr[Ke])!=0){at=te[Ft[Ke]]>>8-et;for(var Vt=(1<<7-et)-1;0<=Vt;--Vt)$t[at|Vt<<et]=7&et|Ke<<3}for(var gr,ls,ps,as=[],Mt=1;as.length<Qe+Ie;)switch(dt+=7&(at=$t[de(ut,dt)]),at>>>=3){case 16:for(wt=3+(ps=void 0,ps=7&(ls=dt),((gr=ut)[ls=ls>>>3]|(ps<=6?0:gr[1+ls]<<8))>>>ps&3),dt+=2,at=as[as.length-1];0<wt--;)as.push(at);break;case 17:for(wt=3+_e(ut,dt),dt+=3;0<wt--;)as.push(0);break;case 18:for(wt=11+de(ut,dt),dt+=7;0<wt--;)as.push(0);break;default:as.push(at),Mt<at&&(Mt=at)}var As=as.slice(0,Qe),Ds=as.slice(Qe);for(Ke=Qe;Ke<286;++Ke)As[Ke]=0;for(Ke=Ie;Ke<30;++Ke)Ds[Ke]=0;return Ht=Fe(As,ke,286),vr=Fe(Ds,Et,30),dt}(B,J),me=Ht,vr);;){!he&&ue<Ee+32767&&(ue=(q=Ue(q,Ee+32767)).length);var be=Re(B,J,me),Le=(fe>>>1==1?$e:ke)[be];if(J+=15&Le,((Le>>>=4)>>>8&255)==0)q[Ee++]=Le;else{if(Le==256)break;var nt=(Le-=257)<8?0:Le-4>>2;5<nt&&(nt=0);var Ze=Ee+N[Le];0<nt&&(Ze+=Re(B,J,nt),J+=nt),be=Re(B,J,le),J+=15&(Le=(fe>>>1==1?tt:Et)[be]);var be=(Le>>>=4)<4?0:Le-2>>1,Ye=I[Le];for(0<be&&(Ye+=Re(B,J,be),J+=be),!he&&ue<Ze&&(ue=(q=Ue(q,Ze+100)).length);Ee<Ze;)q[Ee]=q[Ee-Ye],++Ee}}else{7&J&&(J+=8-(7&J));var st=B[J>>>3]|B[1+(J>>>3)]<<8;if(J+=32,0<st)for(!he&&ue<Ee+st&&(ue=(q=Ue(q,Ee+st)).length);0<st--;)q[Ee++]=B[J>>>3],J+=8}return he?[q,J+7>>>3]:[q.slice(0,Ee),J+7>>>3]}function Z(B,he){return he=Kr(B.slice(B.l||0),he),B.l+=he[1],he[0]}function wr(B,he){if(!B)throw new Error(he);typeof console<"u"&&console.error(he)}function _r(B,he){var J=B;gs(J,0);var fe={FileIndex:[],FullPaths:[]};g(fe,{root:he.root});for(var q=J.length-4;(J[q]!=80||J[q+1]!=75||J[q+2]!=5||J[q+3]!=6)&&0<=q;)--q;J.l=q+4,J.l+=4;var Ee=J.read_shift(2);for(J.l+=6,he=J.read_shift(4),J.l=he,q=0;q<Ee;++q){J.l+=20;var ue=J.read_shift(4),me=J.read_shift(4),le=J.read_shift(2),be=J.read_shift(2),Le=J.read_shift(2);J.l+=8;var nt=J.read_shift(4),Ze=f(J.slice(J.l+le,J.l+le+be));J.l+=le+be+Le,Le=J.l,J.l=nt+4,function(Ye,st,ut,dt,ze){Ye.l+=2;var Me=Ye.read_shift(2),ht=Ye.read_shift(2),Qe=function(gr){var Ke=65535&gr.read_shift(2),at=65535&gr.read_shift(2),et=new Date,Vt=31&at,gr=15&(at>>>=5);return at>>>=4,et.setMilliseconds(0),et.setFullYear(1980+at),et.setMonth(gr-1),et.setDate(Vt),gr=31&Ke,Vt=63&(Ke>>>=5),Ke>>>=6,et.setHours(Ke),et.setMinutes(Vt),et.setSeconds(gr<<1),et}(Ye);if(8257&Me)throw new Error("Unsupported ZIP encryption");Ye.read_shift(4);for(var Ie,vt=Ye.read_shift(4),wt=Ye.read_shift(4),Lr=Ye.read_shift(2),Ft=Ye.read_shift(2),Mt="",lt=0;lt<Lr;++lt)Mt+=String.fromCharCode(Ye[Ye.l++]);Ft&&(((Ie=f(Ye.slice(Ye.l,Ye.l+Ft)))[21589]||{}).mt&&(Qe=Ie[21589].mt),((ze||{})[21589]||{}).mt&&(Qe=ze[21589].mt)),Ye.l+=Ft;var Yt=Ye.slice(Ye.l,Ye.l+vt);switch(ht){case 8:Yt=function(Xt,et){if(!x)return Z(Xt,et);var at=new x.InflateRaw,et=at._processChunk(Xt.slice(Xt.l),at._finishFlushFlag);return Xt.l+=at.bytesRead,et}(Ye,wt);break;case 0:break;default:throw new Error("Unsupported ZIP Compression method "+ht)}Ft=!1,8&Me&&(Ye.read_shift(4)==134695760&&(Ye.read_shift(4),Ft=!0),vt=Ye.read_shift(4),wt=Ye.read_shift(4)),vt!=st&&wr(Ft,"Bad compressed size: "+st+" != "+vt),wt!=ut&&wr(Ft,"Bad uncompressed size: "+ut+" != "+wt),$s(dt,Mt,Yt,{unsafe:!0,mt:Qe})}(J,ue,me,fe,Ze),J.l=Le}return fe}var ns={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 $s(B,he,J,fe){var q=fe&&fe.unsafe;q||g(B);var Ee,ue=!q&&_t.find(B,he);return ue||(Ee=B.FullPaths[0],Ee=he.slice(0,Ee.length)==Ee?he:(Ee.slice(-1)!="/"&&(Ee+="/"),(Ee+he).replace("//","/")),ue={name:c(he),type:2},B.FileIndex.push(ue),B.FullPaths.push(Ee),q||_t.utils.cfb_gc(B)),ue.content=J,ue.size=J?J.length:0,fe&&(fe.CLSID&&(ue.clsid=fe.CLSID),fe.mt&&(ue.mt=fe.mt),fe.ct&&(ue.ct=fe.ct)),ue}return i.find=function(B,he){var J=B.FullPaths.map(function(le){return le.toUpperCase()}),fe=J.map(function(le){var be=le.split("/");return be[be.length-(le.slice(-1)=="/"?2:1)]}),q=!1;he.charCodeAt(0)===47?(q=!0,he=J[0].slice(0,-1)+he):q=he.indexOf("/")!==-1;var me=he.toUpperCase(),Ee=(q===!0?J:fe).indexOf(me);if(Ee!==-1)return B.FileIndex[Ee];var ue=!me.match(rt),me=me.replace(bt,"");for(ue&&(me=me.replace(rt,"!")),Ee=0;Ee<J.length;++Ee)if((ue?J[Ee].replace(rt,"!"):J[Ee]).replace(bt,"")==me||(ue?fe[Ee].replace(rt,"!"):fe[Ee]).replace(bt,"")==me)return B.FileIndex[Ee];return null},i.read=function(B,he){var J,fe,q=he&&he.type;switch(q||H&&Buffer.isBuffer(B)&&(q="buffer"),q||"base64"){case"file":return J=B,fe=he,h(),d(a.readFileSync(J),fe);case"base64":return d(ve(z(B)),he);case"binary":return d(ve(B),he)}return d(B,he)},i.parse=d,i.write=function(B,he){var J=v(B,he);switch(he&&he.type||"buffer"){case"file":return h(),a.writeFileSync(he.filename,J),J;case"binary":return typeof J=="string"?J:T(J);case"base64":return ie(typeof J=="string"?J:T(J));case"buffer":if(H)return Buffer.isBuffer(J)?J:ne(J);case"array":return typeof J=="string"?ve(J):J}return J},i.writeFile=function(B,he,J){h(),J=v(B,J),a.writeFileSync(he,J)},i.utils={cfb_new:function(B){var he={};return g(he,B),he},cfb_add:$s,cfb_del:function(B,he){g(B);var J=_t.find(B,he);if(J){for(var fe=0;fe<B.FileIndex.length;++fe)if(B.FileIndex[fe]==J)return B.FileIndex.splice(fe,1),B.FullPaths.splice(fe,1),!0}return!1},cfb_mov:function(B,he,J){g(B);var fe=_t.find(B,he);if(fe){for(var q=0;q<B.FileIndex.length;++q)if(B.FileIndex[q]==fe)return B.FileIndex[q].name=c(J),B.FullPaths[q]=J,!0}return!1},cfb_gc:function(B){y(B,!0)},ReadShift:di,CheckField:ku,prep_blob:gs,bconcat:ft,use_zlib:function(B){try{var he=new B.InflateRaw;if(he._processChunk(new Uint8Array([3,0]),he._finishFlushFlag),!he.bytesRead)throw new Error("zlib does not expose bytesRead");x=B}catch(J){console.error("cannot use native zlib: "+(J.message||J))}},_deflateRaw:Xe,_inflateRaw:Z,consts:L},i}();if(typeof ll<"u")try{Ia=af}catch{}function b1(a){return typeof a=="string"?ot(a):Array.isArray(a)?function(i){if(typeof Uint8Array>"u")throw new Error("Unsupported");return new Uint8Array(i)}(a):a}function ni(a,i,l){if(Ia!==void 0&&Ia.writeFileSync)return l?Ia.writeFileSync(a,i,l):Ia.writeFileSync(a,i);if(typeof Deno<"u"){if(l&&typeof i=="string")switch(l){case"utf8":i=new TextEncoder(l).encode(i);break;case"binary":i=ot(i);break;default:throw new Error("Unsupported encoding "+l)}return Deno.writeFileSync(a,i)}var c=l=="utf8"?ga(i):i;if(typeof IE_SaveFile<"u")return IE_SaveFile(c,a);if(typeof Blob<"u"){if(c=new Blob([b1(c)],{type:"application/octet-stream"}),typeof navigator<"u"&&navigator.msSaveBlob)return navigator.msSaveBlob(c,a);if(typeof saveAs<"u")return saveAs(c,a);if(typeof URL<"u"&&typeof document<"u"&&document.createElement&&URL.createObjectURL){var f=URL.createObjectURL(c);if(typeof chrome=="object"&&typeof(chrome.downloads||{}).download=="function")return URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(f)},6e4),chrome.downloads.download({url:f,filename:a,saveAs:!0});if(c=document.createElement("a"),c.download!=null)return c.download=a,c.href=f,document.body.appendChild(c),c.click(),document.body.removeChild(c),URL.revokeObjectURL&&typeof setTimeout<"u"&&setTimeout(function(){URL.revokeObjectURL(f)},6e4),f}}if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var h=File(a);return h.open("w"),h.encoding="binary",Array.isArray(i)&&(i=ct(i)),h.write(i),h.close(),i}catch(d){if(!d.message||!d.message.match(/onstruct/))throw d}throw new Error("cannot save file "+a)}function Hr(a){for(var i=Object.keys(a),l=[],c=0;c<i.length;++c)Object.prototype.hasOwnProperty.call(a,i[c])&&l.push(i[c]);return l}function Zf(a,i){for(var l=[],c=Hr(a),f=0;f!==c.length;++f)l[a[c[f]][i]]==null&&(l[a[c[f]][i]]=c[f]);return l}function nn(a){for(var i=[],l=Hr(a),c=0;c!==l.length;++c)i[a[l[c]]]=l[c];return i}function ln(a){for(var i=[],l=Hr(a),c=0;c!==l.length;++c)i[a[l[c]]]=parseInt(l[c],10);return i}var cn=new Date(1899,11,30,0,0,0);function os(a,i){var l=a.getTime();return i&&(l-=1263168e5),(l-(cn.getTime()+6e4*(a.getTimezoneOffset()-cn.getTimezoneOffset())))/864e5}var fn=new Date,y1=cn.getTime()+6e4*(fn.getTimezoneOffset()-cn.getTimezoneOffset()),$f=fn.getTimezoneOffset();function un(a){var i=new Date;return i.setTime(24*a*60*60*1e3+y1),i.getTimezoneOffset()!==$f&&i.setTime(i.getTime()+6e4*(i.getTimezoneOffset()-$f)),i}var dn=new Date("2017-02-19T19:06:09.000Z"),eu=isNaN(dn.getFullYear())?new Date("2/19/17"):dn,_1=eu.getFullYear()==2017;function Pr(a,i){var l=new Date(a);return _1?(0<i?l.setTime(l.getTime()+60*l.getTimezoneOffset()*1e3):i<0&&l.setTime(l.getTime()-60*l.getTimezoneOffset()*1e3),l):a instanceof Date?a:eu.getFullYear()==1917&&!isNaN(l.getFullYear())?(i=l.getFullYear(),-1<a.indexOf(""+i)||l.setFullYear(l.getFullYear()+100),l):(l=a.match(/\d+/g)||["2017","2","19","0","0","0"],l=new Date(+l[0],+l[1]-1,+l[2],+l[3]||0,+l[4]||0,+l[5]||0),l=-1<a.indexOf("Z")?new Date(l.getTime()-60*l.getTimezoneOffset()*1e3):l)}function eo(a,i){if(H&&Buffer.isBuffer(a)){if(i){if(a[0]==255&&a[1]==254)return ga(a.slice(2).toString("utf16le"));if(a[1]==254&&a[2]==255)return ga(M(a.slice(2).toString("binary")))}return a.toString("binary")}if(typeof TextDecoder<"u")try{if(i){if(a[0]==255&&a[1]==254)return ga(new TextDecoder("utf-16le").decode(a.slice(2)));if(a[0]==254&&a[1]==255)return ga(new TextDecoder("utf-16be").decode(a.slice(2)))}var l={"€":"","‚":"",ƒ:"","„":"","…":" ","†":"","‡":"","ˆ":"","‰":"",Š:"","‹":"",Œ:"",Ž:"","‘":"","’":"","“":"","”":"","•":"","–":"","—":"","˜":"","™":"",š:"","›":"",œ:"",ž:"",Ÿ:""};return Array.isArray(a)&&(a=new Uint8Array(a)),new TextDecoder("latin1").decode(a).replace(/[€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ]/g,function(h){return l[h]||h})}catch{}for(var c=[],f=0;f!=a.length;++f)c.push(String.fromCharCode(a[f]));return c.join("")}function Rr(a){if(typeof JSON<"u"&&!Array.isArray(a))return JSON.parse(JSON.stringify(a));if(typeof a!="object"||a==null)return a;if(a instanceof Date)return new Date(a.getTime());var i,l={};for(i in a)Object.prototype.hasOwnProperty.call(a,i)&&(l[i]=Rr(a[i]));return l}function Yr(a,i){for(var l="";l.length<i;)l+=a;return l}function ia(c){var i=Number(c);if(!isNaN(i))return isFinite(i)?i:NaN;if(!/\d/.test(c))return i;var l=1,c=c.replace(/([\d]),([\d])/g,"$1$2").replace(/[$]/g,"").replace(/[%]/g,function(){return l*=100,""});return isNaN(i=Number(c))?(c=c.replace(/[(](.*)[)]/,function(f,h){return l=-l,h}),isNaN(i=Number(c))?i:i/l):i/l}var v1=["january","february","march","april","may","june","july","august","september","october","november","december"];function Mo(a){var i=new Date(a),l=new Date(NaN),c=i.getYear(),f=i.getMonth(),h=i.getDate();if(isNaN(h))return l;var d=a.toLowerCase();if(d.match(/jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec/)){if(3<(d=d.replace(/[^a-z]/g,"").replace(/([^a-z]|^)[ap]m?([^a-z]|$)/,"")).length&&v1.indexOf(d)==-1)return l}else if(d.match(/[a-z]/))return l;return c<0||8099<c||(!(0<f||1<h)||c==101)&&a.match(/[^-0-9:,\/\\]/)?l:i}var tu,w1=(tu="abacaba".split(/(:?b)/i).length==5,function(a,i,l){if(tu||typeof i=="string")return a.split(i);for(var c=a.split(i),f=[c[0]],h=1;h<c.length;++h)f.push(l),f.push(c[h]);return f});function ru(a){return a?a.content&&a.type?eo(a.content,!0):a.data?V(a.data):a.asNodeBuffer&&H?V(a.asNodeBuffer().toString("binary")):a.asBinary?V(a.asBinary()):a._data&&a._data.getContent?V(eo(Array.prototype.slice.call(a._data.getContent(),0))):null:null}function su(a){if(!a)return null;if(a.data)return E(a.data);if(a.asNodeBuffer&&H)return a.asNodeBuffer();if(a._data&&a._data.getContent){var i=a._data.getContent();return typeof i=="string"?E(i):Array.prototype.slice.call(i)}return a.content&&a.type?a.content:null}function Ys(a,i){for(var l=a.FullPaths||Hr(a.files),c=i.toLowerCase().replace(/[\/]/g,"\\"),f=c.replace(/\\/g,"/"),h=0;h<l.length;++h){var d=l[h].replace(/^Root Entry[\/]/,"").toLowerCase();if(c==d||f==d)return a.files?a.files[l[h]]:a.FileIndex[h]}return null}function El(a,i){if(a=Ys(a,i),a==null)throw new Error("Cannot find file "+i+" in zip");return a}function ts(a,i,l){if(!l)return((l=El(a,i))&&l.name.slice(-4)===".bin"?su:ru)(l);if(!i)return null;try{return ts(a,i)}catch{return null}}function zs(a,i,l){if(!l)return ru(El(a,i));if(!i)return null;try{return zs(a,i)}catch{return null}}function au(a){for(var i=a.FullPaths||Hr(a.files),l=[],c=0;c<i.length;++c)i[c].slice(-1)!="/"&&l.push(i[c].replace(/^Root Entry[\/]/,""));return l.sort()}function Nt(a,i,l){if(a.FullPaths){if(typeof l=="string"){var c=(H?ne:function(f){for(var h=[],d=0,p=f.length+250,g=G(f.length+255),y=0;y<f.length;++y){var v,x=f.charCodeAt(y);x<128?g[d++]=x:x<2048?(g[d++]=192|x>>6&31,g[d++]=128|63&x):55296<=x&&x<57344?(x=64+(1023&x),v=1023&f.charCodeAt(++y),g[d++]=240|x>>8&7,g[d++]=128|x>>2&63,g[d++]=128|v>>6&15|(3&x)<<4,g[d++]=128|63&v):(g[d++]=224|x>>12&15,g[d++]=128|x>>6&63,g[d++]=128|63&x),p<d&&(h.push(g.slice(0,d)),d=0,g=G(65535),p=65530)}return h.push(g.slice(0,d)),ft(h)})(l);return _t.utils.cfb_add(a,i,c)}_t.utils.cfb_add(a,i,l)}else a.file(i,l)}function Tl(){return _t.utils.cfb_new()}function ou(a,i){switch(i.type){case"base64":return _t.read(a,{type:"base64"});case"binary":return _t.read(a,{type:"binary"});case"buffer":case"array":return _t.read(a,{type:"buffer"})}throw new Error("Unrecognized type "+i.type)}function li(a,i){if(a.charAt(0)=="/")return a.slice(1);var l=i.split("/");i.slice(-1)!="/"&&l.pop();for(var c=a.split("/");c.length!==0;){var f=c.shift();f===".."?l.pop():f!=="."&&l.push(f)}return l.join("/")}var Xr=`<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r `,x1=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,Un=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,_s=Xr.match(Un)?Un:/<[^>]*>/g,C1=/<\w*:/,F1=/<(\/?)\w+:/;function Dt(a,i,l){for(var c={},f=0,h=0;f!==a.length&&(h=a.charCodeAt(f))!==32&&h!==10&&h!==13;++f);if(i||(c[0]=a.slice(0,f)),f===a.length)return c;var d,p,g,y=a.match(x1),v=0,x=0,C="",F="";if(y)for(x=0;x!=y.length;++x){for(F=y[x],h=0;h!=F.length&&F.charCodeAt(h)!==61;++h);for(C=F.slice(0,h).trim();F.charCodeAt(h+1)==32;)++h;for(p=(f=F.charCodeAt(h+1))==34||f==39?1:0,d=F.slice(h+1+p,F.length-p),v=0;v!=C.length&&C.charCodeAt(v)!==58;++v);v===C.length?(c[C=0<C.indexOf("_")?C.slice(0,C.indexOf("_")):C]=d,l||(c[C.toLowerCase()]=d)):c[g=(v===5&&C.slice(0,5)==="xmlns"?"xmlns":"")+C.slice(v+1)]&&C.slice(v-3,v)=="ext"||(c[g]=d,l||(c[g.toLowerCase()]=d))}return c}function ma(a){return a.replace(F1,"<$1")}var iu,nu,lu={""":'"',"'":"'",">":">","<":"<","&":"&"},kl=nn(lu),pr=(iu=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,nu=/_x([\da-fA-F]{4})_/gi,function a(i){var l=i+"",c=l.indexOf("<![CDATA[");return c==-1?l.replace(iu,function(f,h){return lu[f]||String.fromCharCode(parseInt(h,-1<f.indexOf("x")?16:10))||f}).replace(nu,function(f,h){return String.fromCharCode(parseInt(h,16))}):(i=l.indexOf("]]>"),a(l.slice(0,c))+l.slice(c+9,i)+a(l.slice(i+3)))}),Rl=/[&<>'"]/g,A1=/[\u0000-\u0008\u000b-\u001f]/g;function Fr(a){return(a+"").replace(Rl,function(i){return kl[i]}).replace(A1,function(i){return"_x"+("000"+i.charCodeAt(0).toString(16)).slice(-4)+"_"})}function cu(a){return Fr(a).replace(/ /g,"_x0020_")}var fu=/[\u0000-\u001f]/g;function Ll(a){return(a+"").replace(Rl,function(i){return kl[i]}).replace(/\n/g,"<br/>").replace(fu,function(i){return"&#x"+("000"+i.charCodeAt(0).toString(16)).slice(-4)+";"})}var uu,du=(uu=/&#(\d+);/g,function(a){return a.replace(uu,D1)});function D1(a,i){return String.fromCharCode(parseInt(i,10))}function Nr(a){switch(a){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ml(a){for(var i,l,c,f,h="",d=0,p=0;d<a.length;)(i=a.charCodeAt(d++))<128?h+=String.fromCharCode(i):(l=a.charCodeAt(d++),191<i&&i<224?(p=(31&i)<<6,p|=63&l,h+=String.fromCharCode(p)):(c=a.charCodeAt(d++),i<240?h+=String.fromCharCode((15&i)<<12|(63&l)<<6|63&c):(f=((7&i)<<18|(63&l)<<12|(63&c)<<6|63&(p=a.charCodeAt(d++)))-65536,h+=String.fromCharCode(55296+(f>>>10&1023)),h+=String.fromCharCode(56320+(1023&f)))));return h}function hu(a){for(var i,l,c=G(2*a.length),f=1,h=0,d=0,p=0;p<a.length;p+=f)f=1,(l=a.charCodeAt(p))<128?i=l:l<224?(i=64*(31&l)+(63&a.charCodeAt(p+1)),f=2):l<240?(i=4096*(15&l)+64*(63&a.charCodeAt(p+1))+(63&a.charCodeAt(p+2)),f=3):(f=4,i=262144*(7&l)+4096*(63&a.charCodeAt(p+1))+64*(63&a.charCodeAt(p+2))+(63&a.charCodeAt(p+3)),d=55296+((i-=65536)>>>10&1023),i=56320+(1023&i)),d!==0&&(c[h++]=255&d,c[h++]=d>>>8,d=0),c[h++]=i%256,c[h++]=i>>>8;return c.slice(0,h).toString("ucs2")}function pu(a){return ne(a,"binary").toString("utf8")}var Ol,hn,pn,qo="foo bar bazâð£",Er=H&&(pu(qo)==Ml(qo)?pu:hu(qo)==Ml(qo)&&hu)||Ml,ga=H?function(a){return ne(a,"utf8").toString("binary")}:function(a){for(var i,l=[],c=0,f=0;c<a.length;)switch(!0){case(f=a.charCodeAt(c++))<128:l.push(String.fromCharCode(f));break;case f<2048:l.push(String.fromCharCode(192+(f>>6))),l.push(String.fromCharCode(128+(63&f)));break;case(55296<=f&&f<57344):f-=55296,i=a.charCodeAt(c++)-56320+(f<<10),l.push(String.fromCharCode(240+(i>>18&7))),l.push(String.fromCharCode(144+(i>>12&63))),l.push(String.fromCharCode(128+(i>>6&63))),l.push(String.fromCharCode(128+(63&i)));break;default:l.push(String.fromCharCode(224+(f>>12))),l.push(String.fromCharCode(128+(f>>6&63))),l.push(String.fromCharCode(128+(63&f)))}return l.join("")},ci=(Ol={},function(a,i){var l=a+"|"+(i||"");return Ol[l]||(Ol[l]=new RegExp("<(?:\\w+:)?"+a+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)</(?:\\w+:)?'+a+">",i||""))}),mu=(hn=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]}),function(a){for(var i=a.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,""),l=0;l<hn.length;++l)i=i.replace(hn[l][0],hn[l][1]);return i}),S1=(pn={},function(a){return pn[a]!==void 0?pn[a]:pn[a]=new RegExp("<(?:vt:)?"+a+">([\\s\\S]*?)</(?:vt:)?"+a+">","g")}),E1=/<\/?(?:vt:)?variant>/g,T1=/<(?:vt:)([^>]*)>([\s\S]*)</;function gu(c,i){var l=Dt(c),c=c.match(S1(l.baseType))||[],f=[];if(c.length==l.size)return c.forEach(function(h){h=h.replace(E1,"").match(T1),h&&f.push({v:Er(h[2]),t:h[1]})}),f;if(i.WTF)throw new Error("unexpected vector length "+c.length+" != "+l.size);return f}var bu=/(^\s|\s$|\n)/;function ms(a,i){return"<"+a+(i.match(bu)?' xml:space="preserve"':"")+">"+i+"</"+a+">"}function fi(a){return Hr(a).map(function(i){return" "+i+'="'+a[i]+'"'}).join("")}function je(a,i,l){return"<"+a+(l!=null?fi(l):"")+(i!=null?(i.match(bu)?' xml:space="preserve"':"")+">"+i+"</"+a:"/")+">"}function Pl(a,i){try{return a.toISOString().replace(/\.\d*/,"")}catch(l){if(i)throw l}return""}function Nl(a){if(H&&Buffer.isBuffer(a))return a.toString("utf8");if(typeof a=="string")return a;if(typeof Uint8Array<"u"&&a instanceof Uint8Array)return Er(ct(Je(a)));throw new Error("Bad input format: expected Buffer or string")}var ui=/<(\/?)([^\s?><!\/:]*:|)([^\s?<>:\/]+)(?:[\s?:\/][^>]*)?>/gm,is={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"},to=["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"],Gs={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 yu(a){for(var i=[],l=0;l<a[0].length;++l)if(a[0][l])for(var c=0,f=a[0][l].length;c<f;c+=10240)i.push.apply(i,a[0][l].slice(c,c+10240));return i}function _u(a,i,l){for(var c=[],f=i;f<l;f+=2)c.push(String.fromCharCode(Sa(a,f)));return c.join("").replace(bt,"")}function vu(a,i,l){for(var c=[],f=i;f<i+l;++f)c.push(("0"+a[f].toString(16)).slice(-2));return c.join("")}function wu(a,i,l){for(var c=[],f=i;f<l;f++)c.push(String.fromCharCode(Po(a,f)));return c.join("")}function xu(a,i){var l=ds(a,i);return 0<l?Oo(a,i+4,i+4+l-1):""}function Cu(a,i){var l=ds(a,i);return 0<l?Oo(a,i+4,i+4+l-1):""}function Fu(a,i){var l=2*ds(a,i);return 0<l?Oo(a,i+4,i+4+l-1):""}function Au(a,i){var l=ds(a,i);return 0<l?mn(a,i+4,i+4+l):""}function Du(a,i){var l=ds(a,i);return 0<l?Oo(a,i+4,i+4+l):""}function Su(a,i){for(var l=1-2*(a[i+7]>>>7),c=((127&a[i+7])<<4)+(a[i+6]>>>4&15),f=15&a[i+6],h=5;0<=h;--h)f=256*f+a[i+h];return c==2047?f==0?1/0*l:NaN:(c==0?c=-1022:(c-=1023,f+=Math.pow(2,52)),l*Math.pow(2,c-52)*f)}var Eu=H?function(a){return 0<a[0].length&&Buffer.isBuffer(a[0][0])?Buffer.concat(a[0].map(function(i){return Buffer.isBuffer(i)?i:ne(i)})):yu(a)}:yu,mn=H?function(a,i,l){return Buffer.isBuffer(a)?a.toString("utf16le",i,l).replace(bt,""):_u(a,i,l)}:_u,Tu=H?function(a,i,l){return Buffer.isBuffer(a)?a.toString("hex",i,i+l):vu(a,i,l)}:vu,Oo=H?function(a,i,l){return Buffer.isBuffer(a)?a.toString("utf8",i,l):wu(a,i,l)}:wu,Il=xu,Vl=Cu,Bl=Fu,Ul=Au,zl=Du,gn=Su,Gl=function(a){return Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array};H&&(Il=function(a,i){if(!Buffer.isBuffer(a))return xu(a,i);var l=a.readUInt32LE(i);return 0<l?a.toString("utf8",i+4,i+4+l-1):""},Vl=function(a,i){if(!Buffer.isBuffer(a))return Cu(a,i);var l=a.readUInt32LE(i);return 0<l?a.toString("utf8",i+4,i+4+l-1):""},Bl=function(a,i){if(!Buffer.isBuffer(a))return Fu(a,i);var l=2*a.readUInt32LE(i);return a.toString("utf16le",i+4,i+4+l-1)},Ul=function(a,i){if(!Buffer.isBuffer(a))return Au(a,i);var l=a.readUInt32LE(i);return a.toString("utf16le",i+4,i+4+l)},zl=function(a,i){if(!Buffer.isBuffer(a))return Du(a,i);var l=a.readUInt32LE(i);return a.toString("utf8",i+4,i+4+l)},gn=function(a,i){return Buffer.isBuffer(a)?a.readDoubleLE(i):Su(a,i)},Gl=function(a){return Buffer.isBuffer(a)||Array.isArray(a)||typeof Uint8Array<"u"&&a instanceof Uint8Array}),e!==void 0&&(mn=function(a,i,l){return e.utils.decode(1200,a.slice(i,l)).replace(bt,"")},Oo=function(a,i,l){return e.utils.decode(65001,a.slice(i,l))},Il=function(a,i){var l=ds(a,i);return 0<l?e.utils.decode(m,a.slice(i+4,i+4+l-1)):""},Vl=function(a,i){var l=ds(a,i);return 0<l?e.utils.decode(u,a.slice(i+4,i+4+l-1)):""},Bl=function(a,i){var l=2*ds(a,i);return 0<l?e.utils.decode(1200,a.slice(i+4,i+4+l-1)):""},Ul=function(a,i){var l=ds(a,i);return 0<l?e.utils.decode(1200,a.slice(i+4,i+4+l)):""},zl=function(a,i){var l=ds(a,i);return 0<l?e.utils.decode(65001,a.slice(i+4,i+4+l)):""});var Po=function(a,i){return a[i]},Sa=function(a,i){return 256*a[i+1]+a[i]},k1=function(a,i){return i=256*a[i+1]+a[i],i<32768?i:-1*(65535-i+1)},ds=function(a,i){return a[i+3]*(1<<24)+(a[i+2]<<16)+(a[i+1]<<8)+a[i]},ro=function(a,i){return a[i+3]<<24|a[i+2]<<16|a[i+1]<<8|a[i]},R1=function(a,i){return a[i]<<24|a[i+1]<<16|a[i+2]<<8|a[i+3]};function di(a,i){var l,c,f,h,d,p,g="",y=[];switch(i){case"dbcs":if(p=this.l,H&&Buffer.isBuffer(this))g=this.slice(this.l,this.l+2*a).toString("utf16le");else for(d=0;d<a;++d)g+=String.fromCharCode(Sa(this,p)),p+=2;a*=2;break;case"utf8":g=Oo(this,this.l,this.l+a);break;case"utf16le":a*=2,g=mn(this,this.l,this.l+a);break;case"wstr":if(e===void 0)return di.call(this,a,"dbcs");g=e.utils.decode(u,this.slice(this.l,this.l+2*a)),a*=2;break;case"lpstr-ansi":g=Il(this,this.l),a=4+ds(this,this.l);break;case"lpstr-cp":g=Vl(this,this.l),a=4+ds(this,this.l);break;case"lpwstr":g=Bl(this,this.l),a=4+2*ds(this,this.l);break;case"lpp4":a=4+ds(this,this.l),g=Ul(this,this.l),2&a&&(a+=2);break;case"8lpp4":a=4+ds(this,this.l),g=zl(this,this.l),3&a&&(a+=4-(3&a));break;case"cstr":for(a=0,g="";(f=Po(this,this.l+a++))!==0;)y.push(Y(f));g=y.join("");break;case"_wstr":for(a=0,g="";(f=Sa(this,this.l+a))!==0;)y.push(Y(f)),a+=2;a+=2,g=y.join("");break;case"dbcs-cont":for(g="",p=this.l,d=0;d<a;++d){if(this.lens&&this.lens.indexOf(p)!==-1)return f=Po(this,p),this.l=p+1,h=di.call(this,a-d,f?"dbcs-cont":"sbcs-cont"),y.join("")+h;y.push(Y(Sa(this,p))),p+=2}g=y.join(""),a*=2;break;case"cpstr":if(e!==void 0){g=e.utils.decode(u,this.slice(this.l,this.l+a));break}case"sbcs-cont":for(g="",p=this.l,d=0;d!=a;++d){if(this.lens&&this.lens.indexOf(p)!==-1)return f=Po(this,p),this.l=p+1,h=di.call(this,a-d,f?"dbcs-cont":"sbcs-cont"),y.join("")+h;y.push(Y(Po(this,p))),p+=1}g=y.join("");break;default:switch(a){case 1:return l=Po(this,this.l),this.l++,l;case 2:return l=(i==="i"?k1:Sa)(this,this.l),this.l+=2,l;case 4:case-4:return i==="i"||!(128&this[this.l+3])?(l=(0<a?ro:R1)(this,this.l),this.l+=4,l):(c=ds(this,this.l),this.l+=4,c);case 8:case-8:if(i==="f")return c=a==8?gn(this,this.l):gn([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,c;a=8;case 16:g=Tu(this,this.l,a)}}return this.l+=a,g}var L1=function(a,i,l){a[l]=255&i,a[l+1]=i>>>8&255,a[l+2]=i>>>16&255,a[l+3]=i>>>24&255},M1=function(a,i,l){a[l]=255&i,a[l+1]=i>>8&255,a[l+2]=i>>16&255,a[l+3]=i>>24&255},O1=function(a,i,l){a[l]=255&i,a[l+1]=i>>>8&255};function P1(a,i,l){var c=0,f=0;if(l==="dbcs"){for(f=0;f!=i.length;++f)O1(this,i.charCodeAt(f),this.l+2*f);c=2*i.length}else if(l==="sbcs"){if(e!==void 0&&m==874)for(f=0;f!=i.length;++f){var h=e.utils.encode(m,i.charAt(f));this[this.l+f]=h[0]}else for(i=i.replace(/[^\x00-\x7F]/g,"_"),f=0;f!=i.length;++f)this[this.l+f]=255&i.charCodeAt(f);c=i.length}else{if(l==="hex"){for(;f<a;++f)this[this.l++]=parseInt(i.slice(2*f,2*f+2),16)||0;return this}if(l==="utf16le"){for(var d=Math.min(this.l+a,this.length),f=0;f<Math.min(i.length,a);++f){var p=i.charCodeAt(f);this[this.l++]=255&p,this[this.l++]=p>>8}for(;this.l<d;)this[this.l++]=0;return this}switch(a){case 1:c=1,this[this.l]=255&i;break;case 2:c=2,this[this.l]=255&i,i>>>=8,this[this.l+1]=255&i;break;case 3:c=3,this[this.l]=255&i,i>>>=8,this[this.l+1]=255&i,i>>>=8,this[this.l+2]=255&i;break;case 4:c=4,L1(this,i,this.l);break;case 8:if(c=8,l==="f"){(function(g,y,v){var x=(y<0||1/y==-1/0?1:0)<<7,C=0,F=0,R=x?-y:y;isFinite(R)?R==0?C=F=0:(C=Math.floor(Math.log(R)/Math.LN2),F=R*Math.pow(2,52-C),C<=-1023&&(!isFinite(F)||F<Math.pow(2,52))?C=-1022:(F-=Math.pow(2,52),C+=1023)):(C=2047,F=isNaN(y)?26985:0);for(var A=0;A<=5;++A,F/=256)g[v+A]=255&F;g[v+6]=(15&C)<<4|15&F,g[v+7]=C>>4|x})(this,i,this.l);break}case 16:break;case-4:c=4,M1(this,i,this.l)}}return this.l+=c,this}function ku(a,i){var l=Tu(this,this.l,a.length>>1);if(l!==a)throw new Error(i+"Expected "+a+" saw "+l);this.l+=a.length>>1}function gs(a,i){a.l=i,a.read_shift=di,a.chk=ku,a.write_shift=P1}function vs(a,i){a.l+=i}function ge(a){return a=G(a),gs(a,0),a}function Ea(a,i,l){if(a){gs(a,a.l||0);for(var c,f=a.length,h=0;a.l<f;){128&(h=a.read_shift(1))&&(h=(127&h)+((127&a.read_shift(1))<<7));for(var d,p=Oi[h]||Oi[65535],g=127&(d=a.read_shift(1)),y=1;y<4&&128&d;++y)g+=(127&(d=a.read_shift(1)))<<7*y;c=a.l+g;var v=p.f&&p.f(a,g,l);if(a.l=c,i(v,p,h))return}}}function Is(){function a(d){return gs(d=ge(d),0),d}function i(){h&&(h.length>h.l&&((h=h.slice(0,h.l)).l=h.length),0<h.length&&c.push(h),h=null)}function l(d){return h&&d<h.length-h.l?h:(i(),h=a(Math.max(d+1,f)))}var c=[],f=H?256:2048,h=a(f);return{next:l,push:function(d){i(),(h=d).l==null&&(h.l=h.length),l(f)},end:function(){return i(),ft(c)},_bufs:c}}function Ae(a,i,l,c){var f=+i;if(!isNaN(f)){i=1+(128<=f?1:0)+1,128<=(c=c||Oi[f].p||(l||[]).length||0)&&++i,16384<=c&&++i,2097152<=c&&++i;var h=a.next(i);f<=127?h.write_shift(1,f):(h.write_shift(1,128+(127&f)),h.write_shift(1,f>>7));for(var d=0;d!=4;++d){if(!(128<=c)){h.write_shift(1,c);break}h.write_shift(1,128+(127&c)),c>>=7}0<c&&Gl(l)&&a.push(l)}}function hi(a,i,l){var c=Rr(a);if(i.s?(c.cRel&&(c.c+=i.s.c),c.rRel&&(c.r+=i.s.r)):(c.cRel&&(c.c+=i.c),c.rRel&&(c.r+=i.r)),!l||l.biff<12){for(;256<=c.c;)c.c-=256;for(;65536<=c.r;)c.r-=65536}return c}function Ru(a,i,l){return a=Rr(a),a.s=hi(a.s,i.s,l),a.e=hi(a.e,i.s,l),a}function pi(a,i){if(a.cRel&&a.c<0)for(a=Rr(a);a.c<0;)a.c+=8<i?16384:256;if(a.rRel&&a.r<0)for(a=Rr(a);a.r<0;)a.r+=8<i?1048576:5<i?65536:16384;var l=St(a);return a.cRel||a.cRel==null||(l=l.replace(/^([A-Z])/,"$$$1")),l=!a.rRel&&a.rRel!=null?l.replace(/([A-Z]|^)(\d+)$/,"$1$$$2"):l}function jl(a,i){return a.s.r!=0||a.s.rRel||a.e.r!=(12<=i.biff?1048575:8<=i.biff?65536:16384)||a.e.rRel?a.s.c!=0||a.s.cRel||a.e.c!=(12<=i.biff?16383:255)||a.e.cRel?pi(a.s,i.biff)+":"+pi(a.e,i.biff):(a.s.rRel?"":"$")+qr(a.s.r)+":"+(a.e.rRel?"":"$")+qr(a.e.r):(a.s.cRel?"":"$")+Ir(a.s.c)+":"+(a.e.cRel?"":"$")+Ir(a.e.c)}function Wl(a){return parseInt(a.replace(/\$(\d+)$/,"$1"),10)-1}function qr(a){return""+(a+1)}function Hl(a){for(var i=a.replace(/^\$([A-Z])/,"$1"),l=0,c=0;c!==i.length;++c)l=26*l+i.charCodeAt(c)-64;return l-1}function Ir(a){if(a<0)throw new Error("invalid column "+a);var i="";for(++a;a;a=Math.floor((a-1)/26))i=String.fromCharCode((a-1)%26+65)+i;return i}function Gr(a){for(var i=0,l=0,c=0;c<a.length;++c){var f=a.charCodeAt(c);48<=f&&f<=57?i=10*i+(f-48):65<=f&&f<=90&&(l=26*l+(f-64))}return{c:l-1,r:i-1}}function St(a){for(var i=a.c+1,l="";i;i=(i-1)/26|0)l=String.fromCharCode((i-1)%26+65)+l;return l+(a.r+1)}function Rs(a){var i=a.indexOf(":");return i==-1?{s:Gr(a),e:Gr(a)}:{s:Gr(a.slice(0,i)),e:Gr(a.slice(i+1))}}function Ot(a,i){return i===void 0||typeof i=="number"?Ot(a.s,a.e):(a=typeof a!="string"?St(a):a)==(i=typeof i!="string"?St(i):i)?a:a+":"+i}function Qt(a){for(var i={s:{c:0,r:0},e:{c:0,r:0}},h=0,l=0,c=0,f=a.length,h=0;l<f&&!((c=a.charCodeAt(l)-64)<1||26<c);++l)h=26*h+c;for(i.s.c=--h,h=0;l<f&&!((c=a.charCodeAt(l)-48)<0||9<c);++l)h=10*h+c;if(i.s.r=--h,l===f||c!=10)return i.e.c=i.s.c,i.e.r=i.s.r,i;for(++l,h=0;l!=f&&!((c=a.charCodeAt(l)-64)<1||26<c);++l)h=26*h+c;for(i.e.c=--h,h=0;l!=f&&!((c=a.charCodeAt(l)-48)<0||9<c);++l)h=10*h+c;return i.e.r=--h,i}function N1(a,i){var l=a.t=="d"&&i instanceof Date;if(a.z!=null)try{return a.w=Us(a.z,l?os(i):i)}catch{}try{return a.w=Us((a.XF||{}).numFmtId||(l?14:0),l?os(i):i)}catch{return""+i}}function ba(a,i,l){return a==null||a.t==null||a.t=="z"?"":a.w!==void 0?a.w:(a.t=="d"&&!a.z&&l&&l.dateNF&&(a.z=l.dateNF),a.t=="e"?Ta[a.v]||a.v:N1(a,i??a.v))}function Va(a,c){var l=c&&c.sheet?c.sheet:"Sheet1",c={};return c[l]=a,{SheetNames:[l],Sheets:c}}function Lu(a,i,l){var c=l||{},f=a?Array.isArray(a):c.dense,h=a||(f?[]:{}),d=0,p=0;h&&c.origin!=null&&(typeof c.origin=="number"?d=c.origin:(d=(g=typeof c.origin=="string"?Gr(c.origin):c.origin).r,p=g.c),h["!ref"]||(h["!ref"]="A1:A1"));var g,y={s:{c:1e7,r:1e7},e:{c:0,r:0}};h["!ref"]&&(g=Qt(h["!ref"]),y.s.c=g.s.c,y.s.r=g.s.r,y.e.c=Math.max(y.e.c,g.e.c),y.e.r=Math.max(y.e.r,g.e.r),d==-1&&(y.e.r=d=g.e.r+1));for(var v=0;v!=i.length;++v)if(i[v]){if(!Array.isArray(i[v]))throw new Error("aoa_to_sheet expects an array of arrays");for(var x=0;x!=i[v].length;++x)if(i[v][x]!==void 0){var C={v:i[v][x]},F=d+v,R=p+x;if(y.s.r>F&&(y.s.r=F),y.s.c>R&&(y.s.c=R),y.e.r<F&&(y.e.r=F),y.e.c<R&&(y.e.c=R),!i[v][x]||typeof i[v][x]!="object"||Array.isArray(i[v][x])||i[v][x]instanceof Date)if(Array.isArray(C.v)&&(C.f=i[v][x][1],C.v=C.v[0]),C.v===null)if(C.f)C.t="n";else if(c.nullError)C.t="e",C.v=0;else{if(!c.sheetStubs)continue;C.t="z"}else typeof C.v=="number"?C.t="n":typeof C.v=="boolean"?C.t="b":C.v instanceof Date?(C.z=c.dateNF||oe[14],c.cellDates?(C.t="d",C.w=Us(C.z,os(C.v))):(C.t="n",C.v=os(C.v),C.w=Us(C.z,C.v))):C.t="s";else C=i[v][x];f?(h[F]||(h[F]=[]),h[F][R]&&h[F][R].z&&(C.z=h[F][R].z),h[F][R]=C):(h[F=St({c:R,r:F})]&&h[F].z&&(C.z=h[F].z),h[F]=C)}}return y.s.c<1e7&&(h["!ref"]=Ot(y)),h}function No(a,i){return Lu(null,a,i)}function na(a,i){return(i=i||ge(4)).write_shift(4,a),i}function ws(a){var i=a.read_shift(4);return i===0?"":a.read_shift(i,"dbcs")}function hs(a,i){var l=!1;return i==null&&(l=!0,i=ge(4+2*a.length)),i.write_shift(4,a.length),0<a.length&&i.write_shift(0,a,"dbcs"),l?i.slice(0,i.l):i}function Yl(a,i){var l,c=a.l,f=a.read_shift(1),d=ws(a),h=[],d={t:d,h:d};if(1&f){for(var p=a.read_shift(4),g=0;g!=p;++g)h.push({ich:(l=a).read_shift(2),ifnt:l.read_shift(2)});d.r=h}else d.r=[{ich:0,ifnt:0}];return a.l=c+i,d}var I1=Yl;function V1(a,i){var l,c=!1;return i==null&&(c=!0,i=ge(23+4*a.t.length)),i.write_shift(1,1),hs(a.t,i),i.write_shift(4,1),l={ich:0,ifnt:0},(a=(a=i)||ge(4)).write_shift(2,l.ich||0),a.write_shift(2,l.ifnt||0),c?i.slice(0,i.l):i}function qs(a){var i=a.read_shift(4),l=a.read_shift(2);return l+=a.read_shift(1)<<16,a.l++,{c:i,iStyleRef:l}}function so(a,i){return(i=i??ge(8)).write_shift(-4,a.c),i.write_shift(3,a.iStyleRef||a.s),i.write_shift(1,0),i}function ao(a){var i=a.read_shift(2);return i+=a.read_shift(1)<<16,a.l++,{c:-1,iStyleRef:i}}function oo(a,i){return(i=i??ge(4)).write_shift(3,a.iStyleRef||a.s),i.write_shift(1,0),i}var B1=ws,Mu=hs;function ql(a){var i=a.read_shift(4);return i===0||i===4294967295?"":a.read_shift(i,"dbcs")}function bn(a,i){var l=!1;return i==null&&(l=!0,i=ge(127)),i.write_shift(4,0<a.length?a.length:4294967295),0<a.length&&i.write_shift(0,a,"dbcs"),l?i.slice(0,i.l):i}var U1=ws,Kl=ql,Jl=bn;function Xl(a){var i=a.slice(a.l,a.l+4),l=1&i[0],c=2&i[0];return a.l+=4,i=c==0?gn([0,0,0,0,252&i[0],i[1],i[2],i[3]],0):ro(i,0)>>2,l?i/100:i}function Ou(a,i){i==null&&(i=ge(4));var l=0,c=0,f=100*a;if(a==(0|a)&&-(1<<29)<=a&&a<1<<29?c=1:f==(0|f)&&-(1<<29)<=f&&f<1<<29&&(l=c=1),!c)throw new Error("unsupported RkNumber "+a);i.write_shift(-4,((l?f:a)<<2)+(l+2))}function Pu(a){var i={s:{},e:{}};return i.s.r=a.read_shift(4),i.e.r=a.read_shift(4),i.s.c=a.read_shift(4),i.e.c=a.read_shift(4),i}var io=Pu,Io=function(a,i){return(i=i||ge(16)).write_shift(4,a.s.r),i.write_shift(4,a.e.r),i.write_shift(4,a.s.c),i.write_shift(4,a.e.c),i};function xs(a){if(a.length-a.l<8)throw"XLS Xnum Buffer underflow";return a.read_shift(8,"f")}function Vo(a,i){return(i||ge(8)).write_shift(8,a,"f")}function yn(a,i){if(i=i||ge(8),!a||a.auto)return i.write_shift(4,0),i.write_shift(4,0),i;a.index!=null?(i.write_shift(1,2),i.write_shift(1,a.index)):a.theme!=null?(i.write_shift(1,6),i.write_shift(1,a.theme)):(i.write_shift(1,5),i.write_shift(1,0));var l=a.tint||0;return 0<l?l*=32767:l<0&&(l*=32768),i.write_shift(2,l),a.rgb&&a.theme==null?(typeof(a=a.rgb||"FFFFFF")=="number"&&(a=("000000"+a.toString(16)).slice(-6)),i.write_shift(1,parseInt(a.slice(0,2),16)),i.write_shift(1,parseInt(a.slice(2,4),16)),i.write_shift(1,parseInt(a.slice(4,6),16)),i.write_shift(1,255)):(i.write_shift(2,0),i.write_shift(1,0),i.write_shift(1,0)),i}function Nu(a,i){var l=a.read_shift(4);switch(l){case 0:return"";case 4294967295:case 4294967294:return{2:"BITMAP",3:"METAFILEPICT",8:"DIB",14:"ENHMETAFILE"}[a.read_shift(4)]||""}if(400<l)throw new Error("Unsupported Clipboard: "+l.toString(16));return a.l-=4,a.read_shift(0,i==1?"lpstr":"lpwstr")}var Ql=2,Vs=3,Iu=12,Vu=81,z1=[80,Vu],Zl={1:{n:"CodePage",t:Ql},2:{n:"Category",t:80},3:{n:"PresentationFormat",t:80},4:{n:"ByteCount",t:Vs},5:{n:"LineCount",t:Vs},6:{n:"ParagraphCount",t:Vs},7:{n:"SlideCount",t:Vs},8:{n:"NoteCount",t:Vs},9:{n:"HiddenCount",t:Vs},10:{n:"MultimediaClipCount",t:Vs},11:{n:"ScaleCrop",t:11},12:{n:"HeadingPairs",t:4108},13:{n:"TitlesOfParts",t:4126},14:{n:"Manager",t:80},15:{n:"Company",t:80},16:{n:"LinksUpToDate",t:11},17:{n:"CharacterCount",t:Vs},19:{n:"SharedDoc",t:11},22:{n:"HyperlinksChanged",t:11},23:{n:"AppVersion",t:Vs,p:"version"},24:{n:"DigSig",t:65},26:{n:"ContentType",t:80},27:{n:"ContentStatus",t:80},28:{n:"Language",t:80},29:{n:"Version",t:80},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},$l={1:{n:"CodePage",t:Ql},2:{n:"Title",t:80},3:{n:"Subject",t:80},4:{n:"Author",t:80},5:{n:"Keywords",t:80},6:{n:"Comments",t:80},7:{n:"Template",t:80},8:{n:"LastAuthor",t:80},9:{n:"RevNumber",t:80},10:{n:"EditTime",t:64},11:{n:"LastPrinted",t:64},12:{n:"CreatedDate",t:64},13:{n:"ModifiedDate",t:64},14:{n:"PageCount",t:Vs},15:{n:"WordCount",t:Vs},16:{n:"CharCount",t:Vs},17:{n:"Thumbnail",t:71},18:{n:"Application",t:80},19:{n:"DocSecurity",t:Vs},255:{},2147483648:{n:"Locale",t:19},2147483651:{n:"Behavior",t:19},1919054434:{}},Bu={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"},G1=[null,"solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],mi=Rr([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].map(function(a){return[a>>16&255,a>>8&255,255&a]})),Ta={0:"#NULL!",7:"#DIV/0!",15:"#VALUE!",23:"#REF!",29:"#NAME?",36:"#NUM!",42:"#N/A",43:"#GETTING_DATA",255:"#WTF?"},Uu={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},ec={"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"},_n={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 tc(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function zu(a,i){var l,c=function(g){for(var y=[],v=Hr(g),x=0;x!==v.length;++x)y[g[v[x]]]==null&&(y[g[v[x]]]=[]),y[g[v[x]]].push(v[x]);return y}(ec),f=[];f[f.length]=Xr,f[f.length]=je("Types",null,{xmlns:is.CT,"xmlns:xsd":is.xsd,"xmlns:xsi":is.xsi}),f=f.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(g){return je("Default",null,{Extension:g[0],ContentType:g[1]})}));function h(g){a[g]&&0<a[g].length&&(l=a[g][0],f[f.length]=je("Override",null,{PartName:(l[0]=="/"?"":"/")+l,ContentType:_n[g][i.bookType]||_n[g].xlsx}))}function d(g){(a[g]||[]).forEach(function(y){f[f.length]=je("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:_n[g][i.bookType]||_n[g].xlsx})})}function p(g){(a[g]||[]).forEach(function(y){f[f.length]=je("Override",null,{PartName:(y[0]=="/"?"":"/")+y,ContentType:c[g][0]})})}return h("workbooks"),d("sheets"),d("charts"),p("themes"),["strs","styles"].forEach(h),["coreprops","extprops","custprops"].forEach(p),p("vba"),p("comments"),p("threadedcomments"),p("drawings"),d("metadata"),p("people"),2<f.length&&(f[f.length]="</Types>",f[1]=f[1].replace("/>",">")),f.join("")}var It={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 gi(a){var i=a.lastIndexOf("/");return a.slice(0,i+1)+"_rels/"+a.slice(i+1)+".rels"}function bi(a,i){var l={"!id":{}};if(!a)return l;i.charAt(0)!=="/"&&(i="/"+i);var c={};return(a.match(_s)||[]).forEach(function(f){var h,d=Dt(f);d[0]==="<Relationship"&&((h={}).Type=d.Type,h.Target=d.Target,h.Id=d.Id,d.TargetMode&&(h.TargetMode=d.TargetMode),f=d.TargetMode==="External"?d.Target:li(d.Target,i),l[f]=h,c[d.Id]=h)}),l["!id"]=c,l}function Bo(a){var i=[Xr,je("Relationships",null,{xmlns:is.RELS})];return Hr(a["!id"]).forEach(function(l){i[i.length]=je("Relationship",null,a["!id"][l])}),2<i.length&&(i[i.length]="</Relationships>",i[1]=i[1].replace("/>",">")),i.join("")}function Ar(a,i,l,c,f,h){if(f=f||{},a["!id"]||(a["!id"]={}),a["!idx"]||(a["!idx"]=1),i<0)for(i=a["!idx"];a["!id"]["rId"+i];++i);if(a["!idx"]=i+1,f.Id="rId"+i,f.Type=c,f.Target=l,h?f.TargetMode=h:-1<[It.HLINK,It.XPATH,It.XMISS].indexOf(f.Type)&&(f.TargetMode="External"),a["!id"][f.Id])throw new Error("Cannot rewrite rId "+i);return a["!id"][f.Id]=f,a[("/"+f.Target).replace("//","/")]=f,i}var j1="application/vnd.oasis.opendocument.spreadsheet";function Gu(a,i,l){return[' <rdf:Description rdf:about="'+a+`"> `,' <rdf:type rdf:resource="http://docs.oasis-open.org/ns/office/1.2/meta/'+(l||"odf")+"#"+i+`"/> `,` </rdf:Description> `].join("")}function ju(){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 '+t.version+"</meta:generator></office:meta></office:document-meta>"}var Ks=[["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"]],W1=function(){for(var a=new Array(Ks.length),i=0;i<Ks.length;++i){var l=Ks[i],l="(?:"+l[0].slice(0,l[0].indexOf(":"))+":)"+l[0].slice(l[0].indexOf(":")+1);a[i]=new RegExp("<"+l+"[^>]*>([\\s\\S]*?)</"+l+">")}return a}();function Wu(a){var i={};a=Er(a);for(var l=0;l<Ks.length;++l){var c=Ks[l],f=a.match(W1[l]);f!=null&&0<f.length&&(i[c[1]]=pr(f[1])),c[2]==="date"&&i[c[1]]&&(i[c[1]]=Pr(i[c[1]]))}return i}function rc(a,i,l,c,f){f[a]==null&&i!=null&&i!==""&&(i=Fr(f[a]=i),c[c.length]=l?je(a,i,l):ms(a,i))}function Hu(a,i){var l=i||{},c=[Xr,je("cp:coreProperties",null,{"xmlns:cp":is.CORE_PROPS,"xmlns:dc":is.dc,"xmlns:dcterms":is.dcterms,"xmlns:dcmitype":is.dcmitype,"xmlns:xsi":is.xsi})],f={};if(!a&&!l.Props)return c.join("");a&&(a.CreatedDate!=null&&rc("dcterms:created",typeof a.CreatedDate=="string"?a.CreatedDate:Pl(a.CreatedDate,l.WTF),{"xsi:type":"dcterms:W3CDTF"},c,f),a.ModifiedDate!=null&&rc("dcterms:modified",typeof a.ModifiedDate=="string"?a.ModifiedDate:Pl(a.ModifiedDate,l.WTF),{"xsi:type":"dcterms:W3CDTF"},c,f));for(var h=0;h!=Ks.length;++h){var d=Ks[h],p=l.Props&&l.Props[d[1]]!=null?l.Props[d[1]]:a?a[d[1]]:null;p===!0?p="1":p===!1?p="0":typeof p=="number"&&(p=String(p)),p!=null&&rc(d[0],p,null,c,f)}return 2<c.length&&(c[c.length]="</cp:coreProperties>",c[1]=c[1].replace("/>",">")),c.join("")}var no=[["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"]],Yu=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function qu(a,i,l,c){var f=[];if(typeof a=="string")f=gu(a,c);else for(var h=0;h<a.length;++h)f=f.concat(a[h].map(function(v){return{v}}));var d,p=typeof i=="string"?gu(i,c).map(function(v){return v.v}):i,g=0;if(0<p.length)for(var y=0;y!==f.length;y+=2){switch(d=+f[y+1].v,f[y].v){case"Worksheets":case"工作表":case"Листы":case"أوراق العمل":case"ワークシート":case"גליונות עבודה":case"Arbeitsblätter":case"Çalışma Sayfaları":case"Feuilles de calcul":case"Fogli di lavoro":case"Folhas de cálculo":case"Planilhas":case"Regneark":case"Hojas de cálculo":case"Werkbladen":l.Worksheets=d,l.SheetNames=p.slice(g,g+d);break;case"Named Ranges":case"Rangos con nombre":case"名前付き一覧":case"Benannte Bereiche":case"Navngivne områder":l.NamedRanges=d,l.DefinedNames=p.slice(g,g+d);break;case"Charts":case"Diagramme":l.Chartsheets=d,l.ChartNames=p.slice(g,g+d)}g+=d}}function Ku(a){var i=[],l=je;return(a=a||{}).Application="SheetJS",i[i.length]=Xr,i[i.length]=je("Properties",null,{xmlns:is.EXT_PROPS,"xmlns:vt":is.vt}),no.forEach(function(c){if(a[c[1]]!==void 0){var f;switch(c[2]){case"string":f=Fr(String(a[c[1]]));break;case"bool":f=a[c[1]]?"true":"false"}f!==void 0&&(i[i.length]=l(c[0],f))}}),i[i.length]=l("HeadingPairs",l("vt:vector",l("vt:variant","<vt:lpstr>Worksheets</vt:lpstr>")+l("vt:variant",l("vt:i4",String(a.Worksheets))),{size:2,baseType:"variant"})),i[i.length]=l("TitlesOfParts",l("vt:vector",a.SheetNames.map(function(c){return"<vt:lpstr>"+Fr(c)+"</vt:lpstr>"}).join(""),{size:a.Worksheets,baseType:"lpstr"})),2<i.length&&(i[i.length]="</Properties>",i[1]=i[1].replace("/>",">")),i.join("")}var H1=/<[^>]+>[^<]*/g;function Ju(a){var i=[Xr,je("Properties",null,{xmlns:is.CUST_PROPS,"xmlns:vt":is.vt})];if(!a)return i.join("");var l=1;return Hr(a).forEach(function(c){++l,i[i.length]=je("property",function(f,h){switch(typeof f){case"string":var d=je("vt:lpwstr",Fr(f));return d=h?d.replace(/"/g,"_x0022_"):d;case"number":return je((0|f)==f?"vt:i4":"vt:r8",Fr(String(f)));case"boolean":return je("vt:bool",f?"true":"false")}if(f instanceof Date)return je("vt:filetime",Pl(f));throw new Error("Unable to serialize "+f)}(a[c],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:l,name:Fr(c)})}),2<i.length&&(i[i.length]="</Properties>",i[1]=i[1].replace("/>",">")),i.join("")}var Xu,sc={Title:"Title",Subject:"Subject",Author:"Author",Keywords:"Keywords",Comments:"Description",LastAuthor:"LastAuthor",RevNumber:"Revision",Application:"AppName",LastPrinted:"LastPrinted",CreatedDate:"Created",ModifiedDate:"LastSaved",Category:"Category",Manager:"Manager",Company:"Company",AppVersion:"Version",ContentStatus:"ContentStatus",Identifier:"Identifier",Language:"Language"};function ac(l){var i=l.read_shift(4),l=l.read_shift(4);return new Date(1e3*(l/1e7*Math.pow(2,32)+i/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Qu(a,i,l){var c=a.l,f=a.read_shift(0,"lpstr-cp");if(l)for(;a.l-c&3;)++a.l;return f}function Zu(a,i,l){var c=a.read_shift(0,"lpwstr");return l&&(a.l+=4-(c.length+1&3)&3),c}function $u(a,i,l){return i===31?Zu(a):Qu(a,0,l)}function ed(a,i,l){return $u(a,i,l===!1?0:4)}function Y1(a){for(var i,l,c,f=a.read_shift(4),h=[],d=0;d<f/2;++d)h.push((c=l=void 0,l=(i=a).l,c=vn(i,Vu),i[i.l]==0&&i[i.l+1]==0&&i.l-l&2&&(i.l+=2),[c,vn(i,Vs)]));return h}function td(a,i){for(var l=a.read_shift(4),c={},f=0;f!=l;++f){var h=a.read_shift(4),d=a.read_shift(4);c[h]=a.read_shift(d,i===1200?"utf16le":"utf8").replace(bt,"").replace(rt,"!"),i===1200&&d%2&&(a.l+=2)}return 3&a.l&&(a.l=a.l>>3<<2),c}function rd(a){var i=a.read_shift(4),l=a.slice(a.l,a.l+i);return a.l+=i,0<(3&i)&&(a.l+=4-(3&i)&3),l}function vn(a,i,l){var c,f,h=a.read_shift(2),d=l||{};if(a.l+=2,i!==Iu&&h!==i&&z1.indexOf(i)===-1&&((65534&i)!=4126||(65534&h)!=4126))throw new Error("Expected type "+i+" saw "+h);switch(i===Iu?h:i){case 2:return c=a.read_shift(2,"i"),d.raw||(a.l+=2),c;case 3:return c=a.read_shift(4,"i");case 11:return a.read_shift(4)!==0;case 19:return c=a.read_shift(4);case 30:return Qu(a,0,4).replace(bt,"");case 31:return Zu(a);case 64:return ac(a);case 65:return rd(a);case 71:return(f={}).Size=(c=a).read_shift(4),c.l+=f.Size+3-(f.Size-1)%4,f;case 80:return ed(a,h,!d.raw).replace(bt,"");case 81:return function(p,g){if(!g)throw new Error("VtUnalignedString must have positive length");return $u(p,g,0)}(a,h).replace(bt,"");case 4108:return Y1(a);case 4126:case 4127:return(h==4127?function(p){for(var g=p.read_shift(4),y=[],v=0;v!=g;++v){var x=p.l;y[v]=p.read_shift(0,"lpwstr").replace(bt,""),p.l-x&2&&(p.l+=2)}return y}:function(p){for(var g=p.read_shift(4),y=[],v=0;v!=g;++v)y[v]=p.read_shift(0,"lpstr-cp").replace(bt,"");return y})(a);default:throw new Error("TypedPropertyValue unrecognized type "+i+" "+h)}}function sd(a,i){var l,c,f,h=ge(4),d=ge(4);switch(h.write_shift(4,a==80?31:a),a){case 3:d.write_shift(-4,i);break;case 5:(d=ge(8)).write_shift(8,i,"f");break;case 11:d.write_shift(4,i?1:0);break;case 64:c=(typeof(l=i)=="string"?new Date(Date.parse(l)):l).getTime()/1e3+11644473600,f=c%Math.pow(2,32),l=(c-f)/Math.pow(2,32),l*=1e7,0<(c=(f*=1e7)/Math.pow(2,32)|0)&&(f%=Math.pow(2,32),l+=c),(c=ge(8)).write_shift(4,f),c.write_shift(4,l),d=c;break;case 31:case 80:for((d=ge(4+2*(i.length+1)+(i.length%2?0:2))).write_shift(4,i.length+1),d.write_shift(0,i,"dbcs");d.l!=d.length;)d.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+i)}return ft([h,d])}function ad(a,i){for(var l=a.l,c=a.read_shift(4),f=a.read_shift(4),h=[],y=0,d=0,p=-1,g={},y=0;y!=f;++y){var v=a.read_shift(4),x=a.read_shift(4);h[y]=[v,x+l]}h.sort(function(L,T){return L[1]-T[1]});var C={};for(y=0;y!=f;++y){if(a.l!==h[y][1]){var F=!0;if(0<y&&i)switch(i[h[y-1][0]].t){case 2:a.l+2===h[y][1]&&(a.l+=2,F=!1);break;case 80:case 4108:a.l<=h[y][1]&&(a.l=h[y][1],F=!1)}if((!i||y==0)&&a.l<=h[y][1]&&(F=!1,a.l=h[y][1]),F)throw new Error("Read Error: Expected address "+h[y][1]+" at "+a.l+" :"+y)}if(i){var R=i[h[y][0]];if(C[R.n]=vn(a,R.t,{raw:!0}),R.p==="version"&&(C[R.n]=String(C[R.n]>>16)+"."+("0000"+String(65535&C[R.n])).slice(-4)),R.n=="CodePage")switch(C[R.n]){case 0:C[R.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:S(d=C[R.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+C[R.n])}}else if(h[y][0]===1)d=C.CodePage=vn(a,Ql),S(d),p!==-1&&(P=a.l,a.l=h[p][1],g=td(a,d),a.l=P);else if(h[y][0]===0)d!==0?g=td(a,d):(p=y,a.l=h[y+1][1]);else{var A,P=g[h[y][0]];switch(a[a.l]){case 65:a.l+=4,A=rd(a);break;case 30:case 31:a.l+=4,A=ed(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 3:a.l+=4,A=a.read_shift(4,"i");break;case 19:a.l+=4,A=a.read_shift(4);break;case 5:a.l+=4,A=a.read_shift(8,"f");break;case 11:a.l+=4,A=Qr(a,4);break;case 64:a.l+=4,A=Pr(ac(a));break;default:throw new Error("unparsed value: "+a[a.l])}C[P]=A}}return a.l=l+c,C}var od=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function id(a,i,l){var c,f,h,d,p=ge(8),g=[],y=[],v=8,x=0,C=ge(8),F=ge(8);if(C.write_shift(4,2),C.write_shift(4,1200),F.write_shift(4,1),y.push(C),g.push(F),v+=8+C.length,!i){(F=ge(8)).write_shift(4,0),g.unshift(F);var R=[ge(4)];for(R[0].write_shift(4,a.length),x=0;x<a.length;++x){var A=a[x][0];for((C=ge(8+2*(A.length+1)+(A.length%2?0:2))).write_shift(4,x+2),C.write_shift(4,A.length+1),C.write_shift(0,A,"dbcs");C.l!=C.length;)C.write_shift(1,0);R.push(C)}C=ft(R),y.unshift(C),v+=8+C.length}for(x=0;x<a.length;++x)i&&!i[a[x][0]]||-1<od.indexOf(a[x][0])||-1<Yu.indexOf(a[x][0])||a[x][1]!=null&&(h=a[x][1],c=0,C=i?((d=l[c=+i[a[x][0]]]).p=="version"&&typeof h=="string"&&(h=(+(f=h.split("."))[0]<<16)+(+f[1]||0)),sd(d.t,h)):((d=function(L){switch(typeof L){case"boolean":return 11;case"number":return(0|L)==L?3:5;case"string":return 31;case"object":if(L instanceof Date)return 64}return-1}(h))==-1&&(d=31,h=String(h)),sd(d,h)),y.push(C),(F=ge(8)).write_shift(4,i?c:2+x),g.push(F),v+=8+C.length);for(var P=8*(y.length+1),x=0;x<y.length;++x)g[x].write_shift(4,P),P+=y[x].length;return p.write_shift(4,v),p.write_shift(4,y.length),ft([p].concat(g).concat(y))}function nd(a,i,l){var c=a.content;if(!c)return{};gs(c,0);var f,h=0;c.chk("feff","Byte Order: "),c.read_shift(2);var d=c.read_shift(4),p=c.read_shift(16);if(p!==_t.utils.consts.HEADER_CLSID&&p!==l)throw new Error("Bad PropertySet CLSID "+p);if((a=c.read_shift(4))!==1&&a!==2)throw new Error("Unrecognized #Sets: "+a);if(l=c.read_shift(16),p=c.read_shift(4),a===1&&p!==c.l)throw new Error("Length mismatch: "+p+" !== "+c.l);a===2&&(f=c.read_shift(16),h=c.read_shift(4));var g,y,v=ad(c,i),x={SystemIdentifier:d};for(g in v)x[g]=v[g];if(x.FMTID=l,a===1)return x;if(h-c.l==2&&(c.l+=2),c.l!==h)throw new Error("Length mismatch 2: "+c.l+" !== "+h);try{y=ad(c,null)}catch{}for(g in y)x[g]=y[g];return x.FMTID=[l,f],x}function ld(a,i,l,c,f,h){var d=ge(f?68:48),p=[d];return d.write_shift(2,65534),d.write_shift(2,0),d.write_shift(4,842412599),d.write_shift(16,_t.utils.consts.HEADER_CLSID,"hex"),d.write_shift(4,f?2:1),d.write_shift(16,i,"hex"),d.write_shift(4,f?68:48),c=id(a,l,c),p.push(c),f&&(f=id(f,null,null),d.write_shift(16,h,"hex"),d.write_shift(4,68+c.length),p.push(f)),ft(p)}function Ba(a,i){return a.read_shift(i),null}function Qr(a,i){return a.read_shift(i)===1}function Ls(a,i){return(i=i||ge(2)).write_shift(2,+!!a),i}function rs(a){return a.read_shift(2,"u")}function Js(a,i){return(i=i||ge(2)).write_shift(2,a),i}function cd(a,i){return function(l,c,f){for(var h=[],d=l.l+c;l.l<d;)h.push(f(l,d-l.l));if(d!==l.l)throw new Error("Slurp error");return h}(a,i,rs)}function fd(a,i,l){return(l=l||ge(2)).write_shift(1,i=="e"?+a:+!!a),l.write_shift(1,i=="e"?1:0),l}function yi(a,i,l){var c=a.read_shift(l&&12<=l.biff?2:1),f="sbcs-cont",h=u;return l&&8<=l.biff&&(u=1200),l&&l.biff!=8?l.biff==12&&(f="wstr"):a.read_shift(1)&&(f="dbcs-cont"),2<=l.biff&&l.biff<=5&&(f="cpstr"),f=c?a.read_shift(c,f):"",u=h,f}function lo(a,i,l){if(l){if(2<=l.biff&&l.biff<=5)return a.read_shift(i,"cpstr");if(12<=l.biff)return a.read_shift(i,"dbcs-cont")}return a.read_shift(1)===0?a.read_shift(i,"sbcs-cont"):a.read_shift(i,"dbcs-cont")}function _i(a,i,l){var c=a.read_shift(l&&l.biff==2?1:2);return c===0?(a.l++,""):lo(a,c,l)}function co(a,i,l){if(5<l.biff)return _i(a,0,l);var c=a.read_shift(1);return c===0?(a.l++,""):a.read_shift(c,l.biff<=4||!a.lens?"cpstr":"sbcs-cont")}function ud(a,i,l){return(l=l||ge(3+2*a.length)).write_shift(2,a.length),l.write_shift(1,1),l.write_shift(31,a,"utf16le"),l}function q1(a){var i,l,c,f,h=a.read_shift(16);switch(h){case"e0c9ea79f9bace118c8200aa004ba90b":return l=(i=a).read_shift(4),c=i.l,f=!1,24<l&&(i.l+=l-24,i.read_shift(16)==="795881f43b1d7f48af2c825dc4852763"&&(f=!0),i.l=c),l=i.read_shift((f?l-24:l)>>1,"utf16le").replace(bt,""),f&&(i.l+=24),l;case"0303000000000000c000000000000046":return function(d){for(var p=d.read_shift(2),g="";0<p--;)g+="../";var y=d.read_shift(0,"lpstr-ansi");if(d.l+=2,d.read_shift(2)!=57005)throw new Error("Bad FileMoniker");if(d.read_shift(4)===0)return g+y.replace(/\\/g,"/");if(y=d.read_shift(4),d.read_shift(2)!=3)throw new Error("Bad FileMoniker");return g+d.read_shift(y>>1,"utf16le").replace(bt,"")}(a);default:throw new Error("Unsupported Moniker "+h)}}function wn(a){var i=a.read_shift(4);return 0<i?a.read_shift(i,"utf16le").replace(bt,""):""}function dd(a,i){(i=i||ge(6+2*a.length)).write_shift(4,1+a.length);for(var l=0;l<a.length;++l)i.write_shift(2,a.charCodeAt(l));return i.write_shift(2,0),i}function hd(a){return[a.read_shift(1),a.read_shift(1),a.read_shift(1),a.read_shift(1)]}function pd(a){return a=hd(a),a[3]=0,a}function ya(a){return{r:a.read_shift(2),c:a.read_shift(2),ixfe:a.read_shift(2)}}function fo(a,i,l,c){return(c=c||ge(6)).write_shift(2,a),c.write_shift(2,i),c.write_shift(2,l||0),c}function md(a){return[a.read_shift(2),Xl(a)]}function xn(a){var i=a.read_shift(2),l=a.read_shift(2);return{s:{c:a.read_shift(2),r:i},e:{c:a.read_shift(2),r:l}}}function gd(a,i){return(i=i||ge(8)).write_shift(2,a.s.r),i.write_shift(2,a.e.r),i.write_shift(2,a.s.c),i.write_shift(2,a.e.c),i}function bd(a){var i=a.read_shift(2),l=a.read_shift(2);return{s:{c:a.read_shift(1),r:i},e:{c:a.read_shift(1),r:l}}}var K1=bd;function yd(a){a.l+=4;var i=a.read_shift(2),l=a.read_shift(2),c=a.read_shift(2);return a.l+=12,[l,i,c]}function Cs(a){a.l+=2,a.l+=a.read_shift(2)}var J1={0:Cs,4:Cs,5:Cs,6:Cs,7:function(a){return a.l+=4,a.cf=a.read_shift(2),{}},8:Cs,9:Cs,10:Cs,11:Cs,12:Cs,13:function(a){var i={};return a.l+=4,a.l+=16,i.fSharedNote=a.read_shift(2),a.l+=4,i},14:Cs,15:Cs,16:Cs,17:Cs,18:Cs,19:Cs,20:Cs,21:yd};function Cn(a,i){var l={BIFFVer:0,dt:0};switch(l.BIFFVer=a.read_shift(2),2<=(i-=2)&&(l.dt=a.read_shift(2),a.l-=2),l.BIFFVer){case 1536:case 1280:case 1024:case 768:case 512:case 2:case 7:break;default:if(6<i)throw new Error("Unexpected BIFF Ver "+l.BIFFVer)}return a.read_shift(i),l}function oc(a,i,l){var c=1536,f=16;switch(l.bookType){case"biff8":break;case"biff5":c=1280,f=8;break;case"biff4":c=4,f=6;break;case"biff3":c=3,f=6;break;case"biff2":c=2,f=4;break;case"xla":break;default:throw new Error("unsupported BIFF version")}return l=ge(f),l.write_shift(2,c),l.write_shift(2,i),4<f&&l.write_shift(2,29282),6<f&&l.write_shift(2,1997),8<f&&(l.write_shift(2,49161),l.write_shift(2,1),l.write_shift(2,1798),l.write_shift(2,0)),l}function X1(a){var i=ge(8);i.write_shift(4,a.Count),i.write_shift(4,a.Unique);for(var l,c,f,h=[],d=0;d<a.length;++d)h[d]=(l=a[d],f=c=void 0,c=l.t||"",(f=ge(3)).write_shift(2,c.length),f.write_shift(1,1),(l=ge(2*c.length)).write_shift(2*c.length,c,"utf16le"),ft([f,l]));var p=ft([i].concat(h));return p.parts=[i.length].concat(h.map(function(g){return g.length})),p}function _d(a,i,l){var c=0;return l&&l.biff==2||(c=a.read_shift(2)),a=a.read_shift(2),l&&l.biff==2&&(c=1-(a>>15),a&=32767),[{Unsynced:1&c,DyZero:(2&c)>>1,ExAsc:(4&c)>>2,ExDsc:(8&c)>>3},a]}var Ko=co;function vd(a,h,d){var c=a.l+h,p=d.biff!=8&&d.biff?2:4,f=a.read_shift(p),h=a.read_shift(p),d=a.read_shift(2),p=a.read_shift(2);return a.l=c,{s:{r:f,c:d},e:{r:h,c:p}}}function wd(a,i,l,c){return l=l&&l.biff==5,(c=c||ge(l?16:20)).write_shift(2,0),a.style?(c.write_shift(2,a.numFmtId||0),c.write_shift(2,65524)):(c.write_shift(2,a.numFmtId||0),c.write_shift(2,i<<4)),i=0,0<a.numFmtId&&l&&(i|=1024),c.write_shift(4,i),c.write_shift(4,0),l||c.write_shift(4,0),c.write_shift(2,0),c}function xd(a,i,l){var c=ya(a);return l.biff!=2&&i!=9||++a.l,a=(i=a).read_shift(1),a=i.read_shift(1)===1?a:a===1,c.val=a,c.t=a===!0||a===!1?"b":"e",c}function Cd(a,i,l){return i===0?"":co(a,0,l)}function Fd(a,i,l){var c,f=a.read_shift(2),f={fBuiltIn:1&f,fWantAdvise:f>>>1&1,fWantPict:f>>>2&1,fOle:f>>>3&1,fOleLink:f>>>4&1,cf:f>>>5&1023,fIcon:f>>>15&1};return l.sbcch===14849&&(c=function(h,y,p){h.l+=4,y-=4;var g=h.l+y,y=yi(h,0,p);if((p=h.read_shift(2))!==(g-=h.l))throw new Error("Malformed AddinUdf: padding = "+g+" != "+p);return h.l+=p,y}(a,i-2,l)),f.body=c||a.read_shift(i-2),typeof c=="string"&&(f.Name=c),f}var Q1=["_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 Ad(a,g,l){var c=a.l+g,f=a.read_shift(2),h=a.read_shift(1),d=a.read_shift(1),p=a.read_shift(l&&l.biff==2?1:2),g=0;return(!l||5<=l.biff)&&(l.biff!=5&&(a.l+=2),g=a.read_shift(2),l.biff==5&&(a.l+=2),a.l+=4),d=lo(a,d,l),32&f&&(d=Q1[d.charCodeAt(0)]),f=c-a.l,l&&l.biff==2&&--f,{chKey:h,Name:d,itab:g,rgce:c!=a.l&&p!==0&&0<f?function(y,R,x,A){var F,R=y.l+R,A=Ti(y,A,x);return R!==y.l&&(F=Ei(y,R-y.l,A,x)),[A,F]}(a,f,l,p):[]}}function Dd(a,i,l){if(l.biff<8)return function(p,g){return p[p.l+1]==3&&p[p.l]++,g=yi(p,0,g),g.charCodeAt(0)==3?g.slice(1):g}(a,l);for(var c,f,h=[],i=a.l+i,d=a.read_shift(8<l.biff?4:2);d--!=0;)h.push((c=a,l.biff,f=8<(f=l).biff?4:2,[c.read_shift(f),c.read_shift(f,"i"),c.read_shift(f,"i")]));if(a.l!=i)throw new Error("Bad ExternSheet: "+a.l+" != "+i);return h}function Sd(a,i,l){var c=K1(a);switch(l.biff){case 2:a.l++,i-=7;break;case 3:case 4:a.l+=2,i-=8;break;default:a.l+=6,i-=12}return[c,function(f,h,d){var p,g=f.l+h,y=d.biff==2?1:2,v=f.read_shift(y);if(v==65535)return[[],vs(f,h-2)];var x=Ti(f,v,d);return h!==v+y&&(p=Ei(f,h-v-y,x,d)),f.l=g,[x,p]}(a,i,l)]}var Z1={8:function(a,i){var l=a.l+i;a.l+=10;var c=a.read_shift(2);return a.l+=4,a.l+=2,a.l+=2,a.l+=2,a.l+=4,i=a.read_shift(1),a.l+=i,a.l=l,{fmt:c}}};function $1(a){var i=ge(24),l=Gr(a[0]);i.write_shift(2,l.r),i.write_shift(2,l.r),i.write_shift(2,l.c),i.write_shift(2,l.c);for(var c="d0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),f=0;f<16;++f)i.write_shift(1,parseInt(c[f],16));return ft([i,function(h){var d=ge(512),p=0,g=h.Target,y=-1<(h=(g=g.slice(0,7)=="file://"?g.slice(7):g).indexOf("#"))?31:23;switch(g.charAt(0)){case"#":y=28;break;case".":y&=-3}d.write_shift(4,2),d.write_shift(4,y);for(var v=[8,6815827,6619237,4849780,83],p=0;p<v.length;++p)d.write_shift(4,v[p]);if(y==28)dd(g=g.slice(1),d);else if(2&y){for(v="e0 c9 ea 79 f9 ba ce 11 8c 82 00 aa 00 4b a9 0b".split(" "),p=0;p<v.length;++p)d.write_shift(1,parseInt(v[p],16));var x=-1<h?g.slice(0,h):g;for(d.write_shift(4,2*(x.length+1)),p=0;p<x.length;++p)d.write_shift(2,x.charCodeAt(p));d.write_shift(2,0),8&y&&dd(-1<h?g.slice(h+1):"",d)}else{for(v="03 03 00 00 00 00 00 00 c0 00 00 00 00 00 00 46".split(" "),p=0;p<v.length;++p)d.write_shift(1,parseInt(v[p],16));for(var C=0;g.slice(3*C,3*C+3)=="../"||g.slice(3*C,3*C+3)=="..\\";)++C;for(d.write_shift(2,C),d.write_shift(4,g.length-3*C+1),p=0;p<g.length-3*C;++p)d.write_shift(1,255&g.charCodeAt(p+3*C));for(d.write_shift(1,0),d.write_shift(2,65535),d.write_shift(2,57005),p=0;p<6;++p)d.write_shift(4,0)}return d.slice(0,d.l)}(a[1])])}function Ed(a,g,l){if(!l.cellStyles)return vs(a,g);var c=l&&12<=l.biff?4:2,f=a.read_shift(c),h=a.read_shift(c),d=a.read_shift(c),p=a.read_shift(c),g=a.read_shift(2);return c==2&&(a.l+=2),p={s:f,e:h,w:d,ixfe:p,flags:g},(5<=l.biff||!l.biff)&&(p.level=g>>8&7),p}var eg=ya,tg=cd,Wc=_i,Td,kd,Fn,rg=[2,3,48,49,131,139,140,245],ic=(Td={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},kd=nn({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}),Fn={B:8,C:250,L:1,D:8,"?":0,"":0},{to_workbook:function(a,i){try{return Va(Rd(a,i),i)}catch(l){if(i&&i.WTF)throw l}return{SheetNames:[],Sheets:{}}},to_sheet:Rd,from_sheet:function(a,i){if(0<=+(i=i||{}).codepage&&S(+i.codepage),i.type=="string")throw new Error("Cannot write DBF to JS string");for(var l=Is(),c=(i=Yn(a,{header:1,raw:!0,cellDates:!0}))[0],f=i.slice(1),h=a["!cols"]||[],y=0,d=0,p=0,g=1,y=0;y<c.length;++y)if(((h[y]||{}).DBF||{}).name)c[y]=h[y].DBF.name,++p;else if(c[y]!=null){if(++p,typeof c[y]=="number"&&(c[y]=c[y].toString(10)),typeof c[y]!="string")throw new Error("DBF Invalid column name "+c[y]+" |"+typeof c[y]+"|");if(c.indexOf(c[y])!==y){for(d=0;d<1024;++d)if(c.indexOf(c[y]+"_"+d)==-1){c[y]+="_"+d;break}}}var v=Qt(a["!ref"]),x=[],C=[],F=[];for(y=0;y<=v.e.c-v.s.c;++y){for(var R="",A="",P=0,L=[],d=0;d<f.length;++d)f[d][y]!=null&&L.push(f[d][y]);if(L.length!=0&&c[y]!=null){for(d=0;d<L.length;++d){switch(typeof L[d]){case"number":A="B";break;case"string":A="C";break;case"boolean":A="L";break;case"object":A=L[d]instanceof Date?"D":"C";break;default:A="C"}P=Math.max(P,String(L[d]).length),R=R&&R!=A?"C":A}250<P&&(P=250),(A=((h[y]||{}).DBF||{}).type)=="C"&&h[y].DBF.len>P&&(P=h[y].DBF.len),R=="B"&&A=="N"&&(R="N",F[y]=h[y].DBF.dec,P=h[y].DBF.len),C[y]=R=="C"||A=="N"?P:Fn[R]||0,g+=C[y],x[y]=R}else x[y]="?"}var T,O,N=l.next(32);for(N.write_shift(4,318902576),N.write_shift(4,f.length),N.write_shift(2,296+32*p),N.write_shift(2,g),y=0;y<4;++y)N.write_shift(4,0);for(N.write_shift(4,0|(+kd[m]||3)<<8),d=y=0;y<c.length;++y)c[y]!=null&&(T=l.next(32),O=(c[y].slice(-10)+"\0\0\0\0\0\0\0\0\0\0\0").slice(0,11),T.write_shift(1,O,"sbcs"),T.write_shift(1,x[y]=="?"?"C":x[y],"sbcs"),T.write_shift(4,d),T.write_shift(1,C[y]||Fn[x[y]]||0),T.write_shift(1,F[y]||0),T.write_shift(1,2),T.write_shift(4,0),T.write_shift(1,0),T.write_shift(4,0),T.write_shift(4,0),d+=C[y]||Fn[x[y]]||0);var I=l.next(264);for(I.write_shift(4,13),y=0;y<65;++y)I.write_shift(4,0);for(y=0;y<f.length;++y){var X=l.next(g);for(X.write_shift(1,0),d=0;d<c.length;++d)if(c[d]!=null)switch(x[d]){case"L":X.write_shift(1,f[y][d]==null?63:f[y][d]?84:70);break;case"B":X.write_shift(8,f[y][d]||0,"f");break;case"N":var se="0";for(typeof f[y][d]=="number"&&(se=f[y][d].toFixed(F[d]||0)),p=0;p<C[d]-se.length;++p)X.write_shift(1,32);X.write_shift(1,se,"sbcs");break;case"D":f[y][d]?(X.write_shift(4,("0000"+f[y][d].getFullYear()).slice(-4),"sbcs"),X.write_shift(2,("00"+(f[y][d].getMonth()+1)).slice(-2),"sbcs"),X.write_shift(2,("00"+f[y][d].getDate()).slice(-2),"sbcs")):X.write_shift(8,"00000000","sbcs");break;case"C":var te=String(f[y][d]!=null?f[y][d]:"").slice(0,C[d]);for(X.write_shift(1,te,"sbcs"),p=0;p<C[d]-te.length;++p)X.write_shift(1,32)}}return l.next(1).write_shift(1,26),l.end()}});function Rd(a,i){return i=i||{},i.dateNF||(i.dateNF="yyyymmdd"),a=No(function(l,c){var f=[],h=G(1);switch(c.type){case"base64":h=ve(z(l));break;case"binary":h=ve(l);break;case"buffer":case"array":h=l}gs(h,0);var d=h.read_shift(1),p=!!(136&d),g=!1,y=!1;switch(d){case 2:case 3:break;case 48:case 49:p=g=!0;break;case 131:case 139:break;case 140:y=!0;break;case 245:break;default:throw new Error("DBF Unsupported Version: "+d.toString(16))}var v=0,x=521;d==2&&(v=h.read_shift(2)),h.l+=3,1048576<(v=d!=2?h.read_shift(4):v)&&(v=1e6),d!=2&&(x=h.read_shift(2));var C=h.read_shift(2),F=c.codepage||1252;d!=2&&(h.l+=16,h.read_shift(1),h[h.l]!==0&&(F=Td[h[h.l]]),h.l+=1,h.l+=2),y&&(h.l+=36);for(var R=[],A={},P=Math.min(h.length,d==2?521:x-10-(g?264:0)),L=y?32:11;h.l<P&&h[h.l]!=13;)switch((A={}).name=e.utils.decode(F,h.slice(h.l,h.l+L)).replace(/[\u0000\r\n].*$/g,""),h.l+=L,A.type=String.fromCharCode(h.read_shift(1)),d==2||y||(A.offset=h.read_shift(4)),A.len=h.read_shift(1),d==2&&(A.offset=h.read_shift(2)),A.dec=h.read_shift(1),A.name.length&&R.push(A),d!=2&&(h.l+=y?13:14),A.type){case"B":g&&A.len==8||!c.WTF||console.log("Skipping "+A.name+":"+A.type);break;case"G":case"P":c.WTF&&console.log("Skipping "+A.name+":"+A.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: "+A.type)}if(h[h.l]!==13&&(h.l=x-1),h.read_shift(1)!==13)throw new Error("DBF Terminator not found "+h.l+" "+h[h.l]);h.l=x;var T=0,O=0;for(f[0]=[],O=0;O!=R.length;++O)f[0][O]=R[O].name;for(;0<v--;)if(h[h.l]!==42)for(++h.l,f[++T]=[],O=O=0;O!=R.length;++O){var N=h.slice(h.l,h.l+R[O].len);h.l+=R[O].len,gs(N,0);var I=e.utils.decode(F,N);switch(R[O].type){case"C":I.trim().length&&(f[T][O]=I.replace(/\s+$/,""));break;case"D":I.length===8?f[T][O]=new Date(+I.slice(0,4),+I.slice(4,6)-1,+I.slice(6,8)):f[T][O]=I;break;case"F":f[T][O]=parseFloat(I.trim());break;case"+":case"I":f[T][O]=y?2147483648^N.read_shift(-4,"i"):N.read_shift(4,"i");break;case"L":switch(I.trim().toUpperCase()){case"Y":case"T":f[T][O]=!0;break;case"N":case"F":f[T][O]=!1;break;case"":case"?":break;default:throw new Error("DBF Unrecognized L:|"+I+"|")}break;case"M":if(!p)throw new Error("DBF Unexpected MEMO for type "+d.toString(16));f[T][O]="##MEMO##"+(y?parseInt(I.trim(),10):N.read_shift(4));break;case"N":(I=I.replace(/\u0000/g,"").trim())&&I!="."&&(f[T][O]=+I||0);break;case"@":f[T][O]=new Date(N.read_shift(-8,"f")-621356832e5);break;case"T":f[T][O]=new Date(864e5*(N.read_shift(4)-2440588)+N.read_shift(4));break;case"Y":f[T][O]=N.read_shift(4,"i")/1e4+N.read_shift(4,"i")/1e4*Math.pow(2,32);break;case"O":f[T][O]=-N.read_shift(-8,"f");break;case"B":if(g&&R[O].len==8){f[T][O]=N.read_shift(8,"f");break}case"G":case"P":N.l+=R[O].len;break;case"0":if(R[O].name==="_NullFlags")break;default:throw new Error("DBF Unsupported data type "+R[O].type)}}else h.l+=C;if(d!=2&&h.l<h.length&&h[h.l++]!=26)throw new Error("DBF EOF Marker missing "+(h.l-1)+" of "+h.length+" "+h[h.l-1].toString(16));return c&&c.sheetRows&&(f=f.slice(0,c.sheetRows)),c.DBF=R,f}(a,i),i),a["!cols"]=i.DBF.map(function(l){return{wch:l.len,DBF:l}}),delete i.DBF,a}var An,Ld,Md,Od,Pd=(An={AA:"À",BA:"Á",CA:"Â",DA:195,HA:"Ä",JA:197,AE:"È",BE:"É",CE:"Ê",HE:"Ë",AI:"Ì",BI:"Í",CI:"Î",HI:"Ï",AO:"Ò",BO:"Ó",CO:"Ô",DO:213,HO:"Ö",AU:"Ù",BU:"Ú",CU:"Û",HU:"Ü",Aa:"à",Ba:"á",Ca:"â",Da:227,Ha:"ä",Ja:229,Ae:"è",Be:"é",Ce:"ê",He:"ë",Ai:"ì",Bi:"í",Ci:"î",Hi:"ï",Ao:"ò",Bo:"ó",Co:"ô",Do:245,Ho:"ö",Au:"ù",Bu:"ú",Cu:"û",Hu:"ü",KC:"Ç",Kc:"ç",q:"æ",z:"œ",a:"Æ",j:"Œ",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},Ld=new RegExp("\x1BN("+Hr(An).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),Md=function(a,i){return i=An[i],typeof i=="number"?U(i):i},Od=function(a,i,l){return l=i.charCodeAt(0)-32<<4|l.charCodeAt(0)-48,l==59?a:U(l)},An["|"]=254,{to_workbook:function(a,i){return Va(Nd(a,i),i)},to_sheet:Nd,from_sheet:function(a,i){var l,c,f=["ID;PWXL;N;E"],h=[],d=Qt(a["!ref"]),p=Array.isArray(a),g=`\r `;f.push("P;PGeneral"),f.push("F;P0;DG0G8;M255"),a["!cols"]&&(l=f,a["!cols"].forEach(function(C,F){F="F;W"+(F+1)+" "+(F+1)+" ",C.hidden?F+="0":(typeof C.width!="number"||C.wpx||(C.wpx=xi(C.width)),typeof C.wpx!="number"||C.wch||(C.wch=Ci(C.wpx)),typeof C.wch=="number"&&(F+=Math.round(C.wch))),F.charAt(F.length-1)!=" "&&l.push(F)})),a["!rows"]&&(c=f,a["!rows"].forEach(function(C,F){var R="F;";C.hidden?R+="M0;":C.hpt?R+="M"+20*C.hpt+";":C.hpx&&(R+="M"+20*Fi(C.hpx)+";"),2<R.length&&c.push(R+"R"+(F+1))})),f.push("B;Y"+(d.e.r-d.s.r+1)+";X"+(d.e.c-d.s.c+1)+";D"+[d.s.c,d.s.r,d.e.c,d.e.r].join(" "));for(var y=d.s.r;y<=d.e.r;++y)for(var v=d.s.c;v<=d.e.c;++v){var x=St({r:y,c:v});(x=p?(a[y]||[])[v]:a[x])&&(x.v!=null||x.f&&!x.F)&&h.push(function(C,F,R){var A="C;Y"+(F+1)+";X"+(R+1)+";K";switch(C.t){case"n":A+=C.v||0,C.f&&!C.F&&(A+=";E"+wc(C.f,{r:F,c:R}));break;case"b":A+=C.v?"TRUE":"FALSE";break;case"e":A+=C.w||C.v;break;case"d":A+='"'+(C.w||C.v)+'"';break;case"s":A+='"'+C.v.replace(/"/g,"").replace(/;/g,";;")+'"'}return A}(x,y,v))}return f.join(g)+g+h.join(g)+g+"E"+g}});function Dn(C,i){var l,c,f=C.split(/[\n\r]+/),h=-1,d=-1,p=0,g=0,y=[],v=[],x=null,C={},F=[],R=[],A=0;for(0<=+i.codepage&&S(+i.codepage);p!==f.length;++p){A=0;var P,L=f[p].trim().replace(/\x1B([\x20-\x2F])([\x30-\x3F])/g,Od).replace(Ld,Md),T=L.replace(/;;/g,"\0").split(";").map(function(Re){return Re.replace(/\u0000/g,";")}),O=T[0];if(0<L.length)switch(O){case"ID":case"E":case"B":case"O":case"W":break;case"P":T[1].charAt(0)=="P"&&v.push(L.slice(3).replace(/;;/g,";"));break;case"C":for(var N=!1,I=!1,X=!1,se=!1,te=-1,ce=-1,g=1;g<T.length;++g)switch(T[g].charAt(0)){case"A":break;case"X":d=parseInt(T[g].slice(1))-1,I=!0;break;case"Y":for(h=parseInt(T[g].slice(1))-1,I||(d=0),c=y.length;c<=h;++c)y[c]=[];break;case"K":(P=T[g].slice(1)).charAt(0)==='"'?P=P.slice(1,P.length-1):P==="TRUE"?P=!0:P==="FALSE"?P=!1:isNaN(ia(P))?isNaN(Mo(P).getDate())||(P=Pr(P)):(P=ia(P),x!==null&&$a(x)&&(P=un(P))),e!==void 0&&typeof P=="string"&&(i||{}).type!="string"&&(i||{}).codepage&&(P=e.utils.decode(i.codepage,P)),N=!0;break;case"E":se=!0;var _e=Ho(T[g].slice(1),{r:h,c:d});y[h][d]=[y[h][d],_e];break;case"S":X=!0,y[h][d]=[y[h][d],"S5S"];break;case"G":break;case"R":te=parseInt(T[g].slice(1))-1;break;case"C":ce=parseInt(T[g].slice(1))-1;break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+L)}if(N&&(y[h][d]&&y[h][d].length==2?y[h][d][0]=P:y[h][d]=P,x=null),X){if(se)throw new Error("SYLK shared formula cannot have own formula");var we=-1<te&&y[te][ce];if(!we||!we[1])throw new Error("SYLK shared formula cannot find base");y[h][d][1]=Rh(we[1],{r:h-te,c:d-ce})}break;case"F":var de=0;for(g=1;g<T.length;++g)switch(T[g].charAt(0)){case"X":d=parseInt(T[g].slice(1))-1,++de;break;case"Y":for(h=parseInt(T[g].slice(1))-1,c=y.length;c<=h;++c)y[c]=[];break;case"M":A=parseInt(T[g].slice(1))/20;break;case"F":case"G":break;case"P":x=v[parseInt(T[g].slice(1))];break;case"S":case"D":case"N":break;case"W":for(l=T[g].slice(1).split(" "),c=parseInt(l[0],10);c<=parseInt(l[1],10);++c)A=parseInt(l[2],10),R[c-1]=A===0?{hidden:!0}:{wch:A},Ua(R[c-1]);break;case"C":R[d=parseInt(T[g].slice(1))-1]||(R[d]={});break;case"R":F[h=parseInt(T[g].slice(1))-1]||(F[h]={}),0<A?(F[h].hpt=A,F[h].hpx=jo(A)):A===0&&(F[h].hidden=!0);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+L)}de<1&&(x=null);break;default:if(i&&i.WTF)throw new Error("SYLK bad record "+L)}}return 0<F.length&&(C["!rows"]=F),0<R.length&&(C["!cols"]=R),[y=i&&i.sheetRows?y.slice(0,i.sheetRows):y,C]}function Nd(c,i){var l=function(d,p){switch(p.type){case"base64":return Dn(z(d),p);case"binary":return Dn(d,p);case"buffer":return Dn(H&&Buffer.isBuffer(d)?d.toString("binary"):ct(d),p);case"array":return Dn(eo(d),p)}throw new Error("Unrecognized type "+p.type)}(c,i),c=l[0],f=l[1],h=No(c,i);return Hr(f).forEach(function(d){h[d]=f[d]}),h}var Id={to_workbook:function(a,i){return Va(Vd(a,i),i)},to_sheet:Vd,from_sheet:function(a){var i=[],l=Qt(a["!ref"]),c=Array.isArray(a);En(i,"TABLE",0,1,"sheetjs"),En(i,"VECTORS",0,l.e.r-l.s.r+1,""),En(i,"TUPLES",0,l.e.c-l.s.c+1,""),En(i,"DATA",0,0,"");for(var f=l.s.r;f<=l.e.r;++f){_a(i,-1,0,"BOT");for(var h=l.s.c;h<=l.e.c;++h){var d,p=St({r:f,c:h});if(d=c?(a[f]||[])[h]:a[p])switch(d.t){case"n":var g=d.w;(g=!g&&d.v!=null?d.v:g)==null?d.f&&!d.F?_a(i,1,0,"="+d.f):_a(i,1,0,""):_a(i,0,g,"V");break;case"b":_a(i,0,d.v?1:0,d.v?"TRUE":"FALSE");break;case"s":_a(i,1,0,isNaN(d.v)?d.v:'="'+d.v+'"');break;case"d":d.w||(d.w=Us(d.z||oe[14],os(Pr(d.v)))),_a(i,0,d.w,"V");break;default:_a(i,1,0,"")}else _a(i,1,0,"")}}return _a(i,-1,0,"EOD"),i.join(`\r `)}};function Sn(a,i){for(var l=a.split(` `),c=-1,f=-1,h=0,d=[];h!==l.length;++h)if(l[h].trim()!=="BOT"){if(!(c<0)){for(var p=l[h].trim().split(","),g=p[0],y=p[1],v=l[++h]||"";1&(v.match(/["]/g)||[]).length&&h<l.length-1;)v+=` `+l[++h];switch(v=v.trim(),+g){case-1:if(v==="BOT"){d[++c]=[],f=0;continue}if(v!=="EOD")throw new Error("Unrecognized DIF special command "+v);break;case 0:v==="TRUE"?d[c][f]=!0:v==="FALSE"?d[c][f]=!1:isNaN(ia(y))?isNaN(Mo(y).getDate())?d[c][f]=y:d[c][f]=Pr(y):d[c][f]=ia(y),++f;break;case 1:v=(v=v.slice(1,v.length-1)).replace(/""/g,'"'),v&&v.match(/^=".*"$/)&&(v=v.slice(2,-1)),d[c][f++]=v!==""?v:null}if(v==="EOD")break}}else d[++c]=[],f=0;return d=i&&i.sheetRows?d.slice(0,i.sheetRows):d}function Vd(a,i){return No(function(l,c){switch(c.type){case"base64":return Sn(z(l),c);case"binary":return Sn(l,c);case"buffer":return Sn(H&&Buffer.isBuffer(l)?l.toString("binary"):ct(l),c);case"array":return Sn(eo(l),c)}throw new Error("Unrecognized type "+c.type)}(a,i),i)}function En(a,i,l,c,f){a.push(i),a.push(l+","+c),a.push('"'+f.replace(/"/g,'""')+'"')}function _a(a,i,l,c){a.push(i+","+l),a.push(i==1?'"'+c.replace(/"/g,'""')+'"':c)}var Bd,nc,Ud,zd,Gd=(Bd=["socialcalc:version:1.5","MIME-Version: 1.0","Content-Type: multipart/mixed; boundary=SocialCalcSpreadsheetControlSave"].join(` `),nc=["--SocialCalcSpreadsheetControlSave","Content-type: text/plain; charset=UTF-8"].join(` `)+` `,Ud=["# SocialCalc Spreadsheet Control Save","part:sheet"].join(` `),zd="--SocialCalcSpreadsheetControlSave--",{to_workbook:function(a,i){return Va(jd(a,i),i)},to_sheet:jd,from_sheet:function(a){return[Bd,nc,Ud,nc,function(i){if(!i||!i["!ref"])return"";for(var l,c,f=[],h=[],d=Rs(i["!ref"]),p=Array.isArray(i),g=d.s.r;g<=d.e.r;++g)for(var y=d.s.c;y<=d.e.c;++y)if(c=St({r:g,c:y}),(l=p?(i[g]||[])[y]:i[c])&&l.v!=null&&l.t!=="z"){switch(h=["cell",c,"t"],l.t){case"s":case"str":h.push(lc(l.v));break;case"n":l.f?(h[2]="vtf",h[3]="n",h[4]=l.v,h[5]=lc(l.f)):(h[2]="v",h[3]=l.v);break;case"b":h[2]="vt"+(l.f?"f":"c"),h[3]="nl",h[4]=l.v?"1":"0",h[5]=lc(l.f||(l.v?"TRUE":"FALSE"));break;case"d":var v=os(Pr(l.v));h[2]="vtc",h[3]="nd",h[4]=""+v,h[5]=l.w||Us(l.z||oe[14],v);break;case"e":continue}f.push(h.join(":"))}return f.push("sheet:c:"+(d.e.c-d.s.c+1)+":r:"+(d.e.r-d.s.r+1)+":tvf:1"),f.push("valueformat:1:text-wiki"),f.join(` `)}(a),zd].join(` `)}});function lc(a){return a.replace(/\\/g,"\\b").replace(/:/g,"\\c").replace(/\n/g,"\\n")}function jd(a,i){return No(function(l,c){for(var f,h=l.split(` `),d=-1,p=0,g=[];p!==h.length;++p){var y=h[p].trim().split(":");if(y[0]==="cell"){var v=Gr(y[1]);if(g.length<=v.r)for(d=g.length;d<=v.r;++d)g[d]||(g[d]=[]);switch(d=v.r,f=v.c,y[2]){case"t":g[d][f]=y[3].replace(/\\b/g,"\\").replace(/\\c/g,":").replace(/\\n/g,` `);break;case"v":g[d][f]=+y[3];break;case"vtf":var x=y[y.length-1];case"vtc":y[3]==="nl"?g[d][f]=!!+y[4]:g[d][f]=+y[4],y[2]=="vtf"&&(g[d][f]=[g[d][f],x])}}}return g=c&&c.sheetRows?g.slice(0,c.sheetRows):g}(a,i),i)}var cc,Tn,Uo=(cc={44:",",9:" ",59:";",124:"|"},Tn={44:3,9:2,59:1,124:0},{to_workbook:function(a,i){return Va(Yd(a,i),i)},to_sheet:Yd,from_sheet:function(a){for(var i=[],l=Qt(a["!ref"]),c=Array.isArray(a),f=l.s.r;f<=l.e.r;++f){for(var h=[],d=l.s.c;d<=l.e.c;++d){var p=St({r:f,c:d});if((p=c?(a[f]||[])[d]:a[p])&&p.v!=null){for(var g=(p.w||(ba(p),p.w)||"").slice(0,10);g.length<10;)g+=" ";h.push(g+(d===0?" ":""))}else h.push(" ")}i.push(h.join(""))}return i.join(` `)}});function Wd(a,i,l,c,f){f.raw?i[l][c]=a:a===""||(a==="TRUE"?i[l][c]=!0:a==="FALSE"?i[l][c]=!1:isNaN(ia(a))?isNaN(Mo(a).getDate())?i[l][c]=a:i[l][c]=Pr(a):i[l][c]=ia(a))}function Hd(a){for(var i={},l=!1,c=0,f=0;c<a.length;++c)(f=a.charCodeAt(c))==34?l=!l:!l&&f in cc&&(i[f]=(i[f]||0)+1);for(c in f=[],i)Object.prototype.hasOwnProperty.call(i,c)&&f.push([i[c],c]);if(!f.length)for(c in i=Tn)Object.prototype.hasOwnProperty.call(i,c)&&f.push([i[c],c]);return f.sort(function(h,d){return h[0]-d[0]||Tn[h[1]]-Tn[d[1]]}),cc[f.pop()[1]]||44}function sg(a,c){var l=c||{},c="",f=l.dense?[]:{},h={s:{c:0,r:0},e:{c:0,r:0}};a.slice(0,4)=="sep="?a.charCodeAt(5)==13&&a.charCodeAt(6)==10?(c=a.charAt(4),a=a.slice(7)):a.charCodeAt(5)==13||a.charCodeAt(5)==10?(c=a.charAt(4),a=a.slice(6)):c=Hd(a.slice(0,1024)):c=l&&l.FS?l.FS:Hd(a.slice(0,1024));var d=0,p=0,g=0,y=0,v=0,x=c.charCodeAt(0),C=!1,F=0,R=a.charCodeAt(0);a=a.replace(/\r\n/gm,` `);var A=l.dateNF!=null?(c=(c=typeof(c=l.dateNF)=="number"?oe[c]:c).replace(Qf,"(\\d+)"),new RegExp("^"+c+"$")):null;function P(){var L,T=a.slice(y,v),O={};if((T=T.charAt(0)=='"'&&T.charAt(T.length-1)=='"'?T.slice(1,-1).replace(/""/g,'"'):T).length===0?O.t="z":l.raw||T.trim().length===0?(O.t="s",O.v=T):T.charCodeAt(0)==61?T.charCodeAt(1)==34&&T.charCodeAt(T.length-1)==34?(O.t="s",O.v=T.slice(2,-1).replace(/""/g,'"')):T.length!=1?(O.t="n",O.f=T.slice(1)):(O.t="s",O.v=T):T=="TRUE"?(O.t="b",O.v=!0):T=="FALSE"?(O.t="b",O.v=!1):isNaN(g=ia(T))?!isNaN(Mo(T).getDate())||A&&T.match(A)?(O.z=l.dateNF||oe[14],L=0,A&&T.match(A)&&(T=function(N,I){var X=-1,se=-1,te=-1,ce=-1,_e=-1,we=-1;(N.match(Qf)||[]).forEach(function(Re,qe){var He=parseInt(I[qe+1],10);switch(Re.toLowerCase().charAt(0)){case"y":X=He;break;case"d":te=He;break;case"h":ce=He;break;case"s":we=He;break;case"m":0<=ce?_e=He:se=He}}),0<=we&&_e==-1&&0<=se&&(_e=se,se=-1);var de=(""+(0<=X?X:new Date().getFullYear())).slice(-4)+"-"+("00"+(1<=se?se:1)).slice(-2)+"-"+("00"+(1<=te?te:1)).slice(-2);return(de=de.length==7?"0"+de:de).length==8&&(de="20"+de),N=("00"+(0<=ce?ce:0)).slice(-2)+":"+("00"+(0<=_e?_e:0)).slice(-2)+":"+("00"+(0<=we?we:0)).slice(-2),ce==-1&&_e==-1&&we==-1?de:X==-1&&se==-1&&te==-1?N:de+"T"+N}(l.dateNF,T.match(A)||[]),L=1),l.cellDates?(O.t="d",O.v=Pr(T,L)):(O.t="n",O.v=os(Pr(T,L))),l.cellText!==!1&&(O.w=Us(O.z,O.v instanceof Date?os(O.v):O.v)),l.cellNF||delete O.z):(O.t="s",O.v=T):(!(O.t="n")!==l.cellText&&(O.w=T),O.v=g),O.t=="z"||(l.dense?(f[d]||(f[d]=[]),f[d][p]=O):f[St({c:p,r:d})]=O),y=v+1,R=a.charCodeAt(y),h.e.c<p&&(h.e.c=p),h.e.r<d&&(h.e.r=d),F!=x)return p=0,++d,l.sheetRows&&l.sheetRows<=d?1:void 0;++p}e:for(;v<a.length;++v)switch(F=a.charCodeAt(v)){case 34:R===34&&(C=!C);break;case x:case 10:case 13:if(!C&&P())break e}return 0<v-y&&P(),f["!ref"]=Ot(h),f}function ag(a,i){return!i||!i.PRN||i.FS||a.slice(0,4)=="sep="||0<=a.indexOf(" ")||0<=a.indexOf(",")||0<=a.indexOf(";")?sg(a,i):No(function(l,c){var f=c||{},h=[];if(!l||l.length===0)return h;for(var d=l.split(/[\r\n]/),p=d.length-1;0<=p&&d[p].length===0;)--p;for(var g=10,y=0,v=0;v<=p;++v)(y=d[v].indexOf(" "))==-1?y=d[v].length:y++,g=Math.max(g,y);for(v=0;v<=p;++v){h[v]=[];var x=0;for(Wd(d[v].slice(0,g).trim(),h,v,x,f),x=1;x<=(d[v].length-g)/10+1;++x)Wd(d[v].slice(g+10*(x-1),g+10*x).trim(),h,v,x,f)}return h=f.sheetRows?h.slice(0,f.sheetRows):h}(a,i),i)}function Yd(a,i){var l="",c=i.type=="string"?[0,0,0,0]:Ic(a,i);switch(i.type){case"base64":l=z(a);break;case"binary":l=a;break;case"buffer":l=i.codepage==65001?a.toString("utf8"):i.codepage&&e!==void 0?e.utils.decode(i.codepage,a):H&&Buffer.isBuffer(a)?a.toString("binary"):ct(a);break;case"array":l=eo(a);break;case"string":l=a;break;default:throw new Error("Unrecognized type "+i.type)}return c[0]==239&&c[1]==187&&c[2]==191?l=Er(l.slice(3)):i.type!="string"&&i.type!="buffer"&&i.codepage==65001?l=Er(l):i.type=="binary"&&e!==void 0&&i.codepage&&(l=e.utils.decode(i.codepage,e.utils.encode(28591,l))),l.slice(0,19)=="socialcalc:version:"?Gd.to_sheet(i.type=="string"?l:Er(l),i):ag(l,i)}var kn,fc,uc,qd,uo=(kn={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]},fc=["","","","","","","","","","+","-","*","/","^","=","<>","<=",">=","<",">","","","","","&","","","","","","",""],uc={0:{n:"BOF",f:rs},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(a,i,l){var c={s:{c:0,r:0},e:{c:0,r:0}};return i==8&&l.qpro?(c.s.c=a.read_shift(1),a.l++,c.s.r=a.read_shift(2),c.e.c=a.read_shift(1),a.l++,c.e.r=a.read_shift(2)):(c.s.c=a.read_shift(2),c.s.r=a.read_shift(2),i==12&&l.qpro&&(a.l+=2),c.e.c=a.read_shift(2),c.e.r=a.read_shift(2),i==12&&l.qpro&&(a.l+=2),c.s.c==65535&&(c.s.c=c.e.c=c.s.r=c.e.r=0)),c}},7:{n:"WINDOW1"},8:{n:"COLW1"},9:{n:"WINTWO"},10:{n:"COLW2"},11:{n:"NAME"},12:{n:"BLANK"},13:{n:"INTEGER",f:function(a,i,l){return(l=Rn(a,0,l))[1].v=a.read_shift(2,"i"),l}},14:{n:"NUMBER",f:function(a,i,l){return(l=Rn(a,0,l))[1].v=a.read_shift(8,"f"),l}},15:{n:"LABEL",f:Jd},16:{n:"FORMULA",f:function(a,i,l){var c=a.l+i;return(i=Rn(a,0,l))[1].v=a.read_shift(8,"f"),l.qpro?a.l=c:(c=a.read_shift(2),function(f,h){gs(f,0);for(var d=[],p=0,g="",y="",v="",x="";f.l<f.length;){var C=f[f.l++];switch(C){case 0:d.push(f.read_shift(8,"f"));break;case 1:y=zo(h[0].c,f.read_shift(2),!0),g=zo(h[0].r,f.read_shift(2),!1),d.push(y+g);break;case 2:var F=zo(h[0].c,f.read_shift(2),!0),R=zo(h[0].r,f.read_shift(2),!1);y=zo(h[0].c,f.read_shift(2),!0),g=zo(h[0].r,f.read_shift(2),!1),d.push(F+R+":"+y+g);break;case 3:if(f.l<f.length)return console.error("WK1 premature formula end");break;case 4:d.push("("+d.pop()+")");break;case 5:d.push(f.read_shift(2));break;case 6:for(var A="";C=f[f.l++];)A+=String.fromCharCode(C);d.push('"'+A.replace(/"/g,'""')+'"');break;case 8:d.push("-"+d.pop());break;case 23:d.push("+"+d.pop());break;case 22:d.push("NOT("+d.pop()+")");break;case 20:case 21:x=d.pop(),v=d.pop(),d.push(["AND","OR"][C-20]+"("+v+","+x+")");break;default:if(C<32&&fc[C])x=d.pop(),v=d.pop(),d.push(v+fc[C]+x);else{if(!kn[C])return C<=7?console.error("WK1 invalid opcode "+C.toString(16)):C<=24?console.error("WK1 unsupported op "+C.toString(16)):C<=30?console.error("WK1 invalid opcode "+C.toString(16)):C<=115?console.error("WK1 unsupported function opcode "+C.toString(16)):console.error("WK1 unrecognized opcode "+C.toString(16));if((p=(p=kn[C][1])==69?f[f.l++]:p)>d.length)return console.error("WK1 bad formula parse 0x"+C.toString(16)+":|"+d.join("|")+"|");R=d.slice(-p),d.length-=p,d.push(kn[C][0]+"("+R.join(",")+")")}}}d.length==1?h[1].f=""+d[0]:console.error("WK1 bad formula parse |"+d.join("|")+"|")}(a.slice(a.l,a.l+c),i),a.l+=c),i}},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:Jd},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:Zd},222:{n:"SHEETNAMELP",f:function(a,i){var l=a[a.l++];i-1<l&&(l=i-1);for(var c="";c.length<l;)c+=String.fromCharCode(a[a.l++]);return c}},65535:{n:""}},qd={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:function(a,i){var l=vi(a);return l[1].t="s",l[1].v=a.read_shift(i-4,"cstr"),l}},23:{n:"NUMBER17",f:Xd},24:{n:"NUMBER18",f:function(a,i){var l=vi(a);l[1].v=a.read_shift(2);var c=l[1].v>>1;if(1&l[1].v)switch(7&c){case 0:c=5e3*(c>>3);break;case 1:c=500*(c>>3);break;case 2:c=(c>>3)/20;break;case 3:c=(c>>3)/200;break;case 4:c=(c>>3)/2e3;break;case 5:c=(c>>3)/2e4;break;case 6:c=(c>>3)/16;break;case 7:c=(c>>3)/64}return l[1].v=c,l}},25:{n:"FORMULA19",f:function(a,i){var l=Xd(a);return a.l+=i-14,l}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(a,i){for(var l={},c=a.l+i;a.l<c;){var f=a.read_shift(2);if(f==14e3){for(l[f]=[0,""],l[f][0]=a.read_shift(2);a[a.l];)l[f][1]+=String.fromCharCode(a[a.l]),a.l++;a.l++}}return l}},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:function(c,i){var l=vi(c),c=c.read_shift(4);return l[1].v=c>>6,l}},38:{n:"??"},39:{n:"NUMBER27",f:Qd},40:{n:"FORMULA28",f:function(a,i){var l=Qd(a);return a.l+=i-10,l}},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:Zd},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:function(a,i,l){if(l.qpro&&!(i<21))return l=a.read_shift(1),a.l+=17,a.l+=1,a.l+=2,[l,a.read_shift(i-21,"cstr")]}},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:""}},{sheet_to_wk1:function(a,i){var l=i||{};if(0<=+l.codepage&&S(+l.codepage),l.type=="string")throw new Error("Cannot write WK1 to JS string");var c=Is(),f=Qt(a["!ref"]),h=Array.isArray(a),d=[];We(c,0,(i=1030,(l=ge(2)).write_shift(2,i),l)),We(c,6,(i=f,(l=ge(8)).write_shift(2,i.s.c),l.write_shift(2,i.s.r),l.write_shift(2,i.e.c),l.write_shift(2,i.e.r),l));for(var p,g,y,v,x=Math.min(f.e.r,8191),C=f.s.r;C<=x;++C)for(var F=qr(C),R=f.s.c;R<=f.e.c;++R){C===f.s.r&&(d[R]=Ir(R));var A=d[R]+F,A=h?(a[C]||[])[R]:a[A];A&&A.t!="z"&&(A.t=="n"?(0|A.v)==A.v&&-32768<=A.v&&A.v<=32767?We(c,13,(p=C,g=R,y=A.v,v=void 0,(v=ge(7)).write_shift(1,255),v.write_shift(2,g),v.write_shift(2,p),v.write_shift(2,y,"i"),v)):We(c,14,(g=C,p=R,y=A.v,v=void 0,(v=ge(13)).write_shift(1,255),v.write_shift(2,p),v.write_shift(2,g),v.write_shift(8,y,"f"),v)):We(c,15,function(P,L,T){var O=ge(7+T.length);O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,P),O.write_shift(1,39);for(var N=0;N<O.length;++N){var I=T.charCodeAt(N);O.write_shift(1,128<=I?95:I)}return O.write_shift(1,0),O}(C,R,ba(A).slice(0,239))))}return We(c,1),c.end()},book_to_wk3:function(a,i){if(0<=+(i=i||{}).codepage&&S(+i.codepage),i.type=="string")throw new Error("Cannot write WK3 to JS string");var l=Is();We(l,0,function(A){var P=ge(26);P.write_shift(2,4096),P.write_shift(2,4),P.write_shift(4,0);for(var L=0,T=0,O=0,N=0;N<A.SheetNames.length;++N){var I=A.SheetNames[N],I=A.Sheets[I];I&&I["!ref"]&&(++O,I=Rs(I["!ref"]),L<I.e.r&&(L=I.e.r),T<I.e.c&&(T=I.e.c))}return 8191<L&&(L=8191),P.write_shift(2,L),P.write_shift(1,O),P.write_shift(1,T),P.write_shift(2,0),P.write_shift(2,0),P.write_shift(1,1),P.write_shift(1,2),P.write_shift(4,0),P.write_shift(4,0),P}(a));for(var c=0,f=0;c<a.SheetNames.length;++c)(a.Sheets[a.SheetNames[c]]||{})["!ref"]&&We(l,27,function(A,P){var L=ge(5+A.length);L.write_shift(2,14e3),L.write_shift(2,P);for(var T=0;T<A.length;++T){var O=A.charCodeAt(T);L[L.l++]=127<O?95:O}return L[L.l++]=0,L}(a.SheetNames[c],f++));for(var h=0,c=0;c<a.SheetNames.length;++c){var d=a.Sheets[a.SheetNames[c]];if(d&&d["!ref"]){for(var p=Qt(d["!ref"]),g=Array.isArray(d),y=[],v=Math.min(p.e.r,8191),x=p.s.r;x<=v;++x)for(var C=qr(x),F=p.s.c;F<=p.e.c;++F){x===p.s.r&&(y[F]=Ir(F));var R=y[F]+C,R=g?(d[x]||[])[F]:d[R];R&&R.t!="z"&&(R.t=="n"?We(l,23,function(X,te,se,O){var N=ge(14);if(N.write_shift(2,X),N.write_shift(1,se),N.write_shift(1,te),O==0)return N.write_shift(4,0),N.write_shift(4,0),N.write_shift(2,65535),N;var I=0,X=0,se=0,te=0;return O<0&&(I=1,O=-O),X=0|Math.log2(O),O/=Math.pow(2,X-31),!(2147483648&(te=O>>>0))&&(++X,te=(O/=2)>>>0),O-=te,te|=2147483648,te>>>=0,O*=Math.pow(2,32),se=O>>>0,N.write_shift(4,se),N.write_shift(4,te),X+=16383+(I?32768:0),N.write_shift(2,X),N}(x,F,h,R.v)):We(l,22,function(P,L,T,O){var N=ge(6+O.length);N.write_shift(2,P),N.write_shift(1,T),N.write_shift(1,L),N.write_shift(1,39);for(var I=0;I<O.length;++I){var X=O.charCodeAt(I);N.write_shift(1,128<=X?95:X)}return N.write_shift(1,0),N}(x,F,h,ba(R).slice(0,239))))}++h}}return We(l,1),l.end()},to_workbook:function(a,i){switch(i.type){case"base64":return dc(ve(z(a)),i);case"binary":return dc(ve(a),i);case"buffer":case"array":return dc(a,i)}throw"Unsupported type "+i.type}});function Kd(a,i,l){if(a){gs(a,a.l||0);for(var c=l.Enum||uc;a.l<a.length;){var f=a.read_shift(2),h=c[f]||c[65535],p=a.read_shift(2),d=a.l+p,p=h.f&&h.f(a,p,l);if(a.l=d,i(p,h,f))return}}}function dc(a,i){if(!a)return a;var l=i||{},c=l.dense?[]:{},f="Sheet1",h="",d=0,p={},g=[],y=[],v={s:{r:0,c:0},e:{r:0,c:0}},x=l.sheetRows||0;if(a[2]==0&&(a[3]==8||a[3]==9)&&16<=a.length&&a[14]==5&&a[15]===108)throw new Error("Unsupported Works 3 for Mac file");if(a[2]==2)l.Enum=uc,Kd(a,function(A,P,L){switch(L){case 0:4096<=(l.vers=A)&&(l.qpro=!0);break;case 6:v=A;break;case 204:A&&(h=A);break;case 222:h=A;break;case 15:case 51:l.qpro||(A[1].v=A[1].v.slice(1));case 13:case 14:case 16:L==14&&(112&A[2])==112&&1<(15&A[2])&&(15&A[2])<15&&(A[1].z=l.dateNF||oe[14],l.cellDates&&(A[1].t="d",A[1].v=un(A[1].v))),l.qpro&&A[3]>d&&(c["!ref"]=Ot(v),p[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=A[3],f=h||"Sheet"+(d+1),h="");var T=l.dense?(c[A[0].r]||[])[A[0].c]:c[St(A[0])];if(T){T.t=A[1].t,T.v=A[1].v,A[1].z!=null&&(T.z=A[1].z),A[1].f!=null&&(T.f=A[1].f);break}l.dense?(c[A[0].r]||(c[A[0].r]=[]),c[A[0].r][A[0].c]=A[1]):c[St(A[0])]=A[1]}},l);else{if(a[2]!=26&&a[2]!=14)throw new Error("Unrecognized LOTUS BOF "+a[2]);l.Enum=qd,a[2]==14&&(l.qpro=!0,a.l=0),Kd(a,function(A,P,L){switch(L){case 204:f=A;break;case 22:A[1].v=A[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(A[3]>d&&(c["!ref"]=Ot(v),p[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=A[3],f="Sheet"+(d+1)),0<x&&A[0].r>=x)break;l.dense?(c[A[0].r]||(c[A[0].r]=[]),c[A[0].r][A[0].c]=A[1]):c[St(A[0])]=A[1],v.e.c<A[0].c&&(v.e.c=A[0].c),v.e.r<A[0].r&&(v.e.r=A[0].r);break;case 27:A[14e3]&&(y[A[14e3][0]]=A[14e3][1]);break;case 1537:y[A[0]]=A[1],A[0]==d&&(f=A[1])}},l)}if(c["!ref"]=Ot(v),p[h||f]=c,g.push(h||f),!y.length)return{SheetNames:g,Sheets:p};for(var C={},F=[],R=0;R<y.length;++R)p[g[R]]?(F.push(y[R]||g[R]),C[y[R]]=p[y[R]]||p[g[R]]):(F.push(y[R]),C[y[R]]={"!ref":"A1"});return{SheetNames:F,Sheets:C}}function Rn(a,i,l){var c=[{c:0,r:0},{t:"n",v:0},0,0];return l.qpro&&l.vers!=20768?(c[0].c=a.read_shift(1),c[3]=a.read_shift(1),c[0].r=a.read_shift(2),a.l+=2):(c[2]=a.read_shift(1),c[0].c=a.read_shift(2),c[0].r=a.read_shift(2)),c}function Jd(a,f,l){var c=a.l+f,f=Rn(a,0,l);return f[1].t="s",l.vers!=20768?(l.qpro&&a.l++,f[1].v=a.read_shift(c-a.l,"cstr"),f):(a.l++,c=a.read_shift(1),f[1].v=a.read_shift(c,"utf8"),f)}function zo(a,i,l){var c=32768&i;return(c?"":"$")+(l?Ir:qr)(i=(c?a:0)+(8192<=(i&=-32769)?i-16384:i))}function vi(a){var i=[{c:0,r:0},{t:"n",v:0},0];return i[0].r=a.read_shift(2),i[3]=a[a.l++],i[0].c=a[a.l++],i}function Xd(h,i){var l=vi(h),c=h.read_shift(4),f=h.read_shift(4);if((d=h.read_shift(2))==65535)return c===0&&f===3221225472?(l[1].t="e",l[1].v=15):c===0&&f===3489660928?(l[1].t="e",l[1].v=42):l[1].v=0,l;var h=32768&d,d=(32767&d)-16446;return l[1].v=(1-2*h)*(f*Math.pow(2,32+d)+c*Math.pow(2,d)),l}function Qd(c,i){var l=vi(c),c=c.read_shift(8,"f");return l[1].v=c,l}function Zd(a,i){return a[a.l+i-1]==0?a.read_shift(i,"cstr"):""}var $d,eh,th,rh,og=($d=ci("t"),eh=ci("rPr"),th=/<(?:\w+:)?r>/g,rh=/<\/(?:\w+:)?r>/,function(a){return a.replace(th,"").split(rh).map(ig).filter(function(i){return i.v})});function ig(a){var i=a.match($d);return i?(i={t:"s",v:pr(i[1])},a=a.match(eh),a&&(i.s=function(l){var c={},f=l.match(_s),h=0,d=!1;if(f)for(;h!=f.length;++h){var p=Dt(f[h]);switch(p[0].replace(/\w*:/g,"")){case"<condense":case"<extend":break;case"<shadow":if(!p.val)break;case"<shadow>":case"<shadow/>":c.shadow=1;break;case"</shadow>":break;case"<charset":if(p.val=="1")break;c.cp=_[parseInt(p.val,10)];break;case"<outline":if(!p.val)break;case"<outline>":case"<outline/>":c.outline=1;break;case"</outline>":break;case"<rFont":c.name=p.val;break;case"<sz":c.sz=p.val;break;case"<strike":if(!p.val)break;case"<strike>":case"<strike/>":c.strike=1;break;case"</strike>":break;case"<u":if(!p.val)break;switch(p.val){case"double":c.uval="double";break;case"singleAccounting":c.uval="single-accounting";break;case"doubleAccounting":c.uval="double-accounting"}case"<u>":case"<u/>":c.u=1;break;case"</u>":break;case"<b":if(p.val=="0")break;case"<b>":case"<b/>":c.b=1;break;case"</b>":break;case"<i":if(p.val=="0")break;case"<i>":case"<i/>":c.i=1;break;case"</i>":break;case"<color":p.rgb&&(c.color=p.rgb.slice(2,8));break;case"<color>":case"<color/>":case"</color>":break;case"<family":c.family=p.val;break;case"<family>":case"<family/>":case"</family>":break;case"<vertAlign":c.valign=p.val;break;case"<vertAlign>":case"<vertAlign/>":case"</vertAlign>":case"<scheme":break;case"<scheme>":case"<scheme/>":case"</scheme>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;default:if(p[0].charCodeAt(1)!==47&&!d)throw new Error("Unrecognized rich format "+p[0])}}return c}(a[1])),i):{t:"s",v:""}}var sh,ng=(sh=/(\r\n|\n)/g,function(a){return a.map(lg).join("")});function lg(a){var i,l,c,f=[[],a.v,[]];return a.v?(a.s&&(i=a.s,l=f[0],c=f[2],a=[],i.u&&a.push("text-decoration: underline;"),i.uval&&a.push("text-underline-style:"+i.uval+";"),i.sz&&a.push("font-size:"+i.sz+"pt;"),i.outline&&a.push("text-effect: outline;"),i.shadow&&a.push("text-shadow: auto;"),l.push('<span style="'+a.join("")+'">'),i.b&&(l.push("<b>"),c.push("</b>")),i.i&&(l.push("<i>"),c.push("</i>")),i.strike&&(l.push("<s>"),c.push("</s>")),(a=i.valign||"")=="superscript"||a=="super"?a="sup":a=="subscript"&&(a="sub"),a!=""&&(l.push("<"+a+">"),c.push("</"+a+">")),c.push("</span>")),f[0].join("")+f[1].replace(sh,"<br/>")+f[2].join("")):""}var cg=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,fg=/<(?:\w+:)?r>/,ug=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function hc(a,c){var l=!c||c.cellHTML,c={};return a?(a.match(/^\s*<(?:\w+:)?t[^>]*>/)?(c.t=pr(Er(a.slice(a.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),c.r=Er(a),l&&(c.h=Ll(c.t))):a.match(fg)&&(c.r=Er(a),c.t=pr(Er((a.replace(ug,"").match(cg)||[]).join("").replace(_s,""))),l&&(c.h=ng(og(c.r)))),c):{t:""}}var dg=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,hg=/<(?:\w+:)?(?:si|sstItem)>/g,pg=/<\/(?:\w+:)?(?:si|sstItem)>/,mg=/^\s|\s$|[\t\n\r]/;function ah(a,i){if(!i.bookSST)return"";var l=[Xr];l[l.length]=je("sst",null,{xmlns:to[0],count:a.Count,uniqueCount:a.Unique});for(var c,f,h=0;h!=a.length;++h)a[h]!=null&&(f="<si>",(c=a[h]).r?f+=c.r:(f+="<t",c.t||(c.t=""),c.t.match(mg)&&(f+=' xml:space="preserve"'),f+=">"+Fr(c.t)+"</t>"),f+="</si>",l[l.length]=f);return 2<l.length&&(l[l.length]="</sst>",l[1]=l[1].replace("/>",">")),l.join("")}var gg=function(a,i){var l=!1;return i==null&&(l=!0,i=ge(15+4*a.t.length)),i.write_shift(1,0),hs(a.t,i),l?i.slice(0,i.l):i};function bg(a){var i,l,c=Is();Ae(c,159,(i=a,(l=l||ge(8)).write_shift(4,i.Count),l.write_shift(4,i.Unique),l));for(var f=0;f<a.length;++f)Ae(c,19,gg(a[f]));return Ae(c,160),c.end()}function oh(a){if(e!==void 0)return e.utils.encode(m,a);for(var i=[],l=a.split(""),c=0;c<l.length;++c)i[c]=l[c].charCodeAt(0);return i}function ka(a,i){var l={};return l.Major=a.read_shift(2),l.Minor=a.read_shift(2),4<=i&&(a.l+=i-4),l}function yg(a){var i=[];a.l+=4;for(var l=a.read_shift(4);0<l--;)i.push(function(c){for(var h=c.read_shift(4),f=c.l+h-4,h={},d=c.read_shift(4),p=[];0<d--;)p.push({t:c.read_shift(4),v:c.read_shift(0,"lpp4")});if(h.name=c.read_shift(0,"lpp4"),h.comps=p,c.l!=f)throw new Error("Bad DataSpaceMapEntry: "+c.l+" != "+f);return h}(a));return i}function _g(a){var i,l,l=(l={},(i=a).read_shift(4),i.l+=4,l.id=i.read_shift(0,"lpp4"),l.name=i.read_shift(0,"lpp4"),l.R=ka(i,4),l.U=ka(i,4),l.W=ka(i,4),l);if(l.ename=a.read_shift(0,"8lpp4"),l.blksz=a.read_shift(4),l.cmode=a.read_shift(4),a.read_shift(4)!=4)throw new Error("Bad !Primary record");return l}function ih(a,l){var l=a.l+l,c={};c.Flags=63&a.read_shift(4),a.l+=4,c.AlgID=a.read_shift(4);var f=!1;switch(c.AlgID){case 26126:case 26127:case 26128:f=c.Flags==36;break;case 26625:f=c.Flags==4;break;case 0:f=c.Flags==16||c.Flags==4||c.Flags==36;break;default:throw"Unrecognized encryption algorithm: "+c.AlgID}if(!f)throw new Error("Encryption Flags/AlgID mismatch");return c.AlgIDHash=a.read_shift(4),c.KeySize=a.read_shift(4),c.ProviderType=a.read_shift(4),a.l+=8,c.CSPName=a.read_shift(l-a.l>>1,"utf16le"),a.l=l,c}function nh(a,c){var l={},c=a.l+c;return a.l+=4,l.Salt=a.slice(a.l,a.l+16),a.l+=16,l.Verifier=a.slice(a.l,a.l+16),a.l+=16,a.read_shift(4),l.VerifierHash=a.slice(a.l,c),a.l=c,l}function vg(a){var i=ka(a);switch(i.Minor){case 2:return[i.Minor,function(f){if((63&f.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var c=f.read_shift(4),c=ih(f,c),f=nh(f,f.length-f.l);return{t:"Std",h:c,v:f}}(a)];case 3:return[i.Minor,function(){throw new Error("File is password-protected: ECMA-376 Extensible")}()];case 4:return[i.Minor,function(f){var c=["saltSize","blockSize","keyBits","hashSize","cipherAlgorithm","cipherChaining","hashAlgorithm","saltValue"];f.l+=4;var f=f.read_shift(f.length-f.l,"utf8"),h={};return f.replace(_s,function(d){var p=Dt(d);switch(ma(p[0])){case"<?xml":break;case"<encryption":case"</encryption>":break;case"<keyData":c.forEach(function(g){h[g]=p[g]});break;case"<dataIntegrity":h.encryptedHmacKey=p.encryptedHmacKey,h.encryptedHmacValue=p.encryptedHmacValue;break;case"<keyEncryptors>":case"<keyEncryptors":h.encs=[];break;case"</keyEncryptors>":break;case"<keyEncryptor":h.uri=p.uri;break;case"</keyEncryptor>":break;case"<encryptedKey":h.encs.push(p);break;default:throw p[0]}}),h}(a)]}throw new Error("ECMA-376 Encrypted file unrecognized Version: "+i.Minor)}function pc(a){var i,l=0,c=oh(a),f=c.length+1,h=G(f);for(h[0]=c.length,i=1;i!=f;++i)h[i]=c[i-1];for(i=f-1;0<=i;--i)l=((16384&l?1:0)|l<<1&32767)^h[i];return 52811^l}var mc,lh,ch,fh=(mc=[187,255,255,186,255,255,185,128,0,190,15,0,191,15,0],lh=[57840,7439,52380,33984,4364,3600,61902,12606,6258,57657,54287,34041,10252,43370,20163],ch=[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],function(a){for(var i,l,c=oh(a),f=function(g){for(var y=lh[g.length-1],v=104,x=g.length-1;0<=x;--x)for(var C=g[x],F=0;F!=7;++F)64&C&&(y^=ch[v]),C*=2,--v;return y}(c),h=c.length,d=G(16),p=0;p!=16;++p)d[p]=0;for((1&h)==1&&(i=f>>8,d[h]=Go(mc[0],i),--h,i=255&f,a=c[c.length-1],d[h]=Go(a,i));0<h;)i=f>>8,d[--h]=Go(c[h],i),i=255&f,d[--h]=Go(c[h],i);for(l=(h=15)-c.length;0<l;)i=f>>8,d[h]=Go(mc[l],i),--l,i=255&f,d[--h]=Go(c[h],i),--h,--l;return d});function Go(a,i){return 255&((i=a^i)/2|128*i)}var wg=function(a){var i=0,l=fh(a);return function(c){return c=function(f,h,d,p,g){var y,v;for(g=g||h,p=p||fh(f),y=0;y!=h.length;++y)v=h[y],v=255&((v^=p[d])>>5|v<<3),g[y]=v,++d;return[g,d,p]}("",c,i,l),i=c[1],c[0]}};function xg(a,i,l){return l=l||{},l.Info=a.read_shift(2),a.l-=2,l.Info===1?l.Data=function(c){var f={},h=f.EncryptionVersionInfo=ka(c,4);if(h.Major!=1||h.Minor!=1)throw"unrecognized version code "+h.Major+" : "+h.Minor;return f.Salt=c.read_shift(16),f.EncryptedVerifier=c.read_shift(16),f.EncryptedVerifierHash=c.read_shift(16),f}(a):l.Data=function(c,f){var h={},d=h.EncryptionVersionInfo=ka(c,4);if(f-=4,d.Minor!=2)throw new Error("unrecognized minor version code: "+d.Minor);if(4<d.Major||d.Major<2)throw new Error("unrecognized major version code: "+d.Major);return h.Flags=c.read_shift(4),f-=4,d=c.read_shift(4),f-=4,h.EncryptionHeader=ih(c,d),f-=d,h.EncryptionVerifier=nh(c,f),h}(a,i),l}var uh={to_workbook:function(a,i){return Va(dh(a,i),i)},to_sheet:dh,from_sheet:function(a){for(var i=["{\\rtf1\\ansi"],l=Qt(a["!ref"]),c=Array.isArray(a),f=l.s.r;f<=l.e.r;++f){i.push("\\trowd\\trautofit1");for(var h=l.s.c;h<=l.e.c;++h)i.push("\\cellx"+(h+1));for(i.push("\\pard\\intbl"),h=l.s.c;h<=l.e.c;++h){var d=St({r:f,c:h});(d=c?(a[f]||[])[h]:a[d])&&(d.v!=null||d.f&&!d.F)&&(i.push(" "+(d.w||(ba(d),d.w))),i.push("\\cell"))}i.push("\\pard\\intbl\\row")}return i.join("")+"}"}};function dh(a,i){switch(i.type){case"base64":return Ln(z(a),i);case"binary":return Ln(a,i);case"buffer":return Ln(H&&Buffer.isBuffer(a)?a.toString("binary"):ct(a),i);case"array":return Ln(eo(a),i)}throw new Error("Unrecognized type "+i.type)}function Ln(c,i){var l=(i||{}).dense?[]:{},c=c.match(/\\trowd.*?\\row\b/g);if(!c.length)throw new Error("RTF missing table");var f={s:{c:0,r:0},e:{c:0,r:c.length-1}};return c.forEach(function(h,d){Array.isArray(l)&&(l[d]=[]);for(var p,g=/\\\w+\b/g,y=0,v=-1;p=g.exec(h);)p[0]==="\\cell"&&(++v,(p=(p=h.slice(y,g.lastIndex-p[0].length))[0]==" "?p.slice(1):p).length&&(p={v:p,t:"s"},Array.isArray(l)?l[d][v]=p:l[St({r:d,c:v})]=p)),y=g.lastIndex;v>f.e.c&&(f.e.c=v)}),l["!ref"]=Ot(f),l}function wi(a){for(var i=0,l=1;i!=3;++i)l=256*l+(255<a[i]?255:a[i]<0?0:a[i]);return l.toString(16).toUpperCase().slice(1)}function Mn(a,i){return i===0?a:(a=function(v){var c=v[0]/255,f=v[1]/255,h=v[2]/255,d=Math.max(c,f,h),p=Math.min(c,f,h),g=d-p;if(g==0)return[0,0,c];var y=0,v=0,v=g/(1<(p=d+p)?2-p:p);switch(d){case c:y=((f-h)/g+6)%6;break;case f:y=(h-c)/g+2;break;case h:y=(c-f)/g+4}return[y/6,v,p/2]}((a=(a=a).slice(a[0]==="#"?1:0).slice(0,6),[parseInt(a.slice(0,2),16),parseInt(a.slice(2,4),16),parseInt(a.slice(4,6),16)])),a[2]=i<0?a[2]*(1+i):1-(1-a[2])*(1-i),wi(function(d){var c,f=d[0],h=d[1],d=d[2],p=2*h*(d<.5?d:1-d),g=[d=d-p/2,d,d],y=6*f;if(h!==0)switch(0|y){case 0:case 6:c=p*y,g[0]+=p,g[1]+=c;break;case 1:c=p*(2-y),g[0]+=c,g[1]+=p;break;case 2:c=p*(y-2),g[1]+=p,g[2]+=c;break;case 3:c=p*(4-y),g[1]+=c,g[2]+=p;break;case 4:c=p*(y-4),g[2]+=p,g[0]+=c;break;case 5:c=p*(6-y),g[2]+=c,g[0]+=p}for(var v=0;v!=3;++v)g[v]=Math.round(255*g[v]);return g}(a)))}var hh=6,Cg=15,Fg=1,Fs=hh;function xi(a){return Math.floor((a+Math.round(128/Fs)/256)*Fs)}function Ci(a){return Math.floor((a-5)/Fs*100+.5)/100}function On(a){return Math.round((a*Fs+5)/Fs*256)/256}function gc(a){return On(Ci(xi(a)))}function bc(a){var i=Math.abs(a-gc(a)),l=Fs;if(.005<i)for(Fs=Fg;Fs<Cg;++Fs)Math.abs(a-gc(a))<=i&&(i=Math.abs(a-gc(a)),l=Fs);Fs=l}function Ua(a){a.width?(a.wpx=xi(a.width),a.wch=Ci(a.wpx),a.MDW=Fs):a.wpx?(a.wch=Ci(a.wpx),a.width=On(a.wch),a.MDW=Fs):typeof a.wch=="number"&&(a.width=On(a.wch),a.wpx=xi(a.width),a.MDW=Fs),a.customWidth&&delete a.customWidth}var ph=96;function Fi(a){return 96*a/ph}function jo(a){return a*ph/96}var Ag={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"},Pn=["numFmtId","fillId","fontId","borderId","xfId"],Nn=["applyAlignment","applyBorder","applyFill","applyFont","applyNumberFormat","applyProtection","pivotButton","quotePrefix"],mh,gh,bh,yh,_h,Ai,Dg=(mh=/<(?:\w+:)?numFmts([^>]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,gh=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,bh=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,yh=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,_h=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/,function(a,i,l){var c,f,h,d,p,g={};return a&&((c=(a=a.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"")).match(mh))&&function(y,v,x){v.NumberFmt=[];for(var C=Hr(oe),F=0;F<C.length;++F)v.NumberFmt[C[F]]=oe[C[F]];var R=y[0].match(_s);if(R)for(F=0;F<R.length;++F){var A=Dt(R[F]);switch(ma(A[0])){case"<numFmts":case"</numFmts>":case"<numFmts/>":case"<numFmts>":break;case"<numFmt":var P=pr(Er(A.formatCode)),L=parseInt(A.numFmtId,10);if(v.NumberFmt[L]=P,0<L){if(392<L){for(L=392;60<L&&v.NumberFmt[L]!=null;--L);v.NumberFmt[L]=P}pa(P,L)}break;case"</numFmt>":break;default:if(x.WTF)throw new Error("unrecognized "+A[0]+" in numFmts")}}}(c,g,l),(c=a.match(yh))&&function(y,v,x,C){v.Fonts=[];var F={},R=!1;(y[0].match(_s)||[]).forEach(function(A){var P,L=Dt(A);switch(ma(L[0])){case"<fonts":case"<fonts>":case"</fonts>":break;case"<font":case"<font>":break;case"</font>":case"<font/>":v.Fonts.push(F),F={};break;case"<name":L.val&&(F.name=Er(L.val));break;case"<name/>":case"</name>":break;case"<b":F.bold=L.val?Nr(L.val):1;break;case"<b/>":F.bold=1;break;case"<i":F.italic=L.val?Nr(L.val):1;break;case"<i/>":F.italic=1;break;case"<u":switch(L.val){case"none":F.underline=0;break;case"single":F.underline=1;break;case"double":F.underline=2;break;case"singleAccounting":F.underline=33;break;case"doubleAccounting":F.underline=34}break;case"<u/>":F.underline=1;break;case"<strike":F.strike=L.val?Nr(L.val):1;break;case"<strike/>":F.strike=1;break;case"<outline":F.outline=L.val?Nr(L.val):1;break;case"<outline/>":F.outline=1;break;case"<shadow":F.shadow=L.val?Nr(L.val):1;break;case"<shadow/>":F.shadow=1;break;case"<condense":F.condense=L.val?Nr(L.val):1;break;case"<condense/>":F.condense=1;break;case"<extend":F.extend=L.val?Nr(L.val):1;break;case"<extend/>":F.extend=1;break;case"<sz":L.val&&(F.sz=+L.val);break;case"<sz/>":case"</sz>":break;case"<vertAlign":L.val&&(F.vertAlign=L.val);break;case"<vertAlign/>":case"</vertAlign>":break;case"<family":L.val&&(F.family=parseInt(L.val,10));break;case"<family/>":case"</family>":break;case"<scheme":L.val&&(F.scheme=L.val);break;case"<scheme/>":case"</scheme>":break;case"<charset":if(L.val=="1")break;L.codepage=_[parseInt(L.val,10)];break;case"<color":F.color||(F.color={}),L.auto&&(F.color.auto=Nr(L.auto)),L.rgb?F.color.rgb=L.rgb.slice(-6):L.indexed?(F.color.index=parseInt(L.indexed,10),P=mi[F.color.index],P=(P=F.color.index==81?mi[1]:P)||mi[1],F.color.rgb=P[0].toString(16)+P[1].toString(16)+P[2].toString(16)):L.theme&&(F.color.theme=parseInt(L.theme,10),L.tint&&(F.color.tint=parseFloat(L.tint)),L.theme&&x.themeElements&&x.themeElements.clrScheme&&(F.color.rgb=Mn(x.themeElements.clrScheme[F.color.theme].rgb,F.color.tint||0)));break;case"<color/>":case"</color>":break;case"<AlternateContent":R=!0;break;case"</AlternateContent>":R=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":R=!0;break;case"</ext>":R=!1;break;default:if(C&&C.WTF&&!R)throw new Error("unrecognized "+L[0]+" in fonts")}})}(c,g,i,l),(c=a.match(bh))&&function(y,v,x){v.Fills=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(R){var A=Dt(R);switch(ma(A[0])){case"<fills":case"<fills>":case"</fills>":break;case"<fill>":case"<fill":case"<fill/>":C={},v.Fills.push(C);break;case"</fill>":case"<gradientFill>":break;case"<gradientFill":case"</gradientFill>":v.Fills.push(C),C={};break;case"<patternFill":case"<patternFill>":A.patternType&&(C.patternType=A.patternType);break;case"<patternFill/>":case"</patternFill>":break;case"<bgColor":C.bgColor||(C.bgColor={}),A.indexed&&(C.bgColor.indexed=parseInt(A.indexed,10)),A.theme&&(C.bgColor.theme=parseInt(A.theme,10)),A.tint&&(C.bgColor.tint=parseFloat(A.tint)),A.rgb&&(C.bgColor.rgb=A.rgb.slice(-6));break;case"<bgColor/>":case"</bgColor>":break;case"<fgColor":C.fgColor||(C.fgColor={}),A.theme&&(C.fgColor.theme=parseInt(A.theme,10)),A.tint&&(C.fgColor.tint=parseFloat(A.tint)),A.rgb!=null&&(C.fgColor.rgb=A.rgb.slice(-6));break;case"<fgColor/>":case"</fgColor>":break;case"<stop":case"<stop/>":case"</stop>":break;case"<color":case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":F=!0;break;case"</ext>":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+A[0]+" in fills")}})}(c,g,l),(c=a.match(_h))&&function(y,v,x){v.Borders=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(R){var A=Dt(R);switch(ma(A[0])){case"<borders":case"<borders>":case"</borders>":break;case"<border":case"<border>":case"<border/>":C={},A.diagonalUp&&(C.diagonalUp=Nr(A.diagonalUp)),A.diagonalDown&&(C.diagonalDown=Nr(A.diagonalDown)),v.Borders.push(C);break;case"</border>":case"<left/>":break;case"<left":case"<left>":case"</left>":case"<right/>":break;case"<right":case"<right>":case"</right>":case"<top/>":break;case"<top":case"<top>":case"</top>":case"<bottom/>":break;case"<bottom":case"<bottom>":case"</bottom>":break;case"<diagonal":case"<diagonal>":case"<diagonal/>":case"</diagonal>":break;case"<horizontal":case"<horizontal>":case"<horizontal/>":case"</horizontal>":break;case"<vertical":case"<vertical>":case"<vertical/>":case"</vertical>":break;case"<start":case"<start>":case"<start/>":case"</start>":break;case"<end":case"<end>":case"<end/>":case"</end>":break;case"<color":case"<color>":break;case"<color/>":case"</color>":break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":F=!0;break;case"</ext>":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+A[0]+" in borders")}})}(c,g,l),(c=a.match(gh))&&(c=c,h=l,p=!((f=g).CellXf=[]),(c[0].match(_s)||[]).forEach(function(y){var v=Dt(y),x=0;switch(ma(v[0])){case"<cellXfs":case"<cellXfs>":case"<cellXfs/>":case"</cellXfs>":break;case"<xf":case"<xf/>":for(delete(d=v)[0],x=0;x<Pn.length;++x)d[Pn[x]]&&(d[Pn[x]]=parseInt(d[Pn[x]],10));for(x=0;x<Nn.length;++x)d[Nn[x]]&&(d[Nn[x]]=Nr(d[Nn[x]]));if(f.NumberFmt&&392<d.numFmtId){for(x=392;60<x;--x)if(f.NumberFmt[d.numFmtId]==f.NumberFmt[x]){d.numFmtId=x;break}}f.CellXf.push(d);break;case"</xf>":break;case"<alignment":case"<alignment/>":var C={};v.vertical&&(C.vertical=v.vertical),v.horizontal&&(C.horizontal=v.horizontal),v.textRotation!=null&&(C.textRotation=v.textRotation),v.indent&&(C.indent=v.indent),v.wrapText&&(C.wrapText=Nr(v.wrapText)),d.alignment=C;break;case"</alignment>":case"<protection":break;case"</protection>":case"<protection/>":break;case"<AlternateContent":p=!0;break;case"</AlternateContent>":p=!1;break;case"<extLst":case"<extLst>":case"</extLst>":break;case"<ext":p=!0;break;case"</ext>":p=!1;break;default:if(h&&h.WTF&&!p)throw new Error("unrecognized "+v[0]+" in cellXfs")}}))),g});function vh(a,i){if(Ai!==void 0)return Ai.toXml();var l,c,f,h,d=[Xr,je("styleSheet",null,{xmlns:to[0],"xmlns:vt":is.vt})];return a.SSF&&(c=a.SSF,f=["<numFmts>"],[[5,8],[23,26],[41,44],[50,392]].forEach(function(p){for(var g=p[0];g<=p[1];++g)c[g]!=null&&(f[f.length]=je("numFmt",null,{numFmtId:g,formatCode:Fr(c[g])}))}),(l=f.length===1?"":(f[f.length]="</numFmts>",f[0]=je("numFmts",null,{count:f.length-2}).replace("/>",">"),f.join("")))!=null)&&(d[d.length]=l),d[d.length]='<fonts count="1"><font><sz val="12"/><color theme="1"/><name val="Calibri"/><family val="2"/><scheme val="minor"/></font></fonts>',d[d.length]='<fills count="2"><fill><patternFill patternType="none"/></fill><fill><patternFill patternType="gray125"/></fill></fills>',d[d.length]='<borders count="1"><border><left/><right/><top/><bottom/><diagonal/></border></borders>',d[d.length]='<cellStyleXfs count="1"><xf numFmtId="0" fontId="0" fillId="0" borderId="0"/></cellStyleXfs>',i=i.cellXfs,(h=[])[h.length]="<cellXfs/>",i.forEach(function(p){h[h.length]=je("xf",null,p)}),h[h.length]="</cellXfs>",(l=h.length===2?"":(h[0]=je("cellXfs",null,{count:h.length-2}).replace("/>",">"),h.join("")))&&(d[d.length]=l),d[d.length]='<cellStyles count="1"><cellStyle name="Normal" xfId="0" builtinId="0"/></cellStyles>',d[d.length]='<dxfs count="0"/>',d[d.length]='<tableStyles count="0" defaultTableStyle="TableStyleMedium9" defaultPivotStyle="PivotStyleMedium4"/>',2<d.length&&(d[d.length]="</styleSheet>",d[1]=d[1].replace("/>",">")),d.join("")}function Sg(a,i){var l;(i=i||ge(153)).write_shift(2,20*a.sz),l=a,c=(c=i)||ge(2),l=(l.italic?2:0)|(l.strike?8:0)|(l.outline?16:0)|(l.shadow?32:0)|(l.condense?64:0)|(l.extend?128:0),c.write_shift(1,l),c.write_shift(1,0),i.write_shift(2,a.bold?700:400);var c=0;return a.vertAlign=="superscript"?c=1:a.vertAlign=="subscript"&&(c=2),i.write_shift(2,c),i.write_shift(1,a.underline||0),i.write_shift(1,a.family||0),i.write_shift(1,a.charset||0),i.write_shift(1,0),yn(a.color,i),c=0,a.scheme=="major"&&(c=1),a.scheme=="minor"&&(c=2),i.write_shift(1,c),hs(a.name,i),i.length>i.l?i.slice(0,i.l):i}var wh,Eg=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],Tg=vs;function xh(a,i){i=i||ge(84),a=(wh=wh||nn(Eg))[a.patternType],a==null&&(a=40),i.write_shift(4,a);var l=0;if(a!=40)for(yn({auto:1},i),yn({auto:1},i);l<12;++l)i.write_shift(4,0);else{for(;l<4;++l)i.write_shift(4,0);for(;l<12;++l)i.write_shift(4,0)}return i.length>i.l?i.slice(0,i.l):i}function Ch(a,i,l){return(l=l||ge(16)).write_shift(2,i||0),l.write_shift(2,a.numFmtId||0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l.write_shift(1,0),l}function Di(a,i){return(i=i||ge(10)).write_shift(1,0),i.write_shift(1,0),i.write_shift(4,0),i.write_shift(4,0),i}fn=vs;function kg(a,i){var l;i&&(l=0,[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f=c[0];f<=c[1];++f)i[f]!=null&&++l}),l!=0&&(Ae(a,615,na(l)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f,h,d,p=c[0];p<=c[1];++p)i[p]!=null&&Ae(a,44,(f=p,h=i[p],(d=(d=void 0)||ge(6+4*h.length)).write_shift(2,f),hs(h,d),h=d.length>d.l?d.slice(0,d.l):d,d.l==null&&(d.l=d.length),h))}),Ae(a,616)))}function Rg(a){var i;Ae(a,613,na(1)),Ae(a,46,((i=i||ge(51)).write_shift(1,0),Di(0,i),Di(0,i),Di(0,i),Di(0,i),Di(0,i),i.length>i.l?i.slice(0,i.l):i)),Ae(a,614)}function Lg(a){var i,l;Ae(a,619,na(1)),Ae(a,48,(i={xfId:0,builtinId:0,name:"Normal"},(l=l||ge(52)).write_shift(4,i.xfId),l.write_shift(2,1),l.write_shift(1,+i.builtinId),l.write_shift(1,0),bn(i.name||"",l),l.length>l.l?l.slice(0,l.l):l)),Ae(a,620)}function Mg(a){var i,l,c,f;Ae(a,508,(i=0,l="TableStyleMedium9",c="PivotStyleMedium4",(f=ge(2052)).write_shift(4,i),bn(l,f),bn(c,f),f.length>f.l?f.slice(0,f.l):f)),Ae(a,509)}function Og(a,i){var l,c=Is();return Ae(c,278),kg(c,a.SSF),Ae(a=c,611,na(1)),Ae(a,43,Sg({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),Ae(a,612),Ae(a=c,603,na(2)),Ae(a,45,xh({patternType:"none"})),Ae(a,45,xh({patternType:"gray125"})),Ae(a,604),Rg(c),Ae(a=c,626,na(1)),Ae(a,47,Ch({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),Ae(a,627),l=c,i=i.cellXfs,Ae(l,617,na(i.length)),i.forEach(function(f){Ae(l,47,Ch(f,0))}),Ae(l,618),Lg(c),Ae(i=c,505,na(0)),Ae(i,506),Mg(c),Ae(c,279),c.end()}var Pg=["</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 Ng(a,i,l){i.themeElements.clrScheme=[];var c={};(a[0].match(_s)||[]).forEach(function(f){var h=Dt(f);switch(h[0]){case"<a:clrScheme":case"</a:clrScheme>":break;case"<a:srgbClr":c.rgb=h.val;break;case"<a:sysClr":c.rgb=h.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>":h[0].charAt(1)==="/"?(i.themeElements.clrScheme[Pg.indexOf(h[0])]=c,c={}):c.name=h[0].slice(3,h[0].length-1);break;default:if(l&&l.WTF)throw new Error("Unrecognized "+h[0]+" in clrScheme")}})}function Ig(){}function Vg(){}var Bg=/<a:clrScheme([^>]*)>[\s\S]*<\/a:clrScheme>/,Ug=/<a:fontScheme([^>]*)>[\s\S]*<\/a:fontScheme>/,zg=/<a:fmtScheme([^>]*)>[\s\S]*<\/a:fmtScheme>/,Gg=/<a:themeElements([^>]*)>[\s\S]*<\/a:themeElements>/;function Fh(a,i){var l,c,f,h,d,p={};if(!(l=(a=!a||a.length===0?yc():a).match(Gg)))throw new Error("themeElements not found in theme");return c=l[0],h=i,(f=p).themeElements={},[["clrScheme",Bg,Ng],["fontScheme",Ug,Ig],["fmtScheme",zg,Vg]].forEach(function(g){if(!(d=c.match(g[1])))throw new Error(g[0]+" not found in themeElements");g[2](d,f,h)}),p.raw=a,p}function yc(a,i){return i&&i.themeXLSX?i.themeXLSX:a&&typeof a.raw=="string"?a.raw:(a=[Xr],a[a.length]='<a:theme xmlns:a="http://schemas.openxmlformats.org/drawingml/2006/main" name="Office Theme">',a[a.length]="<a:themeElements>",a[a.length]='<a:clrScheme name="Office">',a[a.length]='<a:dk1><a:sysClr val="windowText" lastClr="000000"/></a:dk1>',a[a.length]='<a:lt1><a:sysClr val="window" lastClr="FFFFFF"/></a:lt1>',a[a.length]='<a:dk2><a:srgbClr val="1F497D"/></a:dk2>',a[a.length]='<a:lt2><a:srgbClr val="EEECE1"/></a:lt2>',a[a.length]='<a:accent1><a:srgbClr val="4F81BD"/></a:accent1>',a[a.length]='<a:accent2><a:srgbClr val="C0504D"/></a:accent2>',a[a.length]='<a:accent3><a:srgbClr val="9BBB59"/></a:accent3>',a[a.length]='<a:accent4><a:srgbClr val="8064A2"/></a:accent4>',a[a.length]='<a:accent5><a:srgbClr val="4BACC6"/></a:accent5>',a[a.length]='<a:accent6><a:srgbClr val="F79646"/></a:accent6>',a[a.length]='<a:hlink><a:srgbClr val="0000FF"/></a:hlink>',a[a.length]='<a:folHlink><a:srgbClr val="800080"/></a:folHlink>',a[a.length]="</a:clrScheme>",a[a.length]='<a:fontScheme name="Office">',a[a.length]="<a:majorFont>",a[a.length]='<a:latin typeface="Cambria"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Times New Roman"/>',a[a.length]='<a:font script="Hebr" typeface="Times New Roman"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="MoolBoran"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Times New Roman"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:majorFont>",a[a.length]="<a:minorFont>",a[a.length]='<a:latin typeface="Calibri"/>',a[a.length]='<a:ea typeface=""/>',a[a.length]='<a:cs typeface=""/>',a[a.length]='<a:font script="Jpan" typeface="MS Pゴシック"/>',a[a.length]='<a:font script="Hang" typeface="맑은 고딕"/>',a[a.length]='<a:font script="Hans" typeface="宋体"/>',a[a.length]='<a:font script="Hant" typeface="新細明體"/>',a[a.length]='<a:font script="Arab" typeface="Arial"/>',a[a.length]='<a:font script="Hebr" typeface="Arial"/>',a[a.length]='<a:font script="Thai" typeface="Tahoma"/>',a[a.length]='<a:font script="Ethi" typeface="Nyala"/>',a[a.length]='<a:font script="Beng" typeface="Vrinda"/>',a[a.length]='<a:font script="Gujr" typeface="Shruti"/>',a[a.length]='<a:font script="Khmr" typeface="DaunPenh"/>',a[a.length]='<a:font script="Knda" typeface="Tunga"/>',a[a.length]='<a:font script="Guru" typeface="Raavi"/>',a[a.length]='<a:font script="Cans" typeface="Euphemia"/>',a[a.length]='<a:font script="Cher" typeface="Plantagenet Cherokee"/>',a[a.length]='<a:font script="Yiii" typeface="Microsoft Yi Baiti"/>',a[a.length]='<a:font script="Tibt" typeface="Microsoft Himalaya"/>',a[a.length]='<a:font script="Thaa" typeface="MV Boli"/>',a[a.length]='<a:font script="Deva" typeface="Mangal"/>',a[a.length]='<a:font script="Telu" typeface="Gautami"/>',a[a.length]='<a:font script="Taml" typeface="Latha"/>',a[a.length]='<a:font script="Syrc" typeface="Estrangelo Edessa"/>',a[a.length]='<a:font script="Orya" typeface="Kalinga"/>',a[a.length]='<a:font script="Mlym" typeface="Kartika"/>',a[a.length]='<a:font script="Laoo" typeface="DokChampa"/>',a[a.length]='<a:font script="Sinh" typeface="Iskoola Pota"/>',a[a.length]='<a:font script="Mong" typeface="Mongolian Baiti"/>',a[a.length]='<a:font script="Viet" typeface="Arial"/>',a[a.length]='<a:font script="Uigh" typeface="Microsoft Uighur"/>',a[a.length]='<a:font script="Geor" typeface="Sylfaen"/>',a[a.length]="</a:minorFont>",a[a.length]="</a:fontScheme>",a[a.length]='<a:fmtScheme name="Office">',a[a.length]="<a:fillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="50000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="35000"><a:schemeClr val="phClr"><a:tint val="37000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:tint val="15000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="1"/>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.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>',a[a.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>',a[a.length]="</a:gsLst>",a[a.length]='<a:lin ang="16200000" scaled="0"/>',a[a.length]="</a:gradFill>",a[a.length]="</a:fillStyleLst>",a[a.length]="<a:lnStyleLst>",a[a.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>',a[a.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>',a[a.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>',a[a.length]="</a:lnStyleLst>",a[a.length]="<a:effectStyleLst>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="20000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="38000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.length]="</a:effectStyle>",a[a.length]="<a:effectStyle>",a[a.length]="<a:effectLst>",a[a.length]='<a:outerShdw blurRad="40000" dist="23000" dir="5400000" rotWithShape="0"><a:srgbClr val="000000"><a:alpha val="35000"/></a:srgbClr></a:outerShdw>',a[a.length]="</a:effectLst>",a[a.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>',a[a.length]='<a:sp3d><a:bevelT w="63500" h="25400"/></a:sp3d>',a[a.length]="</a:effectStyle>",a[a.length]="</a:effectStyleLst>",a[a.length]="<a:bgFillStyleLst>",a[a.length]='<a:solidFill><a:schemeClr val="phClr"/></a:solidFill>',a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="40000"/><a:satMod val="350000"/></a:schemeClr></a:gs>',a[a.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>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="20000"/><a:satMod val="255000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="-80000" r="50000" b="180000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]='<a:gradFill rotWithShape="1">',a[a.length]="<a:gsLst>",a[a.length]='<a:gs pos="0"><a:schemeClr val="phClr"><a:tint val="80000"/><a:satMod val="300000"/></a:schemeClr></a:gs>',a[a.length]='<a:gs pos="100000"><a:schemeClr val="phClr"><a:shade val="30000"/><a:satMod val="200000"/></a:schemeClr></a:gs>',a[a.length]="</a:gsLst>",a[a.length]='<a:path path="circle"><a:fillToRect l="50000" t="50000" r="50000" b="50000"/></a:path>',a[a.length]="</a:gradFill>",a[a.length]="</a:bgFillStyleLst>",a[a.length]="</a:fmtScheme>",a[a.length]="</a:themeElements>",a[a.length]="<a:objectDefaults>",a[a.length]="<a:spDef>",a[a.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>',a[a.length]="</a:spDef>",a[a.length]="<a:lnDef>",a[a.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>',a[a.length]="</a:lnDef>",a[a.length]="</a:objectDefaults>",a[a.length]="<a:extraClrSchemeLst/>",a[a.length]="</a:theme>",a.join(""))}function jg(a){var i={};switch(i.xclrType=a.read_shift(2),i.nTintShade=a.read_shift(2),i.xclrType){case 0:a.l+=4;break;case 1:i.xclrValue=vs(a,4);break;case 2:i.xclrValue=hd(a);break;case 3:i.xclrValue=a.read_shift(4);break;case 4:a.l+=4}return a.l+=8,i}function Wg(a){var i=a.read_shift(2),l=a.read_shift(2)-4,c=[i];switch(i){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:c[1]=jg(a);break;case 6:c[1]=vs(a,l);break;case 14:case 15:c[1]=a.read_shift(l==1?1:2);break;default:throw new Error("Unrecognized ExtProp type: "+i+" "+l)}return c}function Hg(){var a,i,l,c=Is();return Ae(c,332),Ae(c,334,na(1)),Ae(c,335,((l=ge(12+2*(i={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,i.flags),l.write_shift(4,i.version),hs(i.name,l),l.slice(0,l.l))),Ae(c,336),Ae(c,339,(a=1,(l=ge(8+2*(i="XLDAPR").length)).write_shift(4,a),hs(i,l),l.slice(0,l.l))),Ae(c,52),Ae(c,35,na(514)),Ae(c,4096,na(0)),Ae(c,4097,Js(1)),Ae(c,36),Ae(c,53),Ae(c,340),Ae(c,337,(a=1,i=!0,(l=ge(8)).write_shift(4,a),l.write_shift(4,i?1:0),l)),Ae(c,51,function(f){var h=ge(4+8*f.length);h.write_shift(4,f.length);for(var d=0;d<f.length;++d)h.write_shift(4,f[d][0]),h.write_shift(4,f[d][1]);return h}([[1,0]])),Ae(c,338),Ae(c,333),c.end()}function Ah(){var a=[Xr];return a.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>`),a.join("")}var Wo=1024;function Dh(a,i){for(var l=[21600,21600],c=["m0,0l0",l[1],l[0],l[1],l[0],"0xe"].join(","),f=[je("xml",null,{"xmlns:v":Gs.v,"xmlns:o":Gs.o,"xmlns:x":Gs.x,"xmlns:mv":Gs.mv}).replace(/\/>/,">"),je("o:shapelayout",je("o:idmap",null,{"v:ext":"edit",data:a}),{"v:ext":"edit"}),je("v:shapetype",[je("v:stroke",null,{joinstyle:"miter"}),je("v:path",null,{gradientshapeok:"t","o:connecttype":"rect"})].join(""),{id:"_x0000_t202","o:spt":202,coordsize:l.join(","),path:c})];Wo<1e3*a;)Wo+=1e3;return i.forEach(function(h){var d=Gr(h[0]),g={color2:"#BEFF82",type:"gradient"};g.type=="gradient"&&(g.angle="-180");var p=g.type=="gradient"?je("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,g=je("v:fill",p,g);++Wo,f=f.concat(["<v:shape"+fi({id:"_x0000_s"+Wo,type:"#_x0000_t202",style:"position:absolute; margin-left:80pt;margin-top:5pt;width:104pt;height:64pt;z-index:10"+(h[1].hidden?";visibility:hidden":""),fillcolor:"#ECFAD4",strokecolor:"#edeaa1"})+">",g,je("v:shadow",null,{on:"t",obscured:"t"}),je("v:path",null,{"o:connecttype":"none"}),'<v:textbox><div style="text-align:left"></div></v:textbox>','<x:ClientData ObjectType="Note">',"<x:MoveWithCells/>","<x:SizeWithCells/>",ms("x:Anchor",[d.c+1,0,d.r+1,0,d.c+3,20,d.r+5,20].join(",")),ms("x:AutoFill","False"),ms("x:Row",String(d.r)),ms("x:Column",String(d.c)),h[1].hidden?"":"<x:Visible/>","</x:ClientData>","</v:shape>"])}),f.push("</xml>"),f.join("")}function Sh(a,i,l,c){var f,h=Array.isArray(a);i.forEach(function(d){var p,g=Gr(d.ref);(f=h?(a[g.r]||(a[g.r]=[]),a[g.r][g.c]):a[d.ref])||(f={t:"z"},h?a[g.r][g.c]=f:a[d.ref]=f,(p=Qt(a["!ref"]||"BDWGO1000001:A1")).s.r>g.r&&(p.s.r=g.r),p.e.r<g.r&&(p.e.r=g.r),p.s.c>g.c&&(p.s.c=g.c),p.e.c<g.c&&(p.e.c=g.c),(p=Ot(p))!==a["!ref"]&&(a["!ref"]=p)),f.c||(f.c=[]);var y={a:d.author,t:d.t,r:d.r,T:l};d.h&&(y.h=d.h);for(var v=f.c.length-1;0<=v;--v){if(!l&&f.c[v].T)return;l&&!f.c[v].T&&f.c.splice(v,1)}if(l&&c){for(v=0;v<c.length;++v)if(y.a==c[v].id){y.a=c[v].name||y.a;break}}f.c.push(y)})}function Eh(a){var i=[Xr,je("comments",null,{xmlns:to[0]})],l=[];return i.push("<authors>"),a.forEach(function(c){c[1].forEach(function(f){var h=Fr(f.a);l.indexOf(h)==-1&&(l.push(h),i.push("<author>"+h+"</author>")),f.T&&f.ID&&l.indexOf("tc="+f.ID)==-1&&(l.push("tc="+f.ID),i.push("<author>tc="+f.ID+"</author>"))})}),l.length==0&&(l.push("SheetJ5"),i.push("<author>SheetJ5</author>")),i.push("</authors>"),i.push("<commentList>"),a.forEach(function(c){var f=0,h=[];if(c[1][0]&&c[1][0].T&&c[1][0].ID?f=l.indexOf("tc="+c[1][0].ID):c[1].forEach(function(g){g.a&&(f=l.indexOf(Fr(g.a))),h.push(g.t||"")}),i.push('<comment ref="'+c[0]+'" authorId="'+f+'"><text>'),h.length<=1)i.push(ms("t",Fr(h[0]||"")));else{for(var d=`Comment: `+h[0]+` `,p=1;p<h.length;++p)d+=`Reply: `+h[p]+` `;i.push(ms("t",Fr(d)))}i.push("</text></comment>")}),i.push("</commentList>"),2<i.length&&(i[i.length]="</comments>",i[1]=i[1].replace("/>",">")),i.join("")}dn=ws;function Yg(a){var i=Is(),l=[];return Ae(i,628),Ae(i,630),a.forEach(function(c){c[1].forEach(function(f){-1<l.indexOf(f.a)||(l.push(f.a.slice(0,54)),Ae(i,632,hs(f.a.slice(0,54))))})}),Ae(i,631),Ae(i,633),a.forEach(function(c){c[1].forEach(function(f){f.iauthor=l.indexOf(f.a);var h,d={s:Gr(c[0]),e:Gr(c[0])};Ae(i,635,(d=[d,f],(h=h??ge(36)).write_shift(4,d[1].iauthor),Io(d[0],h),h.write_shift(4,0),h.write_shift(4,0),h.write_shift(4,0),h.write_shift(4,0),h)),f.t&&0<f.t.length&&Ae(i,637,V1(f)),Ae(i,636),delete f.iauthor})}),Ae(i,634),Ae(i,629),i.end()}var qg="application/vnd.ms-office.vbaProject",Th=["xlsb","xlsm","xlam","biff8","xla"],_c,kh,Ho=(kh=/(^|[^A-Za-z_])R(\[?-?\d+\]|[1-9]\d*|)C(\[?-?\d+\]|[1-9]\d*|)(?![A-Za-z0-9_])/g,function(a,i){return _c=i,a.replace(kh,Kg)});function Kg(a,i,l,c){var f=!1,h=!1;return l.length==0?h=!0:l.charAt(0)=="["&&(h=!0,l=l.slice(1,-1)),c.length==0?f=!0:c.charAt(0)=="["&&(f=!0,c=c.slice(1,-1)),l=0<l.length?0|parseInt(l,10):0,c=0<c.length?0|parseInt(c,10):0,f?c+=_c.c:--c,h?l+=_c.r:--l,i+(f?"":"$")+Ir(c)+(h?"":"$")+qr(l)}var vc=/(^|[^._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,wc=function(a,i){return a.replace(vc,function(l,c,f,h,d,p){return h=Hl(h)-(f?0:i.c),p=Wl(p)-(d?0:i.r),c+"R"+(p==0?"":d?1+p:"["+p+"]")+"C"+(h==0?"":f?1+h:"["+h+"]")})};function Rh(a,i){return a.replace(vc,function(l,c,f,h,d,p){return c+(f=="$"?f+h:Ir(Hl(h)+i.c))+(d=="$"?d+p:qr(Wl(p)+i.r))})}function Lh(a){return a.replace(/_xlfn\./g,"")}function ss(a){a.l+=1}function za(a,i){return i=a.read_shift(i==1?1:2),[16383&i,i>>14&1,i>>15&1]}function Mh(d,i,f){var h=2;if(f){if(2<=f.biff&&f.biff<=5)return Oh(d);f.biff==12&&(h=4)}var c=d.read_shift(h),f=d.read_shift(h),h=za(d,2),d=za(d,2);return{s:{r:c,c:h[0],cRel:h[1],rRel:h[2]},e:{r:f,c:d[0],cRel:d[1],rRel:d[2]}}}function Oh(f){var i=za(f,2),l=za(f,2),c=f.read_shift(1),f=f.read_shift(1);return{s:{r:i[0],c,cRel:i[1],rRel:i[2]},e:{r:l[0],c:f,cRel:l[1],rRel:l[2]}}}function Ph(d,i,h){if(h&&2<=h.biff&&h.biff<=5)return f=za(c=d,2),c=c.read_shift(1),{r:f[0],c,cRel:f[1],rRel:f[2]};var c,f,h=d.read_shift(h&&h.biff==12?4:2),d=za(d,2);return{r:h,c:d[0],cRel:d[1],rRel:d[2]}}function Jg(d,i,h){if(h=h&&h.biff?h.biff:8,2<=h&&h<=5)return function(x){var g=x.read_shift(2),y=x.read_shift(1),v=(32768&g)>>15,x=(16384&g)>>14;return g&=16383,v==1&&8192<=g&&(g-=16384),x==1&&128<=y&&(y-=256),{r:g,c:y,cRel:x,rRel:v}}(d);var c=d.read_shift(12<=h?4:2),f=d.read_shift(2),h=(16384&f)>>14,d=(32768&f)>>15;if(f&=16383,d==1)for(;524287<c;)c-=1048576;if(h==1)for(;8191<f;)f-=16384;return{r:c,c:f,cRel:h,rRel:d}}function Nh(a){var i=1&a[a.l+1];return a.l+=4,[i,1]}function Ih(a){return[a.read_shift(1),a.read_shift(1)]}function Xg(a,i,l){var c=0,f=0;l.biff==12?(c=a.read_shift(4),f=a.read_shift(4)):(f=1+a.read_shift(1),c=1+a.read_shift(2)),2<=l.biff&&l.biff<8&&(--c,--f==0&&(f=256));for(var h=0,d=[];h!=c&&(d[h]=[]);++h)for(var p=0;p!=f;++p)d[h][p]=function(g,y){var v=[g.read_shift(1)];if(y==12)switch(v[0]){case 2:v[0]=4;break;case 4:v[0]=16;break;case 0:v[0]=1;break;case 1:v[0]=2}switch(v[0]){case 4:v[1]=Qr(g,1)?"TRUE":"FALSE",y!=12&&(g.l+=7);break;case 37:case 16:v[1]=Ta[g[g.l]],g.l+=y==12?4:8;break;case 0:g.l+=8;break;case 1:v[1]=xs(g);break;case 2:v[1]=co(g,0,{biff:0<y&&y<8?2:y});break;default:throw new Error("Bad SerAr: "+v[0])}return v}(a,l.biff);return d}function Si(a,i,l){return a.l+=2,[(a=(c=a).read_shift(2),c=c.read_shift(2),{r:a,c:255&c,fQuoted:!!(16384&c),cRel:c>>15,rRel:c>>15})];var c}function xc(a){return a.l+=6,[]}function Vh(a){return a.l+=2,[rs(a),1&a.read_shift(2)]}var Qg=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Bh={1:{n:"PtgExp",f:function(a,i,l){return a.l++,l&&l.biff==12?[a.read_shift(4,"i"),0]:[a.read_shift(2),a.read_shift(l&&l.biff==2?1:2)]}},2:{n:"PtgTbl",f:vs},3:{n:"PtgAdd",f:ss},4:{n:"PtgSub",f:ss},5:{n:"PtgMul",f:ss},6:{n:"PtgDiv",f:ss},7:{n:"PtgPower",f:ss},8:{n:"PtgConcat",f:ss},9:{n:"PtgLt",f:ss},10:{n:"PtgLe",f:ss},11:{n:"PtgEq",f:ss},12:{n:"PtgGe",f:ss},13:{n:"PtgGt",f:ss},14:{n:"PtgNe",f:ss},15:{n:"PtgIsect",f:ss},16:{n:"PtgUnion",f:ss},17:{n:"PtgRange",f:ss},18:{n:"PtgUplus",f:ss},19:{n:"PtgUminus",f:ss},20:{n:"PtgPercent",f:ss},21:{n:"PtgParen",f:ss},22:{n:"PtgMissArg",f:ss},23:{n:"PtgStr",f:function(a,i,l){return a.l++,yi(a,0,l)}},26:{n:"PtgSheet",f:function(a,i,l){return a.l+=5,a.l+=2,a.l+=l.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(a,i,l){return a.l+=l.biff==2?4:5,["PTGENDSHEET"]}},28:{n:"PtgErr",f:function(a){return a.l++,Ta[a.read_shift(1)]}},29:{n:"PtgBool",f:function(a){return a.l++,a.read_shift(1)!==0}},30:{n:"PtgInt",f:function(a){return a.l++,a.read_shift(2)}},31:{n:"PtgNum",f:function(a){return a.l++,xs(a)}},32:{n:"PtgArray",f:function(a,i,l){var c=(96&a[a.l++])>>5;return a.l+=l.biff==2?6:l.biff==12?14:7,[c]}},33:{n:"PtgFunc",f:function(a,i,l){var c=(96&a[a.l])>>5;return a.l+=1,l=a.read_shift(l&&l.biff<=3?1:2),[n2[l],Gh[l],c]}},34:{n:"PtgFuncVar",f:function(a,i,l){var c=a[a.l++],f=a.read_shift(1),h=l&&l.biff<=3?[c==88?-1:0,a.read_shift(1)]:[(h=a)[h.l+1]>>7,32767&h.read_shift(2)];return[f,(h[0]===0?Gh:i2)[h[1]]]}},35:{n:"PtgName",f:function(a,i,l){var c=a.read_shift(1)>>>5&3,f=!l||8<=l.biff?4:2,f=a.read_shift(f);switch(l.biff){case 2:a.l+=5;break;case 3:case 4:a.l+=8;break;case 5:a.l+=12}return[c,0,f]}},36:{n:"PtgRef",f:function(a,i,l){var c=(96&a[a.l])>>5;return a.l+=1,[c,Ph(a,0,l)]}},37:{n:"PtgArea",f:function(a,i,l){return[(96&a[a.l++])>>5,Mh(a,2<=l.biff&&l.biff,l)]}},38:{n:"PtgMemArea",f:function(a,i,l){var c=a.read_shift(1)>>>5&3;return a.l+=l&&l.biff==2?3:4,[c,a.read_shift(l&&l.biff==2?1:2)]}},39:{n:"PtgMemErr",f:vs},40:{n:"PtgMemNoMem",f:vs},41:{n:"PtgMemFunc",f:function(a,i,l){return[a.read_shift(1)>>>5&3,a.read_shift(l&&l.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(a,i,l){var c=a.read_shift(1)>>>5&3;return a.l+=4,l.biff<8&&a.l--,l.biff==12&&(a.l+=2),[c]}},43:{n:"PtgAreaErr",f:function(a,i,l){var c=(96&a[a.l++])>>5;return a.l+=l&&8<l.biff?12:l.biff<8?6:8,[c]}},44:{n:"PtgRefN",f:function(a,i,l){var c=(96&a[a.l])>>5;return a.l+=1,[c,Jg(a,0,l)]}},45:{n:"PtgAreaN",f:function(a,i,l){return[(96&a[a.l++])>>5,function(g,p){if(p.biff<8)return Oh(g);var h=g.read_shift(p.biff==12?4:2),d=g.read_shift(p.biff==12?4:2),p=za(g,2),g=za(g,2);return{s:{r:h,c:p[0],cRel:p[1],rRel:p[2]},e:{r:d,c:g[0],cRel:g[1],rRel:g[2]}}}(a,l)]}},46:{n:"PtgMemAreaN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},47:{n:"PtgMemNoMemN",f:function(a){return[a.read_shift(1)>>>5&3,a.read_shift(2)]}},57:{n:"PtgNameX",f:function(a,i,l){return l.biff==5?function(c){var f=c.read_shift(1)>>>5&3,h=c.read_shift(2,"i");c.l+=8;var d=c.read_shift(2);return c.l+=12,[f,h,d]}(a):[a.read_shift(1)>>>5&3,a.read_shift(2),a.read_shift(4)]}},58:{n:"PtgRef3d",f:function(a,i,l){var c=(96&a[a.l])>>5;a.l+=1;var f=a.read_shift(2);return l&&l.biff==5&&(a.l+=12),[c,f,Ph(a,0,l)]}},59:{n:"PtgArea3d",f:function(a,i,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2,"i");if(l)switch(l.biff){case 5:a.l+=12;break}return[c,f,Mh(a,0,l)]}},60:{n:"PtgRefErr3d",f:function(a,i,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2),h=4;if(l)switch(l.biff){case 5:h=15;break;case 12:h=6}return a.l+=h,[c,f]}},61:{n:"PtgAreaErr3d",f:function(a,i,l){var c=(96&a[a.l++])>>5,f=a.read_shift(2),h=8;if(l)switch(l.biff){case 5:a.l+=12,h=6;break;case 12:h=12}return a.l+=h,[c,f]}},255:{}},Zg={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},$g={1:{n:"PtgElfLel",f:Vh},2:{n:"PtgElfRw",f:Si},3:{n:"PtgElfCol",f:Si},6:{n:"PtgElfRwV",f:Si},7:{n:"PtgElfColV",f:Si},10:{n:"PtgElfRadical",f:Si},11:{n:"PtgElfRadicalS",f:xc},13:{n:"PtgElfColS",f:xc},15:{n:"PtgElfColSV",f:xc},16:{n:"PtgElfRadicalLel",f:Vh},25:{n:"PtgList",f:function(h){h.l+=2;var i=h.read_shift(2),l=h.read_shift(2),c=h.read_shift(4),f=h.read_shift(2),h=h.read_shift(2);return{ixti:i,coltype:3&l,rt:Qg[l>>2&31],idx:c,c:f,C:h}}},29:{n:"PtgSxName",f:function(a){return a.l+=2,[a.read_shift(4)]}},255:{}},e2={0:{n:"PtgAttrNoop",f:function(a){return a.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(a,i,l){var c=255&a[a.l+1]?1:0;return a.l+=l&&l.biff==2?3:4,[c]}},2:{n:"PtgAttrIf",f:function(a,i,l){var c=255&a[a.l+1]?1:0;return a.l+=2,[c,a.read_shift(l&&l.biff==2?1:2)]}},4:{n:"PtgAttrChoose",f:function(a,i,l){a.l+=2;for(var c=a.read_shift(l&&l.biff==2?1:2),f=[],h=0;h<=c;++h)f.push(a.read_shift(l&&l.biff==2?1:2));return f}},8:{n:"PtgAttrGoto",f:function(a,i,l){var c=255&a[a.l+1]?1:0;return a.l+=2,[c,a.read_shift(l&&l.biff==2?1:2)]}},16:{n:"PtgAttrSum",f:function(a,i,l){a.l+=l&&l.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Nh},33:{n:"PtgAttrBaxcel",f:Nh},64:{n:"PtgAttrSpace",f:function(a){return a.read_shift(2),Ih(a)}},65:{n:"PtgAttrSpaceSemi",f:function(a){return a.read_shift(2),Ih(a)}},128:{n:"PtgAttrIfError",f:function(a){var i=255&a[a.l+1]?1:0;return a.l+=2,[i,a.read_shift(2)]}},255:{}};function Ei(a,i,l,c){if(c.biff<8)return vs(a,i);for(var f=a.l+i,h=[],d=0;d!==l.length;++d)switch(l[d][0]){case"PtgArray":l[d][1]=Xg(a,0,c),h.push(l[d][1]);break;case"PtgMemArea":l[d][2]=function(p,g){for(var y=p.read_shift(g.biff==12?4:2),v=[],x=0;x!=y;++x)v.push((g.biff==12?io:xn)(p));return v}(a,(l[d][1],c)),h.push(l[d][2]);break;case"PtgExp":c&&c.biff==12&&(l[d][1][1]=a.read_shift(4),h.push(l[d][1]));break;case"PtgList":case"PtgElfRadicalS":case"PtgElfColS":case"PtgElfColSV":throw"Unsupported "+l[d][0]}return(i=f-a.l)!==0&&h.push(vs(a,i)),h}function Ti(a,i,l){for(var c,f,h=a.l+i,d=[];h!=a.l;)i=h-a.l,f=a[a.l],c=Bh[f]||Bh[Zg[f]],(c=f===24||f===25?(f===24?$g:e2)[a[a.l+1]]:c)&&c.f?d.push([c.n,c.f(a,i,l)]):vs(a,i);return d}var t2={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function Uh(a,i,l){if(!a)return"SH33TJSERR0";if(8<l.biff&&(!a.XTI||!a.XTI[i]))return a.SheetNames[i];if(!a.XTI)return"SH33TJSERR6";var c=a.XTI[i];if(l.biff<8)return 1e4<i&&(i-=65536),(i=i<0?-i:i)==0?"":a.XTI[i-1];if(!c)return"SH33TJSERR1";var f="";if(8<l.biff)switch(a[c[0]][0]){case 357:return f=c[1]==-1?"#REF":a.SheetNames[c[1]],c[1]==c[2]?f:f+":"+a.SheetNames[c[2]];case 358:return l.SID!=null?a.SheetNames[l.SID]:"SH33TJSSAME"+a[c[0]][0];case 355:default:return"SH33TJSSRC"+a[c[0]][0]}switch(a[c[0]][0][0]){case 1025:return f=c[1]==-1?"#REF":a.SheetNames[c[1]]||"SH33TJSERR3",c[1]==c[2]?f:f+":"+a.SheetNames[c[2]];case 14849:return a[c[0]].slice(1).map(function(h){return h.Name}).join(";;");default:return a[c[0]][0][3]?(f=c[1]==-1?"#REF":a[c[0]][0][3][c[1]]||"SH33TJSERR4",c[1]==c[2]?f:f+":"+a[c[0]][0][3][c[2]]):"SH33TJSERR2"}}function zh(a,i,l){return i=Uh(a,i,l),i=="#REF"?i:function(c,f){if(!(c||f&&f.biff<=5&&2<=f.biff))throw new Error("empty sheet name");return/[^\w\u4E00-\u9FFF\u3040-\u30FF]/.test(c)?"'"+c+"'":c}(i,l)}function Ms(a,i,l,c,f){var h,d,p,g=f&&f.biff||8,y={s:{c:0,r:0},e:{c:0,r:0}},v=[],x=0,C=0,F="";if(!a[0]||!a[0][0])return"";for(var R=-1,A="",P=0,L=a[0].length;P<L;++P){var T=a[0][P];switch(T[0]){case"PtgUminus":v.push("-"+v.pop());break;case"PtgUplus":v.push("+"+v.pop());break;case"PtgPercent":v.push(v.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(qe=v.pop(),h=v.pop(),0<=R){switch(a[0][R][1][0]){case 0:A=Yr(" ",a[0][R][1][1]);break;case 1:A=Yr("\r",a[0][R][1][1]);break;default:if(A="",f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][R][1][0])}h+=A,R=-1}v.push(h+t2[T[0]]+qe);break;case"PtgIsect":qe=v.pop(),h=v.pop(),v.push(h+" "+qe);break;case"PtgUnion":qe=v.pop(),h=v.pop(),v.push(h+","+qe);break;case"PtgRange":qe=v.pop(),h=v.pop(),v.push(h+":"+qe);break;case"PtgAttrChoose":case"PtgAttrGoto":case"PtgAttrIf":case"PtgAttrIfError":break;case"PtgRef":d=hi(T[1][1],y,f),v.push(pi(d,g));break;case"PtgRefN":d=l?hi(T[1][1],l,f):T[1][1],v.push(pi(d,g));break;case"PtgRef3d":x=T[1][1],d=hi(T[1][2],y,f),F=zh(c,x,f),v.push(F+"!"+pi(d,g));break;case"PtgFunc":case"PtgFuncVar":var N=T[1][0],O=T[1][1],N=N||0,I=(N&=127)==0?[]:v.slice(-N);v.length-=N,O==="User"&&(O=I.shift()),v.push(O+"("+I.join(",")+")");break;case"PtgBool":v.push(T[1]?"TRUE":"FALSE");break;case"PtgInt":v.push(T[1]);break;case"PtgNum":v.push(String(T[1]));break;case"PtgStr":v.push('"'+T[1].replace(/"/g,'""')+'"');break;case"PtgErr":v.push(T[1]);break;case"PtgAreaN":p=Ru(T[1][1],l?{s:l}:y,f),v.push(jl(p,f));break;case"PtgArea":p=Ru(T[1][1],y,f),v.push(jl(p,f));break;case"PtgArea3d":x=T[1][1],p=T[1][2],F=zh(c,x,f),v.push(F+"!"+jl(p,f));break;case"PtgAttrSum":v.push("SUM("+v.pop()+")");break;case"PtgAttrBaxcel":case"PtgAttrSemi":break;case"PtgName":C=T[1][2];var X=(c.names||[])[C-1]||(c[0]||[])[C],se=X?X.Name:"SH33TJSNAME"+String(C);se&&se.slice(0,6)=="_xlfn."&&!f.xlfn&&(se=se.slice(6)),v.push(se);break;case"PtgNameX":var te,ce=T[1][1],C=T[1][2];if(!(f.biff<=5)){X="",((c[ce]||[])[0]||[])[0]==14849||(((c[ce]||[])[0]||[])[0]==1025?c[ce][C]&&0<c[ce][C].itab&&(X=c.SheetNames[c[ce][C].itab-1]+"!"):X=c.SheetNames[C-1]+"!"),c[ce]&&c[ce][C]?X+=c[ce][C].Name:c[0]&&c[0][C]?X+=c[0][C].Name:(se=(Uh(c,ce,f)||"").split(";;"))[C-1]?X=se[C-1]:X+="SH33TJSERRX",v.push(X);break}te=(te=c[ce=ce<0?-ce:ce]?c[ce][C]:te)||{Name:"SH33TJSERRY"},v.push(te.Name);break;case"PtgParen":var _e="(",we=")";if(0<=R){switch(A="",a[0][R][1][0]){case 2:_e=Yr(" ",a[0][R][1][1])+_e;break;case 3:_e=Yr("\r",a[0][R][1][1])+_e;break;case 4:we=Yr(" ",a[0][R][1][1])+we;break;case 5:we=Yr("\r",a[0][R][1][1])+we;break;default:if(f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+a[0][R][1][0])}R=-1}v.push(_e+v.pop()+we);break;case"PtgRefErr":case"PtgRefErr3d":v.push("#REF!");break;case"PtgExp":d={c:T[1][1],r:T[1][0]};var de={c:l.c,r:l.r};if(c.sharedf[St(d)])ce=c.sharedf[St(d)],v.push(Ms(ce,0,de,c,f));else{for(var Re=!1,qe=0;qe!=c.arrayf.length;++qe)if(h=c.arrayf[qe],!(d.c<h[0].s.c||d.c>h[0].e.c||d.r<h[0].s.r||d.r>h[0].e.r)){v.push(Ms(h[1],0,de,c,f)),Re=!0;break}Re||v.push(T[1])}break;case"PtgArray":v.push("{"+function(Ue){for(var Oe=[],Fe=0;Fe<Ue.length;++Fe){for(var $e=Ue[Fe],tt=[],gt=0;gt<$e.length;++gt){var Pt=$e[gt];Pt?Pt[0]===2?tt.push('"'+Pt[1].replace(/"/g,'""')+'"'):tt.push(Pt[1]):tt.push("")}Oe.push(tt.join(","))}return Oe.join(";")}(T[1])+"}");break;case"PtgMemArea":break;case"PtgAttrSpace":case"PtgAttrSpaceSemi":R=P;break;case"PtgTbl":case"PtgMemErr":break;case"PtgMissArg":v.push("");break;case"PtgAreaErr":case"PtgAreaErr3d":v.push("#REF!");break;case"PtgList":v.push("Table"+T[1].idx+"[#"+T[1].rt+"]");break;case"PtgMemAreaN":case"PtgMemNoMemN":case"PtgAttrNoop":case"PtgSheet":case"PtgEndSheet":case"PtgMemFunc":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":default:throw new Error("Unrecognized Formula Token: "+String(T))}if(f.biff!=3&&0<=R&&["PtgAttrSpace","PtgAttrSpaceSemi","PtgAttrGoto"].indexOf(a[0][P][0])==-1){var He=!0;switch((T=a[0][R])[1][0]){case 4:He=!1;case 0:A=Yr(" ",T[1][1]);break;case 5:He=!1;case 1:A=Yr("\r",T[1][1]);break;default:if(A="",f.WTF)throw new Error("Unexpected PtgAttrSpaceType "+T[1][0])}v.push((He?A:"")+v.pop()+(He?"":A)),R=-1}}if(1<v.length&&f.WTF)throw new Error("bad formula stack");return v[0]}function Cc(a,d,l){var c=a.l+d,f=ya(a);l.biff==2&&++a.l;var h=function(p){var g;if(Sa(p,p.l+6)!==65535)return[xs(p),"n"];switch(p[p.l]){case 0:return p.l+=8,["String","s"];case 1:return g=p[p.l+2]===1,p.l+=8,[g,"b"];case 2:return g=p[p.l+2],p.l+=8,[g,"e"];case 3:return p.l+=8,["","s"]}return[]}(a),d=a.read_shift(1);return l.biff!=2&&(a.read_shift(1),5<=l.biff&&a.read_shift(4)),l=function(p,g,y){var v,x=p.l+g,C=y.biff==2?1:2,F=p.read_shift(C);if(F==65535)return[[],vs(p,g-2)];var R=Ti(p,F,y);return g!==F+C&&(v=Ei(p,g-F-C,R,y)),p.l=x,[R,v]}(a,c-a.l,l),{cell:f,val:h[0],formula:l,shared:d>>3&1,tt:h[1]}}function r2(a,i,l,c,f){i=fo(i,l,f),f=(l=a.v)!=null?Vo(typeof l=="number"?l:0):((l=ge(8)).write_shift(1,3),l.write_shift(1,0),l.write_shift(2,0),l.write_shift(2,0),l.write_shift(2,65535),l),l=ge(6),l.write_shift(2,33),l.write_shift(4,0);for(var h=ge(a.bf.length),d=0;d<a.bf.length;++d)h[d]=a.bf[d];return ft([i,f,l,h])}function In(a,i,l){var f=a.read_shift(4),c=Ti(a,f,l),f=a.read_shift(4);return[c,0<f?Ei(a,f,c,l):null]}var s2=In,Vn=In,a2=In,o2=In,i2={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"},Gh={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"},n2={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 jh(a){return(a=(a=(a=(a=(a=a.slice(0,3)=="of:"?a.slice(3):a).charCodeAt(0)==61&&(a=a.slice(1)).charCodeAt(0)==61?a.slice(1):a).replace(/COM\.MICROSOFT\./g,"")).replace(/\[((?:\.[A-Z]+[0-9]+)(?::\.[A-Z]+[0-9]+)?)\]/g,function(i,l){return l.replace(/\./g,"")})).replace(/\[.(#[A-Z]*[?!])\]/g,"$1")).replace(/[;~]/g,",").replace(/\|/g,";")}function Fc(a){return a=a.split(":"),[a[0].split(".")[0],a[0].split(".")[1]+(1<a.length?":"+(a[1].split(".")[1]||a[1].split(".")[0]):"")]}var ki={},Yo={},Ri=typeof Map<"u";function Ac(a,i,l){var c=0,f=a.length;if(l){if(Ri?l.has(i):Object.prototype.hasOwnProperty.call(l,i)){for(var h=Ri?l.get(i):l[i];c<h.length;++c)if(a[h[c]].t===i)return a.Count++,h[c]}}else for(;c<f;++c)if(a[c].t===i)return a.Count++,c;return a[f]={t:i},a.Count++,a.Unique++,l&&(Ri?(l.has(i)||l.set(i,[]),l.get(i).push(f)):(Object.prototype.hasOwnProperty.call(l,i)||(l[i]=[]),l[i].push(f))),f}function Bn(c,i){var l={min:c+1,max:c+1},c=-1;return i.MDW&&(Fs=i.MDW),i.width!=null?l.customWidth=1:i.wpx!=null?c=Ci(i.wpx):i.wch!=null&&(c=i.wch),-1<c?(l.width=On(c),l.customWidth=1):i.width!=null&&(l.width=i.width),i.hidden&&(l.hidden=!0),i.level!=null&&(l.outlineLevel=l.level=i.level),l}function ho(a,i){a&&(i=i=="xlml"?[1,1,1,1,.5,.5]:[.7,.7,.75,.75,.3,.3],a.left==null&&(a.left=i[0]),a.right==null&&(a.right=i[1]),a.top==null&&(a.top=i[2]),a.bottom==null&&(a.bottom=i[3]),a.header==null&&(a.header=i[4]),a.footer==null&&(a.footer=i[5]))}function Ga(a,i,l){if(Ai!==void 0){if(/^\d+$/.exec(i.s)||i.s&&i.s==+i.s)return i.s;var c=i.s||{};return i.z&&(c.numFmt=i.z),Ai.addStyle(c)}var f=l.revssf[i.z!=null?i.z:"General"],h=60,d=a.length;if(f==null&&l.ssf){for(;h<392;++h)if(l.ssf[h]==null){pa(i.z,h),l.ssf[h]=i.z,l.revssf[i.z]=f=h;break}}for(h=0;h!=d;++h)if(a[h].numFmtId===f)return h;return a[d]={numFmtId:f,fontId:0,fillId:0,borderId:0,xfId:0,applyNumberFormat:1},d}function Wh(a,i,l,c,f,h){try{c.cellNF&&(a.z=oe[i])}catch(p){if(c.WTF)throw p}if(a.t!=="z"||c.cellStyles){if(a.t==="d"&&typeof a.v=="string"&&(a.v=Pr(a.v)),(!c||c.cellText!==!1)&&a.t!=="z")try{if(oe[i]==null&&pa(m1[i]||"General",i),a.t==="e")a.w=a.w||Ta[a.v];else if(i===0)if(a.t==="n")(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v);else if(a.t==="d"){var d=os(a.v);a.w=(0|d)===d?d.toString(10):Ns(d)}else{if(a.v===void 0)return;a.w=kr(a.v,Yo)}else a.t==="d"?a.w=Us(i,os(a.v),Yo):a.w=Us(i,a.v,Yo)}catch(p){if(c.WTF)throw p}if(c.cellStyles&&l!=null)try{a.s=h.Fills[l],a.s.fgColor&&a.s.fgColor.theme&&!a.s.fgColor.rgb&&(a.s.fgColor.rgb=Mn(f.themeElements.clrScheme[a.s.fgColor.theme].rgb,a.s.fgColor.tint||0),c.WTF&&(a.s.fgColor.raw_rgb=f.themeElements.clrScheme[a.s.fgColor.theme].rgb)),a.s.bgColor&&a.s.bgColor.theme&&(a.s.bgColor.rgb=Mn(f.themeElements.clrScheme[a.s.bgColor.theme].rgb,a.s.bgColor.tint||0),c.WTF&&(a.s.bgColor.raw_rgb=f.themeElements.clrScheme[a.s.bgColor.theme].rgb))}catch(p){if(c.WTF&&h.Fills)throw p}}}var l2=/<(?:\w:)?mergeCell ref="[A-Z0-9:]+"\s*[\/]?>/g,c2=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,f2=/<(?:\w:)?hyperlink [^>]*>/gm,u2=/"(\w*:\w*)"/,d2=/<(?:\w:)?col\b[^>]*[\/]?>/g,h2=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,p2=/<(?:\w:)?pageMargins[^>]*\/>/g,Hh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,m2=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,g2=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function b2(a,i,l,c,f,h,d){if(!a)return a;c=c||{"!id":{}};var p=i.dense?[]:{},g={s:{r:2e6,c:2e6},e:{r:0,c:0}},y="",se="",v=a.match(c2);v?(y=a.slice(0,v.index),se=a.slice(v.index+v[0].length)):y=se=a;var x=y.match(Hh);x?Dc(x[0],0,f,l):(x=y.match(m2))&&(a=x[0],x[1],x=p,C=f,F=l,Dc(a.slice(0,a.indexOf(">")),0,C,F));var C,F,R=(y.match(/<(?:\w*:)?dimension/)||{index:-1}).index;0<R&&(C=y.slice(R,R+50).match(u2))&&(F=p,(P=Qt(P=C[1])).s.r<=P.e.r&&P.s.c<=P.e.c&&0<=P.s.r&&0<=P.s.c&&(F["!ref"]=Ot(P)));var A,P=y.match(g2);P&&P[1]&&(T=P[1],(A=f).Views||(A.Views=[{}]),(T.match(v2)||[]).forEach(function(te,ce){te=Dt(te),A.Views[ce]||(A.Views[ce]={}),+te.zoomScale&&(A.Views[ce].zoom=+te.zoomScale),Nr(te.rightToLeft)&&(A.Views[ce].RTL=!0)}));var L,T=[];i.cellStyles&&(L=y.match(d2))&&function(te,ce){for(var _e=!1,we=0;we!=ce.length;++we){var de=Dt(ce[we],!0);de.hidden&&(de.hidden=Nr(de.hidden));var Re=parseInt(de.min,10)-1,qe=parseInt(de.max,10)-1;for(de.outlineLevel&&(de.level=+de.outlineLevel||0),delete de.min,delete de.max,de.width=+de.width,!_e&&de.width&&(_e=!0,bc(de.width)),Ua(de);Re<=qe;)te[Re++]=Rr(de)}}(T,L),v&&w2(v[1],p,i,g,h,d),d=se.match(h2),d&&(p["!autofilter"]={ref:(d[0].match(/ref="([^"]*)"/)||[])[1]});var O=[],N=se.match(l2);if(N)for(R=0;R!=N.length;++R)O[R]=Qt(N[R].slice(N[R].indexOf('"')+1));d=se.match(f2),d&&function(te,ce,_e){for(var we=Array.isArray(te),de=0;de!=ce.length;++de){var Re=Dt(Er(ce[de]),!0);if(!Re.ref)return;var qe=((_e||{})["!id"]||[])[Re.id];qe?(Re.Target=qe.Target,Re.location&&(Re.Target+="#"+pr(Re.location))):(Re.Target="#"+pr(Re.location),qe={Target:Re.Target,TargetMode:"Internal"}),Re.Rel=qe,Re.tooltip&&(Re.Tooltip=Re.tooltip,delete Re.tooltip);for(var He=Qt(Re.ref),Ne=He.s.r;Ne<=He.e.r;++Ne)for(var Ue=He.s.c;Ue<=He.e.c;++Ue){var Oe=St({c:Ue,r:Ne});we?(te[Ne]||(te[Ne]=[]),te[Ne][Ue]||(te[Ne][Ue]={t:"z",v:void 0}),te[Ne][Ue].l=Re):(te[Oe]||(te[Oe]={t:"z",v:void 0}),te[Oe].l=Re)}}}(p,d,c);var I,X,se=se.match(p2);return se&&(p["!margins"]=(I=Dt(se[0]),X={},["left","right","top","bottom","header","footer"].forEach(function(te){I[te]&&(X[te]=parseFloat(I[te]))}),X)),!p["!ref"]&&g.e.c>=g.s.c&&g.e.r>=g.s.r&&(p["!ref"]=Ot(g)),0<i.sheetRows&&p["!ref"]&&(se=Qt(p["!ref"]),i.sheetRows<=+se.e.r&&(se.e.r=i.sheetRows-1,se.e.r>g.e.r&&(se.e.r=g.e.r),se.e.r<se.s.r&&(se.s.r=se.e.r),se.e.c>g.e.c&&(se.e.c=g.e.c),se.e.c<se.s.c&&(se.s.c=se.e.c),p["!fullref"]=p["!ref"],p["!ref"]=Ot(se))),0<T.length&&(p["!cols"]=T),0<O.length&&(p["!merges"]=O),p}function Dc(a,i,l,c){a=Dt(a),l.Sheets[c]||(l.Sheets[c]={}),a.codeName&&(l.Sheets[c].CodeName=pr(Er(a.codeName)))}var y2=["objects","scenarios","selectLockedCells","selectUnlockedCells"],_2=["formatColumns","formatRows","formatCells","insertColumns","insertRows","insertHyperlinks","deleteColumns","deleteRows","sort","autoFilter","pivotTables"],v2=/<(?:\w:)?sheetView(?:[^>a-z][^>]*)?\/?>/,Yh,qh,Kh,Jh,Xh,Qh,Zh,w2=(Yh=/<(?:\w+:)?c[ \/>]/,qh=/<\/(?:\w+:)?row>/,Kh=/r=["']([^"']*)["']/,Jh=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,Xh=/ref=["']([^"']*)["']/,Qh=ci("v"),Zh=ci("f"),function(a,i,l,c,f,h){for(var d,p,g,y,v,x,C=0,F="",R=[],A=[],P=0,L=0,T="",O=0,N=0,I=0,X=0,se=Array.isArray(h.CellXf),te=[],ce=[],_e=Array.isArray(i),we=[],de={},Re=!1,qe=!!l.sheetStubs,He=a.split(qh),Ne=0,Ue=He.length;Ne!=Ue;++Ne){var Oe=(F=He[Ne].trim()).length;if(Oe!==0){var Fe=0;e:for(C=0;C<Oe;++C)switch(F[C]){case">":if(F[C-1]!="/"){++C;break e}if(l&&l.cellStyles){if(O=(g=Dt(F.slice(Fe,C),!0)).r!=null?parseInt(g.r,10):O+1,N=-1,l.sheetRows&&l.sheetRows<O)continue;Re=!(de={}),g.ht&&(Re=!0,de.hpt=parseFloat(g.ht),de.hpx=jo(de.hpt)),g.hidden=="1"&&(Re=!0,de.hidden=!0),g.outlineLevel!=null&&(Re=!0,de.level=+g.outlineLevel),Re&&(we[O-1]=de)}break;case"<":Fe=C}if(C<=Fe)break;if(O=(g=Dt(F.slice(Fe,C),!0)).r!=null?parseInt(g.r,10):O+1,N=-1,!(l.sheetRows&&l.sheetRows<O)){c.s.r>O-1&&(c.s.r=O-1),c.e.r<O-1&&(c.e.r=O-1),l&&l.cellStyles&&(Re=!(de={}),g.ht&&(Re=!0,de.hpt=parseFloat(g.ht),de.hpx=jo(de.hpt)),g.hidden=="1"&&(Re=!0,de.hidden=!0),g.outlineLevel!=null&&(Re=!0,de.level=+g.outlineLevel),Re&&(we[O-1]=de)),R=F.slice(C).split(Yh);for(var $e,tt=0;tt!=R.length&&R[tt].trim().charAt(0)=="<";++tt);for(R=R.slice(tt),C=0;C!=R.length;++C)if((F=R[C].trim()).length!==0){if(A=F.match(Kh),P=C,L=0,F="<c "+(F.slice(0,1)=="<"?">":"")+F,A!=null&&A.length===2){for(P=0,T=A[1],L=0;L!=T.length&&!((d=T.charCodeAt(L)-64)<1||26<d);++L)P=26*P+d;N=--P}else++N;for(L=0;L!=F.length&&F.charCodeAt(L)!==62;++L);if(++L,(g=Dt(F.slice(0,L),!0)).r||(g.r=St({r:O-1,c:N})),p={t:""},(A=(T=F.slice(L)).match(Qh))!=null&&A[1]!==""&&(p.v=pr(A[1])),l.cellFormula){(A=T.match(Zh))!=null&&A[1]!==""?(p.f=pr(Er(A[1])).replace(/\r\n/g,` `),l.xlfn||(p.f=Lh(p.f)),-1<A[0].indexOf('t="array"')?(p.F=(T.match(Xh)||[])[1],-1<p.F.indexOf(":")&&te.push([Qt(p.F),p.F])):-1<A[0].indexOf('t="shared"')&&(v=Dt(A[0]),$e=pr(Er(A[1])),l.xlfn||($e=Lh($e)),ce[parseInt(v.si,10)]=[v,$e,g.r])):(A=T.match(/<f[^>]*\/>/))&&ce[(v=Dt(A[0])).si]&&(p.f=(x=ce[v.si][1],Xe=ce[v.si][2],$e=g.r,Xe=Rs(Xe).s,$e=Gr($e),Rh(x,{r:$e.r-Xe.r,c:$e.c-Xe.c})));for(var gt=Gr(g.r),L=0;L<te.length;++L)gt.r>=te[L][0].s.r&>.r<=te[L][0].e.r&>.c>=te[L][0].s.c&>.c<=te[L][0].e.c&&(p.F=te[L][1])}if(g.t==null&&p.v===void 0)if(p.f||p.F)p.v=0,p.t="n";else{if(!qe)continue;p.t="z"}else p.t=g.t||"n";switch(c.s.c>N&&(c.s.c=N),c.e.c<N&&(c.e.c=N),p.t){case"n":if(p.v==""||p.v==null){if(!qe)continue;p.t="z"}else p.v=parseFloat(p.v);break;case"s":if(p.v===void 0){if(!qe)continue;p.t="z"}else y=ki[parseInt(p.v,10)],p.v=y.t,p.r=y.r,l.cellHTML&&(p.h=y.h);break;case"str":p.t="s",p.v=p.v!=null?Er(p.v):"",l.cellHTML&&(p.h=Ll(p.v));break;case"inlineStr":A=T.match(Jh),p.t="s",A!=null&&(y=hc(A[1]))?(p.v=y.t,l.cellHTML&&(p.h=y.h)):p.v="";break;case"b":p.v=Nr(p.v);break;case"d":l.cellDates?p.v=Pr(p.v,1):(p.v=os(Pr(p.v,1)),p.t="n");break;case"e":l&&l.cellText===!1||(p.w=p.v),p.v=Uu[p.v]}var Pt,I=X=0,Xe=null;se&&g.s!==void 0&&(Xe=h.CellXf[g.s])!=null&&(Xe.numFmtId!=null&&(I=Xe.numFmtId),l.cellStyles&&Xe.fillId!=null&&(X=Xe.fillId)),Wh(p,I,X,l,f,h),l.cellDates&&se&&p.t=="n"&&$a(oe[I])&&(p.t="d",p.v=un(p.v)),g.cm&&l.xlmeta&&(Pt=(l.xlmeta.Cell||[])[+g.cm-1])&&Pt.type=="XLDAPR"&&(p.D=!0),_e?(i[(Pt=Gr(g.r)).r]||(i[Pt.r]=[]),i[Pt.r][Pt.c]=p):i[g.r]=p}}}}0<we.length&&(i["!rows"]=we)});function x2(a,i){for(var l,c,f,h,d=[],p=[],g=Qt(a["!ref"]),y=[],v=0,A=0,x=a["!rows"],C=Array.isArray(a),F={r:""},R=-1,A=g.s.c;A<=g.e.c;++A)y[A]=Ir(A);for(v=g.s.r;v<=g.e.r;++v){for(p=[],f=qr(v),A=g.s.c;A<=g.e.c;++A){c=y[A]+f;var P=C?(a[v]||[])[A]:a[c];P!==void 0&&(l=function(L,T,O,N){if(L.c&&O["!comments"].push([T,L.c]),L.v===void 0&&typeof L.f!="string"||L.t==="z"&&!L.f)return"";var I="",X=L.t,se=L.v;if(L.t!=="z")switch(L.t){case"b":I=L.v?"1":"0";break;case"n":I=""+L.v;break;case"e":I=Ta[L.v];break;case"d":I=N&&N.cellDates?Pr(L.v,-1).toISOString():((L=Rr(L)).t="n",""+(L.v=os(Pr(L.v)))),L.z===void 0&&(L.z=oe[14]);break;default:I=L.v}var te=ms("v",Fr(I)),ce={r:T},_e=Ga(N.cellXfs,L,N);switch(_e!==0&&(ce.s=_e),L.t){case"n":break;case"d":ce.t="d";break;case"b":ce.t="b";break;case"e":ce.t="e";break;case"z":break;default:if(L.v==null){delete L.t;break}if(32767<L.v.length)throw new Error("Text length must not exceed 32767 characters");if(N&&N.bookSST){te=ms("v",""+Ac(N.Strings,L.v,N.revStrings)),ce.t="s";break}ce.t="str"}return L.t!=X&&(L.t=X,L.v=se),typeof L.f=="string"&&L.f&&(se=L.F&&L.F.slice(0,T.length)==T?{t:"array",ref:L.F}:null,te=je("f",Fr(L.f),se)+(L.v!=null?te:"")),L.l&&O["!links"].push([T,L.l]),L.D&&(ce.cm=1),je("c",te,ce)}(P,c,a,i))!=null&&p.push(l)}(0<p.length||x&&x[v])&&(F={r:f},x&&x[v]&&((h=x[v]).hidden&&(F.hidden=1),R=-1,h.hpx?R=Fi(h.hpx):h.hpt&&(R=h.hpt),-1<R&&(F.ht=R,F.customHeight=1),h.level&&(F.outlineLevel=h.level)),d[d.length]=je("row",p.join(""),F))}if(x)for(;v<x.length;++v)x&&x[v]&&(F={r:v+1},(h=x[v]).hidden&&(F.hidden=1),R=-1,h.hpx?R=Fi(h.hpx):h.hpt&&(R=h.hpt),-1<R&&(F.ht=R,F.customHeight=1),h.level&&(F.outlineLevel=h.level),d[d.length]=je("row","",F));return d.join("")}function $h(a,i,l,c){var f,h,d=[Xr,je("worksheet",null,{xmlns:to[0],"xmlns:r":is.r})],p=l.SheetNames[a],g=l.Sheets[p],y=(g=g??{})["!ref"]||"A1",v=Qt(y);if(16383<v.e.c||1048575<v.e.r){if(i.WTF)throw new Error("Range "+y+" exceeds format limit A1:XFD1048576");v.e.c=Math.min(v.e.c,16383),v.e.r=Math.min(v.e.c,1048575),y=Ot(v)}c=c||{},g["!comments"]=[];var x,C,F=[];(function(L,T,O,N,I){var X=!1,se={},te=null;if(N.bookType!=="xlsx"&&T.vbaraw){var ce=T.SheetNames[O];try{T.Workbook&&(ce=T.Workbook.Sheets[O].CodeName||ce)}catch{}X=!0,se.codeName=ga(Fr(ce))}L&&L["!outline"]&&(N={summaryBelow:1,summaryRight:1},L["!outline"].above&&(N.summaryBelow=0),L["!outline"].left&&(N.summaryRight=0),te=(te||"")+je("outlinePr",null,N)),(X||te)&&(I[I.length]=je("sheetPr",te,se))})(g,l,a,i,d),d[d.length]=je("dimension",null,{ref:y}),d[d.length]=(p={workbookViewId:"0"},((((v=l)||{}).Workbook||{}).Views||[])[0]&&(p.rightToLeft=v.Workbook.Views[0].RTL?"1":"0"),je("sheetViews",je("sheetView",null,p),{})),i.sheetFormat&&(d[d.length]=je("sheetFormatPr",null,{defaultRowHeight:i.sheetFormat.defaultRowHeight||"16",baseColWidth:i.sheetFormat.baseColWidth||"10",outlineLevelRow:i.sheetFormat.outlineLevelRow||"7"})),g["!cols"]!=null&&0<g["!cols"].length&&(d[d.length]=function(L){for(var T,O=["<cols>"],N=0;N!=L.length;++N)(T=L[N])&&(O[O.length]=je("col",null,Bn(N,T)));return O[O.length]="</cols>",O.join("")}(g["!cols"])),d[f=d.length]="<sheetData/>",g["!links"]=[],g["!ref"]!=null&&0<(h=x2(g,i)).length&&(d[d.length]=h),d.length>f+1&&(d[d.length]="</sheetData>",d[f]=d[f].replace("/>",">")),g["!protect"]&&(d[d.length]=(x=g["!protect"],C={sheet:1},y2.forEach(function(L){x[L]!=null&&x[L]&&(C[L]="1")}),_2.forEach(function(L){x[L]==null||x[L]||(C[L]="0")}),x.password&&(C.password=pc(x.password).toString(16).toUpperCase()),je("sheetProtection",null,C))),g["!autofilter"]!=null&&(d[d.length]=function(L,T,O,N){var I=typeof L.ref=="string"?L.ref:Ot(L.ref);O.Workbook||(O.Workbook={Sheets:[]}),O.Workbook.Names||(O.Workbook.Names=[]);var X=O.Workbook.Names;(L=Rs(I)).s.r==L.e.r&&(L.e.r=Rs(T["!ref"]).e.r,I=Ot(L));for(var se=0;se<X.length;++se){var te=X[se];if(te.Name=="_xlnm._FilterDatabase"&&te.Sheet==N){te.Ref="'"+O.SheetNames[N]+"'!"+I;break}}return se==X.length&&X.push({Name:"_xlnm._FilterDatabase",Sheet:N,Ref:"'"+O.SheetNames[N]+"'!"+I}),je("autoFilter",null,{ref:I})}(g["!autofilter"],g,l,a)),g["!merges"]!=null&&0<g["!merges"].length&&(d[d.length]=function(L){if(L.length===0)return"";for(var T='<mergeCells count="'+L.length+'">',O=0;O!=L.length;++O)T+='<mergeCell ref="'+Ot(L[O])+'"/>';return T+"</mergeCells>"}(g["!merges"]));var R,A,P=-1;return 0<g["!links"].length&&(d[d.length]="<hyperlinks>",g["!links"].forEach(function(L){L[1].Target&&(A={ref:L[0]},L[1].Target.charAt(0)!="#"&&(P=Ar(c,-1,Fr(L[1].Target).replace(/#.*$/,""),It.HLINK),A["r:id"]="rId"+P),-1<(R=L[1].Target.indexOf("#"))&&(A.location=Fr(L[1].Target.slice(R+1))),L[1].Tooltip&&(A.tooltip=Fr(L[1].Tooltip)),d[d.length]=je("hyperlink",null,A))}),d[d.length]="</hyperlinks>"),delete g["!links"],g["!margins"]!=null&&(d[d.length]=(ho(l=g["!margins"]),je("pageMargins",null,l))),i&&!i.ignoreEC&&i.ignoreEC!=null||(d[d.length]=ms("ignoredErrors",je("ignoredError",null,{numberStoredAsText:1,sqref:y}))),0<F.length&&(P=Ar(c,-1,"../drawings/drawing"+(a+1)+".xml",It.DRAW),d[d.length]=je("drawing",null,{"r:id":"rId"+P}),g["!drawing"]=F),0<g["!comments"].length&&(P=Ar(c,-1,"../drawings/vmlDrawing"+(a+1)+".vml",It.VML),d[d.length]=je("legacyDrawing",null,{"r:id":"rId"+P}),g["!legacy"]=P),1<d.length&&(d[d.length]="</worksheet>",d[1]=d[1].replace("/>",">")),d.join("")}function C2(a,i,l,c){l=function(f,h,d){var p=ge(145),g=(d["!rows"]||[])[f]||{};p.write_shift(4,f),p.write_shift(4,0);var v=320;g.hpx?v=20*Fi(g.hpx):g.hpt&&(v=20*g.hpt),p.write_shift(2,v),p.write_shift(1,0),v=0,g.level&&(v|=g.level),g.hidden&&(v|=16),(g.hpx||g.hpt)&&(v|=32),p.write_shift(1,v),p.write_shift(1,0);var y=0,v=p.l;p.l+=4;for(var x={r:f,c:0},C=0;C<16;++C)if(!(h.s.c>C+1<<10||h.e.c<C<<10)){for(var F=-1,R=-1,A=C<<10;A<C+1<<10;++A)x.c=A,(Array.isArray(d)?(d[x.r]||[])[x.c]:d[St(x)])&&(F<0&&(F=A),R=A);F<0||(++y,p.write_shift(4,F),p.write_shift(4,R))}return f=p.l,p.l=v,p.write_shift(4,y),p.l=f,p.length>p.l?p.slice(0,p.l):p}(c,l,i),(17<l.length||(i["!rows"]||[])[c])&&Ae(a,0,l)}var Un=io,F2=Io;function e0(a){return[ao(a),xs(a),"n"]}var qo=io,A2=Io,t0=["left","right","top","bottom","header","footer"];function D2(a,i,l,c,f,h,d){if(i.v===void 0)return!1;var p="";switch(i.t){case"b":p=i.v?"1":"0";break;case"d":(i=Rr(i)).z=i.z||oe[14],i.v=os(Pr(i.v)),i.t="n";break;case"n":case"e":p=""+i.v;break;default:p=i.v}var g,y,v,x,C,F,R,A,P,L,T,O,N,I,X,se,te,ce,_e,we,de={r:l,c};switch(de.s=Ga(f.cellXfs,i,f),i.l&&h["!links"].push([St(de),i.l]),i.c&&h["!comments"].push([St(de),i.c]),i.t){case"s":case"str":return f.bookSST?(p=Ac(f.Strings,i.v,f.revStrings),de.t="s",de.v=p,d?Ae(a,18,(oo(te=de,ce=ce??ge(8)),ce.write_shift(4,te.v),ce)):Ae(a,7,(so(te=de,se=se??ge(12)),se.write_shift(4,te.v),se))):(de.t="str",d?Ae(a,17,(I=i,oo(de,X=X??ge(8+4*I.v.length)),hs(I.v,X),X.length>X.l?X.slice(0,X.l):X)):Ae(a,6,(I=i,so(de,N=N??ge(12+4*I.v.length)),hs(I.v,N),N.length>N.l?N.slice(0,N.l):N))),!0;case"n":return i.v==(0|i.v)&&-1e3<i.v&&i.v<1e3?d?Ae(a,13,(T=i,oo(de,O=O??ge(8)),Ou(T.v,O),O)):Ae(a,2,(T=i,so(de,L=L??ge(12)),Ou(T.v,L),L)):d?Ae(a,16,(A=i,oo(de,P=P??ge(12)),Vo(A.v,P),P)):Ae(a,5,(A=i,so(de,R=R??ge(16)),Vo(A.v,R),R)),!0;case"b":return de.t="b",d?Ae(a,15,(C=i,oo(de,F=F??ge(5)),F.write_shift(1,C.v?1:0),F)):Ae(a,4,(C=i,so(de,x=x??ge(9)),x.write_shift(1,C.v?1:0),x)),!0;case"e":return de.t="e",d?Ae(a,14,(y=i,oo(de,v=v??ge(8)),v.write_shift(1,y.v),v.write_shift(2,0),v.write_shift(1,0),v)):Ae(a,3,(y=i,so(de,g=g??ge(9)),g.write_shift(1,y.v),g)),!0}return d?Ae(a,12,oo(de,we=we??ge(4))):Ae(a,1,so(de,_e=_e??ge(8))),!0}function S2(a,i){var l,c;i&&i["!merges"]&&(Ae(a,177,(l=i["!merges"].length,(c=c??ge(4)).write_shift(4,l),c)),i["!merges"].forEach(function(f){Ae(a,176,A2(f))}),Ae(a,178))}function E2(a,i){i&&i["!cols"]&&(Ae(a,390),i["!cols"].forEach(function(l,c){l&&Ae(a,60,function(f,h,d){d==null&&(d=ge(18));var p=Bn(f,h);return d.write_shift(-4,f),d.write_shift(-4,f),d.write_shift(4,256*(p.width||10)),d.write_shift(4,0),f=0,h.hidden&&(f|=1),typeof p.width=="number"&&(f|=2),h.level&&(f|=h.level<<8),d.write_shift(2,f),d}(c,l))}),Ae(a,391))}function T2(a,i){var l;i&&i["!ref"]&&(Ae(a,648),Ae(a,649,(l=Qt(i["!ref"]),(i=ge(24)).write_shift(4,4),i.write_shift(4,1),Io(l,i),i)),Ae(a,650))}function k2(a,i,l){i["!links"].forEach(function(c){var f,h;c[1].Target&&(f=Ar(l,-1,c[1].Target.replace(/#.*$/,""),It.HLINK),Ae(a,494,(h=f,c=ge(50+4*((f=c)[1].Target.length+(f[1].Tooltip||"").length)),Io({s:Gr(f[0]),e:Gr(f[0])},c),Jl("rId"+h,c),hs(((h=f[1].Target.indexOf("#"))==-1?"":f[1].Target.slice(h+1))||"",c),hs(f[1].Tooltip||"",c),hs("",c),c.slice(0,c.l))))}),delete i["!links"]}function R2(a,i,l){Ae(a,133),Ae(a,137,function(c,f){f==null&&(f=ge(30));var h=924;return(((c||{}).Views||[])[0]||{}).RTL&&(h|=32),f.write_shift(2,h),f.write_shift(4,0),f.write_shift(4,0),f.write_shift(4,0),f.write_shift(1,0),f.write_shift(1,0),f.write_shift(2,0),f.write_shift(2,100),f.write_shift(2,0),f.write_shift(2,0),f.write_shift(2,0),f.write_shift(4,0),f}(l)),Ae(a,138),Ae(a,134)}function L2(a,i){var l,c;i["!protect"]&&Ae(a,535,(l=i["!protect"],(c=c??ge(66)).write_shift(2,l.password?pc(l.password):0),c.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(f){f[1]?c.write_shift(4,l[f[0]]==null||l[f[0]]?0:1):c.write_shift(4,l[f[0]]!=null&&l[f[0]]?0:1)}),c))}function M2(a,i,l,c){var f=Is(),y=l.SheetNames[a],h=l.Sheets[y]||{},d=y;try{l&&l.Workbook&&(d=l.Workbook.Sheets[a].CodeName||d)}catch{}var p,g,y=Qt(h["!ref"]||"A1");if(16383<y.e.c||1048575<y.e.r){if(i.WTF)throw new Error("Range "+(h["!ref"]||"A1")+" exceeds format limit A1:XFD1048576");y.e.c=Math.min(y.e.c,16383),y.e.r=Math.min(y.e.c,1048575)}return h["!links"]=[],h["!comments"]=[],Ae(f,129),(l.vbaraw||h["!outline"])&&Ae(f,147,function(v,x,C){C==null&&(C=ge(84+4*v.length));var F=192;x&&(x.above&&(F&=-65),x.left&&(F&=-129)),C.write_shift(1,F);for(var R=1;R<3;++R)C.write_shift(1,0);return yn({auto:1},C),C.write_shift(-4,-1),C.write_shift(-4,-1),Mu(v,C),C.slice(0,C.l)}(d,h["!outline"])),Ae(f,148,F2(y)),R2(f,0,l.Workbook),E2(f,h),function(v,x,C){var F,R=Qt(x["!ref"]||"A1"),A=[];Ae(v,145);var P=Array.isArray(x),L=R.e.r;x["!rows"]&&(L=Math.max(R.e.r,x["!rows"].length-1));for(var T=R.s.r;T<=L;++T){F=qr(T),C2(v,x,R,T);var O=!1;if(T<=R.e.r)for(var N=R.s.c;N<=R.e.c;++N){T===R.s.r&&(A[N]=Ir(N)),I=A[N]+F;var I=P?(x[T]||[])[N]:x[I];I?O=D2(v,I,T,N,C,x,O):O=!1}}Ae(v,146)}(f,h,i),L2(f,h),function(v,x,C,F){if(x["!autofilter"]){var P=x["!autofilter"],R=typeof P.ref=="string"?P.ref:Ot(P.ref);C.Workbook||(C.Workbook={Sheets:[]}),C.Workbook.Names||(C.Workbook.Names=[]);var A=C.Workbook.Names,P=Rs(R);P.s.r==P.e.r&&(P.e.r=Rs(x["!ref"]).e.r,R=Ot(P));for(var L=0;L<A.length;++L){var T=A[L];if(T.Name=="_xlnm._FilterDatabase"&&T.Sheet==F){T.Ref="'"+C.SheetNames[F]+"'!"+R;break}}L==A.length&&A.push({Name:"_xlnm._FilterDatabase",Sheet:F,Ref:"'"+C.SheetNames[F]+"'!"+R}),Ae(v,161,Io(Qt(R))),Ae(v,162)}}(f,h,l,a),S2(f,h),k2(f,h,c),h["!margins"]&&Ae(f,476,(p=h["!margins"],g==null&&(g=ge(48)),ho(p),t0.forEach(function(v){Vo(p[v],g)}),g)),i&&!i.ignoreEC&&i.ignoreEC!=null||T2(f,h),y=f,i=a,c=c,0<(h=h)["!comments"].length&&(i=Ar(c,-1,"../drawings/vmlDrawing"+(i+1)+".vml",It.VML),Ae(y,551,Jl("rId"+i)),h["!legacy"]=i),Ae(f,130),f.end()}function O2(a,i,l,c,f,h){var d=h||{"!type":"chart"};if(!a)return h;var p,g=0,y=0,v={s:{r:2e6,c:2e6},e:{r:0,c:0}};return(a.match(/<c:numCache>[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(x){var C=function(F){var R,A=[],P=F.match(/^<c:numCache>/);(F.match(/<c:pt idx="(\d*)">(.*?)<\/c:pt>/gm)||[]).forEach(function(T){T=T.match(/<c:pt idx="(\d*?)"><c:v>(.*)<\/c:v><\/c:pt>/),T&&(A[+T[1]]=P?+T[2]:T[2])});var L=pr((F.match(/<c:formatCode>([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(F.match(/<c:f>(.*?)<\/c:f>/gm)||[]).forEach(function(T){R=T.replace(/<.*?>/g,"")}),[A,L,R]}(x);v.s.r=v.s.c=0,v.e.c=g,p=Ir(g),C[0].forEach(function(F,R){d[p+qr(R)]={t:"n",v:F,z:C[1]},y=R}),v.e.r<y&&(v.e.r=y),++g}),0<g&&(d["!ref"]=Ot(v)),d}var Sc=[["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"]],P2=[["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"]],N2=[],I2=[["calcCompleted","true"],["calcMode","auto"],["calcOnSave","true"],["concurrentCalc","true"],["fullCalcOnLoad","false"],["fullPrecision","true"],["iterate","false"],["iterateCount","100"],["iterateDelta","0.001"],["refMode","A1"]];function r0(a,i){for(var l=0;l!=a.length;++l)for(var c=a[l],f=0;f!=i.length;++f){var h=i[f];if(c[h[0]]==null)c[h[0]]=h[1];else switch(h[2]){case"bool":typeof c[h[0]]=="string"&&(c[h[0]]=Nr(c[h[0]]));break;case"int":typeof c[h[0]]=="string"&&(c[h[0]]=parseInt(c[h[0]],10))}}}function s0(a,i){for(var l=0;l!=i.length;++l){var c=i[l];if(a[c[0]]==null)a[c[0]]=c[1];else switch(c[2]){case"bool":typeof a[c[0]]=="string"&&(a[c[0]]=Nr(a[c[0]]));break;case"int":typeof a[c[0]]=="string"&&(a[c[0]]=parseInt(a[c[0]],10))}}}function a0(a){s0(a.WBProps,Sc),s0(a.CalcPr,I2),r0(a.WBView,P2),r0(a.Sheets,N2),Yo.date1904=Nr(a.WBProps.date1904)}var V2="][*?/\\".split("");function o0(a,i){if(31<a.length){if(i)return;throw new Error("Sheet names cannot exceed 31 chars")}var l=!0;return V2.forEach(function(c){if(a.indexOf(c)!=-1){if(!i)throw new Error("Sheet name cannot contain : \\ / ? * [ ]");l=!1}}),l}function i0(a){if(!a||!a.SheetNames||!a.Sheets)throw new Error("Invalid Workbook");if(!a.SheetNames.length)throw new Error("Workbook is empty");var i,l,c,f=a.Workbook&&a.Workbook.Sheets||[];i=a.SheetNames,l=f,c=!!a.vbaraw,i.forEach(function(d,p){o0(d);for(var g=0;g<p;++g)if(d==i[g])throw new Error("Duplicate Sheet Name: "+d);if(c){var y=l&&l[p]&&l[p].CodeName||d;if(y.charCodeAt(0)==95&&22<y.length)throw new Error("Bad Code Name: Worksheet"+y)}});for(var h=0;h<a.SheetNames.length;++h)(function(d,p){if(d&&d["!ref"]){var g=Qt(d["!ref"]);if(g.e.c<g.s.c||g.e.r<g.s.r)throw new Error("Bad range ("+p+"): "+d["!ref"])}})(a.Sheets[a.SheetNames[h]],(a.SheetNames[h],h))}var B2=/<\w+:workbook/;function n0(a){var i=[Xr];i[i.length]=je("workbook",null,{xmlns:to[0],"xmlns:r":is.r});var l=a.Workbook&&0<(a.Workbook.Names||[]).length,c={codeName:"ThisWorkbook"};a.Workbook&&a.Workbook.WBProps&&(Sc.forEach(function(p){a.Workbook.WBProps[p[0]]!=null&&a.Workbook.WBProps[p[0]]!=p[1]&&(c[p[0]]=a.Workbook.WBProps[p[0]])}),a.Workbook.WBProps.CodeName&&(c.codeName=a.Workbook.WBProps.CodeName,delete c.CodeName)),i[i.length]=je("workbookPr",null,c);var f=a.Workbook&&a.Workbook.Sheets||[],h=0;if(f&&f[0]&&f[0].Hidden){for(i[i.length]="<bookViews>",h=0;h!=a.SheetNames.length&&f[h]&&f[h].Hidden;++h);h==a.SheetNames.length&&(h=0),i[i.length]='<workbookView firstSheet="'+h+'" activeTab="'+h+'"/>',i[i.length]="</bookViews>"}for(i[i.length]="<sheets>",h=0;h!=a.SheetNames.length;++h){var d={name:Fr(a.SheetNames[h].slice(0,31))};if(d.sheetId=""+(h+1),d["r:id"]="rId"+(h+1),f[h])switch(f[h].Hidden){case 1:d.state="hidden";break;case 2:d.state="veryHidden"}i[i.length]=je("sheet",null,d)}return i[i.length]="</sheets>",l&&(i[i.length]="<definedNames>",a.Workbook&&a.Workbook.Names&&a.Workbook.Names.forEach(function(p){var g={name:p.Name};p.Comment&&(g.comment=p.Comment),p.Sheet!=null&&(g.localSheetId=""+p.Sheet),p.Hidden&&(g.hidden="1"),p.Ref&&(i[i.length]=je("definedName",Fr(p.Ref),g))}),i[i.length]="</definedNames>"),2<i.length&&(i[i.length]="</workbook>",i[1]=i[1].replace("/>",">")),i.join("")}function U2(a,i){var l={};return a.read_shift(4),l.ArchID=a.read_shift(4),a.l+=i-8,l}function z2(a,i){Ae(a,143);for(var l,c=0;c!=i.SheetNames.length;++c){var f={Hidden:i.Workbook&&i.Workbook.Sheets&&i.Workbook.Sheets[c]&&i.Workbook.Sheets[c].Hidden||0,iTabID:c+1,strRelID:"rId"+(c+1),name:i.SheetNames[c]};Ae(a,156,(l=f,(f=(f=void 0)||ge(127)).write_shift(4,l.Hidden),f.write_shift(4,l.iTabID),Jl(l.strRelID,f),hs(l.name.slice(0,31),f),f.length>f.l?f.slice(0,f.l):f))}Ae(a,144)}function G2(a,i){if(i.Workbook&&i.Workbook.Sheets){for(var l,c=i.Workbook.Sheets,f=0,h=-1,d=-1;f<c.length;++f)!c[f]||!c[f].Hidden&&h==-1?h=f:c[f].Hidden==1&&d==-1&&(d=f);h<d||(Ae(a,135),Ae(a,158,(i=h,(l=l||ge(29)).write_shift(-4,0),l.write_shift(-4,460),l.write_shift(4,28800),l.write_shift(4,17600),l.write_shift(4,500),l.write_shift(4,i),l.write_shift(4,i),l.write_shift(1,120),l.length>l.l?l.slice(0,l.l):l)),Ae(a,136))}}function j2(a,i){var l=Is();return Ae(l,131),Ae(l,128,function(c){c=c||ge(127);for(var f=0;f!=4;++f)c.write_shift(4,0);return hs("SheetJS",c),hs(t.version,c),hs(t.version,c),hs("7262",c),c.length>c.l?c.slice(0,c.l):c}()),Ae(l,153,function(c,f){f=f||ge(72);var h=0;return c&&c.filterPrivacy&&(h|=8),f.write_shift(4,h),f.write_shift(4,0),Mu(c&&c.CodeName||"ThisWorkbook",f),f.slice(0,f.l)}(a.Workbook&&a.Workbook.WBProps||null)),G2(l,a),z2(l,a),Ae(l,132),l.end()}function W2(a,i,l){return(i.slice(-4)===".bin"?function(c,f){var h={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},d=[],p=!1;(f=f||{}).biff=12;var g=[],y=[[]];return y.SheetNames=[],y.XTI=[],Oi[16]={n:"BrtFRTArchID$",f:U2},Ea(c,function(v,x,C){switch(C){case 156:y.SheetNames.push(v.name),h.Sheets.push(v);break;case 153:h.WBProps=v;break;case 39:v.Sheet!=null&&(f.SID=v.Sheet),v.Ref=Ms(v.Ptg,0,null,y,f),delete f.SID,delete v.Ptg,g.push(v);break;case 1036:break;case 357:case 358:case 355:case 667:y[0].length?y.push([C,v]):y[0]=[C,v],y[y.length-1].XTI=[];break;case 362:y.length===0&&(y[0]=[],y[0].XTI=[]),y[y.length-1].XTI=y[y.length-1].XTI.concat(v),y.XTI=y.XTI.concat(v);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:d.push(C),p=!0;break;case 36:d.pop(),p=!1;break;case 37:d.push(C),p=!0;break;case 38:d.pop(),p=!1;break;case 16:break;default:if(!x.T&&(!p||f.WTF&&d[d.length-1]!=37&&d[d.length-1]!=35))throw new Error("Unexpected record 0x"+C.toString(16))}},f),a0(h),h.Names=g,h.supbooks=y,h}:function(c,f){if(!c)throw new Error("Could not find file");var h={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},Names:[],xmlns:""},d=!1,p="xmlns",g={},y=0;if(c.replace(_s,function(v,x){var C=Dt(v);switch(ma(C[0])){case"<?xml":break;case"<workbook":v.match(B2)&&(p="xmlns"+v.match(/<(\w+):/)[1]),h.xmlns=C[p];break;case"</workbook>":break;case"<fileVersion":delete C[0],h.AppVersion=C;break;case"<fileVersion/>":case"</fileVersion>":case"<fileSharing":case"<fileSharing/>":break;case"<workbookPr":case"<workbookPr/>":Sc.forEach(function(F){if(C[F[0]]!=null)switch(F[2]){case"bool":h.WBProps[F[0]]=Nr(C[F[0]]);break;case"int":h.WBProps[F[0]]=parseInt(C[F[0]],10);break;default:h.WBProps[F[0]]=C[F[0]]}}),C.codeName&&(h.WBProps.CodeName=Er(C.codeName));break;case"</workbookPr>":case"<workbookProtection":case"<workbookProtection/>":break;case"<bookViews":case"<bookViews>":case"</bookViews>":break;case"<workbookView":case"<workbookView/>":delete C[0],h.WBView.push(C);break;case"</workbookView>":break;case"<sheets":case"<sheets>":case"</sheets>":break;case"<sheet":switch(C.state){case"hidden":C.Hidden=1;break;case"veryHidden":C.Hidden=2;break;default:C.Hidden=0}delete C.state,C.name=pr(Er(C.name)),delete C[0],h.Sheets.push(C);break;case"</sheet>":break;case"<functionGroups":case"<functionGroups/>":case"<functionGroup":break;case"<externalReferences":case"</externalReferences>":case"<externalReferences>":case"<externalReference":case"<definedNames/>":break;case"<definedNames>":case"<definedNames":d=!0;break;case"</definedNames>":d=!1;break;case"<definedName":(g={}).Name=Er(C.name),C.comment&&(g.Comment=C.comment),C.localSheetId&&(g.Sheet=+C.localSheetId),Nr(C.hidden||"0")&&(g.Hidden=!0),y=x+v.length;break;case"</definedName>":g.Ref=pr(Er(c.slice(y,x))),h.Names.push(g);break;case"<definedName/>":break;case"<calcPr":case"<calcPr/>":delete C[0],h.CalcPr=C;break;case"</calcPr>":case"<oleSize":break;case"<customWorkbookViews>":case"</customWorkbookViews>":case"<customWorkbookViews":break;case"<customWorkbookView":case"</customWorkbookView>":break;case"<pivotCaches>":case"</pivotCaches>":case"<pivotCaches":case"<pivotCache":break;case"<smartTagPr":case"<smartTagPr/>":break;case"<smartTagTypes":case"<smartTagTypes>":case"</smartTagTypes>":case"<smartTagType":break;case"<webPublishing":case"<webPublishing/>":break;case"<fileRecoveryPr":case"<fileRecoveryPr/>":break;case"<webPublishObjects>":case"<webPublishObjects":case"</webPublishObjects>":case"<webPublishObject":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":d=!0;break;case"</ext>":d=!1;break;case"<ArchID":break;case"<AlternateContent":case"<AlternateContent>":d=!0;break;case"</AlternateContent>":d=!1;break;case"<revisionPtr":break;default:if(!d&&f.WTF)throw new Error("unrecognized "+C[0]+" in workbook")}return v}),to.indexOf(h.xmlns)===-1)throw new Error("Unknown Namespace: "+h.xmlns);return a0(h),h})(a,l)}function H2(a,i,l,c,f,h,d,p){return(i.slice(-4)===".bin"?function(g,y,v,x,C,F,R){if(!g)return g;var A=y||{};x=x||{"!id":{}};var P,L,T,O,N,I,X,se,te,ce,_e=A.dense?[]:{},we={s:{r:2e6,c:2e6},e:{r:0,c:0}},de=!1,Re=!1,qe=[];A.biff=12;var He=A["!row"]=0,Ne=!1,Ue=[],Oe={},Fe=A.supbooks||C.supbooks||[[]];if(Fe.sharedf=Oe,Fe.arrayf=Ue,Fe.SheetNames=C.SheetNames||C.Sheets.map(function(ke){return ke.name}),!A.supbooks&&(A.supbooks=Fe,C.Names))for(var $e=0;$e<C.Names.length;++$e)Fe[0][$e+1]=C.Names[$e];var tt,gt=[],Pt=[],Xe=!1;return Oi[16]={n:"BrtShortReal",f:e0},Ea(g,function(ke,Et,$t){if(!Re)switch($t){case 148:P=ke;break;case 0:L=ke,A.sheetRows&&A.sheetRows<=L.r&&(Re=!0),te=qr(N=L.r),A["!row"]=L.r,(ke.hidden||ke.hpt||ke.level!=null)&&(ke.hpt&&(ke.hpx=jo(ke.hpt)),Pt[ke.r]=ke);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(T={t:ke[2]},ke[2]){case"n":T.v=ke[1];break;case"s":se=ki[ke[1]],T.v=se.t,T.r=se.r;break;case"b":T.v=!!ke[1];break;case"e":T.v=ke[1],A.cellText!==!1&&(T.w=Ta[T.v]);break;case"str":T.t="s",T.v=ke[1];break;case"is":T.t="s",T.v=ke[1].t}if((O=R.CellXf[ke[0].iStyleRef])&&Wh(T,O.numFmtId,null,A,F,R),I=ke[0].c==-1?I+1:ke[0].c,A.dense?(_e[N]||(_e[N]=[]),_e[N][I]=T):_e[Ir(I)+te]=T,A.cellFormula){for(Ne=!1,He=0;He<Ue.length;++He){var Ht=Ue[He];L.r>=Ht[0].s.r&&L.r<=Ht[0].e.r&&I>=Ht[0].s.c&&I<=Ht[0].e.c&&(T.F=Ot(Ht[0]),Ne=!0)}!Ne&&3<ke.length&&(T.f=ke[3])}we.s.r>L.r&&(we.s.r=L.r),we.s.c>I&&(we.s.c=I),we.e.r<L.r&&(we.e.r=L.r),we.e.c<I&&(we.e.c=I),A.cellDates&&O&&T.t=="n"&&$a(oe[O.numFmtId])&&(vr=Pe(T.v))&&(T.t="d",T.v=new Date(vr.y,vr.m-1,vr.d,vr.H,vr.M,vr.S,vr.u)),tt&&(tt.type=="XLDAPR"&&(T.D=!0),tt=void 0);break;case 1:case 12:if(!A.sheetStubs||de)break;T={t:"z",v:void 0},I=ke[0].c==-1?I+1:ke[0].c,A.dense?(_e[N]||(_e[N]=[]),_e[N][I]=T):_e[Ir(I)+te]=T,we.s.r>L.r&&(we.s.r=L.r),we.s.c>I&&(we.s.c=I),we.e.r<L.r&&(we.e.r=L.r),we.e.c<I&&(we.e.c=I),tt&&(tt.type=="XLDAPR"&&(T.D=!0),tt=void 0);break;case 176:qe.push(ke);break;case 49:tt=((A.xlmeta||{}).Cell||[])[ke-1];break;case 494:var vr=x["!id"][ke.relId];for(vr?(ke.Target=vr.Target,ke.loc&&(ke.Target+="#"+ke.loc),ke.Rel=vr):ke.relId==""&&(ke.Target="#"+ke.loc),N=ke.rfx.s.r;N<=ke.rfx.e.r;++N)for(I=ke.rfx.s.c;I<=ke.rfx.e.c;++I)A.dense?(_e[N]||(_e[N]=[]),_e[N][I]||(_e[N][I]={t:"z",v:void 0}),_e[N][I].l=ke):(X=St({c:I,r:N}),_e[X]||(_e[X]={t:"z",v:void 0}),_e[X].l=ke);break;case 426:if(!A.cellFormula)break;Ue.push(ke),(ce=A.dense?_e[N][I]:_e[Ir(I)+te]).f=Ms(ke[1],0,{r:L.r,c:I},Fe,A),ce.F=Ot(ke[0]);break;case 427:if(!A.cellFormula)break;Oe[St(ke[0].s)]=ke[1],(ce=A.dense?_e[N][I]:_e[Ir(I)+te]).f=Ms(ke[1],0,{r:L.r,c:I},Fe,A);break;case 60:if(!A.cellStyles)break;for(;ke.e>=ke.s;)gt[ke.e--]={width:ke.w/256,hidden:!!(1&ke.flags),level:ke.level},Xe||(Xe=!0,bc(ke.w/256)),Ua(gt[ke.e+1]);break;case 161:_e["!autofilter"]={ref:Ot(ke)};break;case 476:_e["!margins"]=ke;break;case 147:C.Sheets[v]||(C.Sheets[v]={}),ke.name&&(C.Sheets[v].CodeName=ke.name),(ke.above||ke.left)&&(_e["!outline"]={above:ke.above,left:ke.left});break;case 137:C.Views||(C.Views=[{}]),C.Views[0]||(C.Views[0]={}),ke.RTL&&(C.Views[0].RTL=!0);break;case 485:break;case 64:case 1053: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:de=!0;break;case 36:de=!1;break;case 37:de=!0;break;case 38:de=!1;break;default:if(!Et.T&&(!de||A.WTF))throw new Error("Unexpected record 0x"+$t.toString(16))}},A),delete A.supbooks,delete A["!row"],!_e["!ref"]&&(we.s.r<2e6||P&&(0<P.e.r||0<P.e.c||0<P.s.r||0<P.s.c))&&(_e["!ref"]=Ot(P||we)),A.sheetRows&&_e["!ref"]&&(g=Qt(_e["!ref"]),A.sheetRows<=+g.e.r&&(g.e.r=A.sheetRows-1,g.e.r>we.e.r&&(g.e.r=we.e.r),g.e.r<g.s.r&&(g.s.r=g.e.r),g.e.c>we.e.c&&(g.e.c=we.e.c),g.e.c<g.s.c&&(g.s.c=g.e.c),_e["!fullref"]=_e["!ref"],_e["!ref"]=Ot(g))),0<qe.length&&(_e["!merges"]=qe),0<gt.length&&(_e["!cols"]=gt),0<Pt.length&&(_e["!rows"]=Pt),_e}:b2)(a,c,l,f,h,d,p)}function Y2(a,i,l,c,f,h){return i.slice(-4)===".bin"?function(d,p,g,y,v){if(!d)return d;y=y||{"!id":{}};var x={"!type":"chart","!drawel":null,"!rel":""},C=!1;return Ea(d,function(F,R,A){switch(A){case 550:x["!rel"]=F;break;case 651:v.Sheets[g]||(v.Sheets[g]={}),F.name&&(v.Sheets[g].CodeName=F.name);break;case 562:case 652:case 669:case 679:case 551:case 552:case 476:case 3072:break;case 35:C=!0;break;case 36:C=!1;break;case 37:break;case 38:break;default:if(!(0<R.T)){if(!(R.T<0)){if(!C||p.WTF)throw new Error("Unexpected record 0x"+A.toString(16))}}}},p),y["!id"][x["!rel"]]&&(x["!drawel"]=y["!id"][x["!rel"]]),x}(a,c,l,f,h):function(d,p,g,y){if(!d)return d;g=g||{"!id":{}};var v={"!type":"chart","!drawel":null,"!rel":""},x=d.match(Hh);return x&&Dc(x[0],0,y,p),(d=d.match(/drawing r:id="(.*?)"/))&&(v["!rel"]=d[1]),g["!id"][v["!rel"]]&&(v["!drawel"]=g["!id"][v["!rel"]]),v}(a,l,f,h)}function q2(a,i,l,c){return(i.slice(-4)===".bin"?function(f,h,d){var p,g={NumberFmt:[]};for(p in oe)g.NumberFmt[p]=oe[p];g.CellXf=[],g.Fonts=[];var y=[],v=!1;return Ea(f,function(x,C,F){switch(F){case 44:g.NumberFmt[x[0]]=x[1],pa(x[1],x[0]);break;case 43:g.Fonts.push(x),x.color.theme!=null&&h&&h.themeElements&&h.themeElements.clrScheme&&(x.color.rgb=Mn(h.themeElements.clrScheme[x.color.theme].rgb,x.color.tint||0));break;case 1025:case 45:case 46:break;case 47:y[y.length-1]==617&&g.CellXf.push(x);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:v=!0;break;case 36:v=!1;break;case 37:y.push(F),v=!0;break;case 38:y.pop(),v=!1;break;default:if(0<C.T)y.push(F);else if(C.T<0)y.pop();else if(!v||d.WTF&&y[y.length-1]!=37)throw new Error("Unexpected record 0x"+F.toString(16))}}),g}:Dg)(a,l,c)}function K2(a,i,l){return i.slice(-4)===".bin"?(c=l,h=!(f=[]),Ea(a,function(d,p,g){switch(g){case 159:f.Count=d[0],f.Unique=d[1];break;case 19:f.push(d);break;case 160:return 1;case 35:h=!0;break;case 36:h=!1;break;default:if(p.T,!h||c.WTF)throw new Error("Unexpected record 0x"+g.toString(16))}}),f):function(d,p){var g=[],y="";if(!d)return g;if(d=d.match(dg)){y=d[2].replace(hg,"").split(pg);for(var v=0;v!=y.length;++v){var x=hc(y[v].trim(),p);x!=null&&(g[g.length]=x)}d=Dt(d[1]),g.Count=d.count,g.Unique=d.uniqueCount}return g}(a,l);var c,f,h}function J2(a,i,l){return i.slice(-4)===".bin"?(c=l,f=[],h=[],p=!(d={}),Ea(a,function(g,y,v){switch(v){case 632:h.push(g);break;case 635:d=g;break;case 637:d.t=g.t,d.h=g.h,d.r=g.r;break;case 636:if(d.author=h[d.iauthor],delete d.iauthor,c.sheetRows&&d.rfx&&c.sheetRows<=d.rfx.r)break;d.t||(d.t=""),delete d.rfx,f.push(d);break;case 3072:break;case 35:p=!0;break;case 36:p=!1;break;case 37:case 38:break;default:if(!y.T&&(!p||c.WTF))throw new Error("Unexpected record 0x"+v.toString(16))}}),f):function(g,y){if(g.match(/<(?:\w+:)?comments *\/>/))return[];var v=[],x=[],C=g.match(/<(?:\w+:)?authors>([\s\S]*)<\/(?:\w+:)?authors>/);return C&&C[1]&&C[1].split(/<\/\w*:?author>/).forEach(function(F){F===""||F.trim()===""||(F=F.match(/<(?:\w+:)?author[^>]*>(.*)/))&&v.push(F[1])}),(g=g.match(/<(?:\w+:)?commentList>([\s\S]*)<\/(?:\w+:)?commentList>/))&&g[1]&&g[1].split(/<\/\w*:?comment>/).forEach(function(F){var R,A;F===""||F.trim()===""||(R=F.match(/<(?:\w+:)?comment[^>]*>/))&&(R={author:(A=Dt(R[0])).authorId&&v[A.authorId]||"sheetjsghost",ref:A.ref,guid:A.guid},A=Gr(A.ref),y.sheetRows&&y.sheetRows<=A.r||(F=!!(F=F.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!F[1]&&hc(F[1])||{r:"",t:"",h:""},R.r=F.r,F.r=="<t></t>"&&(F.t=F.h=""),R.t=(F.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),y.cellHTML&&(R.h=F.h),x.push(R)))}),x}(a,l);var c,f,h,d,p}function X2(a,i){return i.slice(-4)===".bin"?(l=[],Ea(a,function(c,f,h){if(h===63)l.push(c);else if(!f.T)throw new Error("Unexpected record 0x"+h.toString(16))}),l):function(c){var f=[];if(!c)return f;var h=1;return(c.match(_s)||[]).forEach(function(d){var p=Dt(d);switch(p[0]){case"<?xml":break;case"<calcChain":case"<calcChain>":case"</calcChain>":break;case"<c":delete p[0],p.i?h=p.i:p.i=h,f.push(p)}}),f}(a);var l}function Q2(a,i,l,c){if(l.slice(-4)===".bin")return function(f,h){if(!f)return f;var d=h||{},p=!1;Ea(f,function(g,y,v){switch(v){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:p=!0;break;case 36:p=!1;break;default:if(!y.T&&(!p||d.WTF))throw new Error("Unexpected record 0x"+v.toString(16))}},d)}(a,c)}function Z2(a,i,l){return i.slice(-4)===".bin"?(c={Types:[],Cell:[],Value:[]},f=l||{},d=!(h=[]),p=2,Ea(a,function(g,y,v){switch(v){case 335:c.Types.push({name:g.name});break;case 51:g.forEach(function(x){p==1?c.Cell.push({type:c.Types[x[0]-1].name,index:x[1]}):p==0&&c.Value.push({type:c.Types[x[0]-1].name,index:x[1]})});break;case 337:p=g?1:0;break;case 338:p=2;break;case 35:h.push(v),d=!0;break;case 36:h.pop(),d=!1;break;default:if(!y.T&&(!d||f.WTF&&h[h.length-1]!=35))throw new Error("Unexpected record 0x"+v.toString(16))}}),c):function(g,y){var v={Types:[],Cell:[],Value:[]};if(!g)return v;var x,C=!1,F=2;return g.replace(_s,function(R){var A=Dt(R);switch(ma(A[0])){case"<?xml":break;case"<metadata":case"</metadata>":break;case"<metadataTypes":case"</metadataTypes>":break;case"<metadataType":v.Types.push({name:A.name});break;case"</metadataType>":break;case"<futureMetadata":for(var P=0;P<v.Types.length;++P)v.Types[P].name==A.name&&(x=v.Types[P]);break;case"</futureMetadata>":case"<bk>":case"</bk>":break;case"<rc":F==1?v.Cell.push({type:v.Types[A.t-1].name,index:+A.v}):F==0&&v.Value.push({type:v.Types[A.t-1].name,index:+A.v});break;case"</rc>":break;case"<cellMetadata":F=1;break;case"</cellMetadata>":F=2;break;case"<valueMetadata":F=0;break;case"</valueMetadata>":F=2;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":C=!0;break;case"</ext>":C=!1;break;case"<rvb":if(!x)break;x.offsets||(x.offsets=[]),x.offsets.push(+A.i);break;default:if(!C&&y.WTF)throw new Error("unrecognized "+A[0]+" in metadata")}return R}),v}(a,l);var c,f,h,d,p}var Li,l0=/([\w:]+)=((?:")([^"]*)(?:")|(?:')([^']*)(?:'))/g,c0=/([\w:]+)=((?:")(?:[^"]*)(?:")|(?:')(?:[^']*)(?:'))/;function la(a,i){var l=a.split(/\s+/),c=[];if(i||(c[0]=l[0]),l.length===1)return c;var f,h,d,p=a.match(l0);if(p)for(d=0;d!=p.length;++d)(h=(f=p[d].match(c0))[1].indexOf(":"))===-1?c[f[1]]=f[2].slice(1,f[2].length-1):c[f[1].slice(0,6)==="xmlns:"?"xmlns"+f[1].slice(6):f[1].slice(h+1)]=f[2].slice(1,f[2].length-1);return c}function $2(a,i,l){if(a.t!=="z"){if(!l||l.cellText!==!1)try{a.t==="e"?a.w=a.w||Ta[a.v]:i==="General"?a.t==="n"?(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v):a.w=kr(a.v):a.w=(c=i||"General",f=a.v,(c=Li[c]||pr(c))==="General"?kr(f):Us(c,f))}catch(d){if(l.WTF)throw d}var c,f;try{var h=Li[i]||i||"General";l.cellNF&&(a.z=h),l.cellDates&&a.t=="n"&&$a(h)&&(h=Pe(a.v))&&(a.t="d",a.v=new Date(h.y,h.m-1,h.d,h.H,h.M,h.S,h.u))}catch(d){if(l.WTF)throw d}}}function Ec(a,i){var l=i||{};Lo();var c,f=V(Nl(a)),h=(f=l.type=="binary"||l.type=="array"||l.type=="base64"?e!==void 0?e.utils.decode(65001,E(f)):Er(f):f).slice(0,1024).toLowerCase(),d=!1;if((1023&(h=h.replace(/".*?"/g,"")).indexOf(">"))>Math.min(1023&h.indexOf(","),1023&h.indexOf(";"))){var p=Rr(l);return p.type="string",Uo.to_workbook(f,p)}if(h.indexOf("<?xml")==-1&&["html","table","head","meta","script","style","div"].forEach(function(q){0<=h.indexOf("<"+q)&&(d=!0)}),d)return function(q,Ee){if(q=q.match(/<table[\s\S]*?>[\s\S]*?<\/table>/gi),!q||q.length==0)throw new Error("Invalid HTML: could not find <table>");if(q.length==1)return Va(d0(q[0],Ee),Ee);var ue=Gc();return q.forEach(function(me,le){jc(ue,d0(me,Ee),"Sheet"+(le+1))}),ue}(f,l);Li={"General Number":"General","General Date":oe[22],"Long Date":"dddd, mmmm dd, yyyy","Medium Date":oe[15],"Short Date":oe[14],"Long Time":oe[19],"Medium Time":oe[18],"Short Time":oe[20],Currency:'"$"#,##0.00_);[Red]\\("$"#,##0.00\\)',Fixed:oe[2],Standard:oe[4],Percent:oe[10],Scientific:oe[11],"Yes/No":'"Yes";"Yes";"No";@',"True/False":'"True";"True";"False";@',"On/Off":'"Yes";"Yes";"No";@'};var g,y=[],v,x={},C=[],F=l.dense?[]:{},R="",A={},P={},L=la('<Data ss:Type="String">'),T=0,O=0,N=0,I={s:{r:2e6,c:2e6},e:{r:0,c:0}},X={},se={},te="",ce=0,_e=[],we={},de={},Re=0,qe=[],He=[],Ne={},Ue=[],Oe=!1,Fe=[],$e=[],tt={},gt=0,Pt=0,Xe={Sheets:[],WBProps:{date1904:!1}},ke={};ui.lastIndex=0,f=f.replace(/<!--([\s\S]*?)-->/gm,"");for(var Et,$t,Ht,vr,Kr="";c=ui.exec(f);)switch(c[3]=(Kr=c[3]).toLowerCase()){case"data":if(Kr=="data"){if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[3],!0]);break}if(y[y.length-1][1])break;c[1]==="/"?function(q,Ee,ue,me,le,be,Le,nt,Ze,Ye){var st="General",ut=me.StyleID,dt={};Ye=Ye||{};var ze=[],Me=0;for((ut=ut===void 0&&nt?nt.StyleID:ut)===void 0&&Le&&(ut=Le.StyleID);be[ut]!==void 0&&(be[ut].nf&&(st=be[ut].nf),be[ut].Interior&&ze.push(be[ut].Interior),be[ut].Parent);)ut=be[ut].Parent;switch(ue.Type){case"Boolean":me.t="b",me.v=Nr(q);break;case"String":me.t="s",me.r=du(pr(q)),me.v=-1<q.indexOf("<")?pr(Ee||q).replace(/<.*?>/g,""):me.r;break;case"DateTime":q.slice(-1)!="Z"&&(q+="Z"),me.v=(Pr(q)-new Date(Date.UTC(1899,11,30)))/864e5,me.v!=me.v?me.v=pr(q):me.v<60&&(me.v=me.v-1),st&&st!="General"||(st="yyyy-mm-dd");case"Number":me.v===void 0&&(me.v=+q),me.t||(me.t="n");break;case"Error":me.t="e",me.v=Uu[q],Ye.cellText!==!1&&(me.w=q);break;default:q==""&&Ee==""?me.t="z":(me.t="s",me.v=du(Ee||q))}if($2(me,st,Ye),Ye.cellFormula!==!1)if(me.Formula)ue=pr(me.Formula),ue.charCodeAt(0)==61&&(ue=ue.slice(1)),me.f=Ho(ue,le),delete me.Formula,me.ArrayRange=="RC"?me.F=Ho("RC:RC",le):me.ArrayRange&&(me.F=Ho(me.ArrayRange,le),Ze.push([Qt(me.F),me.F]));else for(Me=0;Me<Ze.length;++Me)le.r>=Ze[Me][0].s.r&&le.r<=Ze[Me][0].e.r&&le.c>=Ze[Me][0].s.c&&le.c<=Ze[Me][0].e.c&&(me.F=Ze[Me][1]);Ye.cellStyles&&(ze.forEach(function(ht){!dt.patternType&&ht.patternType&&(dt.patternType=ht.patternType)}),me.s=dt),me.StyleID!==void 0&&(me.ixfe=me.StyleID)}(f.slice(T,c.index),te,L,y[y.length-1][0]=="comment"?Ne:A,{c:O,r:N},X,Ue[O],P,Fe,l):(te="",L=la(c[0]),T=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(0<He.length&&(A.c=He),(!l.sheetRows||l.sheetRows>N)&&A.v!==void 0&&(l.dense?(F[N]||(F[N]=[]),F[N][O]=A):F[Ir(O)+qr(N)]=A),A.HRef&&(A.l={Target:pr(A.HRef)},A.HRefScreenTip&&(A.l.Tooltip=A.HRefScreenTip),delete A.HRef,delete A.HRefScreenTip),(A.MergeAcross||A.MergeDown)&&(gt=O+(0|parseInt(A.MergeAcross,10)),Pt=N+(0|parseInt(A.MergeDown,10)),_e.push({s:{c:O,r:N},e:{c:gt,r:Pt}})),l.sheetStubs)if(A.MergeAcross||A.MergeDown){for(var Z=O;Z<=gt;++Z)for(var wr=N;wr<=Pt;++wr)(O<Z||N<wr)&&(l.dense?(F[wr]||(F[wr]=[]),F[wr][Z]={t:"z"}):F[Ir(Z)+qr(wr)]={t:"z"});O=gt+1}else++O;else A.MergeAcross?O=gt+1:++O;else(O=(A=function(q){var Ee={};if(q.split(/\s+/).length===1)return Ee;var ue,me,le,be=q.match(l0);if(be)for(le=0;le!=be.length;++le)(me=(ue=be[le].match(c0))[1].indexOf(":"))===-1?Ee[ue[1]]=ue[2].slice(1,ue[2].length-1):Ee[ue[1].slice(0,6)==="xmlns:"?"xmlns"+ue[1].slice(6):ue[1].slice(me+1)]=ue[2].slice(1,ue[2].length-1);return Ee}(c[0])).Index?+A.Index-1:O)<I.s.c&&(I.s.c=O),O>I.e.c&&(I.e.c=O),c[0].slice(-2)==="/>"&&++O,He=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(N<I.s.r&&(I.s.r=N),N>I.e.r&&(I.e.r=N),c[0].slice(-2)==="/>"&&(P=la(c[0])).Index&&(N=+P.Index-1),O=0,++N):((P=la(c[0])).Index&&(N=+P.Index-1),tt={},P.AutoFitHeight!="0"&&!P.Height||(tt.hpx=parseInt(P.Height,10),tt.hpt=Fi(tt.hpx),$e[N]=tt),P.Hidden=="1"&&(tt.hidden=!0,$e[N]=tt));break;case"worksheet":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"));C.push(R),I.s.r<=I.e.r&&I.s.c<=I.e.c&&(F["!ref"]=Ot(I),l.sheetRows&&l.sheetRows<=I.e.r&&(F["!fullref"]=F["!ref"],I.e.r=l.sheetRows-1,F["!ref"]=Ot(I))),_e.length&&(F["!merges"]=_e),0<Ue.length&&(F["!cols"]=Ue),0<$e.length&&(F["!rows"]=$e),x[R]=F}else I={s:{r:2e6,c:2e6},e:{r:0,c:0}},N=O=0,y.push([c[3],!1]),g=la(c[0]),R=pr(g.Name),F=l.dense?[]:{},_e=[],Fe=[],$e=[],ke={name:R,Hidden:0},Xe.Sheets.push(ke);break;case"table":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else{if(c[0].slice(-2)=="/>")break;y.push([c[3],!1]),Oe=!(Ue=[])}break;case"style":c[1]==="/"?($t=X,Ht=se,(vr=l).cellStyles&&(!Ht.Interior||(vr=Ht.Interior).Pattern&&(vr.patternType=Ag[vr.Pattern]||vr.Pattern)),$t[Ht.ID]=Ht):se=la(c[0]);break;case"numberformat":se.nf=pr(la(c[0]).Format||"General"),Li[se.nf]&&(se.nf=Li[se.nf]);for(var _r=0;_r!=392&&oe[_r]!=se.nf;++_r);if(_r==392){for(_r=57;_r!=392;++_r)if(oe[_r]==null){pa(se.nf,_r);break}}break;case"column":if(y[y.length-1][0]!=="table")break;if((v=la(c[0])).Hidden&&(v.hidden=!0,delete v.Hidden),v.Width&&(v.wpx=parseInt(v.Width,10)),!Oe&&10<v.wpx){Oe=!0,Fs=hh;for(var ns=0;ns<Ue.length;++ns)Ue[ns]&&Ua(Ue[ns])}Oe&&Ua(v),Ue[v.Index-1||Ue.length]=v;for(var $s=0;$s<+v.Span;++$s)Ue[Ue.length]=Rr(v);break;case"namedrange":if(c[1]==="/")break;Xe.Names||(Xe.Names=[]);var B=Dt(c[0]),he={Name:B.Name,Ref:Ho(B.RefersTo.slice(1),{r:0,c:0})};0<Xe.Sheets.length&&(he.Sheet=Xe.Sheets.length-1),Xe.Names.push(he);break;case"namedcell":case"b":case"i":case"u":case"s":case"em":case"h2":case"h3":case"sub":case"sup":case"span":case"alignment":case"borders":case"border":break;case"font":if(c[0].slice(-2)==="/>")break;c[1]==="/"?te+=f.slice(ce,c.index):ce=c.index+c[0].length;break;case"interior":if(!l.cellStyles)break;se.Interior=la(c[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(c[0].slice(-2)==="/>")break;c[1]==="/"?(Ht=we,B=Kr,he=f.slice(Re,c.index),Ht[B=(Xu=Xu||nn(sc))[B]||B]=he):Re=c.index+c[0].length;break;case"paragraphs":break;case"styles":case"workbook":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else y.push([c[3],!1]);break;case"comment":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"));(Et=Ne).t=Et.v||"",Et.t=Et.t.replace(/\r\n/g,` `).replace(/\r/g,` `),Et.v=Et.w=Et.ixfe=void 0,He.push(Ne)}else y.push([c[3],!1]),Ne={a:(g=la(c[0])).Author};break;case"autofilter":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&(Et=la(c[0]),F["!autofilter"]={ref:Ho(Et.Range).replace(/\$/g,"")},y.push([c[3],!0]));break;case"name":break;case"datavalidation":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[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(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"))}else c[0].charAt(c[0].length-2)!=="/"&&y.push([c[3],!0]);break;case"null":break;default:if(y.length==0&&c[3]=="document"||y.length==0&&c[3]=="uof")return F0(f,l);var J=!0;switch(y[y.length-1][0]){case"officedocumentsettings":switch(c[3]){case"allowpng":case"removepersonalinformation":case"downloadcomponents":case"locationofcomponents":case"colors":case"color":case"index":case"rgb":case"targetscreensize":case"readonlyrecommended":break;default:J=!1}break;case"componentoptions":switch(c[3]){case"toolbar":case"hideofficelogo":case"spreadsheetautofit":case"label":case"caption":case"maxheight":case"maxwidth":case"nextsheetnumber":break;default:J=!1}break;case"excelworkbook":switch(c[3]){case"date1904":Xe.WBProps.date1904=!0;break;case"windowheight":case"windowwidth":case"windowtopx":case"windowtopy":case"tabratio":case"protectstructure":case"protectwindow":case"protectwindows":case"activesheet":case"displayinknotes":case"firstvisiblesheet":case"supbook":case"sheetname":case"sheetindex":case"sheetindexfirst":case"sheetindexlast":case"dll":case"acceptlabelsinformulas":case"donotsavelinkvalues":case"iteration":case"maxiterations":case"maxchange":case"path":case"xct":case"count":case"selectedsheets":case"calculation":case"uncalced":case"startupprompt":case"crn":case"externname":case"formula":case"colfirst":case"collast":case"wantadvise":case"boolean":case"error":case"text":case"ole":case"noautorecover":case"publishobjects":case"donotcalculatebeforesave":case"number":case"refmoder1c1":case"embedsavesmarttags":break;default:J=!1}break;case"workbookoptions":switch(c[3]){case"owcversion":case"height":case"width":break;default:J=!1}break;case"worksheetoptions":switch(c[3]){case"visible":if(c[0].slice(-2)!=="/>")if(c[1]==="/")switch(f.slice(Re,c.index)){case"SheetHidden":ke.Hidden=1;break;case"SheetVeryHidden":ke.Hidden=2}else Re=c.index+c[0].length;break;case"header":F["!margins"]||ho(F["!margins"]={},"xlml"),isNaN(+Dt(c[0]).Margin)||(F["!margins"].header=+Dt(c[0]).Margin);break;case"footer":F["!margins"]||ho(F["!margins"]={},"xlml"),isNaN(+Dt(c[0]).Margin)||(F["!margins"].footer=+Dt(c[0]).Margin);break;case"pagemargins":var fe=Dt(c[0]);F["!margins"]||ho(F["!margins"]={},"xlml"),isNaN(+fe.Top)||(F["!margins"].top=+fe.Top),isNaN(+fe.Left)||(F["!margins"].left=+fe.Left),isNaN(+fe.Right)||(F["!margins"].right=+fe.Right),isNaN(+fe.Bottom)||(F["!margins"].bottom=+fe.Bottom);break;case"displayrighttoleft":Xe.Views||(Xe.Views=[]),Xe.Views[0]||(Xe.Views[0]={}),Xe.Views[0].RTL=!0;break;case"freezepanes":case"frozennosplit":break;case"splithorizontal":case"splitvertical":case"donotdisplaygridlines":case"activerow":case"activecol":case"toprowbottompane":case"leftcolumnrightpane":case"unsynced":case"print":case"printerrors":case"panes":case"scale":case"pane":case"number":case"layout":case"pagesetup":case"selected":case"protectobjects":case"enableselection":case"protectscenarios":case"validprinterinfo":case"horizontalresolution":case"verticalresolution":case"numberofcopies":case"activepane":case"toprowvisible":case"leftcolumnvisible":case"fittopage":case"rangeselection":case"papersizeindex":case"pagelayoutzoom":case"pagebreakzoom":case"filteron":case"fitwidth":case"fitheight":case"commentslayout":case"zoom":case"lefttoright":case"gridlines":case"allowsort":case"allowfilter":case"allowinsertrows":case"allowdeleterows":case"allowinsertcols":case"allowdeletecols":case"allowinserthyperlinks":case"allowformatcells":case"allowsizecols":case"allowsizerows":break;case"nosummaryrowsbelowdetail":F["!outline"]||(F["!outline"]={}),F["!outline"].above=!0;break;case"tabcolorindex":case"donotdisplayheadings":case"showpagelayoutzoom":break;case"nosummarycolumnsrightdetail":F["!outline"]||(F["!outline"]={}),F["!outline"].left=!0;break;case"blackandwhite":case"donotdisplayzeros":case"displaypagebreak":case"rowcolheadings":case"donotdisplayoutline":case"noorientation":case"allowusepivottables":case"zeroheight":case"viewablerange":case"selection":case"protectcontents":break;default:J=!1}break;case"pivottable":case"pivotcache":switch(c[3]){case"immediateitemsondrop":case"showpagemultipleitemlabel":case"compactrowindent":case"location":case"pivotfield":case"orientation":case"layoutform":case"layoutsubtotallocation":case"layoutcompactrow":case"position":case"pivotitem":case"datatype":case"datafield":case"sourcename":case"parentfield":case"ptlineitems":case"ptlineitem":case"countofsameitems":case"item":case"itemtype":case"ptsource":case"cacheindex":case"consolidationreference":case"filename":case"reference":case"nocolumngrand":case"norowgrand":case"blanklineafteritems":case"hidden":case"subtotal":case"basefield":case"mapchilditems":case"function":case"refreshonfileopen":case"printsettitles":case"mergelabels":case"defaultversion":case"refreshname":case"refreshdate":case"refreshdatecopy":case"versionlastrefresh":case"versionlastupdate":case"versionupdateablemin":case"versionrefreshablemin":case"calculation":break;default:J=!1}break;case"pagebreaks":switch(c[3]){case"colbreaks":case"colbreak":case"rowbreaks":case"rowbreak":case"colstart":case"colend":case"rowend":break;default:J=!1}break;case"autofilter":switch(c[3]){case"autofiltercolumn":case"autofiltercondition":case"autofilterand":case"autofilteror":break;default:J=!1}break;case"querytable":switch(c[3]){case"id":case"autoformatfont":case"autoformatpattern":case"querysource":case"querytype":case"enableredirections":case"refreshedinxl9":case"urlstring":case"htmltables":case"connection":case"commandtext":case"refreshinfo":case"notitles":case"nextid":case"columninfo":case"overwritecells":case"donotpromptforfile":case"textwizardsettings":case"source":case"number":case"decimal":case"thousandseparator":case"trailingminusnumbers":case"formatsettings":case"fieldtype":case"delimiters":case"tab":case"comma":case"autoformatname":case"versionlastedit":case"versionlastrefresh":break;default:J=!1}break;case"datavalidation":switch(c[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":case"cellrangelist":break;default:J=!1}break;case"sorting":case"conditionalformatting":switch(c[3]){case"range":case"type":case"min":case"max":case"sort":case"descending":case"order":case"casesensitive":case"value":case"errorstyle":case"errormessage":case"errortitle":case"cellrangelist":case"inputmessage":case"inputtitle":case"combohide":case"inputhide":case"condition":case"qualifier":case"useblank":case"value1":case"value2":case"format":break;default:J=!1}break;case"mapinfo":case"schema":case"data":switch(c[3]){case"map":case"entry":case"range":case"xpath":case"field":case"xsdtype":case"filteron":case"aggregate":case"elementtype":case"attributetype":break;case"schema":case"element":case"complextype":case"datatype":case"all":case"attribute":case"extends":case"row":break;default:J=!1}break;case"smarttags":break;default:J=!1}if(J||c[3].match(/!\[CDATA/))break;if(!y[y.length-1][1])throw"Unrecognized tag: "+c[3]+"|"+y.join("|");if(y[y.length-1][0]==="customdocumentproperties"){if(c[0].slice(-2)==="/>")break;c[1]==="/"?function(q,Ee,ue,me){var le=me;switch((ue[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":le=Nr(me);break;case"i2":case"int":le=parseInt(me,10);break;case"r4":case"float":le=parseFloat(me);break;case"date":case"dateTime.tz":le=Pr(me);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+ue[0])}q[pr(Ee)]=le}(de,Kr,qe,f.slice(Re,c.index)):Re=(qe=c).index+c[0].length;break}if(l.WTF)throw"Unrecognized tag: "+c[3]+"|"+y.join("|")}return p={},l.bookSheets||l.bookProps||(p.Sheets=x),p.SheetNames=C,p.Workbook=Xe,p.SSF=Rr(oe),p.Props=we,p.Custprops=de,p}function Tc(a,i){switch(Pc(i=i||{}),i.type||"base64"){case"base64":return Ec(z(a),i);case"binary":case"buffer":case"file":return Ec(a,i);case"array":return Ec(ct(a),i)}}function eb(a,i){var l,c,f,h,d,p,g,y=[];return a.Props&&y.push((l=a.Props,c=i,f=[],Hr(sc).map(function(v){for(var x=0;x<Ks.length;++x)if(Ks[x][1]==v)return Ks[x];for(x=0;x<no.length;++x)if(no[x][1]==v)return no[x];throw v}).forEach(function(v){var x;l[v[1]]!=null&&(x=(c&&c.Props&&c.Props[v[1]]!=null?c.Props:l)[v[1]],typeof(x=v[2]==="date"?new Date(x).toISOString().replace(/\.\d*Z/,"Z"):x)=="number"?x=String(x):x===!0||x===!1?x=x?"1":"0":x instanceof Date&&(x=new Date(x).toISOString().replace(/\.\d*Z/,"")),f.push(ms(sc[v[1]]||v[1],x)))}),je("DocumentProperties",f.join(""),{xmlns:Gs.o}))),a.Custprops&&y.push((h=a.Props,d=a.Custprops,p=["Worksheets","SheetNames"],a="CustomDocumentProperties",g=[],h&&Hr(h).forEach(function(v){if(Object.prototype.hasOwnProperty.call(h,v)){for(var x=0;x<Ks.length;++x)if(v==Ks[x][1])return;for(x=0;x<no.length;++x)if(v==no[x][1])return;for(x=0;x<p.length;++x)if(v==p[x])return;var C="string",F=typeof(F=h[v])=="number"?(C="float",String(F)):F===!0||F===!1?(C="boolean",F?"1":"0"):String(F);g.push(je(cu(v),F,{"dt:dt":C}))}}),d&&Hr(d).forEach(function(v){var x,C;Object.prototype.hasOwnProperty.call(d,v)&&(h&&Object.prototype.hasOwnProperty.call(h,v)||(x="string",C=typeof(C=d[v])=="number"?(x="float",String(C)):C===!0||C===!1?(x="boolean",C?"1":"0"):C instanceof Date?(x="dateTime.tz",C.toISOString()):String(C),g.push(je(cu(v),C,{"dt:dt":x}))))}),"<"+a+' xmlns="'+Gs.o+'">'+g.join("")+"</"+a+">")),y.join("")}function f0(a){return je("NamedRange",null,{"ss:Name":a.Name,"ss:RefersTo":"="+wc(a.Ref,{r:0,c:0})})}function tb(a,i,l,c,f,h,d){if(!a||a.v==null&&a.f==null)return"";var p={};if(a.f&&(p["ss:Formula"]="="+Fr(wc(a.f,d))),a.F&&a.F.slice(0,i.length)==i&&(i=Gr(a.F.slice(i.length+1)),p["ss:ArrayRange"]="RC:R"+(i.r==d.r?"":"["+(i.r-d.r)+"]")+"C"+(i.c==d.c?"":"["+(i.c-d.c)+"]")),a.l&&a.l.Target&&(p["ss:HRef"]=Fr(a.l.Target),a.l.Tooltip&&(p["x:HRefScreenTip"]=Fr(a.l.Tooltip))),l["!merges"])for(var g=l["!merges"],y=0;y!=g.length;++y)g[y].s.c==d.c&&g[y].s.r==d.r&&(g[y].e.c>g[y].s.c&&(p["ss:MergeAcross"]=g[y].e.c-g[y].s.c),g[y].e.r>g[y].s.r&&(p["ss:MergeDown"]=g[y].e.r-g[y].s.r));var v="",x="";switch(a.t){case"z":if(!c.sheetStubs)return"";break;case"n":v="Number",x=String(a.v);break;case"b":v="Boolean",x=a.v?"1":"0";break;case"e":v="Error",x=Ta[a.v];break;case"d":v="DateTime",x=new Date(a.v).toISOString(),a.z==null&&(a.z=a.z||oe[14]);break;case"s":v="String",x=((a.v||"")+"").replace(Rl,function(C){return kl[C]}).replace(fu,function(C){return"&#x"+C.charCodeAt(0).toString(16).toUpperCase()+";"})}return l=Ga(c.cellXfs,a,c),p["ss:StyleID"]="s"+(21+l),p["ss:Index"]=d.c+1,l=a.v!=null?x:"",l=a.t=="z"?"":'<Data ss:Type="'+v+'">'+l+"</Data>",0<(a.c||[]).length&&(l+=a.c.map(function(C){var F=je("ss:Data",(C.t||"").replace(/(\r\n|[\r\n])/g," "),{xmlns:"http://www.w3.org/TR/REC-html40"});return je("Comment",F,{"ss:Author":C.a})}).join("")),je("Cell",l,p)}function rb(a,i){if(!a["!ref"])return"";var l=Qt(a["!ref"]),c=a["!merges"]||[],f=0,h=[];a["!cols"]&&a["!cols"].forEach(function(P,N){Ua(P);var T=!!P.width,O=Bn(N,P),N={"ss:Index":N+1};T&&(N["ss:Width"]=xi(O.width)),P.hidden&&(N["ss:Hidden"]="1"),h.push(je("Column",null,N))});for(var d,p,g=Array.isArray(a),y=l.s.r;y<=l.e.r;++y){for(var v=[(d=y,p=(a["!rows"]||[])[y],d='<Row ss:Index="'+(d+1)+'"',p&&(p.hpt&&!p.hpx&&(p.hpx=jo(p.hpt)),p.hpx&&(d+=' ss:AutoFitHeight="0" ss:Height="'+p.hpx+'"'),p.hidden&&(d+=' ss:Hidden="1"')),d+">")],x=l.s.c;x<=l.e.c;++x){for(var C,F,R,A=!1,f=0;f!=c.length;++f)if(!(c[f].s.c>x||c[f].s.r>y||c[f].e.c<x||c[f].e.r<y)){c[f].s.c==x&&c[f].s.r==y||(A=!0);break}A||(F=St(C={r:y,c:x}),R=g?(a[y]||[])[x]:a[F],v.push(tb(R,F,a,i,0,0,C)))}v.push("</Row>"),2<v.length&&h.push(v.join(""))}return h.join("")}function sb(a,i,l){var c=[],h=l.SheetNames[a],f=l.Sheets[h],h=f?function(d,p,g){if(!d||!((g||{}).Workbook||{}).Names)return"";for(var y=g.Workbook.Names,v=[],x=0;x<y.length;++x){var C=y[x];C.Sheet==p&&(C.Name.match(/^_xlfn\./)||v.push(f0(C)))}return v.join("")}(f,a,l):"";return 0<h.length&&c.push("<Names>"+h+"</Names>"),0<(h=f?rb(f,i):"").length&&c.push("<Table>"+h+"</Table>"),c.push(function(d,p,g){if(!d)return"";var y=[];if(d["!margins"]&&(y.push("<PageSetup>"),d["!margins"].header&&y.push(je("Header",null,{"x:Margin":d["!margins"].header})),d["!margins"].footer&&y.push(je("Footer",null,{"x:Margin":d["!margins"].footer})),y.push(je("PageMargins",null,{"x:Bottom":d["!margins"].bottom||"0.75","x:Left":d["!margins"].left||"0.7","x:Right":d["!margins"].right||"0.7","x:Top":d["!margins"].top||"0.75"})),y.push("</PageSetup>")),g&&g.Workbook&&g.Workbook.Sheets&&g.Workbook.Sheets[p])if(g.Workbook.Sheets[p].Hidden)y.push(je("Visible",g.Workbook.Sheets[p].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var v=0;v<p&&(!g.Workbook.Sheets[v]||g.Workbook.Sheets[v].Hidden);++v);v==p&&y.push("<Selected/>")}return((((g||{}).Workbook||{}).Views||[])[0]||{}).RTL&&y.push("<DisplayRightToLeft/>"),d["!protect"]&&(y.push(ms("ProtectContents","True")),d["!protect"].objects&&y.push(ms("ProtectObjects","True")),d["!protect"].scenarios&&y.push(ms("ProtectScenarios","True")),d["!protect"].selectLockedCells==null||d["!protect"].selectLockedCells?d["!protect"].selectUnlockedCells==null||d["!protect"].selectUnlockedCells||y.push(ms("EnableSelection","UnlockedCells")):y.push(ms("EnableSelection","NoSelection")),[["formatCells","AllowFormatCells"],["formatColumns","AllowSizeCols"],["formatRows","AllowSizeRows"],["insertColumns","AllowInsertCols"],["insertRows","AllowInsertRows"],["insertHyperlinks","AllowInsertHyperlinks"],["deleteColumns","AllowDeleteCols"],["deleteRows","AllowDeleteRows"],["sort","AllowSort"],["autoFilter","AllowFilter"],["pivotTables","AllowUsePivotTables"]].forEach(function(x){d["!protect"][x[0]]&&y.push("<"+x[1]+"/>")})),y.length==0?"":je("WorksheetOptions",y.join(""),{xmlns:Gs.x})}(f,a,l)),c.join("")}function ab(a,i){i=i||{},a.SSF||(a.SSF=Rr(oe)),a.SSF&&(Lo(),ii(a.SSF),i.revssf=ln(a.SSF),i.revssf[a.SSF[65535]]=0,i.ssf=a.SSF,i.cellXfs=[],Ga(i.cellXfs,{},{revssf:{General:0}}));var l=[];l.push(eb(a,i)),l.push(""),l.push(""),l.push("");for(var c,f=0;f<a.SheetNames.length;++f)l.push(je("Worksheet",sb(f,i,a),{"ss:Name":Fr(a.SheetNames[f])}));return l[2]=(c=['<Style ss:ID="Default" ss:Name="Normal"><NumberFormat/></Style>'],i.cellXfs.forEach(function(h,d){var p=[];p.push(je("NumberFormat",null,{"ss:Format":Fr(oe[h.numFmtId])})),d={"ss:ID":"s"+(21+d)},c.push(je("Style",p.join(""),d))}),je("Styles",c.join(""))),l[3]=function(h){if(!((h||{}).Workbook||{}).Names)return"";for(var d=h.Workbook.Names,p=[],g=0;g<d.length;++g){var y=d[g];y.Sheet==null&&(y.Name.match(/^_xlfn\./)||p.push(f0(y)))}return je("Names",p.join(""))}(a),Xr+je("Workbook",l.join(""),{xmlns:Gs.ss,"xmlns:o":Gs.o,"xmlns:x":Gs.x,"xmlns:ss":Gs.ss,"xmlns:dt":Gs.dt,"xmlns:html":Gs.html})}function ob(a){var i={},l=a.content;return l.l=28,i.AnsiUserType=l.read_shift(0,"lpstr-ansi"),i.AnsiClipboardFormat=Nu(l,1),l.length-l.l<=4?i:(a=l.read_shift(4),a==0||40<a?i:(l.l-=4,i.Reserved1=l.read_shift(0,"lpstr-ansi"),l.length-l.l<=4||(a=l.read_shift(4))!==1907505652?i:(i.UnicodeClipboardFormat=Nu(l,2),(a=l.read_shift(4))==0||40<a?i:(l.l-=4,void(i.Reserved2=l.read_shift(0,"lpwstr"))))))}var ib=[60,1084,2066,2165,2175];function va(a,i,l){if(a.t!=="z"&&a.XF){var c,f=0;try{f=a.z||a.XF.numFmtId||0,i.cellNF&&(a.z=oe[f])}catch(h){if(i.WTF)throw h}if(!i||i.cellText!==!1)try{a.t==="e"?a.w=a.w||Ta[a.v]:f===0||f=="General"?a.t==="n"?(0|a.v)===a.v?a.w=a.v.toString(10):a.w=Ns(a.v):a.w=kr(a.v):a.w=Us(f,a.v,{date1904:!!l,dateNF:i&&i.dateNF})}catch(h){if(i.WTF)throw h}i.cellDates&&f&&a.t=="n"&&$a(oe[f]||String(f))&&(c=Pe(a.v))&&(a.t="d",a.v=new Date(c.y,c.m-1,c.d,c.H,c.M,c.S,c.u))}}function zn(a,i,l){return{v:a,ixfe:i,t:l}}function nb(a,i){var l={opts:{}},c={};function f(le){return!(le<8)&&le<64&&X[le-8]||mi[le]}function h(le,be,Le){if(!(1<Oe||Le.sheetRows&&le.r>=Le.sheetRows)){var nt,Ze,Ye;if(Le.cellStyles&&be.XF&&be.XF.data&&(Ze=Le,(Ye=(nt=be).XF.data)&&Ye.patternType&&Ze&&Ze.cellStyles&&(nt.s={},nt.s.patternType=Ye.patternType,(Ze=wi(f(Ye.icvFore)))&&(nt.s.fgColor={rgb:Ze}),(Ze=wi(f(Ye.icvBack)))&&(nt.s.bgColor={rgb:Ze}))),delete be.ixfe,delete be.XF,T=St(d=le),F&&F.s&&F.e||(F={s:{r:0,c:0},e:{r:0,c:0}}),le.r<F.s.r&&(F.s.r=le.r),le.c<F.s.c&&(F.s.c=le.c),le.r+1>F.e.r&&(F.e.r=le.r+1),le.c+1>F.e.c&&(F.e.c=le.c+1),Le.cellFormula&&be.f){for(var st=0;st<N.length;++st)if(!(N[st][0].s.c>le.c||N[st][0].s.r>le.r||N[st][0].e.c<le.c||N[st][0].e.r<le.r)){be.F=Ot(N[st][0]),N[st][0].s.c==le.c&&N[st][0].s.r==le.r||delete be.f,be.f&&(be.f=""+Ms(N[st][1],0,le,He,ce));break}}Le.dense?(x[le.r]||(x[le.r]=[]),x[le.r][le.c]=be):x[T]=be}}var d,p,g,y,v,x=i.dense?[]:{},C={},F={},R=null,A=[],P="",L={},T="",O={},N=[],I=[],X=[],se={Sheets:[],WBProps:{date1904:!1},Views:[{}]},te={},ce={enc:!1,sbcch:0,snames:[],sharedf:O,arrayf:N,rrtabid:[],lastuser:"",biff:8,codepage:0,winlocked:0,cellStyles:!!i&&!!i.cellStyles,WTF:!!i&&!!i.wtf};i.password&&(ce.password=i.password);var _e=[],we=[],de=[],Re=[],qe=!1,He=[];He.SheetNames=ce.snames,He.sharedf=ce.sharedf,He.arrayf=ce.arrayf,He.names=[],He.XTI=[];var Ne,Ue=0,Oe=0,Fe=0,$e=[],tt=[];ce.codepage=1200,S(1200);for(var gt=!1;a.l<a.length-1;){var Pt=a.l,Xe=a.read_shift(2);if(Xe===0&&Ue===10)break;var ke=a.l===a.length?0:a.read_shift(2),Et=kc[Xe];if(Et&&Et.f){if(i.bookSheets&&Ue===133&&Xe!==133)break;if(Ue=Xe,Et.r===2||Et.r==12){var $t=a.read_shift(2);if(ke-=2,!ce.enc&&$t!==Xe&&((255&$t)<<8|$t>>8)!==Xe)throw new Error("rt mismatch: "+$t+"!="+Xe);Et.r==12&&(a.l+=10,ke-=10)}var Ht,vr,Kr,Z={},Z=Xe===10?Et.f(a,ke,ce):function(le,be,Le,nt,Ze){var Ye=nt,st=[],ut=Le.slice(Le.l,Le.l+Ye);if(Ze&&Ze.enc&&Ze.enc.insitu&&0<ut.length)switch(le){case 9:case 521:case 1033:case 2057:case 47:case 405:case 225:case 406:case 312:case 404:case 10:case 133:break;default:Ze.enc.insitu(ut)}st.push(ut),Le.l+=Ye;for(var dt=Sa(Le,Le.l),ze=kc[dt],Me=0;ze!=null&&-1<ib.indexOf(dt);)Ye=Sa(Le,Le.l+2),Me=Le.l+4,dt==2066?Me+=4:dt!=2165&&dt!=2175||(Me+=12),ut=Le.slice(Me,Le.l+4+Ye),st.push(ut),Le.l+=4+Ye,ze=kc[dt=Sa(Le,Le.l)];var ht=ft(st);gs(ht,0);var Qe=0;ht.lens=[];for(var Ie=0;Ie<st.length;++Ie)ht.lens.push(Qe),Qe+=st[Ie].length;if(ht.length<nt)throw"XLS Record 0x"+le.toString(16)+" Truncated: "+ht.length+" < "+nt;return be.f(ht,ht.length,Ze)}(Xe,Et,a,ke,ce);if(Oe!=0||[9,521,1033,2057].indexOf(Ue)!==-1)switch(Xe){case 34:l.opts.Date1904=se.WBProps.date1904=Z;break;case 134:l.opts.WriteProtect=!0;break;case 47:if(ce.enc||(a.l=0),ce.enc=Z,!i.password)throw new Error("File is password-protected");if(Z.valid==null)throw new Error("Encryption scheme unsupported");if(!Z.valid)throw new Error("Password is incorrect");break;case 92:ce.lastuser=Z;break;case 66:var wr=Number(Z);switch(wr){case 21010:wr=1200;break;case 32768:wr=1e4;break;case 32769:wr=1252}S(ce.codepage=wr),gt=!0;break;case 317:ce.rrtabid=Z;break;case 25:ce.winlocked=Z;break;case 439:l.opts.RefreshAll=Z;break;case 12:l.opts.CalcCount=Z;break;case 16:l.opts.CalcDelta=Z;break;case 17:l.opts.CalcIter=Z;break;case 13:l.opts.CalcMode=Z;break;case 14:l.opts.CalcPrecision=Z;break;case 95:l.opts.CalcSaveRecalc=Z;break;case 15:ce.CalcRefMode=Z;break;case 2211:l.opts.FullCalc=Z;break;case 129:Z.fDialog&&(x["!type"]="dialog"),Z.fBelow||((x["!outline"]||(x["!outline"]={})).above=!0),Z.fRight||((x["!outline"]||(x["!outline"]={})).left=!0);break;case 224:I.push(Z);break;case 430:He.push([Z]),He[He.length-1].XTI=[];break;case 35:case 547:He[He.length-1].push(Z);break;case 24:case 536:Ne={Name:Z.Name,Ref:Ms(Z.rgce,0,null,He,ce)},0<Z.itab&&(Ne.Sheet=Z.itab-1),He.names.push(Ne),He[0]||(He[0]=[],He[0].XTI=[]),He[He.length-1].push(Z),Z.Name=="_xlnm._FilterDatabase"&&0<Z.itab&&Z.rgce&&Z.rgce[0]&&Z.rgce[0][0]&&Z.rgce[0][0][0]=="PtgArea3d"&&(tt[Z.itab-1]={ref:Ot(Z.rgce[0][0][1][2])});break;case 22:ce.ExternCount=Z;break;case 23:He.length==0&&(He[0]=[],He[0].XTI=[]),He[He.length-1].XTI=He[He.length-1].XTI.concat(Z),He.XTI=He.XTI.concat(Z);break;case 2196:if(ce.biff<8)break;Ne!=null&&(Ne.Comment=Z[1]);break;case 18:x["!protect"]=Z;break;case 19:Z!==0&&ce.WTF&&console.error("Password verifier: "+Z);break;case 133:C[Z.pos]=Z,ce.snames.push(Z.name);break;case 10:if(--Oe)break;F.e&&(0<F.e.r&&0<F.e.c&&(F.e.r--,F.e.c--,x["!ref"]=Ot(F),i.sheetRows&&i.sheetRows<=F.e.r&&(_r=F.e.r,F.e.r=i.sheetRows-1,x["!fullref"]=x["!ref"],x["!ref"]=Ot(F),F.e.r=_r),F.e.r++,F.e.c++),0<_e.length&&(x["!merges"]=_e),0<we.length&&(x["!objects"]=we),0<de.length&&(x["!cols"]=de),0<Re.length&&(x["!rows"]=Re),se.Sheets.push(te)),P===""?L=x:c[P]=x,x=i.dense?[]:{};break;case 9:case 521:case 1033:case 2057:if(ce.biff===8&&(ce.biff={9:2,521:3,1033:4}[Xe]||{512:2,768:3,1024:4,1280:5,1536:8,2:2,7:2}[Z.BIFFVer]||8),ce.biffguess=Z.BIFFVer==0,Z.BIFFVer==0&&Z.dt==4096&&(ce.biff=5,gt=!0,S(ce.codepage=28591)),ce.biff==8&&Z.BIFFVer==0&&Z.dt==16&&(ce.biff=2),Oe++)break;var _r,x=i.dense?[]:{};ce.biff<8&&!gt&&(gt=!0,S(ce.codepage=i.codepage||1252)),ce.biff<5||Z.BIFFVer==0&&Z.dt==4096?(P===""&&(P="Sheet1"),F={s:{r:0,c:0},e:{r:0,c:0}},_r={pos:a.l-ke,name:P},C[_r.pos]=_r,ce.snames.push(P)):P=(C[Pt]||{name:""}).name,Z.dt==32&&(x["!type"]="chart"),Z.dt==64&&(x["!type"]="macro"),_e=[],we=[],ce.arrayf=N=[],de=[],qe=!(Re=[]),te={Hidden:(C[Pt]||{hs:0}).hs,name:P};break;case 515:case 3:case 2:x["!type"]=="chart"&&(i.dense?(x[Z.r]||[])[Z.c]:x[St({c:Z.c,r:Z.r})])&&++Z.c,B={ixfe:Z.ixfe,XF:I[Z.ixfe]||{},v:Z.val,t:"n"},0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i);break;case 5:case 517:B={ixfe:Z.ixfe,XF:I[Z.ixfe],v:Z.val,t:Z.t},0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i);break;case 638:B={ixfe:Z.ixfe,XF:I[Z.ixfe],v:Z.rknum,t:"n"},0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i);break;case 189:for(var ns=Z.c;ns<=Z.C;++ns){var $s=Z.rkrec[ns-Z.c][0],B={ixfe:$s,XF:I[$s],v:Z.rkrec[ns-Z.c][1],t:"n"};0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:ns,r:Z.r},B,i)}break;case 6:case 518:case 1030:if(Z.val=="String"){R=Z;break}(B=zn(Z.val,Z.cell.ixfe,Z.tt)).XF=I[B.ixfe],i.cellFormula&&(!((he=Z.formula)&&he[0]&&he[0][0]&&he[0][0][0]=="PtgExp")||O[Kr=St({r:Ht=he[0][0][1][0],c:vr=he[0][0][1][1]})]?B.f=""+Ms(Z.formula,0,Z.cell,He,ce):B.F=((i.dense?(x[Ht]||[])[vr]:x[Kr])||{}).F),0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h(Z.cell,B,i),R=Z;break;case 7:case 519:if(!R)throw new Error("String record expects Formula");(B=zn(R.val=Z,R.cell.ixfe,"s")).XF=I[B.ixfe],i.cellFormula&&(B.f=""+Ms(R.formula,0,R.cell,He,ce)),0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h(R.cell,B,i),R=null;break;case 33:case 545:N.push(Z);var he=St(Z[0].s),J=i.dense?(x[Z[0].s.r]||[])[Z[0].s.c]:x[he];if(i.cellFormula&&J){if(!R||!he||!J)break;J.f=""+Ms(Z[1],0,Z[0],He,ce),J.F=Ot(Z[0])}break;case 1212:if(!i.cellFormula)break;if(T){if(!R)break;O[St(R.cell)]=Z[0],((J=i.dense?(x[R.cell.r]||[])[R.cell.c]:x[St(R.cell)])||{}).f=""+Ms(Z[0],0,d,He,ce)}break;case 253:B=zn(A[Z.isst].t,Z.ixfe,"s"),A[Z.isst].h&&(B.h=A[Z.isst].h),B.XF=I[B.ixfe],0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i);break;case 513:i.sheetStubs&&(B={ixfe:Z.ixfe,XF:I[Z.ixfe],t:"z"},0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i));break;case 190:if(i.sheetStubs)for(var fe=Z.c;fe<=Z.C;++fe){var q=Z.ixfe[fe-Z.c];B={ixfe:q,XF:I[q],t:"z"},0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:fe,r:Z.r},B,i)}break;case 214:case 516:case 4:(B=zn(Z.val,Z.ixfe,"s")).XF=I[B.ixfe],0<Fe&&(B.z=$e[B.ixfe>>8&63]),va(B,i,l.opts.Date1904),h({c:Z.c,r:Z.r},B,i);break;case 0:case 512:Oe===1&&(F=Z);break;case 252:A=Z;break;case 1054:if(ce.biff==4){$e[Fe++]=Z[1];for(var Ee=0;Ee<Fe+163&&oe[Ee]!=Z[1];++Ee);163<=Ee&&pa(Z[1],Fe+163)}else pa(Z[1],Z[0]);break;case 30:$e[Fe++]=Z;for(var ue=0;ue<Fe+163&&oe[ue]!=Z;++ue);163<=ue&&pa(Z,Fe+163);break;case 229:_e=_e.concat(Z);break;case 93:we[Z.cmo[0]]=ce.lastobj=Z;break;case 438:ce.lastobj.TxO=Z;break;case 127:ce.lastobj.ImData=Z;break;case 440:for(g=Z[0].s.r;g<=Z[0].e.r;++g)for(p=Z[0].s.c;p<=Z[0].e.c;++p)(J=i.dense?(x[g]||[])[p]:x[St({c:p,r:g})])&&(J.l=Z[1]);break;case 2048:for(g=Z[0].s.r;g<=Z[0].e.r;++g)for(p=Z[0].s.c;p<=Z[0].e.c;++p)(J=i.dense?(x[g]||[])[p]:x[St({c:p,r:g})])&&J.l&&(J.l.Tooltip=Z[1]);break;case 28:if(ce.biff<=5&&2<=ce.biff)break;J=i.dense?(x[Z[0].r]||[])[Z[0].c]:x[St(Z[0])];var me=we[Z[2]];J||(J=i.dense?(x[Z[0].r]||(x[Z[0].r]=[]),x[Z[0].r][Z[0].c]={t:"z"}):x[St(Z[0])]={t:"z"},F.e.r=Math.max(F.e.r,Z[0].r),F.s.r=Math.min(F.s.r,Z[0].r),F.e.c=Math.max(F.e.c,Z[0].c),F.s.c=Math.min(F.s.c,Z[0].c)),J.c||(J.c=[]),me={a:Z[1],t:me.TxO.t},J.c.push(me);break;case 2173:I[Z.ixfe],Z.ext.forEach(function(be){be[0]});break;case 125:if(!ce.cellStyles)break;for(;Z.e>=Z.s;)de[Z.e--]={width:Z.w/256,level:Z.level||0,hidden:!!(1&Z.flags)},qe||(qe=!0,bc(Z.w/256)),Ua(de[Z.e+1]);break;case 520:me={},Z.level!=null&&((Re[Z.r]=me).level=Z.level),Z.hidden&&((Re[Z.r]=me).hidden=!0),Z.hpt&&((Re[Z.r]=me).hpt=Z.hpt,me.hpx=jo(Z.hpt));break;case 38:case 39:case 40:case 41:x["!margins"]||ho(x["!margins"]={}),x["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Xe]]=Z;break;case 161:x["!margins"]||ho(x["!margins"]={}),x["!margins"].header=Z.header,x["!margins"].footer=Z.footer;break;case 574:Z.RTL&&(se.Views[0].RTL=!0);break;case 146:X=Z;break;case 2198:v=Z;break;case 140:y=Z;break;case 442:P?te.CodeName=Z||te.name:se.WBProps.CodeName=Z||"ThisWorkbook"}}else Et||console.error("Missing Info for XLS Record 0x"+Xe.toString(16)),a.l+=ke}return l.SheetNames=Hr(C).sort(function(le,be){return Number(le)-Number(be)}).map(function(le){return C[le].name}),i.bookSheets||(l.Sheets=c),!l.SheetNames.length&&L["!ref"]?(l.SheetNames.push("Sheet1"),l.Sheets&&(l.Sheets.Sheet1=L)):l.Preamble=L,l.Sheets&&tt.forEach(function(le,be){l.Sheets[l.SheetNames[be]]["!autofilter"]=le}),l.Strings=A,l.SSF=Rr(oe),ce.enc&&(l.Encryption=ce.enc),v&&(l.Themes=v),l.Metadata={},y!==void 0&&(l.Metadata.Country=y),0<He.names.length&&(se.Names=He.names),l.Workbook=se,l}var Mi={SI:"e0859ff2f94f6810ab9108002b27b3d9",DSI:"02d5cdd59c2e1b10939708002b2cf9ae",UDI:"05d5cdd59c2e1b10939708002b2cf9ae"};function Gn(a,i){var l,c,f,h,d;if(Pc(i=i||{}),D(),i.codepage&&w(i.codepage),a.FullPaths){if(_t.find(a,"/encryption"))throw new Error("File is password-protected");l=_t.find(a,"!CompObj"),f=_t.find(a,"/Workbook")||_t.find(a,"/Book")}else{switch(i.type){case"base64":a=ve(z(a));break;case"binary":a=ve(a);break;case"buffer":break;case"array":Array.isArray(a)||(a=Array.prototype.slice.call(a))}gs(a,0),f={content:a}}if(l&&ob(l),i.bookProps&&!i.bookSheets)c={};else{var p=H?"buffer":"array";if(f&&f.content)c=nb(f.content,i);else if((f=_t.find(a,"PerfectOffice_MAIN"))&&f.content)c=uo.to_workbook(f.content,(i.type=p,i));else{if(!(f=_t.find(a,"NativeContent_MAIN"))||!f.content)throw(f=_t.find(a,"MN0"))&&f.content?new Error("Unsupported Works 4 for Mac file"):new Error("Cannot find Workbook stream");c=uo.to_workbook(f.content,(i.type=p,i))}i.bookVBA&&a.FullPaths&&_t.find(a,"/_VBA_PROJECT_CUR/VBA/dir")&&(c.vbaraw=(h=a,d=_t.utils.cfb_new({root:"R"}),h.FullPaths.forEach(function(g,y){g.slice(-1)!=="/"&&g.match(/_VBA_PROJECT_CUR/)&&(g=g.replace(/^[^\/]*/,"R").replace(/\/_VBA_PROJECT_CUR\u0000*/,""),_t.utils.cfb_add(d,g,h.FileIndex[y].content))}),_t.write(d)))}return p={},a.FullPaths&&function(g,y,v){var x=_t.find(g,"/!DocumentSummaryInformation");if(x&&0<x.size)try{var C,F=nd(x,Zl,Mi.DSI);for(C in F)y[C]=F[C]}catch(L){if(v.WTF)throw L}var R=_t.find(g,"/!SummaryInformation");if(R&&0<R.size)try{var A,P=nd(R,$l,Mi.SI);for(A in P)y[A]==null&&(y[A]=P[A])}catch(L){if(v.WTF)throw L}y.HeadingPairs&&y.TitlesOfParts&&(qu(y.HeadingPairs,y.TitlesOfParts,y,v),delete y.HeadingPairs,delete y.TitlesOfParts)}(a,p,i),c.Props=c.Custprops=p,i.bookFiles&&(c.cfb=a),c}function lb(a,h){var l,c,f=h||{},h=_t.utils.cfb_new({root:"R"}),d="/Workbook";switch(f.bookType||"xls"){case"xls":f.bookType="biff8";case"xla":f.bookType||(f.bookType="xla");case"biff8":d="/Workbook",f.biff=8;break;case"biff5":d="/Book",f.biff=5;break;default:throw new Error("invalid type "+f.bookType+" for XLS CFB")}return _t.utils.cfb_add(h,d,u0(a,f)),f.biff==8&&(a.Props||a.Custprops)&&function(p,g){var y,v=[],x=[],C=[],F=0,R=Zf(Zl,"n"),A=Zf($l,"n");if(p.Props)for(y=Hr(p.Props),F=0;F<y.length;++F)(Object.prototype.hasOwnProperty.call(R,y[F])?v:Object.prototype.hasOwnProperty.call(A,y[F])?x:C).push([y[F],p.Props[y[F]]]);if(p.Custprops)for(y=Hr(p.Custprops),F=0;F<y.length;++F)Object.prototype.hasOwnProperty.call(p.Props||{},y[F])||(Object.prototype.hasOwnProperty.call(R,y[F])?v:Object.prototype.hasOwnProperty.call(A,y[F])?x:C).push([y[F],p.Custprops[y[F]]]);for(var P=[],F=0;F<C.length;++F)-1<od.indexOf(C[F][0])||-1<Yu.indexOf(C[F][0])||C[F][1]!=null&&P.push(C[F]);x.length&&_t.utils.cfb_add(g,"/SummaryInformation",ld(x,Mi.SI,A,$l)),(v.length||P.length)&&_t.utils.cfb_add(g,"/DocumentSummaryInformation",ld(v,Mi.DSI,R,Zl,P.length?P:null,Mi.UDI))}(a,h),f.biff==8&&a.vbaraw&&(l=h,(c=_t.read(a.vbaraw,{type:typeof a.vbaraw=="string"?"binary":"buffer"})).FullPaths.forEach(function(p,g){g==0||(p=p.replace(/[^\/]*[\/]/,"/_VBA_PROJECT_CUR/")).slice(-1)!=="/"&&_t.utils.cfb_add(l,p,c.FileIndex[g].content)})),h}var Oi={0:{f:function(a,i){var l={},c=a.l+i;l.r=a.read_shift(4),a.l+=4;var f=a.read_shift(2);return a.l+=1,i=a.read_shift(1),a.l=c,7&i&&(l.level=7&i),16&i&&(l.hidden=!0),32&i&&(l.hpt=f/20),l}},1:{f:function(a){return[qs(a)]}},2:{f:function(a){return[qs(a),Xl(a),"n"]}},3:{f:function(a){return[qs(a),a.read_shift(1),"e"]}},4:{f:function(a){return[qs(a),a.read_shift(1),"b"]}},5:{f:function(a){return[qs(a),xs(a),"n"]}},6:{f:function(a){return[qs(a),ws(a),"str"]}},7:{f:function(a){return[qs(a),a.read_shift(4),"s"]}},8:{f:function(a,i,l){var c=a.l+i,f=qs(a);f.r=l["!row"];var h=[f,ws(a),"str"];return l.cellFormula?(a.l+=2,i=Vn(a,c-a.l,l),h[3]=Ms(i,0,f,l.supbooks,l)):a.l=c,h}},9:{f:function(a,i,l){var c=a.l+i,f=qs(a);f.r=l["!row"];var h=[f,xs(a),"n"];return l.cellFormula?(a.l+=2,i=Vn(a,c-a.l,l),h[3]=Ms(i,0,f,l.supbooks,l)):a.l=c,h}},10:{f:function(a,i,l){var c=a.l+i,f=qs(a);f.r=l["!row"];var h=[f,a.read_shift(1),"b"];return l.cellFormula?(a.l+=2,i=Vn(a,c-a.l,l),h[3]=Ms(i,0,f,l.supbooks,l)):a.l=c,h}},11:{f:function(a,i,l){var c=a.l+i,f=qs(a);f.r=l["!row"];var h=[f,a.read_shift(1),"e"];return l.cellFormula?(a.l+=2,i=Vn(a,c-a.l,l),h[3]=Ms(i,0,f,l.supbooks,l)):a.l=c,h}},12:{f:function(a){return[ao(a)]}},13:{f:function(a){return[ao(a),Xl(a),"n"]}},14:{f:function(a){return[ao(a),a.read_shift(1),"e"]}},15:{f:function(a){return[ao(a),a.read_shift(1),"b"]}},16:{f:e0},17:{f:function(a){return[ao(a),ws(a),"str"]}},18:{f:function(a){return[ao(a),a.read_shift(4),"s"]}},19:{f:Yl},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:function(a,d,p){var c=a.l+d;a.l+=4,a.l+=1;var f=a.read_shift(4),h=U1(a),d=a2(a,0,p),p=ql(a);return a.l=c,d={Name:h,Ptg:d},f<268435455&&(d.Sheet=f),p&&(d.Comment=p),d}},40:{},42:{},43:{f:function(a,i,l){var c={};c.sz=a.read_shift(2)/20;var f,h=(h=(f=a).read_shift(1),f.l++,{fBold:1&h,fItalic:2&h,fUnderline:4&h,fStrikeout:8&h,fOutline:16&h,fShadow:32&h,fCondense:64&h,fExtend:128&h});switch(h.fItalic&&(c.italic=1),h.fCondense&&(c.condense=1),h.fExtend&&(c.extend=1),h.fShadow&&(c.shadow=1),h.fOutline&&(c.outline=1),h.fStrikeout&&(c.strike=1),a.read_shift(2)===700&&(c.bold=1),a.read_shift(2)){case 1:c.vertAlign="superscript";break;case 2:c.vertAlign="subscript"}switch((h=a.read_shift(1))!=0&&(c.underline=h),0<(h=a.read_shift(1))&&(c.family=h),0<(h=a.read_shift(1))&&(c.charset=h),a.l++,c.color=function(d){var p={},g=d.read_shift(1)>>>1,y=d.read_shift(1),v=d.read_shift(2,"i"),x=d.read_shift(1),C=d.read_shift(1),F=d.read_shift(1);switch(d.l++,g){case 0:p.auto=1;break;case 1:p.index=y;var R=mi[y];R&&(p.rgb=wi(R));break;case 2:p.rgb=wi([x,C,F]);break;case 3:p.theme=y}return v!=0&&(p.tint=0<v?v/32767:v/32768),p}(a),a.read_shift(1)){case 1:c.scheme="major";break;case 2:c.scheme="minor"}return c.name=ws(a),c}},44:{f:function(a,i){return[a.read_shift(2),ws(a)]}},45:{f:Tg},46:{f:fn},47:{f:function(a,f){var l=a.l+f,c=a.read_shift(2),f=a.read_shift(2);return a.l=l,{ixfe:c,numFmtId:f}}},48:{},49:{f:function(a){return a.read_shift(4,"i")}},50:{},51:{f:function(a){for(var i=[],l=a.read_shift(4);0<l--;)i.push([a.read_shift(4),a.read_shift(4)]);return i}},52:{T:1},53:{T:-1},54:{T:1},55:{T:-1},56:{T:1},57:{T:-1},58:{},59:{},60:{f:Ed},62:{f:function(a){return[qs(a),Yl(a),"is"]}},63:{f:function(a){var i={};i.i=a.read_shift(4);var l={};return l.r=a.read_shift(4),l.c=a.read_shift(4),i.r=St(l),2&(a=a.read_shift(1))&&(i.l="1"),8&a&&(i.a="1"),i}},64:{f:function(){}},65:{},66:{},67:{},68:{},69:{},70:{},128:{},129:{T:1},130:{T:-1},131:{T:1,f:vs,p:0},132:{T:-1},133:{T:1},134:{T:-1},135:{T:1},136:{T:-1},137:{T:1,f:function(a){var i=a.read_shift(2);return a.l+=28,{RTL:32&i}}},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:function(a,i){var l={},c=a[a.l];return++a.l,l.above=!(64&c),l.left=!(128&c),a.l+=18,l.name=B1(a),l}},148:{f:Un,p:16},151:{f:function(){}},152:{},153:{f:function(a,i){var l={},c=a.read_shift(4);return l.defaultThemeVersion=a.read_shift(4),0<(a=8<i?ws(a):"").length&&(l.CodeName=a),l.autoCompressPictures=!!(65536&c),l.backupFile=!!(64&c),l.checkCompatibility=!!(4096&c),l.date1904=!!(1&c),l.filterPrivacy=!!(8&c),l.hidePivotFieldList=!!(1024&c),l.promptedSolutions=!!(16&c),l.publishItems=!!(2048&c),l.refreshAllConnections=!!(262144&c),l.saveExternalLinkValues=!!(128&c),l.showBorderUnselectedTables=!!(4&c),l.showInkAnnotation=!!(32&c),l.showObjects=["all","placeholders","none"][c>>13&3],l.showPivotChartFilter=!!(32768&c),l.updateLinks=["userSet","never","always"][c>>8&3],l}},154:{},155:{},156:{f:function(a,i){var l={};return l.Hidden=a.read_shift(4),l.iTabID=a.read_shift(4),l.strRelID=Kl(a),l.name=ws(a),l}},157:{},158:{},159:{T:1,f:function(a){return[a.read_shift(4),a.read_shift(4)]}},160:{T:-1},161:{T:1,f:io},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:qo},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:function(a,i){return{flags:a.read_shift(4),version:a.read_shift(4),name:ws(a)}}},336:{T:-1},337:{f:function(a){return a.l+=4,a.read_shift(4)!=0},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:Kl},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Dd},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:function(a,h,l){var c=a.l+h,f=Pu(a),h=a.read_shift(1);return(f=[f])[2]=h,l.cellFormula?(l=s2(a,c-a.l,l),f[1]=l):a.l=c,f}},427:{f:function(a,f,l){var c=a.l+f,f=[io(a)];return l.cellFormula&&(l=o2(a,c-a.l,l),f[1]=l),a.l=c,f}},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:function(a){var i={};return t0.forEach(function(l){i[l]=xs(a)}),i}},477:{},478:{},479:{T:1},480:{T:-1},481:{T:1},482:{T:-1},483:{T:1},484:{T:-1},485:{f:function(){}},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:function(a,p){var l=a.l+p,c=io(a),f=ql(a),h=ws(a),d=ws(a),p=ws(a);return a.l=l,p={rfx:c,relId:f,loc:h,display:p},d&&(p.Tooltip=d),p}},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:Kl},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:dn},633:{T:1},634:{T:-1},635:{T:1,f:function(a){var i={};i.iauthor=a.read_shift(4);var l=io(a);return i.rfx=l.s,i.ref=St(l.s),a.l+=16,i}},636:{T:-1},637:{f:I1},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:function(a,i){return a.l+=10,{name:ws(a)}}},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:function(){}},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:""}},kc={6:{f:Cc},10:{f:Ba},12:{f:rs},13:{f:rs},14:{f:Qr},15:{f:Qr},16:{f:xs},17:{f:Qr},18:{f:Qr},19:{f:rs},20:{f:Cd},21:{f:Cd},23:{f:Dd},24:{f:Ad},25:{f:Qr},26:{},27:{},28:{f:function(a,i,l){return function(c,f){if(!(f.biff<8)){var h=c.read_shift(2),d=c.read_shift(2),p=c.read_shift(2),g=c.read_shift(2),y=co(c,0,f);return f.biff<8&&c.read_shift(1),[{r:h,c:d},y,g,p]}}(a,l)}},29:{},34:{f:Qr},35:{f:Fd},38:{f:xs},39:{f:xs},40:{f:xs},41:{f:xs},42:{f:Qr},43:{f:Qr},47:{f:function(a,i,l){var c={Type:8<=l.biff?a.read_shift(2):0};return c.Type?xg(a,i-2,c):(i=a,l.biff,a=l,l=c,i={key:rs(i),verificationBytes:rs(i)},a.password&&(i.verifier=pc(a.password)),l.valid=i.verificationBytes===i.verifier,l.valid&&(l.insitu=wg(a.password))),c}},49:{f:function(a,i,l){var c={dyHeight:a.read_shift(2),fl:a.read_shift(2)};switch(l&&l.biff||8){case 2:break;case 3:case 4:a.l+=2;break;default:a.l+=10}return c.name=yi(a,0,l),c}},51:{f:rs},60:{},61:{f:function(a){return{Pos:[a.read_shift(2),a.read_shift(2)],Dim:[a.read_shift(2),a.read_shift(2)],Flags:a.read_shift(2),CurTab:a.read_shift(2),FirstTab:a.read_shift(2),Selected:a.read_shift(2),TabRatio:a.read_shift(2)}}},64:{f:Qr},65:{f:function(){}},66:{f:rs},77:{},80:{},81:{},82:{},85:{f:rs},89:{},90:{},91:{},92:{f:function(a,i,f){if(f.enc)return a.l+=i,"";var c=a.l,f=co(a,0,f);return a.read_shift(i+c-a.l),f}},93:{f:function(a,i,l){return l&&l.biff<8?function(c,f,h){c.l+=4;var d=c.read_shift(2),p=c.read_shift(2),g=c.read_shift(2);c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=2,c.l+=6,f-=36;var y=[];return y.push((Z1[d]||vs)(c,f,h)),{cmo:[p,d,g],ft:y}}(a,i,l):{cmo:l=yd(a),ft:function(c,f){for(var h=c.l+f,d=[];c.l<h;){var p=c.read_shift(2);c.l-=2;try{d.push(J1[p](c,h-c.l))}catch{return c.l=h,d}}return c.l!=h&&(c.l=h),d}(a,i-22,l[1])}}},94:{},95:{f:Qr},96:{},97:{},99:{f:Qr},125:{f:Ed},128:{f:function(a){if(a.l+=4,(a=[a.read_shift(2),a.read_shift(2)])[0]!==0&&a[0]--,a[1]!==0&&a[1]--,7<a[0]||7<a[1])throw new Error("Bad Gutters: "+a.join("|"));return a}},129:{f:function(a,i,l){return{fDialog:16&(i=l&&l.biff==8||i==2?a.read_shift(2):(a.l+=i,0)),fBelow:64&i,fRight:128&i}}},130:{f:rs},131:{f:Qr},132:{f:Qr},133:{f:function(a,i,l){var c=a.read_shift(4),f=3&a.read_shift(1),h=a.read_shift(1);switch(h){case 0:h="Worksheet";break;case 1:h="Macrosheet";break;case 2:h="Chartsheet";break;case 6:h="VBAModule"}return l=yi(a,0,l),{pos:c,hs:f,dt:h,name:l=l.length===0?"Sheet1":l}}},134:{},140:{f:function(a){var i=[0,0],l=a.read_shift(2);return i[0]=Bu[l]||l,l=a.read_shift(2),i[1]=Bu[l]||l,i}},141:{f:rs},144:{},146:{f:function(a){for(var i=a.read_shift(2),l=[];0<i--;)l.push(pd(a));return l}},151:{},152:{},153:{},154:{},155:{},156:{f:rs},157:{},158:{},160:{f:tg},161:{f:function(a,i){var l={};return i<32||(a.l+=16,l.header=xs(a),l.footer=xs(a),a.l+=2),l}},174:{},175:{},176:{},177:{},178:{},180:{},181:{},182:{},184:{},185:{},189:{f:function(a,i){for(var l=a.l+i-2,c=a.read_shift(2),f=a.read_shift(2),h=[];a.l<l;)h.push(md(a));if(a.l!==l)throw new Error("MulRK read error");if(i=a.read_shift(2),h.length!=i-f+1)throw new Error("MulRK length mismatch");return{r:c,c:f,C:i,rkrec:h}}},190:{f:function(a,i){for(var l=a.l+i-2,c=a.read_shift(2),f=a.read_shift(2),h=[];a.l<l;)h.push(a.read_shift(2));if(a.l!==l)throw new Error("MulBlank read error");if(i=a.read_shift(2),h.length!=i-f+1)throw new Error("MulBlank length mismatch");return{r:c,c:f,C:i,ixfe:h}}},193:{f:Ba},197:{},198:{},199:{},200:{},201:{},202:{f:Qr},203:{},204:{},205:{},206:{},207:{},208:{},209:{},210:{},211:{},213:{},215:{},216:{},217:{},218:{f:rs},220:{},221:{f:Qr},222:{},224:{f:function(a,i,l){var c,f,h,d={};return d.ifnt=a.read_shift(2),d.numFmtId=a.read_shift(2),d.flags=a.read_shift(2),d.fStyle=d.flags>>2&1,i-=6,d.data=(c=a,d.fStyle,f=l,h={},i=c.read_shift(4),a=c.read_shift(4),l=c.read_shift(4),c=c.read_shift(2),h.patternType=G1[l>>26],f.cellStyles&&(h.alc=7&i,h.fWrap=i>>3&1,h.alcV=i>>4&7,h.fJustLast=i>>7&1,h.trot=i>>8&255,h.cIndent=i>>16&15,h.fShrinkToFit=i>>20&1,h.iReadOrder=i>>22&2,h.fAtrNum=i>>26&1,h.fAtrFnt=i>>27&1,h.fAtrAlc=i>>28&1,h.fAtrBdr=i>>29&1,h.fAtrPat=i>>30&1,h.fAtrProt=i>>31&1,h.dgLeft=15&a,h.dgRight=a>>4&15,h.dgTop=a>>8&15,h.dgBottom=a>>12&15,h.icvLeft=a>>16&127,h.icvRight=a>>23&127,h.grbitDiag=a>>30&3,h.icvTop=127&l,h.icvBottom=l>>7&127,h.icvDiag=l>>14&127,h.dgDiag=l>>21&15,h.icvFore=127&c,h.icvBack=c>>7&127,h.fsxButton=c>>14&1),h),d}},225:{f:function(a,i){return i===0||a.read_shift(2),1200}},226:{f:Ba},227:{},229:{f:function(a,i){for(var l=[],c=a.read_shift(2);c--;)l.push(xn(a));return l}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(a,i){for(var l=a.l+i,i=a.read_shift(4),c=a.read_shift(4),f=[],h=0;h!=c&&a.l<l;++h)f.push(function(p){var g=u;u=1200;var y,v=p.read_shift(2),x=4&(A=p.read_shift(1)),C=8&A,F=1+(1&A),R=0,A={};return C&&(R=p.read_shift(2)),x&&(y=p.read_shift(4)),F=F==2?"dbcs-cont":"sbcs-cont",F=v===0?"":p.read_shift(v,F),C&&(p.l+=4*R),x&&(p.l+=y),A.t=F,C||(A.raw="<t>"+A.t+"</t>",A.r=A.t),u=g,A}(a));return f.Count=i,f.Unique=c,f}},253:{f:function(a){var i=ya(a);return i.isst=a.read_shift(4),i}},255:{f:function(a,i){var l={};return l.dsst=a.read_shift(2),a.l+=i-2,l}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:cd},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:Qr},353:{f:Ba},401:{},402:{},403:{},404:{},405:{},406:{},407:{},408:{},425:{},426:{},427:{},428:{},429:{},430:{f:function(a,h,l){var c=a.l+h,f=a.read_shift(2),h=a.read_shift(2);if((l.sbcch=h)==1025||h==14849)return[h,f];if(h<1||255<h)throw new Error("Unexpected SupBook type: "+h);for(var l=lo(a,h),d=[];c>a.l;)d.push(_i(a));return[h,f,l,d]}},431:{f:Qr},432:{},433:{},434:{},437:{},438:{f:function(a,i,l){var c=a.l,f="";try{a.l+=4;var h=(l.lastobj||{cmo:[0,0]}).cmo[1];[0,5,7,11,12,14].indexOf(h)==-1?a.l+=6:function(y){var v=y.read_shift(1);y.l++;var x=y.read_shift(2);y.l+=2}(a);var d=a.read_shift(2);a.read_shift(2),rs(a),h=a.read_shift(2),a.l+=h;for(var p=1;p<a.lens.length-1;++p){if(a.l-c!=a.lens[p])throw new Error("TxO: bad continue record");var g=a[a.l];if((f+=lo(a,a.lens[p+1]-a.lens[p]-1)).length>=(g?d:2*d))break}if(f.length!==d&&f.length!==2*d)throw new Error("cchText: "+d+" != "+f.length);return a.l=c+i,{t:f}}catch{return a.l=c+i,{t:f}}}},439:{f:Qr},440:{f:function(a,i){var l=xn(a);return a.l+=16,[l,function(c,f){var h=c.l+f;if((x=c.read_shift(4))!==2)throw new Error("Unrecognized streamVersion: "+x);f=c.read_shift(2),c.l+=2;var d,p,g,y,v,x="";16&f&&(d=wn(c,c.l)),128&f&&(p=wn(c,c.l)),(257&f)==257&&(g=wn(c,c.l)),(257&f)==1&&(C=q1(c,c.l)),8&f&&(x=wn(c,c.l)),32&f&&(y=c.read_shift(16)),64&f&&(v=ac(c)),c.l=h;var C=p||g||C||"";return C&&x&&(C+="#"+x),C=C||"#"+x,C={Target:C=2&f&&C.charAt(0)=="/"&&C.charAt(1)!="/"?"file://"+C:C},y&&(C.guid=y),v&&(C.time=v),d&&(C.Tooltip=d),C}(a,i-24)]}},441:{},442:{f:_i},443:{},444:{f:rs},445:{},446:{},448:{f:Ba},449:{f:function(a){return a.read_shift(2),a.read_shift(4)},r:2},450:{f:Ba},512:{f:vd},513:{f:eg},515:{f:function(a,i,l){return l.biffguess&&l.biff==2&&(l.biff=5),l=ya(a),a=xs(a),l.val=a,l}},516:{f:function(a,i,l){return l.biffguess&&l.biff==2&&(l.biff=5),a.l,i=ya(a),l.biff==2&&a.l++,l=_i(a,a.l,l),i.val=l,i}},517:{f:xd},519:{f:Wc},520:{f:function(a){var i={};i.r=a.read_shift(2),i.c=a.read_shift(2),i.cnt=a.read_shift(2)-i.c;var l=a.read_shift(2);a.l+=4;var c=a.read_shift(1);return a.l+=3,7&c&&(i.level=7&c),32&c&&(i.hidden=!0),64&c&&(i.hpt=l/20),i}},523:{},545:{f:Sd},549:{f:_d},566:{},574:{f:function(a,i,l){return l&&2<=l.biff&&l.biff<5?{}:{RTL:64&a.read_shift(2)}}},638:{f:function(c){var i=c.read_shift(2),l=c.read_shift(2),c=md(c);return{r:i,c:l,ixfe:c[0],rknum:c[1]}}},659:{},1048:{},1054:{f:function(a,i,l){return[a.read_shift(2),co(a,0,l)]}},1084:{},1212:{f:function(a,i,l){var c=bd(a);a.l++;var f=a.read_shift(1);return[function(h,d,p){var g,y=h.l+d,v=h.read_shift(2),x=Ti(h,v,p);return v==65535?[[],vs(h,d-2)]:(d!==v+2&&(g=Ei(h,y-v-2,x,p)),[x,g])}(a,i-=8,l),f,c]}},2048:{f:function(a,i){return a.read_shift(2),[xn(a),a.read_shift((i-10)/2,"dbcs-cont").replace(bt,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Cn},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:Ba},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(a){a.l+=2;var i={cxfs:0,crc:0};return i.cxfs=a.read_shift(2),i.crc=a.read_shift(4),i},r:12},2173:{f:function(a,i){a.l,a.l+=2,i=a.read_shift(2),a.l+=2;for(var l=a.read_shift(2),c=[];0<l--;)c.push(Wg(a,a.l));return{ixfe:i,ext:c}},r:12},2174:{},2175:{},2180:{},2181:{},2182:{},2183:{},2184:{},2185:{},2186:{},2187:{},2188:{f:Qr,r:12},2189:{},2190:{r:12},2191:{},2192:{},2194:{},2195:{},2196:{f:function(a,i,l){if(!(l.biff<8)){var c=a.read_shift(2),f=a.read_shift(2);return[lo(a,c,l),lo(a,f,l)]}a.l+=i},r:12},2197:{},2198:{f:function(a,i,l){var c=a.l+i;if(a.read_shift(4)!==124226)if(l.cellStyles){var f,h=a.slice(a.l);a.l=c;try{f=ou(h,{type:"array"})}catch{return}if(i=zs(f,"theme/theme/theme1.xml",!0),i)return Fh(i,l)}else a.l=c},r:12},2199:{},2200:{},2201:{},2202:{f:function(a){return[a.read_shift(4)!==0,a.read_shift(4)!==0,a.read_shift(4)]},r:12},2203:{f:Ba},2204:{},2205:{},2206:{},2207:{},2211:{f:function(a){var i,l,c=(l=(i=a).read_shift(2),c=i.read_shift(2),i.l+=8,{type:l,flags:c});if(c.type!=2211)throw new Error("Invalid Future Record "+c.type);return a.read_shift(4)!==0}},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:rs},4135:{},4146:{},4147:{},4148:{},4149:{},4154:{},4156:{},4157:{},4158:{},4159:{},4160:{},4161:{},4163:{},4164:{f:function(a,i,l){var c={area:!1};return l.biff!=5?a.l+=i:(i=a.read_shift(1),a.l+=3,16&i&&(c.area=!0)),c}},4165:{},4166:{},4168:{},4170:{},4171:{},4174:{},4175:{},4176:{},4177:{},4187:{},4188:{f:function(a){for(var i=a.read_shift(2),l=[];0<i--;)l.push(pd(a));return l}},4189:{},4191:{},4192:{},4193:{},4194:{},4195:{},4196:{},4197:{},4198:{},4199:{},4200:{},0:{f:vd},1:{},2:{f:function(a){var i=ya(a);return++a.l,a=a.read_shift(2),i.t="n",i.val=a,i}},3:{f:function(a){var i=ya(a);return++a.l,a=xs(a),i.t="n",i.val=a,i}},4:{f:function(a,i,l){l.biffguess&&l.biff==5&&(l.biff=2);var c=ya(a);return++a.l,l=co(a,0,l),c.t="str",c.val=l,c}},5:{f:xd},7:{f:function(a){var i=a.read_shift(1);return i===0?(a.l++,""):a.read_shift(i,"sbcs-cont")}},8:{},9:{f:Cn},11:{},22:{f:rs},30:{f:Ko},31:{},32:{},33:{f:Sd},36:{},37:{f:_d},50:{f:function(a,i){a.l+=6,a.l+=2,a.l+=1,a.l+=3,a.l+=1,a.l+=i-13}},62:{},52:{},67:{},68:{f:rs},69:{},86:{},126:{},127:{f:function(a){var i=a.read_shift(2),c=a.read_shift(2),l=a.read_shift(4),c={fmt:i,env:c,len:l,data:a.slice(a.l,a.l+l)};return a.l+=l,c}},135:{},136:{},137:{},145:{},148:{},149:{},150:{},169:{},171:{},188:{},191:{},192:{},194:{},195:{},214:{f:function(a,h,d){var c=a.l+h,f=ya(a),h=a.read_shift(2),d=lo(a,h,d);return a.l=c,f.t="str",f.val=d,f}},223:{},234:{},354:{},421:{},518:{f:Cc},521:{f:Cn},536:{f:Ad},547:{f:Fd},561:{},579:{},1030:{f:Cc},1033:{f:Cn},1091:{},2157:{},2163:{},2177:{},2240:{},2241:{},2242:{},2243:{},2244:{},2245:{},2246:{},2247:{},2248:{},2249:{},2250:{},2251:{},2262:{r:12},29282:{}};function We(a,i,l,c){var f=i;isNaN(f)||(i=c||(l||[]).length||0,(c=a.next(4)).write_shift(2,f),c.write_shift(2,i),0<i&&Gl(l)&&a.push(l))}function Pi(a,i,l){return(a=a||ge(7)).write_shift(2,i),a.write_shift(2,l),a.write_shift(2,0),a.write_shift(1,0),a}function cb(a,i,l,c){if(i.v!=null)switch(i.t){case"d":case"n":var f=i.t=="d"?os(Pr(i.v)):i.v;return void(f==(0|f)&&0<=f&&f<65536?We(a,2,(v=l,x=c,C=f,Pi(F=ge(9),v,x),F.write_shift(2,C),F)):We(a,3,(C=l,F=c,f=f,Pi(y=ge(15),C,F),y.write_shift(8,f,"f"),y)));case"b":case"e":return void We(a,5,(y=l,h=c,d=i.v,p=i.t,Pi(g=ge(9),y,h),fd(d,p||"b",g),g));case"s":case"str":return void We(a,4,(h=l,d=c,p=(i.v||"").slice(0,255),Pi(g=ge(8+2*p.length),h,d),g.write_shift(1,p.length),g.write_shift(p.length,p,"sbcs"),g.l<g.length?g.slice(0,g.l):g))}var h,d,p,g,y,v,x,C,F;We(a,1,Pi(null,l,c))}function fb(a,i){for(var l=i||{},i=Is(),c=0,f=0;f<a.SheetNames.length;++f)a.SheetNames[f]==l.sheet&&(c=f);if(c==0&&l.sheet&&a.SheetNames[0]!=l.sheet)throw new Error("Sheet not found: "+l.sheet);return We(i,l.biff==4?1033:l.biff==3?521:9,oc(0,16,l)),function(h,d,p){var g,y,v=Array.isArray(d),x=Qt(d["!ref"]||"A1"),C=[];if(255<x.e.c||16383<x.e.r){if(p.WTF)throw new Error("Range "+(d["!ref"]||"A1")+" exceeds format limit A1:IV16384");x.e.c=Math.min(x.e.c,255),x.e.r=Math.min(x.e.c,16383),g=Ot(x)}for(var F=x.s.r;F<=x.e.r;++F){y=qr(F);for(var R=x.s.c;R<=x.e.c;++R){F===x.s.r&&(C[R]=Ir(R)),g=C[R]+y;var A=v?(d[F]||[])[R]:d[g];A&&cb(h,A,F,R)}}}(i,a.Sheets[a.SheetNames[c]],l),We(i,10),i.end()}function ub(a,i,l){var c,f;We(a,49,(f=(c={sz:12,color:{theme:1},name:"Arial",family:2,scheme:"minor"}).name||"Arial",(a=ge((l=(a=l)&&a.biff==5)?15+f.length:16+2*f.length)).write_shift(2,20*(c.sz||12)),a.write_shift(4,0),a.write_shift(2,400),a.write_shift(4,0),a.write_shift(2,0),a.write_shift(1,f.length),l||a.write_shift(1,1),a.write_shift((l?1:2)*f.length,f,l?"sbcs":"utf16le"),a))}function db(a,i,l){i&&[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f,h,d,p,g=c[0];g<=c[1];++g)i[g]!=null&&We(a,1054,(f=g,h=i[g],p=void 0,d=(d=l)&&d.biff==5,(p=p||ge(d?3+h.length:5+2*h.length)).write_shift(2,f),p.write_shift(d?1:2,h.length),d||p.write_shift(1,1),p.write_shift((d?1:2)*h.length,h,d?"sbcs":"utf16le"),(p=p.length>p.l?p.slice(0,p.l):p).l==null&&(p.l=p.length),p))})}function hb(a,i){for(var l=0;l<i["!links"].length;++l){var c=i["!links"][l];We(a,440,$1(c)),c[1].Tooltip&&We(a,2048,function(f){var h=f[1].Tooltip,d=ge(10+2*(h.length+1));d.write_shift(2,2048),f=Gr(f[0]),d.write_shift(2,f.r),d.write_shift(2,f.r),d.write_shift(2,f.c),d.write_shift(2,f.c);for(var p=0;p<h.length;++p)d.write_shift(2,h.charCodeAt(p));return d.write_shift(2,0),d}(c))}delete i["!links"]}function pb(a,i){var l;i&&(l=0,i.forEach(function(c,f){var h;++l<=256&&c&&We(a,125,(h=Bn(f,c),c=f,(f=ge(12)).write_shift(2,c),f.write_shift(2,c),f.write_shift(2,256*h.width),f.write_shift(2,0),c=0,h.hidden&&(c|=1),f.write_shift(1,c),c=h.level||0,f.write_shift(1,c),f.write_shift(2,0),f))}))}function mb(a,i,l,c,f){var h,d,p,g,y,v,x,C,F,R,A,P=16+Ga(f.cellXfs,i,f);if(i.v!=null||i.bf)if(i.bf)We(a,6,r2(i,l,c,0,P));else switch(i.t){case"d":case"n":var L=i.t=="d"?os(Pr(i.v)):i.v;We(a,515,(v=l,x=c,C=L,F=P,R=ge(14),fo(v,x,F,R),Vo(C,R),R));break;case"b":case"e":We(a,517,(L=l,v=c,x=i.v,F=P,C=i.t,R=ge(8),fo(L,v,F,R),fd(x,C,R),R));break;case"s":case"str":f.bookSST?(A=Ac(f.Strings,i.v,f.revStrings),We(a,253,(h=l,d=c,p=A,g=P,y=ge(10),fo(h,d,g,y),y.write_shift(4,p),y))):We(a,516,(A=l,h=c,d=(i.v||"").slice(0,255),g=P,p=ge(+(y=!(p=f)||p.biff==8)+8+(1+y)*d.length),fo(A,h,g,p),p.write_shift(2,d.length),y&&p.write_shift(1,1),p.write_shift((1+y)*d.length,d,y?"utf16le":"sbcs"),p));break;default:We(a,513,fo(l,c,P))}else We(a,513,fo(l,c,P))}function gb(a,i,l){var c,f,h=Is(),O=l.SheetNames[a],d=l.Sheets[O]||{},p=(l||{}).Workbook||{},g=(p.Sheets||[])[a]||{},y=Array.isArray(d),v=i.biff==8,x=[],C=Qt(d["!ref"]||"A1"),F=v?65536:16384;if(255<C.e.c||C.e.r>=F){if(i.WTF)throw new Error("Range "+(d["!ref"]||"A1")+" exceeds format limit A1:IV16384");C.e.c=Math.min(C.e.c,255),C.e.r=Math.min(C.e.c,F-1)}We(h,2057,oc(0,16,i)),We(h,13,Js(1)),We(h,12,Js(100)),We(h,15,Ls(!0)),We(h,17,Ls(!1)),We(h,16,Vo(.001)),We(h,95,Ls(!0)),We(h,42,Ls(!1)),We(h,43,Ls(!1)),We(h,130,Js(1)),We(h,128,(l=[0,0],(a=ge(8)).write_shift(4,0),a.write_shift(2,l[0]?l[0]+1:0),a.write_shift(2,l[1]?l[1]+1:0),a)),We(h,131,Ls(!1)),We(h,132,Ls(!1)),v&&pb(h,d["!cols"]),We(h,512,(F=C,(l=ge(2*(a=(l=i).biff!=8&&l.biff?2:4)+6)).write_shift(a,F.s.r),l.write_shift(a,F.e.r+1),l.write_shift(2,F.s.c),l.write_shift(2,F.e.c+1),l.write_shift(2,0),l)),v&&(d["!links"]=[]);for(var R=C.s.r;R<=C.e.r;++R){f=qr(R);for(var A=C.s.c;A<=C.e.c;++A){R===C.s.r&&(x[A]=Ir(A)),c=x[A]+f;var P=y?(d[R]||[])[A]:d[c];P&&(mb(h,P,R,A,i),v&&P.l&&d["!links"].push([c,P.l]))}}var L,T,O=g.CodeName||g.name||O;return v&&We(h,574,(p=(p.Views||[])[0],T=ge(18),L=1718,p&&p.RTL&&(L|=64),T.write_shift(2,L),T.write_shift(4,0),T.write_shift(4,64),T.write_shift(4,0),T.write_shift(4,0),T)),v&&(d["!merges"]||[]).length&&We(h,229,function(N){var I=ge(2+8*N.length);I.write_shift(2,N.length);for(var X=0;X<N.length;++X)gd(N[X],I);return I}(d["!merges"])),v&&hb(h,d),We(h,442,ud(O)),v&&(L=h,T=d,(O=ge(19)).write_shift(4,2151),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,1),O.write_shift(4,0),We(L,2151,O),(O=ge(39)).write_shift(4,2152),O.write_shift(4,0),O.write_shift(4,0),O.write_shift(2,3),O.write_shift(1,0),O.write_shift(4,0),O.write_shift(2,1),O.write_shift(4,4),O.write_shift(2,0),gd(Qt(T["!ref"]||"A1"),O),O.write_shift(4,4),We(L,2152,O)),We(h,10),h.end()}function bb(a,i,l){var c=Is(),p=(a||{}).Workbook||{},f=p.Sheets||[],h=p.WBProps||{},d=l.biff==8,p=l.biff==5;We(c,2057,oc(0,5,l)),l.bookType=="xla"&&We(c,135),We(c,225,d?Js(1200):null),We(c,193,function(L,T){T=T||ge(L);for(var O=0;O<L;++O)T.write_shift(1,0);return T}(2)),p&&We(c,191),p&&We(c,192),We(c,226),We(c,92,function(L){var T=!L||L.biff==8,O=ge(T?112:54);for(O.write_shift(L.biff==8?2:1,7),T&&O.write_shift(1,0),O.write_shift(4,859007059),O.write_shift(4,5458548|(T?0:536870912));O.l<O.length;)O.write_shift(1,T?0:32);return O}(l)),We(c,66,Js(d?1200:1252)),d&&We(c,353,Js(0)),d&&We(c,448),We(c,317,function(L){for(var T=ge(2*L),O=0;O<L;++O)T.write_shift(2,O+1);return T}(a.SheetNames.length)),d&&a.vbaraw&&We(c,211),d&&a.vbaraw&&We(c,442,ud(h.CodeName||"ThisWorkbook")),We(c,156,Js(17)),We(c,25,Ls(!1)),We(c,18,Ls(!1)),We(c,19,Js(0)),d&&We(c,431,Ls(!1)),d&&We(c,444,Js(0)),We(c,61,((p=ge(18)).write_shift(2,0),p.write_shift(2,0),p.write_shift(2,29280),p.write_shift(2,17600),p.write_shift(2,56),p.write_shift(2,0),p.write_shift(2,0),p.write_shift(2,1),p.write_shift(2,500),p)),We(c,64,Ls(!1)),We(c,141,Js(0)),We(c,34,Ls(((h=a).Workbook&&h.Workbook.WBProps&&Nr(h.Workbook.WBProps.date1904)?"true":"false")=="true")),We(c,14,Ls(!0)),d&&We(c,439,Ls(!1)),We(c,218,Js(0)),ub(c,0,l),db(c,a.SSF,l),function(L,T){for(var O=0;O<16;++O)We(L,224,wd({numFmtId:0,style:!0},0,T));T.cellXfs.forEach(function(N){We(L,224,wd(N,0,T))})}(c,l),d&&We(c,352,Ls(!1)),p=c.end(),h=Is(),d&&We(h,140,((P=P||ge(4)).write_shift(2,1),P.write_shift(2,1),P)),d&&l.Strings&&function(L,T,O){var N=(O||[]).length||0;if(N<=8224)return We(L,T,O,N);if(!isNaN(T)){for(var I=O.parts||[],X=0,se=0,te=0;te+(I[X]||8224)<=8224;)te+=I[X]||8224,X++;var ce=L.next(4);for(ce.write_shift(2,T),ce.write_shift(2,te),L.push(O.slice(se,se+te)),se+=te;se<N;){for((ce=L.next(4)).write_shift(2,60),te=0;te+(I[X]||8224)<=8224;)te+=I[X]||8224,X++;ce.write_shift(2,te),L.push(O.slice(se,se+te)),se+=te}}}(h,252,X1(l.Strings)),We(h,10);for(var c=h.end(),g=Is(),y=0,v=0,v=0;v<a.SheetNames.length;++v)y+=(d?12:11)+(d?2:1)*a.SheetNames[v].length;var x,C,F,R,A=p.length+y+c.length;for(v=0;v<a.SheetNames.length;++v)We(g,133,(x={pos:A,hs:(f[v]||{}).Hidden||0,dt:0,name:a.SheetNames[v]},R=F=void 0,F=!(C=l)||8<=C.biff?2:1,(R=ge(8+F*x.name.length)).write_shift(4,x.pos),R.write_shift(1,x.hs||0),R.write_shift(1,x.dt),R.write_shift(1,x.name.length),8<=C.biff&&R.write_shift(1,1),R.write_shift(F*x.name.length,x.name,C.biff<8?"sbcs":"utf16le"),(C=R.slice(0,R.l)).l=R.l,C)),A+=i[v].length;var P=g.end();if(y!=P.length)throw new Error("BS8 "+y+" != "+P.length);return h=[],p.length&&h.push(p),P.length&&h.push(P),c.length&&h.push(c),ft(h)}function u0(a,i){for(var l=0;l<=a.SheetNames.length;++l){var c=a.Sheets[a.SheetNames[l]];c&&c["!ref"]&&255<Rs(c["!ref"]).e.c&&typeof console<"u"&&console.error&&console.error("Worksheet '"+a.SheetNames[l]+"' extends beyond column IV (255). Data may be lost.")}var f=i||{};switch(f.biff||2){case 8:case 5:return function(h,d){var p=d||{},g=[];h&&!h.SSF&&(h.SSF=Rr(oe)),h&&h.SSF&&(Lo(),ii(h.SSF),p.revssf=ln(h.SSF),p.revssf[h.SSF[65535]]=0,p.ssf=h.SSF),p.Strings=[],p.Strings.Count=0,p.Strings.Unique=0,Nc(p),p.cellXfs=[],Ga(p.cellXfs,{},{revssf:{General:0}}),h.Props||(h.Props={});for(var y=0;y<h.SheetNames.length;++y)g[g.length]=gb(y,p,h);return g.unshift(bb(h,g,p)),ft(g)}(a,i);case 4:case 3:case 2:return fb(a,i)}throw new Error("invalid type "+f.bookType+" for BIFF")}function d0(a,i){var l=i||{},c=l.dense?[]:{},f=(a=a.replace(/<!--.*?-->/g,"")).match(/<table/i);if(!f)throw new Error("Invalid HTML: could not find <table>");for(var h,i=a.match(/<\/table/i),C=f.index,d=i&&i.index||a.length,p=w1(a.slice(C,d),/(:?<tr[^>]*>)/i,"<tr>"),g=-1,y=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},x=[],C=0;C<p.length;++C){var F=p[C].trim(),R=F.slice(0,3).toLowerCase();if(R!="<tr"){if(R=="<td"||R=="<th")for(var A=F.split(/<\/t[dh]>/i),d=0;d<A.length;++d){var P=A[d].trim();if(P.match(/<t[dh]/i)){for(var L=P,T=0;L.charAt(0)=="<"&&-1<(T=L.indexOf(">"));)L=L.slice(T+1);for(var O=0;O<x.length;++O){var N=x[O];N.s.c==y&&N.s.r<g&&g<=N.e.r&&(y=N.e.c+1,O=-1)}var I=Dt(P.slice(0,P.indexOf(">"))),X=I.colspan?+I.colspan:1;(1<(h=+I.rowspan)||1<X)&&x.push({s:{r:g,c:y},e:{r:g+(h||1)-1,c:y+X-1}}),P=I.t||I["data-t"]||"",L.length&&(L=mu(L),v.s.r>g&&(v.s.r=g),v.e.r<g&&(v.e.r=g),v.s.c>y&&(v.s.c=y),v.e.c<y&&(v.e.c=y),L.length&&(I={t:"s",v:L},l.raw||!L.trim().length||P=="s"||(L==="TRUE"?I={t:"b",v:!0}:L==="FALSE"?I={t:"b",v:!1}:isNaN(ia(L))?isNaN(Mo(L).getDate())||(I={t:"d",v:Pr(L)},(I=l.cellDates?I:{t:"n",v:os(I.v)}).z=l.dateNF||oe[14]):I={t:"n",v:ia(L)}),l.dense?(c[g]||(c[g]=[]),c[g][y]=I):c[St({r:g,c:y})]=I)),y+=X}}}else{if(++g,l.sheetRows&&l.sheetRows<=g){--g;break}y=0}}return c["!ref"]=Ot(v),x.length&&(c["!merges"]=x),c}function h0(a,i,l,c){for(var f=a["!merges"]||[],h=[],d=i.s.c;d<=i.e.c;++d){for(var p,g,y,v,x=0,C=0,F=0;F<f.length;++F)if(!(f[F].s.r>l||f[F].s.c>d||f[F].e.r<l||f[F].e.c<d)){if(f[F].s.r<l||f[F].s.c<d){x=-1;break}x=f[F].e.r-f[F].s.r+1,C=f[F].e.c-f[F].s.c+1;break}x<0||(p=St({r:l,c:d}),y=(g=c.dense?(a[l]||[])[d]:a[p])&&g.v!=null&&(g.h||Ll(g.w||(ba(g),g.w)||""))||"",v={},1<x&&(v.rowspan=x),1<C&&(v.colspan=C),c.editable?y='<span contenteditable="true">'+y+"</span>":g&&(v["data-t"]=g&&g.t||"z",g.v!=null&&(v["data-v"]=g.v),g.z!=null&&(v["data-z"]=g.z),g.l&&(g.l.Target||"#").charAt(0)!="#"&&(y='<a href="'+g.l.Target+'">'+y+"</a>")),v.id=(c.id||"sjs")+"-"+p,h.push(je("td",y,v)))}return"<tr>"+h.join("")+"</tr>"}var p0='<html><head><meta charset="utf-8"/><title>SheetJS Table Export</title></head><body>',m0="</body></html>";function g0(a,i,l){return[].join("")+"<table"+(l&&l.id?' id="'+l.id+'"':"")+">"}function b0(a,f){var l=f||{},c=l.header!=null?l.header:p0,f=l.footer!=null?l.footer:m0,h=[c],d=Rs(a["!ref"]);l.dense=Array.isArray(a),h.push(g0(0,0,l));for(var p=d.s.r;p<=d.e.r;++p)h.push(h0(a,d,p,l));return h.push("</table>"+f),h.join("")}function y0(a,i,l){var c=l||{},f=0,h=0;c.origin!=null&&(typeof c.origin=="number"?f=c.origin:(f=(l=typeof c.origin=="string"?Gr(c.origin):c.origin).r,h=l.c));var d=i.getElementsByTagName("tr"),p=Math.min(c.sheetRows||1e7,d.length),g={s:{r:0,c:0},e:{r:f,c:h}};a["!ref"]&&(i=Rs(a["!ref"]),g.s.r=Math.min(g.s.r,i.s.r),g.s.c=Math.min(g.s.c,i.s.c),g.e.r=Math.max(g.e.r,i.e.r),g.e.c=Math.max(g.e.c,i.e.c),f==-1&&(g.e.r=f=i.e.r+1));var y,v,x=[],C=0,F=a["!rows"]||(a["!rows"]=[]),R=0,A=0,P=0,L=0;for(a["!cols"]||(a["!cols"]=[]);R<d.length&&A<p;++R){var T=d[R];if(v0(T)){if(c.display)continue;F[A]={hidden:!0}}for(var O=T.children,P=L=0;P<O.length;++P){var N=O[P];if(!c.display||!v0(N)){for(var I=N.hasAttribute("data-v")?N.getAttribute("data-v"):N.hasAttribute("v")?N.getAttribute("v"):mu(N.innerHTML),X=N.getAttribute("data-z")||N.getAttribute("z"),C=0;C<x.length;++C){var se=x[C];se.s.c==L+h&&se.s.r<A+f&&A+f<=se.e.r&&(L=se.e.c+1-h,C=-1)}v=+N.getAttribute("colspan")||1,(1<(y=+N.getAttribute("rowspan")||1)||1<v)&&x.push({s:{r:A+f,c:L+h},e:{r:A+f+(y||1)-1,c:L+h+(v||1)-1}});var te={t:"s",v:I},ce=N.getAttribute("data-t")||N.getAttribute("t")||"";I!=null&&(I.length==0?te.t=ce||"z":c.raw||I.trim().length==0||ce=="s"||(I==="TRUE"?te={t:"b",v:!0}:I==="FALSE"?te={t:"b",v:!1}:isNaN(ia(I))?isNaN(Mo(I).getDate())||(te={t:"d",v:Pr(I)},(te=c.cellDates?te:{t:"n",v:os(te.v)}).z=c.dateNF||oe[14]):te={t:"n",v:ia(I)})),te.z===void 0&&X!=null&&(te.z=X);var _e="",we=N.getElementsByTagName("A");if(we&&we.length)for(var de=0;de<we.length&&(!we[de].hasAttribute("href")||(_e=we[de].getAttribute("href")).charAt(0)=="#");++de);_e&&_e.charAt(0)!="#"&&(te.l={Target:_e}),c.dense?(a[A+f]||(a[A+f]=[]),a[A+f][L+h]=te):a[St({c:L+h,r:A+f})]=te,g.e.c<L+h&&(g.e.c=L+h),L+=v}}++A}return x.length&&(a["!merges"]=(a["!merges"]||[]).concat(x)),g.e.r=Math.max(g.e.r,A-1+f),a["!ref"]=Ot(g),p<=A&&(a["!fullref"]=Ot((g.e.r=d.length-R+A-1+f,g))),a}function _0(a,i){return y0((i||{}).dense?[]:{},a,i)}function v0(a){var l,i="",l=(l=a).ownerDocument.defaultView&&typeof l.ownerDocument.defaultView.getComputedStyle=="function"?l.ownerDocument.defaultView.getComputedStyle:typeof getComputedStyle=="function"?getComputedStyle:null;return(i=(i=l?l(a).getPropertyValue("display"):i)||a.style&&a.style.display)==="none"}var w0={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 x0(a,i){var l=i||{},c,f,h,d,p,g=Nl(a),y=[],v={name:""},x="",C=0,F={},R=[],A=l.dense?[]:{},P={value:""},L="",T=0,O=[],N=-1,I=-1,X={s:{r:1e6,c:1e7},e:{r:0,c:0}},se=0,te={},ce=[],_e={},we=[],de=1,Re=1,qe=[],He={Names:[]},Ne={},Ue=["",""],Oe=[],Fe={},$e="",tt=0,gt=!1,Pt=!1,Xe=0;for(ui.lastIndex=0,g=g.replace(/<!--([\s\S]*?)-->/gm,"").replace(/<!DOCTYPE[^\[]*\[[^\]]*\]>/gm,"");d=ui.exec(g);)switch(d[3]=d[3].replace(/_.*$/,"")){case"table":case"工作表":d[1]==="/"?(X.e.c>=X.s.c&&X.e.r>=X.s.r?A["!ref"]=Ot(X):A["!ref"]="A1:A1",0<l.sheetRows&&l.sheetRows<=X.e.r&&(A["!fullref"]=A["!ref"],X.e.r=l.sheetRows-1,A["!ref"]=Ot(X)),ce.length&&(A["!merges"]=ce),we.length&&(A["!rows"]=we),h.name=h.名称||h.name,typeof JSON<"u"&&JSON.stringify(h),R.push(h.name),F[h.name]=A,Pt=!1):d[0].charAt(d[0].length-2)!=="/"&&(h=Dt(d[0],!1),N=I=-1,X.s.r=X.s.c=1e7,X.e.r=X.e.c=0,A=l.dense?[]:{},ce=[],we=[],Pt=!0);break;case"table-row-group":d[1]==="/"?--se:++se;break;case"table-row":case"行":if(d[1]==="/"){N+=de,de=1;break}if((ke=Dt(d[0],!1)).行号?N=ke.行号-1:N==-1&&(N=0),(de=+ke["number-rows-repeated"]||1)<10)for(Xe=0;Xe<de;++Xe)0<se&&(we[N+Xe]={level:se});I=-1;break;case"covered-table-cell":d[1]!=="/"&&++I,l.sheetStubs&&(l.dense?(A[N]||(A[N]=[]),A[N][I]={t:"z"}):A[St({r:N,c:I})]={t:"z"}),L="",O=[];break;case"table-cell":case"数据":if(d[0].charAt(d[0].length-2)==="/")++I,P=Dt(d[0],!1),Re=parseInt(P["number-columns-repeated"]||"1",10),p={t:"z",v:null},P.formula&&l.cellFormula!=0&&(p.f=jh(pr(P.formula))),(P.数据类型||P["value-type"])=="string"&&(p.t="s",p.v=pr(P["string-value"]||""),l.dense?(A[N]||(A[N]=[]),A[N][I]=p):A[St({r:N,c:I})]=p),I+=Re-1;else if(d[1]!=="/"){L="",T=0,O=[],Re=1;var ke=de?N+de-1:N;if(++I>X.e.c&&(X.e.c=I),I<X.s.c&&(X.s.c=I),N<X.s.r&&(X.s.r=N),ke>X.e.r&&(X.e.r=ke),Oe=[],Fe={},p={t:(P=Dt(d[0],!1)).数据类型||P["value-type"],v:null},l.cellFormula)if(P.formula&&(P.formula=pr(P.formula)),P["number-matrix-columns-spanned"]&&P["number-matrix-rows-spanned"]&&(_e={s:{r:N,c:I},e:{r:N+(parseInt(P["number-matrix-rows-spanned"],10)||0)-1,c:I+(parseInt(P["number-matrix-columns-spanned"],10)||0)-1}},p.F=Ot(_e),qe.push([_e,p.F])),P.formula)p.f=jh(P.formula);else for(Xe=0;Xe<qe.length;++Xe)N>=qe[Xe][0].s.r&&N<=qe[Xe][0].e.r&&I>=qe[Xe][0].s.c&&I<=qe[Xe][0].e.c&&(p.F=qe[Xe][1]);switch((P["number-columns-spanned"]||P["number-rows-spanned"])&&(_e={s:{r:N,c:I},e:{r:N+(parseInt(P["number-rows-spanned"],10)||0)-1,c:I+(parseInt(P["number-columns-spanned"],10)||0)-1}},ce.push(_e)),P["number-columns-repeated"]&&(Re=parseInt(P["number-columns-repeated"],10)),p.t){case"boolean":p.t="b",p.v=Nr(P["boolean-value"]);break;case"float":case"percentage":case"currency":p.t="n",p.v=parseFloat(P.value);break;case"date":p.t="d",p.v=Pr(P["date-value"]),l.cellDates||(p.t="n",p.v=os(p.v)),p.z="m/d/yy";break;case"time":p.t="n",p.v=function(Ht){var vr=0,Kr=0,Z=!1,wr=Ht.match(/P([0-9\.]+Y)?([0-9\.]+M)?([0-9\.]+D)?T([0-9\.]+H)?([0-9\.]+M)?([0-9\.]+S)?/);if(!wr)throw new Error("|"+Ht+"| is not an ISO8601 Duration");for(var _r=1;_r!=wr.length;++_r)if(wr[_r]){switch(Kr=1,3<_r&&(Z=!0),wr[_r].slice(wr[_r].length-1)){case"Y":throw new Error("Unsupported ISO Duration Field: "+wr[_r].slice(wr[_r].length-1));case"D":Kr*=24;case"H":Kr*=60;case"M":if(!Z)throw new Error("Unsupported ISO Duration Field: M");Kr*=60}vr+=Kr*parseInt(wr[_r],10)}return vr}(P["time-value"])/86400,l.cellDates&&(p.t="d",p.v=un(p.v)),p.z="HH:MM:SS";break;case"number":p.t="n",p.v=parseFloat(P.数据数值);break;default:if(p.t!=="string"&&p.t!=="text"&&p.t)throw new Error("Unsupported value type "+p.t);p.t="s",P["string-value"]!=null&&(L=pr(P["string-value"]),O=[])}}else{if(gt=!1,p.t==="s"&&(p.v=L||"",O.length&&(p.R=O),gt=T==0),Ne.Target&&(p.l=Ne),0<Oe.length&&(p.c=Oe,Oe=[]),L&&l.cellText!==!1&&(p.w=L),gt&&(p.t="z",delete p.v),(!gt||l.sheetStubs)&&!(l.sheetRows&&l.sheetRows<=N))for(var Et=0;Et<de;++Et){if(Re=parseInt(P["number-columns-repeated"]||"1",10),l.dense)for(A[N+Et]||(A[N+Et]=[]),A[N+Et][I]=Et==0?p:Rr(p);0<--Re;)A[N+Et][I+Re]=Rr(p);else for(A[St({r:N+Et,c:I})]=p;0<--Re;)A[St({r:N+Et,c:I+Re})]=Rr(p);X.e.c<=I&&(X.e.c=I)}I+=(Re=parseInt(P["number-columns-repeated"]||"1",10))-1,Re=0,p={},L="",O=[]}Ne={};break;case"document":case"document-content":case"电子表格文档":case"spreadsheet":case"主体":case"scripts":case"styles":case"font-face-decls":case"master-styles":if(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!0]);break;case"annotation":if(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c;Fe.t=L,O.length&&(Fe.R=O),Fe.a=$e,Oe.push(Fe)}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!1]);L=$e="",T=tt=0,O=[];break;case"creator":d[1]==="/"?$e=g.slice(tt,d.index):tt=d.index+d[0].length;break;case"meta":case"元数据":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(d[1]==="/"){if((c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&y.push([d[3],!1]);L="",T=0,O=[];break;case"scientific-number":case"currency-symbol":case"currency-style":break;case"number-style":case"percentage-style":case"date-style":case"time-style":if(d[1]==="/"){if(te[v.name]=x,(c=y.pop())[0]!==d[3])throw"Bad state: "+c}else d[0].charAt(d[0].length-2)!=="/"&&(x="",v=Dt(d[0],!1),y.push([d[3],!0]));break;case"script":case"libraries":case"automatic-styles":break;case"default-style":case"page-layout":case"style":case"map":case"font-face":case"paragraph-properties":case"table-properties":case"table-column-properties":case"table-row-properties":case"table-cell-properties":break;case"number":switch(y[y.length-1][0]){case"time-style":case"date-style":f=Dt(d[0],!1),x+=w0[d[3]][f.style==="long"?1:0]}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(y[y.length-1][0]){case"time-style":case"date-style":f=Dt(d[0],!1),x+=w0[d[3]][f.style==="long"?1:0]}break;case"boolean-style":case"boolean":case"text-style":break;case"text":if(d[0].slice(-2)==="/>")break;if(d[1]==="/")switch(y[y.length-1][0]){case"number-style":case"date-style":case"time-style":x+=g.slice(C,d.index)}else C=d.index+d[0].length;break;case"named-range":Ue=Fc((f=Dt(d[0],!1))["cell-range-address"]);var $t={Name:f.name,Ref:Ue[0]+"!"+Ue[1]};Pt&&($t.Sheet=R.length),He.Names.push($t);break;case"text-content":case"text-properties":case"embedded-text":break;case"body":case"电子表格":case"forms":case"table-column":case"table-header-rows":case"table-rows":case"table-column-group":case"table-header-columns":case"table-columns":case"null-date":case"graphic-properties":case"calculation-settings":case"named-expressions":case"label-range":case"label-ranges":case"named-expression":case"sort":case"sort-by":case"sort-groups":case"tab":case"line-break":case"span":break;case"p":case"文本串":if(-1<["master-styles"].indexOf(y[y.length-1][0]))break;d[1]!=="/"||P&&P["string-value"]?(Dt(d[0],!1),T=d.index+d[0].length):($t=($t=g.slice(T,d.index)).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(/<text:s\/>/g," ").replace(/<text:s text:c="(\d+)"\/>/g,function(Ht,vr){return Array(parseInt(vr,10)+1).join(" ")}).replace(/<text:tab[^>]*\/>/g," ").replace(/<text:line-break\/>/g,` `),$t=[pr($t.replace(/<[^>]*>/g,""))],L=(0<L.length?L+` `:"")+$t[0]);break;case"s":break;case"database-range":if(d[1]==="/")break;try{F[(Ue=Fc(Dt(d[0])["target-range-address"]))[0]]["!autofilter"]={ref:Ue[1]}}catch{}break;case"date":case"object":break;case"title":case"标题":case"desc":case"binary-data":case"table-source":case"scenario":case"iteration":case"content-validations":case"content-validation":case"help-message":case"error-message":case"database-ranges":case"filter":case"filter-and":case"filter-or":case"filter-condition":case"list-level-style-bullet":case"list-level-style-number":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":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":case"config-item":case"page-number":case"page-count":case"time":case"cell-range-source":case"detective":case"operation":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":case"rect":break;case"dde-connection-decls":case"dde-connection-decl":case"dde-link":case"dde-source":case"properties":case"property":break;case"a":if(d[1]!=="/"){if(!(Ne=Dt(d[0],!1)).href)break;Ne.Target=pr(Ne.href),delete Ne.href,Ne.Target.charAt(0)=="#"&&-1<Ne.Target.indexOf(".")?(Ue=Fc(Ne.Target.slice(1)),Ne.Target="#"+Ue[0]+"!"+Ue[1]):Ne.Target.match(/^\.\.[\\\/]/)&&(Ne.Target=Ne.Target.slice(3))}break;case"table-protection":case"data-pilot-grand-total":case"office-document-common-attrs":break;default:switch(d[2]){case"dc:":case"calcext:":case"loext:":case"ooo:":case"chartooo:":case"draw:":case"style:":case"chart:":case"form:":case"uof:":case"表:":case"字:":break;default:if(l.WTF)throw new Error(d)}}return a={Sheets:F,SheetNames:R,Workbook:He},l.bookSheets&&delete a.Sheets,a}function C0(a,i){i=i||{},Ys(a,"META-INF/manifest.xml")&&function(c,f){for(var h,d,p=Nl(c);h=ui.exec(p);)switch(h[3]){case"manifest":break;case"file-entry":if((d=Dt(h[0],!1)).path=="/"&&d.type!==j1)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(f&&f.WTF)throw h}}(ts(a,"META-INF/manifest.xml"),i);var l=zs(a,"content.xml");if(!l)throw new Error("Missing content.xml in ODS / UOF file");return i=x0(Er(l),i),Ys(a,"meta.xml")&&(i.Props=Wu(ts(a,"meta.xml"))),i}function F0(a,i){return x0(a,i)}var yb=function(){var a=["<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(""),i="<office:document-styles "+fi({"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"})+">"+a+"</office:document-styles>";return function(){return Xr+i}}(),A0=function(){function a(l,c,f){var h=[];h.push(' <table:table table:name="'+Fr(c.SheetNames[f])+`" table:style-name="ta1"> `);var d=0,p=0,g=Rs(l["!ref"]||"A1"),y=l["!merges"]||[],v=0,x=Array.isArray(l);if(l["!cols"])for(p=0;p<=g.e.c;++p)h.push(" <table:table-column"+(l["!cols"][p]?' table:style-name="co'+l["!cols"][p].ods+'"':"")+`></table:table-column> `);for(var C="",F=l["!rows"]||[],d=0;d<g.s.r;++d)C=F[d]?' table:style-name="ro'+F[d].ods+'"':"",h.push(" <table:table-row"+C+`></table:table-row> `);for(;d<=g.e.r;++d){for(C=F[d]?' table:style-name="ro'+F[d].ods+'"':"",h.push(" <table:table-row"+C+`> `),p=0;p<g.s.c;++p)h.push(i);for(;p<=g.e.c;++p){for(var R=!1,A={},P="",v=0;v!=y.length;++v)if(!(y[v].s.c>p||y[v].s.r>d||y[v].e.c<p||y[v].e.r<d)){y[v].s.c==p&&y[v].s.r==d||(R=!0),A["table:number-columns-spanned"]=y[v].e.c-y[v].s.c+1,A["table:number-rows-spanned"]=y[v].e.r-y[v].s.r+1;break}if(R)h.push(` <table:covered-table-cell/> `);else{var L=St({r:d,c:p}),T=x?(l[d]||[])[p]:l[L];if(T&&T.f&&(A["table:formula"]=Fr(("of:="+T.f.replace(vc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),T.F&&T.F.slice(0,L.length)==L&&(O=Rs(T.F),A["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,A["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1)),T){switch(T.t){case"b":P=T.v?"TRUE":"FALSE",A["office:value-type"]="boolean",A["office:boolean-value"]=T.v?"true":"false";break;case"n":P=T.w||String(T.v||0),A["office:value-type"]="float",A["office:value"]=T.v||0;break;case"s":case"str":P=T.v==null?"":T.v,A["office:value-type"]="string";break;case"d":P=T.w||Pr(T.v).toISOString(),A["office:value-type"]="date",A["office:date-value"]=Pr(T.v).toISOString(),A["table:style-name"]="ce1";break;default:h.push(i);continue}var O,L=Fr(P).replace(/ +/g,function(I){return'<text:s text:c="'+I.length+'"/>'}).replace(/\t/g,"<text:tab/>").replace(/\n/g,"</text:p><text:p>").replace(/^ /,"<text:s/>").replace(/ $/,"<text:s/>");T.l&&T.l.Target&&(L=je("text:a",L,{"xlink:href":(O=(O=(O=T.l.Target).charAt(0)=="#"?"#"+O.slice(1).replace(/\./,"!"):O).charAt(0)!="#"&&!O.match(/^\w+:/)?"../"+O:O).replace(/&/g,"&")})),h.push(" "+je("table:table-cell",je("text:p",L,{}),A)+` `)}else h.push(i)}}h.push(` </table:table-row> `)}return h.push(` </table:table> `),h.join("")}var i=` <table:table-cell /> `;return function(l,c){var f=[Xr],h=fi({"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"}),d=fi({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(f.push("<office:document"+h+d+`> `),f.push(ju().replace(/office:document-meta/g,"office:meta"))):f.push("<office:document-content"+h+`> `),function(g,y){g.push(` <office:automatic-styles> `),g.push(` <number:date-style style:name="N37" number:automatic-order="true"> `),g.push(` <number:month number:style="long"/> `),g.push(` <number:text>/</number:text> `),g.push(` <number:day number:style="long"/> `),g.push(` <number:text>/</number:text> `),g.push(` <number:year/> `),g.push(` </number:date-style> `);var v=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!cols"]){for(var F=0;F<C["!cols"].length;++F)if(C["!cols"][F]){var R=C["!cols"][F];if(R.width==null&&R.wpx==null&&R.wch==null)continue;Ua(R),R.ods=v,R=C["!cols"][F].wpx+"px",g.push(' <style:style style:name="co'+v+`" style:family="table-column"> `),g.push(' <style:table-column-properties fo:break-before="auto" style:column-width="'+R+`"/> `),g.push(` </style:style> `),++v}}});var x=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!rows"])for(var F,R=0;R<C["!rows"].length;++R)C["!rows"][R]&&(C["!rows"][R].ods=x,F=C["!rows"][R].hpx+"px",g.push(' <style:style style:name="ro'+x+`" style:family="table-row"> `),g.push(' <style:table-row-properties fo:break-before="auto" style:row-height="'+F+`"/> `),g.push(` </style:style> `),++x)}),g.push(` <style:style style:name="ta1" style:family="table" style:master-page-name="mp1"> `),g.push(` <style:table-properties table:display="true" style:writing-mode="lr-tb"/> `),g.push(` </style:style> `),g.push(` <style:style style:name="ce1" style:family="table-cell" style:parent-style-name="Default" style:data-style-name="N37"/> `),g.push(` </office:automatic-styles> `)}(f,l),f.push(` <office:body> `),f.push(` <office:spreadsheet> `);for(var p=0;p!=l.SheetNames.length;++p)f.push(a(l.Sheets[l.SheetNames[p]],l,p));return f.push(` </office:spreadsheet> `),f.push(` </office:body> `),c.bookType=="fods"?f.push("</office:document>"):f.push("</office:document-content>"),f.join("")}}();function D0(a,i){if(i.bookType=="fods")return A0(a,i);var l=Tl(),c=[],f=[];return Nt(l,"mimetype","application/vnd.oasis.opendocument.spreadsheet"),Nt(l,"content.xml",A0(a,i)),c.push(["content.xml","text/xml"]),f.push(["content.xml","ContentFile"]),Nt(l,"styles.xml",yb(a,i)),c.push(["styles.xml","text/xml"]),f.push(["styles.xml","StylesFile"]),Nt(l,"meta.xml",Xr+ju()),c.push(["meta.xml","text/xml"]),f.push(["meta.xml","MetadataFile"]),Nt(l,"manifest.rdf",function(h){var d=[Xr];d.push(`<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"> `);for(var p=0;p!=h.length;++p)d.push(Gu(h[p][0],h[p][1])),d.push([` <rdf:Description rdf:about=""> `,' <ns0:hasPart xmlns:ns0="http://docs.oasis-open.org/ns/office/1.2/meta/pkg#" rdf:resource="'+h[p][0]+`"/> `,` </rdf:Description> `].join(""));return d.push(Gu("","Document","pkg")),d.push("</rdf:RDF>"),d.join("")}(f)),c.push(["manifest.rdf","application/rdf+xml"]),Nt(l,"META-INF/manifest.xml",function(h){var d=[Xr];d.push(`<manifest:manifest xmlns:manifest="urn:oasis:names:tc:opendocument:xmlns:manifest:1.0" manifest:version="1.2"> `),d.push(` <manifest:file-entry manifest:full-path="/" manifest:version="1.2" manifest:media-type="application/vnd.oasis.opendocument.spreadsheet"/> `);for(var p=0;p<h.length;++p)d.push(' <manifest:file-entry manifest:full-path="'+h[p][0]+'" manifest:media-type="'+h[p][1]+`"/> `);return d.push("</manifest:manifest>"),d.join("")}(c)),l}function Ra(a){return new DataView(a.buffer,a.byteOffset,a.byteLength)}function Rc(a){return typeof TextDecoder<"u"?new TextDecoder().decode(a):Er(ct(a))}function S0(a){return typeof TextEncoder<"u"?new TextEncoder().encode(a):ve(ga(a))}function ja(a){var i=a.reduce(function(f,h){return f+h.length},0),l=new Uint8Array(i),c=0;return a.forEach(function(f){l.set(f,c),c+=f.length}),l}function E0(a){return 16843009*((a=(858993459&(a-=a>>1&1431655765))+(a>>2&858993459))+(a>>4)&252645135)>>>24}function Ni(a,i){var l=i?i[0]:0,c=127&a[l];return 128<=a[l++]&&(c|=(127&a[l])<<7,a[l++]<128||(c|=(127&a[l])<<14,a[l++]<128||(c|=(127&a[l])<<21,a[l++]<128||(c+=(127&a[l])*Math.pow(2,28),++l,a[l++]<128||(c+=(127&a[l])*Math.pow(2,35),++l,a[l++]<128||(c+=(127&a[l])*Math.pow(2,42),++l,a[l++])))))),i&&(i[0]=l),c}function mr(a){var i=new Uint8Array(7);i[0]=127&a;var l=1;return 127<a&&(i[l-1]|=128,i[l]=a>>7&127,++l,a<=16383||(i[l-1]|=128,i[l]=a>>14&127,++l,a<=2097151||(i[l-1]|=128,i[l]=a>>21&127,++l,a<=268435455||(i[l-1]|=128,i[l]=a/256>>>21&127,++l,a<=34359738367||(i[l-1]|=128,i[l]=a/65536>>>21&127,++l,a<=4398046511103||(i[l-1]|=128,i[l]=a/16777216>>>21&127,++l)))))),i.slice(0,l)}function Br(a){var i=0,l=127&a[0];return 128<=a[i++]&&(l|=(127&a[1])<<7,a[i++]<128||(l|=(127&a[2])<<14,a[i++]<128||(l|=(127&a[3])<<21,a[+i]<128||(l|=(127&a[4])<<28)))),l}function Zt(a){for(var i=[],l=[0];l[0]<a.length;){var c,f=l[0],h=Ni(a,l),d=7&h,p=0;if((h=Math.floor(h/8))==0)break;switch(d){case 0:for(var g=l[0];128<=a[l[0]++];);c=a.slice(g,l[0]);break;case 5:p=4,c=a.slice(l[0],l[0]+p),l[0]+=p;break;case 1:p=8,c=a.slice(l[0],l[0]+p),l[0]+=p;break;case 2:p=Ni(a,l),c=a.slice(l[0],l[0]+p),l[0]+=p;break;case 3:case 4:default:throw new Error("PB Type ".concat(d," for Field ").concat(h," at offset ").concat(f))}var y={data:c,type:d};i[h]==null?i[h]=[y]:i[h].push(y)}return i}function jr(a){var i=[];return a.forEach(function(l,c){c!=0&&l.forEach(function(f){f.data&&(i.push(mr(8*c+f.type)),f.type==2&&i.push(mr(f.data.length)),i.push(f.data))})}),ja(i)}function Lc(a,i){return(a==null?void 0:a.map(function(l){return i(l.data)}))||[]}function Xs(a){for(var i=[],l=[0];l[0]<a.length;){var c=Ni(a,l),f=Zt(a.slice(l[0],l[0]+c));l[0]+=c;var h={id:Br(f[1][0].data),messages:[]};f[2].forEach(function(g){var p=Zt(g.data),g=Br(p[3][0].data);h.messages.push({meta:p,data:a.slice(l[0],l[0]+g)}),l[0]+=g}),(c=f[3])!=null&&c[0]&&(h.merge=0<Br(f[3][0].data)>>>0),i.push(h)}return i}function po(a){var i=[];return a.forEach(function(l){var c=[[],[{data:mr(l.id),type:0}],[]];l.merge!=null&&(c[3]=[{data:mr(+!!l.merge),type:0}]);var f=[];l.messages.forEach(function(h){f.push(h.data),h.meta[3]=[{type:0,data:mr(h.data.length)}],c[2].push({data:jr(h.meta),type:2})}),l=jr(c),i.push(mr(l.length)),i.push(l),f.forEach(function(h){return i.push(h)})}),ja(i)}function Qs(a){for(var i=[],l=0;l<a.length;){var c=a[l++],f=a[l]|a[l+1]<<8|a[l+2]<<16;l+=3,i.push(function(h,d){if(h!=0)throw new Error("Unexpected Snappy chunk type ".concat(h));for(var p=[0],g=Ni(d,p),y=[];p[0]<d.length;){var v=3&d[p[0]];if(v!=0){var x=0,C=0;if(v==1?(C=4+(d[p[0]]>>2&7),x=(224&d[p[0]++])<<3,x|=d[p[0]++]):(C=1+(d[p[0]++]>>2),v==2?(x=d[p[0]]|d[p[0]+1]<<8,p[0]+=2):(x=(d[p[0]]|d[p[0]+1]<<8|d[p[0]+2]<<16|d[p[0]+3]<<24)>>>0,p[0]+=4)),y=[ja(y)],x==0)throw new Error("Invalid offset 0");if(x>y[0].length)throw new Error("Invalid offset beyond length");if(x<=C)for(y.push(y[0].slice(-x)),C-=x;C>=y[y.length-1].length;)y.push(y[y.length-1]),C-=y[y.length-1].length;y.push(y[0].slice(-x,-x+C))}else v=d[p[0]++]>>2,v<60?++v:(x=v-59,v=d[p[0]],1<x&&(v|=d[p[0]+1]<<8),2<x&&(v|=d[p[0]+2]<<16),3<x&&(v|=d[p[0]+3]<<24),v>>>=0,v++,p[0]+=x),y.push(d.slice(p[0],p[0]+v)),p[0]+=v}if((h=ja(y)).length!=g)throw new Error("Unexpected length: ".concat(h.length," != ").concat(g));return h}(c,a.slice(l,l+f))),l+=f}if(l!==a.length)throw new Error("data is not a valid framed stream!");return ja(i)}function mo(a){for(var i=[],l=0;l<a.length;){var c=Math.min(a.length-l,268435455),f=new Uint8Array(4);i.push(f);var h=mr(c),d=h.length;i.push(h),c<=60?(d++,i.push(new Uint8Array([c-1<<2]))):c<=256?(d+=2,i.push(new Uint8Array([240,c-1&255]))):c<=65536?(d+=3,i.push(new Uint8Array([244,c-1&255,c-1>>8&255]))):c<=16777216?(d+=4,i.push(new Uint8Array([248,c-1&255,c-1>>8&255,c-1>>16&255]))):c<=4294967296&&(d+=5,i.push(new Uint8Array([252,c-1&255,c-1>>8&255,c-1>>16&255,c-1>>>24&255]))),i.push(a.slice(l,l+c)),d+=c,f[0]=0,f[1]=255&d,f[2]=d>>8&255,f[3]=d>>16&255,l+=c}return ja(i)}function _b(a,i,l){var c,f=Ra(a),h=f.getUint32(8,!0),d=12,p=-1,g=-1,y=NaN,v=NaN,x=new Date(2001,0,1);switch(1&h&&(y=function(C,F){for(var R=(127&C[F+15])<<7|C[F+14]>>1,A=1&C[F+14],P=F+13;F<=P;--P)A=256*A+C[P];return(128&C[F+15]?-A:A)*Math.pow(10,R-6176)}(a,d),d+=16),2&h&&(v=f.getFloat64(d,!0),d+=8),4&h&&(x.setTime(x.getTime()+1e3*f.getFloat64(d,!0)),d+=8),8&h&&(g=f.getUint32(d,!0),d+=4),16&h&&(p=f.getUint32(d,!0),d+=4),a[1]){case 0:break;case 2:c={t:"n",v:y};break;case 3:c={t:"s",v:i[g]};break;case 5:c={t:"d",v:x};break;case 6:c={t:"b",v:0<v};break;case 7:c={t:"n",v:v/86400};break;case 8:c={t:"e",v:0};break;case 9:if(!(-1<p))throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&h," : ").concat(a.slice(0,4)));c={t:"s",v:l[p]};break;case 10:c={t:"n",v:y};break;default:throw new Error("Unsupported cell type ".concat(a[1]," : ").concat(31&h," : ").concat(a.slice(0,4)))}return c}function Mc(a,i){var l=new Uint8Array(32),c=Ra(l),f=12,h=0;switch(l[0]=5,a.t){case"n":l[1]=2,function(d,p,g){var y=Math.floor(g==0?0:Math.LOG10E*Math.log(Math.abs(g)))+6176-16,v=g/Math.pow(10,y-6176);d[p+15]|=y>>7,d[p+14]|=(127&y)<<1;for(var x=0;1<=v;++x,v/=256)d[p+x]=255&v;d[p+15]|=0<=g?0:128}(l,f,a.v),h|=1,f+=16;break;case"b":l[1]=6,c.setFloat64(f,a.v?1:0,!0),h|=2,f+=8;break;case"s":if(i.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[1]=3,c.setUint32(f,i.indexOf(a.v),!0),h|=8,f+=4;break;default:throw"unsupported cell type "+a.t}return c.setUint32(8,h,!0),l.slice(0,f)}function Oc(a,i){var l=new Uint8Array(32),c=Ra(l),f=12,h=0;switch(l[0]=3,a.t){case"n":l[2]=2,c.setFloat64(f,a.v,!0),h|=32,f+=8;break;case"b":l[2]=6,c.setFloat64(f,a.v?1:0,!0),h|=32,f+=8;break;case"s":if(i.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[2]=3,c.setUint32(f,i.indexOf(a.v),!0),h|=16,f+=4;break;default:throw"unsupported cell type "+a.t}return c.setUint32(4,h,!0),l.slice(0,f)}function vb(a,i,l){switch(a[0]){case 0:case 1:case 2:case 3:return function(c,f,h,d){var p,g=Ra(c),y=g.getUint32(4,!0),v=(1<d?12:8)+4*E0(y&(1<d?3470:398)),x=-1,C=-1,F=NaN,R=new Date(2001,0,1);switch(512&y&&(x=g.getUint32(v,!0),v+=4),v+=4*E0(y&(1<d?12288:4096)),16&y&&(C=g.getUint32(v,!0),v+=4),32&y&&(F=g.getFloat64(v,!0),v+=8),64&y&&(R.setTime(R.getTime()+1e3*g.getFloat64(v,!0)),v+=8),c[2]){case 0:break;case 2:p={t:"n",v:F};break;case 3:p={t:"s",v:f[C]};break;case 5:p={t:"d",v:R};break;case 6:p={t:"b",v:0<F};break;case 7:p={t:"n",v:F/86400};break;case 8:p={t:"e",v:0};break;case 9:if(-1<x)p={t:"s",v:h[x]};else if(-1<C)p={t:"s",v:f[C]};else{if(isNaN(F))throw new Error("Unsupported cell type ".concat(c.slice(0,4)));p={t:"n",v:F}}break;default:throw new Error("Unsupported cell type ".concat(c.slice(0,4)))}return p}(a,i,l,a[0]);case 5:return _b(a,i,l);default:throw new Error("Unsupported payload version ".concat(a[0]))}}function bs(a){return Ni(Zt(a)[1][0].data)}function T0(a,c){var c=Zt(c.data),l=Br(c[1][0].data),c=c[3],f=[];return(c||[]).forEach(function(h){var d=Zt(h.data),p=Br(d[1][0].data)>>>0;switch(l){case 1:f[p]=Rc(d[3][0].data);break;case 8:var y=Zt(a[bs(d[9][0].data)][0].data),g=a[bs(y[1][0].data)][0],y=Br(g.meta[1][0].data);if(y!=2001)throw new Error("2000 unexpected reference to ".concat(y));g=Zt(g.data),f[p]=g[3].map(function(v){return Rc(v.data)}).join("")}}),f}function wb(a,f){var l=Zt(f.data),c=(f=l==null?void 0:l[7])!=null&&f[0]?0<Br(l[7][0].data)>>>0?1:0:-1,f=Lc(l[5],function(h){return function(d,p){var g,y,v,x=Zt(d),C=Br(x[1][0].data)>>>0,F=Br(x[2][0].data)>>>0,R=((d=(R=x[8])==null?void 0:R[0])==null?void 0:d.data)&&0<Br(x[8][0].data)||!1;if((d=(d=x[7])==null?void 0:d[0])!=null&&d.data&&p!=0)y=(g=(g=x[7])==null?void 0:g[0])==null?void 0:g.data,v=(g=(g=x[6])==null?void 0:g[0])==null?void 0:g.data;else{if((g=(g=x[4])==null?void 0:g[0])==null||!g.data||p==1)throw"NUMBERS Tile missing ".concat(p," cell storage");y=(p=(p=x[4])==null?void 0:p[0])==null?void 0:p.data,v=(x=(x=x[3])==null?void 0:x[0])==null?void 0:x.data}for(var A=R?4:1,P=Ra(y),L=[],T=0;T<y.length/2;++T){var O=P.getUint16(2*T,!0);O<65535&&L.push([T,O])}if(L.length!=F)throw"Expected ".concat(F," cells, found ").concat(L.length);for(var N=[],T=0;T<L.length-1;++T)N[L[T][0]]=v.subarray(L[T][1]*A,L[T+1][1]*A);return 1<=L.length&&(N[L[L.length-1][0]]=v.subarray(L[L.length-1][1]*A)),{R:C,cells:N}}(h,c)});return{nrows:Br(l[4][0].data)>>>0,data:f.reduce(function(h,d){return h[d.R]||(h[d.R]=[]),d.cells.forEach(function(p,g){if(h[d.R][g])throw new Error("Duplicate cell r=".concat(d.R," c=").concat(g));h[d.R][g]=p}),h},[])}}function xb(a,f){var l={"!ref":"A1"},c=a[bs(Zt(f.data)[2][0].data)],f=Br(c[0].meta[1][0].data);if(f!=6001)throw new Error("6000 unexpected reference to ".concat(f));return function(h,g,p){var x=Zt(g.data);if((g={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Br(x[6][0].data)>>>0)-1,g.e.r<0)throw new Error("Invalid row varint ".concat(x[6][0].data));if(g.e.c=(Br(x[7][0].data)>>>0)-1,g.e.c<0)throw new Error("Invalid col varint ".concat(x[7][0].data));p["!ref"]=Ot(g);var g=Zt(x[4][0].data),y=T0(h,h[bs(g[4][0].data)][0]),v=(x=g[17])!=null&&x[0]?T0(h,h[bs(g[17][0].data)][0]):[],x=Zt(g[3][0].data),C=0;if(x[1].forEach(function(R){var A=Zt(R.data),R=h[bs(A[2][0].data)][0],A=Br(R.meta[1][0].data);if(A!=6002)throw new Error("6001 unexpected reference to ".concat(A));R=wb(0,R),R.data.forEach(function(P,L){P.forEach(function(T,O){O=St({r:C+L,c:O}),T=vb(T,y,v),T&&(p[O]=T)})}),C+=R.nrows}),(x=g[13])!=null&&x[0]){if(x=h[bs(g[13][0].data)][0],g=Br(x.meta[1][0].data),g!=6144)throw new Error("Expected merge type 6144, found ".concat(g));p["!merges"]=(x=Zt(x.data))==null?void 0:x[1].map(function(R){var A=Zt(R.data),R=Ra(Zt(A[1][0].data)[1][0].data),A=Ra(Zt(A[2][0].data)[1][0].data);return{s:{r:R.getUint16(0,!0),c:R.getUint16(2,!0)},e:{r:R.getUint16(0,!0)+A.getUint16(0,!0)-1,c:R.getUint16(2,!0)+A.getUint16(2,!0)-1}}})}}(a,c[0],l),l}function Cb(a,i){var l=Gc(),c=Zt(i.data);if((i=c[2])!=null&&i[0])throw new Error("Keynote presentations are not supported");if(Lc(c[1],bs).forEach(function(f){a[f].forEach(function(h){var d,p,g,y;Br(h.meta[1][0].data)==2&&(p=a,h=Zt((g=h).data),y={name:(g=h[1])!=null&&g[0]?Rc(h[1][0].data):"",sheets:[]},Lc(h[2],bs).forEach(function(v){p[v].forEach(function(x){Br(x.meta[1][0].data)==6e3&&y.sheets.push(xb(p,x))})}),(d=y).sheets.forEach(function(v,x){jc(l,v,x==0?d.name:d.name+"_"+x,!0)}))})}),l.SheetNames.length==0)throw new Error("Empty NUMBERS file");return l}function k0(a){var i={},l=[];if(a.FullPaths.forEach(function(f){if(f.match(/\.iwpv2/))throw new Error("Unsupported password protection")}),a.FileIndex.forEach(function(f){if(f.name.match(/\.iwa$/)){var h,d;try{h=Qs(f.content)}catch(p){return console.log("?? "+f.content.length+" "+(p.message||p))}try{d=Xs(h)}catch(p){return console.log("## "+(p.message||p))}d.forEach(function(p){i[p.id]=p.messages,l.push(p.id)})}}),!l.length)throw new Error("File has no messages");if((a=(a=(a=(a=i==null?void 0:i[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])!=null&&a[0].data&&Br(i[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var c=((a=(a=(a=(a=i==null?void 0:i[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])==null?void 0:a[0].data)&&Br(i[1][0].meta[1][0].data)==1&&i[1][0];if(c||l.forEach(function(f){i[f].forEach(function(h){if(Br(h.meta[1][0].data)>>>0==1){if(c)throw new Error("Document has multiple roots");c=h}})}),!c)throw new Error("Cannot find Document root");return Cb(i,c)}function Fb(a,i){if(!i||!i.numbers)throw new Error("Must pass a `numbers` option -- check the README");var l=a.Sheets[a.SheetNames[0]];1<a.SheetNames.length&&console.error("The Numbers writer currently writes only the first table");var c=Rs(l["!ref"]);c.s.r=c.s.c=0;var f=!1;9<c.e.c&&(f=!0,c.e.c=9),49<c.e.r&&(f=!0,c.e.r=49),f&&console.error("The Numbers writer is currently limited to ".concat(Ot(c)));var h=Yn(l,{range:c,header:1}),d=["~Sh33tJ5~"];h.forEach(function(Ne){return Ne.forEach(function(Ue){typeof Ue=="string"&&d.push(Ue)})});var p={},g=[],y=_t.read(i.numbers,{type:"base64"});y.FileIndex.map(function(Ne,Ue){return[Ne,y.FullPaths[Ue]]}).forEach(function(Ne){var Ue=Ne[0],Oe=Ne[1];Ue.type==2&&Ue.name.match(/\.iwa/)&&Xs(Qs(Ue.content)).forEach(function(Fe){g.push(Fe.id),p[Fe.id]={deps:[],location:Oe,type:Br(Fe.messages[0].meta[1][0].data)}})}),g.sort(function(Ne,Ue){return Ne-Ue});var v=g.filter(function(Ne){return 1<Ne}).map(function(Ne){return[Ne,mr(Ne)]});y.FileIndex.map(function(Ne,Ue){return[Ne,y.FullPaths[Ue]]}).forEach(function(Ne){var Ue=Ne[0];Ne[1],Ue.name.match(/\.iwa/)&&Xs(Qs(Ue.content)).forEach(function(Oe){Oe.messages.forEach(function(Fe){v.forEach(function($e){Oe.messages.some(function(tt){return Br(tt.meta[1][0].data)!=11006&&function(gt,Pt){e:for(var Xe=0;Xe<=gt.length-Pt.length;++Xe){for(var ke=0;ke<Pt.length;++ke)if(gt[Xe+ke]!=Pt[ke])continue e;return!0}return!1}(tt.data,$e[1])})&&p[$e[0]].deps.push(Oe.id)})})})});for(var x,C=_t.find(y,p[1].location),F=Xs(Qs(C.content)),R=0;R<F.length;++R){var A=F[R];A.id==1&&(x=A)}for(var P=bs(Zt(x.messages[0].data)[1][0].data),F=Xs(Qs((C=_t.find(y,p[P].location)).content)),R=0;R<F.length;++R)(A=F[R]).id==P&&(x=A);var _e=Zt(x.messages[0].data);for(_e[1]=[{type:2,data:S0(a.SheetNames[0])}],x.messages[0].data=jr(_e),C.content=mo(po(F)),C.size=C.content.length,P=bs(_e[2][0].data),F=Xs(Qs((C=_t.find(y,p[P].location)).content)),R=0;R<F.length;++R)(A=F[R]).id==P&&(x=A);for(P=bs(Zt(x.messages[0].data)[2][0].data),F=Xs(Qs((C=_t.find(y,p[P].location)).content)),R=0;R<F.length;++R)(A=F[R]).id==P&&(x=A);f=Zt(x.messages[0].data),f[6][0].data=mr(c.e.r+1),f[7][0].data=mr(c.e.c+1);for(var L=bs(f[46][0].data),i=_t.find(y,p[L].location),T=Xs(Qs(i.content)),O=0;O<T.length&&T[O].id!=L;++O);if(T[O].id!=L)throw"Bad ColumnRowUIDMapArchive";var N=Zt(T[O].messages[0].data);N[1]=[],N[2]=[],N[3]=[];for(var I=0;I<=c.e.c;++I)N[1].push({type:2,data:jr([[],[{type:0,data:mr(I+420690)}],[{type:0,data:mr(I+420690)}]])}),N[2].push({type:0,data:mr(I)}),N[3].push({type:0,data:mr(I)});N[4]=[],N[5]=[],N[6]=[];for(var X=0;X<=c.e.r;++X)N[4].push({type:2,data:jr([[],[{type:0,data:mr(X+726270)}],[{type:0,data:mr(X+726270)}]])}),N[5].push({type:0,data:mr(X)}),N[6].push({type:0,data:mr(X)});if(T[O].messages[0].data=jr(N),i.content=mo(po(T)),i.size=i.content.length,delete f[46],a=Zt(f[4][0].data),a[7][0].data=mr(c.e.r+1),_e=bs(Zt(a[1][0].data)[2][0].data),(T=Xs(Qs((i=_t.find(y,p[_e].location)).content)))[0].id!=_e)throw"Bad HeaderStorageBucket";for(var se=Zt(T[0].messages[0].data),X=0;X<h.length;++X){var te=Zt(se[2][0].data);te[1][0].data=mr(X),te[4][0].data=mr(h[X].length),se[2][X]={type:se[2][0].type,data:jr(te)}}T[0].messages[0].data=jr(se),i.content=mo(po(T)),i.size=i.content.length;var ce,_e=bs(a[2][0].data);if((T=Xs(Qs((i=_t.find(y,p[_e].location)).content)))[0].id!=_e)throw"Bad HeaderStorageBucket";for(se=Zt(T[0].messages[0].data),I=0;I<=c.e.c;++I)(te=Zt(se[2][0].data))[1][0].data=mr(I),te[4][0].data=mr(c.e.r+1),se[2][I]={type:se[2][0].type,data:jr(te)};T[0].messages[0].data=jr(se),i.content=mo(po(T)),i.size=i.content.length,l["!merges"]&&(qe=function(Ne){for(var Ue=927262;Ue<2e6;++Ue)if(!p[Ue])return p[Ue]=Ne,Ue;throw new Error("Too many messages")}({type:6144,deps:[P],location:p[P].location}),ce=[[],[]],l["!merges"].forEach(function(Ne){ce[1].push({type:2,data:jr([[],[{type:2,data:jr([[],[{type:5,data:new Uint8Array(new Uint16Array([Ne.s.r,Ne.s.c]).buffer)}]])}],[{type:2,data:jr([[],[{type:5,data:new Uint8Array(new Uint16Array([Ne.e.r-Ne.s.r+1,Ne.e.c-Ne.s.c+1]).buffer)}]])}]])})}),a[13]=[{type:2,data:jr([[],[{type:0,data:mr(qe)}]])}],F.push({id:qe,messages:[(Re=6144,qe=jr(ce),{meta:[[],[{type:0,data:mr(Re)}]],data:qe})]}));var we=bs(a[4][0].data);(function(){for(var Ne,Ue=_t.find(y,p[we].location),Oe=Xs(Qs(Ue.content)),Fe=0;Fe<Oe.length;++Fe){var $e=Oe[Fe];$e.id==we&&(Ne=$e)}var tt=Zt(Ne.messages[0].data);tt[3]=[],d.forEach(function(gt,Pt){tt[3].push({type:2,data:jr([[],[{type:0,data:mr(Pt)}],[{type:0,data:mr(1)}],[{type:2,data:S0(gt)}]])})}),Ne.messages[0].data=jr(tt),Ue.content=mo(po(Oe)),Ue.size=Ue.content.length})();var de=Zt(a[3][0].data),Re=de[1][0];delete de[2];var Re,qe,qe=Zt(Re.data),He=bs(qe[2][0].data);return function(){for(var Ne,Ue=_t.find(y,p[He].location),Oe=Xs(Qs(Ue.content)),Fe=0;Fe<Oe.length;++Fe){var $e=Oe[Fe];$e.id==He&&(Ne=$e)}var tt=Zt(Ne.messages[0].data);delete tt[6],delete de[7];var gt=new Uint8Array(tt[5][0].data);tt[5]=[];for(var Pt=0,Xe=0;Xe<=c.e.r;++Xe){var ke=Zt(gt);Pt+=function(Et,$t,Ht){var vr,Kr;if((vr=Et[6])==null||!vr[0]||(Kr=Et[7])==null||!Kr[0])throw"Mutation only works on post-BNC storages!";if((Kr=(Kr=Et[8])==null?void 0:Kr[0])!=null&&Kr.data&&0<Br(Et[8][0].data))throw"Math only works with normal offsets";for(var Z,wr,_r=0,ns=Ra(Et[7][0].data),$s=0,B=[],he=Ra(Et[4][0].data),J=0,fe=[],q=0;q<$t.length;++q)if($t[q]!=null){switch(ns.setUint16(2*q,$s,!0),he.setUint16(2*q,J,!0),typeof $t[q]){case"string":Z=Mc({t:"s",v:$t[q]},Ht),wr=Oc({t:"s",v:$t[q]},Ht);break;case"number":Z=Mc({t:"n",v:$t[q]},Ht),wr=Oc({t:"n",v:$t[q]},Ht);break;case"boolean":Z=Mc({t:"b",v:$t[q]},Ht),wr=Oc({t:"b",v:$t[q]},Ht);break;default:throw new Error("Unsupported value "+$t[q])}B.push(Z),$s+=Z.length,fe.push(wr),J+=wr.length,++_r}else ns.setUint16(2*q,65535,!0),he.setUint16(2*q,65535);for(Et[2][0].data=mr(_r);q<Et[7][0].data.length/2;++q)ns.setUint16(2*q,65535,!0),he.setUint16(2*q,65535,!0);return Et[6][0].data=ja(B),Et[3][0].data=ja(fe),_r}(ke,h[Xe],d),ke[1][0].data=mr(Xe),tt[5].push({data:jr(ke),type:2})}tt[1]=[{type:0,data:mr(c.e.c+1)}],tt[2]=[{type:0,data:mr(c.e.r+1)}],tt[3]=[{type:0,data:mr(Pt)}],tt[4]=[{type:0,data:mr(c.e.r+1)}],Ne.messages[0].data=jr(tt),Ue.content=mo(po(Oe)),Ue.size=Ue.content.length}(),Re.data=jr(qe),a[3][0].data=jr(de),f[4][0].data=jr(a),x.messages[0].data=jr(f),C.content=mo(po(F)),C.size=C.content.length,y}function R0(a){return function(i){for(var l=0;l!=a.length;++l){var c=a[l];i[c[0]]===void 0&&(i[c[0]]=c[1]),c[2]==="n"&&(i[c[0]]=Number(i[c[0]]))}}}function Pc(a){R0([["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]])(a)}function Nc(a){R0([["cellDates",!1],["bookSST",!1],["bookType","xlsx"],["compression",!1],["WTF",!1]])(a)}function Ab(a,i){if(!a)return 0;try{a=i.map(function(l){return l.id||(l.id=l.strRelID),[l.name,a["!id"][l.id].Target,(l=a["!id"][l.id].Type,-1<It.WS.indexOf(l)?"sheet":It.CS&&l==It.CS?"chart":It.DS&&l==It.DS?"dialog":It.MS&&l==It.MS?"macro":l&&l.length?l:"sheet")]})}catch{return null}return a&&a.length!==0?a:null}function Db(a,i,l,c,f,h,d,p,g,y,v,x){try{h[c]=bi(zs(a,l,!0),i);var C=ts(a,i);switch(p){case"sheet":A=H2(C,i,f,g,h[c],y,v,x);break;case"chart":if(!(A=Y2(C,i,f,g,h[c],y))||!A["!drawel"])break;var R=li(A["!drawel"].Target,i),F=gi(R),T=li((T=zs(a,R,!0),F=bi(zs(a,F,!0),R),T?(T=(T.match(/<c:chart [^>]*r:id="([^"]*)"/)||["",""])[1],F["!id"][T].Target):"??"),R),R=gi(T),A=O2(zs(a,T,!0),0,0,bi(zs(a,R,!0),T),0,A);break;case"macro":L=i,h[c],L.slice(-4),A={"!type":"macro"};break;case"dialog":L=i,h[c],L.slice(-4),A={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+p)}d[c]=A;var P=[];h&&h[c]&&Hr(h[c]).forEach(function(O){var N,I,X,se,te,ce,_e="";if(h[c][O].Type==It.CMNT){_e=li(h[c][O].Target,i);var we=J2(ts(a,_e,!0),_e,g);if(!we||!we.length)return;Sh(A,we,!1)}h[c][O].Type==It.TCMNT&&(_e=li(h[c][O].Target,i),P=P.concat((N=ts(a,_e,!0),I=g,se=!(X=[]),te={},ce=0,N.replace(_s,function(de,Re){var qe=Dt(de);switch(ma(qe[0])){case"<?xml":case"<ThreadedComments":case"</ThreadedComments>":break;case"<threadedComment":te={author:qe.personId,guid:qe.id,ref:qe.ref,T:1};break;case"</threadedComment>":te.t!=null&&X.push(te);break;case"<text>":case"<text":ce=Re+de.length;break;case"</text>":te.t=N.slice(ce,Re).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"<mentions":case"<mentions>":se=!0;break;case"</mentions>":se=!1;break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":se=!0;break;case"</ext>":se=!1;break;default:if(!se&&I.WTF)throw new Error("unrecognized "+qe[0]+" in threaded comments")}return de}),X)))}),P&&P.length&&Sh(A,P,!0,g.people||[])}catch(O){if(g.WTF)throw O}var L,T}function Zs(a){return a.charAt(0)=="/"?a.slice(1):a}function L0(a,i){if(Lo(),Pc(i=i||{}),Ys(a,"META-INF/manifest.xml")||Ys(a,"objectdata.xml"))return C0(a,i);if(Ys(a,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(a.FileIndex)return k0(a);var l=_t.utils.cfb_new();return au(a).forEach(function(Oe){Nt(l,Oe,function Fe($e,tt,gt){if(!gt)return su(El($e,tt));if(!tt)return null;try{return Fe($e,tt)}catch{return null}}(a,Oe))}),k0(l)}if(!Ys(a,"[Content_Types].xml"))throw Ys(a,"index.xml.gz")?new Error("Unsupported NUMBERS 08 file"):Ys(a,"index.xml")?new Error("Unsupported NUMBERS 09 file"):new Error("Unsupported ZIP file");var c,f,h=au(a),d=function(Oe){var Fe=tc();if(!Oe||!Oe.match)return Fe;var $e={};if((Oe.match(_s)||[]).forEach(function(tt){var gt=Dt(tt);switch(gt[0].replace(C1,"<")){case"<?xml":break;case"<Types":Fe.xmlns=gt["xmlns"+(gt[0].match(/<(\w+):/)||["",""])[1]];break;case"<Default":$e[gt.Extension]=gt.ContentType;break;case"<Override":Fe[ec[gt.ContentType]]!==void 0&&Fe[ec[gt.ContentType]].push(gt.PartName)}}),Fe.xmlns!==is.CT)throw new Error("Unknown Namespace: "+Fe.xmlns);return Fe.calcchain=0<Fe.calcchains.length?Fe.calcchains[0]:"",Fe.sst=0<Fe.strs.length?Fe.strs[0]:"",Fe.style=0<Fe.styles.length?Fe.styles[0]:"",Fe.defaults=$e,delete Fe.calcchains,Fe}(zs(a,"[Content_Types].xml")),te=!1;if(d.workbooks.length===0&&ts(a,f="xl/workbook.xml",!0)&&d.workbooks.push(f),d.workbooks.length===0){if(!ts(a,f="xl/workbook.bin",!0))throw new Error("Could not find workbook");d.workbooks.push(f),te=!0}d.workbooks[0].slice(-3)=="bin"&&(te=!0);var p={},g={};if(!i.bookSheets&&!i.bookProps){if(ki=[],d.sst)try{ki=K2(ts(a,Zs(d.sst)),d.sst,i)}catch(Oe){if(i.WTF)throw Oe}i.cellStyles&&d.themes.length&&(R=zs(a,d.themes[0].replace(/^\//,""),!0)||"",d.themes[0],p=Fh(R,i)),d.style&&(g=q2(ts(a,Zs(d.style)),d.style,p,i))}d.links.map(function(Oe){try{return bi(zs(a,gi(Zs(Oe))),Oe),Q2(ts(a,Zs(Oe)),0,Oe,i)}catch{}});var y,v,x,C=W2(ts(a,Zs(d.workbooks[0])),d.workbooks[0],i),F={},R="";d.coreprops.length&&((R=ts(a,Zs(d.coreprops[0]),!0))&&(F=Wu(R)),d.extprops.length!==0&&(R=ts(a,Zs(d.extprops[0]),!0))&&(A=i,x={},v=(v=F)||{},y=Er(y=R),no.forEach(function(Oe){var Fe=(y.match(ci(Oe[0]))||[])[1];switch(Oe[2]){case"string":Fe&&(v[Oe[1]]=pr(Fe));break;case"bool":v[Oe[1]]=Fe==="true";break;case"raw":var $e=y.match(new RegExp("<"+Oe[0]+"[^>]*>([\\s\\S]*?)</"+Oe[0]+">"));$e&&0<$e.length&&(x[Oe[1]]=$e[1])}}),x.HeadingPairs&&x.TitlesOfParts&&qu(x.HeadingPairs,x.TitlesOfParts,v,A)));var A={};i.bookSheets&&!i.bookProps||d.custprops.length!==0&&(R=zs(a,Zs(d.custprops[0]),!0))&&(A=function(Oe,Fe){var $e={},tt="",gt=Oe.match(H1);if(gt)for(var Pt=0;Pt!=gt.length;++Pt){var Xe=gt[Pt],ke=Dt(Xe);switch(ke[0]){case"<?xml":case"<Properties":break;case"<property":tt=pr(ke.name);break;case"</property>":tt=null;break;default:if(Xe.indexOf("<vt:")===0){var Et=Xe.split(">"),$t=Et[0].slice(4),Ht=Et[1];switch($t){case"lpstr":case"bstr":case"lpwstr":$e[tt]=pr(Ht);break;case"bool":$e[tt]=Nr(Ht);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":$e[tt]=parseInt(Ht,10);break;case"r4":case"r8":case"decimal":$e[tt]=parseFloat(Ht);break;case"filetime":case"date":$e[tt]=Pr(Ht);break;case"cy":case"error":$e[tt]=pr(Ht);break;default:if($t.slice(-1)=="/")break;Fe.WTF&&typeof console<"u"&&console.warn("Unexpected",Xe,$t,Et)}}else if(Xe.slice(0,2)!=="</"&&Fe.WTF)throw new Error(Xe)}}return $e}(R,i));var P={};if((i.bookSheets||i.bookProps)&&(C.Sheets?c=C.Sheets.map(function(Oe){return Oe.name}):F.Worksheets&&0<F.SheetNames.length&&(c=F.SheetNames),i.bookProps&&(P.Props=F,P.Custprops=A),i.bookSheets&&c!==void 0&&(P.SheetNames=c),i.bookSheets?P.SheetNames:i.bookProps))return P;c={},R={},i.bookDeps&&d.calcchain&&(R=X2(ts(a,Zs(d.calcchain)),d.calcchain));var L,T,O=0,N={},I=C.Sheets;F.Worksheets=I.length,F.SheetNames=[];for(var X=0;X!=I.length;++X)F.SheetNames[X]=I[X].name;var se=te?"bin":"xml",te=d.workbooks[0].lastIndexOf("/"),ce=(d.workbooks[0].slice(0,te+1)+"_rels/"+d.workbooks[0].slice(te+1)+".rels").replace(/^\//,"");Ys(a,ce)||(ce="xl/_rels/workbook."+se+".rels");var _e,we,de,Re=bi(zs(a,ce,!0),ce.replace(/_rels.*/,"s5s"));1<=(d.metadata||[]).length&&(i.xlmeta=Z2(ts(a,Zs(d.metadata[0])),d.metadata[0],i)),1<=(d.people||[]).length&&(i.people=(te=ts(a,Zs(d.people[0])),_e=i,de=!(we=[]),te.replace(_s,function(Oe){var Fe=Dt(Oe);switch(ma(Fe[0])){case"<?xml":case"<personList":case"</personList>":break;case"<person":we.push({name:Fe.displayname,id:Fe.id});break;case"</person>":break;case"<extLst":case"<extLst>":case"</extLst>":case"<extLst/>":break;case"<ext":de=!0;break;case"</ext>":de=!1;break;default:if(!de&&_e.WTF)throw new Error("unrecognized "+Fe[0]+" in threaded comments")}return Oe}),we)),Re=Re&&Ab(Re,C.Sheets);var qe=ts(a,"xl/worksheets/sheet.xml",!0)?1:0;e:for(O=0;O!=F.Worksheets;++O){var He="sheet";if(Re&&Re[O]?(L="xl/"+Re[O][1].replace(/[\/]?xl\//,""),Ys(a,L)||(L=Re[O][1]),Ys(a,L)||(L=ce.replace(/_rels\/.*$/,"")+Re[O][1]),He=Re[O][2]):L=(L="xl/worksheets/sheet"+(O+1-qe)+"."+se).replace(/sheet0\./,"sheet."),T=L.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),i&&i.sheets!=null)switch(typeof i.sheets){case"number":if(O!=i.sheets)continue e;break;case"string":if(F.SheetNames[O].toLowerCase()!=i.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(i.sheets)){for(var Ne=!1,Ue=0;Ue!=i.sheets.length;++Ue)typeof i.sheets[Ue]=="number"&&i.sheets[Ue]==O&&(Ne=1),typeof i.sheets[Ue]=="string"&&i.sheets[Ue].toLowerCase()==F.SheetNames[O].toLowerCase()&&(Ne=1);if(!Ne)continue e}}Db(a,L,T,F.SheetNames[O],O,N,c,He,i,C,p,g)}return P={Directory:d,Workbook:C,Props:F,Custprops:A,Deps:R,Sheets:c,SheetNames:F.SheetNames,Strings:ki,Styles:g,Themes:p,SSF:Rr(oe)},i&&i.bookFiles&&(a.files?(P.keys=h,P.files=a.files):(P.keys=[],P.files={},a.FullPaths.forEach(function(Oe,Fe){Oe=Oe.replace(/^Root Entry[\/]/,""),P.keys.push(Oe),P.files[Oe]=a.FileIndex[Fe]}))),i&&i.bookVBA&&(0<d.vba.length?P.vbaraw=ts(a,Zs(d.vba[0]),!0):d.defaults&&d.defaults.bin===qg&&(P.vbaraw=ts(a,"xl/vbaProject.bin",!0))),P}function Sb(a,i){var l,c=i||{},f="Workbook",h=_t.find(a,f);try{if(f="/!DataSpaces/Version",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(d=h.content,(l={}).id=d.read_shift(0,"lpp4"),l.R=ka(d,4),l.U=ka(d,4),l.W=ka(d,4),f="/!DataSpaces/DataSpaceMap",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);var d=yg(h.content);if(d.length!==1||d[0].comps.length!==1||d[0].comps[0].t!==0||d[0].name!=="StrongEncryptionDataSpace"||d[0].comps[0].v!=="EncryptedPackage")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/DataSpaceInfo/StrongEncryptionDataSpace",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(d=function(p){var g=[];p.l+=4;for(var y=p.read_shift(4);0<y--;)g.push(p.read_shift(0,"lpp4"));return g}(h.content),d.length!=1||d[0]!="StrongEncryptionTransform")throw new Error("ECMA-376 Encrypted file bad "+f);if(f="/!DataSpaces/TransformInfo/StrongEncryptionTransform/!Primary",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);_g(h.content)}catch{}if(f="/EncryptionInfo",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(i=vg(h.content),f="/EncryptedPackage",!(h=_t.find(a,f))||!h.content)throw new Error("ECMA-376 Encrypted file missing "+f);if(i[0]==4&&typeof decrypt_agile<"u")return decrypt_agile(i[1],h.content,c.password||"",c);if(i[0]==2&&typeof decrypt_std76<"u")return decrypt_std76(i[1],h.content,c.password||"",c);throw new Error("File is password-protected")}function Eb(a,i){return(i.bookType=="ods"?D0:i.bookType=="numbers"?Fb:i.bookType=="xlsb"?function(l,c){Wo=1024,l&&!l.SSF&&(l.SSF=Rr(oe)),l&&l.SSF&&(Lo(),ii(l.SSF),c.revssf=ln(l.SSF),c.revssf[l.SSF[65535]]=0,c.ssf=l.SSF),c.rels={},c.wbrels={},c.Strings=[],c.Strings.Count=0,c.Strings.Unique=0,Ri?c.revStrings=new Map:(c.revStrings={},c.revStrings.foo=[],delete c.revStrings.foo);var f=c.bookType=="xlsb"?"bin":"xml",h=-1<Th.indexOf(c.bookType),d=tc();Nc(c=c||{});var p=Tl(),g="",y=0;if(c.cellXfs=[],Ga(c.cellXfs,{},{revssf:{General:0}}),l.Props||(l.Props={}),Nt(p,g="docProps/core.xml",Hu(l.Props,c)),d.coreprops.push(g),Ar(c.rels,2,g,It.CORE_PROPS),g="docProps/app.xml",!l.Props||!l.Props.SheetNames)if(l.Workbook&&l.Workbook.Sheets){for(var v=[],x=0;x<l.SheetNames.length;++x)(l.Workbook.Sheets[x]||{}).Hidden!=2&&v.push(l.SheetNames[x]);l.Props.SheetNames=v}else l.Props.SheetNames=l.SheetNames;for(l.Props.Worksheets=l.Props.SheetNames.length,Nt(p,g,Ku(l.Props)),d.extprops.push(g),Ar(c.rels,3,g,It.EXT_PROPS),l.Custprops!==l.Props&&0<Hr(l.Custprops||{}).length&&(Nt(p,g="docProps/custom.xml",Ju(l.Custprops)),d.custprops.push(g),Ar(c.rels,4,g,It.CUST_PROPS)),y=1;y<=l.SheetNames.length;++y){var C,F,R,A={"!id":{}},P=l.Sheets[l.SheetNames[y-1]];Nt(p,g="xl/worksheets/sheet"+y+"."+f,function(L,T,O,N,I){return(T.slice(-4)===".bin"?M2:$h)(L,O,N,I)}(y-1,g,c,l,A)),d.sheets.push(g),Ar(c.wbrels,-1,"worksheets/sheet"+y+"."+f,It.WS[0]),P&&(C=P["!comments"],F=!1,R="",C&&0<C.length&&(Nt(p,R="xl/comments"+y+"."+f,function(L,T,O){return(T.slice(-4)===".bin"?Yg:Eh)(L)}(C,R)),d.comments.push(R),Ar(A,-1,"../comments"+y+"."+f,It.CMNT),F=!0),P["!legacy"]&&F&&Nt(p,"xl/drawings/vmlDrawing"+y+".vml",Dh(y,P["!comments"])),delete P["!comments"],delete P["!legacy"]),A["!id"].rId1&&Nt(p,gi(g),Bo(A))}return c.Strings!=null&&0<c.Strings.length&&(Nt(p,g="xl/sharedStrings."+f,function(L,T,O){return(T.slice(-4)===".bin"?bg:ah)(L,O)}(c.Strings,g,c)),d.strs.push(g),Ar(c.wbrels,-1,"sharedStrings."+f,It.SST)),Nt(p,g="xl/workbook."+f,function(L,T,O){return(T.slice(-4)===".bin"?j2:n0)(L)}(l,g)),d.workbooks.push(g),Ar(c.rels,1,g,It.WB),Nt(p,g="xl/theme/theme1.xml",yc(l.Themes,c)),d.themes.push(g),Ar(c.wbrels,-1,"theme/theme1.xml",It.THEME),Nt(p,g="xl/styles."+f,function(L,T,O){return(T.slice(-4)===".bin"?Og:vh)(L,O)}(l,g,c)),d.styles.push(g),Ar(c.wbrels,-1,"styles."+f,It.STY),l.vbaraw&&h&&(Nt(p,g="xl/vbaProject.bin",l.vbaraw),d.vba.push(g),Ar(c.wbrels,-1,"vbaProject.bin",It.VBA)),Nt(p,g="xl/metadata."+f,function(L){return(L.slice(-4)===".bin"?Hg:Ah)()}(g)),d.metadata.push(g),Ar(c.wbrels,-1,"metadata."+f,It.XLMETA),Nt(p,"[Content_Types].xml",zu(d,c)),Nt(p,"_rels/.rels",Bo(c.rels)),Nt(p,"xl/_rels/workbook."+f+".rels",Bo(c.wbrels)),delete c.revssf,delete c.ssf,p}:M0)(a,i)}function M0(a,i){Wo=1024,a&&!a.SSF&&(a.SSF=Rr(oe)),a&&a.SSF&&(Lo(),ii(a.SSF),i.revssf=ln(a.SSF),i.revssf[a.SSF[65535]]=0,i.ssf=a.SSF),i.rels={},i.wbrels={},i.Strings=[],i.Strings.Count=0,i.Strings.Unique=0,Ri?i.revStrings=new Map:(i.revStrings={},i.revStrings.foo=[],delete i.revStrings.foo);var l="xml",c=-1<Th.indexOf(i.bookType),f=tc();Nc(i=i||{});var h=Tl(),d="",p=0;if(i.cellXfs=[],Ga(i.cellXfs,{},{revssf:{General:0}}),a.Props||(a.Props={}),d="docProps/core.xml",Nt(h,d,Hu(a.Props,i)),f.coreprops.push(d),Ar(i.rels,2,d,It.CORE_PROPS),d="docProps/app.xml",!a.Props||!a.Props.SheetNames)if(a.Workbook&&a.Workbook.Sheets){for(var g=[],y=0;y<a.SheetNames.length;++y)(a.Workbook.Sheets[y]||{}).Hidden!=2&&g.push(a.SheetNames[y]);a.Props.SheetNames=g}else a.Props.SheetNames=a.SheetNames;a.Props.Worksheets=a.Props.SheetNames.length,Nt(h,d,Ku(a.Props)),f.extprops.push(d),Ar(i.rels,3,d,It.EXT_PROPS),a.Custprops!==a.Props&&0<Hr(a.Custprops||{}).length&&(Nt(h,d="docProps/custom.xml",Ju(a.Custprops)),f.custprops.push(d),Ar(i.rels,4,d,It.CUST_PROPS));var v,x=["SheetJ5"];for(i.tcid=0,p=1;p<=a.SheetNames.length;++p){var C,F,R,A,P={"!id":{}},L=a.Sheets[a.SheetNames[p-1]];Nt(h,d="xl/worksheets/sheet"+p+"."+l,$h(p-1,i,a,P)),f.sheets.push(d),Ar(i.wbrels,-1,"worksheets/sheet"+p+"."+l,It.WS[0]),L&&(F=!1,R="",(C=L["!comments"])&&0<C.length&&(A=!1,C.forEach(function(T){T[1].forEach(function(O){O.T==1&&(A=!0)})}),A&&(Nt(h,R="xl/threadedComments/threadedComment"+p+"."+l,function(T,O,N){var I=[Xr,je("ThreadedComments",null,{xmlns:is.TCMNT}).replace(/[\/]>/,">")];return T.forEach(function(X){var se="";(X[1]||[]).forEach(function(te,ce){var _e;te.T?(te.a&&O.indexOf(te.a)==-1&&O.push(te.a),_e={ref:X[0],id:"{54EE7951-7262-4200-6969-"+("000000000000"+N.tcid++).slice(-12)+"}"},ce==0?se=_e.id:_e.parentId=se,te.ID=_e.id,te.a&&(_e.personId="{54EE7950-7262-4200-6969-"+("000000000000"+O.indexOf(te.a)).slice(-12)+"}"),I.push(je("threadedComment",ms("text",te.t||""),_e))):delete te.ID})}),I.push("</ThreadedComments>"),I.join("")}(C,x,i)),f.threadedcomments.push(R),Ar(P,-1,"../threadedComments/threadedComment"+p+"."+l,It.TCMNT)),Nt(h,R="xl/comments"+p+"."+l,Eh(C)),f.comments.push(R),Ar(P,-1,"../comments"+p+"."+l,It.CMNT),F=!0),L["!legacy"]&&F&&Nt(h,"xl/drawings/vmlDrawing"+p+".vml",Dh(p,L["!comments"])),delete L["!comments"],delete L["!legacy"]),P["!id"].rId1&&Nt(h,gi(d),Bo(P))}return i.Strings!=null&&0<i.Strings.length&&(Nt(h,d="xl/sharedStrings.xml",ah(i.Strings,i)),f.strs.push(d),Ar(i.wbrels,-1,"sharedStrings.xml",It.SST)),Nt(h,d="xl/workbook.xml",n0(a)),f.workbooks.push(d),Ar(i.rels,1,d,It.WB),Nt(h,d="xl/theme/theme1.xml",yc(a.Themes,i)),f.themes.push(d),Ar(i.wbrels,-1,"theme/theme1.xml",It.THEME),Nt(h,d="xl/styles.xml",vh(a,i)),f.styles.push(d),Ar(i.wbrels,-1,"styles.xml",It.STY),a.vbaraw&&c&&(Nt(h,d="xl/vbaProject.bin",a.vbaraw),f.vba.push(d),Ar(i.wbrels,-1,"vbaProject.bin",It.VBA)),Nt(h,d="xl/metadata.xml",Ah()),f.metadata.push(d),Ar(i.wbrels,-1,"metadata.xml",It.XLMETA),1<x.length&&(Nt(h,d="xl/persons/person.xml",(c=x,v=[Xr,je("personList",null,{xmlns:is.TCMNT,"xmlns:x":to[0]}).replace(/[\/]>/,">")],c.forEach(function(T,O){v.push(je("person",null,{displayName:T,id:"{54EE7950-7262-4200-6969-"+("000000000000"+O).slice(-12)+"}",userId:T,providerId:"None"}))}),v.push("</personList>"),v.join(""))),f.people.push(d),Ar(i.wbrels,-1,"persons/person.xml",It.PEOPLE)),Nt(h,"[Content_Types].xml",zu(f,i)),Nt(h,"_rels/.rels",Bo(i.rels)),Nt(h,"xl/_rels/workbook.xml.rels",Bo(i.wbrels)),delete i.revssf,delete i.ssf,h}function Ic(a,i){var l="";switch((i||{}).type||"base64"){case"buffer":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];case"base64":l=z(a.slice(0,12));break;case"binary":l=a;break;case"array":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];default:throw new Error("Unrecognized type "+(i&&i.type||"undefined"))}return[l.charCodeAt(0),l.charCodeAt(1),l.charCodeAt(2),l.charCodeAt(3),l.charCodeAt(4),l.charCodeAt(5),l.charCodeAt(6),l.charCodeAt(7)]}function O0(a,i){var l=0;e:for(;l<a.length;)switch(a.charCodeAt(l)){case 10:case 13:case 32:++l;break;case 60:return Tc(a.slice(l),i);default:break e}return Uo.to_workbook(a,i)}function Vc(a,i,l,c){return c?(l.type="string",Uo.to_workbook(a,l)):Uo.to_workbook(i,l)}function jn(a,i){D();var l=i||{};if(typeof ArrayBuffer<"u"&&a instanceof ArrayBuffer)return jn(new Uint8Array(a),((l=Rr(l)).type="array",l));typeof Uint8Array<"u"&&a instanceof Uint8Array&&!l.type&&(l.type=typeof Deno<"u"?"buffer":"array");var c,f,h,d,p,g=a,y=!1;if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),Yo={},l.dateNF&&(Yo.dateNF=l.dateNF),l.type||(l.type=H&&Buffer.isBuffer(a)?"buffer":"base64"),l.type=="file"&&(l.type=H?"buffer":"binary",g=function(x){if(Ia!==void 0)return Ia.readFileSync(x);if(typeof Deno<"u")return Deno.readFileSync(x);if(typeof $<"u"&&typeof File<"u"&&typeof Folder<"u")try{var C=File(x);C.open("r"),C.encoding="binary";var F=C.read();return C.close(),F}catch(R){if(!R.message||!R.message.match(/onstruct/))throw R}throw new Error("Cannot access file "+x)}(a),typeof Uint8Array>"u"||H||(l.type="array")),l.type=="string"&&(y=!0,l.type="binary",l.codepage=65001,g=(v=a).match(/[^\x00-\x7F]/)?ga(v):v),l.type=="array"&&typeof Uint8Array<"u"&&a instanceof Uint8Array&&typeof ArrayBuffer<"u"){var v=new ArrayBuffer(3),v=new Uint8Array(v);if(v.foo="bar",!v.foo)return(l=Rr(l)).type="array",jn(Je(g),l)}switch((c=Ic(g,l))[0]){case 208:if(c[1]===207&&c[2]===17&&c[3]===224&&c[4]===161&&c[5]===177&&c[6]===26&&c[7]===225)return d=_t.read(g,l),p=l,(_t.find(d,"EncryptedPackage")?Sb:Gn)(d,p);break;case 9:if(c[1]<=8)return Gn(g,l);break;case 60:return Tc(g,l);case 73:if(c[1]===73&&c[2]===42&&c[3]===0)throw new Error("TIFF Image File is not a spreadsheet");if(c[1]===68)return function(x,C){var F=C||{},R=!!F.WTF;F.WTF=!0;try{var A=Pd.to_workbook(x,F);return F.WTF=R,A}catch(P){if(F.WTF=R,!P.message.match(/SYLK bad record ID/)&&R)throw P;return Uo.to_workbook(x,C)}}(g,l);break;case 84:if(c[1]===65&&c[2]===66&&c[3]===76)return Id.to_workbook(g,l);break;case 80:return c[1]===75&&c[2]<9&&c[3]<9?(h=p=g,(f=(f=l)||{}).type||(f.type=H&&Buffer.isBuffer(p)?"buffer":"base64"),L0(ou(h,f),f)):Vc(a,g,l,y);case 239:return c[3]===60?Tc(g,l):Vc(a,g,l,y);case 255:if(c[1]===254)return h=g,(f=l).type=="base64"&&(h=z(h)),h=e.utils.decode(1200,h.slice(2),"str"),f.type="binary",O0(h,f);if(c[1]===0&&c[2]===2&&c[3]===0)return uo.to_workbook(g,l);break;case 0:if(c[1]===0&&(2<=c[2]&&c[3]===0||c[2]===0&&(c[3]===8||c[3]===9)))return uo.to_workbook(g,l);break;case 3:case 131:case 139:case 140:return ic.to_workbook(g,l);case 123:if(c[1]===92&&c[2]===114&&c[3]===116)return uh.to_workbook(g,l);break;case 10:case 13:case 32:return function(x,C){var F="",R=Ic(x,C);switch(C.type){case"base64":F=z(x);break;case"binary":F=x;break;case"buffer":F=x.toString("binary");break;case"array":F=eo(x);break;default:throw new Error("Unrecognized type "+C.type)}return R[0]==239&&R[1]==187&&R[2]==191&&(F=Er(F)),C.type="binary",O0(F,C)}(g,l);case 137:if(c[1]===80&&c[2]===78&&c[3]===71)throw new Error("PNG Image File is not a spreadsheet")}return-1<rg.indexOf(c[0])&&c[2]<=12&&c[3]<=31?ic.to_workbook(g,l):Vc(a,g,l,y)}function P0(a,i){return i=i||{},i.type="file",jn(a,i)}function N0(a,i){switch(i.type){case"base64":case"binary":break;case"buffer":case"array":i.type="";break;case"file":return ni(i.file,_t.write(a,{type:H?"buffer":""}));case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");default:throw new Error("Unrecognized type "+i.type)}return _t.write(a,i)}function I0(a,i){var l={},c=H?"nodebuffer":typeof Uint8Array<"u"?"array":"string";if(i.compression&&(l.compression="DEFLATE"),i.password)l.type=c;else switch(i.type){case"base64":l.type="base64";break;case"binary":l.type="string";break;case"string":throw new Error("'string' output type invalid for '"+i.bookType+"' files");case"buffer":case"file":l.type=c;break;default:throw new Error("Unrecognized type "+i.type)}if(a=a.FullPaths?_t.write(a,{fileType:"zip",type:{nodebuffer:"buffer",string:"binary"}[l.type]||l.type,compression:!!i.compression}):a.generate(l),typeof Deno<"u"&&typeof a=="string"){if(i.type=="binary"||i.type=="base64")return a;a=new Uint8Array(ot(a))}return i.password&&typeof encrypt_agile<"u"?N0(encrypt_agile(a,i.password),i):i.type==="file"?ni(i.file,a):i.type=="string"?Er(a):a}function wa(a,i,l){var c=(l=l||"")+a;switch(i.type){case"base64":return ie(ga(c));case"binary":return ga(c);case"string":return a;case"file":return ni(i.file,c,"utf8");case"buffer":return H?ne(c,"utf8"):typeof TextEncoder<"u"?new TextEncoder().encode(c):wa(c,{type:"binary"}).split("").map(function(f){return f.charCodeAt(0)})}throw new Error("Unrecognized type "+i.type)}function Wn(a,i){switch(i.type){case"string":case"base64":case"binary":for(var l="",c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);return i.type=="base64"?ie(l):i.type=="string"?Er(l):l;case"file":return ni(i.file,a);case"buffer":return a;default:throw new Error("Unrecognized type "+i.type)}}function Bc(a,i){D(),i0(a);var l,c=Rr(i||{});return c.cellStyles&&(c.cellNF=!0,c.sheetStubs=!0),c.type!="array"?(l=a,i=Rr((i=c)||{}),I0(M0(l,i),i)):(c.type="binary",a=Bc(a,c),c.type="array",ot(a))}function Hn(a,i){D(),i0(a);var l=Rr(i||{});if(l.cellStyles&&(l.cellNF=!0,l.sheetStubs=!0),l.type=="array")return l.type="binary",i=Hn(a,l),l.type="array",ot(i);var c,f,h,d=0;if(l.sheet&&(d=typeof l.sheet=="number"?l.sheet:a.SheetNames.indexOf(l.sheet),!a.SheetNames[d]))throw new Error("Sheet not found: "+l.sheet+" : "+typeof l.sheet);switch(l.bookType||"xlsb"){case"xml":case"xlml":return wa(ab(a,l),l);case"slk":case"sylk":return wa(Pd.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"htm":case"html":return wa(b0(a.Sheets[a.SheetNames[d]],l),l);case"txt":return function(p,g){switch(g.type){case"base64":return ie(p);case"binary":case"string":return p;case"file":return ni(g.file,p,"binary");case"buffer":return H?ne(p,"binary"):p.split("").map(function(y){return y.charCodeAt(0)})}throw new Error("Unrecognized type "+g.type)}(G0(a.Sheets[a.SheetNames[d]],l),l);case"csv":return wa(zc(a.Sheets[a.SheetNames[d]],l),l,"\uFEFF");case"dif":return wa(Id.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"dbf":return Wn(ic.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"prn":return wa(Uo.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"rtf":return wa(uh.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"eth":return wa(Gd.from_sheet(a.Sheets[a.SheetNames[d]],l),l);case"fods":return wa(D0(a,l),l);case"wk1":return Wn(uo.sheet_to_wk1(a.Sheets[a.SheetNames[d]],l),l);case"wk3":return Wn(uo.book_to_wk3(a,l),l);case"biff2":l.biff||(l.biff=2);case"biff3":l.biff||(l.biff=3);case"biff4":return l.biff||(l.biff=4),Wn(u0(a,l),l);case"biff5":l.biff||(l.biff=5);case"biff8":case"xla":case"xls":return l.biff||(l.biff=8),N0(lb(a,h=(h=l)||{}),h);case"xlsx":case"xlsm":case"xlam":case"xlsb":case"numbers":case"ods":return c=a,h=Rr((f=l)||{}),Ai=new Tb(f),I0(Eb(c,h),h);default:throw new Error("Unrecognized bookType |"+l.bookType+"|")}}function Uc(a){var i;a.bookType||((i=a.file.slice(a.file.lastIndexOf(".")).toLowerCase()).match(/^\.[a-z]+$/)&&(a.bookType=i.slice(1)),a.bookType={xls:"biff8",htm:"html",slk:"sylk",socialcalc:"eth",Sh33tJS:"WTF"}[a.bookType]||a.bookType)}function V0(a,i,l){return l=l||{},l.type="file",l.file=i,Uc(l),Hn(a,l)}function B0(a,i,l,c,f,h,d,p){var g=qr(l),y=p.defval,v=p.raw||!Object.prototype.hasOwnProperty.call(p,"raw"),x=!0,C=f===1?[]:{};if(f!==1)if(Object.defineProperty)try{Object.defineProperty(C,"__rowNum__",{value:l,enumerable:!1})}catch{C.__rowNum__=l}else C.__rowNum__=l;if(!d||a[l])for(var F=i.s.c;F<=i.e.c;++F){var R=d?a[l][F]:a[c[F]+g];if(R!==void 0&&R.t!==void 0){var A=R.v;switch(R.t){case"z":if(A==null)break;continue;case"e":A=A==0?null:void 0;break;case"s":case"d":case"b":case"n":break;default:throw new Error("unrecognized type "+R.t)}if(h[F]!=null){if(A==null)if(R.t=="e"&&A===null)C[h[F]]=null;else if(y!==void 0)C[h[F]]=y;else{if(!v||A!==null)continue;C[h[F]]=null}else C[h[F]]=v&&(R.t!=="n"||R.t==="n"&&p.rawNumbers!==!1)?A:ba(R,A,p);A!=null&&(x=!1)}}else y!==void 0&&h[F]!=null&&(C[h[F]]=y)}return{row:C,isempty:x}}function Yn(a,i){if(a==null||a["!ref"]==null)return[];var l,c={t:"n",v:0},f=0,h=1,d=[],p="",g={s:{r:0,c:0},e:{r:0,c:0}},y=i||{},v=y.range!=null?y.range:a["!ref"];switch(y.header===1?f=1:y.header==="A"?f=2:Array.isArray(y.header)?f=3:y.header==null&&(f=0),typeof v){case"string":g=Qt(v);break;case"number":(g=Qt(a["!ref"])).s.r=v;break;default:g=v}0<f&&(h=0);var x=qr(g.s.r),C=[],F=[],R=0,A=0,P=Array.isArray(a),L=g.s.r,T=0,O={};P&&!a[L]&&(a[L]=[]);for(var N,I=y.skipHidden&&a["!cols"]||[],X=y.skipHidden&&a["!rows"]||[],T=g.s.c;T<=g.e.c;++T)if(!(I[T]||{}).hidden)switch(C[T]=Ir(T),c=P?a[L][T]:a[C[T]+x],f){case 1:d[T]=T-g.s.c;break;case 2:d[T]=C[T];break;case 3:d[T]=y.header[T-g.s.c];break;default:if(p=l=ba(c=c??{w:"__EMPTY",t:"s"},null,y),A=O[l]||0){for(;p=l+"_"+A++,O[p];);O[l]=A,O[p]=1}else O[l]=1;d[T]=p}for(L=g.s.r+h;L<=g.e.r;++L)(X[L]||{}).hidden||(N=B0(a,g,L,C,f,d,P,y)).isempty!==!1&&(f===1?y.blankrows===!1:!y.blankrows)||(F[R++]=N.row);return F.length=R,F}var U0=/"/g;function z0(a,i,l,c,f,h,d,p){for(var g=!0,y=[],v="",x=qr(l),C=i.s.c;C<=i.e.c;++C)if(c[C]){var F=p.dense?(a[l]||[])[C]:a[c[C]+x];if(F==null)v="";else if(F.v!=null){g=!1,v=""+(p.rawNumbers&&F.t=="n"?F.v:ba(F,null,p));for(var R,A=0;A!==v.length;++A)if((R=v.charCodeAt(A))===f||R===h||R===34||p.forceQuotes){v='"'+v.replace(U0,'""')+'"';break}v=="ID"&&(v='"ID"')}else F.f==null||F.F?v="":(g=!1,0<=(v="="+F.f).indexOf(",")&&(v='"'+v.replace(U0,'""')+'"'));y.push(v)}return p.blankrows===!1&&g?null:y.join(d)}function zc(a,i){var l=[],c=i??{};if(a==null||a["!ref"]==null)return"";var f=Qt(a["!ref"]),h=c.FS!==void 0?c.FS:",",d=h.charCodeAt(0),p=c.RS!==void 0?c.RS:` `,g=p.charCodeAt(0),y=new RegExp((h=="|"?"\\|":h)+"+$"),v="",x=[];c.dense=Array.isArray(a);for(var C=c.skipHidden&&a["!cols"]||[],F=c.skipHidden&&a["!rows"]||[],R=f.s.c;R<=f.e.c;++R)(C[R]||{}).hidden||(x[R]=Ir(R));for(var A=0,P=f.s.r;P<=f.e.r;++P)(F[P]||{}).hidden||(v=z0(a,f,P,x,d,g,h,c))!=null&&(!(v=c.strip?v.replace(y,""):v)&&c.blankrows===!1||l.push((A++?p:"")+v));return delete c.dense,l.join("")}function G0(a,i){return(i=i||{}).FS=" ",i.RS=` `,a=zc(a,i),e===void 0||i.type=="string"?a:(a=e.utils.encode(1200,a,"str"),String.fromCharCode(255)+String.fromCharCode(254)+a)}function j0(v,i,l){var c,f=l||{},h=+!f.skipHeader,d=v||{},p=0,g=0;d&&f.origin!=null&&(typeof f.origin=="number"?p=f.origin:(y=typeof f.origin=="string"?Gr(f.origin):f.origin,p=y.r,g=y.c));var y,v={s:{c:0,r:0},e:{c:g,r:p+i.length-1+h}};d["!ref"]?(y=Qt(d["!ref"]),v.e.c=Math.max(v.e.c,y.e.c),v.e.r=Math.max(v.e.r,y.e.r),p==-1&&(p=y.e.r+1,v.e.r=p+i.length-1+h)):p==-1&&(p=0,v.e.r=i.length-1+h);var x=f.header||[],C=0;i.forEach(function(R,A){Hr(R).forEach(function(N){(C=x.indexOf(N))==-1&&(x[C=x.length]=N);var L=R[N],T="z",O="",N=St({c:g+C,r:p+A+h});c=qn(d,N),!L||typeof L!="object"||L instanceof Date?(typeof L=="number"?T="n":typeof L=="boolean"?T="b":typeof L=="string"?T="s":L instanceof Date?(T="d",f.cellDates||(T="n",L=os(L)),O=f.dateNF||oe[14]):L===null&&f.nullError&&(T="e",L=0),c?(c.t=T,c.v=L,delete c.w,delete c.R,O&&(c.z=O)):d[N]=c={t:T,v:L},O&&(c.z=O)):d[N]=L})}),v.e.c=Math.max(v.e.c,g+x.length-1);var F=qr(p);if(h)for(C=0;C<x.length;++C)d[Ir(C+g)+F]={t:"s",v:x[C]};return d["!ref"]=Ot(v),d}function qn(a,i,l){return typeof i!="string"?qn(a,St(typeof i!="number"?i:{r:i,c:l||0})):Array.isArray(a)?(l=Gr(i),a[l.r]||(a[l.r]=[]),a[l.r][l.c]||(a[l.r][l.c]={t:"z"})):a[i]||(a[i]={t:"z"})}function Gc(){return{SheetNames:[],Sheets:{}}}function jc(a,i,l,c){var f=1;if(!l)for(;f<=65535&&a.SheetNames.indexOf(l="Sheet"+f)!=-1;++f,l=void 0);if(!l||65535<=a.SheetNames.length)throw new Error("Too many worksheets");if(c&&0<=a.SheetNames.indexOf(l)){var c=l.match(/(^.*?)(\d+)$/),f=c&&+c[2]||0,h=c&&c[1]||l;for(++f;f<=65535&&a.SheetNames.indexOf(l=h+f)!=-1;++f);}if(o0(l),0<=a.SheetNames.indexOf(l))throw new Error("Worksheet with name |"+l+"| already exists!");return a.SheetNames.push(l),a.Sheets[l]=i,l}function W0(a,i,l){return i?(a.l={Target:i},l&&(a.l.Tooltip=l)):delete a.l,a}var Kn,Wc={encode_col:Ir,encode_row:qr,encode_cell:St,encode_range:Ot,decode_col:Hl,decode_row:Wl,split_cell:function(a){return a.replace(/(\$?[A-Z]*)(\$?\d*)/,"$1,$2").split(",")},decode_cell:Gr,decode_range:Rs,format_cell:ba,sheet_add_aoa:Lu,sheet_add_json:j0,sheet_add_dom:y0,aoa_to_sheet:No,json_to_sheet:function(a,i){return j0(null,a,i)},table_to_sheet:_0,table_to_book:function(a,i){return Va(_0(a,i),i)},sheet_to_csv:zc,sheet_to_txt:G0,sheet_to_json:Yn,sheet_to_html:b0,sheet_to_formulae:function(a){var i,l="",c="";if(a==null||a["!ref"]==null)return[];for(var f,h=Qt(a["!ref"]),d=[],p=[],g=Array.isArray(a),y=h.s.c;y<=h.e.c;++y)d[y]=Ir(y);for(var v=h.s.r;v<=h.e.r;++v)for(f=qr(v),y=h.s.c;y<=h.e.c;++y)if(l=d[y]+f,c="",(i=g?(a[v]||[])[y]:a[l])!==void 0){if(i.F!=null){if(l=i.F,!i.f)continue;c=i.f,l.indexOf(":")==-1&&(l=l+":"+l)}if(i.f!=null)c=i.f;else{if(i.t=="z")continue;if(i.t=="n"&&i.v!=null)c=""+i.v;else if(i.t=="b")c=i.v?"TRUE":"FALSE";else if(i.w!==void 0)c="'"+i.w;else{if(i.v===void 0)continue;c=i.t=="s"?"'"+i.v:""+i.v}}p[p.length]=l+"="+c}return p},sheet_to_row_object_array:Yn,sheet_get_cell:qn,book_new:Gc,book_append_sheet:jc,book_set_sheet_visibility:function(a,i,l){switch(a.Workbook||(a.Workbook={}),a.Workbook.Sheets||(a.Workbook.Sheets=[]),i=function(c,f){if(typeof f=="number"){if(0<=f&&c.SheetNames.length>f)return f;throw new Error("Cannot find sheet # "+f)}if(typeof f!="string")throw new Error("Cannot find sheet |"+f+"|");if(-1<(c=c.SheetNames.indexOf(f)))return c;throw new Error("Cannot find sheet name |"+f+"|")}(a,i),a.Workbook.Sheets[i]||(a.Workbook.Sheets[i]={}),l){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+l)}a.Workbook.Sheets[i].Hidden=l},cell_set_number_format:function(a,i){return a.z=i,a},cell_set_hyperlink:W0,cell_set_internal_link:function(a,i,l){return W0(a,"#"+i,l)},cell_add_comment:function(a,i,l){a.c||(a.c=[]),a.c.push({t:i,a:l||"SheetJS"})},sheet_set_array_formula:function(a,i,l,c){for(var f=typeof i!="string"?i:Qt(i),h=typeof i=="string"?i:Ot(i),d=f.s.r;d<=f.e.r;++d)for(var p=f.s.c;p<=f.e.c;++p){var g=qn(a,d,p);g.t="n",g.F=h,delete g.v,d==f.s.r&&p==f.s.c&&(g.f=l,c&&(g.D=!0))}return a},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function H0(a){Kn=a}var Ko={to_json:function(a,i){var l=Kn({objectMode:!0});if(a==null||a["!ref"]==null)return l.push(null),l;var c,f={t:"n",v:0},h=0,d=1,p=[],g="",y={s:{r:0,c:0},e:{r:0,c:0}},v=i||{},x=v.range!=null?v.range:a["!ref"];switch(v.header===1?h=1:v.header==="A"?h=2:Array.isArray(v.header)&&(h=3),typeof x){case"string":y=Qt(x);break;case"number":(y=Qt(a["!ref"])).s.r=x;break;default:y=x}0<h&&(d=0);var C=qr(y.s.r),F=[],R=0,A=Array.isArray(a),P=y.s.r,L=0,T={};A&&!a[P]&&(a[P]=[]);for(var O=v.skipHidden&&a["!cols"]||[],N=v.skipHidden&&a["!rows"]||[],L=y.s.c;L<=y.e.c;++L)if(!(O[L]||{}).hidden)switch(F[L]=Ir(L),f=A?a[P][L]:a[F[L]+C],h){case 1:p[L]=L-y.s.c;break;case 2:p[L]=F[L];break;case 3:p[L]=v.header[L-y.s.c];break;default:if(g=c=ba(f=f??{w:"__EMPTY",t:"s"},null,v),R=T[c]||0){for(;g=c+"_"+R++,T[g];);T[c]=R,T[g]=1}else T[c]=1;p[L]=g}return P=y.s.r+d,l._read=function(){for(;P<=y.e.r;)if(!(N[P-1]||{}).hidden){var I=B0(a,y,P,F,h,p,A,v);if(++P,I.isempty===!1||(h===1?v.blankrows!==!1:v.blankrows))return void l.push(I.row)}return l.push(null)},l},to_html:function(a,f){var l=Kn(),c=f||{},f=c.header!=null?c.header:p0,h=c.footer!=null?c.footer:m0;l.push(f);var d=Rs(a["!ref"]);c.dense=Array.isArray(a),l.push(g0(0,0,c));var p=d.s.r,g=!1;return l._read=function(){if(p>d.e.r)return g||(g=!0,l.push("</table>"+h)),l.push(null);for(;p<=d.e.r;){l.push(h0(a,d,p,c)),++p;break}},l},to_csv:function(a,i){var l=Kn(),c=i??{};if(a==null||a["!ref"]==null)return l.push(null),l;var f=Qt(a["!ref"]),h=c.FS!==void 0?c.FS:",",d=h.charCodeAt(0),p=c.RS!==void 0?c.RS:` `,g=p.charCodeAt(0),y=new RegExp((h=="|"?"\\|":h)+"+$"),v="",x=[];c.dense=Array.isArray(a);for(var C=c.skipHidden&&a["!cols"]||[],F=c.skipHidden&&a["!rows"]||[],R=f.s.c;R<=f.e.c;++R)(C[R]||{}).hidden||(x[R]=Ir(R));var A=f.s.r,P=!1,L=0;return l._read=function(){if(!P)return P=!0,l.push("\uFEFF");for(;A<=f.e.r;)if(++A,!(F[A-1]||{}).hidden&&(v=z0(a,f,A-1,x,d,g,h,c),v!=null&&((v=c.strip?v.replace(y,""):v)||c.blankrows!==!1)))return l.push((L++?p:"")+v);return l.push(null)},l},set_readable:H0},ar=function(){function a(i,l,c){return this instanceof a?(this.tagName=i,this._attributes=l||{},this._children=c||[],this._prefix="",this):new a(i,l,c)}return a.prototype.createElement=function(){return new a(arguments)},a.prototype.children=function(){return this._children},a.prototype.append=function(i){return this._children.push(i),this},a.prototype.prefix=function(i){return arguments.length==0?this._prefix:(this._prefix=i,this)},a.prototype.attr=function(i,l){if(l==null)return delete this._attributes[i],this;if(arguments.length==0)return this._attributes;if(typeof i=="string"&&arguments.length==1)return this._attributes.attr[i];if(typeof i=="object"&&arguments.length==1)for(var c in i)this._attributes[c]=i[c];else arguments.length==2&&typeof i=="string"&&(this._attributes[i]=l);return this},a.prototype.escapeAttributeValue=function(i){return'"'+i.replace(/\"/g,""")+'"'},a.prototype.toXml=function(i){var l=(i=i||this)._prefix;if(l+="<"+i.tagName,i._attributes)for(var c in i._attributes)l+=" "+c+"="+this.escapeAttributeValue(""+i._attributes[c]);if(i._children&&0<i._children.length){l+=">";for(var f=0;f<i._children.length;f++)l+=this.toXml(i._children[f]);l+="</"+i.tagName+">"}else l+="/>";return l},a}(),Tb=function(a){var i,l=164,c={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:'"上午/下午 "hh"時"mm"分"ss"秒 "'},f={};for(i in c)f[c[i]]=i;var h={};return{initialize:function(d){this.$fonts=ar("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=ar("fills").attr("count",0),this.$borders=ar("borders").attr("count",0),this.$numFmts=ar("numFmts").attr("count",0),this.$cellStyleXfs=ar("cellStyleXfs"),this.$xf=ar("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=ar("cellXfs").attr("count",0),this.$cellStyles=ar("cellStyles").append(ar("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=ar("dxfs").attr("count","0"),this.$tableStyles=ar("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=ar("styleSheet").attr("xmlns:mc","http://schemas.openxmlformats.org/markup-compatibility/2006").attr("xmlns:x14ac","http://schemas.microsoft.com/office/spreadsheetml/2009/9/ac").attr("xmlns","http://schemas.openxmlformats.org/spreadsheetml/2006/main").attr("mc:Ignorable","x14ac").prefix('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>').append(this.$numFmts).append(this.$fonts).append(this.$fills).append(this.$borders).append(this.$cellStyleXfs.append(this.$xf)).append(this.$cellXfs).append(this.$cellStyles).append(this.$dxfs).append(this.$tableStyles);var p=d.defaultCellStyle||{};return p.font||(p.font={name:"Calibri",sz:"11"}),p.font.name||(p.font.name="Calibri"),p.font.sz||(p.font.sz=11),p.fill||(p.fill={patternType:"none",fgColor:{}}),p.border||(p.border={}),p.numFmt||(p.numFmt=0),this.defaultStyle=p,d=JSON.parse(JSON.stringify(p)),d.fill={patternType:"gray125",fgColor:{}},this.addStyles([p,d]),this},addStyle:function(d){var p=JSON.stringify(d),g=h[p];return g==null?(g=this._addXf(d),h[p]=g):g=h[p],g},addStyles:function(d){var p=this;return d.map(function(g){return p.addStyle(g)})},_duckTypeStyle:function(d){return typeof d=="object"&&(d.patternFill||d.fgColor)?{fill:d}:d.font||d.numFmt||d.border||d.fill?d:this._getStyleCSS(d)},_getStyleCSS:function(d){return d},_addXf:function(d){var p=this._addFont(d.font),g=this._addFill(d.fill),y=this._addBorder(d.border),v=this._addNumFmt(d.numFmt),x=ar("xf").attr("numFmtId",v).attr("fontId",p).attr("fillId",g).attr("borderId",y).attr("xfId","0");return 0<p&&x.attr("applyFont","1"),0<g&&x.attr("applyFill","1"),0<y&&x.attr("applyBorder","1"),0<v&&x.attr("applyNumberFormat","1"),d.alignment&&(v=ar("alignment"),d.alignment.horizontal&&v.attr("horizontal",d.alignment.horizontal),d.alignment.vertical&&v.attr("vertical",d.alignment.vertical),d.alignment.indent&&v.attr("indent",d.alignment.indent),d.alignment.readingOrder&&v.attr("readingOrder",d.alignment.readingOrder),d.alignment.wrapText&&v.attr("wrapText",d.alignment.wrapText),d.alignment.textRotation!=null&&v.attr("textRotation",d.alignment.textRotation),x.append(v).attr("applyAlignment",1)),this.$cellXfs.append(x),x=+this.$cellXfs.children().length,this.$cellXfs.attr("count",x),x-1},_addFont:function(d){if(!d)return 0;var p=ar("font").append(ar("sz").attr("val",d.sz||this.defaultStyle.font.sz)).append(ar("name").attr("val",d.name||this.defaultStyle.font.name));return d.bold&&p.append(ar("b")),d.underline&&p.append(ar("u")),d.italic&&p.append(ar("i")),d.strike&&p.append(ar("strike")),d.outline&&p.append(ar("outline")),d.shadow&&p.append(ar("shadow")),d.vertAlign&&p.append(ar("vertAlign").attr("val",d.vertAlign)),d.color&&(d.color.theme?(p.append(ar("color").attr("theme",d.color.theme)),d.color.tint&&p.append(ar("tint").attr("theme",d.color.tint))):d.color.rgb&&p.append(ar("color").attr("rgb",d.color.rgb))),this.$fonts.append(p),p=this.$fonts.children().length,this.$fonts.attr("count",p),p-1},_addNumFmt:function(d){if(!d)return 0;if(typeof d=="string"){var p=f[d];if(0<=p)return p}return/^[0-9]+$/.exec(d)?d:(d=d.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),d=ar("numFmt").attr("numFmtId",++l).attr("formatCode",d),this.$numFmts.append(d),d=this.$numFmts.children().length,this.$numFmts.attr("count",d),l)},_addFill:function(d){if(!d)return 0;var p,g=ar("patternFill").attr("patternType",d.patternType||"solid");return d.fgColor&&(p=ar("fgColor"),d.fgColor.rgb?(d.fgColor.rgb.length==6&&(d.fgColor.rgb="FF"+d.fgColor.rgb),p.attr("rgb",d.fgColor.rgb),g.append(p)):d.fgColor.theme&&(p.attr("theme",d.fgColor.theme),d.fgColor.tint&&p.attr("tint",d.fgColor.tint),g.append(p)),d.bgColor||(d.bgColor={indexed:"64"})),d.bgColor&&(d=ar("bgColor").attr(d.bgColor),g.append(d)),g=ar("fill").append(g),this.$fills.append(g),g=this.$fills.children().length,this.$fills.attr("count",g),g-1},_getSubBorder:function(d,p){var g=ar(d);return p&&(g.attr("style",p.style||"medium"),p.color&&(d=ar("color"),p.color.auto?d.attr("auto",p.color.auto):p.color.rgb?d.attr("rgb",p.color.rgb):(p.color.theme||p.color.tint)&&(d.attr("theme",p.color.theme||"1"),d.attr("tint",p.color.tint||"0")),g.append(d))),g},_addBorder:function(d){if(!d)return 0;var p=this,g=ar("border").attr("diagonalUp",d.diagonalUp).attr("diagonalDown",d.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(v){g.append(p._getSubBorder(v,d[v]))}),this.$borders.append(g);var y=this.$borders.children().length;return this.$borders.attr("count",y),y-1},toXml:function(){return this.$styles.toXml()}}.initialize(a||{})};Gn!==void 0&&(t.parse_xlscfb=Gn),t.parse_zip=L0,t.read=jn,t.readFile=P0,t.readFileSync=P0,t.write=Hn,t.writeFile=V0,t.writeFileSync=V0,t.writeFileAsync=function(a,i,l,c){var f=l||{};return f.type="file",f.file=a,Uc(f),f.type="buffer",c instanceof Function||(c=l),Ia.writeFile(a,Hn(i,f),c)},t.utils=Wc,t.writeXLSX=Bc,t.writeFileXLSX=function(a,i,l){return(l=l||{}).type="file",l.file=i,Uc(l),Bc(a,l)},t.SSF=Xf,Ko!==void 0&&(t.stream=Ko),_t!==void 0&&(t.CFB=_t),typeof ll>"u"||((Ko=af)||{}).Readable&&H0(Ko.Readable)}if(n(r),typeof window<"u"&&!window.XLSX)try{window.XLSX=o}catch{}})(yf,yf.exports);var Ve=yf.exports;const A3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],cutoffs:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[]},included:{company_id:!1,dealer_id:!1,division_id:!1,department_id:!1,position_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchRecords().then(s=>{s.status==200&&(this.cutoffs=s.data.data.map(r=>({value:r.payroll_date,label:r.date_from?r.payroll_date+" ("+this.$formatDate(r.date_from)+" to "+this.$formatDate(r.date_to)+") ":r.payroll_date})))}).catch(s=>{console.error(s)}).finally(()=>this.state.fetchingPayrollDates=!1)},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api,this.columnApi=s.columnApi,this.colDefs=[{field:"company_name",headerName:"Organizational Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"employee_count",headerName:"Number of Employees Per Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{headerName:"MEAL",colSpan:1,cellStyle:{textAlign:"center"},children:[{field:"meal_total",headerName:"MEAL SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:4,cellStyle:{textAlign:"center"},children:[{headerName:"LEAVE BENEFIT",colSpan:2,cellStyle:{textAlign:"center"},children:[{headerName:"VL",colSpan:2,cellStyle:{textAlign:"center"},children:[{field:"total_vl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_vl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"SL",colSpan:2,children:[{field:"total_sl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_sl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{field:"total_bl_wop",headerName:"BL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"TRANSPORTATION-RELATED",colSpan:5,children:[{field:"transpo_subsidy_total",headerName:"TRANSPO SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"transpo_allowance_total",headerName:"TRANSPO ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"company_car_total",headerName:"COMPANY CAR",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"gas_allowance_total",headerName:"GASOLINE ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"parking_total",headerName:"PARKING SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"UNIFORM",colSpan:2,children:[{field:"company_uniform_total",headerName:"COMPANY UNIFORM",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"sm_uniform_total",headerName:"S/M UNIFORM",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:5,children:[{headerName:"HEALTH RELATED",colSpan:2,children:[{field:"hmo_total",headerName:"HMO",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"first_aid_total",headerName:"FIRST AID MEDS",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"FINANCIAL ASSISTANCE/SUBSIDY",colSpan:6,children:[{field:"ligpai_total",headerName:"LIGPAI",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"calamity_assistance_total",headerName:"CALAMITY ASSISTANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"bereavement_assistance_total",headerName:"BEREAVEMENT ASSISTANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"intereset_fee_total",headerName:"INTEREST FREE COMPANY LOAN",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"laptop_prog_total",headerName:"LAPTOP PROG",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"company_outing_total",headerName:"COMPANY OUTING",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]},{field:"com_allowance_total",headerName:"COM ALLOWANCE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"stay_in_total",headerName:"STAY-IN PRIVILEGE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"shuttle_service_total",headerName:"SHUTTLE SERVICE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}],setTimeout(()=>{this.gridApi.redrawRows()},0)},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,n=!1,t=!1){let e=[],u=s.toUpperCase();for(let m=0;m<r;m++)e.push(u+o),n&&(u=this.incrementExcelColumn(u)),t&&o++;return e},incrementExcelColumn(s){let r=s.split("").map(o=>o.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(n=>n+65));r[o]=0,o===0&&r.unshift(0)}return String.fromCharCode(...r.map(o=>o+65))},exportToExcel(){if(this.gridApi){const s=this.months.find(w=>w.value==this.form.month),r=[];this.gridApi.forEachNode(w=>r.push(w.data));const o=Ve.utils.json_to_sheet([],{header:[]});Ve.utils.sheet_add_json(o,r,{origin:"B12",skipHeader:!0});const n=r.reduce((w,S)=>(Object.keys(S).forEach((D,E)=>{const M=S[D];typeof M=="number"&&(w[D]=(w[D]||0)+M)}),w),{}),t={};Object.keys(n).forEach(w=>{t[w]=n[w]});const e=r.length+12;Ve.utils.sheet_add_json(o,[t],{origin:`C${e+1}`,skipHeader:!0});const u=(w,S)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center"},font:{bold:!0,sz:12},fill:{patternType:"solid",fgColor:{rgb:"e7e6e6"}}}}};Object.keys(n).forEach((w,S)=>{const D=String.fromCharCode(67+S)+(e+1);u(D,n[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const m=(w,S,D=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:D?{patternType:"solid",fgColor:{rgb:D}}:void 0}}},b=(w,S,D=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin",color:{rgb:"000000"}},bottom:{style:"thin",color:{rgb:"000000"}},left:{style:"thin",color:{rgb:"000000"}},right:{style:"thin",color:{rgb:"000000"}}},font:{bold:!0,sz:14},fill:D?{patternType:"solid",fgColor:{rgb:D}}:void 0}}};for(let w of this.getLettersForExcel("B",14,2,!0,!1))m(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("B",14,3,!0,!1))m(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of this.getLettersForExcel("Q",11,2,!0,!1))m(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("Q",11,3,!0,!1))m(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of["B8","B9","B10","B11"])b(w,"ORGANIZATIONAL UNIT","ffc000");for(let w of this.getLettersForExcel("C",4,8,!1,!0))b(w,"NO. OF EMPLOYEES","ffc000");for(let w of this.getLettersForExcel("D",13,8,!0,!1))b(w,"NUMBER OF COMPANY BENEFITS AVAILERS","ffc000");for(let w of this.getLettersForExcel("D",5,9,!0,!1))b(w,"LEAVE BENEFIT","92d050");for(let w of this.getLettersForExcel("D",2,10,!0,!1))b(w,"VL","92d050");for(let w of this.getLettersForExcel("F",2,10,!0,!1))b(w,"SL","92d050");b("D11","WP","92d050"),b("E11","WOP","92d050"),b("F11","WP","92d050"),b("G11","WOP","92d050");for(let w of this.getLettersForExcel("H",2,10,!1,!0))b(w,"BL","92d050");b("I9","MEAL","92d050");for(let w of this.getLettersForExcel("I",2,10,!1,!0))b(w,"MEAL SUBSIDY","92d050");for(let w of this.getLettersForExcel("J",5,9,!0,!1))b(w,"TRANSPORATION-RELATED","92d050");for(let w of this.getLettersForExcel("J",2,10,!1,!0))b(w,"TRANSPO SUBSIDY","92d050");for(let w of this.getLettersForExcel("K",2,10,!1,!0))b(w,"TRANSPO ALLOWANCE","92d050");for(let w of this.getLettersForExcel("L",2,10,!1,!0))b(w,"COMPANY CAR","92d050");for(let w of this.getLettersForExcel("M",2,10,!1,!0))b(w,"GASOLINE ALLOWANCE","92d050");for(let w of this.getLettersForExcel("N",2,10,!1,!0))b(w,"PARKING SUBSIDY","92d050");for(let w of this.getLettersForExcel("O",2,9,!0,!1))b(w,"UNIFORM","92d050");for(let w of this.getLettersForExcel("O",2,10,!1,!0))b(w,"COMPANY UNIFORM","92d050");for(let w of this.getLettersForExcel("P",2,10,!1,!0))b(w,"S/M UNIFORM","92d050");for(let w of this.getLettersForExcel("Q",11,8,!0,!1))b(w,"NUMBER OF COMPANY BENEFITS AVAILERS","ffc000");for(let w of this.getLettersForExcel("Q",2,9,!0,!1))b(w,"HEALTH RELATED","92d050");for(let w of this.getLettersForExcel("Q",2,10,!1,!0))b(w,"HMO","92d050");for(let w of this.getLettersForExcel("R",2,10,!1,!0))b(w,"FIRST AIDS MEDS","92d050");for(let w of this.getLettersForExcel("S",6,9,!0,!1))b(w,"FINANCIAL ASSISTANCE/SUBSIDY","92d050");for(let w of this.getLettersForExcel("S",2,10,!1,!0))b(w,"LIGPAI","92d050");for(let w of this.getLettersForExcel("T",2,10,!1,!0))b(w,"CALAMITY ASSISTANCE","92d050");for(let w of this.getLettersForExcel("U",2,10,!1,!0))b(w,"BEREAVEMENT ASSISTANCE","92d050");for(let w of this.getLettersForExcel("V",2,10,!1,!0))b(w,"INTEREST FREE COMPANY LOAN","92d050");for(let w of this.getLettersForExcel("W",2,10,!1,!0))b(w,"LAPTOP PROG","92d050");for(let w of this.getLettersForExcel("X",2,10,!1,!0))b(w,"COMPANY OUTING","92d050");for(let w of this.getLettersForExcel("Y",3,9,!1,!0))b(w,"COM ALLOWANCE","92d050");for(let w of this.getLettersForExcel("Z",3,9,!1,!0))b(w,"STAY-IN PRIVILEGE","92d050");for(let w of this.getLettersForExcel("AA",3,9,!1,!0))b(w,"SHUTTLE SERVICE","92d050");o["!cols"]=[{wch:2},{wch:50},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:25},{wch:25},{wch:23},{wch:23},{wch:20},{wch:20},{wch:20},{wch:20},{wch:10},{wch:25},{wch:28},{wch:30},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20}],o["!rows"]=[{hpt:30},{hpt:20},{hpt:25},{hpt:10},{hpt:10},{hpt:15},{hpt:10},{hpt:20},{hpt:25},{hpt:30},{hpt:30}],o["!merges"]=[Ve.utils.decode_range("B2:P2"),Ve.utils.decode_range("B3:P3"),Ve.utils.decode_range("Q2:AA2"),Ve.utils.decode_range("Q3:AA3"),Ve.utils.decode_range("B8:B11"),Ve.utils.decode_range("C8:C11"),Ve.utils.decode_range("D8:P8"),Ve.utils.decode_range("D9:H9"),Ve.utils.decode_range("D10:E10"),Ve.utils.decode_range("F10:G10"),Ve.utils.decode_range("H10:H11"),Ve.utils.decode_range("I10:I11"),Ve.utils.decode_range("J9:N9"),Ve.utils.decode_range("J10:J11"),Ve.utils.decode_range("K10:K11"),Ve.utils.decode_range("L10:L11"),Ve.utils.decode_range("M10:M11"),Ve.utils.decode_range("N10:N11"),Ve.utils.decode_range("O9:P9"),Ve.utils.decode_range("O10:O11"),Ve.utils.decode_range("P10:P11"),Ve.utils.decode_range("Q8:AA8"),Ve.utils.decode_range("Q9:R9"),Ve.utils.decode_range("Q10:Q11"),Ve.utils.decode_range("R10:R11"),Ve.utils.decode_range("S9:X9"),Ve.utils.decode_range("S10:S11"),Ve.utils.decode_range("T10:T11"),Ve.utils.decode_range("U10:U11"),Ve.utils.decode_range("V10:V11"),Ve.utils.decode_range("W10:W11"),Ve.utils.decode_range("X10:X11"),Ve.utils.decode_range("Y9:Y11"),Ve.utils.decode_range("Z9:Z11"),Ve.utils.decode_range("AA9:AA11")];const _=Ve.utils.book_new();Ve.utils.book_append_sheet(_,o,"Company Benefits"),Ve.writeFile(_,"Company_Benefits_Report.xlsx")}},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({company_name:o.company_name||0,employee_count:o.employee_count||0,total_vl_wp:o.total_vl_wp||0,total_vl_wop:o.total_vl_wop||0,total_sl_wp:o.total_sl_wp||0,total_sl_wop:o.total_sl_wop||0,total_bl_wop:o.total_bl_wop||0,meal_total:this.$formatNumber(o.meal_total)||0,transpo_subsidy_total:this.$formatNumber(o.transpo_subsidy_total)||0,transpo_allowance_total:o.transpo_allowance_total||0,company_car_total:o.company_car_total||0,gas_allowance_total:o.gas_allowance_total||0,parking_total:o.parking_total||0,company_uniform_total:o.company_uniform_total||0,sm_uniform_total:o.sm_uniform_total||0,hmo_total:DataTransferItem.hmo_total||0,first_aid_total:DataTransferItem.first_aid_total||0,ligpai_total:DataTransferItem.ligpai_total||0,calamity_assistance_total:DataTransferItem.calamity_assistance_total||0,bereavement_assistance_total:DataTransferItem.bereavement_assistance_total||0,intereset_fee_total:DataTransferItem.intereset_fee_total||0,laptop_prog_total:DataTransferItem.laptop_prog_total||0,company_outing_total:DataTransferItem.company_outing_total||0,com_allowance_total:DataTransferItem.com_allowance_total||0,stay_in_total:DataTransferItem.stay_in_total||0,shuttle_service_total:DataTransferItem.shuttle_service_total||0}));this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(13);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany()},watch:{}},D3={class:"grid grid-cols-2 gap-2"},S3={class:"flex justify-between items-center"},E3={class:"flex gap-1 justify-end"};function T3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[2]||(r[2]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[j("div",D3,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.month=D),options:t.months,mode:"tags",class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})]),j("div",S3,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",E3,[k(_,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const k3=Rt(A3,[["render",T3],["__scopeId","data-v-b6d79be0"]]);const R3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[]},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(o=>o.value===this.form.dealer_id),r=this.companies.find(o=>o.value===this.form.company_id);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.27fdc4f4.js").then(o=>o.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(o=>{const n=new o.default.Workbook,t=n.addWorksheet("Employee Tax Application");t.mergeCells("A1:E1");const e=t.getCell("A1");e.value="List of Employee's Tax Application",e.font={size:16,bold:!0},e.alignment={horizontal:"center"},t.mergeCells("A2:E2");const u=t.getCell("A2");u.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),u.font={size:12,bold:!0},u.alignment={horizontal:"center"},t.columns=[{key:"empId",width:10},{key:"name",width:30},{key:"position",width:30},{key:"taxApplication",width:20},{key:"basicSalary",width:15}];const m={};let b=4,_=0;const w={1:0,2:0,3:0,"N/A":0};this.finalData.forEach(M=>{var ee,ie,z;const V=((ee=M.dealership)==null?void 0:ee.name)||"Unknown Dealership";m[V]||(m[V]={employees:[],totalSalary:0,taxCounts:{1:0,2:0,3:0,"N/A":0}}),m[V].employees.push(M);const Y=parseFloat((ie=M.salary_and_wages)==null?void 0:ie.salary_rate)||0;m[V].totalSalary+=Y,_+=Y;const U=(z=M.salary_and_wages)==null?void 0:z.tax_application;m[V].taxCounts[U]=(m[V].taxCounts[U]||0)+1,w[U]=(w[U]||0)+1}),Object.keys(m).forEach(M=>{const V=m[M];t.mergeCells(`A${b}:E${b}`);const Y=t.getCell(`A${b}`);Y.value=M,Y.font={size:12,bold:!0},Y.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},Y.alignment={horizontal:"left"},b++,t.addRow(["EMP ID","NAME","POSITION","TAX APPLICATION","BASIC SALARY"]).eachCell(z=>{z.font={bold:!0,color:{argb:"FFFFFFFF"}},z.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},z.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++,V.employees.forEach(z=>{var ct,Je,ft;const H=(ct=z.salary_and_wages)==null?void 0:ct.tax_application,ne=H==1?"Base on Table":H==2?"No Tax":H==3?"Force Tax":"N/A",G=parseFloat((Je=z.salary_and_wages)==null?void 0:Je.salary_rate)||0,De=t.addRow([z.employee_id||"",z.firstname+" "+z.lastname||"",((ft=z.position)==null?void 0:ft.name)||"",ne,G]),ve=De.getCell(5);ve.numFmt="#,##0.00",ve.alignment={horizontal:"right"};const ot=De.getCell(4);ne==="No Tax"?ot.font={color:{argb:"FFFF0000"}}:ne==="Force Tax"?ot.font={color:{argb:"FF0000FF"}}:ne==="Base on Table"&&(ot.font={color:{argb:"FF008000"}}),De.eachCell(bt=>{bt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++}),t.addRow(["","","DEALER TOTAL:","",V.totalSalary]).eachCell((z,H)=>{H===3?z.font={bold:!0}:H===5&&(z.font={bold:!0},z.numFmt="#,##0.00",z.alignment={horizontal:"right"})}),b++,t.addRow(["","","DEALER TAX SUMMARY"]),b++,t.addRow(["Base on Table:",V.taxCounts[1]||0,"No Tax:",V.taxCounts[2]||0,"Force Tax:",V.taxCounts[3]||0]).eachCell(z=>{z.font={bold:!0}}),b++,t.addRow([]),b++}),t.mergeCells(`A${b}:E${b}`);const S=t.getCell(`A${b}`);return S.value="GRAND TOTAL SUMMARY",S.font={size:14,bold:!0},S.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}},S.alignment={horizontal:"center"},b++,t.addRow(["","","GRAND TOTAL:","",_]).eachCell((M,V)=>{V===3?M.font={bold:!0,size:12}:V===5&&(M.font={bold:!0,size:12},M.numFmt="#,##0.00",M.alignment={horizontal:"right"})}),b++,t.addRow([]),b++,t.addRow(["","","OVERALL TAX APPLICATION SUMMARY"]),b++,t.addRow(["Base on Table:",w[1]||0,"No Tax:",w[2]||0,"Force Tax:",w[3]||0]).eachCell(M=>{M.font={bold:!0}}),n.xlsx.writeBuffer()}).then(o=>{const n=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),t=window.URL.createObjectURL(n),e=document.createElement("a");e.href=t,e.download="EmployeeTaxApplication.xlsx",document.body.appendChild(e),e.click(),window.URL.revokeObjectURL(t),document.body.removeChild(e)}).catch(o=>{console.error("Error generating Excel file:",o),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await mt.GenerateEmployeeTaxApplicationReport(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},L3={class:"grid grid-cols-3 gap-2"},M3={key:0,class:"text-[#ec4899]"},O3={class:"flex justify-between items-center"},P3={class:"flex gap-1 justify-end"};function N3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton");return ae(),Be("form",{onSubmit:r[6]||(r[6]=Ut((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[j("div",L3,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=w=>t.form.company_id=w),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",M3,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=w=>t.form.dealer_id=w),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=w=>t.form.division_id=w),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=w=>t.form.department_id=w),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=w=>t.form.position_id=w),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=w=>t.form.employee_id=w),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",O3,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",P3,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const I3=Rt(R3,[["render",N3],["__scopeId","data-v-3f6f2d53"]]);const V3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.MonthsOptions.find(n=>n.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee Philhealth Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's Philhealth",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||r.label,m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const G=ne.dealer_name||"Unknown Dealer";_[G]||(_[G]=[]),_[G].push(ne)});let w=0,S=0,D=0,E=0;Object.keys(_).forEach(ne=>{const G=_[ne],De=e.addRow([`Dealership: ${ne}`,"","","",""]);De.getCell(1).font={bold:!0,size:12},De.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PHILEALTH # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let ot=0,ct=0,Je=0;const ft=G.length;G.forEach(Q=>{var Pe;const Ce=parseFloat(Q.total_philhealth)||0,Te=parseFloat(Q.total_philhealth)||0,xe=Ce+Te,oe=e.addRow([((Pe=Q.personal_info)==null?void 0:Pe.philhealth)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const re=oe.getCell(4);re.numFmt="#,##0.00",re.alignment={horizontal:"right"};const it=oe.getCell(5);it.numFmt="#,##0.00",it.alignment={horizontal:"right"},ot+=Ce,ct+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ft,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const rt=e.addRow(["","EMPLOYEE CONTRIBUTIONS",ot,"",""]);rt.getCell(2).font={bold:!0};const kt=rt.getCell(3);kt.numFmt="#,##0.00",kt.alignment={horizontal:"right"},kt.font={bold:!0};const Tt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ct,""]);Tt.getCell(2).font={bold:!0};const Sr=Tt.getCell(4);Sr.numFmt="#,##0.00",Sr.alignment={horizontal:"right"},Sr.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=ot,S+=ct,D+=Je,E+=ft});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const V=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);V.getCell(2).font={bold:!0},V.getCell(3).font={bold:!0};const Y=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);Y.getCell(2).font={bold:!0};const U=Y.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const z=e.addRow(["","OVERALL GRAND TOTAL","","",D]);z.getCell(2).font={bold:!0,size:12};const H=z.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const G=z.getCell(ne);G.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeePhilhealthReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await mt.GenerateEmployeePhilhealth(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},B3={class:"grid grid-cols-4 gap-2"},U3={key:0,class:"text-[#ec4899]"},z3={key:0,class:"text-[#ec4899]"},G3={key:0,class:"text-[#ec4899]"},j3={class:"flex justify-between items-center"},W3={class:"flex gap-1 justify-end"};function H3(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[8]||(r[8]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[j("div",B3,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",U3,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=D=>t.form.division_id=D),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=D=>t.form.department_id=D),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=D=>t.form.position_id=D),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=D=>t.form.employee_id=D),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=D=>t.form.month=D),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",z3,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=D=>t.form.year=D),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",G3,"Year is required")):ye("",!0)]),_:1})]),j("div",j3,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",W3,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const Y3=Rt(V3,[["render",H3],["__scopeId","data-v-ec2bdbb1"]]);const q3={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.MonthsOptions.find(n=>n.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee SSS Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's SSS",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||r.label,m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const G=ne.dealer_name||"Unknown Dealer";_[G]||(_[G]=[]),_[G].push(ne)});let w=0,S=0,D=0,E=0;Object.keys(_).forEach(ne=>{const G=_[ne],De=e.addRow([`Dealership: ${ne}`,"","","",""]);De.getCell(1).font={bold:!0,size:12},De.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PHILEALTH # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let ot=0,ct=0,Je=0;const ft=G.length;G.forEach(Q=>{var Pe;const Ce=parseFloat(Q.sss_employee_share)||0,Te=parseFloat(Q.sss_employer_share)||0,xe=Ce+Te,oe=e.addRow([((Pe=Q.personal_info)==null?void 0:Pe.sss)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const re=oe.getCell(4);re.numFmt="#,##0.00",re.alignment={horizontal:"right"};const it=oe.getCell(5);it.numFmt="#,##0.00",it.alignment={horizontal:"right"},ot+=Ce,ct+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ft,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const rt=e.addRow(["","EMPLOYEE CONTRIBUTIONS",ot,"",""]);rt.getCell(2).font={bold:!0};const kt=rt.getCell(3);kt.numFmt="#,##0.00",kt.alignment={horizontal:"right"},kt.font={bold:!0};const Tt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ct,""]);Tt.getCell(2).font={bold:!0};const Sr=Tt.getCell(4);Sr.numFmt="#,##0.00",Sr.alignment={horizontal:"right"},Sr.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=ot,S+=ct,D+=Je,E+=ft});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const V=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);V.getCell(2).font={bold:!0},V.getCell(3).font={bold:!0};const Y=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);Y.getCell(2).font={bold:!0};const U=Y.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const z=e.addRow(["","OVERALL GRAND TOTAL","","",D]);z.getCell(2).font={bold:!0,size:12};const H=z.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const G=z.getCell(ne);G.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeSSSReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await mt.GenerateEmployeeSSS(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},K3={class:"grid grid-cols-4 gap-2"},J3={key:0,class:"text-[#ec4899]"},X3={key:0,class:"text-[#ec4899]"},Q3={key:0,class:"text-[#ec4899]"},Z3={class:"flex justify-between items-center"},$3={class:"flex gap-1 justify-end"};function e5(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[8]||(r[8]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[j("div",K3,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",J3,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=D=>t.form.division_id=D),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=D=>t.form.department_id=D),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=D=>t.form.position_id=D),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=D=>t.form.employee_id=D),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=D=>t.form.month=D),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",X3,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=D=>t.form.year=D),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",Q3,"Year is required")):ye("",!0)]),_:1})]),j("div",Z3,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",$3,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const t5=Rt(q3,[["render",e5],["__scopeId","data-v-2e6ed058"]]);const r5={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:"",year:""},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.MonthsOptions.find(n=>n.value===this.form.month);if(console.log("finalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee Tax Application");e.mergeCells("A1:E1");const u=e.getCell("A1");u.value="List of Employee's Pagibig",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:E2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||r.label,m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:E3");const b=e.getCell("A3");b.value="Covered Period: "+o.label+" "+this.form.year,b.font={size:12,bold:!0},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"empId",width:30},{key:"name",width:30},{key:"employee",width:15},{key:"employer",width:15},{key:"total",width:15}];const _={};this.finalData.forEach(ne=>{const G=ne.dealer_name||"Unknown Dealer";_[G]||(_[G]=[]),_[G].push(ne)});let w=0,S=0,D=0,E=0;Object.keys(_).forEach(ne=>{const G=_[ne],De=e.addRow([`Dealership: ${ne}`,"","","",""]);De.getCell(1).font={bold:!0,size:12},De.eachCell(Q=>{Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFCCCCCC"}}}),e.addRow(["PAGIBIG # ID","NAME","EMPLOYEE","EMPLOYER","TOTAL"]).eachCell(Q=>{Q.font={bold:!0,color:{argb:"FFFFFFFF"}},Q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},Q.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});let ot=0,ct=0,Je=0;const ft=G.length;G.forEach(Q=>{var Pe;const Ce=parseFloat(Q.pagibig_contribution)||0,Te=parseFloat(Q.pagibig_contribution_employer)||0,xe=Ce+Te,oe=e.addRow([((Pe=Q.personal_info)==null?void 0:Pe.pagibig)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const re=oe.getCell(4);re.numFmt="#,##0.00",re.alignment={horizontal:"right"};const it=oe.getCell(5);it.numFmt="#,##0.00",it.alignment={horizontal:"right"},ot+=Ce,ct+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ft,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const rt=e.addRow(["","EMPLOYEE CONTRIBUTIONS",ot,"",""]);rt.getCell(2).font={bold:!0};const kt=rt.getCell(3);kt.numFmt="#,##0.00",kt.alignment={horizontal:"right"},kt.font={bold:!0};const Tt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ct,""]);Tt.getCell(2).font={bold:!0};const Sr=Tt.getCell(4);Sr.numFmt="#,##0.00",Sr.alignment={horizontal:"right"},Sr.font={bold:!0};const At=e.addRow(["",`${ne} TOTAL`,"","",Je]);At.getCell(2).font={bold:!0};const Se=At.getCell(5);Se.numFmt="#,##0.00",Se.alignment={horizontal:"right"},Se.font={bold:!0},[1,2,3,4,5].forEach(Q=>{const Ce=At.getCell(Q);Ce.border={bottom:{style:"double"}}}),e.addRow([]),w+=ot,S+=ct,D+=Je,E+=ft});const M=e.addRow(["OVERALL SUMMARY","","","",""]);M.getCell(1).font={bold:!0,size:14},M.eachCell(ne=>{ne.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFAAAAAA"}}});const V=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);V.getCell(2).font={bold:!0},V.getCell(3).font={bold:!0};const Y=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);Y.getCell(2).font={bold:!0};const U=Y.getCell(3);U.numFmt="#,##0.00",U.alignment={horizontal:"right"},U.font={bold:!0};const ee=e.addRow(["","TOTAL EMPLOYER CONTRIBUTIONS","",S,""]);ee.getCell(2).font={bold:!0};const ie=ee.getCell(4);ie.numFmt="#,##0.00",ie.alignment={horizontal:"right"},ie.font={bold:!0};const z=e.addRow(["","OVERALL GRAND TOTAL","","",D]);z.getCell(2).font={bold:!0,size:12};const H=z.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const G=z.getCell(ne);G.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeePagibigReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await mt.GenerateEmployeePagibig(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},s5={class:"grid grid-cols-4 gap-2"},a5={key:0,class:"text-[#ec4899]"},o5={key:0,class:"text-[#ec4899]"},i5={key:0,class:"text-[#ec4899]"},n5={class:"flex justify-between items-center"},l5={class:"flex gap-1 justify-end"};function c5(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton"),w=K("ag-grid-vue"),S=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[8]||(r[8]=Ut((...D)=>s.confirmSubmit&&s.confirmSubmit(...D),["prevent"])),class:"space-y-4"},[j("div",s5,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=D=>t.form.company_id=D),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",a5,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=D=>t.form.dealer_id=D),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=D=>t.form.division_id=D),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=D=>t.form.department_id=D),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=D=>t.form.position_id=D),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=D=>t.form.employee_id=D),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=D=>t.form.month=D),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",o5,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=D=>t.form.year=D),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",i5,"Year is required")):ye("",!0)]),_:1})]),j("div",n5,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",l5,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(S,{key:0,class:"p-2"},{default:W(()=>[k(w,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:s.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const f5=Rt(r5,[["render",c5],["__scopeId","data-v-f815f09b"]]);const u5={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:14,company_id:"",dealer_id:"",month:[]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api,this.columnApi=s.columnApi,this.colDefs=[{field:"company_name",headerName:"Organizational Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"employee_count",headerName:"Number of Employees Per Unit",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{headerName:"MEAL",colSpan:1,cellStyle:{textAlign:"center"},children:[{field:"meal_total",headerName:"MEAL SUBSIDY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"NUMBER OF COMPANY BENEFITS AVAILERS",colSpan:4,cellStyle:{textAlign:"center"},children:[{headerName:"LEAVE BENEFIT",colSpan:2,cellStyle:{textAlign:"center"},children:[{headerName:"VL",colSpan:2,cellStyle:{textAlign:"center"},children:[{field:"total_vl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_vl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"SL",colSpan:2,children:[{field:"total_sl_wp",headerName:"WP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_sl_wop",headerName:"WOP",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{field:"total_bl_wop",headerName:"BL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"REASONS FOR VACATION LEAVE",colSpan:5,children:[{field:"total_personal_vl",headerName:"PERSONAL",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_fr_vl",headerName:"FAMILY RELATED",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_rl_vl",headerName:"RECREATION/LEISURE",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_emergency_vl",headerName:"EMERGENCY",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_others_vl",headerName:"OTHERS",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]},{headerName:"REASONS FOR SICK LEAVE",colSpan:9,children:[{field:"total_cd_sl",headerName:"Cardiovascular Disease",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_msp_sl",headerName:"Musculo Skeletal Pains",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_rd_sl",headerName:"Respiratory Disease",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_eent_sl",headerName:"EENT",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_idi_sl",headerName:"Infectious Disease/Infection",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_hf_sl",headerName:"Headache/Flu",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_or_sl",headerName:"OB-GYNE Related",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_dr_sl",headerName:"Dental Reason",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}},{field:"total_others_sl",headerName:"Others",filter:!0,floatingFilter:!0,cellStyle:{textAlign:"center"}}]}]}],setTimeout(()=>{this.gridApi.redrawRows()},0)},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,n=!1,t=!1){let e=[],u=s.toUpperCase();for(let m=0;m<r;m++)e.push(u+o),n&&(u=this.incrementExcelColumn(u)),t&&o++;return e},incrementExcelColumn(s){let r=s.split("").map(o=>o.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(n=>n+65));r[o]=0,o===0&&r.unshift(0)}return String.fromCharCode(...r.map(o=>o+65))},exportToExcel(){if(this.gridApi){const s=this.months.find(w=>w.value==this.form.month),r=[];this.gridApi.forEachNode(w=>r.push(w.data));const o=Ve.utils.json_to_sheet([],{header:[]});Ve.utils.sheet_add_json(o,r,{origin:"B10",skipHeader:!0});const n=r.reduce((w,S)=>(Object.keys(S).forEach((D,E)=>{const M=S[D];typeof M=="number"&&(w[D]=(w[D]||0)+M)}),w),{}),t={};Object.keys(n).forEach(w=>{t[w]=n[w]});const e=r.length+10;Ve.utils.sheet_add_json(o,[t],{origin:`C${e+1}`,skipHeader:!0});const u=(w,S)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center"},font:{bold:!0,sz:12},fill:{patternType:"solid",fgColor:{rgb:"e7e6e6"}}}}};Object.keys(n).forEach((w,S)=>{const D=String.fromCharCode(67+S)+(e+1);u(D,n[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const m=(w,S,D=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:D?{patternType:"solid",fgColor:{rgb:D}}:void 0}}},b=(w,S,D=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin",color:{rgb:"000000"}},bottom:{style:"thin",color:{rgb:"000000"}},left:{style:"thin",color:{rgb:"000000"}},right:{style:"thin",color:{rgb:"000000"}}},font:{bold:!0,sz:14},fill:D?{patternType:"solid",fgColor:{rgb:D}}:void 0}}};for(let w of this.getLettersForExcel("B",20,2,!0,!1))m(w,"COMPANY LEAVE AVAILMENT PROFILE");for(let w of this.getLettersForExcel("B",20,3,!0,!1))m(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of["B7","B8","B9"])b(w,"ORGANIZATIONAL UNIT","ffc000");for(let w of this.getLettersForExcel("C",3,7,!1,!0))b(w,"NO. OF EMPLOYEES","ffc000");for(let w of this.getLettersForExcel("D",13,7,!0,!1))b(w,"NUMBER OF AVAILMENT (MANDAYS)","ffc000");for(let w of this.getLettersForExcel("D",2,8,!0,!1))b(w,"VL","92d050");for(let w of this.getLettersForExcel("F",2,8,!0,!1))b(w,"SL","92d050");b("D9","WP","92d050"),b("E9","WOP","92d050"),b("F9","WP","92d050"),b("G9","WOP","92d050");for(let w of this.getLettersForExcel("H",2,8,!1,!0))b(w,"BL","92d050");for(let w of this.getLettersForExcel("I",13,7,!0,!1))b(w,"REASONS FOR VACATION LEAVE","ffc000");for(let w of this.getLettersForExcel("I",2,8,!1,!0))b(w,"PERSONAL","92d050");for(let w of this.getLettersForExcel("J",2,8,!1,!0))b(w,"FAMILY RELATED","92d050");for(let w of this.getLettersForExcel("K",2,8,!1,!0))b(w,"RECREATION/LEISURE","92d050");for(let w of this.getLettersForExcel("L",2,8,!1,!0))b(w,"EMERGENCY","92d050");for(let w of this.getLettersForExcel("M",2,8,!1,!0))b(w,"OTHERS","92d050");for(let w of this.getLettersForExcel("N",2,8,!1,!0))b(w,"CARDIOVASCULAR DISEASE","92d050");for(let w of this.getLettersForExcel("O",2,8,!1,!0))b(w,"MUSCULO SKELETAL PAINS","92d050");for(let w of this.getLettersForExcel("P",2,8,!1,!0))b(w,"RESPIRATORY DISEASE","92d050");for(let w of this.getLettersForExcel("Q",2,8,!1,!0))b(w,"EENT","92d050");for(let w of this.getLettersForExcel("R",2,8,!1,!0))b(w,"INFECTIOUS DISEASE/INFECTION","92d050");for(let w of this.getLettersForExcel("S",2,8,!1,!0))b(w,"HEADACHE/FLU","92d050");for(let w of this.getLettersForExcel("T",2,8,!1,!0))b(w,"OB-GYNE RELATED","92d050");for(let w of this.getLettersForExcel("U",2,8,!1,!0))b(w,"DENTAL REASON","92d050");for(let w of this.getLettersForExcel("V",2,8,!1,!0))b(w,"OTHERS","92d050");o["!cols"]=[{wch:2},{wch:50},{wch:20},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:20},{wch:25},{wch:25},{wch:23},{wch:23},{wch:22},{wch:20},{wch:20},{wch:20},{wch:30},{wch:25},{wch:28},{wch:30},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20},{wch:20}],o["!rows"]=[{hpt:30},{hpt:20},{hpt:25},{hpt:20},{hpt:20},{hpt:15},{hpt:20},{hpt:25},{hpt:25},{hpt:30},{hpt:30}],o["!merges"]=[Ve.utils.decode_range("B2:V2"),Ve.utils.decode_range("B3:V3"),Ve.utils.decode_range("B7:B9"),Ve.utils.decode_range("C7:C9"),Ve.utils.decode_range("D7:H7"),Ve.utils.decode_range("I7:M7"),Ve.utils.decode_range("N7:V7"),Ve.utils.decode_range("D8:E8"),Ve.utils.decode_range("F8:G8"),Ve.utils.decode_range("H8:H9"),Ve.utils.decode_range("I8:I9"),Ve.utils.decode_range("J8:J9"),Ve.utils.decode_range("K8:K9"),Ve.utils.decode_range("L8:L9"),Ve.utils.decode_range("M8:M9"),Ve.utils.decode_range("N8:N9"),Ve.utils.decode_range("O8:O9"),Ve.utils.decode_range("P8:P9"),Ve.utils.decode_range("Q8:Q9"),Ve.utils.decode_range("R8:R9"),Ve.utils.decode_range("S8:S9"),Ve.utils.decode_range("T8:T9"),Ve.utils.decode_range("U8:U9"),Ve.utils.decode_range("V8:V9")];const _=Ve.utils.book_new();Ve.utils.book_append_sheet(_,o,"Leave(Detailed)"),Ve.writeFile(_,"LeaveDetailedReport.xlsx")}},async saveRecord(){this.state.isLoading=!0,this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({company_name:o.company_name||0,employee_count:o.employee_count||0,total_vl_wp:o.total_vl_wp||0,total_vl_wop:o.total_vl_wop||0,total_sl_wp:o.total_sl_wp||0,total_sl_wop:o.total_sl_wop||0,total_bl_wop:o.total_bl_wop||0,total_personal_vl:o.total_personal_vl||0,total_fr_vl:o.total_fr_vl||0,total_rl_vl:o.total_rl_vl||0,total_emergency_vl:o.total_emergency_vl||0,total_others_vl:o.total_others_vl||0,total_cd_sl:o.total_cd_sl||0,total_msp_sl:o.total_msp_sl||0,total_rd_sl:o.total_rd_sl||0,total_eent_sl:o.total_eent_sl||0,total_idi_sl:o.total_idi_sl||0,total_hf_sl:o.total_hf_sl||0,total_or_sl:o.total_or_sl||0,total_dr_sl:o.total_dr_sl||0,total_others_sl:o.total_others_sl||0}));this.resultData=r,this.hasValue=!0,this.state.isLoading=!1}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3}),this.state.isLoading=!1})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(14);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{}},d5={class:"grid grid-cols-2 gap-2"},h5={class:"flex justify-between items-center"},p5={class:"flex gap-1 justify-end"};function m5(s,r,o,n,t,e){const u=K("Loading"),m=K("Multiselect"),b=K("FormGroup"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[2]||(r[2]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[t.state.isLoading?(ae(),Ge(u,{key:0,text:"Fetching records"})):ye("",!0),j("div",d5,[k(b,{label:"Company"},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(b,{label:"Month"},{default:W(()=>[k(m,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.month=E),options:t.months,mode:"tags",class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})]),j("div",h5,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",p5,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const g5=Rt(u5,[["render",m5],["__scopeId","data-v-5e9c4802"]]);const b5={props:["finalData","form"],mounted(){Aa.register(ko,Eo,So,ri,Cl,Fl,xl),this.createChart()},methods:{createChart(){const s=document.getElementById("reportChart").getContext("2d");this.chartInstance&&this.chartInstance.destroy();const r=this.finalData.reduce((t,e)=>{const u=e.name||"Unknown",m=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${m})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),n=Object.values(r);this.chartInstance=new Aa(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:n,backgroundColor:"rgba(75, 192, 192, 0.6)",borderColor:"rgba(75, 192, 192, 1)",borderWidth:1}]},options:{responsive:!0,scales:{y:{beginAtZero:!0,title:{display:!0,text:"Number of Leave Days"}},x:{title:{display:!0,text:"Employees (Date)"}}}}})}}};function y5(s,r,o,n,t,e){return ae(),Be("div",null,r[0]||(r[0]=[j("canvas",{id:"reportChart"},null,-1)]))}const _5=Rt(b5,[["render",y5],["__scopeId","data-v-eb8f87f1"]]);const v5={setup(){},components:{PriceRange:d1,AgGridVue:Jt,ActionCellRenderer:dr,LeaveReportChart:_5,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,payrollRateOptions:[{label:"Monthly",value:"Monthly"},{label:"Daily",value:"Daily"}],paymentTypeOptions:[{label:"Cut-Off",value:"Cut-Off"},{label:"Monthly",value:"Monthly"}],priceRange:{min:0,max:5e5},gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],form:{modules:15,columns:[],company_id:[],dealer_id:[],date_from:"",date_to:""},included:{leave_id:!1,salary_rate:!1,payroll_rate:!1,payment_type:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isLeaveTypeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},handlePriceRangeUpdate(s){this.priceRange=s},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{await Wr().shape({date_from:Lt().required("Date From is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{console.log("eyow"),this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(n=>({id:null,report_module_id:"1",name:n.label,slug:n.value})),o=s.data.data.map(n=>{const t={employee_id:n.employee_id||null,fullname:n.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=n[u]||null}),t});this.resultData=o,console.log("Mapped Data",o),this.colDefs=[{field:"employee_id",filter:!0,floatingFilter:!0},{field:"fullname",filter:!0,floatingFilter:!0},...this.form.columns.map(n=>{const t=this.reportModuleColums.find(e=>e.value===n);return{field:t?t.label:n,filter:!0,floatingFilter:!0}})],this.items=this.resultData,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(15);s.status===200&&(console.log(s.data),this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},onSelect(s){s==="salary_rate"&&(this.fetchLeaveType(),this.included.salary_rate=!0),s==="payroll_rate"&&(this.included.payroll_rate=!0),s==="payment_type"&&(this.included.payment_type=!0)},onRemove(s){s==="salary_rate"&&(this.included.salary_rate=!1),s==="payroll_rate"&&(this.included.payroll_rate=!1),s==="payment_type"&&(this.included.payment_type=!1)}},mounted(){this.fetchReportModuleColumn(),this.fetchCompany()},watch:{"form.columns":function(s){s!=null&&(this.form.columns.includes("salary_rate")?this.included.salary_rate=!0:this.included.salary_rate=!1,this.form.columns.includes("payroll_rate")?this.included.payroll_rate=!0:this.included.payroll_rate=!1,this.form.columns.includes("payment_type")?this.included.payment_type=!0:this.included.payment_type=!1)}}},w5={class:"grid grid-cols-1 gap-2"},x5={class:"grid grid-cols-5 gap-2"},C5={class:"grid grid-cols-2 gap-2"},F5={class:"grid grid-cols-2 gap-2"},A5={class:"flex justify-between items-center"},D5={class:"flex gap-1 justify-end"};function S5(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("PriceRange"),_=K("flat-pickr"),w=K("Button"),S=K("SubmitButton"),D=K("ag-grid-vue"),E=K("Card"),M=K("LeaveReportChart");return ae(),Be(Cr,null,[j("form",{onSubmit:r[8]||(r[8]=Ut((...V)=>s.confirmSubmit&&s.confirmSubmit(...V),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",w5,[k(m,{label:"Columns",isRequired:!0},{default:W(()=>[k(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=V=>t.form.columns=V),options:t.reportModuleColums,class:"form-control w-full h-[60px] mt-2",loading:t.state.isReportModuleColumnLoading,mode:"tags","custom-label":e.columnLabel,"close-on-select":!1,onSelect:e.onSelect,onRemove:e.onRemove,placeholder:"Select Columns"},null,8,["modelValue","options","loading","custom-label","onSelect","onRemove"]),j("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...V)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...V))},fs(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),j("div",x5,[t.included.payroll_rate?(ae(),Ge(m,{key:0,label:"Payroll Rate"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=V=>t.form.payroll_rate=V),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0),t.included.salary_rate?(ae(),Ge(m,{key:1,label:"Salary Rate"},{default:W(()=>[k(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=V=>t.form.salary_rate=V)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):ye("",!0),t.included.payment_type?(ae(),Ge(m,{key:2,label:"Payment Type"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=V=>t.form.payment_type=V),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):ye("",!0)]),j("div",C5,[k(m,{label:"Payroll Date From",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.date_from,"onUpdate:modelValue":r[5]||(r[5]=V=>t.form.date_from=V),class:"form-control h-[48px]",id:"date_from",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"Payroll Date To",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.date_to,"onUpdate:modelValue":r[6]||(r[6]=V=>t.form.date_to=V),class:"form-control h-[48px]",id:"date_to",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",F5,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[7]||(r[7]=V=>t.form.company_id=V),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",A5,[t.hasValue?(ae(),Ge(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",D5,[k(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(E,{key:0,class:"p-2"},{default:W(()=>[k(D,{ref:"agGrid",rowData:s.items,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),j("div",null,[t.form.modules==1&&t.finalData.length!=0?(ae(),Ge(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):ye("",!0)])],64)}const E5=Rt(v5,[["render",S5],["__scopeId","data-v-93a5836a"]]);const T5={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"0",label:"For Recommending"},{value:"1",label:"For Endorsement"},{value:"2",label:"For Approval"},{value:"3",label:"Approved"},{value:"99",label:"Denied"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],natureOfRequestOption:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:16,status_id:"",company_id:"",job_title_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.job_title=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await yl.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Cf.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({company_id:o.company.name||null,nature_of_request:o.nature.name||null,status:o.status==0?"For Recommendation":o.status==1?"For Endorsement":o.status==2?"For Approval":o.status==3?"Approved":o.status==99?"Denied":"",classification:o.job_classification?o.job_classification.name:"N/A",job_title:o.jobtitle.name||null,salary_grade:o.salary_grade||null,replacement_position_number:o.replacement_position_number||null,employee_name_to_be_replaced1:o.employee_name_to_be_replaced1||null,nature_of_seperation1:o.nature_of_seperation1||null,date_of_seperation1:o.date_of_seperation1||null,date_needed:o.date_needed||null,employment_type:o.employmenttype.name||null,salary:o.salary||null,job_design:o.job_design||null,requested_by:o.requestor[0].firstname+" "+o.requestor[0].lastname||null}));this.colDefs=[{field:"company_id",headerName:"Company",filter:!0,floatingFilter:!0,flex:1},{field:"nature_of_request",headerName:"Nature of Request",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"classification",headerName:"Classification",filter:!0,floatingFilter:!0,flex:3},{field:"job_title",headerName:"Job Title",filter:!0,floatingFilter:!0,flex:3},{field:"salary_grade",headerName:"Salary Grade",filter:!0,floatingFilter:!0,flex:3},{field:"replacement_position_number",headerName:"Replacement Number",filter:!0,floatingFilter:!0,flex:3},{field:"employee_name_to_be_replaced1",headerName:"Employee Name To Be Replace",filter:!0,floatingFilter:!0,flex:3},{field:"nature_of_seperation1",headerName:"Nature of Seperation",filter:!0,floatingFilter:!0,flex:3},{field:"date_of_seperation1",headerName:"Date of Seperation",filter:!0,floatingFilter:!0,flex:3},{field:"date_needed",headerName:"Date Needed",filter:!0,floatingFilter:!0,flex:3},{field:"employment_type",headerName:"Employment Type",filter:!0,floatingFilter:!0,flex:3},{field:"salary",headerName:"Salary",filter:!0,floatingFilter:!0,flex:3},{field:"job_design",headerName:"Job Design",filter:!0,floatingFilter:!0,flex:3},{field:"requested_by",headerName:"Requested By",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest()},watch:{}},k5={class:"grid grid-cols-3 gap-2"},R5={class:"grid grid-cols-3 gap-2"},L5={class:"grid grid-cols-2 gap-2"},M5={class:"flex justify-between items-center"},O5={class:"flex gap-1 justify-end"};function P5(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[7]||(r[7]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",k5,[k(m,{label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1}),k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_title_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.job_title_id=E),options:t.job_title,class:"form-control w-full h-[48px] mt-2",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",R5,[k(m,{label:"Classification"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.job_classification_id=E),options:t.job_classification,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJCLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Type"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.type_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.type_id=E),options:t.natureOfRequestOption,class:"form-control w-full h-[48px] mt-2",loading:t.state.isTypeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",L5,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date"},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",M5,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",O5,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const N5=Rt(T5,[["render",P5],["__scopeId","data-v-fb890015"]]),I5={props:{modelValue:{type:Array,required:!0},min:{type:Number,default:0},max:{type:Number,default:100}},methods:{updateValue(s,r){const o=[...this.modelValue];o[s]=Number(r),this.$emit("update:modelValue",o)},formatPrice(s){return new Intl.NumberFormat("en-PH").format(s)}}},V5={class:"flex gap-2 mb-4"},B5=["value"],U5=["value"],z5={class:"relative"},G5=["min","max","value"],j5=["min","max","value"],W5={class:"flex justify-between text-sm text-gray-500 mt-2"};function H5(s,r,o,n,t,e){return ae(),Be("div",null,[j("div",V5,[j("input",{type:"number",value:o.modelValue[0],onInput:r[0]||(r[0]=u=>e.updateValue(0,u.target.value)),class:"w-full px-2 py-1 border rounded"},null,40,B5),r[4]||(r[4]=j("span",{class:"self-center"},"-",-1)),j("input",{type:"number",value:o.modelValue[1],onInput:r[1]||(r[1]=u=>e.updateValue(1,u.target.value)),class:"w-full px-2 py-1 border rounded"},null,40,U5)]),j("div",z5,[r[5]||(r[5]=j("div",{class:"w-full h-1 bg-gray-300 rounded-full"},null,-1)),j("input",{type:"range",min:o.min,max:o.max,value:o.modelValue[0],onInput:r[2]||(r[2]=u=>e.updateValue(0,u.target.value)),class:"absolute w-full h-1 bg-transparent appearance-none cursor-pointer"},null,40,G5),j("input",{type:"range",min:o.min,max:o.max,value:o.modelValue[1],onInput:r[3]||(r[3]=u=>e.updateValue(1,u.target.value)),class:"absolute w-full h-1 bg-transparent appearance-none cursor-pointer"},null,40,j5)]),j("div",W5,[j("span",null,"₱"+fs(e.formatPrice(o.min)),1),j("span",null,"₱"+fs(e.formatPrice((o.min+o.max)/2)),1),j("span",null,"₱"+fs(e.formatPrice(o.max)),1)])])}const Y5=Rt(I5,[["render",H5]]);const q5={setup(){},components:{Range:Y5,AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"1",label:"Initial Interview"},{value:"2",label:"Technical Interview"},{value:"3",label:"Final Interview"},{value:"4",label:"Job Offer"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],natureOfRequestOption:[],dealers:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:17,status_id:"",company_id:"",job_title_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:"",priceRange:[500,24320]},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await sy.fetchOpenPosition();s.status===200&&(this.job_title=s.data.map(r=>({value:r.jobtitle.id,label:r.jobtitle.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await yl.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Cf.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({name:o.firstname+" "+o.lastname||null,address:o.address||null,contact_number:o.contact_number||null,email:o.email||null,last_position:o.last_position||null,last_salary:o.last_salary||null,cover_letter:o.cover_letter||null}));this.colDefs=[{field:"name",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"address",headerName:"Address",filter:!0,floatingFilter:!0,flex:3},{field:"contact_number",headerName:"Contact Number",filter:!0,floatingFilter:!0,flex:3},{field:"email",headerName:"Email",filter:!0,floatingFilter:!0,flex:3},{field:"last_position",headerName:"Last Position",filter:!0,floatingFilter:!0,flex:3},{field:"last_salary",headerName:"Last Salary",filter:!0,floatingFilter:!0,flex:3},{field:"cover_letter",headerName:"Cover Letter",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest()},watch:{}},K5={class:"grid grid-cols-2 gap-2"},J5={class:"flex justify-between items-center"},X5={class:"flex gap-1 justify-end"};function Q5(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Range"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[3]||(r[3]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",K5,[k(m,{label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_title_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.job_title_id=E),options:t.job_title,class:"form-control w-full h-[48px] mt-2",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",null,[k(m,{label:"Salary Range"},{default:W(()=>[k(b,{modelValue:t.form.priceRange,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.priceRange=E),min:0,max:15e4},null,8,["modelValue"])]),_:1})]),j("div",J5,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",X5,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const Z5=Rt(q5,[["render",Q5],["__scopeId","data-v-f9f68b94"]]);const $5={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],status:[{value:"0",label:"For Recommending"},{value:"1",label:"For Endorsement"},{value:"2",label:"For Approval"},{value:"3",label:"Approved"},{value:"99",label:"Denied"}],months:[{value:"1",label:"January"},{value:"2",label:"February"},{value:"3",label:"March"},{value:"4",label:"April"},{value:"5",label:"May"},{value:"6",label:"June"},{value:"7",label:"July"},{value:"8",label:"August"},{value:"9",label:"September"},{value:"10",label:"October"},{value:"11",label:"November"},{value:"12",label:"December"}],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],job_title:[],job_classification:[],dealer:[],natureOfRequestOption:[],dealers:[],divisions:[],departments:[],sections:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:18,status_id:"",company_id:"",job_title_id:"",dealer_id:"",division_id:"",department_id:"",section_id:"",employee_id:"",job_classification_id:"",type_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isCompanyLoading:!1,isPositionLoading:!1,isJCLoading:!1,isTypeLoading:!1,isDealerLoading:!1,isEmployeeLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,isSectionLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchSection(){this.state.isSectionLoading=!0,await hm.fetchRecords().then(s=>{s.status==200&&(this.sections=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isSectionLoading=!1)}).catch(s=>{console.log(s)})},async fetchDepartment(){this.state.isDepartmentLoading=!0,await Zr.fetchRecords().then(s=>{s.status==200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}).catch(s=>{console.log(s)})},async fetchDivision(){this.state.isDivisionLoading=!0,await Ps.fetchRecords().then(s=>{s.status==200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}).catch(s=>{console.log(s)})},async fetchDealership(){this.state.isDealerLoading=!0,await yr.fetchRecords().then(s=>{s.status==200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}).catch(s=>{console.log(s)})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchJobTitle(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.job_title=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},async fetchJobClassification(){this.state.isJCLoading=!0;try{const s=await yl.fetchRecords();s.status===200&&(this.job_classification=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isJCLoading=!1)}catch(s){console.log(s)}},async fetchNatureOfRequest(){this.state.isTypeLoading=!0,await Cf.fetchRecords().then(s=>{s.status==200&&(this.state.isNatureRequestLoading=!1,this.natureOfRequestOption=s.data.data.filter(r=>r.request_for=="MRF").map(r=>({value:r.id,label:r.name}))),this.state.isTypeLoading=!1}).catch(s=>{console.log(s)})},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){console.log("final",s.data),this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,name:o.employee.firstname+" "+o.employee.lastname||null,type_of_movement:o.type_of_movement.name||null,status:o.status==0?"For Recommendation":o.status==1?"For Endorsement":o.status==2?"For Approval":o.status==3?"Approved":o.status==99?"Denied":"",position_from:o.prev_position_name||null,position_to:o.next_position_name||null,unit:o.unit.name||null,salary_increase_to:o.salary_increase_to||null,honorarium:o.honorarium||null,peso:o.peso||null,incentive:o.incentive||null,commission:o.commission||null,effectivity:o.effectivity||null,inclusive_period:o.inclusive_period||null,justification_request:o.justification_request||null}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:3},{field:"name",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"type_of_movement",headerName:"Type of Movement",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"position_from",headerName:"Position From",filter:!0,floatingFilter:!0,flex:3},{field:"position_to",headerName:"Position To",filter:!0,floatingFilter:!0,flex:3},{field:"unit",headerName:"Unit",filter:!0,floatingFilter:!0,flex:3},{field:"salary_increase_to",headerName:"Salary To",filter:!0,floatingFilter:!0,flex:3},{field:"honorarium",headerName:"Honorarium",filter:!0,floatingFilter:!0,flex:3},{field:"peso",headerName:"Peso",filter:!0,floatingFilter:!0,flex:3},{field:"incentive",headerName:"Incentive",filter:!0,floatingFilter:!0,flex:3},{field:"commission",headerName:"Commission",filter:!0,floatingFilter:!0,flex:3},{field:"effectivity",headerName:"Effectivity",filter:!0,floatingFilter:!0,flex:3},{field:"inclusive_period",headerName:"Inclusive Period",filter:!0,floatingFilter:!0,flex:3},{field:"justification_request",headerName:"Justification",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchJobTitle(),this.fetchJobClassification(),this.fetchNatureOfRequest(),this.fetchDivision(),this.fetchDepartment(),this.fetchSection()},watch:{}},eF={class:"grid grid-cols-2 gap-2"},tF={class:"grid grid-cols-3 gap-2"},rF={class:"grid grid-cols-3 gap-2"},sF={class:"grid grid-cols-2 gap-2"},aF={class:"flex justify-between items-center"},oF={class:"flex gap-1 justify-end"};function iF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[10]||(r[10]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",eF,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Status"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.status_id=E),options:t.status,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})]),j("div",tF,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Classification"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.job_classification_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.job_classification_id=E),options:t.job_classification,class:"form-control w-full h-[48px] mt-2",loading:t.state.isJCLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",rF,[k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.division_id=E),options:t.divisions,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[6]||(r[6]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Section"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.section_id,"onUpdate:modelValue":r[7]||(r[7]=E=>t.form.section_id=E),options:t.sections,class:"form-control w-full h-[48px] mt-2",loading:t.state.isSectionLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",sF,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[8]||(r[8]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date"},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[9]||(r[9]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",aF,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",oF,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const nF=Rt($5,[["render",iF],["__scopeId","data-v-7fba7428"]]);const lF={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"changeScheduleReport",employee_id:[],company_id:"",dealer_id:"",department_id:"",start_date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,status:o.status==0?"For Recommendation":o.status==1?"For Approval":o.status==2?"Approved":null,time_coverage:o.dayoff?null:o.from_time+" - "+o.to_time,dayoff:o.dayoff?"Yes":"",recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"time_coverage",headerName:"Time Coverage",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},cF={class:"grid grid-cols-1 gap-2"},fF={class:"grid grid-cols-2 gap-2"},uF={class:"grid grid-cols-2 gap-2"},dF={class:"flex justify-between items-center"},hF={class:"flex gap-1 justify-end"};function pF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[6]||(r[6]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[j("div",cF,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.employee_id=E),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",fF,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.department_id=E),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",uF,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[4]||(r[4]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[5]||(r[5]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",dF,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",hF,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const mF=Rt(lF,[["render",pF],["__scopeId","data-v-ad8b6b70"]]);const gF={setup(){},components:{Radio:pm,AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"cwsListReport",employee_id:[],company_id:"",dealer_id:"",department_id:"",resign_employee:"",start_date:"",date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,time_coverage:o.dayoff?null:o.cws_from_time+" - "+o.cws_to_time,dayoff:o.day_off,cws_day:o.cws_day,effectivity_date:o.effectivity_date}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"time_coverage",headerName:"Time Coverage",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"cws_day",headerName:"8 Hours Day",filter:!0,floatingFilter:!0,flex:3},{field:"effectivity_date",headerName:"Effectivity Date",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},bF={class:"grid grid-cols-1 gap-2"},yF={class:"grid grid-cols-2 gap-2"},_F={class:"flex items-center gap-4"},vF={class:"flex items-center cursor-pointer"},wF=["checked"],xF={class:"flex items-center cursor-pointer gap-4"},CF={class:"grid grid-cols-2 gap-2"},FF={class:"flex justify-between items-center"},AF={class:"flex gap-1 justify-end"};function DF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Radio"),_=K("flat-pickr"),w=K("Button"),S=K("SubmitButton"),D=K("ag-grid-vue"),E=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[9]||(r[9]=Ut((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[j("div",bF,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.employee_id=M),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",yF,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=M=>t.form.company_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.dealer_id=M),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.department_id=M),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",_F,[j("label",vF,[Zo(j("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:t.form.resign_employee,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.resign_employee=M)},null,8,wF),[[dm,t.form.resign_employee]]),r[10]||(r[10]=j("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[j("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[j("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),r[11]||(r[11]=j("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),j("label",xF,[k(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),k(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),j("div",CF,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.start_date,"onUpdate:modelValue":r[7]||(r[7]=M=>t.form.start_date=M),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.end_date,"onUpdate:modelValue":r[8]||(r[8]=M=>t.form.end_date=M),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",FF,[t.hasValue?(ae(),Ge(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",AF,[k(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(E,{key:0,class:"p-2"},{default:W(()=>[k(D,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const SF=Rt(gF,[["render",DF],["__scopeId","data-v-7c54c55f"]]);const EF={setup(){},components:{Radio:pm,AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],departments:[],employees:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"changeRestDay",employee_id:[],company_id:"",dealer_id:"",department_id:"",resign_employee:"",start_date:"",date:"",end_date:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDepartmentLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){await Tr.fetchRecords().then(s=>{s.status==200&&(this.employees=s.data.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,dayoff:o.dayoff?"Yes":"",recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"dayoff",headerName:"DayOff",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.error(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchEmployee(),this.fetchCompany(),this.fetchDealership(),this.fetchDepartment()},watch:{}},TF={class:"grid grid-cols-1 gap-2"},kF={class:"grid grid-cols-2 gap-2"},RF={class:"flex items-center gap-4"},LF={class:"flex items-center cursor-pointer"},MF=["checked"],OF={class:"flex items-center cursor-pointer gap-4"},PF={class:"grid grid-cols-2 gap-2"},NF={class:"flex justify-between items-center"},IF={class:"flex gap-1 justify-end"};function VF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Radio"),_=K("flat-pickr"),w=K("Button"),S=K("SubmitButton"),D=K("ag-grid-vue"),E=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[9]||(r[9]=Ut((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[j("div",TF,[k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=M=>t.form.employee_id=M),options:t.employees,class:"form-control w-full h-[48px] mt-2",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",kF,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[1]||(r[1]=M=>t.form.company_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.dealer_id=M),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=M=>t.form.department_id=M),options:t.departments,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",RF,[j("label",LF,[Zo(j("input",{type:"checkbox",class:"peer h-6 w-6 cursor-pointer rounded-full bg-slate-100 border border-slate-300 checked:bg-blue-500 checked:border-blue-500",checked:t.form.resign_employee,"onUpdate:modelValue":r[4]||(r[4]=M=>t.form.resign_employee=M)},null,8,MF),[[dm,t.form.resign_employee]]),r[10]||(r[10]=j("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[j("svg",{xmlns:"http://www.w3.org/2000/svg",class:"h-4 w-4",viewBox:"0 0 20 20",fill:"currentColor",stroke:"currentColor","stroke-width":"1"},[j("path",{"fill-rule":"evenodd",d:"M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z","clip-rule":"evenodd"})])],-1)),r[11]||(r[11]=j("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),j("label",OF,[k(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),k(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),j("div",PF,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.start_date,"onUpdate:modelValue":r[7]||(r[7]=M=>t.form.start_date=M),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(_,{modelValue:t.form.end_date,"onUpdate:modelValue":r[8]||(r[8]=M=>t.form.end_date=M),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",NF,[t.hasValue?(ae(),Ge(w,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",IF,[k(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(E,{key:0,class:"p-2"},{default:W(()=>[k(D,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0)],64)}const BF=Rt(EF,[["render",VF],["__scopeId","data-v-eda7f0ad"]]);const UF={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],reportModule:[],reportModuleColums:[],companies:[],dealers:[],statusOptions:[{value:"0",label:"Pending / For Recommendation"},{value:"1",label:"For Approval"},{value:"2",label:"Approved"},{value:"99",label:"Denied"}],form:{modules:"timeAdjustment",columns:[],company_id:"",dealer_id:""},included:{company_id:!1,dealer_id:!1},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isCompanyLoading:!1,isDealerLoading:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},onGridReady(s){this.gridApi=s.api},getColumnLabel(s){const r=this.reportModuleColums.find(o=>o.value===s);return r?r.label:s},async submitForm(){try{this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(s=>{this.saveRecord()})}catch(s){if(s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},exportToCsv(){this.gridApi?this.gridApi.exportDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(s=>s.field!=="actions").map(s=>s.field)}):console.error("Grid API is not ready.")},async saveRecord(){this.hasValue=!1,await mt.fetchGeneratedReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data;const r=this.finalData.map(o=>({employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,status:o.status==0?"For Recommendation":o.status==1?"For Approval":o.status==2?"Approved":"",in_out:o.in_out?"O":"I",time:o.time,date:o.date,recommending:o.recommending_firstname+" "+o.recommending_lastname,approving:o.approving_firstname+" "+o.approving_lastname}));this.colDefs=[{field:"employee_id",headerName:"Employee ID",filter:!0,floatingFilter:!0,flex:2},{field:"fullname",headerName:"Name",filter:!0,floatingFilter:!0,flex:3},{field:"status",headerName:"Status",filter:!0,floatingFilter:!0,flex:3},{field:"in_out",headerName:"In / Out",filter:!0,floatingFilter:!0,flex:3},{field:"time",headerName:"Time",filter:!0,floatingFilter:!0,flex:3},{field:"date",headerName:"Date",filter:!0,floatingFilter:!0,flex:3},{field:"recommending",headerName:"Recommender",filter:!0,floatingFilter:!0,flex:3},{field:"approving",headerName:"Approver",filter:!0,floatingFilter:!0,flex:3}],this.resultData=r,this.hasValue=!0}}).catch(s=>{console.log(s),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:s.response.data.message,icon:"error",timer:2e3})})},async fetchReportModuleColumn(){this.state.isReportModuleColumnLoading=!0;try{const s=await mt.fetchReportModuleColumnRecord(5);s.status===200&&(this.form.columns=[],this.reportModuleColums=s.data.map(r=>({value:r.slug,label:r.name})),this.state.isReportModuleColumnLoading=!1)}catch(s){console.log(s)}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchDealership()},watch:{}},zF={class:"grid grid-cols-2 gap-2"},GF={class:"grid grid-cols-2 gap-2"},jF={class:"flex justify-between items-center"},WF={class:"flex gap-1 justify-end"};function HF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("flat-pickr"),_=K("Button"),w=K("SubmitButton"),S=K("ag-grid-vue"),D=K("Card");return ae(),Be(Cr,null,[j("form",{onSubmit:r[4]||(r[4]=Ut((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=j("div",{class:"grid grid-cols-1 gap-2"},null,-1)),j("div",zF,[k(m,{label:"Company"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.company_id=E),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=E=>t.form.dealer_id=E),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",GF,[k(m,{label:"Start Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.start_date,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.start_date=E),class:"form-control h-[48px]",id:"start_date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),k(m,{label:"End Date",isRequired:!0},{default:W(()=>[k(b,{modelValue:t.form.end_date,"onUpdate:modelValue":r[3]||(r[3]=E=>t.form.end_date=E),class:"form-control h-[48px]",id:"control",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),j("div",jF,[t.hasValue?(ae(),Ge(_,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToCsv},null,8,["onClick"])):ye("",!0),j("div",WF,[k(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(ae(),Ge(D,{key:0,class:"p-2"},{default:W(()=>[k(S,{ref:"agGrid",rowData:t.resultData,columnDefs:t.colDefs,style:{height:"500px"},class:"ag-theme-quartz",pagination:!0,paginationPageSize:t.paginationPageSize,paginationPageSizeSelector:t.paginationPageSizeSelector,onGridReady:e.onGridReady},null,8,["rowData","columnDefs","paginationPageSize","paginationPageSizeSelector","onGridReady"])]),_:1})):ye("",!0),r[6]||(r[6]=j("div",null,null,-1))],64)}const YF=Rt(UF,[["render",HF],["__scopeId","data-v-d1e43127"]]);const qF={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],finalData:[],resultData:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[]},errors:{},state:{isLoading:!1,isMounted:!1,showModal:!1,isDeleting:!1,isReportModuleColumnLoading:!1,isEmployeeLoading:!1,isDealerLoading:!1,isLoadingDealerships:!1,isLoadingEmployees:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Division.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Department.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await JobTitle.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id);if(console.log("FinalData",this.finalData),!this.finalData.length){this.$swal.fire({title:"No Data Available",text:"Please generate a report first.",icon:"warning",timer:3e3});return}const o=this.countEmployeeFlags(),n=this.groupByDealership(this.finalData);oa(()=>import("./exceljs.min.27fdc4f4.js").then(t=>t.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Mandatory Deduction Flags");u.mergeCells("A1:I1");const m=u.getCell("A1");m.value="List of Employee's Mandatory Deductions Flags",m.font={size:16,bold:!0},m.alignment={horizontal:"center"},u.mergeCells("A2:I2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.columns=[{key:"empId",width:15},{key:"name",width:30},{key:"position",width:30},{key:"alwaysPresent",width:20},{key:"flexibleTime",width:15},{key:"noTax",width:15},{key:"noSss",width:15},{key:"noPagibig",width:15},{key:"noPhilhealth",width:15}];const _=u.addRow(["EMPLOYEE ID","NAME","POSITION","ALWAYS PRESENT","FLEXIBLE TIME","NO TAX","NO SSS","NO PAG-IBIG","NO PHILHEALTH"]);this.formatHeaderRow(_);let w=4;Object.entries(n).forEach(([D,E])=>{w++,u.mergeCells(`A${w}:I${w}`);const M=u.getCell(`A${w}`);M.value=D||"Unassigned Dealership",M.font={size:12,bold:!0},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},M.alignment={horizontal:"left"};const V={totalEmployees:E.length,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};E.forEach(U=>{var Je,ft,bt,rt;let ee={};const ie=(Je=U==null?void 0:U.salary_and_wages)==null?void 0:Je.shields;ee=ie?JSON.parse(ie):{};const z=((ft=U==null?void 0:U.salary_and_wages)==null?void 0:ft.always_present)||"No",H=((bt=U==null?void 0:U.position)==null?void 0:bt.name)||"N/A",ne=((rt=U==null?void 0:U.salary_and_wages)==null?void 0:rt.flexible_time)||"No",G=(ee==null?void 0:ee.no_tax)||"No",De=(ee==null?void 0:ee.no_sss)||"No",ve=(ee==null?void 0:ee.no_pagibig)||"No",ot=(ee==null?void 0:ee.no_philhealth)||"No";z==1&&V.alwaysPresentCount++,ne==1&&V.flexibleTimeCount++,G==1&&V.noTaxCount++,De==1&&V.noSssCount++,ve==1&&V.noPagibigCount++,ot==1&&V.noPhilhealthCount++,w++,u.addRow([U.employee_id||"",U.lastname+", "+U.firstname||"",H||"N/A",z==1?"Yes":"No",ne==1?"Yes":"No",G==1?"Yes":"No",De==1?"Yes":"No",ve==1?"Yes":"No",ot==1?"Yes":"No"]).eachCell(kt=>{kt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}})}),w++,u.addRow(["Subtotal:",`${V.totalEmployees} employees`,"",V.alwaysPresentCount,V.flexibleTimeCount,V.noTaxCount,V.noSssCount,V.noPagibigCount,V.noPhilhealthCount]).eachCell(U=>{U.font={bold:!0},U.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFECECEC"}},U.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),w++,u.addRow([])}),w+=2;const S=u.addRow(["OVERALL SUMMARY"]);return S.getCell(1).font={bold:!0,size:14},u.addRow(["Total Employees:",o.totalEmployees]),u.addRow(["Always Present:",o.alwaysPresentCount]),u.addRow(["Flexible Time:",o.flexibleTimeCount]),u.addRow(["No Tax:",o.noTaxCount]),u.addRow(["No SSS:",o.noSssCount]),u.addRow(["No PAG-IBIG:",o.noPagibigCount]),u.addRow(["No PhilHealth:",o.noPhilhealthCount]),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),m=document.createElement("a");m.href=u,m.download="EmployeeMandatoryFlags_ByDealership.xlsx",document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(u),document.body.removeChild(m)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},formatHeaderRow(s){s.eachCell(r=>{r.font={bold:!0,color:{argb:"FFFFFFFF"}},r.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},r.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}})},groupByDealership(s){const r={};return s.forEach(o=>{var t;const n=((t=o.dealership)==null?void 0:t.name)||"Unassigned";r[n]||(r[n]=[]),r[n].push(o)}),r},countEmployeeFlags(){if(!this.finalData.length)return{totalEmployees:0,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};const s={totalEmployees:this.finalData.length,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};return this.finalData.forEach(r=>{var w,S,D;let o={};const n=(w=r==null?void 0:r.salary_and_wages)==null?void 0:w.shields;o=n?JSON.parse(n):{};const t=((S=r==null?void 0:r.salary_and_wages)==null?void 0:S.always_present)||"No",e=((D=r==null?void 0:r.salary_and_wages)==null?void 0:D.flexible_time)||"No",u=(o==null?void 0:o.no_tax)||"No",m=(o==null?void 0:o.no_sss)||"No",b=(o==null?void 0:o.no_pagibig)||"No",_=(o==null?void 0:o.no_philhealth)||"No";t==1&&s.alwaysPresentCount++,e==1&&s.flexibleTimeCount++,u==1&&s.noTaxCount++,m==1&&s.noSssCount++,b==1&&s.noPagibigCount++,_==1&&s.noPhilhealthCount++}),console.log("Employee Flag Counts:",s),s},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAttendanceData(),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAttendanceData(){try{const r=(await mt.GenerateEmployeeFlags(this.form)).data||{};let o=Object.values(r);o&&(this.employee={emp_no:o.emp_no,name:o.name}),this.finalData=Object.values(r)}catch(s){throw console.error("Error fetching attendance data:",s),s}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee()},watch:{"form.dealership_id"(){this.fetchEmployees()}}},KF={class:"grid grid-cols-3 gap-2"},JF={key:0,class:"text-[#ec4899]"},XF={class:"flex justify-between items-center"},QF={class:"flex gap-1 justify-end"};function ZF(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("Button"),_=K("SubmitButton");return ae(),Be("form",{onSubmit:r[6]||(r[6]=Ut((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[j("div",KF,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=w=>t.form.company_id=w),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",JF,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=w=>t.form.dealer_id=w),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=w=>t.form.division_id=w),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=w=>t.form.department_id=w),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=w=>t.form.position_id=w),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=w=>t.form.employee_id=w),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),j("div",XF,[t.hasValue?(ae(),Ge(b,{key:0,icon:"heroicons-outline:download",text:"Export to CSV",btnClass:"btn-dark font-normal btn-sm",iconClass:"text-lg",onClick:e.exportToExcel},null,8,["onClick"])):ye("",!0),j("div",QF,[k(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const $F=Rt(qF,[["render",ZF],["__scopeId","data-v-51618304"]]);const eA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.payrollDateOptions.find(n=>n.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee Deduction Report");e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Deduction Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");if(b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"category",width:30},{key:"name",width:40},{key:"amount",width:20}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}e.addRow([]);let _=0;const w={};Object.entries(this.finalData).forEach(([D,E])=>{E.items&&Array.isArray(E.items)&&E.items.forEach(M=>{const V=M.dealer||"Unassigned Dealer";w[V]||(w[V]={}),w[V][D]||(w[V][D]={items:[],total:0}),w[V][D].items.push(M),w[V][D].total+=parseFloat(M.amount)||0})}),Object.entries(w).forEach(([D,E])=>{const M=e.addRow([D]);M.font={bold:!0,size:16},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},e.mergeCells(`A${M.number}:C${M.number}`);let V=0;Object.entries(E).forEach(([U,ee])=>{const ie=e.addRow([U]);ie.font={bold:!0,size:14},e.mergeCells(`A${ie.number}:C${ie.number}`),ee.items&&Array.isArray(ee.items)&&ee.items.forEach(ne=>{e.addRow(["",ne.employee_name,parseFloat(ne.amount)||0])});const z=ee.total;V+=z;const H=e.addRow(["",`Total ${U}`,z]);H.font={bold:!0},H.getCell(3).numFmt="#,##0.00",e.addRow([])});const Y=e.addRow(["",`Total for ${D}`,V]);Y.font={bold:!0,size:14},Y.getCell(3).numFmt="#,##0.00",Y.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},_+=V,e.addRow([]),e.addRow([])});const S=e.addRow(["","Grand Total",_]);return S.font={bold:!0,size:16},S.getCell(3).numFmt="#,##0.00",S.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeDeductionReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),cutoff_id:Lt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateEmployeeDeductions(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={emp_no:e.employee_id,name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{}},tA={class:"grid grid-cols-4 gap-2"},rA={key:0,class:"text-[#ec4899]"},sA={class:"w-full mt-2"};function aA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[7]||(r[7]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",tA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Cutoff",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(ae(),Be("div",rA,"Cutoff is required")):ye("",!0)]),_:1})]),j("div",sA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const oA=Rt(eA,[["render",aA],["__scopeId","data-v-7a6f21fe"]]);const iA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],payrollItemOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],payroll_item_id:[]},errors:{},state:{isLoadingDealerships:!1,isCompanyLoading:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,isEmployeeLoading:!1,isCompanyLoading:!1,isDealerLoading:!1,isDivisionLoading:!1,isDepartmentLoading:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchPayrollItemsRecords(){this.state.isAdjustmentLoading=!0,await ay.fetchRecords().then(s=>{s.status==200&&(this.payrollItemOptions=s.data.data.filter(r=>r.tag==null&&(r.add_less==1||r.add_less=="")).map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isAdjustmentLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.payrollDateOptions.find(n=>n.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee Adjustment Report");e.pageSetup={orientation:"portrait",paperSize:9,fitToPage:!0,fitToWidth:1,fitToHeight:0,margins:{left:.7,right:.7,top:.75,bottom:.75,header:.3,footer:.3}},e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Adjustment Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const _=e.addRow(["Description","Name","Amount"]);if(_.font={bold:!0,size:12},_.eachCell(E=>{E.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFB8CCE4"}},E.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}},E.alignment={horizontal:"center",vertical:"middle"}}),e.columns=[{key:"category",width:30},{key:"name",width:40},{key:"amount",width:20,style:{numFmt:"#,##0.00"}}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}const w={};Object.entries(this.finalData).forEach(([E,M])=>{M.items&&Array.isArray(M.items)&&M.items.forEach(V=>{const Y=V.dealer||"Unassigned Dealer";w[Y]||(w[Y]={}),w[Y][E]||(w[Y][E]={items:[],total:0}),w[Y][E].items.push(V),w[Y][E].total+=parseFloat(V.amount)||0})});let S=0;Object.entries(w).forEach(([E,M])=>{const V=e.addRow([E]);V.font={bold:!0,size:16},V.eachCell(ee=>{ee.font={bold:!0,size:16},ee.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ee.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.mergeCells(`A${V.number}:C${V.number}`);let Y=0;Object.entries(M).forEach(([ee,ie])=>{const z=e.addRow([ee]);z.font={bold:!0,size:14},e.mergeCells(`A${z.number}:C${z.number}`),ie.items&&Array.isArray(ie.items)&&ie.items.forEach(G=>{const De=e.addRow(["",G.employee_name,parseFloat(G.amount)||0]);De.getCell(3).numFmt="#,##0.00"});const H=ie.total;Y+=H;const ne=e.addRow(["",`Total ${ee}`,H]);ne.font={bold:!0},ne.getCell(3).numFmt="#,##0.00",e.addRow([])});const U=e.addRow(["",`Total for ${E}`,Y]);U.font={bold:!0,size:14},U.getCell(3).numFmt="#,##0.00",U.eachCell(ee=>{ee.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ee.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),S+=Y,e.addRow([]),e.addRow([])});const D=e.addRow(["","Grand Total",S]);return D.font={bold:!0,size:16},D.getCell(3).numFmt="#,##0.00",D.eachCell(E=>{E.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},E.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.headerFooter.oddHeader="&C&B&18Employee Adjustment Report",e.headerFooter.oddFooter="&L&D &T&C&P of &N&R"+((s==null?void 0:s.label)||(r==null?void 0:r.label)),e.pageSetup.printTitlesRow="1:4",t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeAdjustmentReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),cutoff_id:Lt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateEmployeeAdjustments(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={emp_no:e.employee_id,name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates(),this.fetchPayrollItemsRecords()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},nA={class:"grid grid-cols-4 gap-2"},lA={key:0,class:"text-[#ec4899]"},cA={key:0,class:"text-[#ec4899]"},fA={key:0,class:"text-[#ec4899]"},uA={class:"w-full mt-2"};function dA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",nA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",lA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Cutoff",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(ae(),Be("div",cA,"Cutoff is required")):ye("",!0)]),_:1}),k(m,{label:"Payroll Items"},{default:W(()=>[k(u,{placeholder:"(ALL)","close-on-select":!1,modelValue:t.form.payroll_item_id,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.payroll_item_id=_),options:t.payrollItemOptions,searchable:!0,mode:"tags",loading:t.state.isAdjustmentLoading},null,8,["modelValue","options","loading"]),t.errors.payroll_item_id?(ae(),Be("div",fA," Payroll Item is required ")):ye("",!0)]),_:1})]),j("div",uA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const hA=Rt(iA,[["render",dA],["__scopeId","data-v-5bc8e8c9"]]);const pA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],loanOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchLoanType(){this.state.isLoanLoading=!0,await mm.fetchRecords().then(s=>{s.status==200&&(this.loanOptions=s.data.data.map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isLoanLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(n=>n.value===this.form.dealer_id),r=this.companies.find(n=>n.value===this.form.company_id),o=this.payrollDateOptions.find(n=>n.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.27fdc4f4.js").then(n=>n.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(n=>{const t=new n.default.Workbook,e=t.addWorksheet("Employee Loan Report");e.mergeCells("A1:C1");const u=e.getCell("A1");u.value="List of Employee's Loan Report",u.font={size:16,bold:!0},u.alignment={horizontal:"center"},e.mergeCells("A2:C2");const m=e.getCell("A2");m.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),m.font={size:12,bold:!0},m.alignment={horizontal:"center"},e.mergeCells("A3:C3");const b=e.getCell("A3");if(b.value=o.label,b.font={size:12,bold:!0},b.alignment={horizontal:"center"},b.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},e.columns=[{key:"employee id",width:30},{key:"name",width:40},{key:"amount",width:20,style:{numFmt:"#,##0.00"}}],!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let _=0;const w={};Object.entries(this.finalData).forEach(([M,V])=>{V.items&&Array.isArray(V.items)&&V.items.forEach(Y=>{const U=Y.dealer||"Unassigned Dealer";w[U]||(w[U]={}),w[U][M]||(w[U][M]={items:[],total:0}),w[U][M].items.push(Y),w[U][M].total+=parseFloat(Y.amount)||0})}),Object.entries(w).forEach(([M,V])=>{const Y=e.addRow([M]);Y.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),e.mergeCells(`A${Y.number}:C${Y.number}`);let U=0;Object.entries(V).forEach(([ie,z])=>{const H=e.addRow([ie]);H.font={bold:!0,size:14},e.mergeCells(`A${H.number}:C${H.number}`),e.addRow(["Employee ID","Name","Amount"]),e.lastRow.eachCell(ve=>{ve.font={bold:!0,color:{argb:"FFFFFFFF"}},ve.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},ve.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),z.items&&Array.isArray(z.items)&&z.items.forEach(ve=>{const ot=parseFloat(ve.amount)||0,Je=e.addRow([ve.employee_id,ve.employee_name,ot]).getCell(3);Je.numFmt="#,##0.00"});const G=z.total;U+=G;const De=e.addRow(["",`Total ${ie}`,G]);De.font={bold:!0},De.getCell(3).numFmt="#,##0.00",e.addRow([])});const ee=e.addRow(["",`Total for ${M}`,U]);ee.font={bold:!0,size:14},ee.getCell(3).numFmt="#,##0.00",ee.eachCell(ie=>{ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),_+=U,e.addRow([]),e.addRow([])});const S=e.addRow(["","Grand Total",_]);S.font={bold:!0,size:16},S.getCell(3).numFmt="#,##0.00",S.eachCell(M=>{M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}});const D=e.addRow(["","Verification (SUM)",""]);D.font={bold:!0,italic:!0};const E=D.getCell(3);return E.value={formula:"=SUM(C:C)",date1904:!1},E.numFmt="#,##0.00",t.xlsx.writeBuffer()}).then(n=>{const t=new Blob([n],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),e=window.URL.createObjectURL(t),u=document.createElement("a");u.href=e,u.download="EmployeeLoanReport.xlsx",document.body.appendChild(u),u.click(),window.URL.revokeObjectURL(e),document.body.removeChild(u)}).catch(n=>{console.error("Error generating Excel file:",n),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),cutoff_id:Lt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateEmployeeLoans(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchCompany(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates(),this.fetchLoanType()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},mA={class:"grid grid-cols-4 gap-2"},gA={key:0,class:"text-[#ec4899]"},bA={key:0,class:"text-[#ec4899]"},yA={class:"relative"},_A={key:0,class:"text-[#ec4899]"},vA={class:"w-full mt-2"};function wA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",mA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",gA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Cutoff",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(ae(),Be("div",bA,"Cutoff is required")):ye("",!0)]),_:1}),k(m,{label:"Loan Type"},{default:W(()=>[j("div",yA,[k(u,{placeholder:"(ALL)",modelValue:t.form.loan_id,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.loan_id=_),"close-on-select":!1,searchable:!0,id:"loan_id",class:"form-multiselect w-full",options:t.loanOptions,mode:"tags",loading:t.state.isLoanLoading},null,8,["modelValue","options","loading"])]),t.errors.loan_id?(ae(),Be("div",_A,"Loan field is required")):ye("",!0)]),_:1})]),j("div",vA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const xA=Rt(pA,[["render",wA],["__scopeId","data-v-2f87e9a7"]]);const CA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[32]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),n=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.27fdc4f4.js").then(t=>t.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const m=u.getCell("A1");m.value="Pagibig Salary Loan",m.font={size:16,bold:!0},m.alignment={horizontal:"center"},u.mergeCells("A2:H2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:H3");const _=u.getCell("A3");_.value=o.label+" "+n.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const w=[{header:"Pagibig ID",key:"pagibig",width:30},{header:"Employee ID",key:"employee_id",width:30},{header:"Last Name",key:"lastname",width:30},{header:"First Name",key:"firstname",width:40},{header:"Middle Name",key:"middlename",width:20},{header:"TIN",key:"tin",width:20},{header:"Birth Date (MM/DD/YYYY)",key:"birth_date",width:20},{header:"Employee Loan Amortization",key:"amount",width:20}];if(u.columns=w,u.addRow(w.map(V=>V.header)).eachCell(V=>{V.font={bold:!0,color:{argb:"FFFFFFFF"}},V.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},V.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let D=0;const E={};Object.entries(this.finalData).forEach(([V,Y])=>{Y.items&&Array.isArray(Y.items)&&Y.items.forEach(U=>{const ee=U.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][V]||(E[ee][V]={items:[],total:0}),E[ee][V].items.push(U),E[ee][V].total+=parseFloat(U.amount)||0})}),Object.entries(E).forEach(([V,Y])=>{const U=u.addRow([V]);U.eachCell(z=>{z.font={bold:!0,size:16},z.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},z.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${U.number}:H${U.number}`);let ee=0;Object.entries(Y).forEach(([z,H])=>{const ne=u.addRow([z]);ne.font={bold:!0,size:14},u.mergeCells(`A${ne.number}:H${ne.number}`),H.items&&Array.isArray(H.items)&&H.items.forEach(ve=>{u.addRow([ve.pagibig,ve.employee_id,ve.lastname,ve.firstname,ve.middlename,ve.tin,pt.formatDate(ve.birth_date),pt.formatNumber(ve.amount)||0])});const G=H.total;ee+=G;const De=u.addRow(["","","","","","","Total "+z,G]);De.font={bold:!0},De.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+V,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((z,H)=>{H>=7&&(z.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},z.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),D+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",D]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((V,Y)=>{Y>=7&&(V.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},V.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),m=document.createElement("a");m.href=u,m.download="PagibigSalaryLoan.xlsx",document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(u),document.body.removeChild(m)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateHdmfLoan(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},FA={class:"grid grid-cols-4 gap-2"},AA={key:0,class:"text-[#ec4899]"},DA={key:0,class:"text-[#ec4899]"},SA={key:0,class:"text-[#ec4899]"},EA={class:"w-full mt-2"};function TA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",FA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",AA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",DA,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",SA,"Year is required")):ye("",!0)]),_:1})]),j("div",EA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const kA=Rt(CA,[["render",TA],["__scopeId","data-v-2186e1ab"]]);const RA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[64]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),n=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.27fdc4f4.js").then(t=>t.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const m=u.getCell("A1");m.value="Pagibig Salary Loan",m.font={size:16,bold:!0},m.alignment={horizontal:"center"},u.mergeCells("A2:H2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:H3");const _=u.getCell("A3");_.value=o.label+" "+n.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}};const w=[{header:"Pagibig ID",key:"pagibig",width:30},{header:"Employee ID",key:"employee_id",width:30},{header:"Last Name",key:"lastname",width:30},{header:"First Name",key:"firstname",width:40},{header:"Middle Name",key:"middlename",width:20},{header:"TIN",key:"tin",width:20},{header:"Birth Date (MM/DD/YYYY)",key:"birth_date",width:20},{header:"Employee Loan Amortization",key:"amount",width:20}];if(u.columns=w,u.addRow(w.map(V=>V.header)).eachCell(V=>{V.font={bold:!0,color:{argb:"FFFFFFFF"}},V.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},V.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let D=0;const E={};Object.entries(this.finalData).forEach(([V,Y])=>{Y.items&&Array.isArray(Y.items)&&Y.items.forEach(U=>{const ee=U.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][V]||(E[ee][V]={items:[],total:0}),E[ee][V].items.push(U),E[ee][V].total+=parseFloat(U.amount)||0})}),Object.entries(E).forEach(([V,Y])=>{const U=u.addRow([V]);U.eachCell(z=>{z.font={bold:!0,size:16},z.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},z.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${U.number}:H${U.number}`);let ee=0;Object.entries(Y).forEach(([z,H])=>{const ne=u.addRow([z]);ne.font={bold:!0,size:14},u.mergeCells(`A${ne.number}:H${ne.number}`),H.items&&Array.isArray(H.items)&&H.items.forEach(ve=>{u.addRow([ve.pagibig,ve.employee_id,ve.lastname,ve.firstname,ve.middlename,ve.tin,pt.formatDate(ve.birth_date),pt.formatNumber(ve.amount)||0])});const G=H.total;ee+=G;const De=u.addRow(["","","","","","","Total "+z,G]);De.font={bold:!0},De.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+V,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((z,H)=>{H>=7&&(z.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},z.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),D+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",D]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((V,Y)=>{Y>=7&&(V.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},V.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),m=document.createElement("a");m.href=u,m.download="PagibigSalaryLoan.xlsx",document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(u),document.body.removeChild(m)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateHdmfLoan(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},LA={class:"grid grid-cols-4 gap-2"},MA={key:0,class:"text-[#ec4899]"},OA={key:0,class:"text-[#ec4899]"},PA={key:0,class:"text-[#ec4899]"},NA={class:"w-full mt-2"};function IA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",LA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",MA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",OA,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",PA,"Year is required")):ye("",!0)]),_:1})]),j("div",NA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const VA=Rt(RA,[["render",IA],["__scopeId","data-v-35f0a247"]]);const BA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[65]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),n=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.27fdc4f4.js").then(t=>t.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("SSS Calamity Loan");u.mergeCells("A1:F1"),u.getCell("A1").value="SSS Calamity Loan";const m=u.getCell("A1");m.font={size:16,bold:!0},m.alignment={horizontal:"center"},u.mergeCells("A2:F2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:F3");const _=u.getCell("A3");if(_.value=o.label+" "+n.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},u.columns=[{key:"empId",width:30},{key:"lastname",width:30},{key:"firstname",width:15},{key:"middlename",width:15},{key:"sss",width:15},{key:"amoungPaid",width:15}],u.addRow(["Employee ID","Last Name","First Name","Middle Name","SSS","Amount Paid"]).eachCell(M=>{M.font={bold:!0,color:{argb:"FFFFFFFF"}},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let S=0;const D={};Object.entries(this.finalData).forEach(([M,V])=>{V.items&&Array.isArray(V.items)&&V.items.forEach(Y=>{const U=Y.dealer||"Unassigned Dealer";D[U]||(D[U]={}),D[U][M]||(D[U][M]={items:[],total:0}),D[U][M].items.push(Y),D[U][M].total+=parseFloat(Y.amount)||0})}),Object.entries(D).forEach(([M,V])=>{const Y=u.addRow([M]);Y.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${Y.number}:F${Y.number}`);let U=0;Object.entries(V).forEach(([ie,z])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),z.items&&Array.isArray(z.items)&&z.items.forEach(De=>{u.addRow([De.employee_id,De.lastname,De.firstname,De.middlename,De.sss,pt.formatNumber(De.amount)||0])});const ne=z.total;U+=ne;const G=u.addRow(["","","","","Total "+ie,pt.formatNumber(ne)]);G.font={bold:!0},G.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,pt.formatNumber(U)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,z)=>{z>=5&&(ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),S+=U,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",pt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,V)=>{V>=5&&(M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),m=document.createElement("a");m.href=u,m.download="SSSCalamityLoan.xlsx",document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(u),document.body.removeChild(m)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateHdmfLoan(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},UA={class:"grid grid-cols-4 gap-2"},zA={key:0,class:"text-[#ec4899]"},GA={key:0,class:"text-[#ec4899]"},jA={key:0,class:"text-[#ec4899]"},WA={class:"w-full mt-2"};function HA(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",UA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",zA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",GA,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",jA,"Year is required")):ye("",!0)]),_:1})]),j("div",WA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"primary-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const YA=Rt(BA,[["render",HA],["__scopeId","data-v-a6ed8056"]]);const qA={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[65]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{fetchMonthsAndYears(){this.MonthsOptions=Object.entries(pt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(pt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords();s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generateExcel(){const s=this.dealers.find(t=>t.value===this.form.dealer_id),r=this.companies.find(t=>t.value===this.form.company_id),o=this.MonthsOptions.find(t=>t.value===this.form.month),n=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.27fdc4f4.js").then(t=>t.e),["assets/exceljs.min.27fdc4f4.js","assets/index.836ff972.js","assets/index.08b32fce.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("SSS Calamity Loan");u.mergeCells("A1:F1"),u.getCell("A1").value="SSS Calamity Loan";const m=u.getCell("A1");m.font={size:16,bold:!0},m.alignment={horizontal:"center"},u.mergeCells("A2:F2");const b=u.getCell("A2");b.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),b.font={size:12,bold:!0},b.alignment={horizontal:"center"},u.mergeCells("A3:F3");const _=u.getCell("A3");if(_.value=o.label+" "+n.label,_.font={size:12,bold:!0},_.alignment={horizontal:"center"},_.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},u.columns=[{key:"empId",width:30},{key:"lastname",width:30},{key:"firstname",width:15},{key:"middlename",width:15},{key:"sss",width:15},{key:"amoungPaid",width:15}],u.addRow(["Employee ID","Last Name","First Name","Middle Name","SSS","Amount Paid"]).eachCell(M=>{M.font={bold:!0,color:{argb:"FFFFFFFF"}},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),!this.finalData||typeof this.finalData!="object"){console.error("Invalid data structure:",this.finalData);return}let S=0;const D={};Object.entries(this.finalData).forEach(([M,V])=>{V.items&&Array.isArray(V.items)&&V.items.forEach(Y=>{const U=Y.dealer||"Unassigned Dealer";D[U]||(D[U]={}),D[U][M]||(D[U][M]={items:[],total:0}),D[U][M].items.push(Y),D[U][M].total+=parseFloat(Y.amount)||0})}),Object.entries(D).forEach(([M,V])=>{const Y=u.addRow([M]);Y.eachCell(ie=>{ie.font={bold:!0,size:16},ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${Y.number}:F${Y.number}`);let U=0;Object.entries(V).forEach(([ie,z])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),z.items&&Array.isArray(z.items)&&z.items.forEach(De=>{u.addRow([De.employee_id,De.lastname,De.firstname,De.middlename,De.sss,pt.formatNumber(De.amount)||0])});const ne=z.total;U+=ne;const G=u.addRow(["","","","","Total "+ie,pt.formatNumber(ne)]);G.font={bold:!0},G.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,pt.formatNumber(U)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,z)=>{z>=5&&(ie.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},ie.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),S+=U,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",pt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,V)=>{V>=5&&(M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},M.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),e.xlsx.writeBuffer()}).then(t=>{const e=new Blob([t],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),u=window.URL.createObjectURL(e),m=document.createElement("a");m.href=u,m.download="SSSCalamityLoan.xlsx",document.body.appendChild(m),m.click(),window.URL.revokeObjectURL(u),document.body.removeChild(m)}).catch(t=>{console.error("Error generating Excel file:",t),this.$swal.fire({title:"Export Failed",text:"Failed to generate Excel file. Please try again.",icon:"error",timer:3e3})})},exportToCSV(){this.gridApi&&this.gridApi.exportDataAsCsv({fileName:"Late Approval report.csv",columnKeys:this.colDefs.flatMap(s=>s.children?s.children.map(r=>r.field):s.field),allColumns:!0,skipGroups:!1,suppressQuotes:!1,processRowGroupCallback:s=>s.node.group?s.node.key:null})},exportToExcel(){this.gridApi&&this.gridApi.exportDataAsExcel({fileName:"report.xlsx",sheetName:"Report Data"})},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),month:Lt().nullable().required("Month is required"),year:Lt().nullable().required("Year is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),console.log("no"),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{const s=this.dealershipsOptions.find(r=>r.value===this.form.dealership_id);s&&(this.form.reference_no=s.reference_no,this.fetchEmployee(s.reference_no)),await this.fetchAdjustmentData(this.form),this.generateExcel()}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s},async fetchAdjustmentData(){var s,r;try{const n=(await mt.GenerateHdmfLoan(this.form)).data||{};if(typeof n=="object"&&n!==null){const t=Object.keys(n)[0],e=(r=(s=n[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=n}else console.error("Invalid attendance data format:",n)}catch(o){throw console.error("Error fetching attendance data:",o),o}}},mounted(){this.fetchMonthsAndYears(),this.fetchCompany(),this.fetchDealership(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchPayrollDates()},watch:{"form.payroll_date":{handler:"fetchDealerships",immediate:!0},"form.dealership_id":{handler(s){if(s){const r=this.dealershipsOptions.find(o=>o.value===s);r&&this.fetchEmployee(r.reference_no)}},immediate:!1}}},KA={class:"grid grid-cols-4 gap-2"},JA={key:0,class:"text-[#ec4899]"},XA={key:0,class:"text-[#ec4899]"},QA={key:0,class:"text-[#ec4899]"},ZA={class:"w-full mt-2"};function $A(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[8]||(r[8]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",KA,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",JA,"Company is required")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Month",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.month=_),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(ae(),Be("div",XA,"Month is required")):ye("",!0)]),_:1}),k(m,{label:"Year",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=_=>t.form.year=_),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(ae(),Be("div",QA,"Year is required")):ye("",!0)]),_:1})]),j("div",ZA,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"primary-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const eD=Rt(qA,[["render",$A],["__scopeId","data-v-74a9a057"]]);const tD={setup(){},components:{AgGridVue:Jt,ActionCellRenderer:dr,Multiselect:jt,Loading:qt,Layout:zt,Card:tr,Textinput:nr,VueSelect:lr,Button:ir,Icon:er,FromGroup:Kt,FormGroup:rr,Textarea:cr,SubmitButton:Gt,CloseButton:fr,UpdateButton:ur},data(){return{hasValue:!1,gridApi:null,paginationPageSize:10,paginationPageSizeSelector:[10,25,50,100,200],colDefs:[{field:"#",filter:!0,floatingFilter:!0},{field:"name",filter:!0,floatingFilter:!0,flex:2},{field:"description",filter:!0,floatingFilter:!0}],payroll_dates:[],payrollDateOptions:[],finalData:[],resultData:[],MonthsOptions:[],YearsOptions:[],dealershipsOptions:[],dealers:[],divisions:[],departments:[],positions:[],employees:[],payrollDateOptions:[],employeeOptions:[],loanOptions:[],form:{modules:13,company_id:"",dealer_id:"",division_id:"",department_id:"",position_id:"",employee_id:[],cutoff_id:[],month:[],loan_id:[]},errors:{},state:{isLoadingDealerships:!1,isLoadingPayrollDates:!1,isGenerating:!1,isSubmiting:!1,fetchingPayrollDates:!1}}},computed:{isAllColumnsSelected(){return this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchLoanType(){this.state.isLoanLoading=!0,await mm.fetchRecords().then(s=>{s.status==200&&(this.loanOptions=s.data.data.map(r=>({value:r.id,label:r.name})))}).catch(s=>{console.log(s)}),this.state.isLoanLoading=!1},async fetchPayrollDates(){this.state.fetchingPayrollDates=!0,await js.fetchAttendancePosted().then(s=>{if(s.status===200){console.log(s);const r=new Map;s.data.forEach(o=>{r.has(o.payroll_date)||r.set(o.payroll_date,{value:o.payroll_date,label:o.start_date?`${o.payroll_date} ( ${this.$formatDate(o.start_date)} to ${this.$formatDate(o.end_date)} )`:o.payroll_date})}),this.payrollDateOptions=Array.from(r.values())}}).catch(s=>{console.error(s)}).finally(()=>{this.state.fetchingPayrollDates=!1})},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Tr.fetchAllEmployeeRecords().then(s=>{s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.state.isEmployeeLoading=!1)}).catch(s=>{console.log(s)})},async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await sr.fetchRecords();s.status===200&&(this.companies=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isCompanyLoading=!1)}catch(s){console.log(s)}},async fetchDealership(){this.state.isDealerLoading=!0;try{const s=await yr.fetchRecords({dealership:this.form.company_id});s.status===200&&(this.dealers=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDealerLoading=!1)}catch(s){console.log(s)}},async fetchDivision(){this.state.isDivisionLoading=!0;try{const s=await Ps.fetchRecords();s.status===200&&(this.divisions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDivisionLoading=!1)}catch(s){console.log(s)}},async fetchDepartment(){this.state.isDepartmentLoading=!0;try{const s=await Zr.fetchRecords();s.status===200&&(this.departments=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isDepartmentLoading=!1)}catch(s){console.log(s)}},async fetchPosition(){this.state.isPositionLoading=!0;try{const s=await ks.fetchRecords();s.status===200&&(this.positions=s.data.data.map(r=>({value:r.id,label:r.name})),this.state.isPositionLoading=!1)}catch(s){console.log(s)}},generatePayrollSummary(s){var ie;const r=Ve.utils.book_new();this.dealers.find(z=>z.value===this.form.dealer_id);const o=this.companies.find(z=>z.value===this.form.company_id),n={};s.forEach(z=>{var G;const H=z.employee.dealer_id,ne=((G=z.employee.dealership)==null?void 0:G.name)||"Unknown Dealership";n[H]||(n[H]={name:ne,employees:[]}),n[H].employees.push(z)});const t=[[o.label,"","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["PAYROLL REGISTER","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["Period Covered: January 01, 2025 - December 31, 2025","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""],["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""]],e=[["","","","","","","","","","","","","","","","","","","","","","","","","Employee's Share","","","Employer's Share","","","","Benefits and Adjustments on","","","","","","","Net Pay","","","","Monthly Remittance Return on Income Taxes Withheld on Compensation (BIR form 1601-C)"],["Pay period","I.D. number","Employee","Department","Position (Job Title)","Tax Application Code","TIN NO.","General Ledger Chart Of Account","Salary Rate","Work Days","Work Hours","Basic Pay","Cola","Leave","Overtime","Holiday","Rest day","Night Diff","Absent","Late","Undertime","Basic Salary Adjustment","Total Basic Salary Pay","Taxable Commission and Incentives","SSS","Philhealth","Pagibig","SSS/EC","Philhealth","Pagibig","Withholding Tax","Non-Taxable Other Benefits","Adjustments on Non-taxable allowance","Statutory deduction add-backs","Total Non-Taxable Allowance/Other Benefits","Loans","Contributions","Deductions","Net Pay","No ATM account (Check Payment)","Hold pay","Net Pay after check issue and holdpay","TOTAL AMOUNT OF COMPENSATION","MINIMUM WAGE EARNER","13 MONTH PAY","SSS, GSIS, PHIC, HDMF MANDATORY CONTRIBUTIONS & UNION DUES","OTHER NON-TAXABLE COMPENSATION","TOTAL NON-TAXABLE COMPENSATION","TAXABLE BASIC SALARY COMPENSATION","OTHER FORMS OF COMPENSATION","TOTAL TAXABLE COMPENSATION","TAX WITHHELD"]],u=[["","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","",""," ","","","","","","","","","","Item no. 14","Item no. 15","Item no. 17","Item no. 19","Item no. 20","Item no. 21","Item no. 22-a","Item no. 22-a","Item no. 22","Item no. 25"]],m=(z,H)=>{let ne=0;return z.forEach(G=>{if(G[H]&&G[H]!=="-"){let De=G[H];typeof De=="string"&&(De=De.replace(/,/g,"").replace(/[^\d.-]/g,""));const ve=parseFloat(De);isNaN(ve)||(ne+=ve)}}),ne>0?ne:"-"};let b=[],_=[];Object.values(n).forEach(z=>{const H=Array(52).fill("");H[0]=z.name.toUpperCase(),b.push(H);const ne=z.employees.map(G=>{var kt,Tt,Sr,At,Se,Q,Ce,Te,xe,oe;const ve=G.payrolls[0].details.adjustments.filter(pe=>pe.payroll_item&&pe.payroll_item.name&&(pe.payroll_item.name.toLowerCase().includes("commission")||pe.payroll_item.name.toLowerCase().includes("incentive"))&&pe.payroll_item.taxable===1).reduce((pe,re)=>pe+parseFloat(re.amount||0),0);let ot=0,ct=0;G.payrolls[0].details.benefits.filter(pe=>pe.benefit_id!=1).map(pe=>{ot+=parseFloat(pe.total_amount)}),G.payrolls[0].details.benefits.map(pe=>{ct+=parseFloat(pe.total_amount)});const Je=parseFloat(G.payrolls[0].salary_rate)<=16823.75?parseFloat(G.payrolls[0].gross_pay)-parseFloat(G.payrolls[0].sss_employee_share)-parseFloat(G.payrolls[0].philhealth_contribution)-parseFloat(G.payrolls[0].pagibig_contribution):"-",ft=parseFloat(G.payrolls[0].sss_employee_share)+parseFloat(G.payrolls[0].philhealth_contribution)+parseFloat(G.payrolls[0].pagibig_contribution),bt=((Tt=(kt=G.payrolls[0])==null?void 0:kt.details)==null?void 0:Tt.shields)||{},rt=parseFloat(bt.tax||0)+parseFloat(bt.sss||0)+parseFloat(bt.pagibig||0)+parseFloat(bt.philhealth||0);return G.employee.employee_id=="2672"&&(console.log("tax",ve),console.log("manda",Math.abs(Je+ft-Math.abs(G.payrolls[0].gross_pay))||0)),[pt.formatDate(G.payrolls[0].payroll_date)||"",G.employee.employee_id||"",G.employee.lastname+", "+G.employee.firstname||"",((Sr=G.employee.department)==null?void 0:Sr.name)||"",((At=G.employee.position)==null?void 0:At.name)||"",G.employee.salary_and_wages.tax_application==1?"Base on table":G.employee.salary_and_wages.tax_application==2?"No Tax":G.employee.salary_and_wages.tax_application==3?"Force Tax":"",((Se=G.employee.personal_information)==null?void 0:Se.tin)==0?0:((Q=G.employee.personal_information)==null?void 0:Q.tin)||"",G.gl_account||0,G.payrolls[0].salary_rate==0?0:pt.formatNumber(G.payrolls[0].salary_rate)||0,((Ce=G==null?void 0:G.attendance[0])==null?void 0:Ce.work_days)==0?"-":pt.formatNumber((Te=G==null?void 0:G.attendance[0])==null?void 0:Te.work_days)||"-",((xe=G==null?void 0:G.attendance[0])==null?void 0:xe.work_hours)==0?"-":pt.formatNumber((oe=G==null?void 0:G.attendance[0])==null?void 0:oe.work_hours)||"-",G.payrolls[0].basic_pay==0?0:pt.formatNumber(G.payrolls[0].basic_pay)||0,G.cola||0,G.payrolls[0].leave_pay==0?0:pt.formatNumber(G.payrolls[0].leave_pay)||0,G.payrolls[0].overtime_total==0?0:pt.formatNumber(G.payrolls[0].overtime_total)||0,G.payrolls[0].holiday_total==0?0:pt.formatNumber(G.payrolls[0].holiday_total)||0,G.payrolls[0].restday_total==0?0:pt.formatNumber(G.payrolls[0].restday_total)||0,G.payrolls[0].night_diff_total==0?0:pt.formatNumber(G.payrolls[0].night_diff_total)||0,G.payrolls[0].absent_amount==0?0:pt.formatNumber(G.payrolls[0].absent_amount)||0,G.payrolls[0].late_amount==0?0:pt.formatNumber(G.payrolls[0].late_amount)||0,G.payrolls[0].undertime_amount==0?0:pt.formatNumber(G.payrolls[0].undertime_amount)||0,G.payrolls[0].adjustments_total==0?0:pt.formatNumber(G.payrolls[0].adjustments_total)||0,G.payrolls[0].gross_pay==0?"0":pt.formatNumber(parseFloat(G.payrolls[0].gross_pay||0)+parseFloat(G.payrolls[0].adjustments_total||0)),ve||0,G.payrolls[0].sss_employee_share==0?0:pt.formatNumber(G.payrolls[0].sss_employee_share)||0,G.payrolls[0].philhealth_contribution==0?0:pt.formatNumber(G.payrolls[0].philhealth_contribution)||0,G.payrolls[0].pagibig_contribution==0?0:pt.formatNumber(G.payrolls[0].pagibig_contribution)||0,G.payrolls[0].sss_employer_share==0?0:pt.formatNumber(G.payrolls[0].sss_employer_share)||0,G.payrolls[0].philhealth_contribution==0?0:pt.formatNumber(G.payrolls[0].philhealth_contribution)||0,G.payrolls[0].pagibig_contribution_employer==0?0:pt.formatNumber(G.payrolls[0].pagibig_contribution_employer)||0,G.payrolls[0].withholding_tax==0?0:pt.formatNumber(G.payrolls[0].withholding_tax)||0,ct==0?0:pt.formatNumber(ct)||0,G.non_taxable_adjustments||0,parseFloat(rt)||0,ot==0?0:pt.formatNumber(parseFloat(ot||0)+parseFloat(rt||0)),G.payrolls[0].loans_total==0?0:pt.formatNumber(G.payrolls[0].loans_total)||0,G.payrolls[0].payment_contributions_total==0?0:pt.formatNumber(G.payrolls[0].payment_contributions_total)||0,G.payrolls[0].other_deductions==0?0:pt.formatNumber(G.payrolls[0].other_deductions)||0,G.payrolls[0].net_pay==0?0:pt.formatNumber(G.payrolls[0].net_pay)||0,G.no_atm_amount||0,G.hold_pay_amount||0,G.payrolls[0].net_pay==0?0:pt.formatNumber(G.payrolls[0].net_pay)||0,G.payrolls[0].gross_pay==0?0:pt.formatNumber(G.payrolls[0].gross_pay)||0,Je||0,0,ft==0?0:pt.formatNumber(ft)||0,0,Math.abs(Je+ft)||0,Math.abs(Je+ft-G.payrolls[0].gross_pay)||0,ve||0,(ve||0)+Math.abs(Je+ft-G.payrolls[0].gross_pay||0),G.payrolls[0].withholding_tax==0?0:pt.formatNumber(G.payrolls[0].withholding_tax)||0]});if(b.push(...ne),ne.length>0){const G=Array(52).fill("");G[0]=`${z.name} TOTAL`;for(let De=8;De<=51;De++){const ve=m(ne,De);G[De]=ve==="-"?0:pt.formatNumber(ve)}b.push(G),_.push(G),b.push(Array(52).fill(""))}});const w=Array(52).fill("");w[0]="GRAND TOTAL";for(let z=8;z<=51;z++){const H=m(_,z);w[z]=H==="-"?0:pt.formatNumber(H)}const S=[...t,...e,...u,...b,w],D=Ve.utils.aoa_to_sheet(S),E=[{wch:20},{wch:10},{wch:20},{wch:15},{wch:20},{wch:15},{wch:15},{wch:20},{wch:12},{wch:10},{wch:10},{wch:12},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:15},{wch:15},{wch:15},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:10},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:10},{wch:12},{wch:12},{wch:12},{wch:12},{wch:10},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15},{wch:15}];D["!cols"]=E,D["!merges"]=[{s:{r:0,c:0},e:{r:0,c:10}},{s:{r:1,c:0},e:{r:1,c:10}},{s:{r:2,c:0},e:{r:2,c:10}},{s:{r:4,c:24},e:{r:4,c:26}},{s:{r:4,c:27},e:{r:4,c:29}},{s:{r:4,c:31},e:{r:4,c:34}},{s:{r:4,c:38},e:{r:4,c:41}},{s:{r:4,c:42},e:{r:4,c:51}}];for(let z=0;z<=41;z++){const H=Ve.utils.encode_cell({r:0,c:z}),ne=Ve.utils.encode_cell({r:1,c:z}),G=Ve.utils.encode_cell({r:2,c:z});D[H]=D[H]||{v:""},D[ne]=D[ne]||{v:""},D[G]=D[G]||{v:""},D[H].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},D[ne].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},D[G].s={font:{bold:!0,sz:12},alignment:{horizontal:"center"}}}for(let z=0;z<=51;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H]=D[H]||{v:""},D[H].s={font:{bold:!0,sz:11},fill:{fgColor:{rgb:"B4C6E7"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}}}for(let z=0;z<=51;z++){const H=Ve.utils.encode_cell({r:5,c:z});D[H]=D[H]||{v:""},D[H].s={font:{bold:!0,sz:11},fill:{fgColor:{rgb:"DDEBF7"}},alignment:{horizontal:"center",vertical:"center",wrapText:!0},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}}}for(let z=24;z<=26;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H].s={...D[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let z=27;z<=29;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H].s={...D[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let z=31;z<=34;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H].s={...D[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let z=38;z<=41;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H].s={...D[H].s,fill:{fgColor:{rgb:"C6E0B4"}}}}for(let z=42;z<=51;z++){const H=Ve.utils.encode_cell({r:4,c:z});D[H].s={...D[H].s,fill:{fgColor:{rgb:"92D050"}}}}let M=6;Object.values(n).forEach(z=>{const H=Ve.utils.encode_cell({r:M+1,c:0});if(D[H].s={font:{bold:!0,sz:12,color:{rgb:"FFFFFF"}},fill:{fgColor:{rgb:"4472C4"}},alignment:{horizontal:"left"},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},D["!merges"].push({s:{r:M,c:0},e:{r:M,c:51}}),M++,M+=z.employees.length,z.employees.length>0){for(let ne=0;ne<=51;ne++){const G=Ve.utils.encode_cell({r:M+1,c:ne});D[G]=D[G]||{v:""},D[G].s={font:{bold:!0},fill:{fgColor:{rgb:"D9E1F2"}},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},ne>=8&&ne<=51&&(D[G].s={...D[G].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}M++,M++}});for(let z=6;z<S.length-1;z++){const H=D[Ve.utils.encode_cell({r:z,c:0})];if(!(H&&H.s&&(H.s.fill||(ie=H.s.font)!=null&&ie.bold)))for(let ne=0;ne<=51;ne++){const G=Ve.utils.encode_cell({r:z,c:ne});if(D[G]=D[G]||{v:""},ne===0&&(!D[G].v||D[G].v===""))break;D[G].s={border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"thin"},left:{style:"thin"}}},ne>=8&&ne<=51&&(D[G].s={...D[G].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}}const V=S.length-1;for(let z=0;z<=51;z++){const H=Ve.utils.encode_cell({r:V,c:z});D[H]&&(D[H].s={font:{bold:!0,sz:12},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"double"},left:{style:"thin"}},fill:{fgColor:{rgb:"FFE699"}}},z>=8&&z<=51&&(D[H].s={...D[H].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}}))}Ve.utils.book_append_sheet(r,D,"Payroll Register");const Y=`GCASI_Payroll_Register_${this.form.payroll_date||"report"}.xlsx`,U=Ve.write(r,{bookType:"xlsx",type:"array"}),ee=new Blob([U],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(typeof document<"u"){const z=URL.createObjectURL(ee),H=document.createElement("a");H.href=z,H.download=Y,document.body.appendChild(H),H.click(),document.body.removeChild(H)}return{filename:Y,workbook:r}},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Wr().shape({company_id:Lt().nullable().required("Company is required"),cutoff_id:Lt().nullable().required("CutOff is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to generate this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.isConfirmed&&(this.submitReport(),this.state.isSubmiting=!1)}),this.state.isSubmiting=!1,this.state.isGenerating=!1}catch(s){if(console.error("Error generating report",s.message),s instanceof Wt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSubmiting=!1}}},async submitReport(){if(!this.state.isGenerating){this.state.isGenerating=!0;try{let s=[];await mt.GeneratePayrollSummary(this.form).then(r=>{s=r.data}).finally(()=>{this.state.isLoading=!1}),this.generatePayrollSummary(s)}catch(s){console.error("Error generating report:",s),this.$swal.fire({title:"Oops! Something went wrong.",text:"An error occurred while generating the report.",icon:"error",timer:3e3})}finally{this.state.isGenerating=!1}}},closeModal(){this.state.showModal=!1},toggleSelectAllColumns(){this.isAllColumnsSelected?this.form.columns=[]:this.form.columns=this.reportModuleColums.map(s=>s.value)},columnLabel({label:s}){return s}},mounted(){this.fetchCompany(),this.fetchPayrollDates(),this.fetchDivision(),this.fetchDepartment(),this.fetchPosition(),this.fetchEmployee(),this.fetchLoanType()},watch:{"form.company_id":{handler:"fetchDealership",immediate:!0}}},rD={class:"grid grid-cols-4 gap-2"},sD={key:0,class:"text-[#ec4899]"},aD={key:0,class:"text-[#ec4899]"},oD={class:"w-full mt-2"};function iD(s,r,o,n,t,e){const u=K("Multiselect"),m=K("FormGroup"),b=K("SubmitButton");return ae(),Be("form",{onSubmit:r[7]||(r[7]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[j("div",rD,[k(m,{label:"Company",isRequired:!0},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=_=>t.form.company_id=_),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(ae(),Be("div",sD," Company is required ")):ye("",!0)]),_:1}),k(m,{label:"Dealership"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=_=>t.form.dealer_id=_),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Division"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=_=>t.form.division_id=_),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Department"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=_=>t.form.department_id=_),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Position"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=_=>t.form.position_id=_),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Employee"},{default:W(()=>[k(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=_=>t.form.employee_id=_),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),k(m,{label:"Cutoff",isRequired:!0},{default:W(()=>[k(u,{placeholder:"Select Cutoff",searchable:!0,modelValue:t.form.cutoff_id,"onUpdate:modelValue":r[6]||(r[6]=_=>t.form.cutoff_id=_),options:t.payrollDateOptions,class:"form-multiselect w-full",loading:t.state.fetchingPayrollDates},null,8,["modelValue","options","loading"]),t.errors.cutoff_id?(ae(),Be("div",aD," Cutoff is required ")):ye("",!0)]),_:1})]),j("div",oD,[k(b,{onClick:e.submitForm,text:"Generate",icon:"streamline:ai-generate-variation-spark",titleTheme:"success-500",btnClass:"text-white bg-primary-500 hover:ring ring-primary-500 ring-offset-1 py-2 px-3 w-full"},null,8,["onClick"])])],32)}const nD=Rt(tD,[["render",iD],["__scopeId","data-v-410766b7"]]),lD="/assets/20943445.3efbbed2.jpg";const cD={components:{PafReport:nF,VectorImage:gy,TreeItem:my,Layout:zt,Card:tr,FormGroup:rr,SubmitButton:Gt,Multiselect:jt,LeaveReport:Vw,LeaveDetailedReport:g5,OvertimeReport:Jw,OvertimeCompanyReport:cx,LateApprovalReport:Tx,AttendancePostingDTRReport:Wx,EmployeeListReport:Zx,EmployeeRateReport:mC,EmployeeRoleReport:xC,NoScheduleReport:EC,AbsentReport:NC,TardinessReport:WC,BirthdaysReport:XC,UndertimeReport:a3,DailyTimeRecordReport:d3,TravelReport:w3,CompanyBenefitsReport:k3,EmployeeTaxApplication:I3,EmployeePhilhealth:Y3,EmployeeSSS:t5,EmployeePagibig:f5,EmpployeeContributionReport:E5,MrfReport:N5,ApplicantReport:Z5,ChangeScheduleReport:mF,CwsListReport:SF,ChangeRestDayReport:BF,TimeAdjustmentReport:YF,DeductionFlagsReport:$F,DeductionReport:oA,AdjustmentReport:hA,LoanReport:xA,HdmfCalamityLoanMonthlyRemittance:kA,HdmfSalaryLoanMonthlyRemittance:VA,SssCalamityLoanMonthlyRemittance:YA,SssSalaryLoanMonthlyRemittance:eD,PayrollRegister:nD},data(){return{searchQuery:"",treeData:um([{id:1,name:"Attendance Reports",children:[{id:1,parent_id:1,name:"Leave Application"},{id:2,parent_id:1,name:"Overtime Application"},{id:3,parent_id:1,name:"No Schedule"},{id:4,parent_id:1,name:"Absent"},{id:5,parent_id:1,name:"Tardiness"},{id:6,parent_id:1,name:"Undertime Application"},{id:7,parent_id:1,name:"Daily Time Record"},{id:8,parent_id:1,name:"OB Application"},{id:9,parent_id:1,name:"Leave (Detailed)"},{id:10,parent_id:1,name:"Change Schedule"},{id:11,parent_id:1,name:"List of CWS"},{id:12,parent_id:1,name:"List of Change Rest Day"},{id:13,parent_id:1,name:"Time Adjustment"},{id:14,parent_id:1,name:"Overtime"},{id:15,parent_id:1,name:"Late Approval"},{id:16,parent_id:1,name:"Attendance Posting DTR"}]},{id:2,name:"Masterlist",children:[{id:1,parent_id:2,name:"Employee List"},{id:2,parent_id:2,name:"Employee Rates"},{id:3,parent_id:2,name:"Employee Roles"},{id:4,parent_id:2,name:"Birthdays"}]},{id:3,name:"Payroll Reports",children:[{id:1,parent_id:3,name:"Agmaf"},{id:2,parent_id:3,name:"HMO"},{id:3,parent_id:3,name:"13 Month Pay"},{id:4,parent_id:3,name:"Contributions"},{id:5,parent_id:3,name:"Company Benefits"},{id:6,parent_id:3,name:"Deductions"},{id:7,parent_id:3,name:"Adjustments"},{id:8,parent_id:3,name:"Loans"},{id:9,parent_id:3,name:"Payroll Register"}]},{id:4,name:"Recruitment Files",children:[{id:1,parent_id:4,name:"MRF"},{id:2,parent_id:4,name:"Applicants"},{id:3,parent_id:4,name:"PAF"}]},{id:5,name:"Government Reports",children:[{id:1,parent_id:5,name:"List of Employee Tax Application"},{id:2,parent_id:5,name:"Employee Philhealth"},{id:3,parent_id:5,name:"Employee SSS"},{id:4,parent_id:5,name:"Employee Pagibig"},{id:5,parent_id:5,name:"Mandatory Deduction Flags"},{id:6,parent_id:5,name:"HDMF Calamity Loan Monthly Remittance"},{id:8,parent_id:5,name:"HDMF Salary Loan Monthly Remittance"},{id:9,parent_id:5,name:"SSS Calamity Loan Monthly Remittance"},{id:11,parent_id:5,name:"SSS Salary Loan Monthly Remittance"}]}]),employeeOption:[],setData:null,form:{type_id:"",type:"",approvers:[]},state:{isEmployeeLoading:!1}}},computed:{filteredTreeData(){const s=this.searchQuery.trim().toLowerCase(),r=o=>o.map(n=>{const t=n.children?r(n.children):[];return n.name.toLowerCase().includes(s)||t.length>0?{...n,children:t,expanded:!0}:null}).filter(n=>n!==null);return s?r(this.treeData):this.treeData},getReportComponent(){return console.log(`${this.setData.id}-${this.setData.parent_id}`),this.setData&&{"1-1":"LeaveReport","2-1":"OvertimeReport","3-1":"NoScheduleReport","4-1":"AbsentReport","5-1":"TardinessReport","6-1":"UndertimeReport","7-1":"DailyTimeRecordReport","8-1":"TravelReport","9-1":"LeaveDetailedReport","10-1":"ChangeScheduleReport","11-1":"CwsListReport","12-1":"ChangeRestDayReport","13-1":"TimeAdjustmentReport","14-1":"OvertimeCompanyReport","1-2":"EmployeeListReport","2-2":"EmployeeRateReport","3-2":"EmployeeRoleReport","4-2":"BirthdaysReport","4-3":"EmpployeeContributionReport","5-3":"CompanyBenefitsReport","6-3":"DeductionReport","7-3":"AdjustmentReport","8-3":"LoanReport","9-3":"PayrollRegister","15-1":"LateApprovalReport","16-1":"AttendancePostingDTRReport","1-5":"EmployeeTaxApplication","2-5":"EmployeePhilhealth","3-5":"EmployeeSSS","4-5":"EmployeePagibig","5-5":"DeductionFlagsReport","6-5":"HdmfCalamityLoanMonthlyRemittance","8-5":"HdmfSalaryLoanMonthlyRemittance","9-5":"SssCalamityLoanMonthlyRemittance","11-5":"SssSalaryLoanMonthlyRemittance"}[`${this.setData.id}-${this.setData.parent_id}`]||null}},methods:{setTreeData(s){this.setData=s}}},fD={class:"grid grid-cols-12 gap-2 h-[50rem]"},uD={class:"col-span-3 overflow-y-scroll"},dD={class:"mb-3"},hD={class:"col-span-9 overflow-y-auto p-3 relative"},pD={class:"absolute inset-0 flex items-center justify-center pointer-events-none"},mD=["srcset"],gD={key:0},bD={class:"font-bold text-lg"};function yD(s,r,o,n,t,e){const u=K("TreeItem"),m=K("Card"),b=K("Layout");return ae(),Ge(b,null,{default:W(()=>[k(m,{title:"Generate Report"},{default:W(()=>[j("div",fD,[j("div",uD,[j("div",dD,[Zo(j("input",{"onUpdate:modelValue":r[0]||(r[0]=_=>t.searchQuery=_),type:"text",placeholder:"Search Reports...",class:"border border-gray-300 rounded p-2 w-full"},null,512),[[of,t.searchQuery]])]),j("ul",null,[k(u,{class:"item",model:e.filteredTreeData,"is-expanded":!0,onTreeNodeClicked:e.setTreeData},null,8,["model","onTreeNodeClicked"])])]),j("div",hD,[j("div",pD,[j("img",{src:lD,alt:"Vector Image",srcset:s.VectorImage,class:"w-full h-full max-w-4xl object-contain opacity-15"},null,8,mD)]),j("form",{onSubmit:r[1]||(r[1]=Ut((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4 relative z-10"},[t.setData?(ae(),Be("div",gD,[j("div",bD,fs(t.setData.name),1),(ae(),Ge(Vb(e.getReportComponent)))])):ye("",!0)],32)])])]),_:1})]),_:1})}const _D=Rt(cD,[["render",yD]]),uS=Object.freeze(Object.defineProperty({__proto__:null,default:_D},Symbol.toStringTag,{value:"Module"}));export{ll as c,uS as i};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.03 |
proxy
|
phpinfo
|
Settings