import{a as Jr,_ as Et,r as Y,o as re,c as Me,w as G,j as me,d as U,e as T,b as Le,k as St,J as hm,F as Cr,m as qp,C as Ub,f as Oa,t as Xr,h as zb,n as Gb,p as $o,X as jb,ai as nf,x as Wb,V as Hb,ah as oa,s as pm,S as Yb}from"./index.28ae41da.js";import{I as Ht}from"./index.1b36081b.js";import{L as Yt}from"./index.ca4614c1.js";import{C as or}from"./index.4f06d02e.js";import{F as Xt}from"./index.975c3902.js";/* empty css */import"./vue-cleave.min.10e51f16.js";import{F as mm}from"./index.164dfd27.js";import{T as gm}from"./index.33bd7660.js";import{T as bm}from"./index.43beecaf.js";import{B as Qt}from"./index.8a5f8558.js";import{B as qb}from"./BackButton.1b1d0b0c.js";import{C as er}from"./CloseButton.dacc4a7b.js";import{C as Kb}from"./CreateButton.7e6095de.js";/* empty css */import{S as Ut}from"./SubmitButton.be4371c4.js";import{U as tr}from"./UpdateButton.a9e9b37b.js";import{E as Jb}from"./jspdf.es.min.cdd8e899.js";/* empty css */import{E as Xb}from"./EditButton.4c7b9ec2.js";import{D as Qb}from"./DeleteButton.89d918f5.js";import{V as Zb}from"./ViewButton.d67c4349.js";import{F as $b}from"./FileService.09441775.js";import{E as Fr}from"./EmployeeService.67ccb7ea.js";import{i as vf,l as ey,A as ty,B as ry,g as sy,D as ay,M as oy,N as iy,O as ny,S as ly,V as jt,d as ym,h as Kp,b as wf,j as cy,e as fy,c as Rr,r as uy,f as dy,a as Dt}from"./array.19531b35.js";import{L as Wt}from"./Loading.fa197db1.js";import{M as zt}from"./Multiselect.3c2ca79b.js";import{Q as _m}from"./vue-quill.esm-bundler.b7486412.js";import"./vue-quill.snow.464b7516.js";import{F as vm}from"./index.9a016648.js";import{F as wm}from"./index.d93f9125.js";import{A as qt}from"./main.esm.9cee2c92.js";import"./Loading.vue_vue_type_style_index_0_scoped_cbded5a2_lang.e35c8e45.js";/* empty css */import{T as cr}from"./index.b0bec482.js";import{V as fr}from"./VueSelect.1e34670d.js";import{F as Zt}from"./index.50628127.js";import{T as ur}from"./index.3178f5fc.js";import{L as xf}from"./LeaveTypeService.b84f7001.js";import{A as dr}from"./ActionCellRenderer.4d4d9d35.js";import{C as ir}from"./CompanyService.625a2c1a.js";import{D as yr}from"./DealershipService.b9363e21.js";import{D as es}from"./DepartmentService.88dc318f.js";import{P as Cf}from"./PayrollService.d921ddc5.js";/* empty css */import{P as js}from"./PayrollDateService.f23eaa15.js";import"./jspdf.plugin.autotable.5d1d93cc.js";import{D as Ps}from"./DivisionService.efddc5ac.js";import{G as hy}from"./GroupService.0d2460f4.js";import{J as _l}from"./JobClassficationService.6884ea32.js";import{J as Rs}from"./JobTitleService.800ed56f.js";import{S as py}from"./SalaryGradeService.94693c0b.js";import{S as xm}from"./SectionService.28d2b646.js";import{U as my}from"./UnitService.53142220.js";import"./lodash.45138f16.js";import{H as mt}from"./HelperService.86a88cb6.js";import{N as Ff}from"./NatureOfRequestService.5d9ec283.js";import{M as gy}from"./MrfService.8b5f5895.js";import{R as Cm}from"./index.2964b568.js";import{P as by}from"./PayrollItemsService.a959e5eb.js";import{L as Fm}from"./LoanTypeService.8125b3d2.js";const Vi="https://staging-ahg-hr-api.autohub.ph/api/v1/report",yy="https://staging-ahg-hr-api.autohub.ph/api/v1/report-module",_y="https://staging-ahg-hr-api.autohub.ph/api/v1/report-module-columns",vy="https://staging-ahg-hr-api.autohub.ph/api/v1/report-generation",wy="https://staging-ahg-hr-api.autohub.ph/api/v1/save-report-generated",xy="https://staging-ahg-hr-api.autohub.ph/api/v1/send-report-generated",Cy="https://staging-ahg-hr-api.autohub.ph/api/v1/get-save-report",tt={fetchRecords(s={}){return Jr.get(`${Vi}`,{params:s})},fetchRecord(s){return Jr.get(`${Vi}/${s}`)},async create(s,r){return Jr.post(`${Vi}/${s}`,r)},async update(s,r){return Jr.put(`${Vi}/${s}`,r)},async remove(s){return Jr.delete(`${Vi}/${s}`)},fetchReportModuleRecords(s={}){return Jr.get(`${yy}`,{params:s})},fetchReportModuleColumnRecord(s){return Jr.get(`${_y}/${s}`)},fetchGeneratedReport(s={}){return Jr.get(`${vy}`,{params:s})},fetchSavedReport(s={}){return Jr.get(`${Cy}`,{params:s})},GenerateAttendancePostingReport(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/report-generation-attendance-posting",{params:s})},GenerateEmployeeTaxApplicationReport(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-tax-application",{params:s})},GenerateEmployeePhilhealth(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-philhealth",{params:s})},GenerateEmployeePagibig(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-pagibig",{params:s})},GenerateHdmfLoan(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-hdmf-loan",{params:s})},GenerateEmployeeSSS(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-sss",{params:s})},GenerateEmployeeFlags(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-flags",{params:s})},GenerateEmployeeDeductions(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-deductions",{params:s})},GenerateEmployeeAdjustments(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-adjustments",{params:s})},GenerateEmployeeLoans(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-employee-loans",{params:s})},GeneratePayrollSummary(s={}){return Jr.get("https://staging-ahg-hr-api.autohub.ph/api/v1/generation-payroll-summary",{params:s})},async saveReport(s){return Jr.post(`${wy}`,s)},async sendReport(s){return Jr.post(`${xy}`,s)}};function Fy(s){return new Dy(s)}class Dy{constructor(r){this.type="lazy",this.__isYupSchema__=!0,this.__inputType=void 0,this.__outputType=void 0,this._resolve=(o,i={})=>{let t=this.builder(o,i);if(!vf(t))throw new TypeError("lazy() functions must return a valid schema");return t.resolve(i)},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,i){return this._resolve(r,o).validate(r,o,i)}validateSync(r,o){return this._resolve(r,o).validateSync(r,o)}validateAt(r,o,i){return this._resolve(o,i).validateAt(r,o,i)}validateSyncAt(r,o,i){return this._resolve(o,i).validateSyncAt(r,o,i)}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 Ay(s){Object.keys(s).forEach(r=>{Object.keys(s[r]).forEach(o=>{ey[r][o]=s[r][o]})})}function Sy(s,r,o){if(!s||!vf(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 Df=Object.freeze(Object.defineProperty({__proto__:null,ArraySchema:ty,BaseSchema:ry,BooleanSchema:sy,DateSchema:ay,MixedSchema:oy,NumberSchema:iy,ObjectSchema:ny,StringSchema:ly,ValidationError:jt,addMethod:Sy,array:ym,bool:Kp,boolean:Kp,date:wf,isSchema:vf,lazy:Fy,mixed:cy,number:fy,object:Rr,reach:uy,ref:dy,setLocale:Ay,string:Dt},Symbol.toStringTag,{value:"Module"})),Ey={components:{Button:Qt},props:{text:{type:String,default:null},btnClass:{type:String,default:"text-violet-400 hover:text-violet-500 py-2 px-1"},link:[String,Object],icon:{type:String,default:"solar:file-check-bold"},title:{type:String,default:"Download this record"},titleTheme:{type:String,default:"violet-500"},titleOffset:{type:Number,default:7}},setup(){}};function Ty(s,r,o,i,t,e){const u=Y("Button");return re(),Me(u,{btnClass:o.btnClass,icon:o.icon,iconClass:"text-xl",text:o.text??null,link:o.link,title:o.title,titleTheme:o.titleTheme},null,8,["btnClass","icon","text","link","title","titleTheme"])}const Ry=Et(Ey,[["render",Ty]]),ky={props:{showModal:{type:Boolean,default:!1}},components:{Icon:Ht,FileType:wm,Fileinput:vm,FormModal:mm,FormGroup:Xt,TextInput:bm,TextArea:gm,Button:Qt,SubmitButton:Ut,UpdateButton:tr,CloseButton:er,Loading:Wt,Multiselect:zt,QuillEditor:_m},data(){return{form:{employee_id:[],subject:"",message:""},errors:{},employees:[],setData:[],paginationPageSize:10,paginationPageSizeSelector:[10,25,50],loanName:"",attachment:"",state:{isEdit:!1,isSaving:!1,isLoading:!1,isEmployeeLoading:!1}}},computed:{activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{resetForm(){this.errors={},this.form={employee_id:[],subject:"",message:""}},confirmSubmit(s){s&&(s.preventDefault(),s.stopPropagation()),console.log("Form submitted:",this.form),this.errors={};let r=!1;(!this.form.message||!this.form.message.trim())&&(this.errors.message="Message is required",r=!0),!r&&(this.state.isSaving=!0,setTimeout(()=>{this.state.isSaving=!1,console.log("Report sent successfully"),this.$emit("record-submitted",this.setData),this.resetForm()},1e3))},async fetchEmployee(){this.state.isEmployeeLoading=!0;try{const s=await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer});console.log("response",this.activeCompany),s.status==200&&(this.employees=s.data.map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})))}catch(s){console.log(s)}finally{this.state.isEmployeeLoading=!1}},async loadRecord(s){console.log("Loading record:",s),this.resetForm(),this.setData=s,s&&(this.form.subject=`Report: ${s.title||s.name||"Report"}`)},closeModal(){console.log("Closing modal from child"),this.resetForm(),this.$emit("close-modal")},reload(){this.$emit("reload")}},watch:{showModal(s){console.log("Modal visibility changed:",s),s||this.resetForm()}},mounted(){this.fetchEmployee()}},Ly={class:"grid grid-cols-1 gap-2"},My={class:"col-span-6"},Oy={key:0,class:"text-[#ec4899]"},Py={class:"grid grid-cols-1 gap-2"};function Ny(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("TextInput"),w=Y("QuillEditor"),S=Y("Modal");return re(),Me(S,{title:"Send Report",active:o.showModal,onSubmit:e.confirmSubmit,onClose:e.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-2/4"},{default:G(()=>[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching record"})):me("",!0),U("div",Ly,[T(b,{label:"Send To:"},{default:G(()=>[T(p,{placeholder:"",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",My,[T(b,{label:"Subject"},{default:G(()=>[T(_,{modelValue:t.form.subject,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.subject=A),error:t.errors.subject,isReadonly:!0,placeholder:"Subject",classInput:"h-[48px] w-full"},null,8,["modelValue","error"]),t.errors.subject?(re(),Le("div",Oy)):me("",!0)]),_:1})]),U("div",Py,[T(b,{label:"Message",isRequired:!0},{default:G(()=>[T(w,{theme:"snow",content:t.form.message,"onUpdate:content":r[2]||(r[2]=A=>t.form.message=A),contentType:"html",error:t.errors.message,classInput:"form-control",toolbar:"full",style:{height:"400px"}},null,8,["content","error"])]),_:1})])]),_:1},8,["active","onSubmit","onClose"])}const Iy=Et(ky,[["render",Ny]]),Vy={props:["params"],data(){return{state:{showModalSendReport:!1,isDownloading:!1,isLoadingPDF:!1}}},components:{EditButton:Xb,DeleteButton:Qb,ViewButton:Zb,FileReportButton:Ry,SendReport:Iy},computed:{canView(){return this.params.data.status>0},canEdit(){return this.params.data.status===0},canDelete(){return this.params.data.status===0}},methods:{view(){console.log(this.params.data),this.params.context.componentParent.viewRecord(this.params.data)},sendEmail(){console.log(this.params.data),this.params.context.componentParent.sendReport(this.params.data)},closeModal(){console.log("Closing modal from parent"),this.state.showModalSendReport=!1},onRecordSubmitted(s){console.log("Record submitted:",s),this.closeModal()},async attachmentRecord(){const s=this.params.data.attachment;if(this.state.isDownloading)return;this.state.isDownloading=!0;let r=await $b.Reader2("save_reports",s);r.includes(",")&&(r=r.split(",")[1]);let o;if(s.endsWith(".pdf"))o="application/pdf";else if(s.endsWith(".png"))o="image/png";else if(s.endsWith(".jpg")||s.endsWith(".jpeg"))o="image/jpeg";else if(s.endsWith(".svg"))o="image/svg+xml";else if(s.endsWith(".csv"))o="text/csv";else if(s.endsWith(".xlsx"))o="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet";else if(s.endsWith(".xls"))o="application/vnd.ms-excel";else throw new Error("Unsupported file type");try{const i=atob(r),t=new Array(i.length);for(let _=0;_0}function e(b){i.value[b.name]=!i.value[b.name]}function u(b){return!!i.value[b.name]}function p(b){e(b),o("tree-node-clicked",b)}return(b,_)=>{const w=Y("TreeItem",!0);return re(),Le("li",null,[(re(!0),Le(Cr,null,qp(s.model,S=>(re(),Le("div",{key:S.name},[U("div",{class:zb(["text-gray-500 hover:text-gray-900 hover:underline pb-2",{bold:t(S)}]),onClick:A=>p(S),style:Gb({"padding-left":`${s.level*20}px`})},[U("div",Gy,[T(Ub(Ht),{icon:t(S)?u(S)?"ph:folder-open-fill":"ph:folder-open-duotone":"ph:file-text"},null,8,["icon"]),Oa(" "+Xr(S.name),1)])],14,zy),t(S)?$o((re(),Le("ul",jy,[(re(!0),Le(Cr,null,qp(S.children,(A,E)=>(re(),Me(w,{model:[A],key:E,level:s.level+1.5,onTreeNodeClicked:p},null,8,["model","level"]))),128))],512)),[[jb,u(S)]]):me("",!0)]))),128))])}}},Hy={components:{QuillEditor:_m,ActionCellRendererReport:Jp,Icon:Ht,AgGridVue:qt,FileType:wm,Fileinput:vm,FormModal:mm,FormGroup:Xt,TextInput:bm,TextArea:gm,Button:Qt,SubmitButton:Ut,UpdateButton:tr,CloseButton:er,BackButton:qb,CreateButton:Kb,Loading:Wt,Multiselect:zt},data(){return{saveReportData:[],reloadData:[],setData:[],paginationPageSize:10,paginationPageSizeSelector:[10,25,50],colDefs:[{field:"#",flex:1},{field:"report_name",HeaderName:"Report Name",filter:!0,floatingFilter:!0,flex:2},{field:"columns",HeaderName:"Columns",filter:!0,floatingFilter:!0,flex:2},{field:"filters",HeaderName:"Filters",filter:!0,floatingFilter:!0,flex:2},{headerName:"Actions",cellRenderer:Jp,flex:1,cellRendererParams:{context:{componentParent:this}}}],form:{employee_id:[],subject:"",message:""},errors:{},employees:[],allEmployees:[],displayedEmployees:[],totalEmployees:0,currentPage:0,pageSize:100,searchQuery:"",reports:[],loanName:"",attachment:"",isSendingReport:!1,state:{isEdit:!1,isSaving:!1,isLoading:!1,isEmployeeLoading:!1,isLoadingMore:!1}}},computed:{hasMoreEmployees(){return this.displayedEmployees.lengthr.label.toLowerCase().includes(s)||r.value.toString().toLowerCase().includes(s))}},methods:{async submitReport(){try{await Rr().shape({employee_id:ym().of(Dt()).required("Employee field is required"),subject:Dt().required("Subject is required"),message:Dt().required("Message is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:"Are you sure you want to send this report?",text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No"}).then(r=>{r.value&&this.sendReportTo()})}catch(s){if(console.log(s),s instanceof jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},async sendReportTo(){const s=new FormData;s.append("attachment",this.saveReportData.attachment),s.append("report_id",this.saveReportData.id),s.append("message",this.form.message),s.append("employee_id",this.form.employee_id),s.append("subject",this.form.subject),await tt.sendReport(s).then(r=>{r.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1,this.state.showModal=!1,this.resetForm(),this.reload())}).catch(r=>{console.log(r),r.response.status==422?this.$swal.fire({title:"Ooops! something is wrong.",text:r.response.data.message,icon:"warning"}):this.$swal.fire({title:"Ooops! something is wrong.",text:"Please contact system administrator",icon:"error",timer:2e3})})},backToList(){this.isSendingReport=!1},viewRecord(s){this.reloadData=s,this.$emit("record-submitted",s),this.state.showModal=!1},sendReport(s){this.saveReportData=s,this.isSendingReport=!0,this.fetchEmployee(),console.log("send-report",s)},onGridReady(s){this.gridApi=s.api},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 loadRecord(s){this.state.isLoading=!0,this.reloadData=s,this.setData=this.reloadData.length>0?this.reloadData:s,console.log("setData",this.reloadData),this.reports=[],await tt.fetchSavedReport(this.setData).then(r=>{console.log(r.data),this.reports=r.data.map((o,i)=>({...o,"#":i+1,name:o.report_name,columns:o.columns,filters:o.filters}))}),this.state.isLoading=!1},closeModal(){this.isSendingReport=!1,this.state.showModal=!1},reload(){this.$emit("reload")},async fetchEmployee(){this.state.isEmployeeLoading=!0,this.currentPage=0,this.employees=[],this.allEmployees=[],this.displayedEmployees=[],this.searchQuery="";try{const s=await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer});console.log("response",this.activeCompany),s.status==200&&(this.allEmployees=s.data.filter(r=>r.date_resign==null).map(r=>({value:r.employee_id,label:r.employee_id+" - "+r.firstname+" "+r.lastname})),this.totalEmployees=this.allEmployees.length,this.loadInitialEmployees())}catch(s){console.log(s)}finally{this.state.isEmployeeLoading=!1}},loadInitialEmployees(){const r=Math.min(this.pageSize,this.allEmployees.length);this.displayedEmployees=this.allEmployees.slice(0,r),this.employees=[...this.displayedEmployees],this.currentPage=1},handleLoadMore(s){return s&&(s.preventDefault(),s.stopPropagation(),s.stopImmediatePropagation()),setTimeout(()=>{this.loadMoreEmployees()},0),!1},async loadMoreEmployees(){if(!(!this.hasMoreEmployees||this.state.isLoadingMore)){this.state.isLoadingMore=!0;try{await new Promise(i=>setTimeout(i,300));const s=this.currentPage*this.pageSize,r=Math.min(s+this.pageSize,this.allEmployees.length),o=this.allEmployees.slice(s,r);this.displayedEmployees=[...this.displayedEmployees,...o],this.employees=[...this.displayedEmployees],this.currentPage++,console.log(`Loaded ${o.length} more employees. Total displayed: ${this.displayedEmployees.length}`)}catch(s){console.log("Error loading more employees:",s)}finally{this.state.isLoadingMore=!1}}},handleSearch(s){this.searchQuery=s,(!s||s.length<2)&&(this.searchQuery="")},async deleteRecord(s){this.$swal.fire({title:"Are you sure?",text:"You want to delete this record?",icon:"warning",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes, delete it!",background:this.$store.themeSettingsStore.isDark?"#1e293b":"#fff"}).then(r=>{r.value&&(this.state.isDeleting=!0,tt.remove(s).then(o=>{console.log(o),o.status==201&&(this.$swal.fire({title:"Yaaay!",text:"Record has been deleted successfully.",type:"success",icon:"success",timer:2e3}),console.log("stored",this.reloadData),this.loadRecord(this.reloadData))}))}).catch(r=>{r.response&&r.response.status==401&&this.$swal.fire({title:"Ooops! something is wrong.",text:"Error deleting record. Please contact system administrator",type:"error",icon:"error",timer:2e3})}).finally(()=>{this.state.isDeleting=!1})}},mounted(){}},Yy={key:1},qy={class:"grid grid-cols-1 gap-2"},Ky={class:"relative"},Jy={key:1,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-600 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Xy={key:2,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-500 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Qy={key:3,class:"px-3 py-2 border-t border-gray-200 bg-gray-50 text-center text-sm text-gray-500 select-none",style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},Zy={class:"col-span-6"},$y={key:0,class:"text-[#ec4899]"},e_={class:"grid grid-cols-1 gap-2 mb-4"},t_={class:"relative p-3 pr-4 flex items-center gap-3 border border-gray-200 bg-white rounded-md w-full max-w-md hover:shadow-sm transition"},r_={class:"text-indigo-500 text-3xl"},s_={class:"flex-1 min-w-0"},a_={class:"text-sm font-medium text-gray-800 truncate"},o_={class:"flex justify-end items-center gap-1"},i_={key:2},n_={class:"flex justify-normal items-center italic text-primary-700"},l_={class:"flex justify-normal items-center italic text-primary-700 mb-3"},c_={class:"text-slate-600 dark:text-slate-400 text-sm font-normal"},f_={class:"ag-grid-toolbar flex items-center justify-between px-4 py-2 bg-gray-100 border-t rounded-t-xl border-gray-200"},u_={class:"flex items-center gap-4"},d_={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"},h_={class:"relative z-10 flex items-center transition-colors duration-300 group-hover:text-white"};function p_(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Icon"),b=Y("Multiselect"),_=Y("FormGroup"),w=Y("TextInput"),S=Y("QuillEditor"),A=Y("BackButton"),E=Y("CreateButton"),M=Y("Button"),N=Y("ag-grid-vue"),q=Y("FormModal");return re(),Me(q,{title:`${t.setData.name} Report`,active:t.state.showModal,onSubmit:s.confirmSubmit,onClose:e.closeModal,themeClass:"bg-gray-800",sizeClass:"lg:w-3/4"},{default:G(()=>[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching record"})):me("",!0),t.isSendingReport?(re(),Le("div",Yy,[U("div",qy,[T(_,{label:"Send To:",isRequired:!0},{default:G(()=>[U("div",Ky,[T(b,{placeholder:"",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[3]||(r[3]=B=>t.form.employee_id=B),options:e.filteredEmployees,class:"form-multiselect w-full mt-2",mode:"tags","close-on-select":!1,onSearchChange:e.handleSearch,"filter-results":!1,"min-chars":0,"resolve-on-load":!1,delay:300,"can-clear":!0,"can-deselect":!0,ref:"employeeMultiselect"},{nooptions:G(()=>r[8]||(r[8]=[U("div",{class:"px-3 py-2 text-center text-sm text-gray-500"}," No employees found ",-1)])),afterlist:G(()=>[e.hasMoreEmployees&&!t.state.isLoadingMore&&!t.searchQuery?(re(),Le("div",{key:0,class:"flex items-center justify-center load-more-btn px-3 py-2 border-t border-gray-200 bg-gray-50 hover:bg-gray-100 cursor-pointer text-center text-sm text-blue-600 hover:text-blue-800 select-none",onClick:r[0]||(r[0]=St((...B)=>e.handleLoadMore&&e.handleLoadMore(...B),["stop","prevent"])),onMousedown:r[1]||(r[1]=St(()=>{},["stop","prevent"])),onMouseup:r[2]||(r[2]=St(()=>{},["stop","prevent"])),style:{"user-select":"none","-webkit-user-select":"none","-moz-user-select":"none","-ms-user-select":"none"}},[T(p,{icon:"mdi:plus-circle-outline",class:"inline mr-1"}),Oa(" Load More Employees ("+Xr(t.totalEmployees-t.displayedEmployees.length)+" remaining) ",1)],32)):me("",!0),t.state.isLoadingMore?(re(),Le("div",Jy,[T(p,{icon:"mdi:loading",class:"inline mr-1 animate-spin"}),r[9]||(r[9]=Oa(" Loading more employees... "))])):me("",!0),!e.hasMoreEmployees&&t.displayedEmployees.length>100&&!t.searchQuery?(re(),Le("div",Xy," All employees loaded ")):me("",!0),t.searchQuery&&e.filteredEmployees.length===0?(re(),Le("div",Qy,' No employees found matching "'+Xr(t.searchQuery)+'" ',1)):me("",!0)]),_:1},8,["modelValue","options","onSearchChange"])])]),_:1})]),U("div",Zy,[T(_,{label:"Subject",isRequired:!0},{default:G(()=>[T(w,{modelValue:t.form.subject,"onUpdate:modelValue":r[4]||(r[4]=B=>t.form.subject=B),error:t.errors.subject,placeholder:"Subject",classInput:"h-[48px] w-full"},null,8,["modelValue","error"]),t.errors.subject?(re(),Le("div",$y)):me("",!0)]),_:1})]),U("div",e_,[T(_,{label:"Message",isRequired:!0},{default:G(()=>[T(S,{theme:"snow",content:t.form.message,"onUpdate:content":r[5]||(r[5]=B=>t.form.message=B),contentType:"html",error:t.errors.message,classInput:"form-control",toolbar:"full",style:{height:"400px"}},null,8,["content","error"])]),_:1})]),U("div",t_,[U("div",r_,[T(p,{icon:"fa-solid:file-alt"})]),U("div",s_,[U("div",a_,Xr(t.saveReportData.attachment),1),r[10]||(r[10]=U("div",{class:"text-xs text-gray-500"},"1.2 MB",-1))])]),U("div",o_,[T(A,{onClick:St(e.backToList,["stop"])},null,8,["onClick"]),T(E,{btnClass:"bg-indigo-500 text-white pl-3 py-2",text:"Send",icon:"iconoir:send-mail",title:"Send",onClick:St(e.submitReport,["stop"])},null,8,["onClick"])])])):(re(),Le("div",i_,[r[20]||(r[20]=U("div",{class:"flex justify-normal items-center italic text-gray-500"}," Quick Guide: ",-1)),U("div",n_,[r[11]||(r[11]=Oa("   ")),T(p,{icon:"mingcute:transfer-vertical-line",class:"text-amber-400 hover:text-amber-500"}),r[12]||(r[12]=Oa("   Icon will transfer/use the data to report generation page "))]),U("div",l_,[r[13]||(r[13]=Oa("   ")),T(p,{icon:"iconoir:send-mail",class:"text-primary-500 hover:text-primary-700"}),r[14]||(r[14]=Oa("   Icon will send the report to the person "))]),U("div",c_,[U("form",{onSubmit:r[7]||(r[7]=St((...B)=>s.confirmSubmit&&s.confirmSubmit(...B),["prevent"])),class:""},[U("div",f_,[r[19]||(r[19]=U("div",{class:"flex items-center justify-center gap-4 text-gray-900 text-lg font-bold"},null,-1)),U("div",u_,[T(M,{icon:"mdi:microsoft-excel",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-green-500",iconClass:"text-2xl",onClick:e.exportToCsv},{default:G(()=>[r[16]||(r[16]=U("span",{class:"absolute inset-0 bg-green-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),U("span",d_,[T(p,{icon:"mdi:microsoft-excel",class:"text-2xl mr-2"}),r[15]||(r[15]=Oa(" Export to CSV "))])]),_:1},8,["onClick"]),t.attachment?(re(),Me(M,{key:0,icon:"line-md:downloading-loop",text:"Export to CSV",btnClass:"relative overflow-hidden font-normal px-4 py-2 rounded-lg shadow-md bg-white text-gray-900 border group transition-colors duration-300 group-hover:border-blue-500",iconClass:"text-2xl",onClick:r[6]||(r[6]=B=>s.viewAttachment(t.attachment))},{default:G(()=>[r[18]||(r[18]=U("span",{class:"absolute inset-0 bg-blue-500 transition-transform duration-300 transform -translate-x-full group-hover:translate-x-0"},null,-1)),U("span",h_,[T(p,{icon:"line-md:downloading-loop",class:"text-2xl mr-2"}),r[17]||(r[17]=Oa(" View Attached File "))])]),_:1})):me("",!0)])]),T(N,{ref:"agGrid",rowData:t.reports,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"])],32)])]))]),_:1},8,["title","active","onSubmit","onClose"])}const m_=Et(Hy,[["render",p_]]),g_="/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 b_=function(){let s=0;return function(){return s++}}();function xr(s){return s===null||typeof s>"u"}function Br(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 Gt(s,r){return typeof s>"u"?r:s}const y_=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100:s/r,Dm=(s,r)=>typeof s=="string"&&s.endsWith("%")?parseFloat(s)/100*r:+s;function Pr(s,r,o){if(s&&typeof s.call=="function")return s.apply(o,r)}function Sr(s,r,o,i){let t,e,u;if(Br(s))if(e=s.length,i)for(t=e-1;t>=0;t--)r.call(o,s[t],t);else for(t=0;ts,x:s=>s.x,y:s=>s.y};function Xa(s,r){return(Xp[r]||(Xp[r]=w_(r)))(s)}function w_(s){const r=x_(s);return o=>{for(const i of r){if(i==="")break;o=o&&o[i]}return o}}function x_(s){const r=s.split("."),o=[];let i="";for(const t of r)i+=t,i.endsWith("\\")?i=i.slice(0,-1)+".":(o.push(i),i="");return o}function Af(s){return s.charAt(0).toUpperCase()+s.slice(1)}const aa=s=>typeof s<"u",Qa=s=>typeof s=="function",Qp=(s,r)=>{if(s.size!==r.size)return!1;for(const o of s)if(!r.has(o))return!1;return!0};function C_(s){return s.type==="mouseup"||s.type==="click"||s.type==="contextmenu"}const zr=Math.PI,Or=2*zr,F_=Or+zr,dl=Number.POSITIVE_INFINITY,D_=zr/180,Qr=zr/2,Bi=zr/4,Zp=zr*2/3,ra=Math.log10,Fa=Math.sign;function $p(s){const r=Math.round(s);s=Ki(s,r,s/1e3)?r:s;const o=Math.pow(10,Math.floor(ra(s))),i=s/o;return(i<=1?1:i<=2?2:i<=5?5:10)*o}function A_(s){const r=[],o=Math.sqrt(s);let i;for(i=1;it-e).pop(),r}function ei(s){return!isNaN(parseFloat(s))&&isFinite(s)}function Ki(s,r,o){return Math.abs(s-r)=s}function Sm(s,r,o){let i,t,e;for(i=0,t=s.length;ib&&_=Math.min(r,o)-i&&s<=Math.max(r,o)+i}function Ef(s,r,o){o=o||(u=>s[u]1;)e=t+i>>1,o(e)?t=e:i=e;return{lo:t,hi:i}}const Co=(s,r,o,i)=>Ef(s,o,i?t=>s[t][r]<=o:t=>s[t][r]Ef(s,o,i=>s[i][r]>=o);function k_(s,r,o){let i=0,t=s.length;for(;ii&&s[t-1]>o;)t--;return i>0||t{const i="_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(p=>{typeof p[i]=="function"&&p[i](...e)}),u}})})}function t0(s,r){const o=s._chartjs;if(!o)return;const i=o.listeners,t=i.indexOf(r);t!==-1&&i.splice(t,1),!(i.length>0)&&(Tm.forEach(e=>{delete s[e]}),delete s._chartjs)}function Rm(s){const r=new Set;let o,i;for(o=0,i=s.length;o"u"?function(s){return s()}:window.requestAnimationFrame}();function Lm(s,r,o){const i=o||(u=>Array.prototype.slice.call(u));let t=!1,e=[];return function(...u){e=i(u),t||(t=!0,km.call(window,()=>{t=!1,s.apply(r,e)}))}}function M_(s,r){let o;return function(...i){return r?(clearTimeout(o),o=setTimeout(s,r,i)):s.apply(this,i),r}}const Tf=s=>s==="start"?"left":s==="end"?"right":"center",Ss=(s,r,o)=>s==="start"?r:s==="end"?o:(r+o)/2,O_=(s,r,o,i)=>s===(i?"left":"right")?o:s==="center"?(r+o)/2:r;function Mm(s,r,o){const i=r.length;let t=0,e=i;if(s._sorted){const{iScale:u,_parsed:p}=s,b=u.axis,{min:_,max:w,minDefined:S,maxDefined:A}=u.getUserBounds();S&&(t=Es(Math.min(Co(p,u.axis,_).lo,o?i:Co(r,b,u.getPixelForValue(_)).lo),0,i-1)),A?e=Es(Math.max(Co(p,u.axis,w,!0).hi+1,o?0:Co(r,b,u.getPixelForValue(w),!0).hi+1),t,i)-t:e=i-t}return{start:t,count:e}}function Om(s){const{xScale:r,yScale:o,_scaleRanges:i}=s,t={xmin:r.min,xmax:r.max,ymin:o.min,ymax:o.max};if(!i)return s._scaleRanges=t,!0;const e=i.xmin!==r.min||i.xmax!==r.max||i.ymin!==o.min||i.ymax!==o.max;return Object.assign(i,t),e}const Xn=s=>s===0||s===1,r0=(s,r,o)=>-(Math.pow(2,10*(s-=1))*Math.sin((s-r)*Or/o)),s0=(s,r,o)=>Math.pow(2,-10*s)*Math.sin((s-r)*Or/o)+1,Ji={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*Qr)+1,easeOutSine:s=>Math.sin(s*Qr),easeInOutSine:s=>-.5*(Math.cos(zr*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=>Xn(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=>Xn(s)?s:r0(s,.075,.3),easeOutElastic:s=>Xn(s)?s:s0(s,.075,.3),easeInOutElastic(s){return Xn(s)?s:s<.5?.5*r0(s*2,.1125,.45):.5+.5*s0(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-Ji.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?Ji.easeInBounce(s*2)*.5:Ji.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 sn(s){return s+.5|0}const qa=(s,r,o)=>Math.max(Math.min(s,o),r);function Hi(s){return qa(sn(s*2.55),0,255)}function Ja(s){return qa(sn(s*255),0,255)}function Ia(s){return qa(sn(s/2.55)/100,0,1)}function a0(s){return qa(sn(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},cf=[..."0123456789ABCDEF"],P_=s=>cf[s&15],N_=s=>cf[(s&240)>>4]+cf[s&15],Qn=s=>(s&240)>>4===(s&15),I_=s=>Qn(s.r)&&Qn(s.g)&&Qn(s.b)&&Qn(s.a);function V_(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 B_=(s,r)=>s<255?r(s):"";function U_(s){var r=I_(s)?P_:N_;return s?"#"+r(s.r)+r(s.g)+r(s.b)+B_(s.a,r):void 0}const z_=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Pm(s,r,o){const i=r*Math.min(o,1-o),t=(e,u=(e+s/30)%12)=>o-i*Math.max(Math.min(u-3,9-u,1),-1);return[t(0),t(8),t(4)]}function G_(s,r,o){const i=(t,e=(t+s/60)%6)=>o-o*r*Math.max(Math.min(e,4-e,1),0);return[i(5),i(3),i(1)]}function j_(s,r,o){const i=Pm(s,1,.5);let t;for(r+o>1&&(t=1/(r+o),r*=t,o*=t),t=0;t<3;t++)i[t]*=1-r-o,i[t]+=r;return i}function W_(s,r,o,i,t){return s===t?(r-o)/i+(r.5?w/(2-e-u):w/(e+u),b=W_(o,i,t,w,e),b=b*60+.5),[b|0,_||0,p]}function kf(s,r,o,i){return(Array.isArray(r)?s(r[0],r[1],r[2]):s(r,o,i)).map(Ja)}function Lf(s,r,o){return kf(Pm,s,r,o)}function H_(s,r,o){return kf(j_,s,r,o)}function Y_(s,r,o){return kf(G_,s,r,o)}function Nm(s){return(s%360+360)%360}function q_(s){const r=z_.exec(s);let o=255,i;if(!r)return;r[5]!==i&&(o=r[6]?Hi(+r[5]):Ja(+r[5]));const t=Nm(+r[2]),e=+r[3]/100,u=+r[4]/100;return r[1]==="hwb"?i=H_(t,e,u):r[1]==="hsv"?i=Y_(t,e,u):i=Lf(t,e,u),{r:i[0],g:i[1],b:i[2],a:o}}function K_(s,r){var o=Rf(s);o[0]=Nm(o[0]+r),o=Lf(o),s.r=o[0],s.g=o[1],s.b=o[2]}function J_(s){if(!s)return;const r=Rf(s),o=r[0],i=a0(r[1]),t=a0(r[2]);return s.a<255?`hsla(${o}, ${i}%, ${t}%, ${Ia(s.a)})`:`hsl(${o}, ${i}%, ${t}%)`}const o0={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"},i0={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 X_(){const s={},r=Object.keys(i0),o=Object.keys(o0);let i,t,e,u,p;for(i=0;i>16&255,e>>8&255,e&255]}return s}let Zn;function Q_(s){Zn||(Zn=X_(),Zn.transparent=[0,0,0,0]);const r=Zn[s.toLowerCase()];return r&&{r:r[0],g:r[1],b:r[2],a:r.length===4?r[3]:255}}const Z_=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function $_(s){const r=Z_.exec(s);let o=255,i,t,e;if(r){if(r[7]!==i){const u=+r[7];o=r[8]?Hi(u):qa(u*255,0,255)}return i=+r[1],t=+r[3],e=+r[5],i=255&(r[2]?Hi(i):qa(i,0,255)),t=255&(r[4]?Hi(t):qa(t,0,255)),e=255&(r[6]?Hi(e):qa(e,0,255)),{r:i,g:t,b:e,a:o}}}function ev(s){return s&&(s.a<255?`rgba(${s.r}, ${s.g}, ${s.b}, ${Ia(s.a)})`:`rgb(${s.r}, ${s.g}, ${s.b})`)}const Yc=s=>s<=.0031308?s*12.92:Math.pow(s,1/2.4)*1.055-.055,Xo=s=>s<=.04045?s/12.92:Math.pow((s+.055)/1.055,2.4);function tv(s,r,o){const i=Xo(Ia(s.r)),t=Xo(Ia(s.g)),e=Xo(Ia(s.b));return{r:Ja(Yc(i+o*(Xo(Ia(r.r))-i))),g:Ja(Yc(t+o*(Xo(Ia(r.g))-t))),b:Ja(Yc(e+o*(Xo(Ia(r.b))-e))),a:s.a+o*(r.a-s.a)}}function $n(s,r,o){if(s){let i=Rf(s);i[r]=Math.max(0,Math.min(i[r]+i[r]*o,r===0?360:1)),i=Lf(i),s.r=i[0],s.g=i[1],s.b=i[2]}}function Im(s,r){return s&&Object.assign(r||{},s)}function n0(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=Ja(s[3]))):(r=Im(s,{r:0,g:0,b:0,a:1}),r.a=Ja(r.a)),r}function rv(s){return s.charAt(0)==="r"?$_(s):q_(s)}class hl{constructor(r){if(r instanceof hl)return r;const o=typeof r;let i;o==="object"?i=n0(r):o==="string"&&(i=V_(r)||Q_(r)||rv(r)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var r=Im(this._rgb);return r&&(r.a=Ia(r.a)),r}set rgb(r){this._rgb=n0(r)}rgbString(){return this._valid?ev(this._rgb):void 0}hexString(){return this._valid?U_(this._rgb):void 0}hslString(){return this._valid?J_(this._rgb):void 0}mix(r,o){if(r){const i=this.rgb,t=r.rgb;let e;const u=o===e?.5:o,p=2*u-1,b=i.a-t.a,_=((p*b===-1?p:(p+b)/(1+p*b))+1)/2;e=1-_,i.r=255&_*i.r+e*t.r+.5,i.g=255&_*i.g+e*t.g+.5,i.b=255&_*i.b+e*t.b+.5,i.a=u*i.a+(1-u)*t.a,this.rgb=i}return this}interpolate(r,o){return r&&(this._rgb=tv(this._rgb,r._rgb,o)),this}clone(){return new hl(this.rgb)}alpha(r){return this._rgb.a=Ja(r),this}clearer(r){const o=this._rgb;return o.a*=1-r,this}greyscale(){const r=this._rgb,o=sn(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 $n(this._rgb,2,r),this}darken(r){return $n(this._rgb,2,-r),this}saturate(r){return $n(this._rgb,1,r),this}desaturate(r){return $n(this._rgb,1,-r),this}rotate(r){return K_(this._rgb,r),this}}function Vm(s){return new hl(s)}function Bm(s){if(s&&typeof s=="object"){const r=s.toString();return r==="[object CanvasPattern]"||r==="[object CanvasGradient]"}return!1}function l0(s){return Bm(s)?s:Vm(s)}function qc(s){return Bm(s)?s:Vm(s).saturate(.5).darken(.1).hexString()}const Ao=Object.create(null),ff=Object.create(null);function Xi(s,r){if(!r)return s;const o=r.split(".");for(let i=0,t=o.length;io.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,i)=>qc(i.backgroundColor),this.hoverBorderColor=(o,i)=>qc(i.borderColor),this.hoverColor=(o,i)=>qc(i.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 Kc(this,r,o)}get(r){return Xi(this,r)}describe(r,o){return Kc(ff,r,o)}override(r,o){return Kc(Ao,r,o)}route(r,o,i,t){const e=Xi(this,r),u=Xi(this,i),p="_"+o;Object.defineProperties(e,{[p]:{value:e[o],writable:!0},[o]:{enumerable:!0,get(){const b=this[p],_=u[t];return br(b)?Object.assign({},_,b):Gt(b,_)},set(b){this[p]=b}}})}}var lr=new sv({_scriptable:s=>!s.startsWith("on"),_indexable:s=>s!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}});function av(s){return!s||xr(s.size)||xr(s.family)?null:(s.style?s.style+" ":"")+(s.weight?s.weight+" ":"")+s.size+"px "+s.family}function pl(s,r,o,i,t){let e=r[t];return e||(e=r[t]=s.measureText(t).width,o.push(t)),e>i&&(i=e),i}function ov(s,r,o,i){i=i||{};let t=i.data=i.data||{},e=i.garbageCollect=i.garbageCollect||[];i.font!==r&&(t=i.data={},e=i.garbageCollect=[],i.font=r),s.save(),s.font=r;let u=0;const p=o.length;let b,_,w,S,A;for(b=0;bo.length){for(b=0;b0&&s.stroke()}}function en(s,r,o){return o=o||.5,!r||s&&s.x>r.left-o&&s.xr.top-o&&s.y0&&e.strokeColor!=="";let b,_;for(s.save(),s.font=t.string,lv(s,e),b=0;b+s||0;function Pf(s,r){const o={},i=br(r),t=i?Object.keys(r):r,e=br(s)?i?u=>Gt(s[u],s[r[u]]):u=>s[u]:()=>s;for(const u of t)o[u]=hv(e(u));return o}function zm(s){return Pf(s,{top:"y",right:"x",bottom:"y",left:"x"})}function Fo(s){return Pf(s,["topLeft","topRight","bottomLeft","bottomRight"])}function Ts(s){const r=zm(s);return r.width=r.left+r.right,r.height=r.top+r.bottom,r}function us(s,r){s=s||{},r=r||lr.font;let o=Gt(s.size,r.size);typeof o=="string"&&(o=parseInt(o,10));let i=Gt(s.style,r.style);i&&!(""+i).match(uv)&&(console.warn('Invalid font style specified: "'+i+'"'),i="");const t={family:Gt(s.family,r.family),lineHeight:dv(Gt(s.lineHeight,r.lineHeight),o),size:o,style:i,weight:Gt(s.weight,r.weight),string:""};return t.string=av(t),t}function el(s,r,o,i){let t=!0,e,u,p;for(e=0,u=s.length;eo&&p===0?0:p+b;return{min:u(i,-Math.abs(e)),max:u(t,e)}}function Za(s,r){return Object.assign(Object.create(s),r)}function Nf(s,r=[""],o=s,i,t=()=>s[0]){aa(i)||(i=Hm("_fallback",s));const e={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:s,_rootScopes:o,_fallback:i,_getTarget:t,override:u=>Nf([u,...s],r,o,i)};return new Proxy(e,{deleteProperty(u,p){return delete u[p],delete u._keys,delete s[0][p],!0},get(u,p){return jm(u,p,()=>xv(p,r,s,u))},getOwnPropertyDescriptor(u,p){return Reflect.getOwnPropertyDescriptor(u._scopes[0],p)},getPrototypeOf(){return Reflect.getPrototypeOf(s[0])},has(u,p){return u0(u).includes(p)},ownKeys(u){return u0(u)},set(u,p,b){const _=u._storage||(u._storage=t());return u[p]=_[p]=b,delete u._keys,!0}})}function ti(s,r,o,i){const t={_cacheable:!1,_proxy:s,_context:r,_subProxy:o,_stack:new Set,_descriptors:Gm(s,i),setContext:e=>ti(s,e,o,i),override:e=>ti(s.override(e),r,o,i)};return new Proxy(t,{deleteProperty(e,u){return delete e[u],delete s[u],!0},get(e,u,p){return jm(e,u,()=>gv(e,u,p))},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,p){return s[u]=p,delete e[u],!0}})}function Gm(s,r={scriptable:!0,indexable:!0}){const{_scriptable:o=r.scriptable,_indexable:i=r.indexable,_allKeys:t=r.allKeys}=s;return{allKeys:t,scriptable:o,indexable:i,isScriptable:Qa(o)?o:()=>o,isIndexable:Qa(i)?i:()=>i}}const mv=(s,r)=>s?s+Af(r):r,If=(s,r)=>br(r)&&s!=="adapters"&&(Object.getPrototypeOf(r)===null||r.constructor===Object);function jm(s,r,o){if(Object.prototype.hasOwnProperty.call(s,r))return s[r];const i=o();return s[r]=i,i}function gv(s,r,o){const{_proxy:i,_context:t,_subProxy:e,_descriptors:u}=s;let p=i[r];return Qa(p)&&u.isScriptable(r)&&(p=bv(r,p,s,o)),Br(p)&&p.length&&(p=yv(r,p,s,u.isIndexable)),If(r,p)&&(p=ti(p,t,e&&e[r],u)),p}function bv(s,r,o,i){const{_proxy:t,_context:e,_subProxy:u,_stack:p}=o;if(p.has(s))throw new Error("Recursion detected: "+Array.from(p).join("->")+"->"+s);return p.add(s),r=r(e,u||i),p.delete(s),If(s,r)&&(r=Vf(t._scopes,t,s,r)),r}function yv(s,r,o,i){const{_proxy:t,_context:e,_subProxy:u,_descriptors:p}=o;if(aa(e.index)&&i(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=Vf(_,t,s,w);r.push(ti(S,e,u&&u[s],p))}}return r}function Wm(s,r,o){return Qa(s)?s(r,o):s}const _v=(s,r)=>s===!0?r:typeof s=="string"?Xa(r,s):void 0;function vv(s,r,o,i,t){for(const e of r){const u=_v(o,e);if(u){s.add(u);const p=Wm(u._fallback,o,t);if(aa(p)&&p!==o&&p!==i)return p}else if(u===!1&&aa(i)&&o!==i)return null}return!1}function Vf(s,r,o,i){const t=r._rootScopes,e=Wm(r._fallback,o,i),u=[...s,...t],p=new Set;p.add(i);let b=f0(p,u,o,e||o,i);return b===null||aa(e)&&e!==o&&(b=f0(p,u,e,b,i),b===null)?!1:Nf(Array.from(p),[""],t,e,()=>wv(r,o,i))}function f0(s,r,o,i,t){for(;o;)o=vv(s,r,o,i,t);return o}function wv(s,r,o){const i=s._getTarget();r in i||(i[r]={});const t=i[r];return Br(t)&&br(o)?o:t}function xv(s,r,o,i){let t;for(const e of r)if(t=Hm(mv(e,s),o),aa(t))return If(s,t)?Vf(o,i,s,t):t}function Hm(s,r){for(const o of r){if(!o)continue;const i=o[s];if(aa(i))return i}}function u0(s){let r=s._keys;return r||(r=s._keys=Cv(s._scopes)),r}function Cv(s){const r=new Set;for(const o of s)for(const i of Object.keys(o).filter(t=>!t.startsWith("_")))r.add(i);return Array.from(r)}function Ym(s,r,o,i){const{iScale:t}=s,{key:e="r"}=this._parsing,u=new Array(i);let p,b,_,w;for(p=0,b=i;prs==="x"?"y":"x";function Dv(s,r,o,i){const t=s.skip?r:s,e=r,u=o.skip?r:o,p=lf(e,t),b=lf(u,e);let _=p/(p+b),w=b/(p+b);_=isNaN(_)?0:_,w=isNaN(w)?0:w;const S=i*_,A=i*w;return{previous:{x:e.x-S*(u.x-t.x),y:e.y-S*(u.y-t.y)},next:{x:e.x+A*(u.x-t.x),y:e.y+A*(u.y-t.y)}}}function Av(s,r,o){const i=s.length;let t,e,u,p,b,_=ri(s,0);for(let w=0;w!_.skip)),r.cubicInterpolationMode==="monotone")Ev(s,t);else{let _=i?s[s.length-1]:s[0];for(e=0,u=s.length;ewindow.getComputedStyle(s,null);function kv(s,r){return vl(s).getPropertyValue(r)}const Lv=["top","right","bottom","left"];function Do(s,r,o){const i={};o=o?"-"+o:"";for(let t=0;t<4;t++){const e=Lv[t];i[e]=parseFloat(s[r+"-"+e+o])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}const Mv=(s,r,o)=>(s>0||r>0)&&(!o||!o.shadowRoot);function Ov(s,r){const o=s.touches,i=o&&o.length?o[0]:s,{offsetX:t,offsetY:e}=i;let u=!1,p,b;if(Mv(t,e,s.target))p=t,b=e;else{const _=r.getBoundingClientRect();p=i.clientX-_.left,b=i.clientY-_.top,u=!0}return{x:p,y:b,box:u}}function wo(s,r){if("native"in s)return s;const{canvas:o,currentDevicePixelRatio:i}=r,t=vl(o),e=t.boxSizing==="border-box",u=Do(t,"padding"),p=Do(t,"border","width"),{x:b,y:_,box:w}=Ov(s,o),S=u.left+(w&&p.left),A=u.top+(w&&p.top);let{width:E,height:M}=r;return e&&(E-=u.width+p.width,M-=u.height+p.height),{x:Math.round((b-S)/E*o.width/i),y:Math.round((_-A)/M*o.height/i)}}function Pv(s,r,o){let i,t;if(r===void 0||o===void 0){const e=Bf(s);if(!e)r=s.clientWidth,o=s.clientHeight;else{const u=e.getBoundingClientRect(),p=vl(e),b=Do(p,"border","width"),_=Do(p,"padding");r=u.width-_.width-b.width,o=u.height-_.height-b.height,i=ml(p.maxWidth,e,"clientWidth"),t=ml(p.maxHeight,e,"clientHeight")}}return{width:r,height:o,maxWidth:i||dl,maxHeight:t||dl}}const Jc=s=>Math.round(s*10)/10;function Nv(s,r,o,i){const t=vl(s),e=Do(t,"margin"),u=ml(t.maxWidth,s,"clientWidth")||dl,p=ml(t.maxHeight,s,"clientHeight")||dl,b=Pv(s,r,o);let{width:_,height:w}=b;if(t.boxSizing==="content-box"){const S=Do(t,"border","width"),A=Do(t,"padding");_-=A.width+S.width,w-=A.height+S.height}return _=Math.max(0,_-e.width),w=Math.max(0,i?Math.floor(_/i):w-e.height),_=Jc(Math.min(_,u,b.maxWidth)),w=Jc(Math.min(w,p,b.maxHeight)),_&&!w&&(w=Jc(_/2)),{width:_,height:w}}function d0(s,r,o){const i=r||1,t=Math.floor(s.height*i),e=Math.floor(s.width*i);s.height=t/i,s.width=e/i;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!==i||u.height!==t||u.width!==e?(s.currentDevicePixelRatio=i,u.height=t,u.width=e,s.ctx.setTransform(i,0,0,i,0,0),!0):!1}const Iv=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 h0(s,r){const o=kv(s,r),i=o&&o.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function xo(s,r,o,i){return{x:s.x+o*(r.x-s.x),y:s.y+o*(r.y-s.y)}}function Vv(s,r,o,i){return{x:s.x+o*(r.x-s.x),y:i==="middle"?o<.5?s.y:r.y:i==="after"?o<1?s.y:r.y:o>0?r.y:s.y}}function Bv(s,r,o,i){const t={x:s.cp2x,y:s.cp2y},e={x:r.cp1x,y:r.cp1y},u=xo(s,t,o),p=xo(t,e,o),b=xo(e,r,o),_=xo(u,p,o),w=xo(p,b,o);return xo(_,w,o)}const p0=new Map;function Uv(s,r){r=r||{};const o=s+JSON.stringify(r);let i=p0.get(o);return i||(i=new Intl.NumberFormat(s,r),p0.set(o,i)),i}function an(s,r,o){return Uv(r,o).format(s)}const zv=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,i){return o-i},leftForLtr(o,i){return o-i}}},Gv=function(){return{x(s){return s},setWidth(s){},textAlign(s){return s},xPlus(s,r){return s+r},leftForLtr(s,r){return s}}};function Zo(s,r,o){return s?zv(r,o):Gv()}function Jm(s,r){let o,i;(r==="ltr"||r==="rtl")&&(o=s.canvas.style,i=[o.getPropertyValue("direction"),o.getPropertyPriority("direction")],o.setProperty("direction",r,"important"),s.prevTextDirection=i)}function Xm(s,r){r!==void 0&&(delete s.prevTextDirection,s.canvas.style.setProperty("direction",r[0],r[1]))}function Qm(s){return s==="angle"?{between:$i,compare:E_,normalize:ca}:{between:Ya,compare:(r,o)=>r-o,normalize:r=>r}}function m0({start:s,end:r,count:o,loop:i,style:t}){return{start:s%o,end:r%o,loop:i&&(r-s+1)%o===0,style:t}}function jv(s,r,o){const{property:i,start:t,end:e}=o,{between:u,normalize:p}=Qm(i),b=r.length;let{start:_,end:w,loop:S}=s,A,E;if(S){for(_+=b,w+=b,A=0,E=b;Ab(t,ie,B)&&p(t,ie)!==0,H=()=>p(e,B)===0||b(e,ie,B),ne=()=>N||j(),W=()=>!N||H();for(let Ae=w,ve=w;Ae<=S;++Ae)ee=r[Ae%u],!ee.skip&&(B=_(ee[i]),B!==ie&&(N=b(B,t,e),q===null&&ne()&&(q=p(B,t)===0?Ae:ve),q!==null&&W()&&(M.push(m0({start:q,end:Ae,loop:A,count:u,style:E})),q=null),ve=Ae,ie=B));return q!==null&&M.push(m0({start:q,end:S,loop:A,count:u,style:E})),M}function Hv(s,r){const o=[],i=s.segments;for(let t=0;tt&&s[e%r].skip;)e--;return e%=r,{start:t,end:e}}function qv(s,r,o,i){const t=s.length,e=[];let u=r,p=s[r],b;for(b=r+1;b<=o;++b){const _=s[b%t];_.skip||_.stop?p.skip||(i=!1,e.push({start:r%t,end:(b-1)%t,loop:i}),r=u=_.stop?b:null):(u=b,p.skip&&(r=b)),p=_}return u!==null&&e.push({start:r%t,end:u%t,loop:i}),e}function Kv(s,r){const o=s.points,i=s.options.spanGaps,t=o.length;if(!t)return[];const e=!!s._loop,{start:u,end:p}=Yv(o,t,e,i);if(i===!0)return g0(s,[{start:u,end:p,loop:e}],o,r);const b=pp({chart:r,initial:o.initial,numSteps:u,currentStep:Math.min(i-o.start,u)}))}_refresh(){this._request||(this._running=!0,this._request=km.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(r=Date.now()){let o=0;this._charts.forEach((i,t)=>{if(!i.running||!i.items.length)return;const e=i.items;let u=e.length-1,p=!1,b;for(;u>=0;--u)b=e[u],b._active?(b._total>i.duration&&(i.duration=b._total),b.tick(r),p=!0):(e[u]=e[e.length-1],e.pop());p&&(t.draw(),this._notify(t,i,r,"progress")),e.length||(i.running=!1,this._notify(t,i,r,"complete"),i.initial=!1),o+=e.length}),this._lastDate=r,o===0&&(this._running=!1)}_getAnims(r){const o=this._charts;let i=o.get(r);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},o.set(r,i)),i}listen(r,o,i){this._getAnims(r).listeners[o].push(i)}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((i,t)=>Math.max(i,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 i=o.items;let t=i.length-1;for(;t>=0;--t)i[t].cancel();o.items=[],this._notify(r,o,Date.now(),"complete")}remove(r){return this._charts.delete(r)}}var Pa=new Qv;const y0="transparent",Zv={boolean(s,r,o){return o>.5?r:s},color(s,r,o){const i=l0(s||y0),t=i.valid&&l0(r||y0);return t&&t.valid?t.mix(i,o).hexString():r},number(s,r,o){return s+(r-s)*o}};class $v{constructor(r,o,i,t){const e=o[i];t=el([r.to,t,e,r.from]);const u=el([r.from,e,t]);this._active=!0,this._fn=r.fn||Zv[r.type||typeof u],this._easing=Ji[r.easing]||Ji.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=i,this._from=u,this._to=t,this._promises=void 0}active(){return this._active}update(r,o,i){if(this._active){this._notify(!1);const t=this._target[this._prop],e=i-this._start,u=this._duration-e;this._start=i,this._duration=Math.floor(Math.max(u,r.duration)),this._total+=e,this._loop=!!r.loop,this._to=el([r.to,o,t,r.from]),this._from=el([r.from,t,o])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(r){const o=r-this._start,i=this._duration,t=this._prop,e=this._from,u=this._loop,p=this._to;let b;if(this._active=e!==p&&(u||o1?2-b:b,b=this._easing(Math.min(1,Math.max(0,b))),this._target[t]=this._fn(e,p,b)}wait(){const r=this._promises||(this._promises=[]);return new Promise((o,i)=>{r.push({res:o,rej:i})})}_notify(r){const o=r?"res":"rej",i=this._promises||[];for(let t=0;ts!=="onProgress"&&s!=="onComplete"&&s!=="fn"});lr.set("animations",{colors:{type:"color",properties:tw},numbers:{type:"number",properties:ew}});lr.describe("animations",{_fallback:"animation"});lr.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 Zm{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(i=>{const t=r[i];if(!br(t))return;const e={};for(const u of rw)e[u]=t[u];(Br(t.properties)&&t.properties||[i]).forEach(u=>{(u===i||!o.has(u))&&o.set(u,e)})})}_animateOptions(r,o){const i=o.options,t=aw(r,i);if(!t)return[];const e=this._createAnimations(t,i);return i.$shared&&sw(r.options.$animations,i).then(()=>{r.options=i},()=>{}),e}_createAnimations(r,o){const i=this._properties,t=[],e=r.$animations||(r.$animations={}),u=Object.keys(o),p=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 A=i.get(_);if(S)if(A&&S.active()){S.update(A,w,p);continue}else S.cancel();if(!A||!A.duration){r[_]=w;continue}e[_]=S=new $v(A,r,_,w),t.push(S)}return t}update(r,o){if(this._properties.size===0){Object.assign(r,o);return}const i=this._createAnimations(r,o);if(i.length)return Pa.add(this._chart,i),!0}}function sw(s,r){const o=[],i=Object.keys(r);for(let t=0;t0||!o&&e<0)return t.index}return null}function C0(s,r){const{chart:o,_cachedMeta:i}=s,t=o._stacks||(o._stacks={}),{iScale:e,vScale:u,index:p}=i,b=e.axis,_=u.axis,w=lw(e,u,i),S=r.length;let A;for(let E=0;Eo[i].axis===r).shift()}function uw(s,r){return Za(s,{active:!1,dataset:void 0,datasetIndex:r,index:r,mode:"default",type:"dataset"})}function dw(s,r,o){return Za(s,{active:!1,dataIndex:r,parsed:void 0,raw:void 0,element:o,index:r,mode:"default",type:"data"})}function Ui(s,r){const o=s.controller.index,i=s.vScale&&s.vScale.axis;if(i){r=r||s._parsed;for(const t of r){const e=t._stacks;if(!e||e[i]===void 0||e[i][o]===void 0)return;delete e[i][o]}}}const Qc=s=>s==="reset"||s==="none",F0=(s,r)=>r?s:Object.assign({},s),hw=(s,r,o)=>s&&!r.hidden&&r._stacked&&{keys:$m(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=w0(r.vScale,r),this.addElements()}updateIndex(r){this.index!==r&&Ui(this._cachedMeta),this.index=r}linkScales(){const r=this.chart,o=this._cachedMeta,i=this.getDataset(),t=(S,A,E,M)=>S==="x"?A:S==="r"?M:E,e=o.xAxisID=Gt(i.xAxisID,Xc(r,"x")),u=o.yAxisID=Gt(i.yAxisID,Xc(r,"y")),p=o.rAxisID=Gt(i.rAxisID,Xc(r,"r")),b=o.indexAxis,_=o.iAxisID=t(b,e,u,p),w=o.vAxisID=t(b,u,e,p);o.xScale=this.getScaleForId(e),o.yScale=this.getScaleForId(u),o.rScale=this.getScaleForId(p),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&&t0(this._data,this),r._stacked&&Ui(r)}_dataCheck(){const r=this.getDataset(),o=r.data||(r.data=[]),i=this._data;if(br(o))this._data=nw(o);else if(i!==o){if(i){t0(i,this);const t=this._cachedMeta;Ui(t),t._parsed=[]}o&&Object.isExtensible(o)&&L_(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,i=this.getDataset();let t=!1;this._dataCheck();const e=o._stacked;o._stacked=w0(o.vScale,o),o.stack!==i.stack&&(t=!0,Ui(o),o.stack=i.stack),this._resyncElements(r),(t||e!==o._stacked)&&C0(this,o._parsed)}configure(){const r=this.chart.config,o=r.datasetScopeKeys(this._type),i=r.getOptionScopes(this.getDataset(),o,!0);this.options=r.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(r,o){const{_cachedMeta:i,_data:t}=this,{iScale:e,_stacked:u}=i,p=e.axis;let b=r===0&&o===t.length?!0:i._sorted,_=r>0&&i._parsed[r-1],w,S,A;if(this._parsing===!1)i._parsed=t,i._sorted=!0,A=t;else{Br(t[r])?A=this.parseArrayData(i,t,r,o):br(t[r])?A=this.parseObjectData(i,t,r,o):A=this.parsePrimitiveData(i,t,r,o);const E=()=>S[p]===null||_&&S[p]<_[p];for(w=0;wN||S=0;--A)if(!M()){this.updateRangeFromParsed(_,r,E,b);break}}return _}getAllParsedValues(r){const o=this._cachedMeta._parsed,i=[];let t,e,u;for(t=0,e=o.length;t=0&&rthis.getContext(i,t),N=_.resolveNamedOptions(A,E,M,S);return N.$shared&&(N.$shared=b,e[u]=Object.freeze(F0(N,b))),N}_resolveAnimations(r,o,i){const t=this.chart,e=this._cachedDataOpts,u=`animation-${o}`,p=e[u];if(p)return p;let b;if(t.options.animation!==!1){const w=this.chart.config,S=w.datasetAnimationScopeKeys(this._type,o),A=w.getOptionScopes(this.getDataset(),S);b=w.createResolver(A,this.getContext(r,i,o))}const _=new Zm(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||Qc(r)||this.chart._animationsDisabled}_getSharedOptions(r,o){const i=this.resolveDataElementOptions(r,o),t=this._sharedOptions,e=this.getSharedOptions(i),u=this.includeOptions(o,e)||e!==t;return this.updateSharedOptions(e,o,i),{sharedOptions:e,includeOptions:u}}updateElement(r,o,i,t){Qc(t)?Object.assign(r,i):this._resolveAnimations(o,t).update(r,i)}updateSharedOptions(r,o,i){r&&!Qc(o)&&this._resolveAnimations(void 0,o).update(r,i)}_setStyle(r,o,i,t){r.active=t;const e=this.getStyle(o,t);this._resolveAnimations(o,i,t).update(r,{options:!t&&this.getSharedOptions(e)||e})}removeHoverStyle(r,o,i){this._setStyle(r,i,"active",!1)}setHoverStyle(r,o,i){this._setStyle(r,i,"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,i=this._cachedMeta.data;for(const[p,b,_]of this._syncList)this[p](b,_);this._syncList=[];const t=i.length,e=o.length,u=Math.min(e,t);u&&this.parse(0,u),e>t?this._insertElements(t,e-t,r):e{for(_.length+=o,p=_.length-1;p>=u;p--)_[p]=_[p-o]};for(b(e),p=r;pt-e))}return s._cache.$bar}function mw(s){const r=s.iScale,o=pw(r,s.type);let i=r._length,t,e,u,p;const b=()=>{u===32767||u===-32768||(aa(p)&&(i=Math.min(i,Math.abs(u-p)||i)),p=u)};for(t=0,e=o.length;t0?t[s-1]:null,p=sMath.abs(p)&&(b=p,_=u),r[o.axis]=_,r._custom={barStart:b,barEnd:_,start:t,end:e,min:u,max:p}}function eg(s,r,o,i){return Br(s)?yw(s,r,o,i):r[o.axis]=o.parse(s,i),r}function D0(s,r,o,i){const t=s.iScale,e=s.vScale,u=t.getLabels(),p=t===e,b=[];let _,w,S,A;for(_=o,w=o+i;_=o?1:-1)}function vw(s){let r,o,i,t,e;return s.horizontal?(r=s.base>s.x,o="left",i="right"):(r=s.baseb.controller.options.grouped),e=i.options.stacked,u=[],p=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&&p(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,i){const t=this._getStacks(r,i),e=o!==void 0?t.indexOf(o):-1;return e===-1?t.length-1:e}_getRuler(){const r=this.options,o=this._cachedMeta,i=o.iScale,t=[];let e,u;for(e=0,u=o.data.length;e=0;--i)o=Math.max(o,r[i].size(this.resolveDataElementOptions(i))/2);return o>0&&o}getLabelAndValue(r){const o=this._cachedMeta,{xScale:i,yScale:t}=o,e=this.getParsed(r),u=i.getLabelForValue(e.x),p=t.getLabelForValue(e.y),b=e._custom;return{label:o.label,value:"("+u+", "+p+(b?", "+b:"")+")"}}update(r){const o=this._cachedMeta.data;this.updateElements(o,0,o.length,r)}updateElements(r,o,i,t){const e=t==="reset",{iScale:u,vScale:p}=this._cachedMeta,{sharedOptions:b,includeOptions:_}=this._getSharedOptions(o,t),w=u.axis,S=p.axis;for(let A=o;A$i(ie,p,b,!0)?1:Math.max(j,j*o,H,H*o),M=(ie,j,H)=>$i(ie,p,b,!0)?-1:Math.min(j,j*o,H,H*o),N=E(0,_,S),q=E(Qr,w,A),B=M(zr,_,S),ee=M(zr+Qr,w,A);i=(N-B)/2,t=(q-ee)/2,e=-(N+B)/2,u=-(q+ee)/2}return{ratioX:i,ratioY:t,offsetX:e,offsetY:u}}class on 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 i=this.getDataset().data,t=this._cachedMeta;if(this._parsing===!1)t._parsed=i;else{let e=b=>+i[b];if(br(i[r])){const{key:b="value"}=this._parsing;e=_=>+Xa(i[_],b)}let u,p;for(u=r,p=r+o;u0&&!isNaN(r)?Or*(Math.abs(r)/o):0}getLabelAndValue(r){const o=this._cachedMeta,i=this.chart,t=i.data.labels||[],e=an(o._parsed[r],i.options.locale);return{label:t[r]||"",value:e}}getMaxBorderWidth(r){let o=0;const i=this.chart;let t,e,u,p,b;if(!r){for(t=0,e=i.data.datasets.length;ts!=="spacing",_indexable:s=>s!=="spacing"};on.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((i,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:i,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 Br(r)?(r=r.slice(),r[0]+=o):r+=o,r}}}}};class zf extends ua{initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(r){const o=this._cachedMeta,{dataset:i,data:t=[],_dataset:e}=o,u=this.chart._animationsDisabled;let{start:p,count:b}=Mm(o,t,u);this._drawStart=p,this._drawCount=b,Om(o)&&(p=0,b=t.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!e._decimated,i.points=t;const _=this.resolveDatasetElementOptions(r);this.options.showLine||(_.borderWidth=0),_.segment=this.options.segment,this.updateElement(i,void 0,{animated:!u,options:_},r),this.updateElements(t,p,b,r)}updateElements(r,o,i,t){const e=t==="reset",{iScale:u,vScale:p,_stacked:b,_dataset:_}=this._cachedMeta,{sharedOptions:w,includeOptions:S}=this._getSharedOptions(o,t),A=u.axis,E=p.axis,{spanGaps:M,segment:N}=this.options,q=ei(M)?M:Number.POSITIVE_INFINITY,B=this.chart._animationsDisabled||e||t==="none";let ee=o>0&&this.getParsed(o-1);for(let ie=o;ie0&&Math.abs(H[A]-ee[A])>q,N&&(ne.parsed=H,ne.raw=_.data[ie]),S&&(ne.options=w||this.resolveDataElementOptions(ie,j.active?"active":t)),B||this.updateElement(j,ie,ne,t),ee=H}}getMaxOverflow(){const r=this._cachedMeta,o=r.dataset,i=o.options&&o.options.borderWidth||0,t=r.data||[];if(!t.length)return i;const e=t[0].size(this.resolveDataElementOptions(0)),u=t[t.length-1].size(this.resolveDataElementOptions(t.length-1));return Math.max(i,e,u)/2}draw(){const r=this._cachedMeta;r.dataset.updateControlPoints(this.chart.chartArea,r.iScale.axis),super.draw()}}zf.id="line";zf.defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};zf.overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};class Gf extends ua{constructor(r,o){super(r,o),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(r){const o=this._cachedMeta,i=this.chart,t=i.data.labels||[],e=an(o._parsed[r].r,i.options.locale);return{label:t[r]||"",value:e}}parseObjectData(r,o,i,t){return Ym.bind(this)(r,o,i,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((i,t)=>{const e=this.getParsed(t).r;!isNaN(e)&&this.chart.getDataVisibility(t)&&(eo.max&&(o.max=e))}),o}_updateRadius(){const r=this.chart,o=r.chartArea,i=r.options,t=Math.min(o.right-o.left,o.bottom-o.top),e=Math.max(t/2,0),u=Math.max(i.cutoutPercentage?e/100*i.cutoutPercentage:1,0),p=(e-u)/r.getVisibleDatasetCount();this.outerRadius=e-p*this.index,this.innerRadius=this.outerRadius-p}updateElements(r,o,i,t){const e=t==="reset",u=this.chart,b=u.options.animation,_=this._cachedMeta.rScale,w=_.xCenter,S=_.yCenter,A=_.getIndexAngle(0)-.5*zr;let E=A,M;const N=360/this.countVisibleElements();for(M=0;M{!isNaN(this.getParsed(t).r)&&this.chart.getDataVisibility(t)&&o++}),o}_computeAngle(r,o,i){return this.chart.getDataVisibility(r)?fa(this.resolveDataElementOptions(r,o).angle||i):0}}Gf.id="polarArea";Gf.defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};Gf.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((i,t)=>{const u=s.getDatasetMeta(0).controller.getStyle(t);return{text:i,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 tg extends on{}tg.id="pie";tg.defaults={cutout:0,rotation:0,circumference:360,radius:"100%"};class jf extends ua{getLabelAndValue(r){const o=this._cachedMeta.vScale,i=this.getParsed(r);return{label:o.getLabels()[r],value:""+o.getLabelForValue(i[o.axis])}}parseObjectData(r,o,i,t){return Ym.bind(this)(r,o,i,t)}update(r){const o=this._cachedMeta,i=o.dataset,t=o.data||[],e=o.iScale.getLabels();if(i.points=t,r!=="resize"){const u=this.resolveDatasetElementOptions(r);this.options.showLine||(u.borderWidth=0);const p={_loop:!0,_fullLoop:e.length===t.length,options:u};this.updateElement(i,void 0,p,r)}this.updateElements(t,0,t.length,r)}updateElements(r,o,i,t){const e=this._cachedMeta.rScale,u=t==="reset";for(let p=o;p{t[e]=i[e]&&i[e].active()?i[e]._to:this[e]}),t}}da.defaults={};da.defaultRoutes=void 0;const rg={values(s){return Br(s)?s:""+s},numeric(s,r,o){if(s===0)return"0";const i=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=Dw(s,o)}const u=ra(Math.abs(e)),p=Math.max(Math.min(-1*Math.floor(u),20),0),b={notation:t,minimumFractionDigits:p,maximumFractionDigits:p};return Object.assign(b,this.options.ticks.format),an(s,i,b)},logarithmic(s,r,o){if(s===0)return"0";const i=s/Math.pow(10,Math.floor(ra(s)));return i===1||i===2||i===5?rg.numeric.call(this,s,r,o):""}};function Dw(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 wl={formatters:rg};lr.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:wl.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}});lr.route("scale.ticks","color","","color");lr.route("scale.grid","color","","borderColor");lr.route("scale.grid","borderColor","","borderColor");lr.route("scale.title","color","","color");lr.describe("scale",{_fallback:!1,_scriptable:s=>!s.startsWith("before")&&!s.startsWith("after")&&s!=="callback"&&s!=="parser",_indexable:s=>s!=="borderDash"&&s!=="tickBorderDash"});lr.describe("scales",{_fallback:"scale"});lr.describe("scale.ticks",{_scriptable:s=>s!=="backdropPadding"&&s!=="callback",_indexable:s=>s!=="backdropPadding"});function Aw(s,r){const o=s.options.ticks,i=o.maxTicksLimit||Sw(s),t=o.major.enabled?Tw(r):[],e=t.length,u=t[0],p=t[e-1],b=[];if(e>i)return Rw(r,b,t,e/i),b;const _=Ew(t,r,i);if(e>0){let w,S;const A=e>1?Math.round((p-u)/(e-1)):null;for(rl(r,b,_,xr(A)?0:u-A,u),w=0,S=e-1;wt)return b}return Math.max(t,1)}function Tw(s){const r=[];let o,i;for(o=0,i=s.length;os==="left"?"right":s==="right"?"left":s,E0=(s,r,o)=>r==="top"||r==="left"?s[r]+o:s[r]-o;function T0(s,r){const o=[],i=s.length/r,t=s.length;let e=0;for(;eu+p)))return b}function Ow(s,r){Sr(s,o=>{const i=o.gc,t=i.length/2;let e;if(t>r){for(e=0;ei?i:o,i=t&&o>i?o:i,{min:ta(o,ta(i,o)),max:ta(i,ta(o,i))}}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(){Pr(this.options.beforeUpdate,[this])}update(r,o,i){const{beginAtZero:t,grace:e,ticks:u}=this.options,p=u.sampleSize;this.beforeUpdate(),this.maxWidth=r,this.maxHeight=o,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=pv(this,e,t),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const b=p=e||i<=1||!this.isHorizontal()){this.labelRotation=t;return}const w=this._getLabelSizes(),S=w.widest.width,A=w.highest.height,E=Es(this.chart.width-S,0,this.maxWidth);p=r.offset?this.maxWidth/i:E/(i-1),S+6>p&&(p=E/(i-(r.offset?.5:1)),b=this.maxHeight-zi(r.grid)-o.padding-R0(r.title,this.chart.options.font),_=Math.sqrt(S*S+A*A),u=Sf(Math.min(Math.asin(Es((w.highest.height+6)/p,-1,1)),Math.asin(Es(b/_,-1,1))-Math.asin(Es(A/_,-1,1)))),u=Math.max(t,Math.min(e,u))),this.labelRotation=u}afterCalculateLabelRotation(){Pr(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){Pr(this.options.beforeFit,[this])}fit(){const r={width:0,height:0},{chart:o,options:{ticks:i,title:t,grid:e}}=this,u=this._isVisible(),p=this.isHorizontal();if(u){const b=R0(t,o.options.font);if(p?(r.width=this.maxWidth,r.height=zi(e)+b):(r.height=this.maxHeight,r.width=zi(e)+b),i.display&&this.ticks.length){const{first:_,last:w,widest:S,highest:A}=this._getLabelSizes(),E=i.padding*2,M=fa(this.labelRotation),N=Math.cos(M),q=Math.sin(M);if(p){const B=i.mirror?0:q*S.width+N*A.height;r.height=Math.min(this.maxHeight,r.height+B+E)}else{const B=i.mirror?0:N*S.width+q*A.height;r.width=Math.min(this.maxWidth,r.width+B+E)}this._calculatePadding(_,w,q,N)}}this._handleMargins(),p?(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,i,t){const{ticks:{align:e,padding:u},position:p}=this.options,b=this.labelRotation!==0,_=p!=="top"&&this.axis==="x";if(this.isHorizontal()){const w=this.getPixelForTick(0)-this.left,S=this.right-this.getPixelForTick(this.ticks.length-1);let A=0,E=0;b?_?(A=t*r.width,E=i*o.height):(A=i*r.height,E=t*o.width):e==="start"?E=o.width:e==="end"?A=r.width:e!=="inner"&&(A=r.width/2,E=o.width/2),this.paddingLeft=Math.max((A-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(){Pr(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,i;for(o=0,i=r.length;o({width:e[W]||0,height:u[W]||0});return{first:ne(0),last:ne(o-1),widest:ne(j),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 T_(this._alignToPixels?_o(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&&rp*t?p/i:b/t:b*t0}_computeGridLineItems(r){const o=this.axis,i=this.chart,t=this.options,{grid:e,position:u}=t,p=e.offset,b=this.isHorizontal(),w=this.ticks.length+(p?1:0),S=zi(e),A=[],E=e.setContext(this.getContext()),M=E.drawBorder?E.borderWidth:0,N=M/2,q=function(st){return _o(i,st,M)};let B,ee,ie,j,H,ne,W,Ae,ve,it,ft,Je;if(u==="top")B=q(this.bottom),ne=this.bottom-S,Ae=B-N,it=q(r.top)+N,Je=r.bottom;else if(u==="bottom")B=q(this.top),it=r.top,Je=q(r.bottom)-N,ne=B+N,Ae=this.top+S;else if(u==="left")B=q(this.right),H=this.right-S,W=B-N,ve=q(r.left)+N,ft=r.right;else if(u==="right")B=q(this.left),ve=r.left,ft=q(r.right)-N,H=B+N,W=this.left+S;else if(o==="x"){if(u==="center")B=q((r.top+r.bottom)/2+.5);else if(br(u)){const st=Object.keys(u)[0],Mt=u[st];B=q(this.chart.scales[st].getPixelForValue(Mt))}it=r.top,Je=r.bottom,ne=B+N,Ae=ne+S}else if(o==="y"){if(u==="center")B=q((r.left+r.right)/2);else if(br(u)){const st=Object.keys(u)[0],Mt=u[st];B=q(this.chart.scales[st].getPixelForValue(Mt))}H=B-N,W=H-S,ve=r.left,ft=r.right}const ut=Gt(t.ticks.maxTicksLimit,w),bt=Math.max(1,Math.ceil(w/ut));for(ee=0;eee.value===r);return t>=0?o.setContext(this.getContext(t)).lineWidth:0}drawGrid(r){const o=this.options.grid,i=this.ctx,t=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(r));let e,u;const p=(b,_,w)=>{!w.width||!w.color||(i.save(),i.lineWidth=w.width,i.strokeStyle=w.color,i.setLineDash(w.borderDash||[]),i.lineDashOffset=w.borderDashOffset,i.beginPath(),i.moveTo(b.x,b.y),i.lineTo(_.x,_.y),i.stroke(),i.restore())};if(o.display)for(e=0,u=t.length;e{this.draw(t)}}]:[{z:i,draw:t=>{this.drawBackground(),this.drawGrid(t),this.drawTitle()}},{z:i+1,draw:()=>{this.drawBorder()}},{z:o,draw:t=>{this.drawLabels(t)}}]}getMatchingVisibleMetas(r){const o=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",t=[];let e,u;for(e=0,u=o.length;e{const i=o.split("."),t=i.pop(),e=[s].concat(i).join("."),u=r[o].split("."),p=u.pop(),b=u.join(".");lr.route(e,t,b,p)})}function zw(s){return"id"in s&&"defaults"in s}class Gw{constructor(){this.controllers=new sl(ua,"datasets",!0),this.elements=new sl(da,"elements"),this.plugins=new sl(Object,"plugins"),this.scales=new sl(Ro,"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,i){[...o].forEach(t=>{const e=i||this._getRegistryForType(t);i||e.isForType(t)||e===this.plugins&&t.id?this._exec(r,e,t):Sr(t,u=>{const p=i||this._getRegistryForType(u);this._exec(r,p,u)})})}_exec(r,o,i){const t=Af(r);Pr(i["before"+t],[],i),o[r](i),Pr(i["after"+t],[],i)}_getRegistryForType(r){for(let o=0;o0&&this.getParsed(o-1);for(let j=o;j0&&Math.abs(ne[E]-ie[E])>B,q&&(W.parsed=ne,W.raw=_.data[j]),A&&(W.options=S||this.resolveDataElementOptions(j,H.active?"active":t)),ee||this.updateElement(H,j,W,t),ie=ne}this.updateSharedOptions(S,t,w)}getMaxOverflow(){const r=this._cachedMeta,o=r.data||[];if(!this.options.showLine){let p=0;for(let b=o.length-1;b>=0;--b)p=Math.max(p,o[b].size(this.resolveDataElementOptions(b))/2);return p>0&&p}const i=r.dataset,t=i.options&&i.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}}Wf.id="scatter";Wf.defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};Wf.overrides={interaction:{mode:"point"},plugins:{tooltip:{callbacks:{title(){return""},label(s){return"("+s.label+", "+s.formattedValue+")"}}}},scales:{x:{type:"linear"},y:{type:"linear"}}};function vo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class df{constructor(r){this.options=r||{}}init(r){}formats(){return vo()}parse(r,o){return vo()}format(r,o){return vo()}add(r,o,i){return vo()}diff(r,o,i){return vo()}startOf(r,o,i){return vo()}endOf(r,o){return vo()}}df.override=function(s){Object.assign(df.prototype,s)};var jw={_date:df};function Ww(s,r,o,i){const{controller:t,data:e,_sorted:u}=s,p=t._cachedMeta.iScale;if(p&&r===p.axis&&r!=="r"&&u&&e.length){const b=p._reversePixels?R_:Co;if(i){if(t._sharedOptions){const _=e[0],w=typeof _.getRange=="function"&&_.getRange(r);if(w){const S=b(e,r,o-w),A=b(e,r,o+w);return{lo:S.lo,hi:A.hi}}}}else return b(e,r,o)}return{lo:0,hi:e.length-1}}function nn(s,r,o,i,t){const e=s.getSortedVisibleDatasetMetas(),u=o[r];for(let p=0,b=e.length;p{b[u](r[o],t)&&(e.push({element:b,datasetIndex:_,index:w}),p=p||b.inRange(r.x,r.y,t))}),i&&!p?[]:e}var Kw={evaluateInteractionItems:nn,modes:{index(s,r,o,i){const t=wo(r,s),e=o.axis||"x",u=o.includeInvisible||!1,p=o.intersect?$c(s,t,e,i,u):ef(s,t,e,!1,i,u),b=[];return p.length?(s.getSortedVisibleDatasetMetas().forEach(_=>{const w=p[0].index,S=_.data[w];S&&!S.skip&&b.push({element:S,datasetIndex:_.index,index:w})}),b):[]},dataset(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;let p=o.intersect?$c(s,t,e,i,u):ef(s,t,e,!1,i,u);if(p.length>0){const b=p[0].datasetIndex,_=s.getDatasetMeta(b).data;p=[];for(let w=0;w<_.length;++w)p.push({element:_[w],datasetIndex:b,index:w})}return p},point(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return $c(s,t,e,i,u)},nearest(s,r,o,i){const t=wo(r,s),e=o.axis||"xy",u=o.includeInvisible||!1;return ef(s,t,e,o.intersect,i,u)},x(s,r,o,i){const t=wo(r,s);return k0(s,t,"x",o.intersect,i)},y(s,r,o,i){const t=wo(r,s);return k0(s,t,"y",o.intersect,i)}}};const sg=["left","top","right","bottom"];function Gi(s,r){return s.filter(o=>o.pos===r)}function L0(s,r){return s.filter(o=>sg.indexOf(o.pos)===-1&&o.box.axis===r)}function ji(s,r){return s.sort((o,i)=>{const t=r?i:o,e=r?o:i;return t.weight===e.weight?t.index-e.index:t.weight-e.weight})}function Jw(s){const r=[];let o,i,t,e,u,p;for(o=0,i=(s||[]).length;o_.box.fullSize),!0),i=ji(Gi(r,"left"),!0),t=ji(Gi(r,"right")),e=ji(Gi(r,"top"),!0),u=ji(Gi(r,"bottom")),p=L0(r,"x"),b=L0(r,"y");return{fullSize:o,leftAndTop:i.concat(e),rightAndBottom:t.concat(b).concat(u).concat(p),chartArea:Gi(r,"chartArea"),vertical:i.concat(t).concat(b),horizontal:e.concat(u).concat(p)}}function M0(s,r,o,i){return Math.max(s[o],r[o])+Math.max(s[i],r[i])}function ag(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 $w(s,r,o,i){const{pos:t,box:e}=o,u=s.maxPadding;if(!br(t)){o.size&&(s[t]-=o.size);const S=i[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&&ag(u,e.getPadding());const p=Math.max(0,r.outerWidth-M0(u,s,"left","right")),b=Math.max(0,r.outerHeight-M0(u,s,"top","bottom")),_=p!==s.w,w=b!==s.h;return s.w=p,s.h=b,o.horizontal?{same:_,other:w}:{same:w,other:_}}function e4(s){const r=s.maxPadding;function o(i){const t=Math.max(r[i]-s[i],0);return s[i]+=t,t}s.y+=o("top"),s.x+=o("left"),o("right"),o("bottom")}function t4(s,r){const o=r.maxPadding;function i(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 i(s?["left","right"]:["top","bottom"])}function Yi(s,r,o,i){const t=[];let e,u,p,b,_,w;for(e=0,u=s.length,_=0;e{typeof N.beforeLayout=="function"&&N.beforeLayout()});const w=b.reduce((N,q)=>q.box.options&&q.box.options.display===!1?N:N+1,0)||1,S=Object.freeze({outerWidth:r,outerHeight:o,padding:t,availableWidth:e,availableHeight:u,vBoxMaxWidth:e/2/w,hBoxMaxHeight:u/2}),A=Object.assign({},t);ag(A,Ts(i));const E=Object.assign({maxPadding:A,w:e,h:u,x:t.left,y:t.top},t),M=Qw(b.concat(_),S);Yi(p.fullSize,E,S,M),Yi(b,E,S,M),Yi(_,E,S,M)&&Yi(b,E,S,M),e4(E),O0(p.leftAndTop,E,S,M),E.x+=E.w,E.y+=E.h,O0(p.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},Sr(p.chartArea,N=>{const q=N.box;Object.assign(q,s.chartArea),q.update(E.w,E.h,{left:0,top:0,right:0,bottom:0})})}};class og{acquireContext(r,o){}releaseContext(r){return!1}addEventListener(r,o,i){}removeEventListener(r,o,i){}getDevicePixelRatio(){return 1}getMaximumSize(r,o,i,t){return o=Math.max(0,o||r.width),i=i||r.height,{width:o,height:Math.max(0,t?Math.floor(o/t):i)}}isAttached(r){return!0}updateConfig(r){}}class r4 extends og{acquireContext(r){return r&&r.getContext&&r.getContext("2d")||null}updateConfig(r){r.options.animation=!1}}const ll="$chartjs",s4={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},P0=s=>s===null||s==="";function a4(s,r){const o=s.style,i=s.getAttribute("height"),t=s.getAttribute("width");if(s[ll]={initial:{height:i,width:t,style:{display:o.display,height:o.height,width:o.width}}},o.display=o.display||"block",o.boxSizing=o.boxSizing||"border-box",P0(t)){const e=h0(s,"width");e!==void 0&&(s.width=e)}if(P0(i))if(s.style.height==="")s.height=s.width/(r||2);else{const e=h0(s,"height");e!==void 0&&(s.height=e)}return s}const ig=Iv?{passive:!0}:!1;function o4(s,r,o){s.addEventListener(r,o,ig)}function i4(s,r,o){s.canvas.removeEventListener(r,o,ig)}function n4(s,r){const o=s4[s.type]||s.type,{x:i,y:t}=wo(s,r);return{type:o,chart:r,native:s,x:i!==void 0?i:null,y:t!==void 0?t:null}}function gl(s,r){for(const o of s)if(o===r||o.contains(r))return!0}function l4(s,r,o){const i=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const p of e)u=u||gl(p.addedNodes,i),u=u&&!gl(p.removedNodes,i);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}function c4(s,r,o){const i=s.canvas,t=new MutationObserver(e=>{let u=!1;for(const p of e)u=u||gl(p.removedNodes,i),u=u&&!gl(p.addedNodes,i);u&&o()});return t.observe(document,{childList:!0,subtree:!0}),t}const rn=new Map;let N0=0;function ng(){const s=window.devicePixelRatio;s!==N0&&(N0=s,rn.forEach((r,o)=>{o.currentDevicePixelRatio!==s&&r()}))}function f4(s,r){rn.size||window.addEventListener("resize",ng),rn.set(s,r)}function u4(s){rn.delete(s),rn.size||window.removeEventListener("resize",ng)}function d4(s,r,o){const i=s.canvas,t=i&&Bf(i);if(!t)return;const e=Lm((p,b)=>{const _=t.clientWidth;o(p,b),_{const b=p[0],_=b.contentRect.width,w=b.contentRect.height;_===0&&w===0||e(_,w)});return u.observe(t),f4(s,e),u}function tf(s,r,o){o&&o.disconnect(),r==="resize"&&u4(s)}function h4(s,r,o){const i=s.canvas,t=Lm(e=>{s.ctx!==null&&o(n4(e,s))},s,e=>{const u=e[0];return[u,u.offsetX,u.offsetY]});return o4(i,r,t),t}class p4 extends og{acquireContext(r,o){const i=r&&r.getContext&&r.getContext("2d");return i&&i.canvas===r?(a4(r,o),i):null}releaseContext(r){const o=r.canvas;if(!o[ll])return!1;const i=o[ll].initial;["height","width"].forEach(e=>{const u=i[e];xr(u)?o.removeAttribute(e):o.setAttribute(e,u)});const t=i.style||{};return Object.keys(t).forEach(e=>{o.style[e]=t[e]}),o.width=o.width,delete o[ll],!0}addEventListener(r,o,i){this.removeEventListener(r,o);const t=r.$proxies||(r.$proxies={}),u={attach:l4,detach:c4,resize:d4}[o]||h4;t[o]=u(r,o,i)}removeEventListener(r,o){const i=r.$proxies||(r.$proxies={}),t=i[o];if(!t)return;({attach:tf,detach:tf,resize:tf}[o]||i4)(r,o,t),i[o]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(r,o,i,t){return Nv(r,o,i,t)}isAttached(r){const o=Bf(r);return!!(o&&o.isConnected)}}function m4(s){return!Km()||typeof OffscreenCanvas<"u"&&s instanceof OffscreenCanvas?r4:p4}class g4{constructor(){this._init=[]}notify(r,o,i,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,i);return o==="afterDestroy"&&(this._notify(e,r,"stop"),this._notify(this._init,r,"uninstall")),u}_notify(r,o,i,t){t=t||{};for(const e of r){const u=e.plugin,p=u[i],b=[o,t,e.options];if(Pr(p,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 i=r&&r.config,t=Gt(i.options&&i.options.plugins,{}),e=b4(i);return t===!1&&!o?[]:_4(r,e,t,o)}_notifyStateChanges(r){const o=this._oldCache||[],i=this._cache,t=(e,u)=>e.filter(p=>!u.some(b=>p.plugin.id===b.plugin.id));this._notify(t(o,i),r,"stop"),this._notify(t(i,o),r,"start")}}function b4(s){const r={},o=[],i=Object.keys(Ca.plugins.items);for(let e=0;e{const b=i[p];if(!br(b))return console.error(`Invalid scale configuration for scale: ${p}`);if(b._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${p}`);const _=pf(p,b),w=x4(_,t),S=o.scales||{};e[_]=e[_]||p,u[p]=qi(Object.create(null),[{axis:_},b,S[_],S[w]])}),s.data.datasets.forEach(p=>{const b=p.type||s.type,_=p.indexAxis||hf(b,r),S=(Ao[b]||{}).scales||{};Object.keys(S).forEach(A=>{const E=w4(A,_),M=p[E+"AxisID"]||e[E]||E;u[M]=u[M]||Object.create(null),qi(u[M],[{axis:E},i[M],S[A]])})}),Object.keys(u).forEach(p=>{const b=u[p];qi(b,[lr.scales[b.type],lr.scale])}),u}function lg(s){const r=s.options||(s.options={});r.plugins=Gt(r.plugins,{}),r.scales=F4(s,r)}function cg(s){return s=s||{},s.datasets=s.datasets||[],s.labels=s.labels||[],s}function D4(s){return s=s||{},s.data=cg(s.data),lg(s),s}const I0=new Map,fg=new Set;function ol(s,r){let o=I0.get(s);return o||(o=r(),I0.set(s,o),fg.add(o)),o}const Wi=(s,r,o)=>{const i=Xa(r,o);i!==void 0&&s.add(i)};class A4{constructor(r){this._config=D4(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=cg(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(),lg(r)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(r){return ol(r,()=>[[`datasets.${r}`,""]])}datasetAnimationScopeKeys(r,o){return ol(`${r}.transition.${o}`,()=>[[`datasets.${r}.transitions.${o}`,`transitions.${o}`],[`datasets.${r}`,""]])}datasetElementScopeKeys(r,o){return ol(`${r}-${o}`,()=>[[`datasets.${r}.elements.${o}`,`datasets.${r}`,`elements.${o}`,""]])}pluginScopeKeys(r){const o=r.id,i=this.type;return ol(`${i}-plugin-${o}`,()=>[[`plugins.${o}`,...r.additionalOptionScopes||[]]])}_cachedScopes(r,o){const i=this._scopeCache;let t=i.get(r);return(!t||o)&&(t=new Map,i.set(r,t)),t}getOptionScopes(r,o,i){const{options:t,type:e}=this,u=this._cachedScopes(r,i),p=u.get(o);if(p)return p;const b=new Set;o.forEach(w=>{r&&(b.add(r),w.forEach(S=>Wi(b,r,S))),w.forEach(S=>Wi(b,t,S)),w.forEach(S=>Wi(b,Ao[e]||{},S)),w.forEach(S=>Wi(b,lr,S)),w.forEach(S=>Wi(b,ff,S))});const _=Array.from(b);return _.length===0&&_.push(Object.create(null)),fg.has(o)&&u.set(o,_),_}chartOptionScopes(){const{options:r,type:o}=this;return[r,Ao[o]||{},lr.datasets[o]||{},{type:o},lr,ff]}resolveNamedOptions(r,o,i,t=[""]){const e={$shared:!0},{resolver:u,subPrefixes:p}=V0(this._resolverCache,r,t);let b=u;if(E4(u,o)){e.$shared=!1,i=Qa(i)?i():i;const _=this.createResolver(r,i,p);b=ti(u,i,_)}for(const _ of o)e[_]=b[_];return e}createResolver(r,o,i=[""],t){const{resolver:e}=V0(this._resolverCache,r,i);return br(o)?ti(e,o,void 0,t):e}}function V0(s,r,o){let i=s.get(r);i||(i=new Map,s.set(r,i));const t=o.join();let e=i.get(t);return e||(e={resolver:Nf(r,o),subPrefixes:o.filter(p=>!p.toLowerCase().includes("hover"))},i.set(t,e)),e}const S4=s=>br(s)&&Object.getOwnPropertyNames(s).reduce((r,o)=>r||Qa(s[o]),!1);function E4(s,r){const{isScriptable:o,isIndexable:i}=Gm(s);for(const t of r){const e=o(t),u=i(t),p=(u||e)&&s[t];if(e&&(Qa(p)||S4(p))||u&&Br(p))return!0}return!1}var T4="3.9.1";const R4=["top","bottom","left","right","chartArea"];function B0(s,r){return s==="top"||s==="bottom"||R4.indexOf(s)===-1&&r==="x"}function U0(s,r){return function(o,i){return o[s]===i[s]?o[r]-i[r]:o[s]-i[s]}}function z0(s){const r=s.chart,o=r.options.animation;r.notifyPlugins("afterRender"),Pr(o&&o.onComplete,[s],r)}function k4(s){const r=s.chart,o=r.options.animation;Pr(o&&o.onProgress,[s],r)}function ug(s){return Km()&&typeof s=="string"?s=document.getElementById(s):s&&s.length&&(s=s[0]),s&&s.canvas&&(s=s.canvas),s}const bl={},dg=s=>{const r=ug(s);return Object.values(bl).filter(o=>o.canvas===r).pop()};function L4(s,r,o){const i=Object.keys(s);for(const t of i){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,i){return!o||s.type==="mouseout"?null:i?r:s}class Da{constructor(r,o){const i=this.config=new A4(o),t=ug(r),e=dg(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=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||m4(t)),this.platform.updateConfig(i);const p=this.platform.acquireContext(t,u.aspectRatio),b=p&&p.canvas,_=b&&b.height,w=b&&b.width;if(this.id=b_(),this.ctx=p,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=M_(S=>this.update(S),u.resizeDelay||0),this._dataChanges=[],bl[this.id]=this,!p||!b){console.error("Failed to create chart: can't acquire context from the given item");return}Pa.listen(this,"complete",z0),Pa.listen(this,"progress",k4),this._initialize(),this.attached&&this.update()}get aspectRatio(){const{options:{aspectRatio:r,maintainAspectRatio:o},width:i,height:t,_aspectRatio:e}=this;return xr(r)?o&&e?e:t?i/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():d0(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return c0(this.canvas,this.ctx),this}stop(){return Pa.stop(this),this}resize(r,o){Pa.running(this)?this._resizeBeforeDraw={width:r,height:o}:this._resize(r,o)}_resize(r,o){const i=this.options,t=this.canvas,e=i.maintainAspectRatio&&this.aspectRatio,u=this.platform.getMaximumSize(t,r,o,e),p=i.devicePixelRatio||this.platform.getDevicePixelRatio(),b=this.width?"resize":"attach";this.width=u.width,this.height=u.height,this._aspectRatio=this.aspectRatio,d0(this,p,!0)&&(this.notifyPlugins("resize",{size:u}),Pr(i.onResize,[this,u],this),this.attached&&this._doResize(b)&&this.render())}ensureScalesHaveIDs(){const o=this.options.scales||{};Sr(o,(i,t)=>{i.id=t})}buildOrUpdateScales(){const r=this.options,o=r.scales,i=this.scales,t=Object.keys(i).reduce((u,p)=>(u[p]=!1,u),{});let e=[];o&&(e=e.concat(Object.keys(o).map(u=>{const p=o[u],b=pf(u,p),_=b==="r",w=b==="x";return{options:p,dposition:_?"chartArea":w?"bottom":"left",dtype:_?"radialLinear":w?"category":"linear"}}))),Sr(e,u=>{const p=u.options,b=p.id,_=pf(b,p),w=Gt(p.type,u.dtype);(p.position===void 0||B0(p.position,_)!==B0(u.dposition))&&(p.position=u.dposition),t[b]=!0;let S=null;if(b in i&&i[b].type===w)S=i[b];else{const A=Ca.getScale(w);S=new A({id:b,type:w,ctx:this.ctx,chart:this}),i[S.id]=S}S.init(p,r)}),Sr(t,(u,p)=>{u||delete i[p]}),Sr(i,u=>{sa.configure(this,u,u.options),sa.addBox(this,u)})}_updateMetasets(){const r=this._metasets,o=this.data.datasets.length,i=r.length;if(r.sort((t,e)=>t.index-e.index),i>o){for(let t=o;to.length&&delete this._stacks,r.forEach((i,t)=>{o.filter(e=>e===i._dataset).length===0&&this._destroyDatasetMeta(t)})}buildOrUpdateControllers(){const r=[],o=this.data.datasets;let i,t;for(this._removeUnreferencedMetasets(),i=0,t=o.length;i{this.getDatasetMeta(o).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(r){const o=this.config;o.update();const i=this._options=o.createResolver(o.chartOptionScopes(),this.getContext()),t=this._animationsDisabled=!i.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;_{_.reset()}),this._updateDatasets(r),this.notifyPlugins("afterUpdate",{mode:r}),this._layers.sort(U0("z","_idx"));const{_active:p,_lastEvent:b}=this;b?this._eventHandler(b,!0):p.length&&this._updateHoverStyles(p,p,!0),this.render()}_updateScales(){Sr(this.scales,r=>{sa.removeBox(this,r)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const r=this.options,o=new Set(Object.keys(this._listeners)),i=new Set(r.events);(!Qp(o,i)||!!this._responsiveListeners!==r.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:r}=this,o=this._getUniformDataChanges()||[];for(const{method:i,start:t,count:e}of o){const u=i==="_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,i=e=>new Set(r.filter(u=>u[0]===e).map((u,p)=>p+","+u.splice(1).join(","))),t=i(0);for(let e=1;ee.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,i=o.width<=0||o.height<=0;this._layers=[],Sr(this.boxes,t=>{i&&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,i=this.data.datasets.length;o=0;--o)this._drawDataset(r[o]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(r){const o=this.ctx,i=r._clip,t=!i.disabled,e=this.chartArea,u={meta:r,index:r.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",u)!==!1&&(t&&Mf(o,{left:i.left===!1?0:e.left-i.left,right:i.right===!1?this.width:e.right+i.right,top:i.top===!1?0:e.top-i.top,bottom:i.bottom===!1?this.height:e.bottom+i.bottom}),r.controller.draw(),t&&Of(o),u.cancelable=!1,this.notifyPlugins("afterDatasetDraw",u))}isPointInArea(r){return en(r,this.chartArea,this._minPadding)}getElementsAtEventForMode(r,o,i,t){const e=Kw.modes[o];return typeof e=="function"?e(this,r,i,t):[]}getDatasetMeta(r){const o=this.data.datasets[r],i=this._metasets;let t=i.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},i.push(t)),t}getContext(){return this.$context||(this.$context=Za(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(r){const o=this.data.datasets[r];if(!o)return!1;const i=this.getDatasetMeta(r);return typeof i.hidden=="boolean"?!i.hidden:!o.hidden}setDatasetVisibility(r,o){const i=this.getDatasetMeta(r);i.hidden=!o}toggleDataVisibility(r){this._hiddenIndices[r]=!this._hiddenIndices[r]}getDataVisibility(r){return!this._hiddenIndices[r]}_updateVisibility(r,o,i){const t=i?"show":"hide",e=this.getDatasetMeta(r),u=e.controller._resolveAnimations(void 0,t);aa(o)?(e.data[o].hidden=!i,this.update()):(this.setDatasetVisibility(r,i),u.update(e,{visible:i}),this.update(p=>p.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(),Pa.remove(this),r=0,o=this.data.datasets.length;r{o.addEventListener(this,e,u),r[e]=u},t=(e,u,p)=>{e.offsetX=u,e.offsetY=p,this._eventHandler(e)};Sr(this.options.events,e=>i(e,t))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const r=this._responsiveListeners,o=this.platform,i=(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 p=()=>{t("attach",p),this.attached=!0,this.resize(),i("resize",e),i("detach",u)};u=()=>{this.attached=!1,t("resize",e),this._stop(),this._resize(0,0),i("attach",p)},o.isAttached(this.canvas)?p():u()}unbindEvents(){Sr(this._listeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._listeners={},Sr(this._responsiveListeners,(r,o)=>{this.platform.removeEventListener(this,o,r)}),this._responsiveListeners=void 0}updateHoverStyle(r,o,i){const t=i?"set":"remove";let e,u,p,b;for(o==="dataset"&&(e=this.getDatasetMeta(r[0].datasetIndex),e.controller["_"+t+"DatasetHoverStyle"]()),p=0,b=r.length;p{const p=this.getDatasetMeta(e);if(!p)throw new Error("No dataset found at index "+e);return{datasetIndex:e,element:p.data[u],index:u}});!fl(i,o)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,o))}notifyPlugins(r,o,i){return this._plugins.notify(this,r,o,i)}_updateHoverStyles(r,o,i){const t=this.options.hover,e=(b,_)=>b.filter(w=>!_.some(S=>w.datasetIndex===S.datasetIndex&&w.index===S.index)),u=e(o,r),p=i?r:e(r,o);u.length&&this.updateHoverStyle(u,t.mode,!1),p.length&&t.mode&&this.updateHoverStyle(p,t.mode,!0)}_eventHandler(r,o){const i={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",i,t)===!1)return;const e=this._handleEvent(r,o,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,t),(e||i.changed)&&this.render(),this}_handleEvent(r,o,i){const{_active:t=[],options:e}=this,u=o,p=this._getActiveElements(r,t,i,u),b=C_(r),_=M4(r,this._lastEvent,i,b);i&&(this._lastEvent=null,Pr(e.onHover,[r,p,this],this),b&&Pr(e.onClick,[r,p,this],this));const w=!fl(p,t);return(w||o)&&(this._active=p,this._updateHoverStyles(p,t,o)),this._lastEvent=_,w}_getActiveElements(r,o,i,t){if(r.type==="mouseout")return[];if(!i)return o;const e=this.options.hover;return this.getElementsAtEventForMode(r,e.mode,e,t)}}const G0=()=>Sr(Da.instances,s=>s._plugins.invalidate()),Ha=!0;Object.defineProperties(Da,{defaults:{enumerable:Ha,value:lr},instances:{enumerable:Ha,value:bl},overrides:{enumerable:Ha,value:Ao},registry:{enumerable:Ha,value:Ca},version:{enumerable:Ha,value:T4},getChart:{enumerable:Ha,value:dg},register:{enumerable:Ha,value:(...s)=>{Ca.add(...s),G0()}},unregister:{enumerable:Ha,value:(...s)=>{Ca.remove(...s),G0()}}});function hg(s,r,o){const{startAngle:i,pixelMargin:t,x:e,y:u,outerRadius:p,innerRadius:b}=r;let _=t/p;s.beginPath(),s.arc(e,u,p,i-_,o+_),b>t?(_=t/b,s.arc(e,u,b,o+_,i-_,!0)):s.arc(e,u,t,o+Qr,i-Qr),s.closePath(),s.clip()}function O4(s){return Pf(s,["outerStart","outerEnd","innerStart","innerEnd"])}function P4(s,r,o,i){const t=O4(s.options.borderRadius),e=(o-r)/2,u=Math.min(e,i*r/2),p=b=>{const _=(o-Math.min(e,b))*i/2;return Es(b,0,Math.min(e,_))};return{outerStart:p(t.outerStart),outerEnd:p(t.outerEnd),innerStart:Es(t.innerStart,0,u),innerEnd:Es(t.innerEnd,0,u)}}function Qo(s,r,o,i){return{x:o+s*Math.cos(r),y:i+s*Math.sin(r)}}function mf(s,r,o,i,t,e){const{x:u,y:p,startAngle:b,pixelMargin:_,innerRadius:w}=r,S=Math.max(r.outerRadius+i+o-_,0),A=w>0?w+i+o+_:0;let E=0;const M=t-b;if(i){const st=w>0?w-i:0,Mt=S>0?S-i:0,Lt=(st+Mt)/2,Er=Lt!==0?M*Lt/(Lt+i):M;E=(M-Er)/2}const N=Math.max(.001,M*S-o/zr)/S,q=(M-N)/2,B=b+q+E,ee=t-q-E,{outerStart:ie,outerEnd:j,innerStart:H,innerEnd:ne}=P4(r,A,S,ee-B),W=S-ie,Ae=S-j,ve=B+ie/W,it=ee-j/Ae,ft=A+H,Je=A+ne,ut=B+H/ft,bt=ee-ne/Je;if(s.beginPath(),e){if(s.arc(u,p,S,ve,it),j>0){const Lt=Qo(Ae,it,u,p);s.arc(Lt.x,Lt.y,j,it,ee+Qr)}const st=Qo(Je,ee,u,p);if(s.lineTo(st.x,st.y),ne>0){const Lt=Qo(Je,bt,u,p);s.arc(Lt.x,Lt.y,ne,ee+Qr,bt+Math.PI)}if(s.arc(u,p,A,ee-ne/A,B+H/A,!0),H>0){const Lt=Qo(ft,ut,u,p);s.arc(Lt.x,Lt.y,H,ut+Math.PI,B-Qr)}const Mt=Qo(W,B,u,p);if(s.lineTo(Mt.x,Mt.y),ie>0){const Lt=Qo(W,ve,u,p);s.arc(Lt.x,Lt.y,ie,B-Qr,ve)}}else{s.moveTo(u,p);const st=Math.cos(ve)*S+u,Mt=Math.sin(ve)*S+p;s.lineTo(st,Mt);const Lt=Math.cos(it)*S+u,Er=Math.sin(it)*S+p;s.lineTo(Lt,Er)}s.closePath()}function N4(s,r,o,i,t){const{fullCircles:e,startAngle:u,circumference:p}=r;let b=r.endAngle;if(e){mf(s,r,o,i,u+Or,t);for(let _=0;_=Or||$i(e,p,b),N=Ya(u,_+A,w+A);return M&&N}getCenterPoint(r){const{x:o,y:i,startAngle:t,endAngle:e,innerRadius:u,outerRadius:p}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],r),{offset:b,spacing:_}=this.options,w=(t+e)/2,S=(u+p+_+b)/2;return{x:o+Math.cos(w)*S,y:i+Math.sin(w)*S}}tooltipPosition(r){return this.getCenterPoint(r)}draw(r){const{options:o,circumference:i}=this,t=(o.offset||0)/2,e=(o.spacing||0)/2,u=o.circular;if(this.pixelMargin=o.borderAlign==="inner"?.33:0,this.fullCircles=i>Or?Math.floor(i/Or):0,i===0||this.innerRadius<0||this.outerRadius<0)return;r.save();let p=0;if(t){p=t/2;const _=(this.startAngle+this.endAngle)/2;r.translate(Math.cos(_)*p,Math.sin(_)*p),this.circumference>=zr&&(p=t)}r.fillStyle=o.backgroundColor,r.strokeStyle=o.borderColor;const b=N4(r,this,p,e,u);V4(r,this,p,e,b,u),r.restore()}}Hf.id="arc";Hf.defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};Hf.defaultRoutes={backgroundColor:"backgroundColor"};function pg(s,r,o=r){s.lineCap=Gt(o.borderCapStyle,r.borderCapStyle),s.setLineDash(Gt(o.borderDash,r.borderDash)),s.lineDashOffset=Gt(o.borderDashOffset,r.borderDashOffset),s.lineJoin=Gt(o.borderJoinStyle,r.borderJoinStyle),s.lineWidth=Gt(o.borderWidth,r.borderWidth),s.strokeStyle=Gt(o.borderColor,r.borderColor)}function B4(s,r,o){s.lineTo(o.x,o.y)}function U4(s){return s.stepped?iv:s.tension||s.cubicInterpolationMode==="monotone"?nv:B4}function mg(s,r,o={}){const i=s.length,{start:t=0,end:e=i-1}=o,{start:u,end:p}=r,b=Math.max(t,u),_=Math.min(e,p),w=tp&&e>p;return{count:i,start:b,loop:r.loop,ilen:_(u+(_?p-j:j))%e,ie=()=>{N!==q&&(s.lineTo(w,q),s.lineTo(w,N),s.lineTo(w,B))};for(b&&(E=t[ee(0)],s.moveTo(E.x,E.y)),A=0;A<=p;++A){if(E=t[ee(A)],E.skip)continue;const j=E.x,H=E.y,ne=j|0;ne===M?(Hq&&(q=H),w=(S*w+j)/++S):(ie(),s.lineTo(j,H),M=ne,S=0,N=q=H),B=H}ie()}function gf(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?Vv:s.tension||s.cubicInterpolationMode==="monotone"?Bv:xo}function W4(s,r,o,i){let t=r._path;t||(t=r._path=new Path2D,r.path(t,o,i)&&t.closePath()),pg(s,r.options),s.stroke(t)}function H4(s,r,o,i){const{segments:t,options:e}=r,u=gf(r);for(const p of t)pg(s,e,p.style),s.beginPath(),u(s,r,p,{start:o,end:o+i-1})&&s.closePath(),s.stroke()}const Y4=typeof Path2D=="function";function q4(s,r,o,i){Y4&&!r.options.segment?W4(s,r,o,i):H4(s,r,o,i)}class xl 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 i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){const t=i.spanGaps?this._loop:this._fullLoop;Rv(this._points,i,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=Kv(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,i=r.length;return i&&o[r[i-1].end]}interpolate(r,o){const i=this.options,t=r[o],e=this.points,u=Hv(this,{property:o,start:t,end:t});if(!u.length)return;const p=[],b=j4(i);let _,w;for(_=0,w=u.length;_s!=="borderDash"&&s!=="fill"};function j0(s,r,o,i){const t=s.options,{[o]:e}=s.getProps([o],i);return Math.abs(r-e){let{boxHeight:o=r,boxWidth:i=r}=s;return s.usePointStyle&&(o=Math.min(o,r),i=s.pointStyleWidth||Math.min(i,r)),{boxWidth:i,boxHeight:o,itemHeight:Math.max(r,o)}},$4=(s,r)=>s!==null&&r!==null&&s.datasetIndex===r.datasetIndex&&s.index===r.index;class H0 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,i){this.maxWidth=r,this.maxHeight=o,this._margins=i,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=Pr(r.generateLabels,[this.chart],this)||[];r.filter&&(o=o.filter(i=>r.filter(i,this.chart.data))),r.sort&&(o=o.sort((i,t)=>r.sort(i,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 i=r.labels,t=us(i.font),e=t.size,u=this._computeTitleHeight(),{boxWidth:p,itemHeight:b}=W0(i,e);let _,w;o.font=t.string,this.isHorizontal()?(_=this.maxWidth,w=this._fitRows(u,e,p,b)+10):(w=this.maxHeight,_=this._fitCols(u,e,p,b)+10),this.width=Math.min(_,r.maxWidth||this.maxWidth),this.height=Math.min(w,r.maxHeight||this.maxHeight)}_fitRows(r,o,i,t){const{ctx:e,maxWidth:u,options:{labels:{padding:p}}}=this,b=this.legendHitBoxes=[],_=this.lineWidths=[0],w=t+p;let S=r;e.textAlign="left",e.textBaseline="middle";let A=-1,E=-w;return this.legendItems.forEach((M,N)=>{const q=i+o/2+e.measureText(M.text).width;(N===0||_[_.length-1]+q+2*p>u)&&(S+=w,_[_.length-(N>0?0:1)]=0,E+=w,A++),b[N]={left:0,top:E,row:A,width:q,height:t},_[_.length-1]+=q+p}),S}_fitCols(r,o,i,t){const{ctx:e,maxHeight:u,options:{labels:{padding:p}}}=this,b=this.legendHitBoxes=[],_=this.columnSizes=[],w=u-r;let S=p,A=0,E=0,M=0,N=0;return this.legendItems.forEach((q,B)=>{const ee=i+o/2+e.measureText(q.text).width;B>0&&E+t+2*p>w&&(S+=A+p,_.push({width:A,height:E}),M+=A+p,N++,A=E=0),b[B]={left:M,top:E,col:N,width:ee,height:t},A=Math.max(A,ee),E+=t+p}),S+=A,_.push({width:A,height:E}),S}adjustHitBoxes(){if(!this.options.display)return;const r=this._computeTitleHeight(),{legendHitBoxes:o,options:{align:i,labels:{padding:t},rtl:e}}=this,u=Zo(e,this.left,this.width);if(this.isHorizontal()){let p=0,b=Ss(i,this.left+t,this.right-this.lineWidths[p]);for(const _ of o)p!==_.row&&(p=_.row,b=Ss(i,this.left+t,this.right-this.lineWidths[p])),_.top+=this.top+r+t,_.left=u.leftForLtr(u.x(b),_.width),b+=_.width+t}else{let p=0,b=Ss(i,this.top+r+t,this.bottom-this.columnSizes[p].height);for(const _ of o)_.col!==p&&(p=_.col,b=Ss(i,this.top+r+t,this.bottom-this.columnSizes[p].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;Mf(r,this),this._draw(),Of(r)}}_draw(){const{options:r,columnSizes:o,lineWidths:i,ctx:t}=this,{align:e,labels:u}=r,p=lr.color,b=Zo(r.rtl,this.left,this.width),_=us(u.font),{color:w,padding:S}=u,A=_.size,E=A/2;let M;this.drawTitle(),t.textAlign=b.textAlign("left"),t.textBaseline="middle",t.lineWidth=.5,t.font=_.string;const{boxWidth:N,boxHeight:q,itemHeight:B}=W0(u,A),ee=function(W,Ae,ve){if(isNaN(N)||N<=0||isNaN(q)||q<0)return;t.save();const it=Gt(ve.lineWidth,1);if(t.fillStyle=Gt(ve.fillStyle,p),t.lineCap=Gt(ve.lineCap,"butt"),t.lineDashOffset=Gt(ve.lineDashOffset,0),t.lineJoin=Gt(ve.lineJoin,"miter"),t.lineWidth=it,t.strokeStyle=Gt(ve.strokeStyle,p),t.setLineDash(Gt(ve.lineDash,[])),u.usePointStyle){const ft={radius:q*Math.SQRT2/2,pointStyle:ve.pointStyle,rotation:ve.rotation,borderWidth:it},Je=b.xPlus(W,N/2),ut=Ae+E;Um(t,ft,Je,ut,u.pointStyleWidth&&N)}else{const ft=Ae+Math.max((A-q)/2,0),Je=b.leftForLtr(W,N),ut=Fo(ve.borderRadius);t.beginPath(),Object.values(ut).some(bt=>bt!==0)?tn(t,{x:Je,y:ft,w:N,h:q,radius:ut}):t.rect(Je,ft,N,q),t.fill(),it!==0&&t.stroke()}t.restore()},ie=function(W,Ae,ve){So(t,ve.text,W,Ae+B/2,_,{strikethrough:ve.hidden,textAlign:b.textAlign(ve.textAlign)})},j=this.isHorizontal(),H=this._computeTitleHeight();j?M={x:Ss(e,this.left+S,this.right-i[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},Jm(this.ctx,r.textDirection);const ne=B+S;this.legendItems.forEach((W,Ae)=>{t.strokeStyle=W.fontColor||w,t.fillStyle=W.fontColor||w;const ve=t.measureText(W.text).width,it=b.textAlign(W.textAlign||(W.textAlign=u.textAlign)),ft=N+E+ve;let Je=M.x,ut=M.y;b.setWidth(this.width),j?Ae>0&&Je+ft+S>this.right&&(ut=M.y+=ne,M.line++,Je=M.x=Ss(e,this.left+S,this.right-i[M.line])):Ae>0&&ut+ne>this.bottom&&(Je=M.x=Je+o[M.line].width+S,M.line++,ut=M.y=Ss(e,this.top+H+S,this.bottom-o[M.line].height));const bt=b.x(Je);ee(bt,ut,W),Je=O_(it,Je+N+E,j?Je+ft:this.right,r.rtl),ie(b.x(Je),ut,W),j?M.x+=ft+S:M.y+=ne}),Xm(this.ctx,r.textDirection)}drawTitle(){const r=this.options,o=r.title,i=us(o.font),t=Ts(o.padding);if(!o.display)return;const e=Zo(r.rtl,this.left,this.width),u=this.ctx,p=o.position,b=i.size/2,_=t.top+b;let w,S=this.left,A=this.width;if(this.isHorizontal())A=Math.max(...this.lineWidths),w=this.top+_,S=Ss(r.align,S,this.right-A);else{const M=this.columnSizes.reduce((N,q)=>Math.max(N,q.height),0);w=_+Ss(r.align,this.top,this.bottom-M-r.labels.padding-this._computeTitleHeight())}const E=Ss(p,S,S+A);u.textAlign=e.textAlign(Tf(p)),u.textBaseline="middle",u.strokeStyle=o.color,u.fillStyle=o.color,u.font=i.string,So(u,o.text,E,w,i)}_computeTitleHeight(){const r=this.options.title,o=us(r.font),i=Ts(r.padding);return r.display?o.lineHeight+i.height:0}_getLegendItemAt(r,o){let i,t,e;if(Ya(r,this.left,this.right)&&Ya(o,this.top,this.bottom)){for(e=this.legendHitBoxes,i=0;is.chart.options.color,boxWidth:40,padding:10,generateLabels(s){const r=s.data.datasets,{labels:{usePointStyle:o,pointStyle:i,textAlign:t,color:e}}=s.legend.options;return s._getSortedDatasetMetas().map(u=>{const p=u.controller.getStyle(o?0:void 0),b=Ts(p.borderWidth);return{text:r[u.index].label,fillStyle:p.backgroundColor,fontColor:e,hidden:!u.visible,lineCap:p.borderCapStyle,lineDash:p.borderDash,lineDashOffset:p.borderDashOffset,lineJoin:p.borderJoinStyle,lineWidth:(b.width+b.height)/4,strokeStyle:p.borderColor,pointStyle:i||p.pointStyle,rotation:p.rotation,textAlign:t||p.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 bg 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 i=this.options;if(this.left=0,this.top=0,!i.display){this.width=this.height=this.right=this.bottom=0;return}this.width=this.right=r,this.height=this.bottom=o;const t=Br(i.text)?i.text.length:1;this._padding=Ts(i.padding);const e=t*us(i.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:i,bottom:t,right:e,options:u}=this,p=u.align;let b=0,_,w,S;return this.isHorizontal()?(w=Ss(p,i,e),S=o+r,_=e-i):(u.position==="left"?(w=i+r,S=Ss(p,t,o),b=zr*-.5):(w=e-r,S=Ss(p,o,t),b=zr*.5),_=t-o),{titleX:w,titleY:S,maxWidth:_,rotation:b}}draw(){const r=this.ctx,o=this.options;if(!o.display)return;const i=us(o.font),e=i.lineHeight/2+this._padding.top,{titleX:u,titleY:p,maxWidth:b,rotation:_}=this._drawArgs(e);So(r,o.text,0,0,i,{color:o.color,maxWidth:b,rotation:_,textAlign:Tf(o.align),textBaseline:"middle",translation:[u,p]})}}function tx(s,r){const o=new bg({ctx:s.ctx,options:r,chart:s});sa.configure(s,o,r),sa.addBox(s,o),s.titleBlock=o}var Fl={id:"title",_element:bg,start(s,r,o){tx(s,o)},stop(s){const r=s.titleBlock;sa.removeBox(s,r),delete s.titleBlock},beforeUpdate(s,r,o){const i=s.titleBlock;sa.configure(s,i,o),i.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 Qi={average(s){if(!s.length)return!1;let r,o,i=0,t=0,e=0;for(r=0,o=s.length;r-1?s.split(` `):s}function rx(s,r){const{element:o,datasetIndex:i,index:t}=r,e=s.getDatasetMeta(i).controller,{label:u,value:p}=e.getLabelAndValue(t);return{chart:s,label:u,parsed:e.getParsed(t),raw:s.data.datasets[i].data[t],formattedValue:p,dataset:e.getDataset(),dataIndex:t,datasetIndex:i,element:o}}function Y0(s,r){const o=s.chart.ctx,{body:i,footer:t,title:e}=s,{boxWidth:u,boxHeight:p}=r,b=us(r.bodyFont),_=us(r.titleFont),w=us(r.footerFont),S=e.length,A=t.length,E=i.length,M=Ts(r.padding);let N=M.height,q=0,B=i.reduce((j,H)=>j+H.before.length+H.lines.length+H.after.length,0);if(B+=s.beforeBody.length+s.afterBody.length,S&&(N+=S*_.lineHeight+(S-1)*r.titleSpacing+r.titleMarginBottom),B){const j=r.displayColors?Math.max(p,b.lineHeight):b.lineHeight;N+=E*j+(B-E)*b.lineHeight+(B-1)*r.bodySpacing}A&&(N+=r.footerMarginTop+A*w.lineHeight+(A-1)*r.footerSpacing);let ee=0;const ie=function(j){q=Math.max(q,o.measureText(j).width+ee)};return o.save(),o.font=_.string,Sr(s.title,ie),o.font=b.string,Sr(s.beforeBody.concat(s.afterBody),ie),ee=r.displayColors?u+2+r.boxPadding:0,Sr(i,j=>{Sr(j.before,ie),Sr(j.lines,ie),Sr(j.after,ie)}),ee=0,o.font=w.string,Sr(s.footer,ie),o.restore(),q+=M.width,{width:q,height:N}}function sx(s,r){const{y:o,height:i}=r;return os.height-i/2?"bottom":"center"}function ax(s,r,o,i){const{x:t,width:e}=i,u=o.caretSize+o.caretPadding;if(s==="left"&&t+e+u>r.width||s==="right"&&t-e-u<0)return!0}function ox(s,r,o,i){const{x:t,width:e}=o,{width:u,chartArea:{left:p,right:b}}=s;let _="center";return i==="center"?_=t<=(p+b)/2?"left":"right":t<=e/2?_="left":t>=u-e/2&&(_="right"),ax(_,s,r,o)&&(_="center"),_}function q0(s,r,o){const i=o.yAlign||r.yAlign||sx(s,o);return{xAlign:o.xAlign||r.xAlign||ox(s,r,o,i),yAlign:i}}function ix(s,r){let{x:o,width:i}=s;return r==="right"?o-=i:r==="center"&&(o-=i/2),o}function nx(s,r,o){let{y:i,height:t}=s;return r==="top"?i+=o:r==="bottom"?i-=t+o:i-=t/2,i}function K0(s,r,o,i){const{caretSize:t,caretPadding:e,cornerRadius:u}=s,{xAlign:p,yAlign:b}=o,_=t+e,{topLeft:w,topRight:S,bottomLeft:A,bottomRight:E}=Fo(u);let M=ix(r,p);const N=nx(r,b,_);return b==="center"?p==="left"?M+=_:p==="right"&&(M-=_):p==="left"?M-=Math.max(w,A)+t:p==="right"&&(M+=Math.max(S,E)+t),{x:Es(M,0,i.width-r.width),y:Es(N,0,i.height-r.height)}}function il(s,r,o){const i=Ts(o.padding);return r==="center"?s.x+s.width/2:r==="right"?s.x+s.width-i.right:s.x+i.left}function J0(s){return xa([],Na(s))}function lx(s,r,o){return Za(s,{tooltip:r,tooltipItems:o,type:"tooltip"})}function X0(s,r){const o=r&&r.dataset&&r.dataset.tooltip&&r.dataset.tooltip.callbacks;return o?s.override(o):s}class bf 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,i=this.options.setContext(this.getContext()),t=i.enabled&&o.options.animation&&i.animations,e=new Zm(this.chart,t);return t._cacheable&&(this._cachedAnimations=Object.freeze(e)),e}getContext(){return this.$context||(this.$context=lx(this.chart.getContext(),this,this._tooltipItems))}getTitle(r,o){const{callbacks:i}=o,t=i.beforeTitle.apply(this,[r]),e=i.title.apply(this,[r]),u=i.afterTitle.apply(this,[r]);let p=[];return p=xa(p,Na(t)),p=xa(p,Na(e)),p=xa(p,Na(u)),p}getBeforeBody(r,o){return J0(o.callbacks.beforeBody.apply(this,[r]))}getBody(r,o){const{callbacks:i}=o,t=[];return Sr(r,e=>{const u={before:[],lines:[],after:[]},p=X0(i,e);xa(u.before,Na(p.beforeLabel.call(this,e))),xa(u.lines,p.label.call(this,e)),xa(u.after,Na(p.afterLabel.call(this,e))),t.push(u)}),t}getAfterBody(r,o){return J0(o.callbacks.afterBody.apply(this,[r]))}getFooter(r,o){const{callbacks:i}=o,t=i.beforeFooter.apply(this,[r]),e=i.footer.apply(this,[r]),u=i.afterFooter.apply(this,[r]);let p=[];return p=xa(p,Na(t)),p=xa(p,Na(e)),p=xa(p,Na(u)),p}_createItems(r){const o=this._active,i=this.chart.data,t=[],e=[],u=[];let p=[],b,_;for(b=0,_=o.length;b<_;++b)p.push(rx(this.chart,o[b]));return r.filter&&(p=p.filter((w,S,A)=>r.filter(w,S,A,i))),r.itemSort&&(p=p.sort((w,S)=>r.itemSort(w,S,i))),Sr(p,w=>{const S=X0(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=p,p}update(r,o){const i=this.options.setContext(this.getContext()),t=this._active;let e,u=[];if(!t.length)this.opacity!==0&&(e={opacity:0});else{const p=Qi[i.position].call(this,t,this._eventPosition);u=this._createItems(i),this.title=this.getTitle(u,i),this.beforeBody=this.getBeforeBody(u,i),this.body=this.getBody(u,i),this.afterBody=this.getAfterBody(u,i),this.footer=this.getFooter(u,i);const b=this._size=Y0(this,i),_=Object.assign({},p,b),w=q0(this.chart,i,_),S=K0(i,_,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:p.x,caretY:p.y}}this._tooltipItems=u,this.$context=void 0,e&&this._resolveAnimations().update(this,e),r&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:o})}drawCaret(r,o,i,t){const e=this.getCaretPosition(r,i,t);o.lineTo(e.x1,e.y1),o.lineTo(e.x2,e.y2),o.lineTo(e.x3,e.y3)}getCaretPosition(r,o,i){const{xAlign:t,yAlign:e}=this,{caretSize:u,cornerRadius:p}=i,{topLeft:b,topRight:_,bottomLeft:w,bottomRight:S}=Fo(p),{x:A,y:E}=r,{width:M,height:N}=o;let q,B,ee,ie,j,H;return e==="center"?(j=E+N/2,t==="left"?(q=A,B=q-u,ie=j+u,H=j-u):(q=A+M,B=q+u,ie=j-u,H=j+u),ee=q):(t==="left"?B=A+Math.max(b,w)+u:t==="right"?B=A+M-Math.max(_,S)-u:B=this.caretX,e==="top"?(ie=E,j=ie-u,q=B-u,ee=B+u):(ie=E+N,j=ie+u,q=B+u,ee=B-u),H=ie),{x1:q,x2:B,x3:ee,y1:ie,y2:j,y3:H}}drawTitle(r,o,i){const t=this.title,e=t.length;let u,p,b;if(e){const _=Zo(i.rtl,this.x,this.width);for(r.x=il(this,i.titleAlign,i),o.textAlign=_.textAlign(i.titleAlign),o.textBaseline="middle",u=us(i.titleFont),p=i.titleSpacing,o.fillStyle=i.titleColor,o.font=u.string,b=0;bie!==0)?(r.beginPath(),r.fillStyle=e.multiKeyBackground,tn(r,{x:q,y:N,w:_,h:b,radius:ee}),r.fill(),r.stroke(),r.fillStyle=u.backgroundColor,r.beginPath(),tn(r,{x:B,y:N+1,w:_-2,h:b-2,radius:ee}),r.fill()):(r.fillStyle=e.multiKeyBackground,r.fillRect(q,N,_,b),r.strokeRect(q,N,_,b),r.fillStyle=u.backgroundColor,r.fillRect(B,N+1,_-2,b-2))}r.fillStyle=this.labelTextColors[i]}drawBody(r,o,i){const{body:t}=this,{bodySpacing:e,bodyAlign:u,displayColors:p,boxHeight:b,boxWidth:_,boxPadding:w}=i,S=us(i.bodyFont);let A=S.lineHeight,E=0;const M=Zo(i.rtl,this.x,this.width),N=function(Ae){o.fillText(Ae,M.x(r.x+E),r.y+A/2),r.y+=A+e},q=M.textAlign(u);let B,ee,ie,j,H,ne,W;for(o.textAlign=u,o.textBaseline="middle",o.font=S.string,r.x=il(this,q,i),o.fillStyle=i.bodyColor,Sr(this.beforeBody,N),E=p&&q!=="right"?u==="center"?_/2+w:_+2+w:0,j=0,ne=t.length;j0&&o.stroke()}_updateAnimationTarget(r){const o=this.chart,i=this.$animations,t=i&&i.x,e=i&&i.y;if(t||e){const u=Qi[r.position].call(this,this._active,this._eventPosition);if(!u)return;const p=this._size=Y0(this,r),b=Object.assign({},u,this._size),_=q0(o,r,b),w=K0(r,b,_,o);(t._to!==w.x||e._to!==w.y)&&(this.xAlign=_.xAlign,this.yAlign=_.yAlign,this.width=p.width,this.height=p.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 i=this.opacity;if(!i)return;this._updateAnimationTarget(o);const t={width:this.width,height:this.height},e={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const u=Ts(o.padding),p=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;o.enabled&&p&&(r.save(),r.globalAlpha=i,this.drawBackground(e,r,t,o),Jm(r,o.textDirection),e.y+=u.top,this.drawTitle(e,r,o),this.drawBody(e,r,o),this.drawFooter(e,r,o),Xm(r,o.textDirection),r.restore())}getActiveElements(){return this._active||[]}setActiveElements(r,o){const i=this._active,t=r.map(({datasetIndex:p,index:b})=>{const _=this.chart.getDatasetMeta(p);if(!_)throw new Error("Cannot find a dataset at index "+p);return{datasetIndex:p,element:_.data[b],index:b}}),e=!fl(i,t),u=this._positionChanged(t,o);(e||u)&&(this._active=t,this._eventPosition=o,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(r,o,i=!0){if(o&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const t=this.options,e=this._active||[],u=this._getActiveElements(r,e,o,i),p=this._positionChanged(u,r),b=o||!fl(u,e)||p;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,i,t){const e=this.options;if(r.type==="mouseout")return[];if(!t)return o;const u=this.chart.getElementsAtEventForMode(r,e.mode,e,i);return e.reverse&&u.reverse(),u}_positionChanged(r,o){const{caretX:i,caretY:t,options:e}=this,u=Qi[e.position].call(this,r,o);return u!==!1&&(i!==u.x||t!==u.y)}}bf.positioners=Qi;var Dl={id:"tooltip",_element:bf,positioners:Qi,afterInit(s,r,o){o&&(s.tooltip=new bf({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,i=o?o.length:0;if(this&&this.options&&this.options.mode==="dataset")return r.dataset.label||"";if(r.label)return r.label;if(i>0&&r.dataIndexs!=="filter"&&s!=="itemSort"&&s!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};const cx=(s,r,o,i)=>(typeof r=="string"?(o=s.push(r)-1,i.unshift({index:o,label:r})):isNaN(r)&&(o=null),o);function fx(s,r,o,i){const t=s.indexOf(r);if(t===-1)return cx(s,r,o,i);const e=s.lastIndexOf(r);return t!==e?o:t}const ux=(s,r)=>s===null?null:Es(Math.round(s),0,r);class Eo extends Ro{constructor(r){super(r),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(r){const o=this._addedLabels;if(o.length){const i=this.getLabels();for(const{index:t,label:e}of o)i[t]===e&&i.splice(t,1);this._addedLabels=[]}super.init(r)}parse(r,o){if(xr(r))return null;const i=this.getLabels();return o=isFinite(o)&&i[o]===r?o:fx(i,r,Gt(o,r),this._addedLabels),ux(o,i.length-1)}determineDataLimits(){const{minDefined:r,maxDefined:o}=this.getUserBounds();let{min:i,max:t}=this.getMinMax(!0);this.options.bounds==="ticks"&&(r||(i=0),o||(t=this.getLabels().length-1)),this.min=i,this.max=t}buildTicks(){const r=this.min,o=this.max,i=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-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let u=r;u<=o;u++)t.push({value:u});return t}getLabelForValue(r){const o=this.getLabels();return r>=0&&ro.length-1?null:this.getPixelForValue(o[r].value)}getValueForPixel(r){return Math.round(this._startValue+this.getDecimalForPixel(r)*this._valueRange)}getBasePixel(){return this.bottom}}Eo.id="category";Eo.defaults={ticks:{callback:Eo.prototype.getLabelForValue}};function dx(s,r){const o=[],{bounds:t,step:e,min:u,max:p,precision:b,count:_,maxTicks:w,maxDigits:S,includeBounds:A}=s,E=e||1,M=w-1,{min:N,max:q}=r,B=!xr(u),ee=!xr(p),ie=!xr(_),j=(q-N)/(S+1);let H=$p((q-N)/M/E)*E,ne,W,Ae,ve;if(H<1e-14&&!B&&!ee)return[{value:N},{value:q}];ve=Math.ceil(q/H)-Math.floor(N/H),ve>M&&(H=$p(ve*H/M/E)*E),xr(b)||(ne=Math.pow(10,b),H=Math.ceil(H*ne)/ne),t==="ticks"?(W=Math.floor(N/H)*H,Ae=Math.ceil(q/H)*H):(W=N,Ae=q),B&&ee&&e&&S_((p-u)/e,H/1e3)?(ve=Math.round(Math.min((p-u)/H,w)),H=(p-u)/ve,W=u,Ae=p):ie?(W=B?u:W,Ae=ee?p:Ae,ve=_-1,H=(Ae-W)/ve):(ve=(Ae-W)/H,Ki(ve,Math.round(ve),H/1e3)?ve=Math.round(ve):ve=Math.ceil(ve));const it=Math.max(e0(H),e0(W));ne=Math.pow(10,xr(b)?it:b),W=Math.round(W*ne)/ne,Ae=Math.round(Ae*ne)/ne;let ft=0;for(B&&(A&&W!==u?(o.push({value:u}),Wt=o?t:b,p=b=>e=i?e:b;if(r){const b=Fa(t),_=Fa(e);b<0&&_<0?p(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)),p(e+b),r||u(t-b)}this.min=t,this.max=e}getTickLimit(){const r=this.options.ticks;let{maxTicksLimit:o,stepSize:i}=r,t;return i?(t=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,t>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} 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 i=this.getTickLimit();i=Math.max(2,i);const t={maxTicks:i,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=dx(t,e);return r.bounds==="ticks"&&Sm(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,i=this.max;if(super.configure(),this.options.offset&&r.length){const t=(i-o)/Math.max(r.length-1,1)/2;o-=t,i+=t}this._startValue=o,this._endValue=i,this._valueRange=i-o}getLabelForValue(r){return an(r,this.chart.options.locale,this.options.ticks.format)}}class si extends yl{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,i=fa(this.options.ticks.minRotation),t=(r?Math.sin(i):Math.cos(i))||.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}}si.id="linear";si.defaults={ticks:{callback:wl.formatters.numeric}};function Z0(s){return s/Math.pow(10,Math.floor(ra(s)))===1}function hx(s,r){const o=Math.floor(ra(r.max)),i=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)),p=Math.floor(e/Math.pow(10,u)),b=u<0?Math.pow(10,Math.abs(u)):1;do t.push({value:e,major:Z0(e)}),++p,p===10&&(p=1,++u,b=u>=0?1:b),e=Math.round(p*Math.pow(10,u)*b)/b;while(u0?i: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 i=this.min,t=this.max;const e=b=>i=r?i:b,u=b=>t=o?t:b,p=(b,_)=>Math.pow(10,Math.floor(ra(b))+_);i===t&&(i<=0?(e(1),u(10)):(e(p(i,-1)),u(p(t,1)))),i<=0&&e(p(t,-1)),t<=0&&u(p(i,1)),this._zero&&this.min!==this._suggestedMin&&i===p(this.min,0)&&e(p(i,-1)),this.min=i,this.max=t}buildTicks(){const r=this.options,o={min:this._userMin,max:this._userMax},i=hx(o,this);return r.bounds==="ticks"&&Sm(i,this,"value"),r.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(r){return r===void 0?"0":an(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)}}yg.id="logarithmic";yg.defaults={ticks:{callback:wl.formatters.logarithmic,major:{enabled:!0}}};function yf(s){const r=s.ticks;if(r.display&&s.display){const o=Ts(r.backdropPadding);return Gt(r.font&&r.font.size,lr.font.size)+o.height}return 0}function px(s,r,o){return o=Br(o)?o:[o],{w:ov(s,r.string,o),h:o.length*r.lineHeight}}function $0(s,r,o,i,t){return s===i||s===t?{start:r-o/2,end:r+o/2}:st?{start:r-o,end:r}:{start:r,end:r+o}}function mx(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),i=[],t=[],e=s._pointLabels.length,u=s.options.pointLabels,p=u.centerPointLabels?zr/e:0;for(let b=0;br.r&&(p=(i.end-r.r)/e,s.r=Math.max(s.r,r.r+p)),t.startr.b&&(b=(t.end-r.b)/u,s.b=Math.max(s.b,r.b+b))}function bx(s,r,o){const i=[],t=s._pointLabels.length,e=s.options,u=yf(e)/2,p=s.drawingArea,b=e.pointLabels.centerPointLabels?zr/t:0;for(let _=0;_270||o<90)&&(s-=r),s}function wx(s,r){const{ctx:o,options:{pointLabels:i}}=s;for(let t=r-1;t>=0;t--){const e=i.setContext(s.getPointLabelContext(t)),u=us(e.font),{x:p,y:b,textAlign:_,left:w,top:S,right:A,bottom:E}=s._pointLabelItems[t],{backdropColor:M}=e;if(!xr(M)){const N=Fo(e.borderRadius),q=Ts(e.backdropPadding);o.fillStyle=M;const B=w-q.left,ee=S-q.top,ie=A-w+q.width,j=E-S+q.height;Object.values(N).some(H=>H!==0)?(o.beginPath(),tn(o,{x:B,y:ee,w:ie,h:j,radius:N}),o.fill()):o.fillRect(B,ee,ie,j)}So(o,s._pointLabels[t],p,b+u.lineHeight/2,u,{color:e.color,textAlign:_,textBaseline:"middle"})}}function _g(s,r,o,i){const{ctx:t}=s;if(o)t.arc(s.xCenter,s.yCenter,r,0,Or);else{let e=s.getPointPosition(0,r);t.moveTo(e.x,e.y);for(let u=1;u{const t=Pr(this.options.pointLabels.callback,[o,i],this);return t||t===0?t:""}).filter((o,i)=>this.chart.getDataVisibility(i))}fit(){const r=this.options;r.display&&r.pointLabels.display?mx(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(r,o,i,t){this.xCenter+=Math.floor((r-o)/2),this.yCenter+=Math.floor((i-t)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(r,o,i,t))}getIndexAngle(r){const o=Or/(this._pointLabels.length||1),i=this.options.startAngle||0;return ca(r*o+fa(i))}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{if(w!==0){p=this.getDistanceFromCenterForValue(_.value);const S=t.setContext(this.getContext(w-1));xx(this,S,p,e)}}),i.display){for(r.save(),u=e-1;u>=0;u--){const _=i.setContext(this.getPointLabelContext(u)),{color:w,lineWidth:S}=_;!S||!w||(r.lineWidth=S,r.strokeStyle=w,r.setLineDash(_.borderDash),r.lineDashOffset=_.borderDashOffset,p=this.getDistanceFromCenterForValue(o.ticks.reverse?this.min:this.max),b=this.getPointPosition(u,p),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,i=o.ticks;if(!i.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((p,b)=>{if(b===0&&!o.reverse)return;const _=i.setContext(this.getContext(b)),w=us(_.font);if(e=this.getDistanceFromCenterForValue(this.ticks[b].value),_.showLabelBackdrop){r.font=w.string,u=r.measureText(p.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)}So(r,p.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:wl.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 Sl={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(Sl);function Fx(s,r){return s-r}function em(s,r){if(xr(r))return null;const o=s._adapter,{parser:i,round:t,isoWeekday:e}=s._parseOpts;let u=r;return typeof i=="function"&&(u=i(u)),ys(u)||(u=typeof i=="string"?o.parse(u,i):o.parse(u)),u===null?null:(t&&(u=t==="week"&&(ei(e)||e===!0)?o.startOf(u,"isoWeek",e):o.startOf(u,t)),+u)}function tm(s,r,o,i){const t=Bs.length;for(let e=Bs.indexOf(s);e=Bs.indexOf(o);e--){const u=Bs[e];if(Sl[u].common&&s._adapter.diff(t,i,u)>=r-1)return u}return Bs[o?Bs.indexOf(o):0]}function Ax(s){for(let r=Bs.indexOf(s)+1,o=Bs.length;r=r?o[i]:o[t];s[e]=!0}}function Sx(s,r,o,i){const t=s._adapter,e=+t.startOf(r[0].value,i),u=r[r.length-1].value;let p,b;for(p=e;p<=u;p=+t.add(p,1,i))b=o[p],b>=0&&(r[b].major=!0);return r}function sm(s,r,o){const i=[],t={},e=r.length;let u,p;for(u=0;u+r.value))}initOffsets(r){let o=0,i=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?i=e:i=(e-this.getDecimalForValue(r[r.length-2]))/2);const u=r.length<3?.5:.25;o=Es(o,0,u),i=Es(i,0,u),this._offsets={start:o,end:i,factor:1/(o+1+i)}}_generate(){const r=this._adapter,o=this.min,i=this.max,t=this.options,e=t.time,u=e.unit||tm(e.minUnit,o,i,this._getLabelCapacity(o)),p=Gt(e.stepSize,1),b=u==="week"?e.isoWeekday:!1,_=ei(b)||b===!0,w={};let S=o,A,E;if(_&&(S=+r.startOf(S,"isoWeek",b)),S=+r.startOf(S,_?"day":u),r.diff(i,o,u)>1e5*p)throw new Error(o+" and "+i+" are too far apart with stepSize of "+p+" "+u);const M=t.ticks.source==="data"&&this.getDataTimestamps();for(A=S,E=0;AN-q).map(N=>+N)}getLabelForValue(r){const o=this._adapter,i=this.options.time;return i.tooltipFormat?o.format(r,i.tooltipFormat):o.format(r,i.displayFormats.datetime)}_tickFormatFunction(r,o,i,t){const e=this.options,u=e.time.displayFormats,p=this._unit,b=this._majorUnit,_=p&&u[p],w=b&&u[b],S=i[o],A=b&&w&&S&&S.major,E=this._adapter.format(r,t||(A?w:_)),M=e.ticks.callback;return M?Pr(M,[E,o,i],this):E}generateTickLabels(r){let o,i,t;for(o=0,i=r.length;o0?p:1}getDataTimestamps(){let r=this._cache.data||[],o,i;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,i=t.length;o=s[i].pos&&r<=s[t].pos&&({lo:i,hi:t}=Co(s,"pos",r)),{pos:e,time:p}=s[i],{pos:u,time:b}=s[t]):(r>=s[i].time&&r<=s[t].time&&({lo:i,hi:t}=Co(s,"time",r)),{time:e,pos:p}=s[i],{time:u,pos:b}=s[t]);const _=u-e;return _?p+(b-p)*(r-e)/_:p}class vg extends El{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=nl(o,this.min),this._tableRange=nl(o,this.max)-this._minPos,super.initOffsets(r)}buildLookupTable(r){const{min:o,max:i}=this,t=[],e=[];let u,p,b,_,w;for(u=0,p=r.length;u=o&&_<=i&&t.push(_);if(t.length<2)return[{time:o,pos:0},{time:i,pos:1}];for(u=0,p=t.length;u{const u=e.name||"Unknown",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,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 Tx(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[U("canvas",{id:"reportChart"},null,-1)]))}const Rx=Et(Ex,[["render",Tx],["__scopeId","data-v-3b637c24"]]);const kx={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:Rx,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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:{setData:this.setData,modules:1,columns:[],leave_id:0,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 Array.isArray(this.form.columns)&&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(s){try{await Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},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 tt.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(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 xf.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 tt.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)},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]");this.form.columns=s;const r=JSON.parse(this.recordData.filters||"{}");this.form.charge_to=r.charge_to||null,this.form.leave_id=r.leave_id||null,this.form.status=r.status||null,this.form.from_date=r.from_date||"",this.form.to_date=r.to_date||"",this.recordData.report_name&&(this.form.report_name=this.recordData.report_name),console.log("Form populated from recordData:",this.form)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0},"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)}}},Lx={class:"grid grid-cols-1 gap-2"},Mx={class:"grid grid-cols-5 gap-2"},Ox={class:"grid grid-cols-2 gap-2"},Px={class:"flex justify-between items-center"},Nx={class:"flex gap-1 justify-end"};function Ix(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[U("form",{onSubmit:r[9]||(r[9]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[t.state.isSaving?(re(),Me(u,{key:0,text:"Saving record"})):me("",!0),r[10]||(r[10]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",Lx,[T(b,{label:"Columns",isRequired:!0},{default:G(()=>[T(p,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",Mx,[t.included.charge_to?(re(),Me(b,{key:0,label:"Charges To"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.charge_to=N),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.leave_id?(re(),Me(b,{key:1,label:"Leave Type"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.leave_id,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.leave_id=N),options:t.leaveType,class:"form-multiselect w-full",loading:t.state.isLeaveTypeLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.status?(re(),Me(b,{key:2,label:"Status"},{default:G(()=>[T(p,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.status,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.status=N),options:t.statusOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),U("div",Ox,[T(b,{label:"From Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.from_date,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.from_date=N),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(b,{label:"To Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.to_date,"onUpdate:modelValue":r[6]||(r[6]=N=>t.form.to_date=N),class:"form-control bg-white",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),U("div",Px,[s.items?(re(),Me(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"])):me("",!0),U("div",Nx,[s.items?(re(),Me(S,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[7]||(r[7]=N=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(S,{icon:"ic:round-repeat",onClick:r[8]||(r[8]=N=>e.submitForm("generate")),text:"Generate"})])])],32),s.items?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{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})):me("",!0),U("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const Vx=Et(kx,[["render",Ix],["__scopeId","data-v-6c25013a"]]);Da.register(To,ko,Eo,si,Fl,Dl,Cl);const Bx={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"],p=parseFloat(e.Hours)||0;return t[u]||(t[u]=0),t[u]+=p,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Overtime Hours",data:i,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 Ux(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[U("canvas",{id:"overtimeChart"},null,-1)]))}const zx=Et(Bx,[["render",Ux],["__scopeId","data-v-04873387"]]);const Gx={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,OvertimeReportChart:zx,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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_id:"",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 Array.isArray(this.form.columns)&&this.form.columns.length===this.reportModuleColums.length}},methods:{async fetchCompanies(){this.state.isCompanyLoading=!0;try{const s=await ir.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(s){try{await Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().required("To Date is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},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 tt.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(i=>({id:null,report_module_id:"2",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 xf.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 tt.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)},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]");this.form.columns=s;const r=JSON.parse(this.recordData.filters||"{}");this.form.charge_to_id=r.charge_to_id||null,this.form.status=r.status||null,this.form.from_date=r.from_date||null,this.form.to_date=r.to_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchCompanies(),this.fetchReportModuleColumn()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0},"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)}}},jx={class:"grid grid-cols-1 gap-2"},Wx={class:"grid grid-cols-2 gap-2"},Hx={class:"grid grid-cols-2 gap-2"},Yx={class:"flex justify-between items-center"},qx={class:"flex gap-1 justify-end"};function Kx(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card"),E=Y("OvertimeReportChart");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",jx,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...M)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...M))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",Wx,[t.included.charge_to?(re(),Me(p,{key:0,label:"Charges To"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.charge_to_id,"onUpdate:modelValue":r[2]||(r[2]=M=>t.form.charge_to_id=M),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})):me("",!0),t.included.status?(re(),Me(p,{key:1,label:"Status"},{default:G(()=>[T(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})):me("",!0)]),U("div",Hx,[T(p,{label:"From Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"To Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",Yx,[s.items?(re(),Me(_,{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"])):me("",!0),U("div",qx,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[6]||(r[6]=M=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[7]||(r[7]=M=>e.submitForm("generate")),text:"Generate"})])])],32),s.items?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),U("div",null,[t.form.modules==2&&t.finalData.length!=0?(re(),Me(E,{key:0,overtimeData:t.resultData,form:t.form},null,8,["overtimeData","form"])):me("",!0)])],64)}const Jx=Et(Gx,[["render",Kx],["__scopeId","data-v-cb57f17e"]]);const am=ir,om=yr,im=es,Xx=tt,nm=Cf,Qx={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:am,DealershipService:om,DepartmentService:im,PayrollService:nm,AgGridVue:qt,Loading:Wt},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 am.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 om.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 im.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 nm.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 Rr().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 jt){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 i=await Xx.fetchGeneratedReport(this.form);if((s=i.data)!=null&&s.data&&Object.keys(i.data.data).length>0){let t=[];console.log("After adding header row:",t),Object.entries(i.data.data).forEach(([e,u])=>{t.push({department:e,isGroup:!0});let p={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}),p.total_over_times+=parseFloat(b.total_over_times||0),p.frequency+=parseFloat(b.frequency||0),p.total_ot_pay+=parseFloat(b.total_ot_pay||0),p.holiday_total+=parseFloat(b.holiday_total||0),p.dayOff_pay+=parseFloat(b.dayOff_pay||0),p.total_meal+=parseFloat(b.total_meal||0),p.total_transpo+=parseFloat(p.total_transpo||0),p.row_total+=parseFloat(p.row_total||0)}),p.row_total=parseFloat((p.total_ot_pay+p.holiday_total+p.dayOff_pay+p.night_diff_pay+p.total_meal+p.total_transpo).toFixed(2)),p.dayOff_pay=parseFloat(p.dayOff_pay.toFixed(2)),t.push(p)}),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`${e.data.department}`;if(e.data.isGroup)return`${e.data.department}`},cellStyle:e=>{var u,p;return(u=e.data)!=null&&u.isGroup?{fontWeight:"bold",backgroundColor:"#f0f0f0"}:((p=e.data)!=null&&p.isSumarry,null)}},{headerName:"Employee Name",field:"name",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.name}`:e.data.name:""},{headerName:"Total OT Hours",field:"total_over_times",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.total_over_times}`:e.data.total_over_times:""},{headerName:"Frequency",field:"frequency",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.frequency}`:e.data.frequency:""},{headerName:"OT PAY",field:"total_ot_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.total_ot_pay}`:e.data.total_ot_pay:""},{headerName:"HOLIDAY PAY",field:"holiday_total",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.holiday_total}`:e.data.holiday_total:""},{headerName:"DAYOFF PAY",field:"dayOff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.dayOff_pay}`:e.data.dayOff_pay:""},{headerName:"NIGHT DIFF PAY",field:"night_diff_pay",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.night_diff_pay}`:e.data.night_diff_pay:""},{headerName:"OT MEAL",field:"total_meal",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.total_meal}`:e.data.total_meal:""},{headerName:"TRANSPO",field:"total_transpo",flex:1,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.total_transpo}`:e.data.total_transpo:""},{headerName:"TOTAL",field:"row_total",flex:1,sortable:!0,filter:!0,cellRenderer:e=>e.data?e.data.isSumarry?`${e.data.row_total}`: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(i){console.error("Error submitting report:",i),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=i.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()}`,""],i=[];this.gridApi.forEachNodeAfterFilterAndSort(_=>{_.group||(_.data?(console.log("node"),console.log(_),_.data.isGroup?i.push([_.data.department,"","","","","","","","","",""]):i.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&&i.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"],...i].map(_=>_.join(",")).join(` `),u=new Blob([e],{type:"text/csv;charset=utf-8;"}),p=document.createElement("a"),b=URL.createObjectURL(u);p.setAttribute("href",b),p.setAttribute("download","Overtime_Report.csv"),p.style.visibility="hidden",document.body.appendChild(p),p.click(),document.body.removeChild(p)}},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()}},Zx={class:"grid grid-cols-3 gap-2"},$x={class:""},eC={class:""},tC={class:""},rC={class:""},sC={key:0,class:"text-red-400"},aC={class:"flex justify-between items-center mt-2"},oC={class:"flex gap-1 justify-end"},iC={key:0,class:"mt-3"},nC={class:"flex gap-1 justify-end"};function lC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[U("form",{onSubmit:r[4]||(r[4]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isLoading?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),U("div",Zx,[U("div",$x,[T(b,{label:"Company"},{default:G(()=>[T(p,{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})]),U("div",eC,[T(b,{label:"Dealership"},{default:G(()=>[T(p,{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})]),U("div",tC,[T(b,{label:"Department"},{default:G(()=>[T(p,{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})]),U("div",rC,[T(b,{label:"Cut-Off",isRequired:!0},{default:G(()=>[T(p,{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?(re(),Le("span",sC,Xr(t.errors.payroll_date),1)):me("",!0)]),_:1})])]),U("div",aC,[U("div",oC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(re(),Le("div",iC,[U("div",nC,[U("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")]),T(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"])])):me("",!0)],64)}const cC=Et(Qx,[["render",lC],["__scopeId","data-v-02485efb"]]);const lm=ir,cm=yr,fm=es,fC=tt,um=Cf,uC={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:lm,DealershipService:cm,DepartmentService:fm,PayrollService:um,AgGridVue:qt,Loading:Wt},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:{},computed:{activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},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 Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=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 fetchCompanies(){this.state.isLoadingCompanies=!0;try{const s=await lm.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 cm.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 fm.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 um.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 Rr().shape({selectedCompanyId:Dt().nullable().required("Company is required"),payroll_date:wf().nullable().required("Cut-Off date is required").typeError("Cut-Off date must be a valid date"),type:Dt().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 jt){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 i=await fC.fetchGeneratedReport(this.form);if((s=i.data)!=null&&s.data&&Object.keys(i.data.data).length>0){console.log("DATA"),console.log(i.data.data);const t=i.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 p=[{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(p);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(i){console.error("Error submitting report:",i),this.$swal.fire({title:"Oops! Something went wrong.",text:((o=(r=i.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()}},dC={class:"grid grid-cols-3 gap-2"},hC={class:""},pC={key:0,class:"text-red-400"},mC={class:"grid grid-cols-1 gap-2"},gC={class:""},bC={key:0,class:"text-red-400"},yC={class:""},_C={class:""},vC={key:0,class:"text-red-400"},wC={key:0},xC={class:"mt-8 p-2 inline-block bg-green-300"},CC={class:"flex justify-between items-center mt-2"},FC={class:"flex gap-1 justify-end"},DC={key:0,class:"mt-3"},AC={class:"flex gap-1 justify-end"};function SC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[U("form",{onSubmit:r[5]||(r[5]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),U("div",dC,[U("div",hC,[T(b,{label:"Type"},{default:G(()=>[T(p,{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?(re(),Le("span",pC,Xr(t.errors.type),1)):me("",!0)]),_:1})]),U("div",mC,[T(b,{label:"Employee"},{default:G(()=>[T(p,{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,"close-on-select":!1,loading:t.state.isLoadingEmployees,class:"form-multiselect w-full mt-2"},null,8,["modelValue","disabled","options","loading"])]),_:1})]),U("div",gC,[T(b,{label:"Company"},{default:G(()=>[T(p,{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?(re(),Le("span",bC,Xr(t.errors.selectedCompanyId),1)):me("",!0)]),_:1})]),U("div",yC,[T(b,{label:"Dealership"},{default:G(()=>[T(p,{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})]),U("div",_C,[T(b,{label:"Cut-Off Date",isRequired:!0},{default:G(()=>[T(p,{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?(re(),Le("span",vC,Xr(t.errors.payroll_date),1)):me("",!0)]),_:1})]),t.form.payroll_date?(re(),Le("div",wC,[T(b,{class:"rounded-md"},{default:G(()=>[U("p",xC,"Payroll date : "+Xr(t.form.payroll_date),1)]),_:1})])):me("",!0)]),U("div",CC,[U("div",FC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(re(),Le("div",DC,[U("div",AC,[U("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")]),T(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"])])):me("",!0)],64)}const EC=Et(uC,[["render",SC],["__scopeId","data-v-fd07b251"]]);const TC=ir,RC=yr,kC=es,LC=tt,MC=Cf,OC=Fr,PC={components:{Layout:Yt,Yup:Df,FormGroup:Zt,Multiselect:zt,SubmitButton:Ut,CompanyService:TC,DealershipService:RC,DepartmentService:kC,PayrollService:MC,AgGridVue:qt,Loading:Wt},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 OC.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 Rr().shape({payroll_date:wf().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 jt){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 o=(await LC.GenerateAttendancePostingReport(this.form)).data.attendance||{};let i=Object.values(o);i&&(this.employee={emp_no:i.emp_no,name:i.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 Jb({orientation:"landscape",unit:"mm",format:"a4"}),r=10;let o=20;const i=[["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 p={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 A=e.payroll_rate==="Daily"&&parseFloat(w)>=8?0:parseFloat(w)||0;return _+A},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,A,E,M,N,q,B,ee,ie,j,H;return[_||"",((S=e==null?void 0:e.date)==null?void 0:S[w])||"",((A=e==null?void 0:e.shift)==null?void 0:A[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])||"",((N=e==null?void 0:e.tardiness_mins)==null?void 0:N[w])||"",((q=e==null?void 0:e.undertime_mins)==null?void 0:q[w])||"",((B=e==null?void 0:e.nd_hrs)==null?void 0:B[w])||"",((ee=e==null?void 0:e.overtime_hrs)==null?void 0:ee[w])||"",((ie=e==null?void 0:e.absent_days)==null?void 0:ie[w])||"",((j=e==null?void 0:e.leave_hrs)==null?void 0:j[w])||"",((H=e==null?void 0:e.type)==null?void 0:H[w])||""]});b.push(["","","","Subtotal",p.duty_hours.toFixed(2),parseFloat(p.tardiness_mins).toFixed(2),parseFloat(p.undertime_mins).toFixed(2),p.nd_hrs.toFixed(2),p.overtime_hrs.toFixed(2),p.absent_days.toFixed(2),p.leave_hrs.toFixed(2),""]),console.log("attttttt",e==null?void 0:e.leave_hrs),s.autoTable({head:i,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}}},NC={class:"grid grid-cols-3 gap-2"},IC={class:"relative"},VC={class:"flex justify-between items-center mt-2"},BC={class:"flex gap-1 justify-end"},UC={key:0,class:"mt-3"},zC={class:"flex gap-1 justify-end"};function GC(s,r,o,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("SubmitButton"),w=Y("ag-grid-vue");return re(),Le(Cr,null,[U("form",{onSubmit:r[4]||(r[4]=St((...S)=>e.submitForm&&e.submitForm(...S),["prevent"])),class:""},[t.state.isGenerating?(re(),Me(u,{key:0,text:"Processing"})):me("",!0),U("div",NC,[T(b,{label:"Payroll Date",class:"w-full"},{default:G(()=>[U("div",IC,[T(p,{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}),T(b,{label:"Company",isRequired:!0},{default:G(()=>[T(p,{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}),T(b,{label:"Dealership"},{default:G(()=>[T(p,{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}),T(b,{label:"Employee"},{default:G(()=>[T(p,{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})]),U("div",VC,[U("div",BC,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),this.rowData.length>0?(re(),Le("div",UC,[U("div",zC,[U("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")]),T(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"])])):me("",!0)],64)}const jC=Et(PC,[["render",GC],["__scopeId","data-v-f2fe7d4a"]]);const WC={setup(){},props:{setData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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:[],setData:this.setData,position_id:"",company_id:"",dealer_id:"",job_grade_id:"",job_classification_id:"",group_id:"",division_id:"",department_id:"",section_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},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(s){try{await Rr().shape({date_hired_from:Dt().required("Date Hired From is required"),date_hired_to:Dt().required("Date Hired To is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}).then(o=>{o.value&&(s=="generate"?this.saveRecord():s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}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 saveGeneratedReport(){this.hasValue=!1,console.log("form list",this.form),await tt.saveReport(this.form).then(s=>{if(s.status==200){this.finalData=s.data.data,console.log("result data",this.finalData);const r=this.reportModuleColums.map(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 saveRecord(){this.hasValue=!1,await tt.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(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 Rs.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 ir.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 py.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 _l.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 hy.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 es.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 xm.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 my.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 tt.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"};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"};for(const[o,i]of Object.entries(r))this.form.columns.includes(o)?this.included[i]=!0:this.included[i]=!1}}}},HC={class:"grid grid-cols-1 gap-2"},YC={class:"grid grid-cols-5 gap-2"},qC={class:"grid grid-cols-2 gap-2"},KC={class:"flex justify-between items-center"},JC={class:"flex gap-2 justify-end"};function XC(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[15]||(r[15]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",HC,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=E=>t.form.columns=E),options:t.reportModuleColums,class:"form-multiselect w-full 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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",YC,[t.included.position_id?(re(),Me(p,{key:0,label:"Position"},{default:G(()=>[T(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})):me("",!0),t.included.company_id?(re(),Me(p,{key:1,label:"Company"},{default:G(()=>[T(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})):me("",!0),t.included.dealer_id?(re(),Me(p,{key:2,label:"Dealership"},{default:G(()=>[T(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})):me("",!0),t.included.job_grade_id?(re(),Me(p,{key:3,label:"Job Grade"},{default:G(()=>[T(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})):me("",!0),t.included.job_classification_id?(re(),Me(p,{key:4,label:"Job Classification"},{default:G(()=>[T(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})):me("",!0),t.included.group_id?(re(),Me(p,{key:5,label:"Group"},{default:G(()=>[T(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})):me("",!0),t.included.division_id?(re(),Me(p,{key:6,label:"Division"},{default:G(()=>[T(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})):me("",!0),t.included.department_id?(re(),Me(p,{key:7,label:"Department"},{default:G(()=>[T(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})):me("",!0),t.included.section_id?(re(),Me(p,{key:8,label:"Section"},{default:G(()=>[T(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})):me("",!0)]),U("div",qC,[T(p,{label:"Date Hired From",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.date_hired_from,"onUpdate:modelValue":r[11]||(r[11]=E=>t.form.date_hired_from=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"Date Hired To",isRequired:!0},{default:G(()=>[T(b,{modelValue:t.form.date_hired_to,"onUpdate:modelValue":r[12]||(r[12]=E=>t.form.date_hired_to=E),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),U("div",KC,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",JC,[T(w,{btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[13]||(r[13]=E=>e.submitForm("save")),text:"Save Generated Report"}),T(w,{onClick:r[14]||(r[14]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),r[16]||(r[16]=U("div",null,null,-1))],64)}const QC=Et(WC,[["render",XC],["__scopeId","data-v-478f492d"]]);const ZC={props:["finalData","form"],mounted(){Da.register(ko,To,Eo,si,Fl,Dl,Cl),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",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,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 $C(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[U("canvas",{id:"reportChart"},null,-1)]))}const e3=Et(ZC,[["render",$C],["__scopeId","data-v-f3f7ded1"]]),t3={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})}}},r3={for:"min-price"},s3=["min","max"],a3={for:"max-price"},o3=["min","max"];function i3(s,r,o,i,t,e){return re(),Le("div",null,[U("label",r3,"Min: "+Xr(o.modelValue.min),1),$o(U("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,s3),[[nf,t.internalMin]]),U("label",a3,"Max: "+Xr(o.modelValue.max),1),$o(U("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,o3),[[nf,t.internalMax]])])}const wg=Et(t3,[["render",i3]]);const n3={setup(){},components:{PriceRange:wg,AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:e3,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Rr().shape({salary_effectivity_date:Dt().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 jt){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 tt.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(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 tt.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)}}},l3={class:"grid grid-cols-1 gap-2"},c3={class:"grid grid-cols-5 gap-2"},f3={class:"grid grid-cols-2 gap-2"},u3={class:"flex justify-between items-center"},d3={class:"flex gap-1 justify-end"};function h3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("PriceRange"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[U("form",{onSubmit:r[6]||(r[6]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[r[7]||(r[7]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",l3,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",c3,[t.included.payroll_rate?(re(),Me(p,{key:0,label:"Payroll Rate"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.payroll_rate=N),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0),t.included.salary_rate?(re(),Me(p,{key:1,label:"Salary Rate"},{default:G(()=>[T(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.salary_rate=N)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):me("",!0),t.included.payment_type?(re(),Me(p,{key:2,label:"Payment Type"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.payment_type=N),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),U("div",f3,[T(p,{label:"Effectivity Date",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.salary_effectivity_date,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.salary_effectivity_date=N),class:"form-control h-[48px]",id:"date",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),U("div",u3,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",d3,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{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})):me("",!0),U("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const p3=Et(n3,[["render",h3],["__scopeId","data-v-74bf07da"]]);const m3={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 ir.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 jt){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 tt.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(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 tt.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,i]of Object.entries(r))this.form.columns.includes(o)?this.included[i]=!0:this.included[i]=!1}}}},g3={class:"grid grid-cols-1 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,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[4]||(r[4]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",g3,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.columns=A),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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...A)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...A))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",b3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.company_id=A),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-control w-full h-[48px] mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",y3,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",_3,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),r[6]||(r[6]=U("div",null,null,-1))],64)}const w3=Et(m3,[["render",v3],["__scopeId","data-v-7fd57102"]]);const x3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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:{},methods:{async fetchCompany(){this.state.isCompanyLoading=!0;try{const s=await ir.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(s){try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),console.log("setData",this.setData),console.log("setData2",e),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},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 tt.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(i=>({id:null,report_module_id:"3",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 tt.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},columnLabel({label:s}){return s},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},C3={class:"grid grid-cols-2 gap-2"},F3={class:"flex justify-between items-center"},D3={class:"flex gap-1 justify-end"};function A3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[4]||(r[4]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",C3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiple w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiple w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",F3,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",D3,[s.items?(re(),Me(_,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[2]||(r[2]=A=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(_,{icon:"ic:round-repeat",onClick:r[3]||(r[3]=A=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),r[6]||(r[6]=U("div",null,null,-1))],64)}const S3=Et(x3,[["render",A3],["__scopeId","data-v-dd3a4d70"]]);const E3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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,columns:[],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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}},async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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(s){try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i),console.log("setData",this.setData);const e=JSON.parse(JSON.stringify(this.setData));console.log("setData2",e),Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},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 tt.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 i=[];return o.absent.absent&&Array.isArray(o.absent.absent)&&(i=o.absent.absent.map(t=>this.$formatDate(t.date))),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,absent_dates:i}});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.items=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 tt.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.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},T3={class:"grid grid-cols-1 gap-2"},R3={class:"grid grid-cols-2 gap-2"},k3={class:"grid grid-cols-2 gap-2"},L3={class:"flex justify-between items-center"},M3={class:"flex gap-1 justify-end"};function O3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",T3,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",R3,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",k3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",L3,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",M3,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const P3=Et(E3,[["render",O3],["__scopeId","data-v-7f1e390d"]]);const N3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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:[],columns:[],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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async submitForm(s){console.log("type",s);try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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},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 tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let i=[];return o.tardiness&&Array.isArray(o.tardiness)&&(i=o.tardiness.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,tardiness_records:i}});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(i=>`${i.date} (${i.value} minutes)`).join(", ")}],this.items=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 tt.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},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.fetchReportModuleColumn(),this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},I3={class:"grid grid-cols-1 gap-2"},V3={class:"grid grid-cols-2 gap-2"},B3={class:"grid grid-cols-2 gap-2"},U3={class:"flex justify-between items-center"},z3={class:"flex gap-1 justify-end"};function G3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",I3,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",V3,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",B3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",U3,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",z3,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const j3=Et(N3,[["render",G3],["__scopeId","data-v-32b78bf5"]]);const W3={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 jt){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 tt.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 tt.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:{}},H3={class:"grid grid-cols-1 md:grid-cols-3 gap-4"},Y3={class:"flex justify-between items-center"},q3={class:"flex gap-1 justify-end"};function K3(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[3]||(r[3]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[U("div",H3,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiselect w-full mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full mt-2",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.month=A),options:t.months,mode:"tags",class:"form-multiselect w-full mt-2"},null,8,["modelValue","options"])]),_:1})]),U("div",Y3,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",q3,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const J3=Et(W3,[["render",K3],["__scopeId","data-v-b9509db6"]]);const X3={setup(){},props:{setData:Object,recordData:Object},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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:[],columns:[],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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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(s){console.log("type",s);try{await Rr().shape({company_id:Dt().required("Company is required")}).validate(this.form,{abortEarly:!1}),this.$swal.fire({title:`Are you sure you want to ${s=="save"?"save":"generate"} this report?`,text:"",icon:"question",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",confirmButtonText:"Yes",cancelButtonText:"No",html:`${s=="save"?``:""}`,preConfirm:()=>{if(s=="save"){const o=document.getElementById("swal-input").value;return o?this.form.report_name=o:(this.$swal.showValidationMessage("The title field is required"),!1)}}}).then(o=>{o.value&&(s=="generate"?(console.log("done"),this.saveRecord()):s=="save"&&this.saveGeneratedReport())})}catch(r){if(r instanceof jt){const o={};r.inner.forEach(i=>{o[i.path]=i.message}),this.errors=o}this.state.isSaving=!1}},async saveGeneratedReport(){this.state.isSaving=!0;const s=this.gridApi.getDataAsCsv({onlySelected:!1,columnKeys:this.colDefs.filter(p=>p.field!=="actions").map(p=>p.field)});this.hasValue=!1;let r=new FormData;Object.keys(this.form).forEach(p=>{p!=="attachment"&&p!="columns"&&p!="setData"&&r.append(p,this.form[p])});const i=`report-${new Date().toISOString().slice(0,19).replace(/:/g,"-")}.csv`,t=new Blob([s],{type:"text/csv"});r.append("csv_file",t,i),r.append("attachment",i);const e=JSON.parse(JSON.stringify(this.setData));Object.values(this.form.columns).forEach((p,b)=>{r.append(`columns[${b}]`,p)}),Object.entries(e).forEach(([p,b])=>{r.append(`setData[${p}]`,b)}),await tt.saveReport(r).then(p=>{p.status==201&&(this.$swal.fire({title:"Great!",text:"Record successfully saved.",icon:"success",timer:2e3}),this.state.isSaving=!1)}).catch(p=>{console.log(p),this.state.isSaving=!1,this.$swal.fire({title:"Ooops! something is wrong.",text:p.response.data.message,icon:"error",timer:2e3})})},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 tt.fetchGeneratedReport(this.form).then(s=>{if(s.status===200){this.finalData=s.data.data;const r=this.finalData.map(o=>{let i=[];return o.undertime&&Array.isArray(o.undertime)&&(i=o.undertime.map(t=>{const[e,u]=t.split("|");return{date:this.$formatDate(e),value:Number(u)}})),console.log("Data Item:",i),{employee_id:o.employee_id||null,fullname:`${o.firstname} ${o.lastname}`||null,undertime_records:i}});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(i=>`${i.date} (${i.value} minutes)`).join(", ")}],this.items=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 tt.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},populateFormFromRecordData(){if(this.recordData&&this.recordData.id)try{const s=JSON.parse(this.recordData.columns||"[]"),r=JSON.parse(this.recordData.filters||"{}");this.form.employee_id=r.employee_id?r.employee_id.split(",").map(o=>o.trim()):[],this.form.company_id=r.company_id||null,this.form.dealer_id=r.dealer_id||null,this.form.start_date=r.start_date||null,this.form.end_date=r.end_date||null,this.recordData.report_name&&(this.form.report_name=this.recordData.report_name)}catch(s){console.error("Error parsing recordData:",s)}}},mounted(){this.recordData&&this.populateFormFromRecordData(),this.fetchEmployee(),this.fetchCompany(),this.fetchDealership()},watch:{recordData:{handler(s){s&&s.id&&this.populateFormFromRecordData()},immediate:!0,deep:!0}}},Q3={class:"grid grid-cols-1 gap-2"},Z3={class:"grid grid-cols-2 gap-2"},$3={class:"grid grid-cols-2 gap-2"},e5={class:"flex justify-between items-center"},t5={class:"flex gap-1 justify-end"};function r5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",Q3,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full h-[48px] mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",Z3,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",$3,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",e5,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",t5,[s.items?(re(),Me(w,{key:0,btnClass:"text-white bg-green-500 hover:ring ring-green-600 ring-offset-1 py-2 px-3",onClick:r[5]||(r[5]=E=>e.submitForm("save")),text:"Save Generated Report"})):me("",!0),T(w,{icon:"ic:round-repeat",onClick:r[6]||(r[6]=E=>e.submitForm("generate")),text:"Generate"})])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const s5=Et(X3,[["render",r5],["__scopeId","data-v-a2482c2c"]]);const a5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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 jt){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 tt.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),i=[];for(let e=new Date(r);e<=o;e.setDate(e.getDate()+1)){const u=this.$formatDate(e);i.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},...i];const t=this.finalData.map(e=>{const u={employee_id:e.employee_id||null,fullname:`${e.firstname} ${e.lastname}`||null};for(let p=new Date(r);p<=o;p.setDate(p.getDate()+1)){const b=this.$formatDate(p);console.log(e.timelog),e.timelog.map(A=>{console.log(A.datetimelog+" - "+b)});const _=e.timelog.filter(A=>this.$formatDate(A.datetimelog).startsWith(b));let w="No data",S="No data";_.forEach(A=>{A.in_out==="I"?w=A.datetimelog.split(" ")[1]:A.in_out==="O"&&(S=A.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 tt.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:{}},o5={class:"grid grid-cols-1 gap-2"},i5={class:"grid grid-cols-2 gap-2"},n5={class:"grid grid-cols-2 gap-2"},l5={class:"flex justify-between items-center"},c5={class:"flex gap-1 justify-end"};function f5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[5]||(r[5]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",o5,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",i5,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",n5,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",l5,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",c5,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const u5=Et(a5,[["render",f5],["__scopeId","data-v-34e3facc"]]);const d5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 ir.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 Rr().shape({from_date:Dt().required("From Date is required"),to_date:Dt().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 jt){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 tt.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(i=>({id:null,report_module_id:"12",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 xf.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 tt.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)}}},h5={class:"grid grid-cols-1 gap-2"},p5={class:"grid grid-cols-2 gap-2"},m5={class:"grid grid-cols-5 gap-2"},g5={class:"grid grid-cols-2 gap-2"},b5={class:"flex justify-between items-center"},y5={class:"flex gap-1 justify-end"};function _5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",h5,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...E)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...E))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",p5,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",m5,[t.included.charge_to?(re(),Me(p,{key:0,label:"Charges To"},{default:G(()=>[T(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})):me("",!0),t.included.status?(re(),Me(p,{key:1,label:"Status"},{default:G(()=>[T(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})):me("",!0)]),U("div",g5,[T(p,{label:"From Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"To Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",b5,[t.items?(re(),Me(_,{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"])):me("",!0),U("div",y5,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.items?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),r[10]||(r[10]=U("div",null,null,-1))],64)}const v5=Et(d5,[["render",_5],["__scopeId","data-v-409e4aa6"]]);function cl(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 _f={exports:{}},af={exports:{}};/*! cpexcel.js (C) 2013-present SheetJS -- http://sheetjs.com */var dm;function w5(){return dm||(dm=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{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜ¢£¥₧ƒáíóúñѪº¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[620]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàąçêëèïîćÄĄĘęłôöĆûùŚÖܢ٥śƒŹŻóÓńŃźż¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[737]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡΣΤΥΦΧΨΩαβγδεζηθικλμνξοπρσςτυφχψ░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀ωάέήϊίόύϋώΆΈΉΊΌΎΏ±≥≤ΪΫ÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[850]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø×ƒáíóúñѪº¿®¬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ðÐÊËÈıÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµþÞÚÛÙýݯ´­±‗¾¶§÷¸°¨·¹³²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[852]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäůćçłëŐőîŹÄĆÉĹĺôöĽľŚśÖÜŤťŁ×čáíóúĄąŽžĘ꬟Ⱥ«»░▒▓│┤ÁÂĚŞ╣║╗╝Żż┐└┴┬├─┼Ăă╚╔╩╦╠═╬¤đĐĎËďŇÍÎě┘┌█▄ŢŮ▀ÓßÔŃńňŠšŔÚŕŰýÝţ´­˝˛ˇ˘§÷¸°¨˙űŘř■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[857]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîıÄÅÉæÆôöòûùİÖÜø£ØŞşáíóúñÑĞ𿮬½¼¡«»░▒▓│┤ÁÂÀ©╣║╗╝¢¥┐└┴┬├─┼ãÃ╚╔╩╦╠═╬¤ºªÊËÈ�ÍÎÏ┘┌█▄¦Ì▀ÓßÔÒõÕµ�×ÚÛÙìÿ¯´­±�¾¶§÷¸°¨·¹³²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[861]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèÐðÞÄÅÉæÆôöþûÝýÖÜø£Ø₧ƒáíóúÁÍÓÚ¿⌐¬½¼¡«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[865]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÇüéâäàåçêëèïîìÄÅÉæÆôöòûùÿÖÜø£Ø₧ƒáíóúñѪº¿⌐¬½¼¡«¤░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[866]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмноп░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀рстуфхцчшщъыьэюяЁёЄєЇїЎў°∙·√№¤■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[874]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€����…�����������‘’“”•–—�������� กขฃคฅฆงจฉชซฌญฎฏฐฑฒณดตถทธนบปผฝพฟภมยรฤลฦวศษสหฬอฮฯะัาำิีึืฺุู����฿เแโใไๅๆ็่้๊๋์ํ๎๏๐๑๒๓๔๕๖๗๘๙๚๛����`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[895]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ČüéďäĎŤčěĚĹÍľǪÄÁÉžŽôöÓůÚýÖÜŠĽÝŘťáíóúňŇŮÔšřŕŔ¼§«»░▒▓│┤╡╢╖╕╣║╗╝╜╛┐└┴┬├─┼╞╟╚╔╩╦╠═╬╧╨╤╥╙╘╒╓╫╪┘┌█▄▌▐▀αßΓπΣσµτΦΘΩδ∞φε∩≡±≥≤⌠⌡÷≈°∙·√ⁿ²■ `,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[932]=function(){var o=[],i={},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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[t[252][e]]=64512+e,o[64512+e]=t[252][e]);return{enc:i,dec:o}}(),r[936]=function(){var o=[],i={},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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[t[254][e]]=65024+e,o[65024+e]=t[254][e]);return{enc:i,dec:o}}(),r[949]=function(){var o=[],i={},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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[t[253][e]]=64768+e,o[64768+e]=t[253][e]);return{enc:i,dec:o}}(),r[950]=function(){var o=[],i={},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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[t[249][e]]=63744+e,o[63744+e]=t[249][e]);return{enc:i,dec:o}}(),r[1250]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰Š‹ŚŤŽŹ�‘’“”•–—�™š›śťžź ˇ˘Ł¤Ą¦§¨©Ş«¬­®Ż°±˛ł´µ¶·¸ąş»Ľ˝ľżŔÁÂĂÄĹĆÇČÉĘËĚÍÎĎĐŃŇÓÔŐÖ×ŘŮÚŰÜÝŢßŕáâăäĺćçčéęëěíîďđńňóôőö÷řůúűüýţ˙`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1251]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ЂЃ‚ѓ„…†‡€‰Љ‹ЊЌЋЏђ‘’“”•–—�™љ›њќћџ ЎўЈ¤Ґ¦§Ё©Є«¬­®Ї°±Ііґµ¶·ё№є»јЅѕїАБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯабвгдежзийклмнопрстуфхцчшщъыьэюя`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1252]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ�Ž��‘’“”•–—˜™š›œ�žŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1253]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡�‰�‹�����‘’“”•–—�™�›���� ΅Ά£¤¥¦§¨©�«¬­®―°±²³΄µ¶·ΈΉΊ»Ό½ΎΏΐΑΒΓΔΕΖΗΘΙΚΛΜΝΞΟΠΡ�ΣΤΥΦΧΨΩΪΫάέήίΰαβγδεζηθικλμνξοπρςστυφχψωϊϋόύώ�`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1254]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰Š‹Œ����‘’“”•–—˜™š›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏĞÑÒÓÔÕÖרÙÚÛÜİŞßàáâãäåæçèéêëìíîïğñòóôõö÷øùúûüışÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1255]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹�����‘’“”•–—˜™�›���� ¡¢£₪¥¦§¨©×«¬­®¯°±²³´µ¶·¸¹÷»¼½¾¿ְֱֲֳִֵֶַָֹ�ֻּֽ־ֿ׀ׁׂ׃װױײ׳״�������אבגדהוזחטיךכלםמןנסעףפץצקרשת��‎‏�`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1256]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€پ‚ƒ„…†‡ˆ‰ٹ‹Œچژڈگ‘’“”•–—ک™ڑ›œ‌‍ں ،¢£¤¥¦§¨©ھ«¬­®¯°±²³´µ¶·¸¹؛»¼½¾؟ہءآأؤإئابةتثجحخدذرزسشصض×طظعغـفقكàلâمنهوçèéêëىيîïًٌٍَôُِ÷ّùْûü‎‏ے`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1257]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚�„…†‡�‰�‹�¨ˇ¸�‘’“”•–—�™�›�¯˛� �¢£¤�¦§Ø©Ŗ«¬­®Æ°±²³´µ¶·ø¹ŗ»¼½¾æĄĮĀĆÄÅĘĒČÉŹĖĢĶĪĻŠŃŅÓŌÕÖ×ŲŁŚŪÜŻŽßąįāćäåęēčéźėģķīļšńņóōõö÷ųłśūüżž˙`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1258]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€�‚ƒ„…†‡ˆ‰�‹Œ����‘’“”•–—˜™�›œ��Ÿ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂĂÄÅÆÇÈÉÊË̀ÍÎÏĐÑ̉ÓÔƠÖרÙÚÛÜỮßàáâăäåæçèéêë́íîïđṇ̃óôơö÷øùúûüư₫ÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[1e4]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤‹›fifl‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10006]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~Ĺ²É³ÖÜ΅àâä΄¨çéèê룙î‰ôö¦­ùûü†ΓΔΘΛΞΠß®©ΣΪ§≠°·Α±≤≥¥ΒΕΖΗΙΚΜΦΫΨΩάΝ¬ΟΡ≈Τ«»… ΥΧΆΈœ–―“”‘’÷ΉΊΌΎέήίόΏύαβψδεφγηιξκλμνοπώρστθωςχυζϊϋΐΰ�`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10007]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~АБВГДЕЖЗИЙКЛМНОПРСТУФХЦЧШЩЪЫЬЭЮЯ†°¢£§•¶І®©™Ђђ≠Ѓѓ∞±≤≥іµ∂ЈЄєЇїЉљЊњјЅ¬√ƒ≈∆«»… ЋћЌќѕ–—“”‘’÷„ЎўЏџ№Ёёяабвгдежзийклмнопрстуфхцчшщъыьэю¤`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10008]=function(){var o=[],i={},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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[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&&(i[t[247][e]]=63232+e,o[63232+e]=t[247][e]);return{enc:i,dec:o}}(),r[10029]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄĀāÉĄÖÜáąČäčĆć鏟ĎíďĒēĖóėôöõúĚěü†°Ę£§•¶ß®©™ę¨≠ģĮįĪ≤≥īĶ∂∑łĻļĽľĹĺŅņѬ√ńŇ∆«»… ňŐÕőŌ–—“”‘’÷◊ōŔŕŘ‹›řŖŗŠ‚„šŚśÁŤťÍŽžŪÓÔūŮÚůŰűŲųÝýķŻŁżĢˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10079]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûüݰ¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸ⁄¤ÐðÞþý·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙıˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[10081]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~ÄÅÇÉÑÖÜáàâäãåçéèêëíìîïñóòôöõúùûü†°¢£§•¶ß®©™´¨≠ÆØ∞±≤≥¥µ∂∑∏π∫ªºΩæø¿¡¬√ƒ≈∆«»… ÀÃÕŒœ–—“”‘’÷◊ÿŸĞğİıŞş‡·‚„‰ÂÊÁËÈÍÎÏÌÓÔ�ÒÚÛÙ�ˆ˜¯˘˙˚¸˝˛ˇ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),r[28591]=function(){for(var o=`\0\x07\b \v\f\r\x1B !"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\\]^_\`abcdefghijklmnopqrstuvwxyz{|}~€‚ƒ„…†‡ˆ‰Š‹ŒŽ‘’“”•–—˜™š›œžŸ ¡¢£¤¥¦§¨©ª«¬­®¯°±²³´µ¶·¸¹º»¼½¾¿ÀÁÂÃÄÅÆÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖרÙÚÛÜÝÞßàáâãäåæçèéêëìíîïðñòóôõö÷øùúûüýþÿ`,i=[],t={},e=0;e!=o.length;++e)o.charCodeAt(e)!==65533&&(t[o.charAt(e)]=e),i[e]=o.charAt(e);return{enc:t,dec:i}}(),s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"&&(s.exports=r);/*! cputils.js (C) 2013-present SheetJS -- http://sheetjs.com */(function(o,i){if(typeof r>"u")if(typeof cl<"u"){var t=r;s.exports&&typeof DO_NOT_EXPORT_CODEPAGE>"u"?s.exports=i(t):o.cptable=i(t)}else throw new Error("cptable not found");else r=i(r)})(Wb,function(o){var i={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],p={},b={},_={},w={},S=function(Se){return String.fromCharCode(Se)},A=function(Se){return Se.charCodeAt(0)},E=typeof Buffer<"u",M=function(){};if(E){var N=!Buffer.from;if(!N)try{Buffer.from("foo","utf8")}catch{N=!0}M=N?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 q=1024,B=Buffer.allocUnsafe(q),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>10&1023)],pe[nt++]=Q[56320+(hr&1023)]));pe=pe.slice(0,nt)}else for(pe=Buffer.allocUnsafe(oe),se=0;se>8}return function(se){var nt=se.length,Ie=0,hr=0;if(2*nt>q&&(q=2*nt,B=Buffer.allocUnsafe(q)),Buffer.isBuffer(se))for(Ie=0;Ie>8}return function(Ie,hr){var Gr=Ie.length,yt=Buffer.allocUnsafe(2*Gr),xt=0,Ct=0,Ns=0,kr=0,ts=0;if(typeof Ie=="string"){for(xt=kr=0;xt0&&(yt[kr++]=Ce[Ct]);yt=yt.slice(0,kr)}else if(Buffer.isBuffer(Ie)){for(xt=kr=0;xt0&&(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;xt0&&(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,se=0;for(se=0;se<65536;++se)Ce[2*se]=255,Ce[2*se+1]=253;for(Te=0;Te>8);return function(Ie){var hr=Ie.length,Gr=Buffer.allocUnsafe(2*hr),yt=0,xt=0,Ct=0;if(Buffer.isBuffer(Ie))for(yt=0;ytq&&(q=4*Q,B=Buffer.allocUnsafe(q));var xe=0;Q>=3&&Se[0]==239&&Se[1]==187&&Se[2]==191&&(xe=3);for(var oe=1,pe=0,se=0;xe>8):(Ce-=65536,Te=55296+(Ce>>10&1023),Ce=56320+(Ce&1023),B[pe++]=Te&255,B[pe++]=Te>>>8,B[pe++]=Ce&255,B[pe++]=Ce>>>8&255);return B.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>q&&(q=4*Ce,B=Buffer.allocUnsafe(q));for(var se=0;se>6),B[oe++]=128+(Te&63)):Te>=55296&&Te<=57343?(Te-=55296,++se,xe=(pe?Se.charCodeAt(se):Se[se].charCodeAt(0))-56320+(Te<<10),B[oe++]=240+(xe>>>18&7),B[oe++]=144+(xe>>>12&63),B[oe++]=128+(xe>>>6&63),B[oe++]=128+(xe&63)):(B[oe++]=224+(Te>>12),B[oe++]=128+(Te>>6&63),B[oe++]=128+(Te&63));return!Q||Q==="buf"?B.slice(0,oe):Q!=="arr"?B.slice(0,oe).toString("binary"):[].slice.call(B,0,oe)}}var W=function(){if(E){if(_[t[0]])return;var Se=0,Q=0;for(Se=0;Se255?(xe[se]=oe>>8,xe[++se]=oe&255):xe[se]=oe&255;else if(Gr=i[Se])switch(Gr){case"utf8":if(E&&yt){xe=M(Q,Gr),se=xe.length;break}for(pe=0;pe>6),xe[++se]=128+(oe&63)):oe>=55296&&oe<=57343?(oe-=55296,nt=(yt?Q.charCodeAt(++pe):Q[++pe].charCodeAt(0))-56320+(oe<<10),xe[se]=240+(nt>>>18&7),xe[++se]=144+(nt>>>12&63),xe[++se]=128+(nt>>>6&63),xe[++se]=128+(nt&63)):(xe[se]=224+(oe>>12),xe[++se]=128+(oe>>6&63),xe[++se]=128+(oe&63));break;case"ascii":if(E&&typeof Q=="string"){xe=M(Q,Gr),se=xe.length;break}for(pe=0;pe>8;break;case"utf16be":for(pe=0;pe>8,xe[se++]=oe&255;break;case"utf32le":for(pe=0;pe=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255,oe>>=8,xe[se++]=oe&255;break;case"utf32be":for(pe=0;pe=55296&&oe<=57343&&(oe=65536+(oe-55296<<10)+(Q[++pe].charCodeAt(0)-56320)),xe[se+3]=oe&255,oe>>=8,xe[se+2]=oe&255,oe>>=8,xe[se+1]=oe&255,oe>>=8,xe[se]=oe&255,se+=4;break;case"utf7":for(pe=0;pe-1){xe[se++]=xt.charCodeAt(0);continue}var Ct=At(1201,xt);xe[se++]=43,xe[se++]=Je.charCodeAt(Ct[0]>>2),xe[se++]=Je.charCodeAt(((Ct[0]&3)<<4)+((Ct[1]||0)>>4)),xe[se++]=Je.charCodeAt(((Ct[1]&15)<<2)+((Ct[2]||0)>>6)),xe[se++]=45}break;default:throw new Error("Unsupported magic: "+Se+" "+i[Se])}else throw new Error("Unrecognized CP: "+Se);return xe=xe.slice(0,se),E?!Ce||Ce==="buf"?xe:Ce!=="arr"?xe.toString("binary"):[].slice.call(xe):Ce=="str"?xe.map(S).join(""):xe},Lt=function At(Se,Q){var Ce;if(Ce=_[Se])return Ce(Q);if(typeof Q=="string")return At(Se,Q.split("").map(A));var Te=Q.length,xe=new Array(Te),oe="",pe=0,se=0,nt=1,Ie=0,hr=0,Gr=o[Se],yt,xt="";if(Gr&&(yt=Gr.dec))for(se=0;se=3&&Q[0]==239&&Q[1]==187&&Q[2]==191&&(se=3);se>10&1023),pe=56320+(pe&1023),xe[Ie++]=String.fromCharCode(hr)),xe[Ie++]=String.fromCharCode(pe);break;case"ascii":if(E&&Buffer.isBuffer(Q))return Q.toString(xt);for(se=0;se=2&&Q[0]==255&&Q[1]==254&&(se=2),E&&Buffer.isBuffer(Q))return Q.toString(xt);for(nt=2;se+1=2&&Q[0]==254&&Q[1]==255&&(se=2),nt=2;se+1=4&&Q[0]==255&&Q[1]==254&&Q[2]===0&&Q[3]===0&&(se=4),nt=4;se65535?(pe-=65536,xe[Ie++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Ie++]=String.fromCharCode(56320+(pe&1023))):xe[Ie++]=String.fromCharCode(pe);break;case"utf32be":for(Te>=4&&Q[3]==255&&Q[2]==254&&Q[1]===0&&Q[0]===0&&(se=4),nt=4;se65535?(pe-=65536,xe[Ie++]=String.fromCharCode(55296+(pe>>10&1023)),xe[Ie++]=String.fromCharCode(56320+(pe&1023))):xe[Ie++]=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?se=5:(Q[3]==56||Q[3]==57||Q[3]==43||Q[3]==47)&&(se=4));se>4,Ns.push(ts),$a=Je.indexOf(String.fromCharCode(Q[se+Ws++])),!($a===-1||(ai=(Lo&15)<<4|$a>>2,Ns.push(ai),rs=Je.indexOf(String.fromCharCode(Q[se+Ws++])),rs===-1)));)oi=($a&3)<<6|rs,rs<64&&Ns.push(oi);for(kr=At(1201,Ns),Ws=0;Ws>1;++l)n[l]=String.fromCharCode(a.charCodeAt(2*l+1)+(a.charCodeAt(2*l)<<8));return n.join("")}var N=function(a){var n=a.charCodeAt(0),l=a.charCodeAt(1);return n==255&&l==254?function(c){for(var f=[],h=0;h>1;++h)f[h]=String.fromCharCode(c.charCodeAt(2*h)+(c.charCodeAt(2*h+1)<<8));return f.join("")}(a.slice(2)):n==254&&l==255?M(a.slice(2)):n==65279?a.slice(1):a},q=function(a){return String.fromCharCode(a)},B=function(a){return String.fromCharCode(a)};e!==void 0&&(S=function(a){w(u=a)},N=function(a){return a.charCodeAt(0)===255&&a.charCodeAt(1)===254?e.utils.decode(1200,E(a.slice(2))):a},q=function(a){return u===1200?String.fromCharCode(a):e.utils.decode(u,[255&a,a>>8])[0]},B=function(a){return e.utils.decode(p,[a])[0]});var ee="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";function ie(a){for(var n,l,c,f,h,d="",m=0,g=0,y=0;y>2,h=(3&n)<<4|(l=a.charCodeAt(y++))>>4,m=(15&l)<<2|(c=a.charCodeAt(y++))>>6,g=63&c,isNaN(l)?m=g=64:isNaN(c)&&(g=64),d+=ee.charAt(f)+ee.charAt(h)+ee.charAt(m)+ee.charAt(g);return d}function j(a){var n,l,c,f,h,d,m="";a=a.replace(/[^\w\+\/\=]/g,"");for(var g=0;g>4,m+=String.fromCharCode(n),l=(15&f)<<4|(h=ee.indexOf(a.charAt(g++)))>>2,h!==64&&(m+=String.fromCharCode(l)),c=(3&h)<<6|(d=ee.indexOf(a.charAt(g++))),d!==64&&(m+=String.fromCharCode(c));return m}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(n,l){return l?new Buffer(n,l):new Buffer(n)}:Buffer.from.bind(Buffer)}();function W(a){return H?Buffer.alloc?Buffer.alloc(a):new Buffer(a):new(typeof Uint8Array<"u"?Uint8Array:Array)(a)}function Ae(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(n){return 255&n.charCodeAt(0)})};function it(a){if(typeof ArrayBuffer>"u")return ve(a);for(var n=new ArrayBuffer(a.length),l=new Uint8Array(n),c=0;c!=a.length;++c)l[c]=255&a.charCodeAt(c);return n}function ft(a){if(Array.isArray(a))return a.map(function(c){return String.fromCharCode(c)}).join("");for(var n=[],l=0;l"u")throw new Error("Unsupported");if(a instanceof ArrayBuffer)return Je(new Uint8Array(a));for(var n=new Array(a.length),l=0;l"u")return[].concat.apply([],a.map(function(h){return Array.isArray(h)?h:[].slice.call(h)}));for(var l=0,n=0,l=0;l=7+n&&(32|a.charCodeAt(n))==103&&(32|a.charCodeAt(n+1))==101&&(32|a.charCodeAt(n+2))==110&&(32|a.charCodeAt(n+3))==101&&(32|a.charCodeAt(n+4))==114&&(32|a.charCodeAt(n+5))==97&&(32|a.charCodeAt(n+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},se={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 nt(a,n,l){for(var c=a<0?-1:1,f=a*c,h=0,d=1,m=0,g=1,y=0,v=0,x=Math.floor(f);y(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,n){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,n&&n.date1904),n)}throw new Error("unsupported value in General format: "+a)}function ts(a){if(a.length<=3)return a;for(var n=a.length%3,l=a.substr(0,n);n!=a.length;n+=3)l+=(0n.length?f:rs(n.substr(0,n.length-f.length))+f;if(h=n.match(oi))return x=h,m=C,g=F,y=parseInt(x[4],10),v=Math.round(m*y),m=Math.floor(v/y),g+(m===0?"":""+m)+" "+((v-=m*y)==0?Yr(" ",x[1].length+1+x[4].length):Er(v,x[1].length)+x[2]+"/"+x[3]+Lt(y,x[4].length));if(n.match(/^#+0+$/))return F+Q(C,n.length-n.indexOf("0"));if(h=n.match(ii))return f=Ws(l,h[1].length).replace(/^([^\.]+)$/,"$1."+rs(h[1])).replace(/\.$/,"."+rs(h[1])).replace(/\.(\d*)$/,function(R,O){return"."+O+Yr("0",rs(h[1]).length-O.length)}),n.indexOf("0.")!==-1?f:f.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),h=n.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=n.match(/^#{1,3},##0(\.?)$/))return F+ts(Q(C,0));if(h=n.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+Hs(a,n,-l):ts(""+(Math.floor(l)+(x=l,(k=h[1].length)<(""+Math.round((x-Math.floor(x))*Math.pow(10,k))).length?1:0)))+"."+Lt(qf(l,h[1].length),h[1].length);if(h=n.match(/^#,#*,#0/))return Hs(a,n.replace(/^#,#*,/,""),l);if(h=n.match(/^([0#]+)(\\?-([0#]+))+$/))return f=Mt(Hs(a,n.replace(/[\\-]/g,""),l)),d=0,Mt(Mt(n.replace(/\\/g,"")).replace(/[0#]/g,function(R){return dn.length?m:rs(n.substr(0,n.length-m.length))+m;if(g=n.match(oi))return x+((C=v)===0?"":""+C)+Yr(" ",(C=g)[1].length+2+C[4].length);if(n.match(/^#+0+$/))return x+Lt(v,n.length-n.indexOf("0"));if(g=n.match(ii))return m=(m=(""+l).replace(/^([^\.]+)$/,"$1."+rs(g[1])).replace(/\.$/,"."+rs(g[1]))).replace(/\.(\d*)$/,function(D,P){return"."+P+Yr("0",rs(g[1]).length-P.length)}),n.indexOf("0.")!==-1?m:m.replace(/^0\./,".");if(n=n.replace(/^#+([0.])/,"$1"),g=n.match(/^(0*)\.(#*)$/))return x+(""+v).replace(/\.(\d*[1-9])0*$/,".$1").replace(/^(-?\d*)$/,"$1.").replace(/^0\./,g[1].length?"0.":".");if(g=n.match(/^#{1,3},##0(\.?)$/))return x+ts(""+v);if(g=n.match(/^#,##0\.([#0]*0)$/))return l<0?"-"+ha(a,n,-l):ts(""+l)+"."+Yr("0",g[1].length);if(g=n.match(/^#,#*,#0/))return ha(a,n.replace(/^#,#*,/,""),l);if(g=n.match(/^([0#]+)(\\?-([0#]+))+$/))return m=Mt(ha(a,n.replace(/[\\-]/g,""),l)),y=0,Mt(Mt(n.replace(/\\/g,"")).replace(/[0#]/g,function(D){return y=€acfijklopqrtuvwxzP".indexOf(v)===-1)throw new Error("unrecognized character "+v+" in "+a);m[m.length]={t:"t",v},++y}var D,P=0,L=0;for(y=m.length-1,x="t";0<=y;--y)switch(m[y].t){case"h":case"H":m[y].t=C,x="h",P<1&&(P=1);break;case"s":(D=m[y].v.match(/\.0+$/))&&(L=Math.max(L,D[0].length-1)),P<3&&(P=3);case"d":case"y":case"M":case"e":x=m[y].t;break;case"m":x==="s"&&(m[y].t="M",P<2&&(P=2));break;case"X":break;case"Z":(P=(P=P<1&&m[y].v.match(/[Hh]/)?1:P)<2&&m[y].v.match(/[Mm]/)?2:P)<3&&m[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 R,O="";for(y=0;y=m[y].v.length-1?(R-=m[y].v.length,m[y].v=V.substr(R+1,m[y].v.length)):R<0?m[y].v="":(m[y].v=V.substr(0,R+1),R=-1),m[y].t="t",te=y);0<=R&&te[=]?|<[>=]?)(-?\d+(?:\.\d*)?)\]/;function Xf(a,n){if(n!=null){var l=parseFloat(n[2]);switch(n[1]){case"=":if(a==l)return 1;break;case">":if(l":if(a!=l)return 1;break;case">=":if(l<=a)return 1;break;case"<=":if(a<=l)return 1}}}function Cg(a,n){var l=function(d){for(var m=[],g=!1,y=0,v=0;y]/)==null&&l[1].match(/\[[=<>]/)==null?[c,h]:(a=l[0].match(Jf),h=l[1].match(Jf),Xf(n,a)?[c,l[0]]:Xf(n,h)?[c,l[1]]:[c,l[a!=null&&h!=null?2:1]])}function Us(a,n,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=se[a]||"General")}if(Ce(c,0))return kr(n,l);var f=Cg(c,n=n instanceof Date?xt(n,l.date1904):n);if(Ce(f[1]))return kr(n,l);if(n===!0)n="TRUE";else if(n===!1)n="FALSE";else if(n===""||n==null)return"";return xg(f[1],n,l,f[0])}function pa(a,n){if(typeof n!="number"){n=+n||-1;for(var l=0;l<392;++l)if(oe[l]!=null){if(oe[l]==a){n=l;break}}else n<0&&(n=l);n<0&&(n=391)}return oe[n]=a,n}function ni(a){for(var n=0;n!=392;++n)a[n]!==void 0&&pa(a[n],n)}function Mo(){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 Qf={format:Us,load:pa,_table:oe,load_table:ni,parse_date_code:Ie,is_date:eo,get_table:function(){return Qf._table=oe}},Fg={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"},Zf=/[dD]+|[mM]+|[yYeE]+|[Hh]+|[Ss]+/g,Va,Dg=function(){var a={};a.version="1.2.0";var n=function(){for(var R=0,O=new Array(256),I=0;I!=256;++I)R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=1&(R=I)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1)?-306674912^R>>>1:R>>>1,O[I]=R;return typeof Int32Array<"u"?new Int32Array(O):O}(),l=function(R){for(var O=0,I=0,X=0,V=new(typeof Int32Array<"u"?Int32Array:Array)(4096),X=0;X!=256;++X)V[X]=R[X];for(X=0;X!=256;++X)for(I=R[X],O=256+X;O<4096;O+=256)I=V[O]=I>>>8^R[255&I];var ae=[];for(X=1;X!=16;++X)ae[X-1]=typeof Int32Array<"u"?V.subarray(256*X,256*X+256):V.slice(256*X,256*X+256);return ae}(n),c=l[0],f=l[1],h=l[2],d=l[3],m=l[4],g=l[5],y=l[6],v=l[7],x=l[8],C=l[9],F=l[10],k=l[11],D=l[12],P=l[13],L=l[14];return a.table=n,a.bstr=function(R,O){for(var I=-1^O,V=0,X=R.length;V>>8^n[255&(I^R.charCodeAt(V++))];return~I},a.buf=function(R,O){for(var I=-1^O,V=R.length-15,X=0;X>8&255]^D[R[X++]^I>>16&255]^k[R[X++]^I>>>24]^F[R[X++]]^C[R[X++]]^x[R[X++]]^v[R[X++]]^y[R[X++]]^g[R[X++]]^m[R[X++]]^d[R[X++]]^h[R[X++]]^f[R[X++]]^c[R[X++]]^n[R[X++]];for(V+=15;X>>8^n[255&(I^R[X++])];return~I},a.str=function(R,O){for(var I,V=-1^O,X=0,ae=R.length,te=0;X>>8^n[255&(V^te)]:te<2048?(V=V>>>8^n[255&(V^(192|te>>6&31))])>>>8^n[255&(V^(128|63&te))]:55296<=te&&te<57344?(te=64+(1023&te),I=1023&R.charCodeAt(X++),(V=(V=(V=V>>>8^n[255&(V^(240|te>>8&7))])>>>8^n[255&(V^(128|te>>2&63))])>>>8^n[255&(V^(128|I>>6&15|(3&te)<<4))])>>>8^n[255&(V^(128|63&I))]):(V=(V=V>>>8^n[255&(V^(224|te>>12&15))])>>>8^n[255&(V^(128|te>>6&63))])>>>8^n[255&(V^(128|63&te))];return~V},a}(),_t=function(){var a,n={};function l(z){if(z.charAt(z.length-1)=="/")return z.slice(0,-1).indexOf("/")===-1?z:l(z.slice(0,-1));var he=z.lastIndexOf("/");return he===-1?z:z.slice(0,he+1)}function c(z){if(z.charAt(z.length-1)=="/")return c(z.slice(0,-1));var he=z.lastIndexOf("/");return he===-1?z:z.slice(he+1)}function f(z){gs(z,0);for(var he,J={};z.l<=z.length-4;){var fe=z.read_shift(2),K=z.read_shift(2),Ee=z.l+K,ue={};fe===21589&&(1&(he=z.read_shift(1))&&(ue.mtime=z.read_shift(4)),5>>2)-1;if(Ft){for(var ct=0;ct=ye.length?-1:ge,ge=K+1;ge=ye.length?-1:ge,lt.type=1}else l(z.FullPaths[K+1]||"")==l(Ze)&&(lt.R=K+1),lt.type=2}}}function v(z,he){var J=he||{};if(J.fileType=="mad")return function(Ze,Ye){for(var at=Ye||{},dt=at.boundary||"SheetJS",ht=["MIME-Version: 1.0",'Content-Type: multipart/related; boundary="'+(dt="------="+dt).slice(2)+'"',"","",""],Ge=Ze.FullPaths[0],Pe=Ge,pt=Ze.FileIndex[0],Qe=1;Qe>>1,et.write_shift(2,gr),gr=(gr=(gr=Bt.getFullYear()-1980)<<4|Bt.getMonth()+1)<<5|Bt.getDate(),et.write_shift(2,gr)}(Ge,Ot.mt):Ge.write_shift(4,0),Ge.write_shift(-4,ct[wt]),Ge.write_shift(4,ot.length),Ge.write_shift(4,Ot.content.length),Ge.write_shift(2,Ke.length),Ge.write_shift(2,0),vt+=Ge.length,dt.push(Ge),vt+=Ke.length,dt.push(Ke),vt+=ot.length,dt.push(ot),(Ge=be(46)).write_shift(4,33639248),Ge.write_shift(2,0),Ge.write_shift(2,20),Ge.write_shift(2,pt),Ge.write_shift(2,Pe),Ge.write_shift(4,0),Ge.write_shift(-4,ct[wt]),Ge.write_shift(4,ot.length),Ge.write_shift(4,Ot.content.length),Ge.write_shift(2,Ke.length),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(4,0),Ge.write_shift(4,$t),Jt+=Ge.l,ht.push(Ge),Jt+=Ke.length,ht.push(Ke),++wt}return(Ge=be(22)).write_shift(4,101010256),Ge.write_shift(2,0),Ge.write_shift(2,0),Ge.write_shift(2,wt),Ge.write_shift(2,wt),Ge.write_shift(4,Jt),Ge.write_shift(4,vt),Ge.write_shift(2,0),ut([ut(dt),ut(ht),Ge])}(z,J);for(var fe=function(Ze){for(var Ye=0,at=0,dt=0;dt>6:at+=ht+511>>9)}for(var Ge=Ze.FullPaths.length+3>>2,Pe=Ye+127>>7,pt=(Ye+7>>3)+at+Ge+Pe,Qe=pt+127>>7,Be=Qe<=109?0:Math.ceil((Qe-109)/127);Qe>7;)Be=++Qe<=109?0:Math.ceil((Qe-109)/127);return Ge=[1,Be,Qe,Pe,Ge,at,Ye,0],Ze.FileIndex[0].size=Ye<<6,Ge[7]=(Ze.FileIndex[0].start=Ge[0]+Ge[1]+Ge[2]+Ge[3]+Ge[4]+Ge[5])+(Ge[6]+7>>3),Ge}(z),K=be(fe[7]<<9),ue=0,Ee=0,ue=0;ue<8;++ue)K.write_shift(1,D[ue]);for(ue=0;ue<8;++ue)K.write_shift(2,0);for(K.write_shift(2,62),K.write_shift(2,3),K.write_shift(2,65534),K.write_shift(2,9),K.write_shift(2,6),ue=0;ue<3;++ue)K.write_shift(2,0);for(K.write_shift(4,0),K.write_shift(4,fe[2]),K.write_shift(4,fe[0]+fe[1]+fe[2]+fe[3]-1),K.write_shift(4,0),K.write_shift(4,4096),K.write_shift(4,fe[3]?fe[0]+fe[1]+fe[2]-1:F),K.write_shift(4,fe[3]),K.write_shift(-4,fe[1]?fe[0]-1:F),K.write_shift(4,fe[1]),ue=0;ue<109;++ue)K.write_shift(-4,ue>9)));for(ge(fe[6]+7>>3);511&K.l;)K.write_shift(-4,L.ENDOFCHAIN);for(le=Ee=ue=0;le>6)));for(;511&K.l;)K.write_shift(-4,L.ENDOFCHAIN);for(ue=0;ue>16|X>>8|X);function _e(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=5?0:z[1+fe]<<8))>>>J&7}function we(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=3?0:z[1+fe]<<8))>>>J&31}function de(z,fe){var J=7&fe,fe=fe>>>3;return(z[fe]|(J<=1?0:z[1+fe]<<8))>>>J&127}function ke(z,ue,J){var fe=7&ue,K=ue>>>3,Ee=(1<>>fe;return J<8-fe?ue&Ee:(ue|=z[1+K]<<8-fe,J<16-fe?ue&Ee:(ue|=z[2+K]<<16-fe,J<24-fe?ue&Ee:(ue|=z[3+K]<<24-fe)&Ee))}function qe(z,he,J){var fe=7&he,K=he>>>3;return fe<=5?z[K]|=(7&J)<>8-fe),he+3}function He(z,he,J){var fe=he>>>3;return J<<=7&he,z[fe]|=255&J,J>>>=8,z[1+fe]=J,he+8}function Ve(z,he,J){var fe=he>>>3;return J<<=7&he,z[fe]|=255&J,J>>>=8,z[1+fe]=255&J,z[2+fe]=J>>>8,he+16}function ze(z,he){var J=z.length,fe=he<2*J?2*J:he+5,K=0;if(he<=J)return z;if(H){var Ee=Ae(fe);if(z.copy)z.copy(Ee);else for(;K>>8-Ye:(at=at<<8|te[Ze>>8&255],Ye<=16?at>>>16-Ye:(at=at<<8|te[Ze>>16&255])>>>24-Ye))>>K-lt,Ee=(1<>1)-1:(He(ge,le,3),He(ge,le+=5,te[Ye-23]>>5),le+=3);var ht=Ye<8?0:Ye-4>>2;0>3),le-=3;var Ge=Ye<4?0:Ye-2>>1;0>>3]|=ht,le=Ge+1),le=He(ge,le,te[Ye]),Oe[Ze]=32767&ye,++ye}le=He(ge,le,0)-1}}return ge.l=(le+7)/8|0,ge.l})(K,Ee)}}();function Xe(J){var he=be(50+Math.floor(1.1*J.length)),J=Nt(J,he);return he.slice(0,J)}var Re=ae?new Uint16Array(32768):Ne(32768),kt=ae?new Uint16Array(32768):Ne(32768),ar=ae?new Uint16Array(128):Ne(128),Kt=1,vr=1;function Kr(z,he){if(z[0]==3&&!(3&z[1]))return[W(he),2];for(var J=0,fe=0,K=Ae(he||1<<18),Ee=0,ue=K.length>>>0,ge=0,le=0;!(1&fe);)if(fe=_e(z,J),J+=3,fe>>>1!=0)for(le=fe>>1==1?(ge=9,5):(J=function(dt,ht){var Ge,Pe,pt,Qe=we(dt,ht)+257,Be=we(dt,ht+=5)+1,vt=(pt=7&(Pe=ht+=5),4+(((Ge=dt)[Pe=Pe>>>3]|(pt<=4?0:Ge[1+Pe]<<8))>>>pt&15));ht+=4;for(var wt=0,Mr=ae?new Uint8Array(19):Ne(19),Ft=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],Ot=1,ct=ae?new Uint8Array(8):Ne(8),Jt=ae?new Uint8Array(8):Ne(8),$t=Mr.length,Ke=0;Ke>8-et;for(var Bt=(1<<7-et)-1;0<=Bt;--Bt)ar[ot|Bt<>>=3){case 16:for(wt=3+(ps=void 0,ps=7&(fs=ht),((gr=dt)[fs=fs>>>3]|(ps<=6?0:gr[1+fs]<<8))>>>ps&3),ht+=2,ot=is[is.length-1];0>>1==1?$e:Re)[ye];if(J+=15&Oe,((Oe>>>=4)>>>8&255)==0)K[Ee++]=Oe;else{if(Oe==256)break;var lt=(Oe-=257)<8?0:Oe-4>>2;5>>1==1?rt:kt)[ye]);var ye=(Oe>>>=4)<4?0:Oe-2>>1,Ye=V[Oe];for(0>>3]|z[1+(J>>>3)]<<8;if(J+=32,0>>3],J+=8}return he?[K,J+7>>>3]:[K.slice(0,Ee),J+7>>>3]}function Z(z,he){return he=Kr(z.slice(z.l||0),he),z.l+=he[1],he[0]}function wr(z,he){if(!z)throw new Error(he);typeof console<"u"&&console.error(he)}function _r(z,he){var J=z;gs(J,0);var fe={FileIndex:[],FullPaths:[]};g(fe,{root:he.root});for(var K=J.length-4;(J[K]!=80||J[K+1]!=75||J[K+2]!=5||J[K+3]!=6)&&0<=K;)--K;J.l=K+4,J.l+=4;var Ee=J.read_shift(2);for(J.l+=6,he=J.read_shift(4),J.l=he,K=0;K>>=5);return ot>>>=4,et.setMilliseconds(0),et.setFullYear(1980+ot),et.setMonth(gr-1),et.setDate(Bt),gr=31&Ke,Bt=63&(Ke>>>=5),Ke>>>=6,et.setHours(Ke),et.setMinutes(Bt),et.setSeconds(gr<<1),et}(Ye);if(8257&Pe)throw new Error("Unsupported ZIP encryption");Ye.read_shift(4);for(var Be,vt=Ye.read_shift(4),wt=Ye.read_shift(4),Mr=Ye.read_shift(2),Ft=Ye.read_shift(2),Ot="",ct=0;ct"u")throw new Error("Unsupported");return new Uint8Array(n)}(a):a}function li(a,n,l){if(Va!==void 0&&Va.writeFileSync)return l?Va.writeFileSync(a,n,l):Va.writeFileSync(a,n);if(typeof Deno<"u"){if(l&&typeof n=="string")switch(l){case"utf8":n=new TextEncoder(l).encode(n);break;case"binary":n=it(n);break;default:throw new Error("Unsupported encoding "+l)}return Deno.writeFileSync(a,n)}var c=l=="utf8"?ga(n):n;if(typeof IE_SaveFile<"u")return IE_SaveFile(c,a);if(typeof Blob<"u"){if(c=new Blob([Ag(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(n)&&(n=ft(n)),h.write(n),h.close(),n}catch(d){if(!d.message||!d.message.match(/onstruct/))throw d}throw new Error("cannot save file "+a)}function Hr(a){for(var n=Object.keys(a),l=[],c=0;c>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),m\r `,kg=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g,zn=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s*[\/\?]?>/gm,_s=Zr.match(zn)?zn:/<[^>]*>/g,Lg=/<\w*:/,Mg=/<(\/?)\w+:/;function Tt(a,n,l){for(var c={},f=0,h=0;f!==a.length&&(h=a.charCodeAt(f))!==32&&h!==10&&h!==13;++f);if(n||(c[0]=a.slice(0,f)),f===a.length)return c;var d,m,g,y=a.match(kg),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(m=(f=F.charCodeAt(h+1))==34||f==39?1:0,d=F.slice(h+1+m,F.length-m),v=0;v!=C.length&&C.charCodeAt(v)!==58;++v);v===C.length?(c[C=0","<":"<","&":"&"},kl=ln(cu),pr=(nu=/&(?:quot|apos|gt|lt|amp|#x?([\da-fA-F]+));/gi,lu=/_x([\da-fA-F]{4})_/gi,function a(n){var l=n+"",c=l.indexOf(""),a(l.slice(0,c))+l.slice(c+9,n)+a(l.slice(n+3)))}),Ll=/[&<>'"]/g,Og=/[\u0000-\u0008\u000b-\u001f]/g;function Dr(a){return(a+"").replace(Ll,function(n){return kl[n]}).replace(Og,function(n){return"_x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+"_"})}function fu(a){return Dr(a).replace(/ /g,"_x0020_")}var uu=/[\u0000-\u001f]/g;function Ml(a){return(a+"").replace(Ll,function(n){return kl[n]}).replace(/\n/g,"
").replace(uu,function(n){return"&#x"+("000"+n.charCodeAt(0).toString(16)).slice(-4)+";"})}var du,hu=(du=/&#(\d+);/g,function(a){return a.replace(du,Pg)});function Pg(a,n){return String.fromCharCode(parseInt(n,10))}function Ir(a){switch(a){case 1:case!0:case"1":case"true":case"TRUE":return!0;default:return!1}}function Ol(a){for(var n,l,c,f,h="",d=0,m=0;d>>10&1023)),h+=String.fromCharCode(56320+(1023&f)))));return h}function pu(a){for(var n,l,c=W(2*a.length),f=1,h=0,d=0,m=0;m>>10&1023),n=56320+(1023&n)),d!==0&&(c[h++]=255&d,c[h++]=d>>>8,d=0),c[h++]=n%256,c[h++]=n>>>8;return c.slice(0,h).toString("ucs2")}function mu(a){return ne(a,"binary").toString("utf8")}var Pl,pn,mn,Ko="foo bar baz☃🍣",Tr=H&&(mu(Ko)==Ol(Ko)?mu:pu(Ko)==Ol(Ko)&&pu)||Ol,ga=H?function(a){return ne(a,"utf8").toString("binary")}:function(a){for(var n,l=[],c=0,f=0;c>6))),l.push(String.fromCharCode(128+(63&f)));break;case(55296<=f&&f<57344):f-=55296,n=a.charCodeAt(c++)-56320+(f<<10),l.push(String.fromCharCode(240+(n>>18&7))),l.push(String.fromCharCode(144+(n>>12&63))),l.push(String.fromCharCode(128+(n>>6&63))),l.push(String.fromCharCode(128+(63&n)));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("")},fi=(Pl={},function(a,n){var l=a+"|"+(n||"");return Pl[l]||(Pl[l]=new RegExp("<(?:\\w+:)?"+a+'(?: xml:space="preserve")?(?:[^>]*)>([\\s\\S]*?)",n||""))}),gu=(pn=[["nbsp"," "],["middot","·"],["quot",'"'],["apos","'"],["gt",">"],["lt","<"],["amp","&"]].map(function(a){return[new RegExp("&"+a[0]+";","ig"),a[1]]}),function(a){for(var n=a.replace(/^[\t\n\r ]+/,"").replace(/[\t\n\r ]+$/,"").replace(/>\s+/g,">").replace(/\s+/g,` `).replace(/<[^>]*>/g,""),l=0;l([\\s\\S]*?)","g")}),Ig=/<\/?(?:vt:)?variant>/g,Vg=/<(?:vt:)([^>]*)>([\s\S]*)"+n+""}function ui(a){return Hr(a).map(function(n){return" "+n+'="'+a[n]+'"'}).join("")}function je(a,n,l){return"<"+a+(l!=null?ui(l):"")+(n!=null?(n.match(yu)?' xml:space="preserve"':"")+">"+n+""}function Nl(a,n){try{return a.toISOString().replace(/\.\d*/,"")}catch(l){if(n)throw l}return""}function Il(a){if(H&&Buffer.isBuffer(a))return a.toString("utf8");if(typeof a=="string")return a;if(typeof Uint8Array<"u"&&a instanceof Uint8Array)return Tr(ft(Je(a)));throw new Error("Bad input format: expected Buffer or string")}var di=/<(\/?)([^\s?>:\/]+)(?:[\s?:\/][^>]*)?>/gm,ls={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"},ro=["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 _u(a){for(var n=[],l=0;l>>7),c=((127&a[n+7])<<4)+(a[n+6]>>>4&15),f=15&a[n+6],h=5;0<=h;--h)f=256*f+a[n+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 Tu=H?function(a){return 0>>8&255,a[l+2]=n>>>16&255,a[l+3]=n>>>24&255},Gg=function(a,n,l){a[l]=255&n,a[l+1]=n>>8&255,a[l+2]=n>>16&255,a[l+3]=n>>24&255},jg=function(a,n,l){a[l]=255&n,a[l+1]=n>>>8&255};function Wg(a,n,l){var c=0,f=0;if(l==="dbcs"){for(f=0;f!=n.length;++f)jg(this,n.charCodeAt(f),this.l+2*f);c=2*n.length}else if(l==="sbcs"){if(e!==void 0&&p==874)for(f=0;f!=n.length;++f){var h=e.utils.encode(p,n.charAt(f));this[this.l+f]=h[0]}else for(n=n.replace(/[^\x00-\x7F]/g,"_"),f=0;f!=n.length;++f)this[this.l+f]=255&n.charCodeAt(f);c=n.length}else{if(l==="hex"){for(;f>8}for(;this.l>>=8,this[this.l+1]=255&n;break;case 3:c=3,this[this.l]=255&n,n>>>=8,this[this.l+1]=255&n,n>>>=8,this[this.l+2]=255&n;break;case 4:c=4,zg(this,n,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,k=x?-y:y;isFinite(k)?k==0?C=F=0:(C=Math.floor(Math.log(k)/Math.LN2),F=k*Math.pow(2,52-C),C<=-1023&&(!isFinite(F)||F>4|x})(this,n,this.l);break}case 16:break;case-4:c=4,Gg(this,n,this.l)}}return this.l+=c,this}function ku(a,n){var l=Ru(this,this.l,a.length>>1);if(l!==a)throw new Error(n+"Expected "+a+" saw "+l);this.l+=a.length>>1}function gs(a,n){a.l=n,a.read_shift=hi,a.chk=ku,a.write_shift=Wg}function vs(a,n){a.l+=n}function be(a){return a=W(a),gs(a,0),a}function Ea(a,n,l){if(a){gs(a,a.l||0);for(var c,f=a.length,h=0;a.lh.l&&((h=h.slice(0,h.l)).l=h.length),0>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}0F&&(y.s.r=F),y.s.c>k&&(y.s.c=k),y.e.r>2,l?n/100:n}function Pu(a,n){n==null&&(n=be(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);n.write_shift(-4,((l?f:a)<<2)+(l+2))}function Nu(a){var n={s:{},e:{}};return n.s.r=a.read_shift(4),n.e.r=a.read_shift(4),n.s.c=a.read_shift(4),n.e.c=a.read_shift(4),n}var no=Nu,Vo=function(a,n){return(n=n||be(16)).write_shift(4,a.s.r),n.write_shift(4,a.e.r),n.write_shift(4,a.s.c),n.write_shift(4,a.e.c),n};function xs(a){if(a.length-a.l<8)throw"XLS Xnum Buffer underflow";return a.read_shift(8,"f")}function Bo(a,n){return(n||be(8)).write_shift(8,a,"f")}function _n(a,n){if(n=n||be(8),!a||a.auto)return n.write_shift(4,0),n.write_shift(4,0),n;a.index!=null?(n.write_shift(1,2),n.write_shift(1,a.index)):a.theme!=null?(n.write_shift(1,6),n.write_shift(1,a.theme)):(n.write_shift(1,5),n.write_shift(1,0));var l=a.tint||0;return 0>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?"},zu={"#NULL!":0,"#DIV/0!":7,"#VALUE!":15,"#REF!":23,"#NAME?":29,"#NUM!":36,"#N/A":42,"#GETTING_DATA":43,"#WTF?":255},tc={"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"},vn={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 rc(){return{workbooks:[],sheets:[],charts:[],dialogs:[],macros:[],rels:[],strs:[],comments:[],threadedcomments:[],links:[],coreprops:[],extprops:[],custprops:[],themes:[],styles:[],calcchains:[],vba:[],drawings:[],metadata:[],people:[],TODO:[],xmlns:""}}function Gu(a,n){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}(tc),f=[];f[f.length]=Zr,f[f.length]=je("Types",null,{xmlns:ls.CT,"xmlns:xsd":ls.xsd,"xmlns:xsi":ls.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",">")),f.join("")}var Vt={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 bi(a){var n=a.lastIndexOf("/");return a.slice(0,n+1)+"_rels/"+a.slice(n+1)+".rels"}function yi(a,n){var l={"!id":{}};if(!a)return l;n.charAt(0)!=="/"&&(n="/"+n);var c={};return(a.match(_s)||[]).forEach(function(f){var h,d=Tt(f);d[0]==="",n[1]=n[1].replace("/>",">")),n.join("")}function Ar(a,n,l,c,f,h){if(f=f||{},a["!id"]||(a["!id"]={}),a["!idx"]||(a["!idx"]=1),n<0)for(n=a["!idx"];a["!id"]["rId"+n];++n);if(a["!idx"]=n+1,f.Id="rId"+n,f.Type=c,f.Target=l,h?f.TargetMode=h:-1<[Vt.HLINK,Vt.XPATH,Vt.XMISS].indexOf(f.Type)&&(f.TargetMode="External"),a["!id"][f.Id])throw new Error("Cannot rewrite rId "+n);return a["!id"][f.Id]=f,a[("/"+f.Target).replace("//","/")]=f,n}var Zg="application/vnd.oasis.opendocument.spreadsheet";function ju(a,n,l){return[' `,' `,` `].join("")}function Wu(){return'SheetJS '+t.version+""}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"]],$g=function(){for(var a=new Array(Ks.length),n=0;n]*>([\\s\\S]*?)")}return a}();function Hu(a){var n={};a=Tr(a);for(var l=0;l",">")),c.join("")}var lo=[["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"]],qu=["Worksheets","SheetNames","NamedRanges","DefinedNames","Chartsheets","ChartNames"];function Ku(a,n,l,c){var f=[];if(typeof a=="string")f=bu(a,c);else for(var h=0;hWorksheets")+l("vt:variant",l("vt:i4",String(a.Worksheets))),{size:2,baseType:"variant"})),n[n.length]=l("TitlesOfParts",l("vt:vector",a.SheetNames.map(function(c){return""+Dr(c)+""}).join(""),{size:a.Worksheets,baseType:"lpstr"})),2",n[1]=n[1].replace("/>",">")),n.join("")}var e1=/<[^>]+>[^<]*/g;function Xu(a){var n=[Zr,je("Properties",null,{xmlns:ls.CUST_PROPS,"xmlns:vt":ls.vt})];if(!a)return n.join("");var l=1;return Hr(a).forEach(function(c){++l,n[n.length]=je("property",function(f,h){switch(typeof f){case"string":var d=je("vt:lpwstr",Dr(f));return d=h?d.replace(/"/g,"_x0022_"):d;case"number":return je((0|f)==f?"vt:i4":"vt:r8",Dr(String(f)));case"boolean":return je("vt:bool",f?"true":"false")}if(f instanceof Date)return je("vt:filetime",Nl(f));throw new Error("Unable to serialize "+f)}(a[c],!0),{fmtid:"{D5CDD505-2E9C-101B-9397-08002B2CF9AE}",pid:l,name:Dr(c)})}),2",n[1]=n[1].replace("/>",">")),n.join("")}var Qu,ac={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 oc(l){var n=l.read_shift(4),l=l.read_shift(4);return new Date(1e3*(l/1e7*Math.pow(2,32)+n/1e7-11644473600)).toISOString().replace(/\.000/,"")}function Zu(a,n,l){var c=a.l,f=a.read_shift(0,"lpstr-cp");if(l)for(;a.l-c&3;)++a.l;return f}function $u(a,n,l){var c=a.read_shift(0,"lpwstr");return l&&(a.l+=4-(c.length+1&3)&3),c}function ed(a,n,l){return n===31?$u(a):Zu(a,0,l)}function td(a,n,l){return ed(a,n,l===!1?0:4)}function t1(a){for(var n,l,c,f=a.read_shift(4),h=[],d=0;d>3<<2),c}function sd(a){var n=a.read_shift(4),l=a.slice(a.l,a.l+n);return a.l+=n,0<(3&n)&&(a.l+=4-(3&n)&3),l}function wn(a,n,l){var c,f,h=a.read_shift(2),d=l||{};if(a.l+=2,n!==Vu&&h!==n&&Xg.indexOf(n)===-1&&((65534&n)!=4126||(65534&h)!=4126))throw new Error("Expected type "+n+" saw "+h);switch(n===Vu?h:n){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 Zu(a,0,4).replace(bt,"");case 31:return $u(a);case 64:return oc(a);case 65:return sd(a);case 71:return(f={}).Size=(c=a).read_shift(4),c.l+=f.Size+3-(f.Size-1)%4,f;case 80:return td(a,h,!d.raw).replace(bt,"");case 81:return function(m,g){if(!g)throw new Error("VtUnalignedString must have positive length");return ed(m,g,0)}(a,h).replace(bt,"");case 4108:return t1(a);case 4126:case 4127:return(h==4127?function(m){for(var g=m.read_shift(4),y=[],v=0;v!=g;++v){var x=m.l;y[v]=m.read_shift(0,"lpwstr").replace(bt,""),m.l-x&2&&(m.l+=2)}return y}:function(m){for(var g=m.read_shift(4),y=[],v=0;v!=g;++v)y[v]=m.read_shift(0,"lpstr-cp").replace(bt,"");return y})(a);default:throw new Error("TypedPropertyValue unrecognized type "+n+" "+h)}}function ad(a,n){var l,c,f,h=be(4),d=be(4);switch(h.write_shift(4,a==80?31:a),a){case 3:d.write_shift(-4,n);break;case 5:(d=be(8)).write_shift(8,n,"f");break;case 11:d.write_shift(4,n?1:0);break;case 64:c=(typeof(l=n)=="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=be(8)).write_shift(4,f),c.write_shift(4,l),d=c;break;case 31:case 80:for((d=be(4+2*(n.length+1)+(n.length%2?0:2))).write_shift(4,n.length+1),d.write_shift(0,n,"dbcs");d.l!=d.length;)d.write_shift(1,0);break;default:throw new Error("TypedPropertyValue unrecognized type "+a+" "+n)}return ut([h,d])}function od(a,n){for(var l=a.l,c=a.read_shift(4),f=a.read_shift(4),h=[],y=0,d=0,m=-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,R){return L[1]-R[1]});var C={};for(y=0;y!=f;++y){if(a.l!==h[y][1]){var F=!0;if(0>16)+"."+("0000"+String(65535&C[k.n])).slice(-4)),k.n=="CodePage")switch(C[k.n]){case 0:C[k.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[k.n]>>>0&65535);break;default:throw new Error("Unsupported CodePage: "+C[k.n])}}else if(h[y][0]===1)d=C.CodePage=wn(a,Zl),S(d),m!==-1&&(P=a.l,a.l=h[m][1],g=rd(a,d),a.l=P);else if(h[y][0]===0)d!==0?g=rd(a,d):(m=y,a.l=h[y+1][1]);else{var D,P=g[h[y][0]];switch(a[a.l]){case 65:a.l+=4,D=sd(a);break;case 30:case 31:a.l+=4,D=td(a,a[a.l-4]).replace(/\u0000+$/,"");break;case 3:a.l+=4,D=a.read_shift(4,"i");break;case 19:a.l+=4,D=a.read_shift(4);break;case 5:a.l+=4,D=a.read_shift(8,"f");break;case 11:a.l+=4,D=$r(a,4);break;case 64:a.l+=4,D=Nr(oc(a));break;default:throw new Error("unparsed value: "+a[a.l])}C[P]=D}}return a.l=l+c,C}var id=["CodePage","Thumbnail","_PID_LINKBASE","_PID_HLINKS","SystemIdentifier","FMTID"];function nd(a,n,l){var c,f,h,d,m=be(8),g=[],y=[],v=8,x=0,C=be(8),F=be(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,!n){(F=be(8)).write_shift(4,0),g.unshift(F);var k=[be(4)];for(k[0].write_shift(4,a.length),x=0;x>1,"utf16le").replace(bt,""),f&&(n.l+=24),l;case"0303000000000000c000000000000046":return function(d){for(var m=d.read_shift(2),g="";0>1,"utf16le").replace(bt,"")}(a);default:throw new Error("Unsupported Moniker "+h)}}function xn(a){var n=a.read_shift(4);return 0>15),a&=32767),[{Unsynced:1&c,DyZero:(2&c)>>1,ExAsc:(4&c)>>2,ExDsc:(8&c)>>3},a]}var Jo=fo;function wd(a,h,d){var c=a.l+h,m=d.biff!=8&&d.biff?2:4,f=a.read_shift(m),h=a.read_shift(m),d=a.read_shift(2),m=a.read_shift(2);return a.l=c,{s:{r:f,c:d},e:{r:h,c:m}}}function xd(a,n,l,c){return l=l&&l.biff==5,(c=c||be(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,n<<4)),n=0,0>>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,m){h.l+=4,y-=4;var g=h.l+y,y=_i(h,0,m);if((m=h.read_shift(2))!==(g-=h.l))throw new Error("Malformed AddinUdf: padding = "+g+" != "+m);return h.l+=m,y}(a,n-2,l)),f.body=c||a.read_shift(n-2),typeof c=="string"&&(f.Name=c),f}var i1=["_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),m=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=co(a,d,l),32&f&&(d=i1[d.charCodeAt(0)]),f=c-a.l,l&&l.biff==2&&--f,{chKey:h,Name:d,itab:g,rgce:c!=a.l&&m!==0&&0>8&7),m}var c1=ya,f1=fd,Hc=vi,Rd,kd,Dn,u1=[2,3,48,49,131,139,140,245],nc=(Rd={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=ln({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}),Dn={B:8,C:250,L:1,D:8,"?":0,"":0},{to_workbook:function(a,n){try{return Ba(Ld(a,n),n)}catch(l){if(n&&n.WTF)throw l}return{SheetNames:[],Sheets:{}}},to_sheet:Ld,from_sheet:function(a,n){if(0<=+(n=n||{}).codepage&&S(+n.codepage),n.type=="string")throw new Error("Cannot write DBF to JS string");for(var l=Is(),c=(n=qn(a,{header:1,raw:!0,cellDates:!0}))[0],f=n.slice(1),h=a["!cols"]||[],y=0,d=0,m=0,g=1,y=0;yP&&(P=h[y].DBF.len),k=="B"&&D=="N"&&(k="N",F[y]=h[y].DBF.dec,P=h[y].DBF.len),C[y]=k=="C"||D=="N"?P:Dn[k]||0,g+=C[y],x[y]=k}else x[y]="?"}var R,O,I=l.next(32);for(I.write_shift(4,318902576),I.write_shift(4,f.length),I.write_shift(2,296+32*m),I.write_shift(2,g),y=0;y<4;++y)I.write_shift(4,0);for(I.write_shift(4,0|(+kd[p]||3)<<8),d=y=0;y":190,"?":191,"{":223},Md=new RegExp("\x1BN("+Hr(An).join("|").replace(/\|\|\|/,"|\\||").replace(/([?()+])/g,"\\$1")+"|\\|)","gm"),Od=function(a,n){return n=An[n],typeof n=="number"?B(n):n},Pd=function(a,n,l){return l=n.charCodeAt(0)-32<<4|l.charCodeAt(0)-48,l==59?a:B(l)},An["|"]=254,{to_workbook:function(a,n){return Ba(Id(a,n),n)},to_sheet:Id,from_sheet:function(a,n){var l,c,f=["ID;PWXL;N;E"],h=[],d=rr(a["!ref"]),m=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=Ci(C.width)),typeof C.wpx!="number"||C.wch||(C.wch=Fi(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 k="F;";C.hidden?k+="M0;":C.hpt?k+="M"+20*C.hpt+";":C.hpx&&(k+="M"+20*Di(C.hpx)+";"),2","<=",">=","<",">","","","","","&","","","","","","",""],dc={0:{n:"BOF",f:as},1:{n:"EOF"},2:{n:"CALCMODE"},3:{n:"CALCORDER"},4:{n:"SPLIT"},5:{n:"SYNC"},6:{n:"RANGE",f:function(a,n,l){var c={s:{c:0,r:0},e:{c:0,r:0}};return n==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),n==12&&l.qpro&&(a.l+=2),c.e.c=a.read_shift(2),c.e.r=a.read_shift(2),n==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,n,l){return(l=Ln(a,0,l))[1].v=a.read_shift(2,"i"),l}},14:{n:"NUMBER",f:function(a,n,l){return(l=Ln(a,0,l))[1].v=a.read_shift(8,"f"),l}},15:{n:"LABEL",f:Xd},16:{n:"FORMULA",f:function(a,n,l){var c=a.l+n;return(n=Ln(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=[],m=0,g="",y="",v="",x="";f.ld.length)return console.error("WK1 bad formula parse 0x"+C.toString(16)+":|"+d.join("|")+"|");k=d.slice(-m),d.length-=m,d.push(kn[C][0]+"("+k.join(",")+")")}}}d.length==1?h[1].f=""+d[0]:console.error("WK1 bad formula parse |"+d.join("|")+"|")}(a.slice(a.l,a.l+c),n),a.l+=c),n}},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:Xd},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:$d},222:{n:"SHEETNAMELP",f:function(a,n){var l=a[a.l++];n-1>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,n){var l=Qd(a);return a.l+=n-14,l}},26:{n:"FORMULA1A"},27:{n:"XFORMAT",f:function(a,n){for(var l={},c=a.l+n;a.l>6,l}},38:{n:"??"},39:{n:"NUMBER27",f:Zd},40:{n:"FORMULA28",f:function(a,n){var l=Zd(a);return a.l+=n-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:$d},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,n,l){if(l.qpro&&!(n<21))return l=a.read_shift(1),a.l+=17,a.l+=1,a.l+=2,[l,a.read_shift(n-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,n){var l=n||{};if(0<=+l.codepage&&S(+l.codepage),l.type=="string")throw new Error("Cannot write WK1 to JS string");var c=Is(),f=rr(a["!ref"]),h=Array.isArray(a),d=[];We(c,0,(n=1030,(l=be(2)).write_shift(2,n),l)),We(c,6,(n=f,(l=be(8)).write_shift(2,n.s.c),l.write_shift(2,n.s.r),l.write_shift(2,n.e.c),l.write_shift(2,n.e.r),l));for(var m,g,y,v,x=Math.min(f.e.r,8191),C=f.s.r;C<=x;++C)for(var F=qr(C),k=f.s.c;k<=f.e.c;++k){C===f.s.r&&(d[k]=Vr(k));var D=d[k]+F,D=h?(a[C]||[])[k]:a[D];D&&D.t!="z"&&(D.t=="n"?(0|D.v)==D.v&&-32768<=D.v&&D.v<=32767?We(c,13,(m=C,g=k,y=D.v,v=void 0,(v=be(7)).write_shift(1,255),v.write_shift(2,g),v.write_shift(2,m),v.write_shift(2,y,"i"),v)):We(c,14,(g=C,m=k,y=D.v,v=void 0,(v=be(13)).write_shift(1,255),v.write_shift(2,m),v.write_shift(2,g),v.write_shift(8,y,"f"),v)):We(c,15,function(P,L,R){var O=be(7+R.length);O.write_shift(1,255),O.write_shift(2,L),O.write_shift(2,P),O.write_shift(1,39);for(var I=0;I>>0))&&(++X,te=(O/=2)>>>0),O-=te,te|=2147483648,te>>>=0,O*=Math.pow(2,32),ae=O>>>0,I.write_shift(4,ae),I.write_shift(4,te),X+=16383+(V?32768:0),I.write_shift(2,X),I}(x,F,h,k.v)):We(l,22,function(P,L,R,O){var I=be(6+O.length);I.write_shift(2,P),I.write_shift(1,R),I.write_shift(1,L),I.write_shift(1,39);for(var V=0;Vd&&(c["!ref"]=Pt(v),m[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=D[3],f=h||"Sheet"+(d+1),h="");var R=l.dense?(c[D[0].r]||[])[D[0].c]:c[Rt(D[0])];if(R){R.t=D[1].t,R.v=D[1].v,D[1].z!=null&&(R.z=D[1].z),D[1].f!=null&&(R.f=D[1].f);break}l.dense?(c[D[0].r]||(c[D[0].r]=[]),c[D[0].r][D[0].c]=D[1]):c[Rt(D[0])]=D[1]}},l);else{if(a[2]!=26&&a[2]!=14)throw new Error("Unrecognized LOTUS BOF "+a[2]);l.Enum=Kd,a[2]==14&&(l.qpro=!0,a.l=0),Jd(a,function(D,P,L){switch(L){case 204:f=D;break;case 22:D[1].v=D[1].v.slice(1);case 23:case 24:case 25:case 37:case 39:case 40:if(D[3]>d&&(c["!ref"]=Pt(v),m[f]=c,g.push(f),c=l.dense?[]:{},v={s:{r:0,c:0},e:{r:0,c:0}},d=D[3],f="Sheet"+(d+1)),0=x)break;l.dense?(c[D[0].r]||(c[D[0].r]=[]),c[D[0].r][D[0].c]=D[1]):c[Rt(D[0])]=D[1],v.e.c/g,sh=/<\/(?:\w+:)?r>/,function(a){return a.replace(rh,"").split(sh).map(m1).filter(function(n){return n.v})});function m1(a){var n=a.match(eh);return n?(n={t:"s",v:pr(n[1])},a=a.match(th),a&&(n.s=function(l){var c={},f=l.match(_s),h=0,d=!1;if(f)for(;h!=f.length;++h){var m=Tt(f[h]);switch(m[0].replace(/\w*:/g,"")){case"":case"":c.shadow=1;break;case"":break;case"":case"":c.outline=1;break;case"":break;case"":case"":c.strike=1;break;case"":break;case"":case"":c.u=1;break;case"":break;case"":case"":c.b=1;break;case"":break;case"":case"":c.i=1;break;case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":case"":case"":case"":break;case"":case"":break;case"":d=!1;break;default:if(m[0].charCodeAt(1)!==47&&!d)throw new Error("Unrecognized rich format "+m[0])}}return c}(a[1])),n):{t:"s",v:""}}var ah,g1=(ah=/(\r\n|\n)/g,function(a){return a.map(b1).join("")});function b1(a){var n,l,c,f=[[],a.v,[]];return a.v?(a.s&&(n=a.s,l=f[0],c=f[2],a=[],n.u&&a.push("text-decoration: underline;"),n.uval&&a.push("text-underline-style:"+n.uval+";"),n.sz&&a.push("font-size:"+n.sz+"pt;"),n.outline&&a.push("text-effect: outline;"),n.shadow&&a.push("text-shadow: auto;"),l.push(''),n.b&&(l.push(""),c.push("")),n.i&&(l.push(""),c.push("")),n.strike&&(l.push(""),c.push("")),(a=n.valign||"")=="superscript"||a=="super"?a="sup":a=="subscript"&&(a="sub"),a!=""&&(l.push("<"+a+">"),c.push("")),c.push("")),f[0].join("")+f[1].replace(ah,"
")+f[2].join("")):""}var y1=/<(?:\w+:)?t[^>]*>([^<]*)<\/(?:\w+:)?t>/g,_1=/<(?:\w+:)?r>/,v1=/<(?:\w+:)?rPh.*?>([\s\S]*?)<\/(?:\w+:)?rPh>/g;function pc(a,c){var l=!c||c.cellHTML,c={};return a?(a.match(/^\s*<(?:\w+:)?t[^>]*>/)?(c.t=pr(Tr(a.slice(a.indexOf(">")+1).split(/<\/(?:\w+:)?t>/)[0]||"")),c.r=Tr(a),l&&(c.h=Ml(c.t))):a.match(_1)&&(c.r=Tr(a),c.t=pr(Tr((a.replace(v1,"").match(y1)||[]).join("").replace(_s,""))),l&&(c.h=g1(p1(c.r)))),c):{t:""}}var w1=/<(?:\w+:)?sst([^>]*)>([\s\S]*)<\/(?:\w+:)?sst>/,x1=/<(?:\w+:)?(?:si|sstItem)>/g,C1=/<\/(?:\w+:)?(?:si|sstItem)>/,F1=/^\s|\s$|[\t\n\r]/;function oh(a,n){if(!n.bookSST)return"";var l=[Zr];l[l.length]=je("sst",null,{xmlns:ro[0],count:a.Count,uniqueCount:a.Unique});for(var c,f,h=0;h!=a.length;++h)a[h]!=null&&(f="",(c=a[h]).r?f+=c.r:(f+=""),f+="",l[l.length]=f);return 2",l[1]=l[1].replace("/>",">")),l.join("")}var D1=function(a,n){var l=!1;return n==null&&(l=!0,n=be(15+4*a.t.length)),n.write_shift(1,0),hs(a.t,n),l?n.slice(0,n.l):n};function A1(a){var n,l,c=Is();De(c,159,(n=a,(l=l||be(8)).write_shift(4,n.Count),l.write_shift(4,n.Unique),l));for(var f=0;f>1,"utf16le"),a.l=l,c}function lh(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 T1(a){var n=Ra(a);switch(n.Minor){case 2:return[n.Minor,function(f){if((63&f.read_shift(4))!=36)throw new Error("EncryptionInfo mismatch");var c=f.read_shift(4),c=nh(f,c),f=lh(f,f.length-f.l);return{t:"Std",h:c,v:f}}(a)];case 3:return[n.Minor,function(){throw new Error("File is password-protected: ECMA-376 Extensible")}()];case 4:return[n.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 m=Tt(d);switch(ma(m[0])){case"":break;case"":case"":break;case"":break;case">8,d[h]=jo(gc[0],n),--h,n=255&f,a=c[c.length-1],d[h]=jo(a,n));0>8,d[--h]=jo(c[h],n),n=255&f,d[--h]=jo(c[h],n);for(l=(h=15)-c.length;0>8,d[h]=jo(gc[l],n),--l,n=255&f,d[--h]=jo(c[h],n),--h,--l;return d});function jo(a,n){return 255&((n=a^n)/2|128*n)}var R1=function(a){var n=0,l=uh(a);return function(c){return c=function(f,h,d,m,g){var y,v;for(g=g||h,m=m||uh(f),y=0;y!=h.length;++y)v=h[y],v=255&((v^=m[d])>>5|v<<3),g[y]=v,++d;return[g,d,m]}("",c,n,l),n=c[1],c[0]}};function k1(a,n,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=Ra(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=Ra(c,4);if(f-=4,d.Minor!=2)throw new Error("unrecognized minor version code: "+d.Minor);if(4f.e.c&&(f.e.c=v)}),l["!ref"]=Pt(f),l}function xi(a){for(var n=0,l=1;n!=3;++n)l=256*l+(255]*)>[\S\s]*?<\/(?:\w+:)?numFmts>/,bh=/<(?:\w+:)?cellXfs([^>]*)>[\S\s]*?<\/(?:\w+:)?cellXfs>/,yh=/<(?:\w+:)?fills([^>]*)>[\S\s]*?<\/(?:\w+:)?fills>/,_h=/<(?:\w+:)?fonts([^>]*)>[\S\s]*?<\/(?:\w+:)?fonts>/,vh=/<(?:\w+:)?borders([^>]*)>[\S\s]*?<\/(?:\w+:)?borders>/,function(a,n,l){var c,f,h,d,m,g={};return a&&((c=(a=a.replace(//gm,"").replace(//gm,"")).match(gh))&&function(y,v,x){v.NumberFmt=[];for(var C=Hr(oe),F=0;F":case"":case"":break;case"":break;default:if(x.WTF)throw new Error("unrecognized "+D[0]+" in numFmts")}}}(c,g,l),(c=a.match(_h))&&function(y,v,x,C){v.Fonts=[];var F={},k=!1;(y[0].match(_s)||[]).forEach(function(D){var P,L=Tt(D);switch(ma(L[0])){case"":case"":break;case"":break;case"":case"":v.Fonts.push(F),F={};break;case"":case"":break;case"":F.bold=1;break;case"":F.italic=1;break;case"":F.underline=1;break;case"":F.strike=1;break;case"":F.outline=1;break;case"":F.shadow=1;break;case"":F.condense=1;break;case"":F.extend=1;break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":k=!1;break;case"":case"":break;case"":k=!1;break;default:if(C&&C.WTF&&!k)throw new Error("unrecognized "+L[0]+" in fonts")}})}(c,g,n,l),(c=a.match(yh))&&function(y,v,x){v.Fills=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(k){var D=Tt(k);switch(ma(D[0])){case"":case"":break;case"":case"":C={},v.Fills.push(C);break;case"":case"":break;case"":v.Fills.push(C),C={};break;case"":D.patternType&&(C.patternType=D.patternType);break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":case"":break;case"":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+D[0]+" in fills")}})}(c,g,l),(c=a.match(vh))&&function(y,v,x){v.Borders=[];var C={},F=!1;(y[0].match(_s)||[]).forEach(function(k){var D=Tt(k);switch(ma(D[0])){case"":case"":break;case"":case"":C={},D.diagonalUp&&(C.diagonalUp=Ir(D.diagonalUp)),D.diagonalDown&&(C.diagonalDown=Ir(D.diagonalDown)),v.Borders.push(C);break;case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":break;case"":case"":break;case"":case"":break;case"":F=!1;break;default:if(x&&x.WTF&&!F)throw new Error("unrecognized "+D[0]+" in borders")}})}(c,g,l),(c=a.match(bh))&&(c=c,h=l,m=!((f=g).CellXf=[]),(c[0].match(_s)||[]).forEach(function(y){var v=Tt(y),x=0;switch(ma(v[0])){case"":case"":case"":break;case"":for(delete(d=v)[0],x=0;x":break;case"":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=Ir(v.wrapText)),d.alignment=C;break;case"":case"":case"":break;case"":m=!1;break;case"":case"":break;case"":m=!1;break;default:if(h&&h.WTF&&!m)throw new Error("unrecognized "+v[0]+" in cellXfs")}}))),g});function wh(a,n){if(Ai!==void 0)return Ai.toXml();var l,c,f,h,d=[Zr,je("styleSheet",null,{xmlns:ro[0],"xmlns:vt":ls.vt})];return a.SSF&&(c=a.SSF,f=[""],[[5,8],[23,26],[41,44],[50,392]].forEach(function(m){for(var g=m[0];g<=m[1];++g)c[g]!=null&&(f[f.length]=je("numFmt",null,{numFmtId:g,formatCode:Dr(c[g])}))}),(l=f.length===1?"":(f[f.length]="",f[0]=je("numFmts",null,{count:f.length-2}).replace("/>",">"),f.join("")))!=null)&&(d[d.length]=l),d[d.length]='',d[d.length]='',d[d.length]='',d[d.length]='',n=n.cellXfs,(h=[])[h.length]="",n.forEach(function(m){h[h.length]=je("xf",null,m)}),h[h.length]="",(l=h.length===2?"":(h[0]=je("cellXfs",null,{count:h.length-2}).replace("/>",">"),h.join("")))&&(d[d.length]=l),d[d.length]='',d[d.length]='',d[d.length]='',2",d[1]=d[1].replace("/>",">")),d.join("")}function N1(a,n){var l;(n=n||be(153)).write_shift(2,20*a.sz),l=a,c=(c=n)||be(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),n.write_shift(2,a.bold?700:400);var c=0;return a.vertAlign=="superscript"?c=1:a.vertAlign=="subscript"&&(c=2),n.write_shift(2,c),n.write_shift(1,a.underline||0),n.write_shift(1,a.family||0),n.write_shift(1,a.charset||0),n.write_shift(1,0),_n(a.color,n),c=0,a.scheme=="major"&&(c=1),a.scheme=="minor"&&(c=2),n.write_shift(1,c),hs(a.name,n),n.length>n.l?n.slice(0,n.l):n}var xh,I1=["none","solid","mediumGray","darkGray","lightGray","darkHorizontal","darkVertical","darkDown","darkUp","darkGrid","darkTrellis","lightHorizontal","lightVertical","lightDown","lightUp","lightGrid","lightTrellis","gray125","gray0625"],V1=vs;function Ch(a,n){n=n||be(84),a=(xh=xh||ln(I1))[a.patternType],a==null&&(a=40),n.write_shift(4,a);var l=0;if(a!=40)for(_n({auto:1},n),_n({auto:1},n);l<12;++l)n.write_shift(4,0);else{for(;l<4;++l)n.write_shift(4,0);for(;l<12;++l)n.write_shift(4,0)}return n.length>n.l?n.slice(0,n.l):n}function Fh(a,n,l){return(l=l||be(16)).write_shift(2,n||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 Si(a,n){return(n=n||be(10)).write_shift(1,0),n.write_shift(1,0),n.write_shift(4,0),n.write_shift(4,0),n}un=vs;function B1(a,n){var l;n&&(l=0,[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f=c[0];f<=c[1];++f)n[f]!=null&&++l}),l!=0&&(De(a,615,na(l)),[[5,8],[23,26],[41,44],[50,392]].forEach(function(c){for(var f,h,d,m=c[0];m<=c[1];++m)n[m]!=null&&De(a,44,(f=m,h=n[m],(d=(d=void 0)||be(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))}),De(a,616)))}function U1(a){var n;De(a,613,na(1)),De(a,46,((n=n||be(51)).write_shift(1,0),Si(0,n),Si(0,n),Si(0,n),Si(0,n),Si(0,n),n.length>n.l?n.slice(0,n.l):n)),De(a,614)}function z1(a){var n,l;De(a,619,na(1)),De(a,48,(n={xfId:0,builtinId:0,name:"Normal"},(l=l||be(52)).write_shift(4,n.xfId),l.write_shift(2,1),l.write_shift(1,+n.builtinId),l.write_shift(1,0),yn(n.name||"",l),l.length>l.l?l.slice(0,l.l):l)),De(a,620)}function G1(a){var n,l,c,f;De(a,508,(n=0,l="TableStyleMedium9",c="PivotStyleMedium4",(f=be(2052)).write_shift(4,n),yn(l,f),yn(c,f),f.length>f.l?f.slice(0,f.l):f)),De(a,509)}function j1(a,n){var l,c=Is();return De(c,278),B1(c,a.SSF),De(a=c,611,na(1)),De(a,43,N1({sz:12,color:{theme:1},name:"Calibri",family:2,scheme:"minor"})),De(a,612),De(a=c,603,na(2)),De(a,45,Ch({patternType:"none"})),De(a,45,Ch({patternType:"gray125"})),De(a,604),U1(c),De(a=c,626,na(1)),De(a,47,Fh({numFmtId:0,fontId:0,fillId:0,borderId:0},65535)),De(a,627),l=c,n=n.cellXfs,De(l,617,na(n.length)),n.forEach(function(f){De(l,47,Fh(f,0))}),De(l,618),z1(c),De(n=c,505,na(0)),De(n,506),G1(c),De(c,279),c.end()}var W1=["","","","","","","","","","","",""];function H1(a,n,l){n.themeElements.clrScheme=[];var c={};(a[0].match(_s)||[]).forEach(function(f){var h=Tt(f);switch(h[0]){case"":break;case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":case"":h[0].charAt(1)==="/"?(n.themeElements.clrScheme[W1.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 Y1(){}function q1(){}var K1=/]*)>[\s\S]*<\/a:clrScheme>/,J1=/]*)>[\s\S]*<\/a:fontScheme>/,X1=/]*)>[\s\S]*<\/a:fmtScheme>/,Q1=/]*)>[\s\S]*<\/a:themeElements>/;function Dh(a,n){var l,c,f,h,d,m={};if(!(l=(a=!a||a.length===0?_c():a).match(Q1)))throw new Error("themeElements not found in theme");return c=l[0],h=n,(f=m).themeElements={},[["clrScheme",K1,H1],["fontScheme",J1,Y1],["fmtScheme",X1,q1]].forEach(function(g){if(!(d=c.match(g[1])))throw new Error(g[0]+" not found in themeElements");g[2](d,f,h)}),m.raw=a,m}function _c(a,n){return n&&n.themeXLSX?n.themeXLSX:a&&typeof a.raw=="string"?a.raw:(a=[Zr],a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]='',a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]='',a[a.length]="",a[a.length]="",a[a.length]="",a[a.length]="",a.join(""))}function Z1(a){var n={};switch(n.xclrType=a.read_shift(2),n.nTintShade=a.read_shift(2),n.xclrType){case 0:a.l+=4;break;case 1:n.xclrValue=vs(a,4);break;case 2:n.xclrValue=pd(a);break;case 3:n.xclrValue=a.read_shift(4);break;case 4:a.l+=4}return a.l+=8,n}function $1(a){var n=a.read_shift(2),l=a.read_shift(2)-4,c=[n];switch(n){case 4:case 5:case 7:case 8:case 9:case 10:case 11:case 13:c[1]=Z1(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: "+n+" "+l)}return c}function e2(){var a,n,l,c=Is();return De(c,332),De(c,334,na(1)),De(c,335,((l=be(12+2*(n={name:"XLDAPR",version:12e4,flags:3496657072}).name.length)).write_shift(4,n.flags),l.write_shift(4,n.version),hs(n.name,l),l.slice(0,l.l))),De(c,336),De(c,339,(a=1,(l=be(8+2*(n="XLDAPR").length)).write_shift(4,a),hs(n,l),l.slice(0,l.l))),De(c,52),De(c,35,na(514)),De(c,4096,na(0)),De(c,4097,Js(1)),De(c,36),De(c,53),De(c,340),De(c,337,(a=1,n=!0,(l=be(8)).write_shift(4,a),l.write_shift(4,n?1:0),l)),De(c,51,function(f){var h=be(4+8*f.length);h.write_shift(4,f.length);for(var d=0;d `),a.join("")}var Ho=1024;function Sh(a,n){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})];Ho<1e3*a;)Ho+=1e3;return n.forEach(function(h){var d=jr(h[0]),g={color2:"#BEFF82",type:"gradient"};g.type=="gradient"&&(g.angle="-180");var m=g.type=="gradient"?je("o:fill",null,{type:"gradientUnscaled","v:ext":"view"}):null,g=je("v:fill",m,g);++Ho,f=f.concat(["",g,je("v:shadow",null,{on:"t",obscured:"t"}),je("v:path",null,{"o:connecttype":"none"}),'
','',"","",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?"":"","",""])}),f.push(""),f.join("")}function Eh(a,n,l,c){var f,h=Array.isArray(a);n.forEach(function(d){var m,g=jr(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,(m=rr(a["!ref"]||"BDWGO1000001:A1")).s.r>g.r&&(m.s.r=g.r),m.e.rg.c&&(m.s.c=g.c),m.e.c"),a.forEach(function(c){c[1].forEach(function(f){var h=Dr(f.a);l.indexOf(h)==-1&&(l.push(h),n.push(""+h+"")),f.T&&f.ID&&l.indexOf("tc="+f.ID)==-1&&(l.push("tc="+f.ID),n.push("tc="+f.ID+""))})}),l.length==0&&(l.push("SheetJ5"),n.push("SheetJ5")),n.push(""),n.push(""),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(Dr(g.a))),h.push(g.t||"")}),n.push(''),h.length<=1)n.push(ms("t",Dr(h[0]||"")));else{for(var d=`Comment: `+h[0]+` `,m=1;m")}),n.push(""),2",n[1]=n[1].replace("/>",">")),n.join("")}hn=ws;function t2(a){var n=Is(),l=[];return De(n,628),De(n,630),a.forEach(function(c){c[1].forEach(function(f){-1>14&1,n>>15&1]}function Oh(d,n,f){var h=2;if(f){if(2<=f.biff&&f.biff<=5)return Ph(d);f.biff==12&&(h=4)}var c=d.read_shift(h),f=d.read_shift(h),h=Ga(d,2),d=Ga(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 Ph(f){var n=Ga(f,2),l=Ga(f,2),c=f.read_shift(1),f=f.read_shift(1);return{s:{r:n[0],c,cRel:n[1],rRel:n[2]},e:{r:l[0],c:f,cRel:l[1],rRel:l[2]}}}function Nh(d,n,h){if(h&&2<=h.biff&&h.biff<=5)return f=Ga(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=Ga(d,2);return{r:h,c:d[0],cRel:d[1],rRel:d[2]}}function a2(d,n,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>15,rRel:c>>15})];var c}function Cc(a){return a.l+=6,[]}function Bh(a){return a.l+=2,[as(a),1&a.read_shift(2)]}var i2=["Data","All","Headers","??","?Data2","??","?DataHeaders","??","Totals","??","??","??","?DataTotals","??","??","??","?Current"],Uh={1:{n:"PtgExp",f:function(a,n,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:os},4:{n:"PtgSub",f:os},5:{n:"PtgMul",f:os},6:{n:"PtgDiv",f:os},7:{n:"PtgPower",f:os},8:{n:"PtgConcat",f:os},9:{n:"PtgLt",f:os},10:{n:"PtgLe",f:os},11:{n:"PtgEq",f:os},12:{n:"PtgGe",f:os},13:{n:"PtgGt",f:os},14:{n:"PtgNe",f:os},15:{n:"PtgIsect",f:os},16:{n:"PtgUnion",f:os},17:{n:"PtgRange",f:os},18:{n:"PtgUplus",f:os},19:{n:"PtgUminus",f:os},20:{n:"PtgPercent",f:os},21:{n:"PtgParen",f:os},22:{n:"PtgMissArg",f:os},23:{n:"PtgStr",f:function(a,n,l){return a.l++,_i(a,0,l)}},26:{n:"PtgSheet",f:function(a,n,l){return a.l+=5,a.l+=2,a.l+=l.biff==2?1:4,["PTGSHEET"]}},27:{n:"PtgEndSheet",f:function(a,n,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,n,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,n,l){var c=(96&a[a.l])>>5;return a.l+=1,l=a.read_shift(l&&l.biff<=3?1:2),[g2[l],jh[l],c]}},34:{n:"PtgFuncVar",f:function(a,n,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?jh:m2)[h[1]]]}},35:{n:"PtgName",f:function(a,n,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,n,l){var c=(96&a[a.l])>>5;return a.l+=1,[c,Nh(a,0,l)]}},37:{n:"PtgArea",f:function(a,n,l){return[(96&a[a.l++])>>5,Oh(a,2<=l.biff&&l.biff,l)]}},38:{n:"PtgMemArea",f:function(a,n,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,n,l){return[a.read_shift(1)>>>5&3,a.read_shift(l&&l.biff==2?1:2)]}},42:{n:"PtgRefErr",f:function(a,n,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,n,l){var c=(96&a[a.l++])>>5;return a.l+=l&&8>5;return a.l+=1,[c,a2(a,0,l)]}},45:{n:"PtgAreaN",f:function(a,n,l){return[(96&a[a.l++])>>5,function(g,m){if(m.biff<8)return Ph(g);var h=g.read_shift(m.biff==12?4:2),d=g.read_shift(m.biff==12?4:2),m=Ga(g,2),g=Ga(g,2);return{s:{r:h,c:m[0],cRel:m[1],rRel:m[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,n,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,n,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,Nh(a,0,l)]}},59:{n:"PtgArea3d",f:function(a,n,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,Oh(a,0,l)]}},60:{n:"PtgRefErr3d",f:function(a,n,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,n,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:{}},n2={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},l2={1:{n:"PtgElfLel",f:Bh},2:{n:"PtgElfRw",f:Ei},3:{n:"PtgElfCol",f:Ei},6:{n:"PtgElfRwV",f:Ei},7:{n:"PtgElfColV",f:Ei},10:{n:"PtgElfRadical",f:Ei},11:{n:"PtgElfRadicalS",f:Cc},13:{n:"PtgElfColS",f:Cc},15:{n:"PtgElfColSV",f:Cc},16:{n:"PtgElfRadicalLel",f:Bh},25:{n:"PtgList",f:function(h){h.l+=2;var n=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:n,coltype:3&l,rt:i2[l>>2&31],idx:c,c:f,C:h}}},29:{n:"PtgSxName",f:function(a){return a.l+=2,[a.read_shift(4)]}},255:{}},c2={0:{n:"PtgAttrNoop",f:function(a){return a.l+=4,[0,0]}},1:{n:"PtgAttrSemi",f:function(a,n,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,n,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,n,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,n,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,n,l){a.l+=l&&l.biff==2?3:4}},32:{n:"PtgAttrBaxcel",f:Ih},33:{n:"PtgAttrBaxcel",f:Ih},64:{n:"PtgAttrSpace",f:function(a){return a.read_shift(2),Vh(a)}},65:{n:"PtgAttrSpaceSemi",f:function(a){return a.read_shift(2),Vh(a)}},128:{n:"PtgAttrIfError",f:function(a){var n=255&a[a.l+1]?1:0;return a.l+=2,[n,a.read_shift(2)]}},255:{}};function Ti(a,n,l,c){if(c.biff<8)return vs(a,n);for(var f=a.l+n,h=[],d=0;d!==l.length;++d)switch(l[d][0]){case"PtgArray":l[d][1]=o2(a,0,c),h.push(l[d][1]);break;case"PtgMemArea":l[d][2]=function(m,g){for(var y=m.read_shift(g.biff==12?4:2),v=[],x=0;x!=y;++x)v.push((g.biff==12?no:Cn)(m));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(n=f-a.l)!==0&&h.push(vs(a,n)),h}function Ri(a,n,l){for(var c,f,h=a.l+n,d=[];h!=a.l;)n=h-a.l,f=a[a.l],c=Uh[f]||Uh[n2[f]],(c=f===24||f===25?(f===24?l2:c2)[a[a.l+1]]:c)&&c.f?d.push([c.n,c.f(a,n,l)]):vs(a,n);return d}var f2={PtgAdd:"+",PtgConcat:"&",PtgDiv:"/",PtgEq:"=",PtgGe:">=",PtgGt:">",PtgLe:"<=",PtgLt:"<",PtgMul:"*",PtgNe:"<>",PtgPower:"^",PtgSub:"-"};function zh(a,n,l){if(!a)return"SH33TJSERR0";if(8h[0].e.c||d.rh[0].e.r)){v.push(Ms(h[1],0,de,c,f)),ke=!0;break}ke||v.push(R[1])}break;case"PtgArray":v.push("{"+function(ze){for(var Ne=[],Fe=0;Fe>3&1,tt:h[1]}}function u2(a,n,l,c,f){n=uo(n,l,f),f=(l=a.v)!=null?Bo(typeof l=="number"?l:0):((l=be(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=be(6),l.write_shift(2,33),l.write_shift(4,0);for(var h=be(a.bf.length),d=0;d/g,y2=/<(?:\w+:)?sheetData[^>]*>([\s\S]*)<\/(?:\w+:)?sheetData>/,_2=/<(?:\w:)?hyperlink [^>]*>/gm,v2=/"(\w*:\w*)"/,w2=/<(?:\w:)?col\b[^>]*[\/]?>/g,x2=/<(?:\w:)?autoFilter[^>]*([\/]|>([\s\S]*)<\/(?:\w:)?autoFilter)>/g,C2=/<(?:\w:)?pageMargins[^>]*\/>/g,Yh=/<(?:\w:)?sheetPr\b(?:[^>a-z][^>]*)?\/>/,F2=/<(?:\w:)?sheetPr[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetPr)>/,D2=/<(?:\w:)?sheetViews[^>]*(?:[\/]|>([\s\S]*)<\/(?:\w:)?sheetViews)>/;function A2(a,n,l,c,f,h,d){if(!a)return a;c=c||{"!id":{}};var m=n.dense?[]:{},g={s:{r:2e6,c:2e6},e:{r:0,c:0}},y="",ae="",v=a.match(y2);v?(y=a.slice(0,v.index),ae=a.slice(v.index+v[0].length)):y=ae=a;var x=y.match(Yh);x?Sc(x[0],0,f,l):(x=y.match(F2))&&(a=x[0],x[1],x=m,C=f,F=l,Sc(a.slice(0,a.indexOf(">")),0,C,F));var C,F,k=(y.match(/<(?:\w*:)?dimension/)||{index:-1}).index;0=g.s.c&&g.e.r>=g.s.r&&(m["!ref"]=Pt(g)),0g.e.r&&(ae.e.r=g.e.r),ae.e.rg.e.c&&(ae.e.c=g.e.c),ae.e.ca-z][^>]*)?\/?>/,qh,Kh,Jh,Xh,Qh,Zh,$h,R2=(qh=/<(?:\w+:)?c[ \/>]/,Kh=/<\/(?:\w+:)?row>/,Jh=/r=["']([^"']*)["']/,Xh=/<(?:\w+:)?is>([\S\s]*?)<\/(?:\w+:)?is>/,Qh=/ref=["']([^"']*)["']/,Zh=fi("v"),$h=fi("f"),function(a,n,l,c,f,h){for(var d,m,g,y,v,x,C=0,F="",k=[],D=[],P=0,L=0,R="",O=0,I=0,V=0,X=0,ae=Array.isArray(h.CellXf),te=[],ce=[],_e=Array.isArray(n),we=[],de={},ke=!1,qe=!!l.sheetStubs,He=a.split(Kh),Ve=0,ze=He.length;Ve!=ze;++Ve){var Ne=(F=He[Ve].trim()).length;if(Ne!==0){var Fe=0;e:for(C=0;C":if(F[C-1]!="/"){++C;break e}if(l&&l.cellStyles){if(O=(g=Tt(F.slice(Fe,C),!0)).r!=null?parseInt(g.r,10):O+1,I=-1,l.sheetRows&&l.sheetRowsO-1&&(c.s.r=O-1),c.e.r":"")+F,D!=null&&D.length===2){for(P=0,R=D[1],L=0;L!=R.length&&!((d=R.charCodeAt(L)-64)<1||26]*\/>/))&&ce[(v=Tt(D[0])).si]&&(m.f=(x=ce[v.si][1],Xe=ce[v.si][2],$e=g.r,Xe=ks(Xe).s,$e=jr($e),Lh(x,{r:$e.r-Xe.r,c:$e.c-Xe.c})));for(var gt=jr(g.r),L=0;L=te[L][0].s.r&>.r<=te[L][0].e.r&>.c>=te[L][0].s.c&>.c<=te[L][0].e.c&&(m.F=te[L][1])}if(g.t==null&&m.v===void 0)if(m.f||m.F)m.v=0,m.t="n";else{if(!qe)continue;m.t="z"}else m.t=g.t||"n";switch(c.s.c>I&&(c.s.c=I),c.e.c"],I=0;I!=L.length;++I)(R=L[I])&&(O[O.length]=je("col",null,Un(I,R)));return O[O.length]="",O.join("")}(g["!cols"])),d[f=d.length]="",g["!links"]=[],g["!ref"]!=null&&0<(h=k2(g,n)).length&&(d[d.length]=h),d.length>f+1&&(d[d.length]="",d[f]=d[f].replace("/>",">")),g["!protect"]&&(d[d.length]=(x=g["!protect"],C={sheet:1},S2.forEach(function(L){x[L]!=null&&x[L]&&(C[L]="1")}),E2.forEach(function(L){x[L]==null||x[L]||(C[L]="0")}),x.password&&(C.password=mc(x.password).toString(16).toUpperCase()),je("sheetProtection",null,C))),g["!autofilter"]!=null&&(d[d.length]=function(L,R,O,I){var V=typeof L.ref=="string"?L.ref:Pt(L.ref);O.Workbook||(O.Workbook={Sheets:[]}),O.Workbook.Names||(O.Workbook.Names=[]);var X=O.Workbook.Names;(L=ks(V)).s.r==L.e.r&&(L.e.r=ks(R["!ref"]).e.r,V=Pt(L));for(var ae=0;ae',O=0;O!=L.length;++O)R+='';return R+""}(g["!merges"]));var k,D,P=-1;return 0",g["!links"].forEach(function(L){L[1].Target&&(D={ref:L[0]},L[1].Target.charAt(0)!="#"&&(P=Ar(c,-1,Dr(L[1].Target).replace(/#.*$/,""),Vt.HLINK),D["r:id"]="rId"+P),-1<(k=L[1].Target.indexOf("#"))&&(D.location=Dr(L[1].Target.slice(k+1))),L[1].Tooltip&&(D.tooltip=Dr(L[1].Tooltip)),d[d.length]=je("hyperlink",null,D))}),d[d.length]=""),delete g["!links"],g["!margins"]!=null&&(d[d.length]=(po(l=g["!margins"]),je("pageMargins",null,l))),n&&!n.ignoreEC&&n.ignoreEC!=null||(d[d.length]=ms("ignoredErrors",je("ignoredError",null,{numberStoredAsText:1,sqref:y}))),0",d[1]=d[1].replace("/>",">")),d.join("")}function L2(a,n,l,c){l=function(f,h,d){var m=be(145),g=(d["!rows"]||[])[f]||{};m.write_shift(4,f),m.write_shift(4,0);var v=320;g.hpx?v=20*Di(g.hpx):g.hpt&&(v=20*g.hpt),m.write_shift(2,v),m.write_shift(1,0),v=0,g.level&&(v|=g.level),g.hidden&&(v|=16),(g.hpx||g.hpt)&&(v|=32),m.write_shift(1,v),m.write_shift(1,0);var y=0,v=m.l;m.l+=4;for(var x={r:f,c:0},C=0;C<16;++C)if(!(h.s.c>C+1<<10||h.e.cm.l?m.slice(0,m.l):m}(c,l,n),(17X.l?X.slice(0,X.l):X)):De(a,6,(V=n,ao(de,I=I??be(12+4*V.v.length)),hs(V.v,I),I.length>I.l?I.slice(0,I.l):I))),!0;case"n":return n.v==(0|n.v)&&-1e3[\s\S]*?<\/c:numCache>/gm)||[]).forEach(function(x){var C=function(F){var k,D=[],P=F.match(/^/);(F.match(/(.*?)<\/c:pt>/gm)||[]).forEach(function(R){R=R.match(/(.*)<\/c:v><\/c:pt>/),R&&(D[+R[1]]=P?+R[2]:R[2])});var L=pr((F.match(/([\s\S]*?)<\/c:formatCode>/)||["","General"])[1]);return(F.match(/(.*?)<\/c:f>/gm)||[]).forEach(function(R){k=R.replace(/<.*?>/g,"")}),[D,L,k]}(x);v.s.r=v.s.c=0,v.e.c=g,m=Vr(g),C[0].forEach(function(F,k){d[m+qr(k)]={t:"n",v:F,z:C[1]},y=k}),v.e.r",h=0;h!=a.SheetNames.length&&f[h]&&f[h].Hidden;++h);h==a.SheetNames.length&&(h=0),n[n.length]='',n[n.length]=""}for(n[n.length]="",h=0;h!=a.SheetNames.length;++h){var d={name:Dr(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"}n[n.length]=je("sheet",null,d)}return n[n.length]="",l&&(n[n.length]="",a.Workbook&&a.Workbook.Names&&a.Workbook.Names.forEach(function(m){var g={name:m.Name};m.Comment&&(g.comment=m.Comment),m.Sheet!=null&&(g.localSheetId=""+m.Sheet),m.Hidden&&(g.hidden="1"),m.Ref&&(n[n.length]=je("definedName",Dr(m.Ref),g))}),n[n.length]=""),2",n[1]=n[1].replace("/>",">")),n.join("")}function J2(a,n){var l={};return a.read_shift(4),l.ArchID=a.read_shift(4),a.l+=n-8,l}function X2(a,n){De(a,143);for(var l,c=0;c!=n.SheetNames.length;++c){var f={Hidden:n.Workbook&&n.Workbook.Sheets&&n.Workbook.Sheets[c]&&n.Workbook.Sheets[c].Hidden||0,iTabID:c+1,strRelID:"rId"+(c+1),name:n.SheetNames[c]};De(a,156,(l=f,(f=(f=void 0)||be(127)).write_shift(4,l.Hidden),f.write_shift(4,l.iTabID),Xl(l.strRelID,f),hs(l.name.slice(0,31),f),f.length>f.l?f.slice(0,f.l):f))}De(a,144)}function Q2(a,n){if(n.Workbook&&n.Workbook.Sheets){for(var l,c=n.Workbook.Sheets,f=0,h=-1,d=-1;fl.l?l.slice(0,l.l):l)),De(a,136))}}function Z2(a,n){var l=Is();return De(l,131),De(l,128,function(c){c=c||be(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}()),De(l,153,function(c,f){f=f||be(72);var h=0;return c&&c.filterPrivacy&&(h|=8),f.write_shift(4,h),f.write_shift(4,0),Ou(c&&c.CodeName||"ThisWorkbook",f),f.slice(0,f.l)}(a.Workbook&&a.Workbook.WBProps||null)),Q2(l,a),X2(l,a),De(l,132),l.end()}function $2(a,n,l){return(n.slice(-4)===".bin"?function(c,f){var h={AppVersion:{},WBProps:{},WBView:[],Sheets:[],CalcPr:{},xmlns:""},d=[],m=!1;(f=f||{}).biff=12;var g=[],y=[[]];return y.SheetNames=[],y.XTI=[],Pi[16]={n:"BrtFRTArchID$",f:J2},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),m=!0;break;case 36:d.pop(),m=!1;break;case 37:d.push(C),m=!0;break;case 38:d.pop(),m=!1;break;case 16:break;default:if(!x.T&&(!m||f.WTF&&d[d.length-1]!=37&&d[d.length-1]!=35))throw new Error("Unexpected record 0x"+C.toString(16))}},f),op(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,m="xmlns",g={},y=0;if(c.replace(_s,function(v,x){var C=Tt(v);switch(ma(C[0])){case"":break;case"":case"":case"":break;case"":Ec.forEach(function(F){if(C[F[0]]!=null)switch(F[2]){case"bool":h.WBProps[F[0]]=Ir(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=Tr(C.codeName));break;case"":case"":break;case"":case"":break;case"":delete C[0],h.WBView.push(C);break;case"":break;case"":case"":break;case"":break;case"":case"":case"":case"":break;case"":case"":d=!1;break;case"":g.Ref=pr(Tr(c.slice(y,x))),h.Names.push(g);break;case"":break;case"":delete C[0],h.CalcPr=C;break;case"":case"":case"":case"":break;case"":case"":case"":break;case"":case"":case"":break;case"":break;case"":case"":case"":case"":case"":break;case"":d=!1;break;case"":d=!0;break;case"":d=!1;break;case"=Kt[0].s.r&&L.r<=Kt[0].e.r&&V>=Kt[0].s.c&&V<=Kt[0].e.c&&(R.F=Pt(Kt[0]),Ve=!0)}!Ve&&3L.r&&(we.s.r=L.r),we.s.c>V&&(we.s.c=V),we.e.rL.r&&(we.s.r=L.r),we.s.c>V&&(we.s.c=V),we.e.r=Re.s;)gt[Re.e--]={width:Re.w/256,hidden:!!(1&Re.flags),level:Re.level},Xe||(Xe=!0,yc(Re.w/256)),za(gt[Re.e+1]);break;case 161:_e["!autofilter"]={ref:Pt(Re)};break;case 476:_e["!margins"]=Re;break;case 147:C.Sheets[v]||(C.Sheets[v]={}),Re.name&&(C.Sheets[v].CodeName=Re.name),(Re.above||Re.left)&&(_e["!outline"]={above:Re.above,left:Re.left});break;case 137:C.Views||(C.Views=[{}]),C.Views[0]||(C.Views[0]={}),Re.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(!kt.T&&(!de||D.WTF))throw new Error("Unexpected record 0x"+ar.toString(16))}},D),delete D.supbooks,delete D["!row"],!_e["!ref"]&&(we.s.r<2e6||P&&(0we.e.r&&(g.e.r=we.e.r),g.e.rwe.e.c&&(g.e.c=we.e.c),g.e.c/))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 k,D;F===""||F.trim()===""||(k=F.match(/<(?:\w+:)?comment[^>]*>/))&&(k={author:(D=Tt(k[0])).authorId&&v[D.authorId]||"sheetjsghost",ref:D.ref,guid:D.guid},D=jr(D.ref),y.sheetRows&&y.sheetRows<=D.r||(F=!!(F=F.match(/<(?:\w+:)?text>([\s\S]*)<\/(?:\w+:)?text>/))&&!!F[1]&&pc(F[1])||{r:"",t:"",h:""},k.r=F.r,F.r==""&&(F.t=F.h=""),k.t=(F.t||"").replace(/\r\n/g,` `).replace(/\r/g,` `),y.cellHTML&&(k.h=F.h),x.push(k)))}),x}(a,l);var c,f,h,d,m}function ob(a,n){return n.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 m=Tt(d);switch(m[0]){case"":case"":break;case"":break;case"":break;case"":break;case"":case"":case"":break;case"":break;case"":F=2;break;case"":F=2;break;case"":case"":case"":break;case"":C=!1;break;case""))>Math.min(1023&h.indexOf(","),1023&h.indexOf(";"))){var m=Lr(l);return m.type="string",zo.to_workbook(f,m)}if(h.indexOf("[\s\S]*?<\/table>/gi),!K||K.length==0)throw new Error("Invalid HTML: could not find ");if(K.length==1)return Ba(hp(K[0],Ee),Ee);var ue=jc();return K.forEach(function(ge,le){Wc(ue,hp(ge,Ee),"Sheet"+(le+1))}),ue}(f,l);Mi={"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?[]:{},k="",D={},P={},L=la(''),R=0,O=0,I=0,V={s:{r:2e6,c:2e6},e:{r:0,c:0}},X={},ae={},te="",ce=0,_e=[],we={},de={},ke=0,qe=[],He=[],Ve={},ze=[],Ne=!1,Fe=[],$e=[],rt={},gt=0,Nt=0,Xe={Sheets:[],WBProps:{date1904:!1}},Re={};di.lastIndex=0,f=f.replace(//gm,"");for(var kt,ar,Kt,vr,Kr="";c=di.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(K,Ee,ue,ge,le,ye,Oe,lt,Ze,Ye){var at="General",dt=ge.StyleID,ht={};Ye=Ye||{};var Ge=[],Pe=0;for((dt=dt===void 0&<?lt.StyleID:dt)===void 0&&Oe&&(dt=Oe.StyleID);ye[dt]!==void 0&&(ye[dt].nf&&(at=ye[dt].nf),ye[dt].Interior&&Ge.push(ye[dt].Interior),ye[dt].Parent);)dt=ye[dt].Parent;switch(ue.Type){case"Boolean":ge.t="b",ge.v=Ir(K);break;case"String":ge.t="s",ge.r=hu(pr(K)),ge.v=-1/g,""):ge.r;break;case"DateTime":K.slice(-1)!="Z"&&(K+="Z"),ge.v=(Nr(K)-new Date(Date.UTC(1899,11,30)))/864e5,ge.v!=ge.v?ge.v=pr(K):ge.v<60&&(ge.v=ge.v-1),at&&at!="General"||(at="yyyy-mm-dd");case"Number":ge.v===void 0&&(ge.v=+K),ge.t||(ge.t="n");break;case"Error":ge.t="e",ge.v=zu[K],Ye.cellText!==!1&&(ge.w=K);break;default:K==""&&Ee==""?ge.t="z":(ge.t="s",ge.v=hu(Ee||K))}if(lb(ge,at,Ye),Ye.cellFormula!==!1)if(ge.Formula)ue=pr(ge.Formula),ue.charCodeAt(0)==61&&(ue=ue.slice(1)),ge.f=Yo(ue,le),delete ge.Formula,ge.ArrayRange=="RC"?ge.F=Yo("RC:RC",le):ge.ArrayRange&&(ge.F=Yo(ge.ArrayRange,le),Ze.push([rr(ge.F),ge.F]));else for(Pe=0;Pe=Ze[Pe][0].s.r&&le.r<=Ze[Pe][0].e.r&&le.c>=Ze[Pe][0].s.c&&le.c<=Ze[Pe][0].e.c&&(ge.F=Ze[Pe][1]);Ye.cellStyles&&(Ge.forEach(function(pt){!ht.patternType&&pt.patternType&&(ht.patternType=pt.patternType)}),ge.s=ht),ge.StyleID!==void 0&&(ge.ixfe=ge.StyleID)}(f.slice(R,c.index),te,L,y[y.length-1][0]=="comment"?Ve:D,{c:O,r:I},X,ze[O],P,Fe,l):(te="",L=la(c[0]),R=c.index+c[0].length);break;case"cell":if(c[1]==="/")if(0I)&&D.v!==void 0&&(l.dense?(F[I]||(F[I]=[]),F[I][O]=D):F[Vr(O)+qr(I)]=D),D.HRef&&(D.l={Target:pr(D.HRef)},D.HRefScreenTip&&(D.l.Tooltip=D.HRefScreenTip),delete D.HRef,delete D.HRefScreenTip),(D.MergeAcross||D.MergeDown)&&(gt=O+(0|parseInt(D.MergeAcross,10)),Nt=I+(0|parseInt(D.MergeDown,10)),_e.push({s:{c:O,r:I},e:{c:gt,r:Nt}})),l.sheetStubs)if(D.MergeAcross||D.MergeDown){for(var Z=O;Z<=gt;++Z)for(var wr=I;wr<=Nt;++wr)(OV.e.c&&(V.e.c=O),c[0].slice(-2)==="/>"&&++O,He=[];break;case"row":c[1]==="/"||c[0].slice(-2)==="/>"?(IV.e.r&&(V.e.r=I),c[0].slice(-2)==="/>"&&(P=la(c[0])).Index&&(I=+P.Index-1),O=0,++I):((P=la(c[0])).Index&&(I=+P.Index-1),rt={},P.AutoFitHeight!="0"&&!P.Height||(rt.hpx=parseInt(P.Height,10),rt.hpt=Di(rt.hpx),$e[I]=rt),P.Hidden=="1"&&(rt.hidden=!0,$e[I]=rt));break;case"worksheet":if(c[1]==="/"){if((g=y.pop())[0]!==c[3])throw new Error("Bad state: "+g.join("|"));C.push(k),V.s.r<=V.e.r&&V.s.c<=V.e.c&&(F["!ref"]=Pt(V),l.sheetRows&&l.sheetRows<=V.e.r&&(F["!fullref"]=F["!ref"],V.e.r=l.sheetRows-1,F["!ref"]=Pt(V))),_e.length&&(F["!merges"]=_e),0")break;y.push([c[3],!1]),Ne=!(ze=[])}break;case"style":c[1]==="/"?(ar=X,Kt=ae,(vr=l).cellStyles&&(!Kt.Interior||(vr=Kt.Interior).Pattern&&(vr.patternType=O1[vr.Pattern]||vr.Pattern)),ar[Kt.ID]=Kt):ae=la(c[0]);break;case"numberformat":ae.nf=pr(la(c[0]).Format||"General"),Mi[ae.nf]&&(ae.nf=Mi[ae.nf]);for(var _r=0;_r!=392&&oe[_r]!=ae.nf;++_r);if(_r==392){for(_r=57;_r!=392;++_r)if(oe[_r]==null){pa(ae.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)),!Ne&&10")break;c[1]==="/"?te+=f.slice(ce,c.index):ce=c.index+c[0].length;break;case"interior":if(!l.cellStyles)break;ae.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]==="/"?(Kt=we,z=Kr,he=f.slice(ke,c.index),Kt[z=(Qu=Qu||ln(ac))[z]||z]=he):ke=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("|"));(kt=Ve).t=kt.v||"",kt.t=kt.t.replace(/\r\n/g,` `).replace(/\r/g,` `),kt.v=kt.w=kt.ixfe=void 0,He.push(Ve)}else y.push([c[3],!1]),Ve={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)!=="/"&&(kt=la(c[0]),F["!autofilter"]={ref:Yo(kt.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 Dp(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(ke,c.index)){case"SheetHidden":Re.Hidden=1;break;case"SheetVeryHidden":Re.Hidden=2}else ke=c.index+c[0].length;break;case"header":F["!margins"]||po(F["!margins"]={},"xlml"),isNaN(+Tt(c[0]).Margin)||(F["!margins"].header=+Tt(c[0]).Margin);break;case"footer":F["!margins"]||po(F["!margins"]={},"xlml"),isNaN(+Tt(c[0]).Margin)||(F["!margins"].footer=+Tt(c[0]).Margin);break;case"pagemargins":var fe=Tt(c[0]);F["!margins"]||po(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(K,Ee,ue,ge){var le=ge;switch((ue[0].match(/dt:dt="([\w.]+)"/)||["",""])[1]){case"boolean":le=Ir(ge);break;case"i2":case"int":le=parseInt(ge,10);break;case"r4":case"float":le=parseFloat(ge);break;case"date":case"dateTime.tz":le=Nr(ge);break;case"i8":case"string":case"fixed":case"uuid":case"bin.base64":break;default:throw new Error("bad custprop:"+ue[0])}K[pr(Ee)]=le}(de,Kr,qe,f.slice(ke,c.index)):ke=(qe=c).index+c[0].length;break}if(l.WTF)throw"Unrecognized tag: "+c[3]+"|"+y.join("|")}return m={},l.bookSheets||l.bookProps||(m.Sheets=x),m.SheetNames=C,m.Workbook=Xe,m.SSF=Lr(oe),m.Props=we,m.Custprops=de,m}function Rc(a,n){switch(Nc(n=n||{}),n.type||"base64"){case"base64":return Tc(j(a),n);case"binary":case"buffer":case"file":return Tc(a,n);case"array":return Tc(ft(a),n)}}function cb(a,n){var l,c,f,h,d,m,g,y=[];return a.Props&&y.push((l=a.Props,c=n,f=[],Hr(ac).map(function(v){for(var x=0;x'+g.join("")+"")),y.join("")}function up(a){return je("NamedRange",null,{"ss:Name":a.Name,"ss:RefersTo":"="+xc(a.Ref,{r:0,c:0})})}function fb(a,n,l,c,f,h,d){if(!a||a.v==null&&a.f==null)return"";var m={};if(a.f&&(m["ss:Formula"]="="+Dr(xc(a.f,d))),a.F&&a.F.slice(0,n.length)==n&&(n=jr(a.F.slice(n.length+1)),m["ss:ArrayRange"]="RC:R"+(n.r==d.r?"":"["+(n.r-d.r)+"]")+"C"+(n.c==d.c?"":"["+(n.c-d.c)+"]")),a.l&&a.l.Target&&(m["ss:HRef"]=Dr(a.l.Target),a.l.Tooltip&&(m["x:HRefScreenTip"]=Dr(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&&(m["ss:MergeAcross"]=g[y].e.c-g[y].s.c),g[y].e.r>g[y].s.r&&(m["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(Ll,function(C){return kl[C]}).replace(uu,function(C){return"&#x"+C.charCodeAt(0).toString(16).toUpperCase()+";"})}return l=ja(c.cellXfs,a,c),m["ss:StyleID"]="s"+(21+l),m["ss:Index"]=d.c+1,l=a.v!=null?x:"",l=a.t=="z"?"":''+l+"",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,m)}function ub(a,n){if(!a["!ref"])return"";var l=rr(a["!ref"]),c=a["!merges"]||[],f=0,h=[];a["!cols"]&&a["!cols"].forEach(function(P,I){za(P);var R=!!P.width,O=Un(I,P),I={"ss:Index":I+1};R&&(I["ss:Width"]=Ci(O.width)),P.hidden&&(I["ss:Hidden"]="1"),h.push(je("Column",null,I))});for(var d,m,g=Array.isArray(a),y=l.s.r;y<=l.e.r;++y){for(var v=[(d=y,m=(a["!rows"]||[])[y],d='")],x=l.s.c;x<=l.e.c;++x){for(var C,F,k,D=!1,f=0;f!=c.length;++f)if(!(c[f].s.c>x||c[f].s.r>y||c[f].e.c"),2"+h+""),0<(h=f?ub(f,n):"").length&&c.push("
"+h+"
"),c.push(function(d,m,g){if(!d)return"";var y=[];if(d["!margins"]&&(y.push(""),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("")),g&&g.Workbook&&g.Workbook.Sheets&&g.Workbook.Sheets[m])if(g.Workbook.Sheets[m].Hidden)y.push(je("Visible",g.Workbook.Sheets[m].Hidden==1?"SheetHidden":"SheetVeryHidden",{}));else{for(var v=0;v")}return((((g||{}).Workbook||{}).Views||[])[0]||{}).RTL&&y.push(""),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 hb(a,n){n=n||{},a.SSF||(a.SSF=Lr(oe)),a.SSF&&(Mo(),ni(a.SSF),n.revssf=cn(a.SSF),n.revssf[a.SSF[65535]]=0,n.ssf=a.SSF,n.cellXfs=[],ja(n.cellXfs,{},{revssf:{General:0}}));var l=[];l.push(cb(a,n)),l.push(""),l.push(""),l.push("");for(var c,f=0;f'],n.cellXfs.forEach(function(h,d){var m=[];m.push(je("NumberFormat",null,{"ss:Format":Dr(oe[h.numFmtId])})),d={"ss:ID":"s"+(21+d)},c.push(je("Style",m.join(""),d))}),je("Styles",c.join(""))),l[3]=function(h){if(!((h||{}).Workbook||{}).Names)return"";for(var d=h.Workbook.Names,m=[],g=0;g=Oe.sheetRows)){var lt,Ze,Ye;if(Oe.cellStyles&&ye.XF&&ye.XF.data&&(Ze=Oe,(Ye=(lt=ye).XF.data)&&Ye.patternType&&Ze&&Ze.cellStyles&&(lt.s={},lt.s.patternType=Ye.patternType,(Ze=xi(f(Ye.icvFore)))&&(lt.s.fgColor={rgb:Ze}),(Ze=xi(f(Ye.icvBack)))&&(lt.s.bgColor={rgb:Ze}))),delete ye.ixfe,delete ye.XF,R=Rt(d=le),F&&F.s&&F.e||(F={s:{r:0,c:0},e:{r:0,c:0}}),le.rF.e.r&&(F.e.r=le.r+1),le.c+1>F.e.c&&(F.e.c=le.c+1),Oe.cellFormula&&ye.f){for(var at=0;atle.c||I[at][0].s.r>le.r||I[at][0].e.c>8)!==Xe)throw new Error("rt mismatch: "+ar+"!="+Xe);kt.r==12&&(a.l+=10,Re-=10)}var Kt,vr,Kr,Z={},Z=Xe===10?kt.f(a,Re,ce):function(le,ye,Oe,lt,Ze){var Ye=lt,at=[],dt=Oe.slice(Oe.l,Oe.l+Ye);if(Ze&&Ze.enc&&Ze.enc.insitu&&0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 5:case 517:z={ixfe:Z.ixfe,XF:V[Z.ixfe],v:Z.val,t:Z.t},0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 638:z={ixfe:Z.ixfe,XF:V[Z.ixfe],v:Z.rknum,t:"n"},0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 189:for(var cs=Z.c;cs<=Z.C;++cs){var $s=Z.rkrec[cs-Z.c][0],z={ixfe:$s,XF:V[$s],v:Z.rkrec[cs-Z.c][1],t:"n"};0>8&63]),va(z,n,l.opts.Date1904),h({c:cs,r:Z.r},z,n)}break;case 6:case 518:case 1030:if(Z.val=="String"){k=Z;break}(z=Gn(Z.val,Z.cell.ixfe,Z.tt)).XF=V[z.ixfe],n.cellFormula&&(!((he=Z.formula)&&he[0]&&he[0][0]&&he[0][0][0]=="PtgExp")||O[Kr=Rt({r:Kt=he[0][0][1][0],c:vr=he[0][0][1][1]})]?z.f=""+Ms(Z.formula,0,Z.cell,He,ce):z.F=((n.dense?(x[Kt]||[])[vr]:x[Kr])||{}).F),0>8&63]),va(z,n,l.opts.Date1904),h(Z.cell,z,n),k=Z;break;case 7:case 519:if(!k)throw new Error("String record expects Formula");(z=Gn(k.val=Z,k.cell.ixfe,"s")).XF=V[z.ixfe],n.cellFormula&&(z.f=""+Ms(k.formula,0,k.cell,He,ce)),0>8&63]),va(z,n,l.opts.Date1904),h(k.cell,z,n),k=null;break;case 33:case 545:I.push(Z);var he=Rt(Z[0].s),J=n.dense?(x[Z[0].s.r]||[])[Z[0].s.c]:x[he];if(n.cellFormula&&J){if(!k||!he||!J)break;J.f=""+Ms(Z[1],0,Z[0],He,ce),J.F=Pt(Z[0])}break;case 1212:if(!n.cellFormula)break;if(R){if(!k)break;O[Rt(k.cell)]=Z[0],((J=n.dense?(x[k.cell.r]||[])[k.cell.c]:x[Rt(k.cell)])||{}).f=""+Ms(Z[0],0,d,He,ce)}break;case 253:z=Gn(D[Z.isst].t,Z.ixfe,"s"),D[Z.isst].h&&(z.h=D[Z.isst].h),z.XF=V[z.ixfe],0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 513:n.sheetStubs&&(z={ixfe:Z.ixfe,XF:V[Z.ixfe],t:"z"},0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n));break;case 190:if(n.sheetStubs)for(var fe=Z.c;fe<=Z.C;++fe){var K=Z.ixfe[fe-Z.c];z={ixfe:K,XF:V[K],t:"z"},0>8&63]),va(z,n,l.opts.Date1904),h({c:fe,r:Z.r},z,n)}break;case 214:case 516:case 4:(z=Gn(Z.val,Z.ixfe,"s")).XF=V[z.ixfe],0>8&63]),va(z,n,l.opts.Date1904),h({c:Z.c,r:Z.r},z,n);break;case 0:case 512:Ne===1&&(F=Z);break;case 252:D=Z;break;case 1054:if(ce.biff==4){$e[Fe++]=Z[1];for(var Ee=0;Ee=Z.s;)de[Z.e--]={width:Z.w/256,level:Z.level||0,hidden:!!(1&Z.flags)},qe||(qe=!0,yc(Z.w/256)),za(de[Z.e+1]);break;case 520:ge={},Z.level!=null&&((ke[Z.r]=ge).level=Z.level),Z.hidden&&((ke[Z.r]=ge).hidden=!0),Z.hpt&&((ke[Z.r]=ge).hpt=Z.hpt,ge.hpx=Wo(Z.hpt));break;case 38:case 39:case 40:case 41:x["!margins"]||po(x["!margins"]={}),x["!margins"][{38:"left",39:"right",40:"top",41:"bottom"}[Xe]]=Z;break;case 161:x["!margins"]||po(x["!margins"]={}),x["!margins"].header=Z.header,x["!margins"].footer=Z.footer;break;case 574:Z.RTL&&(ae.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:ae.WBProps.CodeName=Z||"ThisWorkbook"}}else kt||console.error("Missing Info for XLS Record 0x"+Xe.toString(16)),a.l+=Re}return l.SheetNames=Hr(C).sort(function(le,ye){return Number(le)-Number(ye)}).map(function(le){return C[le].name}),n.bookSheets||(l.Sheets=c),!l.SheetNames.length&&L["!ref"]?(l.SheetNames.push("Sheet1"),l.Sheets&&(l.Sheets.Sheet1=L)):l.Preamble=L,l.Sheets&&rt.forEach(function(le,ye){l.Sheets[l.SheetNames[ye]]["!autofilter"]=le}),l.Strings=D,l.SSF=Lr(oe),ce.enc&&(l.Encryption=ce.enc),v&&(l.Themes=v),l.Metadata={},y!==void 0&&(l.Metadata.Country=y),0>>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:m.auto=1;break;case 1:m.index=y;var k=gi[y];k&&(m.rgb=xi(k));break;case 2:m.rgb=xi([x,C,F]);break;case 3:m.theme=y}return v!=0&&(m.tint=0>13&3],l.showPivotChartFilter=!!(32768&c),l.updateLinks=["userSet","never","always"][c>>8&3],l}},154:{},155:{},156:{f:function(a,n){var l={};return l.Hidden=a.read_shift(4),l.iTabID=a.read_shift(4),l.strRelID=Jl(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:no},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:Ko},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,n){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:Jl},357:{},358:{},359:{},360:{T:1},361:{},362:{f:Sd},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=Nu(a),h=a.read_shift(1);return(f=[f])[2]=h,l.cellFormula?(l=d2(a,c-a.l,l),f[1]=l):a.l=c,f}},427:{f:function(a,f,l){var c=a.l+f,f=[no(a)];return l.cellFormula&&(l=p2(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 n={};return rp.forEach(function(l){n[l]=xs(a)}),n}},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,m){var l=a.l+m,c=no(a),f=Kl(a),h=ws(a),d=ws(a),m=ws(a);return a.l=l,m={rfx:c,relId:f,loc:h,display:m},d&&(m.Tooltip=d),m}},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:Jl},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:hn},633:{T:1},634:{T:-1},635:{T:1,f:function(a){var n={};n.iauthor=a.read_shift(4);var l=no(a);return n.rfx=l.s,n.ref=Rt(l.s),a.l+=16,n}},636:{T:-1},637:{f:Yg},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,n){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:Fc},10:{f:Ua},12:{f:as},13:{f:as},14:{f:$r},15:{f:$r},16:{f:xs},17:{f:$r},18:{f:$r},19:{f:as},20:{f:Fd},21:{f:Fd},23:{f:Sd},24:{f:Ad},25:{f:$r},26:{},27:{},28:{f:function(a,n,l){return function(c,f){if(!(f.biff<8)){var h=c.read_shift(2),d=c.read_shift(2),m=c.read_shift(2),g=c.read_shift(2),y=fo(c,0,f);return f.biff<8&&c.read_shift(1),[{r:h,c:d},y,g,m]}}(a,l)}},29:{},34:{f:$r},35:{f:Dd},38:{f:xs},39:{f:xs},40:{f:xs},41:{f:xs},42:{f:$r},43:{f:$r},47:{f:function(a,n,l){var c={Type:8<=l.biff?a.read_shift(2):0};return c.Type?k1(a,n-2,c):(n=a,l.biff,a=l,l=c,n={key:as(n),verificationBytes:as(n)},a.password&&(n.verifier=mc(a.password)),l.valid=n.verificationBytes===n.verifier,l.valid&&(l.insitu=R1(a.password))),c}},49:{f:function(a,n,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=_i(a,0,l),c}},51:{f:as},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:$r},65:{f:function(){}},66:{f:as},77:{},80:{},81:{},82:{},85:{f:as},89:{},90:{},91:{},92:{f:function(a,n,f){if(f.enc)return a.l+=n,"";var c=a.l,f=fo(a,0,f);return a.read_shift(n+c-a.l),f}},93:{f:function(a,n,l){return l&&l.biff<8?function(c,f,h){c.l+=4;var d=c.read_shift(2),m=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((n1[d]||vs)(c,f,h)),{cmo:[m,d,g],ft:y}}(a,n,l):{cmo:l=_d(a),ft:function(c,f){for(var h=c.l+f,d=[];c.l>2&1,n-=6,d.data=(c=a,d.fStyle,f=l,h={},n=c.read_shift(4),a=c.read_shift(4),l=c.read_shift(4),c=c.read_shift(2),h.patternType=Qg[l>>26],f.cellStyles&&(h.alc=7&n,h.fWrap=n>>3&1,h.alcV=n>>4&7,h.fJustLast=n>>7&1,h.trot=n>>8&255,h.cIndent=n>>16&15,h.fShrinkToFit=n>>20&1,h.iReadOrder=n>>22&2,h.fAtrNum=n>>26&1,h.fAtrFnt=n>>27&1,h.fAtrAlc=n>>28&1,h.fAtrBdr=n>>29&1,h.fAtrPat=n>>30&1,h.fAtrProt=n>>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,n){return n===0||a.read_shift(2),1200}},226:{f:Ua},227:{},229:{f:function(a,n){for(var l=[],c=a.read_shift(2);c--;)l.push(Cn(a));return l}},233:{},235:{},236:{},237:{},239:{},240:{},241:{},242:{},244:{},245:{},246:{},247:{},248:{},249:{},251:{},252:{f:function(a,n){for(var l=a.l+n,n=a.read_shift(4),c=a.read_shift(4),f=[],h=0;h!=c&&a.l"+D.t+"",D.r=D.t),u=g,D}(a));return f.Count=n,f.Unique=c,f}},253:{f:function(a){var n=ya(a);return n.isst=a.read_shift(4),n}},255:{f:function(a,n){var l={};return l.dsst=a.read_shift(2),a.l+=n-2,l}},256:{},259:{},290:{},311:{},312:{},315:{},317:{f:fd},318:{},319:{},320:{},330:{},331:{},333:{},334:{},335:{},336:{},337:{},338:{},339:{},340:{},351:{},352:{f:$r},353:{f:Ua},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||255a.l;)d.push(vi(a));return[h,f,l,d]}},431:{f:$r},432:{},433:{},434:{},437:{},438:{f:function(a,n,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),as(a),h=a.read_shift(2),a.l+=h;for(var m=1;m=(g?d:2*d))break}if(f.length!==d&&f.length!==2*d)throw new Error("cchText: "+d+" != "+f.length);return a.l=c+n,{t:f}}catch{return a.l=c+n,{t:f}}}},439:{f:$r},440:{f:function(a,n){var l=Cn(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,m,g,y,v,x="";16&f&&(d=xn(c,c.l)),128&f&&(m=xn(c,c.l)),(257&f)==257&&(g=xn(c,c.l)),(257&f)==1&&(C=r1(c,c.l)),8&f&&(x=xn(c,c.l)),32&f&&(y=c.read_shift(16)),64&f&&(v=oc(c)),c.l=h;var C=m||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,n-24)]}},441:{},442:{f:vi},443:{},444:{f:as},445:{},446:{},448:{f:Ua},449:{f:function(a){return a.read_shift(2),a.read_shift(4)},r:2},450:{f:Ua},512:{f:wd},513:{f:c1},515:{f:function(a,n,l){return l.biffguess&&l.biff==2&&(l.biff=5),l=ya(a),a=xs(a),l.val=a,l}},516:{f:function(a,n,l){return l.biffguess&&l.biff==2&&(l.biff=5),a.l,n=ya(a),l.biff==2&&a.l++,l=vi(a,a.l,l),n.val=l,n}},517:{f:Cd},519:{f:Hc},520:{f:function(a){var n={};n.r=a.read_shift(2),n.c=a.read_shift(2),n.cnt=a.read_shift(2)-n.c;var l=a.read_shift(2);a.l+=4;var c=a.read_shift(1);return a.l+=3,7&c&&(n.level=7&c),32&c&&(n.hidden=!0),64&c&&(n.hpt=l/20),n}},523:{},545:{f:Ed},549:{f:vd},566:{},574:{f:function(a,n,l){return l&&2<=l.biff&&l.biff<5?{}:{RTL:64&a.read_shift(2)}}},638:{f:function(c){var n=c.read_shift(2),l=c.read_shift(2),c=gd(c);return{r:n,c:l,ixfe:c[0],rknum:c[1]}}},659:{},1048:{},1054:{f:function(a,n,l){return[a.read_shift(2),fo(a,0,l)]}},1084:{},1212:{f:function(a,n,l){var c=yd(a);a.l++;var f=a.read_shift(1);return[function(h,d,m){var g,y=h.l+d,v=h.read_shift(2),x=Ri(h,v,m);return v==65535?[[],vs(h,d-2)]:(d!==v+2&&(g=Ti(h,y-v-2,x,m)),[x,g])}(a,n-=8,l),f,c]}},2048:{f:function(a,n){return a.read_shift(2),[Cn(a),a.read_shift((n-10)/2,"dbcs-cont").replace(bt,"")]}},2049:{},2050:{},2051:{},2052:{},2053:{},2054:{},2055:{},2056:{},2057:{f:Fn},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:Ua},2152:{},2154:{},2155:{},2156:{},2161:{},2162:{},2164:{},2165:{},2166:{},2167:{},2168:{},2169:{},2170:{},2171:{},2172:{f:function(a){a.l+=2;var n={cxfs:0,crc:0};return n.cxfs=a.read_shift(2),n.crc=a.read_shift(4),n},r:12},2173:{f:function(a,n){a.l,a.l+=2,n=a.read_shift(2),a.l+=2;for(var l=a.read_shift(2),c=[];0m.l?m.slice(0,m.l):m).l==null&&(m.l=m.length),m))})}function xb(a,n){for(var l=0;l=F){if(n.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,ic(0,16,n)),We(h,13,Js(1)),We(h,12,Js(100)),We(h,15,Ls(!0)),We(h,17,Ls(!1)),We(h,16,Bo(.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=be(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&&Cb(h,d["!cols"]),We(h,512,(F=C,(l=be(2*(a=(l=n).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 k=C.s.r;k<=C.e.r;++k){f=qr(k);for(var D=C.s.c;D<=C.e.c;++D){k===C.s.r&&(x[D]=Vr(D)),c=x[D]+f;var P=y?(d[k]||[])[D]:d[c];P&&(Fb(h,P,k,D,n),v&&P.l&&d["!links"].push([c,P.l]))}}var L,R,O=g.CodeName||g.name||O;return v&&We(h,574,(m=(m.Views||[])[0],R=be(18),L=1718,m&&m.RTL&&(L|=64),R.write_shift(2,L),R.write_shift(4,0),R.write_shift(4,64),R.write_shift(4,0),R.write_shift(4,0),R)),v&&(d["!merges"]||[]).length&&We(h,229,function(I){var V=be(2+8*I.length);V.write_shift(2,I.length);for(var X=0;X/g,"")).match(/");for(var h,n=a.match(/<\/table/i),C=f.index,d=n&&n.index||a.length,m=Rg(a.slice(C,d),/(:?]*>)/i,""),g=-1,y=0,v={s:{r:1e7,c:1e7},e:{r:0,c:0}},x=[],C=0;C/i),d=0;d"));)L=L.slice(R+1);for(var O=0;O"))),X=V.colspan?+V.colspan:1;(1<(h=+V.rowspan)||1g&&(v.s.r=g),v.e.ry&&(v.s.c=y),v.e.cl||f[F].s.c>d||f[F].e.r'+y+"":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=''+y+"")),v.id=(c.id||"sjs")+"-"+m,h.push(je("td",y,v)))}return""+h.join("")+""}var mp='SheetJS Table Export',gp="";function bp(a,n,l){return[].join("")+""}function yp(a,f){var l=f||{},c=l.header!=null?l.header:mp,f=l.footer!=null?l.footer:gp,h=[c],d=ks(a["!ref"]);l.dense=Array.isArray(a),h.push(bp(0,0,l));for(var m=d.s.r;m<=d.e.r;++m)h.push(pp(a,d,m,l));return h.push("
"+f),h.join("")}function _p(a,n,l){var c=l||{},f=0,h=0;c.origin!=null&&(typeof c.origin=="number"?f=c.origin:(f=(l=typeof c.origin=="string"?jr(c.origin):c.origin).r,h=l.c));var d=n.getElementsByTagName("tr"),m=Math.min(c.sheetRows||1e7,d.length),g={s:{r:0,c:0},e:{r:f,c:h}};a["!ref"]&&(n=ks(a["!ref"]),g.s.r=Math.min(g.s.r,n.s.r),g.s.c=Math.min(g.s.c,n.s.c),g.e.r=Math.max(g.e.r,n.e.r),g.e.c=Math.max(g.e.c,n.e.c),f==-1&&(g.e.r=f=n.e.r+1));var y,v,x=[],C=0,F=a["!rows"]||(a["!rows"]=[]),k=0,D=0,P=0,L=0;for(a["!cols"]||(a["!cols"]=[]);k/gm,"").replace(//gm,"");d=di.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?D["!ref"]=Pt(X):D["!ref"]="A1:A1",0X.e.c&&(X.e.c=V),VX.e.r&&(X.e.r=Re),Ne=[],Fe={},m={t:(P=Tt(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:I,c:V},e:{r:I+(parseInt(P["number-matrix-rows-spanned"],10)||0)-1,c:V+(parseInt(P["number-matrix-columns-spanned"],10)||0)-1}},m.F=Pt(_e),qe.push([_e,m.F])),P.formula)m.f=Wh(P.formula);else for(Xe=0;Xe=qe[Xe][0].s.r&&I<=qe[Xe][0].e.r&&V>=qe[Xe][0].s.c&&V<=qe[Xe][0].e.c&&(m.F=qe[Xe][1]);switch((P["number-columns-spanned"]||P["number-rows-spanned"])&&(_e={s:{r:I,c:V},e:{r:I+(parseInt(P["number-rows-spanned"],10)||0)-1,c:V+(parseInt(P["number-columns-spanned"],10)||0)-1}},ce.push(_e)),P["number-columns-repeated"]&&(ke=parseInt(P["number-columns-repeated"],10)),m.t){case"boolean":m.t="b",m.v=Ir(P["boolean-value"]);break;case"float":case"percentage":case"currency":m.t="n",m.v=parseFloat(P.value);break;case"date":m.t="d",m.v=Nr(P["date-value"]),l.cellDates||(m.t="n",m.v=ns(m.v)),m.z="m/d/yy";break;case"time":m.t="n",m.v=function(Kt){var vr=0,Kr=0,Z=!1,wr=Kt.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("|"+Kt+"| 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&&(m.t="d",m.v=dn(m.v)),m.z="HH:MM:SS";break;case"number":m.t="n",m.v=parseFloat(P.数据数值);break;default:if(m.t!=="string"&&m.t!=="text"&&m.t)throw new Error("Unsupported value type "+m.t);m.t="s",P["string-value"]!=null&&(L=pr(P["string-value"]),O=[])}}else{if(gt=!1,m.t==="s"&&(m.v=L||"",O.length&&(m.R=O),gt=R==0),Ve.Target&&(m.l=Ve),0")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":ze=Dc((f=Tt(d[0],!1))["cell-range-address"]);var ar={Name:f.name,Ref:ze[0]+"!"+ze[1]};Nt&&(ar.Sheet=k.length),He.Names.push(ar);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"]?(Tt(d[0],!1),R=d.index+d[0].length):(ar=(ar=g.slice(R,d.index)).replace(/[\t\r\n]/g," ").trim().replace(/ +/g," ").replace(//g," ").replace(//g,function(Kt,vr){return Array(parseInt(vr,10)+1).join(" ")}).replace(/]*\/>/g," ").replace(//g,` `),ar=[pr(ar.replace(/<[^>]*>/g,""))],L=(0",'',"",'',"",'',"",""].join(""),n=""+a+"";return function(){return Zr+n}}(),Ap=function(){function a(l,c,f){var h=[];h.push(' `);var d=0,m=0,g=ks(l["!ref"]||"A1"),y=l["!merges"]||[],v=0,x=Array.isArray(l);if(l["!cols"])for(m=0;m<=g.e.c;++m)h.push(" `);for(var C="",F=l["!rows"]||[],d=0;d `);for(;d<=g.e.r;++d){for(C=F[d]?' table:style-name="ro'+F[d].ods+'"':"",h.push(" `),m=0;mm||y[v].s.r>d||y[v].e.c `);else{var L=Rt({r:d,c:m}),R=x?(l[d]||[])[m]:l[L];if(R&&R.f&&(D["table:formula"]=Dr(("of:="+R.f.replace(wc,"$1[.$2$3$4$5]").replace(/\]:\[/g,":")).replace(/;/g,"|").replace(/,/g,";")),R.F&&R.F.slice(0,L.length)==L&&(O=ks(R.F),D["table:number-matrix-columns-spanned"]=O.e.c-O.s.c+1,D["table:number-matrix-rows-spanned"]=O.e.r-O.s.r+1)),R){switch(R.t){case"b":P=R.v?"TRUE":"FALSE",D["office:value-type"]="boolean",D["office:boolean-value"]=R.v?"true":"false";break;case"n":P=R.w||String(R.v||0),D["office:value-type"]="float",D["office:value"]=R.v||0;break;case"s":case"str":P=R.v==null?"":R.v,D["office:value-type"]="string";break;case"d":P=R.w||Nr(R.v).toISOString(),D["office:value-type"]="date",D["office:date-value"]=Nr(R.v).toISOString(),D["table:style-name"]="ce1";break;default:h.push(n);continue}var O,L=Dr(P).replace(/ +/g,function(V){return''}).replace(/\t/g,"").replace(/\n/g,"").replace(/^ /,"").replace(/ $/,"");R.l&&R.l.Target&&(L=je("text:a",L,{"xlink:href":(O=(O=(O=R.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,{}),D)+` `)}else h.push(n)}}h.push(` `)}return h.push(` `),h.join("")}var n=` `;return function(l,c){var f=[Zr],h=ui({"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=ui({"xmlns:config":"urn:oasis:names:tc:opendocument:xmlns:config:1.0","office:mimetype":"application/vnd.oasis.opendocument.spreadsheet"});c.bookType=="fods"?(f.push(" `),f.push(Wu().replace(/office:document-meta/g,"office:meta"))):f.push(" `),function(g,y){g.push(` `),g.push(` `),g.push(` `),g.push(` / `),g.push(` `),g.push(` / `),g.push(` `),g.push(` `);var v=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!cols"]){for(var F=0;F `),g.push(' `),g.push(` `),++v}}});var x=0;y.SheetNames.map(function(C){return y.Sheets[C]}).forEach(function(C){if(C&&C["!rows"])for(var F,k=0;k `),g.push(' `),g.push(` `),++x)}),g.push(` `),g.push(` `),g.push(` `),g.push(` `),g.push(` `)}(f,l),f.push(` `),f.push(` `);for(var m=0;m!=l.SheetNames.length;++m)f.push(a(l.Sheets[l.SheetNames[m]],l,m));return f.push(` `),f.push(` `),c.bookType=="fods"?f.push(""):f.push(""),f.join("")}}();function Sp(a,n){if(n.bookType=="fods")return Ap(a,n);var l=Rl(),c=[],f=[];return It(l,"mimetype","application/vnd.oasis.opendocument.spreadsheet"),It(l,"content.xml",Ap(a,n)),c.push(["content.xml","text/xml"]),f.push(["content.xml","ContentFile"]),It(l,"styles.xml",Sb(a,n)),c.push(["styles.xml","text/xml"]),f.push(["styles.xml","StylesFile"]),It(l,"meta.xml",Zr+Wu()),c.push(["meta.xml","text/xml"]),f.push(["meta.xml","MetadataFile"]),It(l,"manifest.rdf",function(h){var d=[Zr];d.push(` `);for(var m=0;m!=h.length;++m)d.push(ju(h[m][0],h[m][1])),d.push([` `,' `,` `].join(""));return d.push(ju("","Document","pkg")),d.push(""),d.join("")}(f)),c.push(["manifest.rdf","application/rdf+xml"]),It(l,"META-INF/manifest.xml",function(h){var d=[Zr];d.push(` `),d.push(` `);for(var m=0;m `);return d.push(""),d.join("")}(c)),l}function ka(a){return new DataView(a.buffer,a.byteOffset,a.byteLength)}function Lc(a){return typeof TextDecoder<"u"?new TextDecoder().decode(a):Tr(ft(a))}function Ep(a){return typeof TextEncoder<"u"?new TextEncoder().encode(a):ve(ga(a))}function Wa(a){var n=a.reduce(function(f,h){return f+h.length},0),l=new Uint8Array(n),c=0;return a.forEach(function(f){l.set(f,c),c+=f.length}),l}function Tp(a){return 16843009*((a=(858993459&(a-=a>>1&1431655765))+(a>>2&858993459))+(a>>4)&252645135)>>>24}function Ii(a,n){var l=n?n[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++])))))),n&&(n[0]=l),c}function mr(a){var n=new Uint8Array(7);n[0]=127&a;var l=1;return 127>7&127,++l,a<=16383||(n[l-1]|=128,n[l]=a>>14&127,++l,a<=2097151||(n[l-1]|=128,n[l]=a>>21&127,++l,a<=268435455||(n[l-1]|=128,n[l]=a/256>>>21&127,++l,a<=34359738367||(n[l-1]|=128,n[l]=a/65536>>>21&127,++l,a<=4398046511103||(n[l-1]|=128,n[l]=a/16777216>>>21&127,++l)))))),n.slice(0,l)}function Ur(a){var n=0,l=127&a[0];return 128<=a[n++]&&(l|=(127&a[1])<<7,a[n++]<128||(l|=(127&a[2])<<14,a[n++]<128||(l|=(127&a[3])<<21,a[+n]<128||(l|=(127&a[4])<<28)))),l}function sr(a){for(var n=[],l=[0];l[0]>>0),n.push(h)}return n}function mo(a){var n=[];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:Wr(h.meta),type:2})}),l=Wr(c),n.push(mr(l.length)),n.push(l),f.forEach(function(h){return n.push(h)})}),Wa(n)}function Qs(a){for(var n=[],l=0;l>2&7),x=(224&d[m[0]++])<<3,x|=d[m[0]++]):(C=1+(d[m[0]++]>>2),v==2?(x=d[m[0]]|d[m[0]+1]<<8,m[0]+=2):(x=(d[m[0]]|d[m[0]+1]<<8|d[m[0]+2]<<16|d[m[0]+3]<<24)>>>0,m[0]+=4)),y=[Wa(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[m[0]++]>>2,v<60?++v:(x=v-59,v=d[m[0]],1>>=0,v++,m[0]+=x),y.push(d.slice(m[0],m[0]+v)),m[0]+=v}if((h=Wa(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 Wa(n)}function go(a){for(var n=[],l=0;l>8&255]))):c<=16777216?(d+=4,n.push(new Uint8Array([248,c-1&255,c-1>>8&255,c-1>>16&255]))):c<=4294967296&&(d+=5,n.push(new Uint8Array([252,c-1&255,c-1>>8&255,c-1>>16&255,c-1>>>24&255]))),n.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 Wa(n)}function Eb(a,n,l){var c,f=ka(a),h=f.getUint32(8,!0),d=12,m=-1,g=-1,y=NaN,v=NaN,x=new Date(2001,0,1);switch(1&h&&(y=function(C,F){for(var k=(127&C[F+15])<<7|C[F+14]>>1,D=1&C[F+14],P=F+13;F<=P;--P)D=256*D+C[P];return(128&C[F+15]?-D:D)*Math.pow(10,k-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&&(m=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:n[g]};break;case 5:c={t:"d",v:x};break;case 6:c={t:"b",v:0>7,d[m+14]|=(127&y)<<1;for(var x=0;1<=v;++x,v/=256)d[m+x]=255&v;d[m+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(n.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[1]=3,c.setUint32(f,n.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 Pc(a,n){var l=new Uint8Array(32),c=ka(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(n.indexOf(a.v)==-1)throw new Error("Value ".concat(a.v," missing from SST!"));l[2]=3,c.setUint32(f,n.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 Tb(a,n,l){switch(a[0]){case 0:case 1:case 2:case 3:return function(c,f,h,d){var m,g=ka(c),y=g.getUint32(4,!0),v=(1>>0;switch(l){case 1:f[m]=Lc(d[3][0].data);break;case 8:var y=sr(a[bs(d[9][0].data)][0].data),g=a[bs(y[1][0].data)][0],y=Ur(g.meta[1][0].data);if(y!=2001)throw new Error("2000 unexpected reference to ".concat(y));g=sr(g.data),f[m]=g[3].map(function(v){return Lc(v.data)}).join("")}}),f}function Rb(a,f){var l=sr(f.data),c=(f=l==null?void 0:l[7])!=null&&f[0]?0>>0?1:0:-1,f=Mc(l[5],function(h){return function(d,m){var g,y,v,x=sr(d),C=Ur(x[1][0].data)>>>0,F=Ur(x[2][0].data)>>>0,k=((d=(k=x[8])==null?void 0:k[0])==null?void 0:d.data)&&0>>0,data:f.reduce(function(h,d){return h[d.R]||(h[d.R]=[]),d.cells.forEach(function(m,g){if(h[d.R][g])throw new Error("Duplicate cell r=".concat(d.R," c=").concat(g));h[d.R][g]=m}),h},[])}}function kb(a,f){var l={"!ref":"A1"},c=a[bs(sr(f.data)[2][0].data)],f=Ur(c[0].meta[1][0].data);if(f!=6001)throw new Error("6000 unexpected reference to ".concat(f));return function(h,g,m){var x=sr(g.data);if((g={s:{r:0,c:0},e:{r:0,c:0}}).e.r=(Ur(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=(Ur(x[7][0].data)>>>0)-1,g.e.c<0)throw new Error("Invalid col varint ".concat(x[7][0].data));m["!ref"]=Pt(g);var g=sr(x[4][0].data),y=Rp(h,h[bs(g[4][0].data)][0]),v=(x=g[17])!=null&&x[0]?Rp(h,h[bs(g[17][0].data)][0]):[],x=sr(g[3][0].data),C=0;if(x[1].forEach(function(k){var D=sr(k.data),k=h[bs(D[2][0].data)][0],D=Ur(k.meta[1][0].data);if(D!=6002)throw new Error("6001 unexpected reference to ".concat(D));k=Rb(0,k),k.data.forEach(function(P,L){P.forEach(function(R,O){O=Rt({r:C+L,c:O}),R=Tb(R,y,v),R&&(m[O]=R)})}),C+=k.nrows}),(x=g[13])!=null&&x[0]){if(x=h[bs(g[13][0].data)][0],g=Ur(x.meta[1][0].data),g!=6144)throw new Error("Expected merge type 6144, found ".concat(g));m["!merges"]=(x=sr(x.data))==null?void 0:x[1].map(function(k){var D=sr(k.data),k=ka(sr(D[1][0].data)[1][0].data),D=ka(sr(D[2][0].data)[1][0].data);return{s:{r:k.getUint16(0,!0),c:k.getUint16(2,!0)},e:{r:k.getUint16(0,!0)+D.getUint16(0,!0)-1,c:k.getUint16(2,!0)+D.getUint16(2,!0)-1}}})}}(a,c[0],l),l}function Lb(a,n){var l=jc(),c=sr(n.data);if((n=c[2])!=null&&n[0])throw new Error("Keynote presentations are not supported");if(Mc(c[1],bs).forEach(function(f){a[f].forEach(function(h){var d,m,g,y;Ur(h.meta[1][0].data)==2&&(m=a,h=sr((g=h).data),y={name:(g=h[1])!=null&&g[0]?Lc(h[1][0].data):"",sheets:[]},Mc(h[2],bs).forEach(function(v){m[v].forEach(function(x){Ur(x.meta[1][0].data)==6e3&&y.sheets.push(kb(m,x))})}),(d=y).sheets.forEach(function(v,x){Wc(l,v,x==0?d.name:d.name+"_"+x,!0)}))})}),l.SheetNames.length==0)throw new Error("Empty NUMBERS file");return l}function kp(a){var n={},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(m){return console.log("?? "+f.content.length+" "+(m.message||m))}try{d=Xs(h)}catch(m){return console.log("## "+(m.message||m))}d.forEach(function(m){n[m.id]=m.messages,l.push(m.id)})}}),!l.length)throw new Error("File has no messages");if((a=(a=(a=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])!=null&&a[0].data&&Ur(n[1][0].meta[1][0].data)==1e4)throw new Error("Pages documents are not supported");var c=((a=(a=(a=(a=n==null?void 0:n[1])==null?void 0:a[0])==null?void 0:a.meta)==null?void 0:a[1])==null?void 0:a[0].data)&&Ur(n[1][0].meta[1][0].data)==1&&n[1][0];if(c||l.forEach(function(f){n[f].forEach(function(h){if(Ur(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 Lb(n,c)}function Mb(a,n){if(!n||!n.numbers)throw new Error("Must pass a `numbers` option -- check the README");var l=a.Sheets[a.SheetNames[0]];1]*r:id="([^"]*)"/)||["",""])[1],F["!id"][R].Target):"??"),k),k=bi(R),D=j2(zs(a,R,!0),0,0,yi(zs(a,k,!0),R),0,D);break;case"macro":L=n,h[c],L.slice(-4),D={"!type":"macro"};break;case"dialog":L=n,h[c],L.slice(-4),D={"!type":"dialog"};break;default:throw new Error("Unrecognized sheet type "+m)}d[c]=D;var P=[];h&&h[c]&&Hr(h[c]).forEach(function(O){var I,V,X,ae,te,ce,_e="";if(h[c][O].Type==Vt.CMNT){_e=ci(h[c][O].Target,n);var we=ab(ss(a,_e,!0),_e,g);if(!we||!we.length)return;Eh(D,we,!1)}h[c][O].Type==Vt.TCMNT&&(_e=ci(h[c][O].Target,n),P=P.concat((I=ss(a,_e,!0),V=g,ae=!(X=[]),te={},ce=0,I.replace(_s,function(de,ke){var qe=Tt(de);switch(ma(qe[0])){case"":break;case"":te.t!=null&&X.push(te);break;case"":case"":te.t=I.slice(ce,ke).replace(/\r\n/g,` `).replace(/\r/g,` `);break;case"":ae=!0;break;case"":ae=!1;break;case"":case"
":case"":break;case"":ae=!1;break;default:if(!ae&&V.WTF)throw new Error("unrecognized "+qe[0]+" in threaded comments")}return de}),X)))}),P&&P.length&&Eh(D,P,!0,g.people||[])}catch(O){if(g.WTF)throw O}var L,R}function Zs(a){return a.charAt(0)=="/"?a.slice(1):a}function Mp(a,n){if(Mo(),Nc(n=n||{}),Ys(a,"META-INF/manifest.xml")||Ys(a,"objectdata.xml"))return Fp(a,n);if(Ys(a,"Index/Document.iwa")){if(typeof Uint8Array>"u")throw new Error("NUMBERS file parsing requires Uint8Array support");if(a.FileIndex)return kp(a);var l=_t.utils.cfb_new();return ou(a).forEach(function(Ne){It(l,Ne,function Fe($e,rt,gt){if(!gt)return au(Tl($e,rt));if(!rt)return null;try{return Fe($e,rt)}catch{return null}}(a,Ne))}),kp(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=ou(a),d=function(Ne){var Fe=rc();if(!Ne||!Ne.match)return Fe;var $e={};if((Ne.match(_s)||[]).forEach(function(rt){var gt=Tt(rt);switch(gt[0].replace(Lg,"<")){case"]*>([\\s\\S]*?)"));$e&&0<$e.length&&(x[Ne[1]]=$e[1])}}),x.HeadingPairs&&x.TitlesOfParts&&Ku(x.HeadingPairs,x.TitlesOfParts,v,D)));var D={};n.bookSheets&&!n.bookProps||d.custprops.length!==0&&(k=zs(a,Zs(d.custprops[0]),!0))&&(D=function(Ne,Fe){var $e={},rt="",gt=Ne.match(e1);if(gt)for(var Nt=0;Nt!=gt.length;++Nt){var Xe=gt[Nt],Re=Tt(Xe);switch(Re[0]){case"":rt=null;break;default:if(Xe.indexOf(""),ar=kt[0].slice(4),Kt=kt[1];switch(ar){case"lpstr":case"bstr":case"lpwstr":$e[rt]=pr(Kt);break;case"bool":$e[rt]=Ir(Kt);break;case"i1":case"i2":case"i4":case"i8":case"int":case"uint":$e[rt]=parseInt(Kt,10);break;case"r4":case"r8":case"decimal":$e[rt]=parseFloat(Kt);break;case"filetime":case"date":$e[rt]=Nr(Kt);break;case"cy":case"error":$e[rt]=pr(Kt);break;default:if(ar.slice(-1)=="/")break;Fe.WTF&&typeof console<"u"&&console.warn("Unexpected",Xe,ar,kt)}}else if(Xe.slice(0,2)!=="":break;case"":break;case"":case"":case"":break;case"":de=!1;break;default:if(!de&&_e.WTF)throw new Error("unrecognized "+Fe[0]+" in threaded comments")}return Ne}),we)),ke=ke&&Ob(ke,C.Sheets);var qe=ss(a,"xl/worksheets/sheet.xml",!0)?1:0;e:for(O=0;O!=F.Worksheets;++O){var He="sheet";if(ke&&ke[O]?(L="xl/"+ke[O][1].replace(/[\/]?xl\//,""),Ys(a,L)||(L=ke[O][1]),Ys(a,L)||(L=ce.replace(/_rels\/.*$/,"")+ke[O][1]),He=ke[O][2]):L=(L="xl/worksheets/sheet"+(O+1-qe)+"."+ae).replace(/sheet0\./,"sheet."),R=L.replace(/^(.*)(\/)([^\/]*)$/,"$1/_rels/$3.rels"),n&&n.sheets!=null)switch(typeof n.sheets){case"number":if(O!=n.sheets)continue e;break;case"string":if(F.SheetNames[O].toLowerCase()!=n.sheets.toLowerCase())continue e;break;default:if(Array.isArray&&Array.isArray(n.sheets)){for(var Ve=!1,ze=0;ze!=n.sheets.length;++ze)typeof n.sheets[ze]=="number"&&n.sheets[ze]==O&&(Ve=1),typeof n.sheets[ze]=="string"&&n.sheets[ze].toLowerCase()==F.SheetNames[O].toLowerCase()&&(Ve=1);if(!Ve)continue e}}Pb(a,L,R,F.SheetNames[O],O,I,c,He,n,C,m,g)}return P={Directory:d,Workbook:C,Props:F,Custprops:D,Deps:k,Sheets:c,SheetNames:F.SheetNames,Strings:ki,Styles:g,Themes:m,SSF:Lr(oe)},n&&n.bookFiles&&(a.files?(P.keys=h,P.files=a.files):(P.keys=[],P.files={},a.FullPaths.forEach(function(Ne,Fe){Ne=Ne.replace(/^Root Entry[\/]/,""),P.keys.push(Ne),P.files[Ne]=a.FileIndex[Fe]}))),n&&n.bookVBA&&(0/,">")];return R.forEach(function(X){var ae="";(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"+I.tcid++).slice(-12)+"}"},ce==0?ae=_e.id:_e.parentId=ae,te.ID=_e.id,te.a&&(_e.personId="{54EE7950-7262-4200-6969-"+("000000000000"+O.indexOf(te.a)).slice(-12)+"}"),V.push(je("threadedComment",ms("text",te.t||""),_e))):delete te.ID})}),V.push(""),V.join("")}(C,x,n)),f.threadedcomments.push(k),Ar(P,-1,"../threadedComments/threadedComment"+m+"."+l,Vt.TCMNT)),It(h,k="xl/comments"+m+"."+l,Th(C)),f.comments.push(k),Ar(P,-1,"../comments"+m+"."+l,Vt.CMNT),F=!0),L["!legacy"]&&F&&It(h,"xl/drawings/vmlDrawing"+m+".vml",Sh(m,L["!comments"])),delete L["!comments"],delete L["!legacy"]),P["!id"].rId1&&It(h,bi(d),Uo(P))}return n.Strings!=null&&0/,">")],c.forEach(function(R,O){v.push(je("person",null,{displayName:R,id:"{54EE7950-7262-4200-6969-"+("000000000000"+O).slice(-12)+"}",userId:R,providerId:"None"}))}),v.push(""),v.join(""))),f.people.push(d),Ar(n.wbrels,-1,"persons/person.xml",Vt.PEOPLE)),It(h,"[Content_Types].xml",Gu(f,n)),It(h,"_rels/.rels",Uo(n.rels)),It(h,"xl/_rels/workbook.xml.rels",Uo(n.wbrels)),delete n.revssf,delete n.ssf,h}function Vc(a,n){var l="";switch((n||{}).type||"base64"){case"buffer":return[a[0],a[1],a[2],a[3],a[4],a[5],a[6],a[7]];case"base64":l=j(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 "+(n&&n.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 Pp(a,n){var l=0;e:for(;l"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=Lr(l)).type="array",Wn(Je(g),l)}switch((c=Vc(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),m=l,(_t.find(d,"EncryptedPackage")?Nb:jn)(d,m);break;case 9:if(c[1]<=8)return jn(g,l);break;case 60:return Rc(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||{},k=!!F.WTF;F.WTF=!0;try{var D=Nd.to_workbook(x,F);return F.WTF=k,D}catch(P){if(F.WTF=k,!P.message.match(/SYLK bad record ID/)&&k)throw P;return zo.to_workbook(x,C)}}(g,l);break;case 84:if(c[1]===65&&c[2]===66&&c[3]===76)return Vd.to_workbook(g,l);break;case 80:return c[1]===75&&c[2]<9&&c[3]<9?(h=m=g,(f=(f=l)||{}).type||(f.type=H&&Buffer.isBuffer(m)?"buffer":"base64"),Mp(iu(h,f),f)):Bc(a,g,l,y);case 239:return c[3]===60?Rc(g,l):Bc(a,g,l,y);case 255:if(c[1]===254)return h=g,(f=l).type=="base64"&&(h=j(h)),h=e.utils.decode(1200,h.slice(2),"str"),f.type="binary",Pp(h,f);if(c[1]===0&&c[2]===2&&c[3]===0)return ho.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 ho.to_workbook(g,l);break;case 3:case 131:case 139:case 140:return nc.to_workbook(g,l);case 123:if(c[1]===92&&c[2]===114&&c[3]===116)return dh.to_workbook(g,l);break;case 10:case 13:case 32:return function(x,C){var F="",k=Vc(x,C);switch(C.type){case"base64":F=j(x);break;case"binary":F=x;break;case"buffer":F=x.toString("binary");break;case"array":F=to(x);break;default:throw new Error("Unrecognized type "+C.type)}return k[0]==239&&k[1]==187&&k[2]==191&&(F=Tr(F)),C.type="binary",Pp(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-1f)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,n),a.Workbook.Sheets[n]||(a.Workbook.Sheets[n]={}),l){case 0:case 1:case 2:break;default:throw new Error("Bad sheet visibility setting "+l)}a.Workbook.Sheets[n].Hidden=l},cell_set_number_format:function(a,n){return a.z=n,a},cell_set_hyperlink:Hp,cell_set_internal_link:function(a,n,l){return Hp(a,"#"+n,l)},cell_add_comment:function(a,n,l){a.c||(a.c=[]),a.c.push({t:n,a:l||"SheetJS"})},sheet_set_array_formula:function(a,n,l,c){for(var f=typeof n!="string"?n:rr(n),h=typeof n=="string"?n:Pt(n),d=f.s.r;d<=f.e.r;++d)for(var m=f.s.c;m<=f.e.c;++m){var g=Kn(a,d,m);g.t="n",g.F=h,delete g.v,d==f.s.r&&m==f.s.c&&(g.f=l,c&&(g.D=!0))}return a},consts:{SHEET_VISIBLE:0,SHEET_HIDDEN:1,SHEET_VERY_HIDDEN:2}};function Yp(a){Jn=a}var Jo={to_json:function(a,n){var l=Jn({objectMode:!0});if(a==null||a["!ref"]==null)return l.push(null),l;var c,f={t:"n",v:0},h=0,d=1,m=[],g="",y={s:{r:0,c:0},e:{r:0,c:0}},v=n||{},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=rr(x);break;case"number":(y=rr(a["!ref"])).s.r=x;break;default:y=x}0d.e.r)return g||(g=!0,l.push(""+h)),l.push(null);for(;m<=d.e.r;){l.push(pp(a,d,m,c)),++m;break}},l},to_csv:function(a,n){var l=Jn(),c=n??{};if(a==null||a["!ref"]==null)return l.push(null),l;var f=rr(a["!ref"]),h=c.FS!==void 0?c.FS:",",d=h.charCodeAt(0),m=c.RS!==void 0?c.RS:` `,g=m.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"]||[],k=f.s.c;k<=f.e.c;++k)(C[k]||{}).hidden||(x[k]=Vr(k));var D=f.s.r,P=!1,L=0;return l._read=function(){if(!P)return P=!0,l.push("\uFEFF");for(;D<=f.e.r;)if(++D,!(F[D-1]||{}).hidden&&(v=Gp(a,f,D-1,x,d,g,h,c),v!=null&&((v=c.strip?v.replace(y,""):v)||c.blankrows!==!1)))return l.push((L++?m:"")+v);return l.push(null)},l},set_readable:Yp},nr=function(){function a(n,l,c){return this instanceof a?(this.tagName=n,this._attributes=l||{},this._children=c||[],this._prefix="",this):new a(n,l,c)}return a.prototype.createElement=function(){return new a(arguments)},a.prototype.children=function(){return this._children},a.prototype.append=function(n){return this._children.push(n),this},a.prototype.prefix=function(n){return arguments.length==0?this._prefix:(this._prefix=n,this)},a.prototype.attr=function(n,l){if(l==null)return delete this._attributes[n],this;if(arguments.length==0)return this._attributes;if(typeof n=="string"&&arguments.length==1)return this._attributes.attr[n];if(typeof n=="object"&&arguments.length==1)for(var c in n)this._attributes[c]=n[c];else arguments.length==2&&typeof n=="string"&&(this._attributes[n]=l);return this},a.prototype.escapeAttributeValue=function(n){return'"'+n.replace(/\"/g,""")+'"'},a.prototype.toXml=function(n){var l=(n=n||this)._prefix;if(l+="<"+n.tagName,n._attributes)for(var c in n._attributes)l+=" "+c+"="+this.escapeAttributeValue(""+n._attributes[c]);if(n._children&&0";for(var f=0;f"}else l+="/>";return l},a}(),Vb=function(a){var n,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(n in c)f[c[n]]=n;var h={};return{initialize:function(d){this.$fonts=nr("fonts").attr("count",0).attr("x14ac:knownFonts","1"),this.$fills=nr("fills").attr("count",0),this.$borders=nr("borders").attr("count",0),this.$numFmts=nr("numFmts").attr("count",0),this.$cellStyleXfs=nr("cellStyleXfs"),this.$xf=nr("xf").attr("numFmtId",0).attr("fontId",0).attr("fillId",0).attr("borderId",0),this.$cellXfs=nr("cellXfs").attr("count",0),this.$cellStyles=nr("cellStyles").append(nr("cellStyle").attr("name","Normal").attr("xfId",0).attr("builtinId",0)),this.$dxfs=nr("dxfs").attr("count","0"),this.$tableStyles=nr("tableStyles").attr("count","0").attr("defaultTableStyle","TableStyleMedium9").attr("defaultPivotStyle","PivotStyleMedium4"),this.$styles=nr("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('').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 m=d.defaultCellStyle||{};return m.font||(m.font={name:"Calibri",sz:"11"}),m.font.name||(m.font.name="Calibri"),m.font.sz||(m.font.sz=11),m.fill||(m.fill={patternType:"none",fgColor:{}}),m.border||(m.border={}),m.numFmt||(m.numFmt=0),this.defaultStyle=m,d=JSON.parse(JSON.stringify(m)),d.fill={patternType:"gray125",fgColor:{}},this.addStyles([m,d]),this},addStyle:function(d){var m=JSON.stringify(d),g=h[m];return g==null?(g=this._addXf(d),h[m]=g):g=h[m],g},addStyles:function(d){var m=this;return d.map(function(g){return m.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 m=this._addFont(d.font),g=this._addFill(d.fill),y=this._addBorder(d.border),v=this._addNumFmt(d.numFmt),x=nr("xf").attr("numFmtId",v).attr("fontId",m).attr("fillId",g).attr("borderId",y).attr("xfId","0");return 0/g,">").replace(/"/g,""").replace(/'/g,"'"),d=nr("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 m,g=nr("patternFill").attr("patternType",d.patternType||"solid");return d.fgColor&&(m=nr("fgColor"),d.fgColor.rgb?(d.fgColor.rgb.length==6&&(d.fgColor.rgb="FF"+d.fgColor.rgb),m.attr("rgb",d.fgColor.rgb),g.append(m)):d.fgColor.theme&&(m.attr("theme",d.fgColor.theme),d.fgColor.tint&&m.attr("tint",d.fgColor.tint),g.append(m)),d.bgColor||(d.bgColor={indexed:"64"})),d.bgColor&&(d=nr("bgColor").attr(d.bgColor),g.append(d)),g=nr("fill").append(g),this.$fills.append(g),g=this.$fills.children().length,this.$fills.attr("count",g),g-1},_getSubBorder:function(d,m){var g=nr(d);return m&&(g.attr("style",m.style||"medium"),m.color&&(d=nr("color"),m.color.auto?d.attr("auto",m.color.auto):m.color.rgb?d.attr("rgb",m.color.rgb):(m.color.theme||m.color.tint)&&(d.attr("theme",m.color.theme||"1"),d.attr("tint",m.color.tint||"0")),g.append(d))),g},_addBorder:function(d){if(!d)return 0;var m=this,g=nr("border").attr("diagonalUp",d.diagonalUp).attr("diagonalDown",d.diagonalDown);["left","right","top","bottom","diagonal"].forEach(function(v){g.append(m._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||{})};jn!==void 0&&(t.parse_xlscfb=jn),t.parse_zip=Mp,t.read=Wn,t.readFile=Np,t.readFileSync=Np,t.write=Yn,t.writeFile=Bp,t.writeFileSync=Bp,t.writeFileAsync=function(a,n,l,c){var f=l||{};return f.type="file",f.file=a,zc(f),f.type="buffer",c instanceof Function||(c=l),Va.writeFile(a,Yn(n,f),c)},t.utils=Hc,t.writeXLSX=Uc,t.writeFileXLSX=function(a,n,l){return(l=l||{}).type="file",l.file=n,zc(l),Uc(a,l)},t.SSF=Qf,Jo!==void 0&&(t.stream=Jo),_t!==void 0&&(t.CFB=_t),typeof cl>"u"||((Jo=of)||{}).Readable&&Yp(Jo.Readable)}if(i(r),typeof window<"u"&&!window.XLSX)try{window.XLSX=o}catch{}})(_f,_f.exports);var Ue=_f.exports;const F5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 es.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 Rs.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 jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,i=!1,t=!1){let e=[],u=s.toUpperCase();for(let p=0;po.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(i=>i+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=Ue.utils.json_to_sheet([],{header:[]});Ue.utils.sheet_add_json(o,r,{origin:"B12",skipHeader:!0});const i=r.reduce((w,S)=>(Object.keys(S).forEach((A,E)=>{const M=S[A];typeof M=="number"&&(w[A]=(w[A]||0)+M)}),w),{}),t={};Object.keys(i).forEach(w=>{t[w]=i[w]});const e=r.length+12;Ue.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(i).forEach((w,S)=>{const A=String.fromCharCode(67+S)+(e+1);u(A,i[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const p=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}},b=(w,S,A=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:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}};for(let w of this.getLettersForExcel("B",14,2,!0,!1))p(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("B",14,3,!0,!1))p(w,"FOR THE MONTH OF "+s.label.toUpperCase());for(let w of this.getLettersForExcel("Q",11,2,!0,!1))p(w,"COMPANY BENEFITS AVAILMENT REPORT");for(let w of this.getLettersForExcel("Q",11,3,!0,!1))p(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"]=[Ue.utils.decode_range("B2:P2"),Ue.utils.decode_range("B3:P3"),Ue.utils.decode_range("Q2:AA2"),Ue.utils.decode_range("Q3:AA3"),Ue.utils.decode_range("B8:B11"),Ue.utils.decode_range("C8:C11"),Ue.utils.decode_range("D8:P8"),Ue.utils.decode_range("D9:H9"),Ue.utils.decode_range("D10:E10"),Ue.utils.decode_range("F10:G10"),Ue.utils.decode_range("H10:H11"),Ue.utils.decode_range("I10:I11"),Ue.utils.decode_range("J9:N9"),Ue.utils.decode_range("J10:J11"),Ue.utils.decode_range("K10:K11"),Ue.utils.decode_range("L10:L11"),Ue.utils.decode_range("M10:M11"),Ue.utils.decode_range("N10:N11"),Ue.utils.decode_range("O9:P9"),Ue.utils.decode_range("O10:O11"),Ue.utils.decode_range("P10:P11"),Ue.utils.decode_range("Q8:AA8"),Ue.utils.decode_range("Q9:R9"),Ue.utils.decode_range("Q10:Q11"),Ue.utils.decode_range("R10:R11"),Ue.utils.decode_range("S9:X9"),Ue.utils.decode_range("S10:S11"),Ue.utils.decode_range("T10:T11"),Ue.utils.decode_range("U10:U11"),Ue.utils.decode_range("V10:V11"),Ue.utils.decode_range("W10:W11"),Ue.utils.decode_range("X10:X11"),Ue.utils.decode_range("Y9:Y11"),Ue.utils.decode_range("Z9:Z11"),Ue.utils.decode_range("AA9:AA11")];const _=Ue.utils.book_new();Ue.utils.book_append_sheet(_,o,"Company Benefits"),Ue.writeFile(_,"Company_Benefits_Report.xlsx")}},async saveRecord(){this.hasValue=!1,await tt.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 tt.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:{}},D5={class:"grid grid-cols-2 gap-2"},A5={class:"flex justify-between items-center"},S5={class:"flex gap-1 justify-end"};function E5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[2]||(r[2]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[U("div",D5,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:t.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.month=A),options:t.months,mode:"tags",class:"form-multiselect w-full"},null,8,["modelValue","options"])]),_:1})]),U("div",A5,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",S5,[T(_,{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?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const T5=Et(F5,[["render",E5],["__scopeId","data-v-b6d79be0"]]);const R5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 es.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 Rs.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.430e5b73.js").then(o=>o.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(o=>{const i=new o.default.Workbook,t=i.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 p={};let b=4,_=0;const w={1:0,2:0,3:0,"N/A":0};this.finalData.forEach(M=>{var ee,ie,j;const N=((ee=M.dealership)==null?void 0:ee.name)||"Unknown Dealership";p[N]||(p[N]={employees:[],totalSalary:0,taxCounts:{1:0,2:0,3:0,"N/A":0}}),p[N].employees.push(M);const q=parseFloat((ie=M.salary_and_wages)==null?void 0:ie.salary_rate)||0;p[N].totalSalary+=q,_+=q;const B=(j=M.salary_and_wages)==null?void 0:j.tax_application;p[N].taxCounts[B]=(p[N].taxCounts[B]||0)+1,w[B]=(w[B]||0)+1}),Object.keys(p).forEach(M=>{const N=p[M];t.mergeCells(`A${b}:E${b}`);const q=t.getCell(`A${b}`);q.value=M,q.font={size:12,bold:!0},q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},q.alignment={horizontal:"left"},b++,t.addRow(["EMP ID","NAME","POSITION","TAX APPLICATION","BASIC SALARY"]).eachCell(j=>{j.font={bold:!0,color:{argb:"FFFFFFFF"}},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++,N.employees.forEach(j=>{var ft,Je,ut;const H=(ft=j.salary_and_wages)==null?void 0:ft.tax_application,ne=H==1?"Base on Table":H==2?"No Tax":H==3?"Force Tax":"N/A",W=parseFloat((Je=j.salary_and_wages)==null?void 0:Je.salary_rate)||0,Ae=t.addRow([j.employee_id||"",j.firstname+" "+j.lastname||"",((ut=j.position)==null?void 0:ut.name)||"",ne,W]),ve=Ae.getCell(5);ve.numFmt="#,##0.00",ve.alignment={horizontal:"right"};const it=Ae.getCell(4);ne==="No Tax"?it.font={color:{argb:"FFFF0000"}}:ne==="Force Tax"?it.font={color:{argb:"FF0000FF"}}:ne==="Base on Table"&&(it.font={color:{argb:"FF008000"}}),Ae.eachCell(bt=>{bt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),b++}),t.addRow(["","","DEALER TOTAL:","",N.totalSalary]).eachCell((j,H)=>{H===3?j.font={bold:!0}:H===5&&(j.font={bold:!0},j.numFmt="#,##0.00",j.alignment={horizontal:"right"})}),b++,t.addRow(["","","DEALER TAX SUMMARY"]),b++,t.addRow(["Base on Table:",N.taxCounts[1]||0,"No Tax:",N.taxCounts[2]||0,"Force Tax:",N.taxCounts[3]||0]).eachCell(j=>{j.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,N)=>{N===3?M.font={bold:!0,size:12}:N===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}}),i.xlsx.writeBuffer()}).then(o=>{const i=new Blob([o],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"}),t=window.URL.createObjectURL(i),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 Rr().shape({company_id:Dt().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 jt){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 tt.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()}}},k5={class:"grid grid-cols-3 gap-2"},L5={key:0,class:"text-[#ec4899]"},M5={class:"flex justify-between items-center"},O5={class:"flex gap-1 justify-end"};function P5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton");return re(),Le("form",{onSubmit:r[6]||(r[6]=St((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[U("div",k5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",L5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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})]),U("div",M5,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",O5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const N5=Et(R5,[["render",P5],["__scopeId","data-v-3f6f2d53"]]);const I5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.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.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.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 W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.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 it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.total_philhealth)||0,Te=parseFloat(Q.total_philhealth)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.philhealth)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.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+=it,S+=ft,A+=Je,E+=ut});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 N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const B=q.getCell(3);B.numFmt="#,##0.00",B.alignment={horizontal:"right"},B.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 j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 tt.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()}}},V5={class:"grid grid-cols-4 gap-2"},B5={key:0,class:"text-[#ec4899]"},U5={key:0,class:"text-[#ec4899]"},z5={key:0,class:"text-[#ec4899]"},G5={class:"flex justify-between items-center"},j5={class:"flex gap-1 justify-end"};function W5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[U("div",V5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",B5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",U5,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",z5,"Year is required")):me("",!0)]),_:1})]),U("div",G5,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",j5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const H5=Et(I5,[["render",W5],["__scopeId","data-v-ec2bdbb1"]]);const Y5={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.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.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.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 W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.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 it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.sss_employee_share)||0,Te=parseFloat(Q.sss_employer_share)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.sss)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.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+=it,S+=ft,A+=Je,E+=ut});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 N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const B=q.getCell(3);B.numFmt="#,##0.00",B.alignment={horizontal:"right"},B.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 j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 tt.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()}}},q5={class:"grid grid-cols-4 gap-2"},K5={key:0,class:"text-[#ec4899]"},J5={key:0,class:"text-[#ec4899]"},X5={key:0,class:"text-[#ec4899]"},Q5={class:"flex justify-between items-center"},Z5={class:"flex gap-1 justify-end"};function $5(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[U("div",q5,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",K5,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",J5,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",X5,"Year is required")):me("",!0)]),_:1})]),U("div",Q5,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",Z5,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const eF=Et(Y5,[["render",$5],["__scopeId","data-v-2e6ed058"]]);const tF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.getYearMap()).map(([s,r])=>({value:r,label:r}))},async fetchEmployee(){this.state.isEmployeeLoading=!0,await Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.MonthsOptions.find(i=>i.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.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||r.label,p.font={size:12,bold:!0},p.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 W=ne.dealer_name||"Unknown Dealer";_[W]||(_[W]=[]),_[W].push(ne)});let w=0,S=0,A=0,E=0;Object.keys(_).forEach(ne=>{const W=_[ne],Ae=e.addRow([`Dealership: ${ne}`,"","","",""]);Ae.getCell(1).font={bold:!0,size:12},Ae.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 it=0,ft=0,Je=0;const ut=W.length;W.forEach(Q=>{var Ie;const Ce=parseFloat(Q.pagibig_contribution)||0,Te=parseFloat(Q.pagibig_contribution_employer)||0,xe=Ce+Te,oe=e.addRow([((Ie=Q.personal_info)==null?void 0:Ie.pagibig)||"",Q.employee.lastname+", "+Q.employee.firstname||"",Ce,Te,xe]),pe=oe.getCell(3);pe.numFmt="#,##0.00",pe.alignment={horizontal:"right"};const se=oe.getCell(4);se.numFmt="#,##0.00",se.alignment={horizontal:"right"};const nt=oe.getCell(5);nt.numFmt="#,##0.00",nt.alignment={horizontal:"right"},it+=Ce,ft+=Te,Je+=xe}),e.addRow([]);const bt=e.addRow(["","NUMBER OF EMPLOYEES",ut,"",""]);bt.getCell(2).font={bold:!0},bt.getCell(3).font={bold:!0};const st=e.addRow(["","EMPLOYEE CONTRIBUTIONS",it,"",""]);st.getCell(2).font={bold:!0};const Mt=st.getCell(3);Mt.numFmt="#,##0.00",Mt.alignment={horizontal:"right"},Mt.font={bold:!0};const Lt=e.addRow(["","EMPLOYER CONTRIBUTIONS","",ft,""]);Lt.getCell(2).font={bold:!0};const Er=Lt.getCell(4);Er.numFmt="#,##0.00",Er.alignment={horizontal:"right"},Er.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+=it,S+=ft,A+=Je,E+=ut});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 N=e.addRow(["","TOTAL NUMBER OF EMPLOYEES",E,"",""]);N.getCell(2).font={bold:!0},N.getCell(3).font={bold:!0};const q=e.addRow(["","TOTAL EMPLOYEE CONTRIBUTIONS",w,"",""]);q.getCell(2).font={bold:!0};const B=q.getCell(3);B.numFmt="#,##0.00",B.alignment={horizontal:"right"},B.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 j=e.addRow(["","OVERALL GRAND TOTAL","","",A]);j.getCell(2).font={bold:!0,size:12};const H=j.getCell(5);return H.numFmt="#,##0.00",H.alignment={horizontal:"right"},H.font={bold:!0},[1,2,3,4,5].forEach(ne=>{const W=j.getCell(ne);W.border={top:{style:"thin"},bottom:{style:"double"}}}),t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 tt.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()}}},rF={class:"grid grid-cols-4 gap-2"},sF={key:0,class:"text-[#ec4899]"},aF={key:0,class:"text-[#ec4899]"},oF={key:0,class:"text-[#ec4899]"},iF={class:"flex justify-between items-center"},nF={class:"flex gap-1 justify-end"};function lF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton"),w=Y("ag-grid-vue"),S=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...A)=>s.confirmSubmit&&s.confirmSubmit(...A),["prevent"])),class:"space-y-4"},[U("div",rF,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[0]||(r[0]=A=>t.form.company_id=A),options:s.companies,class:"form-multiselect w-full",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"]),t.errors.company_id?(re(),Le("div",sF,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.dealer_id,"onUpdate:modelValue":r[1]||(r[1]=A=>t.form.dealer_id=A),options:t.dealers,class:"form-multiselect w-full",loading:t.state.isDealerLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Division"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.division_id,"onUpdate:modelValue":r[2]||(r[2]=A=>t.form.division_id=A),options:t.divisions,class:"form-multiselect w-full",loading:t.state.isDivisionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Department"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.department_id,"onUpdate:modelValue":r[3]||(r[3]=A=>t.form.department_id=A),options:t.departments,class:"form-multiselect w-full",loading:t.state.isDepartmentLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Position"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.position_id,"onUpdate:modelValue":r[4]||(r[4]=A=>t.form.position_id=A),options:t.positions,class:"form-multiselect w-full",loading:t.state.isPositionLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Employee"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.employee_id,"onUpdate:modelValue":r[5]||(r[5]=A=>t.form.employee_id=A),options:t.employees,class:"form-multiselect w-full",mode:"tags",loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Month",searchable:!0,modelValue:t.form.month,"onUpdate:modelValue":r[6]||(r[6]=A=>t.form.month=A),options:t.MonthsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.month?(re(),Le("div",aF,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(u,{placeholder:"Select a Year",searchable:!0,modelValue:t.form.year,"onUpdate:modelValue":r[7]||(r[7]=A=>t.form.year=A),options:t.YearsOptions,class:"form-multiselect w-full"},null,8,["modelValue","options"]),t.errors.year?(re(),Le("div",oF,"Year is required")):me("",!0)]),_:1})]),U("div",iF,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",nF,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(S,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const cF=Et(tF,[["render",lF],["__scopeId","data-v-f815f09b"]]);const fF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 jt){const r={};s.inner.forEach(o=>{r[o.path]=o.message}),this.errors=r}this.state.isSaving=!1}},getLettersForExcel(s,r,o,i=!1,t=!1){let e=[],u=s.toUpperCase();for(let p=0;po.charCodeAt(0)-65);for(let o=r.length-1;o>=0;o--){if(r[o]<25)return r[o]++,String.fromCharCode(...r.map(i=>i+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=Ue.utils.json_to_sheet([],{header:[]});Ue.utils.sheet_add_json(o,r,{origin:"B10",skipHeader:!0});const i=r.reduce((w,S)=>(Object.keys(S).forEach((A,E)=>{const M=S[A];typeof M=="number"&&(w[A]=(w[A]||0)+M)}),w),{}),t={};Object.keys(i).forEach(w=>{t[w]=i[w]});const e=r.length+10;Ue.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(i).forEach((w,S)=>{const A=String.fromCharCode(67+S)+(e+1);u(A,i[w]),u(String.fromCharCode(66)+(e+1),"TOTAL")});const p=(w,S,A=null)=>{o[w]={v:S,t:"s",s:{alignment:{horizontal:"center",vertical:"center",wrapText:!0},font:{bold:!0,sz:14},fill:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}},b=(w,S,A=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:A?{patternType:"solid",fgColor:{rgb:A}}:void 0}}};for(let w of this.getLettersForExcel("B",20,2,!0,!1))p(w,"COMPANY LEAVE AVAILMENT PROFILE");for(let w of this.getLettersForExcel("B",20,3,!0,!1))p(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"]=[Ue.utils.decode_range("B2:V2"),Ue.utils.decode_range("B3:V3"),Ue.utils.decode_range("B7:B9"),Ue.utils.decode_range("C7:C9"),Ue.utils.decode_range("D7:H7"),Ue.utils.decode_range("I7:M7"),Ue.utils.decode_range("N7:V7"),Ue.utils.decode_range("D8:E8"),Ue.utils.decode_range("F8:G8"),Ue.utils.decode_range("H8:H9"),Ue.utils.decode_range("I8:I9"),Ue.utils.decode_range("J8:J9"),Ue.utils.decode_range("K8:K9"),Ue.utils.decode_range("L8:L9"),Ue.utils.decode_range("M8:M9"),Ue.utils.decode_range("N8:N9"),Ue.utils.decode_range("O8:O9"),Ue.utils.decode_range("P8:P9"),Ue.utils.decode_range("Q8:Q9"),Ue.utils.decode_range("R8:R9"),Ue.utils.decode_range("S8:S9"),Ue.utils.decode_range("T8:T9"),Ue.utils.decode_range("U8:U9"),Ue.utils.decode_range("V8:V9")];const _=Ue.utils.book_new();Ue.utils.book_append_sheet(_,o,"Leave(Detailed)"),Ue.writeFile(_,"LeaveDetailedReport.xlsx")}},async saveRecord(){this.state.isLoading=!0,this.hasValue=!1,await tt.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 tt.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:{}},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,i,t,e){const u=Y("Loading"),p=Y("Multiselect"),b=Y("FormGroup"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[2]||(r[2]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[t.state.isLoading?(re(),Me(u,{key:0,text:"Fetching records"})):me("",!0),U("div",uF,[T(b,{label:"Company"},{default:G(()=>[T(p,{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}),T(b,{label:"Month"},{default:G(()=>[T(p,{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})]),U("div",dF,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",hF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const mF=Et(fF,[["render",pF],["__scopeId","data-v-5e9c4802"]]);const gF={props:["finalData","form"],mounted(){Da.register(ko,To,Eo,si,Fl,Dl,Cl),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",p=e["Date From"]||"Unknown Date",b=parseFloat(e.days)||0,_=`${u} (${p})`;return t[_]||(t[_]=0),t[_]+=b,t},{}),o=Object.keys(r),i=Object.values(r);this.chartInstance=new Da(s,{type:"bar",data:{labels:o,datasets:[{label:"Leave Days",data:i,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 bF(s,r,o,i,t,e){return re(),Le("div",null,r[0]||(r[0]=[U("canvas",{id:"reportChart"},null,-1)]))}const yF=Et(gF,[["render",bF],["__scopeId","data-v-eb8f87f1"]]);const _F={setup(){},components:{PriceRange:wg,AgGridVue:qt,ActionCellRenderer:dr,LeaveReportChart:yF,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 ir.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 Rr().shape({date_from:Dt().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 jt){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 tt.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(i=>({id:null,report_module_id:"1",name:i.label,slug:i.value})),o=s.data.data.map(i=>{const t={employee_id:i.employee_id||null,fullname:i.fullname||null};return r.forEach(e=>{const u=e.slug;t[e.name]=i[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(i=>{const t=this.reportModuleColums.find(e=>e.value===i);return{field:t?t.label:i,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 tt.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)}}},vF={class:"grid grid-cols-1 gap-2"},wF={class:"grid grid-cols-5 gap-2"},xF={class:"grid grid-cols-2 gap-2"},CF={class:"grid grid-cols-2 gap-2"},FF={class:"flex justify-between items-center"},DF={class:"flex gap-1 justify-end"};function AF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("PriceRange"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card"),M=Y("LeaveReportChart");return re(),Le(Cr,null,[U("form",{onSubmit:r[8]||(r[8]=St((...N)=>s.confirmSubmit&&s.confirmSubmit(...N),["prevent"])),class:"space-y-4"},[r[9]||(r[9]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",vF,[T(p,{label:"Columns",isRequired:!0},{default:G(()=>[T(u,{searchable:!0,modelValue:t.form.columns,"onUpdate:modelValue":r[0]||(r[0]=N=>t.form.columns=N),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"]),U("button",{type:"button",class:"mt-2 text-blue-600",onClick:r[1]||(r[1]=(...N)=>e.toggleSelectAllColumns&&e.toggleSelectAllColumns(...N))},Xr(e.isAllColumnsSelected?"Deselect All":"Select All"),1)]),_:1})]),U("div",wF,[t.included.payroll_rate?(re(),Me(p,{key:0,label:"Payroll Rate"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payroll_rate,"onUpdate:modelValue":r[2]||(r[2]=N=>t.form.payroll_rate=N),options:t.payrollRateOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0),t.included.salary_rate?(re(),Me(p,{key:1,label:"Salary Rate"},{default:G(()=>[T(b,{min:0,max:5e5,"onUpdate:priceRange":e.handlePriceRangeUpdate,modelValue:t.form.salary_rate,"onUpdate:modelValue":r[3]||(r[3]=N=>t.form.salary_rate=N)},null,8,["onUpdate:priceRange","modelValue"])]),_:1})):me("",!0),t.included.payment_type?(re(),Me(p,{key:2,label:"Payment Type"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.payment_type,"onUpdate:modelValue":r[4]||(r[4]=N=>t.form.payment_type=N),options:t.paymentTypeOptions,class:"form-control w-full h-[48px] mt-2"},null,8,["modelValue","options"])]),_:1})):me("",!0)]),U("div",xF,[T(p,{label:"Payroll Date From",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.date_from,"onUpdate:modelValue":r[5]||(r[5]=N=>t.form.date_from=N),class:"form-control h-[48px]",id:"date_from",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1}),T(p,{label:"Payroll Date To",isRequired:!0},{default:G(()=>[T(_,{modelValue:t.form.date_to,"onUpdate:modelValue":r[6]||(r[6]=N=>t.form.date_to=N),class:"form-control h-[48px]",id:"date_to",placeholder:"yyyy, dd M"},null,8,["modelValue"])]),_:1})]),U("div",CF,[T(p,{label:"Company"},{default:G(()=>[T(u,{placeholder:"(ALL)",searchable:!0,modelValue:t.form.company_id,"onUpdate:modelValue":r[7]||(r[7]=N=>t.form.company_id=N),options:t.companies,class:"form-control w-full h-[48px] mt-2",loading:t.state.isCompanyLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",FF,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",DF,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{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})):me("",!0),U("div",null,[t.form.modules==1&&t.finalData.length!=0?(re(),Me(M,{key:0,finalData:t.finalData,form:t.form},null,8,["finalData","form"])):me("",!0)])],64)}const SF=Et(_F,[["render",AF],["__scopeId","data-v-93a5836a"]]);const EF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 Rs.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 _l.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 Ff.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 jt){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 tt.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 tt.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:{}},TF={class:"grid grid-cols-3 gap-2"},RF={class:"grid grid-cols-3 gap-2"},kF={class:"grid grid-cols-2 gap-2"},LF={class:"flex justify-between items-center"},MF={class:"flex gap-1 justify-end"};function OF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[7]||(r[7]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",TF,[T(p,{label:"Status"},{default:G(()=>[T(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}),T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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})]),U("div",RF,[T(p,{label:"Classification"},{default:G(()=>[T(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}),T(p,{label:"Type"},{default:G(()=>[T(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})]),U("div",kF,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date"},{default:G(()=>[T(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})]),U("div",LF,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",MF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const PF=Et(EF,[["render",OF],["__scopeId","data-v-fb890015"]]),NF={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)}}},IF={class:"flex gap-2 mb-4"},VF=["value"],BF=["value"],UF={class:"relative"},zF=["min","max","value"],GF=["min","max","value"],jF={class:"flex justify-between text-sm text-gray-500 mt-2"};function WF(s,r,o,i,t,e){return re(),Le("div",null,[U("div",IF,[U("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,VF),r[4]||(r[4]=U("span",{class:"self-center"},"-",-1)),U("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,BF)]),U("div",UF,[r[5]||(r[5]=U("div",{class:"w-full h-1 bg-gray-300 rounded-full"},null,-1)),U("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,zF),U("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,GF)]),U("div",jF,[U("span",null,"₱"+Xr(e.formatPrice(o.min)),1),U("span",null,"₱"+Xr(e.formatPrice((o.min+o.max)/2)),1),U("span",null,"₱"+Xr(e.formatPrice(o.max)),1)])])}const HF=Et(NF,[["render",WF]]);const YF={setup(){},components:{Range:HF,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 gy.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 _l.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 Ff.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 jt){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 tt.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 tt.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:{}},qF={class:"grid grid-cols-2 gap-2"},KF={class:"flex justify-between items-center"},JF={class:"flex gap-1 justify-end"};function XF(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Range"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[3]||(r[3]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",qF,[T(p,{label:"Status"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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})]),U("div",null,[T(p,{label:"Salary Range"},{default:G(()=>[T(b,{modelValue:t.form.priceRange,"onUpdate:modelValue":r[2]||(r[2]=E=>t.form.priceRange=E),min:0,max:15e4},null,8,["modelValue"])]),_:1})]),U("div",KF,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",JF,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const QF=Et(YF,[["render",XF],["__scopeId","data-v-f9f68b94"]]);const ZF={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 xm.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 es.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 Fr.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 ir.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 Rs.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 _l.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 Ff.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 jt){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 tt.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 tt.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:{}},$F={class:"grid grid-cols-2 gap-2"},eD={class:"grid grid-cols-3 gap-2"},tD={class:"grid grid-cols-3 gap-2"},rD={class:"grid grid-cols-2 gap-2"},sD={class:"flex justify-between items-center"},aD={class:"flex gap-1 justify-end"};function oD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[10]||(r[10]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",$F,[T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Status"},{default:G(()=>[T(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})]),U("div",eD,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Classification"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",tD,[T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Section"},{default:G(()=>[T(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})]),U("div",rD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date"},{default:G(()=>[T(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})]),U("div",sD,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",aD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const iD=Et(ZF,[["render",oD],["__scopeId","data-v-7fba7428"]]);const nD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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 es.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 jt){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 tt.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 tt.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:{}},lD={class:"grid grid-cols-1 gap-2"},cD={class:"grid grid-cols-2 gap-2"},fD={class:"grid grid-cols-2 gap-2"},uD={class:"flex justify-between items-center"},dD={class:"flex gap-1 justify-end"};function hD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[6]||(r[6]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[U("div",lD,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",cD,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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})]),U("div",fD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",uD,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",dD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0)],64)}const pD=Et(nD,[["render",hD],["__scopeId","data-v-d1afa970"]]);const mD={setup(){},components:{Radio:Cm,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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 es.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 jt){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 tt.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 tt.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:{}},gD={class:"grid grid-cols-1 gap-2"},bD={class:"grid grid-cols-2 gap-2"},yD={class:"flex items-center gap-4"},_D={class:"flex items-center cursor-pointer"},vD=["checked"],wD={class:"flex items-center cursor-pointer gap-4"},xD={class:"grid grid-cols-2 gap-2"},CD={class:"flex justify-between items-center"},FD={class:"flex gap-1 justify-end"};function DD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Radio"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[9]||(r[9]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[U("div",gD,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",bD,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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})]),U("div",yD,[U("label",_D,[$o(U("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,vD),[[pm,t.form.resign_employee]]),r[10]||(r[10]=U("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[U("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"},[U("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]=U("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),U("label",wD,[T(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),T(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),U("div",xD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(_,{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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(_,{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})]),U("div",CD,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",FD,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{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})):me("",!0)],64)}const AD=Et(mD,[["render",DD],["__scopeId","data-v-5e262e3d"]]);const SD={setup(){},components:{Radio:Cm,AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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},activeCompany(){return this.$store.userSettings.getActiveCompany},activeDealer(){return this.$store.userSettings.getActiveDealership}},methods:{async fetchEmployee(){await Fr.fetchAllEmployeeRecords({company_id:this.activeCompany,dealership_id:this.activeDealer}).then(s=>{console.log("response",this.activeCompany),s.status==200&&(this.employees=s.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 ir.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 es.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 jt){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 tt.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 tt.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:{}},ED={class:"grid grid-cols-1 gap-2"},TD={class:"grid grid-cols-2 gap-2"},RD={class:"flex items-center gap-4"},kD={class:"flex items-center cursor-pointer"},LD=["checked"],MD={class:"flex items-center cursor-pointer gap-4"},OD={class:"grid grid-cols-2 gap-2"},PD={class:"flex justify-between items-center"},ND={class:"flex gap-1 justify-end"};function ID(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Radio"),_=Y("flat-pickr"),w=Y("Button"),S=Y("SubmitButton"),A=Y("ag-grid-vue"),E=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[9]||(r[9]=St((...M)=>s.confirmSubmit&&s.confirmSubmit(...M),["prevent"])),class:"space-y-4"},[U("div",ED,[T(p,{label:"Employee"},{default:G(()=>[T(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-multiselect w-full mt-2",mode:"tags","close-on-select":!1,loading:t.state.isEmployeeLoading},null,8,["modelValue","options","loading"])]),_:1})]),U("div",TD,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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})]),U("div",RD,[U("label",kD,[$o(U("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,LD),[[pm,t.form.resign_employee]]),r[10]||(r[10]=U("span",{class:"absolute text-white opacity-0 peer-checked:opacity-100"},[U("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"},[U("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]=U("span",{class:"ml-2 text-slate-500 dark:text-slate-400 text-sm"},"Include Resigned Employees",-1))]),U("label",MD,[T(b,{label:"Filling Date",value:0,modelValue:t.form.date,"onUpdate:modelValue":r[5]||(r[5]=M=>t.form.date=M)},null,8,["modelValue"]),T(b,{label:"Occurence Date",value:1,modelValue:t.form.date,"onUpdate:modelValue":r[6]||(r[6]=M=>t.form.date=M)},null,8,["modelValue"])])]),U("div",OD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(_,{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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(_,{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})]),U("div",PD,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",ND,[T(S,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(E,{key:0,class:"p-2"},{default:G(()=>[T(A,{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})):me("",!0)],64)}const VD=Et(SD,[["render",ID],["__scopeId","data-v-d25c46d7"]]);const BD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 ir.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 jt){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 tt.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 tt.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:{}},UD={class:"grid grid-cols-2 gap-2"},zD={class:"grid grid-cols-2 gap-2"},GD={class:"flex justify-between items-center"},jD={class:"flex gap-1 justify-end"};function WD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("flat-pickr"),_=Y("Button"),w=Y("SubmitButton"),S=Y("ag-grid-vue"),A=Y("Card");return re(),Le(Cr,null,[U("form",{onSubmit:r[4]||(r[4]=St((...E)=>s.confirmSubmit&&s.confirmSubmit(...E),["prevent"])),class:"space-y-4"},[r[5]||(r[5]=U("div",{class:"grid grid-cols-1 gap-2"},null,-1)),U("div",UD,[T(p,{label:"Company"},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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})]),U("div",zD,[T(p,{label:"Start Date",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"End Date",isRequired:!0},{default:G(()=>[T(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})]),U("div",GD,[t.hasValue?(re(),Me(_,{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"])):me("",!0),U("div",jD,[T(w,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32),t.hasValue?(re(),Me(A,{key:0,class:"p-2"},{default:G(()=>[T(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})):me("",!0),r[6]||(r[6]=U("div",null,null,-1))],64)}const HD=Et(BD,[["render",WD],["__scopeId","data-v-d1e43127"]]);const YD={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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(),i=this.groupByDealership(this.finalData);oa(()=>import("./exceljs.min.430e5b73.js").then(t=>t.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Mandatory Deduction Flags");u.mergeCells("A1:I1");const p=u.getCell("A1");p.value="List of Employee's Mandatory Deductions Flags",p.font={size:16,bold:!0},p.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(i).forEach(([A,E])=>{w++,u.mergeCells(`A${w}:I${w}`);const M=u.getCell(`A${w}`);M.value=A||"Unassigned Dealership",M.font={size:12,bold:!0},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFD3D3D3"}},M.alignment={horizontal:"left"};const N={totalEmployees:E.length,alwaysPresentCount:0,flexibleTimeCount:0,noTaxCount:0,noSssCount:0,noPagibigCount:0,noPhilhealthCount:0};E.forEach(B=>{var Je,ut,bt,st;let ee={};const ie=(Je=B==null?void 0:B.salary_and_wages)==null?void 0:Je.shields;ee=ie?JSON.parse(ie):{};const j=((ut=B==null?void 0:B.salary_and_wages)==null?void 0:ut.always_present)||"No",H=((bt=B==null?void 0:B.position)==null?void 0:bt.name)||"N/A",ne=((st=B==null?void 0:B.salary_and_wages)==null?void 0:st.flexible_time)||"No",W=(ee==null?void 0:ee.no_tax)||"No",Ae=(ee==null?void 0:ee.no_sss)||"No",ve=(ee==null?void 0:ee.no_pagibig)||"No",it=(ee==null?void 0:ee.no_philhealth)||"No";j==1&&N.alwaysPresentCount++,ne==1&&N.flexibleTimeCount++,W==1&&N.noTaxCount++,Ae==1&&N.noSssCount++,ve==1&&N.noPagibigCount++,it==1&&N.noPhilhealthCount++,w++,u.addRow([B.employee_id||"",B.lastname+", "+B.firstname||"",H||"N/A",j==1?"Yes":"No",ne==1?"Yes":"No",W==1?"Yes":"No",Ae==1?"Yes":"No",ve==1?"Yes":"No",it==1?"Yes":"No"]).eachCell(Mt=>{Mt.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}})}),w++,u.addRow(["Subtotal:",`${N.totalEmployees} employees`,"",N.alwaysPresentCount,N.flexibleTimeCount,N.noTaxCount,N.noSssCount,N.noPagibigCount,N.noPhilhealthCount]).eachCell(B=>{B.font={bold:!0},B.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFECECEC"}},B.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),p=document.createElement("a");p.href=u,p.download="EmployeeMandatoryFlags_ByDealership.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).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 i=((t=o.dealership)==null?void 0:t.name)||"Unassigned";r[i]||(r[i]=[]),r[i].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,A;let o={};const i=(w=r==null?void 0:r.salary_and_wages)==null?void 0:w.shields;o=i?JSON.parse(i):{};const t=((S=r==null?void 0:r.salary_and_wages)==null?void 0:S.always_present)||"No",e=((A=r==null?void 0:r.salary_and_wages)==null?void 0:A.flexible_time)||"No",u=(o==null?void 0:o.no_tax)||"No",p=(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++,p==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 Rr().shape({company_id:Dt().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 jt){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 tt.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()}}},qD={class:"grid grid-cols-3 gap-2"},KD={key:0,class:"text-[#ec4899]"},JD={class:"flex justify-between items-center"},XD={class:"flex gap-1 justify-end"};function QD(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("Button"),_=Y("SubmitButton");return re(),Le("form",{onSubmit:r[6]||(r[6]=St((...w)=>s.confirmSubmit&&s.confirmSubmit(...w),["prevent"])),class:"space-y-4"},[U("div",qD,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",KD,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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})]),U("div",JD,[t.hasValue?(re(),Me(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"])):me("",!0),U("div",XD,[T(_,{onClick:e.submitForm,text:"Generate"},null,8,["onClick"])])])],32)}const ZD=Et(YD,[["render",QD],["__scopeId","data-v-51618304"]]);const $D={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.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(([A,E])=>{E.items&&Array.isArray(E.items)&&E.items.forEach(M=>{const N=M.dealer||"Unassigned Dealer";w[N]||(w[N]={}),w[N][A]||(w[N][A]={items:[],total:0}),w[N][A].items.push(M),w[N][A].total+=parseFloat(M.amount)||0})}),Object.entries(w).forEach(([A,E])=>{const M=e.addRow([A]);M.font={bold:!0,size:16},M.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},e.mergeCells(`A${M.number}:C${M.number}`);let N=0;Object.entries(E).forEach(([B,ee])=>{const ie=e.addRow([B]);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 j=ee.total;N+=j;const H=e.addRow(["",`Total ${B}`,j]);H.font={bold:!0},H.getCell(3).numFmt="#,##0.00",e.addRow([])});const q=e.addRow(["",`Total for ${A}`,N]);q.font={bold:!0,size:14},q.getCell(3).numFmt="#,##0.00",q.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},_+=N,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(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().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 jt){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 i=(await tt.GenerateEmployeeDeductions(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[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=i}else console.error("Invalid attendance data format:",i)}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:{}},eA={class:"grid grid-cols-4 gap-2"},tA={key:0,class:"text-[#ec4899]"},rA={class:"w-full mt-2"};function sA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[7]||(r[7]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",eA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",tA,"Cutoff is required")):me("",!0)]),_:1})]),U("div",rA,[T(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 aA=Et($D,[["render",sA],["__scopeId","data-v-7a6f21fe"]]);const oA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 by.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 Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.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(N=>{const q=N.dealer||"Unassigned Dealer";w[q]||(w[q]={}),w[q][E]||(w[q][E]={items:[],total:0}),w[q][E].items.push(N),w[q][E].total+=parseFloat(N.amount)||0})});let S=0;Object.entries(w).forEach(([E,M])=>{const N=e.addRow([E]);N.font={bold:!0,size:16},N.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${N.number}:C${N.number}`);let q=0;Object.entries(M).forEach(([ee,ie])=>{const j=e.addRow([ee]);j.font={bold:!0,size:14},e.mergeCells(`A${j.number}:C${j.number}`),ie.items&&Array.isArray(ie.items)&&ie.items.forEach(W=>{const Ae=e.addRow(["",W.employee_name,parseFloat(W.amount)||0]);Ae.getCell(3).numFmt="#,##0.00"});const H=ie.total;q+=H;const ne=e.addRow(["",`Total ${ee}`,H]);ne.font={bold:!0},ne.getCell(3).numFmt="#,##0.00",e.addRow([])});const B=e.addRow(["",`Total for ${E}`,q]);B.font={bold:!0,size:14},B.getCell(3).numFmt="#,##0.00",B.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+=q,e.addRow([]),e.addRow([])});const A=e.addRow(["","Grand Total",S]);return A.font={bold:!0,size:16},A.getCell(3).numFmt="#,##0.00",A.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(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().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 jt){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 i=(await tt.GenerateEmployeeAdjustments(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[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=i}else console.error("Invalid attendance data format:",i)}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}}},iA={class:"grid grid-cols-4 gap-2"},nA={key:0,class:"text-[#ec4899]"},lA={key:0,class:"text-[#ec4899]"},cA={key:0,class:"text-[#ec4899]"},fA={class:"w-full mt-2"};function uA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",iA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",nA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",lA,"Cutoff is required")):me("",!0)]),_:1}),T(p,{label:"Payroll Items"},{default:G(()=>[T(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?(re(),Le("div",cA," Payroll Item is required ")):me("",!0)]),_:1})]),U("div",fA,[T(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 dA=Et(oA,[["render",uA],["__scopeId","data-v-5bc8e8c9"]]);const hA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fm.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 Fr.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 ir.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 es.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 Rs.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(i=>i.value===this.form.dealer_id),r=this.companies.find(i=>i.value===this.form.company_id),o=this.payrollDateOptions.find(i=>i.value===this.form.cutoff_id);oa(()=>import("./exceljs.min.430e5b73.js").then(i=>i.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(i=>{const t=new i.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 p=e.getCell("A2");p.value=(s==null?void 0:s.label)||(r==null?void 0:r.label),p.font={size:12,bold:!0},p.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,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const B=q.dealer||"Unassigned Dealer";w[B]||(w[B]={}),w[B][M]||(w[B][M]={items:[],total:0}),w[B][M].items.push(q),w[B][M].total+=parseFloat(q.amount)||0})}),Object.entries(w).forEach(([M,N])=>{const q=e.addRow([M]);q.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${q.number}:C${q.number}`);let B=0;Object.entries(N).forEach(([ie,j])=>{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"}}}),j.items&&Array.isArray(j.items)&&j.items.forEach(ve=>{const it=parseFloat(ve.amount)||0,Je=e.addRow([ve.employee_id,ve.employee_name,it]).getCell(3);Je.numFmt="#,##0.00"});const W=j.total;B+=W;const Ae=e.addRow(["",`Total ${ie}`,W]);Ae.font={bold:!0},Ae.getCell(3).numFmt="#,##0.00",e.addRow([])});const ee=e.addRow(["",`Total for ${M}`,B]);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"}}}),_+=B,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 A=e.addRow(["","Verification (SUM)",""]);A.font={bold:!0,italic:!0};const E=A.getCell(3);return E.value={formula:"=SUM(C:C)",date1904:!1},E.numFmt="#,##0.00",t.xlsx.writeBuffer()}).then(i=>{const t=new Blob([i],{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(i=>{console.error("Error generating Excel file:",i),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 Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().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 jt){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 i=(await tt.GenerateEmployeeLoans(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}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}}},pA={class:"grid grid-cols-4 gap-2"},mA={key:0,class:"text-[#ec4899]"},gA={key:0,class:"text-[#ec4899]"},bA={class:"relative"},yA={key:0,class:"text-[#ec4899]"},_A={class:"w-full mt-2"};function vA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",pA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",mA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",gA,"Cutoff is required")):me("",!0)]),_:1}),T(p,{label:"Loan Type"},{default:G(()=>[U("div",bA,[T(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?(re(),Le("div",yA,"Loan field is required")):me("",!0)]),_:1})]),U("div",_A,[T(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 wA=Et(hA,[["render",vA],["__scopeId","data-v-2f87e9a7"]]);const xA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.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 Fr.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 ir.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 es.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 Rs.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),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.430e5b73.js").then(t=>t.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const p=u.getCell("A1");p.value="Pagibig Salary Loan",p.font={size:16,bold:!0},p.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+" "+i.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(N=>N.header)).eachCell(N=>{N.font={bold:!0,color:{argb:"FFFFFFFF"}},N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},N.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 A=0;const E={};Object.entries(this.finalData).forEach(([N,q])=>{q.items&&Array.isArray(q.items)&&q.items.forEach(B=>{const ee=B.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][N]||(E[ee][N]={items:[],total:0}),E[ee][N].items.push(B),E[ee][N].total+=parseFloat(B.amount)||0})}),Object.entries(E).forEach(([N,q])=>{const B=u.addRow([N]);B.eachCell(j=>{j.font={bold:!0,size:16},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${B.number}:H${B.number}`);let ee=0;Object.entries(q).forEach(([j,H])=>{const ne=u.addRow([j]);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,mt.formatDate(ve.birth_date),mt.formatNumber(ve.amount)||0])});const W=H.total;ee+=W;const Ae=u.addRow(["","","","","","","Total "+j,W]);Ae.font={bold:!0},Ae.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+N,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((j,H)=>{H>=7&&(j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),A+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",A]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((N,q)=>{q>=7&&(N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},N.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),p=document.createElement("a");p.href=u,p.download="PagibigSalaryLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}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}}},CA={class:"grid grid-cols-4 gap-2"},FA={key:0,class:"text-[#ec4899]"},DA={key:0,class:"text-[#ec4899]"},AA={key:0,class:"text-[#ec4899]"},SA={class:"w-full mt-2"};function EA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",CA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",FA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",DA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",AA,"Year is required")):me("",!0)]),_:1})]),U("div",SA,[T(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 TA=Et(xA,[["render",EA],["__scopeId","data-v-2186e1ab"]]);const RA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.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 Fr.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 ir.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 es.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 Rs.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),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.430e5b73.js").then(t=>t.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.css"]).then(t=>{const e=new t.default.Workbook,u=e.addWorksheet("Employee Loan Report");u.mergeCells("A1:H1");const p=u.getCell("A1");p.value="Pagibig Salary Loan",p.font={size:16,bold:!0},p.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+" "+i.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(N=>N.header)).eachCell(N=>{N.font={bold:!0,color:{argb:"FFFFFFFF"}},N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FF464646"}},N.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 A=0;const E={};Object.entries(this.finalData).forEach(([N,q])=>{q.items&&Array.isArray(q.items)&&q.items.forEach(B=>{const ee=B.dealer||"Unassigned Dealer";E[ee]||(E[ee]={}),E[ee][N]||(E[ee][N]={items:[],total:0}),E[ee][N].items.push(B),E[ee][N].total+=parseFloat(B.amount)||0})}),Object.entries(E).forEach(([N,q])=>{const B=u.addRow([N]);B.eachCell(j=>{j.font={bold:!0,size:16},j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFBDD7EE"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}}}),u.mergeCells(`A${B.number}:H${B.number}`);let ee=0;Object.entries(q).forEach(([j,H])=>{const ne=u.addRow([j]);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,mt.formatDate(ve.birth_date),mt.formatNumber(ve.amount)||0])});const W=H.total;ee+=W;const Ae=u.addRow(["","","","","","","Total "+j,W]);Ae.font={bold:!0},Ae.getCell(8).numFmt="#,##0.00",u.addRow([])});const ie=u.addRow(["","","","","","","Total for "+N,ee]);ie.font={bold:!0,size:14},ie.getCell(8).numFmt="#,##0.00",ie.eachCell((j,H)=>{H>=7&&(j.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFE2EFDA"}},j.border={top:{style:"thin"},left:{style:"thin"},bottom:{style:"thin"},right:{style:"thin"}})}),A+=ee,u.addRow([]),u.addRow([])});const M=u.addRow(["","","","","","","Grand Total",A]);return M.font={bold:!0,size:16},M.getCell(8).numFmt="#,##0.00",M.eachCell((N,q)=>{q>=7&&(N.fill={type:"pattern",pattern:"solid",fgColor:{argb:"FFFFC000"}},N.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),p=document.createElement("a");p.href=u,p.download="PagibigSalaryLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}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"},LA={key:0,class:"text-[#ec4899]"},MA={key:0,class:"text-[#ec4899]"},OA={key:0,class:"text-[#ec4899]"},PA={class:"w-full mt-2"};function NA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",kA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",LA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",MA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",OA,"Year is required")):me("",!0)]),_:1})]),U("div",PA,[T(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 IA=Et(RA,[["render",NA],["__scopeId","data-v-35f0a247"]]);const VA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.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 Fr.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 ir.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 es.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 Rs.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),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.430e5b73.js").then(t=>t.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.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 p=u.getCell("A1");p.font={size:16,bold:!0},p.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+" "+i.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 A={};Object.entries(this.finalData).forEach(([M,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const B=q.dealer||"Unassigned Dealer";A[B]||(A[B]={}),A[B][M]||(A[B][M]={items:[],total:0}),A[B][M].items.push(q),A[B][M].total+=parseFloat(q.amount)||0})}),Object.entries(A).forEach(([M,N])=>{const q=u.addRow([M]);q.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${q.number}:F${q.number}`);let B=0;Object.entries(N).forEach(([ie,j])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),j.items&&Array.isArray(j.items)&&j.items.forEach(Ae=>{u.addRow([Ae.employee_id,Ae.lastname,Ae.firstname,Ae.middlename,Ae.sss,mt.formatNumber(Ae.amount)||0])});const ne=j.total;B+=ne;const W=u.addRow(["","","","","Total "+ie,mt.formatNumber(ne)]);W.font={bold:!0},W.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,mt.formatNumber(B)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,j)=>{j>=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+=B,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",mt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,N)=>{N>=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),p=document.createElement("a");p.href=u,p.download="SSSCalamityLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}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}}},BA={class:"grid grid-cols-4 gap-2"},UA={key:0,class:"text-[#ec4899]"},zA={key:0,class:"text-[#ec4899]"},GA={key:0,class:"text-[#ec4899]"},jA={class:"w-full mt-2"};function WA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",BA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",UA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",zA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",GA,"Year is required")):me("",!0)]),_:1})]),U("div",jA,[T(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 HA=Et(VA,[["render",WA],["__scopeId","data-v-a6ed8056"]]);const YA={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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(mt.getMonthMap()).map(([s,r])=>({value:parseInt(s),label:r})),this.YearsOptions=Object.entries(mt.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 Fr.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 ir.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 es.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 Rs.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),i=this.YearsOptions.find(t=>t.value===this.form.year);oa(()=>import("./exceljs.min.430e5b73.js").then(t=>t.e),["assets/exceljs.min.430e5b73.js","assets/index.28ae41da.js","assets/index.3378bb1a.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 p=u.getCell("A1");p.font={size:16,bold:!0},p.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+" "+i.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 A={};Object.entries(this.finalData).forEach(([M,N])=>{N.items&&Array.isArray(N.items)&&N.items.forEach(q=>{const B=q.dealer||"Unassigned Dealer";A[B]||(A[B]={}),A[B][M]||(A[B][M]={items:[],total:0}),A[B][M].items.push(q),A[B][M].total+=parseFloat(q.amount)||0})}),Object.entries(A).forEach(([M,N])=>{const q=u.addRow([M]);q.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${q.number}:F${q.number}`);let B=0;Object.entries(N).forEach(([ie,j])=>{const H=u.addRow([ie]);H.font={bold:!0,size:14},u.mergeCells(`A${H.number}:F${H.number}`),j.items&&Array.isArray(j.items)&&j.items.forEach(Ae=>{u.addRow([Ae.employee_id,Ae.lastname,Ae.firstname,Ae.middlename,Ae.sss,mt.formatNumber(Ae.amount)||0])});const ne=j.total;B+=ne;const W=u.addRow(["","","","","Total "+ie,mt.formatNumber(ne)]);W.font={bold:!0},W.getCell(6).numFmt="#,##0.00",u.addRow([])});const ee=u.addRow(["","","","","Total for "+M,mt.formatNumber(B)]);ee.font={bold:!0,size:14},ee.getCell(6).numFmt="#,##0.00",ee.eachCell((ie,j)=>{j>=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+=B,u.addRow([]),u.addRow([])});const E=u.addRow(["","","","","Grand Total",mt.formatNumber(S)]);return E.font={bold:!0,size:16},E.getCell(6).numFmt="#,##0.00",E.eachCell((M,N)=>{N>=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),p=document.createElement("a");p.href=u,p.download="SSSCalamityLoan.xlsx",document.body.appendChild(p),p.click(),window.URL.revokeObjectURL(u),document.body.removeChild(p)}).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 Rr().shape({company_id:Dt().nullable().required("Company is required"),month:Dt().nullable().required("Month is required"),year:Dt().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 jt){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 i=(await tt.GenerateHdmfLoan(this.form)).data||{};if(typeof i=="object"&&i!==null){const t=Object.keys(i)[0],e=(r=(s=i[t])==null?void 0:s.items)==null?void 0:r[0];e&&(this.employee={name:e.employee_name}),this.finalData=i}else console.error("Invalid attendance data format:",i)}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}}},qA={class:"grid grid-cols-4 gap-2"},KA={key:0,class:"text-[#ec4899]"},JA={key:0,class:"text-[#ec4899]"},XA={key:0,class:"text-[#ec4899]"},QA={class:"w-full mt-2"};function ZA(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[8]||(r[8]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",qA,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",KA,"Company is required")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Month",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",JA,"Month is required")):me("",!0)]),_:1}),T(p,{label:"Year",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",XA,"Year is required")):me("",!0)]),_:1})]),U("div",QA,[T(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 $A=Et(YA,[["render",ZA],["__scopeId","data-v-74a9a057"]]);const eS={setup(){},components:{AgGridVue:qt,ActionCellRenderer:dr,Multiselect:zt,Loading:Wt,Layout:Yt,Card:or,Textinput:cr,VueSelect:fr,Button:Qt,Icon:Ht,FromGroup:Zt,FormGroup:Xt,Textarea:ur,SubmitButton:Ut,CloseButton:er,UpdateButton:tr},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 Fm.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 Fr.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 ir.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 es.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 Rs.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=Ue.utils.book_new();this.dealers.find(j=>j.value===this.form.dealer_id);const o=this.companies.find(j=>j.value===this.form.company_id),i={};s.forEach(j=>{var W;const H=j.employee.dealer_id,ne=((W=j.employee.dealership)==null?void 0:W.name)||"Unknown Dealership";i[H]||(i[H]={name:ne,employees:[]}),i[H].employees.push(j)});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"]],p=(j,H)=>{let ne=0;return j.forEach(W=>{if(W[H]&&W[H]!=="-"){let Ae=W[H];typeof Ae=="string"&&(Ae=Ae.replace(/,/g,"").replace(/[^\d.-]/g,""));const ve=parseFloat(Ae);isNaN(ve)||(ne+=ve)}}),ne>0?ne:"-"};let b=[],_=[];Object.values(i).forEach(j=>{const H=Array(52).fill("");H[0]=j.name.toUpperCase(),b.push(H);const ne=j.employees.map(W=>{var Mt,Lt,Er,At,Se,Q,Ce,Te,xe,oe;const ve=W.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,se)=>pe+parseFloat(se.amount||0),0);let it=0,ft=0;W.payrolls[0].details.benefits.filter(pe=>pe.benefit_id!=1).map(pe=>{it+=parseFloat(pe.total_amount)}),W.payrolls[0].details.benefits.map(pe=>{ft+=parseFloat(pe.total_amount)});const Je=parseFloat(W.payrolls[0].salary_rate)<=16823.75?parseFloat(W.payrolls[0].gross_pay)-parseFloat(W.payrolls[0].sss_employee_share)-parseFloat(W.payrolls[0].philhealth_contribution)-parseFloat(W.payrolls[0].pagibig_contribution):"-",ut=parseFloat(W.payrolls[0].sss_employee_share)+parseFloat(W.payrolls[0].philhealth_contribution)+parseFloat(W.payrolls[0].pagibig_contribution),bt=((Lt=(Mt=W.payrolls[0])==null?void 0:Mt.details)==null?void 0:Lt.shields)||{},st=parseFloat(bt.tax||0)+parseFloat(bt.sss||0)+parseFloat(bt.pagibig||0)+parseFloat(bt.philhealth||0);return W.employee.employee_id=="2672"&&(console.log("tax",ve),console.log("manda",Math.abs(Je+ut-Math.abs(W.payrolls[0].gross_pay))||0)),[mt.formatDate(W.payrolls[0].payroll_date)||"",W.employee.employee_id||"",W.employee.lastname+", "+W.employee.firstname||"",((Er=W.employee.department)==null?void 0:Er.name)||"",((At=W.employee.position)==null?void 0:At.name)||"",W.employee.salary_and_wages.tax_application==1?"Base on table":W.employee.salary_and_wages.tax_application==2?"No Tax":W.employee.salary_and_wages.tax_application==3?"Force Tax":"",((Se=W.employee.personal_information)==null?void 0:Se.tin)==0?0:((Q=W.employee.personal_information)==null?void 0:Q.tin)||"",W.gl_account||0,W.payrolls[0].salary_rate==0?0:mt.formatNumber(W.payrolls[0].salary_rate)||0,((Ce=W==null?void 0:W.attendance[0])==null?void 0:Ce.work_days)==0?"-":mt.formatNumber((Te=W==null?void 0:W.attendance[0])==null?void 0:Te.work_days)||"-",((xe=W==null?void 0:W.attendance[0])==null?void 0:xe.work_hours)==0?"-":mt.formatNumber((oe=W==null?void 0:W.attendance[0])==null?void 0:oe.work_hours)||"-",W.payrolls[0].basic_pay==0?0:mt.formatNumber(W.payrolls[0].basic_pay)||0,W.cola||0,W.payrolls[0].leave_pay==0?0:mt.formatNumber(W.payrolls[0].leave_pay)||0,W.payrolls[0].overtime_total==0?0:mt.formatNumber(W.payrolls[0].overtime_total)||0,W.payrolls[0].holiday_total==0?0:mt.formatNumber(W.payrolls[0].holiday_total)||0,W.payrolls[0].restday_total==0?0:mt.formatNumber(W.payrolls[0].restday_total)||0,W.payrolls[0].night_diff_total==0?0:mt.formatNumber(W.payrolls[0].night_diff_total)||0,W.payrolls[0].absent_amount==0?0:mt.formatNumber(W.payrolls[0].absent_amount)||0,W.payrolls[0].late_amount==0?0:mt.formatNumber(W.payrolls[0].late_amount)||0,W.payrolls[0].undertime_amount==0?0:mt.formatNumber(W.payrolls[0].undertime_amount)||0,W.payrolls[0].adjustments_total==0?0:mt.formatNumber(W.payrolls[0].adjustments_total)||0,W.payrolls[0].gross_pay==0?"0":mt.formatNumber(parseFloat(W.payrolls[0].gross_pay||0)+parseFloat(W.payrolls[0].adjustments_total||0)),ve||0,W.payrolls[0].sss_employee_share==0?0:mt.formatNumber(W.payrolls[0].sss_employee_share)||0,W.payrolls[0].philhealth_contribution==0?0:mt.formatNumber(W.payrolls[0].philhealth_contribution)||0,W.payrolls[0].pagibig_contribution==0?0:mt.formatNumber(W.payrolls[0].pagibig_contribution)||0,W.payrolls[0].sss_employer_share==0?0:mt.formatNumber(W.payrolls[0].sss_employer_share)||0,W.payrolls[0].philhealth_contribution==0?0:mt.formatNumber(W.payrolls[0].philhealth_contribution)||0,W.payrolls[0].pagibig_contribution_employer==0?0:mt.formatNumber(W.payrolls[0].pagibig_contribution_employer)||0,W.payrolls[0].withholding_tax==0?0:mt.formatNumber(W.payrolls[0].withholding_tax)||0,ft==0?0:mt.formatNumber(ft)||0,W.non_taxable_adjustments||0,parseFloat(st)||0,it==0?0:mt.formatNumber(parseFloat(it||0)+parseFloat(st||0)),W.payrolls[0].loans_total==0?0:mt.formatNumber(W.payrolls[0].loans_total)||0,W.payrolls[0].payment_contributions_total==0?0:mt.formatNumber(W.payrolls[0].payment_contributions_total)||0,W.payrolls[0].other_deductions==0?0:mt.formatNumber(W.payrolls[0].other_deductions)||0,W.payrolls[0].net_pay==0?0:mt.formatNumber(W.payrolls[0].net_pay)||0,W.no_atm_amount||0,W.hold_pay_amount||0,W.payrolls[0].net_pay==0?0:mt.formatNumber(W.payrolls[0].net_pay)||0,W.payrolls[0].gross_pay==0?0:mt.formatNumber(W.payrolls[0].gross_pay)||0,Je||0,0,ut==0?0:mt.formatNumber(ut)||0,0,Math.abs(Je+ut)||0,Math.abs(Je+ut-W.payrolls[0].gross_pay)||0,ve||0,(ve||0)+Math.abs(Je+ut-W.payrolls[0].gross_pay||0),W.payrolls[0].withholding_tax==0?0:mt.formatNumber(W.payrolls[0].withholding_tax)||0]});if(b.push(...ne),ne.length>0){const W=Array(52).fill("");W[0]=`${j.name} TOTAL`;for(let Ae=8;Ae<=51;Ae++){const ve=p(ne,Ae);W[Ae]=ve==="-"?0:mt.formatNumber(ve)}b.push(W),_.push(W),b.push(Array(52).fill(""))}});const w=Array(52).fill("");w[0]="GRAND TOTAL";for(let j=8;j<=51;j++){const H=p(_,j);w[j]=H==="-"?0:mt.formatNumber(H)}const S=[...t,...e,...u,...b,w],A=Ue.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}];A["!cols"]=E,A["!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 j=0;j<=41;j++){const H=Ue.utils.encode_cell({r:0,c:j}),ne=Ue.utils.encode_cell({r:1,c:j}),W=Ue.utils.encode_cell({r:2,c:j});A[H]=A[H]||{v:""},A[ne]=A[ne]||{v:""},A[W]=A[W]||{v:""},A[H].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},A[ne].s={font:{bold:!0,sz:14},alignment:{horizontal:"center"}},A[W].s={font:{bold:!0,sz:12},alignment:{horizontal:"center"}}}for(let j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H]=A[H]||{v:""},A[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 j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:5,c:j});A[H]=A[H]||{v:""},A[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 j=24;j<=26;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=27;j<=29;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=31;j<=34;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"BDD7EE"}}}}for(let j=38;j<=41;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"C6E0B4"}}}}for(let j=42;j<=51;j++){const H=Ue.utils.encode_cell({r:4,c:j});A[H].s={...A[H].s,fill:{fgColor:{rgb:"92D050"}}}}let M=6;Object.values(i).forEach(j=>{const H=Ue.utils.encode_cell({r:M+1,c:0});if(A[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"}}},A["!merges"].push({s:{r:M,c:0},e:{r:M,c:51}}),M++,M+=j.employees.length,j.employees.length>0){for(let ne=0;ne<=51;ne++){const W=Ue.utils.encode_cell({r:M+1,c:ne});A[W]=A[W]||{v:""},A[W].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&&(A[W].s={...A[W].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}M++,M++}});for(let j=6;j=8&&ne<=51&&(A[W].s={...A[W].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}})}}const N=S.length-1;for(let j=0;j<=51;j++){const H=Ue.utils.encode_cell({r:N,c:j});A[H]&&(A[H].s={font:{bold:!0,sz:12},border:{top:{style:"thin"},right:{style:"thin"},bottom:{style:"double"},left:{style:"thin"}},fill:{fgColor:{rgb:"FFE699"}}},j>=8&&j<=51&&(A[H].s={...A[H].s,numFmt:"#,##0.00",alignment:{horizontal:"right"}}))}Ue.utils.book_append_sheet(r,A,"Payroll Register");const q=`GCASI_Payroll_Register_${this.form.payroll_date||"report"}.xlsx`,B=Ue.write(r,{bookType:"xlsx",type:"array"}),ee=new Blob([B],{type:"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"});if(typeof document<"u"){const j=URL.createObjectURL(ee),H=document.createElement("a");H.href=j,H.download=q,document.body.appendChild(H),H.click(),document.body.removeChild(H)}return{filename:q,workbook:r}},async submitForm(){if(!this.state.isSubmiting){this.state.isSubmiting=!0;try{await Rr().shape({company_id:Dt().nullable().required("Company is required"),cutoff_id:Dt().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 jt){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 tt.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}}},tS={class:"grid grid-cols-4 gap-2"},rS={key:0,class:"text-[#ec4899]"},sS={key:0,class:"text-[#ec4899]"},aS={class:"w-full mt-2"};function oS(s,r,o,i,t,e){const u=Y("Multiselect"),p=Y("FormGroup"),b=Y("SubmitButton");return re(),Le("form",{onSubmit:r[7]||(r[7]=St((..._)=>s.confirmSubmit&&s.confirmSubmit(..._),["prevent"])),class:"space-y-4"},[U("div",tS,[T(p,{label:"Company",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",rS," Company is required ")):me("",!0)]),_:1}),T(p,{label:"Dealership"},{default:G(()=>[T(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}),T(p,{label:"Division"},{default:G(()=>[T(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}),T(p,{label:"Department"},{default:G(()=>[T(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}),T(p,{label:"Position"},{default:G(()=>[T(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}),T(p,{label:"Employee"},{default:G(()=>[T(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}),T(p,{label:"Cutoff",isRequired:!0},{default:G(()=>[T(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?(re(),Le("div",sS," Cutoff is required ")):me("",!0)]),_:1})]),U("div",aS,[T(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 iS=Et(eS,[["render",oS],["__scopeId","data-v-410766b7"]]),nS="/assets/20943445.3efbbed2.jpg";const lS={components:{Icon:Ht,PafReport:iD,VectorImage:g_,TreeItem:Wy,Layout:Yt,Card:or,Form:m_,FormGroup:Xt,SubmitButton:Ut,Multiselect:zt,LeaveReport:Vx,LeaveDetailedReport:mF,OvertimeReport:Jx,OvertimeCompanyReport:cC,LateApprovalReport:EC,AttendancePostingDTRReport:jC,EmployeeListReport:QC,EmployeeRateReport:p3,EmployeeRoleReport:w3,NoScheduleReport:S3,AbsentReport:P3,TardinessReport:j3,BirthdaysReport:J3,UndertimeReport:s5,DailyTimeRecordReport:u5,TravelReport:v5,CompanyBenefitsReport:T5,EmployeeTaxApplication:N5,EmployeePhilhealth:H5,EmployeeSSS:eF,EmployeePagibig:cF,EmpployeeContributionReport:SF,MrfReport:PF,ApplicantReport:QF,ChangeScheduleReport:pD,CwsListReport:AD,ChangeRestDayReport:VD,TimeAdjustmentReport:HD,DeductionFlagsReport:ZD,DeductionReport:aA,AdjustmentReport:dA,LoanReport:wA,HdmfCalamityLoanMonthlyRemittance:TA,HdmfSalaryLoanMonthlyRemittance:IA,SssCalamityLoanMonthlyRemittance:HA,SssSalaryLoanMonthlyRemittance:$A,PayrollRegister:iS},data(){return{searchQuery:"",treeData:hm([{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,recordData:null,form:{type_id:"",type:"",approvers:[]},state:{showModal:!1,isEmployeeLoading:!1}}},computed:{filteredTreeData(){const s=this.searchQuery.trim().toLowerCase(),r=o=>o.map(i=>{const t=i.children?r(i.children):[];return i.name.toLowerCase().includes(s)||t.length>0?{...i,children:t,expanded:!0}:null}).filter(i=>i!==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:{viewRecords(s){this.recordData=s,console.log("Received in index:",s)},reportList(){this.$refs.form.loadRecord(this.setData),this.$refs.form.state.showModal=!0,console.log("Report List",this.setData)},setTreeData(s){this.setData=s}}},cS={class:"grid grid-cols-12 gap-2 h-[50rem] border-2 p-3 border-gray-100 rounded-md"},fS={class:"col-span-3 overflow-y-scroll"},uS={class:"mb-3"},dS={class:"col-span-9 overflow-y-auto p-3 relative"},hS={class:"absolute inset-0 flex items-center justify-center pointer-events-none"},pS=["srcset"],mS={key:0},gS={class:"flex justify-between items-center"},bS={class:"font-bold text-lg"},yS={class:"flex flex-center items-center justify-center py-4"};function _S(s,r,o,i,t,e){const u=Y("TreeItem"),p=Y("Icon"),b=Y("Form"),_=Y("Card"),w=Y("Layout");return re(),Me(w,null,{default:G(()=>[T(_,{title:"Generate Report"},{default:G(()=>[U("div",cS,[U("div",fS,[U("div",uS,[$o(U("input",{"onUpdate:modelValue":r[0]||(r[0]=S=>t.searchQuery=S),type:"text",placeholder:"Search Reports...",class:"border border-gray-300 rounded p-2 w-full"},null,512),[[nf,t.searchQuery]])]),U("ul",null,[T(u,{class:"item",model:e.filteredTreeData,"is-expanded":!0,onTreeNodeClicked:e.setTreeData},null,8,["model","onTreeNodeClicked"])])]),U("div",dS,[U("div",hS,[U("img",{src:nS,alt:"Vector Image",srcset:s.VectorImage,class:"w-full h-full max-w-4xl object-contain opacity-15"},null,8,pS)]),U("form",{onSubmit:r[2]||(r[2]=St((...S)=>s.confirmSubmit&&s.confirmSubmit(...S),["prevent"])),class:"space-y-4 relative z-10"},[t.setData?(re(),Le("div",mS,[U("div",gS,[U("div",bS,Xr(t.setData.name),1),U("div",yS,[U("div",{onClick:r[1]||(r[1]=(...S)=>e.reportList&&e.reportList(...S)),class:"cursor-pointer text-white rounded-lg hover:bg-gray-600 hover:text-gray-100 bg-gray-900 p-2 flex items-center gap-2"},[T(p,{icon:"fluent:save-multiple-16-regular",class:"text-2xl"}),r[4]||(r[4]=U("div",{class:"text-xs"},"Saved Reports",-1))])])]),(re(),Me(Yb(e.getReportComponent),{"set-data":t.setData,"record-data":t.recordData},null,8,["set-data","record-data"]))])):me("",!0)],32)]),T(b,{onCloseModal:r[3]||(r[3]=S=>t.state.showModal=!1),ref:"form",onRecordSubmitted:e.viewRecords},null,8,["onRecordSubmitted"])])]),_:1})]),_:1})}const vS=Et(lS,[["render",_S]]),E6=Object.freeze(Object.defineProperty({__proto__:null,default:vS},Symbol.toStringTag,{value:"Module"}));export{cl as c,E6 as i};