File manager - Edit - /home/autoph/public_html/projects/ahg-hr/assets/index.ca4614c1.js
Back
import{I as Pe,a as rd}from"./index.1b36081b.js";import{_ as se,o as w,b as I,d as g,h as P,p as Te,s as mi,a as Ei,r as D,F as ae,m as fe,t as X,e as $,w as F,c as Q,j as L,X as vn,g as sd,Y as Ge,Z as br,Q as $e,l as ad,z as j,C as Et,P as li,H as xe,$ as Pa,a0 as ld,J as W,a1 as yr,D as Ke,N as Ut,K as ro,a2 as Ae,E as An,T as Ni,i as _r,L as Se,a3 as od,a4 as ge,f as ft,q as $a,a5 as ms,a6 as Xi,a7 as qr,k as Ur,a8 as ud,a9 as We,O as En,I as cd,aa as dd,U as fd,ab as hd,ac as pd,y as xr,x as it,ad as vd,ae as md,S as so}from"./index.28ae41da.js";import{l as Tn}from"./logo-black.7c15feb3.js";import{_ as In}from"./logo-white.b04c5a89.js";import{o as gs,a as G,i as ao,u as ze,w as Bs,t as Ns,b as at,f as lo,E as oo,c as uo,A as ot,T as Sr,d as Pt,N as Gt,l as js,O as Fs,e as Z,g as La,n as gd,h as co,j as fo,_ as ho,v as bd,k as Da,S as yd,m as _d,Y as xd,G as Sd}from"./transition.4769b1c9.js";import{E as za}from"./EmployeeService.67ccb7ea.js";/* empty css */import"./vue-cleave.min.10e51f16.js";import{t as po,c as kd,d as Vs,w as vo,i as wd,a as Od,b as xi,f as Qt,e as Ad,g as mo,h as go,l as Ed,j as Td,k as kr,m as Id,n as Cd,o as Md,s as Rd,p as Zt,q as Pd,r as bo,_ as Cn,u as yo,v as $d,x as Ld,y as Dd,z as zd,A as Bd,B as Nd,C as Ws,D as jd,E as Fd,F as _o,G as xo,H as Vd,I as Wd,J as Hd,K as qd,L as Ud,M as So,N as ko,O as Gd,P as Yd,Q as wo,R as Oo,S as Ao,T as Xd,U as Kd,V as Qd,W as Zd,X as Jd,Y as ef}from"./es.string.replace.a39053f7.js";const tf={data(){return{announcement:this.$store.themeSettingsStore.announcement}},mounted(){},watch:{announcement:{handler(){this.announcement?(this.$store.themeSettingsStore.announcement=this.announcement,localStorage.setItem("announcement",this.announcement)):(this.$store.themeSettingsStore.announcement=this.announcement,localStorage.setItem("announcement",this.announcement))},immediate:!0}}},nf={class:"flex justify-between mt-6 items-center"};function rf(i,e,t,r,n,a){return w(),I("div",null,[g("div",nf,[e[1]||(e[1]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"},"Pop Off Announcement",-1)),g("div",null,[g("label",{class:P([n.announcement?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=s=>n.announcement=s),class:"hidden"},null,512),[[mi,n.announcement]]),g("span",{class:P([n.announcement?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])])}const sf=se(tf,[["render",rf]]),nn="https://staging-ahg-hr-api.autohub.ph/api/v1/notification",af="https://staging-ahg-hr-api.autohub.ph/api/v1/bell-notification",Ba={fetchRecords(i={}){return Ei.get(`${nn}`,{params:i})},fetchRecord(i){return Ei.get(`${nn}/${i}`)},fetchRecordForBellNotification(i){return Ei.get(`${af}/${i}`)},async create(i){return Ei.post(`${nn}`,i)},async update(i,e){return Ei.put(`${nn}/${i}`,e)},async remove(i){return Ei.delete(`${nn}/${i}`)}};const lf={components:{Icon:Pe},props:{links:{type:Array}}},of={class:"flex space-x-3 rtl:space-x-reverse"},uf={class:"breadcrumbs"},cf={key:0,class:"capitalize text-slate-500 dark:text-slate-400"},df={key:1,class:"text-indigo-700"},ff={key:1},hf={class:"breadcrumbs-icon rtl:transform rtl:rotate-180"};function pf(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link");return w(),I("div",of,[g("ul",uf,[(w(!0),I(ae,null,fe(t.links,(o,c)=>(w(),I(ae,{key:o.text},[o.active?(w(),I("li",cf,X(o.text),1)):o.href?(w(),I("li",df,[$(l,{to:o.href},{default:F(()=>[o.href=="/"?(w(),Q(s,{key:0,icon:"heroicons-outline:home",class:"text-lg"})):(w(),I("span",ff,X(o.text),1))]),_:2},1032,["to"]),g("span",hf,[$(s,{icon:"heroicons:chevron-right"})])])):L("",!0)],64))),128))])])}const vf=se(lf,[["render",pf]]);const mf={name:"ChatBot",props:{projectId:{type:String,required:!0,default:"autohub-assist"},agentId:{type:String,required:!0,default:"f1cd50e0-9d9c-4515-bae4-4454d7ed198f"},chatTitle:{type:String,default:"Ask Will"}},data(){return{state:{showChatBot:!1}}},methods:{toggleChatBot(){this.state.showChatBot=!0},closeChatBot(){this.state.showChatBot=!1}},mounted(){if(!document.querySelector('script[src="https://www.gstatic.com/dialogflow-console/fast/df-messenger/prod/v1/df-messenger.js"]')){const i=document.createElement("script");i.src="https://www.gstatic.com/dialogflow-console/fast/df-messenger/prod/v1/df-messenger.js",i.async=!0,document.head.appendChild(i)}}};function gf(i,e,t,r,n,a){const s=D("df-messenger-chat-bubble"),l=D("df-messenger");return Te((w(),I("div",null,[$(l,{"project-id":t.projectId,"agent-id":t.agentId,"language-code":"en","max-query-length":"-1"},{default:F(()=>[$(s,{"chat-title":t.chatTitle},null,8,["chat-title"])]),_:1},8,["project-id","agent-id"])],512)),[[vn,!this.$store.themeSettingsStore.askhr]])}const bf=se(mf,[["render",gf]]),yf="/assets/user-1.ad58ce72.jpg",_f={components:{Icon:Pe}},xf={class:"bg-white bg-no-repeat custom-dropshadow footer-bg dark:bg-slate-700 flex justify-around items-center backdrop-filter backdrop-blur-[40px] fixed left-0 w-full z-[9999] bottom-0 py-[12px] px-4"},Sf={class:"h-[50px] w-[50px] rounded-full relative left-[0px] top-[0px] custom-dropshadow"};function kf(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link");return w(),I("div",xf,[$(l,{to:{name:"chat"}},{default:F(({isActive:o})=>[g("span",{class:P(["relative cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center",[o?"text-primary-500":"dark:text-white text-slate-900"]])},[$(s,{icon:"heroicons-outline:mail"}),e[0]||(e[0]=g("span",{class:"absolute right-[5px] lg:top-0 -top-2 h-4 w-4 bg-red-500 text-[8px] font-semibold flex flex-col items-center justify-center rounded-full text-white z-[99]"},"10",-1))],2),g("span",{class:P(["block text-[11px]",[o?"text-primary-500":"text-slate-600 dark:text-slate-300"]])},"Messages",2)]),_:1}),$(l,{to:{name:"profile"},class:"relative bg-white bg-no-repeat backdrop-filter backdrop-blur-[40px] rounded-full footer-bg dark:bg-slate-700 h-[65px] w-[65px] z-[-1] -mt-[40px] flex justify-center items-center"},{default:F(({isActive:o})=>[g("div",Sf,[g("img",{src:yf,alt:"",class:P(["w-full h-full rounded-full",[o?"border-2 border-primary-500":"border-2 border-slate-100"]])},null,2)])]),_:1}),$(l,{to:{name:"notifications"}},{default:F(({isActive:o})=>[g("span",{class:P(["relative cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center",[o?"text-primary-500":"dark:text-white text-slate-900"]])},[$(s,{icon:"heroicons-outline:bell"}),e[1]||(e[1]=g("span",{class:"absolute right-[17px] lg:top-0 -top-2 h-4 w-4 bg-red-500 text-[8px] font-semibold flex flex-col items-center justify-center rounded-full text-white z-[99]"},"2",-1))],2),g("span",{class:P(["block text-[11px]",[o?"text-primary-500":"text-slate-600 dark:text-slate-300"]])},"Notifications",2)]),_:1})])}const wf=se(_f,[["render",kf]]),Eo="data:image/png;base64,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",Na="data:image/png;base64,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",ja="data:image/png;base64,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",Fa="data:image/png;base64,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",To=[{title:"Dashboard",icon:"solar:home-bold-duotone",isOpen:!1,child:[{childtitle:"HR",childlink:"/"},{childtitle:"Head",childlink:"/head-dashboard"},{childtitle:"Employee",childlink:"/employee-dashboard"}]},{title:"Appovals",icon:"hugeicons:validation-approval",isOpen:!1,child:[{childtitle:"Leave Approvals",childlink:"/attendance/approvals/leave"}]},{title:"Dcument Tracker",icon:"fluent:document-search-32-filled",isOpen:!0,link:"/document-tracker"},{title:"Notifications",icon:"ic:twotone-email",isOpen:!0,link:"/notification"},{title:"Recruitment",icon:"solar:user-plus-rounded-bold-duotone",isOpen:!1,child:[{childtitle:"MRF",childlink:"/recruitment/mrf"},{childtitle:"Job Vacancy",childlink:"/recruitment/job-vacancy"},{childtitle:"Job Applications",childlink:"/recruitment/job-applications"},{childtitle:"Applicants",childlink:"/recruitment/applicants"},{childtitle:"Job Offer",childlink:"/recruitment/job-offer"}]},{title:"HR Administration",icon:"solar:people-nearby-bold-duotone",isOpen:!0,child:[{childtitle:"Employee Suspension",childlink:"/hr-admin/employee-suspension"},{childtitle:"PAF",childlink:"/hr-admin/paf"},{childtitle:"Announcements",childlink:"/hr-admin/announcements"},{childtitle:"Approval Settings",childlink:"/hr-admin/approval-settings"},{childtitle:"Awards and Penalties",childlink:"/hr-admin/awards and penalties"}]},{title:"Import",icon:"solar:user-hand-up-bold-duotone",child:[{childtitle:"Import Attendance",childlink:"/import-attendance"},{childtitle:"Import Employee",childlink:"/import-employee"}]},{title:"Employee Management",icon:"solar:user-hand-up-bold-duotone",child:[{childtitle:"Master list",childlink:"/employees"},{childtitle:"Employee Loans",childlink:"/employee-loans"},{childtitle:"Employee Benefits",childlink:"/employee-benefits"},{childtitle:"Employee Schedule",childlink:"/employee-schedule"},{childtitle:"Employee Leave Credits",childlink:"/employee-leave-credits"}]},{title:"List of Timekeeping",icon:"solar:bill-list-bold-duotone",child:[{childtitle:"Leave",childlink:"/timekeeping-list/leave"},{childtitle:"Time Adjustment",childlink:"/timekeeping-list/time-adjustment"},{childtitle:"Overtime",childlink:"/timekeeping-list/overtime"},{childtitle:"Change Schedule",childlink:"/timekeeping-list/change-schedule"},{childtitle:"OB/Travel",childlink:"/timekeeping-list/official-business"},{childtitle:"Undertime",childlink:"/timekeeping-list/undertime"},{childtitle:"Offset Earnings and Availment",childlink:"/timekeeping-list/offset"},{childtitle:"Wfh",childlink:"/timekeeping-list/wfh"}]},{title:"Timekeeping",icon:"solar:calendar-mark-bold-duotone",child:[{childtitle:"Attendance",childlink:"/attendance"},{childtitle:"Employee Monthly Schedule",childlink:"/attendance/employee-schedule"},{childtitle:"Daily Attendance",childlink:"/attendance/daily-attendance"},{childtitle:"Leave Ledger",childlink:"/attendance/leave-ledger"},{childtitle:"Leave",childlink:"/attendance/leave"},{childtitle:"Time Adjustment",childlink:"/attendance/time-adjustment"},{childtitle:"Overtime",childlink:"/attendance/overtime"},{childtitle:"Change Schedule",childlink:"/attendance/change-schedule"},{childtitle:"OB/Travel",childlink:"/attendance/official-business"},{childtitle:"Undertime",childlink:"/attendance/undertime"},{childtitle:"Attendance Notification",childlink:"#"},{childtitle:"Offset Earnings and Availment",childlink:"/attendance/offset"},{childtitle:"Wfh",childlink:"/attendance/wfh"}]},{title:"On-Boarding",icon:"heroicons:rectangle-group-solid",isOpen:!0,link:"/recruitment/on-boarding"},{title:"Payroll",icon:"solar:money-bag-bold-duotone",child:[{childtitle:"Deduction Type",childlink:"/payroll/deduction-type"},{childtitle:"Payroll Records",childlink:"/payroll/payroll-records"},{childtitle:"Payroll Process",childlink:"/payroll/payroll-process"},{childtitle:"Payroll Process",childlink:"/payroll/attendance-process"},{childtitle:"13th Month Processing",childlink:"/payroll/13th-month"},{childtitle:"Payroll Items",childlink:"/payroll/payroll-items"},{childtitle:"Adjustments and Deductions",childlink:"/payroll/adjustments-and-deductions"},{childtitle:"Deduction Frequency",childlink:"/payroll/deduction-frequency"},{childtitle:"Loan Management",childlink:"/loans"},{childtitle:"Payroll Settings",childlink:"/payroll/payroll-settings"}]},{title:"Masterfile",icon:"solar:folder-with-files-bold-duotone",child:[{childtitle:"Approver",childlink:"/masterfile/approver"},{childtitle:"Benefits Categories",childlink:"/masterfile/benefits-categories"},{childtitle:"Benefits Sub Categories",childlink:"/masterfile/benefits-sub-categories"},{childtitle:"Payroll Items",childlink:"/masterfile/payroll-items"},{childtitle:"Benefits Type",childlink:"/masterfile/benefits-type"},{childtitle:"Companies",childlink:"/masterfile/companies"},{childtitle:"Dealerships",childlink:"/masterfile/dealerships"},{childtitle:"Departments",childlink:"/masterfile/departments"},{childtitle:"Divisions",childlink:"/masterfile/divisions"},{childtitle:"Document Type",childlink:"/masterfile/document-type"},{childtitle:"Visa Type",childlink:"/masterfile/visa-type"},{childtitle:"Citizenship",childlink:"/masterfile/citizenship"},{childtitle:"Civil Status",childlink:"/masterfile/civil-status"},{childtitle:"Religion",childlink:"/masterfile/religion"},{childtitle:"Employment Type",childlink:"/masterfile/employment-type"},{childtitle:"Work Suspension",childlink:"/masterfile/work-suspension"},{childtitle:"Group Division",childlink:"/masterfile/groups"},{childtitle:"Holiday",childlink:"/masterfile/holiday"},{childtitle:"Job Title",childlink:"/masterfile/job-title"},{childtitle:"Leave Types",childlink:"/masterfile/leave-types"},{childtitle:"Loan Type",childlink:"/masterfile/loan-type"},{childtitle:"Nature of Request",childlink:"/masterfile/nature-of-request"},{childtitle:"Organization Unit",childlink:"/masterfile/organization-unit"},{childtitle:"Phic Table",childlink:"/payroll/phic-table"},{childtitle:"Pag-Ibig Table",childlink:"/payroll/pag-ibig-table"},{childtitle:"SSS Table",childlink:"/payroll/sss-table"},{childtitle:"Tax Table",childlink:"/payroll/tax-table"},{childtitle:"Schedule Shift",childlink:"/masterfile/schedule-shift"},{childtitle:"Sections",childlink:"/masterfile/sections"},{childtitle:"Salary Grade",childlink:"/masterfile/salary-grade"},{childtitle:"Supporting Documents",childlink:"/masterfile/supporting-documents"},{childtitle:"Unit",childlink:"/masterfile/unit"}]},{title:"Meeting Calendar",icon:"mdi:virtual-meeting",child:[{childtitle:"Calendar",childlink:"/meeting-calendar/calendar"}]},{title:"Saperation Module",icon:"solar:user-minus-rounded-bold",child:[{childtitle:"Uploading of Resignation Letter",childlink:"/seperation-module/resignation-letter"}]},{title:"Settings",icon:"solar:settings-bold",child:[{childtitle:"Device Registration",childlink:"/settings/device-registration"},{childtitle:"Menu",childlink:"/settings/menus"},{childtitle:"Module",childlink:"/settings/modules"},{childtitle:"Permissions",childlink:"/settings/permissions"},{childtitle:"Role Group",childlink:"/settings/role-group"},{childtitle:"Roles",childlink:"/settings/roles"},{childtitle:"Transaction Audit",childlink:"/settings/transaction-audit"},{childtitle:"User",childlink:"/settings/users"}]},{title:"Reports & Analytics",icon:"solar:documents-bold-duotone",isOpen:!0,link:"/reports"}],Of=[{title:"Wade Warren",desc:"Hi! How are you doing?.....",active:!0,hasnotifaction:!0,notification_count:1,image:Eo,link:"#"},{title:"Savannah Nguyen",desc:"Hi! How are you doing?.....",active:!1,hasnotifaction:!1,image:Na,link:"#"},{title:"Ralph Edwards",desc:"Hi! How are you doing?.....",active:!1,hasnotifaction:!0,notification_count:8,image:ja,link:"#"},{title:"Cody Fisher",desc:"Hi! How are you doing?.....",active:!0,hasnotifaction:!1,image:Fa,link:"#"},{title:"Savannah Nguyen",desc:"Hi! How are you doing?.....",active:!1,hasnotifaction:!1,image:Na,link:"#"},{title:"Ralph Edwards",desc:"Hi! How are you doing?.....",active:!1,hasnotifaction:!0,notification_count:8,image:ja,link:"#"},{title:"Cody Fisher",desc:"Hi! How are you doing?.....",active:!0,hasnotifaction:!1,image:Fa,link:"#"}],Af=[{isHeadr:!0,title:"DASHBOARD"},{title:"Dashboard",icon:"heroicons-outline:home",link:"/app/home",child:[{childtitle:"Analytics Dashboard",childlink:"home",childicon:"heroicons:presentation-chart-line"},{childtitle:"Ecommerce Dashboard",childlink:"ecommerce",childicon:"heroicons:shopping-cart"},{childtitle:"Project Dashboard",childlink:"project",childicon:"heroicons:briefcase"},{childtitle:"CRM Dashboard",childlink:"crm",childicon:"ri:customer-service-2-fill"},{childtitle:"Banking Dashboard",childlink:"banking",childicon:"heroicons:wrench-screwdriver"}]},{title:"App",icon:"heroicons-outline:chip",link:"/app/home",child:[{childtitle:"Calendar",childlink:"calender",childicon:"heroicons-outline:calendar"},{childtitle:"Kanban",childlink:"kanban",childicon:"heroicons-outline:view-boards"},{childtitle:"Todo",childlink:"todo",childicon:"heroicons-outline:clipboard-check"},{childtitle:"Projects",childlink:"projects",childicon:"heroicons-outline:document"}]},{title:"Pages",icon:"heroicons-outline:view-boards",link:"/app/home",megamenu:[{megamenutitle:"Authentication",megamenuicon:"heroicons-outline:user",singleMegamenu:[{m_childtitle:"Signin One",m_childlink:"/"},{m_childtitle:"Signin Two",m_childlink:"/login2"},{m_childtitle:"Signin Three",m_childlink:"/login3"},{m_childtitle:"Signup One",m_childlink:"/register"},{m_childtitle:"Signup Two",m_childlink:"/register/register2"},{m_childtitle:"Signup Three",m_childlink:"/register/register3"},{m_childtitle:"Forget Password One",m_childlink:"/forgot-password"},{m_childtitle:"Forget Password Two",m_childlink:"/forgot-password2"},{m_childtitle:"Forget Password Three",m_childlink:"/forgot-password3"},{m_childtitle:"Lock Screen One",m_childlink:"/lock-screen"},{m_childtitle:"Lock Screen Two",m_childlink:"/lock-screen2"},{m_childtitle:"Lock Screen Three",m_childlink:"/lock-screen3"}]},{megamenutitle:"Components",megamenuicon:"heroicons-outline:user",singleMegamenu:[{m_childtitle:"typography",m_childlink:"typography"},{m_childtitle:"colors",m_childlink:"colors"},{m_childtitle:"alert",m_childlink:"alert"},{m_childtitle:"button",m_childlink:"button"},{m_childtitle:"card",m_childlink:"card"},{m_childtitle:"carousel",m_childlink:"carousel"},{m_childtitle:"dropdown",m_childlink:"dropdown"},{m_childtitle:"image",m_childlink:"image"},{m_childtitle:"modal",m_childlink:"modal"},{m_childtitle:"Progress bar",m_childlink:"progress-bar"},{m_childtitle:"Placeholder",m_childlink:"placeholder"},{m_childtitle:"Tab & Accordion",m_childlink:"tab-accordion"}]},{megamenutitle:"Forms",megamenuicon:"heroicons-outline:user",singleMegamenu:[{m_childtitle:"Input",m_childlink:"input"},{m_childtitle:"Input group",m_childlink:"input-group"},{m_childtitle:"Input layout",m_childlink:"input-layout"},{m_childtitle:"Form validation",m_childlink:"form-validation"},{m_childtitle:"Wizard",m_childlink:"form-wizard"},{m_childtitle:"Input mask",m_childlink:"input-mask"},{m_childtitle:"File input",m_childlink:"file-input"},{m_childtitle:"Form repeater",m_childlink:"form-repeater"},{m_childtitle:"Textarea",m_childlink:"textarea"},{m_childtitle:"Checkbox",m_childlink:"checkbox"},{m_childtitle:"Radio button",m_childlink:"radio-button"},{m_childtitle:"Switch",m_childlink:"switch"}]},{megamenutitle:"Utility",megamenuicon:"heroicons-outline:user",singleMegamenu:[{m_childtitle:"Invoice",m_childlink:"invoice"},{m_childtitle:"Pricing",m_childlink:"pricing"},{m_childtitle:"Testimonial",m_childlink:"testimonial"},{m_childtitle:"FAQ",m_childlink:"faq"},{m_childtitle:"Blog",m_childlink:"blog"},{m_childtitle:"404 page",m_childlink:"/404"},{m_childtitle:"Coming Soon",m_childlink:"/coming-soon"},{m_childtitle:"Under Maintanance page",m_childlink:"/under-construction"}]}]},{isHeadr:!0,title:"PAGES"},{title:"Widgets",icon:"heroicons-outline:view-grid-add",link:"form-elements",child:[{childtitle:"Basic",childlink:"basic",childicon:"heroicons-outline:document-text"},{childtitle:"Statistic",childlink:"statistic",childicon:"heroicons-outline:document-text"}]},{title:"Extra",icon:"heroicons-outline:template",child:[{childtitle:"Basic Table",childlink:"table-basic",childicon:"heroicons-outline:table"},{childtitle:"Advanced table",childlink:"table-advanced",childicon:"heroicons-outline:table"},{childtitle:"Apex chart",childlink:"appex-chart",childicon:"heroicons-outline:chart-bar"},{childtitle:"Chart js",childlink:"chartjs",childicon:"heroicons-outline:chart-bar"},{childtitle:"Map",childlink:"map",childicon:"heroicons-outline:map"}]}];const Ef={components:{Icon:Pe},data(){return{pendingCount:[],activeSubmenu:null}},props:{title:{type:String,default:""},icon:{type:String,default:""},link:{type:String,default:""},items:{type:Array,required:!0},childrenLinks:{type:Array,default:null}},computed:{getPendingCount(){return i=>({"/attendance/leave-approval":this.pendingCount.leave,"/attendance/monthly-schedule-approvals":this.pendingCount.monthly_schedule,"/attendance/time-adjustment-approval":this.pendingCount.time_adjustment,"/attendance/overtime-approval":this.pendingCount.overtime,"/attendance/undertime-approval":this.pendingCount.undertime,"/attendance/wfh-approval":this.pendingCount.wfh,"/attendance/change-schedule-approval":this.pendingCount.change_schedule,"/attendance/official-business-approval":this.pendingCount.ob,"/attendance/offset-approval":this.pendingCount.offset_earning+this.pendingCount.offset_availment})[i]||0}},methods:{beforeEnter(i){requestAnimationFrame(()=>{i.style.height||(i.style.height="0px"),i.style.display=null})},enter(i){requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.style.height=`${i.scrollHeight}px`})})},afterEnter(i){i.style.height=null},beforeLeave(i){requestAnimationFrame(()=>{i.style.height||(i.style.height=`${i.offsetHeight}px`)})},leave(i){requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.style.height="0px"})})},afterLeave(i){i.style.height=null},toggleSubmenu(i){this.activeSubmenu===i?this.activeSubmenu=null:this.activeSubmenu=i,localStorage.setItem("activeSubmenu",this.activeSubmenu)}},async mounted(){this.pendingCount=await this.$fetchAttendanceRequestStatus()},watch:{$route(){this.$store.themeSettingsStore.mobielSidebar&&(this.$store.themeSettingsStore.mobielSidebar=!1),this.items.forEach(i=>{i.link===this.$route.name&&(this.activeSubmenu=null)})}},created(){const i=localStorage.getItem("activeSubmenu");i!==null&&(this.activeSubmenu=parseInt(i));const e=sd();this.items.map((t,r)=>{var n;(n=t.child)==null||n.map(a=>{a.childlink===e.currentRoute.value.name&&(this.activeSubmenu=r)})})}},Tf={class:"mb-[96px]"},If={key:0,class:"menu-icon flex-grow-0"},Cf={key:1,class:"text-box flex-grow"},Mf={key:2,class:"menu-badge"},Rf={key:1,class:"menulabel"},Pf={class:"flex-1 flex items-start relative"},$f={class:"menu-icon relative"},Lf={key:0,class:"absolute top-0 right-0 bg-pink-500 text-white p-1 rounded-full flex items-center justify-center font-bold",style:{transform:"translate(50%, -50%)",width:"16px",height:"16px","font-size":"10px"}},Df={key:0,class:"text-box"},zf={class:"flex-0"},Bf=["onClick"],Nf={class:"flex-1 flex items-start"},jf={class:"menu-icon"},Ff={key:0,class:"text-box"},Vf={class:"flex-0"},Wf={key:0,class:"sub-menu"},Hf={class:"flex items-center space-x-3 rtl:space-x-reverse"},qf={key:0,class:"bg-pink-500 text-white rounded-full flex items-center justify-center font-bold",style:{width:"20px",height:"20px","font-size":"10px"}};function Uf(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link");return w(),I("ul",Tf,[(w(!0),I(ae,null,fe(t.items,(o,c)=>(w(),I("li",{key:c,class:P([` ${o.child?"item-has-children":""} ${n.activeSubmenu===c?"open":""} ${this.$route.name===o.link&&o.link!=="#"?"menu-item-active":""} `,"single-sidebar-menu"])},[!o.child&&!o.isHeadr?(w(),Q(l,{key:0,to:`${o.link}`,class:"menu-link"},{default:F(()=>[o.icon?(w(),I("span",If,[$(s,{icon:o.icon},null,8,["icon"])])):L("",!0),o.title?(w(),I("div",Cf,X(o.title),1)):L("",!0),o.badge?(w(),I("span",Mf,X(o.badge),1)):L("",!0)]),_:2},1032,["to"])):o.isHeadr&&!o.child?(w(),I("div",Rf,X(o.title),1)):(w(),I(ae,{key:2},[o.link?(w(),Q(l,{key:0,to:o.link,class:P(["menu-link",n.activeSubmenu===c?"parent_active not-collapsed":"collapsed"]),onClick:u=>a.toggleSubmenu(c)},{default:F(()=>[g("div",Pf,[Te(g("span",$f,[$(s,{icon:o.icon},null,8,["icon"]),$(Ge,{name:"fade"},{default:F(()=>[o.title==="Attendance Approvals"&&n.pendingCount.overall!=0&&n.activeSubmenu!==c?(w(),I("span",Lf,X(n.pendingCount.overall),1)):L("",!0)]),_:2},1024)],512),[[vn,o.icon]]),o.title?(w(),I("div",Df,X(o.title),1)):L("",!0)]),g("div",zf,[g("div",{class:P(["menu-arrow transform transition-all duration-300",n.activeSubmenu===c?"ltr:rotate-90 rtl:rotate-90":"rtl:rotate-180"])},[$(s,{icon:"heroicons-outline:chevron-right"})],2)])]),_:2},1032,["to","class","onClick"])):(w(),I("div",{key:1,class:P(["menu-link",n.activeSubmenu===c?"parent_active not-collapsed":"collapsed"]),onClick:u=>a.toggleSubmenu(c)},[g("div",Nf,[Te(g("span",jf,[$(s,{icon:o.icon},null,8,["icon"])],512),[[vn,o.icon]]),o.title?(w(),I("div",Ff,X(o.title),1)):L("",!0)]),g("div",Vf,[g("div",{class:P(["menu-arrow transform transition-all duration-300",n.activeSubmenu===c?"ltr:rotate-90 rtl:rotate-90":"rtl:rotate-180"])},[$(s,{icon:"heroicons-outline:chevron-right"})],2)])],10,Bf))],64)),$(Ge,{"enter-active-class":"submenu_enter-active","leave-active-class":"submenu_leave-active",onBeforeEnter:a.beforeEnter,onEnter:a.enter,onAfterEnter:a.afterEnter,onBeforeLeave:a.beforeLeave,onLeave:a.leave,onAfterLeave:a.afterLeave},{default:F(()=>[$(Ge,{name:"fade"},{default:F(()=>[c===n.activeSubmenu?(w(),I("ul",Wf,[(w(!0),I(ae,null,fe(o.child,(u,d)=>(w(),I("li",{key:d,class:"block ltr:ml-10 rtl:pr-4 ltr:pr-1 rtl:-l-1 mb-4 first:mt-4"},[$(l,{to:u.childlink},{default:F(({isActive:f})=>[g("span",{class:P(["text-sm flex items-center justify-between transition-all duration-150",u.childlink!=="#"&&f?"text-slate-900 dark:text-white font-medium":"text-slate-600 dark:text-slate-300"])},[g("span",Hf,[g("span",{class:P(["h-2 w-2 rounded-full border border-slate-600 dark:border-slate-300",u.childlink!=="#"&&f?"bg-slate-900 dark:bg-slate-300 ring-4 ring-opacity-20 ring-black dark:ring-slate-300":""])},null,2),g("span",null,X(u.childtitle),1)]),a.getPendingCount(u.childlink)>0?(w(),I("div",qf,X(a.getPendingCount(u.childlink)),1)):L("",!0)],2)]),_:2},1032,["to"])]))),128))])):L("",!0)]),_:2},1024)]),_:2},1032,["onBeforeEnter","onEnter","onAfterEnter","onBeforeLeave","onLeave","onAfterLeave"])],2))),128))])}const Io=se(Ef,[["render",Uf]]);const Gf=br(),Yf=$e({components:{Icon:rd,Navmenu:Io},data(){return{menuItems:To,openClass:"w-[248px]",closeClass:"w-[72px] close_sidebar"}},methods:{toggleMsidebar(){Gf.toggleMsidebar()}},computed:{menus(){const i=this.$store.userSettings.getMenuItems;return console.log("this is the menu",i),i&&i.hr?i.hr:[]}}}),Xf={class:"logo-segment flex justify-between items-center px-4 py-6"},Kf={key:0,class:"h-24",src:Tn,alt:""},Qf={key:1,class:"h-24",src:In,alt:""},Zf={class:"sidebar-menu px-4 h-[calc(100%-100px)] overflow-y-scroll","data-simplebar":""};function Jf(i,e,t,r,n,a){const s=D("router-link"),l=D("Icon"),o=D("Navmenu");return w(),I("div",{class:P(`mobile-sidebar bg-white dark:bg-slate-800 ${this.$store.themeSettingsStore.theme==="bordered"?"border border-gray-5002":"shadow-base"} `)},[g("div",Xf,[$(s,{to:{name:"home"}},{default:F(()=>[this.$store.themeSettingsStore.isDark?L("",!0):(w(),I("img",Kf)),this.$store.themeSettingsStore.isDark?(w(),I("img",Qf)):L("",!0)]),_:1}),g("span",{class:"cursor-pointer text-slate-900 dark:text-white text-2xl",onClick:e[0]||(e[0]=(...c)=>i.toggleMsidebar&&i.toggleMsidebar(...c))},[$(l,{icon:"heroicons:x-mark"})])]),g("div",Zf,[$(o,{items:i.menus},null,8,["items"])])],2)}const eh=se(Yf,[["render",Jf],["__scopeId","data-v-c22f2279"]]),wr={data(){return{window:{width:0,height:0}}},methods:{handleResize(){this.window.width=window.innerWidth}},created(){window.addEventListener("resize",this.handleResize),this.handleResize()},destroyed(){window.removeEventListener("resize",this.handleResize)}},th={methods:{footerClass(){switch(this.$store.themeSettingsStore.footerType){case"sticky":return"sticky bottom-0 z-[999]";case"static":return"static";case"hidden":return"hidden"}}}};function ih(i,e,t,r,n,a){return w(),I("footer",{class:P(a.footerClass())},e[0]||(e[0]=[ad('<div class="site-footer px-6 bg-white dark:bg-slate-800 text-slate-500 dark:text-slate-300 py-4"><div class="grid md:grid-cols-2 grid-cols-1 md:gap-5"><div class="text-center ltr:md:text-start rtl:md:text-right text-sm"> COPYRIGHT © 2024 AHG-HR, All rights Reserved </div><div class="ltr:md:text-right rtl:md:text-end text-center text-sm"> Crafted by: <a href="javascript:void(0)" class="text-primary-500 font-semibold"> AHG AppDev </a></div></div></div>',1)]),2)}const nh=se(th,[["render",ih]]);function Ti(i,e,t){let r=t.initialDeps??[],n;return()=>{var a,s,l,o;let c;t.key&&((a=t.debug)!=null&&a.call(t))&&(c=Date.now());const u=i();if(!(u.length!==r.length||u.some((p,m)=>r[m]!==p)))return n;r=u;let f;if(t.key&&((s=t.debug)!=null&&s.call(t))&&(f=Date.now()),n=e(...u),t.key&&((l=t.debug)!=null&&l.call(t))){const p=Math.round((Date.now()-c)*100)/100,m=Math.round((Date.now()-f)*100)/100,h=m/16,y=(x,k)=>{for(x=String(x);x.length<k;)x=" "+x;return x};console.info(`%c⏱ ${y(m,5)} /${y(p,5)} ms`,` font-size: .6rem; font-weight: bold; color: hsl(${Math.max(0,Math.min(120-120*h,120))}deg 100% 31%);`,t==null?void 0:t.key)}return(o=t==null?void 0:t.onChange)==null||o.call(t,n),n}}function Gr(i,e){if(i===void 0)throw new Error(`Unexpected undefined${e?`: ${e}`:""}`);return i}const rh=(i,e)=>Math.abs(i-e)<1,sh=(i,e,t)=>{let r;return function(...n){i.clearTimeout(r),r=i.setTimeout(()=>e.apply(this,n),t)}},ah=i=>i,lh=i=>{const e=Math.max(i.startIndex-i.overscan,0),t=Math.min(i.endIndex+i.overscan,i.count-1),r=[];for(let n=e;n<=t;n++)r.push(n);return r},oh=(i,e)=>{const t=i.scrollElement;if(!t)return;const r=i.targetWindow;if(!r)return;const n=s=>{const{width:l,height:o}=s;e({width:Math.round(l),height:Math.round(o)})};if(n(t.getBoundingClientRect()),!r.ResizeObserver)return()=>{};const a=new r.ResizeObserver(s=>{const l=s[0];if(l!=null&&l.borderBoxSize){const o=l.borderBoxSize[0];if(o){n({width:o.inlineSize,height:o.blockSize});return}}n(t.getBoundingClientRect())});return a.observe(t,{box:"border-box"}),()=>{a.unobserve(t)}},Va={passive:!0},uh=typeof window>"u"?!0:"onscrollend"in window,ch=(i,e)=>{const t=i.scrollElement;if(!t)return;const r=i.targetWindow;if(!r)return;let n=0;const a=i.options.useScrollendEvent&&uh?()=>{}:sh(r,()=>{e(n,!1)},i.options.isScrollingResetDelay),s=c=>()=>{const{horizontal:u,isRtl:d}=i.options;n=u?t.scrollLeft*(d&&-1||1):t.scrollTop,a(),e(n,c)},l=s(!0),o=s(!1);return o(),t.addEventListener("scroll",l,Va),t.addEventListener("scrollend",o,Va),()=>{t.removeEventListener("scroll",l),t.removeEventListener("scrollend",o)}},dh=(i,e,t)=>{if(e!=null&&e.borderBoxSize){const r=e.borderBoxSize[0];if(r)return Math.round(r[t.options.horizontal?"inlineSize":"blockSize"])}return Math.round(i.getBoundingClientRect()[t.options.horizontal?"width":"height"])},fh=(i,{adjustments:e=0,behavior:t},r)=>{var n,a;const s=i+e;(a=(n=r.scrollElement)==null?void 0:n.scrollTo)==null||a.call(n,{[r.options.horizontal?"left":"top"]:s,behavior:t})};class hh{constructor(e){this.unsubs=[],this.scrollElement=null,this.targetWindow=null,this.isScrolling=!1,this.scrollToIndexTimeoutId=null,this.measurementsCache=[],this.itemSizeCache=new Map,this.pendingMeasuredCacheIndexes=[],this.scrollRect=null,this.scrollOffset=null,this.scrollDirection=null,this.scrollAdjustments=0,this.elementsCache=new Map,this.observer=(()=>{let t=null;const r=()=>t||(!this.targetWindow||!this.targetWindow.ResizeObserver?null:t=new this.targetWindow.ResizeObserver(n=>{n.forEach(a=>{this._measureElement(a.target,a)})}));return{disconnect:()=>{var n;(n=r())==null||n.disconnect(),t=null},observe:n=>{var a;return(a=r())==null?void 0:a.observe(n,{box:"border-box"})},unobserve:n=>{var a;return(a=r())==null?void 0:a.unobserve(n)}}})(),this.range=null,this.setOptions=t=>{Object.entries(t).forEach(([r,n])=>{typeof n>"u"&&delete t[r]}),this.options={debug:!1,initialOffset:0,overscan:1,paddingStart:0,paddingEnd:0,scrollPaddingStart:0,scrollPaddingEnd:0,horizontal:!1,getItemKey:ah,rangeExtractor:lh,onChange:()=>{},measureElement:dh,initialRect:{width:0,height:0},scrollMargin:0,gap:0,indexAttribute:"data-index",initialMeasurementsCache:[],lanes:1,isScrollingResetDelay:150,enabled:!0,isRtl:!1,useScrollendEvent:!0,...t}},this.notify=t=>{var r,n;(n=(r=this.options).onChange)==null||n.call(r,this,t)},this.maybeNotify=Ti(()=>(this.calculateRange(),[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]),t=>{this.notify(t)},{key:!1,debug:()=>this.options.debug,initialDeps:[this.isScrolling,this.range?this.range.startIndex:null,this.range?this.range.endIndex:null]}),this.cleanup=()=>{this.unsubs.filter(Boolean).forEach(t=>t()),this.unsubs=[],this.observer.disconnect(),this.scrollElement=null,this.targetWindow=null},this._didMount=()=>()=>{this.cleanup()},this._willUpdate=()=>{var t;const r=this.options.enabled?this.options.getScrollElement():null;if(this.scrollElement!==r){if(this.cleanup(),!r){this.maybeNotify();return}this.scrollElement=r,this.scrollElement&&"ownerDocument"in this.scrollElement?this.targetWindow=this.scrollElement.ownerDocument.defaultView:this.targetWindow=((t=this.scrollElement)==null?void 0:t.window)??null,this.elementsCache.forEach(n=>{this.observer.observe(n)}),this._scrollToOffset(this.getScrollOffset(),{adjustments:void 0,behavior:void 0}),this.unsubs.push(this.options.observeElementRect(this,n=>{this.scrollRect=n,this.maybeNotify()})),this.unsubs.push(this.options.observeElementOffset(this,(n,a)=>{this.scrollAdjustments=0,this.scrollDirection=a?this.getScrollOffset()<n?"forward":"backward":null,this.scrollOffset=n,this.isScrolling=a,this.maybeNotify()}))}},this.getSize=()=>this.options.enabled?(this.scrollRect=this.scrollRect??this.options.initialRect,this.scrollRect[this.options.horizontal?"width":"height"]):(this.scrollRect=null,0),this.getScrollOffset=()=>this.options.enabled?(this.scrollOffset=this.scrollOffset??(typeof this.options.initialOffset=="function"?this.options.initialOffset():this.options.initialOffset),this.scrollOffset):(this.scrollOffset=null,0),this.getFurthestMeasurement=(t,r)=>{const n=new Map,a=new Map;for(let s=r-1;s>=0;s--){const l=t[s];if(n.has(l.lane))continue;const o=a.get(l.lane);if(o==null||l.end>o.end?a.set(l.lane,l):l.end<o.end&&n.set(l.lane,!0),n.size===this.options.lanes)break}return a.size===this.options.lanes?Array.from(a.values()).sort((s,l)=>s.end===l.end?s.index-l.index:s.end-l.end)[0]:void 0},this.getMeasurementOptions=Ti(()=>[this.options.count,this.options.paddingStart,this.options.scrollMargin,this.options.getItemKey,this.options.enabled],(t,r,n,a,s)=>(this.pendingMeasuredCacheIndexes=[],{count:t,paddingStart:r,scrollMargin:n,getItemKey:a,enabled:s}),{key:!1}),this.getMeasurements=Ti(()=>[this.getMeasurementOptions(),this.itemSizeCache],({count:t,paddingStart:r,scrollMargin:n,getItemKey:a,enabled:s},l)=>{if(!s)return this.measurementsCache=[],this.itemSizeCache.clear(),[];this.measurementsCache.length===0&&(this.measurementsCache=this.options.initialMeasurementsCache,this.measurementsCache.forEach(u=>{this.itemSizeCache.set(u.key,u.size)}));const o=this.pendingMeasuredCacheIndexes.length>0?Math.min(...this.pendingMeasuredCacheIndexes):0;this.pendingMeasuredCacheIndexes=[];const c=this.measurementsCache.slice(0,o);for(let u=o;u<t;u++){const d=a(u),f=this.options.lanes===1?c[u-1]:this.getFurthestMeasurement(c,u),p=f?f.end+this.options.gap:r+n,m=l.get(d),h=typeof m=="number"?m:this.options.estimateSize(u),y=p+h,x=f?f.lane:u%this.options.lanes;c[u]={index:u,start:p,size:h,end:y,key:d,lane:x}}return this.measurementsCache=c,c},{key:!1,debug:()=>this.options.debug}),this.calculateRange=Ti(()=>[this.getMeasurements(),this.getSize(),this.getScrollOffset()],(t,r,n)=>this.range=t.length>0&&r>0?ph({measurements:t,outerSize:r,scrollOffset:n}):null,{key:!1,debug:()=>this.options.debug}),this.getIndexes=Ti(()=>[this.options.rangeExtractor,this.calculateRange(),this.options.overscan,this.options.count],(t,r,n,a)=>r===null?[]:t({startIndex:r.startIndex,endIndex:r.endIndex,overscan:n,count:a}),{key:!1,debug:()=>this.options.debug}),this.indexFromElement=t=>{const r=this.options.indexAttribute,n=t.getAttribute(r);return n?parseInt(n,10):(console.warn(`Missing attribute name '${r}={index}' on measured element.`),-1)},this._measureElement=(t,r)=>{const n=this.indexFromElement(t),a=this.measurementsCache[n];if(!a)return;const s=a.key,l=this.elementsCache.get(s);l!==t&&(l&&this.observer.unobserve(l),this.observer.observe(t),this.elementsCache.set(s,t)),t.isConnected&&this.resizeItem(n,this.options.measureElement(t,r,this))},this.resizeItem=(t,r)=>{const n=this.measurementsCache[t];if(!n)return;const a=this.itemSizeCache.get(n.key)??n.size,s=r-a;s!==0&&((this.shouldAdjustScrollPositionOnItemSizeChange!==void 0?this.shouldAdjustScrollPositionOnItemSizeChange(n,s,this):n.start<this.getScrollOffset()+this.scrollAdjustments)&&this._scrollToOffset(this.getScrollOffset(),{adjustments:this.scrollAdjustments+=s,behavior:void 0}),this.pendingMeasuredCacheIndexes.push(n.index),this.itemSizeCache=new Map(this.itemSizeCache.set(n.key,r)),this.notify(!1))},this.measureElement=t=>{if(!t){this.elementsCache.forEach((r,n)=>{r.isConnected||(this.observer.unobserve(r),this.elementsCache.delete(n))});return}this._measureElement(t,void 0)},this.getVirtualItems=Ti(()=>[this.getIndexes(),this.getMeasurements()],(t,r)=>{const n=[];for(let a=0,s=t.length;a<s;a++){const l=t[a],o=r[l];n.push(o)}return n},{key:!1,debug:()=>this.options.debug}),this.getVirtualItemForOffset=t=>{const r=this.getMeasurements();if(r.length!==0)return Gr(r[Co(0,r.length-1,n=>Gr(r[n]).start,t)])},this.getOffsetForAlignment=(t,r)=>{const n=this.getSize(),a=this.getScrollOffset();r==="auto"&&(t<=a?r="start":t>=a+n?r="end":r="start"),r==="start"?t=t:r==="end"?t=t-n:r==="center"&&(t=t-n/2);const s=this.options.horizontal?"scrollWidth":"scrollHeight",o=(this.scrollElement?"document"in this.scrollElement?this.scrollElement.document.documentElement[s]:this.scrollElement[s]:0)-n;return Math.max(Math.min(o,t),0)},this.getOffsetForIndex=(t,r="auto")=>{t=Math.max(0,Math.min(t,this.options.count-1));const n=this.measurementsCache[t];if(!n)return;const a=this.getSize(),s=this.getScrollOffset();if(r==="auto")if(n.end>=s+a-this.options.scrollPaddingEnd)r="end";else if(n.start<=s+this.options.scrollPaddingStart)r="start";else return[s,r];const l=r==="end"?n.end+this.options.scrollPaddingEnd:n.start-this.options.scrollPaddingStart;return[this.getOffsetForAlignment(l,r),r]},this.isDynamicMode=()=>this.elementsCache.size>0,this.cancelScrollToIndex=()=>{this.scrollToIndexTimeoutId!==null&&this.targetWindow&&(this.targetWindow.clearTimeout(this.scrollToIndexTimeoutId),this.scrollToIndexTimeoutId=null)},this.scrollToOffset=(t,{align:r="start",behavior:n}={})=>{this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getOffsetForAlignment(t,r),{adjustments:void 0,behavior:n})},this.scrollToIndex=(t,{align:r="auto",behavior:n}={})=>{t=Math.max(0,Math.min(t,this.options.count-1)),this.cancelScrollToIndex(),n==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size.");const a=this.getOffsetForIndex(t,r);if(!a)return;const[s,l]=a;this._scrollToOffset(s,{adjustments:void 0,behavior:n}),n!=="smooth"&&this.isDynamicMode()&&this.targetWindow&&(this.scrollToIndexTimeoutId=this.targetWindow.setTimeout(()=>{if(this.scrollToIndexTimeoutId=null,this.elementsCache.has(this.options.getItemKey(t))){const[c]=Gr(this.getOffsetForIndex(t,l));rh(c,this.getScrollOffset())||this.scrollToIndex(t,{align:l,behavior:n})}else this.scrollToIndex(t,{align:l,behavior:n})}))},this.scrollBy=(t,{behavior:r}={})=>{this.cancelScrollToIndex(),r==="smooth"&&this.isDynamicMode()&&console.warn("The `smooth` scroll behavior is not fully supported with dynamic size."),this._scrollToOffset(this.getScrollOffset()+t,{adjustments:void 0,behavior:r})},this.getTotalSize=()=>{var t;const r=this.getMeasurements();let n;return r.length===0?n=this.options.paddingStart:n=this.options.lanes===1?((t=r[r.length-1])==null?void 0:t.end)??0:Math.max(...r.slice(-this.options.lanes).map(a=>a.end)),Math.max(n-this.options.scrollMargin+this.options.paddingEnd,0)},this._scrollToOffset=(t,{adjustments:r,behavior:n})=>{this.options.scrollToFn(t,{behavior:n,adjustments:r},this)},this.measure=()=>{this.itemSizeCache=new Map,this.notify(!1)},this.setOptions(e)}}const Co=(i,e,t,r)=>{for(;i<=e;){const n=(i+e)/2|0,a=t(n);if(a<r)i=n+1;else if(a>r)e=n-1;else return n}return i>0?i-1:0};function ph({measurements:i,outerSize:e,scrollOffset:t}){const r=i.length-1,a=Co(0,r,l=>i[l].start,t);let s=a;for(;s<r&&i[s].end<t+e;)s++;return{startIndex:a,endIndex:s}}function vh(i){const e=new hh(Et(i)),t=li(e),r=e._didMount();return xe(()=>Et(i).getScrollElement(),n=>{n&&e._willUpdate()},{immediate:!0}),xe(()=>Et(i),n=>{e.setOptions({...n,onChange:(a,s)=>{var l;Pa(t),(l=n.onChange)==null||l.call(n,a,s)}}),e._willUpdate(),Pa(t)},{immediate:!0}),ld(r),t}function mh(i){return vh(j(()=>({observeElementRect:oh,observeElementOffset:ch,scrollToFn:fh,...Et(i)})))}function Mo(i,e,t){let r=W(t==null?void 0:t.value),n=j(()=>i.value!==void 0);return[j(()=>n.value?i.value:r.value),function(a){return n.value||(r.value=a),e==null?void 0:e(a)}]}function gh(){let i=gs();return yr(()=>i.dispose()),i}function bh(){let i=gh();return e=>{i.dispose(),i.nextFrame(e)}}function Wa(i,e){if(i)return i;let t=e??"button";if(typeof t=="string"&&t.toLowerCase()==="button")return"button"}function Ro(i,e){let t=W(Wa(i.value.type,i.value.as));return Ke(()=>{t.value=Wa(i.value.type,i.value.as)}),Ut(()=>{var r;t.value||G(e)&&G(e)instanceof HTMLButtonElement&&!((r=G(e))!=null&&r.hasAttribute("type"))&&(t.value="button")}),t}function Ha(i){return[i.screenX,i.screenY]}function Hs(){let i=W([-1,-1]);return{wasMoved(e){let t=Ha(e);return i.value[0]===t[0]&&i.value[1]===t[1]?!1:(i.value=t,!0)},update(e){i.value=Ha(e)}}}function Po({container:i,accept:e,walk:t,enabled:r}){Ut(()=>{let n=i.value;if(!n||r!==void 0&&!r.value)return;let a=ao(i);if(!a)return;let s=Object.assign(o=>e(o),{acceptNode:e}),l=a.createTreeWalker(n,NodeFilter.SHOW_ELEMENT,s,!1);for(;l.nextNode();)t(l.currentNode)})}var $o=(i=>(i[i.Left=0]="Left",i[i.Right=2]="Right",i))($o||{});function yh(i){throw new Error("Unexpected object: "+i)}var J=(i=>(i[i.First=0]="First",i[i.Previous=1]="Previous",i[i.Next=2]="Next",i[i.Last=3]="Last",i[i.Specific=4]="Specific",i[i.Nothing=5]="Nothing",i))(J||{});function lr(i,e){let t=e.resolveItems();if(t.length<=0)return null;let r=e.resolveActiveIndex(),n=r??-1;switch(i.focus){case 0:{for(let a=0;a<t.length;++a)if(!e.resolveDisabled(t[a],a,t))return a;return r}case 1:{n===-1&&(n=t.length);for(let a=n-1;a>=0;--a)if(!e.resolveDisabled(t[a],a,t))return a;return r}case 2:{for(let a=n+1;a<t.length;++a)if(!e.resolveDisabled(t[a],a,t))return a;return r}case 3:{for(let a=t.length-1;a>=0;--a)if(!e.resolveDisabled(t[a],a,t))return a;return r}case 4:{for(let a=0;a<t.length;++a)if(e.resolveId(t[a],a,t)===i.id)return a;return r}case 5:return null;default:yh(i)}}function qs(i={},e=null,t=[]){for(let[r,n]of Object.entries(i))Do(t,Lo(e,r),n);return t}function Lo(i,e){return i?i+"["+e+"]":e}function Do(i,e,t){if(Array.isArray(t))for(let[r,n]of t.entries())Do(i,Lo(e,r.toString()),n);else t instanceof Date?i.push([e,t.toISOString()]):typeof t=="boolean"?i.push([e,t?"1":"0"]):typeof t=="string"?i.push([e,t]):typeof t=="number"?i.push([e,`${t}`]):t==null?i.push([e,""]):qs(t,e,i)}function _h(i,e){return i===e}var xh=(i=>(i[i.Open=0]="Open",i[i.Closed=1]="Closed",i))(xh||{}),Sh=(i=>(i[i.Single=0]="Single",i[i.Multi=1]="Multi",i))(Sh||{}),kh=(i=>(i[i.Pointer=0]="Pointer",i[i.Focus=1]="Focus",i[i.Other=2]="Other",i))(kh||{});let zo=Symbol("ComboboxContext");function Mn(i){let e=_r(zo,null);if(e===null){let t=new Error(`<${i} /> is missing a parent <Combobox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Mn),t}return e}let Bo=Symbol("VirtualContext"),wh=$e({name:"VirtualProvider",setup(i,{slots:e}){let t=Mn("VirtualProvider"),r=j(()=>{let l=G(t.optionsRef);if(!l)return{start:0,end:0};let o=window.getComputedStyle(l);return{start:parseFloat(o.paddingBlockStart||o.paddingTop),end:parseFloat(o.paddingBlockEnd||o.paddingBottom)}}),n=mh(j(()=>({scrollPaddingStart:r.value.start,scrollPaddingEnd:r.value.end,count:t.virtual.value.options.length,estimateSize(){return 40},getScrollElement(){return G(t.optionsRef)},overscan:12}))),a=j(()=>{var l;return(l=t.virtual.value)==null?void 0:l.options}),s=W(0);return xe([a],()=>{s.value+=1}),An(Bo,t.virtual.value?n:null),()=>[Ni("div",{style:{position:"relative",width:"100%",height:`${n.value.getTotalSize()}px`},ref:l=>{if(l){if(typeof process<"u"&&{}.JEST_WORKER_ID!==void 0||t.activationTrigger.value===0)return;t.activeOptionIndex.value!==null&&t.virtual.value.options.length>t.activeOptionIndex.value&&n.value.scrollToIndex(t.activeOptionIndex.value)}}},n.value.getVirtualItems().map(l=>od(e.default({option:t.virtual.value.options[l.index],open:t.comboboxState.value===0})[0],{key:`${s.value}-${l.index}`,"data-index":l.index,"aria-setsize":t.virtual.value.options.length,"aria-posinset":l.index+1,style:{position:"absolute",top:0,left:0,transform:`translateY(${l.start}px)`,overflowAnchor:"none"}})))]}}),Oh=$e({name:"Combobox",emits:{"update:modelValue":i=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],nullable:!0,default:null},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},nullable:{type:Boolean,default:!1},multiple:{type:[Boolean],default:!1},immediate:{type:[Boolean],default:!1},virtual:{type:Object,default:null}},inheritAttrs:!1,setup(i,{slots:e,attrs:t,emit:r}){let n=W(1),a=W(null),s=W(null),l=W(null),o=W(null),c=W({static:!1,hold:!1}),u=W([]),d=W(null),f=W(2),p=W(!1);function m(C=R=>R){let R=d.value!==null?u.value[d.value]:null,M=C(u.value.slice()),z=M.length>0&&M[0].dataRef.order.value!==null?M.sort((H,q)=>H.dataRef.order.value-q.dataRef.order.value):Fs(M,H=>G(H.dataRef.domRef)),V=R?z.indexOf(R):null;return V===-1&&(V=null),{options:z,activeOptionIndex:V}}let h=j(()=>i.multiple?1:0),y=j(()=>i.nullable),[x,k]=Mo(j(()=>i.modelValue),C=>r("update:modelValue",C),j(()=>i.defaultValue)),v=j(()=>x.value===void 0?ze(h.value,{1:[],0:void 0}):x.value),S=null,_=null;function b(C){return ze(h.value,{0(){return k==null?void 0:k(C)},1:()=>{let R=Ae(O.value.value).slice(),M=Ae(C),z=R.findIndex(V=>O.compare(M,Ae(V)));return z===-1?R.push(M):R.splice(z,1),k==null?void 0:k(R)}})}let E=j(()=>{});xe([E],([C],[R])=>{if(O.virtual.value&&C&&R&&d.value!==null){let M=C.indexOf(R[d.value]);M!==-1?d.value=M:d.value=null}});let O={comboboxState:n,value:v,mode:h,compare(C,R){if(typeof i.by=="string"){let M=i.by;return(C==null?void 0:C[M])===(R==null?void 0:R[M])}return i.by===null?_h(C,R):i.by(C,R)},calculateIndex(C){return O.virtual.value?i.by===null?O.virtual.value.options.indexOf(C):O.virtual.value.options.findIndex(R=>O.compare(R,C)):u.value.findIndex(R=>O.compare(R.dataRef.value,C))},defaultValue:j(()=>i.defaultValue),nullable:y,immediate:j(()=>!1),virtual:j(()=>null),inputRef:s,labelRef:a,buttonRef:l,optionsRef:o,disabled:j(()=>i.disabled),options:u,change(C){k(C)},activeOptionIndex:j(()=>{if(p.value&&d.value===null&&(O.virtual.value?O.virtual.value.options.length>0:u.value.length>0)){if(O.virtual.value){let R=O.virtual.value.options.findIndex(M=>{var z;return!((z=O.virtual.value)!=null&&z.disabled(M))});if(R!==-1)return R}let C=u.value.findIndex(R=>!R.dataRef.disabled);if(C!==-1)return C}return d.value}),activationTrigger:f,optionsPropsRef:c,closeCombobox(){p.value=!1,!i.disabled&&n.value!==1&&(n.value=1,d.value=null)},openCombobox(){if(p.value=!0,!i.disabled&&n.value!==0){if(O.value.value){let C=O.calculateIndex(O.value.value);C!==-1&&(d.value=C)}n.value=0}},setActivationTrigger(C){f.value=C},goToOption(C,R,M){p.value=!1,S!==null&&cancelAnimationFrame(S),S=requestAnimationFrame(()=>{if(i.disabled||o.value&&!c.value.static&&n.value===1)return;if(O.virtual.value){d.value=C===J.Specific?R:lr({focus:C},{resolveItems:()=>O.virtual.value.options,resolveActiveIndex:()=>{var H,q;return(q=(H=O.activeOptionIndex.value)!=null?H:O.virtual.value.options.findIndex(U=>{var oe;return!((oe=O.virtual.value)!=null&&oe.disabled(U))}))!=null?q:null},resolveDisabled:H=>O.virtual.value.disabled(H),resolveId(){throw new Error("Function not implemented.")}}),f.value=M??2;return}let z=m();if(z.activeOptionIndex===null){let H=z.options.findIndex(q=>!q.dataRef.disabled);H!==-1&&(z.activeOptionIndex=H)}let V=C===J.Specific?R:lr({focus:C},{resolveItems:()=>z.options,resolveActiveIndex:()=>z.activeOptionIndex,resolveId:H=>H.id,resolveDisabled:H=>H.dataRef.disabled});d.value=V,f.value=M??2,u.value=z.options})},selectOption(C){let R=u.value.find(z=>z.id===C);if(!R)return;let{dataRef:M}=R;b(M.value)},selectActiveOption(){if(O.activeOptionIndex.value!==null){if(O.virtual.value)b(O.virtual.value.options[O.activeOptionIndex.value]);else{let{dataRef:C}=u.value[O.activeOptionIndex.value];b(C.value)}O.goToOption(J.Specific,O.activeOptionIndex.value)}},registerOption(C,R){let M=ro({id:C,dataRef:R});if(O.virtual.value){u.value.push(M);return}_&&cancelAnimationFrame(_);let z=m(V=>(V.push(M),V));d.value===null&&O.isSelected(R.value.value)&&(z.activeOptionIndex=z.options.indexOf(M)),u.value=z.options,d.value=z.activeOptionIndex,f.value=2,z.options.some(V=>!G(V.dataRef.domRef))&&(_=requestAnimationFrame(()=>{let V=m();u.value=V.options,d.value=V.activeOptionIndex}))},unregisterOption(C,R){if(S!==null&&cancelAnimationFrame(S),R&&(p.value=!0),O.virtual.value){u.value=u.value.filter(z=>z.id!==C);return}let M=m(z=>{let V=z.findIndex(H=>H.id===C);return V!==-1&&z.splice(V,1),z});u.value=M.options,d.value=M.activeOptionIndex,f.value=2},isSelected(C){return ze(h.value,{0:()=>O.compare(Ae(O.value.value),Ae(C)),1:()=>Ae(O.value.value).some(R=>O.compare(Ae(R),Ae(C)))})},isActive(C){return d.value===O.calculateIndex(C)}};Bs([s,l,o],()=>O.closeCombobox(),j(()=>n.value===0)),An(zo,O),Ns(j(()=>ze(n.value,{0:at.Open,1:at.Closed})));let T=j(()=>{var C;return(C=G(s))==null?void 0:C.closest("form")});return Ke(()=>{xe([T],()=>{if(!T.value||i.defaultValue===void 0)return;function C(){O.change(i.defaultValue)}return T.value.addEventListener("reset",C),()=>{var R;(R=T.value)==null||R.removeEventListener("reset",C)}},{immediate:!0})}),()=>{var C,R,M;let{name:z,disabled:V,form:H,...q}=i,U={open:n.value===0,disabled:V,activeIndex:O.activeOptionIndex.value,activeOption:O.activeOptionIndex.value===null?null:O.virtual.value?O.virtual.value.options[(C=O.activeOptionIndex.value)!=null?C:0]:(M=(R=O.options.value[O.activeOptionIndex.value])==null?void 0:R.dataRef.value)!=null?M:null,value:v.value};return Ni(ae,[...z!=null&&v.value!=null?qs({[z]:v.value}).map(([oe,ee])=>Ni(lo,oo({features:uo.Hidden,key:oe,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:H,disabled:V,name:oe,value:ee}))):[],ot({theirProps:{...t,...Sr(q,["by","defaultValue","immediate","modelValue","multiple","nullable","onUpdate:modelValue","virtual"])},ourProps:{},slot:U,slots:e,attrs:t,name:"Combobox"})])}}}),Ah=$e({name:"ComboboxInput",props:{as:{type:[Object,String],default:"input"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},displayValue:{type:Function},defaultValue:{type:String,default:void 0},id:{type:String,default:null}},emits:{change:i=>!0},setup(i,{emit:e,attrs:t,slots:r,expose:n}){var a;let s=(a=i.id)!=null?a:`headlessui-combobox-input-${Pt()}`,l=Mn("ComboboxInput"),o=j(()=>ao(G(l.inputRef))),c={value:!1};n({el:l.inputRef,$el:l.inputRef});function u(){l.change(null);let _=G(l.optionsRef);_&&(_.scrollTop=0),l.goToOption(J.Nothing)}let d=j(()=>{var _;let b=l.value.value;return G(l.inputRef)?typeof i.displayValue<"u"&&b!==void 0?(_=i.displayValue(b))!=null?_:"":typeof b=="string"?b:"":""});Ke(()=>{xe([d,l.comboboxState,o],([_,b],[E,O])=>{if(c.value)return;let T=G(l.inputRef);T&&((O===0&&b===1||_!==E)&&(T.value=_),requestAnimationFrame(()=>{var C;if(c.value||!T||((C=o.value)==null?void 0:C.activeElement)!==T)return;let{selectionStart:R,selectionEnd:M}=T;Math.abs((M??0)-(R??0))===0&&R===0&&T.setSelectionRange(T.value.length,T.value.length)}))},{immediate:!0}),xe([l.comboboxState],([_],[b])=>{if(_===0&&b===1){if(c.value)return;let E=G(l.inputRef);if(!E)return;let O=E.value,{selectionStart:T,selectionEnd:C,selectionDirection:R}=E;E.value="",E.value=O,R!==null?E.setSelectionRange(T,C,R):E.setSelectionRange(T,C)}})});let f=W(!1);function p(){f.value=!0}function m(){gs().nextFrame(()=>{f.value=!1})}let h=bh();function y(_){switch(c.value=!0,h(()=>{c.value=!1}),_.key){case Z.Enter:if(c.value=!1,l.comboboxState.value!==0||f.value)return;if(_.preventDefault(),_.stopPropagation(),l.activeOptionIndex.value===null){l.closeCombobox();return}l.selectActiveOption(),l.mode.value===0&&l.closeCombobox();break;case Z.ArrowDown:return c.value=!1,_.preventDefault(),_.stopPropagation(),ze(l.comboboxState.value,{0:()=>l.goToOption(J.Next),1:()=>l.openCombobox()});case Z.ArrowUp:return c.value=!1,_.preventDefault(),_.stopPropagation(),ze(l.comboboxState.value,{0:()=>l.goToOption(J.Previous),1:()=>{l.openCombobox(),Se(()=>{l.value.value||l.goToOption(J.Last)})}});case Z.Home:if(_.shiftKey)break;return c.value=!1,_.preventDefault(),_.stopPropagation(),l.goToOption(J.First);case Z.PageUp:return c.value=!1,_.preventDefault(),_.stopPropagation(),l.goToOption(J.First);case Z.End:if(_.shiftKey)break;return c.value=!1,_.preventDefault(),_.stopPropagation(),l.goToOption(J.Last);case Z.PageDown:return c.value=!1,_.preventDefault(),_.stopPropagation(),l.goToOption(J.Last);case Z.Escape:if(c.value=!1,l.comboboxState.value!==0)return;_.preventDefault(),l.optionsRef.value&&!l.optionsPropsRef.value.static&&_.stopPropagation(),l.nullable.value&&l.mode.value===0&&l.value.value===null&&u(),l.closeCombobox();break;case Z.Tab:if(c.value=!1,l.comboboxState.value!==0)return;l.mode.value===0&&l.activationTrigger.value!==1&&l.selectActiveOption(),l.closeCombobox();break}}function x(_){e("change",_),l.nullable.value&&l.mode.value===0&&_.target.value===""&&u(),l.openCombobox()}function k(_){var b,E,O;let T=(b=_.relatedTarget)!=null?b:La.find(C=>C!==_.currentTarget);if(c.value=!1,!((E=G(l.optionsRef))!=null&&E.contains(T))&&!((O=G(l.buttonRef))!=null&&O.contains(T))&&l.comboboxState.value===0)return _.preventDefault(),l.mode.value===0&&(l.nullable.value&&l.value.value===null?u():l.activationTrigger.value!==1&&l.selectActiveOption()),l.closeCombobox()}function v(_){var b,E,O;let T=(b=_.relatedTarget)!=null?b:La.find(C=>C!==_.currentTarget);(E=G(l.buttonRef))!=null&&E.contains(T)||(O=G(l.optionsRef))!=null&&O.contains(T)||l.disabled.value||l.immediate.value&&l.comboboxState.value!==0&&(l.openCombobox(),gs().nextFrame(()=>{l.setActivationTrigger(1)}))}let S=j(()=>{var _,b,E,O;return(O=(E=(b=i.defaultValue)!=null?b:l.defaultValue.value!==void 0?(_=i.displayValue)==null?void 0:_.call(i,l.defaultValue.value):null)!=null?E:l.defaultValue.value)!=null?O:""});return()=>{var _,b,E,O,T,C,R;let M={open:l.comboboxState.value===0},{displayValue:z,onChange:V,...H}=i,q={"aria-controls":(_=l.optionsRef.value)==null?void 0:_.id,"aria-expanded":l.comboboxState.value===0,"aria-activedescendant":l.activeOptionIndex.value===null?void 0:l.virtual.value?(b=l.options.value.find(U=>!l.virtual.value.disabled(U.dataRef.value)&&l.compare(U.dataRef.value,l.virtual.value.options[l.activeOptionIndex.value])))==null?void 0:b.id:(E=l.options.value[l.activeOptionIndex.value])==null?void 0:E.id,"aria-labelledby":(C=(O=G(l.labelRef))==null?void 0:O.id)!=null?C:(T=G(l.buttonRef))==null?void 0:T.id,"aria-autocomplete":"list",id:s,onCompositionstart:p,onCompositionend:m,onKeydown:y,onInput:x,onFocus:v,onBlur:k,role:"combobox",type:(R=t.type)!=null?R:"text",tabIndex:0,ref:l.inputRef,defaultValue:S.value,disabled:l.disabled.value===!0?!0:void 0};return ot({ourProps:q,theirProps:H,slot:M,attrs:t,slots:r,features:Gt.RenderStrategy|Gt.Static,name:"ComboboxInput"})}}}),Eh=$e({name:"ComboboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},hold:{type:[Boolean],default:!1}},setup(i,{attrs:e,slots:t,expose:r}){let n=Mn("ComboboxOptions"),a=`headlessui-combobox-options-${Pt()}`;r({el:n.optionsRef,$el:n.optionsRef}),Ut(()=>{n.optionsPropsRef.value.static=i.static}),Ut(()=>{n.optionsPropsRef.value.hold=i.hold});let s=js(),l=j(()=>s!==null?(s.value&at.Open)===at.Open:n.comboboxState.value===0);Po({container:j(()=>G(n.optionsRef)),enabled:j(()=>n.comboboxState.value===0),accept(c){return c.getAttribute("role")==="option"?NodeFilter.FILTER_REJECT:c.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(c){c.setAttribute("role","none")}});function o(c){c.preventDefault()}return()=>{var c,u,d;let f={open:n.comboboxState.value===0},p={"aria-labelledby":(d=(c=G(n.labelRef))==null?void 0:c.id)!=null?d:(u=G(n.buttonRef))==null?void 0:u.id,id:a,ref:n.optionsRef,role:"listbox","aria-multiselectable":n.mode.value===1?!0:void 0,onMousedown:o},m=Sr(i,["hold"]);return ot({ourProps:p,theirProps:m,slot:f,attrs:e,slots:n.virtual.value&&n.comboboxState.value===0?{...t,default:()=>[Ni(wh,{},t.default)]}:t,features:Gt.RenderStrategy|Gt.Static,visible:l.value,name:"ComboboxOptions"})}}}),Th=$e({name:"ComboboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},order:{type:[Number],default:null}},setup(i,{slots:e,attrs:t,expose:r}){let n=Mn("ComboboxOption"),a=`headlessui-combobox-option-${Pt()}`,s=W(null),l=j(()=>i.disabled);r({el:s,$el:s});let o=j(()=>{var k;return n.virtual.value?n.activeOptionIndex.value===n.calculateIndex(i.value):n.activeOptionIndex.value===null?!1:((k=n.options.value[n.activeOptionIndex.value])==null?void 0:k.id)===a}),c=j(()=>n.isSelected(i.value)),u=_r(Bo,null),d=j(()=>({disabled:i.disabled,value:i.value,domRef:s,order:j(()=>i.order)}));Ke(()=>n.registerOption(a,d)),yr(()=>n.unregisterOption(a,o.value)),Ut(()=>{let k=G(s);k&&(u==null||u.value.measureElement(k))}),Ut(()=>{n.comboboxState.value===0&&o.value&&(n.virtual.value||n.activationTrigger.value!==0&&Se(()=>{var k,v;return(v=(k=G(s))==null?void 0:k.scrollIntoView)==null?void 0:v.call(k,{block:"nearest"})}))});function f(k){k.preventDefault(),k.button===$o.Left&&(l.value||(n.selectOption(a),gd()||requestAnimationFrame(()=>{var v;return(v=G(n.inputRef))==null?void 0:v.focus({preventScroll:!0})}),n.mode.value===0&&n.closeCombobox()))}function p(){var k;if(i.disabled||(k=n.virtual.value)!=null&&k.disabled(i.value))return n.goToOption(J.Nothing);let v=n.calculateIndex(i.value);n.goToOption(J.Specific,v)}let m=Hs();function h(k){m.update(k)}function y(k){var v;if(!m.wasMoved(k)||i.disabled||(v=n.virtual.value)!=null&&v.disabled(i.value)||o.value)return;let S=n.calculateIndex(i.value);n.goToOption(J.Specific,S,0)}function x(k){var v;m.wasMoved(k)&&(i.disabled||(v=n.virtual.value)!=null&&v.disabled(i.value)||o.value&&(n.optionsPropsRef.value.hold||n.goToOption(J.Nothing)))}return()=>{let{disabled:k}=i,v={active:o.value,selected:c.value,disabled:k},S={id:a,ref:s,role:"option",tabIndex:k===!0?void 0:-1,"aria-disabled":k===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onMousedown:f,onFocus:p,onPointerenter:h,onMouseenter:h,onPointermove:y,onMousemove:y,onPointerleave:x,onMouseleave:x},_=Sr(i,["order","value"]);return ot({ourProps:S,theirProps:_,slot:v,attrs:t,slots:e,name:"ComboboxOption"})}}}),qa=/([\u2700-\u27BF]|[\uE000-\uF8FF]|\uD83C[\uDC00-\uDFFF]|\uD83D[\uDC00-\uDFFF]|[\u2011-\u26FF]|\uD83E[\uDD10-\uDDFF])/g;function Ua(i){var e,t;let r=(e=i.innerText)!=null?e:"",n=i.cloneNode(!0);if(!(n instanceof HTMLElement))return r;let a=!1;for(let l of n.querySelectorAll('[hidden],[aria-hidden],[role="img"]'))l.remove(),a=!0;let s=a?(t=n.innerText)!=null?t:"":r;return qa.test(s)&&(s=s.replace(qa,"")),s}function Ih(i){let e=i.getAttribute("aria-label");if(typeof e=="string")return e.trim();let t=i.getAttribute("aria-labelledby");if(t){let r=t.split(" ").map(n=>{let a=document.getElementById(n);if(a){let s=a.getAttribute("aria-label");return typeof s=="string"?s.trim():Ua(a).trim()}return null}).filter(Boolean);if(r.length>0)return r.join(", ")}return Ua(i).trim()}function No(i){let e=W(""),t=W("");return()=>{let r=G(i);if(!r)return"";let n=r.innerText;if(e.value===n)return t.value;let a=Ih(r).trim().toLowerCase();return e.value=n,t.value=a,a}}function Ch(i,e){return i===e}var Mh=(i=>(i[i.Open=0]="Open",i[i.Closed=1]="Closed",i))(Mh||{}),Rh=(i=>(i[i.Single=0]="Single",i[i.Multi=1]="Multi",i))(Rh||{}),Ph=(i=>(i[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i))(Ph||{});function $h(i){requestAnimationFrame(()=>requestAnimationFrame(i))}let jo=Symbol("ListboxContext");function Or(i){let e=_r(jo,null);if(e===null){let t=new Error(`<${i} /> is missing a parent <Listbox /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Or),t}return e}let Lh=$e({name:"Listbox",emits:{"update:modelValue":i=>!0},props:{as:{type:[Object,String],default:"template"},disabled:{type:[Boolean],default:!1},by:{type:[String,Function],default:()=>Ch},horizontal:{type:[Boolean],default:!1},modelValue:{type:[Object,String,Number,Boolean],default:void 0},defaultValue:{type:[Object,String,Number,Boolean],default:void 0},form:{type:String,optional:!0},name:{type:String,optional:!0},multiple:{type:[Boolean],default:!1}},inheritAttrs:!1,setup(i,{slots:e,attrs:t,emit:r}){let n=W(1),a=W(null),s=W(null),l=W(null),o=W([]),c=W(""),u=W(null),d=W(1);function f(v=S=>S){let S=u.value!==null?o.value[u.value]:null,_=Fs(v(o.value.slice()),E=>G(E.dataRef.domRef)),b=S?_.indexOf(S):null;return b===-1&&(b=null),{options:_,activeOptionIndex:b}}let p=j(()=>i.multiple?1:0),[m,h]=Mo(j(()=>i.modelValue),v=>r("update:modelValue",v),j(()=>i.defaultValue)),y=j(()=>m.value===void 0?ze(p.value,{1:[],0:void 0}):m.value),x={listboxState:n,value:y,mode:p,compare(v,S){if(typeof i.by=="string"){let _=i.by;return(v==null?void 0:v[_])===(S==null?void 0:S[_])}return i.by(v,S)},orientation:j(()=>i.horizontal?"horizontal":"vertical"),labelRef:a,buttonRef:s,optionsRef:l,disabled:j(()=>i.disabled),options:o,searchQuery:c,activeOptionIndex:u,activationTrigger:d,closeListbox(){i.disabled||n.value!==1&&(n.value=1,u.value=null)},openListbox(){i.disabled||n.value!==0&&(n.value=0)},goToOption(v,S,_){if(i.disabled||n.value===1)return;let b=f(),E=lr(v===J.Specific?{focus:J.Specific,id:S}:{focus:v},{resolveItems:()=>b.options,resolveActiveIndex:()=>b.activeOptionIndex,resolveId:O=>O.id,resolveDisabled:O=>O.dataRef.disabled});c.value="",u.value=E,d.value=_??1,o.value=b.options},search(v){if(i.disabled||n.value===1)return;let S=c.value!==""?0:1;c.value+=v.toLowerCase();let _=(u.value!==null?o.value.slice(u.value+S).concat(o.value.slice(0,u.value+S)):o.value).find(E=>E.dataRef.textValue.startsWith(c.value)&&!E.dataRef.disabled),b=_?o.value.indexOf(_):-1;b===-1||b===u.value||(u.value=b,d.value=1)},clearSearch(){i.disabled||n.value!==1&&c.value!==""&&(c.value="")},registerOption(v,S){let _=f(b=>[...b,{id:v,dataRef:S}]);o.value=_.options,u.value=_.activeOptionIndex},unregisterOption(v){let S=f(_=>{let b=_.findIndex(E=>E.id===v);return b!==-1&&_.splice(b,1),_});o.value=S.options,u.value=S.activeOptionIndex,d.value=1},theirOnChange(v){i.disabled||h(v)},select(v){i.disabled||h(ze(p.value,{0:()=>v,1:()=>{let S=Ae(x.value.value).slice(),_=Ae(v),b=S.findIndex(E=>x.compare(_,Ae(E)));return b===-1?S.push(_):S.splice(b,1),S}}))}};Bs([s,l],(v,S)=>{var _;x.closeListbox(),co(S,fo.Loose)||(v.preventDefault(),(_=G(s))==null||_.focus())},j(()=>n.value===0)),An(jo,x),Ns(j(()=>ze(n.value,{0:at.Open,1:at.Closed})));let k=j(()=>{var v;return(v=G(s))==null?void 0:v.closest("form")});return Ke(()=>{xe([k],()=>{if(!k.value||i.defaultValue===void 0)return;function v(){x.theirOnChange(i.defaultValue)}return k.value.addEventListener("reset",v),()=>{var S;(S=k.value)==null||S.removeEventListener("reset",v)}},{immediate:!0})}),()=>{let{name:v,modelValue:S,disabled:_,form:b,...E}=i,O={open:n.value===0,disabled:_,value:y.value};return Ni(ae,[...v!=null&&y.value!=null?qs({[v]:y.value}).map(([T,C])=>Ni(lo,oo({features:uo.Hidden,key:T,as:"input",type:"hidden",hidden:!0,readOnly:!0,form:b,disabled:_,name:T,value:C}))):[],ot({ourProps:{},theirProps:{...t,...Sr(E,["defaultValue","onUpdate:modelValue","horizontal","multiple","by"])},slot:O,slots:e,attrs:t,name:"Listbox"})])}}}),Dh=$e({name:"ListboxButton",props:{as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(i,{attrs:e,slots:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-listbox-button-${Pt()}`,s=Or("ListboxButton");r({el:s.buttonRef,$el:s.buttonRef});function l(d){switch(d.key){case Z.Space:case Z.Enter:case Z.ArrowDown:d.preventDefault(),s.openListbox(),Se(()=>{var f;(f=G(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(J.First)});break;case Z.ArrowUp:d.preventDefault(),s.openListbox(),Se(()=>{var f;(f=G(s.optionsRef))==null||f.focus({preventScroll:!0}),s.value.value||s.goToOption(J.Last)});break}}function o(d){switch(d.key){case Z.Space:d.preventDefault();break}}function c(d){s.disabled.value||(s.listboxState.value===0?(s.closeListbox(),Se(()=>{var f;return(f=G(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),s.openListbox(),$h(()=>{var f;return(f=G(s.optionsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=Ro(j(()=>({as:i.as,type:e.type})),s.buttonRef);return()=>{var d,f;let p={open:s.listboxState.value===0,disabled:s.disabled.value,value:s.value.value},{...m}=i,h={ref:s.buttonRef,id:a,type:u.value,"aria-haspopup":"listbox","aria-controls":(d=G(s.optionsRef))==null?void 0:d.id,"aria-expanded":s.listboxState.value===0,"aria-labelledby":s.labelRef.value?[(f=G(s.labelRef))==null?void 0:f.id,a].join(" "):void 0,disabled:s.disabled.value===!0?!0:void 0,onKeydown:l,onKeyup:o,onClick:c};return ot({ourProps:h,theirProps:m,slot:p,attrs:e,slots:t,name:"ListboxButton"})}}}),zh=$e({name:"ListboxOptions",props:{as:{type:[Object,String],default:"ul"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(i,{attrs:e,slots:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-listbox-options-${Pt()}`,s=Or("ListboxOptions"),l=W(null);r({el:s.optionsRef,$el:s.optionsRef});function o(d){switch(l.value&&clearTimeout(l.value),d.key){case Z.Space:if(s.searchQuery.value!=="")return d.preventDefault(),d.stopPropagation(),s.search(d.key);case Z.Enter:if(d.preventDefault(),d.stopPropagation(),s.activeOptionIndex.value!==null){let f=s.options.value[s.activeOptionIndex.value];s.select(f.dataRef.value)}s.mode.value===0&&(s.closeListbox(),Se(()=>{var f;return(f=G(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})}));break;case ze(s.orientation.value,{vertical:Z.ArrowDown,horizontal:Z.ArrowRight}):return d.preventDefault(),d.stopPropagation(),s.goToOption(J.Next);case ze(s.orientation.value,{vertical:Z.ArrowUp,horizontal:Z.ArrowLeft}):return d.preventDefault(),d.stopPropagation(),s.goToOption(J.Previous);case Z.Home:case Z.PageUp:return d.preventDefault(),d.stopPropagation(),s.goToOption(J.First);case Z.End:case Z.PageDown:return d.preventDefault(),d.stopPropagation(),s.goToOption(J.Last);case Z.Escape:d.preventDefault(),d.stopPropagation(),s.closeListbox(),Se(()=>{var f;return(f=G(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})});break;case Z.Tab:d.preventDefault(),d.stopPropagation();break;default:d.key.length===1&&(s.search(d.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}let c=js(),u=j(()=>c!==null?(c.value&at.Open)===at.Open:s.listboxState.value===0);return()=>{var d,f;let p={open:s.listboxState.value===0},{...m}=i,h={"aria-activedescendant":s.activeOptionIndex.value===null||(d=s.options.value[s.activeOptionIndex.value])==null?void 0:d.id,"aria-multiselectable":s.mode.value===1?!0:void 0,"aria-labelledby":(f=G(s.buttonRef))==null?void 0:f.id,"aria-orientation":s.orientation.value,id:a,onKeydown:o,role:"listbox",tabIndex:0,ref:s.optionsRef};return ot({ourProps:h,theirProps:m,slot:p,attrs:e,slots:t,features:Gt.RenderStrategy|Gt.Static,visible:u.value,name:"ListboxOptions"})}}}),Bh=$e({name:"ListboxOption",props:{as:{type:[Object,String],default:"li"},value:{type:[Object,String,Number,Boolean]},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(i,{slots:e,attrs:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-listbox-option-${Pt()}`,s=Or("ListboxOption"),l=W(null);r({el:l,$el:l});let o=j(()=>s.activeOptionIndex.value!==null?s.options.value[s.activeOptionIndex.value].id===a:!1),c=j(()=>ze(s.mode.value,{0:()=>s.compare(Ae(s.value.value),Ae(i.value)),1:()=>Ae(s.value.value).some(v=>s.compare(Ae(v),Ae(i.value)))})),u=j(()=>ze(s.mode.value,{1:()=>{var v;let S=Ae(s.value.value);return((v=s.options.value.find(_=>S.some(b=>s.compare(Ae(b),Ae(_.dataRef.value)))))==null?void 0:v.id)===a},0:()=>c.value})),d=No(l),f=j(()=>({disabled:i.disabled,value:i.value,get textValue(){return d()},domRef:l}));Ke(()=>s.registerOption(a,f)),yr(()=>s.unregisterOption(a)),Ke(()=>{xe([s.listboxState,c],()=>{s.listboxState.value===0&&c.value&&ze(s.mode.value,{1:()=>{u.value&&s.goToOption(J.Specific,a)},0:()=>{s.goToOption(J.Specific,a)}})},{immediate:!0})}),Ut(()=>{s.listboxState.value===0&&o.value&&s.activationTrigger.value!==0&&Se(()=>{var v,S;return(S=(v=G(l))==null?void 0:v.scrollIntoView)==null?void 0:S.call(v,{block:"nearest"})})});function p(v){if(i.disabled)return v.preventDefault();s.select(i.value),s.mode.value===0&&(s.closeListbox(),Se(()=>{var S;return(S=G(s.buttonRef))==null?void 0:S.focus({preventScroll:!0})}))}function m(){if(i.disabled)return s.goToOption(J.Nothing);s.goToOption(J.Specific,a)}let h=Hs();function y(v){h.update(v)}function x(v){h.wasMoved(v)&&(i.disabled||o.value||s.goToOption(J.Specific,a,0))}function k(v){h.wasMoved(v)&&(i.disabled||o.value&&s.goToOption(J.Nothing))}return()=>{let{disabled:v}=i,S={active:o.value,selected:c.value,disabled:v},{value:_,disabled:b,...E}=i,O={id:a,ref:l,role:"option",tabIndex:v===!0?void 0:-1,"aria-disabled":v===!0?!0:void 0,"aria-selected":c.value,disabled:void 0,onClick:p,onFocus:m,onPointerenter:y,onMouseenter:y,onPointermove:x,onMousemove:x,onPointerleave:k,onMouseleave:k};return ot({ourProps:O,theirProps:E,slot:S,attrs:t,slots:e,name:"ListboxOption"})}}});var Nh=(i=>(i[i.Open=0]="Open",i[i.Closed=1]="Closed",i))(Nh||{}),jh=(i=>(i[i.Pointer=0]="Pointer",i[i.Other=1]="Other",i))(jh||{});function Fh(i){requestAnimationFrame(()=>requestAnimationFrame(i))}let Fo=Symbol("MenuContext");function Ar(i){let e=_r(Fo,null);if(e===null){let t=new Error(`<${i} /> is missing a parent <Menu /> component.`);throw Error.captureStackTrace&&Error.captureStackTrace(t,Ar),t}return e}let Vh=$e({name:"Menu",props:{as:{type:[Object,String],default:"template"}},setup(i,{slots:e,attrs:t}){let r=W(1),n=W(null),a=W(null),s=W([]),l=W(""),o=W(null),c=W(1);function u(f=p=>p){let p=o.value!==null?s.value[o.value]:null,m=Fs(f(s.value.slice()),y=>G(y.dataRef.domRef)),h=p?m.indexOf(p):null;return h===-1&&(h=null),{items:m,activeItemIndex:h}}let d={menuState:r,buttonRef:n,itemsRef:a,items:s,searchQuery:l,activeItemIndex:o,activationTrigger:c,closeMenu:()=>{r.value=1,o.value=null},openMenu:()=>r.value=0,goToItem(f,p,m){let h=u(),y=lr(f===J.Specific?{focus:J.Specific,id:p}:{focus:f},{resolveItems:()=>h.items,resolveActiveIndex:()=>h.activeItemIndex,resolveId:x=>x.id,resolveDisabled:x=>x.dataRef.disabled});l.value="",o.value=y,c.value=m??1,s.value=h.items},search(f){let p=l.value!==""?0:1;l.value+=f.toLowerCase();let m=(o.value!==null?s.value.slice(o.value+p).concat(s.value.slice(0,o.value+p)):s.value).find(y=>y.dataRef.textValue.startsWith(l.value)&&!y.dataRef.disabled),h=m?s.value.indexOf(m):-1;h===-1||h===o.value||(o.value=h,c.value=1)},clearSearch(){l.value=""},registerItem(f,p){let m=u(h=>[...h,{id:f,dataRef:p}]);s.value=m.items,o.value=m.activeItemIndex,c.value=1},unregisterItem(f){let p=u(m=>{let h=m.findIndex(y=>y.id===f);return h!==-1&&m.splice(h,1),m});s.value=p.items,o.value=p.activeItemIndex,c.value=1}};return Bs([n,a],(f,p)=>{var m;d.closeMenu(),co(p,fo.Loose)||(f.preventDefault(),(m=G(n))==null||m.focus())},j(()=>r.value===0)),An(Fo,d),Ns(j(()=>ze(r.value,{0:at.Open,1:at.Closed}))),()=>{let f={open:r.value===0,close:d.closeMenu};return ot({ourProps:{},theirProps:i,slot:f,slots:e,attrs:t,name:"Menu"})}}}),Wh=$e({name:"MenuButton",props:{disabled:{type:Boolean,default:!1},as:{type:[Object,String],default:"button"},id:{type:String,default:null}},setup(i,{attrs:e,slots:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-menu-button-${Pt()}`,s=Ar("MenuButton");r({el:s.buttonRef,$el:s.buttonRef});function l(d){switch(d.key){case Z.Space:case Z.Enter:case Z.ArrowDown:d.preventDefault(),d.stopPropagation(),s.openMenu(),Se(()=>{var f;(f=G(s.itemsRef))==null||f.focus({preventScroll:!0}),s.goToItem(J.First)});break;case Z.ArrowUp:d.preventDefault(),d.stopPropagation(),s.openMenu(),Se(()=>{var f;(f=G(s.itemsRef))==null||f.focus({preventScroll:!0}),s.goToItem(J.Last)});break}}function o(d){switch(d.key){case Z.Space:d.preventDefault();break}}function c(d){i.disabled||(s.menuState.value===0?(s.closeMenu(),Se(()=>{var f;return(f=G(s.buttonRef))==null?void 0:f.focus({preventScroll:!0})})):(d.preventDefault(),s.openMenu(),Fh(()=>{var f;return(f=G(s.itemsRef))==null?void 0:f.focus({preventScroll:!0})})))}let u=Ro(j(()=>({as:i.as,type:e.type})),s.buttonRef);return()=>{var d;let f={open:s.menuState.value===0},{...p}=i,m={ref:s.buttonRef,id:a,type:u.value,"aria-haspopup":"menu","aria-controls":(d=G(s.itemsRef))==null?void 0:d.id,"aria-expanded":s.menuState.value===0,onKeydown:l,onKeyup:o,onClick:c};return ot({ourProps:m,theirProps:p,slot:f,attrs:e,slots:t,name:"MenuButton"})}}}),Hh=$e({name:"MenuItems",props:{as:{type:[Object,String],default:"div"},static:{type:Boolean,default:!1},unmount:{type:Boolean,default:!0},id:{type:String,default:null}},setup(i,{attrs:e,slots:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-menu-items-${Pt()}`,s=Ar("MenuItems"),l=W(null);r({el:s.itemsRef,$el:s.itemsRef}),Po({container:j(()=>G(s.itemsRef)),enabled:j(()=>s.menuState.value===0),accept(f){return f.getAttribute("role")==="menuitem"?NodeFilter.FILTER_REJECT:f.hasAttribute("role")?NodeFilter.FILTER_SKIP:NodeFilter.FILTER_ACCEPT},walk(f){f.setAttribute("role","none")}});function o(f){var p;switch(l.value&&clearTimeout(l.value),f.key){case Z.Space:if(s.searchQuery.value!=="")return f.preventDefault(),f.stopPropagation(),s.search(f.key);case Z.Enter:if(f.preventDefault(),f.stopPropagation(),s.activeItemIndex.value!==null){let m=s.items.value[s.activeItemIndex.value];(p=G(m.dataRef.domRef))==null||p.click()}s.closeMenu(),ho(G(s.buttonRef));break;case Z.ArrowDown:return f.preventDefault(),f.stopPropagation(),s.goToItem(J.Next);case Z.ArrowUp:return f.preventDefault(),f.stopPropagation(),s.goToItem(J.Previous);case Z.Home:case Z.PageUp:return f.preventDefault(),f.stopPropagation(),s.goToItem(J.First);case Z.End:case Z.PageDown:return f.preventDefault(),f.stopPropagation(),s.goToItem(J.Last);case Z.Escape:f.preventDefault(),f.stopPropagation(),s.closeMenu(),Se(()=>{var m;return(m=G(s.buttonRef))==null?void 0:m.focus({preventScroll:!0})});break;case Z.Tab:f.preventDefault(),f.stopPropagation(),s.closeMenu(),Se(()=>bd(G(s.buttonRef),f.shiftKey?Da.Previous:Da.Next));break;default:f.key.length===1&&(s.search(f.key),l.value=setTimeout(()=>s.clearSearch(),350));break}}function c(f){switch(f.key){case Z.Space:f.preventDefault();break}}let u=js(),d=j(()=>u!==null?(u.value&at.Open)===at.Open:s.menuState.value===0);return()=>{var f,p;let m={open:s.menuState.value===0},{...h}=i,y={"aria-activedescendant":s.activeItemIndex.value===null||(f=s.items.value[s.activeItemIndex.value])==null?void 0:f.id,"aria-labelledby":(p=G(s.buttonRef))==null?void 0:p.id,id:a,onKeydown:o,onKeyup:c,role:"menu",tabIndex:0,ref:s.itemsRef};return ot({ourProps:y,theirProps:h,slot:m,attrs:e,slots:t,features:Gt.RenderStrategy|Gt.Static,visible:d.value,name:"MenuItems"})}}}),Er=$e({name:"MenuItem",inheritAttrs:!1,props:{as:{type:[Object,String],default:"template"},disabled:{type:Boolean,default:!1},id:{type:String,default:null}},setup(i,{slots:e,attrs:t,expose:r}){var n;let a=(n=i.id)!=null?n:`headlessui-menu-item-${Pt()}`,s=Ar("MenuItem"),l=W(null);r({el:l,$el:l});let o=j(()=>s.activeItemIndex.value!==null?s.items.value[s.activeItemIndex.value].id===a:!1),c=No(l),u=j(()=>({disabled:i.disabled,get textValue(){return c()},domRef:l}));Ke(()=>s.registerItem(a,u)),yr(()=>s.unregisterItem(a)),Ut(()=>{s.menuState.value===0&&o.value&&s.activationTrigger.value!==0&&Se(()=>{var x,k;return(k=(x=G(l))==null?void 0:x.scrollIntoView)==null?void 0:k.call(x,{block:"nearest"})})});function d(x){if(i.disabled)return x.preventDefault();s.closeMenu(),ho(G(s.buttonRef))}function f(){if(i.disabled)return s.goToItem(J.Nothing);s.goToItem(J.Specific,a)}let p=Hs();function m(x){p.update(x)}function h(x){p.wasMoved(x)&&(i.disabled||o.value||s.goToItem(J.Specific,a,0))}function y(x){p.wasMoved(x)&&(i.disabled||o.value&&s.goToItem(J.Nothing))}return()=>{let{disabled:x,...k}=i,v={active:o.value,disabled:x,close:s.closeMenu};return ot({ourProps:{id:a,ref:l,role:"menuitem",tabIndex:x===!0?void 0:-1,"aria-disabled":x===!0?!0:void 0,onClick:d,onFocus:f,onPointerenter:m,onMouseenter:m,onPointermove:h,onMousemove:h,onPointerleave:y,onMouseleave:y},theirProps:{...t,...k},slot:v,attrs:t,slots:e,name:"MenuItem"})}}});const qh={components:{Menu:Vh,MenuButton:Wh,MenuItems:Hh,MenuItem:Er,Icon:Pe},props:{label:{type:String,default:"DropDown"},labelClass:{type:String},classMenuItems:{type:String,default:"mt-2 w-[220px]"},classItem:{type:String,default:"px-4 py-2"},parentClass:{type:String,default:"inline-block z-[9]"},items:{type:Array,default:()=>[{label:"Action",link:"#"},{label:"Another action",link:"#"},{label:"Something else here",link:"#"},{label:"Separated link",link:"#",hasDivider:!0}]}}},Uh={key:0},Gh={key:0,class:"flex items-center"},Yh={class:"block text-xl ltr:mr-3 rtl:ml-3"},Xh={class:"block text-sm"},Kh={key:1,class:"block text-sm"},Qh={key:0,class:"flex items-center"},Zh={class:"block text-xl ltr:mr-3 rtl:ml-3"},Jh={class:"block text-sm"},ep={key:1,class:"block text-sm"};function tp(i,e,t,r,n,a){const s=D("MenuButton"),l=D("Icon"),o=D("router-link"),c=D("MenuItem"),u=D("MenuItems"),d=D("Menu");return w(),Q(d,{as:"div",class:P(["relative",t.parentClass])},{default:F(()=>[i.$slots.default?(w(),Q(s,{key:0,class:"block w-full"},{default:F(()=>[ge(i.$slots,"default")]),_:3})):(w(),Q(s,{key:1,class:P([t.labelClass,"block w-full"])},{default:F(()=>[ft(X(t.label),1)]),_:1},8,["class"])),$(Ge,{"enter-active-class":"transition duration-100 ease-out","enter-from-class":"transform scale-95 opacity-0","enter-to-class":"transform scale-100 opacity-100","leave-active-class":"transition duration-75 ease-in","leave-from-class":"transform scale-100 opacity-100","leave-to-class":"transform scale-95 opacity-0"},{default:F(()=>[$(u,{class:P([t.classMenuItems,"absolute ltr:right-0 rtl:left-0 origin-top-right rounded bg-white dark:bg-slate-800 dark:border dark:border-slate-700 shadow-dropdown z-[99]"])},{default:F(()=>[i.$slots.menus?ge(i.$slots,"menus",{key:1}):(w(),I("div",Uh,[(w(!0),I(ae,null,fe(t.items,(f,p)=>(w(),Q(c,{key:p},{default:F(({active:m})=>[f.link?(w(),Q(o,{key:0,class:P(`${m?"bg-slate-100 text-slate-900 dark:bg-slate-600 dark:text-slate-300 dark:bg-opacity-50":"text-slate-600 dark:text-slate-300"} block ${t.classItem} ${f.hasDivider?"border-t border-slate-100 dark:border-slate-700":""}`),to:f.link},{default:F(()=>[f.icon?(w(),I("div",Gh,[g("span",Yh,[$(l,{icon:f.icon},null,8,["icon"])]),g("span",Xh,X(f.label),1)])):(w(),I("span",Kh,X(f.label),1))]),_:2},1032,["class","to"])):(w(),I("span",{key:1,class:P(`${m?"bg-slate-100 text-slate-800":""} ${f.hasDivider===!0?"border-t border-gray-500 dark:border-slate-700":""} block ${t.classItem}`)},[f.icon?(w(),I("div",Qh,[g("span",Zh,[$(l,{icon:f.icon},null,8,["icon"])]),g("span",Jh,X(f.label),1)])):(w(),I("span",ep,X(f.label),1))],2))]),_:2},1024))),128))]))]),_:3},8,["class"])]),_:3})]),_:3},8,["class"])}const Us=se(qh,[["render",tp]]),ip={props:{firstname:{type:String},lastname:{type:String,required:!1}},computed:{firstInitial(){return this.firstname?this.firstname.substring(0,1):""},lastInitial(){return this.lastname?this.lastname.substring(0,1):""}}},np={class:"relative inline-flex items-center justify-center w-10 h-10 overflow-hidden bg-gray-100 rounded-full dark:bg-gray-600 border-2 border-green-700"},rp={class:"font-medium text-gray-600 dark:text-gray-300"};function sp(i,e,t,r,n,a){return w(),I("div",np,[g("span",rp,X(a.firstInitial)+X(a.lastInitial),1)])}const ap=se(ip,[["render",sp]]),lp={components:{Icon:Pe,Dropdown:Us,MenuItem:Er,MinimalAvatar:ap},data(){return{profileImg:Eo,ProfileMenu:[{label:"Profile",icon:"heroicons-outline:user",link:()=>{this.$router.push("profile")}},{label:"Chat",icon:"heroicons-outline:chat",link:()=>{this.$router.push("chat")}},{label:"Email",icon:"heroicons-outline:mail",link:()=>{this.$router.push("email")}},{label:"Todo",icon:"heroicons-outline:clipboard-check",link:()=>{this.$router.push("todo")}},{label:"Settings",icon:"heroicons-outline:cog",link:()=>{this.$router.push("settings")}},{label:"Faq",icon:"heroicons-outline:information-circle",link:()=>{this.$router.push("faq")}},{label:"Logout",icon:"heroicons-outline:login",link:()=>{this.$router.push("/logout")}}]}},computed:{activeUser(){return localStorage.getItem("activeUser")?JSON.parse(localStorage.getItem("activeUser")):{}}}},op={class:"flex items-center"},up={class:"flex-1 ltr:mr-[10px] rtl:ml-[10px]"},cp={class:"lg:h-8 lg:w-8 h-7 w-7 rounded-full"},dp=["src"],fp={class:"flex-none text-slate-600 dark:text-white text-sm font-normal items-center lg:flex hidden overflow-hidden text-ellipsis whitespace-nowrap"},hp={class:"overflow-hidden text-ellipsis whitespace-nowrap w-[85px] block"},pp={class:"text-base inline-block ltr:ml-[10px] rtl:mr-[10px]"},vp=["onClick"],mp={class:"flex-none text-lg"},gp={class:"flex-1 text-sm"};function bp(i,e,t,r,n,a){const s=D("MinimalAvatar"),l=D("Icon"),o=D("MenuItem"),c=D("Dropdown");return w(),Q(c,{classMenuItems:" w-[180px] top-[58px] "},{menus:F(()=>[(w(!0),I(ae,null,fe(n.ProfileMenu,(u,d)=>(w(),Q(o,{key:d},{default:F(({active:f})=>[g("div",{type:"button",class:P([`${f?"bg-slate-100 dark:bg-slate-700 dark:bg-opacity-70 text-slate-900 dark:text-slate-300":"text-slate-600 dark:text-slate-300"} `,"inline-flex items-center space-x-2 rtl:space-x-reverse w-full px-4 py-2 first:rounded-t last:rounded-b font-normal cursor-pointer"]),onClick:p=>u.link()},[g("div",mp,[$(l,{icon:u.icon},null,8,["icon"])]),g("div",gp,X(u.label),1)],10,vp)]),_:2},1024))),128))]),default:F(()=>{var u,d;return[g("div",op,[g("div",up,[g("div",cp,[a.activeUser.profile_picture_url?(w(),I("img",{key:0,src:a.activeUser.profile_picture_url,alt:"",class:"block w-full h-full object-cover rounded-full"},null,8,dp)):(w(),Q(s,{key:1,firstname:a.activeUser?a.activeUser.first_name:null,lastname:a.activeUser?a.activeUser.last_name:null},null,8,["firstname","lastname"]))])]),g("div",fp,[g("span",hp,X(((u=a.activeUser)==null?void 0:u.first_name)+" "+((d=a.activeUser)==null?void 0:d.last_name)),1),g("span",pp,[$(l,{icon:"heroicons-outline:chevron-down"})])])])]}),_:1})}const yp=se(lp,[["render",bp]]),_p="/assets/no-image.db863b81.jpg",xp={components:{Icon:Pe,Dropdown:Us,MenuItem:Er},data(){return{notifs:[],notifCount:"",currentEmployeeId:this.$store.userSettings.getActiveUser.employees?this.$store.userSettings.getActiveUser.employees.employee_id:"admin",noImage:_p}},computed:{},methods:{reload(){return this.$emit("reload")},async getNotificationForBell(){try{const i=await Ba.fetchRecordForBellNotification(this.currentEmployeeId);this.notifCount=i.data.unread_count,this.notifs=i.data.notifications.map(e=>{let t=JSON.parse(e.data);return{id:e.id,title:t.title,unread:e.read_at,link:t.url,createdAt:this.formatTimeDifference(e.created_at),attachment:e.attachment}})}catch(i){console.error(i)}},formatTimeDifference(i){const e=$a(),t=$a(i,"YYYY-MM-DD HH:mm:ss");if(!t.isValid())return i;const r=e.diff(t,"hours"),n=e.diff(t,"minutes"),a=e.diff(t,"days");return r<1?`${n} minute${n===1?"":"s"} ago`:r<24?`${r} hour${r===1?"":"s"} ago`:`${a} day${a===1?"":"s"} ago`},async updateReadAt(i,e){try{await Ba.update(e),window.location.href=i}catch(t){console.log(t)}}},mounted(){this.getNotificationForBell()}},Sp={class:"relative lg:h-[32px] lg:w-[32px] lg:bg-gray-500-f7 bg-slate-50 text-slate-900 lg:dark:bg-slate-900 dark:text-white cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center"},kp={class:"absolute lg:right-0 lg:top-0 -top-2 -right-2 h-4 w-4 bg-red-500 text-[10px] font-semibold flex flex-col items-center justify-center rounded-full text-white z-[99]"},wp={class:"flex justify-between px-4 py-4 border-b border-slate-100 dark:border-slate-600"},Op={class:"text-slate-800 dark:text-slate-200 text-xs md:text-right"},Ap={class:"divide-y divide-slate-100 dark:divide-slate-800"},Ep={class:"flex ltr:text-left rtl:text-right"},Tp={class:"flex-none ltr:mr-3 rtl:ml-3"},Ip={class:"h-12 w-12 bg-white rounded-full"},Cp=["src"],Mp={class:"flex-1"},Rp={class:"text-slate-400 dark:text-slate-400 text-xs mt-1"},Pp={key:0,class:"flex-0"};function $p(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link"),o=D("MenuItem"),c=D("Dropdown");return w(),Q(c,{classMenuItems:"md:w-[300px] top-[58px]",classItem:"px-4 py-2"},{menus:F(()=>[g("div",wp,[e[1]||(e[1]=g("div",{class:"text-sm text-slate-800 dark:text-slate-200 font-medium leading-6"}," Notifications ",-1)),g("div",Op,[$(l,{to:{name:"employee-notification"},class:"underline"},{default:F(()=>e[0]||(e[0]=[ft("View all")])),_:1})])]),g("div",Ap,[(w(!0),I(ae,null,fe(n.notifs,(u,d)=>(w(),Q(o,{key:d},{default:F(()=>[$(l,{to:"/"+u.link,onClick:f=>u.unread==null?a.updateReadAt("/"+u.link,u.id):"",class:"block w-full",onReload:a.getNotificationForBell},{default:F(()=>[g("div",{class:P(`${i.active?"bg-slate-100 dark:bg-slate-700 dark:bg-opacity-70 text-slate-800":"text-slate-600 dark:text-slate-300"} block w-full px-4 py-2 text-sm cursor-pointer`)},[g("div",Ep,[g("div",Tp,[g("div",Ip,[g("img",{src:u.attachment==""||u.attachment==null?n.noImage:u.attachment,alt:"Image",class:P(`${i.active?" border-white":" border-transparent"} block w-full h-full object-cover rounded-full border`)},null,10,Cp)])]),g("div",Mp,[g("div",{class:P(`${i.active?"text-slate-600 dark:text-slate-300":" text-slate-600 dark:text-slate-300"} text-sm`)},X(u.title),3),g("div",{class:P(`${i.active?"text-slate-500 dark:text-slate-200":" text-slate-600 dark:text-slate-300"} text-xs leading-4`)},null,2),g("div",Rp,X(u.createdAt),1)]),u.unread==null?(w(),I("div",Pp,e[2]||(e[2]=[g("span",{class:"h-[8px] w-[8px] bg-danger-700 border border-white dark:border-slate-400 rounded-full inline-block"},null,-1)]))):L("",!0)])],2)]),_:2},1032,["to","onClick","onReload"])]),_:2},1024))),128))])]),default:F(()=>[g("span",Sp,[$(s,{icon:"heroicons-outline:bell",class:P(`${n.notifCount==0?"":"animate-tada"}`)},null,8,["class"]),g("span",kp,X(n.notifCount<7?n.notifCount:"..."),1)])]),_:1})}const Lp=se(xp,[["render",$p]]),Dp={components:{Icon:Pe,Dropdown:Us,MenuItem:Er},data(){return{message:Of}}},zp={class:"relative lg:h-[32px] lg:w-[32px] lg:bg-gray-500-f7 bg-slate-50 lg:dark:bg-slate-900 dark:text-white text-slate-900 cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center"},Bp={class:"flex justify-between px-4 py-4 border-b border-slate-100 dark:border-slate-600"},Np={class:"text-slate-800 dark:text-white text-xs md:text-right"},jp={class:"divide-y divide-slate-100 dark:divide-slate-800"},Fp={class:"flex ltr:text-left rtl:text-right space-x-3 rtl:space-x-reverse"},Vp={class:"flex-none"},Wp={class:"h-8 w-8 bg-white dark:bg-slate-700 rounded-full relative"},Hp=["src"],qp={class:"flex-1"},Up={class:"text-slate-800 dark:text-slate-300 text-sm font-medium mb-1`"},Gp={class:"text-xs hover:text-[#68768A] text-slate-600 dark:text-slate-300 mb-1"},Yp={key:0,class:"flex-0"},Xp={class:"h-4 w-4 bg-danger-500 border border-white rounded-full text-[10px] flex items-center justify-center text-white"};function Kp(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link"),o=D("MenuItem"),c=D("Dropdown");return w(),Q(c,{classMenuItems:"md:w-[335px] w-min top-[58px]",classItem:"px-4 py-2"},{menus:F(()=>[g("div",Bp,[e[2]||(e[2]=g("div",{class:"text-sm text-slate-800 dark:text-white font-medium leading-6"}," Messages ",-1)),g("div",Np,[$(l,{to:{name:"chat"},class:"underline"},{default:F(()=>e[1]||(e[1]=[ft("View all")])),_:1})])]),g("div",jp,[(w(!0),I(ae,null,fe(n.message.slice(0,3),(u,d)=>(w(),Q(o,{key:d},{default:F(({active:f})=>[g("div",{class:P(`${f?"bg-slate-100 text-slate-800 dark:bg-slate-600 dark:bg-opacity-70":"text-slate-600 dark:text-slate-300"} block w-full px-4 py-2 text-sm cursor-pointer`)},[g("div",Fp,[g("div",Vp,[g("div",Wp,[g("span",{class:P(`${u.active?"bg-secondary-500":"bg-green-500"} w-[10px] h-[10px] rounded-full border border-white dark:border-slate-700 inline-block absolute right-0 top-0`)},null,2),g("img",{src:u.image,alt:"",class:"block w-full h-full object-cover rounded-full border hover:border-white border-transparent"},null,8,Hp)])]),g("div",qp,[g("div",Up,X(u.title),1),g("div",Gp,X(u.desc),1),e[3]||(e[3]=g("div",{class:"text-slate-400 dark:text-slate-400 text-xs"}," 3 min ago ",-1))]),u.hasnotifaction?(w(),I("div",Yp,[g("span",Xp,X(u.notification_count),1)])):L("",!0)])],2)]),_:2},1024))),128))])]),default:F(()=>[g("span",zp,[$(s,{icon:"heroicons-outline:mail"}),e[0]||(e[0]=g("span",{class:"absolute lg:right-0 lg:top-0 -top-2 -right-2 h-4 w-4 bg-red-500 text-[8px] font-semibold flex flex-col items-center justify-center rounded-full text-white z-[99]"},"10",-1))])]),_:1})}const Qp=se(Dp,[["render",Kp]]),Zp=br(),Jp={components:{Icon:Pe},methods:{toogleDark(){Zp.toogleDark()}}};function ev(i,e,t,r,n,a){const s=D("Icon");return w(),I("span",{onClick:e[0]||(e[0]=(...l)=>a.toogleDark&&a.toogleDark(...l)),class:"h-[28px] w-[28px] lg:h-[32px] lg:w-[32px] lg:bg-gray-500-f7 bg-slate-50 dark:bg-slate-900 lg:dark:bg-slate-900 dark:text-white text-slate-900 cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center"},[this.$store.themeSettingsStore.isDark?this.$store.themeSettingsStore.isDark?(w(),Q(s,{key:1,icon:"heroicons-outline:sun"})):L("",!0):(w(),Q(s,{key:0,icon:"heroicons-outline:moon"}))])}const tv=se(Jp,[["render",ev]]),iv=br(),nv={components:{Icon:Pe},methods:{toggleMonochrome(){iv.toggleMonochrome()}}};function rv(i,e,t,r,n,a){const s=D("Icon");return w(),I("span",{onClick:e[0]||(e[0]=(...l)=>a.toggleMonochrome&&a.toggleMonochrome(...l)),class:"lg:h-[32px] lg:w-[32px] lg:bg-slate-50 lg:dark:bg-slate-900 dark:text-white text-slate-900 cursor-pointer rounded-full text-[20px] flex flex-col items-center justify-center"},[$(s,{icon:"mdi:palette-outline",class:"font-bold"})])}const sv=se(nv,[["render",rv]]);const av={components:{Icon:Pe},data(){return{topMenu:Af}},computed:{newMenulist:function(){return this.topMenu.filter(function(i){return!i.isHeadr})}}},lv={class:"flex flex-1 items-center space-x-[6px] rtl:space-x-reverse"},ov={key:0,class:"icon-box"},uv={key:1,class:"text-box"},cv={key:1,href:"javascript: void(0);"},dv={class:"flex flex-1 items-center space-x-[6px] rtl:space-x-reverse"},fv={key:0,class:"icon-box"},hv={key:1,class:"text-box"},pv={class:"flex-none text-sm ltr:ml-3 rtl:mr-3 leading-[1] relative top-1"},vv={key:2,class:"sub-menu"},mv={class:"flex space-x-2 items-start rtl:space-x-reverse"},gv={class:"leading-[1]"},bv={key:1,href:"javascript: void(0);"},yv={key:2,class:"sub-menu"},_v={key:3,class:"rt-mega-menu"},xv={class:"flex flex-wrap space-x-8 justify-between rtl:space-x-reverse"},Sv={class:"text-sm font-medium text-slate-900 dark:text-white mb-2 flex space-x-1 items-center"};function kv(i,e,t,r,n,a){const s=D("Icon"),l=D("router-link");return w(),I("ul",null,[(w(!0),I(ae,null,fe(a.newMenulist,(o,c)=>(w(),I("li",{key:c,class:P(o.child?"menu-item-has-children":o.megamenu?"menu-item-has-children has-megamenu":"")},[!o.child&&!o.megamenu?(w(),Q(l,{key:0,to:o.link},{default:F(()=>[g("div",lv,[o.icon?(w(),I("span",ov,[$(s,{icon:o.icon},null,8,["icon"])])):L("",!0),o.title?(w(),I("div",uv,X(o.title),1)):L("",!0)])]),_:2},1032,["to"])):L("",!0),o.child||o.megamenu?(w(),I("a",cv,[g("div",dv,[o.icon?(w(),I("span",fv,[$(s,{icon:o.icon},null,8,["icon"])])):L("",!0),o.title?(w(),I("div",hv,X(o.title),1)):L("",!0)]),g("div",pv,[$(s,{icon:"heroicons-outline:chevron-down"})])])):L("",!0),o.child?(w(),I("ul",vv,[(w(!0),I(ae,null,fe(o.child,(u,d)=>(w(),I("li",{key:d,class:P(u.submenu?"menu-item-has-children":"")},[u.submenu?L("",!0):(w(),Q(l,{key:0,to:u.childlink},{default:F(()=>[g("div",mv,[$(s,{icon:u.childicon,class:"leading-[1] text-base"},null,8,["icon"]),g("span",gv,X(u.childtitle),1)])]),_:2},1032,["to"])),u.submenu?(w(),I("a",bv,X(u.childtitle),1)):L("",!0),u.submenu?(w(),I("ul",yv,[(w(!0),I(ae,null,fe(u.submenu,(f,p)=>(w(),I("li",{key:p},[$(l,{to:f.subMenuLink},{default:F(()=>[ft(X(f.submenutitle),1)]),_:2},1032,["to"])]))),128))])):L("",!0)],2))),128))])):L("",!0),o.megamenu?(w(),I("div",_v,[g("div",xv,[(w(!0),I(ae,null,fe(o.megamenu,(u,d)=>(w(),I("div",{key:d},[g("div",Sv,[$(s,{icon:u.megamenuicon},null,8,["icon"]),g("span",null,X(u.megamenutitle),1)]),(w(!0),I(ae,null,fe(u.singleMegamenu,(f,p)=>(w(),Q(l,{to:f.m_childlink,key:p,class:"flex items-center space-x-2 text-[15px] leading-6 rtl:space-x-reverse"},{default:F(({isActive:m})=>[g("span",{class:P(["h-[6px] w-[6px] rounded-full border border-slate-600 dark:border-white inline-block flex-none",m?" bg-slate-900 dark:bg-white":""])},null,2),g("span",{class:P(["capitalize",m?" text-slate-900 dark:text-white font-medium":"text-slate-600 dark:text-slate-300"])},X(f.m_childtitle),3)]),_:2},1032,["to"]))),128))]))),128))])])):L("",!0)],2))),128))])}const wv=se(av,[["render",kv]]),Ov={components:{DesktopMenu:wv}},Av={class:"main-menu"};function Ev(i,e,t,r,n,a){const s=D("DesktopMenu");return w(),I("div",Av,[$(s)])}const Tv=se(Ov,[["render",Ev]]);function Ga(i,e){let t;return function(...n){const a=()=>{clearTimeout(t),i(...n)};clearTimeout(t),t=setTimeout(a,e)}}const Iv={components:{Icon:Pe,TransitionRoot:yd,TransitionChild:_d,Dialog:xd,DialogPanel:Sd,Combobox:Oh,ComboboxInput:Ah,ComboboxOptions:Eh,ComboboxOption:Th},data(){return{isOpen:!1,query:"",normalizedQuery:"",selected:null,employees:[],searchIndex:new Map,isSearching:!1,filteredResults:[],displayedResults:[],resultsPerPage:50,currentPage:1,defaultSearchList:[]}},computed:{hasMoreResults(){return this.displayedResults.length<this.filteredResults.length}},watch:{selected(i){i&&this.selectItem(i)}},methods:{openModal(){this.isOpen=!0,Se(()=>{var i;(i=this.$refs.searchInput)==null||i.focus()})},closeModal(){this.isOpen=!1,this.resetSearch()},resetSearch(){this.query="",this.normalizedQuery="",this.filteredResults=[],this.displayedResults=[],this.currentPage=1,this.isSearching=!1},handleInputChange(i){this.query=i.target.value,this.debouncedSearch()},debouncedSearch:Ga(function(){this.performSearch()},300),performSearch(){const i=this.query.toLowerCase().replace(/\s+/g,"");if(this.normalizedQuery=i,!i){this.filteredResults=[...this.employees,...this.defaultSearchList],this.displayedResults=this.filteredResults.slice(0,this.resultsPerPage),this.currentPage=1;return}this.isSearching=!0,window.requestIdleCallback?window.requestIdleCallback(()=>{this.executeSearch(i)}):setTimeout(()=>{this.executeSearch(i)},0)},executeSearch(i){const e=[];if(this.searchIndex.has(i))e.push(...this.searchIndex.get(i));else for(const r of this.employees)r.searchableText.includes(i)&&e.push(r);const t=this.defaultSearchList.filter(r=>r.name.toLowerCase().replace(/\s+/g,"").includes(i));this.filteredResults=[...e,...t],this.displayedResults=this.filteredResults.slice(0,this.resultsPerPage),this.currentPage=1,this.isSearching=!1},loadMoreResults(){const i=this.currentPage*this.resultsPerPage,e=i+this.resultsPerPage,t=this.filteredResults.slice(i,e);this.displayedResults.push(...t),this.currentPage++},selectItem(i){if(i)if(i.employee_id_encrypted){this.closeModal();const e=this.$route,t=`/employee/employee-view/${i.employee_id_encrypted}`;e.path===t?this.$router.push({path:"/temp"}).then(()=>{this.$router.push(t)}):this.$router.push(t)}else this.closeModal(),console.log("Default item selected:",i.name)},handleEnterPress(){this.displayedResults.length>0&&this.selectItem(this.displayedResults[0])},buildSearchIndex(){this.searchIndex.clear();for(const i of this.employees){const e=i.fullname.toLowerCase().replace(/\s+/g,"");i.searchableText=e;for(let t=1;t<=e.length;t++){const r=e.substring(0,t);this.searchIndex.has(r)||this.searchIndex.set(r,[]),this.searchIndex.get(r).push(i)}}},async fetchRecords(){if(this.$ability.can("view","employeeList")){const i=localStorage.getItem("employeeListStored");if(i&&i!="[]")console.log("Loading from localStorage"),this.employees=JSON.parse(i),this.buildSearchIndex();else{console.log("Fetching from API");try{const t=(await za.fetchRecords()).data;this.employees=t.map(r=>({employee_id:r.employee_id,fullname:r.full_name,employee_id_encrypted:r.employee_id_encrypted})),this.buildSearchIndex(),localStorage.setItem("employeeListStored",JSON.stringify(this.employees))}catch(e){console.error("Failed to fetch records",e)}}}else if(this.$ability.can("view","masterList")||this.$ability.can("view","employeeMasterlist")){const i=localStorage.getItem("employeeListStored");if(i&&i!=="[]")try{const e=JSON.parse(i);if(Array.isArray(e)&&e.length>0&&e.some(t=>t.employee_id&&t.fullname)){console.log("Loading from localStorage"),this.employees=e,this.buildSearchIndex();return}}catch(e){console.warn("Failed to parse stored data",e)}try{const t=(await za.fetchHigherHeadUnderRecords()).data;this.employees=t.map(r=>({employee_id:r.employee_id,fullname:r.full_name,employee_id_encrypted:r.employee_id_encrypted})),this.buildSearchIndex(),localStorage.setItem("employeeListStored",JSON.stringify(this.employees))}catch(e){console.error("Failed to fetch records",e)}}}},created(){this.debouncedSearch=Ga(this.performSearch,300)},mounted(){this.fetchRecords()}},Cv={class:"relative"},Mv={class:"relative mx-auto max-w-xl rounded-md bg-white dark:bg-slate-800 shadow-2xl ring-1 ring-gray-500-500 dark:ring-light divide-y divide-gray-500-300 dark:divide-light"},Rv={className:"flex bg-white dark:bg-slate-800 px-3 rounded-md py-3 items-center"},Pv={className:"flex-0 text-slate-700 dark:text-slate-300 ltr:pr-2 rtl:pl-2 text-lg"},$v={key:0,class:"text-base py-2 px-4"},Lv={key:1},Dv=["onClick"],zv={key:0,class:"text-xs text-slate-500 dark:text-slate-400 ml-2"},Bv={key:0,class:"px-4 py-2 text-center"};function Nv(i,e,t,r,n,a){const s=D("Icon"),l=D("TransitionChild"),o=D("ComboboxInput"),c=D("ComboboxOption"),u=D("ComboboxOptions"),d=D("TransitionRoot"),f=D("Combobox"),p=D("DialogPanel"),m=D("Dialog");return w(),I(ae,null,[g("div",null,[g("button",{onClick:e[0]||(e[0]=(...h)=>a.openModal&&a.openModal(...h)),class:"flex items-center xl:text-sm text-lg xl:text-slate-400 text-slate-800 dark:text-slate-300 px-1 space-x-3 rtl:space-x-reverse"},[$(s,{icon:"heroicons-outline:search"}),e[4]||(e[4]=g("span",{class:"xl:inline-block hidden"},"Search...",-1))])]),$(d,{show:n.isOpen,as:"template"},{default:F(()=>[$(m,{as:"div",onClose:a.closeModal,class:"fixed inset-0 z-[9999] overflow-y-auto p-4 md:pt-[25vh] pt-20"},{default:F(()=>[$(l,{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0","enter-to":"opacity-100",leave:"duration-200 ease-in","leave-from":"opacity-100","leave-to":"opacity-0"},{default:F(()=>e[5]||(e[5]=[g("div",{class:"fixed inset-0 bg-slate-900/60 backdrop-filter backdrop-blur-sm backdrop-brightness-10"},null,-1)])),_:1}),$(l,{as:"template",enter:"duration-300 ease-out","enter-from":"opacity-0 scale-95","enter-to":"opacity-100 scale-100",leave:"duration-200 ease-in","leave-from":"opacity-100 scale-100","leave-to":"opacity-0 scale-95"},{default:F(()=>[$(p,null,{default:F(()=>[$(f,{modelValue:n.selected,"onUpdate:modelValue":e[3]||(e[3]=h=>n.selected=h)},{default:F(()=>[g("div",Cv,[g("div",Mv,[g("div",Rv,[g("div",Pv,[$(s,{icon:"heroicons-outline:search"})]),$(o,{ref:"searchInput",class:"bg-transparent outline-none focus:outline-none border-none w-full flex-1 dark:placeholder:text-slate-300 dark:text-slate-200",placeholder:"Search employees...",value:n.query,onInput:a.handleInputChange,onKeydown:ms(a.handleEnterPress,["enter"])},null,8,["value","onInput","onKeydown"])]),$(d,{leave:"transition ease-in duration-100",leaveFrom:"opacity-100",leaveTo:"opacity-0",onAfterLeave:e[2]||(e[2]=h=>n.query="")},{default:F(()=>[$(u,{class:"max-h-80 overflow-y-auto text-sm py-2"},{default:F(()=>[n.isSearching?(w(),I("div",$v,e[6]||(e[6]=[g("p",{class:"text-slate-500 text-base dark:text-white"}," Searching... ",-1)]))):n.displayedResults.length===0&&n.normalizedQuery?(w(),I("div",Lv,e[7]||(e[7]=[g("div",{className:"text-base py-2 px-4"},[g("p",{className:"text-slate-500-600 text-base dark:text-white"}," No employee found ")],-1)]))):(w(),I(ae,{key:2},[(w(!0),I(ae,null,fe(n.displayedResults,h=>(w(),Q(c,{as:"template",key:h.employee_id||h.id,value:h},{default:F(({active:y,selected:x})=>[g("li",{class:P(["px-4 text-[15px] font-normal capitalize py-2 cursor-pointer",{"bg-primary-500 dark:bg-slate-600 dark:bg-opacity-60 text-white":y,"text-slate-900 dark:text-white":!y}]),onClick:k=>a.selectItem(h)},[g("span",null,X(h.fullname||h.name),1),h.employee_id?(w(),I("span",zv," ID: "+X(h.employee_id),1)):L("",!0)],10,Dv)]),_:2},1032,["value"]))),128)),a.hasMoreResults?(w(),I("div",Bv,[g("button",{onClick:e[1]||(e[1]=(...h)=>a.loadMoreResults&&a.loadMoreResults(...h)),class:"text-primary-500 hover:text-primary-600 text-sm"}," Load more results ("+X(n.filteredResults.length-n.displayedResults.length)+" remaining) ",1)])):L("",!0)],64))]),_:1})]),_:1})])])]),_:1},8,["modelValue"])]),_:1})]),_:1})]),_:1},8,["onClose"])]),_:1},8,["show"])],64)}const jv=se(Iv,[["render",Nv]]),Fv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAA1CAMAAACA7r40AAAA/FBMVEWyIjNPN2Y8O27///8/PnBOTXxycpY9PG9RUX5HR3dIR3dLSnlPTny4uMpWVYFFRHVwb5VlZIx7e52DgqOIh6aIiKc+PXBJSHhTUn9hYYqyIjReXohgX4lYV4Lr6/C2tcjPdYB0c5haWYRYV4Nra5GJiac+PW/FxdTHYG1RUH3eoajltbtOTXvty89BQHHg3+hSUX6GYoC6usyVlbFycZa7u8yUk6+sq8FCQXO0tMe1tMhiYYpMS3pDQnNvbpTExNN8fJ7GxdTGxtWCgqLHx9WXlrLXi5SYl7Kiobrg4Oiiorrn5u3n5+2jo7ukpLvw8PTx8fX09Pf19firqsC5sMNxAAAAAnRSTlPQ9qN1Xw4AAAGlSURBVHhe7ZXFiiRBFEVjznvp5W7t7j3u7m7//y8D1dAMGbnI4jW5KOpsgjibCxFcrrtVEmcBGAGQJHB98d3EgEM/ygsg/nwRAy15rxQ4Ywh3JQX49hVgKA/Ad1hDkkGTMSQJjGkOEmo133FmwAEQyl8FfSj3gFgkzjsQAw6AZ796AP2fGcDBS8/ZQ7ZQlJ2d+bEFqp6zhuh9Cf9/pDtKkTs04KBTD4jgx3eICOodoshz1p7M6UUAUQ+Ap2Pf2UMI5UBBX18/Ut7ZQ84Jui10QKsbcA7dt77jxIBDt+sxMNzrD4HL+rZS4Iw9iTZkCjRFmsBUHkcUOGMI7dkpKezuQsrprM3zR76zN572ekdBX623gaONJ0d5B5sGHAA1+QTwRQJgX2Q/7+w9GZGlDZKERpoxgkbDc8s0WscGSo+WGMiNVlgwWuFNjdafPsDe7wzg3RvP2UNCFGVtbX6EoOo7PhgoO1rGnswHiquB4mqgfIcxpBTGkNslMf2JVMAShRxXgJtUwBKFbFbAqicL4U4qYNWThXCHFbDqyUK4swpY9WQhXBX8A2rVjaQ6HWXmAAAAAElFTkSuQmCC",Vv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAA8AgMAAADtUfddAAAACVBMVEUAAADdAAD/zgDGIigcAAAAHElEQVR4AWMAgVEwCkJxgRElMyqzChcYSTKjMgBDzfIcJWmM/AAAAABJRU5ErkJggg==",Wv={class:"relative z-[22]"},Hv={class:"inline-block md:h-6 md:w-6 w-5 h-5 rounded-full"},qv=["src"],Uv={class:"text-sm md:block hidden font-medium text-slate-600 dark:text-slate-300"},Gv={class:"flex items-center space-x-2 rtl:space-x-reverse"},Yv={class:"flex-none"},Xv={class:"lg:w-6 lg:h-6 w-4 h-4 rounded-full inline-block"},Kv=["src"],Qv={class:"flex-1 lg:text-base text-sm capitalize"},Zv={__name:"Language",setup(i){const e=[{name:"En",image:Fv},{name:"Gn",image:Vv}],t=W(e[0]);return(r,n)=>(w(),I("div",null,[$(Et(Lh),{modelValue:t.value,"onUpdate:modelValue":n[0]||(n[0]=a=>t.value=a)},{default:F(()=>[g("div",Wv,[$(Et(Dh),{class:"relative w-full flex items-center cursor-pointer space-x-[6px] rtl:space-x-reverse"},{default:F(()=>[g("span",Hv,[g("img",{src:t.value.image,alt:"",class:"h-full w-full object-cover rounded-full"},null,8,qv)]),g("span",Uv,X(t.value.name),1)]),_:1}),$(Ge,{"leave-active-class":"transition duration-100 ease-in","leave-from-class":"opacity-100","leave-to-class":"opacity-0"},{default:F(()=>[$(Et(zh),{class:"absolute min-w-[100px] ltr:right-0 rtl:left-0 md:top-[49px] top-[34px] w-auto max-h-60 overflow-auto border border-slate-200 dark:border-slate-700 rounded bg-white dark:bg-slate-800 mt-1"},{default:F(()=>[(w(),I(ae,null,fe(e,a=>$(Et(Bh),{key:a.name,value:a,as:"template"},{default:F(({active:s})=>[g("li",{class:P([s?"bg-slate-100 dark:bg-slate-700 dark:bg-opacity-70 bg-opacity-50 dark:text-white ":"text-slate-600 dark:text-slate-300","w-full border-b border-b-gray-500 border-opacity-10 px-2 py-2 last:border-none last:mb-0 cursor-pointer first:rounded-t last:rounded-b"])},[g("div",Gv,[g("span",Yv,[g("span",Xv,[g("img",{src:a.image,alt:"",class:"w-full h-full object-cover relative top-1 rounded-full"},null,8,Kv)])]),g("span",Qv,X(a.name),1)])],2)]),_:2},1032,["value"])),64))]),_:1})]),_:1})])]),_:1},8,["modelValue"])]))}},Jv={},em={key:0,src:Tn,alt:""},tm={key:1,src:In,alt:""};function im(i,e){const t=D("router-link");return w(),Q(t,{to:{name:"home"}},{default:F(()=>[this.$store.themeSettingsStore.isDark?L("",!0):(w(),I("img",em)),this.$store.themeSettingsStore.isDark?(w(),I("img",tm)):L("",!0)]),_:1})}const nm=se(Jv,[["render",im]]),rm={},sm={key:0,src:Tn,alt:"",class:"w-[100px]"},am={key:1,class:"w-[100px]",src:In,alt:""};function lm(i,e){const t=D("router-link");return w(),Q(t,{to:{name:"home"}},{default:F(()=>[this.$store.themeSettingsStore.isDark?L("",!0):(w(),I("img",sm)),this.$store.themeSettingsStore.isDark?(w(),I("img",am)):L("",!0)]),_:1})}const om=se(rm,[["render",lm]]),um={__name:"HandleMobileMenu",setup(i){const e=br(),t=()=>{e.toggleMsidebar()};return(r,n)=>(w(),I("div",{class:"cursor-pointer text-slate-900 dark:text-white text-2xl",onClick:t},[$(Et(Pe),{icon:"heroicons-outline:menu-alt-3"})]))}};const cm={mixins:[wr],components:{Profile:yp,Notification:Lp,Message:Qp,SwitchDark:tv,MonochromeMode:sv,Mainnav:Tv,Icon:Pe,LanguageVue:Zv,SearchModal:jv,Logo:nm,MobileLogo:om,HandleMobileMenu:um},methods:{navbarTypeClass(){switch(this.$store.themeSettingsStore.navbarType){case"floating":return"floating";case"sticky":return"sticky top-0 z-[999]";case"static":return"static";case"hidden":return"hidden";default:return"sticky top-0"}},borderSwicthClass(){return this.$store.themeSettingsStore.skin==="bordered"&&this.$store.themeSettingsStore.navbarType!=="floating"?"border-b border-gray-5002 dark:border-slate-700":this.$store.themeSettingsStore.skin==="bordered"&&this.$store.themeSettingsStore.navbarType==="floating"?"border border-gray-5002 dark:border-slate-700":"dark:border-b dark:border-slate-700 dark:border-opacity-60"}}},dm={class:"flex justify-between items-center h-full"},fm={key:0,class:"flex items-center md:space-x-4 space-x-2 rtl:space-x-reverse"},hm={key:1,class:"flex items-center space-x-4 rtl:space-x-reverse"},pm={class:"nav-tools flex items-center lg:space-x-5 space-x-3 rtl:space-x-reverse"};function vm(i,e,t,r,n,a){const s=D("Icon"),l=D("MobileLogo"),o=D("handle-mobile-menu"),c=D("SearchModal"),u=D("Logo"),d=D("Mainnav"),f=D("SwitchDark"),p=D("MonochromeMode"),m=D("Notification"),h=D("Profile");return w(),I("header",{class:P(a.navbarTypeClass())},[g("div",{class:P(`app-header md:px-6 px-[15px] dark:bg-slate-800 shadow-base dark:shadow-base3 bg-white ${a.borderSwicthClass()} ${this.$store.themeSettingsStore.navbarColor} ${this.$store.themeSettingsStore.menuLayout==="horizontal"&&i.window.width>=1280?"py-1":"md:py-6 py-3"} `)},[g("div",dm,[this.$store.themeSettingsStore.menuLayout==="vertical"?(w(),I("div",fm,[this.$store.themeSettingsStore.sidebarCollasp&&i.window.width>=1280?(w(),I("button",{key:0,class:"ltr:mr-5 rtl:ml-5 text-xl text-slate-900 dark:text-white",onClick:e[0]||(e[0]=y=>this.$store.themeSettingsStore.sidebarCollasp=!1)},[this.$store.themeSettingsStore.direction?L("",!0):(w(),Q(s,{key:0,icon:"akar-icons:arrow-right"})),this.$store.themeSettingsStore.direction?(w(),Q(s,{key:1,icon:"akar-icons:arrow-left"})):L("",!0)])):L("",!0),i.window.width<1280?(w(),Q(l,{key:1})):L("",!0),i.window.width<1280&&i.window.width>768?(w(),Q(o,{key:2})):L("",!0),$(c)])):L("",!0),this.$store.themeSettingsStore.menuLayout==="horizontal"?(w(),I("div",hm,[i.window.width>=1280?(w(),Q(u,{key:0})):(w(),Q(l,{key:1})),i.window.width<1280?(w(),Q(o,{key:2})):L("",!0)])):L("",!0),this.$store.themeSettingsStore.menuLayout==="horizontal"&&i.window.width>=1280?(w(),Q(d,{key:2})):L("",!0),g("div",pm,[$(f),$(p),i.window.width>768?(w(),Q(m,{key:0})):L("",!0),i.window.width>768?(w(),Q(h,{key:1})):L("",!0),i.window.width<768?(w(),Q(o,{key:2})):L("",!0)])])],2)],2)}const mm=se(cm,[["render",vm],["__scopeId","data-v-452a38ca"]]),gm={data(){return{footer:this.$store.themeSettingsStore.footerType,footerTypes:[{value:"sticky",label:"Sticky"},{value:"static",label:"Static"},{value:"hidden",label:"Hidden"}]}},mounted(){},watch:{footer:{handler(){switch(this.footer){case"floating":this.$store.themeSettingsStore.footerType=this.footer;break;case"sticky":this.$store.themeSettingsStore.footerType=this.footer;break;case"static":this.$store.themeSettingsStore.footerType=this.footer;break;case"hidden":this.$store.themeSettingsStore.footerType=this.footer;break;default:this.$store.themeSettingsStore.footerType=this.footer}},immediate:!0}}},bm={class:"grid md:grid-cols-4 grid-cols-1 gap-3"},ym=["for"],_m=["id","value"];function xm(i,e,t,r,n,a){return w(),I("div",null,[e[1]||(e[1]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-3 mt-6"}," Footer Type ",-1)),g("div",bm,[(w(!0),I(ae,null,fe(n.footerTypes,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`foo_type${l}`,class:"text-slate-500 dark:text-slate-400 text-sm cursor-pointer flex items-center"},[Te(g("input",{class:"hidden",type:"radio",name:"footerType",id:`foo_type${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.footer=o)},null,8,_m),[[Xi,n.footer]]),g("span",{class:P([s.value===n.footer?"shadow-inset-4":"","flex-none h-4 w-4 bg-white dark:bg-transparent rounded-full border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,ym)]))),128))])])}const Vo=se(gm,[["render",xm]]),Sm={data(){return{layout:this.$store.themeSettingsStore.menuLayout,menucollaspse:this.$store.themeSettingsStore.sidebarCollasp,menuHideen:this.$store.themeSettingsStore.sidebarHidden,layouts:[{value:"vertical",label:"Vertical"},{value:"horizontal",label:"Horizontal"}]}},watch:{layout:{handler(){switch(this.layout){case"vertical":this.$store.themeSettingsStore.menuLayout=this.layout,document.documentElement.setAttribute("menu-layout",this.layout),localStorage.setItem("menuLayout",this.layout);break;case"horizontal":this.$store.themeSettingsStore.menuLayout=this.layout,document.documentElement.setAttribute("menu-layout",this.layout),localStorage.setItem("menuLayout",this.layout);break}},immediate:!0},menuHideen:{handler(){this.$store.themeSettingsStore.sidebarHidden=this.menuHideen},immediate:!0},menucollaspse:{handler(){this.$store.themeSettingsStore.sidebarCollasp=this.menucollaspse},immediate:!0}}},km={class:"grid grid-cols-3 gap-3"},wm=["for"],Om=["id","value"],Am={key:0,class:"flex justify-between mt-6 items-center"},Em={key:1,class:"flex justify-between mt-6 items-center"};function Tm(i,e,t,r,n,a){return w(),I("div",null,[e[5]||(e[5]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Menu layout ",-1)),g("div",km,[(w(!0),I(ae,null,fe(n.layouts,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`menu_layout_id${l}`,class:"flex items-center text-sm text-slate-500 dark:text-slate-400 cursor-pointer"},[Te(g("input",{class:"hidden",type:"radio",name:"menulayout",id:`menu_layout_id${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.layout=o)},null,8,Om),[[Xi,n.layout]]),g("span",{class:P([s.value===n.layout?"shadow-inset-4":"","h-4 w-4 bg-white rounded-full dark:bg-transparent border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,wm)]))),128))]),this.$store.themeSettingsStore.menuLayout==="vertical"&&this.$store.themeSettingsStore.sidebarHidden===!1?(w(),I("div",Am,[e[3]||(e[3]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"}," Menu Collapsed ",-1)),g("div",null,[g("label",{class:P([n.menucollaspse?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[1]||(e[1]=s=>n.menucollaspse=s),class:"hidden"},null,512),[[mi,n.menucollaspse]]),g("span",{class:P([n.menucollaspse?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])):L("",!0),this.$store.themeSettingsStore.menuLayout==="vertical"?(w(),I("div",Em,[e[4]||(e[4]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"}," Menu Hidden ",-1)),g("div",null,[g("label",{class:P([n.menuHideen?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[2]||(e[2]=s=>n.menuHideen=s),class:"hidden"},null,512),[[mi,n.menuHideen]]),g("span",{class:P([n.menuHideen?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])):L("",!0)])}const Wo=se(Sm,[["render",Tm]]),Im={data(){return{navType:this.$store.themeSettingsStore.navbarType,navbarTypes:[{value:"floating",label:"Floating"},{value:"sticky",label:"Sticky"},{value:"static",label:"Static"},{value:"hidden",label:"Hidden"}]}},mounted(){},watch:{navType:{handler(){this.$store.themeSettingsStore.navbarType=this.navType},immediate:!0}}},Cm={class:"grid md:grid-cols-4 grid-cols-1 gap-3"},Mm=["for"],Rm=["id","value"];function Pm(i,e,t,r,n,a){return w(),I("div",null,[e[1]||(e[1]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-3 mt-6"}," Navbar Type ",-1)),g("div",Cm,[(w(!0),I(ae,null,fe(n.navbarTypes,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`navbar_type${l}`,class:"text-slate-500 dark:text-slate-400 text-sm cursor-pointer flex items-center"},[Te(g("input",{class:"hidden",type:"radio",name:"navType",id:`navbar_type${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.navType=o)},null,8,Rm),[[Xi,n.navType]]),g("span",{class:P([s.value===n.navType?"shadow-inset-4":"","flex-none h-4 w-4 bg-white dark:bg-transparent rounded-full border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,Mm)]))),128))])])}const Ho=se(Im,[["render",Pm]]);const $m={data(){return{skin:this.$store.themeSettingsStore.skin,skins:[{value:"default",label:"Default"},{value:"bordered",label:"Bordered"}]}},mounted(){},watch:{skin:{handler(){switch(this.skin){case"default":this.$store.themeSettingsStore.skin=this.skin,document.body.classList.remove("skin--bordered"),document.body.classList.add("skin--default"),localStorage.setItem("skin",this.skin);break;case"bordered":this.$store.themeSettingsStore.skin=this.skin,document.body.classList.remove("skin--default"),document.body.classList.add("skin--bordered"),localStorage.setItem("skin",this.skin);break;default:this.$store.themeSettingsStore.skin=this.skin,document.body.classList.remove("skin--bordered"),document.body.classList.add("skin--default"),localStorage.setItem("skin",this.skin)}},immediate:!0}}},Lm={class:"grid md:grid-cols-3 grid-cols-1 gap-3"},Dm=["for"],zm=["id","value"];function Bm(i,e,t,r,n,a){return w(),I("div",null,[e[1]||(e[1]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Skin ",-1)),g("div",Lm,[(w(!0),I(ae,null,fe(n.skins,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`skin_id${l}`,class:"flex items-center text-sm text-slate-500 dark:text-slate-400 cursor-pointer"},[Te(g("input",{class:"hidden",type:"radio",name:"sidebar",id:`skin_id${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.skin=o)},null,8,zm),[[Xi,n.skin]]),g("span",{class:P([s.value===n.skin?"shadow-inset-4":"","flex-none h-4 w-4 bg-white dark:bg-transparent rounded-full border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,Dm)]))),128))])])}const qo=se($m,[["render",Bm]]),Nm={data(){return{contentWidth:this.$store.themeSettingsStore.cWidth,contentWidths:[{value:"full",label:"Full Width"},{value:"boxed",label:"Boxed"}]}},mounted(){},watch:{contentWidth:{handler(){switch(this.contentWidth){case"full":this.$store.themeSettingsStore.cWidth=this.contentWidth;break;case"boxed":this.$store.themeSettingsStore.cWidth=this.contentWidth;break;default:this.$store.themeSettingsStore.cWidth=this.contentWidth}},immediate:!0}}},jm={class:"grid md:grid-cols-3 grid-cols-1 gap-3"},Fm=["for"],Vm=["id","value"];function Wm(i,e,t,r,n,a){return w(),I("div",null,[e[1]||(e[1]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Content Width ",-1)),g("div",jm,[(w(!0),I(ae,null,fe(n.contentWidths,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`contentWidth_id${l}`,class:"flex items-center text-sm text-slate-500 dark:text-slate-400 cursor-pointer"},[Te(g("input",{class:"hidden",type:"radio",name:"contentWidth",id:`contentWidth_id${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.contentWidth=o)},null,8,Vm),[[Xi,n.contentWidth]]),g("span",{class:P([s.value===n.contentWidth?"shadow-inset-4":"","flex-none h-4 w-4 bg-white dark:bg-transparent rounded-full border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,Fm)]))),128))])])}const Uo=se(Nm,[["render",Wm]]);const Hm={data(){return{theme:this.$store.themeSettingsStore.theme,thems:[{value:"light",label:"Light"},{value:"dark",label:"Dark"}]}},mounted(){},watch:{theme:{handler(){switch(this.theme){case"light":this.$store.themeSettingsStore.theme=this.theme,document.body.classList.remove("dark"),document.body.classList.add(this.theme),this.$store.themeSettingsStore.isDark=!1,localStorage.setItem("theme",this.theme);break;case"dark":this.$store.themeSettingsStore.theme=this.theme,document.body.classList.remove("light"),document.body.classList.add(this.theme),this.$store.themeSettingsStore.isDark=!0,localStorage.setItem("theme",this.theme);break;default:this.$store.themeSettingsStore.theme=this.theme,document.body.classList.remove("dark"),document.body.classList.add(this.theme),localStorage.setItem("theme",this.theme)}},immediate:!0}}},qm={class:"grid md:grid-cols-3 grid-cols-1 gap-3"},Um=["for"],Gm=["id","value"];function Ym(i,e,t,r,n,a){return w(),I("div",null,[e[1]||(e[1]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Theme ",-1)),g("div",qm,[(w(!0),I(ae,null,fe(n.thems,(s,l)=>(w(),I("div",{key:l},[g("label",{for:`theme_id${l}`,class:"flex items-center text-sm text-slate-500 dark:text-slate-400 cursor-pointer"},[Te(g("input",{class:"hidden",type:"radio",name:"sidebar",id:`theme_id${l}`,value:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>n.theme=o)},null,8,Gm),[[Xi,n.theme]]),g("span",{class:P([s.value===n.theme?"shadow-inset-4":"","flex-none h-4 w-4 bg-white dark:bg-transparent rounded-full border border-secondary-500 inline-block ltr:mr-3 rtl:ml-3 transition-all duration-150"])},null,2),ft(" "+X(s.label),1)],8,Um)]))),128))])])}const Go=se(Hm,[["render",Ym]]),Xm={data(){return{semidark:this.$store.themeSettingsStore.semidark}},mounted(){},watch:{semidark:{handler(){this.semidark?(this.$store.themeSettingsStore.semidark=this.semidark,document.body.classList.remove("semi-light"),document.body.classList.add("semi-dark"),localStorage.setItem("semiDark",this.semidark)):(this.$store.themeSettingsStore.semidark=this.semidark,document.body.classList.remove("semi-dark"),document.body.classList.add("semi-light"),localStorage.setItem("semiDark",this.semidark))},immediate:!0}}},Km={class:"flex justify-between mt-6 items-center"};function Qm(i,e,t,r,n,a){return w(),I("div",null,[g("div",Km,[e[1]||(e[1]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"},"Semi Dark",-1)),g("div",null,[g("label",{class:P([n.semidark?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=s=>n.semidark=s),class:"hidden"},null,512),[[mi,n.semidark]]),g("span",{class:P([n.semidark?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])])}const Yo=se(Xm,[["render",Qm]]),Zm={data(){return{monochrome:this.$store.themeSettingsStore.monochrome}},mounted(){},methods:{toggleMonochrome(){this.$store.themeSettingsStore.toggleMonochrome()}}},Jm={class:"flex justify-between mt-6 items-center"};function eg(i,e,t,r,n,a){return w(),I("div",null,[g("div",Jm,[e[2]||(e[2]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"},"Monochrome Mode",-1)),g("div",null,[g("label",{class:P([n.monochrome==!0?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox",onChange:e[0]||(e[0]=(...s)=>a.toggleMonochrome&&a.toggleMonochrome(...s)),"onUpdate:modelValue":e[1]||(e[1]=s=>n.monochrome=s),class:"hidden"},null,544),[[mi,n.monochrome]]),g("span",{class:P([n.monochrome?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])])}const Xo=se(Zm,[["render",eg]]),tg={data(){return{direction:this.$store.themeSettingsStore.direction}},mounted(){},watch:{direction:{handler(){this.direction?(this.$store.themeSettingsStore.direction=this.direction,document.documentElement.setAttribute("dir","rtl"),localStorage.setItem("direction",this.direction)):(this.$store.themeSettingsStore.direction=this.direction,document.documentElement.setAttribute("dir","ltr"),localStorage.setItem("direction",this.direction))},immediate:!0}}},ig={class:"flex justify-between mt-6 items-center"};function ng(i,e,t,r,n,a){return w(),I("div",null,[g("div",ig,[e[1]||(e[1]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"},"RTL",-1)),g("div",null,[g("label",{class:P([n.direction?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=s=>n.direction=s),class:"hidden"},null,512),[[mi,n.direction]]),g("span",{class:P([n.direction?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])])}const Ko=se(tg,[["render",ng]]);const rg={mixins:[wr],components:{Icon:Pe,Width:Uo,Skin:qo,MenuLayout:Wo,Navbar:Ho,Theme:Go,Footer:Vo,Semidark:Yo,Monochrome:Xo,Rlt:Ko},data(){return{}}},sg={class:"setting-wrapper fixed ltr:right-0 rtl:left-0 top-0 md:w-[400px] w-[300px] bg-white dark:bg-slate-800 h-screen z-[9999] px-6 md:pb-6 pb-[100px] shadow-base2 dark:shadow-base3 border border-gray-5002 dark:border-slate-700","data-simplebar":""},ag={class:"flex items-center justify-between border-b border-slate-100 dark:border-slate-700 -mx-6 px-6 py-[15px] mb-6"},lg={class:"space-y-4"},og={class:"xl:block hidden"};function ug(i,e,t,r,n,a){const s=D("Icon"),l=D("Skin"),o=D("Theme"),c=D("Semidark"),u=D("Monochrome"),d=D("Rlt"),f=D("Width"),p=D("MenuLayout"),m=D("Navbar"),h=D("Footer");return w(),I("div",null,[this.$store.themeSettingsStore.isOpenSettings?L("",!0):(w(),I("span",{key:0,onClick:e[0]||(e[0]=y=>this.$store.themeSettingsStore.isOpenSettings=!this.$store.themeSettingsStore.isOpenSettings),class:"fixed ltr:md:right-[-32px] ltr:right-0 rtl:left-0 rtl:md:left-[-32px] top-1/2 z-[888] translate-y-1/2 bg-slate-800 text-slate-50 dark:bg-slate-700 dark:text-slate-300 cursor-pointer transform rotate-90 flex items-center text-sm font-medium px-2 py-2 shadow-deep ltr:rounded-b rtl:rounded-t"},[$(s,{icon:"heroicons:cog-6-tooth",class:"text-slate-50 text-lg animate-spin"}),e[3]||(e[3]=g("span",{class:"hidden md:inline-block ltr:ml-2 rtl:mr-2"},"Settings",-1))])),$(Ge,{name:"lefttranslate"},{default:F(()=>[Te(g("div",sg,[g("header",ag,[e[4]||(e[4]=g("div",null,[g("span",{class:"block text-xl text-slate-900 font-medium dark:text-[#eee]"},"Theme customizer"),g("span",{class:"block text-sm font-light text-[#68768A] dark:text-[#eee]"},"Customize & Preview in Real Time")],-1)),g("div",{class:"cursor-pointer text-2xl text-slate-800 dark:text-slate-200",onClick:e[1]||(e[1]=y=>this.$store.themeSettingsStore.isOpenSettings=!1)},[$(s,{icon:"heroicons-outline:x"})])]),g("div",lg,[$(l),$(o),e[5]||(e[5]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(c),$(u),g("div",null,[$(d)]),e[6]||(e[6]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(f),g("div",og,[$(p)]),e[7]||(e[7]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(m),i.window.width>768?(w(),Q(h,{key:0})):L("",!0)])],512),[[vn,this.$store.themeSettingsStore.isOpenSettings]])]),_:1}),$(Ge,{name:"overlay-fade"},{default:F(()=>[this.$store.themeSettingsStore.isOpenSettings?(w(),I("div",{key:0,class:"overlay bg-white bg-opacity-0 fixed inset-0 z-[999]",onClick:e[2]||(e[2]=y=>this.$store.themeSettingsStore.isOpenSettings=!1)})):L("",!0)]),_:1})])}const cg=se(rg,[["render",ug],["__scopeId","data-v-8ec42e15"]]),dg={data(){return{askhr:this.$store.themeSettingsStore.askhr}},mounted(){},watch:{askhr:{handler(){this.askhr?(this.$store.themeSettingsStore.askhr=this.askhr,localStorage.setItem("askhr",this.askhr)):(this.$store.themeSettingsStore.askhr=this.askhr,localStorage.setItem("askhr",this.askhr))},immediate:!0}}},fg={class:"flex justify-between mt-6 items-center"};function hg(i,e,t,r,n,a){return w(),I("div",null,[g("div",fg,[e[1]||(e[1]=g("div",{class:"text-slate-600 text-base dark:text-slate-300"},"Hide Chatbot",-1)),g("div",null,[g("label",{class:P([n.askhr?"bg-primary-500":"bg-secondary-500","relative inline-flex h-6 w-[46px] items-center rounded-full transition-all duration-150 cursor-pointer"])},[Te(g("input",{type:"checkbox","onUpdate:modelValue":e[0]||(e[0]=s=>n.askhr=s),class:"hidden"},null,512),[[mi,n.askhr]]),g("span",{class:P([n.askhr?"ltr:translate-x-6 rtl:-translate-x-6":"ltr:translate-x-[2px] rtl:translate-x-[-2px]","inline-block h-5 w-5 transform rounded-full bg-white transition-all duration-150"])},null,2)],2)])])])}const pg=se(dg,[["render",hg]]),vg={setup(){},components:{Icon:Pe},props:{label:null,formClass:{type:String,default:"border-slate-300"},labelClass:{type:String,default:"p-2 bg-slate-100 text-slate-900"},isRequired:{type:Boolean,default:!1},icon:null,iconWrapperClass:{type:String,default:""},iconClass:{type:String,default:""}}},mg={key:0,class:"text-red-600 text-lg"},gg={class:"w-full"};function bg(i,e,t,r,n,a){const s=D("Icon");return w(),I("div",{class:P(`w-full flex border rounded ${t.formClass}`)},[t.label?(w(),I("label",{key:0,class:P(` ${t.labelClass} ltr:inline-block rtl:block `)},[ft(X(t.label)+" ",1),t.isRequired?(w(),I("span",mg,"*")):L("",!0)],2)):i.$slots.label?(w(),I("label",{key:1,class:P(`input-label ${t.labelClass} ltr:inline-block rtl:block`)},[ge(i.$slots,"label")],2)):L("",!0),t.icon?(w(),I("span",{key:2,class:P(`px-3 py-2 ${t.iconWrapperClass}`)},[$(s,{icon:t.icon,class:P(`text-xl ${t.iconClass} text-slate-300`)},null,8,["icon","class"])],2)):i.$slots.icon?(w(),I("span",{key:3,class:P(`text-xl ${t.iconClass}`)},[ge(i.$slots,"icon")],2)):L("",!0),g("div",gg,[ge(i.$slots,"default")])],2)}const yg=se(vg,[["render",bg]]);function pt(i){return i==null}function _g(i,e,t){const{object:r,valueProp:n,mode:a}=We(i),s=En().proxy,l=t.iv,o=(d,f=!0)=>{l.value=u(d);const p=c(d);e.emit("change",p,s),f&&(e.emit("input",p),e.emit("update:modelValue",p))},c=d=>r.value||pt(d)?d:Array.isArray(d)?d.map(f=>f[n.value]):d[n.value],u=d=>pt(d)?a.value==="single"?{}:[]:d;return{update:o}}function ve(i){return dd(()=>({get:i,set:()=>{}}))}function xg(i,e){const{value:t,modelValue:r,mode:n,valueProp:a}=We(i),s=W(n.value!=="single"?[]:{}),l=ve(()=>r.value!==void 0?r.value:t.value),o=j(()=>n.value==="single"?s.value[a.value]:s.value.map(u=>u[a.value])),c=ve(()=>n.value!=="single"?s.value.map(u=>u[a.value]).join(","):s.value[a.value]);return{iv:s,internalValue:s,ev:l,externalValue:l,textValue:c,plainValue:o}}function Sg(i,e,t){const{regex:r}=We(i),n=En().proxy,a=t.isOpen,s=t.open,l=W(null),o=()=>{l.value=""},c=f=>{l.value=f.target.value},u=f=>{if(r.value){let p=r.value;typeof p=="string"&&(p=new RegExp(p)),f.key.match(p)||f.preventDefault()}},d=f=>{if(r.value){let m=(f.clipboardData||window.clipboardData).getData("Text"),h=r.value;typeof h=="string"&&(h=new RegExp(h)),m.split("").every(y=>!!y.match(h))||f.preventDefault()}e.emit("paste",f,n)};return xe(l,f=>{!a.value&&f&&s(),e.emit("search-change",f,n)}),{search:l,clearSearch:o,handleSearchInput:c,handleKeypress:u,handlePaste:d}}function kg(i,e,t){const{groupSelect:r,mode:n,groups:a,disabledProp:s}=We(i),l=W(null),o=u=>{u===void 0||u!==null&&u[s.value]||a.value&&u&&u.group&&(n.value==="single"||!r.value)||(l.value=u)};return{pointer:l,setPointer:o,clearPointer:()=>{o(null)}}}function Yr(i,e=!0){return e?String(i).toLowerCase().trim():String(i).toLowerCase().normalize("NFD").trim().replace(/æ/g,"ae").replace(/œ/g,"oe").replace(/ø/g,"o").replace(/\p{Diacritic}/gu,"")}function wg(i){return Object.prototype.toString.call(i)==="[object Object]"}function Og(i,e){if(i.length!==e.length)return!1;const t=e.slice().sort();return i.slice().sort().every(function(r,n){return r===t[n]})}const Qo=(i,e)=>{if(i===e)return!0;if(typeof i!="object"||i===null||typeof e!="object"||e===null)return!1;const t=Object.keys(i),r=Object.keys(e);if(t.length!==r.length)return!1;for(let n of t)if(!r.includes(n)||!Qo(i[n],e[n]))return!1;return!0};function Ag(i,e,t){const{options:r,mode:n,trackBy:a,limit:s,hideSelected:l,createTag:o,createOption:c,label:u,appendNewTag:d,appendNewOption:f,multipleLabel:p,object:m,loading:h,delay:y,resolveOnLoad:x,minChars:k,filterResults:v,clearOnSearch:S,clearOnSelect:_,valueProp:b,allowAbsent:E,groupLabel:O,canDeselect:T,max:C,strict:R,closeOnSelect:M,closeOnDeselect:z,groups:V,reverse:H,infinite:q,groupOptions:U,groupHideEmpty:oe,groupSelect:ee,onCreate:le,disabledProp:ne,searchStart:de,searchFilter:Le}=We(i),te=En().proxy,K=t.iv,B=t.ev,Y=t.search,ke=t.clearSearch,He=t.update,Qi=t.pointer,Zi=t.setPointer,$t=t.clearPointer,$n=t.focus,Dr=t.deactivate,Lt=t.close,Ln=t.localize,Dt=W([]),Je=W([]),et=W(!1),ut=W(null),St=W(q.value&&s.value===-1?10:s.value),Dn=j({get:()=>Je.value,set:A=>Je.value=A}),Ji=ve(()=>o.value||c.value||!1),en=ve(()=>d.value!==void 0?d.value:f.value!==void 0?f.value:!0),ct=j(()=>{if(V.value){let A=ti.value||[],N=[];return A.forEach(ie=>{Wr(ie[U.value]).forEach(ye=>{N.push(Object.assign({},ye,ie[ne.value]?{[ne.value]:!0}:{}))})}),N}else{let A=Wr(Je.value||[]);return Dt.value.length&&(A=A.concat(Dt.value)),A}}),tn=j(()=>{let A=ct.value;return H.value&&(A=A.reverse()),wi.value.length&&(A=wi.value.concat(A)),Vr(A)}),zt=j(()=>{let A=tn.value;return St.value>0&&(A=A.slice(0,St.value)),A}),ti=j(()=>{if(!V.value)return[];let A=[],N=Je.value||[];return Dt.value.length&&A.push({[O.value]:" ",[U.value]:[...Dt.value],__CREATE__:!0}),A.concat(N)}),jc=j(()=>{let A=[...ti.value].map(N=>({...N}));return wi.value.length&&(A[0]&&A[0].__CREATE__?A[0][U.value]=[...wi.value,...A[0][U.value]]:A=[{[O.value]:" ",[U.value]:[...wi.value],__CREATE__:!0}].concat(A)),A}),zr=j(()=>{if(!V.value)return[];let A=jc.value;return td((A||[]).map((N,ie)=>{const ye=Wr(N[U.value]);return{...N,index:ie,group:!0,[U.value]:Vr(ye,!1).map(ni=>Object.assign({},ni,N[ne.value]?{[ne.value]:!0}:{})),__VISIBLE__:Vr(ye).map(ni=>Object.assign({},ni,N[ne.value]?{[ne.value]:!0}:{}))}}))}),Br=j(()=>{switch(n.value){case"single":return!pt(K.value[b.value]);case"multiple":case"tags":return!pt(K.value)&&K.value.length>0}}),Fc=j(()=>p.value!==void 0?p.value(K.value,te):K.value&&K.value.length>1?`${K.value.length} options selected`:"1 option selected"),Vc=ve(()=>!ct.value.length&&!et.value&&!wi.value.length),Wc=ve(()=>ct.value.length>0&&zt.value.length==0&&(Y.value&&V.value||!V.value)),wi=j(()=>Ji.value===!1||!Y.value?[]:Zc(Y.value)!==-1?[]:[{[b.value]:Y.value,[ii.value[0]]:Y.value,[u.value]:Y.value,__CREATE__:!0}]),ii=j(()=>a.value?Array.isArray(a.value)?a.value:[a.value]:[u.value]),Hc=ve(()=>{switch(n.value){case"single":return null;case"multiple":case"tags":return[]}}),qc=ve(()=>h.value||et.value),Oi=A=>{switch(typeof A!="object"&&(A=wt(A)),n.value){case"single":He(A);break;case"multiple":case"tags":He(K.value.concat(A));break}e.emit("select",Aa(A),A,te)},Ai=A=>{switch(typeof A!="object"&&(A=wt(A)),n.value){case"single":Ta();break;case"tags":case"multiple":He(Array.isArray(A)?K.value.filter(N=>A.map(ie=>ie[b.value]).indexOf(N[b.value])===-1):K.value.filter(N=>N[b.value]!=A[b.value]));break}e.emit("deselect",Aa(A),A,te)},Aa=A=>m.value?A:A[b.value],Ea=A=>{Ai(A)},Uc=(A,N)=>{if(N.button!==0){N.preventDefault();return}Ea(A)},Ta=()=>{He(Hc.value),e.emit("clear",te)},kt=A=>{if(A.group!==void 0)return n.value==="single"?!1:Qc(A[U.value])&&A[U.value].length;switch(n.value){case"single":return!pt(K.value)&&(K.value[b.value]==A[b.value]||typeof K.value[b.value]=="object"&&typeof A[b.value]=="object"&&Qo(K.value[b.value],A[b.value]));case"tags":case"multiple":return!pt(K.value)&&K.value.map(N=>N[b.value]).indexOf(A[b.value])!==-1}},Nr=A=>A[ne.value]===!0,jr=()=>C===void 0||C.value===-1||!Br.value&&C.value>0?!1:K.value.length>=C.value,Gc=A=>{if(!Nr(A)){if(le.value&&!kt(A)&&A.__CREATE__&&(A={...A},delete A.__CREATE__,A=le.value(A,te),A instanceof Promise)){et.value=!0,A.then(N=>{et.value=!1,Ia(N)});return}Ia(A)}},Ia=A=>{switch(A.__CREATE__&&(A={...A},delete A.__CREATE__),n.value){case"single":if(A&&kt(A)){T.value&&Ai(A),z.value&&($t(),Lt());return}A&&Fr(A),_.value&&ke(),M.value&&($t(),Lt()),A&&Oi(A);break;case"multiple":if(A&&kt(A)){Ai(A),z.value&&($t(),Lt());return}if(jr()){e.emit("max",te);return}A&&(Fr(A),Oi(A)),_.value&&ke(),l.value&&$t(),M.value&&Lt();break;case"tags":if(A&&kt(A)){Ai(A),z.value&&($t(),Lt());return}if(jr()){e.emit("max",te);return}A&&Fr(A),_.value&&ke(),A&&Oi(A),l.value&&$t(),M.value&&Lt();break}M.value||$n()},Yc=A=>{if(!(Nr(A)||n.value==="single"||!ee.value)){switch(n.value){case"multiple":case"tags":Kc(A[U.value])?Ai(A[U.value]):Oi(A[U.value].filter(N=>K.value.map(ie=>ie[b.value]).indexOf(N[b.value])===-1).filter(N=>!N[ne.value]).filter((N,ie)=>K.value.length+1+ie<=C.value||C.value===-1)),l.value&&Qi.value&&Zi(zr.value.filter(N=>!N[ne.value])[Qi.value.index]);break}M.value&&Dr()}},Fr=A=>{wt(A[b.value])===void 0&&Ji.value&&(e.emit("tag",A[b.value],te),e.emit("option",A[b.value],te),e.emit("create",A[b.value],te),en.value&&ed(A),ke())},Xc=()=>{n.value!=="single"&&Oi(zt.value.filter(A=>!A.disabled&&!kt(A)))},Kc=A=>A.find(N=>!kt(N)&&!N[ne.value])===void 0,Qc=A=>A.find(N=>!kt(N))===void 0,wt=A=>ct.value[ct.value.map(N=>String(N[b.value])).indexOf(String(A))],Zc=A=>ct.value.findIndex(N=>ii.value.some(ie=>(parseInt(N[ie])==N[ie]?parseInt(N[ie]):N[ie])===(parseInt(A)==A?parseInt(A):A))),Jc=A=>["tags","multiple"].indexOf(n.value)!==-1&&l.value&&kt(A),ed=A=>{Dt.value.push(A)},td=A=>oe.value?A.filter(N=>Y.value?N.__VISIBLE__.length:N[U.value].length):A.filter(N=>Y.value?N.__VISIBLE__.length:!0),Vr=(A,N=!0)=>{let ie=A;if(Y.value&&v.value){let ye=Le.value;ye||(ye=(ni,Ma,ek)=>ii.value.some(nd=>{let Ra=Yr(Ln(ni[nd]),R.value);return de.value?Ra.startsWith(Yr(Ma,R.value)):Ra.indexOf(Yr(Ma,R.value))!==-1})),ie=ie.filter(ni=>ye(ni,Y.value,te))}return l.value&&N&&(ie=ie.filter(ye=>!Jc(ye))),ie},Wr=A=>{let N=A;return wg(N)&&(N=Object.keys(N).map(ie=>{let ye=N[ie];return{[b.value]:ie,[ii.value[0]]:ye,[u.value]:ye}})),N=N.map(ie=>typeof ie=="object"?ie:{[b.value]:ie,[ii.value[0]]:ie,[u.value]:ie}),N},zn=()=>{pt(B.value)||(K.value=Nn(B.value))},Bn=A=>(et.value=!0,new Promise((N,ie)=>{r.value(Y.value,te).then(ye=>{Je.value=ye||[],typeof A=="function"&&A(ye),et.value=!1}).catch(ye=>{console.error(ye),Je.value=[],et.value=!1}).finally(()=>{N()})})),Hr=()=>{if(Br.value)if(n.value==="single"){let A=wt(K.value[b.value]);if(A!==void 0){let N=A[u.value];K.value[u.value]=N,m.value&&(B.value[u.value]=N)}}else K.value.forEach((A,N)=>{let ie=wt(K.value[N][b.value]);if(ie!==void 0){let ye=ie[u.value];K.value[N][u.value]=ye,m.value&&(B.value[N][u.value]=ye)}})},id=A=>{Bn(A)},Nn=A=>pt(A)?n.value==="single"?{}:[]:m.value?A:n.value==="single"?wt(A)||(E.value?{[u.value]:A,[b.value]:A,[ii.value[0]]:A}:{}):A.filter(N=>!!wt(N)||E.value).map(N=>wt(N)||{[u.value]:N,[b.value]:N,[ii.value[0]]:N}),Ca=()=>{ut.value=xe(Y,A=>{A.length<k.value||!A&&k.value!==0||(et.value=!0,S.value&&(Je.value=[]),setTimeout(()=>{A==Y.value&&r.value(Y.value,te).then(N=>{(A==Y.value||!Y.value)&&(Je.value=N,Qi.value=zt.value.filter(ie=>ie[ne.value]!==!0)[0]||null,et.value=!1)}).catch(N=>{console.error(N)})},y.value))},{flush:"sync"})};if(n.value!=="single"&&!pt(B.value)&&!Array.isArray(B.value))throw new Error(`v-model must be an array when using "${n.value}" mode`);return r&&typeof r.value=="function"?x.value?Bn(zn):m.value==!0&&zn():(Je.value=r.value,zn()),y.value>-1&&Ca(),xe(y,(A,N)=>{ut.value&&ut.value(),A>=0&&Ca()}),xe(B,A=>{if(pt(A)){He(Nn(A),!1);return}switch(n.value){case"single":(m.value?A[b.value]!=K.value[b.value]:A!=K.value[b.value])&&He(Nn(A),!1);break;case"multiple":case"tags":Og(m.value?A.map(N=>N[b.value]):A,K.value.map(N=>N[b.value]))||He(Nn(A),!1);break}},{deep:!0}),xe(r,(A,N)=>{typeof i.options=="function"?x.value&&(!N||A&&A.toString()!==N.toString())&&Bn():(Je.value=i.options,Object.keys(K.value).length||zn(),Hr())}),xe(u,Hr),xe(s,(A,N)=>{St.value=q.value&&A===-1?10:A}),{resolvedOptions:Dn,pfo:tn,fo:zt,filteredOptions:zt,hasSelected:Br,multipleLabelText:Fc,eo:ct,extendedOptions:ct,eg:ti,extendedGroups:ti,fg:zr,filteredGroups:zr,noOptions:Vc,noResults:Wc,resolving:et,busy:qc,offset:St,select:Oi,deselect:Ai,remove:Ea,selectAll:Xc,clear:Ta,isSelected:kt,isDisabled:Nr,isMax:jr,getOption:wt,handleOptionClick:Gc,handleGroupClick:Yc,handleTagRemove:Uc,refreshOptions:id,resolveOptions:Bn,refreshLabels:Hr}}function Eg(i,e,t){const{valueProp:r,showOptions:n,searchable:a,groupLabel:s,groups:l,mode:o,groupSelect:c,disabledProp:u,groupOptions:d}=We(i),f=t.fo,p=t.fg,m=t.handleOptionClick,h=t.handleGroupClick,y=t.search,x=t.pointer,k=t.setPointer,v=t.clearPointer,S=t.multiselect,_=t.isOpen,b=j(()=>f.value.filter(B=>!B[u.value])),E=j(()=>p.value.filter(B=>!B[u.value])),O=ve(()=>o.value!=="single"&&c.value),T=ve(()=>x.value&&x.value.group),C=j(()=>te(x.value)),R=j(()=>{const B=T.value?x.value:te(x.value),Y=E.value.map(He=>He[s.value]).indexOf(B[s.value]);let ke=E.value[Y-1];return ke===void 0&&(ke=z.value),ke}),M=j(()=>{let B=E.value.map(Y=>Y.label).indexOf(T.value?x.value[s.value]:te(x.value)[s.value])+1;return E.value.length<=B&&(B=0),E.value[B]}),z=j(()=>[...E.value].slice(-1)[0]),V=j(()=>x.value.__VISIBLE__.filter(B=>!B[u.value])[0]),H=j(()=>{const B=C.value.__VISIBLE__.filter(Y=>!Y[u.value]);return B[B.map(Y=>Y[r.value]).indexOf(x.value[r.value])-1]}),q=j(()=>{const B=te(x.value).__VISIBLE__.filter(Y=>!Y[u.value]);return B[B.map(Y=>Y[r.value]).indexOf(x.value[r.value])+1]}),U=j(()=>[...R.value.__VISIBLE__.filter(B=>!B[u.value])].slice(-1)[0]),oe=j(()=>[...z.value.__VISIBLE__.filter(B=>!B[u.value])].slice(-1)[0]),ee=B=>x.value&&(!B.group&&x.value[r.value]===B[r.value]||B.group!==void 0&&x.value[s.value]===B[s.value])?!0:void 0,le=()=>{k(b.value[0]||null)},ne=()=>{!x.value||x.value[u.value]===!0||(T.value?h(x.value):m(x.value))},de=()=>{if(x.value===null)k((l.value&&O.value?E.value[0].__CREATE__?b.value[0]:E.value[0]:b.value[0])||null);else if(l.value&&O.value){let B=T.value?V.value:q.value;B===void 0&&(B=M.value,B.__CREATE__&&(B=B[d.value][0])),k(B||null)}else{let B=b.value.map(Y=>Y[r.value]).indexOf(x.value[r.value])+1;b.value.length<=B&&(B=0),k(b.value[B]||null)}Se(()=>{K()})},Le=()=>{if(x.value===null){let B=b.value[b.value.length-1];l.value&&O.value&&(B=oe.value,B===void 0&&(B=z.value)),k(B||null)}else if(l.value&&O.value){let B=T.value?U.value:H.value;B===void 0&&(B=T.value?R.value:C.value,B.__CREATE__&&(B=U.value,B===void 0&&(B=R.value))),k(B||null)}else{let B=b.value.map(Y=>Y[r.value]).indexOf(x.value[r.value])-1;B<0&&(B=b.value.length-1),k(b.value[B]||null)}Se(()=>{K()})},te=B=>E.value.find(Y=>Y.__VISIBLE__.map(ke=>ke[r.value]).indexOf(B[r.value])!==-1),K=()=>{let B=S.value.querySelector("[data-pointed]");if(!B)return;let Y=B.parentElement.parentElement;l.value&&(Y=T.value?B.parentElement.parentElement.parentElement:B.parentElement.parentElement.parentElement.parentElement),B.offsetTop+B.offsetHeight>Y.clientHeight+Y.scrollTop&&(Y.scrollTop=B.offsetTop+B.offsetHeight-Y.clientHeight),B.offsetTop<Y.scrollTop&&(Y.scrollTop=B.offsetTop)};return xe(y,B=>{a.value&&(B.length&&n.value?le():v())}),xe(_,B=>{if(B&&S&&S.value){let Y=S.value.querySelectorAll("[data-selected]")[0];if(!Y)return;let ke=Y.parentElement.parentElement;Se(()=>{ke.scrollTop=Y.offsetTop})}}),{pointer:x,canPointGroups:O,isPointed:ee,setPointerFirst:le,selectPointer:ne,forwardPointer:de,backwardPointer:Le}}function Qe(i){if(i==null)return window;if(i.toString()!=="[object Window]"){var e=i.ownerDocument;return e&&e.defaultView||window}return i}function gi(i){var e=Qe(i).Element;return i instanceof e||i instanceof Element}function st(i){var e=Qe(i).HTMLElement;return i instanceof e||i instanceof HTMLElement}function Gs(i){if(typeof ShadowRoot>"u")return!1;var e=Qe(i).ShadowRoot;return i instanceof e||i instanceof ShadowRoot}var ui=Math.max,or=Math.min,ji=Math.round;function bs(){var i=navigator.userAgentData;return i!=null&&i.brands&&Array.isArray(i.brands)?i.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function Zo(){return!/^((?!chrome|android).)*safari/i.test(bs())}function Fi(i,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=i.getBoundingClientRect(),n=1,a=1;e&&st(i)&&(n=i.offsetWidth>0&&ji(r.width)/i.offsetWidth||1,a=i.offsetHeight>0&&ji(r.height)/i.offsetHeight||1);var s=gi(i)?Qe(i):window,l=s.visualViewport,o=!Zo()&&t,c=(r.left+(o&&l?l.offsetLeft:0))/n,u=(r.top+(o&&l?l.offsetTop:0))/a,d=r.width/n,f=r.height/a;return{width:d,height:f,top:u,right:c+d,bottom:u+f,left:c,x:c,y:u}}function Ys(i){var e=Qe(i),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function Tg(i){return{scrollLeft:i.scrollLeft,scrollTop:i.scrollTop}}function Ig(i){return i===Qe(i)||!st(i)?Ys(i):Tg(i)}function yt(i){return i?(i.nodeName||"").toLowerCase():null}function Jt(i){return((gi(i)?i.ownerDocument:i.document)||window.document).documentElement}function Xs(i){return Fi(Jt(i)).left+Ys(i).scrollLeft}function It(i){return Qe(i).getComputedStyle(i)}function Ks(i){var e=It(i),t=e.overflow,r=e.overflowX,n=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+n+r)}function Cg(i){var e=i.getBoundingClientRect(),t=ji(e.width)/i.offsetWidth||1,r=ji(e.height)/i.offsetHeight||1;return t!==1||r!==1}function Mg(i,e,t){t===void 0&&(t=!1);var r=st(e),n=st(e)&&Cg(e),a=Jt(e),s=Fi(i,n,t),l={scrollLeft:0,scrollTop:0},o={x:0,y:0};return(r||!r&&!t)&&((yt(e)!=="body"||Ks(a))&&(l=Ig(e)),st(e)?(o=Fi(e,!0),o.x+=e.clientLeft,o.y+=e.clientTop):a&&(o.x=Xs(a))),{x:s.left+l.scrollLeft-o.x,y:s.top+l.scrollTop-o.y,width:s.width,height:s.height}}function Jo(i){var e=Fi(i),t=i.offsetWidth,r=i.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:i.offsetLeft,y:i.offsetTop,width:t,height:r}}function Tr(i){return yt(i)==="html"?i:i.assignedSlot||i.parentNode||(Gs(i)?i.host:null)||Jt(i)}function eu(i){return["html","body","#document"].indexOf(yt(i))>=0?i.ownerDocument.body:st(i)&&Ks(i)?i:eu(Tr(i))}function un(i,e){var t;e===void 0&&(e=[]);var r=eu(i),n=r===((t=i.ownerDocument)==null?void 0:t.body),a=Qe(r),s=n?[a].concat(a.visualViewport||[],Ks(r)?r:[]):r,l=e.concat(s);return n?l:l.concat(un(Tr(s)))}function Rg(i){return["table","td","th"].indexOf(yt(i))>=0}function Ya(i){return!st(i)||It(i).position==="fixed"?null:i.offsetParent}function Pg(i){var e=/firefox/i.test(bs()),t=/Trident/i.test(bs());if(t&&st(i)){var r=It(i);if(r.position==="fixed")return null}var n=Tr(i);for(Gs(n)&&(n=n.host);st(n)&&["html","body"].indexOf(yt(n))<0;){var a=It(n);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||e&&a.willChange==="filter"||e&&a.filter&&a.filter!=="none")return n;n=n.parentNode}return null}function Ir(i){for(var e=Qe(i),t=Ya(i);t&&Rg(t)&&It(t).position==="static";)t=Ya(t);return t&&(yt(t)==="html"||yt(t)==="body"&&It(t).position==="static")?e:t||Pg(i)||e}var dt="top",_t="bottom",Yt="right",Tt="left",Qs="auto",Cr=[dt,_t,Yt,Tt],Vi="start",mn="end",$g="clippingParents",tu="viewport",rn="popper",Lg="reference",Xa=Cr.reduce(function(i,e){return i.concat([e+"-"+Vi,e+"-"+mn])},[]),Dg=[].concat(Cr,[Qs]).reduce(function(i,e){return i.concat([e,e+"-"+Vi,e+"-"+mn])},[]),zg="beforeRead",Bg="read",Ng="afterRead",jg="beforeMain",Fg="main",Vg="afterMain",Wg="beforeWrite",Hg="write",qg="afterWrite",Ug=[zg,Bg,Ng,jg,Fg,Vg,Wg,Hg,qg];function Gg(i){var e=new Map,t=new Set,r=[];i.forEach(function(a){e.set(a.name,a)});function n(a){t.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(l){if(!t.has(l)){var o=e.get(l);o&&n(o)}}),r.push(a)}return i.forEach(function(a){t.has(a.name)||n(a)}),r}function Yg(i){var e=Gg(i);return Ug.reduce(function(t,r){return t.concat(e.filter(function(n){return n.phase===r}))},[])}function Xg(i){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(i())})})),e}}function Kg(i){var e=i.reduce(function(t,r){var n=t[r.name];return t[r.name]=n?Object.assign({},n,r,{options:Object.assign({},n.options,r.options),data:Object.assign({},n.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}function Qg(i,e){var t=Qe(i),r=Jt(i),n=t.visualViewport,a=r.clientWidth,s=r.clientHeight,l=0,o=0;if(n){a=n.width,s=n.height;var c=Zo();(c||!c&&e==="fixed")&&(l=n.offsetLeft,o=n.offsetTop)}return{width:a,height:s,x:l+Xs(i),y:o}}function Zg(i){var e,t=Jt(i),r=Ys(i),n=(e=i.ownerDocument)==null?void 0:e.body,a=ui(t.scrollWidth,t.clientWidth,n?n.scrollWidth:0,n?n.clientWidth:0),s=ui(t.scrollHeight,t.clientHeight,n?n.scrollHeight:0,n?n.clientHeight:0),l=-r.scrollLeft+Xs(i),o=-r.scrollTop;return It(n||t).direction==="rtl"&&(l+=ui(t.clientWidth,n?n.clientWidth:0)-a),{width:a,height:s,x:l,y:o}}function Jg(i,e){var t=e.getRootNode&&e.getRootNode();if(i.contains(e))return!0;if(t&&Gs(t)){var r=e;do{if(r&&i.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ys(i){return Object.assign({},i,{left:i.x,top:i.y,right:i.x+i.width,bottom:i.y+i.height})}function eb(i,e){var t=Fi(i,!1,e==="fixed");return t.top=t.top+i.clientTop,t.left=t.left+i.clientLeft,t.bottom=t.top+i.clientHeight,t.right=t.left+i.clientWidth,t.width=i.clientWidth,t.height=i.clientHeight,t.x=t.left,t.y=t.top,t}function Ka(i,e,t){return e===tu?ys(Qg(i,t)):gi(e)?eb(e,t):ys(Zg(Jt(i)))}function tb(i){var e=un(Tr(i)),t=["absolute","fixed"].indexOf(It(i).position)>=0,r=t&&st(i)?Ir(i):i;return gi(r)?e.filter(function(n){return gi(n)&&Jg(n,r)&&yt(n)!=="body"}):[]}function ib(i,e,t,r){var n=e==="clippingParents"?tb(i):[].concat(e),a=[].concat(n,[t]),s=a[0],l=a.reduce(function(o,c){var u=Ka(i,c,r);return o.top=ui(u.top,o.top),o.right=or(u.right,o.right),o.bottom=or(u.bottom,o.bottom),o.left=ui(u.left,o.left),o},Ka(i,s,r));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function Wt(i){return i.split("-")[0]}function Wi(i){return i.split("-")[1]}function iu(i){return["top","bottom"].indexOf(i)>=0?"x":"y"}function nu(i){var e=i.reference,t=i.element,r=i.placement,n=r?Wt(r):null,a=r?Wi(r):null,s=e.x+e.width/2-t.width/2,l=e.y+e.height/2-t.height/2,o;switch(n){case dt:o={x:s,y:e.y-t.height};break;case _t:o={x:s,y:e.y+e.height};break;case Yt:o={x:e.x+e.width,y:l};break;case Tt:o={x:e.x-t.width,y:l};break;default:o={x:e.x,y:e.y}}var c=n?iu(n):null;if(c!=null){var u=c==="y"?"height":"width";switch(a){case Vi:o[c]=o[c]-(e[u]/2-t[u]/2);break;case mn:o[c]=o[c]+(e[u]/2-t[u]/2);break}}return o}function ru(){return{top:0,right:0,bottom:0,left:0}}function nb(i){return Object.assign({},ru(),i)}function rb(i,e){return e.reduce(function(t,r){return t[r]=i,t},{})}function Zs(i,e){e===void 0&&(e={});var t=e,r=t.placement,n=r===void 0?i.placement:r,a=t.strategy,s=a===void 0?i.strategy:a,l=t.boundary,o=l===void 0?$g:l,c=t.rootBoundary,u=c===void 0?tu:c,d=t.elementContext,f=d===void 0?rn:d,p=t.altBoundary,m=p===void 0?!1:p,h=t.padding,y=h===void 0?0:h,x=nb(typeof y!="number"?y:rb(y,Cr)),k=f===rn?Lg:rn,v=i.rects.popper,S=i.elements[m?k:f],_=ib(gi(S)?S:S.contextElement||Jt(i.elements.popper),o,u,s),b=Fi(i.elements.reference),E=nu({reference:b,element:v,strategy:"absolute",placement:n}),O=ys(Object.assign({},v,E)),T=f===rn?O:b,C={top:_.top-T.top+x.top,bottom:T.bottom-_.bottom+x.bottom,left:_.left-T.left+x.left,right:T.right-_.right+x.right},R=i.modifiersData.offset;if(f===rn&&R){var M=R[n];Object.keys(C).forEach(function(z){var V=[Yt,_t].indexOf(z)>=0?1:-1,H=[dt,_t].indexOf(z)>=0?"y":"x";C[z]+=M[H]*V})}return C}var Qa={placement:"bottom",modifiers:[],strategy:"absolute"};function Za(){for(var i=arguments.length,e=new Array(i),t=0;t<i;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function sb(i){i===void 0&&(i={});var e=i,t=e.defaultModifiers,r=t===void 0?[]:t,n=e.defaultOptions,a=n===void 0?Qa:n;return function(l,o,c){c===void 0&&(c=a);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Qa,a),modifiersData:{},elements:{reference:l,popper:o},attributes:{},styles:{}},d=[],f=!1,p={state:u,setOptions:function(x){var k=typeof x=="function"?x(u.options):x;h(),u.options=Object.assign({},a,u.options,k),u.scrollParents={reference:gi(l)?un(l):l.contextElement?un(l.contextElement):[],popper:un(o)};var v=Yg(Kg([].concat(r,u.options.modifiers)));return u.orderedModifiers=v.filter(function(S){return S.enabled}),m(),p.update()},forceUpdate:function(){if(!f){var x=u.elements,k=x.reference,v=x.popper;if(Za(k,v)){u.rects={reference:Mg(k,Ir(v),u.options.strategy==="fixed"),popper:Jo(v)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(C){return u.modifiersData[C.name]=Object.assign({},C.data)});for(var S=0;S<u.orderedModifiers.length;S++){if(u.reset===!0){u.reset=!1,S=-1;continue}var _=u.orderedModifiers[S],b=_.fn,E=_.options,O=E===void 0?{}:E,T=_.name;typeof b=="function"&&(u=b({state:u,options:O,name:T,instance:p})||u)}}}},update:Xg(function(){return new Promise(function(y){p.forceUpdate(),y(u)})}),destroy:function(){h(),f=!0}};if(!Za(l,o))return p;p.setOptions(c).then(function(y){!f&&c.onFirstUpdate&&c.onFirstUpdate(y)});function m(){u.orderedModifiers.forEach(function(y){var x=y.name,k=y.options,v=k===void 0?{}:k,S=y.effect;if(typeof S=="function"){var _=S({state:u,name:x,instance:p,options:v}),b=function(){};d.push(_||b)}})}function h(){d.forEach(function(y){return y()}),d=[]}return p}}var jn={passive:!0};function ab(i){var e=i.state,t=i.instance,r=i.options,n=r.scroll,a=n===void 0?!0:n,s=r.resize,l=s===void 0?!0:s,o=Qe(e.elements.popper),c=[].concat(e.scrollParents.reference,e.scrollParents.popper);return a&&c.forEach(function(u){u.addEventListener("scroll",t.update,jn)}),l&&o.addEventListener("resize",t.update,jn),function(){a&&c.forEach(function(u){u.removeEventListener("scroll",t.update,jn)}),l&&o.removeEventListener("resize",t.update,jn)}}var lb={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:ab,data:{}};function ob(i){var e=i.state,t=i.name;e.modifiersData[t]=nu({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})}var ub={name:"popperOffsets",enabled:!0,phase:"read",fn:ob,data:{}},cb={top:"auto",right:"auto",bottom:"auto",left:"auto"};function db(i,e){var t=i.x,r=i.y,n=e.devicePixelRatio||1;return{x:ji(t*n)/n||0,y:ji(r*n)/n||0}}function Ja(i){var e,t=i.popper,r=i.popperRect,n=i.placement,a=i.variation,s=i.offsets,l=i.position,o=i.gpuAcceleration,c=i.adaptive,u=i.roundOffsets,d=i.isFixed,f=s.x,p=f===void 0?0:f,m=s.y,h=m===void 0?0:m,y=typeof u=="function"?u({x:p,y:h}):{x:p,y:h};p=y.x,h=y.y;var x=s.hasOwnProperty("x"),k=s.hasOwnProperty("y"),v=Tt,S=dt,_=window;if(c){var b=Ir(t),E="clientHeight",O="clientWidth";if(b===Qe(t)&&(b=Jt(t),It(b).position!=="static"&&l==="absolute"&&(E="scrollHeight",O="scrollWidth")),b=b,n===dt||(n===Tt||n===Yt)&&a===mn){S=_t;var T=d&&b===_&&_.visualViewport?_.visualViewport.height:b[E];h-=T-r.height,h*=o?1:-1}if(n===Tt||(n===dt||n===_t)&&a===mn){v=Yt;var C=d&&b===_&&_.visualViewport?_.visualViewport.width:b[O];p-=C-r.width,p*=o?1:-1}}var R=Object.assign({position:l},c&&cb),M=u===!0?db({x:p,y:h},Qe(t)):{x:p,y:h};if(p=M.x,h=M.y,o){var z;return Object.assign({},R,(z={},z[S]=k?"0":"",z[v]=x?"0":"",z.transform=(_.devicePixelRatio||1)<=1?"translate("+p+"px, "+h+"px)":"translate3d("+p+"px, "+h+"px, 0)",z))}return Object.assign({},R,(e={},e[S]=k?h+"px":"",e[v]=x?p+"px":"",e.transform="",e))}function fb(i){var e=i.state,t=i.options,r=t.gpuAcceleration,n=r===void 0?!0:r,a=t.adaptive,s=a===void 0?!0:a,l=t.roundOffsets,o=l===void 0?!0:l,c={placement:Wt(e.placement),variation:Wi(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:n,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,Ja(Object.assign({},c,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:o})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ja(Object.assign({},c,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:o})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}var hb={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:fb,data:{}};function pb(i){var e=i.state;Object.keys(e.elements).forEach(function(t){var r=e.styles[t]||{},n=e.attributes[t]||{},a=e.elements[t];!st(a)||!yt(a)||(Object.assign(a.style,r),Object.keys(n).forEach(function(s){var l=n[s];l===!1?a.removeAttribute(s):a.setAttribute(s,l===!0?"":l)}))})}function vb(i){var e=i.state,t={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,t.popper),e.styles=t,e.elements.arrow&&Object.assign(e.elements.arrow.style,t.arrow),function(){Object.keys(e.elements).forEach(function(r){var n=e.elements[r],a=e.attributes[r]||{},s=Object.keys(e.styles.hasOwnProperty(r)?e.styles[r]:t[r]),l=s.reduce(function(o,c){return o[c]="",o},{});!st(n)||!yt(n)||(Object.assign(n.style,l),Object.keys(a).forEach(function(o){n.removeAttribute(o)}))})}}var mb={name:"applyStyles",enabled:!0,phase:"write",fn:pb,effect:vb,requires:["computeStyles"]},gb=[lb,ub,hb,mb],bb=sb({defaultModifiers:gb});function yb(i){return i==="x"?"y":"x"}function Qn(i,e,t){return ui(i,or(e,t))}function _b(i,e,t){var r=Qn(i,e,t);return r>t?t:r}function xb(i){var e=i.state,t=i.options,r=i.name,n=t.mainAxis,a=n===void 0?!0:n,s=t.altAxis,l=s===void 0?!1:s,o=t.boundary,c=t.rootBoundary,u=t.altBoundary,d=t.padding,f=t.tether,p=f===void 0?!0:f,m=t.tetherOffset,h=m===void 0?0:m,y=Zs(e,{boundary:o,rootBoundary:c,padding:d,altBoundary:u}),x=Wt(e.placement),k=Wi(e.placement),v=!k,S=iu(x),_=yb(S),b=e.modifiersData.popperOffsets,E=e.rects.reference,O=e.rects.popper,T=typeof h=="function"?h(Object.assign({},e.rects,{placement:e.placement})):h,C=typeof T=="number"?{mainAxis:T,altAxis:T}:Object.assign({mainAxis:0,altAxis:0},T),R=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,M={x:0,y:0};if(b){if(a){var z,V=S==="y"?dt:Tt,H=S==="y"?_t:Yt,q=S==="y"?"height":"width",U=b[S],oe=U+y[V],ee=U-y[H],le=p?-O[q]/2:0,ne=k===Vi?E[q]:O[q],de=k===Vi?-O[q]:-E[q],Le=e.elements.arrow,te=p&&Le?Jo(Le):{width:0,height:0},K=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:ru(),B=K[V],Y=K[H],ke=Qn(0,E[q],te[q]),He=v?E[q]/2-le-ke-B-C.mainAxis:ne-ke-B-C.mainAxis,Qi=v?-E[q]/2+le+ke+Y+C.mainAxis:de+ke+Y+C.mainAxis,Zi=e.elements.arrow&&Ir(e.elements.arrow),$t=Zi?S==="y"?Zi.clientTop||0:Zi.clientLeft||0:0,$n=(z=R==null?void 0:R[S])!=null?z:0,Dr=U+He-$n-$t,Lt=U+Qi-$n,Ln=Qn(p?or(oe,Dr):oe,U,p?ui(ee,Lt):ee);b[S]=Ln,M[S]=Ln-U}if(l){var Dt,Je=S==="x"?dt:Tt,et=S==="x"?_t:Yt,ut=b[_],St=_==="y"?"height":"width",Dn=ut+y[Je],Ji=ut-y[et],en=[dt,Tt].indexOf(x)!==-1,ct=(Dt=R==null?void 0:R[_])!=null?Dt:0,tn=en?Dn:ut-E[St]-O[St]-ct+C.altAxis,zt=en?ut+E[St]+O[St]-ct-C.altAxis:Ji,ti=p&&en?_b(tn,ut,zt):Qn(p?tn:Dn,ut,p?zt:Ji);b[_]=ti,M[_]=ti-ut}e.modifiersData[r]=M}}var Sb={name:"preventOverflow",enabled:!0,phase:"main",fn:xb,requiresIfExists:["offset"]},kb={left:"right",right:"left",bottom:"top",top:"bottom"};function Zn(i){return i.replace(/left|right|bottom|top/g,function(e){return kb[e]})}var wb={start:"end",end:"start"};function el(i){return i.replace(/start|end/g,function(e){return wb[e]})}function Ob(i,e){e===void 0&&(e={});var t=e,r=t.placement,n=t.boundary,a=t.rootBoundary,s=t.padding,l=t.flipVariations,o=t.allowedAutoPlacements,c=o===void 0?Dg:o,u=Wi(r),d=u?l?Xa:Xa.filter(function(m){return Wi(m)===u}):Cr,f=d.filter(function(m){return c.indexOf(m)>=0});f.length===0&&(f=d);var p=f.reduce(function(m,h){return m[h]=Zs(i,{placement:h,boundary:n,rootBoundary:a,padding:s})[Wt(h)],m},{});return Object.keys(p).sort(function(m,h){return p[m]-p[h]})}function Ab(i){if(Wt(i)===Qs)return[];var e=Zn(i);return[el(i),e,el(e)]}function Eb(i){var e=i.state,t=i.options,r=i.name;if(!e.modifiersData[r]._skip){for(var n=t.mainAxis,a=n===void 0?!0:n,s=t.altAxis,l=s===void 0?!0:s,o=t.fallbackPlacements,c=t.padding,u=t.boundary,d=t.rootBoundary,f=t.altBoundary,p=t.flipVariations,m=p===void 0?!0:p,h=t.allowedAutoPlacements,y=e.options.placement,x=Wt(y),k=x===y,v=o||(k||!m?[Zn(y)]:Ab(y)),S=[y].concat(v).reduce(function(te,K){return te.concat(Wt(K)===Qs?Ob(e,{placement:K,boundary:u,rootBoundary:d,padding:c,flipVariations:m,allowedAutoPlacements:h}):K)},[]),_=e.rects.reference,b=e.rects.popper,E=new Map,O=!0,T=S[0],C=0;C<S.length;C++){var R=S[C],M=Wt(R),z=Wi(R)===Vi,V=[dt,_t].indexOf(M)>=0,H=V?"width":"height",q=Zs(e,{placement:R,boundary:u,rootBoundary:d,altBoundary:f,padding:c}),U=V?z?Yt:Tt:z?_t:dt;_[H]>b[H]&&(U=Zn(U));var oe=Zn(U),ee=[];if(a&&ee.push(q[M]<=0),l&&ee.push(q[U]<=0,q[oe]<=0),ee.every(function(te){return te})){T=R,O=!1;break}E.set(R,ee)}if(O)for(var le=m?3:1,ne=function(K){var B=S.find(function(Y){var ke=E.get(Y);if(ke)return ke.slice(0,K).every(function(He){return He})});if(B)return T=B,"break"},de=le;de>0;de--){var Le=ne(de);if(Le==="break")break}e.placement!==T&&(e.modifiersData[r]._skip=!0,e.placement=T,e.reset=!0)}}var Tb={name:"flip",enabled:!0,phase:"main",fn:Eb,requiresIfExists:["offset"],data:{_skip:!1}};function Ib(i,e,t){const{disabled:r,appendTo:n,appendToBody:a,openDirection:s}=We(i),l=En().proxy,o=t.multiselect,c=t.dropdown,u=W(!1),d=W(null),f=W(null),p=ve(()=>n.value||a.value),m=ve(()=>s.value==="top"&&f.value==="bottom"||s.value==="bottom"&&f.value!=="top"?"bottom":"top"),h=()=>{u.value||r.value||(u.value=!0,e.emit("open",l),p.value&&Se(()=>{x()}))},y=()=>{u.value&&(u.value=!1,e.emit("close",l))},x=()=>{if(!d.value)return;let v=parseInt(window.getComputedStyle(c.value).borderTopWidth.replace("px","")),S=parseInt(window.getComputedStyle(c.value).borderBottomWidth.replace("px",""));d.value.setOptions(_=>({..._,modifiers:[..._.modifiers,{name:"offset",options:{offset:[0,(m.value==="top"?v:S)*-1]}}]})),d.value.update()},k=v=>{for(;v&&v!==document.body;){if(getComputedStyle(v).position==="fixed")return!0;v=v.parentElement}return!1};return Ke(()=>{p.value&&(d.value=bb(o.value,c.value,{strategy:k(o.value)?"fixed":void 0,placement:s.value,modifiers:[Sb,Tb,{name:"sameWidth",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:({state:v})=>{v.styles.popper.width=`${v.rects.reference.width}px`},effect:({state:v})=>{v.elements.popper.style.width=`${v.elements.reference.offsetWidth}px`}},{name:"toggleClass",enabled:!0,phase:"write",fn({state:v}){f.value=v.placement}}]}))}),cd(()=>{!p.value||!d.value||(d.value.destroy(),d.value=null)}),{popper:d,isOpen:u,open:h,close:y,placement:m,updatePopper:x}}function Cb(i,e,t){const{searchable:r,disabled:n,clearOnBlur:a}=We(i),s=t.input,l=t.open,o=t.close,c=t.clearSearch,u=t.isOpen,d=t.wrapper,f=t.tags,p=W(!1),m=W(!1),h=ve(()=>r.value||n.value?-1:0),y=()=>{r.value&&s.value.blur(),d.value.blur()},x=()=>{r.value&&!n.value&&s.value.focus()},k=(O=!0)=>{n.value||(p.value=!0,O&&l())},v=()=>{p.value=!1,setTimeout(()=>{p.value||(o(),a.value&&c())},1)};return{tabindex:h,isActive:p,mouseClicked:m,blur:y,focus:x,activate:k,deactivate:v,handleFocusIn:O=>{O.target.closest("[data-tags]")&&O.target.nodeName!=="INPUT"||O.target.closest("[data-clear]")||k(m.value)},handleFocusOut:()=>{v()},handleCaretClick:()=>{v(),y()},handleMousedown:O=>{m.value=!0,u.value&&(O.target.isEqualNode(d.value)||O.target.isEqualNode(f.value))?setTimeout(()=>{v()},0):!u.value&&(document.activeElement.isEqualNode(d.value)||document.activeElement.isEqualNode(s.value))&&k(),setTimeout(()=>{m.value=!1},0)}}}function Mb(i,e,t){const{mode:r,addTagOn:n,openDirection:a,searchable:s,showOptions:l,valueProp:o,groups:c,addOptionOn:u,createTag:d,createOption:f,reverse:p}=We(i),m=En().proxy,h=t.iv,y=t.update,x=t.deselect,k=t.search,v=t.setPointer,S=t.selectPointer,_=t.backwardPointer,b=t.forwardPointer,E=t.multiselect,O=t.wrapper,T=t.tags,C=t.isOpen,R=t.open,M=t.blur,z=t.fo,V=ve(()=>d.value||f.value||!1),H=ve(()=>n.value!==void 0?n.value:u.value!==void 0?u.value:["enter"]),q=()=>{r.value==="tags"&&!l.value&&V.value&&s.value&&!c.value&&v(z.value[z.value.map(ee=>ee[o.value]).indexOf(k.value)])};return{handleKeydown:ee=>{e.emit("keydown",ee,m);let le,ne;switch(["ArrowLeft","ArrowRight","Enter"].indexOf(ee.key)!==-1&&r.value==="tags"&&(le=[...E.value.querySelectorAll("[data-tags] > *")].filter(de=>de!==T.value),ne=le.findIndex(de=>de===document.activeElement)),ee.key){case"Backspace":if(r.value==="single"||s.value&&[null,""].indexOf(k.value)===-1||h.value.length===0)return;let de=h.value.filter(Le=>!Le.disabled&&Le.remove!==!1);de.length&&x(de[de.length-1]);break;case"Enter":if(ee.preventDefault(),ee.keyCode===229)return;if(ne!==-1&&ne!==void 0){y([...h.value].filter((Le,te)=>te!==ne)),ne===le.length-1&&(le.length-1?le[le.length-2].focus():s.value?T.value.querySelector("input").focus():O.value.focus());return}if(H.value.indexOf("enter")===-1&&V.value)return;q(),S();break;case" ":if(!V.value&&!s.value){ee.preventDefault(),q(),S();return}if(!V.value)return!1;if(H.value.indexOf("space")===-1&&V.value)return;ee.preventDefault(),q(),S();break;case"Tab":case";":case",":if(H.value.indexOf(ee.key.toLowerCase())===-1||!V.value)return;q(),S(),ee.preventDefault();break;case"Escape":M();break;case"ArrowUp":if(ee.preventDefault(),!l.value)return;C.value||R(),_();break;case"ArrowDown":if(ee.preventDefault(),!l.value)return;C.value||R(),b();break;case"ArrowLeft":if(s.value&&T.value&&T.value.querySelector("input").selectionStart||ee.shiftKey||r.value!=="tags"||!h.value||!h.value.length)return;ee.preventDefault(),ne===-1?le[le.length-1].focus():ne>0&&le[ne-1].focus();break;case"ArrowRight":if(ne===-1||ee.shiftKey||r.value!=="tags"||!h.value||!h.value.length)return;ee.preventDefault(),le.length>ne+1?le[ne+1].focus():s.value?T.value.querySelector("input").focus():s.value||O.value.focus();break}},handleKeyup:ee=>{e.emit("keyup",ee,m)},preparePointer:q}}function Rb(i,e,t){const{classes:r,disabled:n,showOptions:a,breakTags:s}=We(i),l=t.isOpen,o=t.isPointed,c=t.isSelected,u=t.isDisabled,d=t.isActive,f=t.canPointGroups,p=t.resolving,m=t.fo,h=t.placement,y=ve(()=>({container:"multiselect",containerDisabled:"is-disabled",containerOpen:"is-open",containerOpenTop:"is-open-top",containerActive:"is-active",wrapper:"multiselect-wrapper",singleLabel:"multiselect-single-label",singleLabelText:"multiselect-single-label-text",multipleLabel:"multiselect-multiple-label",search:"multiselect-search",tags:"multiselect-tags",tag:"multiselect-tag",tagWrapper:"multiselect-tag-wrapper",tagWrapperBreak:"multiselect-tag-wrapper-break",tagDisabled:"is-disabled",tagRemove:"multiselect-tag-remove",tagRemoveIcon:"multiselect-tag-remove-icon",tagsSearchWrapper:"multiselect-tags-search-wrapper",tagsSearch:"multiselect-tags-search",tagsSearchCopy:"multiselect-tags-search-copy",placeholder:"multiselect-placeholder",caret:"multiselect-caret",caretOpen:"is-open",clear:"multiselect-clear",clearIcon:"multiselect-clear-icon",spinner:"multiselect-spinner",inifinite:"multiselect-inifite",inifiniteSpinner:"multiselect-inifite-spinner",dropdown:"multiselect-dropdown",dropdownTop:"is-top",dropdownHidden:"is-hidden",options:"multiselect-options",optionsTop:"is-top",group:"multiselect-group",groupLabel:"multiselect-group-label",groupLabelPointable:"is-pointable",groupLabelPointed:"is-pointed",groupLabelSelected:"is-selected",groupLabelDisabled:"is-disabled",groupLabelSelectedPointed:"is-selected is-pointed",groupLabelSelectedDisabled:"is-selected is-disabled",groupOptions:"multiselect-group-options",option:"multiselect-option",optionPointed:"is-pointed",optionSelected:"is-selected",optionDisabled:"is-disabled",optionSelectedPointed:"is-selected is-pointed",optionSelectedDisabled:"is-selected is-disabled",noOptions:"multiselect-no-options",noResults:"multiselect-no-results",fakeInput:"multiselect-fake-input",assist:"multiselect-assistive-text",spacer:"multiselect-spacer",...r.value})),x=ve(()=>!!(l.value&&a.value&&(!p.value||p.value&&m.value.length)));return{classList:j(()=>{const v=y.value;return{container:[v.container].concat(n.value?v.containerDisabled:[]).concat(x.value&&h.value==="top"?v.containerOpenTop:[]).concat(x.value&&h.value!=="top"?v.containerOpen:[]).concat(d.value?v.containerActive:[]),wrapper:v.wrapper,spacer:v.spacer,singleLabel:v.singleLabel,singleLabelText:v.singleLabelText,multipleLabel:v.multipleLabel,search:v.search,tags:v.tags,tag:[v.tag].concat(n.value?v.tagDisabled:[]),tagWrapper:[v.tagWrapper,s.value?v.tagWrapperBreak:null],tagDisabled:v.tagDisabled,tagRemove:v.tagRemove,tagRemoveIcon:v.tagRemoveIcon,tagsSearchWrapper:v.tagsSearchWrapper,tagsSearch:v.tagsSearch,tagsSearchCopy:v.tagsSearchCopy,placeholder:v.placeholder,caret:[v.caret].concat(l.value?v.caretOpen:[]),clear:v.clear,clearIcon:v.clearIcon,spinner:v.spinner,inifinite:v.inifinite,inifiniteSpinner:v.inifiniteSpinner,dropdown:[v.dropdown].concat(h.value==="top"?v.dropdownTop:[]).concat(!l.value||!a.value||!x.value?v.dropdownHidden:[]),options:[v.options].concat(h.value==="top"?v.optionsTop:[]),group:v.group,groupLabel:S=>{let _=[v.groupLabel];return o(S)?_.push(c(S)?v.groupLabelSelectedPointed:v.groupLabelPointed):c(S)&&f.value?_.push(u(S)?v.groupLabelSelectedDisabled:v.groupLabelSelected):u(S)&&_.push(v.groupLabelDisabled),f.value&&_.push(v.groupLabelPointable),_},groupOptions:v.groupOptions,option:(S,_)=>{let b=[v.option];return o(S)?b.push(c(S)?v.optionSelectedPointed:v.optionPointed):c(S)?b.push(u(S)?v.optionSelectedDisabled:v.optionSelected):(u(S)||_&&u(_))&&b.push(v.optionDisabled),b},noOptions:v.noOptions,noResults:v.noResults,assist:v.assist,fakeInput:v.fakeInput}}),showDropdown:x}}function Pb(i,e,t){const{limit:r,infinite:n}=We(i),a=t.isOpen,s=t.offset,l=t.search,o=t.pfo,c=t.eo,u=W(null),d=li(null),f=ve(()=>s.value<o.value.length),p=h=>{const{isIntersecting:y,target:x}=h[0];if(y){const k=x.offsetParent,v=k.scrollTop;s.value+=r.value==-1?10:r.value,Se(()=>{k.scrollTop=v})}},m=()=>{a.value&&s.value<o.value.length?u.value.observe(d.value):!a.value&&u.value&&u.value.disconnect()};return xe(a,()=>{n.value&&m()}),xe(l,()=>{n.value&&(s.value=r.value,m())},{flush:"post"}),xe(c,()=>{n.value&&m()},{immediate:!1,flush:"post"}),Ke(()=>{window&&window.IntersectionObserver&&(u.value=new IntersectionObserver(p))}),{hasMore:f,infiniteLoader:d}}function $b(i,e,t){const{placeholder:r,id:n,valueProp:a,label:s,mode:l,groupLabel:o,aria:c,searchable:u}=We(i),d=t.pointer,f=t.iv,p=t.hasSelected,m=t.multipleLabelText,h=W(null),y=ve(()=>`${n.value?n.value+"-":""}assist`),x=ve(()=>`${n.value?n.value+"-":""}multiselect-options`),k=ve(()=>{if(d.value){let M=n.value?`${n.value}-`:"";return M+=`${d.value.group?"multiselect-group":"multiselect-option"}-`,M+=d.value.group?d.value.index:d.value[a.value],M}}),v=ve(()=>r.value),S=ve(()=>l.value!=="single"),_=j(()=>l.value==="single"&&p.value?f.value[s.value]:l.value==="multiple"&&p.value?m.value:l.value==="tags"&&p.value?f.value.map(M=>M[s.value]).join(", "):""),b=j(()=>{let M={...c.value};return u.value&&(M["aria-labelledby"]=M["aria-labelledby"]?`${y.value} ${M["aria-labelledby"]}`:y.value,_.value&&M["aria-label"]&&(M["aria-label"]=`${_.value}, ${M["aria-label"]}`)),M}),E=M=>`${n.value?n.value+"-":""}multiselect-option-${M[a.value]}`,O=M=>`${n.value?n.value+"-":""}multiselect-group-${M.index}`,T=M=>`${M}`,C=M=>`${M}`,R=M=>`${M} ❎`;return Ke(()=>{if(n.value&&document&&document.querySelector){let M=document.querySelector(`[for="${n.value}"]`);h.value=M?M.innerText:null}}),{arias:b,ariaLabel:_,ariaAssist:y,ariaControls:x,ariaPlaceholder:v,ariaMultiselectable:S,ariaActiveDescendant:k,ariaOptionId:E,ariaOptionLabel:T,ariaGroupId:O,ariaGroupLabel:C,ariaTagLabel:R}}function Lb(i,e,t){const{locale:r,fallbackLocale:n}=We(i);return{localize:s=>!s||typeof s!="object"?s:s&&s[r.value]?s[r.value]:s&&r.value&&s[r.value.toUpperCase()]?s[r.value.toUpperCase()]:s&&s[n.value]?s[n.value]:s&&n.value&&s[n.value.toUpperCase()]?s[n.value.toUpperCase()]:s&&Object.keys(s)[0]?s[Object.keys(s)[0]]:""}}function Db(i,e,t){const r=li(null),n=li(null),a=li(null),s=li(null),l=li(null);return{multiselect:r,wrapper:n,tags:a,input:s,dropdown:l}}function zb(i,e,t,r={}){return t.forEach(n=>{r={...r,...n(i,e,r)}}),r}var Js={name:"Multiselect",emits:["paste","open","close","select","deselect","input","search-change","tag","option","update:modelValue","change","clear","keydown","keyup","max","create"],props:{value:{required:!1},modelValue:{required:!1},options:{type:[Array,Object,Function],required:!1,default:()=>[]},id:{type:[String,Number],required:!1,default:void 0},name:{type:[String,Number],required:!1,default:"multiselect"},disabled:{type:Boolean,required:!1,default:!1},label:{type:String,required:!1,default:"label"},trackBy:{type:[String,Array],required:!1,default:void 0},valueProp:{type:String,required:!1,default:"value"},placeholder:{type:String,required:!1,default:null},mode:{type:String,required:!1,default:"single"},searchable:{type:Boolean,required:!1,default:!1},limit:{type:Number,required:!1,default:-1},hideSelected:{type:Boolean,required:!1,default:!0},createTag:{type:Boolean,required:!1,default:void 0},createOption:{type:Boolean,required:!1,default:void 0},appendNewTag:{type:Boolean,required:!1,default:void 0},appendNewOption:{type:Boolean,required:!1,default:void 0},addTagOn:{type:Array,required:!1,default:void 0},addOptionOn:{type:Array,required:!1,default:void 0},caret:{type:Boolean,required:!1,default:!0},loading:{type:Boolean,required:!1,default:!1},noOptionsText:{type:[String,Object],required:!1,default:"The list is empty"},noResultsText:{type:[String,Object],required:!1,default:"No results found"},multipleLabel:{type:Function,required:!1,default:void 0},object:{type:Boolean,required:!1,default:!1},delay:{type:Number,required:!1,default:-1},minChars:{type:Number,required:!1,default:0},resolveOnLoad:{type:Boolean,required:!1,default:!0},filterResults:{type:Boolean,required:!1,default:!0},clearOnSearch:{type:Boolean,required:!1,default:!1},clearOnSelect:{type:Boolean,required:!1,default:!0},canDeselect:{type:Boolean,required:!1,default:!0},canClear:{type:Boolean,required:!1,default:!0},max:{type:Number,required:!1,default:-1},showOptions:{type:Boolean,required:!1,default:!0},required:{type:Boolean,required:!1,default:!1},openDirection:{type:String,required:!1,default:"bottom"},nativeSupport:{type:Boolean,required:!1,default:!1},classes:{type:Object,required:!1,default:()=>({})},strict:{type:Boolean,required:!1,default:!0},closeOnSelect:{type:Boolean,required:!1,default:!0},closeOnDeselect:{type:Boolean,required:!1,default:!1},autocomplete:{type:String,required:!1,default:void 0},groups:{type:Boolean,required:!1,default:!1},groupLabel:{type:String,required:!1,default:"label"},groupOptions:{type:String,required:!1,default:"options"},groupHideEmpty:{type:Boolean,required:!1,default:!1},groupSelect:{type:Boolean,required:!1,default:!0},inputType:{type:String,required:!1,default:"text"},attrs:{required:!1,type:Object,default:()=>({})},onCreate:{required:!1,type:Function,default:void 0},disabledProp:{type:String,required:!1,default:"disabled"},searchStart:{type:Boolean,required:!1,default:!1},reverse:{type:Boolean,required:!1,default:!1},regex:{type:[Object,String,RegExp],required:!1,default:void 0},rtl:{type:Boolean,required:!1,default:!1},infinite:{type:Boolean,required:!1,default:!1},aria:{required:!1,type:Object,default:()=>({})},clearOnBlur:{required:!1,type:Boolean,default:!0},locale:{required:!1,type:String,default:null},fallbackLocale:{required:!1,type:String,default:"en"},searchFilter:{required:!1,type:Function,default:null},allowAbsent:{required:!1,type:Boolean,default:!1},appendToBody:{required:!1,type:Boolean,default:!1},closeOnScroll:{required:!1,type:Boolean,default:!1},breakTags:{required:!1,type:Boolean,default:!1},appendTo:{required:!1,type:String,default:void 0}},setup(i,e){return zb(i,e,[Db,Lb,xg,kg,Ib,Sg,_g,Cb,Ag,Pb,Eg,Mb,Rb,$b])},beforeMount(){(this.$root.constructor&&this.$root.constructor.version&&this.$root.constructor.version.match(/^2\./)||this.vueVersionMs===2)&&(this.$options.components.Teleport||(this.$options.components.Teleport={render(){return this.$slots.default?this.$slots.default[0]:null}}))}};const Bb=["id","dir"],Nb=["tabindex","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable","role"],jb=["type","modelValue","value","autocomplete","id","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Fb=["onKeyup","aria-label"],Vb=["onClick"],Wb=["type","modelValue","value","id","autocomplete","aria-controls","aria-placeholder","aria-expanded","aria-activedescendant","aria-multiselectable"],Hb=["innerHTML"],qb=["id"],Ub=["id"],Gb=["id","aria-label","aria-selected"],Yb=["data-pointed","onMouseenter","onClick"],Xb=["innerHTML"],Kb=["aria-label"],Qb=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Zb=["data-pointed","data-selected","onMouseenter","onClick","id","aria-selected","aria-label"],Jb=["innerHTML"],e0=["innerHTML"],t0=["value"],i0=["name","value"],n0=["name","value"],r0=["id"];function s0(i,e,t,r,n,a){return w(),I("div",{ref:"multiselect",class:P(i.classList.container),id:t.searchable?void 0:t.id,dir:t.rtl?"rtl":void 0,onFocusin:e[12]||(e[12]=(...s)=>i.handleFocusIn&&i.handleFocusIn(...s)),onFocusout:e[13]||(e[13]=(...s)=>i.handleFocusOut&&i.handleFocusOut(...s)),onKeyup:e[14]||(e[14]=(...s)=>i.handleKeyup&&i.handleKeyup(...s)),onKeydown:e[15]||(e[15]=(...s)=>i.handleKeydown&&i.handleKeydown(...s))},[g("div",qr({class:i.classList.wrapper,onMousedown:e[9]||(e[9]=(...s)=>i.handleMousedown&&i.handleMousedown(...s)),ref:"wrapper",tabindex:i.tabindex,"aria-controls":t.searchable?void 0:i.ariaControls,"aria-placeholder":t.searchable?void 0:i.ariaPlaceholder,"aria-expanded":t.searchable?void 0:i.isOpen,"aria-activedescendant":t.searchable?void 0:i.ariaActiveDescendant,"aria-multiselectable":t.searchable?void 0:i.ariaMultiselectable,role:t.searchable?void 0:"combobox"},t.searchable?{}:i.arias),[L(" Search "),t.mode!=="tags"&&t.searchable&&!t.disabled?(w(),I("input",qr({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.search,autocomplete:t.autocomplete,id:t.searchable?t.id:void 0,onInput:e[0]||(e[0]=(...s)=>i.handleSearchInput&&i.handleSearchInput(...s)),onKeypress:e[1]||(e[1]=(...s)=>i.handleKeypress&&i.handleKeypress(...s)),onPaste:e[2]||(e[2]=Ur((...s)=>i.handlePaste&&i.handlePaste(...s),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,jb)):L("v-if",!0),L(" Tags (with search) "),t.mode=="tags"?(w(),I("div",{key:1,class:P(i.classList.tags),"data-tags":""},[(w(!0),I(ae,null,fe(i.iv,(s,l,o)=>ge(i.$slots,"tag",{option:s,handleTagRemove:i.handleTagRemove,disabled:t.disabled},()=>[(w(),I("span",{class:P([i.classList.tag,s.disabled?i.classList.tagDisabled:null]),tabindex:"-1",onKeyup:ms(c=>i.handleTagRemove(s,c),["enter"]),key:o,"aria-label":i.ariaTagLabel(i.localize(s[t.label]))},[g("span",{class:P(i.classList.tagWrapper)},X(i.localize(s[t.label])),3),!t.disabled&&!s.disabled?(w(),I("span",{key:0,class:P(i.classList.tagRemove),onClick:Ur(c=>i.handleTagRemove(s,c),["stop"])},[g("span",{class:P(i.classList.tagRemoveIcon)},null,2)],10,Vb)):L("v-if",!0)],42,Fb))])),256)),g("div",{class:P(i.classList.tagsSearchWrapper),ref:"tags"},[L(" Used for measuring search width "),g("span",{class:P(i.classList.tagsSearchCopy)},X(i.search),3),L(" Actual search input "),t.searchable&&!t.disabled?(w(),I("input",qr({key:0,type:t.inputType,modelValue:i.search,value:i.search,class:i.classList.tagsSearch,id:t.searchable?t.id:void 0,autocomplete:t.autocomplete,onInput:e[3]||(e[3]=(...s)=>i.handleSearchInput&&i.handleSearchInput(...s)),onKeypress:e[4]||(e[4]=(...s)=>i.handleKeypress&&i.handleKeypress(...s)),onPaste:e[5]||(e[5]=Ur((...s)=>i.handlePaste&&i.handlePaste(...s),["stop"])),ref:"input","aria-controls":i.ariaControls,"aria-placeholder":i.ariaPlaceholder,"aria-expanded":i.isOpen,"aria-activedescendant":i.ariaActiveDescendant,"aria-multiselectable":i.ariaMultiselectable,role:"combobox"},{...t.attrs,...i.arias}),null,16,Wb)):L("v-if",!0)],2)],2)):L("v-if",!0),L(" Single label "),t.mode=="single"&&i.hasSelected&&!i.search&&i.iv?ge(i.$slots,"singlelabel",{key:2,value:i.iv},()=>[g("div",{class:P(i.classList.singleLabel)},[g("span",{class:P(i.classList.singleLabelText)},X(i.localize(i.iv[t.label])),3)],2)]):L("v-if",!0),L(" Multiple label "),t.mode=="multiple"&&i.hasSelected&&!i.search?ge(i.$slots,"multiplelabel",{key:3,values:i.iv},()=>[g("div",{class:P(i.classList.multipleLabel),innerHTML:i.multipleLabelText},null,10,Hb)]):L("v-if",!0),L(" Placeholder "),t.placeholder&&!i.hasSelected&&!i.search?ge(i.$slots,"placeholder",{key:4},()=>[g("div",{class:P(i.classList.placeholder),"aria-hidden":"true"},X(t.placeholder),3)]):L("v-if",!0),L(" Spinner "),t.loading||i.resolving?ge(i.$slots,"spinner",{key:5},()=>[g("span",{class:P(i.classList.spinner),"aria-hidden":"true"},null,2)]):L("v-if",!0),L(" Clear "),i.hasSelected&&!t.disabled&&t.canClear&&!i.busy?ge(i.$slots,"clear",{key:6,clear:i.clear},()=>[g("span",{"aria-hidden":"true",tabindex:"0",role:"button","data-clear":"","aria-roledescription":"❎",class:P(i.classList.clear),onClick:e[6]||(e[6]=(...s)=>i.clear&&i.clear(...s)),onKeyup:e[7]||(e[7]=ms((...s)=>i.clear&&i.clear(...s),["enter"]))},[g("span",{class:P(i.classList.clearIcon)},null,2)],34)]):L("v-if",!0),L(" Caret "),t.caret&&t.showOptions?ge(i.$slots,"caret",{key:7,handleCaretClick:i.handleCaretClick,isOpen:i.isOpen},()=>[g("span",{class:P(i.classList.caret),onClick:e[8]||(e[8]=(...s)=>i.handleCaretClick&&i.handleCaretClick(...s)),"aria-hidden":"true"},null,2)]):L("v-if",!0)],16,Nb),L(" Options "),(w(),Q(ud,{to:t.appendTo||"body",disabled:!t.appendToBody&&!t.appendTo},[g("div",{id:t.id?`${t.id}-dropdown`:void 0,class:P(i.classList.dropdown),tabindex:"-1",ref:"dropdown",onFocusin:e[10]||(e[10]=(...s)=>i.handleFocusIn&&i.handleFocusIn(...s)),onFocusout:e[11]||(e[11]=(...s)=>i.handleFocusOut&&i.handleFocusOut(...s))},[ge(i.$slots,"beforelist",{options:i.fo}),g("ul",{class:P(i.classList.options),id:i.ariaControls,role:"listbox"},[t.groups?(w(!0),I(ae,{key:0},fe(i.fg,(s,l,o)=>(w(),I("li",{class:P(i.classList.group),key:o,id:i.ariaGroupId(s),"aria-label":i.ariaGroupLabel(i.localize(s[t.groupLabel])),"aria-selected":i.isSelected(s),role:"option"},[s.__CREATE__?L("v-if",!0):(w(),I("div",{key:0,class:P(i.classList.groupLabel(s)),"data-pointed":i.isPointed(s),onMouseenter:c=>i.setPointer(s,l),onClick:c=>i.handleGroupClick(s)},[ge(i.$slots,"grouplabel",{group:s,isSelected:i.isSelected,isPointed:i.isPointed},()=>[g("span",{innerHTML:i.localize(s[t.groupLabel])},null,8,Xb)])],42,Yb)),g("ul",{class:P(i.classList.groupOptions),"aria-label":i.ariaGroupLabel(i.localize(s[t.groupLabel])),role:"group"},[(w(!0),I(ae,null,fe(s.__VISIBLE__,(c,u,d)=>(w(),I("li",{class:P(i.classList.option(c,s)),"data-pointed":i.isPointed(c),"data-selected":i.isSelected(c)||void 0,key:d,onMouseenter:f=>i.setPointer(c),onClick:f=>i.handleOptionClick(c),id:i.ariaOptionId(c),"aria-selected":i.isSelected(c),"aria-label":i.ariaOptionLabel(i.localize(c[t.label])),role:"option"},[ge(i.$slots,"option",{option:c,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[g("span",null,X(i.localize(c[t.label])),1)])],42,Qb))),128))],10,Kb)],10,Gb))),128)):(w(!0),I(ae,{key:1},fe(i.fo,(s,l,o)=>(w(),I("li",{class:P(i.classList.option(s)),"data-pointed":i.isPointed(s),"data-selected":i.isSelected(s)||void 0,key:o,onMouseenter:c=>i.setPointer(s),onClick:c=>i.handleOptionClick(s),id:i.ariaOptionId(s),"aria-selected":i.isSelected(s),"aria-label":i.ariaOptionLabel(i.localize(s[t.label])),role:"option"},[ge(i.$slots,"option",{option:s,isSelected:i.isSelected,isPointed:i.isPointed,search:i.search},()=>[g("span",null,X(i.localize(s[t.label])),1)])],42,Zb))),128))],10,Ub),i.noOptions?ge(i.$slots,"nooptions",{key:0},()=>[g("div",{class:P(i.classList.noOptions),innerHTML:i.localize(t.noOptionsText)},null,10,Jb)]):L("v-if",!0),i.noResults?ge(i.$slots,"noresults",{key:1},()=>[g("div",{class:P(i.classList.noResults),innerHTML:i.localize(t.noResultsText)},null,10,e0)]):L("v-if",!0),t.infinite&&i.hasMore?(w(),I("div",{key:2,class:P(i.classList.inifinite),ref:"infiniteLoader"},[ge(i.$slots,"infinite",{},()=>[g("span",{class:P(i.classList.inifiniteSpinner)},null,2)])],2)):L("v-if",!0),ge(i.$slots,"afterlist",{options:i.fo})],42,qb)],8,["to","disabled"])),L(" Hacky input element to show HTML5 required warning "),t.required?(w(),I("input",{key:0,class:P(i.classList.fakeInput),tabindex:"-1",value:i.textValue,required:""},null,10,t0)):L("v-if",!0),L(" Native input support "),t.nativeSupport?(w(),I(ae,{key:1},[t.mode=="single"?(w(),I("input",{key:0,type:"hidden",name:t.name,value:i.plainValue!==void 0?i.plainValue:""},null,8,i0)):(w(!0),I(ae,{key:1},fe(i.plainValue,(s,l)=>(w(),I("input",{type:"hidden",name:`${t.name}[]`,value:s,key:l},null,8,n0))),128))],64)):L("v-if",!0),L(" Screen reader assistive text "),t.searchable&&i.hasSelected?(w(),I("div",{key:2,class:P(i.classList.assist),id:i.ariaAssist,"aria-hidden":"true"},X(i.ariaLabel),11,r0)):L("v-if",!0),L(" Create height for empty input "),g("div",{class:P(i.classList.spacer)},null,2)],42,Bb)}Js.render=s0;Js.__file="src/Multiselect.vue";const a0={mixins:[wr],components:{Announcement:sf,AskHr:pg,Multiselect:Js,InputGroup:yg,Icon:Pe,Width:Uo,Skin:qo,MenuLayout:Wo,Navbar:Ho,Theme:Go,Footer:Vo,Semidark:Yo,Monochrome:Xo,Rlt:Ko},data(){return{company:this.$store.userSettings.getActiveCompany??null,dealership:this.$store.userSettings.getActiveDealership??null,state:{isSwitcherOpen:!1}}},computed:{companyOptions(){let i=[],e=this.$store.userSettings.getCompanyAccess??null;return e&&(i=e.map(t=>({label:t.name,value:t.id}))),i},dealershipOptions(){let i=[],e=this.$store.userSettings.getDealershipAccess??null;return this.company&&e&&(i=e.filter(t=>t.company_id==this.company).map(t=>({label:t.name,value:t.id}))),i},activeCompany(){return this.$store.userSettings.getActiveCompany??null},activeDealership(){return this.$store.userSettings.getActiveDealership??null}},methods:{handleDealership(i){i!==void 0&&i!=this.activeDealership&&this.$swal.fire({title:"Are you sure?",text:`You want to change active dealership? This will redirected to home page`,icon:"warning",showCancelButton:!0,confirmButtonColor:"#34c38f",cancelButtonColor:"#f46a6a",cancelButtonText:"No",confirmButtonText:"Yes",background:this.$store.themeSettingsStore.isDark?"#1e293b":"#fff"}).then(t=>{t.value?(this.$store.userSettings.menus=null,this.$store.userSettings.setActiveCompany(this.company),this.$store.userSettings.setActiveDealership(i),console.log("dealer",i),this.$store.userSettings.fetchMenus({system_id:3,app_code:"hr"}),this.updateAbility(),this.state.isSwitcherOpen=!1,this.$router.push("/")):this.resetActiveAccess()})},resetActiveAccess(){this.company=this.activeCompany,this.dealership=this.activeDealership},async updateAbility(){const{can:i,rules:e}=new hd(pd),t=localStorage.getItem("roles")?JSON.parse(localStorage.getItem("roles")).map(r=>r.id):[];if(t.includes(1))i("manage","all");else{let r=[];await fd.fetchCompanyPermissions({roles:t,company_id:this.company,dealership_id:this.dealership}).then(n=>{n.status==200&&(r=n.data.data)}).catch(n=>{console.log(n)}).finally(()=>{r.length>0&&r.forEach(n=>{i(n.permission.code,n.module.code)})})}this.$store.userSettings.setCapabilities(e)},loadCompanyAccess(){localStorage.getItem("companyAccess")==null||localStorage.getItem("companyAccess").length===0?this.$store.userSettings.fetchCompanyAccess():this.$store.userSettings.setCompanyAccessFromLocal(),localStorage.getItem("dealershipAccess")==null||localStorage.getItem("dealershipAccess").length===0?this.$store.userSettings.fetchDealershipAccess():this.$store.userSettings.setDealershipAccessFromLocal()},loadActiveAccess(){this.$store.userSettings.setActiveCompanyFromLocal(),this.$store.userSettings.setActiveDealershipFromLocal()},clickOutside(){this.state.isSwitcherOpen=!1}},mounted(){this.loadCompanyAccess(),this.loadActiveAccess()}},l0={class:"setting-wrapper fixed ltr:right-0 rtl:left-0 top-0 md:w-[400px] w-[300px] bg-white dark:bg-slate-800 h-screen z-[9999] px-6 md:pb-6 pb-[100px] shadow-base2 dark:shadow-base3 border border-gray-5002 dark:border-slate-700","data-simplebar":""},o0={class:"flex items-center justify-between border-b border-slate-100 dark:border-slate-700 -mx-6 px-6 py-[15px]"},u0={class:"-mx-6 px-6 py-[15px] mb-6"},c0={class:"-mx-6 px-6 py-[15px] mb-6"},d0={class:"space-y-4"},f0={class:"space-y-4"},h0={class:"xl:block hidden"};function p0(i,e,t,r,n,a){const s=D("Icon"),l=D("Multiselect"),o=D("InputGroup"),c=D("Announcement"),u=D("AskHr"),d=D("Skin"),f=D("Theme"),p=D("Semidark"),m=D("Monochrome"),h=D("Rlt"),y=D("Width"),x=D("MenuLayout"),k=D("Navbar"),v=D("Footer");return w(),I("div",null,[this.$store.themeSettingsStore.isOpenSettings?L("",!0):(w(),I("span",{key:0,onClick:e[0]||(e[0]=S=>this.$store.themeSettingsStore.isOpenSettings=!this.$store.themeSettingsStore.isOpenSettings),class:"fixed ltr:md:right-[-32px] ltr:right-0 rtl:left-0 rtl:md:left-[-32px] top-1/2 z-[888] translate-y-1/2 bg-slate-800 text-slate-50 dark:bg-slate-700 dark:text-slate-300 cursor-pointer transform rotate-90 flex items-center text-sm font-medium px-2 py-2 shadow-deep ltr:rounded-b rtl:rounded-t"},[$(s,{icon:"hugeicons:card-exchange-02",class:"text-slate-50 text-lg"}),e[5]||(e[5]=g("span",{class:"hidden md:inline-block ltr:ml-3 rtl:mr-4"}," Switch ",-1))])),$(Ge,{name:"lefttranslate"},{default:F(()=>[Te(g("div",l0,[g("header",o0,[e[6]||(e[6]=g("div",null,[g("span",{class:"block text-xl text-slate-900 font-medium dark:text-[#eee]"},"Switch Access"),g("span",{class:"block text-sm font-light text-[#68768A] dark:text-[#eee]"},"Switch Company or Dealer Access")],-1)),g("div",{class:"cursor-pointer text-2xl text-slate-800 dark:text-slate-200",onClick:e[1]||(e[1]=S=>this.$store.themeSettingsStore.isOpenSettings=!1)},[$(s,{icon:"heroicons-outline:x"})])]),g("div",u0,[e[7]||(e[7]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Company ",-1)),$(o,null,{default:F(()=>[$(l,{modelValue:n.company,"onUpdate:modelValue":e[2]||(e[2]=S=>n.company=S),id:"company","close-on-select":!0,searchable:!0,options:a.companyOptions,autocomplete:"off"},null,8,["modelValue","options"])]),_:1}),e[8]||(e[8]=g("div",{class:"col-span-12 text-slate-600 dark:text-slate-300 text-base mb-2"}," Dealership ",-1)),$(o,null,{default:F(()=>[$(l,{modelValue:n.dealership,"onUpdate:modelValue":e[3]||(e[3]=S=>n.dealership=S),id:"dealership","close-on-select":!0,searchable:!0,options:a.dealershipOptions,onChange:a.handleDealership,autocomplete:"off"},null,8,["modelValue","options","onChange"])]),_:1})]),g("div",c0,[e[9]||(e[9]=g("header",{class:"flex items-center justify-between border-b border-t border-slate-100 dark:border-slate-700 -mx-6 px-6 py-[15px] mb-6"},[g("div",null,[g("span",{class:"block text-xl text-slate-900 font-medium dark:text-[#eee]"},"Announcement & Ask HR"),g("span",{class:"block text-sm font-light text-[#68768A] dark:text-[#eee]"},"Hide Announcement or Ask HR")])],-1)),g("div",d0,[$(c),$(u)])]),e[13]||(e[13]=g("header",{class:"flex items-center justify-between border-b border-t border-slate-100 dark:border-slate-700 -mx-6 px-6 py-[15px] mb-6"},[g("div",null,[g("span",{class:"block text-xl text-slate-900 font-medium dark:text-[#eee]"},"Theme customizer"),g("span",{class:"block text-sm font-light text-[#68768A] dark:text-[#eee]"},"Customize & Preview in Real Time")])],-1)),g("div",f0,[$(d),$(f),e[10]||(e[10]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(p),$(m),g("div",null,[$(h)]),e[11]||(e[11]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(y),g("div",h0,[$(x)]),e[12]||(e[12]=g("hr",{class:"-mx-6 border-slate-200 dark:border-slate-700"},null,-1)),$(k),i.window.width>768?(w(),Q(v,{key:0})):L("",!0)])],512),[[vn,this.$store.themeSettingsStore.isOpenSettings]])]),_:1}),$(Ge,{name:"overlay-fade"},{default:F(()=>[this.$store.themeSettingsStore.isOpenSettings?(w(),I("div",{key:0,class:"overlay bg-white bg-opacity-0 fixed inset-0 z-[999]",onClick:e[4]||(e[4]=S=>this.$store.themeSettingsStore.isOpenSettings=!1)})):L("",!0)]),_:1})])}const v0=se(a0,[["render",p0],["__scopeId","data-v-a012b381"]]);function Ot(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function su(i,e){i.prototype=Object.create(e.prototype),i.prototype.constructor=i,i.__proto__=e}/*! * GSAP 3.12.5 * https://gsap.com * * @license Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var Xe={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Hi={duration:.5,overwrite:!1,delay:0},ea,Me,he,nt=1e8,ce=1/nt,_s=Math.PI*2,m0=_s/4,g0=0,au=Math.sqrt,b0=Math.cos,y0=Math.sin,Ie=function(e){return typeof e=="string"},be=function(e){return typeof e=="function"},Ct=function(e){return typeof e=="number"},ta=function(e){return typeof e>"u"},xt=function(e){return typeof e=="object"},Be=function(e){return e!==!1},ia=function(){return typeof window<"u"},Fn=function(e){return be(e)||Ie(e)},lu=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},Re=Array.isArray,xs=/(?:-?\.?\d|\.)+/gi,ou=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,Pi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,Xr=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,uu=/[+-]=-?[.\d]+/,cu=/[^,'"\[\]\s]+/gi,_0=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,pe,vt,Ss,na,Ze={},ur={},du,fu=function(e){return(ur=bi(e,Ze))&&Ve},ra=function(e,t){return console.warn("Invalid property",e,"set to",t,"Missing plugin? gsap.registerPlugin()")},gn=function(e,t){return!t&&console.warn(e)},hu=function(e,t){return e&&(Ze[e]=t)&&ur&&(ur[e]=t)||Ze},bn=function(){return 0},x0={suppressEvents:!0,isStart:!0,kill:!1},Jn={suppressEvents:!0,kill:!1},S0={suppressEvents:!0},sa={},Ht=[],ks={},pu,qe={},Kr={},tl=30,er=[],aa="",la=function(e){var t=e[0],r,n;if(xt(t)||be(t)||(e=[e]),!(r=(t._gsap||{}).harness)){for(n=er.length;n--&&!er[n].targetTest(t););r=er[n]}for(n=e.length;n--;)e[n]&&(e[n]._gsap||(e[n]._gsap=new Bu(e[n],r)))||e.splice(n,1);return e},ci=function(e){return e._gsap||la(rt(e))[0]._gsap},vu=function(e,t,r){return(r=e[t])&&be(r)?e[t]():ta(r)&&e.getAttribute&&e.getAttribute(t)||r},Ne=function(e,t){return(e=e.split(",")).forEach(t)||e},_e=function(e){return Math.round(e*1e5)/1e5||0},Ee=function(e){return Math.round(e*1e7)/1e7||0},Li=function(e,t){var r=t.charAt(0),n=parseFloat(t.substr(2));return e=parseFloat(e),r==="+"?e+n:r==="-"?e-n:r==="*"?e*n:e/n},k0=function(e,t){for(var r=t.length,n=0;e.indexOf(t[n])<0&&++n<r;);return n<r},cr=function(){var e=Ht.length,t=Ht.slice(0),r,n;for(ks={},Ht.length=0,r=0;r<e;r++)n=t[r],n&&n._lazy&&(n.render(n._lazy[0],n._lazy[1],!0)._lazy=0)},mu=function(e,t,r,n){Ht.length&&!Me&&cr(),e.render(t,r,n||Me&&t<0&&(e._initted||e._startAt)),Ht.length&&!Me&&cr()},gu=function(e){var t=parseFloat(e);return(t||t===0)&&(e+"").match(cu).length<2?t:Ie(e)?e.trim():e},bu=function(e){return e},lt=function(e,t){for(var r in t)r in e||(e[r]=t[r]);return e},w0=function(e){return function(t,r){for(var n in r)n in t||n==="duration"&&e||n==="ease"||(t[n]=r[n])}},bi=function(e,t){for(var r in t)e[r]=t[r];return e},il=function i(e,t){for(var r in t)r!=="__proto__"&&r!=="constructor"&&r!=="prototype"&&(e[r]=xt(t[r])?i(e[r]||(e[r]={}),t[r]):t[r]);return e},dr=function(e,t){var r={},n;for(n in e)n in t||(r[n]=e[n]);return r},cn=function(e){var t=e.parent||pe,r=e.keyframes?w0(Re(e.keyframes)):lt;if(Be(e.inherit))for(;t;)r(e,t.vars.defaults),t=t.parent||t._dp;return e},O0=function(e,t){for(var r=e.length,n=r===t.length;n&&r--&&e[r]===t[r];);return r<0},yu=function(e,t,r,n,a){r===void 0&&(r="_first"),n===void 0&&(n="_last");var s=e[n],l;if(a)for(l=t[a];s&&s[a]>l;)s=s._prev;return s?(t._next=s._next,s._next=t):(t._next=e[r],e[r]=t),t._next?t._next._prev=t:e[n]=t,t._prev=s,t.parent=t._dp=e,t},Mr=function(e,t,r,n){r===void 0&&(r="_first"),n===void 0&&(n="_last");var a=t._prev,s=t._next;a?a._next=s:e[r]===t&&(e[r]=s),s?s._prev=a:e[n]===t&&(e[n]=a),t._next=t._prev=t.parent=null},Xt=function(e,t){e.parent&&(!t||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},di=function(e,t){if(e&&(!t||t._end>e._dur||t._start<0))for(var r=e;r;)r._dirty=1,r=r.parent;return e},A0=function(e){for(var t=e.parent;t&&t.parent;)t._dirty=1,t.totalDuration(),t=t.parent;return e},ws=function(e,t,r,n){return e._startAt&&(Me?e._startAt.revert(Jn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(t,!0,n))},E0=function i(e){return!e||e._ts&&i(e.parent)},nl=function(e){return e._repeat?qi(e._tTime,e=e.duration()+e._rDelay)*e:0},qi=function(e,t){var r=Math.floor(e/=t);return e&&r===e?r-1:r},fr=function(e,t){return(e-t._start)*t._ts+(t._ts>=0?0:t._dirty?t.totalDuration():t._tDur)},Rr=function(e){return e._end=Ee(e._start+(e._tDur/Math.abs(e._ts||e._rts||ce)||0))},Pr=function(e,t){var r=e._dp;return r&&r.smoothChildTiming&&e._ts&&(e._start=Ee(r._time-(e._ts>0?t/e._ts:((e._dirty?e.totalDuration():e._tDur)-t)/-e._ts)),Rr(e),r._dirty||di(r,e)),e},_u=function(e,t){var r;if((t._time||!t._dur&&t._initted||t._start<e._time&&(t._dur||!t.add))&&(r=fr(e.rawTime(),t),(!t._dur||Rn(0,t.totalDuration(),r)-t._tTime>ce)&&t.render(r,!0)),di(e,t)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur<e.duration())for(r=e;r._dp;)r.rawTime()>=0&&r.totalTime(r._tTime),r=r._dp;e._zTime=-ce}},mt=function(e,t,r,n){return t.parent&&Xt(t),t._start=Ee((Ct(r)?r:r||e!==pe?tt(e,r,t):e._time)+t._delay),t._end=Ee(t._start+(t.totalDuration()/Math.abs(t.timeScale())||0)),yu(e,t,"_first","_last",e._sort?"_start":0),Os(t)||(e._recent=t),n||_u(e,t),e._ts<0&&Pr(e,e._tTime),e},xu=function(e,t){return(Ze.ScrollTrigger||ra("scrollTrigger",t))&&Ze.ScrollTrigger.create(t,e)},Su=function(e,t,r,n,a){if(ua(e,t,a),!e._initted)return 1;if(!r&&e._pt&&!Me&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&pu!==Ue.frame)return Ht.push(e),e._lazy=[a,n],1},T0=function i(e){var t=e.parent;return t&&t._ts&&t._initted&&!t._lock&&(t.rawTime()<0||i(t))},Os=function(e){var t=e.data;return t==="isFromStart"||t==="isStart"},I0=function(e,t,r,n){var a=e.ratio,s=t<0||!t&&(!e._start&&T0(e)&&!(!e._initted&&Os(e))||(e._ts<0||e._dp._ts<0)&&!Os(e))?0:1,l=e._rDelay,o=0,c,u,d;if(l&&e._repeat&&(o=Rn(0,e._tDur,t),u=qi(o,l),e._yoyo&&u&1&&(s=1-s),u!==qi(e._tTime,l)&&(a=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==a||Me||n||e._zTime===ce||!t&&e._zTime){if(!e._initted&&Su(e,t,n,r,o))return;for(d=e._zTime,e._zTime=t||(r?ce:0),r||(r=t&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=o,c=e._pt;c;)c.r(s,c.d),c=c._next;t<0&&ws(e,t,r,!0),e._onUpdate&&!r&&Ye(e,"onUpdate"),o&&e._repeat&&!r&&e.parent&&Ye(e,"onRepeat"),(t>=e._tDur||t<0)&&e.ratio===s&&(s&&Xt(e,1),!r&&!Me&&(Ye(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=t)},C0=function(e,t,r){var n;if(r>t)for(n=e._first;n&&n._start<=r;){if(n.data==="isPause"&&n._start>t)return n;n=n._next}else for(n=e._last;n&&n._start>=r;){if(n.data==="isPause"&&n._start<t)return n;n=n._prev}},Ui=function(e,t,r,n){var a=e._repeat,s=Ee(t)||0,l=e._tTime/e._tDur;return l&&!n&&(e._time*=s/e._dur),e._dur=s,e._tDur=a?a<0?1e10:Ee(s*(a+1)+e._rDelay*a):s,l>0&&!n&&Pr(e,e._tTime=e._tDur*l),e.parent&&Rr(e),r||di(e.parent,e),e},rl=function(e){return e instanceof De?di(e):Ui(e,e._dur)},M0={_start:0,endTime:bn,totalDuration:bn},tt=function i(e,t,r){var n=e.labels,a=e._recent||M0,s=e.duration()>=nt?a.endTime(!1):e._dur,l,o,c;return Ie(t)&&(isNaN(t)||t in n)?(o=t.charAt(0),c=t.substr(-1)==="%",l=t.indexOf("="),o==="<"||o===">"?(l>=0&&(t=t.replace(/=/,"")),(o==="<"?a._start:a.endTime(a._repeat>=0))+(parseFloat(t.substr(1))||0)*(c?(l<0?a:r).totalDuration()/100:1)):l<0?(t in n||(n[t]=s),n[t]):(o=parseFloat(t.charAt(l-1)+t.substr(l+1)),c&&r&&(o=o/100*(Re(r)?r[0]:r).totalDuration()),l>1?i(e,t.substr(0,l-1),r)+o:s+o)):t==null?s:+t},dn=function(e,t,r){var n=Ct(t[1]),a=(n?2:1)+(e<2?0:1),s=t[a],l,o;if(n&&(s.duration=t[1]),s.parent=r,e){for(l=s,o=r;o&&!("immediateRender"in l);)l=o.vars.defaults||{},o=Be(o.vars.inherit)&&o.parent;s.immediateRender=Be(l.immediateRender),e<2?s.runBackwards=1:s.startAt=t[a-1]}return new Oe(t[0],s,t[a+1])},ei=function(e,t){return e||e===0?t(e):t},Rn=function(e,t,r){return r<e?e:r>t?t:r},Ce=function(e,t){return!Ie(e)||!(t=_0.exec(e))?"":t[1]},R0=function(e,t,r){return ei(r,function(n){return Rn(e,t,n)})},As=[].slice,ku=function(e,t){return e&&xt(e)&&"length"in e&&(!t&&!e.length||e.length-1 in e&&xt(e[0]))&&!e.nodeType&&e!==vt},P0=function(e,t,r){return r===void 0&&(r=[]),e.forEach(function(n){var a;return Ie(n)&&!t||ku(n,1)?(a=r).push.apply(a,rt(n)):r.push(n)})||r},rt=function(e,t,r){return he&&!t&&he.selector?he.selector(e):Ie(e)&&!r&&(Ss||!Gi())?As.call((t||na).querySelectorAll(e),0):Re(e)?P0(e,r):ku(e)?As.call(e,0):e?[e]:[]},Es=function(e){return e=rt(e)[0]||gn("Invalid scope")||{},function(t){var r=e.current||e.nativeElement||e;return rt(t,r.querySelectorAll?r:r===e?gn("Invalid scope")||na.createElement("div"):e)}},wu=function(e){return e.sort(function(){return .5-Math.random()})},Ou=function(e){if(be(e))return e;var t=xt(e)?e:{each:e},r=fi(t.ease),n=t.from||0,a=parseFloat(t.base)||0,s={},l=n>0&&n<1,o=isNaN(n)||l,c=t.axis,u=n,d=n;return Ie(n)?u=d={center:.5,edges:.5,end:1}[n]||0:!l&&o&&(u=n[0],d=n[1]),function(f,p,m){var h=(m||t).length,y=s[h],x,k,v,S,_,b,E,O,T;if(!y){if(T=t.grid==="auto"?0:(t.grid||[1,nt])[1],!T){for(E=-nt;E<(E=m[T++].getBoundingClientRect().left)&&T<h;);T<h&&T--}for(y=s[h]=[],x=o?Math.min(T,h)*u-.5:n%T,k=T===nt?0:o?h*d/T-.5:n/T|0,E=0,O=nt,b=0;b<h;b++)v=b%T-x,S=k-(b/T|0),y[b]=_=c?Math.abs(c==="y"?S:v):au(v*v+S*S),_>E&&(E=_),_<O&&(O=_);n==="random"&&wu(y),y.max=E-O,y.min=O,y.v=h=(parseFloat(t.amount)||parseFloat(t.each)*(T>h?h-1:c?c==="y"?h/T:T:Math.max(T,h/T))||0)*(n==="edges"?-1:1),y.b=h<0?a-h:a,y.u=Ce(t.amount||t.each)||0,r=r&&h<0?Lu(r):r}return h=(y[f]-y.min)/y.max||0,Ee(y.b+(r?r(h):h)*y.v)+y.u}},Ts=function(e){var t=Math.pow(10,((e+"").split(".")[1]||"").length);return function(r){var n=Ee(Math.round(parseFloat(r)/e)*e*t);return(n-n%1)/t+(Ct(r)?0:Ce(r))}},Au=function(e,t){var r=Re(e),n,a;return!r&&xt(e)&&(n=r=e.radius||nt,e.values?(e=rt(e.values),(a=!Ct(e[0]))&&(n*=n)):e=Ts(e.increment)),ei(t,r?be(e)?function(s){return a=e(s),Math.abs(a-s)<=n?a:s}:function(s){for(var l=parseFloat(a?s.x:s),o=parseFloat(a?s.y:0),c=nt,u=0,d=e.length,f,p;d--;)a?(f=e[d].x-l,p=e[d].y-o,f=f*f+p*p):f=Math.abs(e[d]-l),f<c&&(c=f,u=d);return u=!n||c<=n?e[u]:s,a||u===s||Ct(s)?u:u+Ce(s)}:Ts(e))},Eu=function(e,t,r,n){return ei(Re(e)?!t:r===!0?!!(r=0):!n,function(){return Re(e)?e[~~(Math.random()*e.length)]:(r=r||1e-5)&&(n=r<1?Math.pow(10,(r+"").length-2):1)&&Math.floor(Math.round((e-r/2+Math.random()*(t-e+r*.99))/r)*r*n)/n})},$0=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(n){return t.reduce(function(a,s){return s(a)},n)}},L0=function(e,t){return function(r){return e(parseFloat(r))+(t||Ce(r))}},D0=function(e,t,r){return Iu(e,t,0,1,r)},Tu=function(e,t,r){return ei(r,function(n){return e[~~t(n)]})},z0=function i(e,t,r){var n=t-e;return Re(e)?Tu(e,i(0,e.length),t):ei(r,function(a){return(n+(a-e)%n)%n+e})},B0=function i(e,t,r){var n=t-e,a=n*2;return Re(e)?Tu(e,i(0,e.length-1),t):ei(r,function(s){return s=(a+(s-e)%a)%a||0,e+(s>n?a-s:s)})},yn=function(e){for(var t=0,r="",n,a,s,l;~(n=e.indexOf("random(",t));)s=e.indexOf(")",n),l=e.charAt(n+7)==="[",a=e.substr(n+7,s-n-7).match(l?cu:xs),r+=e.substr(t,n-t)+Eu(l?a:+a[0],l?0:+a[1],+a[2]||1e-5),t=s+1;return r+e.substr(t,e.length-t)},Iu=function(e,t,r,n,a){var s=t-e,l=n-r;return ei(a,function(o){return r+((o-e)/s*l||0)})},N0=function i(e,t,r,n){var a=isNaN(e+t)?0:function(p){return(1-p)*e+p*t};if(!a){var s=Ie(e),l={},o,c,u,d,f;if(r===!0&&(n=1)&&(r=null),s)e={p:e},t={p:t};else if(Re(e)&&!Re(t)){for(u=[],d=e.length,f=d-2,c=1;c<d;c++)u.push(i(e[c-1],e[c]));d--,a=function(m){m*=d;var h=Math.min(f,~~m);return u[h](m-h)},r=t}else n||(e=bi(Re(e)?[]:{},e));if(!u){for(o in t)oa.call(l,e,o,"get",t[o]);a=function(m){return fa(m,l)||(s?e.p:e)}}}return ei(r,a)},sl=function(e,t,r){var n=e.labels,a=nt,s,l,o;for(s in n)l=n[s]-t,l<0==!!r&&l&&a>(l=Math.abs(l))&&(o=s,a=l);return o},Ye=function(e,t,r){var n=e.vars,a=n[t],s=he,l=e._ctx,o,c,u;if(a)return o=n[t+"Params"],c=n.callbackScope||e,r&&Ht.length&&cr(),l&&(he=l),u=o?a.apply(c,o):a.call(c),he=s,u},ln=function(e){return Xt(e),e.scrollTrigger&&e.scrollTrigger.kill(!!Me),e.progress()<1&&Ye(e,"onInterrupt"),e},$i,Cu=[],Mu=function(e){if(e)if(e=!e.name&&e.default||e,ia()||e.headless){var t=e.name,r=be(e),n=t&&!r&&e.init?function(){this._props=[]}:e,a={init:bn,render:fa,add:oa,kill:ty,modifier:ey,rawVars:0},s={targetTest:0,get:0,getSetter:da,aliases:{},register:0};if(Gi(),e!==n){if(qe[t])return;lt(n,lt(dr(e,a),s)),bi(n.prototype,bi(a,dr(e,s))),qe[n.prop=t]=n,e.targetTest&&(er.push(n),sa[t]=1),t=(t==="css"?"CSS":t.charAt(0).toUpperCase()+t.substr(1))+"Plugin"}hu(t,n),e.register&&e.register(Ve,n,je)}else Cu.push(e)},ue=255,on={aqua:[0,ue,ue],lime:[0,ue,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ue],navy:[0,0,128],white:[ue,ue,ue],olive:[128,128,0],yellow:[ue,ue,0],orange:[ue,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ue,0,0],pink:[ue,192,203],cyan:[0,ue,ue],transparent:[ue,ue,ue,0]},Qr=function(e,t,r){return e+=e<0?1:e>1?-1:0,(e*6<1?t+(r-t)*e*6:e<.5?r:e*3<2?t+(r-t)*(2/3-e)*6:t)*ue+.5|0},Ru=function(e,t,r){var n=e?Ct(e)?[e>>16,e>>8&ue,e&ue]:0:on.black,a,s,l,o,c,u,d,f,p,m;if(!n){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),on[e])n=on[e];else if(e.charAt(0)==="#"){if(e.length<6&&(a=e.charAt(1),s=e.charAt(2),l=e.charAt(3),e="#"+a+a+s+s+l+l+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return n=parseInt(e.substr(1,6),16),[n>>16,n>>8&ue,n&ue,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),n=[e>>16,e>>8&ue,e&ue]}else if(e.substr(0,3)==="hsl"){if(n=m=e.match(xs),!t)o=+n[0]%360/360,c=+n[1]/100,u=+n[2]/100,s=u<=.5?u*(c+1):u+c-u*c,a=u*2-s,n.length>3&&(n[3]*=1),n[0]=Qr(o+1/3,a,s),n[1]=Qr(o,a,s),n[2]=Qr(o-1/3,a,s);else if(~e.indexOf("="))return n=e.match(ou),r&&n.length<4&&(n[3]=1),n}else n=e.match(xs)||on.transparent;n=n.map(Number)}return t&&!m&&(a=n[0]/ue,s=n[1]/ue,l=n[2]/ue,d=Math.max(a,s,l),f=Math.min(a,s,l),u=(d+f)/2,d===f?o=c=0:(p=d-f,c=u>.5?p/(2-d-f):p/(d+f),o=d===a?(s-l)/p+(s<l?6:0):d===s?(l-a)/p+2:(a-s)/p+4,o*=60),n[0]=~~(o+.5),n[1]=~~(c*100+.5),n[2]=~~(u*100+.5)),r&&n.length<4&&(n[3]=1),n},Pu=function(e){var t=[],r=[],n=-1;return e.split(qt).forEach(function(a){var s=a.match(Pi)||[];t.push.apply(t,s),r.push(n+=s.length+1)}),t.c=r,t},al=function(e,t,r){var n="",a=(e+n).match(qt),s=t?"hsla(":"rgba(",l=0,o,c,u,d;if(!a)return e;if(a=a.map(function(f){return(f=Ru(f,t,1))&&s+(t?f[0]+","+f[1]+"%,"+f[2]+"%,"+f[3]:f.join(","))+")"}),r&&(u=Pu(e),o=r.c,o.join(n)!==u.c.join(n)))for(c=e.replace(qt,"1").split(Pi),d=c.length-1;l<d;l++)n+=c[l]+(~o.indexOf(l)?a.shift()||s+"0,0,0,0)":(u.length?u:a.length?a:r).shift());if(!c)for(c=e.split(qt),d=c.length-1;l<d;l++)n+=c[l]+a[l];return n+c[d]},qt=function(){var i="(?:\\b(?:(?:rgb|rgba|hsl|hsla)\\(.+?\\))|\\B#(?:[0-9a-f]{3,4}){1,2}\\b",e;for(e in on)i+="|"+e+"\\b";return new RegExp(i+")","gi")}(),j0=/hsl[a]?\(/,$u=function(e){var t=e.join(" "),r;if(qt.lastIndex=0,qt.test(t))return r=j0.test(t),e[1]=al(e[1],r),e[0]=al(e[0],r,Pu(e[1])),!0},_n,Ue=function(){var i=Date.now,e=500,t=33,r=i(),n=r,a=1e3/240,s=a,l=[],o,c,u,d,f,p,m=function h(y){var x=i()-n,k=y===!0,v,S,_,b;if((x>e||x<0)&&(r+=x-t),n+=x,_=n-r,v=_-s,(v>0||k)&&(b=++d.frame,f=_-d.time*1e3,d.time=_=_/1e3,s+=v+(v>=a?4:a-v),S=1),k||(o=c(h)),S)for(p=0;p<l.length;p++)l[p](_,f,b,y)};return d={time:0,frame:0,tick:function(){m(!0)},deltaRatio:function(y){return f/(1e3/(y||60))},wake:function(){du&&(!Ss&&ia()&&(vt=Ss=window,na=vt.document||{},Ze.gsap=Ve,(vt.gsapVersions||(vt.gsapVersions=[])).push(Ve.version),fu(ur||vt.GreenSockGlobals||!vt.gsap&&vt||{}),Cu.forEach(Mu)),u=typeof requestAnimationFrame<"u"&&requestAnimationFrame,o&&d.sleep(),c=u||function(y){return setTimeout(y,s-d.time*1e3+1|0)},_n=1,m(2))},sleep:function(){(u?cancelAnimationFrame:clearTimeout)(o),_n=0,c=bn},lagSmoothing:function(y,x){e=y||1/0,t=Math.min(x||33,e)},fps:function(y){a=1e3/(y||240),s=d.time*1e3+a},add:function(y,x,k){var v=x?function(S,_,b,E){y(S,_,b,E),d.remove(v)}:y;return d.remove(y),l[k?"unshift":"push"](v),Gi(),v},remove:function(y,x){~(x=l.indexOf(y))&&l.splice(x,1)&&p>=x&&p--},_listeners:l},d}(),Gi=function(){return!_n&&Ue.wake()},re={},F0=/^[\d.\-M][\d.\-,\s]/,V0=/["']/g,W0=function(e){for(var t={},r=e.substr(1,e.length-3).split(":"),n=r[0],a=1,s=r.length,l,o,c;a<s;a++)o=r[a],l=a!==s-1?o.lastIndexOf(","):o.length,c=o.substr(0,l),t[n]=isNaN(c)?c.replace(V0,"").trim():+c,n=o.substr(l+1).trim();return t},H0=function(e){var t=e.indexOf("(")+1,r=e.indexOf(")"),n=e.indexOf("(",t);return e.substring(t,~n&&n<r?e.indexOf(")",r+1):r)},q0=function(e){var t=(e+"").split("("),r=re[t[0]];return r&&t.length>1&&r.config?r.config.apply(null,~e.indexOf("{")?[W0(t[1])]:H0(e).split(",").map(gu)):re._CE&&F0.test(e)?re._CE("",e):r},Lu=function(e){return function(t){return 1-e(1-t)}},Du=function i(e,t){for(var r=e._first,n;r;)r instanceof De?i(r,t):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==t&&(r.timeline?i(r.timeline,t):(n=r._ease,r._ease=r._yEase,r._yEase=n,r._yoyo=t)),r=r._next},fi=function(e,t){return e&&(be(e)?e:re[e]||q0(e))||t},Si=function(e,t,r,n){r===void 0&&(r=function(o){return 1-t(1-o)}),n===void 0&&(n=function(o){return o<.5?t(o*2)/2:1-t((1-o)*2)/2});var a={easeIn:t,easeOut:r,easeInOut:n},s;return Ne(e,function(l){re[l]=Ze[l]=a,re[s=l.toLowerCase()]=r;for(var o in a)re[s+(o==="easeIn"?".in":o==="easeOut"?".out":".inOut")]=re[l+"."+o]=a[o]}),a},zu=function(e){return function(t){return t<.5?(1-e(1-t*2))/2:.5+e((t-.5)*2)/2}},Zr=function i(e,t,r){var n=t>=1?t:1,a=(r||(e?.3:.45))/(t<1?t:1),s=a/_s*(Math.asin(1/n)||0),l=function(u){return u===1?1:n*Math.pow(2,-10*u)*y0((u-s)*a)+1},o=e==="out"?l:e==="in"?function(c){return 1-l(1-c)}:zu(l);return a=_s/a,o.config=function(c,u){return i(e,c,u)},o},Jr=function i(e,t){t===void 0&&(t=1.70158);var r=function(s){return s?--s*s*((t+1)*s+t)+1:0},n=e==="out"?r:e==="in"?function(a){return 1-r(1-a)}:zu(r);return n.config=function(a){return i(e,a)},n};Ne("Linear,Quad,Cubic,Quart,Quint,Strong",function(i,e){var t=e<5?e+1:e;Si(i+",Power"+(t-1),e?function(r){return Math.pow(r,t)}:function(r){return r},function(r){return 1-Math.pow(1-r,t)},function(r){return r<.5?Math.pow(r*2,t)/2:1-Math.pow((1-r)*2,t)/2})});re.Linear.easeNone=re.none=re.Linear.easeIn;Si("Elastic",Zr("in"),Zr("out"),Zr());(function(i,e){var t=1/e,r=2*t,n=2.5*t,a=function(l){return l<t?i*l*l:l<r?i*Math.pow(l-1.5/e,2)+.75:l<n?i*(l-=2.25/e)*l+.9375:i*Math.pow(l-2.625/e,2)+.984375};Si("Bounce",function(s){return 1-a(1-s)},a)})(7.5625,2.75);Si("Expo",function(i){return i?Math.pow(2,10*(i-1)):0});Si("Circ",function(i){return-(au(1-i*i)-1)});Si("Sine",function(i){return i===1?1:-b0(i*m0)+1});Si("Back",Jr("in"),Jr("out"),Jr());re.SteppedEase=re.steps=Ze.SteppedEase={config:function(e,t){e===void 0&&(e=1);var r=1/e,n=e+(t?0:1),a=t?1:0,s=1-ce;return function(l){return((n*Rn(0,s,l)|0)+a)*r}}};Hi.ease=re["quad.out"];Ne("onComplete,onUpdate,onStart,onRepeat,onReverseComplete,onInterrupt",function(i){return aa+=i+","+i+"Params,"});var Bu=function(e,t){this.id=g0++,e._gsap=this,this.target=e,this.harness=t,this.get=t?t.get:vu,this.set=t?t.getSetter:da},xn=function(){function i(t){this.vars=t,this._delay=+t.delay||0,(this._repeat=t.repeat===1/0?-2:t.repeat||0)&&(this._rDelay=t.repeatDelay||0,this._yoyo=!!t.yoyo||!!t.yoyoEase),this._ts=1,Ui(this,+t.duration,1,1),this.data=t.data,he&&(this._ctx=he,he.data.push(this)),_n||Ue.wake()}var e=i.prototype;return e.delay=function(r){return r||r===0?(this.parent&&this.parent.smoothChildTiming&&this.startTime(this._start+r-this._delay),this._delay=r,this):this._delay},e.duration=function(r){return arguments.length?this.totalDuration(this._repeat>0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},e.totalDuration=function(r){return arguments.length?(this._dirty=0,Ui(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(r,n){if(Gi(),!arguments.length)return this._tTime;var a=this._dp;if(a&&a.smoothChildTiming&&this._ts){for(Pr(this,r),!a._dp||a.parent||_u(a,this);a&&a.parent;)a.parent._time!==a._start+(a._ts>=0?a._tTime/a._ts:(a.totalDuration()-a._tTime)/-a._ts)&&a.totalTime(a._tTime,!0),a=a.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r<this._tDur||this._ts<0&&r>0||!this._tDur&&!r)&&mt(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!n||this._initted&&Math.abs(this._zTime)===ce||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),mu(this,r,n)),this},e.time=function(r,n){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+nl(this))%(this._dur+this._rDelay)||(r?this._dur:0),n):this._time},e.totalProgress=function(r,n){return arguments.length?this.totalTime(this.totalDuration()*r,n):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>0?1:0},e.progress=function(r,n){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+nl(this),n):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(r,n){var a=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*a,n):this._repeat?qi(this._tTime,a)+1:1},e.timeScale=function(r,n){if(!arguments.length)return this._rts===-ce?0:this._rts;if(this._rts===r)return this;var a=this.parent&&this._ts?fr(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-ce?0:this._rts,this.totalTime(Rn(-Math.abs(this._delay),this._tDur,a),n!==!1),Rr(this),A0(this)},e.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Gi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ce&&(this._tTime-=ce)))),this):this._ps},e.startTime=function(r){if(arguments.length){this._start=r;var n=this.parent||this._dp;return n&&(n._sort||!this.parent)&&mt(n,this,r-this._delay),this}return this._start},e.endTime=function(r){return this._start+(Be(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(r){var n=this.parent||this._dp;return n?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?fr(n.rawTime(r),this):this._tTime:this._tTime},e.revert=function(r){r===void 0&&(r=S0);var n=Me;return Me=r,(this._initted||this._startAt)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),Me=n,this},e.globalTime=function(r){for(var n=this,a=arguments.length?r:n.rawTime();n;)a=n._start+a/(Math.abs(n._ts)||1),n=n._dp;return!this.parent&&this._sat?this._sat.globalTime(r):a},e.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,rl(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(r){if(arguments.length){var n=this._time;return this._rDelay=r,rl(this),n?this.time(n):this}return this._rDelay},e.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},e.seek=function(r,n){return this.totalTime(tt(this,r),Be(n))},e.restart=function(r,n){return this.play().totalTime(r?-this._delay:0,Be(n))},e.play=function(r,n){return r!=null&&this.seek(r,n),this.reversed(!1).paused(!1)},e.reverse=function(r,n){return r!=null&&this.seek(r||this.totalDuration(),n),this.reversed(!0).paused(!1)},e.pause=function(r,n){return r!=null&&this.seek(r,n),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-ce:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ce,this},e.isActive=function(){var r=this.parent||this._dp,n=this._start,a;return!!(!r||this._ts&&this._initted&&r.isActive()&&(a=r.rawTime(!0))>=n&&a<this.endTime(!0)-ce)},e.eventCallback=function(r,n,a){var s=this.vars;return arguments.length>1?(n?(s[r]=n,a&&(s[r+"Params"]=a),r==="onUpdate"&&(this._onUpdate=n)):delete s[r],this):s[r]},e.then=function(r){var n=this;return new Promise(function(a){var s=be(r)?r:bu,l=function(){var c=n.then;n.then=null,be(s)&&(s=s(n))&&(s.then||s===n)&&(n.then=c),a(s),n.then=c};n._initted&&n.totalProgress()===1&&n._ts>=0||!n._tTime&&n._ts<0?l():n._prom=l})},e.kill=function(){ln(this)},i}();lt(xn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-ce,_prom:0,_ps:!1,_rts:1});var De=function(i){su(e,i);function e(r,n){var a;return r===void 0&&(r={}),a=i.call(this,r)||this,a.labels={},a.smoothChildTiming=!!r.smoothChildTiming,a.autoRemoveChildren=!!r.autoRemoveChildren,a._sort=Be(r.sortChildren),pe&&mt(r.parent||pe,Ot(a),n),r.reversed&&a.reverse(),r.paused&&a.paused(!0),r.scrollTrigger&&xu(Ot(a),r.scrollTrigger),a}var t=e.prototype;return t.to=function(n,a,s){return dn(0,arguments,this),this},t.from=function(n,a,s){return dn(1,arguments,this),this},t.fromTo=function(n,a,s,l){return dn(2,arguments,this),this},t.set=function(n,a,s){return a.duration=0,a.parent=this,cn(a).repeatDelay||(a.repeat=0),a.immediateRender=!!a.immediateRender,new Oe(n,a,tt(this,s),1),this},t.call=function(n,a,s){return mt(this,Oe.delayedCall(0,n,a),s)},t.staggerTo=function(n,a,s,l,o,c,u){return s.duration=a,s.stagger=s.stagger||l,s.onComplete=c,s.onCompleteParams=u,s.parent=this,new Oe(n,s,tt(this,o)),this},t.staggerFrom=function(n,a,s,l,o,c,u){return s.runBackwards=1,cn(s).immediateRender=Be(s.immediateRender),this.staggerTo(n,a,s,l,o,c,u)},t.staggerFromTo=function(n,a,s,l,o,c,u,d){return l.startAt=s,cn(l).immediateRender=Be(l.immediateRender),this.staggerTo(n,a,l,o,c,u,d)},t.render=function(n,a,s){var l=this._time,o=this._dirty?this.totalDuration():this._tDur,c=this._dur,u=n<=0?0:Ee(n),d=this._zTime<0!=n<0&&(this._initted||!c),f,p,m,h,y,x,k,v,S,_,b,E;if(this!==pe&&u>o&&n>=0&&(u=o),u!==this._tTime||s||d){if(l!==this._time&&c&&(u+=this._time-l,n+=this._time-l),f=u,S=this._start,v=this._ts,x=!v,d&&(c||(l=this._zTime),(n||!a)&&(this._zTime=n)),this._repeat){if(b=this._yoyo,y=c+this._rDelay,this._repeat<-1&&n<0)return this.totalTime(y*100+n,a,s);if(f=Ee(u%y),u===o?(h=this._repeat,f=c):(h=~~(u/y),h&&h===u/y&&(f=c,h--),f>c&&(f=c)),_=qi(this._tTime,y),!l&&this._tTime&&_!==h&&this._tTime-_*y-this._dur<=0&&(_=h),b&&h&1&&(f=c-f,E=1),h!==_&&!this._lock){var O=b&&_&1,T=O===(b&&h&1);if(h<_&&(O=!O),l=O?0:u%c?c:u,this._lock=1,this.render(l||(E?0:Ee(h*y)),a,!c)._lock=0,this._tTime=u,!a&&this.parent&&Ye(this,"onRepeat"),this.vars.repeatRefresh&&!E&&(this.invalidate()._lock=1),l&&l!==this._time||x!==!this._ts||this.vars.onRepeat&&!this.parent&&!this._act)return this;if(c=this._dur,o=this._tDur,T&&(this._lock=2,l=O?c:-1e-4,this.render(l,!0),this.vars.repeatRefresh&&!E&&this.invalidate()),this._lock=0,!this._ts&&!x)return this;Du(this,E)}}if(this._hasPause&&!this._forcing&&this._lock<2&&(k=C0(this,Ee(l),Ee(f)),k&&(u-=f-(f=k._start))),this._tTime=u,this._time=f,this._act=!v,this._initted||(this._onUpdate=this.vars.onUpdate,this._initted=1,this._zTime=n,l=0),!l&&f&&!a&&!h&&(Ye(this,"onStart"),this._tTime!==u))return this;if(f>=l&&n>=0)for(p=this._first;p;){if(m=p._next,(p._act||f>=p._start)&&p._ts&&k!==p){if(p.parent!==this)return this.render(n,a,s);if(p.render(p._ts>0?(f-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(f-p._start)*p._ts,a,s),f!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=-ce);break}}p=m}else{p=this._last;for(var C=n<0?n:f;p;){if(m=p._prev,(p._act||C<=p._end)&&p._ts&&k!==p){if(p.parent!==this)return this.render(n,a,s);if(p.render(p._ts>0?(C-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(C-p._start)*p._ts,a,s||Me&&(p._initted||p._startAt)),f!==this._time||!this._ts&&!x){k=0,m&&(u+=this._zTime=C?-ce:ce);break}}p=m}}if(k&&!a&&(this.pause(),k.render(f>=l?0:-ce)._zTime=f>=l?1:-1,this._ts))return this._start=S,Rr(this),this.render(n,a,s);this._onUpdate&&!a&&Ye(this,"onUpdate",!0),(u===o&&this._tTime>=this.totalDuration()||!u&&l)&&(S===this._start||Math.abs(v)!==Math.abs(this._ts))&&(this._lock||((n||!c)&&(u===o&&this._ts>0||!u&&this._ts<0)&&Xt(this,1),!a&&!(n<0&&!l)&&(u||l||!o)&&(Ye(this,u===o&&n>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(u<o&&this.timeScale()>0)&&this._prom())))}return this},t.add=function(n,a){var s=this;if(Ct(a)||(a=tt(this,a,n)),!(n instanceof xn)){if(Re(n))return n.forEach(function(l){return s.add(l,a)}),this;if(Ie(n))return this.addLabel(n,a);if(be(n))n=Oe.delayedCall(0,n);else return this}return this!==n?mt(this,n,a):this},t.getChildren=function(n,a,s,l){n===void 0&&(n=!0),a===void 0&&(a=!0),s===void 0&&(s=!0),l===void 0&&(l=-nt);for(var o=[],c=this._first;c;)c._start>=l&&(c instanceof Oe?a&&o.push(c):(s&&o.push(c),n&&o.push.apply(o,c.getChildren(!0,a,s)))),c=c._next;return o},t.getById=function(n){for(var a=this.getChildren(1,1,1),s=a.length;s--;)if(a[s].vars.id===n)return a[s]},t.remove=function(n){return Ie(n)?this.removeLabel(n):be(n)?this.killTweensOf(n):(Mr(this,n),n===this._recent&&(this._recent=this._last),di(this))},t.totalTime=function(n,a){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Ee(Ue.time-(this._ts>0?n/this._ts:(this.totalDuration()-n)/-this._ts))),i.prototype.totalTime.call(this,n,a),this._forcing=0,this):this._tTime},t.addLabel=function(n,a){return this.labels[n]=tt(this,a),this},t.removeLabel=function(n){return delete this.labels[n],this},t.addPause=function(n,a,s){var l=Oe.delayedCall(0,a||bn,s);return l.data="isPause",this._hasPause=1,mt(this,l,tt(this,n))},t.removePause=function(n){var a=this._first;for(n=tt(this,n);a;)a._start===n&&a.data==="isPause"&&Xt(a),a=a._next},t.killTweensOf=function(n,a,s){for(var l=this.getTweensOf(n,s),o=l.length;o--;)jt!==l[o]&&l[o].kill(n,a);return this},t.getTweensOf=function(n,a){for(var s=[],l=rt(n),o=this._first,c=Ct(a),u;o;)o instanceof Oe?k0(o._targets,l)&&(c?(!jt||o._initted&&o._ts)&&o.globalTime(0)<=a&&o.globalTime(o.totalDuration())>a:!a||o.isActive())&&s.push(o):(u=o.getTweensOf(l,a)).length&&s.push.apply(s,u),o=o._next;return s},t.tweenTo=function(n,a){a=a||{};var s=this,l=tt(s,n),o=a,c=o.startAt,u=o.onStart,d=o.onStartParams,f=o.immediateRender,p,m=Oe.to(s,lt({ease:a.ease||"none",lazy:!1,immediateRender:!1,time:l,overwrite:"auto",duration:a.duration||Math.abs((l-(c&&"time"in c?c.time:s._time))/s.timeScale())||ce,onStart:function(){if(s.pause(),!p){var y=a.duration||Math.abs((l-(c&&"time"in c?c.time:s._time))/s.timeScale());m._dur!==y&&Ui(m,y,0,1).render(m._time,!0,!0),p=1}u&&u.apply(m,d||[])}},a));return f?m.render(0):m},t.tweenFromTo=function(n,a,s){return this.tweenTo(a,lt({startAt:{time:tt(this,n)}},s))},t.recent=function(){return this._recent},t.nextLabel=function(n){return n===void 0&&(n=this._time),sl(this,tt(this,n))},t.previousLabel=function(n){return n===void 0&&(n=this._time),sl(this,tt(this,n),1)},t.currentLabel=function(n){return arguments.length?this.seek(n,!0):this.previousLabel(this._time+ce)},t.shiftChildren=function(n,a,s){s===void 0&&(s=0);for(var l=this._first,o=this.labels,c;l;)l._start>=s&&(l._start+=n,l._end+=n),l=l._next;if(a)for(c in o)o[c]>=s&&(o[c]+=n);return di(this)},t.invalidate=function(n){var a=this._first;for(this._lock=0;a;)a.invalidate(n),a=a._next;return i.prototype.invalidate.call(this,n)},t.clear=function(n){n===void 0&&(n=!0);for(var a=this._first,s;a;)s=a._next,this.remove(a),a=s;return this._dp&&(this._time=this._tTime=this._pTime=0),n&&(this.labels={}),di(this)},t.totalDuration=function(n){var a=0,s=this,l=s._last,o=nt,c,u,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-n:n));if(s._dirty){for(d=s.parent;l;)c=l._prev,l._dirty&&l.totalDuration(),u=l._start,u>o&&s._sort&&l._ts&&!s._lock?(s._lock=1,mt(s,l,u-l._delay,1)._lock=0):o=u,u<0&&l._ts&&(a-=u,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=u/s._ts,s._time-=u,s._tTime-=u),s.shiftChildren(-u,!1,-1/0),o=0),l._end>a&&l._ts&&(a=l._end),l=c;Ui(s,s===pe&&s._time>a?s._time:a,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(n){if(pe._ts&&(mu(pe,fr(n,pe)),pu=Ue.frame),Ue.frame>=tl){tl+=Xe.autoSleep||120;var a=pe._first;if((!a||!a._ts)&&Xe.autoSleep&&Ue._listeners.length<2){for(;a&&!a._ts;)a=a._next;a||Ue.sleep()}}},e}(xn);lt(De.prototype,{_lock:0,_hasPause:0,_forcing:0});var U0=function(e,t,r,n,a,s,l){var o=new je(this._pt,e,t,0,1,Hu,null,a),c=0,u=0,d,f,p,m,h,y,x,k;for(o.b=r,o.e=n,r+="",n+="",(x=~n.indexOf("random("))&&(n=yn(n)),s&&(k=[r,n],s(k,e,t),r=k[0],n=k[1]),f=r.match(Xr)||[];d=Xr.exec(n);)m=d[0],h=n.substring(c,d.index),p?p=(p+1)%5:h.substr(-5)==="rgba("&&(p=1),m!==f[u++]&&(y=parseFloat(f[u-1])||0,o._pt={_next:o._pt,p:h||u===1?h:",",s:y,c:m.charAt(1)==="="?Li(y,m)-y:parseFloat(m)-y,m:p&&p<4?Math.round:0},c=Xr.lastIndex);return o.c=c<n.length?n.substring(c,n.length):"",o.fp=l,(uu.test(n)||x)&&(o.e=0),this._pt=o,o},oa=function(e,t,r,n,a,s,l,o,c,u){be(n)&&(n=n(a||0,e,s));var d=e[t],f=r!=="get"?r:be(d)?c?e[t.indexOf("set")||!be(e["get"+t.substr(3)])?t:"get"+t.substr(3)](c):e[t]():d,p=be(d)?c?Q0:Vu:ca,m;if(Ie(n)&&(~n.indexOf("random(")&&(n=yn(n)),n.charAt(1)==="="&&(m=Li(f,n)+(Ce(f)||0),(m||m===0)&&(n=m))),!u||f!==n||Is)return!isNaN(f*n)&&n!==""?(m=new je(this._pt,e,t,+f||0,n-(f||0),typeof d=="boolean"?J0:Wu,0,p),c&&(m.fp=c),l&&m.modifier(l,this,e),this._pt=m):(!d&&!(t in e)&&ra(t,n),U0.call(this,e,t,f,n,p,o||Xe.stringFilter,c))},G0=function(e,t,r,n,a){if(be(e)&&(e=fn(e,a,t,r,n)),!xt(e)||e.style&&e.nodeType||Re(e)||lu(e))return Ie(e)?fn(e,a,t,r,n):e;var s={},l;for(l in e)s[l]=fn(e[l],a,t,r,n);return s},Nu=function(e,t,r,n,a,s){var l,o,c,u;if(qe[e]&&(l=new qe[e]).init(a,l.rawVars?t[e]:G0(t[e],n,a,s,r),r,n,s)!==!1&&(r._pt=o=new je(r._pt,a,e,0,1,l.render,l,0,l.priority),r!==$i))for(c=r._ptLookup[r._targets.indexOf(a)],u=l._props.length;u--;)c[l._props[u]]=o;return l},jt,Is,ua=function i(e,t,r){var n=e.vars,a=n.ease,s=n.startAt,l=n.immediateRender,o=n.lazy,c=n.onUpdate,u=n.runBackwards,d=n.yoyoEase,f=n.keyframes,p=n.autoRevert,m=e._dur,h=e._startAt,y=e._targets,x=e.parent,k=x&&x.data==="nested"?x.vars.targets:y,v=e._overwrite==="auto"&&!ea,S=e.timeline,_,b,E,O,T,C,R,M,z,V,H,q,U;if(S&&(!f||!a)&&(a="none"),e._ease=fi(a,Hi.ease),e._yEase=d?Lu(fi(d===!0?a:d,Hi.ease)):0,d&&e._yoyo&&!e._repeat&&(d=e._yEase,e._yEase=e._ease,e._ease=d),e._from=!S&&!!n.runBackwards,!S||f&&!n.stagger){if(M=y[0]?ci(y[0]).harness:0,q=M&&n[M.prop],_=dr(n,sa),h&&(h._zTime<0&&h.progress(1),t<0&&u&&l&&!p?h.render(-1,!0):h.revert(u&&m?Jn:x0),h._lazy=0),s){if(Xt(e._startAt=Oe.set(y,lt({data:"isStart",overwrite:!1,parent:x,immediateRender:!0,lazy:!h&&Be(o),startAt:null,delay:0,onUpdate:c&&function(){return Ye(e,"onUpdate")},stagger:0},s))),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Me||!l&&!p)&&e._startAt.revert(Jn),l&&m&&t<=0&&r<=0){t&&(e._zTime=t);return}}else if(u&&m&&!h){if(t&&(l=!1),E=lt({overwrite:!1,data:"isFromStart",lazy:l&&!h&&Be(o),immediateRender:l,stagger:0,parent:x},_),q&&(E[M.prop]=q),Xt(e._startAt=Oe.set(y,E)),e._startAt._dp=0,e._startAt._sat=e,t<0&&(Me?e._startAt.revert(Jn):e._startAt.render(-1,!0)),e._zTime=t,!l)i(e._startAt,ce,ce);else if(!t)return}for(e._pt=e._ptCache=0,o=m&&Be(o)||o&&!m,b=0;b<y.length;b++){if(T=y[b],R=T._gsap||la(y)[b]._gsap,e._ptLookup[b]=V={},ks[R.id]&&Ht.length&&cr(),H=k===y?b:k.indexOf(T),M&&(z=new M).init(T,q||_,e,H,k)!==!1&&(e._pt=O=new je(e._pt,T,z.name,0,1,z.render,z,0,z.priority),z._props.forEach(function(oe){V[oe]=O}),z.priority&&(C=1)),!M||q)for(E in _)qe[E]&&(z=Nu(E,_,e,H,T,k))?z.priority&&(C=1):V[E]=O=oa.call(e,T,E,"get",_[E],H,k,0,n.stringFilter);e._op&&e._op[b]&&e.kill(T,e._op[b]),v&&e._pt&&(jt=e,pe.killTweensOf(T,V,e.globalTime(t)),U=!e.parent,jt=0),e._pt&&o&&(ks[R.id]=1)}C&&qu(e),e._onInit&&e._onInit(e)}e._onUpdate=c,e._initted=(!e._op||e._pt)&&!U,f&&t<=0&&S.render(nt,!0,!0)},Y0=function(e,t,r,n,a,s,l,o){var c=(e._pt&&e._ptCache||(e._ptCache={}))[t],u,d,f,p;if(!c)for(c=e._ptCache[t]=[],f=e._ptLookup,p=e._targets.length;p--;){if(u=f[p][t],u&&u.d&&u.d._pt)for(u=u.d._pt;u&&u.p!==t&&u.fp!==t;)u=u._next;if(!u)return Is=1,e.vars[t]="+=0",ua(e,l),Is=0,o?gn(t+" not eligible for reset"):1;c.push(u)}for(p=c.length;p--;)d=c[p],u=d._pt||d,u.s=(n||n===0)&&!a?n:u.s+(n||0)+s*u.c,u.c=r-u.s,d.e&&(d.e=_e(r)+Ce(d.e)),d.b&&(d.b=u.s+Ce(d.b))},X0=function(e,t){var r=e[0]?ci(e[0]).harness:0,n=r&&r.aliases,a,s,l,o;if(!n)return t;a=bi({},t);for(s in n)if(s in a)for(o=n[s].split(","),l=o.length;l--;)a[o[l]]=a[s];return a},K0=function(e,t,r,n){var a=t.ease||n||"power1.inOut",s,l;if(Re(t))l=r[e]||(r[e]=[]),t.forEach(function(o,c){return l.push({t:c/(t.length-1)*100,v:o,e:a})});else for(s in t)l=r[s]||(r[s]=[]),s==="ease"||l.push({t:parseFloat(e),v:t[s],e:a})},fn=function(e,t,r,n,a){return be(e)?e.call(t,r,n,a):Ie(e)&&~e.indexOf("random(")?yn(e):e},ju=aa+"repeat,repeatDelay,yoyo,repeatRefresh,yoyoEase,autoRevert",Fu={};Ne(ju+",id,stagger,delay,duration,paused,scrollTrigger",function(i){return Fu[i]=1});var Oe=function(i){su(e,i);function e(r,n,a,s){var l;typeof n=="number"&&(a.duration=n,n=a,a=null),l=i.call(this,s?n:cn(n))||this;var o=l.vars,c=o.duration,u=o.delay,d=o.immediateRender,f=o.stagger,p=o.overwrite,m=o.keyframes,h=o.defaults,y=o.scrollTrigger,x=o.yoyoEase,k=n.parent||pe,v=(Re(r)||lu(r)?Ct(r[0]):"length"in n)?[r]:rt(r),S,_,b,E,O,T,C,R;if(l._targets=v.length?la(v):gn("GSAP target "+r+" not found. https://gsap.com",!Xe.nullTargetWarn)||[],l._ptLookup=[],l._overwrite=p,m||f||Fn(c)||Fn(u)){if(n=l.vars,S=l.timeline=new De({data:"nested",defaults:h||{},targets:k&&k.data==="nested"?k.vars.targets:v}),S.kill(),S.parent=S._dp=Ot(l),S._start=0,f||Fn(c)||Fn(u)){if(E=v.length,C=f&&Ou(f),xt(f))for(O in f)~ju.indexOf(O)&&(R||(R={}),R[O]=f[O]);for(_=0;_<E;_++)b=dr(n,Fu),b.stagger=0,x&&(b.yoyoEase=x),R&&bi(b,R),T=v[_],b.duration=+fn(c,Ot(l),_,T,v),b.delay=(+fn(u,Ot(l),_,T,v)||0)-l._delay,!f&&E===1&&b.delay&&(l._delay=u=b.delay,l._start+=u,b.delay=0),S.to(T,b,C?C(_,T,v):0),S._ease=re.none;S.duration()?c=u=0:l.timeline=0}else if(m){cn(lt(S.vars.defaults,{ease:"none"})),S._ease=fi(m.ease||n.ease||"none");var M=0,z,V,H;if(Re(m))m.forEach(function(q){return S.to(v,q,">")}),S.duration();else{b={};for(O in m)O==="ease"||O==="easeEach"||K0(O,m[O],b,m.easeEach);for(O in b)for(z=b[O].sort(function(q,U){return q.t-U.t}),M=0,_=0;_<z.length;_++)V=z[_],H={ease:V.e,duration:(V.t-(_?z[_-1].t:0))/100*c},H[O]=V.v,S.to(v,H,M),M+=H.duration;S.duration()<c&&S.to({},{duration:c-S.duration()})}}c||l.duration(c=S.duration())}else l.timeline=0;return p===!0&&!ea&&(jt=Ot(l),pe.killTweensOf(v),jt=0),mt(k,Ot(l),a),n.reversed&&l.reverse(),n.paused&&l.paused(!0),(d||!c&&!m&&l._start===Ee(k._time)&&Be(d)&&E0(Ot(l))&&k.data!=="nested")&&(l._tTime=-ce,l.render(Math.max(0,-u)||0)),y&&xu(Ot(l),y),l}var t=e.prototype;return t.render=function(n,a,s){var l=this._time,o=this._tDur,c=this._dur,u=n<0,d=n>o-ce&&!u?o:n<ce?0:n,f,p,m,h,y,x,k,v,S;if(!c)I0(this,n,a,s);else if(d!==this._tTime||!n||s||!this._initted&&this._tTime||this._startAt&&this._zTime<0!==u){if(f=d,v=this.timeline,this._repeat){if(h=c+this._rDelay,this._repeat<-1&&u)return this.totalTime(h*100+n,a,s);if(f=Ee(d%h),d===o?(m=this._repeat,f=c):(m=~~(d/h),m&&m===Ee(d/h)&&(f=c,m--),f>c&&(f=c)),x=this._yoyo&&m&1,x&&(S=this._yEase,f=c-f),y=qi(this._tTime,h),f===l&&!s&&this._initted&&m===y)return this._tTime=d,this;m!==y&&(v&&this._yEase&&Du(v,x),this.vars.repeatRefresh&&!x&&!this._lock&&this._time!==h&&this._initted&&(this._lock=s=1,this.render(Ee(h*m),!0).invalidate()._lock=0))}if(!this._initted){if(Su(this,u?n:f,s,a,d))return this._tTime=0,this;if(l!==this._time&&!(s&&this.vars.repeatRefresh&&m!==y))return this;if(c!==this._dur)return this.render(n,a,s)}if(this._tTime=d,this._time=f,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=k=(S||this._ease)(f/c),this._from&&(this.ratio=k=1-k),f&&!l&&!a&&!m&&(Ye(this,"onStart"),this._tTime!==d))return this;for(p=this._pt;p;)p.r(k,p.d),p=p._next;v&&v.render(n<0?n:v._dur*v._ease(f/this._dur),a,s)||this._startAt&&(this._zTime=n),this._onUpdate&&!a&&(u&&ws(this,n,a,s),Ye(this,"onUpdate")),this._repeat&&m!==y&&this.vars.onRepeat&&!a&&this.parent&&Ye(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(u&&!this._onUpdate&&ws(this,n,!0,!0),(n||!c)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Xt(this,1),!a&&!(u&&!l)&&(d||l||x)&&(Ye(this,d===o?"onComplete":"onReverseComplete",!0),this._prom&&!(d<o&&this.timeScale()>0)&&this._prom()))}return this},t.targets=function(){return this._targets},t.invalidate=function(n){return(!n||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(n),i.prototype.invalidate.call(this,n)},t.resetTo=function(n,a,s,l,o){_n||Ue.wake(),this._ts||this.play();var c=Math.min(this._dur,(this._dp._time-this._start)*this._ts),u;return this._initted||ua(this,c),u=this._ease(c/this._dur),Y0(this,n,a,s,l,u,c,o)?this.resetTo(n,a,s,l,1):(Pr(this,0),this.parent||yu(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},t.kill=function(n,a){if(a===void 0&&(a="all"),!n&&(!a||a==="all"))return this._lazy=this._pt=0,this.parent?ln(this):this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(n,a,jt&&jt.vars.overwrite!==!0)._first||ln(this),this.parent&&s!==this.timeline.totalDuration()&&Ui(this,this._dur*this.timeline._tDur/s,0,1),this}var l=this._targets,o=n?rt(n):l,c=this._ptLookup,u=this._pt,d,f,p,m,h,y,x;if((!a||a==="all")&&O0(l,o))return a==="all"&&(this._pt=0),ln(this);for(d=this._op=this._op||[],a!=="all"&&(Ie(a)&&(h={},Ne(a,function(k){return h[k]=1}),a=h),a=X0(l,a)),x=l.length;x--;)if(~o.indexOf(l[x])){f=c[x],a==="all"?(d[x]=a,m=f,p={}):(p=d[x]=d[x]||{},m=a);for(h in m)y=f&&f[h],y&&((!("kill"in y.d)||y.d.kill(h)===!0)&&Mr(this,y,"_pt"),delete f[h]),p!=="all"&&(p[h]=1)}return this._initted&&!this._pt&&u&&ln(this),this},e.to=function(n,a){return new e(n,a,arguments[2])},e.from=function(n,a){return dn(1,arguments)},e.delayedCall=function(n,a,s,l){return new e(a,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:n,onComplete:a,onReverseComplete:a,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:l})},e.fromTo=function(n,a,s){return dn(2,arguments)},e.set=function(n,a){return a.duration=0,a.repeatDelay||(a.repeat=0),new e(n,a)},e.killTweensOf=function(n,a,s){return pe.killTweensOf(n,a,s)},e}(xn);lt(Oe.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ne("staggerTo,staggerFrom,staggerFromTo",function(i){Oe[i]=function(){var e=new De,t=As.call(arguments,0);return t.splice(i==="staggerFromTo"?5:4,0,0),e[i].apply(e,t)}});var ca=function(e,t,r){return e[t]=r},Vu=function(e,t,r){return e[t](r)},Q0=function(e,t,r,n){return e[t](n.fp,r)},Z0=function(e,t,r){return e.setAttribute(t,r)},da=function(e,t){return be(e[t])?Vu:ta(e[t])&&e.setAttribute?Z0:ca},Wu=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e6)/1e6,t)},J0=function(e,t){return t.set(t.t,t.p,!!(t.s+t.c*e),t)},Hu=function(e,t){var r=t._pt,n="";if(!e&&t.b)n=t.b;else if(e===1&&t.e)n=t.e;else{for(;r;)n=r.p+(r.m?r.m(r.s+r.c*e):Math.round((r.s+r.c*e)*1e4)/1e4)+n,r=r._next;n+=t.c}t.set(t.t,t.p,n,t)},fa=function(e,t){for(var r=t._pt;r;)r.r(e,r.d),r=r._next},ey=function(e,t,r,n){for(var a=this._pt,s;a;)s=a._next,a.p===n&&a.modifier(e,t,r),a=s},ty=function(e){for(var t=this._pt,r,n;t;)n=t._next,t.p===e&&!t.op||t.op===e?Mr(this,t,"_pt"):t.dep||(r=1),t=n;return!r},iy=function(e,t,r,n){n.mSet(e,t,n.m.call(n.tween,r,n.mt),n)},qu=function(e){for(var t=e._pt,r,n,a,s;t;){for(r=t._next,n=a;n&&n.pr>t.pr;)n=n._next;(t._prev=n?n._prev:s)?t._prev._next=t:a=t,(t._next=n)?n._prev=t:s=t,t=r}e._pt=a},je=function(){function i(t,r,n,a,s,l,o,c,u){this.t=r,this.s=a,this.c=s,this.p=n,this.r=l||Wu,this.d=o||this,this.set=c||ca,this.pr=u||0,this._next=t,t&&(t._prev=this)}var e=i.prototype;return e.modifier=function(r,n,a){this.mSet=this.mSet||this.set,this.set=iy,this.m=r,this.mt=a,this.tween=n},i}();Ne(aa+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(i){return sa[i]=1});Ze.TweenMax=Ze.TweenLite=Oe;Ze.TimelineLite=Ze.TimelineMax=De;pe=new De({sortChildren:!1,defaults:Hi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Xe.stringFilter=$u;var hi=[],tr={},ny=[],ll=0,ry=0,es=function(e){return(tr[e]||ny).map(function(t){return t()})},Cs=function(){var e=Date.now(),t=[];e-ll>2&&(es("matchMediaInit"),hi.forEach(function(r){var n=r.queries,a=r.conditions,s,l,o,c;for(l in n)s=vt.matchMedia(n[l]).matches,s&&(o=1),s!==a[l]&&(a[l]=s,c=1);c&&(r.revert(),o&&t.push(r))}),es("matchMediaRevert"),t.forEach(function(r){return r.onMatch(r,function(n){return r.add(null,n)})}),ll=e,es("matchMedia"))},Uu=function(){function i(t,r){this.selector=r&&Es(r),this.data=[],this._r=[],this.isReverted=!1,this.id=ry++,t&&this.add(t)}var e=i.prototype;return e.add=function(r,n,a){be(r)&&(a=n,n=r,r=be);var s=this,l=function(){var c=he,u=s.selector,d;return c&&c!==s&&c.data.push(s),a&&(s.selector=Es(a)),he=s,d=n.apply(s,arguments),be(d)&&s._r.push(d),he=c,s.selector=u,s.isReverted=!1,d};return s.last=l,r===be?l(s,function(o){return s.add(null,o)}):r?s[r]=l:l},e.ignore=function(r){var n=he;he=null,r(this),he=n},e.getTweens=function(){var r=[];return this.data.forEach(function(n){return n instanceof i?r.push.apply(r,n.getTweens()):n instanceof Oe&&!(n.parent&&n.parent.data==="nested")&&r.push(n)}),r},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(r,n){var a=this;if(r?function(){for(var l=a.getTweens(),o=a.data.length,c;o--;)c=a.data[o],c.data==="isFlip"&&(c.revert(),c.getChildren(!0,!0,!1).forEach(function(u){return l.splice(l.indexOf(u),1)}));for(l.map(function(u){return{g:u._dur||u._delay||u._sat&&!u._sat.vars.immediateRender?u.globalTime(0):-1/0,t:u}}).sort(function(u,d){return d.g-u.g||-1/0}).forEach(function(u){return u.t.revert(r)}),o=a.data.length;o--;)c=a.data[o],c instanceof De?c.data!=="nested"&&(c.scrollTrigger&&c.scrollTrigger.revert(),c.kill()):!(c instanceof Oe)&&c.revert&&c.revert(r);a._r.forEach(function(u){return u(r,a)}),a.isReverted=!0}():this.data.forEach(function(l){return l.kill&&l.kill()}),this.clear(),n)for(var s=hi.length;s--;)hi[s].id===this.id&&hi.splice(s,1)},e.revert=function(r){this.kill(r||{})},i}(),sy=function(){function i(t){this.contexts=[],this.scope=t,he&&he.data.push(this)}var e=i.prototype;return e.add=function(r,n,a){xt(r)||(r={matches:r});var s=new Uu(0,a||this.scope),l=s.conditions={},o,c,u;he&&!s.selector&&(s.selector=he.selector),this.contexts.push(s),n=s.add("onMatch",n),s.queries=r;for(c in r)c==="all"?u=1:(o=vt.matchMedia(r[c]),o&&(hi.indexOf(s)<0&&hi.push(s),(l[c]=o.matches)&&(u=1),o.addListener?o.addListener(Cs):o.addEventListener("change",Cs)));return u&&n(s,function(d){return s.add(null,d)}),this},e.revert=function(r){this.kill(r||{})},e.kill=function(r){this.contexts.forEach(function(n){return n.kill(r,!0)})},i}(),hr={registerPlugin:function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];t.forEach(function(n){return Mu(n)})},timeline:function(e){return new De(e)},getTweensOf:function(e,t){return pe.getTweensOf(e,t)},getProperty:function(e,t,r,n){Ie(e)&&(e=rt(e)[0]);var a=ci(e||{}).get,s=r?bu:gu;return r==="native"&&(r=""),e&&(t?s((qe[t]&&qe[t].get||a)(e,t,r,n)):function(l,o,c){return s((qe[l]&&qe[l].get||a)(e,l,o,c))})},quickSetter:function(e,t,r){if(e=rt(e),e.length>1){var n=e.map(function(u){return Ve.quickSetter(u,t,r)}),a=n.length;return function(u){for(var d=a;d--;)n[d](u)}}e=e[0]||{};var s=qe[t],l=ci(e),o=l.harness&&(l.harness.aliases||{})[t]||t,c=s?function(u){var d=new s;$i._pt=0,d.init(e,r?u+r:u,$i,0,[e]),d.render(1,d),$i._pt&&fa(1,$i)}:l.set(e,o);return s?c:function(u){return c(e,o,r?u+r:u,l,1)}},quickTo:function(e,t,r){var n,a=Ve.to(e,bi((n={},n[t]="+=0.1",n.paused=!0,n),r||{})),s=function(o,c,u){return a.resetTo(t,o,c,u)};return s.tween=a,s},isTweening:function(e){return pe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=fi(e.ease,Hi.ease)),il(Hi,e||{})},config:function(e){return il(Xe,e||{})},registerEffect:function(e){var t=e.name,r=e.effect,n=e.plugins,a=e.defaults,s=e.extendTimeline;(n||"").split(",").forEach(function(l){return l&&!qe[l]&&!Ze[l]&&gn(t+" effect requires "+l+" plugin.")}),Kr[t]=function(l,o,c){return r(rt(l),lt(o||{},a),c)},s&&(De.prototype[t]=function(l,o,c){return this.add(Kr[t](l,xt(o)?o:(c=o)&&{},this),c)})},registerEase:function(e,t){re[e]=fi(t)},parseEase:function(e,t){return arguments.length?fi(e,t):re},getById:function(e){return pe.getById(e)},exportRoot:function(e,t){e===void 0&&(e={});var r=new De(e),n,a;for(r.smoothChildTiming=Be(e.smoothChildTiming),pe.remove(r),r._dp=0,r._time=r._tTime=pe._time,n=pe._first;n;)a=n._next,(t||!(!n._dur&&n instanceof Oe&&n.vars.onComplete===n._targets[0]))&&mt(r,n,n._start-n._delay),n=a;return mt(pe,r,0),r},context:function(e,t){return e?new Uu(e,t):he},matchMedia:function(e){return new sy(e)},matchMediaRefresh:function(){return hi.forEach(function(e){var t=e.conditions,r,n;for(n in t)t[n]&&(t[n]=!1,r=1);r&&e.revert()})||Cs()},addEventListener:function(e,t){var r=tr[e]||(tr[e]=[]);~r.indexOf(t)||r.push(t)},removeEventListener:function(e,t){var r=tr[e],n=r&&r.indexOf(t);n>=0&&r.splice(n,1)},utils:{wrap:z0,wrapYoyo:B0,distribute:Ou,random:Eu,snap:Au,normalize:D0,getUnit:Ce,clamp:R0,splitColor:Ru,toArray:rt,selector:Es,mapRange:Iu,pipe:$0,unitize:L0,interpolate:N0,shuffle:wu},install:fu,effects:Kr,ticker:Ue,updateRoot:De.updateRoot,plugins:qe,globalTimeline:pe,core:{PropTween:je,globals:hu,Tween:Oe,Timeline:De,Animation:xn,getCache:ci,_removeLinkedListItem:Mr,reverting:function(){return Me},context:function(e){return e&&he&&(he.data.push(e),e._ctx=he),he},suppressOverwrites:function(e){return ea=e}}};Ne("to,from,fromTo,delayedCall,set,killTweensOf",function(i){return hr[i]=Oe[i]});Ue.add(De.updateRoot);$i=hr.to({},{duration:0});var ay=function(e,t){for(var r=e._pt;r&&r.p!==t&&r.op!==t&&r.fp!==t;)r=r._next;return r},ly=function(e,t){var r=e._targets,n,a,s;for(n in t)for(a=r.length;a--;)s=e._ptLookup[a][n],s&&(s=s.d)&&(s._pt&&(s=ay(s,n)),s&&s.modifier&&s.modifier(t[n],e,r[a],n))},ts=function(e,t){return{name:e,rawVars:1,init:function(n,a,s){s._onInit=function(l){var o,c;if(Ie(a)&&(o={},Ne(a,function(u){return o[u]=1}),a=o),t){o={};for(c in a)o[c]=t(a[c]);a=o}ly(l,a)}}}},Ve=hr.registerPlugin({name:"attr",init:function(e,t,r,n,a){var s,l,o;this.tween=r;for(s in t)o=e.getAttribute(s)||"",l=this.add(e,"setAttribute",(o||0)+"",t[s],n,a,0,0,s),l.op=s,l.b=o,this._props.push(s)},render:function(e,t){for(var r=t._pt;r;)Me?r.set(r.t,r.p,r.b,r):r.r(e,r.d),r=r._next}},{name:"endArray",init:function(e,t){for(var r=t.length;r--;)this.add(e,r,e[r]||0,t[r],0,0,0,0,0,1)}},ts("roundProps",Ts),ts("modifiers"),ts("snap",Au))||hr;Oe.version=De.version=Ve.version="3.12.5";du=1;ia()&&Gi();re.Power0;re.Power1;re.Power2;re.Power3;re.Power4;re.Linear;re.Quad;re.Cubic;re.Quart;re.Quint;re.Strong;re.Elastic;re.Back;re.SteppedEase;re.Bounce;re.Sine;re.Expo;re.Circ;/*! * CSSPlugin 3.12.5 * https://gsap.com * * Copyright 2008-2024, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license or for * Club GSAP members, the agreement issued with that membership. * @author: Jack Doyle, jack@greensock.com */var ol,Ft,Di,ha,oi,ul,pa,oy=function(){return typeof window<"u"},Mt={},ai=180/Math.PI,zi=Math.PI/180,Ii=Math.atan2,cl=1e8,va=/([A-Z])/g,uy=/(left|right|width|margin|padding|x)/i,cy=/[\s,\(]\S/,gt={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Ms=function(e,t){return t.set(t.t,t.p,Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},dy=function(e,t){return t.set(t.t,t.p,e===1?t.e:Math.round((t.s+t.c*e)*1e4)/1e4+t.u,t)},fy=function(e,t){return t.set(t.t,t.p,e?Math.round((t.s+t.c*e)*1e4)/1e4+t.u:t.b,t)},hy=function(e,t){var r=t.s+t.c*e;t.set(t.t,t.p,~~(r+(r<0?-.5:.5))+t.u,t)},Gu=function(e,t){return t.set(t.t,t.p,e?t.e:t.b,t)},Yu=function(e,t){return t.set(t.t,t.p,e!==1?t.b:t.e,t)},py=function(e,t,r){return e.style[t]=r},vy=function(e,t,r){return e.style.setProperty(t,r)},my=function(e,t,r){return e._gsap[t]=r},gy=function(e,t,r){return e._gsap.scaleX=e._gsap.scaleY=r},by=function(e,t,r,n,a){var s=e._gsap;s.scaleX=s.scaleY=r,s.renderTransform(a,s)},yy=function(e,t,r,n,a){var s=e._gsap;s[t]=r,s.renderTransform(a,s)},me="transform",Fe=me+"Origin",_y=function i(e,t){var r=this,n=this.target,a=n.style,s=n._gsap;if(e in Mt&&a){if(this.tfm=this.tfm||{},e!=="transform")e=gt[e]||e,~e.indexOf(",")?e.split(",").forEach(function(l){return r.tfm[l]=At(n,l)}):this.tfm[e]=s.x?s[e]:At(n,e),e===Fe&&(this.tfm.zOrigin=s.zOrigin);else return gt.transform.split(",").forEach(function(l){return i.call(r,l,t)});if(this.props.indexOf(me)>=0)return;s.svg&&(this.svgo=n.getAttribute("data-svg-origin"),this.props.push(Fe,t,"")),e=me}(a||t)&&this.props.push(e,t,a[e])},Xu=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},xy=function(){var e=this.props,t=this.target,r=t.style,n=t._gsap,a,s;for(a=0;a<e.length;a+=3)e[a+1]?t[e[a]]=e[a+2]:e[a+2]?r[e[a]]=e[a+2]:r.removeProperty(e[a].substr(0,2)==="--"?e[a]:e[a].replace(va,"-$1").toLowerCase());if(this.tfm){for(s in this.tfm)n[s]=this.tfm[s];n.svg&&(n.renderTransform(),t.setAttribute("data-svg-origin",this.svgo||"")),a=pa(),(!a||!a.isStart)&&!r[me]&&(Xu(r),n.zOrigin&&r[Fe]&&(r[Fe]+=" "+n.zOrigin+"px",n.zOrigin=0,n.renderTransform()),n.uncache=1)}},Ku=function(e,t){var r={target:e,props:[],revert:xy,save:_y};return e._gsap||Ve.core.getCache(e),t&&t.split(",").forEach(function(n){return r.save(n)}),r},Qu,Rs=function(e,t){var r=Ft.createElementNS?Ft.createElementNS((t||"http://www.w3.org/1999/xhtml").replace(/^https/,"http"),e):Ft.createElement(e);return r&&r.style?r:Ft.createElement(e)},bt=function i(e,t,r){var n=getComputedStyle(e);return n[t]||n.getPropertyValue(t.replace(va,"-$1").toLowerCase())||n.getPropertyValue(t)||!r&&i(e,Yi(t)||t,1)||""},dl="O,Moz,ms,Ms,Webkit".split(","),Yi=function(e,t,r){var n=t||oi,a=n.style,s=5;if(e in a&&!r)return e;for(e=e.charAt(0).toUpperCase()+e.substr(1);s--&&!(dl[s]+e in a););return s<0?null:(s===3?"ms":s>=0?dl[s]:"")+e},Ps=function(){oy()&&window.document&&(ol=window,Ft=ol.document,Di=Ft.documentElement,oi=Rs("div")||{style:{}},Rs("div"),me=Yi(me),Fe=me+"Origin",oi.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Qu=!!Yi("perspective"),pa=Ve.core.reverting,ha=1)},is=function i(e){var t=Rs("svg",this.ownerSVGElement&&this.ownerSVGElement.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),r=this.parentNode,n=this.nextSibling,a=this.style.cssText,s;if(Di.appendChild(t),t.appendChild(this),this.style.display="block",e)try{s=this.getBBox(),this._gsapBBox=this.getBBox,this.getBBox=i}catch{}else this._gsapBBox&&(s=this._gsapBBox());return r&&(n?r.insertBefore(this,n):r.appendChild(this)),Di.removeChild(t),this.style.cssText=a,s},fl=function(e,t){for(var r=t.length;r--;)if(e.hasAttribute(t[r]))return e.getAttribute(t[r])},Zu=function(e){var t;try{t=e.getBBox()}catch{t=is.call(e,!0)}return t&&(t.width||t.height)||e.getBBox===is||(t=is.call(e,!0)),t&&!t.width&&!t.x&&!t.y?{x:+fl(e,["x","cx","x1"])||0,y:+fl(e,["y","cy","y1"])||0,width:0,height:0}:t},Ju=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Zu(e))},yi=function(e,t){if(t){var r=e.style,n;t in Mt&&t!==Fe&&(t=me),r.removeProperty?(n=t.substr(0,2),(n==="ms"||t.substr(0,6)==="webkit")&&(t="-"+t),r.removeProperty(n==="--"?t:t.replace(va,"-$1").toLowerCase())):r.removeAttribute(t)}},Vt=function(e,t,r,n,a,s){var l=new je(e._pt,t,r,0,1,s?Yu:Gu);return e._pt=l,l.b=n,l.e=a,e._props.push(r),l},hl={deg:1,rad:1,turn:1},Sy={grid:1,flex:1},Kt=function i(e,t,r,n){var a=parseFloat(r)||0,s=(r+"").trim().substr((a+"").length)||"px",l=oi.style,o=uy.test(t),c=e.tagName.toLowerCase()==="svg",u=(c?"client":"offset")+(o?"Width":"Height"),d=100,f=n==="px",p=n==="%",m,h,y,x;if(n===s||!a||hl[n]||hl[s])return a;if(s!=="px"&&!f&&(a=i(e,t,r,"px")),x=e.getCTM&&Ju(e),(p||s==="%")&&(Mt[t]||~t.indexOf("adius")))return m=x?e.getBBox()[o?"width":"height"]:e[u],_e(p?a/m*d:a/100*m);if(l[o?"width":"height"]=d+(f?s:n),h=~t.indexOf("adius")||n==="em"&&e.appendChild&&!c?e:e.parentNode,x&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ft||!h.appendChild)&&(h=Ft.body),y=h._gsap,y&&p&&y.width&&o&&y.time===Ue.time&&!y.uncache)return _e(a/y.width*d);if(p&&(t==="height"||t==="width")){var k=e.style[t];e.style[t]=d+n,m=e[u],k?e.style[t]=k:yi(e,t)}else(p||s==="%")&&!Sy[bt(h,"display")]&&(l.position=bt(e,"position")),h===e&&(l.position="static"),h.appendChild(oi),m=oi[u],h.removeChild(oi),l.position="absolute";return o&&p&&(y=ci(h),y.time=Ue.time,y.width=h[u]),_e(f?m*a/d:m&&a?d/m*a:0)},At=function(e,t,r,n){var a;return ha||Ps(),t in gt&&t!=="transform"&&(t=gt[t],~t.indexOf(",")&&(t=t.split(",")[0])),Mt[t]&&t!=="transform"?(a=kn(e,n),a=t!=="transformOrigin"?a[t]:a.svg?a.origin:vr(bt(e,Fe))+" "+a.zOrigin+"px"):(a=e.style[t],(!a||a==="auto"||n||~(a+"").indexOf("calc("))&&(a=pr[t]&&pr[t](e,t,r)||bt(e,t)||vu(e,t)||(t==="opacity"?1:0))),r&&!~(a+"").trim().indexOf(" ")?Kt(e,t,a,r)+r:a},ky=function(e,t,r,n){if(!r||r==="none"){var a=Yi(t,e,1),s=a&&bt(e,a,1);s&&s!==r?(t=a,r=s):t==="borderColor"&&(r=bt(e,"borderTopColor"))}var l=new je(this._pt,e.style,t,0,1,Hu),o=0,c=0,u,d,f,p,m,h,y,x,k,v,S,_;if(l.b=r,l.e=n,r+="",n+="",n==="auto"&&(h=e.style[t],e.style[t]=n,n=bt(e,t)||n,h?e.style[t]=h:yi(e,t)),u=[r,n],$u(u),r=u[0],n=u[1],f=r.match(Pi)||[],_=n.match(Pi)||[],_.length){for(;d=Pi.exec(n);)y=d[0],k=n.substring(o,d.index),m?m=(m+1)%5:(k.substr(-5)==="rgba("||k.substr(-5)==="hsla(")&&(m=1),y!==(h=f[c++]||"")&&(p=parseFloat(h)||0,S=h.substr((p+"").length),y.charAt(1)==="="&&(y=Li(p,y)+S),x=parseFloat(y),v=y.substr((x+"").length),o=Pi.lastIndex-v.length,v||(v=v||Xe.units[t]||S,o===n.length&&(n+=v,l.e+=v)),S!==v&&(p=Kt(e,t,h,v)||0),l._pt={_next:l._pt,p:k||c===1?k:",",s:p,c:x-p,m:m&&m<4||t==="zIndex"?Math.round:0});l.c=o<n.length?n.substring(o,n.length):""}else l.r=t==="display"&&n==="none"?Yu:Gu;return uu.test(n)&&(l.e=0),this._pt=l,l},pl={top:"0%",bottom:"100%",left:"0%",right:"100%",center:"50%"},wy=function(e){var t=e.split(" "),r=t[0],n=t[1]||"50%";return(r==="top"||r==="bottom"||n==="left"||n==="right")&&(e=r,r=n,n=e),t[0]=pl[r]||r,t[1]=pl[n]||n,t.join(" ")},Oy=function(e,t){if(t.tween&&t.tween._time===t.tween._dur){var r=t.t,n=r.style,a=t.u,s=r._gsap,l,o,c;if(a==="all"||a===!0)n.cssText="",o=1;else for(a=a.split(","),c=a.length;--c>-1;)l=a[c],Mt[l]&&(o=1,l=l==="transformOrigin"?Fe:me),yi(r,l);o&&(yi(r,me),s&&(s.svg&&r.removeAttribute("transform"),kn(r,1),s.uncache=1,Xu(n)))}},pr={clearProps:function(e,t,r,n,a){if(a.data!=="isFromStart"){var s=e._pt=new je(e._pt,t,r,0,0,Oy);return s.u=n,s.pr=-10,s.tween=a,e._props.push(r),1}}},Sn=[1,0,0,1,0,0],ec={},tc=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},vl=function(e){var t=bt(e,me);return tc(t)?Sn:t.substr(7).match(ou).map(_e)},ma=function(e,t){var r=e._gsap||ci(e),n=e.style,a=vl(e),s,l,o,c;return r.svg&&e.getAttribute("transform")?(o=e.transform.baseVal.consolidate().matrix,a=[o.a,o.b,o.c,o.d,o.e,o.f],a.join(",")==="1,0,0,1,0,0"?Sn:a):(a===Sn&&!e.offsetParent&&e!==Di&&!r.svg&&(o=n.display,n.display="block",s=e.parentNode,(!s||!e.offsetParent)&&(c=1,l=e.nextElementSibling,Di.appendChild(e)),a=vl(e),o?n.display=o:yi(e,"display"),c&&(l?s.insertBefore(e,l):s?s.appendChild(e):Di.removeChild(e))),t&&a.length>6?[a[0],a[1],a[4],a[5],a[12],a[13]]:a)},$s=function(e,t,r,n,a,s){var l=e._gsap,o=a||ma(e,!0),c=l.xOrigin||0,u=l.yOrigin||0,d=l.xOffset||0,f=l.yOffset||0,p=o[0],m=o[1],h=o[2],y=o[3],x=o[4],k=o[5],v=t.split(" "),S=parseFloat(v[0])||0,_=parseFloat(v[1])||0,b,E,O,T;r?o!==Sn&&(E=p*y-m*h)&&(O=S*(y/E)+_*(-h/E)+(h*k-y*x)/E,T=S*(-m/E)+_*(p/E)-(p*k-m*x)/E,S=O,_=T):(b=Zu(e),S=b.x+(~v[0].indexOf("%")?S/100*b.width:S),_=b.y+(~(v[1]||v[0]).indexOf("%")?_/100*b.height:_)),n||n!==!1&&l.smooth?(x=S-c,k=_-u,l.xOffset=d+(x*p+k*h)-x,l.yOffset=f+(x*m+k*y)-k):l.xOffset=l.yOffset=0,l.xOrigin=S,l.yOrigin=_,l.smooth=!!n,l.origin=t,l.originIsAbsolute=!!r,e.style[Fe]="0px 0px",s&&(Vt(s,l,"xOrigin",c,S),Vt(s,l,"yOrigin",u,_),Vt(s,l,"xOffset",d,l.xOffset),Vt(s,l,"yOffset",f,l.yOffset)),e.setAttribute("data-svg-origin",S+" "+_)},kn=function(e,t){var r=e._gsap||new Bu(e);if("x"in r&&!t&&!r.uncache)return r;var n=e.style,a=r.scaleX<0,s="px",l="deg",o=getComputedStyle(e),c=bt(e,Fe)||"0",u,d,f,p,m,h,y,x,k,v,S,_,b,E,O,T,C,R,M,z,V,H,q,U,oe,ee,le,ne,de,Le,te,K;return u=d=f=h=y=x=k=v=S=0,p=m=1,r.svg=!!(e.getCTM&&Ju(e)),o.translate&&((o.translate!=="none"||o.scale!=="none"||o.rotate!=="none")&&(n[me]=(o.translate!=="none"?"translate3d("+(o.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(o.rotate!=="none"?"rotate("+o.rotate+") ":"")+(o.scale!=="none"?"scale("+o.scale.split(" ").join(",")+") ":"")+(o[me]!=="none"?o[me]:"")),n.scale=n.rotate=n.translate="none"),E=ma(e,r.svg),r.svg&&(r.uncache?(oe=e.getBBox(),c=r.xOrigin-oe.x+"px "+(r.yOrigin-oe.y)+"px",U=""):U=!t&&e.getAttribute("data-svg-origin"),$s(e,U||c,!!U||r.originIsAbsolute,r.smooth!==!1,E)),_=r.xOrigin||0,b=r.yOrigin||0,E!==Sn&&(R=E[0],M=E[1],z=E[2],V=E[3],u=H=E[4],d=q=E[5],E.length===6?(p=Math.sqrt(R*R+M*M),m=Math.sqrt(V*V+z*z),h=R||M?Ii(M,R)*ai:0,k=z||V?Ii(z,V)*ai+h:0,k&&(m*=Math.abs(Math.cos(k*zi))),r.svg&&(u-=_-(_*R+b*z),d-=b-(_*M+b*V))):(K=E[6],Le=E[7],le=E[8],ne=E[9],de=E[10],te=E[11],u=E[12],d=E[13],f=E[14],O=Ii(K,de),y=O*ai,O&&(T=Math.cos(-O),C=Math.sin(-O),U=H*T+le*C,oe=q*T+ne*C,ee=K*T+de*C,le=H*-C+le*T,ne=q*-C+ne*T,de=K*-C+de*T,te=Le*-C+te*T,H=U,q=oe,K=ee),O=Ii(-z,de),x=O*ai,O&&(T=Math.cos(-O),C=Math.sin(-O),U=R*T-le*C,oe=M*T-ne*C,ee=z*T-de*C,te=V*C+te*T,R=U,M=oe,z=ee),O=Ii(M,R),h=O*ai,O&&(T=Math.cos(O),C=Math.sin(O),U=R*T+M*C,oe=H*T+q*C,M=M*T-R*C,q=q*T-H*C,R=U,H=oe),y&&Math.abs(y)+Math.abs(h)>359.9&&(y=h=0,x=180-x),p=_e(Math.sqrt(R*R+M*M+z*z)),m=_e(Math.sqrt(q*q+K*K)),O=Ii(H,q),k=Math.abs(O)>2e-4?O*ai:0,S=te?1/(te<0?-te:te):0),r.svg&&(U=e.getAttribute("transform"),r.forceCSS=e.setAttribute("transform","")||!tc(bt(e,me)),U&&e.setAttribute("transform",U))),Math.abs(k)>90&&Math.abs(k)<270&&(a?(p*=-1,k+=h<=0?180:-180,h+=h<=0?180:-180):(m*=-1,k+=k<=0?180:-180)),t=t||r.uncache,r.x=u-((r.xPercent=u&&(!t&&r.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-u)?-50:0)))?e.offsetWidth*r.xPercent/100:0)+s,r.y=d-((r.yPercent=d&&(!t&&r.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*r.yPercent/100:0)+s,r.z=f+s,r.scaleX=_e(p),r.scaleY=_e(m),r.rotation=_e(h)+l,r.rotationX=_e(y)+l,r.rotationY=_e(x)+l,r.skewX=k+l,r.skewY=v+l,r.transformPerspective=S+s,(r.zOrigin=parseFloat(c.split(" ")[2])||!t&&r.zOrigin||0)&&(n[Fe]=vr(c)),r.xOffset=r.yOffset=0,r.force3D=Xe.force3D,r.renderTransform=r.svg?Ey:Qu?ic:Ay,r.uncache=0,r},vr=function(e){return(e=e.split(" "))[0]+" "+e[1]},ns=function(e,t,r){var n=Ce(t);return _e(parseFloat(t)+parseFloat(Kt(e,"x",r+"px",n)))+n},Ay=function(e,t){t.z="0px",t.rotationY=t.rotationX="0deg",t.force3D=0,ic(e,t)},ri="0deg",sn="0px",si=") ",ic=function(e,t){var r=t||this,n=r.xPercent,a=r.yPercent,s=r.x,l=r.y,o=r.z,c=r.rotation,u=r.rotationY,d=r.rotationX,f=r.skewX,p=r.skewY,m=r.scaleX,h=r.scaleY,y=r.transformPerspective,x=r.force3D,k=r.target,v=r.zOrigin,S="",_=x==="auto"&&e&&e!==1||x===!0;if(v&&(d!==ri||u!==ri)){var b=parseFloat(u)*zi,E=Math.sin(b),O=Math.cos(b),T;b=parseFloat(d)*zi,T=Math.cos(b),s=ns(k,s,E*T*-v),l=ns(k,l,-Math.sin(b)*-v),o=ns(k,o,O*T*-v+v)}y!==sn&&(S+="perspective("+y+si),(n||a)&&(S+="translate("+n+"%, "+a+"%) "),(_||s!==sn||l!==sn||o!==sn)&&(S+=o!==sn||_?"translate3d("+s+", "+l+", "+o+") ":"translate("+s+", "+l+si),c!==ri&&(S+="rotate("+c+si),u!==ri&&(S+="rotateY("+u+si),d!==ri&&(S+="rotateX("+d+si),(f!==ri||p!==ri)&&(S+="skew("+f+", "+p+si),(m!==1||h!==1)&&(S+="scale("+m+", "+h+si),k.style[me]=S||"translate(0, 0)"},Ey=function(e,t){var r=t||this,n=r.xPercent,a=r.yPercent,s=r.x,l=r.y,o=r.rotation,c=r.skewX,u=r.skewY,d=r.scaleX,f=r.scaleY,p=r.target,m=r.xOrigin,h=r.yOrigin,y=r.xOffset,x=r.yOffset,k=r.forceCSS,v=parseFloat(s),S=parseFloat(l),_,b,E,O,T;o=parseFloat(o),c=parseFloat(c),u=parseFloat(u),u&&(u=parseFloat(u),c+=u,o+=u),o||c?(o*=zi,c*=zi,_=Math.cos(o)*d,b=Math.sin(o)*d,E=Math.sin(o-c)*-f,O=Math.cos(o-c)*f,c&&(u*=zi,T=Math.tan(c-u),T=Math.sqrt(1+T*T),E*=T,O*=T,u&&(T=Math.tan(u),T=Math.sqrt(1+T*T),_*=T,b*=T)),_=_e(_),b=_e(b),E=_e(E),O=_e(O)):(_=d,O=f,b=E=0),(v&&!~(s+"").indexOf("px")||S&&!~(l+"").indexOf("px"))&&(v=Kt(p,"x",s,"px"),S=Kt(p,"y",l,"px")),(m||h||y||x)&&(v=_e(v+m-(m*_+h*E)+y),S=_e(S+h-(m*b+h*O)+x)),(n||a)&&(T=p.getBBox(),v=_e(v+n/100*T.width),S=_e(S+a/100*T.height)),T="matrix("+_+","+b+","+E+","+O+","+v+","+S+")",p.setAttribute("transform",T),k&&(p.style[me]=T)},Ty=function(e,t,r,n,a){var s=360,l=Ie(a),o=parseFloat(a)*(l&&~a.indexOf("rad")?ai:1),c=o-n,u=n+c+"deg",d,f;return l&&(d=a.split("_")[1],d==="short"&&(c%=s,c!==c%(s/2)&&(c+=c<0?s:-s)),d==="cw"&&c<0?c=(c+s*cl)%s-~~(c/s)*s:d==="ccw"&&c>0&&(c=(c-s*cl)%s-~~(c/s)*s)),e._pt=f=new je(e._pt,t,r,n,c,dy),f.e=u,f.u="deg",e._props.push(r),f},ml=function(e,t){for(var r in t)e[r]=t[r];return e},Iy=function(e,t,r){var n=ml({},r._gsap),a="perspective,force3D,transformOrigin,svgOrigin",s=r.style,l,o,c,u,d,f,p,m;n.svg?(c=r.getAttribute("transform"),r.setAttribute("transform",""),s[me]=t,l=kn(r,1),yi(r,me),r.setAttribute("transform",c)):(c=getComputedStyle(r)[me],s[me]=t,l=kn(r,1),s[me]=c);for(o in Mt)c=n[o],u=l[o],c!==u&&a.indexOf(o)<0&&(p=Ce(c),m=Ce(u),d=p!==m?Kt(r,o,c,m):parseFloat(c),f=parseFloat(u),e._pt=new je(e._pt,l,o,d,f-d,Ms),e._pt.u=m||0,e._props.push(o));ml(l,n)};Ne("padding,margin,Width,Radius",function(i,e){var t="Top",r="Right",n="Bottom",a="Left",s=(e<3?[t,r,n,a]:[t+a,t+r,n+r,n+a]).map(function(l){return e<2?i+l:"border"+l+i});pr[e>1?"border"+i:i]=function(l,o,c,u,d){var f,p;if(arguments.length<4)return f=s.map(function(m){return At(l,m,c)}),p=f.join(" "),p.split(f[0]).length===5?f[0]:p;f=(u+"").split(" "),p={},s.forEach(function(m,h){return p[m]=f[h]=f[h]||f[(h-1)/2|0]}),l.init(o,p,d)}});var nc={name:"css",register:Ps,targetTest:function(e){return e.style&&e.nodeType},init:function(e,t,r,n,a){var s=this._props,l=e.style,o=r.vars.startAt,c,u,d,f,p,m,h,y,x,k,v,S,_,b,E,O;ha||Ps(),this.styles=this.styles||Ku(e),O=this.styles.props,this.tween=r;for(h in t)if(h!=="autoRound"&&(u=t[h],!(qe[h]&&Nu(h,t,r,n,e,a)))){if(p=typeof u,m=pr[h],p==="function"&&(u=u.call(r,n,e,a),p=typeof u),p==="string"&&~u.indexOf("random(")&&(u=yn(u)),m)m(this,e,h,u,r)&&(E=1);else if(h.substr(0,2)==="--")c=(getComputedStyle(e).getPropertyValue(h)+"").trim(),u+="",qt.lastIndex=0,qt.test(c)||(y=Ce(c),x=Ce(u)),x?y!==x&&(c=Kt(e,h,c,x)+x):y&&(u+=y),this.add(l,"setProperty",c,u,n,a,0,0,h),s.push(h),O.push(h,0,l[h]);else if(p!=="undefined"){if(o&&h in o?(c=typeof o[h]=="function"?o[h].call(r,n,e,a):o[h],Ie(c)&&~c.indexOf("random(")&&(c=yn(c)),Ce(c+"")||c==="auto"||(c+=Xe.units[h]||Ce(At(e,h))||""),(c+"").charAt(1)==="="&&(c=At(e,h))):c=At(e,h),f=parseFloat(c),k=p==="string"&&u.charAt(1)==="="&&u.substr(0,2),k&&(u=u.substr(2)),d=parseFloat(u),h in gt&&(h==="autoAlpha"&&(f===1&&At(e,"visibility")==="hidden"&&d&&(f=0),O.push("visibility",0,l.visibility),Vt(this,l,"visibility",f?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=gt[h],~h.indexOf(",")&&(h=h.split(",")[0]))),v=h in Mt,v){if(this.styles.save(h),S||(_=e._gsap,_.renderTransform&&!t.parseTransform||kn(e,t.parseTransform),b=t.smoothOrigin!==!1&&_.smooth,S=this._pt=new je(this._pt,l,me,0,1,_.renderTransform,_,0,-1),S.dep=1),h==="scale")this._pt=new je(this._pt,_,"scaleY",_.scaleY,(k?Li(_.scaleY,k+d):d)-_.scaleY||0,Ms),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){O.push(Fe,0,l[Fe]),u=wy(u),_.svg?$s(e,u,0,b,0,this):(x=parseFloat(u.split(" ")[2])||0,x!==_.zOrigin&&Vt(this,_,"zOrigin",_.zOrigin,x),Vt(this,l,h,vr(c),vr(u)));continue}else if(h==="svgOrigin"){$s(e,u,1,b,0,this);continue}else if(h in ec){Ty(this,_,h,f,k?Li(f,k+u):u);continue}else if(h==="smoothOrigin"){Vt(this,_,"smooth",_.smooth,u);continue}else if(h==="force3D"){_[h]=u;continue}else if(h==="transform"){Iy(this,u,e);continue}}else h in l||(h=Yi(h)||h);if(v||(d||d===0)&&(f||f===0)&&!cy.test(u)&&h in l)y=(c+"").substr((f+"").length),d||(d=0),x=Ce(u)||(h in Xe.units?Xe.units[h]:y),y!==x&&(f=Kt(e,h,c,x)),this._pt=new je(this._pt,v?_:l,h,f,(k?Li(f,k+d):d)-f,!v&&(x==="px"||h==="zIndex")&&t.autoRound!==!1?hy:Ms),this._pt.u=x||0,y!==x&&x!=="%"&&(this._pt.b=c,this._pt.r=fy);else if(h in l)ky.call(this,e,h,c,k?k+u:u);else if(h in e)this.add(e,h,c||e[h],k?k+u:u,n,a);else if(h!=="parseTransform"){ra(h,u);continue}v||(h in l?O.push(h,0,l[h]):O.push(h,1,c||e[h])),s.push(h)}}E&&qu(this)},render:function(e,t){if(t.tween._time||!pa())for(var r=t._pt;r;)r.r(e,r.d),r=r._next;else t.styles.revert()},get:At,aliases:gt,getSetter:function(e,t,r){var n=gt[t];return n&&n.indexOf(",")<0&&(t=n),t in Mt&&t!==Fe&&(e._gsap.x||At(e,"x"))?r&&ul===r?t==="scale"?gy:my:(ul=r||{})&&(t==="scale"?by:yy):e.style&&!ta(e.style[t])?py:~t.indexOf("-")?vy:da(e,t)},core:{_removeProperty:yi,_getMatrix:ma}};Ve.utils.checkPrefix=Yi;Ve.core.getStyleSaver=Ku;(function(i,e,t,r){var n=Ne(i+","+e+","+t,function(a){Mt[a]=1});Ne(e,function(a){Xe.units[a]="deg",ec[a]=1}),gt[n[13]]=i+","+e,Ne(r,function(a){var s=a.split(":");gt[s[1]]=n[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ne("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(i){Xe.units[i]="px"});Ve.registerPlugin(nc);var Ls=Ve.registerPlugin(nc)||Ve;Ls.core.Tween;var Cy=po,My=kd,Ry=Cy?{}.toString:function(){return"[object "+My(this)+"]"},Py=po,$y=Vs,Ly=Ry;Py||$y(Object.prototype,"toString",Ly,{unsafe:!0});var gl=wd,Dy=Od,zy=xi,By=vo,Ny=By("species"),bl=Array,jy=function(i){var e;return gl(i)&&(e=i.constructor,Dy(e)&&(e===bl||gl(e.prototype))?e=void 0:zy(e)&&(e=e[Ny],e===null&&(e=void 0))),e===void 0?bl:e},Fy=jy,Vy=function(i,e){return new(Fy(i))(e===0?0:e)},Wy=Ad,Hy=Qt,qy=mo,Uy=go,Gy=Ed,Yy=Vy,yl=Hy([].push),Bt=function(i){var e=i===1,t=i===2,r=i===3,n=i===4,a=i===6,s=i===7,l=i===5||a;return function(o,c,u,d){for(var f=Uy(o),p=qy(f),m=Gy(p),h=Wy(c,u),y=0,x=d||Yy,k=e?x(o,m):t||s?x(o,0):void 0,v,S;m>y;y++)if((l||y in p)&&(v=p[y],S=h(v,y,f),i))if(e)k[y]=S;else if(S)switch(i){case 3:return!0;case 5:return v;case 6:return y;case 2:yl(k,v)}else switch(i){case 4:return!1;case 7:yl(k,v)}return a?-1:r||n?n:k}},ga={forEach:Bt(0),map:Bt(1),filter:Bt(2),some:Bt(3),every:Bt(4),find:Bt(5),findIndex:Bt(6),filterReject:Bt(7)},Xy=ga.forEach,Ky=Td,Qy=Ky("forEach"),Zy=Qy?[].forEach:function(e){return Xy(this,e,arguments.length>1?arguments[1]:void 0)},_l=kr,xl=Id,Jy=Cd,rs=Zy,e_=Md,rc=function(i){if(i&&i.forEach!==rs)try{e_(i,"forEach",rs)}catch{i.forEach=rs}};for(var ss in xl)xl[ss]&&rc(_l[ss]&&_l[ss].prototype);rc(Jy);var t_=!!(typeof window<"u"&&window.document&&window.document.createElement),i_=t_;const ba=xr(i_);var sc=kr,n_=Zt,r_=Qt,s_=bo,a_=Rd.trim,Sl=Pd,hn=sc.parseInt,kl=sc.Symbol,wl=kl&&kl.iterator,ac=/^[+-]?0x/i,l_=r_(ac.exec),o_=hn(Sl+"08")!==8||hn(Sl+"0x16")!==22||wl&&!n_(function(){hn(Object(wl))}),u_=o_?function(e,t){var r=a_(s_(e));return hn(r,t>>>0||(l_(ac,r)?16:10))}:hn,c_=Cn,Ol=u_;c_({global:!0,forced:parseInt!==Ol},{parseInt:Ol});var Al=yo,d_=Qt,f_=$d,h_=Zt,as=Ld,p_=Dd,v_=zd,m_=go,g_=mo,Ci=Object.assign,El=Object.defineProperty,b_=d_([].concat),y_=!Ci||h_(function(){if(Al&&Ci({b:1},Ci(El({},"a",{enumerable:!0,get:function(){El(this,"b",{value:3,enumerable:!1})}}),{b:2})).b!==1)return!0;var i={},e={},t=Symbol("assign detection"),r="abcdefghijklmnopqrst";return i[t]=7,r.split("").forEach(function(n){e[n]=n}),Ci({},i)[t]!==7||as(Ci({},e)).join("")!==r})?function(e,t){for(var r=m_(e),n=arguments.length,a=1,s=p_.f,l=v_.f;n>a;)for(var o=g_(arguments[a++]),c=s?b_(as(o),s(o)):as(o),u=c.length,d=0,f;u>d;)f=c[d++],(!Al||f_(l,o,f))&&(r[f]=o[f]);return r}:Ci,__=Cn,Tl=y_;__({target:"Object",stat:!0,arity:2,forced:Object.assign!==Tl},{assign:Tl});var x_=Zt,S_=vo,k_=Bd,w_=S_("species"),O_=function(i){return k_>=51||!x_(function(){var e=[],t=e.constructor={};return t[w_]=function(){return{foo:1}},e[i](Boolean).foo!==1})},A_=Cn,E_=ga.filter,T_=O_,I_=T_("filter");A_({target:"Array",proto:!0,forced:!I_},{filter:function(e){return E_(this,e,arguments.length>1?arguments[1]:void 0)}});var C_=Nd.charAt,M_=bo,lc=Ws,R_=jd,Il=Fd,oc="String Iterator",P_=lc.set,$_=lc.getterFor(oc);R_(String,"String",function(i){P_(this,{type:oc,string:M_(i),index:0})},function(){var e=$_(this),t=e.string,r=e.index,n;return r>=t.length?Il(void 0,!0):(n=C_(t,r),e.index+=n.length,Il(n,!1))});var L_=Zt,uc=!L_(function(){return Object.isExtensible(Object.preventExtensions({}))}),D_=Vs,cc=function(i,e,t){for(var r in e)D_(i,r,e[r],t);return i},dc={exports:{}},fc={},z_=xo,B_=Vd,hc=_o.f,N_=Wd,pc=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],j_=function(i){try{return hc(i)}catch{return N_(pc)}};fc.f=function(e){return pc&&z_(e)==="Window"?j_(e):hc(B_(e))};var F_=Zt,V_=F_(function(){if(typeof ArrayBuffer=="function"){var i=new ArrayBuffer(8);Object.isExtensible(i)&&Object.defineProperty(i,"a",{value:8})}}),W_=Zt,H_=xi,q_=xo,Cl=V_,ir=Object.isExtensible,U_=W_(function(){ir(1)}),G_=U_||Cl?function(e){return!H_(e)||Cl&&q_(e)==="ArrayBuffer"?!1:ir?ir(e):!0}:ir,Y_=Cn,X_=Qt,K_=Hd,Q_=xi,ya=So,Z_=Ud.f,Ml=_o,J_=fc,_a=G_,ex=qd,tx=uc,vc=!1,Rt=ex("meta"),ix=0,xa=function(i){Z_(i,Rt,{value:{objectID:"O"+ix++,weakData:{}}})},nx=function(i,e){if(!Q_(i))return typeof i=="symbol"?i:(typeof i=="string"?"S":"P")+i;if(!ya(i,Rt)){if(!_a(i))return"F";if(!e)return"E";xa(i)}return i[Rt].objectID},rx=function(i,e){if(!ya(i,Rt)){if(!_a(i))return!0;if(!e)return!1;xa(i)}return i[Rt].weakData},sx=function(i){return tx&&vc&&_a(i)&&!ya(i,Rt)&&xa(i),i},ax=function(){lx.enable=function(){},vc=!0;var i=Ml.f,e=X_([].splice),t={};t[Rt]=1,i(t).length&&(Ml.f=function(r){for(var n=i(r),a=0,s=n.length;a<s;a++)if(n[a]===Rt){e(n,a,1);break}return n},Y_({target:"Object",stat:!0,forced:!0},{getOwnPropertyNames:J_.f}))},lx=dc.exports={enable:ax,fastKey:nx,getWeakData:rx,onFreeze:sx};K_[Rt]=!0;var Sa=dc.exports,ox=ko,ux=xi,Rl=Gd,cx=function(i,e,t){var r,n;return Rl&&ox(r=e.constructor)&&r!==t&&ux(n=r.prototype)&&n!==t.prototype&&Rl(i,n),i},dx=Cn,fx=kr,hx=Qt,Pl=Yd,px=Vs,vx=Sa,mx=wo,gx=Oo,bx=ko,yx=Ao,ls=xi,os=Zt,_x=Xd,xx=Kd,Sx=cx,kx=function(i,e,t){var r=i.indexOf("Map")!==-1,n=i.indexOf("Weak")!==-1,a=r?"set":"add",s=fx[i],l=s&&s.prototype,o=s,c={},u=function(x){var k=hx(l[x]);px(l,x,x==="add"?function(S){return k(this,S===0?0:S),this}:x==="delete"?function(v){return n&&!ls(v)?!1:k(this,v===0?0:v)}:x==="get"?function(S){return n&&!ls(S)?void 0:k(this,S===0?0:S)}:x==="has"?function(S){return n&&!ls(S)?!1:k(this,S===0?0:S)}:function(S,_){return k(this,S===0?0:S,_),this})},d=Pl(i,!bx(s)||!(n||l.forEach&&!os(function(){new s().entries().next()})));if(d)o=t.getConstructor(e,i,r,a),vx.enable();else if(Pl(i,!0)){var f=new o,p=f[a](n?{}:-0,1)!==f,m=os(function(){f.has(1)}),h=_x(function(x){new s(x)}),y=!n&&os(function(){for(var x=new s,k=5;k--;)x[a](k,k);return!x.has(-0)});h||(o=e(function(x,k){gx(x,l);var v=Sx(new s,x,o);return yx(k)||mx(k,v[a],{that:v,AS_ENTRIES:r}),v}),o.prototype=l,l.constructor=o),(m||y)&&(u("delete"),u("has"),r&&u("get")),(y||p)&&u(a),n&&l.clear&&delete l.clear}return c[i]=o,dx({global:!0,constructor:!0,forced:o!==s},c),xx(o,i),n||t.setStrong(o,i,r),o},wx=Qt,$l=cc,Vn=Sa.getWeakData,Ox=Oo,Ax=Qd,Ex=Ao,us=xi,Tx=wo,mc=ga,Ll=So,gc=Ws,Ix=gc.set,Cx=gc.getterFor,Mx=mc.find,Rx=mc.findIndex,Px=wx([].splice),$x=0,Wn=function(i){return i.frozen||(i.frozen=new bc)},bc=function(){this.entries=[]},cs=function(i,e){return Mx(i.entries,function(t){return t[0]===e})};bc.prototype={get:function(i){var e=cs(this,i);if(e)return e[1]},has:function(i){return!!cs(this,i)},set:function(i,e){var t=cs(this,i);t?t[1]=e:this.entries.push([i,e])},delete:function(i){var e=Rx(this.entries,function(t){return t[0]===i});return~e&&Px(this.entries,e,1),!!~e}};var Lx={getConstructor:function(i,e,t,r){var n=i(function(o,c){Ox(o,a),Ix(o,{type:e,id:$x++,frozen:null}),Ex(c)||Tx(c,o[r],{that:o,AS_ENTRIES:t})}),a=n.prototype,s=Cx(e),l=function(o,c,u){var d=s(o),f=Vn(Ax(c),!0);return f===!0?Wn(d).set(c,u):f[d.id]=u,o};return $l(a,{delete:function(o){var c=s(this);if(!us(o))return!1;var u=Vn(o);return u===!0?Wn(c).delete(o):u&&Ll(u,c.id)&&delete u[c.id]},has:function(c){var u=s(this);if(!us(c))return!1;var d=Vn(c);return d===!0?Wn(u).has(c):d&&Ll(d,u.id)}}),$l(a,t?{get:function(c){var u=s(this);if(us(c)){var d=Vn(c);if(d===!0)return Wn(u).get(c);if(d)return d[u.id]}},set:function(c,u){return l(this,c,u)}}:{add:function(c){return l(this,c,!0)}}),n}},Dx=uc,Dl=kr,nr=Qt,zl=cc,zx=Sa,Bx=kx,yc=Lx,Hn=xi,qn=Ws.enforce,Nx=Zt,jx=Zd,Pn=Object,Fx=Array.isArray,Un=Pn.isExtensible,_c=Pn.isFrozen,Vx=Pn.isSealed,xc=Pn.freeze,Wx=Pn.seal,Hx=!Dl.ActiveXObject&&"ActiveXObject"in Dl,an,Sc=function(i){return function(){return i(this,arguments.length?arguments[0]:void 0)}},kc=Bx("WeakMap",Sc,yc),Mi=kc.prototype,rr=nr(Mi.set),qx=function(){return Dx&&Nx(function(){var i=xc([]);return rr(new kc,i,1),!_c(i)})};if(jx)if(Hx){an=yc.getConstructor(Sc,"WeakMap",!0),zx.enable();var Bl=nr(Mi.delete),Gn=nr(Mi.has),Nl=nr(Mi.get);zl(Mi,{delete:function(i){if(Hn(i)&&!Un(i)){var e=qn(this);return e.frozen||(e.frozen=new an),Bl(this,i)||e.frozen.delete(i)}return Bl(this,i)},has:function(e){if(Hn(e)&&!Un(e)){var t=qn(this);return t.frozen||(t.frozen=new an),Gn(this,e)||t.frozen.has(e)}return Gn(this,e)},get:function(e){if(Hn(e)&&!Un(e)){var t=qn(this);return t.frozen||(t.frozen=new an),Gn(this,e)?Nl(this,e):t.frozen.get(e)}return Nl(this,e)},set:function(e,t){if(Hn(e)&&!Un(e)){var r=qn(this);r.frozen||(r.frozen=new an),Gn(this,e)?rr(this,e,t):r.frozen.set(e,t)}else rr(this,e,t);return this}})}else qx()&&zl(Mi,{set:function(e,t){var r;return Fx(e)&&(_c(e)?r=xc:Vx(e)&&(r=Wx)),rr(this,e,t),r&&r(e),this}});var wc="Expected a function",jl=0/0,Ux="[object Symbol]",Gx=/^\s+|\s+$/g,Yx=/^[-+]0x[0-9a-f]+$/i,Xx=/^0b[01]+$/i,Kx=/^0o[0-7]+$/i,Qx=parseInt,Zx=typeof it=="object"&&it&&it.Object===Object&&it,Jx=typeof self=="object"&&self&&self.Object===Object&&self,e1=Zx||Jx||Function("return this")(),t1=Object.prototype,i1=t1.toString,n1=Math.max,r1=Math.min,ds=function(){return e1.Date.now()};function s1(i,e,t){var r,n,a,s,l,o,c=0,u=!1,d=!1,f=!0;if(typeof i!="function")throw new TypeError(wc);e=Fl(e)||0,mr(t)&&(u=!!t.leading,d="maxWait"in t,a=d?n1(Fl(t.maxWait)||0,e):a,f="trailing"in t?!!t.trailing:f);function p(b){var E=r,O=n;return r=n=void 0,c=b,s=i.apply(O,E),s}function m(b){return c=b,l=setTimeout(x,e),u?p(b):s}function h(b){var E=b-o,O=b-c,T=e-E;return d?r1(T,a-O):T}function y(b){var E=b-o,O=b-c;return o===void 0||E>=e||E<0||d&&O>=a}function x(){var b=ds();if(y(b))return k(b);l=setTimeout(x,h(b))}function k(b){return l=void 0,f&&r?p(b):(r=n=void 0,s)}function v(){l!==void 0&&clearTimeout(l),c=0,r=o=n=l=void 0}function S(){return l===void 0?s:k(ds())}function _(){var b=ds(),E=y(b);if(r=arguments,n=this,o=b,E){if(l===void 0)return m(o);if(d)return l=setTimeout(x,e),p(o)}return l===void 0&&(l=setTimeout(x,e)),s}return _.cancel=v,_.flush=S,_}function a1(i,e,t){var r=!0,n=!0;if(typeof i!="function")throw new TypeError(wc);return mr(t)&&(r="leading"in t?!!t.leading:r,n="trailing"in t?!!t.trailing:n),s1(i,e,{leading:r,maxWait:e,trailing:n})}function mr(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function l1(i){return!!i&&typeof i=="object"}function o1(i){return typeof i=="symbol"||l1(i)&&i1.call(i)==Ux}function Fl(i){if(typeof i=="number")return i;if(o1(i))return jl;if(mr(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=mr(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(Gx,"");var t=Xx.test(i);return t||Kx.test(i)?Qx(i.slice(2),t?2:8):Yx.test(i)?jl:+i}var u1=a1;const Vl=xr(u1);var c1="Expected a function",Wl=0/0,d1="[object Symbol]",f1=/^\s+|\s+$/g,h1=/^[-+]0x[0-9a-f]+$/i,p1=/^0b[01]+$/i,v1=/^0o[0-7]+$/i,m1=parseInt,g1=typeof it=="object"&&it&&it.Object===Object&&it,b1=typeof self=="object"&&self&&self.Object===Object&&self,y1=g1||b1||Function("return this")(),_1=Object.prototype,x1=_1.toString,S1=Math.max,k1=Math.min,fs=function(){return y1.Date.now()};function w1(i,e,t){var r,n,a,s,l,o,c=0,u=!1,d=!1,f=!0;if(typeof i!="function")throw new TypeError(c1);e=Hl(e)||0,Ds(t)&&(u=!!t.leading,d="maxWait"in t,a=d?S1(Hl(t.maxWait)||0,e):a,f="trailing"in t?!!t.trailing:f);function p(b){var E=r,O=n;return r=n=void 0,c=b,s=i.apply(O,E),s}function m(b){return c=b,l=setTimeout(x,e),u?p(b):s}function h(b){var E=b-o,O=b-c,T=e-E;return d?k1(T,a-O):T}function y(b){var E=b-o,O=b-c;return o===void 0||E>=e||E<0||d&&O>=a}function x(){var b=fs();if(y(b))return k(b);l=setTimeout(x,h(b))}function k(b){return l=void 0,f&&r?p(b):(r=n=void 0,s)}function v(){l!==void 0&&clearTimeout(l),c=0,r=o=n=l=void 0}function S(){return l===void 0?s:k(fs())}function _(){var b=fs(),E=y(b);if(r=arguments,n=this,o=b,E){if(l===void 0)return m(o);if(d)return l=setTimeout(x,e),p(o)}return l===void 0&&(l=setTimeout(x,e)),s}return _.cancel=v,_.flush=S,_}function Ds(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}function O1(i){return!!i&&typeof i=="object"}function A1(i){return typeof i=="symbol"||O1(i)&&x1.call(i)==d1}function Hl(i){if(typeof i=="number")return i;if(A1(i))return Wl;if(Ds(i)){var e=typeof i.valueOf=="function"?i.valueOf():i;i=Ds(e)?e+"":e}if(typeof i!="string")return i===0?i:+i;i=i.replace(f1,"");var t=p1.test(i);return t||v1.test(i)?m1(i.slice(2),t?2:8):h1.test(i)?Wl:+i}var E1=w1;const ql=xr(E1);var T1="Expected a function",Oc="__lodash_hash_undefined__",I1="[object Function]",C1="[object GeneratorFunction]",M1=/[\\^$.*+?()[\]{}|]/g,R1=/^\[object .+?Constructor\]$/,P1=typeof it=="object"&&it&&it.Object===Object&&it,$1=typeof self=="object"&&self&&self.Object===Object&&self,Ac=P1||$1||Function("return this")();function L1(i,e){return i==null?void 0:i[e]}function D1(i){var e=!1;if(i!=null&&typeof i.toString!="function")try{e=!!(i+"")}catch{}return e}var z1=Array.prototype,B1=Function.prototype,Ec=Object.prototype,hs=Ac["__core-js_shared__"],Ul=function(){var i=/[^.]+$/.exec(hs&&hs.keys&&hs.keys.IE_PROTO||"");return i?"Symbol(src)_1."+i:""}(),Tc=B1.toString,ka=Ec.hasOwnProperty,N1=Ec.toString,j1=RegExp("^"+Tc.call(ka).replace(M1,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),F1=z1.splice,V1=Ic(Ac,"Map"),wn=Ic(Object,"create");function _i(i){var e=-1,t=i?i.length:0;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}function W1(){this.__data__=wn?wn(null):{}}function H1(i){return this.has(i)&&delete this.__data__[i]}function q1(i){var e=this.__data__;if(wn){var t=e[i];return t===Oc?void 0:t}return ka.call(e,i)?e[i]:void 0}function U1(i){var e=this.__data__;return wn?e[i]!==void 0:ka.call(e,i)}function G1(i,e){var t=this.__data__;return t[i]=wn&&e===void 0?Oc:e,this}_i.prototype.clear=W1;_i.prototype.delete=H1;_i.prototype.get=q1;_i.prototype.has=U1;_i.prototype.set=G1;function Ki(i){var e=-1,t=i?i.length:0;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}function Y1(){this.__data__=[]}function X1(i){var e=this.__data__,t=$r(e,i);if(t<0)return!1;var r=e.length-1;return t==r?e.pop():F1.call(e,t,1),!0}function K1(i){var e=this.__data__,t=$r(e,i);return t<0?void 0:e[t][1]}function Q1(i){return $r(this.__data__,i)>-1}function Z1(i,e){var t=this.__data__,r=$r(t,i);return r<0?t.push([i,e]):t[r][1]=e,this}Ki.prototype.clear=Y1;Ki.prototype.delete=X1;Ki.prototype.get=K1;Ki.prototype.has=Q1;Ki.prototype.set=Z1;function ki(i){var e=-1,t=i?i.length:0;for(this.clear();++e<t;){var r=i[e];this.set(r[0],r[1])}}function J1(){this.__data__={hash:new _i,map:new(V1||Ki),string:new _i}}function eS(i){return Lr(this,i).delete(i)}function tS(i){return Lr(this,i).get(i)}function iS(i){return Lr(this,i).has(i)}function nS(i,e){return Lr(this,i).set(i,e),this}ki.prototype.clear=J1;ki.prototype.delete=eS;ki.prototype.get=tS;ki.prototype.has=iS;ki.prototype.set=nS;function $r(i,e){for(var t=i.length;t--;)if(oS(i[t][0],e))return t;return-1}function rS(i){if(!Cc(i)||aS(i))return!1;var e=uS(i)||D1(i)?j1:R1;return e.test(lS(i))}function Lr(i,e){var t=i.__data__;return sS(e)?t[typeof e=="string"?"string":"hash"]:t.map}function Ic(i,e){var t=L1(i,e);return rS(t)?t:void 0}function sS(i){var e=typeof i;return e=="string"||e=="number"||e=="symbol"||e=="boolean"?i!=="__proto__":i===null}function aS(i){return!!Ul&&Ul in i}function lS(i){if(i!=null){try{return Tc.call(i)}catch{}try{return i+""}catch{}}return""}function wa(i,e){if(typeof i!="function"||e&&typeof e!="function")throw new TypeError(T1);var t=function(){var r=arguments,n=e?e.apply(this,r):r[0],a=t.cache;if(a.has(n))return a.get(n);var s=i.apply(this,r);return t.cache=a.set(n,s),s};return t.cache=new(wa.Cache||ki),t}wa.Cache=ki;function oS(i,e){return i===e||i!==i&&e!==e}function uS(i){var e=Cc(i)?N1.call(i):"";return e==I1||e==C1}function Cc(i){var e=typeof i;return!!i&&(e=="object"||e=="function")}var cS=wa;const dS=xr(cS);var pi=[],fS=function(){return pi.some(function(i){return i.activeTargets.length>0})},hS=function(){return pi.some(function(i){return i.skippedTargets.length>0})},Gl="ResizeObserver loop completed with undelivered notifications.",pS=function(){var i;typeof ErrorEvent=="function"?i=new ErrorEvent("error",{message:Gl}):(i=document.createEvent("Event"),i.initEvent("error",!1,!1),i.message=Gl),window.dispatchEvent(i)},On;(function(i){i.BORDER_BOX="border-box",i.CONTENT_BOX="content-box",i.DEVICE_PIXEL_CONTENT_BOX="device-pixel-content-box"})(On||(On={}));var vi=function(i){return Object.freeze(i)},vS=function(){function i(e,t){this.inlineSize=e,this.blockSize=t,vi(this)}return i}(),Mc=function(){function i(e,t,r,n){return this.x=e,this.y=t,this.width=r,this.height=n,this.top=this.y,this.left=this.x,this.bottom=this.top+this.height,this.right=this.left+this.width,vi(this)}return i.prototype.toJSON=function(){var e=this,t=e.x,r=e.y,n=e.top,a=e.right,s=e.bottom,l=e.left,o=e.width,c=e.height;return{x:t,y:r,top:n,right:a,bottom:s,left:l,width:o,height:c}},i.fromRect=function(e){return new i(e.x,e.y,e.width,e.height)},i}(),Oa=function(i){return i instanceof SVGElement&&"getBBox"in i},Rc=function(i){if(Oa(i)){var e=i.getBBox(),t=e.width,r=e.height;return!t&&!r}var n=i,a=n.offsetWidth,s=n.offsetHeight;return!(a||s||i.getClientRects().length)},Yl=function(i){var e;if(i instanceof Element)return!0;var t=(e=i==null?void 0:i.ownerDocument)===null||e===void 0?void 0:e.defaultView;return!!(t&&i instanceof t.Element)},mS=function(i){switch(i.tagName){case"INPUT":if(i.type!=="image")break;case"VIDEO":case"AUDIO":case"EMBED":case"OBJECT":case"CANVAS":case"IFRAME":case"IMG":return!0}return!1},pn=typeof window<"u"?window:{},Yn=new WeakMap,Xl=/auto|scroll/,gS=/^tb|vertical/,bS=/msie|trident/i.test(pn.navigator&&pn.navigator.userAgent),ht=function(i){return parseFloat(i||"0")},Bi=function(i,e,t){return i===void 0&&(i=0),e===void 0&&(e=0),t===void 0&&(t=!1),new vS((t?e:i)||0,(t?i:e)||0)},Kl=vi({devicePixelContentBoxSize:Bi(),borderBoxSize:Bi(),contentBoxSize:Bi(),contentRect:new Mc(0,0,0,0)}),Pc=function(i,e){if(e===void 0&&(e=!1),Yn.has(i)&&!e)return Yn.get(i);if(Rc(i))return Yn.set(i,Kl),Kl;var t=getComputedStyle(i),r=Oa(i)&&i.ownerSVGElement&&i.getBBox(),n=!bS&&t.boxSizing==="border-box",a=gS.test(t.writingMode||""),s=!r&&Xl.test(t.overflowY||""),l=!r&&Xl.test(t.overflowX||""),o=r?0:ht(t.paddingTop),c=r?0:ht(t.paddingRight),u=r?0:ht(t.paddingBottom),d=r?0:ht(t.paddingLeft),f=r?0:ht(t.borderTopWidth),p=r?0:ht(t.borderRightWidth),m=r?0:ht(t.borderBottomWidth),h=r?0:ht(t.borderLeftWidth),y=d+c,x=o+u,k=h+p,v=f+m,S=l?i.offsetHeight-v-i.clientHeight:0,_=s?i.offsetWidth-k-i.clientWidth:0,b=n?y+k:0,E=n?x+v:0,O=r?r.width:ht(t.width)-b-_,T=r?r.height:ht(t.height)-E-S,C=O+y+_+k,R=T+x+S+v,M=vi({devicePixelContentBoxSize:Bi(Math.round(O*devicePixelRatio),Math.round(T*devicePixelRatio),a),borderBoxSize:Bi(C,R,a),contentBoxSize:Bi(O,T,a),contentRect:new Mc(d,o,O,T)});return Yn.set(i,M),M},$c=function(i,e,t){var r=Pc(i,t),n=r.borderBoxSize,a=r.contentBoxSize,s=r.devicePixelContentBoxSize;switch(e){case On.DEVICE_PIXEL_CONTENT_BOX:return s;case On.BORDER_BOX:return n;default:return a}},yS=function(){function i(e){var t=Pc(e);this.target=e,this.contentRect=t.contentRect,this.borderBoxSize=vi([t.borderBoxSize]),this.contentBoxSize=vi([t.contentBoxSize]),this.devicePixelContentBoxSize=vi([t.devicePixelContentBoxSize])}return i}(),Lc=function(i){if(Rc(i))return 1/0;for(var e=0,t=i.parentNode;t;)e+=1,t=t.parentNode;return e},_S=function(){var i=1/0,e=[];pi.forEach(function(s){if(s.activeTargets.length!==0){var l=[];s.activeTargets.forEach(function(c){var u=new yS(c.target),d=Lc(c.target);l.push(u),c.lastReportedSize=$c(c.target,c.observedBox),d<i&&(i=d)}),e.push(function(){s.callback.call(s.observer,l,s.observer)}),s.activeTargets.splice(0,s.activeTargets.length)}});for(var t=0,r=e;t<r.length;t++){var n=r[t];n()}return i},Ql=function(i){pi.forEach(function(t){t.activeTargets.splice(0,t.activeTargets.length),t.skippedTargets.splice(0,t.skippedTargets.length),t.observationTargets.forEach(function(n){n.isActive()&&(Lc(n.target)>i?t.activeTargets.push(n):t.skippedTargets.push(n))})})},xS=function(){var i=0;for(Ql(i);fS();)i=_S(),Ql(i);return hS()&&pS(),i>0},ps,Dc=[],SS=function(){return Dc.splice(0).forEach(function(i){return i()})},kS=function(i){if(!ps){var e=0,t=document.createTextNode(""),r={characterData:!0};new MutationObserver(function(){return SS()}).observe(t,r),ps=function(){t.textContent="".concat(e?e--:e++)}}Dc.push(i),ps()},wS=function(i){kS(function(){requestAnimationFrame(i)})},sr=0,OS=function(){return!!sr},AS=250,ES={attributes:!0,characterData:!0,childList:!0,subtree:!0},Zl=["resize","load","transitionend","animationend","animationstart","animationiteration","keyup","keydown","mouseup","mousedown","mouseover","mouseout","blur","focus"],Jl=function(i){return i===void 0&&(i=0),Date.now()+i},vs=!1,TS=function(){function i(){var e=this;this.stopped=!0,this.listener=function(){return e.schedule()}}return i.prototype.run=function(e){var t=this;if(e===void 0&&(e=AS),!vs){vs=!0;var r=Jl(e);wS(function(){var n=!1;try{n=xS()}finally{if(vs=!1,e=r-Jl(),!OS())return;n?t.run(1e3):e>0?t.run(e):t.start()}})}},i.prototype.schedule=function(){this.stop(),this.run()},i.prototype.observe=function(){var e=this,t=function(){return e.observer&&e.observer.observe(document.body,ES)};document.body?t():pn.addEventListener("DOMContentLoaded",t)},i.prototype.start=function(){var e=this;this.stopped&&(this.stopped=!1,this.observer=new MutationObserver(this.listener),this.observe(),Zl.forEach(function(t){return pn.addEventListener(t,e.listener,!0)}))},i.prototype.stop=function(){var e=this;this.stopped||(this.observer&&this.observer.disconnect(),Zl.forEach(function(t){return pn.removeEventListener(t,e.listener,!0)}),this.stopped=!0)},i}(),zs=new TS,eo=function(i){!sr&&i>0&&zs.start(),sr+=i,!sr&&zs.stop()},IS=function(i){return!Oa(i)&&!mS(i)&&getComputedStyle(i).display==="inline"},CS=function(){function i(e,t){this.target=e,this.observedBox=t||On.CONTENT_BOX,this.lastReportedSize={inlineSize:0,blockSize:0}}return i.prototype.isActive=function(){var e=$c(this.target,this.observedBox,!0);return IS(this.target)&&(this.lastReportedSize=e),this.lastReportedSize.inlineSize!==e.inlineSize||this.lastReportedSize.blockSize!==e.blockSize},i}(),MS=function(){function i(e,t){this.activeTargets=[],this.skippedTargets=[],this.observationTargets=[],this.observer=e,this.callback=t}return i}(),Xn=new WeakMap,to=function(i,e){for(var t=0;t<i.length;t+=1)if(i[t].target===e)return t;return-1},Kn=function(){function i(){}return i.connect=function(e,t){var r=new MS(e,t);Xn.set(e,r)},i.observe=function(e,t,r){var n=Xn.get(e),a=n.observationTargets.length===0;to(n.observationTargets,t)<0&&(a&&pi.push(n),n.observationTargets.push(new CS(t,r&&r.box)),eo(1),zs.schedule())},i.unobserve=function(e,t){var r=Xn.get(e),n=to(r.observationTargets,t),a=r.observationTargets.length===1;n>=0&&(a&&pi.splice(pi.indexOf(r),1),r.observationTargets.splice(n,1),eo(-1))},i.disconnect=function(e){var t=this,r=Xn.get(e);r.observationTargets.slice().forEach(function(n){return t.unobserve(e,n.target)}),r.activeTargets.splice(0,r.activeTargets.length)},i}(),RS=function(){function i(e){if(arguments.length===0)throw new TypeError("Failed to construct 'ResizeObserver': 1 argument required, but only 0 present.");if(typeof e!="function")throw new TypeError("Failed to construct 'ResizeObserver': The callback provided as parameter 1 is not a function.");Kn.connect(this,e)}return i.prototype.observe=function(e,t){if(arguments.length===0)throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yl(e))throw new TypeError("Failed to execute 'observe' on 'ResizeObserver': parameter 1 is not of type 'Element");Kn.observe(this,e,t)},i.prototype.unobserve=function(e){if(arguments.length===0)throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': 1 argument required, but only 0 present.");if(!Yl(e))throw new TypeError("Failed to execute 'unobserve' on 'ResizeObserver': parameter 1 is not of type 'Element");Kn.unobserve(this,e)},i.prototype.disconnect=function(){Kn.disconnect(this)},i.toString=function(){return"function ResizeObserver () { [polyfill code] }"},i}(),PS=yo,$S=Jd.EXISTS,zc=Qt,LS=ef,Bc=Function.prototype,DS=zc(Bc.toString),Nc=/function\b(?:\s|\/\*[\S\s]*?\*\/|\/\/[^\n\r]*[\n\r]+)*([^\s(/]*)/,zS=zc(Nc.exec),BS="name";PS&&!$S&&LS(Bc,BS,{configurable:!0,get:function(){try{return zS(Nc,DS(this))[1]}catch{return""}}});var gr=function(e){var t=Array.prototype.reduce.call(e,function(r,n){var a=n.name.match(/data-simplebar-(.+)/);if(a){var s=a[1].replace(/\W+(.)/g,function(l,o){return o.toUpperCase()});switch(n.value){case"true":r[s]=!0;break;case"false":r[s]=!1;break;case void 0:r[s]=!0;break;default:r[s]=n.value}}return r},{});return t};function Nt(i){return!i||!i.ownerDocument||!i.ownerDocument.defaultView?window:i.ownerDocument.defaultView}function ar(i){return!i||!i.ownerDocument?document:i.ownerDocument}var Ri=null,io=null;ba&&window.addEventListener("resize",function(){io!==window.devicePixelRatio&&(io=window.devicePixelRatio,Ri=null)});function no(i){if(Ri===null){var e=ar(i);if(typeof e>"u")return Ri=0,Ri;var t=e.body,r=e.createElement("div");r.classList.add("simplebar-hide-scrollbar"),t.appendChild(r);var n=r.getBoundingClientRect().right;t.removeChild(r),Ri=n}return Ri}var we=function(){function i(t,r){var n=this;this.onScroll=function(){var a=Nt(n.el);n.scrollXTicking||(a.requestAnimationFrame(n.scrollX),n.scrollXTicking=!0),n.scrollYTicking||(a.requestAnimationFrame(n.scrollY),n.scrollYTicking=!0)},this.scrollX=function(){n.axis.x.isOverflowing&&(n.showScrollbar("x"),n.positionScrollbar("x")),n.scrollXTicking=!1},this.scrollY=function(){n.axis.y.isOverflowing&&(n.showScrollbar("y"),n.positionScrollbar("y")),n.scrollYTicking=!1},this.onMouseEnter=function(){n.showScrollbar("x"),n.showScrollbar("y")},this.onMouseMove=function(a){n.mouseX=a.clientX,n.mouseY=a.clientY,(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseMoveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseMoveForAxis("y")},this.onMouseLeave=function(){n.onMouseMove.cancel(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&n.onMouseLeaveForAxis("x"),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&n.onMouseLeaveForAxis("y"),n.mouseX=-1,n.mouseY=-1},this.onWindowResize=function(){n.scrollbarWidth=n.getScrollbarWidth(),n.hideNativeScrollbar()},this.hideScrollbars=function(){n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.track.rect)||(n.axis.y.scrollbar.el.classList.remove(n.classNames.visible),n.axis.y.isVisible=!1),n.isWithinBounds(n.axis.x.track.rect)||(n.axis.x.scrollbar.el.classList.remove(n.classNames.visible),n.axis.x.isVisible=!1)},this.onPointerEvent=function(a){var s,l;n.axis.x.track.rect=n.axis.x.track.el.getBoundingClientRect(),n.axis.y.track.rect=n.axis.y.track.el.getBoundingClientRect(),(n.axis.x.isOverflowing||n.axis.x.forceVisible)&&(s=n.isWithinBounds(n.axis.x.track.rect)),(n.axis.y.isOverflowing||n.axis.y.forceVisible)&&(l=n.isWithinBounds(n.axis.y.track.rect)),(s||l)&&(a.preventDefault(),a.stopPropagation(),a.type==="mousedown"&&(s&&(n.axis.x.scrollbar.rect=n.axis.x.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.x.scrollbar.rect)?n.onDragStart(a,"x"):n.onTrackClick(a,"x")),l&&(n.axis.y.scrollbar.rect=n.axis.y.scrollbar.el.getBoundingClientRect(),n.isWithinBounds(n.axis.y.scrollbar.rect)?n.onDragStart(a,"y"):n.onTrackClick(a,"y"))))},this.drag=function(a){var s,l=n.axis[n.draggedAxis].track,o=l.rect[n.axis[n.draggedAxis].sizeAttr],c=n.axis[n.draggedAxis].scrollbar,u=n.contentWrapperEl[n.axis[n.draggedAxis].scrollSizeAttr],d=parseInt(n.elStyles[n.axis[n.draggedAxis].sizeAttr],10);a.preventDefault(),a.stopPropagation(),n.draggedAxis==="y"?s=a.pageY:s=a.pageX;var f=s-l.rect[n.axis[n.draggedAxis].offsetAttr]-n.axis[n.draggedAxis].dragOffset,p=f/(o-c.size),m=p*(u-d);n.draggedAxis==="x"&&(m=n.isRtl&&i.getRtlHelpers().isRtlScrollbarInverted?m-(o+c.size):m,m=n.isRtl&&i.getRtlHelpers().isRtlScrollingInverted?-m:m),n.contentWrapperEl[n.axis[n.draggedAxis].scrollOffsetAttr]=m},this.onEndDrag=function(a){var s=ar(n.el),l=Nt(n.el);a.preventDefault(),a.stopPropagation(),n.el.classList.remove(n.classNames.dragging),s.removeEventListener("mousemove",n.drag,!0),s.removeEventListener("mouseup",n.onEndDrag,!0),n.removePreventClickId=l.setTimeout(function(){s.removeEventListener("click",n.preventClick,!0),s.removeEventListener("dblclick",n.preventClick,!0),n.removePreventClickId=null})},this.preventClick=function(a){a.preventDefault(),a.stopPropagation()},this.el=t,this.minScrollbarWidth=20,this.options=Object.assign({},i.defaultOptions,r),this.classNames=Object.assign({},i.defaultOptions.classNames,this.options.classNames),this.axis={x:{scrollOffsetAttr:"scrollLeft",sizeAttr:"width",scrollSizeAttr:"scrollWidth",offsetSizeAttr:"offsetWidth",offsetAttr:"left",overflowAttr:"overflowX",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}},y:{scrollOffsetAttr:"scrollTop",sizeAttr:"height",scrollSizeAttr:"scrollHeight",offsetSizeAttr:"offsetHeight",offsetAttr:"top",overflowAttr:"overflowY",dragOffset:0,isOverflowing:!0,isVisible:!1,forceVisible:!1,track:{},scrollbar:{}}},this.removePreventClickId=null,!i.instances.has(this.el)&&(this.recalculate=Vl(this.recalculate.bind(this),64),this.onMouseMove=Vl(this.onMouseMove.bind(this),64),this.hideScrollbars=ql(this.hideScrollbars.bind(this),this.options.timeout),this.onWindowResize=ql(this.onWindowResize.bind(this),64,{leading:!0}),i.getRtlHelpers=dS(i.getRtlHelpers),this.init())}i.getRtlHelpers=function(){var r=document.createElement("div");r.innerHTML='<div class="hs-dummy-scrollbar-size"><div style="height: 200%; width: 200%; margin: 10px 0;"></div></div>';var n=r.firstElementChild;document.body.appendChild(n);var a=n.firstElementChild;n.scrollLeft=0;var s=i.getOffset(n),l=i.getOffset(a);n.scrollLeft=999;var o=i.getOffset(a);return{isRtlScrollingInverted:s.left!==l.left&&l.left-o.left!==0,isRtlScrollbarInverted:s.left!==l.left}},i.getOffset=function(r){var n=r.getBoundingClientRect(),a=ar(r),s=Nt(r);return{top:n.top+(s.pageYOffset||a.documentElement.scrollTop),left:n.left+(s.pageXOffset||a.documentElement.scrollLeft)}};var e=i.prototype;return e.init=function(){i.instances.set(this.el,this),ba&&(this.initDOM(),this.setAccessibilityAttributes(),this.scrollbarWidth=this.getScrollbarWidth(),this.recalculate(),this.initListeners())},e.initDOM=function(){var r=this;if(Array.prototype.filter.call(this.el.children,function(s){return s.classList.contains(r.classNames.wrapper)}).length)this.wrapperEl=this.el.querySelector("."+this.classNames.wrapper),this.contentWrapperEl=this.options.scrollableNode||this.el.querySelector("."+this.classNames.contentWrapper),this.contentEl=this.options.contentNode||this.el.querySelector("."+this.classNames.contentEl),this.offsetEl=this.el.querySelector("."+this.classNames.offset),this.maskEl=this.el.querySelector("."+this.classNames.mask),this.placeholderEl=this.findChild(this.wrapperEl,"."+this.classNames.placeholder),this.heightAutoObserverWrapperEl=this.el.querySelector("."+this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl=this.el.querySelector("."+this.classNames.heightAutoObserverEl),this.axis.x.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.horizontal),this.axis.y.track.el=this.findChild(this.el,"."+this.classNames.track+"."+this.classNames.vertical);else{for(this.wrapperEl=document.createElement("div"),this.contentWrapperEl=document.createElement("div"),this.offsetEl=document.createElement("div"),this.maskEl=document.createElement("div"),this.contentEl=document.createElement("div"),this.placeholderEl=document.createElement("div"),this.heightAutoObserverWrapperEl=document.createElement("div"),this.heightAutoObserverEl=document.createElement("div"),this.wrapperEl.classList.add(this.classNames.wrapper),this.contentWrapperEl.classList.add(this.classNames.contentWrapper),this.offsetEl.classList.add(this.classNames.offset),this.maskEl.classList.add(this.classNames.mask),this.contentEl.classList.add(this.classNames.contentEl),this.placeholderEl.classList.add(this.classNames.placeholder),this.heightAutoObserverWrapperEl.classList.add(this.classNames.heightAutoObserverWrapperEl),this.heightAutoObserverEl.classList.add(this.classNames.heightAutoObserverEl);this.el.firstChild;)this.contentEl.appendChild(this.el.firstChild);this.contentWrapperEl.appendChild(this.contentEl),this.offsetEl.appendChild(this.contentWrapperEl),this.maskEl.appendChild(this.offsetEl),this.heightAutoObserverWrapperEl.appendChild(this.heightAutoObserverEl),this.wrapperEl.appendChild(this.heightAutoObserverWrapperEl),this.wrapperEl.appendChild(this.maskEl),this.wrapperEl.appendChild(this.placeholderEl),this.el.appendChild(this.wrapperEl)}if(!this.axis.x.track.el||!this.axis.y.track.el){var n=document.createElement("div"),a=document.createElement("div");n.classList.add(this.classNames.track),a.classList.add(this.classNames.scrollbar),n.appendChild(a),this.axis.x.track.el=n.cloneNode(!0),this.axis.x.track.el.classList.add(this.classNames.horizontal),this.axis.y.track.el=n.cloneNode(!0),this.axis.y.track.el.classList.add(this.classNames.vertical),this.el.appendChild(this.axis.x.track.el),this.el.appendChild(this.axis.y.track.el)}this.axis.x.scrollbar.el=this.axis.x.track.el.querySelector("."+this.classNames.scrollbar),this.axis.y.scrollbar.el=this.axis.y.track.el.querySelector("."+this.classNames.scrollbar),this.options.autoHide||(this.axis.x.scrollbar.el.classList.add(this.classNames.visible),this.axis.y.scrollbar.el.classList.add(this.classNames.visible)),this.el.setAttribute("data-simplebar","init")},e.setAccessibilityAttributes=function(){var r=this.options.ariaLabel||"scrollable content";this.contentWrapperEl.setAttribute("tabindex","0"),this.contentWrapperEl.setAttribute("role","region"),this.contentWrapperEl.setAttribute("aria-label",r)},e.initListeners=function(){var r=this,n=Nt(this.el);this.options.autoHide&&this.el.addEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(l){r.el.addEventListener(l,r.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(l){r.el.addEventListener(l,r.onPointerEvent,{capture:!0,passive:!0})}),this.el.addEventListener("mousemove",this.onMouseMove),this.el.addEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl.addEventListener("scroll",this.onScroll),n.addEventListener("resize",this.onWindowResize);var a=!1,s=n.ResizeObserver||RS;this.resizeObserver=new s(function(){a&&r.recalculate()}),this.resizeObserver.observe(this.el),this.resizeObserver.observe(this.contentEl),n.requestAnimationFrame(function(){a=!0}),this.mutationObserver=new n.MutationObserver(this.recalculate),this.mutationObserver.observe(this.contentEl,{childList:!0,subtree:!0,characterData:!0})},e.recalculate=function(){var r=Nt(this.el);this.elStyles=r.getComputedStyle(this.el),this.isRtl=this.elStyles.direction==="rtl";var n=this.heightAutoObserverEl.offsetHeight<=1,a=this.heightAutoObserverEl.offsetWidth<=1,s=this.contentEl.offsetWidth,l=this.contentWrapperEl.offsetWidth,o=this.elStyles.overflowX,c=this.elStyles.overflowY;this.contentEl.style.padding=this.elStyles.paddingTop+" "+this.elStyles.paddingRight+" "+this.elStyles.paddingBottom+" "+this.elStyles.paddingLeft,this.wrapperEl.style.margin="-"+this.elStyles.paddingTop+" -"+this.elStyles.paddingRight+" -"+this.elStyles.paddingBottom+" -"+this.elStyles.paddingLeft;var u=this.contentEl.scrollHeight,d=this.contentEl.scrollWidth;this.contentWrapperEl.style.height=n?"auto":"100%",this.placeholderEl.style.width=a?s+"px":"auto",this.placeholderEl.style.height=u+"px";var f=this.contentWrapperEl.offsetHeight;this.axis.x.isOverflowing=d>s,this.axis.y.isOverflowing=u>f,this.axis.x.isOverflowing=o==="hidden"?!1:this.axis.x.isOverflowing,this.axis.y.isOverflowing=c==="hidden"?!1:this.axis.y.isOverflowing,this.axis.x.forceVisible=this.options.forceVisible==="x"||this.options.forceVisible===!0,this.axis.y.forceVisible=this.options.forceVisible==="y"||this.options.forceVisible===!0,this.hideNativeScrollbar();var p=this.axis.x.isOverflowing?this.scrollbarWidth:0,m=this.axis.y.isOverflowing?this.scrollbarWidth:0;this.axis.x.isOverflowing=this.axis.x.isOverflowing&&d>l-m,this.axis.y.isOverflowing=this.axis.y.isOverflowing&&u>f-p,this.axis.x.scrollbar.size=this.getScrollbarSize("x"),this.axis.y.scrollbar.size=this.getScrollbarSize("y"),this.axis.x.scrollbar.el.style.width=this.axis.x.scrollbar.size+"px",this.axis.y.scrollbar.el.style.height=this.axis.y.scrollbar.size+"px",this.positionScrollbar("x"),this.positionScrollbar("y"),this.toggleTrackVisibility("x"),this.toggleTrackVisibility("y")},e.getScrollbarSize=function(r){if(r===void 0&&(r="y"),!this.axis[r].isOverflowing)return 0;var n=this.contentEl[this.axis[r].scrollSizeAttr],a=this.axis[r].track.el[this.axis[r].offsetSizeAttr],s,l=a/n;return s=Math.max(~~(l*a),this.options.scrollbarMinSize),this.options.scrollbarMaxSize&&(s=Math.min(s,this.options.scrollbarMaxSize)),s},e.positionScrollbar=function(r){if(r===void 0&&(r="y"),!!this.axis[r].isOverflowing){var n=this.contentWrapperEl[this.axis[r].scrollSizeAttr],a=this.axis[r].track.el[this.axis[r].offsetSizeAttr],s=parseInt(this.elStyles[this.axis[r].sizeAttr],10),l=this.axis[r].scrollbar,o=this.contentWrapperEl[this.axis[r].scrollOffsetAttr];o=r==="x"&&this.isRtl&&i.getRtlHelpers().isRtlScrollingInverted?-o:o;var c=o/(n-s),u=~~((a-l.size)*c);u=r==="x"&&this.isRtl&&i.getRtlHelpers().isRtlScrollbarInverted?u+(a-l.size):u,l.el.style.transform=r==="x"?"translate3d("+u+"px, 0, 0)":"translate3d(0, "+u+"px, 0)"}},e.toggleTrackVisibility=function(r){r===void 0&&(r="y");var n=this.axis[r].track.el,a=this.axis[r].scrollbar.el;this.axis[r].isOverflowing||this.axis[r].forceVisible?(n.style.visibility="visible",this.contentWrapperEl.style[this.axis[r].overflowAttr]="scroll"):(n.style.visibility="hidden",this.contentWrapperEl.style[this.axis[r].overflowAttr]="hidden"),this.axis[r].isOverflowing?a.style.display="block":a.style.display="none"},e.hideNativeScrollbar=function(){this.offsetEl.style[this.isRtl?"left":"right"]=this.axis.y.isOverflowing||this.axis.y.forceVisible?"-"+this.scrollbarWidth+"px":0,this.offsetEl.style.bottom=this.axis.x.isOverflowing||this.axis.x.forceVisible?"-"+this.scrollbarWidth+"px":0},e.onMouseMoveForAxis=function(r){r===void 0&&(r="y"),this.axis[r].track.rect=this.axis[r].track.el.getBoundingClientRect(),this.axis[r].scrollbar.rect=this.axis[r].scrollbar.el.getBoundingClientRect();var n=this.isWithinBounds(this.axis[r].scrollbar.rect);n?this.axis[r].scrollbar.el.classList.add(this.classNames.hover):this.axis[r].scrollbar.el.classList.remove(this.classNames.hover),this.isWithinBounds(this.axis[r].track.rect)?(this.showScrollbar(r),this.axis[r].track.el.classList.add(this.classNames.hover)):this.axis[r].track.el.classList.remove(this.classNames.hover)},e.onMouseLeaveForAxis=function(r){r===void 0&&(r="y"),this.axis[r].track.el.classList.remove(this.classNames.hover),this.axis[r].scrollbar.el.classList.remove(this.classNames.hover)},e.showScrollbar=function(r){r===void 0&&(r="y");var n=this.axis[r].scrollbar.el;this.axis[r].isVisible||(n.classList.add(this.classNames.visible),this.axis[r].isVisible=!0),this.options.autoHide&&this.hideScrollbars()},e.onDragStart=function(r,n){n===void 0&&(n="y");var a=ar(this.el),s=Nt(this.el),l=this.axis[n].scrollbar,o=n==="y"?r.pageY:r.pageX;this.axis[n].dragOffset=o-l.rect[this.axis[n].offsetAttr],this.draggedAxis=n,this.el.classList.add(this.classNames.dragging),a.addEventListener("mousemove",this.drag,!0),a.addEventListener("mouseup",this.onEndDrag,!0),this.removePreventClickId===null?(a.addEventListener("click",this.preventClick,!0),a.addEventListener("dblclick",this.preventClick,!0)):(s.clearTimeout(this.removePreventClickId),this.removePreventClickId=null)},e.onTrackClick=function(r,n){var a=this;if(n===void 0&&(n="y"),!!this.options.clickOnTrack){var s=Nt(this.el);this.axis[n].scrollbar.rect=this.axis[n].scrollbar.el.getBoundingClientRect();var l=this.axis[n].scrollbar,o=l.rect[this.axis[n].offsetAttr],c=parseInt(this.elStyles[this.axis[n].sizeAttr],10),u=this.contentWrapperEl[this.axis[n].scrollOffsetAttr],d=n==="y"?this.mouseY-o:this.mouseX-o,f=d<0?-1:1,p=f===-1?u-c:u+c,m=function h(){if(f===-1){if(u>p){var y;u-=a.options.clickOnTrackSpeed,a.contentWrapperEl.scrollTo((y={},y[a.axis[n].offsetAttr]=u,y)),s.requestAnimationFrame(h)}}else if(u<p){var x;u+=a.options.clickOnTrackSpeed,a.contentWrapperEl.scrollTo((x={},x[a.axis[n].offsetAttr]=u,x)),s.requestAnimationFrame(h)}};m()}},e.getContentElement=function(){return this.contentEl},e.getScrollElement=function(){return this.contentWrapperEl},e.getScrollbarWidth=function(){try{return getComputedStyle(this.contentWrapperEl,"::-webkit-scrollbar").display==="none"||"scrollbarWidth"in document.documentElement.style||"-ms-overflow-style"in document.documentElement.style?0:no(this.el)}catch{return no(this.el)}},e.removeListeners=function(){var r=this,n=Nt(this.el);this.options.autoHide&&this.el.removeEventListener("mouseenter",this.onMouseEnter),["mousedown","click","dblclick"].forEach(function(a){r.el.removeEventListener(a,r.onPointerEvent,!0)}),["touchstart","touchend","touchmove"].forEach(function(a){r.el.removeEventListener(a,r.onPointerEvent,{capture:!0,passive:!0})}),this.el.removeEventListener("mousemove",this.onMouseMove),this.el.removeEventListener("mouseleave",this.onMouseLeave),this.contentWrapperEl&&this.contentWrapperEl.removeEventListener("scroll",this.onScroll),n.removeEventListener("resize",this.onWindowResize),this.mutationObserver&&this.mutationObserver.disconnect(),this.resizeObserver&&this.resizeObserver.disconnect(),this.recalculate.cancel(),this.onMouseMove.cancel(),this.hideScrollbars.cancel(),this.onWindowResize.cancel()},e.unMount=function(){this.removeListeners(),i.instances.delete(this.el)},e.isWithinBounds=function(r){return this.mouseX>=r.left&&this.mouseX<=r.left+r.width&&this.mouseY>=r.top&&this.mouseY<=r.top+r.height},e.findChild=function(r,n){var a=r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector;return Array.prototype.filter.call(r.children,function(s){return a.call(s,n)})[0]},i}();we.defaultOptions={autoHide:!0,forceVisible:!1,clickOnTrack:!0,clickOnTrackSpeed:40,classNames:{contentEl:"simplebar-content",contentWrapper:"simplebar-content-wrapper",offset:"simplebar-offset",mask:"simplebar-mask",wrapper:"simplebar-wrapper",placeholder:"simplebar-placeholder",scrollbar:"simplebar-scrollbar",track:"simplebar-track",heightAutoObserverWrapperEl:"simplebar-height-auto-observer-wrapper",heightAutoObserverEl:"simplebar-height-auto-observer",visible:"simplebar-visible",horizontal:"simplebar-horizontal",vertical:"simplebar-vertical",hover:"simplebar-hover",dragging:"simplebar-dragging"},scrollbarMinSize:25,scrollbarMaxSize:0,timeout:1e3};we.instances=new WeakMap;we.initDOMLoadedElements=function(){document.removeEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.removeEventListener("load",this.initDOMLoadedElements),Array.prototype.forEach.call(document.querySelectorAll("[data-simplebar]"),function(i){i.getAttribute("data-simplebar")!=="init"&&!we.instances.has(i)&&new we(i,gr(i.attributes))})};we.removeObserver=function(){this.globalObserver.disconnect()};we.initHtmlApi=function(){this.initDOMLoadedElements=this.initDOMLoadedElements.bind(this),typeof MutationObserver<"u"&&(this.globalObserver=new MutationObserver(we.handleMutations),this.globalObserver.observe(document,{childList:!0,subtree:!0})),document.readyState==="complete"||document.readyState!=="loading"&&!document.documentElement.doScroll?window.setTimeout(this.initDOMLoadedElements):(document.addEventListener("DOMContentLoaded",this.initDOMLoadedElements),window.addEventListener("load",this.initDOMLoadedElements))};we.handleMutations=function(i){i.forEach(function(e){Array.prototype.forEach.call(e.addedNodes,function(t){t.nodeType===1&&(t.hasAttribute("data-simplebar")?!we.instances.has(t)&&document.documentElement.contains(t)&&new we(t,gr(t.attributes)):Array.prototype.forEach.call(t.querySelectorAll("[data-simplebar]"),function(r){r.getAttribute("data-simplebar")!=="init"&&!we.instances.has(r)&&document.documentElement.contains(r)&&new we(r,gr(r.attributes))}))}),Array.prototype.forEach.call(e.removedNodes,function(t){t.nodeType===1&&(t.getAttribute("data-simplebar")==="init"?we.instances.has(t)&&!document.documentElement.contains(t)&&we.instances.get(t).unMount():Array.prototype.forEach.call(t.querySelectorAll('[data-simplebar="init"]'),function(r){we.instances.has(r)&&!document.documentElement.contains(r)&&we.instances.get(r).unMount()}))})})};we.getOptions=gr;ba&&we.initHtmlApi();function NS(i){return Object.keys(i).reduce((e,t)=>{const r=i[t];return r?{...e,[t]:r}:e},{})}const jS=Symbol("simplebar");function FS(i){An(jS,i)}const VS=$e({__name:"ScrollView",props:{tag:{default:"div"},autoHide:null,classNames:null,clickOnTrack:null,direction:null,forceVisible:null,scrollbarMaxSize:null,scrollbarMinSize:null,timeout:null},emits:["created","scroll","wheel"],setup(i,{expose:e,emit:t}){const r=i,n=W(null),a=W(null),{tag:s,...l}=We(r);e(n),FS(n);function o(c){if(!a.value||c==="activated"&&n.value)return;const u={...ro(l)},d=NS(u),f=new we(a.value,Object.keys(d).length>0?d:void 0);n.value=f;const p=f.getScrollElement();p.addEventListener("scroll",m=>{t("scroll",m)}),p.addEventListener("wheel",m=>{t("wheel",m)}),t("created",f)}return Ke(()=>o("mounted")),vd(()=>o("activated")),md(()=>{n.value=null}),(c,u)=>(w(),Q(so(i.tag),{ref_key:"element",ref:a},{default:F(()=>[ge(c.$slots,"default")]),_:3},512))}});const WS=$e({components:{Navmenu:Io,SimpleBar:VS},data(){return{menuItems:To,openClass:"w-[248px]",closeClass:"w-[72px] close_sidebar"}},computed:{menus(){const i=this.$store.userSettings.getMenuItems;return console.log("this is the menu",i),i&&i.hr?i.hr:[]}},mounted(){localStorage.getItem("menuItems")==null||localStorage.getItem("menuItems").length===0?this.$store.userSettings.fetchMenus():this.$store.userSettings.setMenusFromLocal()},setup(){const i=W(!1),e=W(null);return Ke(()=>{e.value.getScrollElement().addEventListener("scroll",()=>{e.value.getScrollElement().scrollTop>50?(e.value.getScrollElement().classList.add("scroll"),i.value=!0):(e.value.getScrollElement().classList.remove("scroll"),i.value=!1)})}),{enterWidget:n=>{Ls.fromTo(n,{x:0,opacity:0,scale:.5},{x:0,opacity:1,duration:.3,scale:1})},leaveWidget:n=>{Ls.fromTo(n,{x:0,opacity:1,scale:1},{x:0,opacity:0,duration:.3,scale:.5})},simplebarInstance:e,shadowbase:i}}}),HS={key:0,src:Tn,class:"h-24 ml-10",alt:""},qS={key:1,src:In,class:"h-24 ml-10",alt:""},US={key:0,src:Tn,alt:""},GS={key:1,src:In,alt:""},YS={key:1,class:"text-center"};function XS(i,e,t,r,n,a){const s=D("router-link"),l=D("Navmenu"),o=D("lottie"),c=D("SimpleBar");return w(),I("div",{class:P(this.$store.themeSettingsStore.semidark?"dark":"")},[g("div",{class:P(`sidebar-wrapper bg-white dark:bg-slate-800 ${this.$store.themeSettingsStore.skin==="bordered"?"border-r border-gray-5002 dark:border-slate-700":"shadow-base"} ${this.$store.themeSettingsStore.sidebarCollasp?this.closeClass:this.openClass} ${this.$store.themeSettingsStore.isMouseHovered?"sidebar-hovered":""} `),onMouseenter:e[2]||(e[2]=u=>this.$store.themeSettingsStore.isMouseHovered=!0),onMouseleave:e[3]||(e[3]=u=>this.$store.themeSettingsStore.isMouseHovered=!1)},[g("div",{class:P(`logo-segment flex justify-between items-center bg-white dark:bg-slate-800 z-[9] py-6 sticky top-0 px-4 ${this.$store.themeSettingsStore.sidebarCollasp?this.closeClass:this.openClass} ${this.$store.themeSettingsStore.skin==="bordered"?" border-b border-r border-gray-5002 dark:border-slate-700":" border-none"} ${this.$store.themeSettingsStore.isMouseHovered?"logo-hovered":""} `)},[!this.$store.themeSettingsStore.sidebarCollasp||this.$store.themeSettingsStore.isMouseHovered?(w(),Q(s,{key:0,to:{name:"home"},class:""},{default:F(()=>[!this.$store.themeSettingsStore.isDark&&!this.$store.themeSettingsStore.semidark?(w(),I("img",HS)):L("",!0),this.$store.themeSettingsStore.isDark||this.$store.themeSettingsStore.semidark?(w(),I("img",qS)):L("",!0)]),_:1})):L("",!0),this.$store.themeSettingsStore.sidebarCollasp&&!this.$store.themeSettingsStore.isMouseHovered?(w(),Q(s,{key:1,to:{name:"home"}},{default:F(()=>[!this.$store.themeSettingsStore.isDark&&!this.$store.themeSettingsStore.semidark?(w(),I("img",US)):L("",!0),this.$store.themeSettingsStore.isDark||this.$store.themeSettingsStore.semidark?(w(),I("img",GS)):L("",!0)]),_:1})):L("",!0),!this.$store.themeSettingsStore.sidebarCollasp||this.$store.themeSettingsStore.isMouseHovered?(w(),I("span",{key:2,class:"cursor-pointer text-slate-900 dark:text-white text-2xl",onClick:e[0]||(e[0]=u=>this.$store.themeSettingsStore.sidebarCollasp=!this.$store.themeSettingsStore.sidebarCollasp)},[g("div",{class:P(["h-4 w-4 border-[1.5px] border-slate-900 dark:border-slate-700 rounded-full transition-all duration-150",this.$store.themeSettingsStore.sidebarCollasp?"":"ring-2 ring-inset ring-offset-4 ring-black-900 dark:ring-slate-400 bg-slate-900 dark:bg-slate-400 dark:ring-offset-slate-700"])},null,2)])):L("",!0)],2),g("div",{class:P(["h-[60px] absolute top-[80px] nav-shadow z-[1] w-full transition-all duration-200 pointer-events-none",[i.shadowbase?" opacity-100":" opacity-0"]])},null,2),$(c,{class:"sidebar-menu px-4 h-[calc(100%-80px)]",onCreated:e[1]||(e[1]=u=>{i.simplebarInstance=u})},{default:F(()=>[i.menus?(w(),Q(l,{key:0,items:i.menus},null,8,["items"])):(w(),I("div",YS,[$(o,{class:"avatar-xl",colors:`primary:${i.$store.themeSettingsStore.themeColors[0]},secondary:${i.$store.themeSettingsStore.themeColors[2]}`,options:i.loadingOptions,height:30,width:30},null,8,["colors","options"]),e[4]||(e[4]=g("span",{class:"text-slate-500"},"Loading menu...",-1))]))]),_:1})],34)],2)}const KS=se(WS,[["render",XS]]);const QS={mixins:[wr],components:{Access:v0,Header:mm,Footer:nh,Sidebar:KS,Settings:cg,Breadcrumbs:vf,FooterMenu:wf,MobileSidebar:eh,Chatbot:bf},props:{breadcrumbs:{type:Array,default:null}},methods:{switchHeaderClass(){return this.$store.themeSettingsStore.menuLayout==="horizontal"||this.$store.themeSettingsStore.sidebarHidden?"ltr:ml-0 rtl:mr-0":this.$store.themeSettingsStore.sidebarCollasp?"ltr:ml-[72px] rtl:mr-[72px]":"ltr:ml-[248px] rtl:mr-[248px]"}}},ZS={class:"app-wrapper"};function JS(i,e,t,r,n,a){const s=D("Header"),l=D("Sidebar"),o=D("mobile-sidebar"),c=D("Access"),u=D("Breadcrumbs"),d=D("router-view"),f=D("Chatbot"),p=D("FooterMenu"),m=D("Footer");return w(),I("main",ZS,[$(s,{class:P(i.window.width>=1280?a.switchHeaderClass():"")},null,8,["class"]),this.$store.themeSettingsStore.menuLayout==="vertical"&&this.$store.themeSettingsStore.sidebarHidden===!1&&i.window.width>=1280?(w(),Q(l,{key:0})):L("",!0),$(Ge,{name:"mobilemenu"},{default:F(()=>[i.window.width<1280&&this.$store.themeSettingsStore.mobielSidebar?(w(),Q(o,{key:0})):L("",!0)]),_:1}),$(Ge,{name:"overlay-fade"},{default:F(()=>[i.window.width<1280&&this.$store.themeSettingsStore.mobielSidebar?(w(),I("div",{key:0,class:"overlay bg-slate-900 bg-opacity-70 backdrop-filter backdrop-blur-[3px] backdrop-brightness-10 fixed inset-0 z-[999]",onClick:e[0]||(e[0]=h=>this.$store.themeSettingsStore.mobielSidebar=!1)})):L("",!0)]),_:1}),$(c),g("div",{class:P(["content-wrapper transition-all duration-150",i.window.width>=1280?a.switchHeaderClass():""])},[g("div",{class:P(["page-content",this.$route.meta.appheight?"h-full":"page-min-height"])},[g("div",{class:P(` transition-all duration-150 ${this.$store.themeSettingsStore.cWidth==="boxed"?"container mx-auto":"container-fluid"}`)},[t.breadcrumbs?(w(),Q(u,{key:0,links:t.breadcrumbs},null,8,["links"])):L("",!0),$(d,null,{default:F(({Component:h})=>[$(Ge,{name:"router-animation",mode:"out-in",appear:""},{default:F(()=>[(w(),Q(so(h)))]),_:2},1024)]),_:1}),g("div",null,[$(Ge,{name:"router-animation",mode:"out-in",appear:""},{default:F(()=>[ge(i.$slots,"default")]),_:3})])],2)],2)],2),$(f),i.window.width<768?(w(),Q(p,{key:1})):L("",!0),i.window.width>=768?(w(),Q(m,{key:2,class:P(i.window.width>=1280?a.switchHeaderClass():"")},null,8,["class"])):L("",!0)])}const ck=se(QS,[["render",JS]]);export{Us as D,yg as I,ck as L,ap as M,Ba as N,yf as P,Js as a,Er as b,_p as n,Ro as s,wr as w};
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0.13 |
proxy
|
phpinfo
|
Settings