Linux websever 5.15.0-153-generic #163-Ubuntu SMP Thu Aug 7 16:37:18 UTC 2025 x86_64
Apache/2.4.52 (Ubuntu)
: 192.168.3.70 | : 192.168.1.99
Cant Read [ /etc/named.conf ]
8.1.2-1ubuntu2.23
urlab
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
var /
www /
html /
coursewise /
assets /
[ HOME SHELL ]
Name
Size
Permission
Action
AcademicTools-tj30wEj0.js
7.55
KB
-rwxr-xr-x
AcademicTools-tj30wEj0.js.map
14.63
KB
-rwxr-xr-x
AddCourse-BTNu-pnI.js
10.08
KB
-rwxr-xr-x
AddCourse-BTNu-pnI.js.map
35.84
KB
-rwxr-xr-x
AdminFeedbackManagement-DsTd1C...
13.52
KB
-rwxr-xr-x
AdminFeedbackManagement-DsTd1C...
45.25
KB
-rwxr-xr-x
CourseReviews-CLlzbLuT.js
27.45
KB
-rwxr-xr-x
CourseReviews-CLlzbLuT.js.map
112.09
KB
-rwxr-xr-x
Dewan-B5d13VSK.png
819.07
KB
-rwxr-xr-x
Dewan-Bniqtmij.js
102
B
-rwxr-xr-x
Dewan-Bniqtmij.js.map
197
B
-rwxr-xr-x
EditCourse-DeWQqcol.js
9.65
KB
-rwxr-xr-x
EditCourse-DeWQqcol.js.map
34.87
KB
-rwxr-xr-x
MyCourses-BA9wctPB.js
8.48
KB
-rwxr-xr-x
MyCourses-BA9wctPB.js.map
31.95
KB
-rwxr-xr-x
Rajput-BnxWGXCy.js
104
B
-rwxr-xr-x
Rajput-BnxWGXCy.js.map
200
B
-rwxr-xr-x
Rajput-CE3gMniE.png
908.11
KB
-rwxr-xr-x
Settings-BGf6-NRc.js
2.09
KB
-rwxr-xr-x
Settings-BGf6-NRc.js.map
5.35
KB
-rwxr-xr-x
TimetableClashChecker-gskbNvYE...
32.74
KB
-rwxr-xr-x
TimetableClashChecker-gskbNvYE...
137.78
KB
-rwxr-xr-x
UserManagement-pl4YxOXe.js
2.17
KB
-rwxr-xr-x
UserManagement-pl4YxOXe.js.map
5.49
KB
-rwxr-xr-x
academic-components-DF0R8Z3x.j...
670.84
KB
-rwxr-xr-x
academic-components-DF0R8Z3x.j...
1.87
MB
-rwxr-xr-x
admin-components-DUStTukf.js
1.36
MB
-rwxr-xr-x
admin-components-DUStTukf.js.m...
5.5
MB
-rwxr-xr-x
apple-touch-icon-CvbJoadU.png
20.94
KB
-rwxr-xr-x
browser-DyVnc2OH.js
392
B
-rwxr-xr-x
browser-DyVnc2OH.js.map
404
B
-rwxr-xr-x
favicon-16x16-CXk8OJVQ.png
734
B
-rwxr-xr-x
favicon-32x32-BMg2Kocu.png
1.78
KB
-rwxr-xr-x
favicon-hhFM0i7Z.ico
15.04
KB
-rwxr-xr-x
geminiService-khxcBfs7.js
2.36
KB
-rwxr-xr-x
geminiService-khxcBfs7.js.map
6.73
KB
-rwxr-xr-x
index-BbxTXAhJ.css
45.32
KB
-rwxr-xr-x
index-DN1SJQ1D.js
73.27
KB
-rwxr-xr-x
index-DN1SJQ1D.js.map
215.58
KB
-rwxr-xr-x
index.es-B3idowhG.js
155.35
KB
-rwxr-xr-x
index.es-B3idowhG.js.map
624.87
KB
-rwxr-xr-x
kunal-UYflGF6w.jpg
9.22
MB
-rwxr-xr-x
kunal-ozIpZZVI.js
102
B
-rwxr-xr-x
kunal-ozIpZZVI.js.map
197
B
-rwxr-xr-x
pdf-vendor-Bz5wMm03.js
317.87
KB
-rwxr-xr-x
pdf-vendor-Bz5wMm03.js.map
976.2
KB
-rwxr-xr-x
purify.es-CQJ0hv7W.js
21.35
KB
-rwxr-xr-x
purify.es-CQJ0hv7W.js.map
88.01
KB
-rwxr-xr-x
react-vendor-BFYHlx6n.js
160.29
KB
-rwxr-xr-x
react-vendor-BFYHlx6n.js.map
687.16
KB
-rwxr-xr-x
sarthak-CfXTejkX.png
764.15
KB
-rwxr-xr-x
sarthak-Cq6ZcrGb.js
106
B
-rwxr-xr-x
sarthak-Cq6ZcrGb.js.map
203
B
-rwxr-xr-x
site-BwHFeIBa.webmanifest
263
B
-rwxr-xr-x
supabase-vendor-DtZyL83W.js
105.45
KB
-rwxr-xr-x
supabase-vendor-DtZyL83W.js.ma...
449.41
KB
-rwxr-xr-x
ui-vendor-DSJ4jbeb.js
44.26
KB
-rwxr-xr-x
ui-vendor-DSJ4jbeb.js.map
190.96
KB
-rwxr-xr-x
useToast-Bg1woyD1.js
414
B
-rwxr-xr-x
useToast-Bg1woyD1.js.map
1.83
KB
-rwxr-xr-x
xlsx-vendor-D_ykzFJ-.js
276.48
KB
-rwxr-xr-x
xlsx-vendor-D_ykzFJ-.js.map
1.37
MB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : academic-components-DF0R8Z3x.js
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-B3idowhG.js","assets/admin-components-DUStTukf.js","assets/react-vendor-BFYHlx6n.js","assets/supabase-vendor-DtZyL83W.js","assets/pdf-vendor-Bz5wMm03.js","assets/xlsx-vendor-D_ykzFJ-.js","assets/ui-vendor-DSJ4jbeb.js"])))=>i.map(i=>d[i]); import{s as ye,j as u,u as bs,B as DA,F as ne,H as fe,a as Ue,G as du,b as or,V as me,A as dl,T as UA,c as Ut,d as St,I as vr,S as Gn,_ as Te,e as HA,f as $u,g as Fa,h as Qa,M as Ah,i as eh,k as Vn,l as th,m as pi,C as Re,n as qe,o as Et,p as hi,q as fi,r as di,t as rh,v as nh,w as Bi,x as xt,y as ih,z as Ct,D as ht,E as Il,J as jr,K as zp,L as ge,N as tt,O as zh,P as qh,Q as gu,R as pu,U as xa,W as Ua,X as Sa,Y as Ea,Z as La,$ as Ia,a0 as Tt,a1 as _a,a2 as Qd,a3 as xd,a4 as pa,a5 as Ud,a6 as Ba,a7 as qp,a8 as ds,a9 as Wp,aa as Sd,ab as Jp,ac as Xp,ad as Yp,ae as Wh,af as Ed,ag as $r,ah as Tr,ai as xe,aj as Zp,ak as aa,al as oa,am as $p,an as A1,ao as e1,ap as t1,aq as r1}from"./admin-components-DUStTukf.js";import{r as xA,u as sh,e as n1,L as Zi,d as _l}from"./react-vendor-BFYHlx6n.js";import{G as Bu,H as i1,B as Ha,I as s1,L as Jh,U as vs,X as a1,M as o1,P as Xh,S as l1,a as c1,b as u1,D as Ld,F as Id,C as _d,c as gl,d as h1,e as f1,f as d1,g as g1,h as p1,R as Na,T as il,i as pl,j as B1,k as w1,l as Hd,m as m1,n as v1,E as Nd,o as C1,p as b1,q as Yh,r as y1,s as F1,t as wu,u as Zh,v as Nc,Z as jc,w as us,x as Bl,A as jd,y as Q1,z as x1,J as U1,K as $h,N as S1,O as E1,Q as Dc,V as Af,W as Tc}from"./ui-vendor-DSJ4jbeb.js";import{_ as wl}from"./supabase-vendor-DtZyL83W.js";import{r as L1}from"./pdf-vendor-Bz5wMm03.js";const Dd=xA.createContext(void 0),Sv=({children:e})=>{const[A,t]=xA.useState(null),[r,n]=xA.useState(null),[i,a]=xA.useState(!0);xA.useEffect(()=>{(async()=>{try{if(a(!0),window.location.hash&&window.location.hash.includes("access_token")){const{data:{session:m},error:g}=await ye.auth.getSession();m?(t(m),n(m.user),window.location.hash="/"):g&&console.error("Error parsing session from hash:",g)}const{data:{session:p}}=await ye.auth.getSession();p&&(t(p),n(p?.user||null))}catch(p){console.error("Error getting initial session:",p)}finally{a(!1)}})();const{data:{subscription:B}}=ye.auth.onAuthStateChange((p,m)=>{t(m),n(m?.user||null)});return()=>{B.unsubscribe()}},[]);const c={session:A,user:r,isAuthenticated:!!A&&!!r,loading:i,signOut:async()=>{try{await ye.auth.signOut()}catch(d){console.error("Error signing out:",d)}}};return i?u.jsx("div",{style:{display:"flex",justifyContent:"center",alignItems:"center",height:"100vh"},children:"Loading..."}):u.jsx(Dd.Provider,{value:c,children:e})},Ci=()=>{const e=xA.useContext(Dd);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},Td=xA.createContext(void 0),Ev=({children:e})=>{const[A,t]=xA.useState(0),[r,n]=xA.useState(!1),i=()=>{n(!0),t(1),setTimeout(()=>{n(!1)},100)};return u.jsx(Td.Provider,{value:{tabIndex:A,setTabIndex:t,restartChat:i,isRestarting:r},children:e})},ah=()=>{const e=xA.useContext(Td);if(e===void 0)throw new Error("useCourseRecommendation must be used within a CourseRecommendationProvider");return e},I1=()=>{const[e,A]=xA.useState(!1),[t,r]=xA.useState(!1),[n,i]=xA.useState(!1),[a,o]=xA.useState(!0),c=sh(),d=n1();xA.useEffect(()=>{(async()=>{const{data:{session:U}}=await ye.auth.getSession();r(!!U),U&&i(U.user.email==="admn.coursewise@gmail.com"),o(!1)})();const{data:{subscription:v}}=ye.auth.onAuthStateChange((U,F)=>{r(!!F),i(F?F.user.email==="admn.coursewise@gmail.com":!1)});return()=>v.unsubscribe()},[]);const B=()=>{A(!e)},p=async()=>{await ye.auth.signOut(),c("/")},m=C=>d.pathname===C,g=[{path:"/",label:"Home",icon:i1},{path:"/academic-tools",label:"Academic Tools",icon:Ha},{path:"/about",label:"About",icon:s1}];return t&&g.push({path:"/dashboard",label:"Dashboard",icon:Xh}),n&&g.push({path:"/admin/dashboard",label:"Admin",icon:Xh}),a?u.jsx("nav",{className:"sticky top-0 z-50 bg-gradient-to-r from-indigo-700 via-indigo-600 to-purple-700 text-white shadow-md py-4",children:u.jsx("div",{className:"container mx-auto px-4",children:u.jsx("div",{className:"flex items-center justify-between",children:u.jsxs(Zi,{to:"/",className:"flex items-center space-x-2",children:[u.jsx(Bu,{className:"h-8 w-8"}),u.jsx("span",{className:"text-xl font-bold",children:"CourseWise"})]})})})}):u.jsxs("nav",{className:"sticky top-0 z-50 backdrop-blur-md bg-gradient-to-r from-indigo-700/95 via-indigo-600/95 to-purple-700/95 text-white shadow-lg py-4 relative",children:[u.jsx("div",{className:"absolute inset-0 bg-[url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjAiIGhlaWdodD0iNjAiIHZpZXdCb3g9IjAgMCA2MCA2MCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48ZyBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPjxnIGZpbGw9IiNmZmYiIGZpbGwtb3BhY2l0eT0iMC4wNSI+PHBhdGggZD0iTTM2IDMwaC0yVjBoMnYzMHptLTIgMEgydjJoMzJ2LTJ6bTAgMnYyOGgydi0yOGgtMnptMi0ydi0zaC0ydjNoMnptLTIgMEgwdjJoMzR2LTJ6Ii8+PC9nPjwvZz48L3N2Zz4=')] opacity-50"}),u.jsxs("div",{className:"container mx-auto px-4 relative z-10",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs(Zi,{to:"/",className:"flex items-center space-x-2 group",children:[u.jsx("div",{className:"bg-white/15 p-2 rounded-full transition-all duration-300 group-hover:bg-white/25 group-hover:scale-105 shadow-lg",children:u.jsx(Bu,{className:"h-6 w-6"})}),u.jsx("span",{className:"text-xl font-bold bg-clip-text text-transparent bg-gradient-to-r from-white to-purple-100",children:"CourseWise"})]}),u.jsxs("div",{className:"hidden md:flex items-center space-x-1",children:[g.map(C=>u.jsxs(Zi,{to:C.path,className:`${m(C.path)?"bg-white/20 text-white font-medium shadow-lg border-b-2 border-white/40":"text-white/90 hover:bg-white/15 hover:border-b-2 hover:border-white/30"} px-4 py-2 rounded-md flex items-center space-x-2 transition-all duration-300 backdrop-blur-sm`,children:[u.jsx(C.icon,{className:`w-4 h-4 ${m(C.path)?"text-white":"text-white/80"}`}),u.jsx("span",{children:C.label})]},C.path)),t?u.jsxs("button",{onClick:p,className:"ml-2 text-white/90 hover:bg-white/15 px-4 py-2 rounded-md flex items-center space-x-2 transition-all duration-300 backdrop-blur-sm hover:shadow-lg",children:[u.jsx(Jh,{className:"w-4 h-4"}),u.jsx("span",{children:"Sign Out"})]}):u.jsxs(Zi,{to:"/login",className:"ml-2 bg-white/15 text-white px-4 py-2 rounded-md flex items-center space-x-2 transition-all duration-300 hover:bg-white/25 hover:shadow-lg backdrop-blur-sm border border-white/10",children:[u.jsx(vs,{className:"w-4 h-4"}),u.jsx("span",{children:"Sign In"})]})]}),u.jsx("div",{className:"md:hidden",children:u.jsx("button",{onClick:B,className:"text-white bg-white/15 p-2 rounded-md hover:bg-white/25 transition-all duration-300 shadow-md hover:shadow-lg",children:e?u.jsx(a1,{className:"h-6 w-6"}):u.jsx(o1,{className:"h-6 w-6"})})})]}),e&&u.jsx("div",{className:"md:hidden mt-4 py-2 border-t border-white/20 backdrop-blur-md bg-indigo-700/60 rounded-lg shadow-xl",children:u.jsxs("div",{className:"flex flex-col space-y-2 p-2",children:[g.map(C=>u.jsxs(Zi,{to:C.path,className:`${m(C.path)?"bg-white/20 text-white font-medium shadow-md border-l-4 border-white/40":"text-white/90 hover:bg-white/15 hover:border-l-4 hover:border-white/30"} px-4 py-3 rounded-md flex items-center space-x-3 transition-all duration-300`,onClick:()=>A(!1),children:[u.jsx(C.icon,{className:"w-5 h-5"}),u.jsx("span",{children:C.label})]},C.path)),t?u.jsxs("button",{onClick:()=>{p(),A(!1)},className:"text-white/90 hover:bg-white/15 px-4 py-3 rounded-md flex items-center space-x-3 transition-all duration-300 text-left hover:shadow-md",children:[u.jsx(Jh,{className:"w-5 h-5"}),u.jsx("span",{children:"Sign Out"})]}):u.jsxs(Zi,{to:"/login",className:"bg-white/15 text-white px-4 py-3 rounded-md flex items-center space-x-3 transition-all duration-300 hover:bg-white/25 shadow-md hover:shadow-lg border border-white/10",onClick:()=>A(!1),children:[u.jsx(vs,{className:"w-5 h-5"}),u.jsx("span",{children:"Sign In"})]})]})})]})]})},ef=e=>e?e.includes("googleusercontent.com")?`https://images.weserv.nl/?url=${encodeURIComponent(e)}&default=404`:e:"",Lv=({userData:e})=>{const[A,t]=xA.useState(!1),[r,n]=xA.useState({full_name:e?.full_name||"",bio:e?.bio||"",semester:e?.semester||e?.current_semester||1,profile_picture_url:e?.profile_picture_url||"",institution:e?.institution||"IIIT Delhi",branch:e?.branch||"",roll_number:e?.roll_number||""}),i=["Computer Science and Engineering","Computer Science and AI","Computer Science and Design","Electronics & Communication Engineering","Computer Science and Social Sciences","Computer Science and Biosciences","Computer Science and Mathematics","Computer Science and Applied Mathematics","Computer Science and Entrepreneurship"],[a,o]=xA.useState(!1),c=bs(),{session:d}=Ci();xA.useEffect(()=>{console.log("Available avatar URLs:",{profile:e?.profile_picture_url,google:d?.user?.user_metadata?.avatar_url,proxied:ef(d?.user?.user_metadata?.avatar_url)}),e&&n({full_name:e.full_name||"",bio:e.bio||"",semester:e.semester||e.current_semester||1,profile_picture_url:e.profile_picture_url||d?.user?.user_metadata?.avatar_url||"",institution:e.institution||"IIIT Delhi",branch:e.branch||"",roll_number:e.roll_number||""})},[e,d]),xA.useEffect(()=>{!e?.profile_picture_url&&d?.user?.user_metadata?.avatar_url&&!a&&e?.id&&(async()=>{try{console.log("Saving Google avatar URL to database"),await ye.from("users").update({profile_picture_url:d.user.user_metadata.avatar_url,updated_at:new Date().toISOString()}).eq("id",e.id),console.log("Successfully saved avatar URL")}catch(g){console.error("Failed to save Google avatar:",g)}})()},[e,d,a]);const B=m=>{const{name:g,value:C}=m.target;n(v=>({...v,[g]:C}))},p=async m=>{m.preventDefault(),o(!0);try{const g={full_name:r.full_name,bio:r.bio,semester:parseInt(r.semester.toString()),profile_picture_url:r.profile_picture_url,institution:r.institution,branch:r.branch,roll_number:r.roll_number,updated_at:new Date().toISOString()},{error:C}=await ye.from("users").update(g).eq("id",e.id);if(C)throw C;c({title:"Profile updated",description:"Your personal information has been updated successfully.",status:"success",duration:5e3,isClosable:!0}),t(!1)}catch(g){c({title:"Update failed",description:g.message||"Could not update profile information",status:"error",duration:5e3,isClosable:!0})}finally{o(!1)}};return u.jsxs(DA,{children:[u.jsxs(ne,{justify:"space-between",align:"center",mb:6,children:[u.jsx(fe,{size:"md",color:"purple.700",children:"Personal Information"}),!A&&u.jsx(Ue,{size:"sm",leftIcon:u.jsx(l1,{size:16}),colorScheme:"purple",variant:"outline",onClick:()=>t(!0),children:"Edit Profile"})]}),A?u.jsx("form",{onSubmit:p,children:u.jsxs(me,{spacing:6,align:"stretch",children:[u.jsxs(du,{templateColumns:{base:"1fr",md:"1fr 1fr"},gap:4,children:[u.jsx(or,{children:u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Full Name"}),u.jsx(vr,{name:"full_name",value:r.full_name,onChange:B,placeholder:"Enter your full name"})]})}),u.jsx(or,{children:u.jsxs(Ut,{children:[u.jsx(St,{children:"Profile Picture URL"}),u.jsx(vr,{name:"profile_picture_url",value:r.profile_picture_url,onChange:B,placeholder:"Enter the URL of your profile picture",type:"url"})]})}),u.jsx(or,{children:u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Current Semester"}),u.jsx(Gn,{name:"semester",value:r.semester,onChange:B,children:[1,2,3,4,5,6,7,8].map(m=>u.jsxs("option",{value:m,children:["Semester ",m]},m))})]})}),u.jsx(or,{children:u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Institution"}),u.jsx(Gn,{name:"institution",value:r.institution,onChange:B,disabled:!0,children:u.jsx("option",{value:"IIIT Delhi",children:"IIIT Delhi"})})]})}),u.jsx(or,{children:u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Program/Branch"}),u.jsx(Gn,{name:"branch",value:r.branch,onChange:B,placeholder:"Select your program",children:i.map(m=>u.jsx("option",{value:m,children:m},m))})]})}),u.jsx(or,{children:u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Roll Number"}),u.jsx(vr,{name:"roll_number",value:r.roll_number,onChange:B,placeholder:"Enter your roll number"})]})}),u.jsx(or,{colSpan:{base:1,md:2},children:u.jsxs(Ut,{children:[u.jsx(St,{children:"Bio"}),u.jsx(vr,{as:"textarea",name:"bio",value:r.bio,onChange:B,placeholder:"Tell us about yourself",minHeight:"100px"})]})})]}),u.jsxs(ne,{gap:4,justifyContent:"flex-end",children:[u.jsx(Ue,{variant:"outline",onClick:()=>t(!1),disabled:a,children:"Cancel"}),u.jsx(Ue,{type:"submit",colorScheme:"purple",isLoading:a,children:"Save Changes"})]})]})}):u.jsxs(du,{templateColumns:{base:"1fr",md:"200px 1fr"},gap:8,alignItems:"start",children:[u.jsx(or,{children:u.jsxs(me,{spacing:4,align:"center",children:[u.jsx(dl,{size:"2xl",src:ef(e?.profile_picture_url||d?.user?.user_metadata?.avatar_url),name:e?.full_name||e?.email,bg:"purple.500",color:"white"}),u.jsx(UA,{fontWeight:"bold",fontSize:"lg",children:e?.full_name||"No name provided"}),u.jsx(DA,{bg:"purple.50",p:2,px:3,rounded:"md",fontSize:"sm",color:"purple.700",children:e?.role||"Student"})]})}),u.jsx(or,{children:u.jsxs(me,{spacing:6,align:"stretch",className:"bg-gray-50 p-6 rounded-xl",children:[u.jsxs(ne,{gap:3,align:"center",children:[u.jsx(DA,{className:"p-2 bg-purple-100 rounded-full",children:u.jsx(c1,{size:20,className:"text-purple-600"})}),u.jsxs(DA,{children:[u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"Email Address"}),u.jsx(UA,{fontWeight:"medium",children:e?.email})]})]}),u.jsxs(ne,{gap:3,align:"center",children:[u.jsx(DA,{className:"p-2 bg-purple-100 rounded-full",children:u.jsx(vs,{size:20,className:"text-purple-600"})}),u.jsxs(DA,{children:[u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"Current Semester"}),u.jsx(UA,{fontWeight:"medium",children:e?.semester||e?.current_semester||"Not specified"})]})]}),u.jsxs(ne,{gap:3,align:"center",children:[u.jsx(DA,{className:"p-2 bg-purple-100 rounded-full",children:u.jsx(Bu,{size:20,className:"text-purple-600"})}),u.jsxs(DA,{children:[u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"Institution & Program"}),u.jsxs(UA,{fontWeight:"medium",children:[e?.institution||"IIIT Delhi",e?.branch?` • ${e.branch}`:""]})]})]}),e?.roll_number&&u.jsxs(ne,{gap:3,align:"center",children:[u.jsx(DA,{className:"p-2 bg-purple-100 rounded-full",children:u.jsx(u1,{size:20,className:"text-purple-600"})}),u.jsxs(DA,{children:[u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"Roll Number"}),u.jsx(UA,{fontWeight:"medium",children:e.roll_number})]})]}),u.jsxs(DA,{mt:4,children:[u.jsx(UA,{fontSize:"sm",color:"gray.500",mb:1,children:"About Me"}),u.jsx(UA,{children:e?.bio||"No bio provided yet."})]})]})})]})]})};var Mt=Uint8Array,lr=Uint16Array,oh=Int32Array,Hl=new Mt([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Nl=new Mt([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),mu=new Mt([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),kd=function(e,A){for(var t=new lr(31),r=0;r<31;++r)t[r]=A+=1<<e[r-1];for(var n=new oh(t[30]),r=1;r<30;++r)for(var i=t[r];i<t[r+1];++i)n[i]=i-t[r]<<5|r;return{b:t,r:n}},Pd=kd(Hl,2),Md=Pd.b,vu=Pd.r;Md[28]=258,vu[258]=28;var Od=kd(Nl,0),_1=Od.b,tf=Od.r,Cu=new lr(32768);for(var Ke=0;Ke<32768;++Ke){var jn=(Ke&43690)>>1|(Ke&21845)<<1;jn=(jn&52428)>>2|(jn&13107)<<2,jn=(jn&61680)>>4|(jn&3855)<<4,Cu[Ke]=((jn&65280)>>8|(jn&255)<<8)>>1}var en=function(e,A,t){for(var r=e.length,n=0,i=new lr(A);n<r;++n)e[n]&&++i[e[n]-1];var a=new lr(A);for(n=1;n<A;++n)a[n]=a[n-1]+i[n-1]<<1;var o;if(t){o=new lr(1<<A);var c=15-A;for(n=0;n<r;++n)if(e[n])for(var d=n<<4|e[n],B=A-e[n],p=a[e[n]-1]++<<B,m=p|(1<<B)-1;p<=m;++p)o[Cu[p]>>c]=d}else for(o=new lr(r),n=0;n<r;++n)e[n]&&(o[n]=Cu[a[e[n]-1]++]>>15-e[n]);return o},Wn=new Mt(288);for(var Ke=0;Ke<144;++Ke)Wn[Ke]=8;for(var Ke=144;Ke<256;++Ke)Wn[Ke]=9;for(var Ke=256;Ke<280;++Ke)Wn[Ke]=7;for(var Ke=280;Ke<288;++Ke)Wn[Ke]=8;var ja=new Mt(32);for(var Ke=0;Ke<32;++Ke)ja[Ke]=5;var H1=en(Wn,9,0),N1=en(Wn,9,1),j1=en(ja,5,0),D1=en(ja,5,1),kc=function(e){for(var A=e[0],t=1;t<e.length;++t)e[t]>A&&(A=e[t]);return A},_r=function(e,A,t){var r=A/8|0;return(e[r]|e[r+1]<<8)>>(A&7)&t},Pc=function(e,A){var t=A/8|0;return(e[t]|e[t+1]<<8|e[t+2]<<16)>>(A&7)},lh=function(e){return(e+7)/8|0},Rd=function(e,A,t){return(t==null||t>e.length)&&(t=e.length),new Mt(e.subarray(A,t))},T1=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],Dr=function(e,A,t){var r=new Error(A||T1[e]);if(r.code=e,Error.captureStackTrace&&Error.captureStackTrace(r,Dr),!t)throw r;return r},k1=function(e,A,t,r){var n=e.length,i=0;if(!n||A.f&&!A.l)return t||new Mt(0);var a=!t,o=a||A.i!=2,c=A.i;a&&(t=new Mt(n*3));var d=function(bA){var SA=t.length;if(bA>SA){var EA=new Mt(Math.max(SA*2,bA));EA.set(t),t=EA}},B=A.f||0,p=A.p||0,m=A.b||0,g=A.l,C=A.d,v=A.m,U=A.n,F=n*8;do{if(!g){B=_r(e,p,1);var x=_r(e,p+1,3);if(p+=3,x)if(x==1)g=N1,C=D1,v=9,U=5;else if(x==2){var Y=_r(e,p,31)+257,W=_r(e,p+10,15)+4,R=Y+_r(e,p+5,31)+1;p+=14;for(var k=new Mt(R),$=new Mt(19),_=0;_<W;++_)$[mu[_]]=_r(e,p+_*3,7);p+=W*3;for(var L=kc($),D=(1<<L)-1,O=en($,L,1),_=0;_<R;){var nA=O[_r(e,p,D)];p+=nA&15;var N=nA>>4;if(N<16)k[_++]=N;else{var sA=0,oA=0;for(N==16?(oA=3+_r(e,p,3),p+=2,sA=k[_-1]):N==17?(oA=3+_r(e,p,7),p+=3):N==18&&(oA=11+_r(e,p,127),p+=7);oA--;)k[_++]=sA}}var tA=k.subarray(0,Y),cA=k.subarray(Y);v=kc(tA),U=kc(cA),g=en(tA,v,1),C=en(cA,U,1)}else Dr(1);else{var N=lh(p)+4,V=e[N-4]|e[N-3]<<8,q=N+V;if(q>n){c&&Dr(0);break}o&&d(m+V),t.set(e.subarray(N,q),m),A.b=m+=V,A.p=p=q*8,A.f=B;continue}if(p>F){c&&Dr(0);break}}o&&d(m+131072);for(var z=(1<<v)-1,BA=(1<<U)-1,Q=p;;Q=p){var sA=g[Pc(e,p)&z],j=sA>>4;if(p+=sA&15,p>F){c&&Dr(0);break}if(sA||Dr(2),j<256)t[m++]=j;else if(j==256){Q=p,g=null;break}else{var P=j-254;if(j>264){var _=j-257,G=Hl[_];P=_r(e,p,(1<<G)-1)+Md[_],p+=G}var X=C[Pc(e,p)&BA],eA=X>>4;X||Dr(3),p+=X&15;var cA=_1[eA];if(eA>3){var G=Nl[eA];cA+=Pc(e,p)&(1<<G)-1,p+=G}if(p>F){c&&Dr(0);break}o&&d(m+131072);var uA=m+P;if(m<cA){var aA=i-cA,wA=Math.min(cA,uA);for(aA+m<0&&Dr(3);m<wA;++m)t[m]=r[aA+m]}for(;m<uA;++m)t[m]=t[m-cA]}}A.l=g,A.p=Q,A.b=m,A.f=B,g&&(B=1,A.m=v,A.d=C,A.n=U)}while(!B);return m!=t.length&&a?Rd(t,0,m):t.subarray(0,m)},pn=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8},Aa=function(e,A,t){t<<=A&7;var r=A/8|0;e[r]|=t,e[r+1]|=t>>8,e[r+2]|=t>>16},Mc=function(e,A){for(var t=[],r=0;r<e.length;++r)e[r]&&t.push({s:r,f:e[r]});var n=t.length,i=t.slice();if(!n)return{t:Gd,l:0};if(n==1){var a=new Mt(t[0].s+1);return a[t[0].s]=1,{t:a,l:1}}t.sort(function(q,Y){return q.f-Y.f}),t.push({s:-1,f:25001});var o=t[0],c=t[1],d=0,B=1,p=2;for(t[0]={s:-1,f:o.f+c.f,l:o,r:c};B!=n-1;)o=t[t[d].f<t[p].f?d++:p++],c=t[d!=B&&t[d].f<t[p].f?d++:p++],t[B++]={s:-1,f:o.f+c.f,l:o,r:c};for(var m=i[0].s,r=1;r<n;++r)i[r].s>m&&(m=i[r].s);var g=new lr(m+1),C=bu(t[B-1],g,0);if(C>A){var r=0,v=0,U=C-A,F=1<<U;for(i.sort(function(Y,W){return g[W.s]-g[Y.s]||Y.f-W.f});r<n;++r){var x=i[r].s;if(g[x]>A)v+=F-(1<<C-g[x]),g[x]=A;else break}for(v>>=U;v>0;){var N=i[r].s;g[N]<A?v-=1<<A-g[N]++-1:++r}for(;r>=0&&v;--r){var V=i[r].s;g[V]==A&&(--g[V],++v)}C=A}return{t:new Mt(g),l:C}},bu=function(e,A,t){return e.s==-1?Math.max(bu(e.l,A,t+1),bu(e.r,A,t+1)):A[e.s]=t},rf=function(e){for(var A=e.length;A&&!e[--A];);for(var t=new lr(++A),r=0,n=e[0],i=1,a=function(c){t[r++]=c},o=1;o<=A;++o)if(e[o]==n&&o!=A)++i;else{if(!n&&i>2){for(;i>138;i-=138)a(32754);i>2&&(a(i>10?i-11<<5|28690:i-3<<5|12305),i=0)}else if(i>3){for(a(n),--i;i>6;i-=6)a(8304);i>2&&(a(i-3<<5|8208),i=0)}for(;i--;)a(n);i=1,n=e[o]}return{c:t.subarray(0,r),n:A}},ea=function(e,A){for(var t=0,r=0;r<A.length;++r)t+=e[r]*A[r];return t},Kd=function(e,A,t){var r=t.length,n=lh(A+2);e[n]=r&255,e[n+1]=r>>8,e[n+2]=e[n]^255,e[n+3]=e[n+1]^255;for(var i=0;i<r;++i)e[n+i+4]=t[i];return(n+4+r)*8},nf=function(e,A,t,r,n,i,a,o,c,d,B){pn(A,B++,t),++n[256];for(var p=Mc(n,15),m=p.t,g=p.l,C=Mc(i,15),v=C.t,U=C.l,F=rf(m),x=F.c,N=F.n,V=rf(v),q=V.c,Y=V.n,W=new lr(19),R=0;R<x.length;++R)++W[x[R]&31];for(var R=0;R<q.length;++R)++W[q[R]&31];for(var k=Mc(W,7),$=k.t,_=k.l,L=19;L>4&&!$[mu[L-1]];--L);var D=d+5<<3,O=ea(n,Wn)+ea(i,ja)+a,nA=ea(n,m)+ea(i,v)+a+14+3*L+ea(W,$)+2*W[16]+3*W[17]+7*W[18];if(c>=0&&D<=O&&D<=nA)return Kd(A,B,e.subarray(c,c+d));var sA,oA,tA,cA;if(pn(A,B,1+(nA<O)),B+=2,nA<O){sA=en(m,g,0),oA=m,tA=en(v,U,0),cA=v;var z=en($,_,0);pn(A,B,N-257),pn(A,B+5,Y-1),pn(A,B+10,L-4),B+=14;for(var R=0;R<L;++R)pn(A,B+3*R,$[mu[R]]);B+=3*L;for(var BA=[x,q],Q=0;Q<2;++Q)for(var j=BA[Q],R=0;R<j.length;++R){var P=j[R]&31;pn(A,B,z[P]),B+=$[P],P>15&&(pn(A,B,j[R]>>5&127),B+=j[R]>>12)}}else sA=H1,oA=Wn,tA=j1,cA=ja;for(var R=0;R<o;++R){var G=r[R];if(G>255){var P=G>>18&31;Aa(A,B,sA[P+257]),B+=oA[P+257],P>7&&(pn(A,B,G>>23&31),B+=Hl[P]);var X=G&31;Aa(A,B,tA[X]),B+=cA[X],X>3&&(Aa(A,B,G>>5&8191),B+=Nl[X])}else Aa(A,B,sA[G]),B+=oA[G]}return Aa(A,B,sA[256]),B+oA[256]},P1=new oh([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gd=new Mt(0),M1=function(e,A,t,r,n,i){var a=i.z||e.length,o=new Mt(r+a+5*(1+Math.ceil(a/7e3))+n),c=o.subarray(r,o.length-n),d=i.l,B=(i.r||0)&7;if(A){B&&(c[0]=i.r>>3);for(var p=P1[A-1],m=p>>13,g=p&8191,C=(1<<t)-1,v=i.p||new lr(32768),U=i.h||new lr(C+1),F=Math.ceil(t/3),x=2*F,N=function(XA){return(e[XA]^e[XA+1]<<F^e[XA+2]<<x)&C},V=new oh(25e3),q=new lr(288),Y=new lr(32),W=0,R=0,k=i.i||0,$=0,_=i.w||0,L=0;k+2<a;++k){var D=N(k),O=k&32767,nA=U[D];if(v[O]=nA,U[D]=O,_<=k){var sA=a-k;if((W>7e3||$>24576)&&(sA>423||!d)){B=nf(e,c,0,V,q,Y,R,$,L,k-L,B),$=W=R=0,L=k;for(var oA=0;oA<286;++oA)q[oA]=0;for(var oA=0;oA<30;++oA)Y[oA]=0}var tA=2,cA=0,z=g,BA=O-nA&32767;if(sA>2&&D==N(k-BA))for(var Q=Math.min(m,sA)-1,j=Math.min(32767,k),P=Math.min(258,sA);BA<=j&&--z&&O!=nA;){if(e[k+tA]==e[k+tA-BA]){for(var G=0;G<P&&e[k+G]==e[k+G-BA];++G);if(G>tA){if(tA=G,cA=BA,G>Q)break;for(var X=Math.min(BA,G-2),eA=0,oA=0;oA<X;++oA){var uA=k-BA+oA&32767,aA=v[uA],wA=uA-aA&32767;wA>eA&&(eA=wA,nA=uA)}}}O=nA,nA=v[O],BA+=O-nA&32767}if(cA){V[$++]=268435456|vu[tA]<<18|tf[cA];var bA=vu[tA]&31,SA=tf[cA]&31;R+=Hl[bA]+Nl[SA],++q[257+bA],++Y[SA],_=k+tA,++W}else V[$++]=e[k],++q[e[k]]}}for(k=Math.max(k,_);k<a;++k)V[$++]=e[k],++q[e[k]];B=nf(e,c,d,V,q,Y,R,$,L,k-L,B),d||(i.r=B&7|c[B/8|0]<<3,B-=7,i.h=U,i.p=v,i.i=k,i.w=_)}else{for(var k=i.w||0;k<a+d;k+=65535){var EA=k+65535;EA>=a&&(c[B/8|0]=d,EA=a),B=Kd(c,B+1,e.subarray(k,EA))}i.i=a}return Rd(o,0,r+lh(B)+n)},Vd=function(){var e=1,A=0;return{p:function(t){for(var r=e,n=A,i=t.length|0,a=0;a!=i;){for(var o=Math.min(a+2655,i);a<o;++a)n+=r+=t[a];r=(r&65535)+15*(r>>16),n=(n&65535)+15*(n>>16)}e=r,A=n},d:function(){return e%=65521,A%=65521,(e&255)<<24|(e&65280)<<8|(A&255)<<8|A>>8}}},O1=function(e,A,t,r,n){if(!n&&(n={l:1},A.dictionary)){var i=A.dictionary.subarray(-32768),a=new Mt(i.length+e.length);a.set(i),a.set(e,i.length),e=a,n.w=i.length}return M1(e,A.level==null?6:A.level,A.mem==null?n.l?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):20:12+A.mem,t,r,n)},zd=function(e,A,t){for(;t;++A)e[A]=t,t>>>=8},R1=function(e,A){var t=A.level,r=t==0?0:t<6?1:t==9?3:2;if(e[0]=120,e[1]=r<<6|(A.dictionary&&32),e[1]|=31-(e[0]<<8|e[1])%31,A.dictionary){var n=Vd();n.p(A.dictionary),zd(e,2,n.d())}},K1=function(e,A){return((e[0]&15)!=8||e[0]>>4>7||(e[0]<<8|e[1])%31)&&Dr(6,"invalid zlib data"),(e[1]>>5&1)==1&&Dr(6,"invalid zlib data: "+(e[1]&32?"need":"unexpected")+" dictionary"),(e[1]>>3&4)+2};function yu(e,A){A||(A={});var t=Vd();t.p(e);var r=O1(e,A,A.dictionary?6:2,4);return R1(r,A),zd(r,r.length-4,t.d()),r}function G1(e,A){return k1(e.subarray(K1(e),-4),{i:2},A,A)}var V1=typeof TextDecoder<"u"&&new TextDecoder,z1=0;try{V1.decode(Gd,{stream:!0}),z1=1}catch{}var te=function(){return typeof window<"u"?window:typeof globalThis<"u"?globalThis:typeof self<"u"?self:this}();function Oc(){te.console&&typeof te.console.log=="function"&&te.console.log.apply(te.console,arguments)}var De={log:Oc,warn:function(e){te.console&&(typeof te.console.warn=="function"?te.console.warn.apply(te.console,arguments):Oc.call(null,arguments))},error:function(e){te.console&&(typeof te.console.error=="function"?te.console.error.apply(te.console,arguments):Oc(e))}};function Rc(e,A,t){var r=new XMLHttpRequest;r.open("GET",e),r.responseType="blob",r.onload=function(){li(r.response,A,t)},r.onerror=function(){De.error("could not download file")},r.send()}function sf(e){var A=new XMLHttpRequest;A.open("HEAD",e,!1);try{A.send()}catch{}return A.status>=200&&A.status<=299}function _o(e){try{e.dispatchEvent(new MouseEvent("click"))}catch{var A=document.createEvent("MouseEvents");A.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),e.dispatchEvent(A)}}var wa,Fu,li=te.saveAs||((typeof window>"u"?"undefined":Te(window))!=="object"||window!==te?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(e,A,t){var r=te.URL||te.webkitURL,n=document.createElement("a");A=A||e.name||"download",n.download=A,n.rel="noopener",typeof e=="string"?(n.href=e,n.origin!==location.origin?sf(n.href)?Rc(e,A,t):_o(n,n.target="_blank"):_o(n)):(n.href=r.createObjectURL(e),setTimeout(function(){r.revokeObjectURL(n.href)},4e4),setTimeout(function(){_o(n)},0))}:"msSaveOrOpenBlob"in navigator?function(e,A,t){if(A=A||e.name||"download",typeof e=="string")if(sf(e))Rc(e,A,t);else{var r=document.createElement("a");r.href=e,r.target="_blank",setTimeout(function(){_o(r)})}else navigator.msSaveOrOpenBlob(function(n,i){return i===void 0?i={autoBom:!1}:Te(i)!=="object"&&(De.warn("Deprecated: Expected third argument to be a object"),i={autoBom:!i}),i.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(n.type)?new Blob(["\uFEFF",n],{type:n.type}):n}(e,t),A)}:function(e,A,t,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof e=="string")return Rc(e,A,t);var n=e.type==="application/octet-stream",i=/constructor/i.test(te.HTMLElement)||te.safari,a=/CriOS\/[\d]+/.test(navigator.userAgent);if((a||n&&i)&&(typeof FileReader>"u"?"undefined":Te(FileReader))==="object"){var o=new FileReader;o.onloadend=function(){var B=o.result;B=a?B:B.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=B:location=B,r=null},o.readAsDataURL(e)}else{var c=te.URL||te.webkitURL,d=c.createObjectURL(e);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/** * A class to parse color values * @author Stoyan Stefanov <sstoo@gmail.com> * {@link http://www.phpied.com/rgb-color-parser-in-javascript/} * @license Use it if you like it */function qd(e){var A;e=e||"",this.ok=!1,e.charAt(0)=="#"&&(e=e.substr(1,6)),e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[e=(e=e.replace(/ /g,"")).toLowerCase()]||e;for(var t=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(o){return[parseInt(o[1]),parseInt(o[2]),parseInt(o[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(o){return[parseInt(o[1],16),parseInt(o[2],16),parseInt(o[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(o){return[parseInt(o[1]+o[1],16),parseInt(o[2]+o[2],16),parseInt(o[3]+o[3],16)]}}],r=0;r<t.length;r++){var n=t[r].re,i=t[r].process,a=n.exec(e);a&&(A=i(a),this.r=A[0],this.g=A[1],this.b=A[2],this.ok=!0)}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var o=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return o.length==1&&(o="0"+o),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+o+c+d}}/** * @license * Joseph Myers does not specify a particular license for his work. * * Author: Joseph Myers * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js * * Modified by: Owen Leong */function Kc(e,A){var t=e[0],r=e[1],n=e[2],i=e[3];t=Ht(t,r,n,i,A[0],7,-680876936),i=Ht(i,t,r,n,A[1],12,-389564586),n=Ht(n,i,t,r,A[2],17,606105819),r=Ht(r,n,i,t,A[3],22,-1044525330),t=Ht(t,r,n,i,A[4],7,-176418897),i=Ht(i,t,r,n,A[5],12,1200080426),n=Ht(n,i,t,r,A[6],17,-1473231341),r=Ht(r,n,i,t,A[7],22,-45705983),t=Ht(t,r,n,i,A[8],7,1770035416),i=Ht(i,t,r,n,A[9],12,-1958414417),n=Ht(n,i,t,r,A[10],17,-42063),r=Ht(r,n,i,t,A[11],22,-1990404162),t=Ht(t,r,n,i,A[12],7,1804603682),i=Ht(i,t,r,n,A[13],12,-40341101),n=Ht(n,i,t,r,A[14],17,-1502002290),t=Nt(t,r=Ht(r,n,i,t,A[15],22,1236535329),n,i,A[1],5,-165796510),i=Nt(i,t,r,n,A[6],9,-1069501632),n=Nt(n,i,t,r,A[11],14,643717713),r=Nt(r,n,i,t,A[0],20,-373897302),t=Nt(t,r,n,i,A[5],5,-701558691),i=Nt(i,t,r,n,A[10],9,38016083),n=Nt(n,i,t,r,A[15],14,-660478335),r=Nt(r,n,i,t,A[4],20,-405537848),t=Nt(t,r,n,i,A[9],5,568446438),i=Nt(i,t,r,n,A[14],9,-1019803690),n=Nt(n,i,t,r,A[3],14,-187363961),r=Nt(r,n,i,t,A[8],20,1163531501),t=Nt(t,r,n,i,A[13],5,-1444681467),i=Nt(i,t,r,n,A[2],9,-51403784),n=Nt(n,i,t,r,A[7],14,1735328473),t=jt(t,r=Nt(r,n,i,t,A[12],20,-1926607734),n,i,A[5],4,-378558),i=jt(i,t,r,n,A[8],11,-2022574463),n=jt(n,i,t,r,A[11],16,1839030562),r=jt(r,n,i,t,A[14],23,-35309556),t=jt(t,r,n,i,A[1],4,-1530992060),i=jt(i,t,r,n,A[4],11,1272893353),n=jt(n,i,t,r,A[7],16,-155497632),r=jt(r,n,i,t,A[10],23,-1094730640),t=jt(t,r,n,i,A[13],4,681279174),i=jt(i,t,r,n,A[0],11,-358537222),n=jt(n,i,t,r,A[3],16,-722521979),r=jt(r,n,i,t,A[6],23,76029189),t=jt(t,r,n,i,A[9],4,-640364487),i=jt(i,t,r,n,A[12],11,-421815835),n=jt(n,i,t,r,A[15],16,530742520),t=Dt(t,r=jt(r,n,i,t,A[2],23,-995338651),n,i,A[0],6,-198630844),i=Dt(i,t,r,n,A[7],10,1126891415),n=Dt(n,i,t,r,A[14],15,-1416354905),r=Dt(r,n,i,t,A[5],21,-57434055),t=Dt(t,r,n,i,A[12],6,1700485571),i=Dt(i,t,r,n,A[3],10,-1894986606),n=Dt(n,i,t,r,A[10],15,-1051523),r=Dt(r,n,i,t,A[1],21,-2054922799),t=Dt(t,r,n,i,A[8],6,1873313359),i=Dt(i,t,r,n,A[15],10,-30611744),n=Dt(n,i,t,r,A[6],15,-1560198380),r=Dt(r,n,i,t,A[13],21,1309151649),t=Dt(t,r,n,i,A[4],6,-145523070),i=Dt(i,t,r,n,A[11],10,-1120210379),n=Dt(n,i,t,r,A[2],15,718787259),r=Dt(r,n,i,t,A[9],21,-343485551),e[0]=Mn(t,e[0]),e[1]=Mn(r,e[1]),e[2]=Mn(n,e[2]),e[3]=Mn(i,e[3])}function jl(e,A,t,r,n,i){return A=Mn(Mn(A,e),Mn(r,i)),Mn(A<<n|A>>>32-n,t)}function Ht(e,A,t,r,n,i,a){return jl(A&t|~A&r,e,A,n,i,a)}function Nt(e,A,t,r,n,i,a){return jl(A&r|t&~r,e,A,n,i,a)}function jt(e,A,t,r,n,i,a){return jl(A^t^r,e,A,n,i,a)}function Dt(e,A,t,r,n,i,a){return jl(t^(A|~r),e,A,n,i,a)}function Wd(e){var A,t=e.length,r=[1732584193,-271733879,-1732584194,271733878];for(A=64;A<=e.length;A+=64)Kc(r,q1(e.substring(A-64,A)));e=e.substring(A-64);var n=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(A=0;A<e.length;A++)n[A>>2]|=e.charCodeAt(A)<<(A%4<<3);if(n[A>>2]|=128<<(A%4<<3),A>55)for(Kc(r,n),A=0;A<16;A++)n[A]=0;return n[14]=8*t,Kc(r,n),r}function q1(e){var A,t=[];for(A=0;A<64;A+=4)t[A>>2]=e.charCodeAt(A)+(e.charCodeAt(A+1)<<8)+(e.charCodeAt(A+2)<<16)+(e.charCodeAt(A+3)<<24);return t}wa=te.atob.bind(te),Fu=te.btoa.bind(te);var af="0123456789abcdef".split("");function W1(e){for(var A="",t=0;t<4;t++)A+=af[e>>8*t+4&15]+af[e>>8*t&15];return A}function J1(e){return String.fromCharCode((255&e)>>0,(65280&e)>>8,(16711680&e)>>16,(4278190080&e)>>24)}function Qu(e){return Wd(e).map(J1).join("")}var X1=function(e){for(var A=0;A<e.length;A++)e[A]=W1(e[A]);return e.join("")}(Wd("hello"))!="5d41402abc4b2a76b9719d911017c592";function Mn(e,A){if(X1){var t=(65535&e)+(65535&A);return(e>>16)+(A>>16)+(t>>16)<<16|65535&t}return e+A&4294967295}/** * @license * FPDF is released under a permissive license: there is no usage restriction. * You may embed it freely in your application (commercial or not), with or * without modifications. * * Reference: http://www.fpdf.org/en/script/script37.php */function xu(e,A){var t,r,n,i;if(e!==t){for(var a=(n=e,i=1+(256/e.length>>0),new Array(i+1).join(n)),o=[],c=0;c<256;c++)o[c]=c;var d=0;for(c=0;c<256;c++){var B=o[c];d=(d+B+a.charCodeAt(c))%256,o[c]=o[d],o[d]=B}t=e,r=o}else o=r;var p=A.length,m=0,g=0,C="";for(c=0;c<p;c++)g=(g+(B=o[m=(m+1)%256]))%256,o[m]=o[g],o[g]=B,a=o[(o[m]+o[g])%256],C+=String.fromCharCode(A.charCodeAt(c)^a);return C}/** * @license * Licensed under the MIT License. * http://opensource.org/licenses/mit-license * Author: Owen Leong (@owenl131) * Date: 15 Oct 2020 * References: * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt * https://github.com/foliojs/pdfkit/blob/master/lib/security.js * http://www.fpdf.org/en/script/script37.php */var of={print:4,modify:8,copy:16,"annot-forms":32};function as(e,A,t,r){this.v=1,this.r=2;var n=192;e.forEach(function(o){if(of.perm!==void 0)throw new Error("Invalid permission: "+o);n+=of[o]}),this.padding="(¿N^NuAd\0NVÿú\b..\0¶Ðh>/\f©þdSiz";var i=(A+this.padding).substr(0,32),a=(t+this.padding).substr(0,32);this.O=this.processOwnerPassword(i,a),this.P=-(1+(255^n)),this.encryptionKey=Qu(i+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=xu(this.encryptionKey,this.padding)}function os(e){if(/[^\u0000-\u00ff]/.test(e))throw new Error("Invalid PDF Name Object: "+e+", Only accept ASCII characters.");for(var A="",t=e.length,r=0;r<t;r++){var n=e.charCodeAt(r);n<33||n===35||n===37||n===40||n===41||n===47||n===60||n===62||n===91||n===93||n===123||n===125||n>126?A+="#"+("0"+n.toString(16)).slice(-2):A+=e[r]}return A}function lf(e){if(Te(e)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var A={};this.subscribe=function(t,r,n){if(n=n||!1,typeof t!="string"||typeof r!="function"||typeof n!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");A.hasOwnProperty(t)||(A[t]={});var i=Math.random().toString(35);return A[t][i]=[r,!!n],i},this.unsubscribe=function(t){for(var r in A)if(A[r][t])return delete A[r][t],Object.keys(A[r]).length===0&&delete A[r],!0;return!1},this.publish=function(t){if(A.hasOwnProperty(t)){var r=Array.prototype.slice.call(arguments,1),n=[];for(var i in A[t]){var a=A[t][i];try{a[0].apply(e,r)}catch(o){te.console&&De.error("jsPDF PubSub Error",o.message,o)}a[1]&&n.push(i)}n.length&&n.forEach(this.unsubscribe)}},this.getTopics=function(){return A}}function ml(e){if(!(this instanceof ml))return new ml(e);var A="opacity,stroke-opacity".split(",");for(var t in e)e.hasOwnProperty(t)&&A.indexOf(t)>=0&&(this[t]=e[t]);this.id="",this.objectNumber=-1}function Jd(e,A){this.gState=e,this.matrix=A,this.id="",this.objectNumber=-1}function ci(e,A,t,r,n){if(!(this instanceof ci))return new ci(e,A,t,r,n);this.type=e==="axial"?2:3,this.coords=A,this.colors=t,Jd.call(this,r,n)}function hs(e,A,t,r,n){if(!(this instanceof hs))return new hs(e,A,t,r,n);this.boundingBox=e,this.xStep=A,this.yStep=t,this.stream="",this.cloneIndex=0,Jd.call(this,r,n)}function $A(e){var A,t=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],n=arguments[2],i=arguments[3],a=[],o=1,c=16,d="S",B=null;Te(e=e||{})==="object"&&(t=e.orientation,r=e.unit||r,n=e.format||n,i=e.compress||e.compressPdf||i,(B=e.encryption||null)!==null&&(B.userPassword=B.userPassword||"",B.ownerPassword=B.ownerPassword||"",B.userPermissions=B.userPermissions||[]),o=typeof e.userUnit=="number"?Math.abs(e.userUnit):1,e.precision!==void 0&&(A=e.precision),e.floatPrecision!==void 0&&(c=e.floatPrecision),d=e.defaultPathOperation||"S"),a=e.filters||(i===!0?["FlateEncode"]:a),r=r||"mm",t=(""+(t||"P")).toLowerCase();var p=e.putOnlyUsedFonts||!1,m={},g={internal:{},__private__:{}};g.__private__.PubSub=lf;var C="1.3",v=g.__private__.getPdfVersion=function(){return C};g.__private__.setPdfVersion=function(h){C=h};var U={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};g.__private__.getPageFormats=function(){return U};var F=g.__private__.getPageFormat=function(h){return U[h]};n=n||"a4";var x={COMPAT:"compat",ADVANCED:"advanced"},N=x.COMPAT;function V(){this.saveGraphicsState(),K(new ee(NA,0,0,-NA,0,yn()*NA).toString()+" cm"),this.setFontSize(this.getFontSize()/NA),d="n",N=x.ADVANCED}function q(){this.restoreGraphicsState(),d="S",N=x.COMPAT}var Y=g.__private__.combineFontStyleAndFontWeight=function(h,y){if(h=="bold"&&y=="normal"||h=="bold"&&y==400||h=="normal"&&y=="italic"||h=="bold"&&y=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return y&&(h=y==400||y==="normal"?h==="italic"?"italic":"normal":y!=700&&y!=="bold"||h!=="normal"?(y==700?"bold":y)+""+h:"bold"),h};g.advancedAPI=function(h){var y=N===x.COMPAT;return y&&V.call(this),typeof h!="function"||(h(this),y&&q.call(this)),this},g.compatAPI=function(h){var y=N===x.ADVANCED;return y&&q.call(this),typeof h!="function"||(h(this),y&&V.call(this)),this},g.isAdvancedAPI=function(){return N===x.ADVANCED};var W,R=function(h){if(N!==x.ADVANCED)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},k=g.roundToPrecision=g.__private__.roundToPrecision=function(h,y){var M=A||y;if(isNaN(h)||isNaN(M))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(M).replace(/0+$/,"")};W=g.hpf=g.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return k(h,16)};var $=g.f2=g.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return k(h,2)},_=g.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return k(h,3)},L=g.scale=g.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return N===x.COMPAT?h*NA:N===x.ADVANCED?h:void 0},D=function(h){return N===x.COMPAT?yn()-h:N===x.ADVANCED?h:void 0},O=function(h){return L(D(h))};g.__private__.setPrecision=g.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(A=parseInt(h,10))};var nA,sA="00000000000000000000000000000000",oA=g.__private__.getFileId=function(){return sA},tA=g.__private__.setFileId=function(h){return sA=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():sA.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),B!==null&&(It=new as(B.userPermissions,B.userPassword,B.ownerPassword,sA)),sA};g.setFileId=function(h){return tA(h),this},g.getFileId=function(){return oA()};var cA=g.__private__.convertDateToPDFDate=function(h){var y=h.getTimezoneOffset(),M=y<0?"+":"-",J=Math.floor(Math.abs(y/60)),lA=Math.abs(y%60),pA=[M,P(J),"'",P(lA),"'"].join("");return["D:",h.getFullYear(),P(h.getMonth()+1),P(h.getDate()),P(h.getHours()),P(h.getMinutes()),P(h.getSeconds()),pA].join("")},z=g.__private__.convertPDFDateToDate=function(h){var y=parseInt(h.substr(2,4),10),M=parseInt(h.substr(6,2),10)-1,J=parseInt(h.substr(8,2),10),lA=parseInt(h.substr(10,2),10),pA=parseInt(h.substr(12,2),10),FA=parseInt(h.substr(14,2),10);return new Date(y,M,J,lA,pA,FA,0)},BA=g.__private__.setCreationDate=function(h){var y;if(h===void 0&&(h=new Date),h instanceof Date)y=cA(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");y=h}return nA=y},Q=g.__private__.getCreationDate=function(h){var y=nA;return h==="jsDate"&&(y=z(nA)),y};g.setCreationDate=function(h){return BA(h),this},g.getCreationDate=function(h){return Q(h)};var j,P=g.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},G=g.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},X=0,eA=[],uA=[],aA=0,wA=[],bA=[],SA=!1,EA=uA,XA=function(){X=0,aA=0,uA=[],eA=[],wA=[],sn=at(),Fr=at()};g.__private__.setCustomOutputDestination=function(h){SA=!0,EA=h};var gA=function(h){SA||(EA=h)};g.__private__.resetCustomOutputDestination=function(){SA=!1,EA=uA};var K=g.__private__.out=function(h){return h=h.toString(),aA+=h.length+1,EA.push(h),EA},WA=g.__private__.write=function(h){return K(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},kA=g.__private__.getArrayBuffer=function(h){for(var y=h.length,M=new ArrayBuffer(y),J=new Uint8Array(M);y--;)J[y]=h.charCodeAt(y);return M},QA=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];g.__private__.getStandardFonts=function(){return QA};var LA=e.fontSize||16;g.__private__.setFontSize=g.setFontSize=function(h){return LA=N===x.ADVANCED?h/NA:h,this};var TA,_A=g.__private__.getFontSize=g.getFontSize=function(){return N===x.COMPAT?LA:LA*NA},qA=e.R2L||!1;g.__private__.setR2L=g.setR2L=function(h){return qA=h,this},g.__private__.getR2L=g.getR2L=function(){return qA};var PA,se=g.__private__.setZoomMode=function(h){var y=[void 0,null,"fullwidth","fullheight","fullpage","original"];if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))TA=h;else if(isNaN(h)){if(y.indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');TA=h}else TA=parseInt(h,10)};g.__private__.getZoomMode=function(){return TA};var he,pe=g.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');PA=h};g.__private__.getPageMode=function(){return PA};var Se=g.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');he=h};g.__private__.getLayoutMode=function(){return he},g.__private__.setDisplayMode=g.setDisplayMode=function(h,y,M){return se(h),Se(y),pe(M),this};var GA={title:"",subject:"",author:"",keywords:"",creator:""};g.__private__.getDocumentProperty=function(h){if(Object.keys(GA).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return GA[h]},g.__private__.getDocumentProperties=function(){return GA},g.__private__.setDocumentProperties=g.setProperties=g.setDocumentProperties=function(h){for(var y in GA)GA.hasOwnProperty(y)&&h[y]&&(GA[y]=h[y]);return this},g.__private__.setDocumentProperty=function(h,y){if(Object.keys(GA).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return GA[h]=y};var le,NA,ft,ve,zt,Le={},ke={},er=[],Fe={},Or={},Ge={},Ae={},re=null,YA=0,zA=[],de=new lf(g),Ot=e.hotfixes||[],We={},Rr={},Kr=[],ee=function h(y,M,J,lA,pA,FA){if(!(this instanceof h))return new h(y,M,J,lA,pA,FA);isNaN(y)&&(y=1),isNaN(M)&&(M=0),isNaN(J)&&(J=0),isNaN(lA)&&(lA=1),isNaN(pA)&&(pA=0),isNaN(FA)&&(FA=0),this._matrix=[y,M,J,lA,pA,FA]};Object.defineProperty(ee.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(ee.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(ee.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(ee.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(ee.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(ee.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(ee.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(ee.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(ee.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(ee.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),ee.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(W).join(h)},ee.prototype.multiply=function(h){var y=h.sx*this.sx+h.shy*this.shx,M=h.sx*this.shy+h.shy*this.sy,J=h.shx*this.sx+h.sy*this.shx,lA=h.shx*this.shy+h.sy*this.sy,pA=h.tx*this.sx+h.ty*this.shx+this.tx,FA=h.tx*this.shy+h.ty*this.sy+this.ty;return new ee(y,M,J,lA,pA,FA)},ee.prototype.decompose=function(){var h=this.sx,y=this.shy,M=this.shx,J=this.sy,lA=this.tx,pA=this.ty,FA=Math.sqrt(h*h+y*y),OA=(h/=FA)*M+(y/=FA)*J;M-=h*OA,J-=y*OA;var JA=Math.sqrt(M*M+J*J);return OA/=JA,h*(J/=JA)<y*(M/=JA)&&(h=-h,y=-y,OA=-OA,FA=-FA),{scale:new ee(FA,0,0,JA,0,0),translate:new ee(1,0,0,1,lA,pA),rotate:new ee(h,y,-y,h,0,0),skew:new ee(1,0,OA,1,0,0)}},ee.prototype.toString=function(h){return this.join(" ")},ee.prototype.inversed=function(){var h=this.sx,y=this.shy,M=this.shx,J=this.sy,lA=this.tx,pA=this.ty,FA=1/(h*J-y*M),OA=J*FA,JA=-y*FA,ce=-M*FA,ae=h*FA;return new ee(OA,JA,ce,ae,-OA*lA-ce*pA,-JA*lA-ae*pA)},ee.prototype.applyToPoint=function(h){var y=h.x*this.sx+h.y*this.shx+this.tx,M=h.x*this.shy+h.y*this.sy+this.ty;return new Di(y,M)},ee.prototype.applyToRectangle=function(h){var y=this.applyToPoint(h),M=this.applyToPoint(new Di(h.x+h.w,h.y+h.h));return new Ns(y.x,y.y,M.x-y.x,M.y-y.y)},ee.prototype.clone=function(){var h=this.sx,y=this.shy,M=this.shx,J=this.sy,lA=this.tx,pA=this.ty;return new ee(h,y,M,J,lA,pA)},g.Matrix=ee;var yr=g.matrixMult=function(h,y){return y.multiply(h)},Gr=new ee(1,0,0,1,0,0);g.unitMatrix=g.identityMatrix=Gr;var qt=function(h,y){if(!Or[h]){var M=(y instanceof ci?"Sh":"P")+(Object.keys(Fe).length+1).toString(10);y.id=M,Or[h]=M,Fe[M]=y,de.publish("addPattern",y)}};g.ShadingPattern=ci,g.TilingPattern=hs,g.addShadingPattern=function(h,y){return R("addShadingPattern()"),qt(h,y),this},g.beginTilingPattern=function(h){R("beginTilingPattern()"),io(h.boundingBox[0],h.boundingBox[1],h.boundingBox[2]-h.boundingBox[0],h.boundingBox[3]-h.boundingBox[1],h.matrix)},g.endTilingPattern=function(h,y){R("endTilingPattern()"),y.stream=bA[j].join(` `),qt(h,y),de.publish("endTilingPattern",y),Kr.pop().restore()};var dt=g.__private__.newObject=function(){var h=at();return tr(h,!0),h},at=g.__private__.newObjectDeferred=function(){return X++,eA[X]=function(){return aA},X},tr=function(h,y){return y=typeof y=="boolean"&&y,eA[h]=aA,y&&K(h+" 0 obj"),h},yi=g.__private__.newAdditionalObject=function(){var h={objId:at(),content:""};return wA.push(h),h},sn=at(),Fr=at(),Qr=g.__private__.decodeColorString=function(h){var y=h.split(" ");if(y.length!==2||y[1]!=="g"&&y[1]!=="G")y.length===5&&(y[4]==="k"||y[4]==="K")&&(y=[(1-y[0])*(1-y[3]),(1-y[1])*(1-y[3]),(1-y[2])*(1-y[3]),"r"]);else{var M=parseFloat(y[0]);y=[M,M,M,"r"]}for(var J="#",lA=0;lA<3;lA++)J+=("0"+Math.floor(255*parseFloat(y[lA])).toString(16)).slice(-2);return J},xr=g.__private__.encodeColorString=function(h){var y;typeof h=="string"&&(h={ch1:h});var M=h.ch1,J=h.ch2,lA=h.ch3,pA=h.ch4,FA=h.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof M=="string"&&M.charAt(0)!=="#"){var OA=new qd(M);if(OA.ok)M=OA.toHex();else if(!/^\d*\.?\d*$/.test(M))throw new Error('Invalid color "'+M+'" passed to jsPDF.encodeColorString.')}if(typeof M=="string"&&/^#[0-9A-Fa-f]{3}$/.test(M)&&(M="#"+M[1]+M[1]+M[2]+M[2]+M[3]+M[3]),typeof M=="string"&&/^#[0-9A-Fa-f]{6}$/.test(M)){var JA=parseInt(M.substr(1),16);M=JA>>16&255,J=JA>>8&255,lA=255&JA}if(J===void 0||pA===void 0&&M===J&&J===lA)if(typeof M=="string")y=M+" "+FA[0];else switch(h.precision){case 2:y=$(M/255)+" "+FA[0];break;case 3:default:y=_(M/255)+" "+FA[0]}else if(pA===void 0||Te(pA)==="object"){if(pA&&!isNaN(pA.a)&&pA.a===0)return y=["1.","1.","1.",FA[1]].join(" ");if(typeof M=="string")y=[M,J,lA,FA[1]].join(" ");else switch(h.precision){case 2:y=[$(M/255),$(J/255),$(lA/255),FA[1]].join(" ");break;default:case 3:y=[_(M/255),_(J/255),_(lA/255),FA[1]].join(" ")}}else if(typeof M=="string")y=[M,J,lA,pA,FA[2]].join(" ");else switch(h.precision){case 2:y=[$(M),$(J),$(lA),$(pA),FA[2]].join(" ");break;case 3:default:y=[_(M),_(J),_(lA),_(pA),FA[2]].join(" ")}return y},Vr=g.__private__.getFilters=function(){return a},cr=g.__private__.putStream=function(h){var y=(h=h||{}).data||"",M=h.filters||Vr(),J=h.alreadyAppliedFilters||[],lA=h.addLength1||!1,pA=y.length,FA=h.objectId,OA=function(_t){return _t};if(B!==null&&FA===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");B!==null&&(OA=It.encryptor(FA,0));var JA={};M===!0&&(M=["FlateEncode"]);var ce=h.additionalKeyValues||[],ae=(JA=$A.API.processDataByFilters!==void 0?$A.API.processDataByFilters(y,M):{data:y,reverseChain:[]}).reverseChain+(Array.isArray(J)?J.join(" "):J.toString());if(JA.data.length!==0&&(ce.push({key:"Length",value:JA.data.length}),lA===!0&&ce.push({key:"Length1",value:pA})),ae.length!=0)if(ae.split("/").length-1==1)ce.push({key:"Filter",value:ae});else{ce.push({key:"Filter",value:"["+ae+"]"});for(var Ce=0;Ce<ce.length;Ce+=1)if(ce[Ce].key==="DecodeParms"){for(var ze=[],Je=0;Je<JA.reverseChain.split("/").length-1;Je+=1)ze.push("null");ze.push(ce[Ce].value),ce[Ce].value="["+ze.join(" ")+"]"}}K("<<");for(var ot=0;ot<ce.length;ot++)K("/"+ce[ot].key+" "+ce[ot].value);K(">>"),JA.data.length!==0&&(K("stream"),K(OA(JA.data)),K("endstream"))},zr=g.__private__.putPage=function(h){var y=h.number,M=h.data,J=h.objId,lA=h.contentsObjId;tr(J,!0),K("<</Type /Page"),K("/Parent "+h.rootDictionaryObjId+" 0 R"),K("/Resources "+h.resourceDictionaryObjId+" 0 R"),K("/MediaBox ["+parseFloat(W(h.mediaBox.bottomLeftX))+" "+parseFloat(W(h.mediaBox.bottomLeftY))+" "+W(h.mediaBox.topRightX)+" "+W(h.mediaBox.topRightY)+"]"),h.cropBox!==null&&K("/CropBox ["+W(h.cropBox.bottomLeftX)+" "+W(h.cropBox.bottomLeftY)+" "+W(h.cropBox.topRightX)+" "+W(h.cropBox.topRightY)+"]"),h.bleedBox!==null&&K("/BleedBox ["+W(h.bleedBox.bottomLeftX)+" "+W(h.bleedBox.bottomLeftY)+" "+W(h.bleedBox.topRightX)+" "+W(h.bleedBox.topRightY)+"]"),h.trimBox!==null&&K("/TrimBox ["+W(h.trimBox.bottomLeftX)+" "+W(h.trimBox.bottomLeftY)+" "+W(h.trimBox.topRightX)+" "+W(h.trimBox.topRightY)+"]"),h.artBox!==null&&K("/ArtBox ["+W(h.artBox.bottomLeftX)+" "+W(h.artBox.bottomLeftY)+" "+W(h.artBox.topRightX)+" "+W(h.artBox.topRightY)+"]"),typeof h.userUnit=="number"&&h.userUnit!==1&&K("/UserUnit "+h.userUnit),de.publish("putPage",{objId:J,pageContext:zA[y],pageNumber:y,page:M}),K("/Contents "+lA+" 0 R"),K(">>"),K("endobj");var pA=M.join(` `);return N===x.ADVANCED&&(pA+=` Q`),tr(lA,!0),cr({data:pA,filters:Vr(),objectId:lA}),K("endobj"),J},Yn=g.__private__.putPages=function(){var h,y,M=[];for(h=1;h<=YA;h++)zA[h].objId=at(),zA[h].contentsObjId=at();for(h=1;h<=YA;h++)M.push(zr({number:h,data:bA[h],objId:zA[h].objId,contentsObjId:zA[h].contentsObjId,mediaBox:zA[h].mediaBox,cropBox:zA[h].cropBox,bleedBox:zA[h].bleedBox,trimBox:zA[h].trimBox,artBox:zA[h].artBox,userUnit:zA[h].userUnit,rootDictionaryObjId:sn,resourceDictionaryObjId:Fr}));tr(sn,!0),K("<</Type /Pages");var J="/Kids [";for(y=0;y<YA;y++)J+=M[y]+" 0 R ";K(J+"]"),K("/Count "+YA),K(">>"),K("endobj"),de.publish("postPutPages")},Fi=function(h){de.publish("putFont",{font:h,out:K,newObject:dt,putStream:cr}),h.isAlreadyPutted!==!0&&(h.objectNumber=dt(),K("<<"),K("/Type /Font"),K("/BaseFont /"+os(h.postScriptName)),K("/Subtype /Type1"),typeof h.encoding=="string"&&K("/Encoding /"+h.encoding),K("/FirstChar 32"),K("/LastChar 255"),K(">>"),K("endobj"))},Qi=function(){for(var h in Le)Le.hasOwnProperty(h)&&(p===!1||p===!0&&m.hasOwnProperty(h))&&Fi(Le[h])},xi=function(h){h.objectNumber=dt();var y=[];y.push({key:"Type",value:"/XObject"}),y.push({key:"Subtype",value:"/Form"}),y.push({key:"BBox",value:"["+[W(h.x),W(h.y),W(h.x+h.width),W(h.y+h.height)].join(" ")+"]"}),y.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var M=h.pages[1].join(` `);cr({data:M,additionalKeyValues:y,objectId:h.objectNumber}),K("endobj")},Ui=function(){for(var h in We)We.hasOwnProperty(h)&&xi(We[h])},Oa=function(h,y){var M,J=[],lA=1/(y-1);for(M=0;M<1;M+=lA)J.push(M);if(J.push(1),h[0].offset!=0){var pA={offset:0,color:h[0].color};h.unshift(pA)}if(h[h.length-1].offset!=1){var FA={offset:1,color:h[h.length-1].color};h.push(FA)}for(var OA="",JA=0,ce=0;ce<J.length;ce++){for(M=J[ce];M>h[JA+1].offset;)JA++;var ae=h[JA].offset,Ce=(M-ae)/(h[JA+1].offset-ae),ze=h[JA].color,Je=h[JA+1].color;OA+=G(Math.round((1-Ce)*ze[0]+Ce*Je[0]).toString(16))+G(Math.round((1-Ce)*ze[1]+Ce*Je[1]).toString(16))+G(Math.round((1-Ce)*ze[2]+Ce*Je[2]).toString(16))}return OA.trim()},zl=function(h,y){y||(y=21);var M=dt(),J=Oa(h.colors,y),lA=[];lA.push({key:"FunctionType",value:"0"}),lA.push({key:"Domain",value:"[0.0 1.0]"}),lA.push({key:"Size",value:"["+y+"]"}),lA.push({key:"BitsPerSample",value:"8"}),lA.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),lA.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),cr({data:J,additionalKeyValues:lA,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:M}),K("endobj"),h.objectNumber=dt(),K("<< /ShadingType "+h.type),K("/ColorSpace /DeviceRGB");var pA="/Coords ["+W(parseFloat(h.coords[0]))+" "+W(parseFloat(h.coords[1]))+" ";h.type===2?pA+=W(parseFloat(h.coords[2]))+" "+W(parseFloat(h.coords[3])):pA+=W(parseFloat(h.coords[2]))+" "+W(parseFloat(h.coords[3]))+" "+W(parseFloat(h.coords[4]))+" "+W(parseFloat(h.coords[5])),K(pA+="]"),h.matrix&&K("/Matrix ["+h.matrix.toString()+"]"),K("/Function "+M+" 0 R"),K("/Extend [true true]"),K(">>"),K("endobj")},ql=function(h,y){var M=at(),J=dt();y.push({resourcesOid:M,objectOid:J}),h.objectNumber=J;var lA=[];lA.push({key:"Type",value:"/Pattern"}),lA.push({key:"PatternType",value:"1"}),lA.push({key:"PaintType",value:"1"}),lA.push({key:"TilingType",value:"1"}),lA.push({key:"BBox",value:"["+h.boundingBox.map(W).join(" ")+"]"}),lA.push({key:"XStep",value:W(h.xStep)}),lA.push({key:"YStep",value:W(h.yStep)}),lA.push({key:"Resources",value:M+" 0 R"}),h.matrix&&lA.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),cr({data:h.stream,additionalKeyValues:lA,objectId:h.objectNumber}),K("endobj")},Si=function(h){var y;for(y in Fe)Fe.hasOwnProperty(y)&&(Fe[y]instanceof ci?zl(Fe[y]):Fe[y]instanceof hs&&ql(Fe[y],h))},Ra=function(h){for(var y in h.objectNumber=dt(),K("<<"),h)switch(y){case"opacity":K("/ca "+$(h[y]));break;case"stroke-opacity":K("/CA "+$(h[y]))}K(">>"),K("endobj")},Wl=function(){var h;for(h in Ge)Ge.hasOwnProperty(h)&&Ra(Ge[h])},Fs=function(){for(var h in K("/XObject <<"),We)We.hasOwnProperty(h)&&We[h].objectNumber>=0&&K("/"+h+" "+We[h].objectNumber+" 0 R");de.publish("putXobjectDict"),K(">>")},Jl=function(){It.oid=dt(),K("<<"),K("/Filter /Standard"),K("/V "+It.v),K("/R "+It.r),K("/U <"+It.toHexString(It.U)+">"),K("/O <"+It.toHexString(It.O)+">"),K("/P "+It.P),K(">>"),K("endobj")},Ka=function(){for(var h in K("/Font <<"),Le)Le.hasOwnProperty(h)&&(p===!1||p===!0&&m.hasOwnProperty(h))&&K("/"+h+" "+Le[h].objectNumber+" 0 R");K(">>")},Xl=function(){if(Object.keys(Fe).length>0){for(var h in K("/Shading <<"),Fe)Fe.hasOwnProperty(h)&&Fe[h]instanceof ci&&Fe[h].objectNumber>=0&&K("/"+h+" "+Fe[h].objectNumber+" 0 R");de.publish("putShadingPatternDict"),K(">>")}},Ei=function(h){if(Object.keys(Fe).length>0){for(var y in K("/Pattern <<"),Fe)Fe.hasOwnProperty(y)&&Fe[y]instanceof g.TilingPattern&&Fe[y].objectNumber>=0&&Fe[y].objectNumber<h&&K("/"+y+" "+Fe[y].objectNumber+" 0 R");de.publish("putTilingPatternDict"),K(">>")}},Yl=function(){if(Object.keys(Ge).length>0){var h;for(h in K("/ExtGState <<"),Ge)Ge.hasOwnProperty(h)&&Ge[h].objectNumber>=0&&K("/"+h+" "+Ge[h].objectNumber+" 0 R");de.publish("putGStateDict"),K(">>")}},Ze=function(h){tr(h.resourcesOid,!0),K("<<"),K("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),Ka(),Xl(),Ei(h.objectOid),Yl(),Fs(),K(">>"),K("endobj")},Ga=function(){var h=[];Qi(),Wl(),Ui(),Si(h),de.publish("putResources"),h.forEach(Ze),Ze({resourcesOid:Fr,objectOid:Number.MAX_SAFE_INTEGER}),de.publish("postPutResources")},Va=function(){de.publish("putAdditionalObjects");for(var h=0;h<wA.length;h++){var y=wA[h];tr(y.objId,!0),K(y.content),K("endobj")}de.publish("postPutAdditionalObjects")},za=function(h){ke[h.fontName]=ke[h.fontName]||{},ke[h.fontName][h.fontStyle]=h.id},Qs=function(h,y,M,J,lA){var pA={id:"F"+(Object.keys(Le).length+1).toString(10),postScriptName:h,fontName:y,fontStyle:M,encoding:J,isStandardFont:lA||!1,metadata:{}};return de.publish("addFont",{font:pA,instance:this}),Le[pA.id]=pA,za(pA),pA.id},Zl=function(h){for(var y=0,M=QA.length;y<M;y++){var J=Qs.call(this,h[y][0],h[y][1],h[y][2],QA[y][3],!0);p===!1&&(m[J]=!0);var lA=h[y][0].split("-");za({id:J,fontName:lA[0],fontStyle:lA[1]||""})}de.publish("addFonts",{fonts:Le,dictionary:ke})},Ur=function(h){return h.foo=function(){try{return h.apply(this,arguments)}catch(J){var y=J.stack||"";~y.indexOf(" at ")&&(y=y.split(" at ")[1]);var M="Error in function "+y.split(` `)[0].split("<")[0]+": "+J.message;if(!te.console)throw new Error(M);te.console.error(M,J),te.alert&&alert(M)}},h.foo.bar=h,h.foo},Li=function(h,y){var M,J,lA,pA,FA,OA,JA,ce,ae;if(lA=(y=y||{}).sourceEncoding||"Unicode",FA=y.outputEncoding,(y.autoencode||FA)&&Le[le].metadata&&Le[le].metadata[lA]&&Le[le].metadata[lA].encoding&&(pA=Le[le].metadata[lA].encoding,!FA&&Le[le].encoding&&(FA=Le[le].encoding),!FA&&pA.codePages&&(FA=pA.codePages[0]),typeof FA=="string"&&(FA=pA[FA]),FA)){for(JA=!1,OA=[],M=0,J=h.length;M<J;M++)(ce=FA[h.charCodeAt(M)])?OA.push(String.fromCharCode(ce)):OA.push(h[M]),OA[M].charCodeAt(0)>>8&&(JA=!0);h=OA.join("")}for(M=h.length;JA===void 0&&M!==0;)h.charCodeAt(M-1)>>8&&(JA=!0),M--;if(!JA)return h;for(OA=y.noBOM?[]:[254,255],M=0,J=h.length;M<J;M++){if((ae=(ce=h.charCodeAt(M))>>8)>>8)throw new Error("Character at position "+M+" of string '"+h+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");OA.push(ae),OA.push(ce-(ae<<8))}return String.fromCharCode.apply(void 0,OA)},Wt=g.__private__.pdfEscape=g.pdfEscape=function(h,y){return Li(h,y).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},xs=g.__private__.beginPage=function(h){bA[++YA]=[],zA[YA]={objId:0,contentsObjId:0,userUnit:Number(o),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Wa(YA),gA(bA[j])},qa=function(h,y){var M,J,lA;switch(t=y||t,typeof h=="string"&&(M=F(h.toLowerCase()),Array.isArray(M)&&(J=M[0],lA=M[1])),Array.isArray(h)&&(J=h[0]*NA,lA=h[1]*NA),isNaN(J)&&(J=n[0],lA=n[1]),(J>14400||lA>14400)&&(De.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),J=Math.min(14400,J),lA=Math.min(14400,lA)),n=[J,lA],t.substr(0,1)){case"l":lA>J&&(n=[lA,J]);break;case"p":J>lA&&(n=[lA,J])}xs(n),Ao(Ls),K(Sr),_s!==0&&K(_s+" J"),Hs!==0&&K(Hs+" j"),de.publish("addPage",{pageNumber:YA})},$l=function(h){h>0&&h<=YA&&(bA.splice(h,1),zA.splice(h,1),YA--,j>YA&&(j=YA),this.setPage(j))},Wa=function(h){h>0&&h<=YA&&(j=h)},Ac=g.__private__.getNumberOfPages=g.getNumberOfPages=function(){return bA.length-1},Ja=function(h,y,M){var J,lA=void 0;return M=M||{},h=h!==void 0?h:Le[le].fontName,y=y!==void 0?y:Le[le].fontStyle,J=h.toLowerCase(),ke[J]!==void 0&&ke[J][y]!==void 0?lA=ke[J][y]:ke[h]!==void 0&&ke[h][y]!==void 0?lA=ke[h][y]:M.disableWarning===!1&&De.warn("Unable to look up font label for font '"+h+"', '"+y+"'. Refer to getFontList() for available fonts."),lA||M.noFallback||(lA=ke.times[y])==null&&(lA=ke.times.normal),lA},ec=g.__private__.putInfo=function(){var h=dt(),y=function(J){return J};for(var M in B!==null&&(y=It.encryptor(h,0)),K("<<"),K("/Producer ("+Wt(y("jsPDF "+$A.version))+")"),GA)GA.hasOwnProperty(M)&&GA[M]&&K("/"+M.substr(0,1).toUpperCase()+M.substr(1)+" ("+Wt(y(GA[M]))+")");K("/CreationDate ("+Wt(y(nA))+")"),K(">>"),K("endobj")},Us=g.__private__.putCatalog=function(h){var y=(h=h||{}).rootDictionaryObjId||sn;switch(dt(),K("<<"),K("/Type /Catalog"),K("/Pages "+y+" 0 R"),TA||(TA="fullwidth"),TA){case"fullwidth":K("/OpenAction [3 0 R /FitH null]");break;case"fullheight":K("/OpenAction [3 0 R /FitV null]");break;case"fullpage":K("/OpenAction [3 0 R /Fit]");break;case"original":K("/OpenAction [3 0 R /XYZ null null 1]");break;default:var M=""+TA;M.substr(M.length-1)==="%"&&(TA=parseInt(TA)/100),typeof TA=="number"&&K("/OpenAction [3 0 R /XYZ null null "+$(TA)+"]")}switch(he||(he="continuous"),he){case"continuous":K("/PageLayout /OneColumn");break;case"single":K("/PageLayout /SinglePage");break;case"two":case"twoleft":K("/PageLayout /TwoColumnLeft");break;case"tworight":K("/PageLayout /TwoColumnRight")}PA&&K("/PageMode /"+PA),de.publish("putCatalog"),K(">>"),K("endobj")},tc=g.__private__.putTrailer=function(){K("trailer"),K("<<"),K("/Size "+(X+1)),K("/Root "+X+" 0 R"),K("/Info "+(X-1)+" 0 R"),B!==null&&K("/Encrypt "+It.oid+" 0 R"),K("/ID [ <"+sA+"> <"+sA+"> ]"),K(">>")},rc=g.__private__.putHeader=function(){K("%PDF-"+C),K("%ºß¬à")},nc=g.__private__.putXRef=function(){var h="0000000000";K("xref"),K("0 "+(X+1)),K("0000000000 65535 f ");for(var y=1;y<=X;y++)typeof eA[y]=="function"?K((h+eA[y]()).slice(-10)+" 00000 n "):eA[y]!==void 0?K((h+eA[y]).slice(-10)+" 00000 n "):K("0000000000 00000 n ")},an=g.__private__.buildDocument=function(){XA(),gA(uA),de.publish("buildDocument"),rc(),Yn(),Va(),Ga(),B!==null&&Jl(),ec(),Us();var h=aA;return nc(),tc(),K("startxref"),K(""+h),K("%%EOF"),gA(bA[j]),uA.join(` `)},Ii=g.__private__.getBlob=function(h){return new Blob([kA(h)],{type:"application/pdf"})},_i=g.output=g.__private__.output=Ur(function(h,y){switch(typeof(y=y||{})=="string"?y={filename:y}:y.filename=y.filename||"generated.pdf",h){case void 0:return an();case"save":g.save(y.filename);break;case"arraybuffer":return kA(an());case"blob":return Ii(an());case"bloburi":case"bloburl":if(te.URL!==void 0&&typeof te.URL.createObjectURL=="function")return te.URL&&te.URL.createObjectURL(Ii(an()))||void 0;De.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var M="",J=an();try{M=Fu(J)}catch{M=Fu(unescape(encodeURIComponent(J)))}return"data:application/pdf;filename="+y.filename+";base64,"+M;case"pdfobjectnewwindow":if(Object.prototype.toString.call(te)==="[object Window]"){var lA="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",pA=' integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==" crossorigin="anonymous"';y.pdfObjectUrl&&(lA=y.pdfObjectUrl,pA="");var FA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><script src="'+lA+'"'+pA+'><\/script><script >PDFObject.embed("'+this.output("dataurlstring")+'", '+JSON.stringify(y)+");<\/script></body></html>",OA=te.open();return OA!==null&&OA.document.write(FA),OA}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(te)==="[object Window]"){var JA='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe id="pdfViewer" src="'+(y.pdfJsUrl||"examples/PDF.js/web/viewer.html")+"?file=&downloadName="+y.filename+'" width="500px" height="400px" /></body></html>',ce=te.open();if(ce!==null){ce.document.write(JA);var ae=this;ce.document.documentElement.querySelector("#pdfViewer").onload=function(){ce.document.title=y.filename,ce.document.documentElement.querySelector("#pdfViewer").contentWindow.PDFViewerApplication.open(ae.output("bloburl"))}}return ce}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(te)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ce='<html><style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style><body><iframe src="'+this.output("datauristring",y)+'"></iframe></body></html>',ze=te.open();if(ze!==null&&(ze.document.write(Ce),ze.document.title=y.filename),ze||typeof safari>"u")return ze;break;case"datauri":case"dataurl":return te.document.location.href=this.output("datauristring",y);default:return null}}),Xa=function(h){return Array.isArray(Ot)===!0&&Ot.indexOf(h)>-1};switch(r){case"pt":NA=1;break;case"mm":NA=72/25.4;break;case"cm":NA=72/2.54;break;case"in":NA=72;break;case"px":NA=Xa("px_scaling")==1?.75:96/72;break;case"pc":case"em":NA=12;break;case"ex":NA=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);NA=r}var It=null;BA(),tA();var ic=function(h){return B!==null?It.encryptor(h,0):function(y){return y}},Ya=g.__private__.getPageInfo=g.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:zA[h].objId,pageNumber:h,pageContext:zA[h]}},ie=g.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var y in zA)if(zA[y].objId===h)break;return Ya(y)},sc=g.__private__.getCurrentPageInfo=g.getCurrentPageInfo=function(){return{objId:zA[j].objId,pageNumber:j,pageContext:zA[j]}};g.addPage=function(){return qa.apply(this,arguments),this},g.setPage=function(){return Wa.apply(this,arguments),gA.call(this,bA[j]),this},g.insertPage=function(h){return this.addPage(),this.movePage(j,h),this},g.movePage=function(h,y){var M,J;if(h>y){M=bA[h],J=zA[h];for(var lA=h;lA>y;lA--)bA[lA]=bA[lA-1],zA[lA]=zA[lA-1];bA[y]=M,zA[y]=J,this.setPage(y)}else if(h<y){M=bA[h],J=zA[h];for(var pA=h;pA<y;pA++)bA[pA]=bA[pA+1],zA[pA]=zA[pA+1];bA[y]=M,zA[y]=J,this.setPage(y)}return this},g.deletePage=function(){return $l.apply(this,arguments),this},g.__private__.text=g.text=function(h,y,M,J,lA){var pA,FA,OA,JA,ce,ae,Ce,ze,Je,ot=(J=J||{}).scope||this;if(typeof h=="number"&&typeof y=="number"&&(typeof M=="string"||Array.isArray(M))){var _t=M;M=y,y=h,h=_t}if(arguments[3]instanceof ee?(R("The transform parameter of text() with a Matrix value"),Je=lA):(OA=arguments[4],JA=arguments[5],Te(Ce=arguments[3])==="object"&&Ce!==null||(typeof OA=="string"&&(JA=OA,OA=null),typeof Ce=="string"&&(JA=Ce,Ce=null),typeof Ce=="number"&&(OA=Ce,Ce=null),J={flags:Ce,angle:OA,align:JA})),isNaN(y)||isNaN(M)||h==null)throw new Error("Invalid arguments passed to jsPDF.text");if(h.length===0)return ot;var Bt="",Er=!1,rr=typeof J.lineHeightFactor=="number"?J.lineHeightFactor:$n,Jr=ot.internal.scaleFactor;function so(Pe){return Pe=Pe.split(" ").join(Array(J.TabLen||9).join(" ")),Wt(Pe,Ce)}function ks(Pe){for(var Me,At=Pe.concat(),gt=[],hn=At.length;hn--;)typeof(Me=At.shift())=="string"?gt.push(Me):Array.isArray(Pe)&&(Me.length===1||Me[1]===void 0&&Me[2]===void 0)?gt.push(Me[0]):gt.push([Me[0],Me[1],Me[2]]);return gt}function Ps(Pe,Me){var At;if(typeof Pe=="string")At=Me(Pe)[0];else if(Array.isArray(Pe)){for(var gt,hn,qs=Pe.concat(),qi=[],uo=qs.length;uo--;)typeof(gt=qs.shift())=="string"?qi.push(Me(gt)[0]):Array.isArray(gt)&&typeof gt[0]=="string"&&(hn=Me(gt[0],gt[1],gt[2]),qi.push([hn[0],hn[1],hn[2]]));At=qi}return At}var ki=!1,Ms=!0;if(typeof h=="string")ki=!0;else if(Array.isArray(h)){var Os=h.concat();FA=[];for(var Pi,yt=Os.length;yt--;)(typeof(Pi=Os.shift())!="string"||Array.isArray(Pi)&&typeof Pi[0]!="string")&&(Ms=!1);ki=Ms}if(ki===!1)throw new Error('Type of text must be string or Array. "'+h+'" is not recognized.');typeof h=="string"&&(h=h.match(/[\r?\n]/)?h.split(/\r\n|\r|\n/g):[h]);var Mi=LA/ot.internal.scaleFactor,Oi=Mi*(rr-1);switch(J.baseline){case"bottom":M-=Oi;break;case"top":M+=Mi-Oi;break;case"hanging":M+=Mi-2*Oi;break;case"middle":M+=Mi/2-Oi}if((ae=J.maxWidth||0)>0&&(typeof h=="string"?h=ot.splitTextToSize(h,ae):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Pe,Me){return Pe.concat(ot.splitTextToSize(Me,ae))},[]))),pA={text:h,x:y,y:M,options:J,mutex:{pdfEscape:Wt,activeFontKey:le,fonts:Le,activeFontSize:LA}},de.publish("preProcessText",pA),h=pA.text,OA=(J=pA.options).angle,!(Je instanceof ee)&&OA&&typeof OA=="number"){OA*=Math.PI/180,J.rotationDirection===0&&(OA=-OA),N===x.ADVANCED&&(OA=-OA);var Ri=Math.cos(OA),Rs=Math.sin(OA);Je=new ee(Ri,Rs,-Rs,Ri,0,0)}else OA&&OA instanceof ee&&(Je=OA);N!==x.ADVANCED||Je||(Je=Gr),(ce=J.charSpace||ji)!==void 0&&(Bt+=W(L(ce))+` Tc `,this.setCharSpace(this.getCharSpace()||0)),(ze=J.horizontalScale)!==void 0&&(Bt+=W(100*ze)+` Tz `),J.lang;var Jt=-1,pc=J.renderingMode!==void 0?J.renderingMode:J.stroke,Ks=ot.internal.getCurrentPageInfo().pageContext;switch(pc){case 0:case!1:case"fill":Jt=0;break;case 1:case!0:case"stroke":Jt=1;break;case 2:case"fillThenStroke":Jt=2;break;case 3:case"invisible":Jt=3;break;case 4:case"fillAndAddForClipping":Jt=4;break;case 5:case"strokeAndAddPathForClipping":Jt=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":Jt=6;break;case 7:case"addToPathForClipping":Jt=7}var ao=Ks.usedRenderingMode!==void 0?Ks.usedRenderingMode:-1;Jt!==-1?Bt+=Jt+` Tr `:ao!==-1&&(Bt+=`0 Tr `),Jt!==-1&&(Ks.usedRenderingMode=Jt),JA=J.align||"left";var ur,Ki=LA*rr,oo=ot.internal.pageSize.getWidth(),lo=Le[le];ce=J.charSpace||ji,ae=J.maxWidth||0,Ce=Object.assign({autoencode:!0,noBOM:!0},J.flags);var Fn=[],ti=function(Pe){return ot.getStringUnitWidth(Pe,{font:lo,charSpace:ce,fontSize:LA,doKerning:!1})*LA/Jr};if(Object.prototype.toString.call(h)==="[object Array]"){var Xt;FA=ks(h),JA!=="left"&&(ur=FA.map(ti));var Rt,Qn=0;if(JA==="right"){y-=ur[0],h=[],yt=FA.length;for(var ln=0;ln<yt;ln++)ln===0?(Rt=Wr(y),Xt=on(M)):(Rt=L(Qn-ur[ln]),Xt=-Ki),h.push([FA[ln],Rt,Xt]),Qn=ur[ln]}else if(JA==="center"){y-=ur[0]/2,h=[],yt=FA.length;for(var cn=0;cn<yt;cn++)cn===0?(Rt=Wr(y),Xt=on(M)):(Rt=L((Qn-ur[cn])/2),Xt=-Ki),h.push([FA[cn],Rt,Xt]),Qn=ur[cn]}else if(JA==="left"){h=[],yt=FA.length;for(var Gi=0;Gi<yt;Gi++)h.push(FA[Gi])}else if(JA==="justify"&&lo.encoding==="Identity-H"){h=[],yt=FA.length,ae=ae!==0?ae:oo;for(var un=0,$e=0;$e<yt;$e++)if(Xt=$e===0?on(M):-Ki,Rt=$e===0?Wr(y):un,$e<yt-1){var Gs=L((ae-ur[$e])/(FA[$e].split(" ").length-1)),Kt=FA[$e].split(" ");h.push([Kt[0]+" ",Rt,Xt]),un=0;for(var hr=1;hr<Kt.length;hr++){var Vi=(ti(Kt[hr-1]+" "+Kt[hr])-ti(Kt[hr]))*Jr+Gs;hr==Kt.length-1?h.push([Kt[hr],Vi,0]):h.push([Kt[hr]+" ",Vi,0]),un-=Vi}}else h.push([FA[$e],Rt,Xt]);h.push(["",un,0])}else{if(JA!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(h=[],yt=FA.length,ae=ae!==0?ae:oo,$e=0;$e<yt;$e++)Xt=$e===0?on(M):-Ki,Rt=$e===0?Wr(y):0,$e<yt-1?Fn.push(W(L((ae-ur[$e])/(FA[$e].split(" ").length-1)))):Fn.push(0),h.push([FA[$e],Rt,Xt])}}var co=typeof J.R2L=="boolean"?J.R2L:qA;co===!0&&(h=Ps(h,function(Pe,Me,At){return[Pe.split("").reverse().join(""),Me,At]})),pA={text:h,x:y,y:M,options:J,mutex:{pdfEscape:Wt,activeFontKey:le,fonts:Le,activeFontSize:LA}},de.publish("postProcessText",pA),h=pA.text,Er=pA.mutex.isHex||!1;var Vs=Le[le].encoding;Vs!=="WinAnsiEncoding"&&Vs!=="StandardEncoding"||(h=Ps(h,function(Pe,Me,At){return[so(Pe),Me,At]})),FA=ks(h),h=[];for(var ri,ni,xn,ii=0,zi=1,si=Array.isArray(FA[0])?zi:ii,Un="",zs=function(Pe,Me,At){var gt="";return At instanceof ee?(At=typeof J.angle=="number"?yr(At,new ee(1,0,0,1,Pe,Me)):yr(new ee(1,0,0,1,Pe,Me),At),N===x.ADVANCED&&(At=yr(new ee(1,0,0,-1,0,0),At)),gt=At.join(" ")+` Tm `):gt=W(Pe)+" "+W(Me)+` Td `,gt},fr=0;fr<FA.length;fr++){switch(Un="",si){case zi:xn=(Er?"<":"(")+FA[fr][0]+(Er?">":")"),ri=parseFloat(FA[fr][1]),ni=parseFloat(FA[fr][2]);break;case ii:xn=(Er?"<":"(")+FA[fr]+(Er?">":")"),ri=Wr(y),ni=on(M)}Fn!==void 0&&Fn[fr]!==void 0&&(Un=Fn[fr]+` Tw `),fr===0?h.push(Un+zs(ri,ni,Je)+xn):si===ii?h.push(Un+xn):si===zi&&h.push(Un+zs(ri,ni,Je)+xn)}h=si===ii?h.join(` Tj T* `):h.join(` Tj `),h+=` Tj `;var dr=`BT /`;return dr+=le+" "+LA+` Tf `,dr+=W(LA*rr)+` TL `,dr+=Ai+` `,dr+=Bt,dr+=h,K(dr+="ET"),m[le]=!0,ot};var ac=g.__private__.clip=g.clip=function(h){return K(h==="evenodd"?"W*":"W"),this};g.clipEvenOdd=function(){return ac("evenodd")},g.__private__.discardPath=g.discardPath=function(){return K("n"),this};var qr=g.__private__.isValidStyle=function(h){var y=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(y=!0),y};g.__private__.setDefaultPathOperation=g.setDefaultPathOperation=function(h){return qr(h)&&(d=h),this};var Za=g.__private__.getStyle=g.getStyle=function(h){var y=d;switch(h){case"D":case"S":y="S";break;case"F":y="f";break;case"FD":case"DF":y="B";break;case"f":case"f*":case"B":case"B*":y=h}return y},$a=g.close=function(){return K("h"),this};g.stroke=function(){return K("S"),this},g.fill=function(h){return Hi("f",h),this},g.fillEvenOdd=function(h){return Hi("f*",h),this},g.fillStroke=function(h){return Hi("B",h),this},g.fillStrokeEvenOdd=function(h){return Hi("B*",h),this};var Hi=function(h,y){Te(y)==="object"?lc(y,h):K(h)},Ss=function(h){h===null||N===x.ADVANCED&&h===void 0||(h=Za(h),K(h))};function oc(h,y,M,J,lA){var pA=new hs(y||this.boundingBox,M||this.xStep,J||this.yStep,this.gState,lA||this.matrix);pA.stream=this.stream;var FA=h+"$$"+this.cloneIndex+++"$$";return qt(FA,pA),pA}var lc=function(h,y){var M=Or[h.key],J=Fe[M];if(J instanceof ci)K("q"),K(cc(y)),J.gState&&g.setGState(J.gState),K(h.matrix.toString()+" cm"),K("/"+M+" sh"),K("Q");else if(J instanceof hs){var lA=new ee(1,0,0,-1,0,yn());h.matrix&&(lA=lA.multiply(h.matrix||Gr),M=oc.call(J,h.key,h.boundingBox,h.xStep,h.yStep,lA).id),K("q"),K("/Pattern cs"),K("/"+M+" scn"),J.gState&&g.setGState(J.gState),K(y),K("Q")}},cc=function(h){switch(h){case"f":case"F":return"W n";case"f*":return"W* n";case"B":return"W S";case"B*":return"W* S";case"S":return"W S";case"n":return"W n"}},Es=g.moveTo=function(h,y){return K(W(L(h))+" "+W(O(y))+" m"),this},Zn=g.lineTo=function(h,y){return K(W(L(h))+" "+W(O(y))+" l"),this},Cn=g.curveTo=function(h,y,M,J,lA,pA){return K([W(L(h)),W(O(y)),W(L(M)),W(O(J)),W(L(lA)),W(O(pA)),"c"].join(" ")),this};g.__private__.line=g.line=function(h,y,M,J,lA){if(isNaN(h)||isNaN(y)||isNaN(M)||isNaN(J)||!qr(lA))throw new Error("Invalid arguments passed to jsPDF.line");return N===x.COMPAT?this.lines([[M-h,J-y]],h,y,[1,1],lA||"S"):this.lines([[M-h,J-y]],h,y,[1,1]).stroke()},g.__private__.lines=g.lines=function(h,y,M,J,lA,pA){var FA,OA,JA,ce,ae,Ce,ze,Je,ot,_t,Bt,Er;if(typeof h=="number"&&(Er=M,M=y,y=h,h=Er),J=J||[1,1],pA=pA||!1,isNaN(y)||isNaN(M)||!Array.isArray(h)||!Array.isArray(J)||!qr(lA)||typeof pA!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Es(y,M),FA=J[0],OA=J[1],ce=h.length,_t=y,Bt=M,JA=0;JA<ce;JA++)(ae=h[JA]).length===2?(_t=ae[0]*FA+_t,Bt=ae[1]*OA+Bt,Zn(_t,Bt)):(Ce=ae[0]*FA+_t,ze=ae[1]*OA+Bt,Je=ae[2]*FA+_t,ot=ae[3]*OA+Bt,_t=ae[4]*FA+_t,Bt=ae[5]*OA+Bt,Cn(Ce,ze,Je,ot,_t,Bt));return pA&&$a(),Ss(lA),this},g.path=function(h){for(var y=0;y<h.length;y++){var M=h[y],J=M.c;switch(M.op){case"m":Es(J[0],J[1]);break;case"l":Zn(J[0],J[1]);break;case"c":Cn.apply(this,J);break;case"h":$a()}}return this},g.__private__.rect=g.rect=function(h,y,M,J,lA){if(isNaN(h)||isNaN(y)||isNaN(M)||isNaN(J)||!qr(lA))throw new Error("Invalid arguments passed to jsPDF.rect");return N===x.COMPAT&&(J=-J),K([W(L(h)),W(O(y)),W(L(M)),W(L(J)),"re"].join(" ")),Ss(lA),this},g.__private__.triangle=g.triangle=function(h,y,M,J,lA,pA,FA){if(isNaN(h)||isNaN(y)||isNaN(M)||isNaN(J)||isNaN(lA)||isNaN(pA)||!qr(FA))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[M-h,J-y],[lA-M,pA-J],[h-lA,y-pA]],h,y,[1,1],FA,!0),this},g.__private__.roundedRect=g.roundedRect=function(h,y,M,J,lA,pA,FA){if(isNaN(h)||isNaN(y)||isNaN(M)||isNaN(J)||isNaN(lA)||isNaN(pA)||!qr(FA))throw new Error("Invalid arguments passed to jsPDF.roundedRect");var OA=4/3*(Math.SQRT2-1);return lA=Math.min(lA,.5*M),pA=Math.min(pA,.5*J),this.lines([[M-2*lA,0],[lA*OA,0,lA,pA-pA*OA,lA,pA],[0,J-2*pA],[0,pA*OA,-lA*OA,pA,-lA,pA],[2*lA-M,0],[-lA*OA,0,-lA,-pA*OA,-lA,-pA],[0,2*pA-J],[0,-pA*OA,lA*OA,-pA,lA,-pA]],h+lA,y,[1,1],FA,!0),this},g.__private__.ellipse=g.ellipse=function(h,y,M,J,lA){if(isNaN(h)||isNaN(y)||isNaN(M)||isNaN(J)||!qr(lA))throw new Error("Invalid arguments passed to jsPDF.ellipse");var pA=4/3*(Math.SQRT2-1)*M,FA=4/3*(Math.SQRT2-1)*J;return Es(h+M,y),Cn(h+M,y-FA,h+pA,y-J,h,y-J),Cn(h-pA,y-J,h-M,y-FA,h-M,y),Cn(h-M,y+FA,h-pA,y+J,h,y+J),Cn(h+pA,y+J,h+M,y+FA,h+M,y),Ss(lA),this},g.__private__.circle=g.circle=function(h,y,M,J){if(isNaN(h)||isNaN(y)||isNaN(M)||!qr(J))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(h,y,M,M,J)},g.setFont=function(h,y,M){return M&&(y=Y(y,M)),le=Ja(h,y,{disableWarning:!1}),this};var uc=g.__private__.getFont=g.getFont=function(){return Le[Ja.apply(g,arguments)]};g.__private__.getFontList=g.getFontList=function(){var h,y,M={};for(h in ke)if(ke.hasOwnProperty(h))for(y in M[h]=[],ke[h])ke[h].hasOwnProperty(y)&&M[h].push(y);return M},g.addFont=function(h,y,M,J,lA){var pA=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&pA.indexOf(arguments[3])!==-1?lA=arguments[3]:arguments[3]&&pA.indexOf(arguments[3])==-1&&(M=Y(M,J)),lA=lA||"Identity-H",Qs.call(this,h,y,M,lA)};var $n,Ls=e.lineWidth||.200025,Ni=g.__private__.getLineWidth=g.getLineWidth=function(){return Ls},Ao=g.__private__.setLineWidth=g.setLineWidth=function(h){return Ls=h,K(W(L(h))+" w"),this};g.__private__.setLineDash=$A.API.setLineDash=$A.API.setLineDashPattern=function(h,y){if(h=h||[],y=y||0,isNaN(y)||!Array.isArray(h))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return h=h.map(function(M){return W(L(M))}).join(" "),y=W(L(y)),K("["+h+"] "+y+" d"),this};var eo=g.__private__.getLineHeight=g.getLineHeight=function(){return LA*$n};g.__private__.getLineHeight=g.getLineHeight=function(){return LA*$n};var to=g.__private__.setLineHeightFactor=g.setLineHeightFactor=function(h){return typeof(h=h||1.15)=="number"&&($n=h),this},ro=g.__private__.getLineHeightFactor=g.getLineHeightFactor=function(){return $n};to(e.lineHeight);var Wr=g.__private__.getHorizontalCoordinate=function(h){return L(h)},on=g.__private__.getVerticalCoordinate=function(h){return N===x.ADVANCED?h:zA[j].mediaBox.topRightY-zA[j].mediaBox.bottomLeftY-L(h)},hc=g.__private__.getHorizontalCoordinateString=g.getHorizontalCoordinateString=function(h){return W(Wr(h))},bn=g.__private__.getVerticalCoordinateString=g.getVerticalCoordinateString=function(h){return W(on(h))},Sr=e.strokeColor||"0 G";g.__private__.getStrokeColor=g.getDrawColor=function(){return Qr(Sr)},g.__private__.setStrokeColor=g.setDrawColor=function(h,y,M,J){return Sr=xr({ch1:h,ch2:y,ch3:M,ch4:J,pdfColorType:"draw",precision:2}),K(Sr),this};var Is=e.fillColor||"0 g";g.__private__.getFillColor=g.getFillColor=function(){return Qr(Is)},g.__private__.setFillColor=g.setFillColor=function(h,y,M,J){return Is=xr({ch1:h,ch2:y,ch3:M,ch4:J,pdfColorType:"fill",precision:2}),K(Is),this};var Ai=e.textColor||"0 g",fc=g.__private__.getTextColor=g.getTextColor=function(){return Qr(Ai)};g.__private__.setTextColor=g.setTextColor=function(h,y,M,J){return Ai=xr({ch1:h,ch2:y,ch3:M,ch4:J,pdfColorType:"text",precision:3}),this};var ji=e.charSpace,dc=g.__private__.getCharSpace=g.getCharSpace=function(){return parseFloat(ji||0)};g.__private__.setCharSpace=g.setCharSpace=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return ji=h,this};var _s=0;g.CapJoinStyles={0:0,butt:0,but:0,miter:0,1:1,round:1,rounded:1,circle:1,2:2,projecting:2,project:2,square:2,bevel:2},g.__private__.setLineCap=g.setLineCap=function(h){var y=g.CapJoinStyles[h];if(y===void 0)throw new Error("Line cap style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return _s=y,K(y+" J"),this};var Hs=0;g.__private__.setLineJoin=g.setLineJoin=function(h){var y=g.CapJoinStyles[h];if(y===void 0)throw new Error("Line join style of '"+h+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Hs=y,K(y+" j"),this},g.__private__.setLineMiterLimit=g.__private__.setMiterLimit=g.setLineMiterLimit=g.setMiterLimit=function(h){if(h=h||0,isNaN(h))throw new Error("Invalid argument passed to jsPDF.setLineMiterLimit");return K(W(L(h))+" M"),this},g.GState=ml,g.setGState=function(h){(h=typeof h=="string"?Ge[Ae[h]]:no(null,h)).equals(re)||(K("/"+h.id+" gs"),re=h)};var no=function(h,y){if(!h||!Ae[h]){var M=!1;for(var J in Ge)if(Ge.hasOwnProperty(J)&&Ge[J].equals(y)){M=!0;break}if(M)y=Ge[J];else{var lA="GS"+(Object.keys(Ge).length+1).toString(10);Ge[lA]=y,y.id=lA}return h&&(Ae[h]=y.id),de.publish("addGState",y),y}};g.addGState=function(h,y){return no(h,y),this},g.saveGraphicsState=function(){return K("q"),er.push({key:le,size:LA,color:Ai}),this},g.restoreGraphicsState=function(){K("Q");var h=er.pop();return le=h.key,LA=h.size,Ai=h.color,re=null,this},g.setCurrentTransformationMatrix=function(h){return K(h.toString()+" cm"),this},g.comment=function(h){return K("#"+h),this};var Di=function(h,y){var M=h||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return M},set:function(pA){isNaN(pA)||(M=parseFloat(pA))}});var J=y||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return J},set:function(pA){isNaN(pA)||(J=parseFloat(pA))}});var lA="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return lA},set:function(pA){lA=pA.toString()}}),this},Ns=function(h,y,M,J){Di.call(this,h,y),this.type="rect";var lA=M||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return lA},set:function(FA){isNaN(FA)||(lA=parseFloat(FA))}});var pA=J||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return pA},set:function(FA){isNaN(FA)||(pA=parseFloat(FA))}}),this},js=function(){this.page=YA,this.currentPage=j,this.pages=bA.slice(0),this.pagesContext=zA.slice(0),this.x=ft,this.y=ve,this.matrix=zt,this.width=ei(j),this.height=yn(j),this.outputDestination=EA,this.id="",this.objectNumber=-1};js.prototype.restore=function(){YA=this.page,j=this.currentPage,zA=this.pagesContext,bA=this.pages,ft=this.x,ve=this.y,zt=this.matrix,Ds(j,this.width),Ts(j,this.height),EA=this.outputDestination};var io=function(h,y,M,J,lA){Kr.push(new js),YA=j=0,bA=[],ft=h,ve=y,zt=lA,xs([M,J])},gc=function(h){if(Rr[h])Kr.pop().restore();else{var y=new js,M="Xo"+(Object.keys(We).length+1).toString(10);y.id=M,Rr[h]=M,We[M]=y,de.publish("addFormObject",y),Kr.pop().restore()}};for(var Ti in g.beginFormObject=function(h,y,M,J,lA){return io(h,y,M,J,lA),this},g.endFormObject=function(h){return gc(h),this},g.doFormObject=function(h,y){var M=We[Rr[h]];return K("q"),K(y.toString()+" cm"),K("/"+M.id+" Do"),K("Q"),this},g.getFormObject=function(h){var y=We[Rr[h]];return{x:y.x,y:y.y,width:y.width,height:y.height,matrix:y.matrix}},g.save=function(h,y){return h=h||"generated.pdf",(y=y||{}).returnPromise=y.returnPromise||!1,y.returnPromise===!1?(li(Ii(an()),h),typeof li.unload=="function"&&te.setTimeout&&setTimeout(li.unload,911),this):new Promise(function(M,J){try{var lA=li(Ii(an()),h);typeof li.unload=="function"&&te.setTimeout&&setTimeout(li.unload,911),M(lA)}catch(pA){J(pA.message)}})},$A.API)$A.API.hasOwnProperty(Ti)&&(Ti==="events"&&$A.API.events.length?function(h,y){var M,J,lA;for(lA=y.length-1;lA!==-1;lA--)M=y[lA][0],J=y[lA][1],h.subscribe.apply(h,[M].concat(typeof J=="function"?[J]:J))}(de,$A.API.events):g[Ti]=$A.API[Ti]);var ei=g.getPageWidth=function(h){return(zA[h=h||j].mediaBox.topRightX-zA[h].mediaBox.bottomLeftX)/NA},Ds=g.setPageWidth=function(h,y){zA[h].mediaBox.topRightX=y*NA+zA[h].mediaBox.bottomLeftX},yn=g.getPageHeight=function(h){return(zA[h=h||j].mediaBox.topRightY-zA[h].mediaBox.bottomLeftY)/NA},Ts=g.setPageHeight=function(h,y){zA[h].mediaBox.topRightY=y*NA+zA[h].mediaBox.bottomLeftY};return g.internal={pdfEscape:Wt,getStyle:Za,getFont:uc,getFontSize:_A,getCharSpace:dc,getTextColor:fc,getLineHeight:eo,getLineHeightFactor:ro,getLineWidth:Ni,write:WA,getHorizontalCoordinate:Wr,getVerticalCoordinate:on,getCoordinateString:hc,getVerticalCoordinateString:bn,collections:{},newObject:dt,newAdditionalObject:yi,newObjectDeferred:at,newObjectDeferredBegin:tr,getFilters:Vr,putStream:cr,events:de,scaleFactor:NA,pageSize:{getWidth:function(){return ei(j)},setWidth:function(h){Ds(j,h)},getHeight:function(){return yn(j)},setHeight:function(h){Ts(j,h)}},encryptionOptions:B,encryption:It,getEncryptor:ic,output:_i,getNumberOfPages:Ac,pages:bA,out:K,f2:$,f3:_,getPageInfo:Ya,getPageInfoByObjId:ie,getCurrentPageInfo:sc,getPDFVersion:v,Point:Di,Rectangle:Ns,Matrix:ee,hasHotfix:Xa},Object.defineProperty(g.internal.pageSize,"width",{get:function(){return ei(j)},set:function(h){Ds(j,h)},enumerable:!0,configurable:!0}),Object.defineProperty(g.internal.pageSize,"height",{get:function(){return yn(j)},set:function(h){Ts(j,h)},enumerable:!0,configurable:!0}),Zl.call(g,QA),le="F1",qa(n,t),de.publish("initialized"),g}as.prototype.lsbFirstWord=function(e){return String.fromCharCode(e>>0&255,e>>8&255,e>>16&255,e>>24&255)},as.prototype.toHexString=function(e){return e.split("").map(function(A){return("0"+(255&A.charCodeAt(0)).toString(16)).slice(-2)}).join("")},as.prototype.hexToBytes=function(e){for(var A=[],t=0;t<e.length;t+=2)A.push(String.fromCharCode(parseInt(e.substr(t,2),16)));return A.join("")},as.prototype.processOwnerPassword=function(e,A){return xu(Qu(A).substr(0,5),e)},as.prototype.encryptor=function(e,A){var t=Qu(this.encryptionKey+String.fromCharCode(255&e,e>>8&255,e>>16&255,255&A,A>>8&255)).substr(0,10);return function(r){return xu(t,r)}},ml.prototype.equals=function(e){var A,t="id,objectNumber,equals";if(!e||Te(e)!==Te(this))return!1;var r=0;for(A in this)if(!(t.indexOf(A)>=0)){if(this.hasOwnProperty(A)&&!e.hasOwnProperty(A)||this[A]!==e[A])return!1;r++}for(A in e)e.hasOwnProperty(A)&&t.indexOf(A)<0&&r--;return r===0},$A.API={events:[]},$A.version="3.0.1";var Ye=$A.API,ch=1,bi=function(e){return e.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},$i=function(e){return e.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},oe=function(e){return e.toFixed(2)},Dn=function(e){return e.toFixed(5)};Ye.__acroform__={};var Ar=function(e,A){e.prototype=Object.create(A.prototype),e.prototype.constructor=e},cf=function(e){return e*ch},Zr=function(e){var A=new Yd,t=VA.internal.getHeight(e)||0,r=VA.internal.getWidth(e)||0;return A.BBox=[0,0,Number(oe(r)),Number(oe(t))],A},Y1=Ye.__acroform__.setBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return e|=1<<A},Z1=Ye.__acroform__.clearBit=function(e,A){if(e=e||0,A=A||0,isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return e&=~(1<<A)},$1=Ye.__acroform__.getBit=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return(e&1<<A)==0?0:1},nt=Ye.__acroform__.getBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return $1(e,A-1)},it=Ye.__acroform__.setBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return Y1(e,A-1)},st=Ye.__acroform__.clearBitForPdf=function(e,A){if(isNaN(e)||isNaN(A))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return Z1(e,A-1)},A0=Ye.__acroform__.calculateCoordinates=function(e,A){var t=A.internal.getHorizontalCoordinate,r=A.internal.getVerticalCoordinate,n=e[0],i=e[1],a=e[2],o=e[3],c={};return c.lowerLeft_X=t(n)||0,c.lowerLeft_Y=r(i+o)||0,c.upperRight_X=t(n+a)||0,c.upperRight_Y=r(i)||0,[Number(oe(c.lowerLeft_X)),Number(oe(c.lowerLeft_Y)),Number(oe(c.upperRight_X)),Number(oe(c.upperRight_Y))]},e0=function(e){if(e.appearanceStreamContent)return e.appearanceStreamContent;if(e.V||e.DV){var A=[],t=e._V||e.DV,r=Uu(e,t),n=e.scope.internal.getFont(e.fontName,e.fontStyle).id;A.push("/Tx BMC"),A.push("q"),A.push("BT"),A.push(e.scope.__private__.encodeColorString(e.color)),A.push("/"+n+" "+oe(r.fontSize)+" Tf"),A.push("1 0 0 1 0 0 Tm"),A.push(r.text),A.push("ET"),A.push("Q"),A.push("EMC");var i=Zr(e);return i.scope=e.scope,i.stream=A.join(` `),i}},Uu=function(e,A){var t=e.fontSize===0?e.maxFontSize:e.fontSize,r={text:"",fontSize:""},n=(A=(A=A.substr(0,1)=="("?A.substr(1):A).substr(A.length-1)==")"?A.substr(0,A.length-1):A).split(" ");n=e.multiline?n.map(function(_){return _.split(` `)}):n.map(function(_){return[_]});var i=t,a=VA.internal.getHeight(e)||0;a=a<0?-a:a;var o=VA.internal.getWidth(e)||0;o=o<0?-o:o;var c=function(_,L,D){if(_+1<n.length){var O=L+" "+n[_+1][0];return Ho(O,e,D).width<=o-4}return!1};i++;A:for(;i>0;){A="",i--;var d,B,p=Ho("3",e,i).height,m=e.multiline?a-i:(a-p)/2,g=m+=2,C=0,v=0,U=0;if(i<=0){A=`(...) Tj `,A+="% Width of Text: "+Ho(A,e,i=12).width+", FieldWidth:"+o+` `;break}for(var F="",x=0,N=0;N<n.length;N++)if(n.hasOwnProperty(N)){var V=!1;if(n[N].length!==1&&U!==n[N].length-1){if((p+2)*(x+2)+2>a)continue A;F+=n[N][U],V=!0,v=N,N--}else{F=(F+=n[N][U]+" ").substr(F.length-1)==" "?F.substr(0,F.length-1):F;var q=parseInt(N),Y=c(q,F,i),W=N>=n.length-1;if(Y&&!W){F+=" ",U=0;continue}if(Y||W){if(W)v=q;else if(e.multiline&&(p+2)*(x+2)+2>a)continue A}else{if(!e.multiline||(p+2)*(x+2)+2>a)continue A;v=q}}for(var R="",k=C;k<=v;k++){var $=n[k];if(e.multiline){if(k===v){R+=$[U]+" ",U=(U+1)%$.length;continue}if(k===C){R+=$[$.length-1]+" ";continue}}R+=$[0]+" "}switch(R=R.substr(R.length-1)==" "?R.substr(0,R.length-1):R,B=Ho(R,e,i).width,e.textAlign){case"right":d=o-B-2;break;case"center":d=(o-B)/2;break;case"left":default:d=2}A+=oe(d)+" "+oe(g)+` Td `,A+="("+bi(R)+`) Tj `,A+=-oe(d)+` 0 Td `,g=-(i+2),B=0,C=V?v:v+1,x++,F=""}break}return r.text=A,r.fontSize=i,r},Ho=function(e,A,t){var r=A.scope.internal.getFont(A.fontName,A.fontStyle),n=A.scope.getStringUnitWidth(e,{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t);return{height:A.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(t),charSpace:0})*parseFloat(t)*1.5,width:n}},t0={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},r0=function(e,A){var t={type:"reference",object:e};A.internal.getPageInfo(e.page).pageContext.annotations.find(function(r){return r.type===t.type&&r.object===t.object})===void 0&&A.internal.getPageInfo(e.page).pageContext.annotations.push(t)},n0=function(e,A){for(var t in e)if(e.hasOwnProperty(t)){var r=t,n=e[t];A.internal.newObjectDeferredBegin(n.objId,!0),Te(n)==="object"&&typeof n.putStream=="function"&&n.putStream(),delete e[r]}},i0=function(e,A){if(A.scope=e,e.internal!==void 0&&(e.internal.acroformPlugin===void 0||e.internal.acroformPlugin.isInitialized===!1)){if(kr.FieldNum=0,e.internal.acroformPlugin=JSON.parse(JSON.stringify(t0)),e.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");ch=e.internal.scaleFactor,e.internal.acroformPlugin.acroFormDictionaryRoot=new Zd,e.internal.acroformPlugin.acroFormDictionaryRoot.scope=e,e.internal.acroformPlugin.acroFormDictionaryRoot._eventID=e.internal.events.subscribe("postPutResources",function(){(function(t){t.internal.events.unsubscribe(t.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete t.internal.acroformPlugin.acroFormDictionaryRoot._eventID,t.internal.acroformPlugin.printedOut=!0})(e)}),e.internal.events.subscribe("buildDocument",function(){(function(t){t.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=t.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var n in r)if(r.hasOwnProperty(n)){var i=r[n];i.objId=void 0,i.hasAnnotation&&r0(i,t)}})(e)}),e.internal.events.subscribe("putCatalog",function(){(function(t){if(t.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");t.internal.write("/AcroForm "+t.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(e)}),e.internal.events.subscribe("postPutPages",function(t){(function(r,n){var i=!r;for(var a in r||(n.internal.newObjectDeferredBegin(n.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),n.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||n.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(a)){var o=r[a],c=[],d=o.Rect;if(o.Rect&&(o.Rect=A0(o.Rect,n)),n.internal.newObjectDeferredBegin(o.objId,!0),o.DA=VA.createDefaultAppearanceStream(o),Te(o)==="object"&&typeof o.getKeyValueListForStream=="function"&&(c=o.getKeyValueListForStream()),o.Rect=d,o.hasAppearanceStream&&!o.appearanceStreamContent){var B=e0(o);c.push({key:"AP",value:"<</N "+B+">>"}),n.internal.acroformPlugin.xForms.push(B)}if(o.appearanceStreamContent){var p="";for(var m in o.appearanceStreamContent)if(o.appearanceStreamContent.hasOwnProperty(m)){var g=o.appearanceStreamContent[m];if(p+="/"+m+" ",p+="<<",Object.keys(g).length>=1||Array.isArray(g)){for(var a in g)if(g.hasOwnProperty(a)){var C=g[a];typeof C=="function"&&(C=C.call(n,o)),p+="/"+a+" "+C+" ",n.internal.acroformPlugin.xForms.indexOf(C)>=0||n.internal.acroformPlugin.xForms.push(C)}}else typeof(C=g)=="function"&&(C=C.call(n,o)),p+="/"+a+" "+C,n.internal.acroformPlugin.xForms.indexOf(C)>=0||n.internal.acroformPlugin.xForms.push(C);p+=">>"}c.push({key:"AP",value:`<< `+p+">>"})}n.internal.putStream({additionalKeyValues:c,objectId:o.objId}),n.internal.out("endobj")}i&&n0(n.internal.acroformPlugin.xForms,n)})(t,e)}),e.internal.acroformPlugin.isInitialized=!0}},Xd=Ye.__acroform__.arrayToPdfArray=function(e,A,t){var r=function(a){return a};if(Array.isArray(e)){for(var n="[",i=0;i<e.length;i++)switch(i!==0&&(n+=" "),Te(e[i])){case"boolean":case"number":case"object":n+=e[i].toString();break;case"string":e[i].substr(0,1)!=="/"?(A!==void 0&&t&&(r=t.internal.getEncryptor(A)),n+="("+bi(r(e[i].toString()))+")"):n+=e[i].toString()}return n+="]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},Gc=function(e,A,t){var r=function(n){return n};return A!==void 0&&t&&(r=t.internal.getEncryptor(A)),(e=e||"").toString(),e="("+bi(r(e))+")"},An=function(){this._objId=void 0,this._scope=void 0,Object.defineProperty(this,"objId",{get:function(){if(this._objId===void 0){if(this.scope===void 0)return;this._objId=this.scope.internal.newObjectDeferred()}return this._objId},set:function(e){this._objId=e}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};An.prototype.toString=function(){return this.objId+" 0 R"},An.prototype.putStream=function(){var e=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:e,objectId:this.objId}),this.scope.internal.out("endobj")},An.prototype.getKeyValueListForStream=function(){var e=[],A=Object.getOwnPropertyNames(this).filter(function(i){return i!="content"&&i!="appearanceStreamContent"&&i!="scope"&&i!="objId"&&i.substring(0,1)!="_"});for(var t in A)if(Object.getOwnPropertyDescriptor(this,A[t]).configurable===!1){var r=A[t],n=this[r];n&&(Array.isArray(n)?e.push({key:r,value:Xd(n,this.objId,this.scope)}):n instanceof An?(n.scope=this.scope,e.push({key:r,value:n.objId+" 0 R"})):typeof n!="function"&&e.push({key:r,value:n}))}return e};var Yd=function(){An.call(this),Object.defineProperty(this,"Type",{value:"/XObject",configurable:!1,writable:!0}),Object.defineProperty(this,"Subtype",{value:"/Form",configurable:!1,writable:!0}),Object.defineProperty(this,"FormType",{value:1,configurable:!1,writable:!0});var e,A=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return A},set:function(t){A=t}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(t){e=t.trim()},get:function(){return e||null}})};Ar(Yd,An);var Zd=function(){An.call(this);var e,A=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return A.length>0?A:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return A}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(e){var t=function(r){return r};return this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),"("+bi(t(e))+")"}},set:function(t){e=t}})};Ar(Zd,An);var kr=function e(){An.call(this);var A=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return A},set:function(F){if(isNaN(F))throw new Error('Invalid value "'+F+'" for attribute F supplied.');A=F}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!nt(A,3)},set:function(F){F?this.F=it(A,3):this.F=st(A,3)}});var t=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return t},set:function(F){if(isNaN(F))throw new Error('Invalid value "'+F+'" for attribute Ff supplied.');t=F}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(F){r=F!==void 0?F:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(F){r[0]=F}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(F){r[1]=F}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(F){r[2]=F}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(F){r[3]=F}});var n="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return n},set:function(F){switch(F){case"/Btn":case"/Tx":case"/Ch":case"/Sig":n=F;break;default:throw new Error('Invalid value "'+F+'" for attribute FT supplied.')}}});var i=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!i||i.length<1){if(this instanceof vl)return;i="FieldObject"+e.FieldNum++}var F=function(x){return x};return this.scope&&(F=this.scope.internal.getEncryptor(this.objId)),"("+bi(F(i))+")"},set:function(F){i=F.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return i},set:function(F){i=F}});var a="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return a},set:function(F){a=F}});var o="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return o},set:function(F){o=F}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(F){c=F}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/ch:d},set:function(F){d=F}});var B="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return B},set:function(F){B=F}});var p="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!p||this instanceof vl||this instanceof wi))return Gc(p,this.objId,this.scope)},set:function(F){F=F.toString(),p=F}});var m=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof bt?m:Gc(m,this.objId,this.scope)},set:function(F){F=F.toString(),m=this instanceof bt?F:F.substr(0,1)==="("?$i(F.substr(1,F.length-2)):$i(F)}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof bt?$i(m.substr(1,m.length-1)):m},set:function(F){F=F.toString(),m=this instanceof bt?"/"+F:F}});var g=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(g)return g},set:function(F){this.V=F}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(g)return this instanceof bt?g:Gc(g,this.objId,this.scope)},set:function(F){F=F.toString(),g=this instanceof bt?F:F.substr(0,1)==="("?$i(F.substr(1,F.length-2)):$i(F)}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof bt?$i(g.substr(1,g.length-1)):g},set:function(F){F=F.toString(),g=this instanceof bt?"/"+F:F}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var C,v=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return v},set:function(F){F=!!F,v=F}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(C)return C},set:function(F){C=F}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,1)},set:function(F){F?this.Ff=it(this.Ff,1):this.Ff=st(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,2)},set:function(F){F?this.Ff=it(this.Ff,2):this.Ff=st(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,3)},set:function(F){F?this.Ff=it(this.Ff,3):this.Ff=st(this.Ff,3)}});var U=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(U!==null)return U},set:function(F){if([0,1,2].indexOf(F)===-1)throw new Error('Invalid value "'+F+'" for attribute Q supplied.');U=F}}),Object.defineProperty(this,"textAlign",{get:function(){var F;switch(U){case 0:default:F="left";break;case 1:F="center";break;case 2:F="right"}return F},configurable:!0,enumerable:!0,set:function(F){switch(F){case"right":case 2:U=2;break;case"center":case 1:U=1;break;case"left":case 0:default:U=0}}})};Ar(kr,An);var gs=function(){kr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var e=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return e},set:function(t){e=t}});var A=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return Xd(A,this.objId,this.scope)},set:function(t){var r,n;n=[],typeof(r=t)=="string"&&(n=function(i,a,o){o||(o=1);for(var c,d=[];c=a.exec(i);)d.push(c[o]);return d}(r,/\((.*?)\)/g)),A=n}}),this.getOptions=function(){return A},this.setOptions=function(t){A=t,this.sort&&A.sort()},this.addOption=function(t){t=(t=t||"").toString(),A.push(t),this.sort&&A.sort()},this.removeOption=function(t,r){for(r=r||!1,t=(t=t||"").toString();A.indexOf(t)!==-1&&(A.splice(A.indexOf(t),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,18)},set:function(t){t?this.Ff=it(this.Ff,18):this.Ff=st(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,19)},set:function(t){this.combo===!0&&(t?this.Ff=it(this.Ff,19):this.Ff=st(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,20)},set:function(t){t?(this.Ff=it(this.Ff,20),A.sort()):this.Ff=st(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,22)},set:function(t){t?this.Ff=it(this.Ff,22):this.Ff=st(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,23)},set:function(t){t?this.Ff=it(this.Ff,23):this.Ff=st(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,27)},set:function(t){t?this.Ff=it(this.Ff,27):this.Ff=st(this.Ff,27)}}),this.hasAppearanceStream=!1};Ar(gs,kr);var ps=function(){gs.call(this),this.fontName="helvetica",this.combo=!1};Ar(ps,gs);var Bs=function(){ps.call(this),this.combo=!0};Ar(Bs,ps);var sl=function(){Bs.call(this),this.edit=!0};Ar(sl,Bs);var bt=function(){kr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,15)},set:function(t){t?this.Ff=it(this.Ff,15):this.Ff=st(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,16)},set:function(t){t?this.Ff=it(this.Ff,16):this.Ff=st(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,17)},set:function(t){t?this.Ff=it(this.Ff,17):this.Ff=st(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,26)},set:function(t){t?this.Ff=it(this.Ff,26):this.Ff=st(this.Ff,26)}});var e,A={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var t=function(i){return i};if(this.scope&&(t=this.scope.internal.getEncryptor(this.objId)),Object.keys(A).length!==0){var r,n=[];for(r in n.push("<<"),A)n.push("/"+r+" ("+bi(t(A[r]))+")");return n.push(">>"),n.join(` `)}},set:function(t){Te(t)==="object"&&(A=t)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return A.CA||""},set:function(t){typeof t=="string"&&(A.CA=t)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(t){e=t}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(t){e="/"+t}})};Ar(bt,kr);var al=function(){bt.call(this),this.pushButton=!0};Ar(al,bt);var ws=function(){bt.call(this),this.radio=!0,this.pushButton=!1;var e=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A!==void 0?A:[]}})};Ar(ws,bt);var vl=function(){var e,A;kr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return e},set:function(n){e=n}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return A},set:function(n){A=n}});var t,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var n=function(o){return o};this.scope&&(n=this.scope.internal.getEncryptor(this.objId));var i,a=[];for(i in a.push("<<"),r)a.push("/"+i+" ("+bi(n(r[i]))+")");return a.push(">>"),a.join(` `)},set:function(n){Te(n)==="object"&&(r=n)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(n){typeof n=="string"&&(r.CA=n)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(n){t="/"+n}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=VA.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};Ar(vl,kr),ws.prototype.setAppearance=function(e){if(!("createAppearanceStream"in e)||!("getCA"in e))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var A in this.Kids)if(this.Kids.hasOwnProperty(A)){var t=this.Kids[A];t.appearanceStreamContent=e.createAppearanceStream(t.optionName),t.caption=e.getCA()}},ws.prototype.createOption=function(e){var A=new vl;return A.Parent=this,A.optionName=e,this.Kids.push(A),s0.call(this.scope,A),A};var ol=function(){bt.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=VA.CheckBox.createAppearanceStream()};Ar(ol,bt);var wi=function(){kr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,13)},set:function(A){A?this.Ff=it(this.Ff,13):this.Ff=st(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,21)},set:function(A){A?this.Ff=it(this.Ff,21):this.Ff=st(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,23)},set:function(A){A?this.Ff=it(this.Ff,23):this.Ff=st(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,24)},set:function(A){A?this.Ff=it(this.Ff,24):this.Ff=st(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,25)},set:function(A){A?this.Ff=it(this.Ff,25):this.Ff=st(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,26)},set:function(A){A?this.Ff=it(this.Ff,26):this.Ff=st(this.Ff,26)}});var e=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return e},set:function(A){e=A}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return e},set:function(A){Number.isInteger(A)&&(e=A)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};Ar(wi,kr);var ll=function(){wi.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!nt(this.Ff,14)},set:function(e){e?this.Ff=it(this.Ff,14):this.Ff=st(this.Ff,14)}}),this.password=!0};Ar(ll,wi);var VA={CheckBox:{createAppearanceStream:function(){return{N:{On:VA.CheckBox.YesNormal},D:{On:VA.CheckBox.YesPushDown,Off:VA.CheckBox.OffPushDown}}},YesPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=[],r=e.scope.internal.getFont(e.fontName,e.fontStyle).id,n=e.scope.__private__.encodeColorString(e.color),i=Uu(e,e.caption);return t.push("0.749023 g"),t.push("0 0 "+oe(VA.internal.getWidth(e))+" "+oe(VA.internal.getHeight(e))+" re"),t.push("f"),t.push("BMC"),t.push("q"),t.push("0 0 1 rg"),t.push("/"+r+" "+oe(i.fontSize)+" Tf "+n),t.push("BT"),t.push(i.text),t.push("ET"),t.push("Q"),t.push("EMC"),A.stream=t.join(` `),A},YesNormal:function(e){var A=Zr(e);A.scope=e.scope;var t=e.scope.internal.getFont(e.fontName,e.fontStyle).id,r=e.scope.__private__.encodeColorString(e.color),n=[],i=VA.internal.getHeight(e),a=VA.internal.getWidth(e),o=Uu(e,e.caption);return n.push("1 g"),n.push("0 0 "+oe(a)+" "+oe(i)+" re"),n.push("f"),n.push("q"),n.push("0 0 1 rg"),n.push("0 0 "+oe(a-1)+" "+oe(i-1)+" re"),n.push("W"),n.push("n"),n.push("0 g"),n.push("BT"),n.push("/"+t+" "+oe(o.fontSize)+" Tf "+r),n.push(o.text),n.push("ET"),n.push("Q"),A.stream=n.join(` `),A},OffPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+oe(VA.internal.getWidth(e))+" "+oe(VA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(` `),A}},RadioButton:{Circle:{createAppearanceStream:function(e){var A={D:{Off:VA.RadioButton.Circle.OffPushDown},N:{}};return A.N[e]=VA.RadioButton.Circle.YesNormal,A.D[e]=VA.RadioButton.Circle.YesPushDown,A},getCA:function(){return"l"},YesNormal:function(e){var A=Zr(e);A.scope=e.scope;var t=[],r=VA.internal.getWidth(e)<=VA.internal.getHeight(e)?VA.internal.getWidth(e)/4:VA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=VA.internal.Bezier_C,i=Number((r*n).toFixed(5));return t.push("q"),t.push("1 0 0 1 "+Dn(VA.internal.getWidth(e)/2)+" "+Dn(VA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+i+" "+i+" "+r+" 0 "+r+" c"),t.push("-"+i+" "+r+" -"+r+" "+i+" -"+r+" 0 c"),t.push("-"+r+" -"+i+" -"+i+" -"+r+" 0 -"+r+" c"),t.push(i+" -"+r+" "+r+" -"+i+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(` `),A},YesPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=[],r=VA.internal.getWidth(e)<=VA.internal.getHeight(e)?VA.internal.getWidth(e)/4:VA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*VA.internal.Bezier_C).toFixed(5)),a=Number((r*VA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Dn(VA.internal.getWidth(e)/2)+" "+Dn(VA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),t.push("0 g"),t.push("q"),t.push("1 0 0 1 "+Dn(VA.internal.getWidth(e)/2)+" "+Dn(VA.internal.getHeight(e)/2)+" cm"),t.push(r+" 0 m"),t.push(r+" "+a+" "+a+" "+r+" 0 "+r+" c"),t.push("-"+a+" "+r+" -"+r+" "+a+" -"+r+" 0 c"),t.push("-"+r+" -"+a+" -"+a+" -"+r+" 0 -"+r+" c"),t.push(a+" -"+r+" "+r+" -"+a+" "+r+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(` `),A},OffPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=[],r=VA.internal.getWidth(e)<=VA.internal.getHeight(e)?VA.internal.getWidth(e)/4:VA.internal.getHeight(e)/4;r=Number((.9*r).toFixed(5));var n=Number((2*r).toFixed(5)),i=Number((n*VA.internal.Bezier_C).toFixed(5));return t.push("0.749023 g"),t.push("q"),t.push("1 0 0 1 "+Dn(VA.internal.getWidth(e)/2)+" "+Dn(VA.internal.getHeight(e)/2)+" cm"),t.push(n+" 0 m"),t.push(n+" "+i+" "+i+" "+n+" 0 "+n+" c"),t.push("-"+i+" "+n+" -"+n+" "+i+" -"+n+" 0 c"),t.push("-"+n+" -"+i+" -"+i+" -"+n+" 0 -"+n+" c"),t.push(i+" -"+n+" "+n+" -"+i+" "+n+" 0 c"),t.push("f"),t.push("Q"),A.stream=t.join(` `),A}},Cross:{createAppearanceStream:function(e){var A={D:{Off:VA.RadioButton.Cross.OffPushDown},N:{}};return A.N[e]=VA.RadioButton.Cross.YesNormal,A.D[e]=VA.RadioButton.Cross.YesPushDown,A},getCA:function(){return"8"},YesNormal:function(e){var A=Zr(e);A.scope=e.scope;var t=[],r=VA.internal.calculateCross(e);return t.push("q"),t.push("1 1 "+oe(VA.internal.getWidth(e)-2)+" "+oe(VA.internal.getHeight(e)-2)+" re"),t.push("W"),t.push("n"),t.push(oe(r.x1.x)+" "+oe(r.x1.y)+" m"),t.push(oe(r.x2.x)+" "+oe(r.x2.y)+" l"),t.push(oe(r.x4.x)+" "+oe(r.x4.y)+" m"),t.push(oe(r.x3.x)+" "+oe(r.x3.y)+" l"),t.push("s"),t.push("Q"),A.stream=t.join(` `),A},YesPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=VA.internal.calculateCross(e),r=[];return r.push("0.749023 g"),r.push("0 0 "+oe(VA.internal.getWidth(e))+" "+oe(VA.internal.getHeight(e))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+oe(VA.internal.getWidth(e)-2)+" "+oe(VA.internal.getHeight(e)-2)+" re"),r.push("W"),r.push("n"),r.push(oe(t.x1.x)+" "+oe(t.x1.y)+" m"),r.push(oe(t.x2.x)+" "+oe(t.x2.y)+" l"),r.push(oe(t.x4.x)+" "+oe(t.x4.y)+" m"),r.push(oe(t.x3.x)+" "+oe(t.x3.y)+" l"),r.push("s"),r.push("Q"),A.stream=r.join(` `),A},OffPushDown:function(e){var A=Zr(e);A.scope=e.scope;var t=[];return t.push("0.749023 g"),t.push("0 0 "+oe(VA.internal.getWidth(e))+" "+oe(VA.internal.getHeight(e))+" re"),t.push("f"),A.stream=t.join(` `),A}}},createDefaultAppearanceStream:function(e){var A=e.scope.internal.getFont(e.fontName,e.fontStyle).id,t=e.scope.__private__.encodeColorString(e.color);return"/"+A+" "+e.fontSize+" Tf "+t}};VA.internal={Bezier_C:.551915024494,calculateCross:function(e){var A=VA.internal.getWidth(e),t=VA.internal.getHeight(e),r=Math.min(A,t);return{x1:{x:(A-r)/2,y:(t-r)/2+r},x2:{x:(A-r)/2+r,y:(t-r)/2},x3:{x:(A-r)/2,y:(t-r)/2},x4:{x:(A-r)/2+r,y:(t-r)/2+r}}}},VA.internal.getWidth=function(e){var A=0;return Te(e)==="object"&&(A=cf(e.Rect[2])),A},VA.internal.getHeight=function(e){var A=0;return Te(e)==="object"&&(A=cf(e.Rect[3])),A};var s0=Ye.addField=function(e){if(i0(this,e),!(e instanceof kr))throw new Error("Invalid argument passed to jsPDF.addField.");var A;return(A=e).scope.internal.acroformPlugin.printedOut&&(A.scope.internal.acroformPlugin.printedOut=!1,A.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),A.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(A),e.page=e.scope.internal.getCurrentPageInfo().pageNumber,this};Ye.AcroFormChoiceField=gs,Ye.AcroFormListBox=ps,Ye.AcroFormComboBox=Bs,Ye.AcroFormEditBox=sl,Ye.AcroFormButton=bt,Ye.AcroFormPushButton=al,Ye.AcroFormRadioButton=ws,Ye.AcroFormCheckBox=ol,Ye.AcroFormTextField=wi,Ye.AcroFormPasswordField=ll,Ye.AcroFormAppearance=VA,Ye.AcroForm={ChoiceField:gs,ListBox:ps,ComboBox:Bs,EditBox:sl,Button:bt,PushButton:al,RadioButton:ws,CheckBox:ol,TextField:wi,PasswordField:ll,Appearance:VA},$A.AcroForm={ChoiceField:gs,ListBox:ps,ComboBox:Bs,EditBox:sl,Button:bt,PushButton:al,RadioButton:ws,CheckBox:ol,TextField:wi,PasswordField:ll,Appearance:VA};$A.AcroForm;function $d(e){return e.reduce(function(A,t,r){return A[t]=r,A},{})}(function(e){e.__addimage__={};var A="UNKNOWN",t={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},r=e.__addimage__.getImageFileTypeByImageData=function(_,L){var D,O,nA,sA,oA,tA=A;if((L=L||A)==="RGBA"||_.data!==void 0&&_.data instanceof Uint8ClampedArray&&"height"in _&&"width"in _)return"RGBA";if(Y(_))for(oA in t)for(nA=t[oA],D=0;D<nA.length;D+=1){for(sA=!0,O=0;O<nA[D].length;O+=1)if(nA[D][O]!==void 0&&nA[D][O]!==_[O]){sA=!1;break}if(sA===!0){tA=oA;break}}else for(oA in t)for(nA=t[oA],D=0;D<nA.length;D+=1){for(sA=!0,O=0;O<nA[D].length;O+=1)if(nA[D][O]!==void 0&&nA[D][O]!==_.charCodeAt(O)){sA=!1;break}if(sA===!0){tA=oA;break}}return tA===A&&L!==A&&(tA=L),tA},n=function _(L){for(var D=this.internal.write,O=this.internal.putStream,nA=(0,this.internal.getFilters)();nA.indexOf("FlateEncode")!==-1;)nA.splice(nA.indexOf("FlateEncode"),1);L.objectId=this.internal.newObject();var sA=[];if(sA.push({key:"Type",value:"/XObject"}),sA.push({key:"Subtype",value:"/Image"}),sA.push({key:"Width",value:L.width}),sA.push({key:"Height",value:L.height}),L.colorSpace===U.INDEXED?sA.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(L.palette.length/3-1)+" "+("sMask"in L&&L.sMask!==void 0?L.objectId+2:L.objectId+1)+" 0 R]"}):(sA.push({key:"ColorSpace",value:"/"+L.colorSpace}),L.colorSpace===U.DEVICE_CMYK&&sA.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),sA.push({key:"BitsPerComponent",value:L.bitsPerComponent}),"decodeParameters"in L&&L.decodeParameters!==void 0&&sA.push({key:"DecodeParms",value:"<<"+L.decodeParameters+">>"}),"transparency"in L&&Array.isArray(L.transparency)){for(var oA="",tA=0,cA=L.transparency.length;tA<cA;tA++)oA+=L.transparency[tA]+" "+L.transparency[tA]+" ";sA.push({key:"Mask",value:"["+oA+"]"})}L.sMask!==void 0&&sA.push({key:"SMask",value:L.objectId+1+" 0 R"});var z=L.filter!==void 0?["/"+L.filter]:void 0;if(O({data:L.data,additionalKeyValues:sA,alreadyAppliedFilters:z,objectId:L.objectId}),D("endobj"),"sMask"in L&&L.sMask!==void 0){var BA="/Predictor "+L.predictor+" /Colors 1 /BitsPerComponent "+L.bitsPerComponent+" /Columns "+L.width,Q={width:L.width,height:L.height,colorSpace:"DeviceGray",bitsPerComponent:L.bitsPerComponent,decodeParameters:BA,data:L.sMask};"filter"in L&&(Q.filter=L.filter),_.call(this,Q)}if(L.colorSpace===U.INDEXED){var j=this.internal.newObject();O({data:R(new Uint8Array(L.palette)),objectId:j}),D("endobj")}},i=function(){var _=this.internal.collections.addImage_images;for(var L in _)n.call(this,_[L])},a=function(){var _,L=this.internal.collections.addImage_images,D=this.internal.write;for(var O in L)D("/I"+(_=L[O]).index,_.objectId,"0","R")},o=function(){this.internal.collections.addImage_images||(this.internal.collections.addImage_images={},this.internal.events.subscribe("putResources",i),this.internal.events.subscribe("putXobjectDict",a))},c=function(){var _=this.internal.collections.addImage_images;return o.call(this),_},d=function(){return Object.keys(this.internal.collections.addImage_images).length},B=function(_){return typeof e["process"+_.toUpperCase()]=="function"},p=function(_){return Te(_)==="object"&&_.nodeType===1},m=function(_,L){if(_.nodeName==="IMG"&&_.hasAttribute("src")){var D=""+_.getAttribute("src");if(D.indexOf("data:image/")===0)return wa(unescape(D).split("base64,").pop());var O=e.loadFile(D,!0);if(O!==void 0)return O}if(_.nodeName==="CANVAS"){if(_.width===0||_.height===0)throw new Error("Given canvas must have data. Canvas width: "+_.width+", height: "+_.height);var nA;switch(L){case"PNG":nA="image/png";break;case"WEBP":nA="image/webp";break;case"JPEG":case"JPG":default:nA="image/jpeg"}return wa(_.toDataURL(nA,1).split("base64,").pop())}},g=function(_){var L=this.internal.collections.addImage_images;if(L){for(var D in L)if(_===L[D].alias)return L[D]}},C=function(_,L,D){return _||L||(_=-96,L=-96),_<0&&(_=-1*D.width*72/_/this.internal.scaleFactor),L<0&&(L=-1*D.height*72/L/this.internal.scaleFactor),_===0&&(_=L*D.width/D.height),L===0&&(L=_*D.height/D.width),[_,L]},v=function(_,L,D,O,nA,sA){var oA=C.call(this,D,O,nA),tA=this.internal.getCoordinateString,cA=this.internal.getVerticalCoordinateString,z=c.call(this);if(D=oA[0],O=oA[1],z[nA.index]=nA,sA){sA*=Math.PI/180;var BA=Math.cos(sA),Q=Math.sin(sA),j=function(G){return G.toFixed(4)},P=[j(BA),j(Q),j(-1*Q),j(BA),0,0,"cm"]}this.internal.write("q"),sA?(this.internal.write([1,"0","0",1,tA(_),cA(L+O),"cm"].join(" ")),this.internal.write(P.join(" ")),this.internal.write([tA(D),"0","0",tA(O),"0","0","cm"].join(" "))):this.internal.write([tA(D),"0","0",tA(O),tA(_),cA(L+O),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+nA.index+" Do"),this.internal.write("Q")},U=e.color_spaces={DEVICE_RGB:"DeviceRGB",DEVICE_GRAY:"DeviceGray",DEVICE_CMYK:"DeviceCMYK",CAL_GREY:"CalGray",CAL_RGB:"CalRGB",LAB:"Lab",ICC_BASED:"ICCBased",INDEXED:"Indexed",PATTERN:"Pattern",SEPARATION:"Separation",DEVICE_N:"DeviceN"};e.decode={DCT_DECODE:"DCTDecode",FLATE_DECODE:"FlateDecode",LZW_DECODE:"LZWDecode",JPX_DECODE:"JPXDecode",JBIG2_DECODE:"JBIG2Decode",ASCII85_DECODE:"ASCII85Decode",ASCII_HEX_DECODE:"ASCIIHexDecode",RUN_LENGTH_DECODE:"RunLengthDecode",CCITT_FAX_DECODE:"CCITTFaxDecode"};var F=e.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},x=e.__addimage__.sHashCode=function(_){var L,D,O=0;if(typeof _=="string")for(D=_.length,L=0;L<D;L++)O=(O<<5)-O+_.charCodeAt(L),O|=0;else if(Y(_))for(D=_.byteLength/2,L=0;L<D;L++)O=(O<<5)-O+_[L],O|=0;return O},N=e.__addimage__.validateStringAsBase64=function(_){(_=_||"").toString().trim();var L=!0;return _.length===0&&(L=!1),_.length%4!=0&&(L=!1),/^[A-Za-z0-9+/]+$/.test(_.substr(0,_.length-2))===!1&&(L=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(_.substr(-2))===!1&&(L=!1),L},V=e.__addimage__.extractImageFromDataUrl=function(_){if(_==null||!(_=_.trim()).startsWith("data:"))return null;var L=_.indexOf(",");return L<0?null:_.substring(0,L).trim().endsWith("base64")?_.substring(L+1):null},q=e.__addimage__.supportsArrayBuffer=function(){return typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"};e.__addimage__.isArrayBuffer=function(_){return q()&&_ instanceof ArrayBuffer};var Y=e.__addimage__.isArrayBufferView=function(_){return q()&&typeof Uint32Array<"u"&&(_ instanceof Int8Array||_ instanceof Uint8Array||typeof Uint8ClampedArray<"u"&&_ instanceof Uint8ClampedArray||_ instanceof Int16Array||_ instanceof Uint16Array||_ instanceof Int32Array||_ instanceof Uint32Array||_ instanceof Float32Array||_ instanceof Float64Array)},W=e.__addimage__.binaryStringToUint8Array=function(_){for(var L=_.length,D=new Uint8Array(L),O=0;O<L;O++)D[O]=_.charCodeAt(O);return D},R=e.__addimage__.arrayBufferToBinaryString=function(_){for(var L="",D=Y(_)?_:new Uint8Array(_),O=0;O<D.length;O+=8192)L+=String.fromCharCode.apply(null,D.subarray(O,O+8192));return L};e.addImage=function(){var _,L,D,O,nA,sA,oA,tA,cA;if(typeof arguments[1]=="number"?(L=A,D=arguments[1],O=arguments[2],nA=arguments[3],sA=arguments[4],oA=arguments[5],tA=arguments[6],cA=arguments[7]):(L=arguments[1],D=arguments[2],O=arguments[3],nA=arguments[4],sA=arguments[5],oA=arguments[6],tA=arguments[7],cA=arguments[8]),Te(_=arguments[0])==="object"&&!p(_)&&"imageData"in _){var z=_;_=z.imageData,L=z.format||L||A,D=z.x||D||0,O=z.y||O||0,nA=z.w||z.width||nA,sA=z.h||z.height||sA,oA=z.alias||oA,tA=z.compression||tA,cA=z.rotation||z.angle||cA}var BA=this.internal.getFilters();if(tA===void 0&&BA.indexOf("FlateEncode")!==-1&&(tA="SLOW"),isNaN(D)||isNaN(O))throw new Error("Invalid coordinates passed to jsPDF.addImage");o.call(this);var Q=k.call(this,_,L,oA,tA);return v.call(this,D,O,nA,sA,Q,cA),this};var k=function(_,L,D,O){var nA,sA,oA;if(typeof _=="string"&&r(_)===A){_=unescape(_);var tA=$(_,!1);(tA!==""||(tA=e.loadFile(_,!0))!==void 0)&&(_=tA)}if(p(_)&&(_=m(_,L)),L=r(_,L),!B(L))throw new Error("addImage does not support files of type '"+L+"', please ensure that a plugin for '"+L+"' support is added.");if(((oA=D)==null||oA.length===0)&&(D=function(cA){return typeof cA=="string"||Y(cA)?x(cA):Y(cA.data)?x(cA.data):null}(_)),(nA=g.call(this,D))||(q()&&(_ instanceof Uint8Array||L==="RGBA"||(sA=_,_=W(_))),nA=this["process"+L.toUpperCase()](_,d.call(this),D,function(cA){return cA&&typeof cA=="string"&&(cA=cA.toUpperCase()),cA in e.image_compression?cA:F.NONE}(O),sA)),!nA)throw new Error("An unknown error occurred whilst processing the image.");return nA},$=e.__addimage__.convertBase64ToBinaryString=function(_,L){L=typeof L!="boolean"||L;var D,O="";if(typeof _=="string"){var nA;D=(nA=V(_))!==null&&nA!==void 0?nA:_;try{O=wa(D)}catch(sA){if(L)throw N(D)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+sA.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return O};e.getImageProperties=function(_){var L,D,O="";if(p(_)&&(_=m(_)),typeof _=="string"&&r(_)===A&&((O=$(_,!1))===""&&(O=e.loadFile(_)||""),_=O),D=r(_),!B(D))throw new Error("addImage does not support files of type '"+D+"', please ensure that a plugin for '"+D+"' support is added.");if(!q()||_ instanceof Uint8Array||(_=W(_)),!(L=this["process"+D.toUpperCase()](_)))throw new Error("An unknown error occurred whilst processing the image");return L.fileType=D,L}})($A.API),function(e){var A=function(t){if(t!==void 0&&t!="")return!0};$A.API.events.push(["addPage",function(t){this.internal.getPageInfo(t.pageNumber).pageContext.annotations=[]}]),e.events.push(["putPage",function(t){for(var r,n,i,a=this.internal.getCoordinateString,o=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(t.objId),d=t.pageContext.annotations,B=!1,p=0;p<d.length&&!B;p++)switch((r=d[p]).type){case"link":(A(r.options.url)||A(r.options.pageNumber))&&(B=!0);break;case"reference":case"text":case"freetext":B=!0}if(B!=0){this.internal.write("/Annots [");for(var m=0;m<d.length;m++){r=d[m];var g=this.internal.pdfEscape,C=this.internal.getEncryptor(t.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var v=this.internal.newAdditionalObject(),U=this.internal.newAdditionalObject(),F=this.internal.getEncryptor(v.objId),x=r.title||"Note";i="<</Type /Annot /Subtype /Text "+(n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y)+"] ")+"/Contents ("+g(F(r.contents))+")",i+=" /Popup "+U.objId+" 0 R",i+=" /P "+c.objId+" 0 R",i+=" /T ("+g(F(x))+") >>",v.content=i;var N=v.objId+" 0 R";i="<</Type /Annot /Subtype /Popup "+(n="/Rect ["+a(r.bounds.x+30)+" "+o(r.bounds.y+r.bounds.h)+" "+a(r.bounds.x+r.bounds.w+30)+" "+o(r.bounds.y)+"] ")+" /Parent "+N,r.open&&(i+=" /Open true"),i+=" >>",U.content=i,this.internal.write(v.objId,"0 R",U.objId,"0 R");break;case"freetext":n="/Rect ["+a(r.bounds.x)+" "+o(r.bounds.y)+" "+a(r.bounds.x+r.bounds.w)+" "+o(r.bounds.y+r.bounds.h)+"] ";var V=r.color||"#000000";i="<</Type /Annot /Subtype /FreeText "+n+"/Contents ("+g(C(r.contents))+")",i+=" /DS(font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+V+")",i+=" /Border [0 0 0]",i+=" >>",this.internal.write(i);break;case"link":if(r.options.name){var q=this.annotations._nameMap[r.options.name];r.options.pageNumber=q.page,r.options.top=q.y}else r.options.top||(r.options.top=0);if(n="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",i="",r.options.url)i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /A <</S /URI /URI ("+g(C(r.options.url))+") >>";else if(r.options.pageNumber)switch(i="<</Type /Annot /Subtype /Link "+n+"/Border [0 0 0] /Dest ["+this.internal.getPageInfo(r.options.pageNumber).objId+" 0 R",r.options.magFactor=r.options.magFactor||"XYZ",r.options.magFactor){case"Fit":i+=" /Fit]";break;case"FitH":i+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,i+=" /FitV "+r.options.left+"]";break;case"XYZ":default:var Y=o(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),i+=" /XYZ "+r.options.left+" "+Y+" "+r.options.zoom+"]"}i!=""&&(i+=" >>",this.internal.write(i))}}this.internal.write("]")}}]),e.createAnnotation=function(t){var r=this.internal.getCurrentPageInfo();switch(t.type){case"link":this.link(t.bounds.x,t.bounds.y,t.bounds.w,t.bounds.h,t);break;case"text":case"freetext":r.pageContext.annotations.push(t)}},e.link=function(t,r,n,i,a){var o=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;o.pageContext.annotations.push({finalBounds:{x:c(t),y:d(r),w:c(t+n),h:d(r+i)},options:a,type:"link"})},e.textWithLink=function(t,r,n,i){var a,o,c=this.getTextWidth(t),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(i.maxWidth!==void 0){o=i.maxWidth;var B=this.splitTextToSize(t,o).length;a=Math.ceil(d*B)}else o=c,a=d;return this.text(t,r,n,i),n+=.2*d,i.align==="center"&&(r-=c/2),i.align==="right"&&(r-=c),this.link(r,n-d,o,a,i),c},e.getTextWidth=function(t){var r=this.internal.getFontSize();return this.getStringUnitWidth(t)*r/this.internal.scaleFactor}}($A.API),function(e){var A={1569:[65152],1570:[65153,65154],1571:[65155,65156],1572:[65157,65158],1573:[65159,65160],1574:[65161,65162,65163,65164],1575:[65165,65166],1576:[65167,65168,65169,65170],1577:[65171,65172],1578:[65173,65174,65175,65176],1579:[65177,65178,65179,65180],1580:[65181,65182,65183,65184],1581:[65185,65186,65187,65188],1582:[65189,65190,65191,65192],1583:[65193,65194],1584:[65195,65196],1585:[65197,65198],1586:[65199,65200],1587:[65201,65202,65203,65204],1588:[65205,65206,65207,65208],1589:[65209,65210,65211,65212],1590:[65213,65214,65215,65216],1591:[65217,65218,65219,65220],1592:[65221,65222,65223,65224],1593:[65225,65226,65227,65228],1594:[65229,65230,65231,65232],1601:[65233,65234,65235,65236],1602:[65237,65238,65239,65240],1603:[65241,65242,65243,65244],1604:[65245,65246,65247,65248],1605:[65249,65250,65251,65252],1606:[65253,65254,65255,65256],1607:[65257,65258,65259,65260],1608:[65261,65262],1609:[65263,65264,64488,64489],1610:[65265,65266,65267,65268],1649:[64336,64337],1655:[64477],1657:[64358,64359,64360,64361],1658:[64350,64351,64352,64353],1659:[64338,64339,64340,64341],1662:[64342,64343,64344,64345],1663:[64354,64355,64356,64357],1664:[64346,64347,64348,64349],1667:[64374,64375,64376,64377],1668:[64370,64371,64372,64373],1670:[64378,64379,64380,64381],1671:[64382,64383,64384,64385],1672:[64392,64393],1676:[64388,64389],1677:[64386,64387],1678:[64390,64391],1681:[64396,64397],1688:[64394,64395],1700:[64362,64363,64364,64365],1702:[64366,64367,64368,64369],1705:[64398,64399,64400,64401],1709:[64467,64468,64469,64470],1711:[64402,64403,64404,64405],1713:[64410,64411,64412,64413],1715:[64406,64407,64408,64409],1722:[64414,64415],1723:[64416,64417,64418,64419],1726:[64426,64427,64428,64429],1728:[64420,64421],1729:[64422,64423,64424,64425],1733:[64480,64481],1734:[64473,64474],1735:[64471,64472],1736:[64475,64476],1737:[64482,64483],1739:[64478,64479],1740:[64508,64509,64510,64511],1744:[64484,64485,64486,64487],1746:[64430,64431],1747:[64432,64433]},t={65247:{65154:65269,65156:65271,65160:65273,65166:65275},65248:{65154:65270,65156:65272,65160:65274,65166:65276},65165:{65247:{65248:{65258:65010}}},1617:{1612:64606,1613:64607,1614:64608,1615:64609,1616:64610}},r={1612:64606,1613:64607,1614:64608,1615:64609,1616:64610},n=[1570,1571,1573,1575];e.__arabicParser__={};var i=e.__arabicParser__.isInArabicSubstitutionA=function(v){return A[v.charCodeAt(0)]!==void 0},a=e.__arabicParser__.isArabicLetter=function(v){return typeof v=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(v)},o=e.__arabicParser__.isArabicEndLetter=function(v){return a(v)&&i(v)&&A[v.charCodeAt(0)].length<=2},c=e.__arabicParser__.isArabicAlfLetter=function(v){return a(v)&&n.indexOf(v.charCodeAt(0))>=0};e.__arabicParser__.arabicLetterHasIsolatedForm=function(v){return a(v)&&i(v)&&A[v.charCodeAt(0)].length>=1};var d=e.__arabicParser__.arabicLetterHasFinalForm=function(v){return a(v)&&i(v)&&A[v.charCodeAt(0)].length>=2};e.__arabicParser__.arabicLetterHasInitialForm=function(v){return a(v)&&i(v)&&A[v.charCodeAt(0)].length>=3};var B=e.__arabicParser__.arabicLetterHasMedialForm=function(v){return a(v)&&i(v)&&A[v.charCodeAt(0)].length==4},p=e.__arabicParser__.resolveLigatures=function(v){var U=0,F=t,x="",N=0;for(U=0;U<v.length;U+=1)F[v.charCodeAt(U)]!==void 0?(N++,typeof(F=F[v.charCodeAt(U)])=="number"&&(x+=String.fromCharCode(F),F=t,N=0),U===v.length-1&&(F=t,x+=v.charAt(U-(N-1)),U-=N-1,N=0)):(F=t,x+=v.charAt(U-N),U-=N,N=0);return x};e.__arabicParser__.isArabicDiacritic=function(v){return v!==void 0&&r[v.charCodeAt(0)]!==void 0};var m=e.__arabicParser__.getCorrectForm=function(v,U,F){return a(v)?i(v)===!1?-1:!d(v)||!a(U)&&!a(F)||!a(F)&&o(U)||o(v)&&!a(U)||o(v)&&c(U)||o(v)&&o(U)?0:B(v)&&a(U)&&!o(U)&&a(F)&&d(F)?3:o(v)||!a(F)?1:2:-1},g=function(v){var U=0,F=0,x=0,N="",V="",q="",Y=(v=v||"").split("\\s+"),W=[];for(U=0;U<Y.length;U+=1){for(W.push(""),F=0;F<Y[U].length;F+=1)N=Y[U][F],V=Y[U][F-1],q=Y[U][F+1],a(N)?(x=m(N,V,q),W[U]+=x!==-1?String.fromCharCode(A[N.charCodeAt(0)][x]):N):W[U]+=N;W[U]=p(W[U])}return W.join(" ")},C=e.__arabicParser__.processArabic=e.processArabic=function(){var v,U=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,F=[];if(Array.isArray(U)){var x=0;for(F=[],x=0;x<U.length;x+=1)Array.isArray(U[x])?F.push([g(U[x][0]),U[x][1],U[x][2]]):F.push([g(U[x])]);v=F}else v=g(U);return typeof arguments[0]=="string"?v:(arguments[0].text=v,arguments[0])};e.events.push(["preProcessText",C])}($A.API),$A.API.autoPrint=function(e){var A;switch((e=e||{}).variant=e.variant||"non-conform",e.variant){case"javascript":this.addJS("print({});");break;case"non-conform":default:this.internal.events.subscribe("postPutResources",function(){A=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /Named"),this.internal.out("/Type /Action"),this.internal.out("/N /Print"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+A+" 0 R")})}return this},function(e){var A=function(){var t=void 0;Object.defineProperty(this,"pdf",{get:function(){return t},set:function(o){t=o}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(o){r=isNaN(o)||Number.isInteger(o)===!1||o<0?150:o,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var n=300;Object.defineProperty(this,"height",{get:function(){return n},set:function(o){n=isNaN(o)||Number.isInteger(o)===!1||o<0?300:o,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=n+1)}});var i=[];Object.defineProperty(this,"childNodes",{get:function(){return i},set:function(o){i=o}});var a={};Object.defineProperty(this,"style",{get:function(){return a},set:function(o){a=o}}),Object.defineProperty(this,"parentNode",{})};A.prototype.getContext=function(t,r){var n;if((t=t||"2d")!=="2d")return null;for(n in r)this.pdf.context2d.hasOwnProperty(n)&&(this.pdf.context2d[n]=r[n]);return this.pdf.context2d._canvas=this,this.pdf.context2d},A.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},e.events.push(["initialized",function(){this.canvas=new A,this.canvas.pdf=this}])}($A.API),function(e){var A={left:0,top:0,bottom:0,right:0},t=!1,r=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},A),this.internal.__cell__.margins.width=this.getPageWidth(),n.call(this))},n=function(){this.internal.__cell__.lastCell=new i,this.internal.__cell__.pages=1},i=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(v){c=v}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(v){d=v}});var B=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return B},set:function(v){B=v}});var p=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return p},set:function(v){p=v}});var m=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return m},set:function(v){m=v}});var g=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return g},set:function(v){g=v}});var C=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return C},set:function(v){C=v}}),this};i.prototype.clone=function(){return new i(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},i.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},e.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},e.getTextDimensions=function(c,d){r.call(this);var B=(d=d||{}).fontSize||this.getFontSize(),p=d.font||this.getFont(),m=d.scaleFactor||this.internal.scaleFactor,g=0,C=0,v=0,U=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var F=d.maxWidth;F>0?typeof c=="string"?c=this.splitTextToSize(c,F):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(N,V){return N.concat(U.splitTextToSize(V,F))},[])):c=Array.isArray(c)?c:[c];for(var x=0;x<c.length;x++)g<(v=this.getStringUnitWidth(c[x],{font:p})*B)&&(g=v);return g!==0&&(C=c.length),{w:g/=m,h:Math.max((C*B*this.getLineHeightFactor()-B*(this.getLineHeightFactor()-1))/m,0)}},e.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||A;return this.internal.__cell__.lastCell=new i(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var a=e.cell=function(){var c;c=arguments[0]instanceof i?arguments[0]:new i(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5]),r.call(this);var d=this.internal.__cell__.lastCell,B=this.internal.__cell__.padding,p=this.internal.__cell__.margins||A,m=this.internal.__cell__.tableHeaderRow,g=this.internal.__cell__.printHeaders;return d.lineNumber!==void 0&&(d.lineNumber===c.lineNumber?(c.x=(d.x||0)+(d.width||0),c.y=d.y||0):d.y+d.height+c.height+p.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=p.top,g&&m&&(this.printHeaderRow(c.lineNumber,!0),c.y+=m[0].height)):c.y=d.y+d.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,t===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-B,c.y+B,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+B,{align:"center",baseline:"top",maxWidth:c.width-B-B}):this.text(c.text,c.x+B,c.y+B,{align:"left",baseline:"top",maxWidth:c.width-B-B})),this.internal.__cell__.lastCell=c,this};e.table=function(c,d,B,p,m){if(r.call(this),!B)throw new Error("No data for PDF table.");var g,C,v,U,F=[],x=[],N=[],V={},q={},Y=[],W=[],R=(m=m||{}).autoSize||!1,k=m.printHeaders!==!1,$=m.css&&m.css["font-size"]!==void 0?16*m.css["font-size"]:m.fontSize||12,_=m.margins||Object.assign({width:this.getPageWidth()},A),L=typeof m.padding=="number"?m.padding:3,D=m.headerBackgroundColor||"#c8c8c8",O=m.headerTextColor||"#000";if(n.call(this),this.internal.__cell__.printHeaders=k,this.internal.__cell__.margins=_,this.internal.__cell__.table_font_size=$,this.internal.__cell__.padding=L,this.internal.__cell__.headerBackgroundColor=D,this.internal.__cell__.headerTextColor=O,this.setFontSize($),p==null)x=F=Object.keys(B[0]),N=F.map(function(){return"left"});else if(Array.isArray(p)&&Te(p[0])==="object")for(F=p.map(function(z){return z.name}),x=p.map(function(z){return z.prompt||z.name||""}),N=p.map(function(z){return z.align||"left"}),g=0;g<p.length;g+=1)q[p[g].name]=p[g].width*(19.049976/25.4);else Array.isArray(p)&&typeof p[0]=="string"&&(x=F=p,N=F.map(function(){return"left"}));if(R||Array.isArray(p)&&typeof p[0]=="string")for(g=0;g<F.length;g+=1){for(V[U=F[g]]=B.map(function(z){return z[U]}),this.setFont(void 0,"bold"),Y.push(this.getTextDimensions(x[g],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),C=V[U],this.setFont(void 0,"normal"),v=0;v<C.length;v+=1)Y.push(this.getTextDimensions(C[v],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);q[U]=Math.max.apply(null,Y)+L+L,Y=[]}if(k){var nA={};for(g=0;g<F.length;g+=1)nA[F[g]]={},nA[F[g]].text=x[g],nA[F[g]].align=N[g];var sA=o.call(this,nA,q);W=F.map(function(z){return new i(c,d,q[z],sA,nA[z].text,void 0,nA[z].align)}),this.setTableHeaderRow(W),this.printHeaderRow(1,!1)}var oA=p.reduce(function(z,BA){return z[BA.name]=BA.align,z},{});for(g=0;g<B.length;g+=1){"rowStart"in m&&m.rowStart instanceof Function&&m.rowStart({row:g,data:B[g]},this);var tA=o.call(this,B[g],q);for(v=0;v<F.length;v+=1){var cA=B[g][F[v]];"cellStart"in m&&m.cellStart instanceof Function&&m.cellStart({row:g,col:v,data:cA},this),a.call(this,new i(c,d,q[F[v]],tA,cA,g+2,oA[F[v]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var o=function(c,d){var B=this.internal.__cell__.padding,p=this.internal.__cell__.table_font_size,m=this.internal.scaleFactor;return Object.keys(c).map(function(g){var C=c[g];return this.splitTextToSize(C.hasOwnProperty("text")?C.text:C,d[g]-B-B)},this).map(function(g){return this.getLineHeightFactor()*g.length*p/m+B+B},this).reduce(function(g,C){return Math.max(g,C)},0)};e.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},e.printHeaderRow=function(c,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var B;if(t=!0,typeof this.internal.__cell__.headerFunction=="function"){var p=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new i(p[0],p[1],p[2],p[3],void 0,-1)}this.setFont(void 0,"bold");for(var m=[],g=0;g<this.internal.__cell__.tableHeaderRow.length;g+=1){B=this.internal.__cell__.tableHeaderRow[g].clone(),d&&(B.y=this.internal.__cell__.margins.top||0,m.push(B)),B.lineNumber=c;var C=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),a.call(this,B),this.setTextColor(C)}m.length>0&&this.setTableHeaderRow(m),this.setFont(void 0,"normal"),t=!1}}($A.API);var Ag={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},eg=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],Su=$d(eg),tg=[100,200,300,400,500,600,700,800,900],a0=$d(tg);function Eu(e){var A=e.family.replace(/"|'/g,"").toLowerCase(),t=function(i){return Ag[i=i||"normal"]?i:"normal"}(e.style),r=function(i){if(!i)return 400;if(typeof i=="number")return i>=100&&i<=900&&i%100==0?i:400;if(/^\d00$/.test(i))return parseInt(i);switch(i){case"bold":return 700;case"normal":default:return 400}}(e.weight),n=function(i){return typeof Su[i=i||"normal"]=="number"?i:"normal"}(e.stretch);return{family:A,style:t,weight:r,stretch:n,src:e.src||[],ref:e.ref||{name:A,style:[n,t,r].join(" ")}}}function uf(e,A,t,r){var n;for(n=t;n>=0&&n<A.length;n+=r)if(e[A[n]])return e[A[n]];for(n=t;n>=0&&n<A.length;n-=r)if(e[A[n]])return e[A[n]]}var o0={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},hf={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function ff(e){return[e.stretch,e.style,e.weight,e.family].join(" ")}function l0(e,A,t){for(var r=(t=t||{}).defaultFontFamily||"times",n=Object.assign({},o0,t.genericFontFamilies||{}),i=null,a=null,o=0;o<A.length;++o)if(n[(i=Eu(A[o])).family]&&(i.family=n[i.family]),e.hasOwnProperty(i.family)){a=e[i.family];break}if(!(a=a||e[r]))throw new Error("Could not find a font-family for the rule '"+ff(i)+"' and default family '"+r+"'.");if(a=function(c,d){if(d[c])return d[c];var B=Su[c],p=B<=Su.normal?-1:1,m=uf(d,eg,B,p);if(!m)throw new Error("Could not find a matching font-stretch value for "+c);return m}(i.stretch,a),a=function(c,d){if(d[c])return d[c];for(var B=Ag[c],p=0;p<B.length;++p)if(d[B[p]])return d[B[p]];throw new Error("Could not find a matching font-style for "+c)}(i.style,a),!(a=function(c,d){if(d[c])return d[c];if(c===400&&d[500])return d[500];if(c===500&&d[400])return d[400];var B=a0[c],p=uf(d,tg,B,c<400?-1:1);if(!p)throw new Error("Could not find a matching font-weight for value "+c);return p}(i.weight,a)))throw new Error("Failed to resolve a font for the rule '"+ff(i)+"'.");return a}function df(e){return e.trimLeft()}function c0(e,A){for(var t=0;t<e.length;){if(e.charAt(t)===A)return[e.substring(0,t),e.substring(t+1)];t+=1}return null}function u0(e){var A=e.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return A===null?null:[A[0],e.substring(A[0].length)]}var No,gf,pf,Vc=["times"];(function(e){var A,t,r,n,i,a,o,c,d,B=function(Q){return Q=Q||{},this.isStrokeTransparent=Q.isStrokeTransparent||!1,this.strokeOpacity=Q.strokeOpacity||1,this.strokeStyle=Q.strokeStyle||"#000000",this.fillStyle=Q.fillStyle||"#000000",this.isFillTransparent=Q.isFillTransparent||!1,this.fillOpacity=Q.fillOpacity||1,this.font=Q.font||"10px sans-serif",this.textBaseline=Q.textBaseline||"alphabetic",this.textAlign=Q.textAlign||"left",this.lineWidth=Q.lineWidth||1,this.lineJoin=Q.lineJoin||"miter",this.lineCap=Q.lineCap||"butt",this.path=Q.path||[],this.transform=Q.transform!==void 0?Q.transform.clone():new c,this.globalCompositeOperation=Q.globalCompositeOperation||"normal",this.globalAlpha=Q.globalAlpha||1,this.clip_path=Q.clip_path||[],this.currentPoint=Q.currentPoint||new a,this.miterLimit=Q.miterLimit||10,this.lastPoint=Q.lastPoint||new a,this.lineDashOffset=Q.lineDashOffset||0,this.lineDash=Q.lineDash||[],this.margin=Q.margin||[0,0,0,0],this.prevPageLastElemOffset=Q.prevPageLastElemOffset||0,this.ignoreClearRect=typeof Q.ignoreClearRect!="boolean"||Q.ignoreClearRect,this};e.events.push(["initialized",function(){this.context2d=new p(this),A=this.internal.f2,t=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,n=this.internal.getHorizontalCoordinate,i=this.internal.getVerticalCoordinate,a=this.internal.Point,o=this.internal.Rectangle,c=this.internal.Matrix,d=new B}]);var p=function(Q){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var j=Q;Object.defineProperty(this,"pdf",{get:function(){return j}});var P=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return P},set:function(gA){P=!!gA}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(gA){G=!!gA}});var X=0;Object.defineProperty(this,"posX",{get:function(){return X},set:function(gA){isNaN(gA)||(X=gA)}});var eA=0;Object.defineProperty(this,"posY",{get:function(){return eA},set:function(gA){isNaN(gA)||(eA=gA)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(gA){var K;typeof gA=="number"?K=[gA,gA,gA,gA]:((K=new Array(4))[0]=gA[0],K[1]=gA.length>=2?gA[1]:K[0],K[2]=gA.length>=3?gA[2]:K[0],K[3]=gA.length>=4?gA[3]:K[1]),d.margin=K}});var uA=!1;Object.defineProperty(this,"autoPaging",{get:function(){return uA},set:function(gA){uA=gA}});var aA=0;Object.defineProperty(this,"lastBreak",{get:function(){return aA},set:function(gA){aA=gA}});var wA=[];Object.defineProperty(this,"pageBreaks",{get:function(){return wA},set:function(gA){wA=gA}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(gA){gA instanceof B&&(d=gA)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(gA){d.path=gA}});var bA=[];Object.defineProperty(this,"ctxStack",{get:function(){return bA},set:function(gA){bA=gA}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(gA){var K;K=m(gA),this.ctx.fillStyle=K.style,this.ctx.isFillTransparent=K.a===0,this.ctx.fillOpacity=K.a,this.pdf.setFillColor(K.r,K.g,K.b,{a:K.a}),this.pdf.setTextColor(K.r,K.g,K.b,{a:K.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(gA){var K=m(gA);this.ctx.strokeStyle=K.style,this.ctx.isStrokeTransparent=K.a===0,this.ctx.strokeOpacity=K.a,K.a===0?this.pdf.setDrawColor(255,255,255):(K.a,this.pdf.setDrawColor(K.r,K.g,K.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(gA){["butt","round","square"].indexOf(gA)!==-1&&(this.ctx.lineCap=gA,this.pdf.setLineCap(gA))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(gA){isNaN(gA)||(this.ctx.lineWidth=gA,this.pdf.setLineWidth(gA))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(gA){["bevel","round","miter"].indexOf(gA)!==-1&&(this.ctx.lineJoin=gA,this.pdf.setLineJoin(gA))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(gA){isNaN(gA)||(this.ctx.miterLimit=gA,this.pdf.setMiterLimit(gA))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(gA){this.ctx.textBaseline=gA}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(gA){["right","end","center","left","start"].indexOf(gA)!==-1&&(this.ctx.textAlign=gA)}});var SA=null;function EA(gA,K){if(SA===null){var WA=function(kA){var QA=[];return Object.keys(kA).forEach(function(LA){kA[LA].forEach(function(TA){var _A=null;switch(TA){case"bold":_A={family:LA,weight:"bold"};break;case"italic":_A={family:LA,style:"italic"};break;case"bolditalic":_A={family:LA,weight:"bold",style:"italic"};break;case"":case"normal":_A={family:LA}}_A!==null&&(_A.ref={name:LA,style:TA},QA.push(_A))})}),QA}(gA.getFontList());SA=function(kA){for(var QA={},LA=0;LA<kA.length;++LA){var TA=Eu(kA[LA]),_A=TA.family,qA=TA.stretch,PA=TA.style,se=TA.weight;QA[_A]=QA[_A]||{},QA[_A][qA]=QA[_A][qA]||{},QA[_A][qA][PA]=QA[_A][qA][PA]||{},QA[_A][qA][PA][se]=TA}return QA}(WA.concat(K))}return SA}var XA=null;Object.defineProperty(this,"fontFaces",{get:function(){return XA},set:function(gA){SA=null,XA=gA}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(gA){var K;if(this.ctx.font=gA,(K=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z]+?)\s*$/i.exec(gA))!==null){var WA=K[1];K[2];var kA=K[3],QA=K[4];K[5];var LA=K[6],TA=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(QA)[2];QA=Math.floor(TA==="px"?parseFloat(QA)*this.pdf.internal.scaleFactor:TA==="em"?parseFloat(QA)*this.pdf.getFontSize():parseFloat(QA)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(QA);var _A=function(GA){var le,NA,ft=[],ve=GA.trim();if(ve==="")return Vc;if(ve in hf)return[hf[ve]];for(;ve!=="";){switch(NA=null,le=(ve=df(ve)).charAt(0)){case'"':case"'":NA=c0(ve.substring(1),le);break;default:NA=u0(ve)}if(NA===null||(ft.push(NA[0]),(ve=df(NA[1]))!==""&&ve.charAt(0)!==","))return Vc;ve=ve.replace(/^,/,"")}return ft}(LA);if(this.fontFaces){var qA=l0(EA(this.pdf,this.fontFaces),_A.map(function(GA){return{family:GA,stretch:"normal",weight:kA,style:WA}}));this.pdf.setFont(qA.ref.name,qA.ref.style)}else{var PA="";(kA==="bold"||parseInt(kA,10)>=700||WA==="bold")&&(PA="bold"),WA==="italic"&&(PA+="italic"),PA.length===0&&(PA="normal");for(var se="",he={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},pe=0;pe<_A.length;pe++){if(this.pdf.internal.getFont(_A[pe],PA,{noFallback:!0,disableWarning:!0})!==void 0){se=_A[pe];break}if(PA==="bolditalic"&&this.pdf.internal.getFont(_A[pe],"bold",{noFallback:!0,disableWarning:!0})!==void 0)se=_A[pe],PA="bold";else if(this.pdf.internal.getFont(_A[pe],"normal",{noFallback:!0,disableWarning:!0})!==void 0){se=_A[pe],PA="normal";break}}if(se===""){for(var Se=0;Se<_A.length;Se++)if(he[_A[Se]]){se=he[_A[Se]];break}}se=se===""?"Times":se,this.pdf.setFont(se,PA)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(gA){this.ctx.globalCompositeOperation=gA}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(gA){this.ctx.globalAlpha=gA}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(gA){this.ctx.lineDashOffset=gA,BA.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(gA){this.ctx.lineDash=gA,BA.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(gA){this.ctx.ignoreClearRect=!!gA}})};p.prototype.setLineDash=function(Q){this.lineDash=Q},p.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},p.prototype.fill=function(){V.call(this,"fill",!1)},p.prototype.stroke=function(){V.call(this,"stroke",!1)},p.prototype.beginPath=function(){this.path=[{type:"begin"}]},p.prototype.moveTo=function(Q,j){if(isNaN(Q)||isNaN(j))throw De.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var P=this.ctx.transform.applyToPoint(new a(Q,j));this.path.push({type:"mt",x:P.x,y:P.y}),this.ctx.lastPoint=new a(Q,j)},p.prototype.closePath=function(){var Q=new a(0,0),j=0;for(j=this.path.length-1;j!==-1;j--)if(this.path[j].type==="begin"&&Te(this.path[j+1])==="object"&&typeof this.path[j+1].x=="number"){Q=new a(this.path[j+1].x,this.path[j+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new a(Q.x,Q.y)},p.prototype.lineTo=function(Q,j){if(isNaN(Q)||isNaN(j))throw De.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var P=this.ctx.transform.applyToPoint(new a(Q,j));this.path.push({type:"lt",x:P.x,y:P.y}),this.ctx.lastPoint=new a(P.x,P.y)},p.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),V.call(this,null,!0)},p.prototype.quadraticCurveTo=function(Q,j,P,G){if(isNaN(P)||isNaN(G)||isNaN(Q)||isNaN(j))throw De.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var X=this.ctx.transform.applyToPoint(new a(P,G)),eA=this.ctx.transform.applyToPoint(new a(Q,j));this.path.push({type:"qct",x1:eA.x,y1:eA.y,x:X.x,y:X.y}),this.ctx.lastPoint=new a(X.x,X.y)},p.prototype.bezierCurveTo=function(Q,j,P,G,X,eA){if(isNaN(X)||isNaN(eA)||isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G))throw De.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var uA=this.ctx.transform.applyToPoint(new a(X,eA)),aA=this.ctx.transform.applyToPoint(new a(Q,j)),wA=this.ctx.transform.applyToPoint(new a(P,G));this.path.push({type:"bct",x1:aA.x,y1:aA.y,x2:wA.x,y2:wA.y,x:uA.x,y:uA.y}),this.ctx.lastPoint=new a(uA.x,uA.y)},p.prototype.arc=function(Q,j,P,G,X,eA){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G)||isNaN(X))throw De.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(eA=!!eA,!this.ctx.transform.isIdentity){var uA=this.ctx.transform.applyToPoint(new a(Q,j));Q=uA.x,j=uA.y;var aA=this.ctx.transform.applyToPoint(new a(0,P)),wA=this.ctx.transform.applyToPoint(new a(0,0));P=Math.sqrt(Math.pow(aA.x-wA.x,2)+Math.pow(aA.y-wA.y,2))}Math.abs(X-G)>=2*Math.PI&&(G=0,X=2*Math.PI),this.path.push({type:"arc",x:Q,y:j,radius:P,startAngle:G,endAngle:X,counterclockwise:eA})},p.prototype.arcTo=function(Q,j,P,G,X){throw new Error("arcTo not implemented.")},p.prototype.rect=function(Q,j,P,G){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G))throw De.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(Q,j),this.lineTo(Q+P,j),this.lineTo(Q+P,j+G),this.lineTo(Q,j+G),this.lineTo(Q,j),this.lineTo(Q+P,j),this.lineTo(Q,j)},p.prototype.fillRect=function(Q,j,P,G){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G))throw De.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!g.call(this)){var X={};this.lineCap!=="butt"&&(X.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(X.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(Q,j,P,G),this.fill(),X.hasOwnProperty("lineCap")&&(this.lineCap=X.lineCap),X.hasOwnProperty("lineJoin")&&(this.lineJoin=X.lineJoin)}},p.prototype.strokeRect=function(Q,j,P,G){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G))throw De.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");C.call(this)||(this.beginPath(),this.rect(Q,j,P,G),this.stroke())},p.prototype.clearRect=function(Q,j,P,G){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G))throw De.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(Q,j,P,G))},p.prototype.save=function(Q){Q=typeof Q!="boolean"||Q;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,P=0;P<this.pdf.internal.getNumberOfPages();P++)this.pdf.setPage(P+1),this.pdf.internal.out("q");if(this.pdf.setPage(j),Q){this.ctx.fontSize=this.pdf.internal.getFontSize();var G=new B(this.ctx);this.ctxStack.push(this.ctx),this.ctx=G}},p.prototype.restore=function(Q){Q=typeof Q!="boolean"||Q;for(var j=this.pdf.internal.getCurrentPageInfo().pageNumber,P=0;P<this.pdf.internal.getNumberOfPages();P++)this.pdf.setPage(P+1),this.pdf.internal.out("Q");this.pdf.setPage(j),Q&&this.ctxStack.length!==0&&(this.ctx=this.ctxStack.pop(),this.fillStyle=this.ctx.fillStyle,this.strokeStyle=this.ctx.strokeStyle,this.font=this.ctx.font,this.lineCap=this.ctx.lineCap,this.lineWidth=this.ctx.lineWidth,this.lineJoin=this.ctx.lineJoin,this.lineDash=this.ctx.lineDash,this.lineDashOffset=this.ctx.lineDashOffset)},p.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var m=function(Q){var j,P,G,X;if(Q.isCanvasGradient===!0&&(Q=Q.getColor()),!Q)return{r:0,g:0,b:0,a:0,style:Q};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(Q))j=0,P=0,G=0,X=0;else{var eA=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(Q);if(eA!==null)j=parseInt(eA[1]),P=parseInt(eA[2]),G=parseInt(eA[3]),X=1;else if((eA=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(Q))!==null)j=parseInt(eA[1]),P=parseInt(eA[2]),G=parseInt(eA[3]),X=parseFloat(eA[4]);else{if(X=1,typeof Q=="string"&&Q.charAt(0)!=="#"){var uA=new qd(Q);Q=uA.ok?uA.toHex():"#000000"}Q.length===4?(j=Q.substring(1,2),j+=j,P=Q.substring(2,3),P+=P,G=Q.substring(3,4),G+=G):(j=Q.substring(1,3),P=Q.substring(3,5),G=Q.substring(5,7)),j=parseInt(j,16),P=parseInt(P,16),G=parseInt(G,16)}}return{r:j,g:P,b:G,a:X,style:Q}},g=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},C=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};p.prototype.fillText=function(Q,j,P,G){if(isNaN(j)||isNaN(P)||typeof Q!="string")throw De.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(G=isNaN(G)?void 0:G,!g.call(this)){var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;L.call(this,{text:Q,x:j,y:P,scale:eA,angle:X,align:this.textAlign,maxWidth:G})}},p.prototype.strokeText=function(Q,j,P,G){if(isNaN(j)||isNaN(P)||typeof Q!="string")throw De.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!C.call(this)){G=isNaN(G)?void 0:G;var X=tA(this.ctx.transform.rotation),eA=this.ctx.transform.scaleX;L.call(this,{text:Q,x:j,y:P,scale:eA,renderingMode:"stroke",angle:X,align:this.textAlign,maxWidth:G})}},p.prototype.measureText=function(Q){if(typeof Q!="string")throw De.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var j=this.pdf,P=this.pdf.internal.scaleFactor,G=j.internal.getFontSize(),X=j.getStringUnitWidth(Q)*G/j.internal.scaleFactor,eA=function(uA){var aA=(uA=uA||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return aA}}),this};return new eA({width:X*=Math.round(96*P/72*1e4)/1e4})},p.prototype.scale=function(Q,j){if(isNaN(Q)||isNaN(j))throw De.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.scale");var P=new c(Q,0,0,j,0,0);this.ctx.transform=this.ctx.transform.multiply(P)},p.prototype.rotate=function(Q){if(isNaN(Q))throw De.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var j=new c(Math.cos(Q),Math.sin(Q),-Math.sin(Q),Math.cos(Q),0,0);this.ctx.transform=this.ctx.transform.multiply(j)},p.prototype.translate=function(Q,j){if(isNaN(Q)||isNaN(j))throw De.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var P=new c(1,0,0,1,Q,j);this.ctx.transform=this.ctx.transform.multiply(P)},p.prototype.transform=function(Q,j,P,G,X,eA){if(isNaN(Q)||isNaN(j)||isNaN(P)||isNaN(G)||isNaN(X)||isNaN(eA))throw De.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var uA=new c(Q,j,P,G,X,eA);this.ctx.transform=this.ctx.transform.multiply(uA)},p.prototype.setTransform=function(Q,j,P,G,X,eA){Q=isNaN(Q)?1:Q,j=isNaN(j)?0:j,P=isNaN(P)?0:P,G=isNaN(G)?1:G,X=isNaN(X)?0:X,eA=isNaN(eA)?0:eA,this.ctx.transform=new c(Q,j,P,G,X,eA)};var v=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};p.prototype.drawImage=function(Q,j,P,G,X,eA,uA,aA,wA){var bA=this.pdf.getImageProperties(Q),SA=1,EA=1,XA=1,gA=1;G!==void 0&&aA!==void 0&&(XA=aA/G,gA=wA/X,SA=bA.width/G*aA/G,EA=bA.height/X*wA/X),eA===void 0&&(eA=j,uA=P,j=0,P=0),G!==void 0&&aA===void 0&&(aA=G,wA=X),G===void 0&&aA===void 0&&(aA=bA.width,wA=bA.height);for(var K,WA=this.ctx.transform.decompose(),kA=tA(WA.rotate.shx),QA=new c,LA=(QA=(QA=(QA=QA.multiply(WA.translate)).multiply(WA.skew)).multiply(WA.scale)).applyToRectangle(new o(eA-j*XA,uA-P*gA,G*SA,X*EA)),TA=U.call(this,LA),_A=[],qA=0;qA<TA.length;qA+=1)_A.indexOf(TA[qA])===-1&&_A.push(TA[qA]);if(N(_A),this.autoPaging)for(var PA=_A[0],se=_A[_A.length-1],he=PA;he<se+1;he++){this.pdf.setPage(he);var pe=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Se=he===1?this.posY+this.margin[0]:this.margin[0],GA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],le=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],NA=he===1?0:GA+(he-2)*le;if(this.ctx.clip_path.length!==0){var ft=this.path;K=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(K,this.posX+this.margin[3],-NA+Se+this.ctx.prevPageLastElemOffset),q.call(this,"fill",!0),this.path=ft}var ve=JSON.parse(JSON.stringify(LA));ve=x([ve],this.posX+this.margin[3],-NA+Se+this.ctx.prevPageLastElemOffset)[0];var zt=(he>PA||he<se)&&v.call(this);zt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],pe,le,null).clip().discardPath()),this.pdf.addImage(Q,"JPEG",ve.x,ve.y,ve.w,ve.h,null,null,kA),zt&&this.pdf.restoreGraphicsState()}else this.pdf.addImage(Q,"JPEG",LA.x,LA.y,LA.w,LA.h,null,null,kA)};var U=function(Q,j,P){var G=[];j=j||this.pdf.internal.pageSize.width,P=P||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var X=this.posY+this.ctx.prevPageLastElemOffset;switch(Q.type){default:case"mt":case"lt":G.push(Math.floor((Q.y+X)/P)+1);break;case"arc":G.push(Math.floor((Q.y+X-Q.radius)/P)+1),G.push(Math.floor((Q.y+X+Q.radius)/P)+1);break;case"qct":var eA=cA(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x,Q.y);G.push(Math.floor((eA.y+X)/P)+1),G.push(Math.floor((eA.y+eA.h+X)/P)+1);break;case"bct":var uA=z(this.ctx.lastPoint.x,this.ctx.lastPoint.y,Q.x1,Q.y1,Q.x2,Q.y2,Q.x,Q.y);G.push(Math.floor((uA.y+X)/P)+1),G.push(Math.floor((uA.y+uA.h+X)/P)+1);break;case"rect":G.push(Math.floor((Q.y+X)/P)+1),G.push(Math.floor((Q.y+Q.h+X)/P)+1)}for(var aA=0;aA<G.length;aA+=1)for(;this.pdf.internal.getNumberOfPages()<G[aA];)F.call(this);return G},F=function(){var Q=this.fillStyle,j=this.strokeStyle,P=this.font,G=this.lineCap,X=this.lineWidth,eA=this.lineJoin;this.pdf.addPage(),this.fillStyle=Q,this.strokeStyle=j,this.font=P,this.lineCap=G,this.lineWidth=X,this.lineJoin=eA},x=function(Q,j,P){for(var G=0;G<Q.length;G++)switch(Q[G].type){case"bct":Q[G].x2+=j,Q[G].y2+=P;case"qct":Q[G].x1+=j,Q[G].y1+=P;case"mt":case"lt":case"arc":default:Q[G].x+=j,Q[G].y+=P}return Q},N=function(Q){return Q.sort(function(j,P){return j-P})},V=function(Q,j){for(var P,G,X=this.fillStyle,eA=this.strokeStyle,uA=this.lineCap,aA=this.lineWidth,wA=Math.abs(aA*this.ctx.transform.scaleX),bA=this.lineJoin,SA=JSON.parse(JSON.stringify(this.path)),EA=JSON.parse(JSON.stringify(this.path)),XA=[],gA=0;gA<EA.length;gA++)if(EA[gA].x!==void 0)for(var K=U.call(this,EA[gA]),WA=0;WA<K.length;WA+=1)XA.indexOf(K[WA])===-1&&XA.push(K[WA]);for(var kA=0;kA<XA.length;kA++)for(;this.pdf.internal.getNumberOfPages()<XA[kA];)F.call(this);if(N(XA),this.autoPaging)for(var QA=XA[0],LA=XA[XA.length-1],TA=QA;TA<LA+1;TA++){this.pdf.setPage(TA),this.fillStyle=X,this.strokeStyle=eA,this.lineCap=uA,this.lineWidth=wA,this.lineJoin=bA;var _A=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],qA=TA===1?this.posY+this.margin[0]:this.margin[0],PA=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],se=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],he=TA===1?0:PA+(TA-2)*se;if(this.ctx.clip_path.length!==0){var pe=this.path;P=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(P,this.posX+this.margin[3],-he+qA+this.ctx.prevPageLastElemOffset),q.call(this,Q,!0),this.path=pe}if(G=JSON.parse(JSON.stringify(SA)),this.path=x(G,this.posX+this.margin[3],-he+qA+this.ctx.prevPageLastElemOffset),j===!1||TA===0){var Se=(TA>QA||TA<LA)&&v.call(this);Se&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],_A,se,null).clip().discardPath()),q.call(this,Q,j),Se&&this.pdf.restoreGraphicsState()}this.lineWidth=aA}else this.lineWidth=wA,q.call(this,Q,j),this.lineWidth=aA;this.path=SA},q=function(Q,j){if((Q!=="stroke"||j||!C.call(this))&&(Q==="stroke"||j||!g.call(this))){for(var P,G,X=[],eA=this.path,uA=0;uA<eA.length;uA++){var aA=eA[uA];switch(aA.type){case"begin":X.push({begin:!0});break;case"close":X.push({close:!0});break;case"mt":X.push({start:aA,deltas:[],abs:[]});break;case"lt":var wA=X.length;if(eA[uA-1]&&!isNaN(eA[uA-1].x)&&(P=[aA.x-eA[uA-1].x,aA.y-eA[uA-1].y],wA>0)){for(;wA>=0;wA--)if(X[wA-1].close!==!0&&X[wA-1].begin!==!0){X[wA-1].deltas.push(P),X[wA-1].abs.push(aA);break}}break;case"bct":P=[aA.x1-eA[uA-1].x,aA.y1-eA[uA-1].y,aA.x2-eA[uA-1].x,aA.y2-eA[uA-1].y,aA.x-eA[uA-1].x,aA.y-eA[uA-1].y],X[X.length-1].deltas.push(P);break;case"qct":var bA=eA[uA-1].x+2/3*(aA.x1-eA[uA-1].x),SA=eA[uA-1].y+2/3*(aA.y1-eA[uA-1].y),EA=aA.x+2/3*(aA.x1-aA.x),XA=aA.y+2/3*(aA.y1-aA.y),gA=aA.x,K=aA.y;P=[bA-eA[uA-1].x,SA-eA[uA-1].y,EA-eA[uA-1].x,XA-eA[uA-1].y,gA-eA[uA-1].x,K-eA[uA-1].y],X[X.length-1].deltas.push(P);break;case"arc":X.push({deltas:[],abs:[],arc:!0}),Array.isArray(X[X.length-1].abs)&&X[X.length-1].abs.push(aA)}}G=j?null:Q==="stroke"?"stroke":"fill";for(var WA=!1,kA=0;kA<X.length;kA++)if(X[kA].arc)for(var QA=X[kA].abs,LA=0;LA<QA.length;LA++){var TA=QA[LA];TA.type==="arc"?R.call(this,TA.x,TA.y,TA.radius,TA.startAngle,TA.endAngle,TA.counterclockwise,void 0,j,!WA):D.call(this,TA.x,TA.y),WA=!0}else if(X[kA].close===!0)this.pdf.internal.out("h"),WA=!1;else if(X[kA].begin!==!0){var _A=X[kA].start.x,qA=X[kA].start.y;O.call(this,X[kA].deltas,_A,qA),WA=!0}G&&k.call(this,G),j&&$.call(this)}},Y=function(Q){var j=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,P=j*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return Q-P;case"top":return Q+j-P;case"hanging":return Q+j-2*P;case"middle":return Q+j/2-P;case"ideographic":return Q;case"alphabetic":default:return Q}},W=function(Q){return Q+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};p.prototype.createLinearGradient=function(){var Q=function(){};return Q.colorStops=[],Q.addColorStop=function(j,P){this.colorStops.push([j,P])},Q.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},Q.isCanvasGradient=!0,Q},p.prototype.createPattern=function(){return this.createLinearGradient()},p.prototype.createRadialGradient=function(){return this.createLinearGradient()};var R=function(Q,j,P,G,X,eA,uA,aA,wA){for(var bA=sA.call(this,P,G,X,eA),SA=0;SA<bA.length;SA++){var EA=bA[SA];SA===0&&(wA?_.call(this,EA.x1+Q,EA.y1+j):D.call(this,EA.x1+Q,EA.y1+j)),nA.call(this,Q,j,EA.x2,EA.y2,EA.x3,EA.y3,EA.x4,EA.y4)}aA?$.call(this):k.call(this,uA)},k=function(Q){switch(Q){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},$=function(){this.pdf.clip(),this.pdf.discardPath()},_=function(Q,j){this.pdf.internal.out(t(Q)+" "+r(j)+" m")},L=function(Q){var j;switch(Q.align){case"right":case"end":j="right";break;case"center":j="center";break;case"left":case"start":default:j="left"}var P=this.pdf.getTextDimensions(Q.text),G=Y.call(this,Q.y),X=W.call(this,G)-P.h,eA=this.ctx.transform.applyToPoint(new a(Q.x,G)),uA=this.ctx.transform.decompose(),aA=new c;aA=(aA=(aA=aA.multiply(uA.translate)).multiply(uA.skew)).multiply(uA.scale);for(var wA,bA,SA,EA=this.ctx.transform.applyToRectangle(new o(Q.x,G,P.w,P.h)),XA=aA.applyToRectangle(new o(Q.x,X,P.w,P.h)),gA=U.call(this,XA),K=[],WA=0;WA<gA.length;WA+=1)K.indexOf(gA[WA])===-1&&K.push(gA[WA]);if(N(K),this.autoPaging)for(var kA=K[0],QA=K[K.length-1],LA=kA;LA<QA+1;LA++){this.pdf.setPage(LA);var TA=LA===1?this.posY+this.margin[0]:this.margin[0],_A=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],qA=this.pdf.internal.pageSize.height-this.margin[2],PA=qA-this.margin[0],se=this.pdf.internal.pageSize.width-this.margin[1],he=se-this.margin[3],pe=LA===1?0:_A+(LA-2)*PA;if(this.ctx.clip_path.length!==0){var Se=this.path;wA=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=x(wA,this.posX+this.margin[3],-1*pe+TA),q.call(this,"fill",!0),this.path=Se}var GA=x([JSON.parse(JSON.stringify(XA))],this.posX+this.margin[3],-pe+TA+this.ctx.prevPageLastElemOffset)[0];Q.scale>=.01&&(bA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(bA*Q.scale),SA=this.lineWidth,this.lineWidth=SA*Q.scale);var le=this.autoPaging!=="text";if(le||GA.y+GA.h<=qA){if(le||GA.y>=TA&&GA.x<=se){var NA=le?Q.text:this.pdf.splitTextToSize(Q.text,Q.maxWidth||se-GA.x)[0],ft=x([JSON.parse(JSON.stringify(EA))],this.posX+this.margin[3],-pe+TA+this.ctx.prevPageLastElemOffset)[0],ve=le&&(LA>kA||LA<QA)&&v.call(this);ve&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],he,PA,null).clip().discardPath()),this.pdf.text(NA,ft.x,ft.y,{angle:Q.angle,align:j,renderingMode:Q.renderingMode}),ve&&this.pdf.restoreGraphicsState()}}else GA.y<qA&&(this.ctx.prevPageLastElemOffset+=qA-GA.y);Q.scale>=.01&&(this.pdf.setFontSize(bA),this.lineWidth=SA)}else Q.scale>=.01&&(bA=this.pdf.internal.getFontSize(),this.pdf.setFontSize(bA*Q.scale),SA=this.lineWidth,this.lineWidth=SA*Q.scale),this.pdf.text(Q.text,eA.x+this.posX,eA.y+this.posY,{angle:Q.angle,align:j,renderingMode:Q.renderingMode,maxWidth:Q.maxWidth}),Q.scale>=.01&&(this.pdf.setFontSize(bA),this.lineWidth=SA)},D=function(Q,j,P,G){P=P||0,G=G||0,this.pdf.internal.out(t(Q+P)+" "+r(j+G)+" l")},O=function(Q,j,P){return this.pdf.lines(Q,j,P,null,null)},nA=function(Q,j,P,G,X,eA,uA,aA){this.pdf.internal.out([A(n(P+Q)),A(i(G+j)),A(n(X+Q)),A(i(eA+j)),A(n(uA+Q)),A(i(aA+j)),"c"].join(" "))},sA=function(Q,j,P,G){for(var X=2*Math.PI,eA=Math.PI/2;j>P;)j-=X;var uA=Math.abs(P-j);uA<X&&G&&(uA=X-uA);for(var aA=[],wA=G?-1:1,bA=j;uA>1e-5;){var SA=bA+wA*Math.min(uA,eA);aA.push(oA.call(this,Q,bA,SA)),uA-=Math.abs(SA-bA),bA=SA}return aA},oA=function(Q,j,P){var G=(P-j)/2,X=Q*Math.cos(G),eA=Q*Math.sin(G),uA=X,aA=-eA,wA=uA*uA+aA*aA,bA=wA+uA*X+aA*eA,SA=4/3*(Math.sqrt(2*wA*bA)-bA)/(uA*eA-aA*X),EA=uA-SA*aA,XA=aA+SA*uA,gA=EA,K=-XA,WA=G+j,kA=Math.cos(WA),QA=Math.sin(WA);return{x1:Q*Math.cos(j),y1:Q*Math.sin(j),x2:EA*kA-XA*QA,y2:EA*QA+XA*kA,x3:gA*kA-K*QA,y3:gA*QA+K*kA,x4:Q*Math.cos(P),y4:Q*Math.sin(P)}},tA=function(Q){return 180*Q/Math.PI},cA=function(Q,j,P,G,X,eA){var uA=Q+.5*(P-Q),aA=j+.5*(G-j),wA=X+.5*(P-X),bA=eA+.5*(G-eA),SA=Math.min(Q,X,uA,wA),EA=Math.max(Q,X,uA,wA),XA=Math.min(j,eA,aA,bA),gA=Math.max(j,eA,aA,bA);return new o(SA,XA,EA-SA,gA-XA)},z=function(Q,j,P,G,X,eA,uA,aA){var wA,bA,SA,EA,XA,gA,K,WA,kA,QA,LA,TA,_A,qA,PA=P-Q,se=G-j,he=X-P,pe=eA-G,Se=uA-X,GA=aA-eA;for(bA=0;bA<41;bA++)kA=(K=(SA=Q+(wA=bA/40)*PA)+wA*((XA=P+wA*he)-SA))+wA*(XA+wA*(X+wA*Se-XA)-K),QA=(WA=(EA=j+wA*se)+wA*((gA=G+wA*pe)-EA))+wA*(gA+wA*(eA+wA*GA-gA)-WA),bA==0?(LA=kA,TA=QA,_A=kA,qA=QA):(LA=Math.min(LA,kA),TA=Math.min(TA,QA),_A=Math.max(_A,kA),qA=Math.max(qA,QA));return new o(Math.round(LA),Math.round(TA),Math.round(_A-LA),Math.round(qA-TA))},BA=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var Q,j,P=(Q=this.ctx.lineDash,j=this.ctx.lineDashOffset,JSON.stringify({lineDash:Q,lineDashOffset:j}));this.prevLineDash!==P&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=P)}}})($A.API),function(e){var A=function(i){var a,o,c,d,B,p,m,g,C,v;for(o=[],c=0,d=(i+=a="\0\0\0\0".slice(i.length%4||4)).length;d>c;c+=4)(B=(i.charCodeAt(c)<<24)+(i.charCodeAt(c+1)<<16)+(i.charCodeAt(c+2)<<8)+i.charCodeAt(c+3))!==0?(p=(B=((B=((B=((B=(B-(v=B%85))/85)-(C=B%85))/85)-(g=B%85))/85)-(m=B%85))/85)%85,o.push(p+33,m+33,g+33,C+33,v+33)):o.push(122);return function(U,F){for(var x=F;x>0;x--)U.pop()}(o,a.length),String.fromCharCode.apply(String,o)+"~>"},t=function(i){var a,o,c,d,B,p=String,m="length",g=255,C="charCodeAt",v="slice",U="replace";for(i[v](-2),i=i[v](0,-2)[U](/\s/g,"")[U]("z","!!!!!"),c=[],d=0,B=(i+=a="uuuuu"[v](i[m]%5||5))[m];B>d;d+=5)o=52200625*(i[C](d)-33)+614125*(i[C](d+1)-33)+7225*(i[C](d+2)-33)+85*(i[C](d+3)-33)+(i[C](d+4)-33),c.push(g&o>>24,g&o>>16,g&o>>8,g&o);return function(F,x){for(var N=x;N>0;N--)F.pop()}(c,a[m]),p.fromCharCode.apply(p,c)},r=function(i){var a=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((i=i.replace(/\s/g,"")).indexOf(">")!==-1&&(i=i.substr(0,i.indexOf(">"))),i.length%2&&(i+="0"),a.test(i)===!1)return"";for(var o="",c=0;c<i.length;c+=2)o+=String.fromCharCode("0x"+(i[c]+i[c+1]));return o},n=function(i){for(var a=new Uint8Array(i.length),o=i.length;o--;)a[o]=i.charCodeAt(o);return i=(a=yu(a)).reduce(function(c,d){return c+String.fromCharCode(d)},"")};e.processDataByFilters=function(i,a){var o=0,c=i||"",d=[];for(typeof(a=a||[])=="string"&&(a=[a]),o=0;o<a.length;o+=1)switch(a[o]){case"ASCII85Decode":case"/ASCII85Decode":c=t(c),d.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":c=A(c),d.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":c=r(c),d.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":c=c.split("").map(function(B){return("0"+B.charCodeAt().toString(16)).slice(-2)}).join("")+">",d.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":c=n(c),d.push("/FlateDecode");break;default:throw new Error('The filter: "'+a[o]+'" is not implemented')}return{data:c,reverseChain:d.reverse().join(" ")}}}($A.API),function(e){e.loadFile=function(A,t,r){return function(n,i,a){i=i!==!1,a=typeof a=="function"?a:function(){};var o=void 0;try{o=function(c,d,B){var p=new XMLHttpRequest,m=0,g=function(C){var v=C.length,U=[],F=String.fromCharCode;for(m=0;m<v;m+=1)U.push(F(255&C.charCodeAt(m)));return U.join("")};if(p.open("GET",c,!d),p.overrideMimeType("text/plain; charset=x-user-defined"),d===!1&&(p.onload=function(){p.status===200?B(g(this.responseText)):B(void 0)}),p.send(null),d&&p.status===200)return g(p.responseText)}(n,i,a)}catch{}return o}(A,t,r)},e.loadImageFile=e.loadFile}($A.API),function(e){function A(){return(te.html2canvas?Promise.resolve(te.html2canvas):wl(()=>Promise.resolve().then(()=>$5),void 0)).catch(function(a){return Promise.reject(new Error("Could not load html2canvas: "+a))}).then(function(a){return a.default?a.default:a})}function t(){return(te.DOMPurify?Promise.resolve(te.DOMPurify):wl(()=>import("./purify.es-CQJ0hv7W.js"),[])).catch(function(a){return Promise.reject(new Error("Could not load dompurify: "+a))}).then(function(a){return a.default?a.default:a})}var r=function(a){var o=Te(a);return o==="undefined"?"undefined":o==="string"||a instanceof String?"string":o==="number"||a instanceof Number?"number":o==="function"||a instanceof Function?"function":a&&a.constructor===Array?"array":a&&a.nodeType===1?"element":o==="object"?"object":"unknown"},n=function(a,o){var c=document.createElement(a);for(var d in o.className&&(c.className=o.className),o.innerHTML&&o.dompurify&&(c.innerHTML=o.dompurify.sanitize(o.innerHTML)),o.style)c.style[d]=o.style[d];return c},i=function a(o){var c=Object.assign(a.convert(Promise.resolve()),JSON.parse(JSON.stringify(a.template))),d=a.convert(Promise.resolve(),c);return d=(d=d.setProgress(1,a,1,[a])).set(o)};(i.prototype=Object.create(Promise.prototype)).constructor=i,i.convert=function(a,o){return a.__proto__=o||i.prototype,a},i.template={prop:{src:null,container:null,overlay:null,canvas:null,img:null,pdf:null,pageSize:null,callback:function(){}},progress:{val:0,state:null,n:0,stack:[]},opt:{filename:"file.pdf",margin:[0,0,0,0],enableLinks:!0,x:0,y:0,html2canvas:{},jsPDF:{},backgroundColor:"transparent"}},i.prototype.from=function(a,o){return this.then(function(){switch(o=o||function(c){switch(r(c)){case"string":return"string";case"element":return c.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}}(a)){case"string":return this.then(t).then(function(c){return this.set({src:n("div",{innerHTML:a,dompurify:c})})});case"element":return this.set({src:a});case"canvas":return this.set({canvas:a});case"img":return this.set({img:a});default:return this.error("Unknown source type.")}})},i.prototype.to=function(a){switch(a){case"container":return this.toContainer();case"canvas":return this.toCanvas();case"img":return this.toImg();case"pdf":return this.toPdf();default:return this.error("Invalid target.")}},i.prototype.toContainer=function(){return this.thenList([function(){return this.prop.src||this.error("Cannot duplicate - no source HTML.")},function(){return this.prop.pageSize||this.setPageSize()}]).then(function(){var a={position:"relative",display:"inline-block",width:(typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?Math.max(this.prop.src.clientWidth,this.prop.src.scrollWidth,this.prop.src.offsetWidth):this.opt.windowWidth)+"px",left:0,right:0,top:0,margin:"auto",backgroundColor:this.opt.backgroundColor},o=function c(d,B){for(var p=d.nodeType===3?document.createTextNode(d.nodeValue):d.cloneNode(!1),m=d.firstChild;m;m=m.nextSibling)B!==!0&&m.nodeType===1&&m.nodeName==="SCRIPT"||p.appendChild(c(m,B));return d.nodeType===1&&(d.nodeName==="CANVAS"?(p.width=d.width,p.height=d.height,p.getContext("2d").drawImage(d,0,0)):d.nodeName!=="TEXTAREA"&&d.nodeName!=="SELECT"||(p.value=d.value),p.addEventListener("load",function(){p.scrollTop=d.scrollTop,p.scrollLeft=d.scrollLeft},!0)),p}(this.prop.src,this.opt.html2canvas.javascriptEnabled);o.tagName==="BODY"&&(a.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=n("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=n("div",{className:"html2pdf__container",style:a}),this.prop.container.appendChild(o),this.prop.container.firstChild.appendChild(n("div",{style:{clear:"both",border:"0 none transparent",margin:0,padding:0,height:0}})),this.prop.container.style.float="none",this.prop.overlay.appendChild(this.prop.container),document.body.appendChild(this.prop.overlay),this.prop.container.firstChild.style.position="relative",this.prop.container.height=Math.max(this.prop.container.firstChild.clientHeight,this.prop.container.firstChild.scrollHeight,this.prop.container.firstChild.offsetHeight)+"px"})},i.prototype.toCanvas=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=Object.assign({},this.opt.html2canvas);return delete c.onrendered,o(this.prop.container,c)}).then(function(o){(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toContext2d=function(){var a=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(a).then(A).then(function(o){var c=this.opt.jsPDF,d=this.opt.fontFaces,B=typeof this.opt.width!="number"||isNaN(this.opt.width)||typeof this.opt.windowWidth!="number"||isNaN(this.opt.windowWidth)?1:this.opt.width/this.opt.windowWidth,p=Object.assign({async:!0,allowTaint:!0,scale:B,scrollX:this.opt.scrollX||0,scrollY:this.opt.scrollY||0,backgroundColor:"#ffffff",imageTimeout:15e3,logging:!0,proxy:null,removeContainer:!0,foreignObjectRendering:!1,useCORS:!1},this.opt.html2canvas);if(delete p.onrendered,c.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,c.context2d.posX=this.opt.x,c.context2d.posY=this.opt.y,c.context2d.margin=this.opt.margin,c.context2d.fontFaces=d,d)for(var m=0;m<d.length;++m){var g=d[m],C=g.src.find(function(v){return v.format==="truetype"});C&&c.addFont(C.url,g.ref.name,g.ref.style)}return p.windowHeight=p.windowHeight||0,p.windowHeight=p.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):p.windowHeight,c.context2d.save(!0),o(this.prop.container,p)}).then(function(o){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(o),this.prop.canvas=o,document.body.removeChild(this.prop.overlay)})},i.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var a=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=a})},i.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},i.prototype.output=function(a,o,c){return(c=c||"pdf").toLowerCase()==="img"||c.toLowerCase()==="image"?this.outputImg(a,o):this.outputPdf(a,o)},i.prototype.outputPdf=function(a,o){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(a,o)})},i.prototype.outputImg=function(a){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(a){case void 0:case"img":return this.prop.img;case"datauristring":case"dataurlstring":return this.prop.img.src;case"datauri":case"dataurl":return document.location.href=this.prop.img.src;default:throw'Image output type "'+a+'" is not supported.'}})},i.prototype.save=function(a){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(a?{filename:a}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},i.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},i.prototype.set=function(a){if(r(a)!=="object")return this;var o=Object.keys(a||{}).map(function(c){if(c in i.template.prop)return function(){this.prop[c]=a[c]};switch(c){case"margin":return this.setMargin.bind(this,a.margin);case"jsPDF":return function(){return this.opt.jsPDF=a.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,a.pageSize);default:return function(){this.opt[c]=a[c]}}},this);return this.then(function(){return this.thenList(o)})},i.prototype.get=function(a,o){return this.then(function(){var c=a in i.template.prop?this.prop[a]:this.opt[a];return o?o(c):c})},i.prototype.setMargin=function(a){return this.then(function(){switch(r(a)){case"number":a=[a,a,a,a];case"array":if(a.length===2&&(a=[a[0],a[1],a[0],a[1]]),a.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=a}).then(this.setPageSize)},i.prototype.setPageSize=function(a){function o(c,d){return Math.floor(c*d/72*96)}return this.then(function(){(a=a||$A.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(a.inner={width:a.width-this.opt.margin[1]-this.opt.margin[3],height:a.height-this.opt.margin[0]-this.opt.margin[2]},a.inner.px={width:o(a.inner.width,a.k),height:o(a.inner.height,a.k)},a.inner.ratio=a.inner.height/a.inner.width),this.prop.pageSize=a})},i.prototype.setProgress=function(a,o,c,d){return a!=null&&(this.progress.val=a),o!=null&&(this.progress.state=o),c!=null&&(this.progress.n=c),d!=null&&(this.progress.stack=d),this.progress.ratio=this.progress.val/this.progress.state,this},i.prototype.updateProgress=function(a,o,c,d){return this.setProgress(a?this.progress.val+a:null,o||null,c?this.progress.n+c:null,d?this.progress.stack.concat(d):null)},i.prototype.then=function(a,o){var c=this;return this.thenCore(a,o,function(d,B){return c.updateProgress(null,null,1,[d]),Promise.prototype.then.call(this,function(p){return c.updateProgress(null,d),p}).then(d,B).then(function(p){return c.updateProgress(1),p})})},i.prototype.thenCore=function(a,o,c){c=c||Promise.prototype.then,a&&(a=a.bind(this)),o&&(o=o.bind(this));var d=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?this:i.convert(Object.assign({},this),Promise.prototype),B=c.call(d,a,o);return i.convert(B,this.__proto__)},i.prototype.thenExternal=function(a,o){return Promise.prototype.then.call(this,a,o)},i.prototype.thenList=function(a){var o=this;return a.forEach(function(c){o=o.thenCore(c)}),o},i.prototype.catch=function(a){a&&(a=a.bind(this));var o=Promise.prototype.catch.call(this,a);return i.convert(o,this)},i.prototype.catchExternal=function(a){return Promise.prototype.catch.call(this,a)},i.prototype.error=function(a){return this.then(function(){throw new Error(a)})},i.prototype.using=i.prototype.set,i.prototype.saveAs=i.prototype.save,i.prototype.export=i.prototype.output,i.prototype.run=i.prototype.then,$A.getPageSize=function(a,o,c){if(Te(a)==="object"){var d=a;a=d.orientation,o=d.unit||o,c=d.format||c}o=o||"mm",c=c||"a4",a=(""+(a||"P")).toLowerCase();var B,p=(""+c).toLowerCase(),m={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};switch(o){case"pt":B=1;break;case"mm":B=72/25.4;break;case"cm":B=72/2.54;break;case"in":B=72;break;case"px":B=.75;break;case"pc":case"em":B=12;break;case"ex":B=6;break;default:throw"Invalid unit: "+o}var g,C=0,v=0;if(m.hasOwnProperty(p))C=m[p][1]/B,v=m[p][0]/B;else try{C=c[1],v=c[0]}catch{throw new Error("Invalid format: "+c)}if(a==="p"||a==="portrait")a="p",v>C&&(g=v,v=C,C=g);else{if(a!=="l"&&a!=="landscape")throw"Invalid orientation: "+a;a="l",C>v&&(g=v,v=C,C=g)}return{width:v,height:C,unit:o,k:B,orientation:a}},e.html=function(a,o){(o=o||{}).callback=o.callback||function(){},o.html2canvas=o.html2canvas||{},o.html2canvas.canvas=o.html2canvas.canvas||this.canvas,o.jsPDF=o.jsPDF||this,o.fontFaces=o.fontFaces?o.fontFaces.map(Eu):null;var c=new i(o);return o.worker?c:c.from(a).doCallback()}}($A.API),$A.API.addJS=function(e){return pf=e,this.internal.events.subscribe("postPutResources",function(){No=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(No+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),gf=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+pf+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){No!==void 0&&gf!==void 0&&this.internal.out("/Names <</JavaScript "+No+" 0 R>>")}),this},function(e){var A;e.events.push(["postPutResources",function(){var t=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var n=t.outline.render().split(/\r\n/),i=0;i<n.length;i++){var a=n[i],o=r.exec(a);if(o!=null){var c=o[1];t.internal.newObjectDeferredBegin(c,!1)}t.internal.write(a)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,B=[];for(i=0;i<d;i++){var p=t.internal.newObject();B.push(p);var m=t.internal.getPageInfo(i+1);t.internal.write("<< /D["+m.objId+" 0 R /XYZ null null null]>> endobj")}var g=t.internal.newObject();for(t.internal.write("<< /Names [ "),i=0;i<B.length;i++)t.internal.write("(page_"+(i+1)+")"+B[i]+" 0 R");t.internal.write(" ] >>","endobj"),A=t.internal.newObject(),t.internal.write("<< /Dests "+g+" 0 R"),t.internal.write(">>","endobj")}}]),e.events.push(["putCatalog",function(){this.outline.root.children.length>0&&(this.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&this.internal.write("/Names "+A+" 0 R"))}]),e.events.push(["initialized",function(){var t=this;t.outline={createNamedDestinations:!1,root:{children:[]}},t.outline.add=function(r,n,i){var a={title:n,options:i,children:[]};return r==null&&(r=this.root),r.children.push(a),a},t.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=t,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},t.outline.genIds_r=function(r){r.id=t.internal.newObjectDeferred();for(var n=0;n<r.children.length;n++)this.genIds_r(r.children[n])},t.outline.renderRoot=function(r){this.objStart(r),this.line("/Type /Outlines"),r.children.length>0&&(this.line("/First "+this.makeRef(r.children[0])),this.line("/Last "+this.makeRef(r.children[r.children.length-1]))),this.line("/Count "+this.count_r({count:0},r)),this.objEnd()},t.outline.renderItems=function(r){for(var n=this.ctx.pdf.internal.getVerticalCoordinateString,i=0;i<r.children.length;i++){var a=r.children[i];this.objStart(a),this.line("/Title "+this.makeString(a.title)),this.line("/Parent "+this.makeRef(r)),i>0&&this.line("/Prev "+this.makeRef(r.children[i-1])),i<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[i+1])),a.children.length>0&&(this.line("/First "+this.makeRef(a.children[0])),this.line("/Last "+this.makeRef(a.children[a.children.length-1])));var o=this.count=this.count_r({count:0},a);if(o>0&&this.line("/Count "+o),a.options&&a.options.pageNumber){var c=t.internal.getPageInfo(a.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+n(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},t.outline.line=function(r){this.ctx.val+=r+`\r `},t.outline.makeRef=function(r){return r.id+" 0 R"},t.outline.makeString=function(r){return"("+t.internal.pdfEscape(r)+")"},t.outline.objStart=function(r){this.ctx.val+=`\r `+r.id+` 0 obj\r <<\r `},t.outline.objEnd=function(){this.ctx.val+=`>> \r endobj\r `},t.outline.count_r=function(r,n){for(var i=0;i<n.children.length;i++)r.count++,this.count_r(r,n.children[i]);return r.count}}])}($A.API),function(e){var A=[192,193,194,195,196,197,198,199];e.processJPEG=function(t,r,n,i,a,o){var c,d=this.decode.DCT_DECODE,B=null;if(typeof t=="string"||this.__addimage__.isArrayBuffer(t)||this.__addimage__.isArrayBufferView(t)){switch(t=a||t,t=this.__addimage__.isArrayBuffer(t)?new Uint8Array(t):t,(c=function(p){for(var m,g=256*p.charCodeAt(4)+p.charCodeAt(5),C=p.length,v={width:0,height:0,numcomponents:1},U=4;U<C;U+=2){if(U+=g,A.indexOf(p.charCodeAt(U+1))!==-1){m=256*p.charCodeAt(U+5)+p.charCodeAt(U+6),v={width:256*p.charCodeAt(U+7)+p.charCodeAt(U+8),height:m,numcomponents:p.charCodeAt(U+9)};break}g=256*p.charCodeAt(U+2)+p.charCodeAt(U+3)}return v}(t=this.__addimage__.isArrayBufferView(t)?this.__addimage__.arrayBufferToBinaryString(t):t)).numcomponents){case 1:o=this.color_spaces.DEVICE_GRAY;break;case 4:o=this.color_spaces.DEVICE_CMYK;break;case 3:o=this.color_spaces.DEVICE_RGB}B={data:t,width:c.width,height:c.height,colorSpace:o,bitsPerComponent:8,filter:d,index:r,alias:n}}return B}}($A.API);var As,jo,Bf,wf,mf,h0=function(){var e,A,t;function r(i){var a,o,c,d,B,p,m,g,C,v,U,F,x,N;for(this.data=i,this.pos=8,this.palette=[],this.imgData=[],this.transparency={},this.animation=null,this.text={},p=null;;){switch(a=this.readUInt32(),C=function(){var V,q;for(q=[],V=0;V<4;++V)q.push(String.fromCharCode(this.data[this.pos++]));return q}.call(this).join("")){case"IHDR":this.width=this.readUInt32(),this.height=this.readUInt32(),this.bits=this.data[this.pos++],this.colorType=this.data[this.pos++],this.compressionMethod=this.data[this.pos++],this.filterMethod=this.data[this.pos++],this.interlaceMethod=this.data[this.pos++];break;case"acTL":this.animation={numFrames:this.readUInt32(),numPlays:this.readUInt32()||1/0,frames:[]};break;case"PLTE":this.palette=this.read(a);break;case"fcTL":p&&this.animation.frames.push(p),this.pos+=4,p={width:this.readUInt32(),height:this.readUInt32(),xOffset:this.readUInt32(),yOffset:this.readUInt32()},B=this.readUInt16(),d=this.readUInt16()||100,p.delay=1e3*B/d,p.disposeOp=this.data[this.pos++],p.blendOp=this.data[this.pos++],p.data=[];break;case"IDAT":case"fdAT":for(C==="fdAT"&&(this.pos+=4,a-=4),i=p?.data||this.imgData,F=0;0<=a?F<a:F>a;0<=a?++F:--F)i.push(this.data[this.pos++]);break;case"tRNS":switch(this.transparency={},this.colorType){case 3:if(c=this.palette.length/3,this.transparency.indexed=this.read(a),this.transparency.indexed.length>c)throw new Error("More transparent colors than palette size");if((v=c-this.transparency.indexed.length)>0)for(x=0;0<=v?x<v:x>v;0<=v?++x:--x)this.transparency.indexed.push(255);break;case 0:this.transparency.grayscale=this.read(a)[0];break;case 2:this.transparency.rgb=this.read(a)}break;case"tEXt":m=(U=this.read(a)).indexOf(0),g=String.fromCharCode.apply(String,U.slice(0,m)),this.text[g]=String.fromCharCode.apply(String,U.slice(m+1));break;case"IEND":return p&&this.animation.frames.push(p),this.colors=function(){switch(this.colorType){case 0:case 3:case 4:return 1;case 2:case 6:return 3}}.call(this),this.hasAlphaChannel=(N=this.colorType)===4||N===6,o=this.colors+(this.hasAlphaChannel?1:0),this.pixelBitlength=this.bits*o,this.colorSpace=function(){switch(this.colors){case 1:return"DeviceGray";case 3:return"DeviceRGB"}}.call(this),void(this.imgData=new Uint8Array(this.imgData));default:this.pos+=a}if(this.pos+=4,this.pos>this.data.length)throw new Error("Incomplete or corrupt PNG file")}}r.prototype.read=function(i){var a,o;for(o=[],a=0;0<=i?a<i:a>i;0<=i?++a:--a)o.push(this.data[this.pos++]);return o},r.prototype.readUInt32=function(){return this.data[this.pos++]<<24|this.data[this.pos++]<<16|this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.readUInt16=function(){return this.data[this.pos++]<<8|this.data[this.pos++]},r.prototype.decodePixels=function(i){var a=this.pixelBitlength/8,o=new Uint8Array(this.width*this.height*a),c=0,d=this;if(i==null&&(i=this.imgData),i.length===0)return new Uint8Array(0);function B(p,m,g,C){var v,U,F,x,N,V,q,Y,W,R,k,$,_,L,D,O,nA,sA,oA,tA,cA,z=Math.ceil((d.width-p)/g),BA=Math.ceil((d.height-m)/C),Q=d.width==z&&d.height==BA;for(L=a*z,$=Q?o:new Uint8Array(L*BA),V=i.length,_=0,U=0;_<BA&&c<V;){switch(i[c++]){case 0:for(x=nA=0;nA<L;x=nA+=1)$[U++]=i[c++];break;case 1:for(x=sA=0;sA<L;x=sA+=1)v=i[c++],N=x<a?0:$[U-a],$[U++]=(v+N)%256;break;case 2:for(x=oA=0;oA<L;x=oA+=1)v=i[c++],F=(x-x%a)/a,D=_&&$[(_-1)*L+F*a+x%a],$[U++]=(D+v)%256;break;case 3:for(x=tA=0;tA<L;x=tA+=1)v=i[c++],F=(x-x%a)/a,N=x<a?0:$[U-a],D=_&&$[(_-1)*L+F*a+x%a],$[U++]=(v+Math.floor((N+D)/2))%256;break;case 4:for(x=cA=0;cA<L;x=cA+=1)v=i[c++],F=(x-x%a)/a,N=x<a?0:$[U-a],_===0?D=O=0:(D=$[(_-1)*L+F*a+x%a],O=F&&$[(_-1)*L+(F-1)*a+x%a]),q=N+D-O,Y=Math.abs(q-N),R=Math.abs(q-D),k=Math.abs(q-O),W=Y<=R&&Y<=k?N:R<=k?D:O,$[U++]=(v+W)%256;break;default:throw new Error("Invalid filter algorithm: "+i[c-1])}if(!Q){var j=((m+_*C)*d.width+p)*a,P=_*L;for(x=0;x<z;x+=1){for(var G=0;G<a;G+=1)o[j++]=$[P++];j+=(g-1)*a}}_++}}return i=G1(i),d.interlaceMethod==1?(B(0,0,8,8),B(4,0,8,8),B(0,4,4,8),B(2,0,4,4),B(0,2,2,4),B(1,0,2,2),B(0,1,1,2)):B(0,0,1,1),o},r.prototype.decodePalette=function(){var i,a,o,c,d,B,p,m,g;for(o=this.palette,B=this.transparency.indexed||[],d=new Uint8Array((B.length||0)+o.length),c=0,i=0,a=p=0,m=o.length;p<m;a=p+=3)d[c++]=o[a],d[c++]=o[a+1],d[c++]=o[a+2],d[c++]=(g=B[i++])!=null?g:255;return d},r.prototype.copyToImageData=function(i,a){var o,c,d,B,p,m,g,C,v,U,F;if(c=this.colors,v=null,o=this.hasAlphaChannel,this.palette.length&&(v=(F=this._decodedPalette)!=null?F:this._decodedPalette=this.decodePalette(),c=4,o=!0),C=(d=i.data||i).length,p=v||a,B=m=0,c===1)for(;B<C;)g=v?4*a[B/4]:m,U=p[g++],d[B++]=U,d[B++]=U,d[B++]=U,d[B++]=o?p[g++]:255,m=g;else for(;B<C;)g=v?4*a[B/4]:m,d[B++]=p[g++],d[B++]=p[g++],d[B++]=p[g++],d[B++]=o?p[g++]:255,m=g},r.prototype.decode=function(){var i;return i=new Uint8Array(this.width*this.height*4),this.copyToImageData(i,this.decodePixels()),i};var n=function(){if(Object.prototype.toString.call(te)==="[object Window]"){try{A=te.document.createElement("canvas"),t=A.getContext("2d")}catch{return!1}return!0}return!1};return n(),e=function(i){var a;if(n()===!0)return t.width=i.width,t.height=i.height,t.clearRect(0,0,i.width,i.height),t.putImageData(i,0,0),(a=new Image).src=A.toDataURL(),a;throw new Error("This method requires a Browser with Canvas-capability.")},r.prototype.decodeFrames=function(i){var a,o,c,d,B,p,m,g;if(this.animation){for(g=[],o=B=0,p=(m=this.animation.frames).length;B<p;o=++B)a=m[o],c=i.createImageData(a.width,a.height),d=this.decodePixels(new Uint8Array(a.data)),this.copyToImageData(c,d),a.imageData=c,g.push(a.image=e(c));return g}},r.prototype.renderFrame=function(i,a){var o,c,d;return o=(c=this.animation.frames)[a],d=c[a-1],a===0&&i.clearRect(0,0,this.width,this.height),d?.disposeOp===1?i.clearRect(d.xOffset,d.yOffset,d.width,d.height):d?.disposeOp===2&&i.putImageData(d.imageData,d.xOffset,d.yOffset),o.blendOp===0&&i.clearRect(o.xOffset,o.yOffset,o.width,o.height),i.drawImage(o.image,o.xOffset,o.yOffset)},r.prototype.animate=function(i){var a,o,c,d,B,p,m=this;return o=0,p=this.animation,d=p.numFrames,c=p.frames,B=p.numPlays,(a=function(){var g,C;if(g=o++%d,C=c[g],m.renderFrame(i,g),d>1&&o/d<B)return m.animation._timeout=setTimeout(a,C.delay)})()},r.prototype.stopAnimation=function(){var i;return clearTimeout((i=this.animation)!=null?i._timeout:void 0)},r.prototype.render=function(i){var a,o;return i._png&&i._png.stopAnimation(),i._png=this,i.width=this.width,i.height=this.height,a=i.getContext("2d"),this.animation?(this.decodeFrames(a),this.animate(a)):(o=a.createImageData(this.width,this.height),this.copyToImageData(o,this.decodePixels()),a.putImageData(o,0,0))},r}();/** * @license * * Copyright (c) 2014 James Robb, https://github.com/jamesbrobb * * Permission is hereby granted, free of charge, to any person obtaining * a copy of this software and associated documentation files (the * "Software"), to deal in the Software without restriction, including * without limitation the rights to use, copy, modify, merge, publish, * distribute, sublicense, and/or sell copies of the Software, and to * permit persons to whom the Software is furnished to do so, subject to * the following conditions: * * The above copyright notice and this permission notice shall be * included in all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. * ==================================================================== *//** * @license * (c) Dean McNamee <dean@gmail.com>, 2013. * * https://github.com/deanm/omggif * * Permission is hereby granted, free of charge, to any person obtaining a copy * of this software and associated documentation files (the "Software"), to * deal in the Software without restriction, including without limitation the * rights to use, copy, modify, merge, publish, distribute, sublicense, and/or * sell copies of the Software, and to permit persons to whom the Software is * furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS * IN THE SOFTWARE. * * omggif is a JavaScript implementation of a GIF 89a encoder and decoder, * including animation and compression. It does not rely on any specific * underlying system, so should run in the browser, Node, or Plask. */function f0(e){var A=0;if(e[A++]!==71||e[A++]!==73||e[A++]!==70||e[A++]!==56||(e[A++]+1&253)!=56||e[A++]!==97)throw new Error("Invalid GIF 87a/89a header.");var t=e[A++]|e[A++]<<8,r=e[A++]|e[A++]<<8,n=e[A++],i=n>>7,a=1<<(7&n)+1;e[A++],e[A++];var o=null,c=null;i&&(o=A,c=a,A+=3*a);var d=!0,B=[],p=0,m=null,g=0,C=null;for(this.width=t,this.height=r;d&&A<e.length;)switch(e[A++]){case 33:switch(e[A++]){case 255:if(e[A]!==11||e[A+1]==78&&e[A+2]==69&&e[A+3]==84&&e[A+4]==83&&e[A+5]==67&&e[A+6]==65&&e[A+7]==80&&e[A+8]==69&&e[A+9]==50&&e[A+10]==46&&e[A+11]==48&&e[A+12]==3&&e[A+13]==1&&e[A+16]==0)A+=14,C=e[A++]|e[A++]<<8,A++;else for(A+=12;;){if(!((_=e[A++])>=0))throw Error("Invalid block size");if(_===0)break;A+=_}break;case 249:if(e[A++]!==4||e[A+4]!==0)throw new Error("Invalid graphics extension block.");var v=e[A++];p=e[A++]|e[A++]<<8,m=e[A++],(1&v)==0&&(m=null),g=v>>2&7,A++;break;case 254:for(;;){if(!((_=e[A++])>=0))throw Error("Invalid block size");if(_===0)break;A+=_}break;default:throw new Error("Unknown graphic control label: 0x"+e[A-1].toString(16))}break;case 44:var U=e[A++]|e[A++]<<8,F=e[A++]|e[A++]<<8,x=e[A++]|e[A++]<<8,N=e[A++]|e[A++]<<8,V=e[A++],q=V>>6&1,Y=1<<(7&V)+1,W=o,R=c,k=!1;V>>7&&(k=!0,W=A,R=Y,A+=3*Y);var $=A;for(A++;;){var _;if(!((_=e[A++])>=0))throw Error("Invalid block size");if(_===0)break;A+=_}B.push({x:U,y:F,width:x,height:N,has_local_palette:k,palette_offset:W,palette_size:R,data_offset:$,data_length:A-$,transparent_index:m,interlaced:!!q,delay:p,disposal:g});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+e[A-1].toString(16))}this.numFrames=function(){return B.length},this.loopCount=function(){return C},this.frameInfo=function(L){if(L<0||L>=B.length)throw new Error("Frame index out of range.");return B[L]},this.decodeAndBlitFrameBGRA=function(L,D){var O=this.frameInfo(L),nA=O.width*O.height,sA=new Uint8Array(nA);vf(e,O.data_offset,sA,nA);var oA=O.palette_offset,tA=O.transparent_index;tA===null&&(tA=256);var cA=O.width,z=t-cA,BA=cA,Q=4*(O.y*t+O.x),j=4*((O.y+O.height)*t+O.x),P=Q,G=4*z;O.interlaced===!0&&(G+=4*t*7);for(var X=8,eA=0,uA=sA.length;eA<uA;++eA){var aA=sA[eA];if(BA===0&&(BA=cA,(P+=G)>=j&&(G=4*z+4*t*(X-1),P=Q+(cA+z)*(X<<1),X>>=1)),aA===tA)P+=4;else{var wA=e[oA+3*aA],bA=e[oA+3*aA+1],SA=e[oA+3*aA+2];D[P++]=SA,D[P++]=bA,D[P++]=wA,D[P++]=255}--BA}},this.decodeAndBlitFrameRGBA=function(L,D){var O=this.frameInfo(L),nA=O.width*O.height,sA=new Uint8Array(nA);vf(e,O.data_offset,sA,nA);var oA=O.palette_offset,tA=O.transparent_index;tA===null&&(tA=256);var cA=O.width,z=t-cA,BA=cA,Q=4*(O.y*t+O.x),j=4*((O.y+O.height)*t+O.x),P=Q,G=4*z;O.interlaced===!0&&(G+=4*t*7);for(var X=8,eA=0,uA=sA.length;eA<uA;++eA){var aA=sA[eA];if(BA===0&&(BA=cA,(P+=G)>=j&&(G=4*z+4*t*(X-1),P=Q+(cA+z)*(X<<1),X>>=1)),aA===tA)P+=4;else{var wA=e[oA+3*aA],bA=e[oA+3*aA+1],SA=e[oA+3*aA+2];D[P++]=wA,D[P++]=bA,D[P++]=SA,D[P++]=255}--BA}}}function vf(e,A,t,r){for(var n=e[A++],i=1<<n,a=i+1,o=a+1,c=n+1,d=(1<<c)-1,B=0,p=0,m=0,g=e[A++],C=new Int32Array(4096),v=null;;){for(;B<16&&g!==0;)p|=e[A++]<<B,B+=8,g===1?g=e[A++]:--g;if(B<c)break;var U=p&d;if(p>>=c,B-=c,U!==i){if(U===a)break;for(var F=U<o?U:v,x=0,N=F;N>i;)N=C[N]>>8,++x;var V=N;if(m+x+(F!==U?1:0)>r)return void De.log("Warning, gif stream longer than expected.");t[m++]=V;var q=m+=x;for(F!==U&&(t[m++]=V),N=F;x--;)N=C[N],t[--q]=255&N,N>>=8;v!==null&&o<4096&&(C[o++]=v<<8|V,o>=d+1&&c<12&&(++c,d=d<<1|1)),v=U}else o=a+1,d=(1<<(c=n+1))-1,v=null}return m!==r&&De.log("Warning, gif stream shorter than expected."),t}/** * @license Copyright (c) 2008, Adobe Systems Incorporated All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Adobe Systems Incorporated nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */function zc(e){var A,t,r,n,i,a=Math.floor,o=new Array(64),c=new Array(64),d=new Array(64),B=new Array(64),p=new Array(65535),m=new Array(65535),g=new Array(64),C=new Array(64),v=[],U=0,F=7,x=new Array(64),N=new Array(64),V=new Array(64),q=new Array(256),Y=new Array(2048),W=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],R=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],k=[0,1,2,3,4,5,6,7,8,9,10,11],$=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],_=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],L=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],D=[0,1,2,3,4,5,6,7,8,9,10,11],O=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],nA=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function sA(Q,j){for(var P=0,G=0,X=new Array,eA=1;eA<=16;eA++){for(var uA=1;uA<=Q[eA];uA++)X[j[G]]=[],X[j[G]][0]=P,X[j[G]][1]=eA,G++,P++;P*=2}return X}function oA(Q){for(var j=Q[0],P=Q[1]-1;P>=0;)j&1<<P&&(U|=1<<F),P--,--F<0&&(U==255?(tA(255),tA(0)):tA(U),F=7,U=0)}function tA(Q){v.push(Q)}function cA(Q){tA(Q>>8&255),tA(255&Q)}function z(Q,j,P,G,X){for(var eA,uA=X[0],aA=X[240],wA=function(QA,LA){var TA,_A,qA,PA,se,he,pe,Se,GA,le,NA=0;for(GA=0;GA<8;++GA){TA=QA[NA],_A=QA[NA+1],qA=QA[NA+2],PA=QA[NA+3],se=QA[NA+4],he=QA[NA+5],pe=QA[NA+6];var ft=TA+(Se=QA[NA+7]),ve=TA-Se,zt=_A+pe,Le=_A-pe,ke=qA+he,er=qA-he,Fe=PA+se,Or=PA-se,Ge=ft+Fe,Ae=ft-Fe,re=zt+ke,YA=zt-ke;QA[NA]=Ge+re,QA[NA+4]=Ge-re;var zA=.707106781*(YA+Ae);QA[NA+2]=Ae+zA,QA[NA+6]=Ae-zA;var de=.382683433*((Ge=Or+er)-(YA=Le+ve)),Ot=.5411961*Ge+de,We=1.306562965*YA+de,Rr=.707106781*(re=er+Le),Kr=ve+Rr,ee=ve-Rr;QA[NA+5]=ee+Ot,QA[NA+3]=ee-Ot,QA[NA+1]=Kr+We,QA[NA+7]=Kr-We,NA+=8}for(NA=0,GA=0;GA<8;++GA){TA=QA[NA],_A=QA[NA+8],qA=QA[NA+16],PA=QA[NA+24],se=QA[NA+32],he=QA[NA+40],pe=QA[NA+48];var yr=TA+(Se=QA[NA+56]),Gr=TA-Se,qt=_A+pe,dt=_A-pe,at=qA+he,tr=qA-he,yi=PA+se,sn=PA-se,Fr=yr+yi,Qr=yr-yi,xr=qt+at,Vr=qt-at;QA[NA]=Fr+xr,QA[NA+32]=Fr-xr;var cr=.707106781*(Vr+Qr);QA[NA+16]=Qr+cr,QA[NA+48]=Qr-cr;var zr=.382683433*((Fr=sn+tr)-(Vr=dt+Gr)),Yn=.5411961*Fr+zr,Fi=1.306562965*Vr+zr,Qi=.707106781*(xr=tr+dt),xi=Gr+Qi,Ui=Gr-Qi;QA[NA+40]=Ui+Yn,QA[NA+24]=Ui-Yn,QA[NA+8]=xi+Fi,QA[NA+56]=xi-Fi,NA++}for(GA=0;GA<64;++GA)le=QA[GA]*LA[GA],g[GA]=le>0?le+.5|0:le-.5|0;return g}(Q,j),bA=0;bA<64;++bA)C[W[bA]]=wA[bA];var SA=C[0]-P;P=C[0],SA==0?oA(G[0]):(oA(G[m[eA=32767+SA]]),oA(p[eA]));for(var EA=63;EA>0&&C[EA]==0;)EA--;if(EA==0)return oA(uA),P;for(var XA,gA=1;gA<=EA;){for(var K=gA;C[gA]==0&&gA<=EA;)++gA;var WA=gA-K;if(WA>=16){XA=WA>>4;for(var kA=1;kA<=XA;++kA)oA(aA);WA&=15}eA=32767+C[gA],oA(X[(WA<<4)+m[eA]]),oA(p[eA]),gA++}return EA!=63&&oA(uA),P}function BA(Q){Q=Math.min(Math.max(Q,1),100),i!=Q&&(function(j){for(var P=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],G=0;G<64;G++){var X=a((P[G]*j+50)/100);X=Math.min(Math.max(X,1),255),o[W[G]]=X}for(var eA=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],uA=0;uA<64;uA++){var aA=a((eA[uA]*j+50)/100);aA=Math.min(Math.max(aA,1),255),c[W[uA]]=aA}for(var wA=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],bA=0,SA=0;SA<8;SA++)for(var EA=0;EA<8;EA++)d[bA]=1/(o[W[bA]]*wA[SA]*wA[EA]*8),B[bA]=1/(c[W[bA]]*wA[SA]*wA[EA]*8),bA++}(Q<50?Math.floor(5e3/Q):Math.floor(200-2*Q)),i=Q)}this.encode=function(Q,j){j&&BA(j),v=new Array,U=0,F=7,cA(65496),cA(65504),cA(16),tA(74),tA(70),tA(73),tA(70),tA(0),tA(1),tA(1),tA(0),cA(1),cA(1),tA(0),tA(0),function(){cA(65499),cA(132),tA(0);for(var _A=0;_A<64;_A++)tA(o[_A]);tA(1);for(var qA=0;qA<64;qA++)tA(c[qA])}(),function(_A,qA){cA(65472),cA(17),tA(8),cA(qA),cA(_A),tA(3),tA(1),tA(17),tA(0),tA(2),tA(17),tA(1),tA(3),tA(17),tA(1)}(Q.width,Q.height),function(){cA(65476),cA(418),tA(0);for(var _A=0;_A<16;_A++)tA(R[_A+1]);for(var qA=0;qA<=11;qA++)tA(k[qA]);tA(16);for(var PA=0;PA<16;PA++)tA($[PA+1]);for(var se=0;se<=161;se++)tA(_[se]);tA(1);for(var he=0;he<16;he++)tA(L[he+1]);for(var pe=0;pe<=11;pe++)tA(D[pe]);tA(17);for(var Se=0;Se<16;Se++)tA(O[Se+1]);for(var GA=0;GA<=161;GA++)tA(nA[GA])}(),cA(65498),cA(12),tA(3),tA(1),tA(0),tA(2),tA(17),tA(3),tA(17),tA(0),tA(63),tA(0);var P=0,G=0,X=0;U=0,F=7,this.encode.displayName="_encode_";for(var eA,uA,aA,wA,bA,SA,EA,XA,gA,K=Q.data,WA=Q.width,kA=Q.height,QA=4*WA,LA=0;LA<kA;){for(eA=0;eA<QA;){for(bA=QA*LA+eA,EA=-1,XA=0,gA=0;gA<64;gA++)SA=bA+(XA=gA>>3)*QA+(EA=4*(7&gA)),LA+XA>=kA&&(SA-=QA*(LA+1+XA-kA)),eA+EA>=QA&&(SA-=eA+EA-QA+4),uA=K[SA++],aA=K[SA++],wA=K[SA++],x[gA]=(Y[uA]+Y[aA+256>>0]+Y[wA+512>>0]>>16)-128,N[gA]=(Y[uA+768>>0]+Y[aA+1024>>0]+Y[wA+1280>>0]>>16)-128,V[gA]=(Y[uA+1280>>0]+Y[aA+1536>>0]+Y[wA+1792>>0]>>16)-128;P=z(x,d,P,A,r),G=z(N,B,G,t,n),X=z(V,B,X,t,n),eA+=32}LA+=8}if(F>=0){var TA=[];TA[1]=F+1,TA[0]=(1<<F+1)-1,oA(TA)}return cA(65497),new Uint8Array(v)},e=e||50,function(){for(var Q=String.fromCharCode,j=0;j<256;j++)q[j]=Q(j)}(),A=sA(R,k),t=sA(L,D),r=sA($,_),n=sA(O,nA),function(){for(var Q=1,j=2,P=1;P<=15;P++){for(var G=Q;G<j;G++)m[32767+G]=P,p[32767+G]=[],p[32767+G][1]=P,p[32767+G][0]=G;for(var X=-(j-1);X<=-Q;X++)m[32767+X]=P,p[32767+X]=[],p[32767+X][1]=P,p[32767+X][0]=j-1+X;Q<<=1,j<<=1}}(),function(){for(var Q=0;Q<256;Q++)Y[Q]=19595*Q,Y[Q+256>>0]=38470*Q,Y[Q+512>>0]=7471*Q+32768,Y[Q+768>>0]=-11059*Q,Y[Q+1024>>0]=-21709*Q,Y[Q+1280>>0]=32768*Q+8421375,Y[Q+1536>>0]=-27439*Q,Y[Q+1792>>0]=-5329*Q}(),BA(e)}/** * @license * Copyright (c) 2017 Aras Abbasi * * Licensed under the MIT License. * http://opensource.org/licenses/mit-license */function Hr(e,A){if(this.pos=0,this.buffer=e,this.datav=new DataView(e.buffer),this.is_with_alpha=!!A,this.bottom_up=!0,this.flag=String.fromCharCode(this.buffer[0])+String.fromCharCode(this.buffer[1]),this.pos+=2,["BM","BA","CI","CP","IC","PT"].indexOf(this.flag)===-1)throw new Error("Invalid BMP File");this.parseHeader(),this.parseBGR()}function Cf(e){function A(R){if(!R)throw Error("assert :P")}function t(R,k,$){for(var _=0;4>_;_++)if(R[k+_]!=$.charCodeAt(_))return!0;return!1}function r(R,k,$,_,L){for(var D=0;D<L;D++)R[k+D]=$[_+D]}function n(R,k,$,_){for(var L=0;L<_;L++)R[k+L]=$}function i(R){return new Int32Array(R)}function a(R,k){for(var $=[],_=0;_<R;_++)$.push(new k);return $}function o(R,k){var $=[];return function _(L,D,O){for(var nA=O[D],sA=0;sA<nA&&(L.push(O.length>D+1?[]:new k),!(O.length<D+1));sA++)_(L[sA],D+1,O)}($,0,R),$}var c=function(){var R=this;function k(s,l){for(var f=1<<l-1>>>0;s&f;)f>>>=1;return f?(s&f-1)+f:s}function $(s,l,f,w,b){A(!(w%f));do s[l+(w-=f)]=b;while(0<w)}function _(s,l,f,w,b){if(A(2328>=b),512>=b)var S=i(512);else if((S=i(b))==null)return 0;return function(E,I,H,T,Z,hA){var fA,iA,CA=I,dA=1<<H,AA=i(16),rA=i(16);for(A(Z!=0),A(T!=null),A(E!=null),A(0<H),iA=0;iA<Z;++iA){if(15<T[iA])return 0;++AA[T[iA]]}if(AA[0]==Z)return 0;for(rA[1]=0,fA=1;15>fA;++fA){if(AA[fA]>1<<fA)return 0;rA[fA+1]=rA[fA]+AA[fA]}for(iA=0;iA<Z;++iA)fA=T[iA],0<T[iA]&&(hA[rA[fA]++]=iA);if(rA[15]==1)return(T=new L).g=0,T.value=hA[0],$(E,CA,1,dA,T),dA;var mA,yA=-1,vA=dA-1,RA=0,IA=1,ZA=1,jA=1<<H;for(iA=0,fA=1,Z=2;fA<=H;++fA,Z<<=1){if(IA+=ZA<<=1,0>(ZA-=AA[fA]))return 0;for(;0<AA[fA];--AA[fA])(T=new L).g=fA,T.value=hA[iA++],$(E,CA+RA,Z,jA,T),RA=k(RA,fA)}for(fA=H+1,Z=2;15>=fA;++fA,Z<<=1){if(IA+=ZA<<=1,0>(ZA-=AA[fA]))return 0;for(;0<AA[fA];--AA[fA]){if(T=new L,(RA&vA)!=yA){for(CA+=jA,mA=1<<(yA=fA)-H;15>yA&&!(0>=(mA-=AA[yA]));)++yA,mA<<=1;dA+=jA=1<<(mA=yA-H),E[I+(yA=RA&vA)].g=mA+H,E[I+yA].value=CA-I-yA}T.g=fA-H,T.value=hA[iA++],$(E,CA+(RA>>H),Z,jA,T),RA=k(RA,fA)}}return IA!=2*rA[15]-1?0:dA}(s,l,f,w,b,S)}function L(){this.value=this.g=0}function D(){this.value=this.g=0}function O(){this.G=a(5,L),this.H=i(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=a(yt,D)}function nA(s,l,f,w){A(s!=null),A(l!=null),A(2147483648>w),s.Ca=254,s.I=0,s.b=-8,s.Ka=0,s.oa=l,s.pa=f,s.Jd=l,s.Yc=f+w,s.Zc=4<=w?f+w-4+1:f,eA(s)}function sA(s,l){for(var f=0;0<l--;)f|=aA(s,128)<<l;return f}function oA(s,l){var f=sA(s,l);return uA(s)?-f:f}function tA(s,l,f,w){var b,S=0;for(A(s!=null),A(l!=null),A(4294967288>w),s.Sb=w,s.Ra=0,s.u=0,s.h=0,4<w&&(w=4),b=0;b<w;++b)S+=l[f+b]<<8*b;s.Ra=S,s.bb=w,s.oa=l,s.pa=f}function cA(s){for(;8<=s.u&&s.bb<s.Sb;)s.Ra>>>=8,s.Ra+=s.oa[s.pa+s.bb]<<Ri-8>>>0,++s.bb,s.u-=8;P(s)&&(s.h=1,s.u=0)}function z(s,l){if(A(0<=l),!s.h&&l<=Oi){var f=j(s)&Mi[l];return s.u+=l,cA(s),f}return s.h=1,s.u=0}function BA(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function Q(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(s){return s.Ra>>>(s.u&Ri-1)>>>0}function P(s){return A(s.bb<=s.Sb),s.h||s.bb==s.Sb&&s.u>Ri}function G(s,l){s.u=l,s.h=P(s)}function X(s){s.u>=Rs&&(A(s.u>=Rs),cA(s))}function eA(s){A(s!=null&&s.oa!=null),s.pa<s.Zc?(s.I=(s.oa[s.pa++]|s.I<<8)>>>0,s.b+=8):(A(s!=null&&s.oa!=null),s.pa<s.Yc?(s.b+=8,s.I=s.oa[s.pa++]|s.I<<8):s.Ka?s.b=0:(s.I<<=8,s.b+=8,s.Ka=1))}function uA(s){return sA(s,1)}function aA(s,l){var f=s.Ca;0>s.b&&eA(s);var w=s.b,b=f*l>>>8,S=(s.I>>>w>b)+0;for(S?(f-=b,s.I-=b+1<<w>>>0):f=b+1,w=f,b=0;256<=w;)b+=8,w>>=8;return w=7^b+Jt[w],s.b-=w,s.Ca=(f<<w)-1,S}function wA(s,l,f){s[l+0]=f>>24&255,s[l+1]=f>>16&255,s[l+2]=f>>8&255,s[l+3]=f>>0&255}function bA(s,l){return s[l+0]<<0|s[l+1]<<8}function SA(s,l){return bA(s,l)|s[l+2]<<16}function EA(s,l){return bA(s,l)|bA(s,l+2)<<16}function XA(s,l){var f=1<<l;return A(s!=null),A(0<l),s.X=i(f),s.X==null?0:(s.Mb=32-l,s.Xa=l,1)}function gA(s,l){A(s!=null),A(l!=null),A(s.Xa==l.Xa),r(l.X,0,s.X,0,1<<l.Xa)}function K(){this.X=[],this.Xa=this.Mb=0}function WA(s,l,f,w){A(f!=null),A(w!=null);var b=f[0],S=w[0];return b==0&&(b=(s*S+l/2)/l),S==0&&(S=(l*b+s/2)/s),0>=b||0>=S?0:(f[0]=b,w[0]=S,1)}function kA(s,l){return s+(1<<l)-1>>>l}function QA(s,l){return((4278255360&s)+(4278255360&l)>>>0&4278255360)+((16711935&s)+(16711935&l)>>>0&16711935)>>>0}function LA(s,l){R[l]=function(f,w,b,S,E,I,H){var T;for(T=0;T<E;++T){var Z=R[s](I[H+T-1],b,S+T);I[H+T]=QA(f[w+T],Z)}}}function TA(){this.ud=this.hd=this.jd=0}function _A(s,l){return((4278124286&(s^l))>>>1)+(s&l)>>>0}function qA(s){return 0<=s&&256>s?s:0>s?0:255<s?255:void 0}function PA(s,l){return qA(s+(s-l+.5>>1))}function se(s,l,f){return Math.abs(l-f)-Math.abs(s-f)}function he(s,l,f,w,b,S,E){for(w=S[E-1],f=0;f<b;++f)S[E+f]=w=QA(s[l+f],w)}function pe(s,l,f,w,b){var S;for(S=0;S<f;++S){var E=s[l+S],I=E>>8&255,H=16711935&(H=(H=16711935&E)+((I<<16)+I));w[b+S]=(4278255360&E)+H>>>0}}function Se(s,l){l.jd=s>>0&255,l.hd=s>>8&255,l.ud=s>>16&255}function GA(s,l,f,w,b,S){var E;for(E=0;E<w;++E){var I=l[f+E],H=I>>>8,T=I,Z=255&(Z=(Z=I>>>16)+((s.jd<<24>>24)*(H<<24>>24)>>>5));T=255&(T=(T=T+((s.hd<<24>>24)*(H<<24>>24)>>>5))+((s.ud<<24>>24)*(Z<<24>>24)>>>5)),b[S+E]=(4278255360&I)+(Z<<16)+T}}function le(s,l,f,w,b){R[l]=function(S,E,I,H,T,Z,hA,fA,iA){for(H=hA;H<fA;++H)for(hA=0;hA<iA;++hA)T[Z++]=b(I[w(S[E++])])},R[s]=function(S,E,I,H,T,Z,hA){var fA=8>>S.b,iA=S.Ea,CA=S.K[0],dA=S.w;if(8>fA)for(S=(1<<S.b)-1,dA=(1<<fA)-1;E<I;++E){var AA,rA=0;for(AA=0;AA<iA;++AA)AA&S||(rA=w(H[T++])),Z[hA++]=b(CA[rA&dA]),rA>>=fA}else R["VP8LMapColor"+f](H,T,CA,dA,Z,hA,E,I,iA)}}function NA(s,l,f,w,b){for(f=l+f;l<f;){var S=s[l++];w[b++]=S>>16&255,w[b++]=S>>8&255,w[b++]=S>>0&255}}function ft(s,l,f,w,b){for(f=l+f;l<f;){var S=s[l++];w[b++]=S>>16&255,w[b++]=S>>8&255,w[b++]=S>>0&255,w[b++]=S>>24&255}}function ve(s,l,f,w,b){for(f=l+f;l<f;){var S=(E=s[l++])>>16&240|E>>12&15,E=E>>0&240|E>>28&15;w[b++]=S,w[b++]=E}}function zt(s,l,f,w,b){for(f=l+f;l<f;){var S=(E=s[l++])>>16&248|E>>13&7,E=E>>5&224|E>>3&31;w[b++]=S,w[b++]=E}}function Le(s,l,f,w,b){for(f=l+f;l<f;){var S=s[l++];w[b++]=S>>0&255,w[b++]=S>>8&255,w[b++]=S>>16&255}}function ke(s,l,f,w,b,S){if(S==0)for(f=l+f;l<f;)wA(w,((S=s[l++])[0]>>24|S[1]>>8&65280|S[2]<<8&16711680|S[3]<<24)>>>0),b+=32;else r(w,b,s,l,f)}function er(s,l){R[l][0]=R[s+"0"],R[l][1]=R[s+"1"],R[l][2]=R[s+"2"],R[l][3]=R[s+"3"],R[l][4]=R[s+"4"],R[l][5]=R[s+"5"],R[l][6]=R[s+"6"],R[l][7]=R[s+"7"],R[l][8]=R[s+"8"],R[l][9]=R[s+"9"],R[l][10]=R[s+"10"],R[l][11]=R[s+"11"],R[l][12]=R[s+"12"],R[l][13]=R[s+"13"],R[l][14]=R[s+"0"],R[l][15]=R[s+"0"]}function Fe(s){return s==mc||s==vc||s==wo||s==Cc}function Or(){this.eb=[],this.size=this.A=this.fb=0}function Ge(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function Ae(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Or,this.f.kb=new Ge,this.sd=null}function re(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function YA(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function zA(s){return alert("todo:WebPSamplerProcessPlane"),s.T}function de(s,l){var f=s.T,w=l.ba.f.RGBA,b=w.eb,S=w.fb+s.ka*w.A,E=pr[l.ba.S],I=s.y,H=s.O,T=s.f,Z=s.N,hA=s.ea,fA=s.W,iA=l.cc,CA=l.dc,dA=l.Mc,AA=l.Nc,rA=s.ka,mA=s.ka+s.T,yA=s.U,vA=yA+1>>1;for(rA==0?E(I,H,null,null,T,Z,hA,fA,T,Z,hA,fA,b,S,null,null,yA):(E(l.ec,l.fc,I,H,iA,CA,dA,AA,T,Z,hA,fA,b,S-w.A,b,S,yA),++f);rA+2<mA;rA+=2)iA=T,CA=Z,dA=hA,AA=fA,Z+=s.Rc,fA+=s.Rc,S+=2*w.A,E(I,(H+=2*s.fa)-s.fa,I,H,iA,CA,dA,AA,T,Z,hA,fA,b,S-w.A,b,S,yA);return H+=s.fa,s.j+mA<s.o?(r(l.ec,l.fc,I,H,yA),r(l.cc,l.dc,T,Z,vA),r(l.Mc,l.Nc,hA,fA,vA),f--):1&mA||E(I,H,null,null,T,Z,hA,fA,T,Z,hA,fA,b,S+w.A,null,null,yA),f}function Ot(s,l,f){var w=s.F,b=[s.J];if(w!=null){var S=s.U,E=l.ba.S,I=E==Bo||E==wo;l=l.ba.f.RGBA;var H=[0],T=s.ka;H[0]=s.T,s.Kb&&(T==0?--H[0]:(--T,b[0]-=s.width),s.j+s.ka+s.T==s.o&&(H[0]=s.o-s.j-T));var Z=l.eb;T=l.fb+T*l.A,s=Me(w,b[0],s.width,S,H,Z,T+(I?0:3),l.A),A(f==H),s&&Fe(E)&&dr(Z,T,I,S,H,l.A)}return 0}function We(s){var l=s.ma,f=l.ba.S,w=11>f,b=f==go||f==po||f==Bo||f==wc||f==12||Fe(f);if(l.memory=null,l.Ib=null,l.Jb=null,l.Nd=null,!Ms(l.Oa,s,b?11:12))return 0;if(b&&Fe(f)&&FA(),s.da)alert("todo:use_scaling");else{if(w){if(l.Ib=zA,s.Kb){if(f=s.U+1>>1,l.memory=i(s.U+2*f),l.memory==null)return 0;l.ec=l.memory,l.fc=0,l.cc=l.ec,l.dc=l.fc+s.U,l.Mc=l.cc,l.Nc=l.dc+f,l.Ib=de,FA()}}else alert("todo:EmitYUV");b&&(l.Jb=Ot,w&&lA())}if(w&&!Sh){for(s=0;256>s;++s)Up[s]=89858*(s-128)+vo>>mo,Lp[s]=-22014*(s-128)+vo,Ep[s]=-45773*(s-128),Sp[s]=113618*(s-128)+vo>>mo;for(s=Js;s<Fc;++s)l=76283*(s-16)+vo>>mo,Ip[s-Js]=rr(l,255),_p[s-Js]=rr(l+8>>4,15);Sh=1}return 1}function Rr(s){var l=s.ma,f=s.U,w=s.T;return A(!(1&s.ka)),0>=f||0>=w?0:(f=l.Ib(s,l),l.Jb!=null&&l.Jb(s,l,f),l.Dc+=f,1)}function Kr(s){s.ma.memory=null}function ee(s,l,f,w){return z(s,8)!=47?0:(l[0]=z(s,14)+1,f[0]=z(s,14)+1,w[0]=z(s,1),z(s,3)!=0?0:!s.h)}function yr(s,l){if(4>s)return s+1;var f=s-2>>1;return(2+(1&s)<<f)+z(l,f)+1}function Gr(s,l){return 120<l?l-120:1<=(f=((f=fp[l-1])>>4)*s+(8-(15&f)))?f:1;var f}function qt(s,l,f){var w=j(f),b=s[l+=255&w].g-8;return 0<b&&(G(f,f.u+8),w=j(f),l+=s[l].value,l+=w&(1<<b)-1),G(f,f.u+s[l].g),s[l].value}function dt(s,l,f){return f.g+=s.g,f.value+=s.value<<l>>>0,A(8>=f.g),s.g}function at(s,l,f){var w=s.xc;return A((l=w==0?0:s.vc[s.md*(f>>w)+(l>>w)])<s.Wb),s.Ya[l]}function tr(s,l,f,w){var b=s.ab,S=s.c*l,E=s.C;l=E+l;var I=f,H=w;for(w=s.Ta,f=s.Ua;0<b--;){var T=s.gc[b],Z=E,hA=l,fA=I,iA=H,CA=(H=w,I=f,T.Ea);switch(A(Z<hA),A(hA<=T.nc),T.hc){case 2:ao(fA,iA,(hA-Z)*CA,H,I);break;case 0:var dA=Z,AA=hA,rA=H,mA=I,yA=(jA=T).Ea;dA==0&&(pc(fA,iA,null,null,1,rA,mA),he(fA,iA+1,0,0,yA-1,rA,mA+1),iA+=yA,mA+=yA,++dA);for(var vA=1<<jA.b,RA=vA-1,IA=kA(yA,jA.b),ZA=jA.K,jA=jA.w+(dA>>jA.b)*IA;dA<AA;){var Qe=ZA,Ie=jA,be=1;for(Ks(fA,iA,rA,mA-yA,1,rA,mA);be<yA;){var Be=(be&~RA)+vA;Be>yA&&(Be=yA),(0,Fn[Qe[Ie++]>>8&15])(fA,iA+ +be,rA,mA+be-yA,Be-be,rA,mA+be),be=Be}iA+=yA,mA+=yA,++dA&RA||(jA+=IA)}hA!=T.nc&&r(H,I-CA,H,I+(hA-Z-1)*CA,CA);break;case 1:for(CA=fA,AA=iA,yA=(fA=T.Ea)-(mA=fA&~(rA=(iA=1<<T.b)-1)),dA=kA(fA,T.b),vA=T.K,T=T.w+(Z>>T.b)*dA;Z<hA;){for(RA=vA,IA=T,ZA=new TA,jA=AA+mA,Qe=AA+fA;AA<jA;)Se(RA[IA++],ZA),ti(ZA,CA,AA,iA,H,I),AA+=iA,I+=iA;AA<Qe&&(Se(RA[IA++],ZA),ti(ZA,CA,AA,yA,H,I),AA+=yA,I+=yA),++Z&rA||(T+=dA)}break;case 3:if(fA==H&&iA==I&&0<T.b){for(AA=H,fA=CA=I+(hA-Z)*CA-(mA=(hA-Z)*kA(T.Ea,T.b)),iA=H,rA=I,dA=[],mA=(yA=mA)-1;0<=mA;--mA)dA[mA]=iA[rA+mA];for(mA=yA-1;0<=mA;--mA)AA[fA+mA]=dA[mA];ur(T,Z,hA,H,CA,H,I)}else ur(T,Z,hA,fA,iA,H,I)}I=w,H=f}H!=f&&r(w,f,I,H,S)}function yi(s,l){var f=s.V,w=s.Ba+s.c*s.C,b=l-s.C;if(A(l<=s.l.o),A(16>=b),0<b){var S=s.l,E=s.Ta,I=s.Ua,H=S.width;if(tr(s,b,f,w),b=I=[I],A((f=s.C)<(w=l)),A(S.v<S.va),w>S.o&&(w=S.o),f<S.j){var T=S.j-f;f=S.j,b[0]+=T*H}if(f>=w?f=0:(b[0]+=4*S.v,S.ka=f-S.j,S.U=S.va-S.v,S.T=w-f,f=1),f){if(I=I[0],11>(f=s.ca).S){var Z=f.f.RGBA,hA=(w=f.S,b=S.U,S=S.T,T=Z.eb,Z.A),fA=S;for(Z=Z.fb+s.Ma*Z.A;0<fA--;){var iA=E,CA=I,dA=b,AA=T,rA=Z;switch(w){case fo:Xt(iA,CA,dA,AA,rA);break;case go:Rt(iA,CA,dA,AA,rA);break;case mc:Rt(iA,CA,dA,AA,rA),dr(AA,rA,0,dA,1,0);break;case mh:cn(iA,CA,dA,AA,rA);break;case po:ke(iA,CA,dA,AA,rA,1);break;case vc:ke(iA,CA,dA,AA,rA,1),dr(AA,rA,0,dA,1,0);break;case Bo:ke(iA,CA,dA,AA,rA,0);break;case wo:ke(iA,CA,dA,AA,rA,0),dr(AA,rA,1,dA,1,0);break;case wc:Qn(iA,CA,dA,AA,rA);break;case Cc:Qn(iA,CA,dA,AA,rA),Pe(AA,rA,dA,1,0);break;case vh:ln(iA,CA,dA,AA,rA);break;default:A(0)}I+=H,Z+=hA}s.Ma+=S}else alert("todo:EmitRescaledRowsYUVA");A(s.Ma<=f.height)}}s.C=l,A(s.C<=s.i)}function sn(s){var l;if(0<s.ua)return 0;for(l=0;l<s.Wb;++l){var f=s.Ya[l].G,w=s.Ya[l].H;if(0<f[1][w[1]+0].g||0<f[2][w[2]+0].g||0<f[3][w[3]+0].g)return 0}return 1}function Fr(s,l,f,w,b,S){if(s.Z!=0){var E=s.qd,I=s.rd;for(A(En[s.Z]!=null);l<f;++l)En[s.Z](E,I,w,b,w,b,S),E=w,I=b,b+=S;s.qd=E,s.rd=I}}function Qr(s,l){var f=s.l.ma,w=f.Z==0||f.Z==1?s.l.j:s.C;if(w=s.C<w?w:s.C,A(l<=s.l.o),l>w){var b=s.l.width,S=f.ca,E=f.tb+b*w,I=s.V,H=s.Ba+s.c*w,T=s.gc;A(s.ab==1),A(T[0].hc==3),oo(T[0],w,l,I,H,S,E),Fr(f,w,l,S,E,b)}s.C=s.Ma=l}function xr(s,l,f,w,b,S,E){var I=s.$/w,H=s.$%w,T=s.m,Z=s.s,hA=f+s.$,fA=hA;b=f+w*b;var iA=f+w*S,CA=280+Z.ua,dA=s.Pb?I:16777216,AA=0<Z.ua?Z.Wa:null,rA=Z.wc,mA=hA<iA?at(Z,H,I):null;A(s.C<S),A(iA<=b);var yA=!1;A:for(;;){for(;yA||hA<iA;){var vA=0;if(I>=dA){var RA=hA-f;A((dA=s).Pb),dA.wd=dA.m,dA.xd=RA,0<dA.s.ua&&gA(dA.s.Wa,dA.s.vb),dA=I+gp}if(H&rA||(mA=at(Z,H,I)),A(mA!=null),mA.Qb&&(l[hA]=mA.qb,yA=!0),!yA)if(X(T),mA.jc){vA=T,RA=l;var IA=hA,ZA=mA.pd[j(vA)&yt-1];A(mA.jc),256>ZA.g?(G(vA,vA.u+ZA.g),RA[IA]=ZA.value,vA=0):(G(vA,vA.u+ZA.g-256),A(256<=ZA.value),vA=ZA.value),vA==0&&(yA=!0)}else vA=qt(mA.G[0],mA.H[0],T);if(T.h)break;if(yA||256>vA){if(!yA)if(mA.nd)l[hA]=(mA.qb|vA<<8)>>>0;else{if(X(T),yA=qt(mA.G[1],mA.H[1],T),X(T),RA=qt(mA.G[2],mA.H[2],T),IA=qt(mA.G[3],mA.H[3],T),T.h)break;l[hA]=(IA<<24|yA<<16|vA<<8|RA)>>>0}if(yA=!1,++hA,++H>=w&&(H=0,++I,E!=null&&I<=S&&!(I%16)&&E(s,I),AA!=null))for(;fA<hA;)vA=l[fA++],AA.X[(506832829*vA&4294967295)>>>AA.Mb]=vA}else if(280>vA){if(vA=yr(vA-256,T),RA=qt(mA.G[4],mA.H[4],T),X(T),RA=Gr(w,RA=yr(RA,T)),T.h)break;if(hA-f<RA||b-hA<vA)break A;for(IA=0;IA<vA;++IA)l[hA+IA]=l[hA+IA-RA];for(hA+=vA,H+=vA;H>=w;)H-=w,++I,E!=null&&I<=S&&!(I%16)&&E(s,I);if(A(hA<=b),H&rA&&(mA=at(Z,H,I)),AA!=null)for(;fA<hA;)vA=l[fA++],AA.X[(506832829*vA&4294967295)>>>AA.Mb]=vA}else{if(!(vA<CA))break A;for(yA=vA-280,A(AA!=null);fA<hA;)vA=l[fA++],AA.X[(506832829*vA&4294967295)>>>AA.Mb]=vA;vA=hA,A(!(yA>>>(RA=AA).Xa)),l[vA]=RA.X[yA],yA=!0}yA||A(T.h==P(T))}if(s.Pb&&T.h&&hA<b)A(s.m.h),s.a=5,s.m=s.wd,s.$=s.xd,0<s.s.ua&&gA(s.s.vb,s.s.Wa);else{if(T.h)break A;E?.(s,I>S?S:I),s.a=0,s.$=hA-f}return 1}return s.a=3,0}function Vr(s){A(s!=null),s.vc=null,s.yc=null,s.Ya=null;var l=s.Wa;l!=null&&(l.X=null),s.vb=null,A(s!=null)}function cr(){var s=new gc;return s==null?null:(s.a=0,s.xb=yh,er("Predictor","VP8LPredictors"),er("Predictor","VP8LPredictors_C"),er("PredictorAdd","VP8LPredictorsAdd"),er("PredictorAdd","VP8LPredictorsAdd_C"),ao=pe,ti=GA,Xt=NA,Rt=ft,Qn=ve,ln=zt,cn=Le,R.VP8LMapColor32b=Ki,R.VP8LMapColor8b=lo,s)}function zr(s,l,f,w,b){var S=1,E=[s],I=[l],H=w.m,T=w.s,Z=null,hA=0;A:for(;;){if(f)for(;S&&z(H,1);){var fA=E,iA=I,CA=w,dA=1,AA=CA.m,rA=CA.gc[CA.ab],mA=z(AA,2);if(CA.Oc&1<<mA)S=0;else{switch(CA.Oc|=1<<mA,rA.hc=mA,rA.Ea=fA[0],rA.nc=iA[0],rA.K=[null],++CA.ab,A(4>=CA.ab),mA){case 0:case 1:rA.b=z(AA,3)+2,dA=zr(kA(rA.Ea,rA.b),kA(rA.nc,rA.b),0,CA,rA.K),rA.K=rA.K[0];break;case 3:var yA,vA=z(AA,8)+1,RA=16<vA?0:4<vA?1:2<vA?2:3;if(fA[0]=kA(rA.Ea,RA),rA.b=RA,yA=dA=zr(vA,1,0,CA,rA.K)){var IA,ZA=vA,jA=rA,Qe=1<<(8>>jA.b),Ie=i(Qe);if(Ie==null)yA=0;else{var be=jA.K[0],Be=jA.w;for(Ie[0]=jA.K[0][0],IA=1;IA<1*ZA;++IA)Ie[IA]=QA(be[Be+IA],Ie[IA-1]);for(;IA<4*Qe;++IA)Ie[IA]=0;jA.K[0]=null,jA.K[0]=Ie,yA=1}}dA=yA;break;case 2:break;default:A(0)}S=dA}}if(E=E[0],I=I[0],S&&z(H,1)&&!(S=1<=(hA=z(H,4))&&11>=hA)){w.a=3;break A}var je;if(je=S)e:{var He,ue,lt,Yt=w,ct=E,Zt=I,_e=hA,ir=f,sr=Yt.m,wt=Yt.s,Ft=[null],Gt=1,Br=0,Xr=dp[_e];t:for(;;){if(ir&&z(sr,1)){var mt=z(sr,3)+2,dn=kA(ct,mt),ai=kA(Zt,mt),Wi=dn*ai;if(!zr(dn,ai,0,Yt,Ft))break t;for(Ft=Ft[0],wt.xc=mt,He=0;He<Wi;++He){var Ln=Ft[He]>>8&65535;Ft[He]=Ln,Ln>=Gt&&(Gt=Ln+1)}}if(sr.h)break t;for(ue=0;5>ue;++ue){var Xe=Ch[ue];!ue&&0<_e&&(Xe+=1<<_e),Br<Xe&&(Br=Xe)}var Qc=a(Gt*Xr,L),Ih=Gt,_h=a(Ih,O);if(_h==null)var bo=null;else A(65536>=Ih),bo=_h;var Xs=i(Br);if(bo==null||Xs==null||Qc==null){Yt.a=1;break t}var yo=Qc;for(He=lt=0;He<Gt;++He){var Ir=bo[He],Ji=Ir.G,Xi=Ir.H,Hh=0,Fo=1,Nh=0;for(ue=0;5>ue;++ue){Xe=Ch[ue],Ji[ue]=yo,Xi[ue]=lt,!ue&&0<_e&&(Xe+=1<<_e);n:{var Qo,xc=Xe,xo=Yt,Ys=Xs,jp=yo,Dp=lt,Uc=0,In=xo.m,Tp=z(In,1);if(n(Ys,0,0,xc),Tp){var kp=z(In,1)+1,Pp=z(In,1),jh=z(In,Pp==0?1:8);Ys[jh]=1,kp==2&&(Ys[jh=z(In,8)]=1);var Uo=1}else{var Dh=i(19),Th=z(In,4)+4;if(19<Th){xo.a=3;var So=0;break n}for(Qo=0;Qo<Th;++Qo)Dh[hp[Qo]]=z(In,3);var Sc=void 0,Zs=void 0,kh=xo,Mp=Dh,Eo=xc,Ph=Ys,Ec=0,_n=kh.m,Mh=8,Oh=a(128,L);r:for(;_(Oh,0,7,Mp,19);){if(z(_n,1)){var Op=2+2*z(_n,3);if((Sc=2+z(_n,Op))>Eo)break r}else Sc=Eo;for(Zs=0;Zs<Eo&&Sc--;){X(_n);var Rh=Oh[0+(127&j(_n))];G(_n,_n.u+Rh.g);var Yi=Rh.value;if(16>Yi)Ph[Zs++]=Yi,Yi!=0&&(Mh=Yi);else{var Rp=Yi==16,Kh=Yi-16,Kp=cp[Kh],Gh=z(_n,lp[Kh])+Kp;if(Zs+Gh>Eo)break r;for(var Gp=Rp?Mh:0;0<Gh--;)Ph[Zs++]=Gp}}Ec=1;break r}Ec||(kh.a=3),Uo=Ec}(Uo=Uo&&!In.h)&&(Uc=_(jp,Dp,8,Ys,xc)),Uo&&Uc!=0?So=Uc:(xo.a=3,So=0)}if(So==0)break t;if(Fo&&up[ue]==1&&(Fo=yo[lt].g==0),Hh+=yo[lt].g,lt+=So,3>=ue){var $s,Lc=Xs[0];for($s=1;$s<Xe;++$s)Xs[$s]>Lc&&(Lc=Xs[$s]);Nh+=Lc}}if(Ir.nd=Fo,Ir.Qb=0,Fo&&(Ir.qb=(Ji[3][Xi[3]+0].value<<24|Ji[1][Xi[1]+0].value<<16|Ji[2][Xi[2]+0].value)>>>0,Hh==0&&256>Ji[0][Xi[0]+0].value&&(Ir.Qb=1,Ir.qb+=Ji[0][Xi[0]+0].value<<8)),Ir.jc=!Ir.Qb&&6>Nh,Ir.jc){var Lo,gn=Ir;for(Lo=0;Lo<yt;++Lo){var Hn=Lo,Nn=gn.pd[Hn],Io=gn.G[0][gn.H[0]+Hn];256<=Io.value?(Nn.g=Io.g+256,Nn.value=Io.value):(Nn.g=0,Nn.value=0,Hn>>=dt(Io,8,Nn),Hn>>=dt(gn.G[1][gn.H[1]+Hn],16,Nn),Hn>>=dt(gn.G[2][gn.H[2]+Hn],0,Nn),dt(gn.G[3][gn.H[3]+Hn],24,Nn))}}}wt.vc=Ft,wt.Wb=Gt,wt.Ya=bo,wt.yc=Qc,je=1;break e}je=0}if(!(S=je)){w.a=3;break A}if(0<hA){if(T.ua=1<<hA,!XA(T.Wa,hA)){w.a=1,S=0;break A}}else T.ua=0;var Ic=w,Vh=E,Vp=I,_c=Ic.s,Hc=_c.xc;if(Ic.c=Vh,Ic.i=Vp,_c.md=kA(Vh,Hc),_c.wc=Hc==0?-1:(1<<Hc)-1,f){w.xb=bp;break A}if((Z=i(E*I))==null){w.a=1,S=0;break A}S=(S=xr(w,Z,0,E,I,I,null))&&!H.h;break A}return S?(b!=null?b[0]=Z:(A(Z==null),A(f)),w.$=0,f||Vr(T)):Vr(T),S}function Yn(s,l){var f=s.c*s.i,w=f+l+16*l;return A(s.c<=l),s.V=i(w),s.V==null?(s.Ta=null,s.Ua=0,s.a=1,0):(s.Ta=s.V,s.Ua=s.Ba+f+l,1)}function Fi(s,l){var f=s.C,w=l-f,b=s.V,S=s.Ba+s.c*f;for(A(l<=s.l.o);0<w;){var E=16<w?16:w,I=s.l.ma,H=s.l.width,T=H*E,Z=I.ca,hA=I.tb+H*f,fA=s.Ta,iA=s.Ua;tr(s,E,b,S),At(fA,iA,Z,hA,T),Fr(I,f,f+E,Z,hA,H),w-=E,b+=E*s.c,f+=E}A(f==l),s.C=s.Ma=l}function Qi(){this.ub=this.yd=this.td=this.Rb=0}function xi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function Ui(){this.Fb=this.Bb=this.Cb=0,this.Zb=i(4),this.Lb=i(4)}function Oa(){this.Yb=function(){var s=[];return function l(f,w,b){for(var S=b[w],E=0;E<S&&(f.push(b.length>w+1?[]:0),!(b.length<w+1));E++)l(f[E],w+1,b)}(s,0,[3,11]),s}()}function zl(){this.jb=i(3),this.Wc=o([4,8],Oa),this.Xc=o([4,17],Oa)}function ql(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new i(4),this.od=new i(4)}function Si(){this.ld=this.La=this.dd=this.tc=0}function Ra(){this.Na=this.la=0}function Wl(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Fs(){this.ad=i(384),this.Za=0,this.Ob=i(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function Jl(){this.uc=this.M=this.Nb=0,this.wa=Array(new Si),this.Y=0,this.ya=Array(new Fs),this.aa=0,this.l=new Ei}function Ka(){this.y=i(16),this.f=i(8),this.ea=i(8)}function Xl(){this.cb=this.a=0,this.sc="",this.m=new BA,this.Od=new Qi,this.Kc=new xi,this.ed=new ql,this.Qa=new Ui,this.Ic=this.$c=this.Aa=0,this.D=new Jl,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=a(8,BA),this.ia=0,this.pb=a(4,Wl),this.Pa=new zl,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new Ka),this.Hd=0,this.rb=Array(new Ra),this.sb=0,this.wa=Array(new Si),this.Y=0,this.oc=[],this.pc=0,this.sa=[],this.ta=0,this.qa=[],this.ra=0,this.Ha=[],this.B=this.R=this.Ia=0,this.Ec=[],this.M=this.ja=this.Vb=this.Fc=0,this.ya=Array(new Fs),this.L=this.aa=0,this.gd=o([4,2],Si),this.ga=null,this.Fa=[],this.Cc=this.qc=this.P=0,this.Gb=[],this.Uc=0,this.mb=[],this.nb=0,this.rc=[],this.Ga=this.Vc=0}function Ei(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Yl(){var s=new Xl;return s!=null&&(s.a=0,s.sc="OK",s.cb=0,s.Xb=0,Ws||(Ws=za)),s}function Ze(s,l,f){return s.a==0&&(s.a=l,s.sc=f,s.cb=0),0}function Ga(s,l,f){return 3<=f&&s[l+0]==157&&s[l+1]==1&&s[l+2]==42}function Va(s,l){if(s==null)return 0;if(s.a=0,s.sc="OK",l==null)return Ze(s,2,"null VP8Io passed to VP8GetHeaders()");var f=l.data,w=l.w,b=l.ha;if(4>b)return Ze(s,7,"Truncated header.");var S=f[w+0]|f[w+1]<<8|f[w+2]<<16,E=s.Od;if(E.Rb=!(1&S),E.td=S>>1&7,E.yd=S>>4&1,E.ub=S>>5,3<E.td)return Ze(s,3,"Incorrect keyframe parameters.");if(!E.yd)return Ze(s,4,"Frame not displayable.");w+=3,b-=3;var I=s.Kc;if(E.Rb){if(7>b)return Ze(s,7,"cannot parse picture header");if(!Ga(f,w,b))return Ze(s,3,"Bad code word");I.c=16383&(f[w+4]<<8|f[w+3]),I.Td=f[w+4]>>6,I.i=16383&(f[w+6]<<8|f[w+5]),I.Ud=f[w+6]>>6,w+=7,b-=7,s.za=I.c+15>>4,s.Ub=I.i+15>>4,l.width=I.c,l.height=I.i,l.Da=0,l.j=0,l.v=0,l.va=l.width,l.o=l.height,l.da=0,l.ib=l.width,l.hb=l.height,l.U=l.width,l.T=l.height,n((S=s.Pa).jb,0,255,S.jb.length),A((S=s.Qa)!=null),S.Cb=0,S.Bb=0,S.Fb=1,n(S.Zb,0,0,S.Zb.length),n(S.Lb,0,0,S.Lb)}if(E.ub>b)return Ze(s,7,"bad partition length");nA(S=s.m,f,w,E.ub),w+=E.ub,b-=E.ub,E.Rb&&(I.Ld=uA(S),I.Kd=uA(S)),I=s.Qa;var H,T=s.Pa;if(A(S!=null),A(I!=null),I.Cb=uA(S),I.Cb){if(I.Bb=uA(S),uA(S)){for(I.Fb=uA(S),H=0;4>H;++H)I.Zb[H]=uA(S)?oA(S,7):0;for(H=0;4>H;++H)I.Lb[H]=uA(S)?oA(S,6):0}if(I.Bb)for(H=0;3>H;++H)T.jb[H]=uA(S)?sA(S,8):255}else I.Bb=0;if(S.Ka)return Ze(s,3,"cannot parse segment header");if((I=s.ed).zd=uA(S),I.Tb=sA(S,6),I.wb=sA(S,3),I.Pc=uA(S),I.Pc&&uA(S)){for(T=0;4>T;++T)uA(S)&&(I.vd[T]=oA(S,6));for(T=0;4>T;++T)uA(S)&&(I.od[T]=oA(S,6))}if(s.L=I.Tb==0?0:I.zd?1:2,S.Ka)return Ze(s,3,"cannot parse filter header");var Z=b;if(b=H=w,w=H+Z,I=Z,s.Xb=(1<<sA(s.m,2))-1,Z<3*(T=s.Xb))f=7;else{for(H+=3*T,I-=3*T,Z=0;Z<T;++Z){var hA=f[b+0]|f[b+1]<<8|f[b+2]<<16;hA>I&&(hA=I),nA(s.Jc[+Z],f,H,hA),H+=hA,I-=hA,b+=3}nA(s.Jc[+T],f,H,I),f=H<w?0:5}if(f!=0)return Ze(s,f,"cannot parse partitions");for(f=sA(H=s.m,7),b=uA(H)?oA(H,4):0,w=uA(H)?oA(H,4):0,I=uA(H)?oA(H,4):0,T=uA(H)?oA(H,4):0,H=uA(H)?oA(H,4):0,Z=s.Qa,hA=0;4>hA;++hA){if(Z.Cb){var fA=Z.Zb[hA];Z.Fb||(fA+=f)}else{if(0<hA){s.pb[hA]=s.pb[0];continue}fA=f}var iA=s.pb[hA];iA.Sc[0]=bc[rr(fA+b,127)],iA.Sc[1]=yc[rr(fA+0,127)],iA.Eb[0]=2*bc[rr(fA+w,127)],iA.Eb[1]=101581*yc[rr(fA+I,127)]>>16,8>iA.Eb[1]&&(iA.Eb[1]=8),iA.Qc[0]=bc[rr(fA+T,117)],iA.Qc[1]=yc[rr(fA+H,127)],iA.lc=fA+H}if(!E.Rb)return Ze(s,4,"Not a key frame.");for(uA(S),E=s.Pa,f=0;4>f;++f){for(b=0;8>b;++b)for(w=0;3>w;++w)for(I=0;11>I;++I)T=aA(S,vp[f][b][w][I])?sA(S,8):wp[f][b][w][I],E.Wc[f][b].Yb[w][I]=T;for(b=0;17>b;++b)E.Xc[f][b]=E.Wc[f][Cp[b]]}return s.kc=uA(S),s.kc&&(s.Bd=sA(S,8)),s.cb=1}function za(s,l,f,w,b,S,E){var I=l[b].Yb[f];for(f=0;16>b;++b){if(!aA(s,I[f+0]))return b;for(;!aA(s,I[f+1]);)if(I=l[++b].Yb[0],f=0,b==16)return 16;var H=l[b+1].Yb;if(aA(s,I[f+2])){var T=s,Z=0;if(aA(T,(fA=I)[(hA=f)+3]))if(aA(T,fA[hA+6])){for(I=0,hA=2*(Z=aA(T,fA[hA+8]))+(fA=aA(T,fA[hA+9+Z])),Z=0,fA=pp[hA];fA[I];++I)Z+=Z+aA(T,fA[I]);Z+=3+(8<<hA)}else aA(T,fA[hA+7])?(Z=7+2*aA(T,165),Z+=aA(T,145)):Z=5+aA(T,159);else Z=aA(T,fA[hA+4])?3+aA(T,fA[hA+5]):2;I=H[2]}else Z=1,I=H[1];H=E+Bp[b],0>(T=s).b&&eA(T);var hA,fA=T.b,iA=(hA=T.Ca>>1)-(T.I>>fA)>>31;--T.b,T.Ca+=iA,T.Ca|=1,T.I-=(hA+1&iA)<<fA,S[H]=((Z^iA)-iA)*w[(0<b)+0]}return 16}function Qs(s){var l=s.rb[s.sb-1];l.la=0,l.Na=0,n(s.zc,0,0,s.zc.length),s.ja=0}function Zl(s,l){if(s==null)return 0;if(l==null)return Ze(s,2,"NULL VP8Io parameter in VP8Decode().");if(!s.cb&&!Va(s,l))return 0;if(A(s.cb),l.ac==null||l.ac(l)){l.ob&&(s.L=0);var f=Co[s.L];if(s.L==2?(s.yb=0,s.zb=0):(s.yb=l.v-f>>4,s.zb=l.j-f>>4,0>s.yb&&(s.yb=0),0>s.zb&&(s.zb=0)),s.Va=l.o+15+f>>4,s.Hb=l.va+15+f>>4,s.Hb>s.za&&(s.Hb=s.za),s.Va>s.Ub&&(s.Va=s.Ub),0<s.L){var w=s.ed;for(f=0;4>f;++f){var b;if(s.Qa.Cb){var S=s.Qa.Lb[f];s.Qa.Fb||(S+=w.Tb)}else S=w.Tb;for(b=0;1>=b;++b){var E=s.gd[f][b],I=S;if(w.Pc&&(I+=w.vd[0],b&&(I+=w.od[0])),0<(I=0>I?0:63<I?63:I)){var H=I;0<w.wb&&(H=4<w.wb?H>>2:H>>1)>9-w.wb&&(H=9-w.wb),1>H&&(H=1),E.dd=H,E.tc=2*I+H,E.ld=40<=I?2:15<=I?1:0}else E.tc=0;E.La=b}}}f=0}else Ze(s,6,"Frame setup failed"),f=s.a;if(f=f==0){if(f){s.$c=0,0<s.Aa||(s.Ic=Np);A:{f=s.Ic,w=4*(H=s.za);var T=32*H,Z=H+1,hA=0<s.L?H*(0<s.Aa?2:1):0,fA=(s.Aa==2?2:1)*H;if((E=w+832+(b=3*(16*f+Co[s.L])/2*T)+(S=s.Fa!=null&&0<s.Fa.length?s.Kc.c*s.Kc.i:0))!=E)f=0;else{if(E>s.Vb){if(s.Vb=0,s.Ec=i(E),s.Fc=0,s.Ec==null){f=Ze(s,1,"no memory during frame initialization.");break A}s.Vb=E}E=s.Ec,I=s.Fc,s.Ac=E,s.Bc=I,I+=w,s.Gd=a(T,Ka),s.Hd=0,s.rb=a(Z+1,Ra),s.sb=1,s.wa=hA?a(hA,Si):null,s.Y=0,s.D.Nb=0,s.D.wa=s.wa,s.D.Y=s.Y,0<s.Aa&&(s.D.Y+=H),A(!0),s.oc=E,s.pc=I,I+=832,s.ya=a(fA,Fs),s.aa=0,s.D.ya=s.ya,s.D.aa=s.aa,s.Aa==2&&(s.D.aa+=H),s.R=16*H,s.B=8*H,H=(T=Co[s.L])*s.R,T=T/2*s.B,s.sa=E,s.ta=I+H,s.qa=s.sa,s.ra=s.ta+16*f*s.R+T,s.Ha=s.qa,s.Ia=s.ra+8*f*s.B+T,s.$c=0,I+=b,s.mb=S?E:null,s.nb=S?I:null,A(I+S<=s.Fc+s.Vb),Qs(s),n(s.Ac,s.Bc,0,w),f=1}}if(f){if(l.ka=0,l.y=s.sa,l.O=s.ta,l.f=s.qa,l.N=s.ra,l.ea=s.Ha,l.Vd=s.Ia,l.fa=s.R,l.Rc=s.B,l.F=null,l.J=0,!uo){for(f=-255;255>=f;++f)gt[255+f]=0>f?-f:f;for(f=-1020;1020>=f;++f)hn[1020+f]=-128>f?-128:127<f?127:f;for(f=-112;112>=f;++f)qs[112+f]=-16>f?-16:15<f?15:f;for(f=-255;510>=f;++f)qi[255+f]=0>f?0:255<f?255:f;uo=1}Gi=ec,un=$l,Gs=Wa,Kt=Ac,hr=Ja,$e=qa,Vi=Is,co=Ai,Vs=dc,ri=_s,ni=fc,xn=ji,ii=Hs,zi=no,si=ro,Un=Wr,zs=on,fr=hc,Lr[0]=qr,Lr[1]=tc,Lr[2]=sc,Lr[3]=ac,Lr[4]=Za,Lr[5]=Hi,Lr[6]=$a,Lr[7]=Ss,Lr[8]=lc,Lr[9]=oc,Sn[0]=Xa,Sn[1]=nc,Sn[2]=an,Sn[3]=Ii,Sn[4]=It,Sn[5]=ic,Sn[6]=Ya,fn[0]=Cn,fn[1]=rc,fn[2]=cc,fn[3]=Es,fn[4]=$n,fn[5]=uc,fn[6]=Ls,f=1}else f=0}f&&(f=function(iA,CA){for(iA.M=0;iA.M<iA.Va;++iA.M){var dA,AA=iA.Jc[iA.M&iA.Xb],rA=iA.m,mA=iA;for(dA=0;dA<mA.za;++dA){var yA=rA,vA=mA,RA=vA.Ac,IA=vA.Bc+4*dA,ZA=vA.zc,jA=vA.ya[vA.aa+dA];if(vA.Qa.Bb?jA.$b=aA(yA,vA.Pa.jb[0])?2+aA(yA,vA.Pa.jb[2]):aA(yA,vA.Pa.jb[1]):jA.$b=0,vA.kc&&(jA.Ad=aA(yA,vA.Bd)),jA.Za=!aA(yA,145)+0,jA.Za){var Qe=jA.Ob,Ie=0;for(vA=0;4>vA;++vA){var be,Be=ZA[0+vA];for(be=0;4>be;++be){Be=mp[RA[IA+be]][Be];for(var je=bh[aA(yA,Be[0])];0<je;)je=bh[2*je+aA(yA,Be[je])];Be=-je,RA[IA+be]=Be}r(Qe,Ie,RA,IA,4),Ie+=4,ZA[0+vA]=Be}}else Be=aA(yA,156)?aA(yA,128)?1:3:aA(yA,163)?2:0,jA.Ob[0]=Be,n(RA,IA,Be,4),n(ZA,0,Be,4);jA.Dd=aA(yA,142)?aA(yA,114)?aA(yA,183)?1:3:2:0}if(mA.m.Ka)return Ze(iA,7,"Premature end-of-partition0 encountered.");for(;iA.ja<iA.za;++iA.ja){if(mA=AA,yA=(rA=iA).rb[rA.sb-1],RA=rA.rb[rA.sb+rA.ja],dA=rA.ya[rA.aa+rA.ja],IA=rA.kc?dA.Ad:0)yA.la=RA.la=0,dA.Za||(yA.Na=RA.Na=0),dA.Hc=0,dA.Gc=0,dA.ia=0;else{var He,ue;if(yA=RA,RA=mA,IA=rA.Pa.Xc,ZA=rA.ya[rA.aa+rA.ja],jA=rA.pb[ZA.$b],vA=ZA.ad,Qe=0,Ie=rA.rb[rA.sb-1],Be=be=0,n(vA,Qe,0,384),ZA.Za)var lt=0,Yt=IA[3];else{je=i(16);var ct=yA.Na+Ie.Na;if(ct=Ws(RA,IA[1],ct,jA.Eb,0,je,0),yA.Na=Ie.Na=(0<ct)+0,1<ct)Gi(je,0,vA,Qe);else{var Zt=je[0]+3>>3;for(je=0;256>je;je+=16)vA[Qe+je]=Zt}lt=1,Yt=IA[0]}var _e=15&yA.la,ir=15&Ie.la;for(je=0;4>je;++je){var sr=1&ir;for(Zt=ue=0;4>Zt;++Zt)_e=_e>>1|(sr=(ct=Ws(RA,Yt,ct=sr+(1&_e),jA.Sc,lt,vA,Qe))>lt)<<7,ue=ue<<2|(3<ct?3:1<ct?2:vA[Qe+0]!=0),Qe+=16;_e>>=4,ir=ir>>1|sr<<7,be=(be<<8|ue)>>>0}for(Yt=_e,lt=ir>>4,He=0;4>He;He+=2){for(ue=0,_e=yA.la>>4+He,ir=Ie.la>>4+He,je=0;2>je;++je){for(sr=1&ir,Zt=0;2>Zt;++Zt)ct=sr+(1&_e),_e=_e>>1|(sr=0<(ct=Ws(RA,IA[2],ct,jA.Qc,0,vA,Qe)))<<3,ue=ue<<2|(3<ct?3:1<ct?2:vA[Qe+0]!=0),Qe+=16;_e>>=2,ir=ir>>1|sr<<5}Be|=ue<<4*He,Yt|=_e<<4<<He,lt|=(240&ir)<<He}yA.la=Yt,Ie.la=lt,ZA.Hc=be,ZA.Gc=Be,ZA.ia=43690&Be?0:jA.ia,IA=!(be|Be)}if(0<rA.L&&(rA.wa[rA.Y+rA.ja]=rA.gd[dA.$b][dA.Za],rA.wa[rA.Y+rA.ja].La|=!IA),mA.Ka)return Ze(iA,7,"Premature end-of-file encountered.")}if(Qs(iA),rA=CA,mA=1,dA=(AA=iA).D,yA=0<AA.L&&AA.M>=AA.zb&&AA.M<=AA.Va,AA.Aa==0)A:{if(dA.M=AA.M,dA.uc=yA,Ps(AA,dA),mA=1,dA=(ue=AA.D).Nb,yA=(Be=Co[AA.L])*AA.R,RA=Be/2*AA.B,je=16*dA*AA.R,Zt=8*dA*AA.B,IA=AA.sa,ZA=AA.ta-yA+je,jA=AA.qa,vA=AA.ra-RA+Zt,Qe=AA.Ha,Ie=AA.Ia-RA+Zt,ir=(_e=ue.M)==0,be=_e>=AA.Va-1,AA.Aa==2&&Ps(AA,ue),ue.uc)for(sr=(ct=AA).D.M,A(ct.D.uc),ue=ct.yb;ue<ct.Hb;++ue){lt=ue,Yt=sr;var wt=(Ft=(Xe=ct).D).Nb;He=Xe.R;var Ft=Ft.wa[Ft.Y+lt],Gt=Xe.sa,Br=Xe.ta+16*wt*He+16*lt,Xr=Ft.dd,mt=Ft.tc;if(mt!=0)if(A(3<=mt),Xe.L==1)0<lt&&Un(Gt,Br,He,mt+4),Ft.La&&fr(Gt,Br,He,mt),0<Yt&&si(Gt,Br,He,mt+4),Ft.La&&zs(Gt,Br,He,mt);else{var dn=Xe.B,ai=Xe.qa,Wi=Xe.ra+8*wt*dn+8*lt,Ln=Xe.Ha,Xe=Xe.Ia+8*wt*dn+8*lt;wt=Ft.ld,0<lt&&(co(Gt,Br,He,mt+4,Xr,wt),ri(ai,Wi,Ln,Xe,dn,mt+4,Xr,wt)),Ft.La&&(xn(Gt,Br,He,mt,Xr,wt),zi(ai,Wi,Ln,Xe,dn,mt,Xr,wt)),0<Yt&&(Vi(Gt,Br,He,mt+4,Xr,wt),Vs(ai,Wi,Ln,Xe,dn,mt+4,Xr,wt)),Ft.La&&(ni(Gt,Br,He,mt,Xr,wt),ii(ai,Wi,Ln,Xe,dn,mt,Xr,wt))}}if(AA.ia&&alert("todo:DitherRow"),rA.put!=null){if(ue=16*_e,_e=16*(_e+1),ir?(rA.y=AA.sa,rA.O=AA.ta+je,rA.f=AA.qa,rA.N=AA.ra+Zt,rA.ea=AA.Ha,rA.W=AA.Ia+Zt):(ue-=Be,rA.y=IA,rA.O=ZA,rA.f=jA,rA.N=vA,rA.ea=Qe,rA.W=Ie),be||(_e-=Be),_e>rA.o&&(_e=rA.o),rA.F=null,rA.J=null,AA.Fa!=null&&0<AA.Fa.length&&ue<_e&&(rA.J=Ts(AA,rA,ue,_e-ue),rA.F=AA.mb,rA.F==null&&rA.F.length==0)){mA=Ze(AA,3,"Could not decode alpha data.");break A}ue<rA.j&&(Be=rA.j-ue,ue=rA.j,A(!(1&Be)),rA.O+=AA.R*Be,rA.N+=AA.B*(Be>>1),rA.W+=AA.B*(Be>>1),rA.F!=null&&(rA.J+=rA.width*Be)),ue<_e&&(rA.O+=rA.v,rA.N+=rA.v>>1,rA.W+=rA.v>>1,rA.F!=null&&(rA.J+=rA.v),rA.ka=ue-rA.j,rA.U=rA.va-rA.v,rA.T=_e-ue,mA=rA.put(rA))}dA+1!=AA.Ic||be||(r(AA.sa,AA.ta-yA,IA,ZA+16*AA.R,yA),r(AA.qa,AA.ra-RA,jA,vA+8*AA.B,RA),r(AA.Ha,AA.Ia-RA,Qe,Ie+8*AA.B,RA))}if(!mA)return Ze(iA,6,"Output aborted.")}return 1}(s,l)),l.bc!=null&&l.bc(l),f&=1}return f?(s.cb=0,f):0}function Ur(s,l,f,w,b){b=s[l+f+32*w]+(b>>3),s[l+f+32*w]=-256&b?0>b?0:255:b}function Li(s,l,f,w,b,S){Ur(s,l,0,f,w+b),Ur(s,l,1,f,w+S),Ur(s,l,2,f,w-S),Ur(s,l,3,f,w-b)}function Wt(s){return(20091*s>>16)+s}function xs(s,l,f,w){var b,S=0,E=i(16);for(b=0;4>b;++b){var I=s[l+0]+s[l+8],H=s[l+0]-s[l+8],T=(35468*s[l+4]>>16)-Wt(s[l+12]),Z=Wt(s[l+4])+(35468*s[l+12]>>16);E[S+0]=I+Z,E[S+1]=H+T,E[S+2]=H-T,E[S+3]=I-Z,S+=4,l++}for(b=S=0;4>b;++b)I=(s=E[S+0]+4)+E[S+8],H=s-E[S+8],T=(35468*E[S+4]>>16)-Wt(E[S+12]),Ur(f,w,0,0,I+(Z=Wt(E[S+4])+(35468*E[S+12]>>16))),Ur(f,w,1,0,H+T),Ur(f,w,2,0,H-T),Ur(f,w,3,0,I-Z),S++,w+=32}function qa(s,l,f,w){var b=s[l+0]+4,S=35468*s[l+4]>>16,E=Wt(s[l+4]),I=35468*s[l+1]>>16;Li(f,w,0,b+E,s=Wt(s[l+1]),I),Li(f,w,1,b+S,s,I),Li(f,w,2,b-S,s,I),Li(f,w,3,b-E,s,I)}function $l(s,l,f,w,b){xs(s,l,f,w),b&&xs(s,l+16,f,w+4)}function Wa(s,l,f,w){un(s,l+0,f,w,1),un(s,l+32,f,w+128,1)}function Ac(s,l,f,w){var b;for(s=s[l+0]+4,b=0;4>b;++b)for(l=0;4>l;++l)Ur(f,w,l,b,s)}function Ja(s,l,f,w){s[l+0]&&Kt(s,l+0,f,w),s[l+16]&&Kt(s,l+16,f,w+4),s[l+32]&&Kt(s,l+32,f,w+128),s[l+48]&&Kt(s,l+48,f,w+128+4)}function ec(s,l,f,w){var b,S=i(16);for(b=0;4>b;++b){var E=s[l+0+b]+s[l+12+b],I=s[l+4+b]+s[l+8+b],H=s[l+4+b]-s[l+8+b],T=s[l+0+b]-s[l+12+b];S[0+b]=E+I,S[8+b]=E-I,S[4+b]=T+H,S[12+b]=T-H}for(b=0;4>b;++b)E=(s=S[0+4*b]+3)+S[3+4*b],I=S[1+4*b]+S[2+4*b],H=S[1+4*b]-S[2+4*b],T=s-S[3+4*b],f[w+0]=E+I>>3,f[w+16]=T+H>>3,f[w+32]=E-I>>3,f[w+48]=T-H>>3,w+=64}function Us(s,l,f){var w,b=l-32,S=nr,E=255-s[b-1];for(w=0;w<f;++w){var I,H=S,T=E+s[l-1];for(I=0;I<f;++I)s[l+I]=H[T+s[b+I]];l+=32}}function tc(s,l){Us(s,l,4)}function rc(s,l){Us(s,l,8)}function nc(s,l){Us(s,l,16)}function an(s,l){var f;for(f=0;16>f;++f)r(s,l+32*f,s,l-32,16)}function Ii(s,l){var f;for(f=16;0<f;--f)n(s,l,s[l-1],16),l+=32}function _i(s,l,f){var w;for(w=0;16>w;++w)n(l,f+32*w,s,16)}function Xa(s,l){var f,w=16;for(f=0;16>f;++f)w+=s[l-1+32*f]+s[l+f-32];_i(w>>5,s,l)}function It(s,l){var f,w=8;for(f=0;16>f;++f)w+=s[l-1+32*f];_i(w>>4,s,l)}function ic(s,l){var f,w=8;for(f=0;16>f;++f)w+=s[l+f-32];_i(w>>4,s,l)}function Ya(s,l){_i(128,s,l)}function ie(s,l,f){return s+2*l+f+2>>2}function sc(s,l){var f,w=l-32;for(w=new Uint8Array([ie(s[w-1],s[w+0],s[w+1]),ie(s[w+0],s[w+1],s[w+2]),ie(s[w+1],s[w+2],s[w+3]),ie(s[w+2],s[w+3],s[w+4])]),f=0;4>f;++f)r(s,l+32*f,w,0,w.length)}function ac(s,l){var f=s[l-1],w=s[l-1+32],b=s[l-1+64],S=s[l-1+96];wA(s,l+0,16843009*ie(s[l-1-32],f,w)),wA(s,l+32,16843009*ie(f,w,b)),wA(s,l+64,16843009*ie(w,b,S)),wA(s,l+96,16843009*ie(b,S,S))}function qr(s,l){var f,w=4;for(f=0;4>f;++f)w+=s[l+f-32]+s[l-1+32*f];for(w>>=3,f=0;4>f;++f)n(s,l+32*f,w,4)}function Za(s,l){var f=s[l-1+0],w=s[l-1+32],b=s[l-1+64],S=s[l-1-32],E=s[l+0-32],I=s[l+1-32],H=s[l+2-32],T=s[l+3-32];s[l+0+96]=ie(w,b,s[l-1+96]),s[l+1+96]=s[l+0+64]=ie(f,w,b),s[l+2+96]=s[l+1+64]=s[l+0+32]=ie(S,f,w),s[l+3+96]=s[l+2+64]=s[l+1+32]=s[l+0+0]=ie(E,S,f),s[l+3+64]=s[l+2+32]=s[l+1+0]=ie(I,E,S),s[l+3+32]=s[l+2+0]=ie(H,I,E),s[l+3+0]=ie(T,H,I)}function $a(s,l){var f=s[l+1-32],w=s[l+2-32],b=s[l+3-32],S=s[l+4-32],E=s[l+5-32],I=s[l+6-32],H=s[l+7-32];s[l+0+0]=ie(s[l+0-32],f,w),s[l+1+0]=s[l+0+32]=ie(f,w,b),s[l+2+0]=s[l+1+32]=s[l+0+64]=ie(w,b,S),s[l+3+0]=s[l+2+32]=s[l+1+64]=s[l+0+96]=ie(b,S,E),s[l+3+32]=s[l+2+64]=s[l+1+96]=ie(S,E,I),s[l+3+64]=s[l+2+96]=ie(E,I,H),s[l+3+96]=ie(I,H,H)}function Hi(s,l){var f=s[l-1+0],w=s[l-1+32],b=s[l-1+64],S=s[l-1-32],E=s[l+0-32],I=s[l+1-32],H=s[l+2-32],T=s[l+3-32];s[l+0+0]=s[l+1+64]=S+E+1>>1,s[l+1+0]=s[l+2+64]=E+I+1>>1,s[l+2+0]=s[l+3+64]=I+H+1>>1,s[l+3+0]=H+T+1>>1,s[l+0+96]=ie(b,w,f),s[l+0+64]=ie(w,f,S),s[l+0+32]=s[l+1+96]=ie(f,S,E),s[l+1+32]=s[l+2+96]=ie(S,E,I),s[l+2+32]=s[l+3+96]=ie(E,I,H),s[l+3+32]=ie(I,H,T)}function Ss(s,l){var f=s[l+0-32],w=s[l+1-32],b=s[l+2-32],S=s[l+3-32],E=s[l+4-32],I=s[l+5-32],H=s[l+6-32],T=s[l+7-32];s[l+0+0]=f+w+1>>1,s[l+1+0]=s[l+0+64]=w+b+1>>1,s[l+2+0]=s[l+1+64]=b+S+1>>1,s[l+3+0]=s[l+2+64]=S+E+1>>1,s[l+0+32]=ie(f,w,b),s[l+1+32]=s[l+0+96]=ie(w,b,S),s[l+2+32]=s[l+1+96]=ie(b,S,E),s[l+3+32]=s[l+2+96]=ie(S,E,I),s[l+3+64]=ie(E,I,H),s[l+3+96]=ie(I,H,T)}function oc(s,l){var f=s[l-1+0],w=s[l-1+32],b=s[l-1+64],S=s[l-1+96];s[l+0+0]=f+w+1>>1,s[l+2+0]=s[l+0+32]=w+b+1>>1,s[l+2+32]=s[l+0+64]=b+S+1>>1,s[l+1+0]=ie(f,w,b),s[l+3+0]=s[l+1+32]=ie(w,b,S),s[l+3+32]=s[l+1+64]=ie(b,S,S),s[l+3+64]=s[l+2+64]=s[l+0+96]=s[l+1+96]=s[l+2+96]=s[l+3+96]=S}function lc(s,l){var f=s[l-1+0],w=s[l-1+32],b=s[l-1+64],S=s[l-1+96],E=s[l-1-32],I=s[l+0-32],H=s[l+1-32],T=s[l+2-32];s[l+0+0]=s[l+2+32]=f+E+1>>1,s[l+0+32]=s[l+2+64]=w+f+1>>1,s[l+0+64]=s[l+2+96]=b+w+1>>1,s[l+0+96]=S+b+1>>1,s[l+3+0]=ie(I,H,T),s[l+2+0]=ie(E,I,H),s[l+1+0]=s[l+3+32]=ie(f,E,I),s[l+1+32]=s[l+3+64]=ie(w,f,E),s[l+1+64]=s[l+3+96]=ie(b,w,f),s[l+1+96]=ie(S,b,w)}function cc(s,l){var f;for(f=0;8>f;++f)r(s,l+32*f,s,l-32,8)}function Es(s,l){var f;for(f=0;8>f;++f)n(s,l,s[l-1],8),l+=32}function Zn(s,l,f){var w;for(w=0;8>w;++w)n(l,f+32*w,s,8)}function Cn(s,l){var f,w=8;for(f=0;8>f;++f)w+=s[l+f-32]+s[l-1+32*f];Zn(w>>4,s,l)}function uc(s,l){var f,w=4;for(f=0;8>f;++f)w+=s[l+f-32];Zn(w>>3,s,l)}function $n(s,l){var f,w=4;for(f=0;8>f;++f)w+=s[l-1+32*f];Zn(w>>3,s,l)}function Ls(s,l){Zn(128,s,l)}function Ni(s,l,f){var w=s[l-f],b=s[l+0],S=3*(b-w)+Bc[1020+s[l-2*f]-s[l+f]],E=ho[112+(S+4>>3)];s[l-f]=nr[255+w+ho[112+(S+3>>3)]],s[l+0]=nr[255+b-E]}function Ao(s,l,f,w){var b=s[l+0],S=s[l+f];return gr[255+s[l-2*f]-s[l-f]]>w||gr[255+S-b]>w}function eo(s,l,f,w){return 4*gr[255+s[l-f]-s[l+0]]+gr[255+s[l-2*f]-s[l+f]]<=w}function to(s,l,f,w,b){var S=s[l-3*f],E=s[l-2*f],I=s[l-f],H=s[l+0],T=s[l+f],Z=s[l+2*f],hA=s[l+3*f];return 4*gr[255+I-H]+gr[255+E-T]>w?0:gr[255+s[l-4*f]-S]<=b&&gr[255+S-E]<=b&&gr[255+E-I]<=b&&gr[255+hA-Z]<=b&&gr[255+Z-T]<=b&&gr[255+T-H]<=b}function ro(s,l,f,w){var b=2*w+1;for(w=0;16>w;++w)eo(s,l+w,f,b)&&Ni(s,l+w,f)}function Wr(s,l,f,w){var b=2*w+1;for(w=0;16>w;++w)eo(s,l+w*f,1,b)&&Ni(s,l+w*f,1)}function on(s,l,f,w){var b;for(b=3;0<b;--b)ro(s,l+=4*f,f,w)}function hc(s,l,f,w){var b;for(b=3;0<b;--b)Wr(s,l+=4,f,w)}function bn(s,l,f,w,b,S,E,I){for(S=2*S+1;0<b--;){if(to(s,l,f,S,E))if(Ao(s,l,f,I))Ni(s,l,f);else{var H=s,T=l,Z=f,hA=H[T-2*Z],fA=H[T-Z],iA=H[T+0],CA=H[T+Z],dA=H[T+2*Z],AA=27*(mA=Bc[1020+3*(iA-fA)+Bc[1020+hA-CA]])+63>>7,rA=18*mA+63>>7,mA=9*mA+63>>7;H[T-3*Z]=nr[255+H[T-3*Z]+mA],H[T-2*Z]=nr[255+hA+rA],H[T-Z]=nr[255+fA+AA],H[T+0]=nr[255+iA-AA],H[T+Z]=nr[255+CA-rA],H[T+2*Z]=nr[255+dA-mA]}l+=w}}function Sr(s,l,f,w,b,S,E,I){for(S=2*S+1;0<b--;){if(to(s,l,f,S,E))if(Ao(s,l,f,I))Ni(s,l,f);else{var H=s,T=l,Z=f,hA=H[T-Z],fA=H[T+0],iA=H[T+Z],CA=ho[112+((dA=3*(fA-hA))+4>>3)],dA=ho[112+(dA+3>>3)],AA=CA+1>>1;H[T-2*Z]=nr[255+H[T-2*Z]+AA],H[T-Z]=nr[255+hA+dA],H[T+0]=nr[255+fA-CA],H[T+Z]=nr[255+iA-AA]}l+=w}}function Is(s,l,f,w,b,S){bn(s,l,f,1,16,w,b,S)}function Ai(s,l,f,w,b,S){bn(s,l,1,f,16,w,b,S)}function fc(s,l,f,w,b,S){var E;for(E=3;0<E;--E)Sr(s,l+=4*f,f,1,16,w,b,S)}function ji(s,l,f,w,b,S){var E;for(E=3;0<E;--E)Sr(s,l+=4,1,f,16,w,b,S)}function dc(s,l,f,w,b,S,E,I){bn(s,l,b,1,8,S,E,I),bn(f,w,b,1,8,S,E,I)}function _s(s,l,f,w,b,S,E,I){bn(s,l,1,b,8,S,E,I),bn(f,w,1,b,8,S,E,I)}function Hs(s,l,f,w,b,S,E,I){Sr(s,l+4*b,b,1,8,S,E,I),Sr(f,w+4*b,b,1,8,S,E,I)}function no(s,l,f,w,b,S,E,I){Sr(s,l+4,1,b,8,S,E,I),Sr(f,w+4,1,b,8,S,E,I)}function Di(){this.ba=new Ae,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new YA,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function Ns(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function js(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function io(){this.ua=0,this.Wa=new K,this.vb=new K,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new O,this.yc=new L}function gc(){this.xb=this.a=0,this.l=new Ei,this.ca=new Ae,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new Q,this.Pb=0,this.wd=new Q,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new io,this.ab=0,this.gc=a(4,js),this.Oc=0}function Ti(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Ei,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function ei(s,l,f,w,b,S,E){for(s=s==null?0:s[l+0],l=0;l<E;++l)b[S+l]=s+f[w+l]&255,s=b[S+l]}function Ds(s,l,f,w,b,S,E){var I;if(s==null)ei(null,null,f,w,b,S,E);else for(I=0;I<E;++I)b[S+I]=s[l+I]+f[w+I]&255}function yn(s,l,f,w,b,S,E){if(s==null)ei(null,null,f,w,b,S,E);else{var I,H=s[l+0],T=H,Z=H;for(I=0;I<E;++I)T=Z+(H=s[l+I])-T,Z=f[w+I]+(-256&T?0>T?0:255:T)&255,T=H,b[S+I]=Z}}function Ts(s,l,f,w){var b=l.width,S=l.o;if(A(s!=null&&l!=null),0>f||0>=w||f+w>S)return null;if(!s.Cc){if(s.ga==null){var E;if(s.ga=new Ti,(E=s.ga==null)||(E=l.width*l.o,A(s.Gb.length==0),s.Gb=i(E),s.Uc=0,s.Gb==null?E=0:(s.mb=s.Gb,s.nb=s.Uc,s.rc=null,E=1),E=!E),!E){E=s.ga;var I=s.Fa,H=s.P,T=s.qc,Z=s.mb,hA=s.nb,fA=H+1,iA=T-1,CA=E.l;if(A(I!=null&&Z!=null&&l!=null),En[0]=null,En[1]=ei,En[2]=Ds,En[3]=yn,E.ca=Z,E.tb=hA,E.c=l.width,E.i=l.height,A(0<E.c&&0<E.i),1>=T)l=0;else if(E.$a=I[H+0]>>0&3,E.Z=I[H+0]>>2&3,E.Lc=I[H+0]>>4&3,H=I[H+0]>>6&3,0>E.$a||1<E.$a||4<=E.Z||1<E.Lc||H)l=0;else if(CA.put=Rr,CA.ac=We,CA.bc=Kr,CA.ma=E,CA.width=l.width,CA.height=l.height,CA.Da=l.Da,CA.v=l.v,CA.va=l.va,CA.j=l.j,CA.o=l.o,E.$a)A:{A(E.$a==1),l=cr();e:for(;;){if(l==null){l=0;break A}if(A(E!=null),E.mc=l,l.c=E.c,l.i=E.i,l.l=E.l,l.l.ma=E,l.l.width=E.c,l.l.height=E.i,l.a=0,tA(l.m,I,fA,iA),!zr(E.c,E.i,1,l,null)||(l.ab==1&&l.gc[0].hc==3&&sn(l.s)?(E.ic=1,I=l.c*l.i,l.Ta=null,l.Ua=0,l.V=i(I),l.Ba=0,l.V==null?(l.a=1,l=0):l=1):(E.ic=0,l=Yn(l,E.c)),!l))break e;l=1;break A}E.mc=null,l=0}else l=iA>=E.c*E.i;E=!l}if(E)return null;s.ga.Lc!=1?s.Ga=0:w=S-f}A(s.ga!=null),A(f+w<=S);A:{if(l=(I=s.ga).c,S=I.l.o,I.$a==0){if(fA=s.rc,iA=s.Vc,CA=s.Fa,H=s.P+1+f*l,T=s.mb,Z=s.nb+f*l,A(H<=s.P+s.qc),I.Z!=0)for(A(En[I.Z]!=null),E=0;E<w;++E)En[I.Z](fA,iA,CA,H,T,Z,l),fA=T,iA=Z,Z+=l,H+=l;else for(E=0;E<w;++E)r(T,Z,CA,H,l),fA=T,iA=Z,Z+=l,H+=l;s.rc=fA,s.Vc=iA}else{if(A(I.mc!=null),l=f+w,A((E=I.mc)!=null),A(l<=E.i),E.C>=l)l=1;else if(I.ic||lA(),I.ic){I=E.V,fA=E.Ba,iA=E.c;var dA=E.i,AA=(CA=1,H=E.$/iA,T=E.$%iA,Z=E.m,hA=E.s,E.$),rA=iA*dA,mA=iA*l,yA=hA.wc,vA=AA<mA?at(hA,T,H):null;A(AA<=rA),A(l<=dA),A(sn(hA));e:for(;;){for(;!Z.h&&AA<mA;){if(T&yA||(vA=at(hA,T,H)),A(vA!=null),X(Z),256>(dA=qt(vA.G[0],vA.H[0],Z)))I[fA+AA]=dA,++AA,++T>=iA&&(T=0,++H<=l&&!(H%16)&&Qr(E,H));else{if(!(280>dA)){CA=0;break e}dA=yr(dA-256,Z);var RA,IA=qt(vA.G[4],vA.H[4],Z);if(X(Z),!(AA>=(IA=Gr(iA,IA=yr(IA,Z)))&&rA-AA>=dA)){CA=0;break e}for(RA=0;RA<dA;++RA)I[fA+AA+RA]=I[fA+AA+RA-IA];for(AA+=dA,T+=dA;T>=iA;)T-=iA,++H<=l&&!(H%16)&&Qr(E,H);AA<mA&&T&yA&&(vA=at(hA,T,H))}A(Z.h==P(Z))}Qr(E,H>l?l:H);break e}!CA||Z.h&&AA<rA?(CA=0,E.a=Z.h?5:3):E.$=AA,l=CA}else l=xr(E,E.V,E.Ba,E.c,E.i,l,Fi);if(!l){w=0;break A}}f+w>=S&&(s.Cc=1),w=1}if(!w)return null;if(s.Cc&&((w=s.ga)!=null&&(w.mc=null),s.ga=null,0<s.Ga))return alert("todo:WebPDequantizeLevels"),null}return s.nb+f*b}function h(s,l,f,w,b,S){for(;0<b--;){var E,I=s,H=l+(f?1:0),T=s,Z=l+(f?0:3);for(E=0;E<w;++E){var hA=T[Z+4*E];hA!=255&&(hA*=32897,I[H+4*E+0]=I[H+4*E+0]*hA>>23,I[H+4*E+1]=I[H+4*E+1]*hA>>23,I[H+4*E+2]=I[H+4*E+2]*hA>>23)}l+=S}}function y(s,l,f,w,b){for(;0<w--;){var S;for(S=0;S<f;++S){var E=s[l+2*S+0],I=15&(T=s[l+2*S+1]),H=4369*I,T=(240&T|T>>4)*H>>16;s[l+2*S+0]=(240&E|E>>4)*H>>16&240|(15&E|E<<4)*H>>16>>4&15,s[l+2*S+1]=240&T|I}l+=b}}function M(s,l,f,w,b,S,E,I){var H,T,Z=255;for(T=0;T<b;++T){for(H=0;H<w;++H){var hA=s[l+H];S[E+4*H]=hA,Z&=hA}l+=f,E+=I}return Z!=255}function J(s,l,f,w,b){var S;for(S=0;S<b;++S)f[w+S]=s[l+S]>>8}function lA(){dr=h,Pe=y,Me=M,At=J}function pA(s,l,f){R[s]=function(w,b,S,E,I,H,T,Z,hA,fA,iA,CA,dA,AA,rA,mA,yA){var vA,RA=yA-1>>1,IA=I[H+0]|T[Z+0]<<16,ZA=hA[fA+0]|iA[CA+0]<<16;A(w!=null);var jA=3*IA+ZA+131074>>2;for(l(w[b+0],255&jA,jA>>16,dA,AA),S!=null&&(jA=3*ZA+IA+131074>>2,l(S[E+0],255&jA,jA>>16,rA,mA)),vA=1;vA<=RA;++vA){var Qe=I[H+vA]|T[Z+vA]<<16,Ie=hA[fA+vA]|iA[CA+vA]<<16,be=IA+Qe+ZA+Ie+524296,Be=be+2*(Qe+ZA)>>3;jA=Be+IA>>1,IA=(be=be+2*(IA+Ie)>>3)+Qe>>1,l(w[b+2*vA-1],255&jA,jA>>16,dA,AA+(2*vA-1)*f),l(w[b+2*vA-0],255&IA,IA>>16,dA,AA+(2*vA-0)*f),S!=null&&(jA=be+ZA>>1,IA=Be+Ie>>1,l(S[E+2*vA-1],255&jA,jA>>16,rA,mA+(2*vA-1)*f),l(S[E+2*vA+0],255&IA,IA>>16,rA,mA+(2*vA+0)*f)),IA=Qe,ZA=Ie}1&yA||(jA=3*IA+ZA+131074>>2,l(w[b+yA-1],255&jA,jA>>16,dA,AA+(yA-1)*f),S!=null&&(jA=3*ZA+IA+131074>>2,l(S[E+yA-1],255&jA,jA>>16,rA,mA+(yA-1)*f)))}}function FA(){pr[fo]=yp,pr[go]=Fh,pr[mh]=Fp,pr[po]=Qh,pr[Bo]=xh,pr[wc]=Uh,pr[vh]=Qp,pr[mc]=Fh,pr[vc]=Qh,pr[wo]=xh,pr[Cc]=Uh}function OA(s){return s&-16384?0>s?0:255:s>>xp}function JA(s,l){return OA((19077*s>>8)+(26149*l>>8)-14234)}function ce(s,l,f){return OA((19077*s>>8)-(6419*l>>8)-(13320*f>>8)+8708)}function ae(s,l){return OA((19077*s>>8)+(33050*l>>8)-17685)}function Ce(s,l,f,w,b){w[b+0]=JA(s,f),w[b+1]=ce(s,l,f),w[b+2]=ae(s,l)}function ze(s,l,f,w,b){w[b+0]=ae(s,l),w[b+1]=ce(s,l,f),w[b+2]=JA(s,f)}function Je(s,l,f,w,b){var S=ce(s,l,f);l=S<<3&224|ae(s,l)>>3,w[b+0]=248&JA(s,f)|S>>5,w[b+1]=l}function ot(s,l,f,w,b){var S=240&ae(s,l)|15;w[b+0]=240&JA(s,f)|ce(s,l,f)>>4,w[b+1]=S}function _t(s,l,f,w,b){w[b+0]=255,Ce(s,l,f,w,b+1)}function Bt(s,l,f,w,b){ze(s,l,f,w,b),w[b+3]=255}function Er(s,l,f,w,b){Ce(s,l,f,w,b),w[b+3]=255}function rr(s,l){return 0>s?0:s>l?l:s}function Jr(s,l,f){R[s]=function(w,b,S,E,I,H,T,Z,hA){for(var fA=Z+(-2&hA)*f;Z!=fA;)l(w[b+0],S[E+0],I[H+0],T,Z),l(w[b+1],S[E+0],I[H+0],T,Z+f),b+=2,++E,++H,Z+=2*f;1&hA&&l(w[b+0],S[E+0],I[H+0],T,Z)}}function so(s,l,f){return f==0?s==0?l==0?6:5:l==0?4:0:f}function ks(s,l,f,w,b){switch(s>>>30){case 3:un(l,f,w,b,0);break;case 2:$e(l,f,w,b);break;case 1:Kt(l,f,w,b)}}function Ps(s,l){var f,w,b=l.M,S=l.Nb,E=s.oc,I=s.pc+40,H=s.oc,T=s.pc+584,Z=s.oc,hA=s.pc+600;for(f=0;16>f;++f)E[I+32*f-1]=129;for(f=0;8>f;++f)H[T+32*f-1]=129,Z[hA+32*f-1]=129;for(0<b?E[I-1-32]=H[T-1-32]=Z[hA-1-32]=129:(n(E,I-32-1,127,21),n(H,T-32-1,127,9),n(Z,hA-32-1,127,9)),w=0;w<s.za;++w){var fA=l.ya[l.aa+w];if(0<w){for(f=-1;16>f;++f)r(E,I+32*f-4,E,I+32*f+12,4);for(f=-1;8>f;++f)r(H,T+32*f-4,H,T+32*f+4,4),r(Z,hA+32*f-4,Z,hA+32*f+4,4)}var iA=s.Gd,CA=s.Hd+w,dA=fA.ad,AA=fA.Hc;if(0<b&&(r(E,I-32,iA[CA].y,0,16),r(H,T-32,iA[CA].f,0,8),r(Z,hA-32,iA[CA].ea,0,8)),fA.Za){var rA=E,mA=I-32+16;for(0<b&&(w>=s.za-1?n(rA,mA,iA[CA].y[15],4):r(rA,mA,iA[CA+1].y,0,4)),f=0;4>f;f++)rA[mA+128+f]=rA[mA+256+f]=rA[mA+384+f]=rA[mA+0+f];for(f=0;16>f;++f,AA<<=2)rA=E,mA=I+Eh[f],Lr[fA.Ob[f]](rA,mA),ks(AA,dA,16*+f,rA,mA)}else if(rA=so(w,b,fA.Ob[0]),Sn[rA](E,I),AA!=0)for(f=0;16>f;++f,AA<<=2)ks(AA,dA,16*+f,E,I+Eh[f]);for(f=fA.Gc,rA=so(w,b,fA.Dd),fn[rA](H,T),fn[rA](Z,hA),AA=dA,rA=H,mA=T,255&(fA=f>>0)&&(170&fA?Gs(AA,256,rA,mA):hr(AA,256,rA,mA)),fA=Z,AA=hA,255&(f>>=8)&&(170&f?Gs(dA,320,fA,AA):hr(dA,320,fA,AA)),b<s.Ub-1&&(r(iA[CA].y,0,E,I+480,16),r(iA[CA].f,0,H,T+224,8),r(iA[CA].ea,0,Z,hA+224,8)),f=8*S*s.B,iA=s.sa,CA=s.ta+16*w+16*S*s.R,dA=s.qa,fA=s.ra+8*w+f,AA=s.Ha,rA=s.Ia+8*w+f,f=0;16>f;++f)r(iA,CA+f*s.R,E,I+32*f,16);for(f=0;8>f;++f)r(dA,fA+f*s.B,H,T+32*f,8),r(AA,rA+f*s.B,Z,hA+32*f,8)}}function ki(s,l,f,w,b,S,E,I,H){var T=[0],Z=[0],hA=0,fA=H!=null?H.kd:0,iA=H??new Ns;if(s==null||12>f)return 7;iA.data=s,iA.w=l,iA.ha=f,l=[l],f=[f],iA.gb=[iA.gb];A:{var CA=l,dA=f,AA=iA.gb;if(A(s!=null),A(dA!=null),A(AA!=null),AA[0]=0,12<=dA[0]&&!t(s,CA[0],"RIFF")){if(t(s,CA[0]+8,"WEBP")){AA=3;break A}var rA=EA(s,CA[0]+4);if(12>rA||4294967286<rA){AA=3;break A}if(fA&&rA>dA[0]-8){AA=7;break A}AA[0]=rA,CA[0]+=12,dA[0]-=12}AA=0}if(AA!=0)return AA;for(rA=0<iA.gb[0],f=f[0];;){A:{var mA=s;dA=l,AA=f;var yA=T,vA=Z,RA=CA=[0];if((jA=hA=[hA])[0]=0,8>AA[0])AA=7;else{if(!t(mA,dA[0],"VP8X")){if(EA(mA,dA[0]+4)!=10){AA=3;break A}if(18>AA[0]){AA=7;break A}var IA=EA(mA,dA[0]+8),ZA=1+SA(mA,dA[0]+12);if(2147483648<=ZA*(mA=1+SA(mA,dA[0]+15))){AA=3;break A}RA!=null&&(RA[0]=IA),yA!=null&&(yA[0]=ZA),vA!=null&&(vA[0]=mA),dA[0]+=18,AA[0]-=18,jA[0]=1}AA=0}}if(hA=hA[0],CA=CA[0],AA!=0)return AA;if(dA=!!(2&CA),!rA&&hA)return 3;if(S!=null&&(S[0]=!!(16&CA)),E!=null&&(E[0]=dA),I!=null&&(I[0]=0),E=T[0],CA=Z[0],hA&&dA&&H==null){AA=0;break}if(4>f){AA=7;break}if(rA&&hA||!rA&&!hA&&!t(s,l[0],"ALPH")){f=[f],iA.na=[iA.na],iA.P=[iA.P],iA.Sa=[iA.Sa];A:{IA=s,AA=l,rA=f;var jA=iA.gb;yA=iA.na,vA=iA.P,RA=iA.Sa,ZA=22,A(IA!=null),A(rA!=null),mA=AA[0];var Qe=rA[0];for(A(yA!=null),A(RA!=null),yA[0]=null,vA[0]=null,RA[0]=0;;){if(AA[0]=mA,rA[0]=Qe,8>Qe){AA=7;break A}var Ie=EA(IA,mA+4);if(4294967286<Ie){AA=3;break A}var be=8+Ie+1&-2;if(ZA+=be,0<jA&&ZA>jA){AA=3;break A}if(!t(IA,mA,"VP8 ")||!t(IA,mA,"VP8L")){AA=0;break A}if(Qe[0]<be){AA=7;break A}t(IA,mA,"ALPH")||(yA[0]=IA,vA[0]=mA+8,RA[0]=Ie),mA+=be,Qe-=be}}if(f=f[0],iA.na=iA.na[0],iA.P=iA.P[0],iA.Sa=iA.Sa[0],AA!=0)break}f=[f],iA.Ja=[iA.Ja],iA.xa=[iA.xa];A:if(jA=s,AA=l,rA=f,yA=iA.gb[0],vA=iA.Ja,RA=iA.xa,IA=AA[0],mA=!t(jA,IA,"VP8 "),ZA=!t(jA,IA,"VP8L"),A(jA!=null),A(rA!=null),A(vA!=null),A(RA!=null),8>rA[0])AA=7;else{if(mA||ZA){if(jA=EA(jA,IA+4),12<=yA&&jA>yA-12){AA=3;break A}if(fA&&jA>rA[0]-8){AA=7;break A}vA[0]=jA,AA[0]+=8,rA[0]-=8,RA[0]=ZA}else RA[0]=5<=rA[0]&&jA[IA+0]==47&&!(jA[IA+4]>>5),vA[0]=rA[0];AA=0}if(f=f[0],iA.Ja=iA.Ja[0],iA.xa=iA.xa[0],l=l[0],AA!=0)break;if(4294967286<iA.Ja)return 3;if(I==null||dA||(I[0]=iA.xa?2:1),E=[E],CA=[CA],iA.xa){if(5>f){AA=7;break}I=E,fA=CA,dA=S,s==null||5>f?s=0:5<=f&&s[l+0]==47&&!(s[l+4]>>5)?(rA=[0],jA=[0],yA=[0],tA(vA=new Q,s,l,f),ee(vA,rA,jA,yA)?(I!=null&&(I[0]=rA[0]),fA!=null&&(fA[0]=jA[0]),dA!=null&&(dA[0]=yA[0]),s=1):s=0):s=0}else{if(10>f){AA=7;break}I=CA,s==null||10>f||!Ga(s,l+3,f-3)?s=0:(fA=s[l+0]|s[l+1]<<8|s[l+2]<<16,dA=16383&(s[l+7]<<8|s[l+6]),s=16383&(s[l+9]<<8|s[l+8]),1&fA||3<(fA>>1&7)||!(fA>>4&1)||fA>>5>=iA.Ja||!dA||!s?s=0:(E&&(E[0]=dA),I&&(I[0]=s),s=1))}if(!s||(E=E[0],CA=CA[0],hA&&(T[0]!=E||Z[0]!=CA)))return 3;H!=null&&(H[0]=iA,H.offset=l-H.w,A(4294967286>l-H.w),A(H.offset==H.ha-f));break}return AA==0||AA==7&&hA&&H==null?(S!=null&&(S[0]|=iA.na!=null&&0<iA.na.length),w!=null&&(w[0]=E),b!=null&&(b[0]=CA),0):AA}function Ms(s,l,f){var w=l.width,b=l.height,S=0,E=0,I=w,H=b;if(l.Da=s!=null&&0<s.Da,l.Da&&(I=s.cd,H=s.bd,S=s.v,E=s.j,11>f||(S&=-2,E&=-2),0>S||0>E||0>=I||0>=H||S+I>w||E+H>b))return 0;if(l.v=S,l.j=E,l.va=S+I,l.o=E+H,l.U=I,l.T=H,l.da=s!=null&&0<s.da,l.da){if(!WA(I,H,f=[s.ib],S=[s.hb]))return 0;l.ib=f[0],l.hb=S[0]}return l.ob=s!=null&&s.ob,l.Kb=s==null||!s.Sd,l.da&&(l.ob=l.ib<3*w/4&&l.hb<3*b/4,l.Kb=0),1}function Os(s){if(s==null)return 2;if(11>s.S){var l=s.f.RGBA;l.fb+=(s.height-1)*l.A,l.A=-l.A}else l=s.f.kb,s=s.height,l.O+=(s-1)*l.fa,l.fa=-l.fa,l.N+=(s-1>>1)*l.Ab,l.Ab=-l.Ab,l.W+=(s-1>>1)*l.Db,l.Db=-l.Db,l.F!=null&&(l.J+=(s-1)*l.lb,l.lb=-l.lb);return 0}function Pi(s,l,f,w){if(w==null||0>=s||0>=l)return 2;if(f!=null){if(f.Da){var b=f.cd,S=f.bd,E=-2&f.v,I=-2&f.j;if(0>E||0>I||0>=b||0>=S||E+b>s||I+S>l)return 2;s=b,l=S}if(f.da){if(!WA(s,l,b=[f.ib],S=[f.hb]))return 2;s=b[0],l=S[0]}}w.width=s,w.height=l;A:{var H=w.width,T=w.height;if(s=w.S,0>=H||0>=T||!(s>=fo&&13>s))s=2;else{if(0>=w.Rd&&w.sd==null){E=S=b=l=0;var Z=(I=H*Lh[s])*T;if(11>s||(S=(T+1)/2*(l=(H+1)/2),s==12&&(E=(b=H)*T)),(T=i(Z+2*S+E))==null){s=1;break A}w.sd=T,11>s?((H=w.f.RGBA).eb=T,H.fb=0,H.A=I,H.size=Z):((H=w.f.kb).y=T,H.O=0,H.fa=I,H.Fd=Z,H.f=T,H.N=0+Z,H.Ab=l,H.Cd=S,H.ea=T,H.W=0+Z+S,H.Db=l,H.Ed=S,s==12&&(H.F=T,H.J=0+Z+2*S),H.Tc=E,H.lb=b)}if(l=1,b=w.S,S=w.width,E=w.height,b>=fo&&13>b)if(11>b)s=w.f.RGBA,l&=(I=Math.abs(s.A))*(E-1)+S<=s.size,l&=I>=S*Lh[b],l&=s.eb!=null;else{s=w.f.kb,I=(S+1)/2,Z=(E+1)/2,H=Math.abs(s.fa),T=Math.abs(s.Ab);var hA=Math.abs(s.Db),fA=Math.abs(s.lb),iA=fA*(E-1)+S;l&=H*(E-1)+S<=s.Fd,l&=T*(Z-1)+I<=s.Cd,l=(l&=hA*(Z-1)+I<=s.Ed)&H>=S&T>=I&hA>=I,l&=s.y!=null,l&=s.f!=null,l&=s.ea!=null,b==12&&(l&=fA>=S,l&=iA<=s.Tc,l&=s.F!=null)}else l=0;s=l?0:2}}return s!=0||f!=null&&f.fd&&(s=Os(w)),s}var yt=64,Mi=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],Oi=24,Ri=32,Rs=8,Jt=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];LA("Predictor0","PredictorAdd0"),R.Predictor0=function(){return 4278190080},R.Predictor1=function(s){return s},R.Predictor2=function(s,l,f){return l[f+0]},R.Predictor3=function(s,l,f){return l[f+1]},R.Predictor4=function(s,l,f){return l[f-1]},R.Predictor5=function(s,l,f){return _A(_A(s,l[f+1]),l[f+0])},R.Predictor6=function(s,l,f){return _A(s,l[f-1])},R.Predictor7=function(s,l,f){return _A(s,l[f+0])},R.Predictor8=function(s,l,f){return _A(l[f-1],l[f+0])},R.Predictor9=function(s,l,f){return _A(l[f+0],l[f+1])},R.Predictor10=function(s,l,f){return _A(_A(s,l[f-1]),_A(l[f+0],l[f+1]))},R.Predictor11=function(s,l,f){var w=l[f+0];return 0>=se(w>>24&255,s>>24&255,(l=l[f-1])>>24&255)+se(w>>16&255,s>>16&255,l>>16&255)+se(w>>8&255,s>>8&255,l>>8&255)+se(255&w,255&s,255&l)?w:s},R.Predictor12=function(s,l,f){var w=l[f+0];return(qA((s>>24&255)+(w>>24&255)-((l=l[f-1])>>24&255))<<24|qA((s>>16&255)+(w>>16&255)-(l>>16&255))<<16|qA((s>>8&255)+(w>>8&255)-(l>>8&255))<<8|qA((255&s)+(255&w)-(255&l)))>>>0},R.Predictor13=function(s,l,f){var w=l[f-1];return(PA((s=_A(s,l[f+0]))>>24&255,w>>24&255)<<24|PA(s>>16&255,w>>16&255)<<16|PA(s>>8&255,w>>8&255)<<8|PA(s>>0&255,w>>0&255))>>>0};var pc=R.PredictorAdd0;R.PredictorAdd1=he,LA("Predictor2","PredictorAdd2"),LA("Predictor3","PredictorAdd3"),LA("Predictor4","PredictorAdd4"),LA("Predictor5","PredictorAdd5"),LA("Predictor6","PredictorAdd6"),LA("Predictor7","PredictorAdd7"),LA("Predictor8","PredictorAdd8"),LA("Predictor9","PredictorAdd9"),LA("Predictor10","PredictorAdd10"),LA("Predictor11","PredictorAdd11"),LA("Predictor12","PredictorAdd12"),LA("Predictor13","PredictorAdd13");var Ks=R.PredictorAdd2;le("ColorIndexInverseTransform","MapARGB","32b",function(s){return s>>8&255},function(s){return s}),le("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(s){return s},function(s){return s>>8&255});var ao,ur=R.ColorIndexInverseTransform,Ki=R.MapARGB,oo=R.VP8LColorIndexInverseTransformAlpha,lo=R.MapAlpha,Fn=R.VP8LPredictorsAdd=[];Fn.length=16,(R.VP8LPredictors=[]).length=16,(R.VP8LPredictorsAdd_C=[]).length=16,(R.VP8LPredictors_C=[]).length=16;var ti,Xt,Rt,Qn,ln,cn,Gi,un,$e,Gs,Kt,hr,Vi,co,Vs,ri,ni,xn,ii,zi,si,Un,zs,fr,dr,Pe,Me,At,gt=i(511),hn=i(2041),qs=i(225),qi=i(767),uo=0,Bc=hn,ho=qs,nr=qi,gr=gt,fo=0,go=1,mh=2,po=3,Bo=4,wc=5,vh=6,mc=7,vc=8,wo=9,Cc=10,lp=[2,3,7],cp=[3,3,11],Ch=[280,256,256,256,40],up=[0,1,1,1,0],hp=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],fp=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],dp=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],gp=8,bc=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],yc=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Ws=null,pp=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],Bp=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],bh=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],wp=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],mp=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],vp=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Cp=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Sn=[],Lr=[],fn=[],bp=1,yh=2,En=[],pr=[];pA("UpsampleRgbLinePair",Ce,3),pA("UpsampleBgrLinePair",ze,3),pA("UpsampleRgbaLinePair",Er,4),pA("UpsampleBgraLinePair",Bt,4),pA("UpsampleArgbLinePair",_t,4),pA("UpsampleRgba4444LinePair",ot,2),pA("UpsampleRgb565LinePair",Je,2);var yp=R.UpsampleRgbLinePair,Fp=R.UpsampleBgrLinePair,Fh=R.UpsampleRgbaLinePair,Qh=R.UpsampleBgraLinePair,xh=R.UpsampleArgbLinePair,Uh=R.UpsampleRgba4444LinePair,Qp=R.UpsampleRgb565LinePair,mo=16,vo=1<<mo-1,Js=-227,Fc=482,xp=6,Sh=0,Up=i(256),Sp=i(256),Ep=i(256),Lp=i(256),Ip=i(Fc-Js),_p=i(Fc-Js);Jr("YuvToRgbRow",Ce,3),Jr("YuvToBgrRow",ze,3),Jr("YuvToRgbaRow",Er,4),Jr("YuvToBgraRow",Bt,4),Jr("YuvToArgbRow",_t,4),Jr("YuvToRgba4444Row",ot,2),Jr("YuvToRgb565Row",Je,2);var Eh=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],Co=[0,2,8],Hp=[8,7,6,4,4,2,2,2,1,1,1,1],Np=1;this.WebPDecodeRGBA=function(s,l,f,w,b){var S=go,E=new Di,I=new Ae;E.ba=I,I.S=S,I.width=[I.width],I.height=[I.height];var H=I.width,T=I.height,Z=new re;if(Z==null||s==null)var hA=2;else A(Z!=null),hA=ki(s,l,f,Z.width,Z.height,Z.Pd,Z.Qd,Z.format,null);if(hA!=0?H=0:(H!=null&&(H[0]=Z.width[0]),T!=null&&(T[0]=Z.height[0]),H=1),H){I.width=I.width[0],I.height=I.height[0],w!=null&&(w[0]=I.width),b!=null&&(b[0]=I.height);A:{if(w=new Ei,(b=new Ns).data=s,b.w=l,b.ha=f,b.kd=1,l=[0],A(b!=null),((s=ki(b.data,b.w,b.ha,null,null,null,l,null,b))==0||s==7)&&l[0]&&(s=4),(l=s)==0){if(A(E!=null),w.data=b.data,w.w=b.w+b.offset,w.ha=b.ha-b.offset,w.put=Rr,w.ac=We,w.bc=Kr,w.ma=E,b.xa){if((s=cr())==null){E=1;break A}if(function(fA,iA){var CA=[0],dA=[0],AA=[0];e:for(;;){if(fA==null)return 0;if(iA==null)return fA.a=2,0;if(fA.l=iA,fA.a=0,tA(fA.m,iA.data,iA.w,iA.ha),!ee(fA.m,CA,dA,AA)){fA.a=3;break e}if(fA.xb=yh,iA.width=CA[0],iA.height=dA[0],!zr(CA[0],dA[0],1,fA,null))break e;return 1}return A(fA.a!=0),0}(s,w)){if(w=(l=Pi(w.width,w.height,E.Oa,E.ba))==0){e:{w=s;t:for(;;){if(w==null){w=0;break e}if(A(w.s.yc!=null),A(w.s.Ya!=null),A(0<w.s.Wb),A((f=w.l)!=null),A((b=f.ma)!=null),w.xb!=0){if(w.ca=b.ba,w.tb=b.tb,A(w.ca!=null),!Ms(b.Oa,f,po)){w.a=2;break t}if(!Yn(w,f.width)||f.da)break t;if((f.da||Fe(w.ca.S))&&lA(),11>w.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),w.ca.f.kb.F!=null&&lA()),w.Pb&&0<w.s.ua&&w.s.vb.X==null&&!XA(w.s.vb,w.s.Wa.Xa)){w.a=1;break t}w.xb=0}if(!xr(w,w.V,w.Ba,w.c,w.i,f.o,yi))break t;b.Dc=w.Ma,w=1;break e}A(w.a!=0),w=0}w=!w}w&&(l=s.a)}else l=s.a}else{if((s=new Yl)==null){E=1;break A}if(s.Fa=b.na,s.P=b.P,s.qc=b.Sa,Va(s,w)){if((l=Pi(w.width,w.height,E.Oa,E.ba))==0){if(s.Aa=0,f=E.Oa,A((b=s)!=null),f!=null){if(0<(H=0>(H=f.Md)?0:100<H?255:255*H/100)){for(T=Z=0;4>T;++T)12>(hA=b.pb[T]).lc&&(hA.ia=H*Hp[0>hA.lc?0:hA.lc]>>3),Z|=hA.ia;Z&&(alert("todo:VP8InitRandom"),b.ia=1)}b.Ga=f.Id,100<b.Ga?b.Ga=100:0>b.Ga&&(b.Ga=0)}Zl(s,w)||(l=s.a)}}else l=s.a}l==0&&E.Oa!=null&&E.Oa.fd&&(l=Os(E.ba))}E=l}S=E!=0?null:11>S?I.f.RGBA.eb:I.f.kb.y}else S=null;return S};var Lh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(R,k){for(var $="",_=0;_<4;_++)$+=String.fromCharCode(R[k++]);return $}function B(R,k){return(R[k+0]<<0|R[k+1]<<8|R[k+2]<<16)>>>0}function p(R,k){return(R[k+0]<<0|R[k+1]<<8|R[k+2]<<16|R[k+3]<<24)>>>0}new c;var m=[0],g=[0],C=[],v=new c,U=e,F=function(R,k){var $={},_=0,L=!1,D=0,O=0;if($.frames=[],!function(j,P,G,X){for(var eA=0;eA<X;eA++)if(j[P+eA]!=G.charCodeAt(eA))return!0;return!1}(R,k,"RIFF",4)){for(p(R,k+=4),k+=8;k<R.length;){var nA=d(R,k),sA=p(R,k+=4);k+=4;var oA=sA+(1&sA);switch(nA){case"VP8 ":case"VP8L":$.frames[_]===void 0&&($.frames[_]={}),(z=$.frames[_]).src_off=L?O:k-8,z.src_size=D+sA+8,_++,L&&(L=!1,D=0,O=0);break;case"VP8X":(z=$.header={}).feature_flags=R[k];var tA=k+4;z.canvas_width=1+B(R,tA),tA+=3,z.canvas_height=1+B(R,tA),tA+=3;break;case"ALPH":L=!0,D=oA+8,O=k-8;break;case"ANIM":(z=$.header).bgcolor=p(R,k),tA=k+4,z.loop_count=(BA=R)[(Q=tA)+0]<<0|BA[Q+1]<<8,tA+=2;break;case"ANMF":var cA,z;(z=$.frames[_]={}).offset_x=2*B(R,k),k+=3,z.offset_y=2*B(R,k),k+=3,z.width=1+B(R,k),k+=3,z.height=1+B(R,k),k+=3,z.duration=B(R,k),k+=3,cA=R[k++],z.dispose=1&cA,z.blend=cA>>1&1}nA!="ANMF"&&(k+=oA)}var BA,Q;return $}}(U,0);F.response=U,F.rgbaoutput=!0,F.dataurl=!1;var x=F.header?F.header:null,N=F.frames?F.frames:null;if(x){x.loop_counter=x.loop_count,m=[x.canvas_height],g=[x.canvas_width];for(var V=0;V<N.length&&N[V].blend!=0;V++);}var q=N[0],Y=v.WebPDecodeRGBA(U,q.src_off,q.src_size,g,m);q.rgba=Y,q.imgwidth=g[0],q.imgheight=m[0];for(var W=0;W<g[0]*m[0]*4;W++)C[W]=Y[W];return this.width=g,this.height=m,this.data=C,this}(function(e){var A=function(){return typeof yu=="function"},t=function(m,g,C,v){var U=4,F=a;switch(v){case e.image_compression.FAST:U=1,F=i;break;case e.image_compression.MEDIUM:U=6,F=o;break;case e.image_compression.SLOW:U=9,F=c}m=r(m,g,C,F);var x=yu(m,{level:U});return e.__addimage__.arrayBufferToBinaryString(x)},r=function(m,g,C,v){for(var U,F,x,N=m.length/g,V=new Uint8Array(m.length+N),q=B(),Y=0;Y<N;Y+=1){if(x=Y*g,U=m.subarray(x,x+g),v)V.set(v(U,C,F),x+Y);else{for(var W,R=q.length,k=[];W<R;W+=1)k[W]=q[W](U,C,F);var $=p(k.concat());V.set(k[$],x+Y)}F=U}return V},n=function(m){var g=Array.apply([],m);return g.unshift(0),g},i=function(m,g){var C,v=[],U=m.length;v[0]=1;for(var F=0;F<U;F+=1)C=m[F-g]||0,v[F+1]=m[F]-C+256&255;return v},a=function(m,g,C){var v,U=[],F=m.length;U[0]=2;for(var x=0;x<F;x+=1)v=C&&C[x]||0,U[x+1]=m[x]-v+256&255;return U},o=function(m,g,C){var v,U,F=[],x=m.length;F[0]=3;for(var N=0;N<x;N+=1)v=m[N-g]||0,U=C&&C[N]||0,F[N+1]=m[N]+256-(v+U>>>1)&255;return F},c=function(m,g,C){var v,U,F,x,N=[],V=m.length;N[0]=4;for(var q=0;q<V;q+=1)v=m[q-g]||0,U=C&&C[q]||0,F=C&&C[q-g]||0,x=d(v,U,F),N[q+1]=m[q]-x+256&255;return N},d=function(m,g,C){if(m===g&&g===C)return m;var v=Math.abs(g-C),U=Math.abs(m-C),F=Math.abs(m+g-C-C);return v<=U&&v<=F?m:U<=F?g:C},B=function(){return[n,i,a,o,c]},p=function(m){var g=m.map(function(C){return C.reduce(function(v,U){return v+Math.abs(U)},0)});return g.indexOf(Math.min.apply(null,g))};e.processPNG=function(m,g,C,v){var U,F,x,N,V,q,Y,W,R,k,$,_,L,D,O,nA=this.decode.FLATE_DECODE,sA="";if(this.__addimage__.isArrayBuffer(m)&&(m=new Uint8Array(m)),this.__addimage__.isArrayBufferView(m)){if(m=(x=new h0(m)).imgData,F=x.bits,U=x.colorSpace,V=x.colors,[4,6].indexOf(x.colorType)!==-1){if(x.bits===8){R=(W=x.pixelBitlength==32?new Uint32Array(x.decodePixels().buffer):x.pixelBitlength==16?new Uint16Array(x.decodePixels().buffer):new Uint8Array(x.decodePixels().buffer)).length,$=new Uint8Array(R*x.colors),k=new Uint8Array(R);var oA,tA=x.pixelBitlength-x.bits;for(D=0,O=0;D<R;D++){for(L=W[D],oA=0;oA<tA;)$[O++]=L>>>oA&255,oA+=x.bits;k[D]=L>>>oA&255}}if(x.bits===16){R=(W=new Uint32Array(x.decodePixels().buffer)).length,$=new Uint8Array(R*(32/x.pixelBitlength)*x.colors),k=new Uint8Array(R*(32/x.pixelBitlength)),_=x.colors>1,D=0,O=0;for(var cA=0;D<R;)L=W[D++],$[O++]=L>>>0&255,_&&($[O++]=L>>>16&255,L=W[D++],$[O++]=L>>>0&255),k[cA++]=L>>>16&255;F=8}v!==e.image_compression.NONE&&A()?(m=t($,x.width*x.colors,x.colors,v),Y=t(k,x.width,1,v)):(m=$,Y=k,nA=void 0)}if(x.colorType===3&&(U=this.color_spaces.INDEXED,q=x.palette,x.transparency.indexed)){var z=x.transparency.indexed,BA=0;for(D=0,R=z.length;D<R;++D)BA+=z[D];if((BA/=255)===R-1&&z.indexOf(0)!==-1)N=[z.indexOf(0)];else if(BA!==R){for(W=x.decodePixels(),k=new Uint8Array(W.length),D=0,R=W.length;D<R;D++)k[D]=z[W[D]];Y=t(k,x.width,1)}}var Q=function(j){var P;switch(j){case e.image_compression.FAST:P=11;break;case e.image_compression.MEDIUM:P=13;break;case e.image_compression.SLOW:P=14;break;default:P=12}return P}(v);return nA===this.decode.FLATE_DECODE&&(sA="/Predictor "+Q+" "),sA+="/Colors "+V+" /BitsPerComponent "+F+" /Columns "+x.width,(this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),(Y&&this.__addimage__.isArrayBuffer(Y)||this.__addimage__.isArrayBufferView(Y))&&(Y=this.__addimage__.arrayBufferToBinaryString(Y)),{alias:C,data:m,index:g,filter:nA,decodeParameters:sA,transparency:N,palette:q,sMask:Y,predictor:Q,width:x.width,height:x.height,bitsPerComponent:F,colorSpace:U}}}})($A.API),function(e){e.processGIF89A=function(A,t,r,n){var i=new f0(A),a=i.width,o=i.height,c=[];i.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:a,height:o},B=new zc(100).encode(d,100);return e.processJPEG.call(this,B,t,r,n)},e.processGIF87A=e.processGIF89A}($A.API),Hr.prototype.parseHeader=function(){if(this.fileSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.reserved=this.datav.getUint32(this.pos,!0),this.pos+=4,this.offset=this.datav.getUint32(this.pos,!0),this.pos+=4,this.headerSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.width=this.datav.getUint32(this.pos,!0),this.pos+=4,this.height=this.datav.getInt32(this.pos,!0),this.pos+=4,this.planes=this.datav.getUint16(this.pos,!0),this.pos+=2,this.bitPP=this.datav.getUint16(this.pos,!0),this.pos+=2,this.compress=this.datav.getUint32(this.pos,!0),this.pos+=4,this.rawSize=this.datav.getUint32(this.pos,!0),this.pos+=4,this.hr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.vr=this.datav.getUint32(this.pos,!0),this.pos+=4,this.colors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.importantColors=this.datav.getUint32(this.pos,!0),this.pos+=4,this.bitPP===16&&this.is_with_alpha&&(this.bitPP=15),this.bitPP<15){var e=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(e);for(var A=0;A<e;A++){var t=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0);this.palette[A]={red:n,green:r,blue:t,quad:i}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},Hr.prototype.parseBGR=function(){this.pos=this.offset;try{var e="bit"+this.bitPP,A=this.width*this.height*4;this.data=new Uint8Array(A),this[e]()}catch(t){De.log("bit decode error:"+t)}},Hr.prototype.bit1=function(){var e,A=Math.ceil(this.width/8),t=A%4;for(e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,n=0;n<A;n++)for(var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+8*n*4,o=0;o<8&&8*n+o<this.width;o++){var c=this.palette[i>>7-o&1];this.data[a+4*o]=c.blue,this.data[a+4*o+1]=c.green,this.data[a+4*o+2]=c.red,this.data[a+4*o+3]=255}t!==0&&(this.pos+=4-t)}},Hr.prototype.bit4=function(){for(var e=Math.ceil(this.width/2),A=e%4,t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<e;n++){var i=this.datav.getUint8(this.pos++,!0),a=r*this.width*4+2*n*4,o=i>>4,c=15&i,d=this.palette[o];if(this.data[a]=d.blue,this.data[a+1]=d.green,this.data[a+2]=d.red,this.data[a+3]=255,2*n+1>=this.width)break;d=this.palette[c],this.data[a+4]=d.blue,this.data[a+4+1]=d.green,this.data[a+4+2]=d.red,this.data[a+4+3]=255}A!==0&&(this.pos+=4-A)}},Hr.prototype.bit8=function(){for(var e=this.width%4,A=this.height-1;A>=0;A--){for(var t=this.bottom_up?A:this.height-1-A,r=0;r<this.width;r++){var n=this.datav.getUint8(this.pos++,!0),i=t*this.width*4+4*r;if(n<this.palette.length){var a=this.palette[n];this.data[i]=a.red,this.data[i+1]=a.green,this.data[i+2]=a.blue,this.data[i+3]=255}else this.data[i]=255,this.data[i+1]=255,this.data[i+2]=255,this.data[i+3]=255}e!==0&&(this.pos+=4-e)}},Hr.prototype.bit15=function(){for(var e=this.width%3,A=parseInt("11111",2),t=this.height-1;t>=0;t--){for(var r=this.bottom_up?t:this.height-1-t,n=0;n<this.width;n++){var i=this.datav.getUint16(this.pos,!0);this.pos+=2;var a=(i&A)/A*255|0,o=(i>>5&A)/A*255|0,c=(i>>10&A)/A*255|0,d=i>>15?255:0,B=r*this.width*4+4*n;this.data[B]=c,this.data[B+1]=o,this.data[B+2]=a,this.data[B+3]=d}this.pos+=e}},Hr.prototype.bit16=function(){for(var e=this.width%3,A=parseInt("11111",2),t=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var n=this.bottom_up?r:this.height-1-r,i=0;i<this.width;i++){var a=this.datav.getUint16(this.pos,!0);this.pos+=2;var o=(a&A)/A*255|0,c=(a>>5&t)/t*255|0,d=(a>>11)/A*255|0,B=n*this.width*4+4*i;this.data[B]=d,this.data[B+1]=c,this.data[B+2]=o,this.data[B+3]=255}this.pos+=e}},Hr.prototype.bit24=function(){for(var e=this.height-1;e>=0;e--){for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=A*this.width*4+4*t;this.data[a]=i,this.data[a+1]=n,this.data[a+2]=r,this.data[a+3]=255}this.pos+=this.width%4}},Hr.prototype.bit32=function(){for(var e=this.height-1;e>=0;e--)for(var A=this.bottom_up?e:this.height-1-e,t=0;t<this.width;t++){var r=this.datav.getUint8(this.pos++,!0),n=this.datav.getUint8(this.pos++,!0),i=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),o=A*this.width*4+4*t;this.data[o]=i,this.data[o+1]=n,this.data[o+2]=r,this.data[o+3]=a}},Hr.prototype.getData=function(){return this.data},function(e){e.processBMP=function(A,t,r,n){var i=new Hr(A,!1),a=i.width,o=i.height,c={data:i.getData(),width:a,height:o},d=new zc(100).encode(c,100);return e.processJPEG.call(this,d,t,r,n)}}($A.API),Cf.prototype.getData=function(){return this.data},function(e){e.processWEBP=function(A,t,r,n){var i=new Cf(A),a=i.width,o=i.height,c={data:i.getData(),width:a,height:o},d=new zc(100).encode(c,100);return e.processJPEG.call(this,d,t,r,n)}}($A.API),$A.API.processRGBA=function(e,A,t){for(var r=e.data,n=r.length,i=new Uint8Array(n/4*3),a=new Uint8Array(n/4),o=0,c=0,d=0;d<n;d+=4){var B=r[d],p=r[d+1],m=r[d+2],g=r[d+3];i[o++]=B,i[o++]=p,i[o++]=m,a[c++]=g}var C=this.__addimage__.arrayBufferToBinaryString(i);return{alpha:this.__addimage__.arrayBufferToBinaryString(a),data:C,index:A,alias:t,colorSpace:"DeviceRGB",bitsPerComponent:8,width:e.width,height:e.height}},$A.API.setLanguage=function(e){return this.internal.languageSettings===void 0&&(this.internal.languageSettings={},this.internal.languageSettings.isSubscribed=!1),{af:"Afrikaans",sq:"Albanian",ar:"Arabic (Standard)","ar-DZ":"Arabic (Algeria)","ar-BH":"Arabic (Bahrain)","ar-EG":"Arabic (Egypt)","ar-IQ":"Arabic (Iraq)","ar-JO":"Arabic (Jordan)","ar-KW":"Arabic (Kuwait)","ar-LB":"Arabic (Lebanon)","ar-LY":"Arabic (Libya)","ar-MA":"Arabic (Morocco)","ar-OM":"Arabic (Oman)","ar-QA":"Arabic (Qatar)","ar-SA":"Arabic (Saudi Arabia)","ar-SY":"Arabic (Syria)","ar-TN":"Arabic (Tunisia)","ar-AE":"Arabic (U.A.E.)","ar-YE":"Arabic (Yemen)",an:"Aragonese",hy:"Armenian",as:"Assamese",ast:"Asturian",az:"Azerbaijani",eu:"Basque",be:"Belarusian",bn:"Bengali",bs:"Bosnian",br:"Breton",bg:"Bulgarian",my:"Burmese",ca:"Catalan",ch:"Chamorro",ce:"Chechen",zh:"Chinese","zh-HK":"Chinese (Hong Kong)","zh-CN":"Chinese (PRC)","zh-SG":"Chinese (Singapore)","zh-TW":"Chinese (Taiwan)",cv:"Chuvash",co:"Corsican",cr:"Cree",hr:"Croatian",cs:"Czech",da:"Danish",nl:"Dutch (Standard)","nl-BE":"Dutch (Belgian)",en:"English","en-AU":"English (Australia)","en-BZ":"English (Belize)","en-CA":"English (Canada)","en-IE":"English (Ireland)","en-JM":"English (Jamaica)","en-NZ":"English (New Zealand)","en-PH":"English (Philippines)","en-ZA":"English (South Africa)","en-TT":"English (Trinidad & Tobago)","en-GB":"English (United Kingdom)","en-US":"English (United States)","en-ZW":"English (Zimbabwe)",eo:"Esperanto",et:"Estonian",fo:"Faeroese",fj:"Fijian",fi:"Finnish",fr:"French (Standard)","fr-BE":"French (Belgium)","fr-CA":"French (Canada)","fr-FR":"French (France)","fr-LU":"French (Luxembourg)","fr-MC":"French (Monaco)","fr-CH":"French (Switzerland)",fy:"Frisian",fur:"Friulian",gd:"Gaelic (Scots)","gd-IE":"Gaelic (Irish)",gl:"Galacian",ka:"Georgian",de:"German (Standard)","de-AT":"German (Austria)","de-DE":"German (Germany)","de-LI":"German (Liechtenstein)","de-LU":"German (Luxembourg)","de-CH":"German (Switzerland)",el:"Greek",gu:"Gujurati",ht:"Haitian",he:"Hebrew",hi:"Hindi",hu:"Hungarian",is:"Icelandic",id:"Indonesian",iu:"Inuktitut",ga:"Irish",it:"Italian (Standard)","it-CH":"Italian (Switzerland)",ja:"Japanese",kn:"Kannada",ks:"Kashmiri",kk:"Kazakh",km:"Khmer",ky:"Kirghiz",tlh:"Klingon",ko:"Korean","ko-KP":"Korean (North Korea)","ko-KR":"Korean (South Korea)",la:"Latin",lv:"Latvian",lt:"Lithuanian",lb:"Luxembourgish",mk:"North Macedonia",ms:"Malay",ml:"Malayalam",mt:"Maltese",mi:"Maori",mr:"Marathi",mo:"Moldavian",nv:"Navajo",ng:"Ndonga",ne:"Nepali",no:"Norwegian",nb:"Norwegian (Bokmal)",nn:"Norwegian (Nynorsk)",oc:"Occitan",or:"Oriya",om:"Oromo",fa:"Persian","fa-IR":"Persian/Iran",pl:"Polish",pt:"Portuguese","pt-BR":"Portuguese (Brazil)",pa:"Punjabi","pa-IN":"Punjabi (India)","pa-PK":"Punjabi (Pakistan)",qu:"Quechua",rm:"Rhaeto-Romanic",ro:"Romanian","ro-MO":"Romanian (Moldavia)",ru:"Russian","ru-MO":"Russian (Moldavia)",sz:"Sami (Lappish)",sg:"Sango",sa:"Sanskrit",sc:"Sardinian",sd:"Sindhi",si:"Singhalese",sr:"Serbian",sk:"Slovak",sl:"Slovenian",so:"Somani",sb:"Sorbian",es:"Spanish","es-AR":"Spanish (Argentina)","es-BO":"Spanish (Bolivia)","es-CL":"Spanish (Chile)","es-CO":"Spanish (Colombia)","es-CR":"Spanish (Costa Rica)","es-DO":"Spanish (Dominican Republic)","es-EC":"Spanish (Ecuador)","es-SV":"Spanish (El Salvador)","es-GT":"Spanish (Guatemala)","es-HN":"Spanish (Honduras)","es-MX":"Spanish (Mexico)","es-NI":"Spanish (Nicaragua)","es-PA":"Spanish (Panama)","es-PY":"Spanish (Paraguay)","es-PE":"Spanish (Peru)","es-PR":"Spanish (Puerto Rico)","es-ES":"Spanish (Spain)","es-UY":"Spanish (Uruguay)","es-VE":"Spanish (Venezuela)",sx:"Sutu",sw:"Swahili",sv:"Swedish","sv-FI":"Swedish (Finland)","sv-SV":"Swedish (Sweden)",ta:"Tamil",tt:"Tatar",te:"Teluga",th:"Thai",tig:"Tigre",ts:"Tsonga",tn:"Tswana",tr:"Turkish",tk:"Turkmen",uk:"Ukrainian",hsb:"Upper Sorbian",ur:"Urdu",ve:"Venda",vi:"Vietnamese",vo:"Volapuk",wa:"Walloon",cy:"Welsh",xh:"Xhosa",ji:"Yiddish",zu:"Zulu"}[e]!==void 0&&(this.internal.languageSettings.languageCode=e,this.internal.languageSettings.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){this.internal.write("/Lang ("+this.internal.languageSettings.languageCode+")")}),this.internal.languageSettings.isSubscribed=!0)),this},As=$A.API,jo=As.getCharWidthsArray=function(e,A){var t,r,n=(A=A||{}).font||this.internal.getFont(),i=A.fontSize||this.internal.getFontSize(),a=A.charSpace||this.internal.getCharSpace(),o=A.widths?A.widths:n.metadata.Unicode.widths,c=o.fof?o.fof:1,d=A.kerning?A.kerning:n.metadata.Unicode.kerning,B=d.fof?d.fof:1,p=A.doKerning!==!1,m=0,g=e.length,C=0,v=o[0]||c,U=[];for(t=0;t<g;t++)r=e.charCodeAt(t),typeof n.metadata.widthOfString=="function"?U.push((n.metadata.widthOfGlyph(n.metadata.characterToGlyph(r))+a*(1e3/i)||0)/1e3):(m=p&&Te(d[r])==="object"&&!isNaN(parseInt(d[r][C],10))?d[r][C]/B:0,U.push((o[r]||v)/c+m)),C=r;return U},Bf=As.getStringUnitWidth=function(e,A){var t=(A=A||{}).fontSize||this.internal.getFontSize(),r=A.font||this.internal.getFont(),n=A.charSpace||this.internal.getCharSpace();return As.processArabic&&(e=As.processArabic(e)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(e,t,n)/t:jo.apply(this,arguments).reduce(function(i,a){return i+a},0)},wf=function(e,A,t,r){for(var n=[],i=0,a=e.length,o=0;i!==a&&o+A[i]<t;)o+=A[i],i++;n.push(e.slice(0,i));var c=i;for(o=0;i!==a;)o+A[i]>r&&(n.push(e.slice(c,i)),o=0,c=i),o+=A[i],i++;return c!==i&&n.push(e.slice(c,i)),n},mf=function(e,A,t){t||(t={});var r,n,i,a,o,c,d,B=[],p=[B],m=t.textIndent||0,g=0,C=0,v=e.split(" "),U=jo.apply(this,[" ",t])[0];if(c=t.lineIndent===-1?v[0].length+2:t.lineIndent||0){var F=Array(c).join(" "),x=[];v.map(function(V){(V=V.split(/\s*\n/)).length>1?x=x.concat(V.map(function(q,Y){return(Y&&q.length?` `:"")+q})):x.push(V[0])}),v=x,c=Bf.apply(this,[F,t])}for(i=0,a=v.length;i<a;i++){var N=0;if(r=v[i],c&&r[0]==` `&&(r=r.substr(1),N=1),m+g+(C=(n=jo.apply(this,[r,t])).reduce(function(V,q){return V+q},0))>A||N){if(C>A){for(o=wf.apply(this,[r,n,A-(m+g),A]),B.push(o.shift()),B=[o.pop()];o.length;)p.push([o.shift()]);C=n.slice(r.length-(B[0]?B[0].length:0)).reduce(function(V,q){return V+q},0)}else B=[r];p.push(B),m=C+c,g=U}else B.push(r),m+=g+C,g=U}return d=c?function(V,q){return(q?F:"")+V.join(" ")}:function(V){return V.join(" ")},p.map(d)},As.splitTextToSize=function(e,A,t){var r,n=(t=t||{}).fontSize||this.internal.getFontSize(),i=function(B){if(B.widths&&B.kerning)return{widths:B.widths,kerning:B.kerning};var p=this.internal.getFont(B.fontName,B.fontStyle);return p.metadata.Unicode?{widths:p.metadata.Unicode.widths||{0:1},kerning:p.metadata.Unicode.kerning||{}}:{font:p.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,t);r=Array.isArray(e)?e:String(e).split(/\r?\n/);var a=1*this.internal.scaleFactor*A/n;i.textIndent=t.textIndent?1*t.textIndent*this.internal.scaleFactor/n:0,i.lineIndent=t.lineIndent;var o,c,d=[];for(o=0,c=r.length;o<c;o++)d=d.concat(mf.apply(this,[r[o],a,i]));return d},function(e){e.__fontmetrics__=e.__fontmetrics__||{};for(var A="klmnopqrstuvwxyz",t={},r={},n=0;n<A.length;n++)t[A[n]]="0123456789abcdef"[n],r["0123456789abcdef"[n]]=A[n];var i=function(p){return"0x"+parseInt(p,10).toString(16)},a=e.__fontmetrics__.compress=function(p){var m,g,C,v,U=["{"];for(var F in p){if(m=p[F],isNaN(parseInt(F,10))?g="'"+F+"'":(F=parseInt(F,10),g=(g=i(F).slice(2)).slice(0,-1)+r[g.slice(-1)]),typeof m=="number")m<0?(C=i(m).slice(3),v="-"):(C=i(m).slice(2),v=""),C=v+C.slice(0,-1)+r[C.slice(-1)];else{if(Te(m)!=="object")throw new Error("Don't know what to do with value type "+Te(m)+".");C=a(m)}U.push(g+C)}return U.push("}"),U.join("")},o=e.__fontmetrics__.uncompress=function(p){if(typeof p!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,g,C,v,U={},F=1,x=U,N=[],V="",q="",Y=p.length-1,W=1;W<Y;W+=1)(v=p[W])=="'"?m?(C=m.join(""),m=void 0):m=[]:m?m.push(v):v=="{"?(N.push([x,C]),x={},C=void 0):v=="}"?((g=N.pop())[0][g[1]]=x,C=void 0,x=g[0]):v=="-"?F=-1:C===void 0?t.hasOwnProperty(v)?(V+=t[v],C=parseInt(V,16)*F,F=1,V=""):V+=v:t.hasOwnProperty(v)?(q+=t[v],x[C]=parseInt(q,16)*F,F=1,C=void 0,q=""):q+=v;return U},c={codePages:["WinAnsiEncoding"],WinAnsiEncoding:o("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},d={Unicode:{Courier:c,"Courier-Bold":c,"Courier-BoldOblique":c,"Courier-Oblique":c,Helvetica:c,"Helvetica-Bold":c,"Helvetica-BoldOblique":c,"Helvetica-Oblique":c,"Times-Roman":c,"Times-Bold":c,"Times-BoldItalic":c,"Times-Italic":c}},B={Unicode:{"Courier-Oblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":o("{'widths'{k3o2q4ycx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2r202m2n2n3m2o3m2p5n202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5n4l4m4m4m4n4m4o4s4p4m4q4m4r4s4s4y4t2r4u3m4v4m4w3x4x5t4y4s4z4s5k3x5l4s5m4m5n3r5o3x5p4s5q4m5r5t5s4m5t3x5u3x5v2l5w1w5x2l5y3t5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q2l6r3m6s3r6t1w6u1w6v3m6w1w6x4y6y3r6z3m7k3m7l3m7m2r7n2r7o1w7p3r7q2w7r4m7s3m7t2w7u2r7v2n7w1q7x2n7y3t202l3mcl4mal2ram3man3mao3map3mar3mas2lat4uau1uav3maw3way4uaz2lbk2sbl3t'fof'6obo2lbp3tbq3mbr1tbs2lbu1ybv3mbz3mck4m202k3mcm4mcn4mco4mcp4mcq5ycr4mcs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz2w203k6o212m6o2dw2l2cq2l3t3m3u2l17s3x19m3m}'kerning'{cl{4qu5kt5qt5rs17ss5ts}201s{201ss}201t{cks4lscmscnscoscpscls2wu2yu201ts}201x{2wu2yu}2k{201ts}2w{4qx5kx5ou5qx5rs17su5tu}2x{17su5tu5ou}2y{4qx5kx5ou5qx5rs17ss5ts}'fof'-6ofn{17sw5tw5ou5qw5rs}7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qs}3v{17su5tu5os5qs}7p{17su5tu}ck{4qu5kt5qt5rs17ss5ts}4l{4qu5kt5qt5rs17ss5ts}cm{4qu5kt5qt5rs17ss5ts}cn{4qu5kt5qt5rs17ss5ts}co{4qu5kt5qt5rs17ss5ts}cp{4qu5kt5qt5rs17ss5ts}6l{4qu5ou5qw5rt17su5tu}5q{ckuclucmucnucoucpu4lu}5r{ckuclucmucnucoucpu4lu}7q{cksclscmscnscoscps4ls}6p{4qu5ou5qw5rt17sw5tw}ek{4qu5ou5qw5rt17su5tu}el{4qu5ou5qw5rt17su5tu}em{4qu5ou5qw5rt17su5tu}en{4qu5ou5qw5rt17su5tu}eo{4qu5ou5qw5rt17su5tu}ep{4qu5ou5qw5rt17su5tu}es{17ss5ts5qs4qu}et{4qu5ou5qw5rt17sw5tw}eu{4qu5ou5qw5rt17ss5ts}ev{17ss5ts5qs4qu}6z{17sw5tw5ou5qw5rs}fm{17sw5tw5ou5qw5rs}7n{201ts}fo{17sw5tw5ou5qw5rs}fp{17sw5tw5ou5qw5rs}fq{17sw5tw5ou5qw5rs}7r{cksclscmscnscoscps4ls}fs{17sw5tw5ou5qw5rs}ft{17su5tu}fu{17su5tu}fv{17su5tu}fw{17su5tu}fz{cksclscmscnscoscps4ls}}}"),"Helvetica-Bold":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),Courier:o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":o("{'widths'{k3q2q5ncx2r201n3m201o6o201s2l201t2l201u2l201w3m201x3m201y3m2k1t2l2l202m2n2n3m2o3m2p6o202q6o2r1w2s2l2t2l2u3m2v3t2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w3t3x3t3y3t3z3m4k5x4l4s4m4m4n4s4o4s4p4m4q3x4r4y4s4y4t2r4u3m4v4y4w4m4x5y4y4s4z4y5k3x5l4y5m4s5n3r5o4m5p4s5q4s5r6o5s4s5t4s5u4m5v2l5w1w5x2l5y3u5z3m6k2l6l3m6m3r6n2w6o3r6p2w6q2l6r3m6s3r6t1w6u2l6v3r6w1w6x5n6y3r6z3m7k3r7l3r7m2w7n2r7o2l7p3r7q3m7r4s7s3m7t3m7u2w7v2r7w1q7x2r7y3o202l3mcl4sal2lam3man3mao3map3mar3mas2lat4uau1yav3maw3tay4uaz2lbk2sbl3t'fof'6obo2lbp3rbr1tbs2lbu2lbv3mbz3mck4s202k3mcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw2r2m3rcy2rcz2rdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3rek3mel3mem3men3meo3mep3meq4ser2wes2wet2weu2wev2wew1wex1wey1wez1wfl3rfm3mfn3mfo3mfp3mfq3mfr3tfs3mft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3m3u2l17s4s19m3m}'kerning'{cl{4qt5ks5ot5qy5rw17sv5tv}201t{cks4lscmscnscoscpscls4wv}2k{201ts}2w{4qu5ku7mu5os5qx5ru17su5tu}2x{17su5tu5ou5qs}2y{4qv5kv7mu5ot5qz5ru17su5tu}'fof'-6o7t{cksclscmscnscoscps4ls}3u{17su5tu5os5qu}3v{17su5tu5os5qu}fu{17su5tu5ou5qu}7p{17su5tu5ou5qu}ck{4qt5ks5ot5qy5rw17sv5tv}4l{4qt5ks5ot5qy5rw17sv5tv}cm{4qt5ks5ot5qy5rw17sv5tv}cn{4qt5ks5ot5qy5rw17sv5tv}co{4qt5ks5ot5qy5rw17sv5tv}cp{4qt5ks5ot5qy5rw17sv5tv}6l{17st5tt5ou5qu}17s{ckuclucmucnucoucpu4lu4wu}5o{ckuclucmucnucoucpu4lu4wu}5q{ckzclzcmzcnzcozcpz4lz4wu}5r{ckxclxcmxcnxcoxcpx4lx4wu}5t{ckuclucmucnucoucpu4lu4wu}7q{ckuclucmucnucoucpu4lu}6p{17sw5tw5ou5qu}ek{17st5tt5qu}el{17st5tt5ou5qu}em{17st5tt5qu}en{17st5tt5qu}eo{17st5tt5qu}ep{17st5tt5ou5qu}es{17ss5ts5qu}et{17sw5tw5ou5qu}eu{17sw5tw5ou5qu}ev{17ss5ts5qu}6z{17sw5tw5ou5qu5rs}fm{17sw5tw5ou5qu5rs}fn{17sw5tw5ou5qu5rs}fo{17sw5tw5ou5qu5rs}fp{17sw5tw5ou5qu5rs}fq{17sw5tw5ou5qu5rs}7r{cktcltcmtcntcotcpt4lt5os}fs{17sw5tw5ou5qu5rs}ft{17su5tu5ou5qu}7m{5os}fv{17su5tu5ou5qu}fw{17su5tu5ou5qu}fz{cksclscmscnscoscps4ls}}}"),Symbol:o("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}"),"Helvetica-BoldOblique":o("{'widths'{k3s2q4scx1w201n3r201o6o201s1w201t1w201u1w201w3m201x3m201y3m2k1w2l2l202m2n2n3r2o3r2p5t202q6o2r1s2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v2l3w3u3x3u3y3u3z3x4k6l4l4s4m4s4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3r4v4s4w3x4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v2l5w1w5x2l5y3u5z3r6k2l6l3r6m3x6n3r6o3x6p3r6q2l6r3x6s3x6t1w6u1w6v3r6w1w6x5t6y3x6z3x7k3x7l3x7m2r7n3r7o2l7p3x7q3r7r4y7s3r7t3r7u3m7v2r7w1w7x2r7y3u202l3rcl4sal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3xbq3rbr1wbs2lbu2obv3rbz3xck4s202k3rcm4scn4sco4scp4scq6ocr4scs4mct4mcu4mcv4mcw1w2m2zcy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3res3ret3reu3rev3rew1wex1wey1wez1wfl3xfm3xfn3xfo3xfp3xfq3xfr3ufs3xft3xfu3xfv3xfw3xfz3r203k6o212m6o2dw2l2cq2l3t3r3u2l17s4m19m3r}'kerning'{cl{4qs5ku5ot5qs17sv5tv}201t{2ww4wy2yw}201w{2ks}201x{2ww4wy2yw}2k{201ts201xs}2w{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}2x{5ow5qs}2y{7qs4qu5kw5os5qw5rs17su5tu7tsfzs}'fof'-6o7p{17su5tu5ot}ck{4qs5ku5ot5qs17sv5tv}4l{4qs5ku5ot5qs17sv5tv}cm{4qs5ku5ot5qs17sv5tv}cn{4qs5ku5ot5qs17sv5tv}co{4qs5ku5ot5qs17sv5tv}cp{4qs5ku5ot5qs17sv5tv}6l{17st5tt5os}17s{2kwclvcmvcnvcovcpv4lv4wwckv}5o{2kucltcmtcntcotcpt4lt4wtckt}5q{2ksclscmscnscoscps4ls4wvcks}5r{2ks4ws}5t{2kwclvcmvcnvcovcpv4lv4wwckv}eo{17st5tt5os}fu{17su5tu5ot}6p{17ss5ts}ek{17st5tt5os}el{17st5tt5os}em{17st5tt5os}en{17st5tt5os}6o{201ts}ep{17st5tt5os}es{17ss5ts}et{17ss5ts}eu{17ss5ts}ev{17ss5ts}6z{17su5tu5os5qt}fm{17su5tu5os5qt}fn{17su5tu5os5qt}fo{17su5tu5os5qt}fp{17su5tu5os5qt}fq{17su5tu5os5qt}fs{17su5tu5os5qt}ft{17su5tu5ot}7m{5os}fv{17su5tu5ot}fw{17su5tu5ot}}}"),ZapfDingbats:o("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":o("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":o("{'widths'{k3n2q4ycx2l201n3m201o5t201s2l201t2l201u2l201w3r201x3r201y3r2k1t2l2l202m2n2n3m2o3m2p5n202q5t2r1p2s2l2t2l2u3m2v4n2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v2l3w4n3x4n3y4n3z3m4k5w4l3x4m3x4n4m4o4s4p3x4q3x4r4s4s4s4t2l4u2w4v4m4w3r4x5n4y4m4z4s5k3x5l4s5m3x5n3m5o3r5p4s5q3x5r5n5s3x5t3r5u3r5v2r5w1w5x2r5y2u5z3m6k2l6l3m6m3m6n2w6o3m6p2w6q1w6r3m6s3m6t1w6u1w6v2w6w1w6x4s6y3m6z3m7k3m7l3m7m2r7n2r7o1w7p3m7q2w7r4m7s2w7t2w7u2r7v2s7w1v7x2s7y3q202l3mcl3xal2ram3man3mao3map3mar3mas2lat4wau1vav3maw4nay4waz2lbk2sbl4n'fof'6obo2lbp3mbq3obr1tbs2lbu1zbv3mbz3mck3x202k3mcm3xcn3xco3xcp3xcq5tcr4mcs3xct3xcu3xcv3xcw2l2m2ucy2lcz2ldl4mdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek3mel3mem3men3meo3mep3meq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr4nfs3mft3mfu3mfv3mfw3mfz2w203k6o212m6m2dw2l2cq2l3t3m3u2l17s3r19m3m}'kerning'{cl{5kt4qw}201s{201sw}201t{201tw2wy2yy6q-t}201x{2wy2yy}2k{201tw}2w{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}2x{17ss5ts5os}2y{7qs4qy7rs5ky7mw5os5qx5ru17su5tu}'fof'-6o6t{17ss5ts5qs}7t{5os}3v{5qs}7p{17su5tu5qs}ck{5kt4qw}4l{5kt4qw}cm{5kt4qw}cn{5kt4qw}co{5kt4qw}cp{5kt4qw}6l{4qs5ks5ou5qw5ru17su5tu}17s{2ks}5q{ckvclvcmvcnvcovcpv4lv}5r{ckuclucmucnucoucpu4lu}5t{2ks}6p{4qs5ks5ou5qw5ru17su5tu}ek{4qs5ks5ou5qw5ru17su5tu}el{4qs5ks5ou5qw5ru17su5tu}em{4qs5ks5ou5qw5ru17su5tu}en{4qs5ks5ou5qw5ru17su5tu}eo{4qs5ks5ou5qw5ru17su5tu}ep{4qs5ks5ou5qw5ru17su5tu}es{5ks5qs4qs}et{4qs5ks5ou5qw5ru17su5tu}eu{4qs5ks5qw5ru17su5tu}ev{5ks5qs4qs}ex{17ss5ts5qs}6z{4qv5ks5ou5qw5ru17su5tu}fm{4qv5ks5ou5qw5ru17su5tu}fn{4qv5ks5ou5qw5ru17su5tu}fo{4qv5ks5ou5qw5ru17su5tu}fp{4qv5ks5ou5qw5ru17su5tu}fq{4qv5ks5ou5qw5ru17su5tu}7r{5os}fs{4qv5ks5ou5qw5ru17su5tu}ft{17su5tu5qs}fu{17su5tu5qs}fv{17su5tu5qs}fw{17su5tu5qs}}}"),"Times-Roman":o("{'widths'{k3n2q4ycx2l201n3m201o6o201s2l201t2l201u2l201w2w201x2w201y2w2k1t2l2l202m2n2n3m2o3m2p5n202q6o2r1m2s2l2t2l2u3m2v3s2w1t2x2l2y1t2z1w3k3m3l3m3m3m3n3m3o3m3p3m3q3m3r3m3s3m203t2l203u2l3v1w3w3s3x3s3y3s3z2w4k5w4l4s4m4m4n4m4o4s4p3x4q3r4r4s4s4s4t2l4u2r4v4s4w3x4x5t4y4s4z4s5k3r5l4s5m4m5n3r5o3x5p4s5q4s5r5y5s4s5t4s5u3x5v2l5w1w5x2l5y2z5z3m6k2l6l2w6m3m6n2w6o3m6p2w6q2l6r3m6s3m6t1w6u1w6v3m6w1w6x4y6y3m6z3m7k3m7l3m7m2l7n2r7o1w7p3m7q3m7r4s7s3m7t3m7u2w7v3k7w1o7x3k7y3q202l3mcl4sal2lam3man3mao3map3mar3mas2lat4wau1vav3maw3say4waz2lbk2sbl3s'fof'6obo2lbp3mbq2xbr1tbs2lbu1zbv3mbz2wck4s202k3mcm4scn4sco4scp4scq5tcr4mcs3xct3xcu3xcv3xcw2l2m2tcy2lcz2ldl4sdm4sdn4sdo4sdp4sdq4sds4sdt4sdu4sdv4sdw4sdz3mek2wel2wem2wen2weo2wep2weq4mer2wes2wet2weu2wev2wew1wex1wey1wez1wfl3mfm3mfn3mfo3mfp3mfq3mfr3sfs3mft3mfu3mfv3mfw3mfz3m203k6o212m6m2dw2l2cq2l3t3m3u1w17s4s19m3m}'kerning'{cl{4qs5ku17sw5ou5qy5rw201ss5tw201ws}201s{201ss}201t{ckw4lwcmwcnwcowcpwclw4wu201ts}2k{201ts}2w{4qs5kw5os5qx5ru17sx5tx}2x{17sw5tw5ou5qu}2y{4qs5kw5os5qx5ru17sx5tx}'fof'-6o7t{ckuclucmucnucoucpu4lu5os5rs}3u{17su5tu5qs}3v{17su5tu5qs}7p{17sw5tw5qs}ck{4qs5ku17sw5ou5qy5rw201ss5tw201ws}4l{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cm{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cn{4qs5ku17sw5ou5qy5rw201ss5tw201ws}co{4qs5ku17sw5ou5qy5rw201ss5tw201ws}cp{4qs5ku17sw5ou5qy5rw201ss5tw201ws}6l{17su5tu5os5qw5rs}17s{2ktclvcmvcnvcovcpv4lv4wuckv}5o{ckwclwcmwcnwcowcpw4lw4wu}5q{ckyclycmycnycoycpy4ly4wu5ms}5r{cktcltcmtcntcotcpt4lt4ws}5t{2ktclvcmvcnvcovcpv4lv4wuckv}7q{cksclscmscnscoscps4ls}6p{17su5tu5qw5rs}ek{5qs5rs}el{17su5tu5os5qw5rs}em{17su5tu5os5qs5rs}en{17su5qs5rs}eo{5qs5rs}ep{17su5tu5os5qw5rs}es{5qs}et{17su5tu5qw5rs}eu{17su5tu5qs5rs}ev{5qs}6z{17sv5tv5os5qx5rs}fm{5os5qt5rs}fn{17sv5tv5os5qx5rs}fo{17sv5tv5os5qx5rs}fp{5os5qt5rs}fq{5os5qt5rs}7r{ckuclucmucnucoucpu4lu5os}fs{17sv5tv5os5qx5rs}ft{17ss5ts5qs}fu{17sw5tw5qs}fv{17sw5tw5qs}fw{17ss5ts5qs}fz{ckuclucmucnucoucpu4lu5os5rs}}}"),"Helvetica-Oblique":o("{'widths'{k3p2q4mcx1w201n3r201o6o201s1q201t1q201u1q201w2l201x2l201y2l2k1w2l1w202m2n2n3r2o3r2p5t202q6o2r1n2s2l2t2l2u2r2v3u2w1w2x2l2y1w2z1w3k3r3l3r3m3r3n3r3o3r3p3r3q3r3r3r3s3r203t2l203u2l3v1w3w3u3x3u3y3u3z3r4k6p4l4m4m4m4n4s4o4s4p4m4q3x4r4y4s4s4t1w4u3m4v4m4w3r4x5n4y4s4z4y5k4m5l4y5m4s5n4m5o3x5p4s5q4m5r5y5s4m5t4m5u3x5v1w5w1w5x1w5y2z5z3r6k2l6l3r6m3r6n3m6o3r6p3r6q1w6r3r6s3r6t1q6u1q6v3m6w1q6x5n6y3r6z3r7k3r7l3r7m2l7n3m7o1w7p3r7q3m7r4s7s3m7t3m7u3m7v2l7w1u7x2l7y3u202l3rcl4mal2lam3ran3rao3rap3rar3ras2lat4tau2pav3raw3uay4taz2lbk2sbl3u'fof'6obo2lbp3rbr1wbs2lbu2obv3rbz3xck4m202k3rcm4mcn4mco4mcp4mcq6ocr4scs4mct4mcu4mcv4mcw1w2m2ncy1wcz1wdl4sdm4ydn4ydo4ydp4ydq4yds4ydt4sdu4sdv4sdw4sdz3xek3rel3rem3ren3reo3rep3req5ter3mes3ret3reu3rev3rew1wex1wey1wez1wfl3rfm3rfn3rfo3rfp3rfq3rfr3ufs3xft3rfu3rfv3rfw3rfz3m203k6o212m6o2dw2l2cq2l3t3r3u1w17s4m19m3r}'kerning'{5q{4wv}cl{4qs5kw5ow5qs17sv5tv}201t{2wu4w1k2yu}201x{2wu4wy2yu}17s{2ktclucmucnu4otcpu4lu4wycoucku}2w{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}2x{17sy5ty5oy5qs}2y{7qs4qz5k1m17sy5ow5qx5rsfsu5ty7tufzu}'fof'-6o7p{17sv5tv5ow}ck{4qs5kw5ow5qs17sv5tv}4l{4qs5kw5ow5qs17sv5tv}cm{4qs5kw5ow5qs17sv5tv}cn{4qs5kw5ow5qs17sv5tv}co{4qs5kw5ow5qs17sv5tv}cp{4qs5kw5ow5qs17sv5tv}6l{17sy5ty5ow}do{17st5tt}4z{17st5tt}7s{fst}dm{17st5tt}dn{17st5tt}5o{ckwclwcmwcnwcowcpw4lw4wv}dp{17st5tt}dq{17st5tt}7t{5ow}ds{17st5tt}5t{2ktclucmucnu4otcpu4lu4wycoucku}fu{17sv5tv5ow}6p{17sy5ty5ow5qs}ek{17sy5ty5ow}el{17sy5ty5ow}em{17sy5ty5ow}en{5ty}eo{17sy5ty5ow}ep{17sy5ty5ow}es{17sy5ty5qs}et{17sy5ty5ow5qs}eu{17sy5ty5ow5qs}ev{17sy5ty5ow5qs}6z{17sy5ty5ow5qs}fm{17sy5ty5ow5qs}fn{17sy5ty5ow5qs}fo{17sy5ty5ow5qs}fp{17sy5ty5qs}fq{17sy5ty5ow5qs}7r{5ow}fs{17sy5ty5ow5qs}ft{17sv5tv5ow}7m{5ow}fv{17sv5tv5ow}fw{17sv5tv5ow}}}")}};e.events.push(["addFont",function(p){var m=p.font,g=B.Unicode[m.postScriptName];g&&(m.metadata.Unicode={},m.metadata.Unicode.widths=g.widths,m.metadata.Unicode.kerning=g.kerning);var C=d.Unicode[m.postScriptName];C&&(m.metadata.Unicode.encoding=C,m.encoding=C.codePages[0])}])}($A.API),function(e){var A=function(t){for(var r=t.length,n=new Uint8Array(r),i=0;i<r;i++)n[i]=t.charCodeAt(i);return n};e.API.events.push(["addFont",function(t){var r=void 0,n=t.font,i=t.instance;if(!n.isStandardFont){if(i===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");if(typeof(r=i.existsFileInVFS(n.postScriptName)===!1?i.loadFile(n.postScriptName):i.getFileFromVFS(n.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+n.postScriptName+"').");(function(a,o){o=/^\x00\x01\x00\x00/.test(o)?A(o):A(wa(o)),a.metadata=e.API.TTFFont.open(o),a.metadata.Unicode=a.metadata.Unicode||{encoding:{},kerning:{},widths:[]},a.metadata.glyIdsUsed=[0]})(n,r)}}])}($A),function(e){function A(){return(te.canvg?Promise.resolve(te.canvg):wl(()=>import("./index.es-B3idowhG.js"),__vite__mapDeps([0,1,2,3,4,5,6]))).catch(function(t){return Promise.reject(new Error("Could not load canvg: "+t))}).then(function(t){return t.default?t.default:t})}$A.API.addSvgAsImage=function(t,r,n,i,a,o,c,d){if(isNaN(r)||isNaN(n))throw De.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(i)||isNaN(a))throw De.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var B=document.createElement("canvas");B.width=i,B.height=a;var p=B.getContext("2d");p.fillStyle="#fff",p.fillRect(0,0,B.width,B.height);var m={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},g=this;return A().then(function(C){return C.fromString(p,t,m)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(C){return C.render(m)}).then(function(){g.addImage(B.toDataURL("image/jpeg",1),r,n,i,a,c,d)})}}(),$A.API.putTotalPages=function(e){var A,t=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(A=new RegExp(e,"g"),t=this.internal.getNumberOfPages()):(A=new RegExp(this.pdfEscape16(e,this.internal.getFont()),"g"),t=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var n=0;n<this.internal.pages[r].length;n++)this.internal.pages[r][n]=this.internal.pages[r][n].replace(A,t);return this},$A.API.viewerPreferences=function(e,A){var t;e=e||{},A=A||!1;var r,n,i,a={HideToolbar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideMenubar:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},HideWindowUI:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},FitWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},CenterWindow:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.3},DisplayDocTitle:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.4},NonFullScreenPageMode:{defaultValue:"UseNone",value:"UseNone",type:"name",explicitSet:!1,valueSet:["UseNone","UseOutlines","UseThumbs","UseOC"],pdfVersion:1.3},Direction:{defaultValue:"L2R",value:"L2R",type:"name",explicitSet:!1,valueSet:["L2R","R2L"],pdfVersion:1.3},ViewArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},ViewClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintArea:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintClip:{defaultValue:"CropBox",value:"CropBox",type:"name",explicitSet:!1,valueSet:["MediaBox","CropBox","TrimBox","BleedBox","ArtBox"],pdfVersion:1.4},PrintScaling:{defaultValue:"AppDefault",value:"AppDefault",type:"name",explicitSet:!1,valueSet:["AppDefault","None"],pdfVersion:1.6},Duplex:{defaultValue:"",value:"none",type:"name",explicitSet:!1,valueSet:["Simplex","DuplexFlipShortEdge","DuplexFlipLongEdge","none"],pdfVersion:1.7},PickTrayByPDFSize:{defaultValue:!1,value:!1,type:"boolean",explicitSet:!1,valueSet:[!0,!1],pdfVersion:1.7},PrintPageRange:{defaultValue:"",value:"",type:"array",explicitSet:!1,valueSet:null,pdfVersion:1.7},NumCopies:{defaultValue:1,value:1,type:"integer",explicitSet:!1,valueSet:null,pdfVersion:1.7}},o=Object.keys(a),c=[],d=0,B=0,p=0;function m(C,v){var U,F=!1;for(U=0;U<C.length;U+=1)C[U]===v&&(F=!0);return F}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(a)),this.internal.viewerpreferences.isSubscribed=!1),t=this.internal.viewerpreferences.configuration,e==="reset"||A===!0){var g=o.length;for(p=0;p<g;p+=1)t[o[p]].value=t[o[p]].defaultValue,t[o[p]].explicitSet=!1}if(Te(e)==="object"){for(n in e)if(i=e[n],m(o,n)&&i!==void 0){if(t[n].type==="boolean"&&typeof i=="boolean")t[n].value=i;else if(t[n].type==="name"&&m(t[n].valueSet,i))t[n].value=i;else if(t[n].type==="integer"&&Number.isInteger(i))t[n].value=i;else if(t[n].type==="array"){for(d=0;d<i.length;d+=1)if(r=!0,i[d].length===1&&typeof i[d][0]=="number")c.push(String(i[d]-1));else if(i[d].length>1){for(B=0;B<i[d].length;B+=1)typeof i[d][B]!="number"&&(r=!1);r===!0&&c.push([i[d][0]-1,i[d][1]-1].join(" "))}t[n].value="["+c.join(" ")+"]"}else t[n].value=t[n].defaultValue;t[n].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var C,v=[];for(C in t)t[C].explicitSet===!0&&(t[C].type==="name"?v.push("/"+C+" /"+t[C].value):v.push("/"+C+" "+t[C].value));v.length!==0&&this.internal.write(`/ViewerPreferences << `+v.join(` `)+` >>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=t,this},function(e){var A=function(){var r='<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><rdf:Description rdf:about="" xmlns:jspdf="'+this.internal.__metadata__.namespaceuri+'"><jspdf:metadata>',n=unescape(encodeURIComponent('<x:xmpmeta xmlns:x="adobe:ns:meta/">')),i=unescape(encodeURIComponent(r)),a=unescape(encodeURIComponent(this.internal.__metadata__.metadata)),o=unescape(encodeURIComponent("</jspdf:metadata></rdf:Description></rdf:RDF>")),c=unescape(encodeURIComponent("</x:xmpmeta>")),d=i.length+a.length+o.length+n.length+c.length;this.internal.__metadata__.metadata_object_number=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+d+" >>"),this.internal.write("stream"),this.internal.write(n+i+a+o+c),this.internal.write("endstream"),this.internal.write("endobj")},t=function(){this.internal.__metadata__.metadata_object_number&&this.internal.write("/Metadata "+this.internal.__metadata__.metadata_object_number+" 0 R")};e.addMetadata=function(r,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:r,namespaceuri:n||"http://jspdf.default.namespaceuri/"},this.internal.events.subscribe("putCatalog",t),this.internal.events.subscribe("postPutResources",A)),this}}($A.API),function(e){var A=e.API,t=A.pdfEscape16=function(i,a){for(var o,c=a.metadata.Unicode.widths,d=["","0","00","000","0000"],B=[""],p=0,m=i.length;p<m;++p){if(o=a.metadata.characterToGlyph(i.charCodeAt(p)),a.metadata.glyIdsUsed.push(o),a.metadata.toUnicode[o]=i.charCodeAt(p),c.indexOf(o)==-1&&(c.push(o),c.push([parseInt(a.metadata.widthOfGlyph(o),10)])),o=="0")return B.join("");o=o.toString(16),B.push(d[4-o.length],o)}return B.join("")},r=function(i){var a,o,c,d,B,p,m;for(B=`/CIDInit /ProcSet findresource begin 12 dict begin begincmap /CIDSystemInfo << /Registry (Adobe) /Ordering (UCS) /Supplement 0 >> def /CMapName /Adobe-Identity-UCS def /CMapType 2 def 1 begincodespacerange <0000><ffff> endcodespacerange`,c=[],p=0,m=(o=Object.keys(i).sort(function(g,C){return g-C})).length;p<m;p++)a=o[p],c.length>=100&&(B+=` `+c.length+` beginbfchar `+c.join(` `)+` endbfchar`,c=[]),i[a]!==void 0&&i[a]!==null&&typeof i[a].toString=="function"&&(d=("0000"+i[a].toString(16)).slice(-4),a=("0000"+(+a).toString(16)).slice(-4),c.push("<"+a+"><"+d+">"));return c.length&&(B+=` `+c.length+` beginbfchar `+c.join(` `)+` endbfchar `),B+=`endcmap CMapName currentdict /CMap defineresource pop end end`};A.events.push(["putFont",function(i){(function(a){var o=a.font,c=a.out,d=a.newObject,B=a.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="Identity-H"){for(var p=o.metadata.Unicode.widths,m=o.metadata.subset.encode(o.metadata.glyIdsUsed,1),g="",C=0;C<m.length;C++)g+=String.fromCharCode(m[C]);var v=d();B({data:g,addLength1:!0,objectId:v}),c("endobj");var U=d();B({data:r(o.metadata.toUnicode),addLength1:!0,objectId:U}),c("endobj");var F=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+os(o.fontName)),c("/FontFile2 "+v+" 0 R"),c("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),c("/Flags "+o.metadata.flags),c("/StemV "+o.metadata.stemV),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c(">>"),c("endobj");var x=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+os(o.fontName)),c("/FontDescriptor "+F+" 0 R"),c("/W "+e.API.PDFObject.convert(p)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+o.encoding+")"),c(">>"),c(">>"),c("endobj"),o.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+U+" 0 R"),c("/BaseFont /"+os(o.fontName)),c("/Encoding /"+o.encoding),c("/DescendantFonts ["+x+" 0 R]"),c(">>"),c("endobj"),o.isAlreadyPutted=!0}})(i)}]),A.events.push(["putFont",function(i){(function(a){var o=a.font,c=a.out,d=a.newObject,B=a.putStream;if(o.metadata instanceof e.API.TTFFont&&o.encoding==="WinAnsiEncoding"){for(var p=o.metadata.rawData,m="",g=0;g<p.length;g++)m+=String.fromCharCode(p[g]);var C=d();B({data:m,addLength1:!0,objectId:C}),c("endobj");var v=d();B({data:r(o.metadata.toUnicode),addLength1:!0,objectId:v}),c("endobj");var U=d();c("<<"),c("/Descent "+o.metadata.decender),c("/CapHeight "+o.metadata.capHeight),c("/StemV "+o.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+C+" 0 R"),c("/Flags 96"),c("/FontBBox "+e.API.PDFObject.convert(o.metadata.bbox)),c("/FontName /"+os(o.fontName)),c("/ItalicAngle "+o.metadata.italicAngle),c("/Ascent "+o.metadata.ascender),c(">>"),c("endobj"),o.objectNumber=d();for(var F=0;F<o.metadata.hmtx.widths.length;F++)o.metadata.hmtx.widths[F]=parseInt(o.metadata.hmtx.widths[F]*(1e3/o.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+v+" 0 R/BaseFont/"+os(o.fontName)+"/FontDescriptor "+U+" 0 R/Encoding/"+o.encoding+" /FirstChar 29 /LastChar 255 /Widths "+e.API.PDFObject.convert(o.metadata.hmtx.widths)+">>"),c("endobj"),o.isAlreadyPutted=!0}})(i)}]);var n=function(i){var a,o=i.text||"",c=i.x,d=i.y,B=i.options||{},p=i.mutex||{},m=p.pdfEscape,g=p.activeFontKey,C=p.fonts,v=g,U="",F=0,x="",N=C[v].encoding;if(C[v].encoding!=="Identity-H")return{text:o,x:c,y:d,options:B,mutex:p};for(x=o,v=g,Array.isArray(o)&&(x=o[0]),F=0;F<x.length;F+=1)C[v].metadata.hasOwnProperty("cmap")&&(a=C[v].metadata.cmap.unicode.codeMap[x[F].charCodeAt(0)]),a||x[F].charCodeAt(0)<256&&C[v].metadata.hasOwnProperty("Unicode")?U+=x[F]:U+="";var V="";return parseInt(v.slice(1))<14||N==="WinAnsiEncoding"?V=m(U,v).split("").map(function(q){return q.charCodeAt(0).toString(16)}).join(""):N==="Identity-H"&&(V=t(U,C[v])),p.isHex=!0,{text:V,x:c,y:d,options:B,mutex:p}};A.events.push(["postProcessText",function(i){var a=i.text||"",o=[],c={text:a,x:i.x,y:i.y,options:i.options,mutex:i.mutex};if(Array.isArray(a)){var d=0;for(d=0;d<a.length;d+=1)Array.isArray(a[d])&&a[d].length===3?o.push([n(Object.assign({},c,{text:a[d][0]})).text,a[d][1],a[d][2]]):o.push(n(Object.assign({},c,{text:a[d]})).text);i.text=o}else i.text=n(Object.assign({},c,{text:a})).text}])}($A),function(e){var A=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};e.existsFileInVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0},e.addFileToVFS=function(t,r){return A.call(this),this.internal.vFS[t]=r,this},e.getFileFromVFS=function(t){return A.call(this),this.internal.vFS[t]!==void 0?this.internal.vFS[t]:null}}($A.API),function(e){e.__bidiEngine__=e.prototype.__bidiEngine__=function(r){var n,i,a,o,c,d,B,p=A,m=[[0,3,0,1,0,0,0],[0,3,0,1,2,2,0],[0,3,0,17,2,0,1],[0,3,5,5,4,1,0],[0,3,21,21,4,0,1],[0,3,5,5,4,2,0]],g=[[2,0,1,1,0,1,0],[2,0,1,1,0,2,0],[2,0,2,1,3,2,0],[2,0,2,33,3,1,1]],C={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},v={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},U=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],F=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),x=!1,N=0;this.__bidiEngine__={};var V=function(_){var L=_.charCodeAt(),D=L>>8,O=v[D];return O!==void 0?p[256*O+(255&L)]:D===252||D===253?"AL":F.test(D)?"L":D===8?"R":"N"},q=function(_){for(var L,D=0;D<_.length;D++){if((L=V(_.charAt(D)))==="L")return!1;if(L==="R")return!0}return!1},Y=function(_,L,D,O){var nA,sA,oA,tA,cA=L[O];switch(cA){case"L":case"R":x=!1;break;case"N":case"AN":break;case"EN":x&&(cA="AN");break;case"AL":x=!0,cA="R";break;case"WS":cA="N";break;case"CS":O<1||O+1>=L.length||(nA=D[O-1])!=="EN"&&nA!=="AN"||(sA=L[O+1])!=="EN"&&sA!=="AN"?cA="N":x&&(sA="AN"),cA=sA===nA?sA:"N";break;case"ES":cA=(nA=O>0?D[O-1]:"B")==="EN"&&O+1<L.length&&L[O+1]==="EN"?"EN":"N";break;case"ET":if(O>0&&D[O-1]==="EN"){cA="EN";break}if(x){cA="N";break}for(oA=O+1,tA=L.length;oA<tA&&L[oA]==="ET";)oA++;cA=oA<tA&&L[oA]==="EN"?"EN":"N";break;case"NSM":if(a&&!o){for(tA=L.length,oA=O+1;oA<tA&&L[oA]==="NSM";)oA++;if(oA<tA){var z=_[O],BA=z>=1425&&z<=2303||z===64286;if(nA=L[oA],BA&&(nA==="R"||nA==="AL")){cA="R";break}}}cA=O<1||(nA=L[O-1])==="B"?"N":D[O-1];break;case"B":x=!1,n=!0,cA=N;break;case"S":i=!0,cA="N";break;case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":x=!1;break;case"BN":cA="N"}return cA},W=function(_,L,D){var O=_.split("");return D&&R(O,D,{hiLevel:N}),O.reverse(),L&&L.reverse(),O.join("")},R=function(_,L,D){var O,nA,sA,oA,tA,cA=-1,z=_.length,BA=0,Q=[],j=N?g:m,P=[];for(x=!1,n=!1,i=!1,nA=0;nA<z;nA++)P[nA]=V(_[nA]);for(sA=0;sA<z;sA++){if(tA=BA,Q[sA]=Y(_,P,Q,sA),O=240&(BA=j[tA][C[Q[sA]]]),BA&=15,L[sA]=oA=j[BA][5],O>0)if(O===16){for(nA=cA;nA<sA;nA++)L[nA]=1;cA=-1}else cA=-1;if(j[BA][6])cA===-1&&(cA=sA);else if(cA>-1){for(nA=cA;nA<sA;nA++)L[nA]=oA;cA=-1}P[sA]==="B"&&(L[sA]=0),D.hiLevel|=oA}i&&function(G,X,eA){for(var uA=0;uA<eA;uA++)if(G[uA]==="S"){X[uA]=N;for(var aA=uA-1;aA>=0&&G[aA]==="WS";aA--)X[aA]=N}}(P,L,z)},k=function(_,L,D,O,nA){if(!(nA.hiLevel<_)){if(_===1&&N===1&&!n)return L.reverse(),void(D&&D.reverse());for(var sA,oA,tA,cA,z=L.length,BA=0;BA<z;){if(O[BA]>=_){for(tA=BA+1;tA<z&&O[tA]>=_;)tA++;for(cA=BA,oA=tA-1;cA<oA;cA++,oA--)sA=L[cA],L[cA]=L[oA],L[oA]=sA,D&&(sA=D[cA],D[cA]=D[oA],D[oA]=sA);BA=tA}BA++}}},$=function(_,L,D){var O=_.split(""),nA={hiLevel:N};return D||(D=[]),R(O,D,nA),function(sA,oA,tA){if(tA.hiLevel!==0&&B)for(var cA,z=0;z<sA.length;z++)oA[z]===1&&(cA=U.indexOf(sA[z]))>=0&&(sA[z]=U[cA+1])}(O,D,nA),k(2,O,L,D,nA),k(1,O,L,D,nA),O.join("")};return this.__bidiEngine__.doBidiReorder=function(_,L,D){if(function(nA,sA){if(sA)for(var oA=0;oA<nA.length;oA++)sA[oA]=oA;o===void 0&&(o=q(nA)),d===void 0&&(d=q(nA))}(_,L),a||!c||d)if(a&&c&&o^d)N=o?1:0,_=W(_,L,D);else if(!a&&c&&d)N=o?1:0,_=$(_,L,D),_=W(_,L);else if(!a||o||c||d){if(a&&!c&&o^d)_=W(_,L),o?(N=0,_=$(_,L,D)):(N=1,_=$(_,L,D),_=W(_,L));else if(a&&o&&!c&&d)N=1,_=$(_,L,D),_=W(_,L);else if(!a&&!c&&o^d){var O=B;o?(N=1,_=$(_,L,D),N=0,B=!1,_=$(_,L,D),B=O):(N=0,_=$(_,L,D),_=W(_,L),N=1,B=!1,_=$(_,L,D),B=O,_=W(_,L))}}else N=0,_=$(_,L,D);else N=o?1:0,_=$(_,L,D);return _},this.__bidiEngine__.setOptions=function(_){_&&(a=_.isInputVisual,c=_.isOutputVisual,o=_.isInputRtl,d=_.isOutputRtl,B=_.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var A=["BN","BN","BN","BN","BN","BN","BN","BN","BN","S","B","S","WS","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","B","B","B","S","WS","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","BN","BN","BN","BN","BN","BN","B","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","BN","CS","N","ET","ET","ET","ET","N","N","N","N","L","N","N","BN","N","N","ET","ET","EN","EN","N","L","N","N","N","EN","L","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","L","L","L","L","L","L","L","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","L","N","N","N","N","N","ET","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","NSM","R","NSM","NSM","R","NSM","NSM","R","NSM","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","N","N","N","N","N","R","R","R","R","R","N","N","N","N","N","N","N","N","N","N","N","AN","AN","AN","AN","AN","AN","N","N","AL","ET","ET","AL","CS","AL","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","AN","AN","AN","AN","AN","AN","AN","AN","AN","ET","AN","AN","AL","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AN","N","NSM","NSM","NSM","NSM","NSM","NSM","AL","AL","NSM","NSM","N","NSM","NSM","NSM","NSM","AL","AL","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","AL","AL","NSM","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","R","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","R","R","N","N","N","N","R","N","N","N","N","N","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","WS","BN","BN","BN","L","R","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","B","LRE","RLE","PDF","LRO","RLO","CS","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","WS","BN","BN","BN","BN","BN","N","LRI","RLI","FSI","PDI","BN","BN","BN","BN","BN","BN","EN","L","N","N","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","L","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","ES","ES","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","N","N","N","N","N","R","NSM","R","R","R","R","R","R","R","R","R","R","ES","R","R","R","R","R","R","R","R","R","R","R","R","R","N","R","R","R","R","R","N","R","N","R","R","N","R","R","N","R","R","R","R","R","R","R","R","R","R","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","NSM","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","CS","N","CS","N","N","CS","N","N","N","N","N","N","N","N","N","ET","N","N","ES","ES","N","N","N","N","N","ET","ET","N","N","N","N","N","AL","AL","AL","AL","AL","N","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","AL","N","N","BN","N","N","N","ET","ET","ET","N","N","N","N","N","ES","CS","ES","CS","CS","EN","EN","EN","EN","EN","EN","EN","EN","EN","EN","CS","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","N","N","N","N","N","N","N","N","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","L","N","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","L","L","L","N","N","L","L","L","N","N","N","ET","ET","N","N","N","ET","ET","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N","N"],t=new e.__bidiEngine__({isInputVisual:!0});e.API.events.push(["postProcessText",function(r){var n=r.text;r.x,r.y;var i=r.options||{};r.mutex,i.lang;var a=[];if(i.isInputVisual=typeof i.isInputVisual!="boolean"||i.isInputVisual,t.setOptions(i),Object.prototype.toString.call(n)==="[object Array]"){var o=0;for(a=[],o=0;o<n.length;o+=1)Object.prototype.toString.call(n[o])==="[object Array]"?a.push([t.doBidiReorder(n[o][0]),n[o][1],n[o][2]]):a.push([t.doBidiReorder(n[o])]);r.text=a}else r.text=t.doBidiReorder(n);t.setOptions({isInputVisual:!0})}])}($A),$A.API.TTFFont=function(){function e(A){var t;if(this.rawData=A,t=this.contents=new Jn(A),this.contents.pos=4,t.readString(4)==="ttcf")throw new Error("TTCF not supported.");t.pos=0,this.parse(),this.subset=new S0(this),this.registerTTF()}return e.open=function(A){return new e(A)},e.prototype.parse=function(){return this.directory=new d0(this.contents),this.head=new p0(this),this.name=new C0(this),this.cmap=new rg(this),this.toUnicode={},this.hhea=new B0(this),this.maxp=new b0(this),this.hmtx=new y0(this),this.post=new m0(this),this.os2=new w0(this),this.loca=new U0(this),this.glyf=new F0(this),this.ascender=this.os2.exists&&this.os2.ascender||this.hhea.ascender,this.decender=this.os2.exists&&this.os2.decender||this.hhea.decender,this.lineGap=this.os2.exists&&this.os2.lineGap||this.hhea.lineGap,this.bbox=[this.head.xMin,this.head.yMin,this.head.xMax,this.head.yMax]},e.prototype.registerTTF=function(){var A,t,r,n,i;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=function(){var a,o,c,d;for(d=[],a=0,o=(c=this.bbox).length;a<o;a++)A=c[a],d.push(Math.round(A*this.scaleFactor));return d}.call(this),this.stemV=0,this.post.exists?(r=255&(n=this.post.italic_angle),(32768&(t=n>>16))!=0&&(t=-(1+(65535^t))),this.italicAngle=+(t+"."+r)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(i=this.familyClass)===1||i===2||i===3||i===4||i===5||i===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},e.prototype.characterToGlyph=function(A){var t;return((t=this.cmap.unicode)!=null?t.codeMap[A]:void 0)||0},e.prototype.widthOfGlyph=function(A){var t;return t=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(A).advance*t},e.prototype.widthOfString=function(A,t,r){var n,i,a,o;for(a=0,i=0,o=(A=""+A).length;0<=o?i<o:i>o;i=0<=o?++i:--i)n=A.charCodeAt(i),a+=this.widthOfGlyph(this.characterToGlyph(n))+r*(1e3/t)||0;return a*(t/1e3)},e.prototype.lineHeight=function(A,t){var r;return t==null&&(t=!1),r=t?this.lineGap:0,(this.ascender+r-this.decender)/1e3*A},e}();var Pr,Jn=function(){function e(A){this.data=A??[],this.pos=0,this.length=this.data.length}return e.prototype.readByte=function(){return this.data[this.pos++]},e.prototype.writeByte=function(A){return this.data[this.pos++]=A},e.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},e.prototype.writeUInt32=function(A){return this.writeByte(A>>>24&255),this.writeByte(A>>16&255),this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt32=function(){var A;return(A=this.readUInt32())>=2147483648?A-4294967296:A},e.prototype.writeInt32=function(A){return A<0&&(A+=4294967296),this.writeUInt32(A)},e.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},e.prototype.writeUInt16=function(A){return this.writeByte(A>>8&255),this.writeByte(255&A)},e.prototype.readInt16=function(){var A;return(A=this.readUInt16())>=32768?A-65536:A},e.prototype.writeInt16=function(A){return A<0&&(A+=65536),this.writeUInt16(A)},e.prototype.readString=function(A){var t,r;for(r=[],t=0;0<=A?t<A:t>A;t=0<=A?++t:--t)r[t]=String.fromCharCode(this.readByte());return r.join("")},e.prototype.writeString=function(A){var t,r,n;for(n=[],t=0,r=A.length;0<=r?t<r:t>r;t=0<=r?++t:--t)n.push(this.writeByte(A.charCodeAt(t)));return n},e.prototype.readShort=function(){return this.readInt16()},e.prototype.writeShort=function(A){return this.writeInt16(A)},e.prototype.readLongLong=function(){var A,t,r,n,i,a,o,c;return A=this.readByte(),t=this.readByte(),r=this.readByte(),n=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),c=this.readByte(),128&A?-1*(72057594037927940*(255^A)+281474976710656*(255^t)+1099511627776*(255^r)+4294967296*(255^n)+16777216*(255^i)+65536*(255^a)+256*(255^o)+(255^c)+1):72057594037927940*A+281474976710656*t+1099511627776*r+4294967296*n+16777216*i+65536*a+256*o+c},e.prototype.writeLongLong=function(A){var t,r;return t=Math.floor(A/4294967296),r=4294967295&A,this.writeByte(t>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},e.prototype.readInt=function(){return this.readInt32()},e.prototype.writeInt=function(A){return this.writeInt32(A)},e.prototype.read=function(A){var t,r;for(t=[],r=0;0<=A?r<A:r>A;r=0<=A?++r:--r)t.push(this.readByte());return t},e.prototype.write=function(A){var t,r,n,i;for(i=[],r=0,n=A.length;r<n;r++)t=A[r],i.push(this.writeByte(t));return i},e}(),d0=function(){var e;function A(t){var r,n,i;for(this.scalarType=t.readInt(),this.tableCount=t.readShort(),this.searchRange=t.readShort(),this.entrySelector=t.readShort(),this.rangeShift=t.readShort(),this.tables={},n=0,i=this.tableCount;0<=i?n<i:n>i;n=0<=i?++n:--n)r={tag:t.readString(4),checksum:t.readInt(),offset:t.readInt(),length:t.readInt()},this.tables[r.tag]=r}return A.prototype.encode=function(t){var r,n,i,a,o,c,d,B,p,m,g,C,v;for(v in g=Object.keys(t).length,c=Math.log(2),p=16*Math.floor(Math.log(g)/c),a=Math.floor(p/c),B=16*g-p,(n=new Jn).writeInt(this.scalarType),n.writeShort(g),n.writeShort(p),n.writeShort(a),n.writeShort(B),i=16*g,d=n.pos+i,o=null,C=[],t)for(m=t[v],n.writeString(v),n.writeInt(e(m)),n.writeInt(d),n.writeInt(m.length),C=C.concat(m),v==="head"&&(o=d),d+=m.length;d%4;)C.push(0),d++;return n.write(C),r=2981146554-e(n.data),n.pos=o+8,n.writeUInt32(r),n.data},e=function(t){var r,n,i,a;for(t=ng.call(t);t.length%4;)t.push(0);for(i=new Jn(t),n=0,r=0,a=t.length;r<a;r=r+=4)n+=i.readUInt32();return 4294967295&n},A}(),g0={}.hasOwnProperty,tn=function(e,A){for(var t in A)g0.call(A,t)&&(e[t]=A[t]);function r(){this.constructor=e}return r.prototype=A.prototype,e.prototype=new r,e.__super__=A.prototype,e};Pr=function(){function e(A){var t;this.file=A,t=this.file.directory.tables[this.tag],this.exists=!!t,t&&(this.offset=t.offset,this.length=t.length,this.parse(this.file.contents))}return e.prototype.parse=function(){},e.prototype.encode=function(){},e.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},e}();var p0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="head",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.revision=t.readInt(),this.checkSumAdjustment=t.readInt(),this.magicNumber=t.readInt(),this.flags=t.readShort(),this.unitsPerEm=t.readShort(),this.created=t.readLongLong(),this.modified=t.readLongLong(),this.xMin=t.readShort(),this.yMin=t.readShort(),this.xMax=t.readShort(),this.yMax=t.readShort(),this.macStyle=t.readShort(),this.lowestRecPPEM=t.readShort(),this.fontDirectionHint=t.readShort(),this.indexToLocFormat=t.readShort(),this.glyphDataFormat=t.readShort()},A.prototype.encode=function(t){var r;return(r=new Jn).writeInt(this.version),r.writeInt(this.revision),r.writeInt(this.checkSumAdjustment),r.writeInt(this.magicNumber),r.writeShort(this.flags),r.writeShort(this.unitsPerEm),r.writeLongLong(this.created),r.writeLongLong(this.modified),r.writeShort(this.xMin),r.writeShort(this.yMin),r.writeShort(this.xMax),r.writeShort(this.yMax),r.writeShort(this.macStyle),r.writeShort(this.lowestRecPPEM),r.writeShort(this.fontDirectionHint),r.writeShort(t),r.writeShort(this.glyphDataFormat),r.data},A}(),bf=function(){function e(A,t){var r,n,i,a,o,c,d,B,p,m,g,C,v,U,F,x,N;switch(this.platformID=A.readUInt16(),this.encodingID=A.readShort(),this.offset=t+A.readInt(),p=A.pos,A.pos=this.offset,this.format=A.readUInt16(),this.length=A.readUInt16(),this.language=A.readUInt16(),this.isUnicode=this.platformID===3&&this.encodingID===1&&this.format===4||this.platformID===0&&this.format===4,this.codeMap={},this.format){case 0:for(c=0;c<256;++c)this.codeMap[c]=A.readByte();break;case 4:for(g=A.readUInt16(),m=g/2,A.pos+=6,i=function(){var V,q;for(q=[],c=V=0;0<=m?V<m:V>m;c=0<=m?++V:--V)q.push(A.readUInt16());return q}(),A.pos+=2,v=function(){var V,q;for(q=[],c=V=0;0<=m?V<m:V>m;c=0<=m?++V:--V)q.push(A.readUInt16());return q}(),d=function(){var V,q;for(q=[],c=V=0;0<=m?V<m:V>m;c=0<=m?++V:--V)q.push(A.readUInt16());return q}(),B=function(){var V,q;for(q=[],c=V=0;0<=m?V<m:V>m;c=0<=m?++V:--V)q.push(A.readUInt16());return q}(),n=(this.length-A.pos+this.offset)/2,o=function(){var V,q;for(q=[],c=V=0;0<=n?V<n:V>n;c=0<=n?++V:--V)q.push(A.readUInt16());return q}(),c=F=0,N=i.length;F<N;c=++F)for(U=i[c],r=x=C=v[c];C<=U?x<=U:x>=U;r=C<=U?++x:--x)B[c]===0?a=r+d[c]:(a=o[B[c]/2+(r-C)-(m-c)]||0)!==0&&(a+=d[c]),this.codeMap[r]=65535&a}A.pos=p}return e.encode=function(A,t){var r,n,i,a,o,c,d,B,p,m,g,C,v,U,F,x,N,V,q,Y,W,R,k,$,_,L,D,O,nA,sA,oA,tA,cA,z,BA,Q,j,P,G,X,eA,uA,aA,wA,bA,SA;switch(O=new Jn,a=Object.keys(A).sort(function(EA,XA){return EA-XA}),t){case"macroman":for(v=0,U=function(){var EA=[];for(C=0;C<256;++C)EA.push(0);return EA}(),x={0:0},i={},nA=0,cA=a.length;nA<cA;nA++)x[aA=A[n=a[nA]]]==null&&(x[aA]=++v),i[n]={old:A[n],new:x[A[n]]},U[n]=x[A[n]];return O.writeUInt16(1),O.writeUInt16(0),O.writeUInt32(12),O.writeUInt16(0),O.writeUInt16(262),O.writeUInt16(0),O.write(U),{charMap:i,subtable:O.data,maxGlyphID:v+1};case"unicode":for(L=[],p=[],N=0,x={},r={},F=d=null,sA=0,z=a.length;sA<z;sA++)x[q=A[n=a[sA]]]==null&&(x[q]=++N),r[n]={old:q,new:x[q]},o=x[q]-n,F!=null&&o===d||(F&&p.push(F),L.push(n),d=o),F=n;for(F&&p.push(F),p.push(65535),L.push(65535),$=2*(k=L.length),R=2*Math.pow(Math.log(k)/Math.LN2,2),m=Math.log(R/2)/Math.LN2,W=2*k-R,c=[],Y=[],g=[],C=oA=0,BA=L.length;oA<BA;C=++oA){if(_=L[C],B=p[C],_===65535){c.push(0),Y.push(0);break}if(_-(D=r[_].new)>=32768)for(c.push(0),Y.push(2*(g.length+k-C)),n=tA=_;_<=B?tA<=B:tA>=B;n=_<=B?++tA:--tA)g.push(r[n].new);else c.push(D-_),Y.push(0)}for(O.writeUInt16(3),O.writeUInt16(1),O.writeUInt32(12),O.writeUInt16(4),O.writeUInt16(16+8*k+2*g.length),O.writeUInt16(0),O.writeUInt16($),O.writeUInt16(R),O.writeUInt16(m),O.writeUInt16(W),eA=0,Q=p.length;eA<Q;eA++)n=p[eA],O.writeUInt16(n);for(O.writeUInt16(0),uA=0,j=L.length;uA<j;uA++)n=L[uA],O.writeUInt16(n);for(wA=0,P=c.length;wA<P;wA++)o=c[wA],O.writeUInt16(o);for(bA=0,G=Y.length;bA<G;bA++)V=Y[bA],O.writeUInt16(V);for(SA=0,X=g.length;SA<X;SA++)v=g[SA],O.writeUInt16(v);return{charMap:r,subtable:O.data,maxGlyphID:N+1}}},e}(),rg=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="cmap",A.prototype.parse=function(t){var r,n,i;for(t.pos=this.offset,this.version=t.readUInt16(),i=t.readUInt16(),this.tables=[],this.unicode=null,n=0;0<=i?n<i:n>i;n=0<=i?++n:--n)r=new bf(t,this.offset),this.tables.push(r),r.isUnicode&&this.unicode==null&&(this.unicode=r);return!0},A.encode=function(t,r){var n,i;return r==null&&(r="macroman"),n=bf.encode(t,r),(i=new Jn).writeUInt16(0),i.writeUInt16(1),n.table=i.data.concat(n.subtable),n},A}(),B0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="hhea",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.ascender=t.readShort(),this.decender=t.readShort(),this.lineGap=t.readShort(),this.advanceWidthMax=t.readShort(),this.minLeftSideBearing=t.readShort(),this.minRightSideBearing=t.readShort(),this.xMaxExtent=t.readShort(),this.caretSlopeRise=t.readShort(),this.caretSlopeRun=t.readShort(),this.caretOffset=t.readShort(),t.pos+=8,this.metricDataFormat=t.readShort(),this.numberOfMetrics=t.readUInt16()},A}(),w0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="OS/2",A.prototype.parse=function(t){if(t.pos=this.offset,this.version=t.readUInt16(),this.averageCharWidth=t.readShort(),this.weightClass=t.readUInt16(),this.widthClass=t.readUInt16(),this.type=t.readShort(),this.ySubscriptXSize=t.readShort(),this.ySubscriptYSize=t.readShort(),this.ySubscriptXOffset=t.readShort(),this.ySubscriptYOffset=t.readShort(),this.ySuperscriptXSize=t.readShort(),this.ySuperscriptYSize=t.readShort(),this.ySuperscriptXOffset=t.readShort(),this.ySuperscriptYOffset=t.readShort(),this.yStrikeoutSize=t.readShort(),this.yStrikeoutPosition=t.readShort(),this.familyClass=t.readShort(),this.panose=function(){var r,n;for(n=[],r=0;r<10;++r)n.push(t.readByte());return n}(),this.charRange=function(){var r,n;for(n=[],r=0;r<4;++r)n.push(t.readInt());return n}(),this.vendorID=t.readString(4),this.selection=t.readShort(),this.firstCharIndex=t.readShort(),this.lastCharIndex=t.readShort(),this.version>0&&(this.ascent=t.readShort(),this.descent=t.readShort(),this.lineGap=t.readShort(),this.winAscent=t.readShort(),this.winDescent=t.readShort(),this.codePageRange=function(){var r,n;for(n=[],r=0;r<2;r=++r)n.push(t.readInt());return n}(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},A}(),m0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="post",A.prototype.parse=function(t){var r,n,i;switch(t.pos=this.offset,this.format=t.readInt(),this.italicAngle=t.readInt(),this.underlinePosition=t.readShort(),this.underlineThickness=t.readShort(),this.isFixedPitch=t.readInt(),this.minMemType42=t.readInt(),this.maxMemType42=t.readInt(),this.minMemType1=t.readInt(),this.maxMemType1=t.readInt(),this.format){case 65536:break;case 131072:var a;for(n=t.readUInt16(),this.glyphNameIndex=[],a=0;0<=n?a<n:a>n;a=0<=n?++a:--a)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],i=[];t.pos<this.offset+this.length;)r=t.readByte(),i.push(this.names.push(t.readString(r)));return i;case 151552:return n=t.readUInt16(),this.offsets=t.read(n);case 196608:break;case 262144:return this.map=function(){var o,c,d;for(d=[],a=o=0,c=this.file.maxp.numGlyphs;0<=c?o<c:o>c;a=0<=c?++o:--o)d.push(t.readUInt32());return d}.call(this)}},A}(),v0=function(e,A){this.raw=e,this.length=e.length,this.platformID=A.platformID,this.encodingID=A.encodingID,this.languageID=A.languageID},C0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="name",A.prototype.parse=function(t){var r,n,i,a,o,c,d,B,p,m,g;for(t.pos=this.offset,t.readShort(),r=t.readShort(),c=t.readShort(),n=[],a=0;0<=r?a<r:a>r;a=0<=r?++a:--a)n.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+c+t.readShort()});for(d={},a=p=0,m=n.length;p<m;a=++p)i=n[a],t.pos=i.offset,B=t.readString(i.length),o=new v0(B,i),d[g=i.nameID]==null&&(d[g]=[]),d[i.nameID].push(o);this.strings=d,this.copyright=d[0],this.fontFamily=d[1],this.fontSubfamily=d[2],this.uniqueSubfamily=d[3],this.fontName=d[4],this.version=d[5];try{this.postscriptName=d[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=d[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=d[7],this.manufacturer=d[8],this.designer=d[9],this.description=d[10],this.vendorUrl=d[11],this.designerUrl=d[12],this.license=d[13],this.licenseUrl=d[14],this.preferredFamily=d[15],this.preferredSubfamily=d[17],this.compatibleFull=d[18],this.sampleText=d[19]},A}(),b0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="maxp",A.prototype.parse=function(t){return t.pos=this.offset,this.version=t.readInt(),this.numGlyphs=t.readUInt16(),this.maxPoints=t.readUInt16(),this.maxContours=t.readUInt16(),this.maxCompositePoints=t.readUInt16(),this.maxComponentContours=t.readUInt16(),this.maxZones=t.readUInt16(),this.maxTwilightPoints=t.readUInt16(),this.maxStorage=t.readUInt16(),this.maxFunctionDefs=t.readUInt16(),this.maxInstructionDefs=t.readUInt16(),this.maxStackElements=t.readUInt16(),this.maxSizeOfInstructions=t.readUInt16(),this.maxComponentElements=t.readUInt16(),this.maxComponentDepth=t.readUInt16()},A}(),y0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="hmtx",A.prototype.parse=function(t){var r,n,i,a,o,c,d;for(t.pos=this.offset,this.metrics=[],r=0,c=this.file.hhea.numberOfMetrics;0<=c?r<c:r>c;r=0<=c?++r:--r)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(i=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=function(){var B,p;for(p=[],r=B=0;0<=i?B<i:B>i;r=0<=i?++B:--B)p.push(t.readInt16());return p}(),this.widths=function(){var B,p,m,g;for(g=[],B=0,p=(m=this.metrics).length;B<p;B++)a=m[B],g.push(a.advance);return g}.call(this),n=this.widths[this.widths.length-1],d=[],r=o=0;0<=i?o<i:o>i;r=0<=i?++o:--o)d.push(this.widths.push(n));return d},A.prototype.forGlyph=function(t){return t in this.metrics?this.metrics[t]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[t-this.metrics.length]}},A}(),ng=[].slice,F0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="glyf",A.prototype.parse=function(){return this.cache={}},A.prototype.glyphFor=function(t){var r,n,i,a,o,c,d,B,p,m;return t in this.cache?this.cache[t]:(a=this.file.loca,r=this.file.contents,n=a.indexOf(t),(i=a.lengthOf(t))===0?this.cache[t]=null:(r.pos=this.offset+n,o=(c=new Jn(r.read(i))).readShort(),B=c.readShort(),m=c.readShort(),d=c.readShort(),p=c.readShort(),this.cache[t]=o===-1?new x0(c,B,m,d,p):new Q0(c,o,B,m,d,p),this.cache[t]))},A.prototype.encode=function(t,r,n){var i,a,o,c,d;for(o=[],a=[],c=0,d=r.length;c<d;c++)i=t[r[c]],a.push(o.length),i&&(o=o.concat(i.encode(n)));return a.push(o.length),{table:o,offsets:a}},A}(),Q0=function(){function e(A,t,r,n,i,a){this.raw=A,this.numberOfContours=t,this.xMin=r,this.yMin=n,this.xMax=i,this.yMax=a,this.compound=!1}return e.prototype.encode=function(){return this.raw.data},e}(),x0=function(){function e(A,t,r,n,i){var a,o;for(this.raw=A,this.xMin=t,this.yMin=r,this.xMax=n,this.yMax=i,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],a=this.raw;o=a.readShort(),this.glyphOffsets.push(a.pos),this.glyphIDs.push(a.readUInt16()),32&o;)a.pos+=1&o?4:2,128&o?a.pos+=8:64&o?a.pos+=4:8&o&&(a.pos+=2)}return e.prototype.encode=function(){var A,t,r;for(t=new Jn(ng.call(this.raw.data)),A=0,r=this.glyphIDs.length;A<r;++A)t.pos=this.glyphOffsets[A];return t.data},e}(),U0=function(e){function A(){return A.__super__.constructor.apply(this,arguments)}return tn(A,Pr),A.prototype.tag="loca",A.prototype.parse=function(t){var r,n;return t.pos=this.offset,r=this.file.head.indexToLocFormat,this.offsets=r===0?function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=2)a.push(2*t.readUInt16());return a}.call(this):function(){var i,a;for(a=[],n=0,i=this.length;n<i;n+=4)a.push(t.readUInt32());return a}.call(this)},A.prototype.indexOf=function(t){return this.offsets[t]},A.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]},A.prototype.encode=function(t,r){for(var n=new Uint32Array(this.offsets.length),i=0,a=0,o=0;o<n.length;++o)if(n[o]=i,a<r.length&&r[a]==o){++a,n[o]=i;var c=this.offsets[o],d=this.offsets[o+1]-c;d>0&&(i+=d)}for(var B=new Array(4*n.length),p=0;p<n.length;++p)B[4*p+3]=255&n[p],B[4*p+2]=(65280&n[p])>>8,B[4*p+1]=(16711680&n[p])>>16,B[4*p]=(4278190080&n[p])>>24;return B},A}(),S0=function(){function e(A){this.font=A,this.subset={},this.unicodes={},this.next=33}return e.prototype.generateCmap=function(){var A,t,r,n,i;for(t in n=this.font.cmap.tables[0].codeMap,A={},i=this.subset)r=i[t],A[t]=n[r];return A},e.prototype.glyphsFor=function(A){var t,r,n,i,a,o,c;for(n={},a=0,o=A.length;a<o;a++)n[i=A[a]]=this.font.glyf.glyphFor(i);for(i in t=[],n)(r=n[i])!=null&&r.compound&&t.push.apply(t,r.glyphIDs);if(t.length>0)for(i in c=this.glyphsFor(t))r=c[i],n[i]=r;return n},e.prototype.encode=function(A,t){var r,n,i,a,o,c,d,B,p,m,g,C,v,U,F;for(n in r=rg.encode(this.generateCmap(),"unicode"),a=this.glyphsFor(A),g={0:0},F=r.charMap)g[(c=F[n]).old]=c.new;for(C in m=r.maxGlyphID,a)C in g||(g[C]=m++);return B=function(x){var N,V;for(N in V={},x)V[x[N]]=N;return V}(g),p=Object.keys(B).sort(function(x,N){return x-N}),v=function(){var x,N,V;for(V=[],x=0,N=p.length;x<N;x++)o=p[x],V.push(B[o]);return V}(),i=this.font.glyf.encode(a,v,g),d=this.font.loca.encode(i.offsets,v),U={cmap:this.font.cmap.raw(),glyf:i.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(t)},this.font.os2.exists&&(U["OS/2"]=this.font.os2.raw()),this.font.directory.encode(U)},e}();$A.API.PDFObject=function(){var e;function A(){}return e=function(t,r){return(Array(r+1).join("0")+t).slice(-r)},A.convert=function(t){var r,n,i,a;if(Array.isArray(t))return"["+function(){var o,c,d;for(d=[],o=0,c=t.length;o<c;o++)r=t[o],d.push(A.convert(r));return d}().join(" ")+"]";if(typeof t=="string")return"/"+t;if(t?.isString)return"("+t+")";if(t instanceof Date)return"(D:"+e(t.getUTCFullYear(),4)+e(t.getUTCMonth(),2)+e(t.getUTCDate(),2)+e(t.getUTCHours(),2)+e(t.getUTCMinutes(),2)+e(t.getUTCSeconds(),2)+"Z)";if({}.toString.call(t)==="[object Object]"){for(n in i=["<<"],t)a=t[n],i.push("/"+n+" "+A.convert(a));return i.push(">>"),i.join(` `)}return""+t},A}();/*! * html2canvas 1.4.1 <https://html2canvas.hertzen.com> * Copyright (c) 2022 Niklas von Hertzen <https://hertzen.com> * Released under MIT License *//*! ***************************************************************************** Copyright (c) Microsoft Corporation. Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted. THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. ***************************************************************************** */var Lu=function(e,A){return Lu=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])},Lu(e,A)};function Mr(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");Lu(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var Iu=function(){return Iu=Object.assign||function(A){for(var t,r=1,n=arguments.length;r<n;r++){t=arguments[r];for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(A[i]=t[i])}return A},Iu.apply(this,arguments)};function Vt(e,A,t,r){function n(i){return i instanceof t?i:new t(function(a){a(i)})}return new(t||(t=Promise))(function(i,a){function o(B){try{d(r.next(B))}catch(p){a(p)}}function c(B){try{d(r.throw(B))}catch(p){a(p)}}function d(B){B.done?i(B.value):n(B.value).then(o,c)}d((r=r.apply(e,[])).next())})}function kt(e,A){var t={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},r,n,i,a;return a={next:o(0),throw:o(1),return:o(2)},typeof Symbol=="function"&&(a[Symbol.iterator]=function(){return this}),a;function o(d){return function(B){return c([d,B])}}function c(d){if(r)throw new TypeError("Generator is already executing.");for(;t;)try{if(r=1,n&&(i=d[0]&2?n.return:d[0]?n.throw||((i=n.return)&&i.call(n),0):n.next)&&!(i=i.call(n,d[1])).done)return i;switch(n=0,i&&(d=[d[0]&2,i.value]),d[0]){case 0:case 1:i=d;break;case 4:return t.label++,{value:d[1],done:!1};case 5:t.label++,n=d[1],d=[0];continue;case 7:d=t.ops.pop(),t.trys.pop();continue;default:if(i=t.trys,!(i=i.length>0&&i[i.length-1])&&(d[0]===6||d[0]===2)){t=0;continue}if(d[0]===3&&(!i||d[1]>i[0]&&d[1]<i[3])){t.label=d[1];break}if(d[0]===6&&t.label<i[1]){t.label=i[1],i=d;break}if(i&&t.label<i[2]){t.label=i[2],t.ops.push(d);break}i[2]&&t.ops.pop(),t.trys.pop();continue}d=A.call(e,t)}catch(B){d=[6,B],n=0}finally{r=i=0}if(d[0]&5)throw d[1];return{value:d[0]?d[1]:void 0,done:!0}}}function Do(e,A,t){if(arguments.length===2)for(var r=0,n=A.length,i;r<n;r++)(i||!(r in A))&&(i||(i=Array.prototype.slice.call(A,0,r)),i[r]=A[r]);return e.concat(i||A)}var vn=function(){function e(A,t,r,n){this.left=A,this.top=t,this.width=r,this.height=n}return e.prototype.add=function(A,t,r,n){return new e(this.left+A,this.top+t,this.width+r,this.height+n)},e.fromClientRect=function(A,t){return new e(t.left+A.windowBounds.left,t.top+A.windowBounds.top,t.width,t.height)},e.fromDOMRectList=function(A,t){var r=Array.from(t).find(function(n){return n.width!==0});return r?new e(r.left+A.windowBounds.left,r.top+A.windowBounds.top,r.width,r.height):e.EMPTY},e.EMPTY=new e(0,0,0,0),e}(),Dl=function(e,A){return vn.fromClientRect(e,A.getBoundingClientRect())},E0=function(e){var A=e.body,t=e.documentElement;if(!A||!t)throw new Error("Unable to get document size");var r=Math.max(Math.max(A.scrollWidth,t.scrollWidth),Math.max(A.offsetWidth,t.offsetWidth),Math.max(A.clientWidth,t.clientWidth)),n=Math.max(Math.max(A.scrollHeight,t.scrollHeight),Math.max(A.offsetHeight,t.offsetHeight),Math.max(A.clientHeight,t.clientHeight));return new vn(0,0,r,n)},Tl=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},rt=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},yf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",L0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var To=0;To<yf.length;To++)L0[yf.charCodeAt(To)]=To;var Ff="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",la=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var ko=0;ko<Ff.length;ko++)la[Ff.charCodeAt(ko)]=ko;var I0=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,o,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),B=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<t;r+=4)i=la[e.charCodeAt(r)],a=la[e.charCodeAt(r+1)],o=la[e.charCodeAt(r+2)],c=la[e.charCodeAt(r+3)],B[n++]=i<<2|a>>4,B[n++]=(a&15)<<4|o>>2,B[n++]=(o&3)<<6|c&63;return d},_0=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},H0=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},mi=5,uh=11,qc=2,N0=uh-mi,ig=65536>>mi,j0=1<<mi,Wc=j0-1,D0=1024>>mi,T0=ig+D0,k0=T0,P0=32,M0=k0+P0,O0=65536>>uh,R0=1<<N0,K0=R0-1,Qf=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},G0=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},V0=function(e,A){var t=I0(e),r=Array.isArray(t)?H0(t):new Uint32Array(t),n=Array.isArray(t)?_0(t):new Uint16Array(t),i=24,a=Qf(n,i/2,r[4]/2),o=r[5]===2?Qf(n,(i+r[4])/2):G0(r,Math.ceil((i+r[4])/4));return new z0(r[0],r[1],r[2],r[3],a,o)},z0=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>mi],t=(t<<qc)+(A&Wc),this.data[t];if(A<=65535)return t=this.index[ig+(A-55296>>mi)],t=(t<<qc)+(A&Wc),this.data[t];if(A<this.highStart)return t=M0-O0+(A>>uh),t=this.index[t],t+=A>>mi&K0,t=this.index[t],t=(t<<qc)+(A&Wc),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),xf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",q0=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Po=0;Po<xf.length;Po++)q0[xf.charCodeAt(Po)]=Po;var W0="KwAAAAAAAAAACA4AUD0AADAgAAACAAAAAAAIABAAGABAAEgAUABYAGAAaABgAGgAYgBqAF8AZwBgAGgAcQB5AHUAfQCFAI0AlQCdAKIAqgCyALoAYABoAGAAaABgAGgAwgDKAGAAaADGAM4A0wDbAOEA6QDxAPkAAQEJAQ8BFwF1AH0AHAEkASwBNAE6AUIBQQFJAVEBWQFhAWgBcAF4ATAAgAGGAY4BlQGXAZ8BpwGvAbUBvQHFAc0B0wHbAeMB6wHxAfkBAQIJAvEBEQIZAiECKQIxAjgCQAJGAk4CVgJeAmQCbAJ0AnwCgQKJApECmQKgAqgCsAK4ArwCxAIwAMwC0wLbAjAA4wLrAvMC+AIAAwcDDwMwABcDHQMlAy0DNQN1AD0DQQNJA0kDSQNRA1EDVwNZA1kDdQB1AGEDdQBpA20DdQN1AHsDdQCBA4kDkQN1AHUAmQOhA3UAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AKYDrgN1AHUAtgO+A8YDzgPWAxcD3gPjA+sD8wN1AHUA+wMDBAkEdQANBBUEHQQlBCoEFwMyBDgEYABABBcDSARQBFgEYARoBDAAcAQzAXgEgASIBJAEdQCXBHUAnwSnBK4EtgS6BMIEyAR1AHUAdQB1AHUAdQCVANAEYABgAGAAYABgAGAAYABgANgEYADcBOQEYADsBPQE/AQEBQwFFAUcBSQFLAU0BWQEPAVEBUsFUwVbBWAAYgVgAGoFcgV6BYIFigWRBWAAmQWfBaYFYABgAGAAYABgAKoFYACxBbAFuQW6BcEFwQXHBcEFwQXPBdMF2wXjBeoF8gX6BQIGCgYSBhoGIgYqBjIGOgZgAD4GRgZMBmAAUwZaBmAAYABgAGAAYABgAGAAYABgAGAAYABgAGIGYABpBnAGYABgAGAAYABgAGAAYABgAGAAYAB4Bn8GhQZgAGAAYAB1AHcDFQSLBmAAYABgAJMGdQA9A3UAmwajBqsGqwaVALMGuwbDBjAAywbSBtIG1QbSBtIG0gbSBtIG0gbdBuMG6wbzBvsGAwcLBxMHAwcbByMHJwcsBywHMQcsB9IGOAdAB0gHTgfSBkgHVgfSBtIG0gbSBtIG0gbSBtIG0gbSBiwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdgAGAALAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAdbB2MHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB2kH0gZwB64EdQB1AHUAdQB1AHUAdQB1AHUHfQdgAIUHjQd1AHUAlQedB2AAYAClB6sHYACzB7YHvgfGB3UAzgfWBzMB3gfmB1EB7gf1B/0HlQENAQUIDQh1ABUIHQglCBcDLQg1CD0IRQhNCEEDUwh1AHUAdQBbCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIaQhjCGQIZQhmCGcIaAhpCGMIZAhlCGYIZwhoCGkIYwhkCGUIZghnCGgIcAh3CHoIMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIgggwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAALAcsBywHLAcsBywHLAcsBywHLAcsB4oILAcsB44I0gaWCJ4Ipgh1AHUAqgiyCHUAdQB1AHUAdQB1AHUAdQB1AHUAtwh8AXUAvwh1AMUIyQjRCNkI4AjoCHUAdQB1AO4I9gj+CAYJDgkTCS0HGwkjCYIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiCCIIIggiAAIAAAAFAAYABgAGIAXwBgAHEAdQBFAJUAogCyAKAAYABgAEIA4ABGANMA4QDxAMEBDwE1AFwBLAE6AQEBUQF4QkhCmEKoQrhCgAHIQsAB0MLAAcABwAHAAeDC6ABoAHDCwMMAAcABwAHAAdDDGMMAAcAB6MM4wwjDWMNow3jDaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAGgAaABoAEjDqABWw6bDqABpg6gAaABoAHcDvwOPA+gAaABfA/8DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DvwO/A78DpcPAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcAB9cPKwkyCToJMAB1AHUAdQBCCUoJTQl1AFUJXAljCWcJawkwADAAMAAwAHMJdQB2CX4JdQCECYoJjgmWCXUAngkwAGAAYABxAHUApgn3A64JtAl1ALkJdQDACTAAMAAwADAAdQB1AHUAdQB1AHUAdQB1AHUAowYNBMUIMAAwADAAMADICcsJ0wnZCRUE4QkwAOkJ8An4CTAAMAB1AAAKvwh1AAgKDwoXCh8KdQAwACcKLgp1ADYKqAmICT4KRgowADAAdQB1AE4KMAB1AFYKdQBeCnUAZQowADAAMAAwADAAMAAwADAAMAAVBHUAbQowADAAdQC5CXUKMAAwAHwBxAijBogEMgF9CoQKiASMCpQKmgqIBKIKqgquCogEDQG2Cr4KxgrLCjAAMADTCtsKCgHjCusK8Qr5CgELMAAwADAAMAB1AIsECQsRC3UANAEZCzAAMAAwADAAMAB1ACELKQswAHUANAExCzkLdQBBC0kLMABRC1kLMAAwADAAMAAwADAAdQBhCzAAMAAwAGAAYABpC3ELdwt/CzAAMACHC4sLkwubC58Lpwt1AK4Ltgt1APsDMAAwADAAMAAwADAAMAAwAL4LwwvLC9IL1wvdCzAAMADlC+kL8Qv5C/8LSQswADAAMAAwADAAMAAwADAAMAAHDDAAMAAwADAAMAAODBYMHgx1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1ACYMMAAwADAAdQB1AHUALgx1AHUAdQB1AHUAdQA2DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AD4MdQBGDHUAdQB1AHUAdQB1AEkMdQB1AHUAdQB1AFAMMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQBYDHUAdQB1AF8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUA+wMVBGcMMAAwAHwBbwx1AHcMfwyHDI8MMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAYABgAJcMMAAwADAAdQB1AJ8MlQClDDAAMACtDCwHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsB7UMLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHdQB1AHUAdQB1AHUAdQB1AHUAdQB1AHUAdQB1AA0EMAC9DDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAsBywHLAcsBywHLAcsBywHLQcwAMEMyAwsBywHLAcsBywHLAcsBywHLAcsBywHzAwwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwAHUAdQB1ANQM2QzhDDAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMABgAGAAYABgAGAAYABgAOkMYADxDGAA+AwADQYNYABhCWAAYAAODTAAMAAwADAAFg1gAGAAHg37AzAAMAAwADAAYABgACYNYAAsDTQNPA1gAEMNPg1LDWAAYABgAGAAYABgAGAAYABgAGAAUg1aDYsGVglhDV0NcQBnDW0NdQ15DWAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAlQCBDZUAiA2PDZcNMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAnw2nDTAAMAAwADAAMAAwAHUArw23DTAAMAAwADAAMAAwADAAMAAwADAAMAB1AL8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAB1AHUAdQB1AHUAdQDHDTAAYABgAM8NMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA1w11ANwNMAAwAD0B5A0wADAAMAAwADAAMADsDfQN/A0EDgwOFA4wABsOMAAwADAAMAAwADAAMAAwANIG0gbSBtIG0gbSBtIG0gYjDigOwQUuDsEFMw7SBjoO0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGQg5KDlIOVg7SBtIGXg5lDm0OdQ7SBtIGfQ6EDooOjQ6UDtIGmg6hDtIG0gaoDqwO0ga0DrwO0gZgAGAAYADEDmAAYAAkBtIGzA5gANIOYADaDokO0gbSBt8O5w7SBu8O0gb1DvwO0gZgAGAAxA7SBtIG0gbSBtIGYABgAGAAYAAED2AAsAUMD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHJA8sBywHLAcsBywHLAccDywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywPLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAc0D9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAccD9IG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIGFA8sBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHLAcsBywHPA/SBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gbSBtIG0gYUD0QPlQCVAJUAMAAwADAAMACVAJUAlQCVAJUAlQCVAEwPMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAA//8EAAQABAAEAAQABAAEAAQABAANAAMAAQABAAIABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQACgATABcAHgAbABoAHgAXABYAEgAeABsAGAAPABgAHABLAEsASwBLAEsASwBLAEsASwBLABgAGAAeAB4AHgATAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABYAGwASAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWAA0AEQAeAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAFAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJABYAGgAbABsAGwAeAB0AHQAeAE8AFwAeAA0AHgAeABoAGwBPAE8ADgBQAB0AHQAdAE8ATwAXAE8ATwBPABYAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AHgAeAFAATwBAAE8ATwBPAEAATwBQAFAATwBQAB4AHgAeAB4AHgAeAB0AHQAdAB0AHgAdAB4ADgBQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgBQAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAJAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAkACQAJAAkACQAJAAkABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAFAAHgAeAB4AKwArAFAAUABQAFAAGABQACsAKwArACsAHgAeAFAAHgBQAFAAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUAAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAYAA0AKwArAB4AHgAbACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAB4ABAAEAB4ABAAEABMABAArACsAKwArACsAKwArACsAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAKwArACsAKwBWAFYAVgBWAB4AHgArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AGgAaABoAGAAYAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQAEwAEACsAEwATAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABLAEsASwBLAEsASwBLAEsASwBLABoAGQAZAB4AUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQABMAUAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABABQAFAABAAEAB4ABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUAAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAFAABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQAUABQAB4AHgAYABMAUAArACsABAAbABsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAFAABAAEAAQABAAEAFAABAAEAAQAUAAEAAQABAAEAAQAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArACsAHgArAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAUAAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEAA0ADQBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUAArACsAKwBQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABABQACsAKwArACsAKwArACsAKwAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUAAaABoAUABQAFAAUABQAEwAHgAbAFAAHgAEACsAKwAEAAQABAArAFAAUABQAFAAUABQACsAKwArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQACsAUABQACsAKwAEACsABAAEAAQABAAEACsAKwArACsABAAEACsAKwAEAAQABAArACsAKwAEACsAKwArACsAKwArACsAUABQAFAAUAArAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLAAQABABQAFAAUAAEAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsAKwAEAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAArACsAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AGwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAKwArACsAKwArAAQABAAEACsAKwArACsAUABQACsAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAAQAUAArAFAAUABQAFAAUABQACsAKwArAFAAUABQACsAUABQAFAAUAArACsAKwBQAFAAKwBQACsAUABQACsAKwArAFAAUAArACsAKwBQAFAAUAArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArAAQABAAEAAQABAArACsAKwAEAAQABAArAAQABAAEAAQAKwArAFAAKwArACsAKwArACsABAArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAHgAeAB4AHgAeAB4AGwAeACsAKwArACsAKwAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAUABQAFAAKwArACsAKwArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwAOAFAAUABQAFAAUABQAFAAHgBQAAQABAAEAA4AUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAKwArAAQAUAAEAAQABAAEAAQABAAEACsABAAEAAQAKwAEAAQABAAEACsAKwArACsAKwArACsABAAEACsAKwArACsAKwArACsAUAArAFAAUAAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAFAABAAEAAQABAAEAAQABAArAAQABAAEACsABAAEAAQABABQAB4AKwArACsAKwBQAFAAUAAEAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQABoAUABQAFAAUABQAFAAKwAEAAQABAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQACsAUAArACsAUABQAFAAUABQAFAAUAArACsAKwAEACsAKwArACsABAAEAAQABAAEAAQAKwAEACsABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArAAQABAAeACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAXAAqACoAKgAqACoAKgAqACsAKwArACsAGwBcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAeAEsASwBLAEsASwBLAEsASwBLAEsADQANACsAKwArACsAKwBcAFwAKwBcACsAXABcAFwAXABcACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAXAArAFwAXABcAFwAXABcAFwAXABcAFwAKgBcAFwAKgAqACoAKgAqACoAKgAqACoAXAArACsAXABcAFwAXABcACsAXAArACoAKgAqACoAKgAqACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwBcAFwAXABcAFAADgAOAA4ADgAeAA4ADgAJAA4ADgANAAkAEwATABMAEwATAAkAHgATAB4AHgAeAAQABAAeAB4AHgAeAB4AHgBLAEsASwBLAEsASwBLAEsASwBLAFAAUABQAFAAUABQAFAAUABQAFAADQAEAB4ABAAeAAQAFgARABYAEQAEAAQAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQADQAEAAQABAAEAAQADQAEAAQAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAA0ADQAeAB4AHgAeAB4AHgAEAB4AHgAeAB4AHgAeACsAHgAeAA4ADgANAA4AHgAeAB4AHgAeAAkACQArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgBcAEsASwBLAEsASwBLAEsASwBLAEsADQANAB4AHgAeAB4AXABcAFwAXABcAFwAKgAqACoAKgBcAFwAXABcACoAKgAqAFwAKgAqACoAXABcACoAKgAqACoAKgAqACoAXABcAFwAKgAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKgAqAFwAKgBLAEsASwBLAEsASwBLAEsASwBLACoAKgAqACoAKgAqAFAAUABQAFAAUABQACsAUAArACsAKwArACsAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAKwBQACsAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsABAAEAAQAHgANAB4AHgAeAB4AHgAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUAArACsADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAWABEAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQANAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAANAA0AKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUAArAAQABAArACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqAA0ADQAVAFwADQAeAA0AGwBcACoAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwAeAB4AEwATAA0ADQAOAB4AEwATAB4ABAAEAAQACQArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAHgArACsAKwATABMASwBLAEsASwBLAEsASwBLAEsASwBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAXABcAFwAXABcACsAKwArACsAKwArACsAKwArACsAKwBcAFwAXABcAFwAXABcAFwAXABcAFwAXAArACsAKwArAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAXAArACsAKwAqACoAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAArACsAHgAeAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcACoAKgAqACoAKgAqACoAKgAqACoAKwAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKwArAAQASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACoAKgAqACoAKgAqACoAXAAqACoAKgAqACoAKgArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABABQAFAAUABQAFAAUABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwANAA0AHgANAA0ADQANAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAEAAQABAAEAAQAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwAeAB4AHgAeAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArAA0ADQANAA0ADQBLAEsASwBLAEsASwBLAEsASwBLACsAKwArAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAA0ADQBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUAAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArAAQABAAEAB4ABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAAQAUABQAFAAUABQAFAABABQAFAABAAEAAQAUAArACsAKwArACsABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQACsAUAArAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAFAAUABQACsAHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQACsAKwAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQACsAHgAeAB4AHgAeAB4AHgAOAB4AKwANAA0ADQANAA0ADQANAAkADQANAA0ACAAEAAsABAAEAA0ACQANAA0ADAAdAB0AHgAXABcAFgAXABcAFwAWABcAHQAdAB4AHgAUABQAFAANAAEAAQAEAAQABAAEAAQACQAaABoAGgAaABoAGgAaABoAHgAXABcAHQAVABUAHgAeAB4AHgAeAB4AGAAWABEAFQAVABUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ADQAeAA0ADQANAA0AHgANAA0ADQAHAB4AHgAeAB4AKwAEAAQABAAEAAQABAAEAAQABAAEAFAAUAArACsATwBQAFAAUABQAFAAHgAeAB4AFgARAE8AUABPAE8ATwBPAFAAUABQAFAAUAAeAB4AHgAWABEAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArABsAGwAbABsAGwAbABsAGgAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGgAbABsAGwAbABoAGwAbABoAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbABsAGwAbAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAHgAeAFAAGgAeAB0AHgBQAB4AGgAeAB4AHgAeAB4AHgAeAB4AHgBPAB4AUAAbAB4AHgBQAFAAUABQAFAAHgAeAB4AHQAdAB4AUAAeAFAAHgBQAB4AUABPAFAAUAAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAHgBQAFAAUABQAE8ATwBQAFAAUABQAFAATwBQAFAATwBQAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAUABQAFAATwBPAE8ATwBPAE8ATwBPAE8ATwBQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABPAB4AHgArACsAKwArAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHQAdAB4AHgAeAB0AHQAeAB4AHQAeAB4AHgAdAB4AHQAbABsAHgAdAB4AHgAeAB4AHQAeAB4AHQAdAB0AHQAeAB4AHQAeAB0AHgAdAB0AHQAdAB0AHQAeAB0AHgAeAB4AHgAeAB0AHQAdAB0AHgAeAB4AHgAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB4AHgAeAB0AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAeAB0AHQAdAB0AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAdAB4AHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAWABEAHgAeAB4AHgAeAB4AHQAeAB4AHgAeAB4AHgAeACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAWABEAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAFAAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAeAB4AHQAdAB0AHQAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB0AHQAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB0AHQAeAB4AHQAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AHQAdAB0AHgAeAB0AHgAeAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlAB4AHQAdAB4AHgAdAB4AHgAeAB4AHQAdAB4AHgAeAB4AJQAlAB0AHQAlAB4AJQAlACUAIAAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAeAB4AHgAeAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHgAdAB0AHQAeAB0AJQAdAB0AHgAdAB0AHgAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHQAdAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAdAB0AHQAdACUAHgAlACUAJQAdACUAJQAdAB0AHQAlACUAHQAdACUAHQAdACUAJQAlAB4AHQAeAB4AHgAeAB0AHQAlAB0AHQAdAB0AHQAdACUAJQAlACUAJQAdACUAJQAgACUAHQAdACUAJQAlACUAJQAlACUAJQAeAB4AHgAlACUAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB0AHgAeAB4AFwAXABcAFwAXABcAHgATABMAJQAeAB4AHgAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARABYAEQAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAWABEAFgARABYAEQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAWABEAFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AFgARAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAdAB0AHQAdAB0AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAFAAUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAEAAQABAAeAB4AKwArACsAKwArABMADQANAA0AUAATAA0AUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUAANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAA0ADQANAA0ADQANAA0ADQAeAA0AFgANAB4AHgAXABcAHgAeABcAFwAWABEAFgARABYAEQAWABEADQANAA0ADQATAFAADQANAB4ADQANAB4AHgAeAB4AHgAMAAwADQANAA0AHgANAA0AFgANAA0ADQANAA0ADQANAA0AHgANAB4ADQANAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArACsAKwArACsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArAA0AEQARACUAJQBHAFcAVwAWABEAFgARABYAEQAWABEAFgARACUAJQAWABEAFgARABYAEQAWABEAFQAWABEAEQAlAFcAVwBXAFcAVwBXAFcAVwBXAAQABAAEAAQABAAEACUAVwBXAFcAVwA2ACUAJQBXAFcAVwBHAEcAJQAlACUAKwBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBRAFcAUQBXAFEAVwBXAFcAVwBXAFcAUQBXAFcAVwBXAFcAVwBRAFEAKwArAAQABAAVABUARwBHAFcAFQBRAFcAUQBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFEAVwBRAFcAUQBXAFcAVwBXAFcAVwBRAFcAVwBXAFcAVwBXAFEAUQBXAFcAVwBXABUAUQBHAEcAVwArACsAKwArACsAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwAlACUAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACsAKwArACsAKwArACsAKwArACsAKwArAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAUQBRAFEAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBPAE8ATwBPAE8ATwBPAE8AJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADQATAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABLAEsASwBLAEsASwBLAEsASwBLAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAABAAEAAQABAAeAAQABAAEAAQABAAEAAQABAAEAAQAHgBQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUABQAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAeAA0ADQANAA0ADQArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AUAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAB4AHgAeAB4AHgAeAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AUABQAFAAUABQAFAAUABQAFAAUABQAAQAUABQAFAABABQAFAAUABQAAQAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAeAB4AHgAeAAQAKwArACsAUABQAFAAUABQAFAAHgAeABoAHgArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAADgAOABMAEwArACsAKwArACsAKwArACsABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwANAA0ASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUAAeAB4AHgBQAA4AUABQAAQAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArAB4AWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYAFgAWABYACsAKwArAAQAHgAeAB4AHgAeAB4ADQANAA0AHgAeAB4AHgArAFAASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArAB4AHgBcAFwAXABcAFwAKgBcAFwAXABcAFwAXABcAFwAXABcAEsASwBLAEsASwBLAEsASwBLAEsAXABcAFwAXABcACsAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAFAAUABQAAQAUABQAFAAUABQAFAAUABQAAQABAArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAHgANAA0ADQBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKgAqACoAXAAqACoAKgBcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXAAqAFwAKgAqACoAXABcACoAKgBcAFwAXABcAFwAKgAqAFwAKgBcACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFwAXABcACoAKgBQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAA0ADQBQAFAAUAAEAAQAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQADQAEAAQAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAVABVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBUAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVAFUAVQBVACsAKwArACsAKwArACsAKwArACsAKwArAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAWQBZAFkAKwArACsAKwBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAWgBaAFoAKwArACsAKwAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYABgAGAAYAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAKwArACsAKwArAFYABABWAFYAVgBWAFYAVgBWAFYAVgBWAB4AVgBWAFYAVgBWAFYAVgBWAFYAVgBWAFYAVgArAFYAVgBWAFYAVgArAFYAKwBWAFYAKwBWAFYAKwBWAFYAVgBWAFYAVgBWAFYAVgBWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAEQAWAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAaAB4AKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAGAARABEAGAAYABMAEwAWABEAFAArACsAKwArACsAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACUAJQAlACUAJQAWABEAFgARABYAEQAWABEAFgARABYAEQAlACUAFgARACUAJQAlACUAJQAlACUAEQAlABEAKwAVABUAEwATACUAFgARABYAEQAWABEAJQAlACUAJQAlACUAJQAlACsAJQAbABoAJQArACsAKwArAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAcAKwATACUAJQAbABoAJQAlABYAEQAlACUAEQAlABEAJQBXAFcAVwBXAFcAVwBXAFcAVwBXABUAFQAlACUAJQATACUAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXABYAJQARACUAJQAlAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAWACUAEQAlABYAEQARABYAEQARABUAVwBRAFEAUQBRAFEAUQBRAFEAUQBRAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAEcARwArACsAVwBXAFcAVwBXAFcAKwArAFcAVwBXAFcAVwBXACsAKwBXAFcAVwBXAFcAVwArACsAVwBXAFcAKwArACsAGgAbACUAJQAlABsAGwArAB4AHgAeAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwAEAAQABAAQAB0AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsADQANAA0AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAA0AUABQAFAAUAArACsAKwArAFAAUABQAFAAUABQAFAAUAANAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwArAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwBQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwANAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAB4AUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAUABQAFAAUABQAAQABAAEACsABAAEACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAKwBQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAA0ADQANAA0ADQANAA0ADQAeACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAArACsAKwArAFAAUABQAFAAUAANAA0ADQANAA0ADQAUACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsADQANAA0ADQANAA0ADQBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAB4AHgAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArAAQABAANACsAKwBQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAB4AHgAeAB4AHgArACsAKwArACsAKwAEAAQABAAEAAQABAAEAA0ADQAeAB4AHgAeAB4AKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwAeACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEACsASwBLAEsASwBLAEsASwBLAEsASwANAA0ADQANAFAABAAEAFAAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAeAA4AUAArACsAKwArACsAKwArACsAKwAEAFAAUABQAFAADQANAB4ADQAEAAQABAAEAB4ABAAEAEsASwBLAEsASwBLAEsASwBLAEsAUAAOAFAADQANAA0AKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAANAA0AHgANAA0AHgAEACsAUABQAFAAUABQAFAAUAArAFAAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAA0AKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsABAAEAAQABAArAFAAUABQAFAAUABQAFAAUAArACsAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQACsABAAEAFAABAAEAAQABAAEAAQABAArACsABAAEACsAKwAEAAQABAArACsAUAArACsAKwArACsAKwAEACsAKwArACsAKwBQAFAAUABQAFAABAAEACsAKwAEAAQABAAEAAQABAAEACsAKwArAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsABAAEAAQABAAEAAQABABQAFAAUABQAA0ADQANAA0AHgBLAEsASwBLAEsASwBLAEsASwBLAA0ADQArAB4ABABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAFAAUAAeAFAAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABAAEAAQADgANAA0AEwATAB4AHgAeAA0ADQANAA0ADQANAA0ADQANAA0ADQANAA0ADQANAFAAUABQAFAABAAEACsAKwAEAA0ADQAeAFAAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAFAAKwArACsAKwArACsAKwBLAEsASwBLAEsASwBLAEsASwBLACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAXABcAFwAKwArACoAKgAqACoAKgAqACoAKgAqACoAKgAqACoAKgAqACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBcAFwADQANAA0AKgBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAKwArAFAAKwArAFAAUABQAFAAUABQAFAAUAArAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQAKwAEAAQAKwArAAQABAAEAAQAUAAEAFAABAAEAA0ADQANACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAArACsABAAEAAQABAAEAAQABABQAA4AUAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAABAAEAAQABAAEAAQABAAEAAQABABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAFAABAAEAAQABAAOAB4ADQANAA0ADQAOAB4ABAArACsAKwArACsAKwArACsAUAAEAAQABAAEAAQABAAEAAQABAAEAAQAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAA0ADQANAFAADgAOAA4ADQANACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAEAAQABAAEACsABAAEAAQABAAEAAQABAAEAFAADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAOABMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQACsAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAArACsAKwAEACsABAAEACsABAAEAAQABAAEAAQABABQAAQAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAUABQAFAAUABQAFAAKwBQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAUAArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAABAAEAAQABAAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAaABoAGgAaAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArAA0AUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsADQANAA0ADQANACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABIAEgAQwBDAEMAUABQAFAAUABDAFAAUABQAEgAQwBIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAASABDAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwAJAAkACQAJAAkACQAJABYAEQArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABIAEMAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwANAA0AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArAAQABAAEAAQABAANACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEAA0ADQANAB4AHgAeAB4AHgAeAFAAUABQAFAADQAeACsAKwArACsAKwArACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAANAA0AHgAeACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwAEAFAABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwAEAAQABAAEAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAARwBHABUARwAJACsAKwArACsAKwArACsAKwArACsAKwAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUQBRAFEAKwArACsAKwArACsAKwArACsAKwArACsAKwBRAFEAUQBRACsAKwArACsAKwArACsAKwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUAArACsAHgAEAAQADQAEAAQABAAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAAQABAAEAAQABAAeAB4AHgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAB4AHgAEAAQABAAEAAQABAAEAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4ABAAEAAQAHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwArACsAKwArACsAKwArACsAKwArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAKwArAFAAKwArAFAAUAArACsAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACsAUAArAFAAUABQAFAAUABQAFAAKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwBQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAHgAeAFAAUABQAFAAUAArAFAAKwArACsAUABQAFAAUABQAFAAUAArAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAB4AHgAeAB4AHgAeAB4AHgAeACsAKwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAEsASwBLAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAeAB4AHgAeAB4AHgAeAB4ABAAeAB4AHgAeAB4AHgAeAB4AHgAeAAQAHgAeAA0ADQANAA0AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQAKwAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArAAQABAAEAAQABAAEAAQAKwAEAAQAKwAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwAEAAQABAAEAAQABAAEAFAAUABQAFAAUABQAFAAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwBQAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArABsAUABQAFAAUABQACsAKwBQAFAAUABQAFAAUABQAFAAUAAEAAQABAAEAAQABAAEACsAKwArACsAKwArACsAKwArAB4AHgAeAB4ABAAEAAQABAAEAAQABABQACsAKwArACsASwBLAEsASwBLAEsASwBLAEsASwArACsAKwArABYAFgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAGgBQAFAAUAAaAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAeAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQACsAKwBQAFAAUABQACsAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUAArACsAKwArACsAKwBQACsAKwArACsAUAArAFAAKwBQACsAUABQAFAAKwBQAFAAKwBQACsAKwBQACsAUAArAFAAKwBQACsAUAArAFAAUAArAFAAKwArAFAAUABQAFAAKwBQAFAAUABQAFAAUABQACsAUABQAFAAUAArAFAAUABQAFAAKwBQACsAUABQAFAAUABQAFAAUABQAFAAUAArAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAArACsAKwArACsAUABQAFAAKwBQAFAAUABQAFAAKwBQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwAeAB4AKwArACsAKwArACsAKwArACsAKwArACsAKwArAE8ATwBPAE8ATwBPAE8ATwBPAE8ATwBPAE8AJQAlACUAHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHgAeAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB4AHgAeACUAJQAlAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAdAB0AHQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAKQApACkAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAlACUAJQAlACUAHgAlACUAJQAlACUAIAAgACAAJQAlACAAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACEAIQAhACEAIQAlACUAIAAgACUAJQAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlACUAIAAlACUAJQAlACAAIAAgACUAIAAgACAAJQAlACUAJQAlACUAJQAgACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAlAB4AJQAeACUAJQAlACUAJQAgACUAJQAlACUAHgAlAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAgACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACAAIAAgACAAIAAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeABcAFwAXABUAFQAVAB4AHgAeAB4AJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAgACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlACUAJQAeAB4AHgAeAB4AHgAeAB4AHgAeACUAJQAlACUAJQAlAB4AHgAeAB4AHgAeAB4AHgAlACUAJQAlACUAJQAlACUAHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAgACUAJQAgACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAJQAlACUAJQAlACUAIAAlACUAJQAlACUAJQAlACUAJQAgACAAIAAgACAAIAAgACAAIAAgACUAJQAgACAAIAAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACAAIAAlACAAIAAlACAAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAgACAAIAAlACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAJQAlAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AKwAeAB4AHgAeAB4AHgAeAB4AHgAeAB4AHgArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAEsASwBLAEsASwBLAEsASwBLAEsAKwArACsAKwArACsAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwArAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwAlACUAJQAlACUAJQAlACUAJQAlACUAVwBXACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQBXAFcAVwBXAFcAVwBXAFcAVwBXAFcAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAJQAlACUAKwAEACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArACsAKwArAA==",Uf=50,J0=1,sg=2,ag=3,X0=4,Y0=5,Sf=7,og=8,Ef=9,On=10,_u=11,Lf=12,Hu=13,Z0=14,ca=15,Nu=16,Mo=17,ta=18,$0=19,If=20,ju=21,ra=22,Jc=23,es=24,ar=25,ua=26,ha=27,ts=28,AB=29,ui=30,eB=31,Oo=32,Ro=33,Du=34,Tu=35,ku=36,Da=37,Pu=38,cl=39,ul=40,Xc=41,lg=42,tB=43,rB=[9001,65288],cg="!",we="×",Ko="÷",Mu=V0(W0),Bn=[ui,ku],Ou=[J0,sg,ag,Y0],ug=[On,og],_f=[ha,ua],nB=Ou.concat(ug),Hf=[Pu,cl,ul,Du,Tu],iB=[ca,Hu],sB=function(e,A){A===void 0&&(A="strict");var t=[],r=[],n=[];return e.forEach(function(i,a){var o=Mu.get(i);if(o>Uf?(n.push(!0),o-=Uf):n.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(i)!==-1)return r.push(a),t.push(Nu);if(o===X0||o===_u){if(a===0)return r.push(a),t.push(ui);var c=t[a-1];return nB.indexOf(c)===-1?(r.push(r[a-1]),t.push(c)):(r.push(a),t.push(ui))}if(r.push(a),o===eB)return t.push(A==="strict"?ju:Da);if(o===lg||o===AB)return t.push(ui);if(o===tB)return i>=131072&&i<=196605||i>=196608&&i<=262141?t.push(Da):t.push(ui);t.push(o)}),[r,t,n]},Yc=function(e,A,t,r){var n=r[t];if(Array.isArray(e)?e.indexOf(n)!==-1:e===n)for(var i=t;i<=r.length;){i++;var a=r[i];if(a===A)return!0;if(a!==On)break}if(n===On)for(var i=t;i>0;){i--;var o=r[i];if(Array.isArray(e)?e.indexOf(o)!==-1:e===o)for(var c=t;c<=r.length;){c++;var a=r[c];if(a===A)return!0;if(a!==On)break}if(o!==On)break}return!1},Nf=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===On)t--;else return r}return 0},aB=function(e,A,t,r,n){if(t[r]===0)return we;var i=r-1;if(Array.isArray(n)&&n[i]===!0)return we;var a=i-1,o=i+1,c=A[i],d=a>=0?A[a]:0,B=A[o];if(c===sg&&B===ag)return we;if(Ou.indexOf(c)!==-1)return cg;if(Ou.indexOf(B)!==-1||ug.indexOf(B)!==-1)return we;if(Nf(i,A)===og)return Ko;if(Mu.get(e[i])===_u||(c===Oo||c===Ro)&&Mu.get(e[o])===_u||c===Sf||B===Sf||c===Ef||[On,Hu,ca].indexOf(c)===-1&&B===Ef||[Mo,ta,$0,es,ts].indexOf(B)!==-1||Nf(i,A)===ra||Yc(Jc,ra,i,A)||Yc([Mo,ta],ju,i,A)||Yc(Lf,Lf,i,A))return we;if(c===On)return Ko;if(c===Jc||B===Jc)return we;if(B===Nu||c===Nu)return Ko;if([Hu,ca,ju].indexOf(B)!==-1||c===Z0||d===ku&&iB.indexOf(c)!==-1||c===ts&&B===ku||B===If||Bn.indexOf(B)!==-1&&c===ar||Bn.indexOf(c)!==-1&&B===ar||c===ha&&[Da,Oo,Ro].indexOf(B)!==-1||[Da,Oo,Ro].indexOf(c)!==-1&&B===ua||Bn.indexOf(c)!==-1&&_f.indexOf(B)!==-1||_f.indexOf(c)!==-1&&Bn.indexOf(B)!==-1||[ha,ua].indexOf(c)!==-1&&(B===ar||[ra,ca].indexOf(B)!==-1&&A[o+1]===ar)||[ra,ca].indexOf(c)!==-1&&B===ar||c===ar&&[ar,ts,es].indexOf(B)!==-1)return we;if([ar,ts,es,Mo,ta].indexOf(B)!==-1)for(var p=i;p>=0;){var m=A[p];if(m===ar)return we;if([ts,es].indexOf(m)!==-1)p--;else break}if([ha,ua].indexOf(B)!==-1)for(var p=[Mo,ta].indexOf(c)!==-1?a:i;p>=0;){var m=A[p];if(m===ar)return we;if([ts,es].indexOf(m)!==-1)p--;else break}if(Pu===c&&[Pu,cl,Du,Tu].indexOf(B)!==-1||[cl,Du].indexOf(c)!==-1&&[cl,ul].indexOf(B)!==-1||[ul,Tu].indexOf(c)!==-1&&B===ul||Hf.indexOf(c)!==-1&&[If,ua].indexOf(B)!==-1||Hf.indexOf(B)!==-1&&c===ha||Bn.indexOf(c)!==-1&&Bn.indexOf(B)!==-1||c===es&&Bn.indexOf(B)!==-1||Bn.concat(ar).indexOf(c)!==-1&&B===ra&&rB.indexOf(e[o])===-1||Bn.concat(ar).indexOf(B)!==-1&&c===ta)return we;if(c===Xc&&B===Xc){for(var g=t[i],C=1;g>0&&(g--,A[g]===Xc);)C++;if(C%2!==0)return we}return c===Oo&&B===Ro?we:Ko},oB=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=sB(e,A.lineBreak),r=t[0],n=t[1],i=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(n=n.map(function(o){return[ar,ui,lg].indexOf(o)!==-1?Da:o}));var a=A.wordBreak==="keep-all"?i.map(function(o,c){return o&&e[c]>=19968&&e[c]<=40959}):void 0;return[r,n,a]},lB=function(){function e(A,t,r,n){this.codePoints=A,this.required=t===cg,this.start=r,this.end=n}return e.prototype.slice=function(){return rt.apply(void 0,this.codePoints.slice(this.start,this.end))},e}(),cB=function(e,A){var t=Tl(e),r=oB(t,A),n=r[0],i=r[1],a=r[2],o=t.length,c=0,d=0;return{next:function(){if(d>=o)return{done:!0,value:null};for(var B=we;d<o&&(B=aB(t,i,n,++d,a))===we;);if(B!==we||d===o){var p=new lB(t,B,c,d);return c=d,{value:p,done:!1}}return{done:!0,value:null}}}},uB=1,hB=2,Pa=4,jf=8,Cl=10,Df=47,ma=92,fB=9,dB=32,Go=34,na=61,gB=35,pB=36,BB=37,Vo=39,zo=40,ia=41,wB=95,$t=45,mB=33,vB=60,CB=62,bB=64,yB=91,FB=93,QB=61,xB=123,qo=63,UB=125,Tf=124,SB=126,EB=128,kf=65533,Zc=42,gi=43,LB=44,IB=58,_B=59,Ta=46,HB=0,NB=8,jB=11,DB=14,TB=31,kB=127,Yr=-1,hg=48,fg=97,dg=101,PB=102,MB=117,OB=122,gg=65,pg=69,Bg=70,RB=85,KB=90,Pt=function(e){return e>=hg&&e<=57},GB=function(e){return e>=55296&&e<=57343},rs=function(e){return Pt(e)||e>=gg&&e<=Bg||e>=fg&&e<=PB},VB=function(e){return e>=fg&&e<=OB},zB=function(e){return e>=gg&&e<=KB},qB=function(e){return VB(e)||zB(e)},WB=function(e){return e>=EB},Wo=function(e){return e===Cl||e===fB||e===dB},bl=function(e){return qB(e)||WB(e)||e===wB},Pf=function(e){return bl(e)||Pt(e)||e===$t},JB=function(e){return e>=HB&&e<=NB||e===jB||e>=DB&&e<=TB||e===kB},Pn=function(e,A){return e!==ma?!1:A!==Cl},Jo=function(e,A,t){return e===$t?bl(A)||Pn(A,t):bl(e)?!0:!!(e===ma&&Pn(e,A))},$c=function(e,A,t){return e===gi||e===$t?Pt(A)?!0:A===Ta&&Pt(t):Pt(e===Ta?A:e)},XB=function(e){var A=0,t=1;(e[A]===gi||e[A]===$t)&&(e[A]===$t&&(t=-1),A++);for(var r=[];Pt(e[A]);)r.push(e[A++]);var n=r.length?parseInt(rt.apply(void 0,r),10):0;e[A]===Ta&&A++;for(var i=[];Pt(e[A]);)i.push(e[A++]);var a=i.length,o=a?parseInt(rt.apply(void 0,i),10):0;(e[A]===pg||e[A]===dg)&&A++;var c=1;(e[A]===gi||e[A]===$t)&&(e[A]===$t&&(c=-1),A++);for(var d=[];Pt(e[A]);)d.push(e[A++]);var B=d.length?parseInt(rt.apply(void 0,d),10):0;return t*(n+o*Math.pow(10,-a))*Math.pow(10,c*B)},YB={type:2},ZB={type:3},$B={type:4},A2={type:13},e2={type:8},t2={type:21},r2={type:9},n2={type:10},i2={type:11},s2={type:12},a2={type:14},Xo={type:23},o2={type:1},l2={type:25},c2={type:24},u2={type:26},h2={type:27},f2={type:28},d2={type:29},g2={type:31},Ru={type:32},wg=function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(Tl(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==Ru;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case Go:return this.consumeStringToken(Go);case gB:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),n=this.peekCodePoint(2);if(Pf(t)||Pn(r,n)){var i=Jo(t,r,n)?hB:uB,a=this.consumeName();return{type:5,value:a,flags:i}}break;case pB:if(this.peekCodePoint(0)===na)return this.consumeCodePoint(),A2;break;case Vo:return this.consumeStringToken(Vo);case zo:return YB;case ia:return ZB;case Zc:if(this.peekCodePoint(0)===na)return this.consumeCodePoint(),a2;break;case gi:if($c(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case LB:return $B;case $t:var o=A,c=this.peekCodePoint(0),d=this.peekCodePoint(1);if($c(o,c,d))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(Jo(o,c,d))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(c===$t&&d===CB)return this.consumeCodePoint(),this.consumeCodePoint(),c2;break;case Ta:if($c(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case Df:if(this.peekCodePoint(0)===Zc)for(this.consumeCodePoint();;){var B=this.consumeCodePoint();if(B===Zc&&(B=this.consumeCodePoint(),B===Df))return this.consumeToken();if(B===Yr)return this.consumeToken()}break;case IB:return u2;case _B:return h2;case vB:if(this.peekCodePoint(0)===mB&&this.peekCodePoint(1)===$t&&this.peekCodePoint(2)===$t)return this.consumeCodePoint(),this.consumeCodePoint(),l2;break;case bB:var p=this.peekCodePoint(0),m=this.peekCodePoint(1),g=this.peekCodePoint(2);if(Jo(p,m,g)){var a=this.consumeName();return{type:7,value:a}}break;case yB:return f2;case ma:if(Pn(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case FB:return d2;case QB:if(this.peekCodePoint(0)===na)return this.consumeCodePoint(),e2;break;case xB:return i2;case UB:return s2;case MB:case RB:var C=this.peekCodePoint(0),v=this.peekCodePoint(1);return C===gi&&(rs(v)||v===qo)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Tf:if(this.peekCodePoint(0)===na)return this.consumeCodePoint(),r2;if(this.peekCodePoint(0)===Tf)return this.consumeCodePoint(),t2;break;case SB:if(this.peekCodePoint(0)===na)return this.consumeCodePoint(),n2;break;case Yr:return Ru}return Wo(A)?(this.consumeWhiteSpace(),g2):Pt(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):bl(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:rt(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();rs(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===qo&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var n=parseInt(rt.apply(void 0,A.map(function(c){return c===qo?hg:c})),16),i=parseInt(rt.apply(void 0,A.map(function(c){return c===qo?Bg:c})),16);return{type:30,start:n,end:i}}var a=parseInt(rt.apply(void 0,A),16);if(this.peekCodePoint(0)===$t&&rs(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var o=[];rs(t)&&o.length<6;)o.push(t),t=this.consumeCodePoint();var i=parseInt(rt.apply(void 0,o),16);return{type:30,start:a,end:i}}else return{type:30,start:a,end:a}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===zo?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===zo?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yr)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Vo||t===Go){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===Yr||this.peekCodePoint(0)===ia)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Xo)}for(;;){var n=this.consumeCodePoint();if(n===Yr||n===ia)return{type:22,value:rt.apply(void 0,A)};if(Wo(n))return this.consumeWhiteSpace(),this.peekCodePoint(0)===Yr||this.peekCodePoint(0)===ia?(this.consumeCodePoint(),{type:22,value:rt.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Xo);if(n===Go||n===Vo||n===zo||JB(n))return this.consumeBadUrlRemnants(),Xo;if(n===ma)if(Pn(n,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Xo;else A.push(n)}},e.prototype.consumeWhiteSpace=function(){for(;Wo(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===ia||A===Yr)return;Pn(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var n=Math.min(t,A);r+=rt.apply(void 0,this._value.splice(0,n)),A-=n}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var n=this._value[r];if(n===Yr||n===void 0||n===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(n===Cl)return this._value.splice(0,r),o2;if(n===ma){var i=this._value[r+1];i!==Yr&&i!==void 0&&(i===Cl?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):Pn(n,i)&&(t+=this.consumeStringSlice(r),t+=rt(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=Pa,r=this.peekCodePoint(0);for((r===gi||r===$t)&&A.push(this.consumeCodePoint());Pt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var n=this.peekCodePoint(1);if(r===Ta&&Pt(n))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=jf;Pt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),n=this.peekCodePoint(1);var i=this.peekCodePoint(2);if((r===pg||r===dg)&&((n===gi||n===$t)&&Pt(i)||Pt(n)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=jf;Pt(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[XB(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],n=this.peekCodePoint(0),i=this.peekCodePoint(1),a=this.peekCodePoint(2);if(Jo(n,i,a)){var o=this.consumeName();return{type:15,number:t,flags:r,unit:o}}return n===BB?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(rs(A)){for(var t=rt(A);rs(this.peekCodePoint(0))&&t.length<6;)t+=rt(this.consumeCodePoint());Wo(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||GB(r)||r>1114111?kf:r}return A===Yr?kf:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(Pf(t))A+=rt(t);else if(Pn(t,this.peekCodePoint(0)))A+=rt(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e}(),mg=function(){function e(A){this._tokens=A}return e.create=function(A){var t=new wg;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||B2(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?Ru:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e}(),Ma=function(e){return e.type===15},ys=function(e){return e.type===17},Ne=function(e){return e.type===20},p2=function(e){return e.type===0},Ku=function(e,A){return Ne(e)&&e.value===A},vg=function(e){return e.type!==31},Cs=function(e){return e.type!==31&&e.type!==4},rn=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},B2=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},Xn=function(e){return e.type===17||e.type===15},ut=function(e){return e.type===16||Xn(e)},Cg=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},Lt={type:17,number:0,flags:Pa},hh={type:16,number:50,flags:Pa},Rn={type:16,number:100,flags:Pa},fa=function(e,A,t){var r=e[0],n=e[1];return[Oe(r,A),Oe(typeof n<"u"?n:r,t)]},Oe=function(e,A){if(e.type===16)return e.number/100*A;if(Ma(e))switch(e.unit){case"rem":case"em":return 16*e.number;case"px":default:return e.number}return e.number},bg="deg",yg="grad",Fg="rad",Qg="turn",kl={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case bg:return Math.PI*A.number/180;case yg:return Math.PI/200*A.number;case Fg:return A.number;case Qg:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},xg=function(e){return e.type===15&&(e.unit===bg||e.unit===yg||e.unit===Fg||e.unit===Qg)},Ug=function(e){var A=e.filter(Ne).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[Lt,Lt];case"to top":case"bottom":return Cr(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[Lt,Rn];case"to right":case"left":return Cr(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[Rn,Rn];case"to bottom":case"top":return Cr(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[Rn,Lt];case"to left":case"right":return Cr(270)}return 0},Cr=function(e){return Math.PI*e/180},zn={name:"color",parse:function(e,A){if(A.type===18){var t=w2[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3);return Kn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),n=A.value.substring(1,2),i=A.value.substring(2,3),a=A.value.substring(3,4);return Kn(parseInt(r+r,16),parseInt(n+n,16),parseInt(i+i,16),parseInt(a+a,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6);return Kn(parseInt(r,16),parseInt(n,16),parseInt(i,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),n=A.value.substring(2,4),i=A.value.substring(4,6),a=A.value.substring(6,8);return Kn(parseInt(r,16),parseInt(n,16),parseInt(i,16),parseInt(a,16)/255)}}if(A.type===20){var o=mn[A.value.toUpperCase()];if(typeof o<"u")return o}return mn.TRANSPARENT}},qn=function(e){return(255&e)===0},vt=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,n=255&e>>24;return A<255?"rgba("+n+","+r+","+t+","+A/255+")":"rgb("+n+","+r+","+t+")"},Kn=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Mf=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Of=function(e,A){var t=A.filter(Cs);if(t.length===3){var r=t.map(Mf),n=r[0],i=r[1],a=r[2];return Kn(n,i,a,1)}if(t.length===4){var o=t.map(Mf),n=o[0],i=o[1],a=o[2],c=o[3];return Kn(n,i,a,c)}return 0};function Au(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var Rf=function(e,A){var t=A.filter(Cs),r=t[0],n=t[1],i=t[2],a=t[3],o=(r.type===17?Cr(r.number):kl.parse(e,r))/(Math.PI*2),c=ut(n)?n.number/100:0,d=ut(i)?i.number/100:0,B=typeof a<"u"&&ut(a)?Oe(a,1):1;if(c===0)return Kn(d*255,d*255,d*255,1);var p=d<=.5?d*(c+1):d+c-d*c,m=d*2-p,g=Au(m,p,o+1/3),C=Au(m,p,o),v=Au(m,p,o-1/3);return Kn(g*255,C*255,v*255,B)},w2={hsl:Rf,hsla:Rf,rgb:Of,rgba:Of},va=function(e,A){return zn.parse(e,mg.create(A).parseComponentValue())},mn={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},m2={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Ne(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},v2={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Pl=function(e,A){var t=zn.parse(e,A[0]),r=A[1];return r&&ut(r)?{color:t,stop:r}:{color:t,stop:null}},Kf=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=Lt),r.stop===null&&(r.stop=Rn);for(var n=[],i=0,a=0;a<e.length;a++){var o=e[a].stop;if(o!==null){var c=Oe(o,A);c>i?n.push(c):n.push(i),i=c}else n.push(null)}for(var d=null,a=0;a<n.length;a++){var B=n[a];if(B===null)d===null&&(d=a);else if(d!==null){for(var p=a-d,m=n[d-1],g=(B-m)/(p+1),C=1;C<=p;C++)n[d+C-1]=g*C;d=null}}return e.map(function(v,U){var F=v.color;return{color:F,stop:Math.max(Math.min(1,n[U]/A),0)}})},C2=function(e,A,t){var r=A/2,n=t/2,i=Oe(e[0],A)-r,a=n-Oe(e[1],t);return(Math.atan2(a,i)+Math.PI*2)%(Math.PI*2)},b2=function(e,A,t){var r=typeof e=="number"?e:C2(e,A,t),n=Math.abs(A*Math.sin(r))+Math.abs(t*Math.cos(r)),i=A/2,a=t/2,o=n/2,c=Math.sin(r-Math.PI/2)*o,d=Math.cos(r-Math.PI/2)*o;return[n,i-d,i+d,a-c,a+c]},Nr=function(e,A){return Math.sqrt(e*e+A*A)},Gf=function(e,A,t,r,n){var i=[[0,0],[0,A],[e,0],[e,A]];return i.reduce(function(a,o){var c=o[0],d=o[1],B=Nr(t-c,r-d);return(n?B<a.optimumDistance:B>a.optimumDistance)?{optimumCorner:o,optimumDistance:B}:a},{optimumDistance:n?1/0:-1/0,optimumCorner:null}).optimumCorner},y2=function(e,A,t,r,n){var i=0,a=0;switch(e.size){case 0:e.shape===0?i=a=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.min(Math.abs(A),Math.abs(A-r)),a=Math.min(Math.abs(t),Math.abs(t-n)));break;case 2:if(e.shape===0)i=a=Math.min(Nr(A,t),Nr(A,t-n),Nr(A-r,t),Nr(A-r,t-n));else if(e.shape===1){var o=Math.min(Math.abs(t),Math.abs(t-n))/Math.min(Math.abs(A),Math.abs(A-r)),c=Gf(r,n,A,t,!0),d=c[0],B=c[1];i=Nr(d-A,(B-t)/o),a=o*i}break;case 1:e.shape===0?i=a=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-n)):e.shape===1&&(i=Math.max(Math.abs(A),Math.abs(A-r)),a=Math.max(Math.abs(t),Math.abs(t-n)));break;case 3:if(e.shape===0)i=a=Math.max(Nr(A,t),Nr(A,t-n),Nr(A-r,t),Nr(A-r,t-n));else if(e.shape===1){var o=Math.max(Math.abs(t),Math.abs(t-n))/Math.max(Math.abs(A),Math.abs(A-r)),p=Gf(r,n,A,t,!1),d=p[0],B=p[1];i=Nr(d-A,(B-t)/o),a=o*i}break}return Array.isArray(e.size)&&(i=Oe(e.size[0],r),a=e.size.length===2?Oe(e.size[1],n):i),[i,a]},F2=function(e,A){var t=Cr(180),r=[];return rn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&a.value==="to"){t=Ug(n);return}else if(xg(a)){t=kl.parse(e,a);return}}var o=Pl(e,n);r.push(o)}),{angle:t,stops:r,type:1}},Yo=function(e,A){var t=Cr(180),r=[];return rn(A).forEach(function(n,i){if(i===0){var a=n[0];if(a.type===20&&["top","left","right","bottom"].indexOf(a.value)!==-1){t=Ug(n);return}else if(xg(a)){t=(kl.parse(e,a)+Cr(270))%Cr(360);return}}var o=Pl(e,n);r.push(o)}),{angle:t,stops:r,type:1}},Q2=function(e,A){var t=Cr(180),r=[],n=1,i=0,a=3,o=[];return rn(A).forEach(function(c,d){var B=c[0];if(d===0){if(Ne(B)&&B.value==="linear"){n=1;return}else if(Ne(B)&&B.value==="radial"){n=2;return}}if(B.type===18){if(B.name==="from"){var p=zn.parse(e,B.values[0]);r.push({stop:Lt,color:p})}else if(B.name==="to"){var p=zn.parse(e,B.values[0]);r.push({stop:Rn,color:p})}else if(B.name==="color-stop"){var m=B.values.filter(Cs);if(m.length===2){var p=zn.parse(e,m[1]),g=m[0];ys(g)&&r.push({stop:{type:16,number:g.number*100,flags:g.flags},color:p})}}}}),n===1?{angle:(t+Cr(180))%Cr(360),stops:r,type:n}:{size:a,shape:i,stops:r,position:o,type:n}},Sg="closest-side",Eg="farthest-side",Lg="closest-corner",Ig="farthest-corner",_g="circle",Hg="ellipse",Ng="cover",jg="contain",x2=function(e,A){var t=0,r=3,n=[],i=[];return rn(A).forEach(function(a,o){var c=!0;if(o===0){var d=!1;c=a.reduce(function(p,m){if(d)if(Ne(m))switch(m.value){case"center":return i.push(hh),p;case"top":case"left":return i.push(Lt),p;case"right":case"bottom":return i.push(Rn),p}else(ut(m)||Xn(m))&&i.push(m);else if(Ne(m))switch(m.value){case _g:return t=0,!1;case Hg:return t=1,!1;case"at":return d=!0,!1;case Sg:return r=0,!1;case Ng:case Eg:return r=1,!1;case jg:case Lg:return r=2,!1;case Ig:return r=3,!1}else if(Xn(m)||ut(m))return Array.isArray(r)||(r=[]),r.push(m),!1;return p},c)}if(c){var B=Pl(e,a);n.push(B)}}),{size:r,shape:t,stops:n,position:i,type:2}},Zo=function(e,A){var t=0,r=3,n=[],i=[];return rn(A).forEach(function(a,o){var c=!0;if(o===0?c=a.reduce(function(B,p){if(Ne(p))switch(p.value){case"center":return i.push(hh),!1;case"top":case"left":return i.push(Lt),!1;case"right":case"bottom":return i.push(Rn),!1}else if(ut(p)||Xn(p))return i.push(p),!1;return B},c):o===1&&(c=a.reduce(function(B,p){if(Ne(p))switch(p.value){case _g:return t=0,!1;case Hg:return t=1,!1;case jg:case Sg:return r=0,!1;case Eg:return r=1,!1;case Lg:return r=2,!1;case Ng:case Ig:return r=3,!1}else if(Xn(p)||ut(p))return Array.isArray(r)||(r=[]),r.push(p),!1;return B},c)),c){var d=Pl(e,a);n.push(d)}}),{size:r,shape:t,stops:n,position:i,type:2}},U2=function(e){return e.type===1},S2=function(e){return e.type===2},fh={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=Dg[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function E2(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!Dg[e.name])}var Dg={"linear-gradient":F2,"-moz-linear-gradient":Yo,"-ms-linear-gradient":Yo,"-o-linear-gradient":Yo,"-webkit-linear-gradient":Yo,"radial-gradient":x2,"-moz-radial-gradient":Zo,"-ms-radial-gradient":Zo,"-o-radial-gradient":Zo,"-webkit-radial-gradient":Zo,"-webkit-gradient":Q2},L2={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return Cs(r)&&E2(r)}).map(function(r){return fh.parse(e,r)})}},I2={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(Ne(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},_2={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return rn(A).map(function(t){return t.filter(ut)}).map(Cg)}},H2={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return rn(A).map(function(t){return t.filter(Ne).map(function(r){return r.value}).join(" ")}).map(N2)}},N2=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;case"repeat":default:return 0}},ms;(function(e){e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover"})(ms||(ms={}));var j2={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return rn(A).map(function(t){return t.filter(D2)})}},D2=function(e){return Ne(e)||ut(e)},Ml=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},T2=Ml("top"),k2=Ml("right"),P2=Ml("bottom"),M2=Ml("left"),Ol=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return Cg(t.filter(ut))}}},O2=Ol("top-left"),R2=Ol("top-right"),K2=Ol("bottom-right"),G2=Ol("bottom-left"),Rl=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},V2=Rl("top"),z2=Rl("right"),q2=Rl("bottom"),W2=Rl("left"),Kl=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return Ma(t)?t.number:0}}},J2=Kl("top"),X2=Kl("right"),Y2=Kl("bottom"),Z2=Kl("left"),$2={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Aw={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){switch(A){case"rtl":return 1;case"ltr":default:return 0}}},ew={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(Ne).reduce(function(t,r){return t|tw(r.value)},0)}},tw=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},rw={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},nw={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},yl;(function(e){e.NORMAL="normal",e.STRICT="strict"})(yl||(yl={}));var iw={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"strict":return yl.STRICT;case"normal":default:return yl.NORMAL}}},sw={name:"line-height",initialValue:"normal",prefix:!1,type:4},Vf=function(e,A){return Ne(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:ut(e)?Oe(e,A):A},aw={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:fh.parse(e,A)}},ow={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){switch(A){case"inside":return 0;case"outside":default:return 1}}},Gu={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;case"none":default:return-1}}},Gl=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},lw=Gl("top"),cw=Gl("right"),uw=Gl("bottom"),hw=Gl("left"),fw={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(Ne).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;case"visible":default:return 0}})}},dw={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-word":return"break-word";case"normal":default:return"normal"}}},Vl=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},gw=Vl("top"),pw=Vl("right"),Bw=Vl("bottom"),ww=Vl("left"),mw={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;case"left":default:return 0}}},vw={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},Cw={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Ku(A[0],"none")?[]:rn(A).map(function(t){for(var r={color:mn.TRANSPARENT,offsetX:Lt,offsetY:Lt,blur:Lt},n=0,i=0;i<t.length;i++){var a=t[i];Xn(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:r.blur=a,n++):r.color=zn.parse(e,a)}return r})}},bw={name:"text-transform",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"uppercase":return 2;case"lowercase":return 1;case"capitalize":return 3}return 0}},yw={name:"transform",initialValue:"none",prefix:!0,type:0,parse:function(e,A){if(A.type===20&&A.value==="none")return null;if(A.type===18){var t=xw[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},Fw=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},Qw=function(e){var A=e.filter(function(c){return c.type===17}).map(function(c){return c.number}),t=A[0],r=A[1];A[2],A[3];var n=A[4],i=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var a=A[12],o=A[13];return A[14],A[15],A.length===16?[t,r,n,i,a,o]:null},xw={matrix:Fw,matrix3d:Qw},zf={type:16,number:50,flags:Pa},Uw=[zf,zf],Sw={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(ut);return t.length!==2?Uw:[t[0],t[1]]}},Ew={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;case"visible":default:return 0}}},Ca;(function(e){e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all"})(Ca||(Ca={}));var Lw={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Ca.BREAK_ALL;case"keep-all":return Ca.KEEP_ALL;case"normal":default:return Ca.NORMAL}}},Iw={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(ys(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},Tg={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},_w={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return ys(A)?A.number:1}},Hw={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Nw={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(Ne).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},jw={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(n){switch(n.type){case 20:case 0:t.push(n.value);break;case 17:t.push(n.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(n){return n.indexOf(" ")===-1?n:"'"+n+"'"})}},Dw={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Tw={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){if(ys(A))return A.number;if(Ne(A))switch(A.value){case"bold":return 700;case"normal":default:return 400}return 400}},kw={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(Ne).map(function(t){return t.value})}},Pw={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";case"normal":default:return"normal"}}},pt=function(e,A){return(e&A)!==0},Mw={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},Ow={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],n=A.filter(vg),i=0;i<n.length;i++){var a=n[i],o=n[i+1];if(a.type===20){var c=o&&ys(o)?o.number:1;r.push({counter:a.value,increment:c})}}return r}},Rw={name:"counter-reset",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return[];for(var t=[],r=A.filter(vg),n=0;n<r.length;n++){var i=r[n],a=r[n+1];if(Ne(i)&&i.value!=="none"){var o=a&&ys(a)?a.number:0;t.push({counter:i.value,reset:o})}}return t}},Kw={name:"duration",initialValue:"0s",prefix:!1,type:1,parse:function(e,A){return A.filter(Ma).map(function(t){return Tg.parse(e,t)})}},Gw={name:"quotes",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;var r=[],n=A.filter(p2);if(n.length%2!==0)return null;for(var i=0;i<n.length;i+=2){var a=n[i].value,o=n[i+1].value;r.push({open:a,close:o})}return r}},qf=function(e,A,t){if(!e)return"";var r=e[Math.min(A,e.length-1)];return r?t?r.open:r.close:""},Vw={name:"box-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Ku(A[0],"none")?[]:rn(A).map(function(t){for(var r={color:255,offsetX:Lt,offsetY:Lt,blur:Lt,spread:Lt,inset:!1},n=0,i=0;i<t.length;i++){var a=t[i];Ku(a,"inset")?r.inset=!0:Xn(a)?(n===0?r.offsetX=a:n===1?r.offsetY=a:n===2?r.blur=a:r.spread=a,n++):r.color=zn.parse(e,a)}return r})}},zw={name:"paint-order",initialValue:"normal",prefix:!1,type:1,parse:function(e,A){var t=[0,1,2],r=[];return A.filter(Ne).forEach(function(n){switch(n.value){case"stroke":r.push(1);break;case"fill":r.push(0);break;case"markers":r.push(2);break}}),t.forEach(function(n){r.indexOf(n)===-1&&r.push(n)}),r}},qw={name:"-webkit-text-stroke-color",initialValue:"currentcolor",prefix:!1,type:3,format:"color"},Ww={name:"-webkit-text-stroke-width",initialValue:"0",type:0,prefix:!1,parse:function(e,A){return Ma(A)?A.number:0}},Jw=function(){function e(A,t){var r,n;this.animationDuration=KA(A,Kw,t.animationDuration),this.backgroundClip=KA(A,m2,t.backgroundClip),this.backgroundColor=KA(A,v2,t.backgroundColor),this.backgroundImage=KA(A,L2,t.backgroundImage),this.backgroundOrigin=KA(A,I2,t.backgroundOrigin),this.backgroundPosition=KA(A,_2,t.backgroundPosition),this.backgroundRepeat=KA(A,H2,t.backgroundRepeat),this.backgroundSize=KA(A,j2,t.backgroundSize),this.borderTopColor=KA(A,T2,t.borderTopColor),this.borderRightColor=KA(A,k2,t.borderRightColor),this.borderBottomColor=KA(A,P2,t.borderBottomColor),this.borderLeftColor=KA(A,M2,t.borderLeftColor),this.borderTopLeftRadius=KA(A,O2,t.borderTopLeftRadius),this.borderTopRightRadius=KA(A,R2,t.borderTopRightRadius),this.borderBottomRightRadius=KA(A,K2,t.borderBottomRightRadius),this.borderBottomLeftRadius=KA(A,G2,t.borderBottomLeftRadius),this.borderTopStyle=KA(A,V2,t.borderTopStyle),this.borderRightStyle=KA(A,z2,t.borderRightStyle),this.borderBottomStyle=KA(A,q2,t.borderBottomStyle),this.borderLeftStyle=KA(A,W2,t.borderLeftStyle),this.borderTopWidth=KA(A,J2,t.borderTopWidth),this.borderRightWidth=KA(A,X2,t.borderRightWidth),this.borderBottomWidth=KA(A,Y2,t.borderBottomWidth),this.borderLeftWidth=KA(A,Z2,t.borderLeftWidth),this.boxShadow=KA(A,Vw,t.boxShadow),this.color=KA(A,$2,t.color),this.direction=KA(A,Aw,t.direction),this.display=KA(A,ew,t.display),this.float=KA(A,rw,t.cssFloat),this.fontFamily=KA(A,jw,t.fontFamily),this.fontSize=KA(A,Dw,t.fontSize),this.fontStyle=KA(A,Pw,t.fontStyle),this.fontVariant=KA(A,kw,t.fontVariant),this.fontWeight=KA(A,Tw,t.fontWeight),this.letterSpacing=KA(A,nw,t.letterSpacing),this.lineBreak=KA(A,iw,t.lineBreak),this.lineHeight=KA(A,sw,t.lineHeight),this.listStyleImage=KA(A,aw,t.listStyleImage),this.listStylePosition=KA(A,ow,t.listStylePosition),this.listStyleType=KA(A,Gu,t.listStyleType),this.marginTop=KA(A,lw,t.marginTop),this.marginRight=KA(A,cw,t.marginRight),this.marginBottom=KA(A,uw,t.marginBottom),this.marginLeft=KA(A,hw,t.marginLeft),this.opacity=KA(A,_w,t.opacity);var i=KA(A,fw,t.overflow);this.overflowX=i[0],this.overflowY=i[i.length>1?1:0],this.overflowWrap=KA(A,dw,t.overflowWrap),this.paddingTop=KA(A,gw,t.paddingTop),this.paddingRight=KA(A,pw,t.paddingRight),this.paddingBottom=KA(A,Bw,t.paddingBottom),this.paddingLeft=KA(A,ww,t.paddingLeft),this.paintOrder=KA(A,zw,t.paintOrder),this.position=KA(A,vw,t.position),this.textAlign=KA(A,mw,t.textAlign),this.textDecorationColor=KA(A,Hw,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=KA(A,Nw,(n=t.textDecorationLine)!==null&&n!==void 0?n:t.textDecoration),this.textShadow=KA(A,Cw,t.textShadow),this.textTransform=KA(A,bw,t.textTransform),this.transform=KA(A,yw,t.transform),this.transformOrigin=KA(A,Sw,t.transformOrigin),this.visibility=KA(A,Ew,t.visibility),this.webkitTextStrokeColor=KA(A,qw,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=KA(A,Ww,t.webkitTextStrokeWidth),this.wordBreak=KA(A,Lw,t.wordBreak),this.zIndex=KA(A,Iw,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return qn(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return pt(this.display,4)||pt(this.display,33554432)||pt(this.display,268435456)||pt(this.display,536870912)||pt(this.display,67108864)||pt(this.display,134217728)},e}(),Xw=function(){function e(A,t){this.content=KA(A,Mw,t.content),this.quotes=KA(A,Gw,t.quotes)}return e}(),Wf=function(){function e(A,t){this.counterIncrement=KA(A,Ow,t.counterIncrement),this.counterReset=KA(A,Rw,t.counterReset)}return e}(),KA=function(e,A,t){var r=new wg,n=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(n);var i=new mg(r.read());switch(A.type){case 2:var a=i.parseComponentValue();return A.parse(e,Ne(a)?a.value:A.initialValue);case 0:return A.parse(e,i.parseComponentValue());case 1:return A.parse(e,i.parseComponentValues());case 4:return i.parseComponentValue();case 3:switch(A.format){case"angle":return kl.parse(e,i.parseComponentValue());case"color":return zn.parse(e,i.parseComponentValue());case"image":return fh.parse(e,i.parseComponentValue());case"length":var o=i.parseComponentValue();return Xn(o)?o:Lt;case"length-percentage":var c=i.parseComponentValue();return ut(c)?c:Lt;case"time":return Tg.parse(e,i.parseComponentValue())}break}},Yw="data-html2canvas-debug",Zw=function(e){var A=e.getAttribute(Yw);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Vu=function(e,A){var t=Zw(e);return t===1||A===t},nn=function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Vu(t,3))debugger;this.styles=new Jw(A,window.getComputedStyle(t,null)),Wu(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=Dl(this.context,t),Vu(t,4)&&(this.flags|=16)}return e}(),$w="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",Jf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",da=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var $o=0;$o<Jf.length;$o++)da[Jf.charCodeAt($o)]=$o;var Am=function(e){var A=e.length*.75,t=e.length,r,n=0,i,a,o,c;e[e.length-1]==="="&&(A--,e[e.length-2]==="="&&A--);var d=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u"&&typeof Uint8Array.prototype.slice<"u"?new ArrayBuffer(A):new Array(A),B=Array.isArray(d)?d:new Uint8Array(d);for(r=0;r<t;r+=4)i=da[e.charCodeAt(r)],a=da[e.charCodeAt(r+1)],o=da[e.charCodeAt(r+2)],c=da[e.charCodeAt(r+3)],B[n++]=i<<2|a>>4,B[n++]=(a&15)<<4|o>>2,B[n++]=(o&3)<<6|c&63;return d},em=function(e){for(var A=e.length,t=[],r=0;r<A;r+=2)t.push(e[r+1]<<8|e[r]);return t},tm=function(e){for(var A=e.length,t=[],r=0;r<A;r+=4)t.push(e[r+3]<<24|e[r+2]<<16|e[r+1]<<8|e[r]);return t},vi=5,dh=11,eu=2,rm=dh-vi,kg=65536>>vi,nm=1<<vi,tu=nm-1,im=1024>>vi,sm=kg+im,am=sm,om=32,lm=am+om,cm=65536>>dh,um=1<<rm,hm=um-1,Xf=function(e,A,t){return e.slice?e.slice(A,t):new Uint16Array(Array.prototype.slice.call(e,A,t))},fm=function(e,A,t){return e.slice?e.slice(A,t):new Uint32Array(Array.prototype.slice.call(e,A,t))},dm=function(e,A){var t=Am(e),r=Array.isArray(t)?tm(t):new Uint32Array(t),n=Array.isArray(t)?em(t):new Uint16Array(t),i=24,a=Xf(n,i/2,r[4]/2),o=r[5]===2?Xf(n,(i+r[4])/2):fm(r,Math.ceil((i+r[4])/4));return new gm(r[0],r[1],r[2],r[3],a,o)},gm=function(){function e(A,t,r,n,i,a){this.initialValue=A,this.errorValue=t,this.highStart=r,this.highValueIndex=n,this.index=i,this.data=a}return e.prototype.get=function(A){var t;if(A>=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>vi],t=(t<<eu)+(A&tu),this.data[t];if(A<=65535)return t=this.index[kg+(A-55296>>vi)],t=(t<<eu)+(A&tu),this.data[t];if(A<this.highStart)return t=lm-cm+(A>>dh),t=this.index[t],t+=A>>vi&hm,t=this.index[t],t=(t<<eu)+(A&tu),this.data[t];if(A<=1114111)return this.data[this.highValueIndex]}return this.errorValue},e}(),Yf="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",pm=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Al=0;Al<Yf.length;Al++)pm[Yf.charCodeAt(Al)]=Al;var Bm=1,ru=2,nu=3,Zf=4,$f=5,wm=7,Ad=8,iu=9,su=10,ed=11,td=12,rd=13,nd=14,au=15,mm=function(e){for(var A=[],t=0,r=e.length;t<r;){var n=e.charCodeAt(t++);if(n>=55296&&n<=56319&&t<r){var i=e.charCodeAt(t++);(i&64512)===56320?A.push(((n&1023)<<10)+(i&1023)+65536):(A.push(n),t--)}else A.push(n)}return A},vm=function(){for(var e=[],A=0;A<arguments.length;A++)e[A]=arguments[A];if(String.fromCodePoint)return String.fromCodePoint.apply(String,e);var t=e.length;if(!t)return"";for(var r=[],n=-1,i="";++n<t;){var a=e[n];a<=65535?r.push(a):(a-=65536,r.push((a>>10)+55296,a%1024+56320)),(n+1===t||r.length>16384)&&(i+=String.fromCharCode.apply(String,r),r.length=0)}return i},Cm=dm($w),wr="×",ou="÷",bm=function(e){return Cm.get(e)},ym=function(e,A,t){var r=t-2,n=A[r],i=A[t-1],a=A[t];if(i===ru&&a===nu)return wr;if(i===ru||i===nu||i===Zf||a===ru||a===nu||a===Zf)return ou;if(i===Ad&&[Ad,iu,ed,td].indexOf(a)!==-1||(i===ed||i===iu)&&(a===iu||a===su)||(i===td||i===su)&&a===su||a===rd||a===$f||a===wm||i===Bm)return wr;if(i===rd&&a===nd){for(;n===$f;)n=A[--r];if(n===nd)return wr}if(i===au&&a===au){for(var o=0;n===au;)o++,n=A[--r];if(o%2===0)return wr}return ou},Fm=function(e){var A=mm(e),t=A.length,r=0,n=0,i=A.map(bm);return{next:function(){if(r>=t)return{done:!0,value:null};for(var a=wr;r<t&&(a=ym(A,i,++r))===wr;);if(a!==wr||r===t){var o=vm.apply(null,A.slice(n,r));return n=r,{value:o,done:!1}}return{done:!0,value:null}}}},Qm=function(e){for(var A=Fm(e),t=[],r;!(r=A.next()).done;)r.value&&t.push(r.value.slice());return t},xm=function(e){var A=123;if(e.createRange){var t=e.createRange();if(t.getBoundingClientRect){var r=e.createElement("boundtest");r.style.height=A+"px",r.style.display="block",e.body.appendChild(r),t.selectNode(r);var n=t.getBoundingClientRect(),i=Math.round(n.height);if(e.body.removeChild(r),i===A)return!0}}return!1},Um=function(e){var A=e.createElement("boundtest");A.style.width="50px",A.style.display="block",A.style.fontSize="12px",A.style.letterSpacing="0px",A.style.wordSpacing="0px",e.body.appendChild(A);var t=e.createRange();A.innerHTML=typeof"".repeat=="function"?"👨".repeat(10):"";var r=A.firstChild,n=Tl(r.data).map(function(c){return rt(c)}),i=0,a={},o=n.every(function(c,d){t.setStart(r,i),t.setEnd(r,i+c.length);var B=t.getBoundingClientRect();i+=c.length;var p=B.x>a.x||B.y>a.y;return a=B,d===0?!0:p});return e.body.removeChild(A),o},Sm=function(){return typeof new Image().crossOrigin<"u"},Em=function(){return typeof new XMLHttpRequest().responseType=="string"},Lm=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg'></svg>";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},id=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},Im=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var n=new Image,i=A.toDataURL();n.src=i;var a=zu(t,t,0,0,n);return r.fillStyle="red",r.fillRect(0,0,t,t),sd(a).then(function(o){r.drawImage(o,0,0);var c=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var d=e.createElement("div");return d.style.backgroundImage="url("+i+")",d.style.height=t+"px",id(c)?sd(zu(t,t,0,0,d)):Promise.reject(!1)}).then(function(o){return r.drawImage(o,0,0),id(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},zu=function(e,A,t,r,n){var i="http://www.w3.org/2000/svg",a=document.createElementNS(i,"svg"),o=document.createElementNS(i,"foreignObject");return a.setAttributeNS(null,"width",e.toString()),a.setAttributeNS(null,"height",A.toString()),o.setAttributeNS(null,"width","100%"),o.setAttributeNS(null,"height","100%"),o.setAttributeNS(null,"x",t.toString()),o.setAttributeNS(null,"y",r.toString()),o.setAttributeNS(null,"externalResourcesRequired","true"),a.appendChild(o),o.appendChild(n),a},sd=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},Qt={get SUPPORT_RANGE_BOUNDS(){var e=xm(document);return Object.defineProperty(Qt,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=Qt.SUPPORT_RANGE_BOUNDS&&Um(document);return Object.defineProperty(Qt,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=Lm(document);return Object.defineProperty(Qt,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?Im(document):Promise.resolve(!1);return Object.defineProperty(Qt,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=Sm();return Object.defineProperty(Qt,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Em();return Object.defineProperty(Qt,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(Qt,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(Qt,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},ba=function(){function e(A,t){this.text=A,this.bounds=t}return e}(),_m=function(e,A,t,r){var n=jm(A,t),i=[],a=0;return n.forEach(function(o){if(t.textDecorationLine.length||o.trim().length>0)if(Qt.SUPPORT_RANGE_BOUNDS){var c=ad(r,a,o.length).getClientRects();if(c.length>1){var d=gh(o),B=0;d.forEach(function(m){i.push(new ba(m,vn.fromDOMRectList(e,ad(r,B+a,m.length).getClientRects()))),B+=m.length})}else i.push(new ba(o,vn.fromDOMRectList(e,c)))}else{var p=r.splitText(o.length);i.push(new ba(o,Hm(e,r))),r=p}else Qt.SUPPORT_RANGE_BOUNDS||(r=r.splitText(o.length));a+=o.length}),i},Hm=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var n=A.parentNode;if(n){n.replaceChild(r,A);var i=Dl(e,r);return r.firstChild&&n.replaceChild(r.firstChild,r),i}}return vn.EMPTY},ad=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var n=r.createRange();return n.setStart(e,A),n.setEnd(e,A+t),n},gh=function(e){if(Qt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return Qm(e)},Nm=function(e,A){if(Qt.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return Tm(e,A)},jm=function(e,A){return A.letterSpacing!==0?gh(e):Nm(e,A)},Dm=[32,160,4961,65792,65793,4153,4241],Tm=function(e,A){for(var t=cB(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],n,i=function(){if(n.value){var a=n.value.slice(),o=Tl(a),c="";o.forEach(function(d){Dm.indexOf(d)===-1?c+=rt(d):(c.length&&r.push(c),r.push(rt(d)),c="")}),c.length&&r.push(c)}};!(n=t.next()).done;)i();return r},km=function(){function e(A,t,r){this.text=Pm(t.data,r.textTransform),this.textBounds=_m(A,this.text,r,t)}return e}(),Pm=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Mm,Om);case 2:return e.toUpperCase();default:return e}},Mm=/(^|\s|:|-|\(|\))([a-z])/g,Om=function(e,A,t){return e.length>0?A+t.toUpperCase():e},Pg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.src=r.currentSrc||r.src,n.intrinsicWidth=r.naturalWidth,n.intrinsicHeight=r.naturalHeight,n.context.cache.addImage(n.src),n}return A}(nn),Mg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r,n.intrinsicWidth=r.width,n.intrinsicHeight=r.height,n}return A}(nn),Og=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=new XMLSerializer,a=Dl(t,r);return r.setAttribute("width",a.width+"px"),r.setAttribute("height",a.height+"px"),n.svg="data:image/svg+xml,"+encodeURIComponent(i.serializeToString(r)),n.intrinsicWidth=r.width.baseVal.value,n.intrinsicHeight=r.height.baseVal.value,n.context.cache.addImage(n.svg),n}return A}(nn),Rg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(nn),qu=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.start=r.start,n.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,n}return A}(nn),Rm=[{type:15,flags:0,unit:"px",number:3}],Km=[{type:16,flags:0,number:50}],Gm=function(e){return e.width>e.height?new vn(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width<e.height?new vn(e.left,e.top+(e.height-e.width)/2,e.width,e.width):e},Vm=function(e){var A=e.type===zm?new Array(e.value.length+1).join("•"):e.value;return A.length===0?e.placeholder||"":A},Fl="checkbox",Ql="radio",zm="password",od=707406591,ph=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;switch(n.type=r.type.toLowerCase(),n.checked=r.checked,n.value=Vm(r),(n.type===Fl||n.type===Ql)&&(n.styles.backgroundColor=3739148031,n.styles.borderTopColor=n.styles.borderRightColor=n.styles.borderBottomColor=n.styles.borderLeftColor=2779096575,n.styles.borderTopWidth=n.styles.borderRightWidth=n.styles.borderBottomWidth=n.styles.borderLeftWidth=1,n.styles.borderTopStyle=n.styles.borderRightStyle=n.styles.borderBottomStyle=n.styles.borderLeftStyle=1,n.styles.backgroundClip=[0],n.styles.backgroundOrigin=[0],n.bounds=Gm(n.bounds)),n.type){case Fl:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Rm;break;case Ql:n.styles.borderTopRightRadius=n.styles.borderTopLeftRadius=n.styles.borderBottomRightRadius=n.styles.borderBottomLeftRadius=Km;break}return n}return A}(nn),Kg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this,i=r.options[r.selectedIndex||0];return n.value=i&&i.text||"",n}return A}(nn),Gg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.value=r.value,n}return A}(nn),Vg=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;n.src=r.src,n.width=parseInt(r.width,10)||0,n.height=parseInt(r.height,10)||0,n.backgroundColor=n.styles.backgroundColor;try{if(r.contentWindow&&r.contentWindow.document&&r.contentWindow.document.documentElement){n.tree=qg(t,r.contentWindow.document.documentElement);var i=r.contentWindow.document.documentElement?va(t,getComputedStyle(r.contentWindow.document.documentElement).backgroundColor):mn.TRANSPARENT,a=r.contentWindow.document.body?va(t,getComputedStyle(r.contentWindow.document.body).backgroundColor):mn.TRANSPARENT;n.backgroundColor=qn(i)?qn(a)?n.styles.backgroundColor:a:i}}catch{}return n}return A}(nn),qm=["OL","UL","MENU"],hl=function(e,A,t,r){for(var n=A.firstChild,i=void 0;n;n=i)if(i=n.nextSibling,Wg(n)&&n.data.trim().length>0)t.textNodes.push(new km(e,n,t.styles));else if(fs(n))if(Zg(n)&&n.assignedNodes)n.assignedNodes().forEach(function(o){return hl(e,o,t,r)});else{var a=zg(e,n);a.styles.isVisible()&&(Wm(n,a,r)?a.flags|=4:Jm(a.styles)&&(a.flags|=2),qm.indexOf(n.tagName)!==-1&&(a.flags|=8),t.elements.push(a),n.slot,n.shadowRoot?hl(e,n.shadowRoot,a,r):!xl(n)&&!Jg(n)&&!Ul(n)&&hl(e,n,a,r))}},zg=function(e,A){return Ju(A)?new Pg(e,A):Xg(A)?new Mg(e,A):Jg(A)?new Og(e,A):Xm(A)?new Rg(e,A):Ym(A)?new qu(e,A):Zm(A)?new ph(e,A):Ul(A)?new Kg(e,A):xl(A)?new Gg(e,A):Yg(A)?new Vg(e,A):new nn(e,A)},qg=function(e,A){var t=zg(e,A);return t.flags|=4,hl(e,A,t,t),t},Wm=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Bh(e)&&t.styles.isTransparent()},Jm=function(e){return e.isPositioned()||e.isFloating()},Wg=function(e){return e.nodeType===Node.TEXT_NODE},fs=function(e){return e.nodeType===Node.ELEMENT_NODE},Wu=function(e){return fs(e)&&typeof e.style<"u"&&!fl(e)},fl=function(e){return typeof e.className=="object"},Xm=function(e){return e.tagName==="LI"},Ym=function(e){return e.tagName==="OL"},Zm=function(e){return e.tagName==="INPUT"},$m=function(e){return e.tagName==="HTML"},Jg=function(e){return e.tagName==="svg"},Bh=function(e){return e.tagName==="BODY"},Xg=function(e){return e.tagName==="CANVAS"},ld=function(e){return e.tagName==="VIDEO"},Ju=function(e){return e.tagName==="IMG"},Yg=function(e){return e.tagName==="IFRAME"},cd=function(e){return e.tagName==="STYLE"},A5=function(e){return e.tagName==="SCRIPT"},xl=function(e){return e.tagName==="TEXTAREA"},Ul=function(e){return e.tagName==="SELECT"},Zg=function(e){return e.tagName==="SLOT"},ud=function(e){return e.tagName.indexOf("-")>0},e5=function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,n=A.counterReset,i=!0;r!==null&&r.forEach(function(o){var c=t.counters[o.counter];c&&o.increment!==0&&(i=!1,c.length||c.push(1),c[Math.max(0,c.length-1)]+=o.increment)});var a=[];return i&&n.forEach(function(o){var c=t.counters[o.counter];a.push(o.counter),c||(c=t.counters[o.counter]=[]),c.push(o.reset)}),a},e}(),hd={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},fd={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["Ք","Փ","Ւ","Ց","Ր","Տ","Վ","Ս","Ռ","Ջ","Պ","Չ","Ո","Շ","Ն","Յ","Մ","Ճ","Ղ","Ձ","Հ","Կ","Ծ","Խ","Լ","Ի","Ժ","Թ","Ը","Է","Զ","Ե","Դ","Գ","Բ","Ա"]},t5={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["י׳","ט׳","ח׳","ז׳","ו׳","ה׳","ד׳","ג׳","ב׳","א׳","ת","ש","ר","ק","צ","פ","ע","ס","נ","מ","ל","כ","יט","יח","יז","טז","טו","י","ט","ח","ז","ו","ה","ד","ג","ב","א"]},r5={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["ჵ","ჰ","ჯ","ჴ","ხ","ჭ","წ","ძ","ც","ჩ","შ","ყ","ღ","ქ","ფ","ჳ","ტ","ს","რ","ჟ","პ","ო","ჲ","ნ","მ","ლ","კ","ი","თ","ჱ","ზ","ვ","ე","დ","გ","ბ","ა"]},ns=function(e,A,t,r,n,i){return e<A||e>t?ka(e,n,i.length>0):r.integers.reduce(function(a,o,c){for(;e>=o;)e-=o,a+=r.values[c];return a},"")+i},$g=function(e,A,t,r){var n="";do t||e--,n=r(e)+n,e/=A;while(e*A>=A);return n},et=function(e,A,t,r,n){var i=t-A+1;return(e<0?"-":"")+($g(Math.abs(e),i,r,function(a){return rt(Math.floor(a%i)+A)})+n)},oi=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return $g(Math.abs(e),r,!1,function(n){return A[Math.floor(n%r)]})+t},ls=1,Tn=2,kn=4,ga=8,wn=function(e,A,t,r,n,i){if(e<-9999||e>9999)return ka(e,4,n.length>0);var a=Math.abs(e),o=n;if(a===0)return A[0]+o;for(var c=0;a>0&&c<=4;c++){var d=a%10;d===0&&pt(i,ls)&&o!==""?o=A[d]+o:d>1||d===1&&c===0||d===1&&c===1&&pt(i,Tn)||d===1&&c===1&&pt(i,kn)&&e>100||d===1&&c>1&&pt(i,ga)?o=A[d]+(c>0?t[c-1]:"")+o:d===1&&c>0&&(o=t[c-1]+o),a=Math.floor(a/10)}return(e<0?r:"")+o},dd="十百千萬",gd="拾佰仟萬",pd="マイナス",lu="마이너스",ka=function(e,A,t){var r=t?". ":"",n=t?"、":"",i=t?", ":"",a=t?" ":"";switch(A){case 0:return"•"+a;case 1:return"◦"+a;case 2:return"◾"+a;case 5:var o=et(e,48,57,!0,r);return o.length<4?"0"+o:o;case 4:return oi(e,"〇一二三四五六七八九",n);case 6:return ns(e,1,3999,hd,3,r).toLowerCase();case 7:return ns(e,1,3999,hd,3,r);case 8:return et(e,945,969,!1,r);case 9:return et(e,97,122,!1,r);case 10:return et(e,65,90,!1,r);case 11:return et(e,1632,1641,!0,r);case 12:case 49:return ns(e,1,9999,fd,3,r);case 35:return ns(e,1,9999,fd,3,r).toLowerCase();case 13:return et(e,2534,2543,!0,r);case 14:case 30:return et(e,6112,6121,!0,r);case 15:return oi(e,"子丑寅卯辰巳午未申酉戌亥",n);case 16:return oi(e,"甲乙丙丁戊己庚辛壬癸",n);case 17:case 48:return wn(e,"零一二三四五六七八九",dd,"負",n,Tn|kn|ga);case 47:return wn(e,"零壹貳參肆伍陸柒捌玖",gd,"負",n,ls|Tn|kn|ga);case 42:return wn(e,"零一二三四五六七八九",dd,"负",n,Tn|kn|ga);case 41:return wn(e,"零壹贰叁肆伍陆柒捌玖",gd,"负",n,ls|Tn|kn|ga);case 26:return wn(e,"〇一二三四五六七八九","十百千万",pd,n,0);case 25:return wn(e,"零壱弐参四伍六七八九","拾百千万",pd,n,ls|Tn|kn);case 31:return wn(e,"영일이삼사오육칠팔구","십백천만",lu,i,ls|Tn|kn);case 33:return wn(e,"零一二三四五六七八九","十百千萬",lu,i,0);case 32:return wn(e,"零壹貳參四五六七八九","拾百千",lu,i,ls|Tn|kn);case 18:return et(e,2406,2415,!0,r);case 20:return ns(e,1,19999,r5,3,r);case 21:return et(e,2790,2799,!0,r);case 22:return et(e,2662,2671,!0,r);case 22:return ns(e,1,10999,t5,3,r);case 23:return oi(e,"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわゐゑをん");case 24:return oi(e,"いろはにほへとちりぬるをわかよたれそつねならむうゐのおくやまけふこえてあさきゆめみしゑひもせす");case 27:return et(e,3302,3311,!0,r);case 28:return oi(e,"アイウエオカキクケコサシスセソタチツテトナニヌネノハヒフヘホマミムメモヤユヨラリルレロワヰヱヲン",n);case 29:return oi(e,"イロハニホヘトチリヌルヲワカヨタレソツネナラムウヰノオクヤマケフコエテアサキユメミシヱヒモセス",n);case 34:return et(e,3792,3801,!0,r);case 37:return et(e,6160,6169,!0,r);case 38:return et(e,4160,4169,!0,r);case 39:return et(e,2918,2927,!0,r);case 40:return et(e,1776,1785,!0,r);case 43:return et(e,3046,3055,!0,r);case 44:return et(e,3174,3183,!0,r);case 45:return et(e,3664,3673,!0,r);case 46:return et(e,3872,3881,!0,r);case 3:default:return et(e,48,57,!0,r)}},Ap="data-html2canvas-ignore",Bd=function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new e5,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,n=n5(A,t);if(!n.contentWindow)return Promise.reject("Unable to find iframe window");var i=A.defaultView.pageXOffset,a=A.defaultView.pageYOffset,o=n.contentWindow,c=o.document,d=a5(n).then(function(){return Vt(r,void 0,void 0,function(){var B,p;return kt(this,function(m){switch(m.label){case 0:return this.scrolledElements.forEach(u5),o&&(o.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(o.scrollY!==t.top||o.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(o.scrollX-t.left,o.scrollY-t.top,0,0))),B=this.options.onclone,p=this.clonedReferenceElement,typeof p>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:c.fonts&&c.fonts.ready?[4,c.fonts.ready]:[3,2];case 1:m.sent(),m.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,s5(c)]:[3,4];case 3:m.sent(),m.label=4;case 4:return typeof B=="function"?[2,Promise.resolve().then(function(){return B(c,p)}).then(function(){return n})]:[2,n]}})})});return c.open(),c.write(l5(document.doctype)+"<html></html>"),c5(this.referenceElement.ownerDocument,i,a),c.replaceChild(c.adoptNode(this.documentElement),c.documentElement),c.close(),d},e.prototype.createElementClone=function(A){if(Vu(A,2))debugger;if(Xg(A))return this.createCanvasClone(A);if(ld(A))return this.createVideoClone(A);if(cd(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return Ju(t)&&(Ju(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),ud(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return cu(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(i,a){return a&&typeof a.cssText=="string"?i+a.cssText:i},""),n=A.cloneNode(!1);return n.textContent=r,n}}catch(i){if(this.context.logger.error("Unable to access cssRules property",i),i.name!=="SecurityError")throw i}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var n=A.cloneNode(!1);try{n.width=A.width,n.height=A.height;var i=A.getContext("2d"),a=n.getContext("2d");if(a)if(!this.options.allowTaint&&i)a.putImageData(i.getImageData(0,0,A.width,A.height),0,0);else{var o=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(o){var c=o.getContextAttributes();c?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}a.drawImage(A,0,0)}return n}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return n},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var n=A.ownerDocument.createElement("canvas");return n.width=A.offsetWidth,n.height=A.offsetHeight,n},e.prototype.appendChildNode=function(A,t,r){(!fs(t)||!A5(t)&&!t.hasAttribute(Ap)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!fs(t)||!cd(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var n=this,i=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;i;i=i.nextSibling)if(fs(i)&&Zg(i)&&typeof i.assignedNodes=="function"){var a=i.assignedNodes();a.length&&a.forEach(function(o){return n.appendChildNode(t,o,r)})}else this.appendChildNode(t,i,r)},e.prototype.cloneNode=function(A,t){if(Wg(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&fs(A)&&(Wu(A)||fl(A))){var n=this.createElementClone(A);n.style.transitionProperty="none";var i=r.getComputedStyle(A),a=r.getComputedStyle(A,":before"),o=r.getComputedStyle(A,":after");this.referenceElement===A&&Wu(n)&&(this.clonedReferenceElement=n),Bh(n)&&d5(n);var c=this.counters.parse(new Wf(this.context,i)),d=this.resolvePseudoContent(A,n,a,ya.BEFORE);ud(A)&&(t=!0),ld(A)||this.cloneChildNodes(A,n,t),d&&n.insertBefore(d,n.firstChild);var B=this.resolvePseudoContent(A,n,o,ya.AFTER);return B&&n.appendChild(B),this.counters.pop(c),(i&&(this.options.copyStyles||fl(A))&&!Yg(A)||t)&&cu(i,n),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([n,A.scrollLeft,A.scrollTop]),(xl(A)||Ul(A))&&(xl(n)||Ul(n))&&(n.value=A.value),n}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,n){var i=this;if(r){var a=r.content,o=t.ownerDocument;if(!(!o||!a||a==="none"||a==="-moz-alt-content"||r.display==="none")){this.counters.parse(new Wf(this.context,r));var c=new Xw(this.context,r),d=o.createElement("html2canvaspseudoelement");cu(r,d),c.content.forEach(function(p){if(p.type===0)d.appendChild(o.createTextNode(p.value));else if(p.type===22){var m=o.createElement("img");m.src=p.value,m.style.opacity="1",d.appendChild(m)}else if(p.type===18){if(p.name==="attr"){var g=p.values.filter(Ne);g.length&&d.appendChild(o.createTextNode(A.getAttribute(g[0].value)||""))}else if(p.name==="counter"){var C=p.values.filter(Cs),v=C[0],U=C[1];if(v&&Ne(v)){var F=i.counters.getCounterValue(v.value),x=U&&Ne(U)?Gu.parse(i.context,U.value):3;d.appendChild(o.createTextNode(ka(F,x,!1)))}}else if(p.name==="counters"){var N=p.values.filter(Cs),v=N[0],V=N[1],U=N[2];if(v&&Ne(v)){var q=i.counters.getCounterValues(v.value),Y=U&&Ne(U)?Gu.parse(i.context,U.value):3,W=V&&V.type===0?V.value:"",R=q.map(function(_){return ka(_,Y,!1)}).join(W);d.appendChild(o.createTextNode(R))}}}else if(p.type===20)switch(p.value){case"open-quote":d.appendChild(o.createTextNode(qf(c.quotes,i.quoteDepth++,!0)));break;case"close-quote":d.appendChild(o.createTextNode(qf(c.quotes,--i.quoteDepth,!1)));break;default:d.appendChild(o.createTextNode(p.value))}}),d.className=Xu+" "+Yu;var B=n===ya.BEFORE?" "+Xu:" "+Yu;return fl(t)?t.className.baseValue+=B:t.className+=B,d}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e}(),ya;(function(e){e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER"})(ya||(ya={}));var n5=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(Ap,"true"),e.body.appendChild(t),t},i5=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},s5=function(e){return Promise.all([].slice.call(e.images,0).map(i5))},a5=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var n=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var i=setInterval(function(){n.body.childNodes.length>0&&n.readyState==="complete"&&(clearInterval(i),A(e))},50)}})},o5=["all","d","content"],cu=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);o5.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},l5=function(e){var A="";return e&&(A+="<!DOCTYPE ",e.name&&(A+=e.name),e.internalSubset&&(A+=e.internalSubset),e.publicId&&(A+='"'+e.publicId+'"'),e.systemId&&(A+='"'+e.systemId+'"'),A+=">"),A},c5=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},u5=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},h5=":before",f5=":after",Xu="___html2canvas___pseudoelement_before",Yu="___html2canvas___pseudoelement_after",wd=`{ content: "" !important; display: none !important; }`,d5=function(e){g5(e,"."+Xu+h5+wd+` .`+Yu+f5+wd)},g5=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},ep=function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e}(),p5=function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(hu(A)||v5(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return Vt(this,void 0,void 0,function(){var t,r,n,i,a=this;return kt(this,function(o){switch(o.label){case 0:return t=ep.isSameOrigin(A),r=!uu(A)&&this._options.useCORS===!0&&Qt.SUPPORT_CORS_IMAGES&&!t,n=!uu(A)&&!t&&!hu(A)&&typeof this._options.proxy=="string"&&Qt.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!uu(A)&&!hu(A)&&!n&&!r?[2]:(i=A,n?[4,this.proxy(i)]:[3,2]);case 1:i=o.sent(),o.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(c,d){var B=new Image;B.onload=function(){return c(B)},B.onerror=d,(C5(i)||r)&&(B.crossOrigin="anonymous"),B.src=i,B.complete===!0&&setTimeout(function(){return c(B)},500),a._options.imageTimeout>0&&setTimeout(function(){return d("Timed out ("+a._options.imageTimeout+"ms) loading image")},a._options.imageTimeout)})];case 3:return[2,o.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var n=A.substring(0,256);return new Promise(function(i,a){var o=Qt.SUPPORT_RESPONSE_TYPE?"blob":"text",c=new XMLHttpRequest;c.onload=function(){if(c.status===200)if(o==="text")i(c.response);else{var p=new FileReader;p.addEventListener("load",function(){return i(p.result)},!1),p.addEventListener("error",function(m){return a(m)},!1),p.readAsDataURL(c.response)}else a("Failed to proxy resource "+n+" with status code "+c.status)},c.onerror=a;var d=r.indexOf("?")>-1?"&":"?";if(c.open("GET",""+r+d+"url="+encodeURIComponent(A)+"&responseType="+o),o!=="text"&&c instanceof XMLHttpRequest&&(c.responseType=o),t._options.imageTimeout){var B=t._options.imageTimeout;c.timeout=B,c.ontimeout=function(){return a("Timed out ("+B+"ms) proxying "+n)}}c.send()})},e}(),B5=/^data:image\/svg\+xml/i,w5=/^data:image\/.*;base64,/i,m5=/^data:image\/.*/i,v5=function(e){return Qt.SUPPORT_SVG_DRAWING||!b5(e)},uu=function(e){return m5.test(e)},C5=function(e){return w5.test(e)},hu=function(e){return e.substr(0,4)==="blob"},b5=function(e){return e.substr(-3).toLowerCase()==="svg"||B5.test(e)},MA=function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e}(),is=function(e,A,t){return new MA(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},el=function(){function e(A,t,r,n){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=n}return e.prototype.subdivide=function(A,t){var r=is(this.start,this.startControl,A),n=is(this.startControl,this.endControl,A),i=is(this.endControl,this.end,A),a=is(r,n,A),o=is(n,i,A),c=is(a,o,A);return t?new e(this.start,r,a,c):new e(c,o,i,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e}(),mr=function(e){return e.type===1},y5=function(){function e(A){var t=A.styles,r=A.bounds,n=fa(t.borderTopLeftRadius,r.width,r.height),i=n[0],a=n[1],o=fa(t.borderTopRightRadius,r.width,r.height),c=o[0],d=o[1],B=fa(t.borderBottomRightRadius,r.width,r.height),p=B[0],m=B[1],g=fa(t.borderBottomLeftRadius,r.width,r.height),C=g[0],v=g[1],U=[];U.push((i+c)/r.width),U.push((C+p)/r.width),U.push((a+v)/r.height),U.push((d+m)/r.height);var F=Math.max.apply(Math,U);F>1&&(i/=F,a/=F,c/=F,d/=F,p/=F,m/=F,C/=F,v/=F);var x=r.width-c,N=r.height-m,V=r.width-p,q=r.height-v,Y=t.borderTopWidth,W=t.borderRightWidth,R=t.borderBottomWidth,k=t.borderLeftWidth,$=Oe(t.paddingTop,A.bounds.width),_=Oe(t.paddingRight,A.bounds.width),L=Oe(t.paddingBottom,A.bounds.width),D=Oe(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=i>0||a>0?Ve(r.left+k/3,r.top+Y/3,i-k/3,a-Y/3,Ee.TOP_LEFT):new MA(r.left+k/3,r.top+Y/3),this.topRightBorderDoubleOuterBox=i>0||a>0?Ve(r.left+x,r.top+Y/3,c-W/3,d-Y/3,Ee.TOP_RIGHT):new MA(r.left+r.width-W/3,r.top+Y/3),this.bottomRightBorderDoubleOuterBox=p>0||m>0?Ve(r.left+V,r.top+N,p-W/3,m-R/3,Ee.BOTTOM_RIGHT):new MA(r.left+r.width-W/3,r.top+r.height-R/3),this.bottomLeftBorderDoubleOuterBox=C>0||v>0?Ve(r.left+k/3,r.top+q,C-k/3,v-R/3,Ee.BOTTOM_LEFT):new MA(r.left+k/3,r.top+r.height-R/3),this.topLeftBorderDoubleInnerBox=i>0||a>0?Ve(r.left+k*2/3,r.top+Y*2/3,i-k*2/3,a-Y*2/3,Ee.TOP_LEFT):new MA(r.left+k*2/3,r.top+Y*2/3),this.topRightBorderDoubleInnerBox=i>0||a>0?Ve(r.left+x,r.top+Y*2/3,c-W*2/3,d-Y*2/3,Ee.TOP_RIGHT):new MA(r.left+r.width-W*2/3,r.top+Y*2/3),this.bottomRightBorderDoubleInnerBox=p>0||m>0?Ve(r.left+V,r.top+N,p-W*2/3,m-R*2/3,Ee.BOTTOM_RIGHT):new MA(r.left+r.width-W*2/3,r.top+r.height-R*2/3),this.bottomLeftBorderDoubleInnerBox=C>0||v>0?Ve(r.left+k*2/3,r.top+q,C-k*2/3,v-R*2/3,Ee.BOTTOM_LEFT):new MA(r.left+k*2/3,r.top+r.height-R*2/3),this.topLeftBorderStroke=i>0||a>0?Ve(r.left+k/2,r.top+Y/2,i-k/2,a-Y/2,Ee.TOP_LEFT):new MA(r.left+k/2,r.top+Y/2),this.topRightBorderStroke=i>0||a>0?Ve(r.left+x,r.top+Y/2,c-W/2,d-Y/2,Ee.TOP_RIGHT):new MA(r.left+r.width-W/2,r.top+Y/2),this.bottomRightBorderStroke=p>0||m>0?Ve(r.left+V,r.top+N,p-W/2,m-R/2,Ee.BOTTOM_RIGHT):new MA(r.left+r.width-W/2,r.top+r.height-R/2),this.bottomLeftBorderStroke=C>0||v>0?Ve(r.left+k/2,r.top+q,C-k/2,v-R/2,Ee.BOTTOM_LEFT):new MA(r.left+k/2,r.top+r.height-R/2),this.topLeftBorderBox=i>0||a>0?Ve(r.left,r.top,i,a,Ee.TOP_LEFT):new MA(r.left,r.top),this.topRightBorderBox=c>0||d>0?Ve(r.left+x,r.top,c,d,Ee.TOP_RIGHT):new MA(r.left+r.width,r.top),this.bottomRightBorderBox=p>0||m>0?Ve(r.left+V,r.top+N,p,m,Ee.BOTTOM_RIGHT):new MA(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=C>0||v>0?Ve(r.left,r.top+q,C,v,Ee.BOTTOM_LEFT):new MA(r.left,r.top+r.height),this.topLeftPaddingBox=i>0||a>0?Ve(r.left+k,r.top+Y,Math.max(0,i-k),Math.max(0,a-Y),Ee.TOP_LEFT):new MA(r.left+k,r.top+Y),this.topRightPaddingBox=c>0||d>0?Ve(r.left+Math.min(x,r.width-W),r.top+Y,x>r.width+W?0:Math.max(0,c-W),Math.max(0,d-Y),Ee.TOP_RIGHT):new MA(r.left+r.width-W,r.top+Y),this.bottomRightPaddingBox=p>0||m>0?Ve(r.left+Math.min(V,r.width-k),r.top+Math.min(N,r.height-R),Math.max(0,p-W),Math.max(0,m-R),Ee.BOTTOM_RIGHT):new MA(r.left+r.width-W,r.top+r.height-R),this.bottomLeftPaddingBox=C>0||v>0?Ve(r.left+k,r.top+Math.min(q,r.height-R),Math.max(0,C-k),Math.max(0,v-R),Ee.BOTTOM_LEFT):new MA(r.left+k,r.top+r.height-R),this.topLeftContentBox=i>0||a>0?Ve(r.left+k+D,r.top+Y+$,Math.max(0,i-(k+D)),Math.max(0,a-(Y+$)),Ee.TOP_LEFT):new MA(r.left+k+D,r.top+Y+$),this.topRightContentBox=c>0||d>0?Ve(r.left+Math.min(x,r.width+k+D),r.top+Y+$,x>r.width+k+D?0:c-k+D,d-(Y+$),Ee.TOP_RIGHT):new MA(r.left+r.width-(W+_),r.top+Y+$),this.bottomRightContentBox=p>0||m>0?Ve(r.left+Math.min(V,r.width-(k+D)),r.top+Math.min(N,r.height+Y+$),Math.max(0,p-(W+_)),m-(R+L),Ee.BOTTOM_RIGHT):new MA(r.left+r.width-(W+_),r.top+r.height-(R+L)),this.bottomLeftContentBox=C>0||v>0?Ve(r.left+k+D,r.top+q,Math.max(0,C-(k+D)),v-(R+L),Ee.BOTTOM_LEFT):new MA(r.left+k+D,r.top+r.height-(R+L))}return e}(),Ee;(function(e){e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT"})(Ee||(Ee={}));var Ve=function(e,A,t,r,n){var i=4*((Math.sqrt(2)-1)/3),a=t*i,o=r*i,c=e+t,d=A+r;switch(n){case Ee.TOP_LEFT:return new el(new MA(e,d),new MA(e,d-o),new MA(c-a,A),new MA(c,A));case Ee.TOP_RIGHT:return new el(new MA(e,A),new MA(e+a,A),new MA(c,d-o),new MA(c,d));case Ee.BOTTOM_RIGHT:return new el(new MA(c,A),new MA(c,A+o),new MA(e+a,d),new MA(e,d));case Ee.BOTTOM_LEFT:default:return new el(new MA(c,d),new MA(c-a,d),new MA(e,A+o),new MA(e,A))}},Sl=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},F5=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},El=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},Q5=function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e}(),tl=function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e}(),x5=function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e}(),U5=function(e){return e.type===0},tp=function(e){return e.type===1},S5=function(e){return e.type===2},md=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},E5=function(e,A,t,r,n){return e.map(function(i,a){switch(a){case 0:return i.add(A,t);case 1:return i.add(A+r,t);case 2:return i.add(A+r,t+n);case 3:return i.add(A,t+n)}return i})},rp=function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e}(),np=function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new y5(this.container),this.container.styles.opacity<1&&this.effects.push(new x5(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,n=this.container.bounds.top+this.container.styles.transformOrigin[1].number,i=this.container.styles.transform;this.effects.push(new Q5(r,n,i))}if(this.container.styles.overflowX!==0){var a=Sl(this.curves),o=El(this.curves);md(a,o)?this.effects.push(new tl(a,6)):(this.effects.push(new tl(a,2)),this.effects.push(new tl(o,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,n=this.effects.slice(0);r;){var i=r.effects.filter(function(c){return!tp(c)});if(t||r.container.styles.position!==0||!r.parent){if(n.unshift.apply(n,i),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var a=Sl(r.curves),o=El(r.curves);md(a,o)||n.unshift(new tl(o,6))}}else n.unshift.apply(n,i);r=r.parent}return n.filter(function(c){return pt(c.target,A)})},e}(),Zu=function(e,A,t,r){e.container.elements.forEach(function(n){var i=pt(n.flags,4),a=pt(n.flags,2),o=new np(n,e);pt(n.styles.display,2048)&&r.push(o);var c=pt(n.flags,8)?[]:r;if(i||a){var d=i||n.styles.isPositioned()?t:A,B=new rp(o);if(n.styles.isPositioned()||n.styles.opacity<1||n.styles.isTransformed()){var p=n.styles.zIndex.order;if(p<0){var m=0;d.negativeZIndex.some(function(C,v){return p>C.element.container.styles.zIndex.order?(m=v,!1):m>0}),d.negativeZIndex.splice(m,0,B)}else if(p>0){var g=0;d.positiveZIndex.some(function(C,v){return p>=C.element.container.styles.zIndex.order?(g=v+1,!1):g>0}),d.positiveZIndex.splice(g,0,B)}else d.zeroOrAutoZIndexOrTransformedOrOpacity.push(B)}else n.styles.isFloating()?d.nonPositionedFloats.push(B):d.nonPositionedInlineLevel.push(B);Zu(o,B,i?B:t,c)}else n.styles.isInlineLevel()?A.inlineLevel.push(o):A.nonInlineLevel.push(o),Zu(o,A,t,c);pt(n.flags,8)&&ip(n,c)})},ip=function(e,A){for(var t=e instanceof qu?e.start:1,r=e instanceof qu?e.reversed:!1,n=0;n<A.length;n++){var i=A[n];i.container instanceof Rg&&typeof i.container.value=="number"&&i.container.value!==0&&(t=i.container.value),i.listValue=ka(t,i.container.styles.listStyleType,!0),t+=r?-1:1}},L5=function(e){var A=new np(e,null),t=new rp(A),r=[];return Zu(A,t,t,r),ip(A.container,r),t},vd=function(e,A){switch(A){case 0:return br(e.topLeftBorderBox,e.topLeftPaddingBox,e.topRightBorderBox,e.topRightPaddingBox);case 1:return br(e.topRightBorderBox,e.topRightPaddingBox,e.bottomRightBorderBox,e.bottomRightPaddingBox);case 2:return br(e.bottomRightBorderBox,e.bottomRightPaddingBox,e.bottomLeftBorderBox,e.bottomLeftPaddingBox);case 3:default:return br(e.bottomLeftBorderBox,e.bottomLeftPaddingBox,e.topLeftBorderBox,e.topLeftPaddingBox)}},I5=function(e,A){switch(A){case 0:return br(e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox,e.topRightBorderBox,e.topRightBorderDoubleOuterBox);case 1:return br(e.topRightBorderBox,e.topRightBorderDoubleOuterBox,e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox);case 2:return br(e.bottomRightBorderBox,e.bottomRightBorderDoubleOuterBox,e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox);case 3:default:return br(e.bottomLeftBorderBox,e.bottomLeftBorderDoubleOuterBox,e.topLeftBorderBox,e.topLeftBorderDoubleOuterBox)}},_5=function(e,A){switch(A){case 0:return br(e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox,e.topRightBorderDoubleInnerBox,e.topRightPaddingBox);case 1:return br(e.topRightBorderDoubleInnerBox,e.topRightPaddingBox,e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox);case 2:return br(e.bottomRightBorderDoubleInnerBox,e.bottomRightPaddingBox,e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox);case 3:default:return br(e.bottomLeftBorderDoubleInnerBox,e.bottomLeftPaddingBox,e.topLeftBorderDoubleInnerBox,e.topLeftPaddingBox)}},H5=function(e,A){switch(A){case 0:return rl(e.topLeftBorderStroke,e.topRightBorderStroke);case 1:return rl(e.topRightBorderStroke,e.bottomRightBorderStroke);case 2:return rl(e.bottomRightBorderStroke,e.bottomLeftBorderStroke);case 3:default:return rl(e.bottomLeftBorderStroke,e.topLeftBorderStroke)}},rl=function(e,A){var t=[];return mr(e)?t.push(e.subdivide(.5,!1)):t.push(e),mr(A)?t.push(A.subdivide(.5,!0)):t.push(A),t},br=function(e,A,t,r){var n=[];return mr(e)?n.push(e.subdivide(.5,!1)):n.push(e),mr(t)?n.push(t.subdivide(.5,!0)):n.push(t),mr(r)?n.push(r.subdivide(.5,!0).reverse()):n.push(r),mr(A)?n.push(A.subdivide(.5,!1).reverse()):n.push(A),n},sp=function(e){var A=e.bounds,t=e.styles;return A.add(t.borderLeftWidth,t.borderTopWidth,-(t.borderRightWidth+t.borderLeftWidth),-(t.borderTopWidth+t.borderBottomWidth))},Ll=function(e){var A=e.styles,t=e.bounds,r=Oe(A.paddingLeft,t.width),n=Oe(A.paddingRight,t.width),i=Oe(A.paddingTop,t.width),a=Oe(A.paddingBottom,t.width);return t.add(r+A.borderLeftWidth,i+A.borderTopWidth,-(A.borderRightWidth+A.borderLeftWidth+r+n),-(A.borderTopWidth+A.borderBottomWidth+i+a))},N5=function(e,A){return e===0?A.bounds:e===2?Ll(A):sp(A)},j5=function(e,A){return e===0?A.bounds:e===2?Ll(A):sp(A)},fu=function(e,A,t){var r=N5(cs(e.styles.backgroundOrigin,A),e),n=j5(cs(e.styles.backgroundClip,A),e),i=D5(cs(e.styles.backgroundSize,A),t,r),a=i[0],o=i[1],c=fa(cs(e.styles.backgroundPosition,A),r.width-a,r.height-o),d=T5(cs(e.styles.backgroundRepeat,A),c,i,r,n),B=Math.round(r.left+c[0]),p=Math.round(r.top+c[1]);return[d,B,p,a,o]},ss=function(e){return Ne(e)&&e.value===ms.AUTO},nl=function(e){return typeof e=="number"},D5=function(e,A,t){var r=A[0],n=A[1],i=A[2],a=e[0],o=e[1];if(!a)return[0,0];if(ut(a)&&o&&ut(o))return[Oe(a,t.width),Oe(o,t.height)];var c=nl(i);if(Ne(a)&&(a.value===ms.CONTAIN||a.value===ms.COVER)){if(nl(i)){var d=t.width/t.height;return d<i!=(a.value===ms.COVER)?[t.width,t.width/i]:[t.height*i,t.height]}return[t.width,t.height]}var B=nl(r),p=nl(n),m=B||p;if(ss(a)&&(!o||ss(o))){if(B&&p)return[r,n];if(!c&&!m)return[t.width,t.height];if(m&&c){var g=B?r:n*i,C=p?n:r/i;return[g,C]}var v=B?r:t.width,U=p?n:t.height;return[v,U]}if(c){var F=0,x=0;return ut(a)?F=Oe(a,t.width):ut(o)&&(x=Oe(o,t.height)),ss(a)?F=x*i:(!o||ss(o))&&(x=F/i),[F,x]}var N=null,V=null;if(ut(a)?N=Oe(a,t.width):o&&ut(o)&&(V=Oe(o,t.height)),N!==null&&(!o||ss(o))&&(V=B&&p?N/r*n:t.height),V!==null&&ss(a)&&(N=B&&p?V/n*r:t.width),N!==null&&V!==null)return[N,V];throw new Error("Unable to calculate background-size for element")},cs=function(e,A){var t=e[A];return typeof t>"u"?e[0]:t},T5=function(e,A,t,r,n){var i=A[0],a=A[1],o=t[0],c=t[1];switch(e){case 2:return[new MA(Math.round(r.left),Math.round(r.top+a)),new MA(Math.round(r.left+r.width),Math.round(r.top+a)),new MA(Math.round(r.left+r.width),Math.round(c+r.top+a)),new MA(Math.round(r.left),Math.round(c+r.top+a))];case 3:return[new MA(Math.round(r.left+i),Math.round(r.top)),new MA(Math.round(r.left+i+o),Math.round(r.top)),new MA(Math.round(r.left+i+o),Math.round(r.height+r.top)),new MA(Math.round(r.left+i),Math.round(r.height+r.top))];case 1:return[new MA(Math.round(r.left+i),Math.round(r.top+a)),new MA(Math.round(r.left+i+o),Math.round(r.top+a)),new MA(Math.round(r.left+i+o),Math.round(r.top+a+c)),new MA(Math.round(r.left+i),Math.round(r.top+a+c))];default:return[new MA(Math.round(n.left),Math.round(n.top)),new MA(Math.round(n.left+n.width),Math.round(n.top)),new MA(Math.round(n.left+n.width),Math.round(n.height+n.top)),new MA(Math.round(n.left),Math.round(n.height+n.top))]}},k5="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",Cd="Hidden Text",P5=function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),n=this._document.createElement("img"),i=this._document.createElement("span"),a=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",a.appendChild(r),n.src=k5,n.width=1,n.height=1,n.style.margin="0",n.style.padding="0",n.style.verticalAlign="baseline",i.style.fontFamily=A,i.style.fontSize=t,i.style.margin="0",i.style.padding="0",i.appendChild(this._document.createTextNode(Cd)),r.appendChild(i),r.appendChild(n);var o=n.offsetTop-i.offsetTop+2;r.removeChild(i),r.appendChild(this._document.createTextNode(Cd)),r.style.lineHeight="normal",n.style.verticalAlign="super";var c=n.offsetTop-r.offsetTop+2;return a.removeChild(r),{baseline:o,middle:c}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e}(),ap=function(){function e(A,t){this.context=A,this.options=t}return e}(),M5=1e4,O5=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n._activeEffects=[],n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),r.canvas||(n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px"),n.fontMetrics=new P5(document),n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.ctx.textBaseline="bottom",n._activeEffects=[],n.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),n}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(n){return r.applyEffect(n)})},A.prototype.applyEffect=function(t){this.ctx.save(),S5(t)&&(this.ctx.globalAlpha=t.opacity),U5(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),tp(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return Vt(this,void 0,void 0,function(){var r;return kt(this,function(n){switch(n.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:n.sent(),n.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return Vt(this,void 0,void 0,function(){return kt(this,function(r){switch(r.label){case 0:if(pt(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,n){var i=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+n);else{var a=gh(t.text);a.reduce(function(o,c){return i.ctx.fillText(c,o,t.bounds.top+n),o+i.ctx.measureText(c).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(a){return a==="normal"||a==="small-caps"}).join(""),n=z5(t.fontFamily).join(", "),i=Ma(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,i,n].join(" "),n,i]},A.prototype.renderTextNode=function(t,r){return Vt(this,void 0,void 0,function(){var n,i,a,o,c,d,B,p,m=this;return kt(this,function(g){return n=this.createFontStyle(r),i=n[0],a=n[1],o=n[2],this.ctx.font=i,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",c=this.fontMetrics.getMetrics(a,o),d=c.baseline,B=c.middle,p=r.paintOrder,t.textBounds.forEach(function(C){p.forEach(function(v){switch(v){case 0:m.ctx.fillStyle=vt(r.color),m.renderTextWithLetterSpacing(C,r.letterSpacing,d);var U=r.textShadow;U.length&&C.text.trim().length&&(U.slice(0).reverse().forEach(function(F){m.ctx.shadowColor=vt(F.color),m.ctx.shadowOffsetX=F.offsetX.number*m.options.scale,m.ctx.shadowOffsetY=F.offsetY.number*m.options.scale,m.ctx.shadowBlur=F.blur.number,m.renderTextWithLetterSpacing(C,r.letterSpacing,d)}),m.ctx.shadowColor="",m.ctx.shadowOffsetX=0,m.ctx.shadowOffsetY=0,m.ctx.shadowBlur=0),r.textDecorationLine.length&&(m.ctx.fillStyle=vt(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(F){switch(F){case 1:m.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top+d),C.bounds.width,1);break;case 2:m.ctx.fillRect(C.bounds.left,Math.round(C.bounds.top),C.bounds.width,1);break;case 3:m.ctx.fillRect(C.bounds.left,Math.ceil(C.bounds.top+B),C.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&C.text.trim().length&&(m.ctx.strokeStyle=vt(r.webkitTextStrokeColor),m.ctx.lineWidth=r.webkitTextStrokeWidth,m.ctx.lineJoin=window.chrome?"miter":"round",m.ctx.strokeText(C.text,C.bounds.left,C.bounds.top+d)),m.ctx.strokeStyle="",m.ctx.lineWidth=0,m.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,n){if(n&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var i=Ll(t),a=El(r);this.path(a),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(n,0,0,t.intrinsicWidth,t.intrinsicHeight,i.left,i.top,i.width,i.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return Vt(this,void 0,void 0,function(){var r,n,i,a,o,c,x,x,d,B,p,m,V,g,C,q,v,U,F,x,N,V,q;return kt(this,function(Y){switch(Y.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,n=t.curves,i=r.styles,a=0,o=r.textNodes,Y.label=1;case 1:return a<o.length?(c=o[a],[4,this.renderTextNode(c,i)]):[3,4];case 2:Y.sent(),Y.label=3;case 3:return a++,[3,1];case 4:if(!(r instanceof Pg))return[3,8];Y.label=5;case 5:return Y.trys.push([5,7,,8]),[4,this.context.cache.match(r.src)];case 6:return x=Y.sent(),this.renderReplacedElement(r,n,x),[3,8];case 7:return Y.sent(),this.context.logger.error("Error loading image "+r.src),[3,8];case 8:if(r instanceof Mg&&this.renderReplacedElement(r,n,r.canvas),!(r instanceof Og))return[3,12];Y.label=9;case 9:return Y.trys.push([9,11,,12]),[4,this.context.cache.match(r.svg)];case 10:return x=Y.sent(),this.renderReplacedElement(r,n,x),[3,12];case 11:return Y.sent(),this.context.logger.error("Error loading svg "+r.svg.substring(0,255)),[3,12];case 12:return r instanceof Vg&&r.tree?(d=new A(this.context,{scale:this.options.scale,backgroundColor:r.backgroundColor,x:0,y:0,width:r.width,height:r.height}),[4,d.render(r.tree)]):[3,14];case 13:B=Y.sent(),r.width&&r.height&&this.ctx.drawImage(B,0,0,r.width,r.height,r.bounds.left,r.bounds.top,r.bounds.width,r.bounds.height),Y.label=14;case 14:if(r instanceof ph&&(p=Math.min(r.bounds.width,r.bounds.height),r.type===Fl?r.checked&&(this.ctx.save(),this.path([new MA(r.bounds.left+p*.39363,r.bounds.top+p*.79),new MA(r.bounds.left+p*.16,r.bounds.top+p*.5549),new MA(r.bounds.left+p*.27347,r.bounds.top+p*.44071),new MA(r.bounds.left+p*.39694,r.bounds.top+p*.5649),new MA(r.bounds.left+p*.72983,r.bounds.top+p*.23),new MA(r.bounds.left+p*.84,r.bounds.top+p*.34085),new MA(r.bounds.left+p*.39363,r.bounds.top+p*.79)]),this.ctx.fillStyle=vt(od),this.ctx.fill(),this.ctx.restore()):r.type===Ql&&r.checked&&(this.ctx.save(),this.ctx.beginPath(),this.ctx.arc(r.bounds.left+p/2,r.bounds.top+p/2,p/4,0,Math.PI*2,!0),this.ctx.fillStyle=vt(od),this.ctx.fill(),this.ctx.restore())),R5(r)&&r.value.length){switch(m=this.createFontStyle(i),V=m[0],g=m[1],C=this.fontMetrics.getMetrics(V,g).baseline,this.ctx.font=V,this.ctx.fillStyle=vt(i.color),this.ctx.textBaseline="alphabetic",this.ctx.textAlign=G5(r.styles.textAlign),q=Ll(r),v=0,r.styles.textAlign){case 1:v+=q.width/2;break;case 2:v+=q.width;break}U=q.add(v,0,0,-q.height/2+1),this.ctx.save(),this.path([new MA(q.left,q.top),new MA(q.left+q.width,q.top),new MA(q.left+q.width,q.top+q.height),new MA(q.left,q.top+q.height)]),this.ctx.clip(),this.renderTextWithLetterSpacing(new ba(r.value,U),i.letterSpacing,C),this.ctx.restore(),this.ctx.textBaseline="alphabetic",this.ctx.textAlign="left"}if(!pt(r.styles.display,2048))return[3,20];if(r.styles.listStyleImage===null)return[3,19];if(F=r.styles.listStyleImage,F.type!==0)return[3,18];x=void 0,N=F.url,Y.label=15;case 15:return Y.trys.push([15,17,,18]),[4,this.context.cache.match(N)];case 16:return x=Y.sent(),this.ctx.drawImage(x,r.bounds.left-(x.width+10),r.bounds.top),[3,18];case 17:return Y.sent(),this.context.logger.error("Error loading list-style-image "+N),[3,18];case 18:return[3,20];case 19:t.listValue&&r.styles.listStyleType!==-1&&(V=this.createFontStyle(i)[0],this.ctx.font=V,this.ctx.fillStyle=vt(i.color),this.ctx.textBaseline="middle",this.ctx.textAlign="right",q=new vn(r.bounds.left,r.bounds.top+Oe(r.styles.paddingTop,r.bounds.width),r.bounds.width,Vf(i.lineHeight,i.fontSize.number)/2+1),this.renderTextWithLetterSpacing(new ba(t.listValue,q),i.letterSpacing,Vf(i.lineHeight,i.fontSize.number)/2+2),this.ctx.textBaseline="bottom",this.ctx.textAlign="left"),Y.label=20;case 20:return[2]}})})},A.prototype.renderStackContent=function(t){return Vt(this,void 0,void 0,function(){var r,n,F,i,a,F,o,c,F,d,B,F,p,m,F,g,C,F,v,U,F;return kt(this,function(x){switch(x.label){case 0:if(pt(t.element.container.flags,16))debugger;return[4,this.renderNodeBackgroundAndBorders(t.element)];case 1:x.sent(),r=0,n=t.negativeZIndex,x.label=2;case 2:return r<n.length?(F=n[r],[4,this.renderStack(F)]):[3,5];case 3:x.sent(),x.label=4;case 4:return r++,[3,2];case 5:return[4,this.renderNodeContent(t.element)];case 6:x.sent(),i=0,a=t.nonInlineLevel,x.label=7;case 7:return i<a.length?(F=a[i],[4,this.renderNode(F)]):[3,10];case 8:x.sent(),x.label=9;case 9:return i++,[3,7];case 10:o=0,c=t.nonPositionedFloats,x.label=11;case 11:return o<c.length?(F=c[o],[4,this.renderStack(F)]):[3,14];case 12:x.sent(),x.label=13;case 13:return o++,[3,11];case 14:d=0,B=t.nonPositionedInlineLevel,x.label=15;case 15:return d<B.length?(F=B[d],[4,this.renderStack(F)]):[3,18];case 16:x.sent(),x.label=17;case 17:return d++,[3,15];case 18:p=0,m=t.inlineLevel,x.label=19;case 19:return p<m.length?(F=m[p],[4,this.renderNode(F)]):[3,22];case 20:x.sent(),x.label=21;case 21:return p++,[3,19];case 22:g=0,C=t.zeroOrAutoZIndexOrTransformedOrOpacity,x.label=23;case 23:return g<C.length?(F=C[g],[4,this.renderStack(F)]):[3,26];case 24:x.sent(),x.label=25;case 25:return g++,[3,23];case 26:v=0,U=t.positiveZIndex,x.label=27;case 27:return v<U.length?(F=U[v],[4,this.renderStack(F)]):[3,30];case 28:x.sent(),x.label=29;case 29:return v++,[3,27];case 30:return[2]}})})},A.prototype.mask=function(t){this.ctx.beginPath(),this.ctx.moveTo(0,0),this.ctx.lineTo(this.canvas.width,0),this.ctx.lineTo(this.canvas.width,this.canvas.height),this.ctx.lineTo(0,this.canvas.height),this.ctx.lineTo(0,0),this.formatPath(t.slice(0).reverse()),this.ctx.closePath()},A.prototype.path=function(t){this.ctx.beginPath(),this.formatPath(t),this.ctx.closePath()},A.prototype.formatPath=function(t){var r=this;t.forEach(function(n,i){var a=mr(n)?n.start:n;i===0?r.ctx.moveTo(a.x,a.y):r.ctx.lineTo(a.x,a.y),mr(n)&&r.ctx.bezierCurveTo(n.startControl.x,n.startControl.y,n.endControl.x,n.endControl.y,n.end.x,n.end.y)})},A.prototype.renderRepeat=function(t,r,n,i){this.path(t),this.ctx.fillStyle=r,this.ctx.translate(n,i),this.ctx.fill(),this.ctx.translate(-n,-i)},A.prototype.resizeImage=function(t,r,n){var i;if(t.width===r&&t.height===n)return t;var a=(i=this.canvas.ownerDocument)!==null&&i!==void 0?i:document,o=a.createElement("canvas");o.width=Math.max(1,r),o.height=Math.max(1,n);var c=o.getContext("2d");return c.drawImage(t,0,0,t.width,t.height,0,0,r,n),o},A.prototype.renderBackgroundImage=function(t){return Vt(this,void 0,void 0,function(){var r,n,i,a,o,c;return kt(this,function(d){switch(d.label){case 0:r=t.styles.backgroundImage.length-1,n=function(B){var p,m,g,$,sA,oA,D,O,R,C,$,sA,oA,D,O,v,U,F,x,N,V,q,Y,W,R,k,$,_,L,D,O,nA,sA,oA,tA,cA,z,BA,Q,j,P,G;return kt(this,function(X){switch(X.label){case 0:if(B.type!==0)return[3,5];p=void 0,m=B.url,X.label=1;case 1:return X.trys.push([1,3,,4]),[4,i.context.cache.match(m)];case 2:return p=X.sent(),[3,4];case 3:return X.sent(),i.context.logger.error("Error loading background-image "+m),[3,4];case 4:return p&&(g=fu(t,r,[p.width,p.height,p.width/p.height]),$=g[0],sA=g[1],oA=g[2],D=g[3],O=g[4],R=i.ctx.createPattern(i.resizeImage(p,D,O),"repeat"),i.renderRepeat($,R,sA,oA)),[3,6];case 5:U2(B)?(C=fu(t,r,[null,null,null]),$=C[0],sA=C[1],oA=C[2],D=C[3],O=C[4],v=b2(B.angle,D,O),U=v[0],F=v[1],x=v[2],N=v[3],V=v[4],q=document.createElement("canvas"),q.width=D,q.height=O,Y=q.getContext("2d"),W=Y.createLinearGradient(F,N,x,V),Kf(B.stops,U).forEach(function(eA){return W.addColorStop(eA.stop,vt(eA.color))}),Y.fillStyle=W,Y.fillRect(0,0,D,O),D>0&&O>0&&(R=i.ctx.createPattern(q,"repeat"),i.renderRepeat($,R,sA,oA))):S2(B)&&(k=fu(t,r,[null,null,null]),$=k[0],_=k[1],L=k[2],D=k[3],O=k[4],nA=B.position.length===0?[hh]:B.position,sA=Oe(nA[0],D),oA=Oe(nA[nA.length-1],O),tA=y2(B,sA,oA,D,O),cA=tA[0],z=tA[1],cA>0&&z>0&&(BA=i.ctx.createRadialGradient(_+sA,L+oA,0,_+sA,L+oA,cA),Kf(B.stops,cA*2).forEach(function(eA){return BA.addColorStop(eA.stop,vt(eA.color))}),i.path($),i.ctx.fillStyle=BA,cA!==z?(Q=t.bounds.left+.5*t.bounds.width,j=t.bounds.top+.5*t.bounds.height,P=z/cA,G=1/P,i.ctx.save(),i.ctx.translate(Q,j),i.ctx.transform(1,0,0,P,0,0),i.ctx.translate(-Q,-j),i.ctx.fillRect(_,G*(L-j)+j,D,O*G),i.ctx.restore()):i.ctx.fill())),X.label=6;case 6:return r--,[2]}})},i=this,a=0,o=t.styles.backgroundImage.slice(0).reverse(),d.label=1;case 1:return a<o.length?(c=o[a],[5,n(c)]):[3,4];case 2:d.sent(),d.label=3;case 3:return a++,[3,1];case 4:return[2]}})})},A.prototype.renderSolidBorder=function(t,r,n){return Vt(this,void 0,void 0,function(){return kt(this,function(i){return this.path(vd(n,r)),this.ctx.fillStyle=vt(t),this.ctx.fill(),[2]})})},A.prototype.renderDoubleBorder=function(t,r,n,i){return Vt(this,void 0,void 0,function(){var a,o;return kt(this,function(c){switch(c.label){case 0:return r<3?[4,this.renderSolidBorder(t,n,i)]:[3,2];case 1:return c.sent(),[2];case 2:return a=I5(i,n),this.path(a),this.ctx.fillStyle=vt(t),this.ctx.fill(),o=_5(i,n),this.path(o),this.ctx.fill(),[2]}})})},A.prototype.renderNodeBackgroundAndBorders=function(t){return Vt(this,void 0,void 0,function(){var r,n,i,a,o,c,d,B,p=this;return kt(this,function(m){switch(m.label){case 0:return this.applyEffects(t.getEffects(2)),r=t.container.styles,n=!qn(r.backgroundColor)||r.backgroundImage.length,i=[{style:r.borderTopStyle,color:r.borderTopColor,width:r.borderTopWidth},{style:r.borderRightStyle,color:r.borderRightColor,width:r.borderRightWidth},{style:r.borderBottomStyle,color:r.borderBottomColor,width:r.borderBottomWidth},{style:r.borderLeftStyle,color:r.borderLeftColor,width:r.borderLeftWidth}],a=K5(cs(r.backgroundClip,0),t.curves),n||r.boxShadow.length?(this.ctx.save(),this.path(a),this.ctx.clip(),qn(r.backgroundColor)||(this.ctx.fillStyle=vt(r.backgroundColor),this.ctx.fill()),[4,this.renderBackgroundImage(t.container)]):[3,2];case 1:m.sent(),this.ctx.restore(),r.boxShadow.slice(0).reverse().forEach(function(g){p.ctx.save();var C=Sl(t.curves),v=g.inset?0:M5,U=E5(C,-v+(g.inset?1:-1)*g.spread.number,(g.inset?1:-1)*g.spread.number,g.spread.number*(g.inset?-2:2),g.spread.number*(g.inset?-2:2));g.inset?(p.path(C),p.ctx.clip(),p.mask(U)):(p.mask(C),p.ctx.clip(),p.path(U)),p.ctx.shadowOffsetX=g.offsetX.number+v,p.ctx.shadowOffsetY=g.offsetY.number,p.ctx.shadowColor=vt(g.color),p.ctx.shadowBlur=g.blur.number,p.ctx.fillStyle=g.inset?vt(g.color):"rgba(0,0,0,1)",p.ctx.fill(),p.ctx.restore()}),m.label=2;case 2:o=0,c=0,d=i,m.label=3;case 3:return c<d.length?(B=d[c],B.style!==0&&!qn(B.color)&&B.width>0?B.style!==2?[3,5]:[4,this.renderDashedDottedBorder(B.color,B.width,o,t.curves,2)]:[3,11]):[3,13];case 4:return m.sent(),[3,11];case 5:return B.style!==3?[3,7]:[4,this.renderDashedDottedBorder(B.color,B.width,o,t.curves,3)];case 6:return m.sent(),[3,11];case 7:return B.style!==4?[3,9]:[4,this.renderDoubleBorder(B.color,B.width,o,t.curves)];case 8:return m.sent(),[3,11];case 9:return[4,this.renderSolidBorder(B.color,o,t.curves)];case 10:m.sent(),m.label=11;case 11:o++,m.label=12;case 12:return c++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,n,i,a){return Vt(this,void 0,void 0,function(){var o,c,d,B,p,m,g,C,v,U,F,x,N,V,q,Y,q,Y;return kt(this,function(W){return this.ctx.save(),o=H5(i,n),c=vd(i,n),a===2&&(this.path(c),this.ctx.clip()),mr(c[0])?(d=c[0].start.x,B=c[0].start.y):(d=c[0].x,B=c[0].y),mr(c[1])?(p=c[1].end.x,m=c[1].end.y):(p=c[1].x,m=c[1].y),n===0||n===2?g=Math.abs(d-p):g=Math.abs(B-m),this.ctx.beginPath(),a===3?this.formatPath(o):this.formatPath(c.slice(0,2)),C=r<3?r*3:r*2,v=r<3?r*2:r,a===3&&(C=r,v=r),U=!0,g<=C*2?U=!1:g<=C*2+v?(F=g/(2*C+v),C*=F,v*=F):(x=Math.floor((g+v)/(C+v)),N=(g-x*C)/(x-1),V=(g-(x+1)*C)/x,v=V<=0||Math.abs(v-N)<Math.abs(v-V)?N:V),U&&(a===3?this.ctx.setLineDash([0,C+v]):this.ctx.setLineDash([C,v])),a===3?(this.ctx.lineCap="round",this.ctx.lineWidth=r):this.ctx.lineWidth=r*2+1.1,this.ctx.strokeStyle=vt(t),this.ctx.stroke(),this.ctx.setLineDash([]),a===2&&(mr(c[0])&&(q=c[3],Y=c[0],this.ctx.beginPath(),this.formatPath([new MA(q.end.x,q.end.y),new MA(Y.start.x,Y.start.y)]),this.ctx.stroke()),mr(c[1])&&(q=c[1],Y=c[2],this.ctx.beginPath(),this.formatPath([new MA(q.end.x,q.end.y),new MA(Y.start.x,Y.start.y)]),this.ctx.stroke())),this.ctx.restore(),[2]})})},A.prototype.render=function(t){return Vt(this,void 0,void 0,function(){var r;return kt(this,function(n){switch(n.label){case 0:return this.options.backgroundColor&&(this.ctx.fillStyle=vt(this.options.backgroundColor),this.ctx.fillRect(this.options.x,this.options.y,this.options.width,this.options.height)),r=L5(t),[4,this.renderStack(r)];case 1:return n.sent(),this.applyEffects([]),[2,this.canvas]}})})},A}(ap),R5=function(e){return e instanceof Gg||e instanceof Kg?!0:e instanceof ph&&e.type!==Ql&&e.type!==Fl},K5=function(e,A){switch(e){case 0:return Sl(A);case 2:return F5(A);case 1:default:return El(A)}},G5=function(e){switch(e){case 1:return"center";case 2:return"right";case 0:default:return"left"}},V5=["-apple-system","system-ui"],z5=function(e){return/iPhone OS 15_(0|1)/.test(window.navigator.userAgent)?e.filter(function(A){return V5.indexOf(A)===-1}):e},q5=function(e){Mr(A,e);function A(t,r){var n=e.call(this,t,r)||this;return n.canvas=r.canvas?r.canvas:document.createElement("canvas"),n.ctx=n.canvas.getContext("2d"),n.options=r,n.canvas.width=Math.floor(r.width*r.scale),n.canvas.height=Math.floor(r.height*r.scale),n.canvas.style.width=r.width+"px",n.canvas.style.height=r.height+"px",n.ctx.scale(n.options.scale,n.options.scale),n.ctx.translate(-r.x,-r.y),n.context.logger.debug("EXPERIMENTAL ForeignObject renderer initialized ("+r.width+"x"+r.height+" at "+r.x+","+r.y+") with scale "+r.scale),n}return A.prototype.render=function(t){return Vt(this,void 0,void 0,function(){var r,n;return kt(this,function(i){switch(i.label){case 0:return r=zu(this.options.width*this.options.scale,this.options.height*this.options.scale,this.options.scale,this.options.scale,t),[4,W5(r)];case 1:return n=i.sent(),this.options.backgroundColor&&(this.ctx.fillStyle=vt(this.options.backgroundColor),this.ctx.fillRect(0,0,this.options.width*this.options.scale,this.options.height*this.options.scale)),this.ctx.drawImage(n,-this.options.x*this.options.scale,-this.options.y*this.options.scale),[2,this.canvas]}})})},A}(ap),W5=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},J5=function(){function e(A){var t=A.id,r=A.enabled;this.id=t,this.enabled=r,this.start=Date.now()}return e.prototype.debug=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.debug=="function"?console.debug.apply(console,Do([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.getTime=function(){return Date.now()-this.start},e.prototype.info=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&typeof window<"u"&&window.console&&typeof console.info=="function"&&console.info.apply(console,Do([this.id,this.getTime()+"ms"],A))},e.prototype.warn=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.warn=="function"?console.warn.apply(console,Do([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.prototype.error=function(){for(var A=[],t=0;t<arguments.length;t++)A[t]=arguments[t];this.enabled&&(typeof window<"u"&&window.console&&typeof console.error=="function"?console.error.apply(console,Do([this.id,this.getTime()+"ms"],A)):this.info.apply(this,A))},e.instances={},e}(),X5=function(){function e(A,t){var r;this.windowBounds=t,this.instanceName="#"+e.instanceCount++,this.logger=new J5({id:this.instanceName,enabled:A.logging}),this.cache=(r=A.cache)!==null&&r!==void 0?r:new p5(this,A)}return e.instanceCount=1,e}(),wh=function(e,A){return A===void 0&&(A={}),Y5(e,A)};typeof window<"u"&&ep.setContext(window);var Y5=function(e,A){return Vt(void 0,void 0,void 0,function(){var t,r,n,i,a,o,c,d,B,p,m,g,C,v,U,F,x,N,V,q,W,Y,W,R,k,$,_,L,D,O,nA,sA,oA,tA,cA,z,BA,Q,j,P;return kt(this,function(G){switch(G.label){case 0:if(!e||typeof e!="object")return[2,Promise.reject("Invalid element provided as first argument")];if(t=e.ownerDocument,!t)throw new Error("Element is not attached to a Document");if(r=t.defaultView,!r)throw new Error("Document is not attached to a Window");return n={allowTaint:(R=A.allowTaint)!==null&&R!==void 0?R:!1,imageTimeout:(k=A.imageTimeout)!==null&&k!==void 0?k:15e3,proxy:A.proxy,useCORS:($=A.useCORS)!==null&&$!==void 0?$:!1},i=Iu({logging:(_=A.logging)!==null&&_!==void 0?_:!0,cache:A.cache},n),a={windowWidth:(L=A.windowWidth)!==null&&L!==void 0?L:r.innerWidth,windowHeight:(D=A.windowHeight)!==null&&D!==void 0?D:r.innerHeight,scrollX:(O=A.scrollX)!==null&&O!==void 0?O:r.pageXOffset,scrollY:(nA=A.scrollY)!==null&&nA!==void 0?nA:r.pageYOffset},o=new vn(a.scrollX,a.scrollY,a.windowWidth,a.windowHeight),c=new X5(i,o),d=(sA=A.foreignObjectRendering)!==null&&sA!==void 0?sA:!1,B={allowTaint:(oA=A.allowTaint)!==null&&oA!==void 0?oA:!1,onclone:A.onclone,ignoreElements:A.ignoreElements,inlineImages:d,copyStyles:d},c.logger.debug("Starting document clone with size "+o.width+"x"+o.height+" scrolled to "+-o.left+","+-o.top),p=new Bd(c,e,B),m=p.clonedReferenceElement,m?[4,p.toIFrame(t,o)]:[2,Promise.reject("Unable to find element in cloned iframe")];case 1:return g=G.sent(),C=Bh(m)||$m(m)?E0(m.ownerDocument):Dl(c,m),v=C.width,U=C.height,F=C.left,x=C.top,N=Z5(c,m,A.backgroundColor),V={canvas:A.canvas,backgroundColor:N,scale:(cA=(tA=A.scale)!==null&&tA!==void 0?tA:r.devicePixelRatio)!==null&&cA!==void 0?cA:1,x:((z=A.x)!==null&&z!==void 0?z:0)+F,y:((BA=A.y)!==null&&BA!==void 0?BA:0)+x,width:(Q=A.width)!==null&&Q!==void 0?Q:Math.ceil(v),height:(j=A.height)!==null&&j!==void 0?j:Math.ceil(U)},d?(c.logger.debug("Document cloned, using foreign object rendering"),W=new q5(c,V),[4,W.render(m)]):[3,3];case 2:return q=G.sent(),[3,5];case 3:return c.logger.debug("Document cloned, element located at "+F+","+x+" with size "+v+"x"+U+" using computed rendering"),c.logger.debug("Starting DOM parsing"),Y=qg(c,m),N===Y.styles.backgroundColor&&(Y.styles.backgroundColor=mn.TRANSPARENT),c.logger.debug("Starting renderer for element at "+V.x+","+V.y+" with size "+V.width+"x"+V.height),W=new O5(c,V),[4,W.render(Y)];case 4:q=G.sent(),G.label=5;case 5:return(!((P=A.removeContainer)!==null&&P!==void 0)||P)&&(Bd.destroy(g)||c.logger.error("Cannot detach cloned iframe as it is not in the DOM anymore")),c.logger.debug("Finished rendering"),[2,q]}})})},Z5=function(e,A,t){var r=A.ownerDocument,n=r.documentElement?va(e,getComputedStyle(r.documentElement).backgroundColor):mn.TRANSPARENT,i=r.body?va(e,getComputedStyle(r.body).backgroundColor):mn.TRANSPARENT,a=typeof t=="string"?va(e,t):t===null?mn.TRANSPARENT:4294967295;return A===r.documentElement?qn(n)?qn(i)?a:i:n:a};const $5=Object.freeze(Object.defineProperty({__proto__:null,default:wh},Symbol.toStringTag,{value:"Module"})),Iv=()=>{const{session:e}=Ci(),A=bs(),[t,r]=xA.useState([]),[n,i]=xA.useState([]),[a,o]=xA.useState([]),[c,d]=xA.useState(!0),[B,p]=xA.useState(null),[m,g]=xA.useState(""),[C,v]=xA.useState("all"),[U,F]=xA.useState("all");HA("white","gray.800"),HA("gray.200","gray.600"),xA.useEffect(()=>{e?.user?.id&&x()},[e?.user?.id]),xA.useEffect(()=>{N()},[t,m,C,U]);const x=async()=>{try{d(!0),p(null);const{data:k,error:$}=await ye.from("user_semester_courses").select("*").eq("user_id",e?.user?.id).order("semester_number",{ascending:!0});if($)throw $;const _=[];if(k&&k.length>0)for(const nA of k){const sA={...nA,id:nA.id,course_uuid:nA.course_uuid,course_acronym:nA.course_acronym,semester_number:nA.semester_number,grade:nA.grade||"N/A",grade_point:0,is_backlog:nA.backlog==="Yes",status:nA.status||"unknown",is_transcript_verified:!!nA.is_transcript_verified,course:{course_code:nA.course_acronym,course_name:nA.course_acronym,credits:0,dept_acronym:""}};try{const{data:oA}=await ye.from("courses_iiitd").select("uuid, course_code, course_name, credits, dept_acronym").eq("course_code",nA.course_acronym).maybeSingle();if(oA)sA.course={course_code:oA.course_code,course_name:oA.course_name,credits:oA.credits,dept_acronym:oA.dept_acronym};else try{const{data:tA}=await ye.from("courses_iiitd").select("uuid, course_code, course_name, credits, dept_acronym").eq("uuid",nA.course_uuid).maybeSingle();tA&&(sA.course={course_code:tA.course_code,course_name:tA.course_name,credits:tA.credits,dept_acronym:tA.dept_acronym})}catch{console.log(`UUID format error for ${nA.course_uuid}, using placeholder`)}}catch(oA){console.error(`Error fetching details for course ${nA.course_uuid}:`,oA)}_.push(sA)}r(_);const{data:L,error:D}=await ye.from("user_academic_records").select("*").eq("user_id",e?.user?.id).order("semester_number",{ascending:!0});if(D)throw D;const O=L?.map(nA=>({semester:nA.semester_number,gpa:nA.gpa,credits:nA.completed_credits,courses:_?.filter(sA=>sA.semester_number===nA.semester_number).length||0,backlogs:nA.backlogs||0,academic_year:nA.academic_year||""}))||[];o(O)}catch(k){console.error("Error fetching course history:",k),p(k.message||"Failed to fetch course history")}finally{d(!1)}},N=()=>{let k=t;m&&(k=k.filter($=>$.course.course_code.toLowerCase().includes(m.toLowerCase())||$.course.course_name.toLowerCase().includes(m.toLowerCase())||$.course.dept_acronym.toLowerCase().includes(m.toLowerCase()))),C!=="all"&&(k=k.filter($=>$.semester_number===parseInt(C))),U!=="all"&&(k=k.filter($=>$.course.dept_acronym===U)),i(k)},V=k=>({"A+":"green",A:"green","A-":"green","B+":"blue",B:"blue","B-":"blue","C+":"yellow",C:"yellow","C-":"yellow",D:"orange",F:"red"})[k]||"gray",q=k=>[...new Set(t.map($=>$.course[k]))].sort(),W=(()=>{const k=t.reduce((D,O)=>D+O.course.credits,0),$=t.filter(D=>D.status==="completed").reduce((D,O)=>D+O.course.credits,0),_=t.filter(D=>D.is_backlog).length,L=a.length>0?a.reduce((D,O)=>D+O.gpa,0)/a.length:0;return{totalCredits:k,completedCredits:$,totalBacklogs:_,averageGPA:L}})(),R=async k=>{const $=document.getElementById("course-history-container");if(!$){A({title:"Download failed",description:"Could not find course history to download",status:"error",duration:3e3,isClosable:!0});return}try{const _=await wh($,{backgroundColor:"#ffffff",scale:2,useCORS:!0,allowTaint:!0});if(k==="image"){const L=document.createElement("a");L.download=`course-history-${new Date().toISOString().split("T")[0]}.png`,L.href=_.toDataURL(),L.click()}else{const L=new $A("l","mm","a4"),D=_.toDataURL("image/png"),O=297,nA=210,sA=_.height*O/_.width;let oA=sA,tA=0;for(L.addImage(D,"PNG",0,tA,O,sA),oA-=nA;oA>=0;)tA=oA-sA,L.addPage(),L.addImage(D,"PNG",0,tA,O,sA),oA-=nA;L.save(`course-history-${new Date().toISOString().split("T")[0]}.pdf`)}A({title:"Download successful",description:`Course history downloaded as ${k.toUpperCase()}`,status:"success",duration:3e3,isClosable:!0})}catch(_){console.error("Download error:",_),A({title:"Download failed",description:"An error occurred while downloading",status:"error",duration:3e3,isClosable:!0})}};return c?u.jsx(DA,{display:"flex",justifyContent:"center",alignItems:"center",minH:"400px",children:u.jsx($u,{size:"xl",color:"purple.500"})}):B?u.jsxs(Fa,{status:"error",children:[u.jsx(Qa,{}),B]}):u.jsx(DA,{id:"course-history-container",children:u.jsxs(me,{spacing:6,align:"stretch",children:[u.jsxs(ne,{justify:"space-between",align:"center",children:[u.jsx(fe,{size:"md",color:"purple.700",children:"Course History"}),u.jsxs(Ah,{children:[u.jsx(eh,{as:Vn,icon:u.jsx(Ld,{size:16}),variant:"outline",colorScheme:"purple",size:"sm"}),u.jsxs(th,{children:[u.jsx(pi,{icon:u.jsx(Id,{size:16}),onClick:()=>R("pdf"),children:"Download as PDF"}),u.jsx(pi,{icon:u.jsx(_d,{size:16}),onClick:()=>R("image"),children:"Download as Image"})]})]})]}),u.jsx(Re,{children:u.jsxs(qe,{children:[u.jsx(fe,{size:"md",mb:4,color:"purple.700",children:"Academic Overview"}),u.jsxs(Et,{columns:{base:2,md:4},spacing:4,children:[u.jsxs(hi,{children:[u.jsx(fi,{children:"Total Courses"}),u.jsx(di,{color:"purple.600",children:t.length})]}),u.jsxs(hi,{children:[u.jsx(fi,{children:"Completed Credits"}),u.jsxs(di,{color:"blue.600",children:[W.completedCredits,"/",W.totalCredits]})]}),u.jsxs(hi,{children:[u.jsx(fi,{children:"Average GPA"}),u.jsx(di,{color:"green.600",children:W.averageGPA.toFixed(2)})]}),u.jsxs(hi,{children:[u.jsx(fi,{children:"Backlogs"}),u.jsx(di,{color:W.totalBacklogs>0?"red.600":"green.600",children:W.totalBacklogs})]})]})]})}),u.jsx(Re,{children:u.jsxs(qe,{children:[u.jsx(fe,{size:"md",mb:4,color:"purple.700",children:"Course History"}),u.jsxs(Et,{columns:{base:1,md:3},spacing:4,mb:4,children:[u.jsxs(DA,{children:[u.jsx(UA,{mb:2,fontSize:"sm",fontWeight:"medium",children:"Search Courses"}),u.jsx(vr,{placeholder:"Search by course code, name, or department...",value:m,onChange:k=>g(k.target.value)})]}),u.jsxs(DA,{children:[u.jsx(UA,{mb:2,fontSize:"sm",fontWeight:"medium",children:"Filter by Semester"}),u.jsxs(Gn,{value:C,onChange:k=>v(k.target.value),children:[u.jsx("option",{value:"all",children:"All Semesters"}),[1,2,3,4,5,6,7,8].map(k=>u.jsxs("option",{value:k,children:["Semester ",k]},k))]})]}),u.jsxs(DA,{children:[u.jsx(UA,{mb:2,fontSize:"sm",fontWeight:"medium",children:"Filter by Department"}),u.jsxs(Gn,{value:U,onChange:k=>F(k.target.value),children:[u.jsx("option",{value:"all",children:"All Departments"}),q("dept_acronym").map(k=>u.jsx("option",{value:k,children:k},`dept-${k}`))]})]})]}),u.jsxs(rh,{variant:"simple",children:[u.jsx(nh,{children:u.jsxs(Bi,{children:[u.jsx(xt,{children:"Course Code"}),u.jsx(xt,{children:"Course Name"}),u.jsx(xt,{children:"Department"}),u.jsx(xt,{children:"Semester"}),u.jsx(xt,{children:"Credits"}),u.jsx(xt,{children:"Grade"}),u.jsx(xt,{children:"Status"}),u.jsx(xt,{children:"Source"})]})}),u.jsx(ih,{children:n.length>0?n.map(k=>u.jsxs(Bi,{children:[u.jsx(Ct,{fontWeight:"medium",children:k.course.course_code}),u.jsx(Ct,{children:k.course.course_name}),u.jsx(Ct,{children:k.course.dept_acronym}),u.jsx(Ct,{children:k.semester_number}),u.jsx(Ct,{children:k.course.credits}),u.jsx(Ct,{children:u.jsx(ht,{colorScheme:V(k.grade),children:k.grade})}),u.jsxs(Ct,{children:[u.jsx(ht,{colorScheme:k.status==="completed"?"green":"red",variant:"subtle",children:k.status}),k.is_backlog&&u.jsx(ht,{colorScheme:"red",ml:2,size:"sm",children:"Backlog"})]}),u.jsx(Ct,{children:u.jsx(ht,{colorScheme:k.is_transcript_verified?"green":"blue",variant:"subtle",children:k.is_transcript_verified?"Transcript":"Manual"})})]},k.id)):u.jsx(Bi,{children:u.jsx(Ct,{colSpan:8,textAlign:"center",py:8,children:u.jsxs(me,{spacing:2,children:[u.jsx(UA,{color:"gray.500",children:"No courses found"}),u.jsx(UA,{fontSize:"sm",color:"gray.400",children:"Try adjusting your search filters or upload a transcript"})]})})})})]})]})})]})})},Av=()=>{const[e,A]=xA.useState(null),[t,r]=xA.useState(!0),{session:n}=Ci(),i=bs(),a=sh(),{isOpen:o,onOpen:c,onClose:d}=Il(),[B,p]=xA.useState(null),m=HA("white","gray.800"),g=HA("gray.200","gray.700");xA.useEffect(()=>{n?.user?.id&&C()},[n?.user?.id]);const C=async()=>{try{r(!0);const{data:V,error:q}=await ye.from("users").select("current_semester_courses").eq("id",n?.user?.id).single();if(q)throw q;A(V?.current_semester_courses||null)}catch(V){console.error("Error fetching current semester courses:",V),i({title:"Error fetching courses",description:V.message,status:"error",duration:3e3,isClosable:!0})}finally{r(!1)}},v=async V=>{if(e)try{const q=e.courses.filter(R=>R.course_id!==V),Y={...e,courses:q,total_courses:q.length,total_credits:q.reduce((R,k)=>R+k.credits,0),last_updated:new Date().toISOString()},{error:W}=await ye.from("users").update({current_semester_courses:Y}).eq("id",n?.user?.id);if(W)throw W;A(Y),i({title:"Course removed",description:"Course has been removed from your current semester",status:"success",duration:3e3,isClosable:!0})}catch(q){console.error("Error removing course:",q),i({title:"Error removing course",description:q.message,status:"error",duration:3e3,isClosable:!0})}},U=async()=>{try{const{error:V}=await ye.from("users").update({current_semester_courses:null}).eq("id",n?.user?.id);if(V)throw V;A(null),i({title:"All courses cleared",description:"All courses have been removed from your current semester",status:"success",duration:3e3,isClosable:!0})}catch(V){console.error("Error clearing courses:",V),i({title:"Error clearing courses",description:V.message,status:"error",duration:3e3,isClosable:!0})}},F=()=>{if(!e)return"gray";const{total_credits:V,credit_limit:q}=e;return V<12?"red":V>=q?"orange":"blue"},x=V=>!V||V.length===0?"No schedule":V.map(q=>`${q.day} ${q.start_time}-${q.end_time}${q.room?` (${q.room})`:""}`).join(", "),N=V=>{p(V),c()};return t?u.jsxs(me,{spacing:4,align:"stretch",children:[u.jsx(jr,{height:"60px"}),u.jsxs(Et,{columns:{base:1,md:2},spacing:4,children:[u.jsx(jr,{height:"120px"}),u.jsx(jr,{height:"120px"})]})]}):!e||e.courses.length===0?u.jsx(me,{spacing:6,align:"center",py:8,children:u.jsxs(DA,{textAlign:"center",children:[u.jsx(gl,{size:48,className:"mx-auto mb-4 text-gray-400"}),u.jsx(fe,{size:"md",mb:2,color:"gray.600",children:"No Current Semester Courses"}),u.jsx(UA,{color:"gray.500",mb:4,children:"You haven't selected any courses for the current semester yet."}),u.jsx(Ue,{colorScheme:"purple",leftIcon:u.jsx(h1,{size:16}),onClick:()=>a("/tt-clash-checker"),children:"Select Courses"})]})}):u.jsxs(me,{spacing:6,align:"stretch",children:[u.jsxs(Re,{bg:m,borderColor:g,children:[u.jsx(zp,{pb:2,children:u.jsxs(ne,{justify:"space-between",align:"center",wrap:"wrap",gap:4,children:[u.jsx(fe,{size:"md",children:"Current Semester Courses"}),u.jsxs(ge,{spacing:3,children:[u.jsxs(tt,{size:"md",colorScheme:"purple",variant:"subtle",children:[u.jsx(zh,{as:gl}),u.jsxs(qh,{children:[e.total_courses,"/8 Courses"]})]}),u.jsxs(tt,{size:"md",colorScheme:F(),variant:"subtle",children:[u.jsx(zh,{as:f1}),u.jsxs(qh,{children:[e.total_credits,"/",e.credit_limit," Credits",e.total_credits<12&&" (Min: 12)"]})]})]})]})}),u.jsx(qe,{pt:2,children:u.jsxs(ne,{justify:"space-between",align:"center",wrap:"wrap",gap:4,children:[u.jsxs(me,{align:"start",spacing:1,children:[u.jsxs(UA,{fontSize:"sm",color:"gray.600",children:["Last Updated: ",new Date(e.last_updated).toLocaleDateString()]}),u.jsx(ge,{children:e.clash_checked?u.jsxs(ge,{color:"green.500",children:[u.jsx(d1,{size:14}),u.jsx(UA,{fontSize:"sm",children:"Clash Checked"})]}):u.jsxs(ge,{color:"orange.500",children:[u.jsx(g1,{size:14}),u.jsx(UA,{fontSize:"sm",children:"Clash Check Pending"})]})})]}),u.jsxs(ge,{spacing:2,children:[u.jsx(Ue,{size:"sm",leftIcon:u.jsx(p1,{size:14}),colorScheme:"purple",variant:"outline",onClick:()=>a("/tt-clash-checker"),children:"Modify Courses"}),u.jsx(Ue,{size:"sm",leftIcon:u.jsx(Na,{size:14}),variant:"outline",onClick:C,children:"Refresh"}),u.jsx(Ue,{size:"sm",leftIcon:u.jsx(il,{size:14}),colorScheme:"red",variant:"outline",onClick:U,children:"Clear All"})]})]})})]}),e.total_credits<12&&u.jsxs(Fa,{status:"error",children:[u.jsx(Qa,{}),u.jsx(gu,{children:"Minimum Credit Requirement Not Met!"}),u.jsxs(pu,{children:["You need at least 12 credits. Currently selected: ",e.total_credits," credits."]})]}),e.total_credits>=e.credit_limit&&u.jsxs(Fa,{status:"warning",children:[u.jsx(Qa,{}),u.jsx(gu,{children:"Credit Limit Reached!"}),u.jsxs(pu,{children:["You have reached your credit limit of ",e.credit_limit," credits."]})]}),u.jsx(Et,{columns:{base:1,md:2},spacing:4,children:e.courses.map((V,q)=>u.jsx(Re,{bg:m,borderColor:g,_hover:{shadow:"md",transform:"translateY(-2px)"},transition:"all 0.2s",cursor:"pointer",onClick:()=>N(V),children:u.jsx(qe,{children:u.jsxs(me,{align:"start",spacing:3,children:[u.jsxs(ne,{justify:"space-between",align:"start",w:"full",children:[u.jsxs(DA,{children:[u.jsx(fe,{size:"sm",mb:1,children:V.course_code}),u.jsx(UA,{fontSize:"sm",color:"gray.600",noOfLines:2,children:V.course_name})]}),u.jsx(Vn,{"aria-label":"Remove course",icon:u.jsx(il,{size:14}),size:"sm",colorScheme:"red",variant:"ghost",onClick:Y=>{Y.stopPropagation(),v(V.course_id)}})]}),u.jsxs(ge,{spacing:4,w:"full",children:[u.jsxs(ht,{colorScheme:"blue",variant:"subtle",children:[V.credits," Credits"]}),u.jsxs(ge,{color:"gray.500",children:[u.jsx(pl,{size:12}),u.jsxs(UA,{fontSize:"xs",children:[V.schedule?.length||0," slots"]})]})]}),u.jsx(UA,{fontSize:"xs",color:"gray.500",noOfLines:2,children:x(V.schedule)}),u.jsxs(UA,{fontSize:"xs",color:"gray.400",children:["Added: ",new Date(V.enrollment_date).toLocaleDateString()]})]})})},V.course_id))}),u.jsxs(xa,{isOpen:o,onClose:d,size:"lg",children:[u.jsx(Ua,{}),u.jsxs(Sa,{children:[u.jsx(Ea,{children:"Course Details"}),u.jsx(La,{}),u.jsx(Ia,{children:B&&u.jsxs(me,{align:"start",spacing:4,children:[u.jsxs(DA,{children:[u.jsxs(fe,{size:"md",mb:2,children:[B.course_code,": ",B.course_name]}),u.jsxs(ht,{colorScheme:"blue",size:"lg",children:[B.credits," Credits"]})]}),u.jsx(Tt,{}),u.jsxs(DA,{w:"full",children:[u.jsx(fe,{size:"sm",mb:3,children:"Schedule"}),B.schedule&&B.schedule.length>0?u.jsxs(rh,{size:"sm",variant:"simple",children:[u.jsx(nh,{children:u.jsxs(Bi,{children:[u.jsx(xt,{children:"Day"}),u.jsx(xt,{children:"Time"}),u.jsx(xt,{children:"Room"})]})}),u.jsx(ih,{children:B.schedule.map((V,q)=>u.jsxs(Bi,{children:[u.jsx(Ct,{children:V.day}),u.jsxs(Ct,{children:[V.start_time," - ",V.end_time]}),u.jsx(Ct,{children:V.room||"TBA"})]},q))})]}):u.jsx(UA,{color:"gray.500",children:"No schedule information available"})]}),u.jsx(DA,{children:u.jsxs(UA,{fontSize:"sm",color:"gray.600",children:[u.jsx("strong",{children:"Enrollment Date:"})," ",new Date(B.enrollment_date).toLocaleString()]})})]})}),u.jsxs(_a,{children:[u.jsx(Ue,{mr:3,onClick:d,children:"Close"}),u.jsx(Ue,{colorScheme:"red",leftIcon:u.jsx(il,{size:14}),onClick:()=>{B&&(v(B.course_id),d())},children:"Remove Course"})]})]})]})]})};var bd=L1();const ev=e=>({"A+":10,"A-":9,"B+":8,"B-":7,B:7,"C+":6,C:6,"C-":5,D:4,F:2,S:0,X:0})[e]||0,tv=(e,A)=>{switch(e){case"S":return{status:"completed",backlog:"No",gradePoint:null,isNonGraded:!0};case"X":return{status:"failed",backlog:"Yes",gradePoint:null,isNonGraded:!0};case"F":return{status:"failed",backlog:"Yes",gradePoint:2,isNonGraded:!1};default:return{status:"completed",backlog:"No",gradePoint:ev(e),isNonGraded:!1}}},_v=()=>{const[e,A]=xA.useState(0),[t,r]=xA.useState([]),[n,i]=xA.useState(!0),[a,o]=xA.useState(null),{session:c}=Ci(),d=bs(),{isOpen:B,onOpen:p,onClose:m}=Il(),[g,C]=xA.useState(!1),[v,U]=xA.useState(null),[F,x]=xA.useState(!1),[N,V]=xA.useState({semester_number:1,academic_year:"",gpa:0,backlogs:0,total_credits:0,completed_credits:0,courses:[]});HA("white","gray.800"),HA("gray.200","gray.700"),xA.useEffect(()=>{c?.user?.id&&q()},[c?.user?.id]);const q=async(L=!1)=>{try{i(!0),o(null);const{data:D,error:O}=await ye.from("user_semester_courses").select("id, user_id, course_uuid, course_acronym, semester_number, grade, grade_point, status, backlog, is_transcript_verified, courses_iiitd!inner(uuid, course_code, course_name, credits, dept_acronym, description)").eq("user_id",c?.user?.id).order("semester_number",{ascending:!0});if(O)throw O;const nA=[];if(D&&D.length>0)for(const cA of D){if(!cA.course_uuid){console.warn("Skipping course record with undefined UUID:",cA);continue}const z=tv(cA.grade),BA={id:cA.id,user_id:cA.user_id,course_uuid:cA.course_uuid,course_acronym:cA.course_acronym||cA.courses_iiitd?.course_code||"Unknown",semester_number:cA.semester_number,grade:cA.grade,grade_point:z.gradePoint,status:z.status,backlog:z.backlog,is_transcript_verified:cA.is_transcript_verified,course:cA.courses_iiitd||{uuid:cA.course_uuid,course_code:cA.course_acronym||"Unknown",course_name:"Unknown Course",credits:0,dept_acronym:"",description:""}};nA.push(BA)}const{data:sA,error:oA}=await ye.from("user_academic_records").select("*").eq("user_id",c?.user?.id).order("semester_number",{ascending:!0});if(oA)throw oA;const tA=sA.map(cA=>{const z=nA.filter(BA=>BA.semester_number===cA.semester_number);return{...cA,courses:z}});r(tA)}catch(D){console.error("Error fetching academic records:",D),o("Failed to load your academic records. Please try again later.")}finally{i(!1)}},Y=()=>u.jsxs(me,{spacing:4,align:"stretch",w:"full",children:[u.jsx(jr,{height:"40px",width:"200px"}),u.jsx(jr,{height:"20px",width:"100%"}),u.jsx(jr,{height:"20px",width:"100%"}),u.jsx(jr,{height:"20px",width:"100%"}),u.jsxs(du,{templateColumns:"repeat(5, 1fr)",gap:4,children:[u.jsx(or,{colSpan:5,children:u.jsx(jr,{height:"40px"})}),[...Array(5)].map((L,D)=>u.jsxs(_l.Fragment,{children:[u.jsx(or,{colSpan:2,children:u.jsx(jr,{height:"30px"})}),u.jsx(or,{colSpan:2,children:u.jsx(jr,{height:"30px"})}),u.jsx(or,{colSpan:1,children:u.jsx(jr,{height:"30px"})})]},D))]})]}),W=L=>{const{name:D,value:O}=L.target;V(nA=>({...nA,[D]:D==="semester_number"||D==="gpa"||D==="backlogs"||D==="total_credits"||D==="completed_credits"?Number(O):O}))},R=L=>{V({semester_number:L.semester_number,academic_year:L.academic_year,gpa:L.gpa,backlogs:L.backlogs,total_credits:L.total_credits,completed_credits:L.completed_credits,courses:L.courses}),U(L),p()},k=async()=>{C(!0);try{if(v){const{error:L}=await ye.from("user_academic_records").update({semester_number:N.semester_number,academic_year:N.academic_year,gpa:N.gpa,backlogs:N.backlogs,total_credits:N.total_credits,completed_credits:N.completed_credits,updated_at:new Date().toISOString()}).eq("id",v.id);if(L)throw L;d({title:"Record updated",description:`Academic record for semester ${N.semester_number} has been updated.`,status:"success",duration:3e3,isClosable:!0})}else{if(t.find(O=>O.semester_number===N.semester_number)){d({title:"Semester already exists",description:`A record for semester ${N.semester_number} already exists.`,status:"error",duration:3e3,isClosable:!0}),C(!1);return}const{error:D}=await ye.from("user_academic_records").insert({user_id:c?.user?.id,semester_number:N.semester_number,academic_year:N.academic_year,gpa:N.gpa,backlogs:N.backlogs,total_credits:N.total_credits,completed_credits:N.completed_credits});if(D)throw D;d({title:"Record added",description:`Academic record for semester ${N.semester_number} has been added.`,status:"success",duration:3e3,isClosable:!0})}m(),q()}catch(L){d({title:"Error",description:L.message,status:"error",duration:5e3,isClosable:!0})}finally{C(!1)}},$=async()=>{console.log("🔄 Transcript upload completed, refreshing academic records..."),C(!0);try{await q(!0),console.log("✅ Academic records refreshed successfully"),d({title:"Data refreshed",description:"Academic records have been updated with the new transcript data",status:"info",duration:3e3,isClosable:!0})}catch(L){console.error("Error refreshing academic records:",L),d({title:"Refresh failed",description:"Could not refresh academic records. Please reload the page.",status:"warning",duration:5e3,isClosable:!0})}finally{C(!1)}},_=async L=>{try{if(C(!0),!window.confirm(`Are you sure you want to delete the transcript for Semester ${L}? This will remove all transcript-verified data for this semester.`)){C(!1);return}console.log(`Attempting to delete transcript for semester ${L}`);const{data:O,error:nA}=await ye.rpc("delete_transcript_data_clean",{p_user_id:c?.user?.id,p_semester_number:L});if(nA)throw console.error("Delete transcript error:",nA),nA;console.log("Delete transcript response:",O),d({title:"Transcript deleted successfully",description:`All transcript data for Semester ${L} has been removed.`,status:"success",duration:5e3,isClosable:!0}),await q()}catch(D){console.error("Error deleting transcript:",D),d({title:"Error deleting transcript",description:D.message||"Failed to delete transcript. Please try again.",status:"error",duration:5e3,isClosable:!0})}finally{C(!1)}};return u.jsxs(DA,{children:[u.jsxs(Qd,{variant:"enclosed",colorScheme:"purple",defaultIndex:0,children:[u.jsxs(xd,{mb:4,children:[u.jsx(pa,{children:u.jsxs(ne,{align:"center",gap:2,children:[u.jsx(gl,{size:16})," Current Semester"]})}),u.jsx(pa,{children:u.jsxs(ne,{align:"center",gap:2,children:[u.jsx(Ha,{size:16})," Past Records"]})})]}),u.jsxs(Ud,{children:[u.jsx(Ba,{px:0,children:u.jsx(Av,{})}),u.jsxs(Ba,{px:0,children:[u.jsxs(ne,{justify:"space-between",align:"center",mb:6,children:[u.jsx(fe,{size:"md",color:"purple.700",children:"Academic Records"}),u.jsx(ne,{gap:2,children:u.jsx(Ue,{size:"sm",leftIcon:u.jsx(B1,{size:16}),colorScheme:"purple",onClick:()=>x(!0),children:"Upload Transcript"})})]}),u.jsxs(Et,{columns:{base:1,md:3},spacing:6,mb:6,children:[u.jsx(DA,{p:4,bg:"purple.50",rounded:"lg",shadow:"sm",children:u.jsxs(hi,{children:[u.jsx(fi,{color:"gray.600",children:"Completed Semesters"}),u.jsx(di,{fontSize:"2xl",color:"purple.600",children:t.length})]})}),u.jsx(DA,{p:4,bg:"purple.50",rounded:"lg",shadow:"sm",children:u.jsxs(hi,{children:[u.jsx(fi,{color:"gray.600",children:"Total Credits"}),u.jsx(di,{fontSize:"2xl",color:"purple.600",children:t.reduce((L,D)=>L+(D.completed_credits||0),0)})]})}),u.jsx(DA,{p:4,bg:"purple.50",rounded:"lg",shadow:"sm",children:u.jsxs(hi,{children:[u.jsx(fi,{color:"gray.600",children:"Cumulative GPA"}),u.jsx(di,{fontSize:"2xl",color:"purple.600",children:rv(t)})]})})]}),g?Y():t.length===0?u.jsxs(me,{spacing:4,py:8,children:[u.jsx(UA,{color:"gray.500",fontSize:"lg",children:"No academic records found"}),u.jsx(UA,{color:"gray.400",fontSize:"sm",children:"Add your first semester record or upload a transcript to get started"})]}):u.jsx(me,{spacing:6,align:"stretch",children:u.jsx(Et,{columns:{base:1,md:1,lg:2},spacing:6,children:t.map(L=>u.jsx(iv,{record:L,onDelete:_,onEdit:R,isLoading:g},L.id))})}),u.jsxs(xa,{isOpen:B,onClose:m,children:[u.jsx(Ua,{}),u.jsxs(Sa,{children:[u.jsx(Ea,{children:v?"Edit Semester Record":"Add Semester Record"}),u.jsx(La,{}),u.jsx(Ia,{children:u.jsxs(me,{spacing:4,children:[u.jsxs(Ut,{children:[u.jsx(St,{children:"Semester"}),u.jsx(Gn,{name:"semester_number",value:N.semester_number,onChange:W,children:[1,2,3,4,5,6,7,8].map(L=>u.jsxs("option",{value:L,children:["Semester ",L]},L))})]}),u.jsxs(Ut,{children:[u.jsx(St,{children:"Academic Year"}),u.jsx(vr,{name:"academic_year",value:N.academic_year,onChange:W,placeholder:"e.g. 2023-2024"})]}),u.jsxs(Ut,{children:[u.jsx(St,{children:"GPA"}),u.jsx(vr,{name:"gpa",type:"number",step:"0.01",min:"0",max:"10",value:N.gpa,onChange:W})]}),u.jsxs(Ut,{children:[u.jsx(St,{children:"Total Credits"}),u.jsx(vr,{name:"total_credits",type:"number",min:"0",value:N.total_credits,onChange:W})]}),u.jsxs(Ut,{children:[u.jsx(St,{children:"Completed Credits"}),u.jsx(vr,{name:"completed_credits",type:"number",min:"0",max:N.total_credits,value:N.completed_credits,onChange:W})]}),u.jsxs(Ut,{children:[u.jsx(St,{children:"Backlogs"}),u.jsx(vr,{name:"backlogs",type:"number",min:"0",value:N.backlogs,onChange:W})]})]})}),u.jsxs(_a,{children:[u.jsx(Ue,{variant:"ghost",mr:3,onClick:m,isDisabled:g,children:"Cancel"}),u.jsx(Ue,{colorScheme:"purple",onClick:k,isLoading:g,children:v?"Save Changes":"Add Record"})]})]})]})]})]})]}),u.jsx(nv,{isOpen:F,onClose:()=>x(!1),onUploadComplete:$})]})},rv=e=>{if(e.length===0)return"0.00";const A=e.reduce((r,n)=>r+n.completed_credits,0);return A===0?"0.00":(e.reduce((r,n)=>r+n.gpa*n.completed_credits,0)/A).toFixed(2)},nv=({isOpen:e,onClose:A,onUploadComplete:t})=>{const[r,n]=xA.useState(null),[i,a]=xA.useState(!1),[o,c]=xA.useState(!1),[d,B]=xA.useState(0),[p,m]=xA.useState(null),[g,C]=xA.useState(null),[v,U]=xA.useState(""),[F,x]=xA.useState(0),[N,V]=xA.useState("regular"),q=_l.useRef(null),Y=bs(),{session:W}=Ci(),{isOpen:R,onOpen:k,onClose:$}=Il(),_=new Date().getFullYear(),L=Array.from({length:10},(z,BA)=>{const Q=_-BA;return`${Q}-${Q+1}`}),D=z=>{if(z.target.files&&z.target.files[0]){const BA=z.target.files[0];if(BA.type!=="application/pdf"){Y({title:"Invalid file type",description:"Please upload a PDF file",status:"error",duration:3e3,isClosable:!0});return}if(BA.size>5*1024*1024){Y({title:"File too large",description:"Maximum file size is 5MB",status:"error",duration:3e3,isClosable:!0});return}n(BA),C(null),m(null)}},O=async()=>{if(!r){C("Please select a file");return}if(!v){C("Please select the academic year");return}if(F===0){C("Please select the semester number");return}console.log("🚀 Starting transcript processing..."),console.log("📄 File details:",{name:r.name,type:r.type,size:r.size}),console.log("📋 Form data:",{academicYear:v,semesterNumber:F,semesterType:N});try{c(!0),B(10),console.log("📊 Progress: 10% - Converting file to base64...");const z=await sA(r);console.log("✅ File converted to base64, length:",z.length),B(30),console.log("📊 Progress: 30% - Calling Gemini API to extract data...");const BA=await oA(z);console.log("✅ Data extracted from transcript:",BA),B(70),console.log("📊 Progress: 70% - Processing and verifying extracted data...");const Q=tA(BA);console.log("✅ Data processed and verified:",Q),B(90),Q.academic_year=v,Q.semester=F,Q.semester_type=N,console.log("✅ Final processed data with user inputs:",Q),m(Q),B(100),console.log("🎉 Transcript processing completed successfully!"),Y({title:"Transcript processed",description:"Please review the extracted data before saving",status:"success",duration:3e3,isClosable:!0})}catch(z){console.error("❌ Error processing transcript:",z),C(`Failed to process transcript: ${z.message||"Unknown error"}`),Y({title:"Processing failed",description:z.message||"Failed to process transcript",status:"error",duration:5e3,isClosable:!0})}finally{c(!1)}},nA=async z=>{try{console.log("Converting PDF to image, data URL length:",z.length),bd.GlobalWorkerOptions.workerSrc="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.11.174/pdf.worker.min.js";const BA=z.split(",")[1],Q=atob(BA),j=new Uint8Array(Q.length);for(let SA=0;SA<Q.length;SA++)j[SA]=Q.charCodeAt(SA);console.log("PDF array buffer size:",j.length);const P=await bd.getDocument({data:j,useWorkerFetch:!1,isEvalSupported:!1,useSystemFonts:!0,verbosity:0}).promise;console.log("PDF loaded successfully, pages:",P.numPages);const G=await P.getPage(1);console.log("Got first page");const eA=G.getViewport({scale:2}),uA=document.createElement("canvas"),aA=uA.getContext("2d");if(!aA)throw new Error("Could not get canvas context");uA.height=eA.height,uA.width=eA.width,console.log("Canvas dimensions:",uA.width,"x",uA.height);const wA={canvasContext:aA,viewport:eA};await G.render(wA).promise,console.log("PDF page rendered to canvas");const bA=uA.toDataURL("image/jpeg",.9);return console.log("Converted PDF to image, result length:",bA.length),bA}catch(BA){return console.error("Error converting PDF to image:",BA),BA instanceof Error&&(BA.message.includes("workerSrc")?console.warn("⚠️ PDF.js worker issue detected. PDF conversion failed."):BA.message.includes("Invalid PDF")?console.warn("⚠️ Invalid PDF file detected."):console.warn("⚠️ Unknown PDF conversion error:",BA.message)),console.log("⚠️ PDF conversion failed, trying to pass PDF directly to Gemini..."),z}},sA=z=>new Promise((BA,Q)=>{console.log("📄 Converting file to base64:",z.name,z.type);const j=new FileReader;j.readAsDataURL(z),j.onload=()=>{const P=j.result?.toString();P?(console.log("✅ File converted to base64, length:",P.length),console.log("📊 Data URL format:",P.substring(0,50)+"..."),z.type==="application/pdf"?(console.log("📄 Processing PDF file..."),nA(P).then(G=>{console.log("✅ PDF converted to image successfully"),BA(G)}).catch(G=>{console.warn("⚠️ PDF conversion failed, passing PDF directly to Gemini:",G.message),BA(P)})):(console.log("🖼️ Processing image file directly"),BA(P))):Q(new Error("Failed to convert file to base64"))},j.onerror=P=>Q(P)}),oA=async z=>{console.log("🔍 Starting transcript data extraction..."),console.log("📊 Base64 data length:",z.length),console.log("📊 Base64 data format:",z.substring(0,50)+"...");const BA=` Analyze this academic transcript image and extract the following information in JSON format: { "student_name": "Full name of the student", "roll_number": "Student roll/registration number", "program": "Degree program (e.g., BTech CSE, BTech ECE, etc.)", "semester": "Semester number", "semester_type": "regular or summer", "academic_year": "Academic year (e.g., 2022-2023)", "sgpa": "Semester GPA as number", "cgpa": "Cumulative GPA as number (if available)", "total_credits": "Total credits for the semester", "completed_credits": "Credits completed successfully", "backlog_count": "Number of backlogs/failed courses", "courses": [ { "course_code": "Course code (e.g., CSE201A)", "course_name": "Full course name", "course_type": "Type like Core, Elective, Open Elective, etc.", "credit": "Credit value as number", "grade": "Letter grade (A+, A, A-, B+, B, B-, C+, C, C-, D+, D, F)", "grade_point": "Grade point value as number", "is_backlog": "true if this is a backlog course, false otherwise" } ] } Important guidelines: - Extract ALL courses visible in the transcript - Ensure grade points match the institution's grading scale - Mark failed courses (grade F) appropriately - Calculate totals accurately - If any field is not clearly visible, use null or appropriate default - Ensure course codes are exact as shown in transcript - Preserve exact course names as written Return only the JSON object, no additional text. `;try{console.log("🚀 Using direct Gemini API call");const{extractTranscriptData:Q}=await wl(async()=>{const{extractTranscriptData:G}=await import("./geminiService-khxcBfs7.js");return{extractTranscriptData:G}},[]);console.log("📤 Sending request to Gemini API...");const j=await Q(z,BA);if(console.log("📥 Received response from Gemini API:",j),!j.courses||!Array.isArray(j.courses))throw console.error("❌ Invalid transcript data: courses array not found",j),new Error("Invalid transcript data: courses array not found");console.log("✅ Found",j.courses.length,"courses in extracted data");const P=["student_name","semester","sgpa","courses"];for(const G of P)j[G]?console.log(`✅ Field ${G}:`,j[G]):console.warn(`⚠️ Missing field in extracted data: ${G}`);return j}catch(Q){throw console.error("Error extracting transcript data:",Q),Q instanceof Error?Q.message.includes("API call failed: 401")?new Error("API authentication failed. Please contact support."):Q.message.includes("API call failed: 429")?new Error("Too many requests. Please wait a moment and try again."):Q.message.includes("API call failed: 400")?new Error("Invalid image format. Please upload a clear JPEG, PNG, or WebP image."):Q.message.includes("Failed to parse transcript data")?new Error("Could not extract data from this transcript. Please ensure the image is clear and contains a valid academic transcript with visible course information."):new Error(`Failed to extract transcript data: ${Q.message}`):new Error("Failed to extract transcript data. Please ensure the image is clear and contains a valid academic transcript.")}},tA=z=>{if(!z.student_name||!z.roll_number||!z.courses||!Array.isArray(z.courses))throw new Error("Missing required fields in extracted data");const BA={},Q=z.courses.map(eA=>{if(!eA.course_code||!eA.course_name||!eA.credit)throw new Error(`Invalid course data: ${JSON.stringify(eA)}`);BA[eA.course_code]=(BA[eA.course_code]||0)+1;let uA=eA.course_code;BA[eA.course_code]>1&&(uA=`${eA.course_code}-${BA[eA.course_code]}`);let aA=null;if(eA.grade==="S"||eA.grade==="X")aA=null;else{const wA=parseFloat(eA.grade_point);aA=isNaN(wA)?null:wA}return{course_code:uA,course_name:eA.course_name,course_type:eA.course_type||"Unknown",credit:parseInt(eA.credit)||0,grade:eA.grade,grade_point:aA,is_backlog:eA.grade==="F"||eA.grade==="X",backlog:eA.grade==="F"||eA.grade==="X"?"Yes":"No",status:eA.grade==="F"||eA.grade==="X"?"failed":"completed"}}),j=Q.filter(eA=>eA.grade_point!==null&&!["S","X"].includes(eA.grade)),P=j.reduce((eA,uA)=>eA+uA.credit,0),G=j.reduce((eA,uA)=>eA+uA.credit*(uA.grade_point||0),0),X=P>0?G/P:0;return{student_name:z.student_name,roll_number:z.roll_number,program:z.program||"",semester:0,semester_type:"regular",academic_year:"",sgpa:X,cgpa:parseFloat(z.cgpa)||0,courses:Q}},cA=async()=>{if(!p||!r||!W?.user?.id){C("Missing required data");return}try{a(!0),console.log("Extracted data before saving:",p);const z=await r.arrayBuffer(),BA=new Uint8Array(z),Q=p.courses.reduce((aA,wA)=>aA+wA.credit,0),j=p.courses.filter(aA=>aA.grade!=="F").reduce((aA,wA)=>aA+wA.credit,0),P=p.courses.filter(aA=>aA.grade==="F").length,G={user_id:W.user.id,student_name:p.student_name,roll_number:p.roll_number,semester:p.semester,semester_type:p.semester_type,academic_year:p.academic_year,is_summer_term:p.semester_type==="summer",program:p.program,sgpa:p.sgpa,cgpa:p.cgpa,credits_registered:Q,credits_earned:j,backlog_count:P,verification_status:"verified",original_file_path:r.name,file_type:r.type,courses:p.courses,file_data:BA};console.log("Complete transcript data being sent:",{...G,file_data:"[Binary data]",courses:`[${p.courses.length} courses]`});const{error:X}=await ye.from("transcripts").insert([G]);if(X)throw console.error("Supabase error details:",X),X.code==="23514"?new Error(`Database constraint violation: ${X.message}. Please check that the transcript data is correctly formatted.`):X.code==="42702"?new Error(`Column reference is ambiguous: ${X.message}. This is likely due to a field name conflict in the database.`):X.code==="42703"?new Error(`Column does not exist: ${X.message}. Please check field names match the database schema.`):X;console.log("✅ Transcript data inserted successfully");const eA={user_id:W.user.id,semester_number:p.semester,academic_year:p.academic_year,gpa:p.sgpa,backlogs:P,total_credits:Q,completed_credits:j};console.log("📊 Inserting academic record:",eA);const{error:uA}=await ye.from("user_academic_records").upsert([eA],{onConflict:"user_id,semester_number"});if(uA)throw console.error("Error inserting academic record:",uA),new Error(`Failed to save academic record: ${uA.message}`);console.log("✅ Academic record inserted successfully"),console.log("📚 Processing individual courses...");for(const aA of p.courses){console.log(`📖 Processing course: ${aA.course_code} - ${aA.course_name}`);let wA=aA.course_code;if(wA.length>10){const K=wA.match(/^([A-Z]{2,4}\d{3})/);K&&(wA=K[1])}console.log(`🔧 Using clean course code: ${wA} (original: ${aA.course_code})`);let bA=null,SA=null;try{const K=await ye.from("courses_iiitd").select("uuid, course_code, course_name").eq("course_code",wA).maybeSingle();if(K.data)bA={uuid:K.data.uuid,course_code:K.data.course_code},console.log(`✅ Found exact match for course ${wA}:`,bA);else if(K.error&&K.error.code!=="PGRST116")SA=K.error,console.warn(`⚠️ Error in exact match for ${wA}:`,K.error);else{const WA=await ye.from("courses_iiitd").select("uuid, course_code, course_name").ilike("course_code",wA).maybeSingle();if(WA.data)bA={uuid:WA.data.uuid,course_code:WA.data.course_code},console.log(`✅ Found case-insensitive match for course ${wA}:`,bA);else if(WA.error&&WA.error.code!=="PGRST116")SA=WA.error,console.warn(`⚠️ Error in case-insensitive match for ${wA}:`,WA.error);else{const kA=await ye.from("courses_iiitd").select("uuid, course_code, course_name").ilike("course_code",`%${wA}%`).maybeSingle();kA.data?(bA={uuid:kA.data.uuid,course_code:kA.data.course_code},console.log(`✅ Found partial match for course ${wA}:`,bA)):kA.error&&kA.error.code!=="PGRST116"&&(SA=kA.error,console.warn(`⚠️ Error in partial match for ${wA}:`,kA.error))}}}catch(K){console.error(`❌ Exception during course matching for ${wA}:`,K)}if(SA&&SA.code!=="PGRST116"){console.error(`❌ Error checking course ${wA}:`,SA);continue}if(!bA){console.log(`⚠️ Course ${wA} not found in courses_iiitd table. Creating a placeholder entry.`);const K={course_code:wA,course_name:aA.course_name,dept_acronym:wA.substring(0,3),description:"Placeholder entry created from transcript",credits:aA.credit,professor_allocated:null,semester:p.semester,semester_type:p.semester_type},{data:WA,error:kA}=await ye.from("courses_iiitd").insert(K).select("uuid, course_code").single();if(kA){console.error("❌ Error creating placeholder course:",kA);continue}if(!WA?.uuid){console.error(`❌ Failed to create placeholder course for ${wA}`);continue}bA={uuid:WA.uuid,course_code:WA.course_code},console.log("✅ Created placeholder course:",bA)}const EA=bA.uuid,XA={user_id:W.user.id,course_uuid:EA,course_acronym:bA.course_code,semester_number:p.semester,grade:aA.grade,grade_point:aA.grade_point,backlog:aA.grade==="F"||aA.grade==="X"?"Yes":"No",status:aA.grade==="F"||aA.grade==="X"?"failed":"completed",is_transcript_verified:!0};console.log("📝 Inserting user course record:",XA);const{error:gA}=await ye.from("user_semester_courses").upsert([XA],{onConflict:"user_id,course_uuid,semester_number"});if(gA)throw console.error("Error inserting/updating user course:",gA),new Error(`Failed to save course ${EA}: ${gA.message}`);console.log(`✅ Course ${EA} saved successfully`)}console.log("🎉 All courses processed successfully!"),Y({title:"Transcript saved",description:"Your transcript has been successfully processed and saved",status:"success",duration:5e3,isClosable:!0}),n(null),m(null),U(""),x(0),V("regular"),q.current&&(q.current.value=""),A(),setTimeout(()=>{console.log("🔄 Refreshing academic records after transcript upload..."),t()},500)}catch(z){console.error("Error saving transcript:",z),C(`Failed to save transcript: ${z.message||"Unknown error"}`),Y({title:"Save failed",description:z.message||"Failed to save transcript",status:"error",duration:5e3,isClosable:!0})}finally{a(!1)}};return u.jsxs(xa,{isOpen:e,onClose:A,size:"xl",children:[u.jsx(Ua,{}),u.jsxs(Sa,{children:[u.jsx(Ea,{children:"Upload Semester Transcript"}),u.jsx(La,{}),u.jsx(Ia,{children:u.jsxs(me,{spacing:6,align:"stretch",children:[g&&u.jsxs(Fa,{status:"error",borderRadius:"md",children:[u.jsx(Qa,{}),g]}),u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Transcript File"}),u.jsx(vr,{type:"file",accept:".pdf,.jpg,.jpeg,.png,.webp",onChange:D,ref:q,disabled:o||i}),u.jsxs(Jp,{children:["Upload your semester transcript (PDF, JPEG, PNG, or WebP format, max 5MB)",u.jsx("br",{}),u.jsx(UA,{fontSize:"xs",color:"orange.500",mt:1,children:"Note: If PDF processing fails, please convert your PDF to a JPEG or PNG image first"})]})]}),u.jsxs(ge,{spacing:4,children:[u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Academic Year"}),u.jsx(Gn,{placeholder:"Select academic year",value:v,onChange:z=>U(z.target.value),disabled:o||i,children:L.map(z=>u.jsx("option",{value:z,children:z},z))})]}),u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Semester"}),u.jsxs(Gn,{placeholder:"Select semester",value:F||"",onChange:z=>x(parseInt(z.target.value)),disabled:o||i,children:[u.jsx("optgroup",{label:"Regular Semesters",children:[1,2,3,4,5,6,7,8].map(z=>u.jsxs("option",{value:z,children:["Semester ",z]},`reg-${z}`))}),u.jsx("optgroup",{label:"Summer Terms",children:[1,2,3].map(z=>u.jsxs("option",{value:z,children:["Summer Term ",z]},`sum-${z}`))})]})]})]}),u.jsxs(Ut,{isRequired:!0,children:[u.jsx(St,{children:"Semester Type"}),u.jsx(Xp,{value:N,onChange:z=>V(z),children:u.jsxs(Yp,{direction:"row",spacing:5,children:[u.jsx(Wh,{value:"regular",isDisabled:o||i,children:"Regular Semester"}),u.jsx(Wh,{value:"summer",isDisabled:o||i,children:"Summer Term"})]})})]}),o&&u.jsxs(DA,{children:[u.jsx(UA,{mb:2,children:"Processing transcript..."}),u.jsx(Ed,{value:d,size:"sm",colorScheme:"purple",borderRadius:"md"})]}),p&&u.jsx(DA,{borderWidth:"1px",borderRadius:"md",p:4,bg:"gray.50",children:u.jsxs(me,{align:"stretch",spacing:3,children:[u.jsxs(ge,{justifyContent:"space-between",children:[u.jsx(UA,{fontWeight:"bold",children:p.student_name}),u.jsx(ht,{colorScheme:"purple",children:p.roll_number})]}),u.jsxs(ge,{spacing:4,children:[u.jsxs(UA,{fontSize:"sm",children:["Program: ",p.program]}),u.jsxs(UA,{fontSize:"sm",children:["SGPA: ",p.sgpa.toFixed(2)]}),u.jsxs(UA,{fontSize:"sm",children:["CGPA: ",p.cgpa.toFixed(2)]})]}),u.jsxs(UA,{fontSize:"sm",fontWeight:"medium",children:[p.courses.length," courses extracted"]}),u.jsx(Ue,{size:"sm",leftIcon:u.jsx(Nd,{size:16}),onClick:k,variant:"outline",children:"Preview Extracted Courses"})]})})]})}),u.jsxs(_a,{children:[u.jsx(Ue,{variant:"outline",mr:3,onClick:A,children:"Cancel"}),p?u.jsx(Ue,{leftIcon:u.jsx(Hd,{size:16}),colorScheme:"green",onClick:cA,isLoading:i,loadingText:"Saving",children:"Save Transcript"}):u.jsx(Ue,{leftIcon:u.jsx(C1,{size:16}),colorScheme:"purple",onClick:O,isLoading:o,loadingText:"Processing",isDisabled:!r||i,children:"Process Transcript"})]})]}),u.jsxs(xa,{isOpen:R,onClose:$,size:"xl",scrollBehavior:"inside",children:[u.jsx(Ua,{}),u.jsxs(Sa,{children:[u.jsx(Ea,{children:"Extracted Course Data"}),u.jsx(La,{}),u.jsx(Ia,{children:p&&u.jsxs(rh,{size:"sm",variant:"simple",children:[u.jsx(nh,{children:u.jsxs(Bi,{children:[u.jsx(xt,{children:"Course Code"}),u.jsx(xt,{children:"Course Name"}),u.jsx(xt,{children:"Type"}),u.jsx(xt,{isNumeric:!0,children:"Credits"}),u.jsx(xt,{children:"Grade"}),u.jsx(xt,{isNumeric:!0,children:"Points"})]})}),u.jsx(ih,{children:p.courses.map((z,BA)=>u.jsxs(Bi,{children:[u.jsx(Ct,{children:z.course_code}),u.jsx(Ct,{children:z.course_name}),u.jsx(Ct,{children:z.course_type}),u.jsx(Ct,{isNumeric:!0,children:z.credit}),u.jsx(Ct,{children:u.jsx(ht,{colorScheme:z.grade==="F"?"red":z.grade_point>=8?"green":z.grade_point>=6?"blue":z.grade_point>=4?"orange":"red",children:z.grade})}),u.jsx(Ct,{isNumeric:!0,children:z.grade_point})]},BA))})]})}),u.jsx(_a,{children:u.jsx(Ue,{colorScheme:"blue",mr:3,onClick:$,children:"Close"})})]})]})]})},iv=({record:e,onDelete:A,onEdit:t,isLoading:r})=>{const[n,i]=xA.useState(!1),a=qp({base:!0,md:!1}),o=bs(),c=()=>{a||i(!0)},d=()=>{a||i(!1)},B=()=>{a&&i(!n)},p=v=>({"A+":"green",A:"green","A-":"green","B+":"blue",B:"blue","B-":"blue","C+":"yellow",C:"yellow","C-":"yellow",D:"orange",F:"red"})[v]||"gray",m=()=>e.courses.filter(v=>v.status==="completed"&&v.grade!=="F").length,g=()=>e.courses.filter(v=>v.semester_number===e.semester_number).length,C=async v=>{try{if(v==="pdf"){const U=new $A("p","mm","a4"),F=U.internal.pageSize.getWidth(),x=20;let N=x;U.setFontSize(20),U.setFont("helvetica","bold"),U.text(`Semester ${e.semester_number} - ${e.academic_year}`,x,N),N+=15,U.setFontSize(12),U.setFont("helvetica","normal"),U.text(`SGPA: ${e.gpa.toFixed(2)}`,x,N),U.text(`Credits: ${e.completed_credits}`,x+60,N),N+=10;const V=m(),q=e.courses.filter(Y=>Y.grade==="F").length;U.text(`Completed: ${V} | Failed: ${q} | Total: ${e.courses.length}`,x,N),N+=15,U.setFont("helvetica","bold"),U.text("Course Details:",x,N),N+=10,U.setFontSize(10),U.text("Course Code",x,N),U.text("Course Name",x+30,N),U.text("Credits",x+100,N),U.text("Grade",x+130,N),U.text("Status",x+150,N),N+=5,U.line(x,N,F-x,N),N+=5,U.setFont("helvetica","normal"),e.courses.forEach((Y,W)=>{N>270&&(U.addPage(),N=x),U.text(Y.course?.course_code||"N/A",x,N),U.text(Y.course?.course_name||"N/A",x+30,N,{maxWidth:65}),U.text((Y.course?.credits||0).toString(),x+100,N),U.text(Y.grade||"N/A",x+130,N),U.text(Y.status||"N/A",x+150,N),N+=8}),N+=10,U.setFontSize(8),U.setFont("helvetica","italic"),U.text(`Generated on ${new Date().toLocaleDateString()}`,x,N),U.save(`semester-${e.semester_number}-${e.academic_year}.pdf`)}else{const U=n;i(!1),await new Promise(V=>setTimeout(V,100));const F=document.getElementById(`semester-tile-${e.id}`);if(!F)throw new Error("Could not find semester tile");const x=await wh(F,{backgroundColor:"#ffffff",scale:2,useCORS:!0,allowTaint:!0});i(U);const N=document.createElement("a");N.download=`semester-${e.semester_number}-${e.academic_year}.png`,N.href=x.toDataURL(),N.click()}o({title:"Download successful",description:`Semester ${e.semester_number} downloaded as ${v.toUpperCase()}`,status:"success",duration:3e3,isClosable:!0})}catch(U){console.error("Download error:",U),o({title:"Download failed",description:"An error occurred while downloading",status:"error",duration:3e3,isClosable:!0})}};return u.jsx(DA,{id:`semester-tile-${e.id}`,onMouseEnter:c,onMouseLeave:d,onClick:a?B:void 0,cursor:a?"pointer":"default",position:"relative",transition:"all 0.4s cubic-bezier(0.4, 0, 0.2, 1)",transform:n?"translateY(-8px)":"translateY(0)",_hover:{zIndex:10},children:u.jsxs(DA,{bg:"white",borderRadius:"2xl",border:"2px solid",borderColor:n?"purple.300":"gray.200",shadow:n?"2xl":"lg",overflow:"hidden",position:"relative",height:"320px",transition:"all 0.2s ease",background:n?"linear-gradient(135deg, #8b9cf7 0%, #a78bfa 100%)":"white",color:n?"white":"inherit",children:[u.jsxs(ne,{position:"absolute",top:4,right:4,gap:2,zIndex:20,opacity:n?1:0,transition:"opacity 0.3s ease",children:[u.jsxs(Ah,{children:[u.jsx(ds,{label:"Download",children:u.jsx(eh,{as:Vn,"aria-label":"Download",icon:u.jsx(Ld,{size:14}),size:"sm",variant:"solid",colorScheme:"whiteAlpha",bg:"whiteAlpha.300",color:"white",_hover:{bg:"whiteAlpha.400"}})}),u.jsxs(th,{bg:"white",border:"1px solid",borderColor:"gray.300",shadow:"xl",zIndex:1e3,minW:"160px",children:[u.jsx(pi,{icon:u.jsx(Id,{size:14}),onClick:v=>{v.stopPropagation(),C("pdf")},color:"gray.700",_hover:{bg:"gray.100",color:"gray.900"},_focus:{bg:"gray.100",color:"gray.900"},children:"Download as PDF"}),u.jsx(pi,{icon:u.jsx(_d,{size:14}),onClick:v=>{v.stopPropagation(),C("image")},color:"gray.700",_hover:{bg:"gray.100",color:"gray.900"},_focus:{bg:"gray.100",color:"gray.900"},children:"Download as Image"})]})]}),u.jsx(ds,{label:"Edit Record",children:u.jsx(Vn,{"aria-label":"Edit Record",size:"sm",variant:"ghost",colorScheme:"whiteAlpha",color:"white",icon:u.jsx(w1,{size:14}),onClick:v=>{v.stopPropagation(),t(e)},_hover:{bg:"whiteAlpha.200"}})}),e.is_transcript_verified&&u.jsx(ds,{label:"Delete Transcript",children:u.jsx(Vn,{"aria-label":"Delete Transcript",size:"sm",variant:"ghost",colorScheme:"red",color:"white",icon:u.jsx(il,{size:14}),onClick:v=>{v.stopPropagation(),A(e.semester_number)},isLoading:r,_hover:{bg:"red.500"}})})]}),u.jsx(DA,{p:6,position:"relative",zIndex:2,height:"100%",children:n?u.jsxs(me,{spacing:3,height:"100%",align:"stretch",children:[u.jsxs(me,{spacing:2,align:"stretch",children:[u.jsxs(ge,{spacing:2,align:"center",children:[u.jsxs(fe,{size:"md",color:"white",children:["Semester ",e.semester_number]}),u.jsxs(ht,{colorScheme:"purple",variant:"solid",fontSize:"xs",px:2,children:[e.gpa.toFixed(2)," SGPA"]})]}),u.jsxs(UA,{fontSize:"xs",color:"purple.100",children:[e.academic_year," • ",m()," Completed • ",e.courses.filter(v=>v.grade==="F").length," Failed"]})]}),u.jsx(me,{spacing:1,flex:1,overflowY:"auto",width:"100%",css:{"&::-webkit-scrollbar":{width:"3px"},"&::-webkit-scrollbar-thumb":{background:"rgba(255,255,255,0.3)",borderRadius:"12px"}},children:e.courses.length>0?e.courses.map((v,U)=>u.jsx(DA,{bg:"whiteAlpha.200",p:2,borderRadius:"md",width:"100%",border:"1px solid",borderColor:"whiteAlpha.300",children:u.jsxs(ne,{justify:"space-between",align:"center",children:[u.jsxs(me,{align:"start",spacing:0,flex:1,children:[u.jsx(UA,{fontSize:"xs",fontWeight:"bold",color:"white",noOfLines:1,children:v.course?.course_name||v.course_acronym||"Unknown Course"}),u.jsx(UA,{fontSize:"10px",color:"purple.100",fontFamily:"mono",children:v.course?.course_code||v.course_acronym||"CODE"})]}),u.jsxs(me,{spacing:0,align:"end",children:[u.jsx(ge,{spacing:1,children:u.jsxs(ht,{colorScheme:p(v.grade),variant:"solid",fontSize:"xs",px:2,children:[v.grade,v.grade_point!==null&&!["S","X"].includes(v.grade)&&` (${v.grade_point})`]})}),u.jsxs(UA,{fontSize:"9px",color:"purple.100",fontWeight:"medium",children:[v.course?.credits||"N/A"," credits"]})]})]})},v.id||U)):u.jsx(Sd,{flex:1,children:u.jsxs(me,{spacing:1,children:[u.jsx(Ha,{size:20,color:"rgba(255,255,255,0.5)"}),u.jsx(UA,{fontSize:"xs",color:"whiteAlpha.700",children:"No courses"})]})})}),a&&u.jsx(Ue,{size:"xs",variant:"ghost",colorScheme:"whiteAlpha",color:"white",onClick:B,width:"100%",children:"Show Less"})]}):u.jsxs(me,{spacing:4,height:"100%",justify:"space-between",children:[u.jsxs(me,{spacing:3,width:"100%",children:[u.jsxs(ne,{justify:"space-between",align:"center",width:"100%",children:[u.jsxs(me,{align:"start",spacing:1,children:[u.jsxs(fe,{size:"2xl",color:n?"white":"purple.700",fontWeight:"900",letterSpacing:"-1px",children:["Semester ",e.semester_number]}),u.jsxs(ge,{spacing:2,children:[u.jsx(Wp,{size:"8px",bg:n?"purple.200":"purple.400"}),u.jsx(UA,{fontSize:"sm",color:n?"purple.100":"gray.600",fontWeight:"medium",children:e.academic_year})]})]}),e.is_transcript_verified&&u.jsxs(ht,{colorScheme:"green",variant:n?"solid":"subtle",fontSize:"xs",px:3,py:1,borderRadius:"full",children:[u.jsx(Hd,{size:12,style:{marginRight:"4px"}}),"Verified"]})]}),u.jsxs(Et,{columns:2,spacing:4,width:"100%",children:[u.jsxs(DA,{textAlign:"center",p:4,bg:n?"whiteAlpha.200":"purple.50",borderRadius:"xl",border:"1px solid",borderColor:n?"whiteAlpha.300":"purple.100",children:[u.jsx(UA,{fontSize:"3xl",fontWeight:"bold",color:n?"white":"purple.600",children:e.gpa.toFixed(2)}),u.jsx(UA,{fontSize:"sm",color:n?"purple.100":"purple.500",fontWeight:"medium",children:"SGPA"})]}),u.jsxs(DA,{textAlign:"center",p:4,bg:n?"whiteAlpha.200":"blue.50",borderRadius:"xl",border:"1px solid",borderColor:n?"whiteAlpha.300":"blue.100",children:[u.jsx(UA,{fontSize:"3xl",fontWeight:"bold",color:n?"white":"blue.600",children:e.completed_credits}),u.jsx(UA,{fontSize:"sm",color:n?"blue.100":"blue.500",fontWeight:"medium",children:"Credits"})]})]})]}),u.jsxs(me,{spacing:3,width:"100%",children:[u.jsxs(ge,{justify:"space-between",width:"100%",children:[u.jsxs(ge,{spacing:2,children:[u.jsx(Ha,{size:16,color:n?"white":"gray"}),u.jsxs(UA,{fontSize:"sm",color:n?"white":"gray.600",fontWeight:"medium",children:[m()," Completed"]})]}),u.jsxs(ge,{spacing:2,children:[u.jsx(m1,{size:16,color:n?"white":"gray"}),u.jsxs(UA,{fontSize:"sm",color:n?"white":"gray.600",fontWeight:"medium",children:[g()," Current"]})]})]}),e.backlogs>0&&u.jsxs(ht,{colorScheme:"red",fontSize:"sm",px:3,py:1,borderRadius:"full",children:[u.jsx(v1,{size:12,style:{marginRight:"4px"}}),e.backlogs," Backlog",e.backlogs>1?"s":""]}),u.jsx(UA,{fontSize:"xs",color:n?"purple.200":"gray.400",textAlign:"center",fontStyle:"italic",children:a?"Tap to view courses":"Hover to view courses"})]})]})})]})})},yd=Tr(DA),sv=Tr(ne),av=({message:e,onOptionSelect:A})=>{if(!e)return null;const{sender:t,text:r,timestamp:n,options:i}=e,a=t==="assistant",o=$r` 0% { box-shadow: 0 0 0 0 rgba(159, 122, 234, 0.4) } 70% { box-shadow: 0 0 0 10px rgba(159, 122, 234, 0) } 100% { box-shadow: 0 0 0 0 rgba(159, 122, 234, 0) } `,c=HA("gray.100","gray.700"),d=HA("purple.50","purple.900"),B=HA("gray.800","white"),p=HA("gray.800","white"),m=HA("purple.100","purple.900"),g=HA("blue.100","blue.900"),C=HA("gray.500","gray.400"),v=HA("purple.600","purple.300"),U=HA("blue.600","blue.300"),F=HA("linear-gradient(135deg, purple.50, blue.50)","linear-gradient(135deg, purple.900, blue.900)"),x=HA("md","dark-lg"),N=HA("purple.500","purple.200"),V=HA("blue.500","blue.200"),q=HA("gray.200","gray.600"),Y=L=>{if(!L)return"";try{return Yh(L,"h:mm a")}catch(D){return console.error("Error formatting date:",D),""}},W=L=>{if(!L)return"";try{let D=L;const O={":)":"😊",":D":"😃",":(":"😔",":|":"😐",";)":"😉","<3":"❤️",":+1:":"👍",":thumbsup:":"👍",":star:":"⭐",":bulb:":"💡",":book:":"📚",":computer:":"💻",":rocket:":"🚀",":sparkles:":"✨",":fire:":"🔥",":heart:":"❤️",":check:":"✅",":x:":"❌",":thinking:":"🤔",":tada:":"🎉",":clap:":"👏",":wave:":"👋",":eyes:":"👀",":question:":"❓",":warning:":"⚠️",":time:":"⏰",":idea:":"💡",":trophy:":"🏆",":brain:":"🧠",":target:":"🎯",":graduation:":"🎓",":zap:":"⚡",":key:":"🔑",":point:":"👉",":calendar:":"📅",":light:":"💡"};Object.keys(O).forEach(oA=>{D=D.replace(new RegExp(oA.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"g"),O[oA])}),D=D.replace(/\*\*(.*?)\*\*/g,"<strong>$1</strong>");const nA=[{term:/\b(important|critical|essential|key|vital)\b/gi,color:"red.500"},{term:/\b(good|great|excellent|amazing|awesome)\b/gi,color:"green.500"},{term:/\b(recommend|suggestion|advise|propose)\b/gi,color:"blue.500"},{term:/\b(course|courses|learning|education|study|studies)\b/gi,color:"purple.500"},{term:/\b(goal|goals|objective|objectives|target|targets)\b/gi,color:"orange.500"}];return D.split(` `).map((oA,tA)=>(nA.forEach(({term:cA,color:z})=>{oA=oA.replace(cA,BA=>`<span style="color: var(--chakra-colors-${z}); font-weight: 600;">${BA}</span>`)}),u.jsxs(_l.Fragment,{children:[u.jsx("span",{dangerouslySetInnerHTML:{__html:oA}}),tA<D.split(` `).length-1&&u.jsx("br",{})]},`line-${tA}`)))}catch(D){return console.error("Error formatting content:",D),L}},R=a&&e.id.includes("welcome"),k=a&&(e.id.includes("success")||r.includes("have been saved"));a&&e.id.includes("q-");const $=a&&i&&i.length>0,_=L=>{A&&A(L)};return u.jsxs(sv,{direction:a?"row":"row-reverse",align:"flex-start",mb:4,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[u.jsx(yd,{initial:{scale:.8},animate:{scale:1},transition:{duration:.2},children:u.jsx(dl,{size:"sm",bg:a?m:g,icon:a?u.jsx(b1,{size:16,color:N}):u.jsx(vs,{size:16,color:V}),mr:a?2:0,ml:a?0:2,sx:R||k?{animation:`${o} 2s infinite`}:{}})}),u.jsxs(ne,{direction:"column",maxW:{base:"75%",md:"70%"},align:a?"flex-start":"flex-end",children:[u.jsxs(ge,{spacing:2,mb:1,ml:a?1:0,mr:a?0:1,children:[u.jsx(UA,{fontSize:"xs",fontWeight:"medium",color:a?v:U,children:a?"AI Assistant 🤖":"You 👤"}),u.jsx(ds,{label:n instanceof Date?Yh(n,"MMM d, yyyy h:mm a"):"",children:u.jsx(DA,{display:"inline-block",children:u.jsxs(ne,{align:"center",children:[u.jsx(xe,{as:pl,boxSize:3,color:C,mr:1}),u.jsx(UA,{fontSize:"xs",color:C,children:Y(n instanceof Date?n:new Date(n))})]})})})]}),u.jsx(yd,{whileHover:{scale:1.02},transition:{duration:.2},width:"100%",children:u.jsxs(DA,{bg:a?c:d,bgGradient:a?void 0:F,color:a?B:p,px:4,py:3,borderRadius:"lg",borderTopLeftRadius:a?0:void 0,borderTopRightRadius:a?void 0:0,boxShadow:x,position:"relative",_after:a?{content:'""',position:"absolute",top:0,left:"-8px",borderWidth:"8px",borderStyle:"solid",borderColor:`transparent ${c} transparent transparent`}:void 0,_before:a?void 0:{content:'""',position:"absolute",top:0,right:"-8px",borderWidth:"8px",borderStyle:"solid",borderColor:`transparent transparent transparent ${d}`},backdropFilter:"blur(8px)",border:a?"1px solid":void 0,borderColor:a?q:void 0,className:k?"success-message":"",children:[u.jsx(DA,{fontSize:"sm",lineHeight:"tall",children:W(r)}),$&&u.jsxs(me,{mt:5,spacing:4,align:"stretch",children:[u.jsx(UA,{fontWeight:"bold",mb:2,fontSize:"md",color:v,children:"Please select an option:"}),i.map((L,D)=>u.jsx(Ue,{size:"lg",height:"60px",colorScheme:D===0?"blue":"purple",variant:D===0?"solid":"outline",leftIcon:D===0?u.jsx(Nd,{size:20}):u.jsx(Na,{size:20}),onClick:()=>_(L.value),borderRadius:"md",boxShadow:"md",_hover:{transform:"translateY(-3px)",boxShadow:"lg",bg:D===0?"blue.500":"rgba(128, 90, 213, 0.1)"},transition:"all 0.3s ease",position:"relative",overflow:"hidden",_after:{content:'""',position:"absolute",top:0,left:0,width:"100%",height:"100%",background:D===0?"linear-gradient(135deg, rgba(66, 153, 225, 0.4) 0%, rgba(66, 153, 225, 0) 50%)":"linear-gradient(135deg, rgba(128, 90, 213, 0.2) 0%, rgba(128, 90, 213, 0) 50%)",zIndex:0},children:u.jsx(UA,{zIndex:1,fontWeight:"bold",children:L.label})},`option-${D}`))]})]})})]})]})},ov=Tr(DA),lv=Tr(Ue);Tr(ne);$r` 0% { background-position: -80vw 0; } 100% { background-position: 80vw 0; } `;$r` 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.05); opacity: 0.8; } 100% { transform: scale(1); opacity: 1; } `;$r` 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } `;const cv=$r` 0% { transform: translateY(0) rotate(0deg); opacity: 1; } 100% { transform: translateY(-100px) rotate(720deg); opacity: 0; } `,uv=({visible:e})=>{const A=["#FFC107","#2196F3","#E91E63","#8BC34A","#9C27B0"];return e?u.jsx(DA,{position:"absolute",top:"0",left:"0",right:"0",height:"0",overflow:"visible",pointerEvents:"none",children:Array.from({length:50}).map((t,r)=>{const n=Math.random()*8+4,i=A[Math.floor(Math.random()*A.length)],a=`${Math.random()*100}%`,o=`${Math.random()*2+1}s`,c=`${Math.random()*.5}s`;return u.jsx(DA,{position:"absolute",top:"0",left:a,width:`${n}px`,height:`${n}px`,bg:i,borderRadius:"full",sx:{animation:`${cv} ${o} ${c} forwards ease-out`}},`confetti-${r}-${Math.random().toString(36).substr(2,9)}`)})}):null},hv=({question:e="Select an option",options:A=[],selectedOptions:t=[],isMultiSelect:r=!1,multiSelect:n,onSelect:i=()=>{},onContinue:a=()=>{},subtitle:o,isDisabled:c=!1})=>{const[d,B]=xA.useState(!1),[p,m]=xA.useState(t),g=HA("white","gray.800"),C=HA("gray.200","gray.600"),v=HA("blue.50","blue.900"),U=HA("gray.50","gray.700"),F=HA("blue.500","blue.300"),x=HA("gray.800","white"),N=HA("gray.600","gray.400");HA("gray.100","gray.700");const V=HA("gray.400","gray.500"),q=xA.useRef(!0);xA.useEffect(()=>{if(q.current){q.current=!1,m(t);return}m(t)},[t]);const Y=r||n||!1,W=$=>{if(c)return;let _;Y?p.includes($)?_=p.filter(L=>L!==$):_=[...p,$]:(_=[$],B(!0),setTimeout(()=>B(!1),2e3)),m(_)},R=A.map(($,_)=>typeof $=="string"?{id:`option-${_}-${$.replace(/\s+/g,"-").toLowerCase()}`,label:$,value:$}:$.id?$:{...$,id:`option-${_}-${$.value.replace(/\s+/g,"-").toLowerCase()}`}),k=()=>{c||p.length===0||i(p)};return u.jsxs(DA,{position:"relative",borderRadius:"xl",opacity:c?.7:1,transition:"opacity 0.3s ease",width:"100%",display:"flex",flexDirection:"column",maxHeight:"60vh",children:[u.jsx(uv,{visible:d}),u.jsxs(DA,{px:4,pt:4,bg:HA("white","gray.800"),borderTopRadius:"xl",backgroundImage:"radial-gradient(circle at 50% 0%, rgba(150, 100, 255, 0.1) 0%, rgba(100, 100, 255, 0.05) 25%, rgba(255, 255, 255, 0) 50%)",children:[u.jsxs(fe,{as:"h3",size:"md",mb:2,bgGradient:"linear(to-r, blue.400, purple.500)",bgClip:"text",fontWeight:"bold",children:[e," ✨"]}),o&&u.jsx(UA,{color:N,mb:2,children:o}),u.jsx(Tt,{my:2})]}),u.jsx(DA,{flex:"1",overflowY:"auto",px:4,py:2,css:{"&::-webkit-scrollbar":{width:"6px"},"&::-webkit-scrollbar-track":{width:"8px",background:HA("rgba(0,0,0,0.05)","rgba(255,255,255,0.05)"),borderRadius:"24px"},"&::-webkit-scrollbar-thumb":{background:HA("rgba(0,0,0,0.2)","rgba(255,255,255,0.2)"),borderRadius:"24px"}},children:u.jsx(Et,{columns:{base:1,md:2},spacing:4,mb:2,children:R.map($=>u.jsx(ov,{whileHover:c?{}:{scale:1.02},whileTap:c?{}:{scale:.98},onClick:()=>W($.value),bg:p.includes($.value)?v:g,borderWidth:"1px",borderColor:p.includes($.value)?F:C,borderRadius:"lg",p:4,cursor:c?"not-allowed":"pointer",_hover:c?{}:{bg:p.includes($.value)?v:U},position:"relative",overflow:"hidden",boxShadow:p.includes($.value)?"md":"sm",transition:"all 0.2s ease",role:Y?"checkbox":"radio","aria-checked":p.includes($.value),children:u.jsxs(ge,{spacing:3,align:"center",children:[Y?u.jsx(DA,{borderWidth:"2px",borderColor:p.includes($.value)?F:C,borderRadius:"md",p:1,color:p.includes($.value)?F:"gray.500",flexShrink:0,width:"20px",height:"20px",display:"flex",alignItems:"center",justifyContent:"center",children:p.includes($.value)?u.jsx(xe,{as:y1,boxSize:4}):u.jsx(xe,{as:F1,boxSize:4})}):u.jsx(DA,{borderWidth:"2px",borderRadius:"full",borderColor:p.includes($.value)?F:C,width:"20px",height:"20px",position:"relative",flexShrink:0,children:p.includes($.value)&&u.jsx(DA,{position:"absolute",top:"3px",left:"3px",width:"10px",height:"10px",borderRadius:"full",bg:F})}),u.jsx(UA,{fontWeight:p.includes($.value)?"bold":"normal",color:c?V:x,fontSize:"md",children:$.label})]})},$.id))})}),u.jsx(DA,{p:4,borderTop:"1px solid",borderColor:C,bg:HA("white","gray.800"),borderBottomRadius:"xl",position:"sticky",bottom:0,width:"100%",zIndex:5,boxShadow:"0 -2px 10px rgba(0, 0, 0, 0.05)",backgroundImage:"radial-gradient(circle at 50% 100%, rgba(150, 100, 255, 0.1) 0%, rgba(100, 100, 255, 0.05) 25%, rgba(255, 255, 255, 0) 50%)",children:u.jsxs(ne,{justify:"space-between",align:"center",children:[u.jsx(ht,{colorScheme:"purple",fontSize:"sm",p:2,borderRadius:"md",children:Y?`Selected ${p.length} option${p.length!==1?"s":""}`:p.length>0?"Selected 1 option":"Select an option"}),u.jsx(lv,{colorScheme:"purple",size:"md",rightIcon:u.jsx(wu,{}),onClick:k,isDisabled:c||p.length===0,whileHover:{scale:1.05},whileTap:{scale:.95},px:6,fontWeight:"bold",borderRadius:"full",boxShadow:"md",_hover:{transform:"translateY(-2px)",boxShadow:"lg"},children:"Continue"})]})})]})},op=({recommendations:e=[],preferences:A={interests:[],goals:[],completion:0},onRestartChat:t,loading:r})=>{const[n,i]=xA.useState(r!==void 0?r:!0),[a,o]=xA.useState(null),{restartChat:c,setTabIndex:d}=ah();HA("white","gray.800");const B=HA("white","gray.700"),p=HA("gray.200","gray.600"),m=HA("blue.500","blue.300"),g=HA("blue.50","blue.900"),C=HA("white","gray.700");HA("purple.50","purple.900"),HA("blue.50","blue.800");const v=HA("rgba(66, 153, 225, 0.15)","rgba(66, 153, 225, 0.25)"),U=_l.useMemo(()=>{const x={interests:[],goals:[],skills:{technical:[],soft:[]},certifications:[],courseDifficulty:"",learningStyle:"",timeCommitment:"",workEnvironment:"",preparationType:"",timeline:"",completion:100};return!A||Object.keys(A).length===0?x:{interests:[A.primary_interest,A.secondary_interest].filter(Boolean),goals:[A.career_goal,A.future_goal,...Array.isArray(A.improvement_areas)?A.improvement_areas:[]].filter(Boolean),skills:{technical:Array.isArray(A.technical_skills)?A.technical_skills:[],soft:Array.isArray(A.soft_skills)?A.soft_skills:[]},certifications:Array.isArray(A.certifications)?A.certifications:[],courseDifficulty:A.experience_level||"",learningStyle:A.course_style||"",timeCommitment:A.time_commitment||"",workEnvironment:A.work_environment||"",preparationType:A.preparation_type||"",timeline:A.preparation_timeline||"",completion:100}},[A]);xA.useEffect(()=>{if(r!==void 0)i(r);else{const x=setTimeout(()=>{i(!1)},1e3);return()=>clearTimeout(x)}},[r]);const F=()=>{t?t():(c(),d(1))};return n?u.jsx(Sd,{py:10,children:u.jsxs(me,{spacing:4,children:[u.jsx($u,{thickness:"4px",speed:"0.65s",emptyColor:"gray.200",color:"blue.500",size:"xl"}),u.jsx(UA,{children:"Loading your personalized recommendations..."})]})}):e.length===0?u.jsxs(DA,{children:[u.jsxs(ne,{direction:{base:"column",md:"row"},justify:"space-between",align:"center",mb:6,bg:g,p:5,borderRadius:"xl",boxShadow:"sm",backgroundImage:`radial-gradient(circle at 80% 20%, ${v}, transparent 40%)`,children:[u.jsxs(me,{align:"start",spacing:2,mb:{base:4,md:0},children:[u.jsx(ht,{colorScheme:"green",variant:"solid",px:2,py:1,children:"PREFERENCES SAVED ✓"}),u.jsx(fe,{size:"lg",children:"Your Profile Information"}),u.jsx(UA,{children:"We've saved your preferences for future recommendations 🎯"})]}),u.jsx(DA,{children:u.jsx(Ue,{colorScheme:"blue",variant:"outline",leftIcon:u.jsx(xe,{as:Na}),onClick:F,size:"sm",children:"Update Preferences"})})]}),u.jsxs(Et,{columns:{base:1,md:3},spacing:4,mb:8,children:[u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:Zh,color:m}),u.jsx(fe,{size:"sm",children:"Your Interests"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.interests.map((x,N)=>u.jsx(tt,{colorScheme:"blue",size:"md",variant:"subtle",boxShadow:"sm",children:x},`interest-${N}`)),U.interests.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No interests specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:Nc,color:m}),u.jsx(fe,{size:"sm",children:"Career Goals"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.goals.map((x,N)=>u.jsx(tt,{colorScheme:"purple",size:"md",variant:"subtle",boxShadow:"sm",children:x},`goal-${N}`)),U.goals.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No goals specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:pl,color:m}),u.jsx(fe,{size:"sm",children:"Learning Details"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.courseDifficulty&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.courseDifficulty}),U.learningStyle&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.learningStyle}),U.timeCommitment&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.timeCommitment}),U.timeline&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.timeline}),!U.courseDifficulty&&!U.learningStyle&&!U.timeCommitment&&!U.timeline&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No learning details specified"})]})]})})]}),u.jsxs(Et,{columns:{base:1,md:2},spacing:4,mb:8,children:[u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:jc,color:m}),u.jsx(fe,{size:"sm",children:"Technical Skills"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.skills.technical.map((x,N)=>u.jsx(tt,{colorScheme:"green",size:"md",variant:"subtle",boxShadow:"sm",children:x},`tech-${N}`)),U.skills.technical.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No technical skills specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:vs,color:m}),u.jsx(fe,{size:"sm",children:"Soft Skills"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.skills.soft.map((x,N)=>u.jsx(tt,{colorScheme:"orange",size:"md",variant:"subtle",boxShadow:"sm",children:x},`soft-${N}`)),U.skills.soft.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No soft skills specified"})]})]})})]}),u.jsxs(Et,{columns:{base:1,md:2},spacing:4,mb:8,children:[u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:us,color:m}),u.jsx(fe,{size:"sm",children:"Certifications"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.certifications.map((x,N)=>u.jsx(tt,{colorScheme:"teal",size:"md",variant:"subtle",boxShadow:"sm",children:x},`cert-${N}`)),U.certifications.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No certifications specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:Nc,color:m}),u.jsx(fe,{size:"sm",children:"Work Details"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.workEnvironment&&u.jsx(tt,{colorScheme:"purple",size:"md",variant:"subtle",boxShadow:"sm",children:U.workEnvironment}),U.preparationType&&u.jsx(tt,{colorScheme:"purple",size:"md",variant:"subtle",boxShadow:"sm",children:U.preparationType}),!U.workEnvironment&&!U.preparationType&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No work details specified"})]})]})})]}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",mb:6,children:u.jsx(qe,{children:u.jsxs(me,{spacing:4,align:"center",py:4,children:[u.jsx(xe,{as:Bl,boxSize:10,color:"blue.400"}),u.jsx(fe,{size:"md",textAlign:"center",children:"Course Recommendations Coming Soon"}),u.jsx(UA,{textAlign:"center",children:"We're working on personalizing course recommendations based on your profile. Check back soon to see what courses we recommend for your career goals and interests."}),u.jsx(Ue,{colorScheme:"blue",rightIcon:u.jsx(xe,{as:wu}),onClick:()=>d(0),mt:2,children:"Browse Courses"})]})})})]}):u.jsxs(DA,{children:[u.jsxs(ne,{direction:{base:"column",md:"row"},justify:"space-between",align:"center",mb:6,bg:g,p:5,borderRadius:"xl",boxShadow:"sm",backgroundImage:`radial-gradient(circle at 80% 20%, ${v}, transparent 40%)`,children:[u.jsxs(me,{align:"start",spacing:2,mb:{base:4,md:0},children:[u.jsx(ht,{colorScheme:"green",variant:"solid",px:2,py:1,children:"AI Analysis Complete ✅"}),u.jsx(fe,{size:"lg",children:"Your Course Recommendations"}),u.jsx(UA,{children:"Based on your profile and academic goals 🎯"})]}),u.jsx(DA,{children:u.jsx(Ue,{colorScheme:"blue",variant:"outline",leftIcon:u.jsx(xe,{as:Na}),onClick:F,size:"sm",children:"Update Preferences"})})]}),u.jsxs(Et,{columns:{base:1,md:3},spacing:4,mb:8,children:[u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:Zh,color:m}),u.jsx(fe,{size:"sm",children:"Your Interests"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.interests.map((x,N)=>u.jsx(tt,{colorScheme:"blue",size:"md",variant:"subtle",boxShadow:"sm",children:x},`interest-${N}`)),U.interests.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No interests specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:Nc,color:m}),u.jsx(fe,{size:"sm",children:"Career Goals"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.goals.map((x,N)=>u.jsx(tt,{colorScheme:"purple",size:"md",variant:"subtle",boxShadow:"sm",children:x},`goal-${N}`)),U.goals.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No goals specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:pl,color:m}),u.jsx(fe,{size:"sm",children:"Learning Details"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.courseDifficulty&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.courseDifficulty}),U.learningStyle&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.learningStyle}),U.timeCommitment&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.timeCommitment}),U.timeline&&u.jsx(tt,{colorScheme:"cyan",size:"md",variant:"subtle",boxShadow:"sm",children:U.timeline}),!U.courseDifficulty&&!U.learningStyle&&!U.timeCommitment&&!U.timeline&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No learning details specified"})]})]})})]}),u.jsxs(Et,{columns:{base:1,md:2},spacing:4,mb:8,children:[u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:jc,color:m}),u.jsx(fe,{size:"sm",children:"Technical Skills"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.skills.technical.map((x,N)=>u.jsx(tt,{colorScheme:"green",size:"md",variant:"subtle",boxShadow:"sm",children:x},`tech-${N}`)),U.skills.technical.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No technical skills specified"})]})]})}),u.jsx(Re,{bg:B,borderRadius:"lg",boxShadow:"md",_hover:{transform:"translateY(-4px)",boxShadow:"lg",transition:"all 0.3s ease"},children:u.jsxs(qe,{children:[u.jsxs(ge,{mb:2,children:[u.jsx(xe,{as:vs,color:m}),u.jsx(fe,{size:"sm",children:"Soft Skills"})]}),u.jsx(Tt,{mb:3}),u.jsxs(ne,{wrap:"wrap",gap:2,children:[U.skills.soft.map((x,N)=>u.jsx(tt,{colorScheme:"orange",size:"md",variant:"subtle",boxShadow:"sm",children:x},`soft-${N}`)),U.skills.soft.length===0&&u.jsx(UA,{fontSize:"sm",color:"gray.500",children:"No soft skills specified"})]})]})})]}),u.jsx(fe,{size:"md",mb:4,children:"Recommended Courses"}),u.jsx(Et,{columns:{base:1,lg:1},spacing:6,mb:8,children:e.map(x=>u.jsx(Re,{bg:C,borderRadius:"lg",borderWidth:"1px",borderColor:p,boxShadow:"md",overflow:"hidden",transition:"all 0.3s ease",_hover:{transform:"translateY(-4px)",boxShadow:"lg"},children:u.jsxs(qe,{children:[u.jsxs(ne,{justify:"space-between",mb:3,children:[u.jsxs(me,{align:"start",spacing:1,children:[u.jsx(ht,{colorScheme:"blue",children:x.code}),u.jsx(fe,{size:"md",children:x.title}),u.jsx(UA,{fontSize:"sm",color:"gray.500",children:x.department})]}),u.jsxs(ht,{colorScheme:(x.matchScore??0)>=90?"green":"blue",fontSize:"sm",px:2,height:"fit-content",children:[x.matchScore??0,"% Match"]})]}),u.jsx(UA,{noOfLines:2,mb:3,children:x.description}),u.jsxs(Et,{columns:{base:1,md:3},spacing:3,mb:3,children:[u.jsxs(ge,{children:[u.jsx(xe,{as:Ha,size:14,color:m}),u.jsxs(UA,{fontSize:"sm",children:[x.credits," Credits"]})]}),u.jsxs(ge,{children:[u.jsx(xe,{as:jc,size:14,color:m}),u.jsx(UA,{fontSize:"sm",children:x.skills?.[0]??"N/A"})]}),u.jsxs(ge,{children:[u.jsx(xe,{as:gl,size:14,color:m}),u.jsx(UA,{fontSize:"sm",children:"Fall 2023"})]})]}),u.jsxs(DA,{mb:3,children:[u.jsx(UA,{fontWeight:"bold",fontSize:"sm",mb:1,children:"Why we recommend this:"}),u.jsx(Zp,{spacing:1,children:x.reasons?.map((N,V)=>u.jsxs(aa,{fontSize:"sm",children:[u.jsx(oa,{as:us,color:"green.500"}),N]},`reason-${V}`))??"No specific reasons provided"})]}),u.jsx(ne,{justify:"flex-end",children:u.jsx(Ue,{rightIcon:u.jsx(wu,{}),colorScheme:"blue",size:"sm",variant:"outline",children:"View Details"})})]})},`course-${x.id}`))}),u.jsx(Ue,{mt:8,leftIcon:u.jsx(Bl,{}),colorScheme:"blue",onClick:F,size:"lg",width:"full",children:"Start a New Chat"})]})};function Fd(e){return{user_id:e,career_goal:void 0,preparation_type:void 0,certifications:[],technical_skills:[],improvement_areas:[],course_format:void 0,time_commitment:void 0,course_style:void 0,primary_interest:void 0,secondary_interest:void 0,experience_level:void 0,work_environment:void 0,future_goal:void 0,preparation_timeline:void 0,soft_skills:[]}}async function fv(e){if(!e)return console.log("No user ID provided to getUserPreferences"),Fd("");try{const{data:A,error:t}=await ye.from("user_course_preferences").select("*").eq("user_id",e).single();if(t){if(t.code==="PGRST116")return console.log("No preferences found for user, returning empty preferences"),Fd(e);throw console.error("Error fetching user preferences:",t),t}return{...A,certifications:A.certifications||[],technical_skills:A.technical_skills||[],improvement_areas:A.improvement_areas||[],soft_skills:A.soft_skills||[]}}catch(A){throw console.error("Error in getUserPreferences:",A),A}}async function dv(e,A){if(!e)return console.error("No user ID provided to saveUserPreferences"),!1;try{if(!ye)return console.error("Supabase client not initialized"),!1;console.log("Original preferences being saved:",A);const t={user_id:e,career_goal:A.career_goal||null,preparation_type:A.preparation_type||null,certifications:Array.isArray(A.certifications)?A.certifications.filter(a=>typeof a=="string"):A.certifications?[A.certifications]:[],technical_skills:Array.isArray(A.technical_skills)?A.technical_skills.filter(a=>typeof a=="string"):A.technical_skills?[A.technical_skills]:[],improvement_areas:Array.isArray(A.improvement_areas)?A.improvement_areas.filter(a=>typeof a=="string"):A.improvement_areas?[A.improvement_areas]:[],course_format:A.course_format||null,time_commitment:A.time_commitment||null,course_style:A.course_style||null,primary_interest:A.primary_interest||null,secondary_interest:A.secondary_interest||null,experience_level:A.experience_level||null,work_environment:A.work_environment||null,future_goal:A.future_goal||null,preparation_timeline:A.preparation_timeline||null,soft_skills:Array.isArray(A.soft_skills)?A.soft_skills.filter(a=>typeof a=="string"):A.soft_skills?[A.soft_skills]:[]};console.log("Cleaned preferences to save to Supabase:",t);const{data:r,error:n}=await ye.from("user_course_preferences").select("user_id").eq("user_id",e);if(n)return console.error("Error checking existing preferences:",n),!1;let i=!1;if(r&&r.length>0){const{error:a}=await ye.from("user_course_preferences").update(t).eq("user_id",e);if(a)return console.error("Error updating user preferences:",a),!1;i=!0}else{const{error:a}=await ye.from("user_course_preferences").insert(t);if(a)return console.error("Error saving user preferences:",a),!1;i=!0}return i}catch(t){return console.error("Error saving user preferences:",t),!1}}function gv(){return[{key:"career_goal",question:"What is your primary career goal?",options:["Web Developer","Data Scientist","Mobile App Developer","Cloud Engineer","DevOps Engineer","Machine Learning Engineer","Cybersecurity Specialist","Game Developer","UI/UX Designer","Full Stack Developer","Blockchain Developer","Software Architect"]},{key:"preparation_type",question:"What are you preparing for?",options:["New Career","Career Advancement","Specific Project","Skill Enhancement","Academic Requirement","Personal Interest","Certification Exam"]},{key:"certifications",question:"Are you interested in any specific certifications? (Select all that apply)",options:["AWS Certified Solutions Architect","Microsoft Azure Certifications","Google Cloud Certifications","CompTIA Certifications","Cisco Certifications","Project Management (PMP/PRINCE2)","Scrum/Agile Certifications","Cybersecurity Certifications","Data Science Certifications","None/Not Interested"],multiSelect:!0},{key:"technical_skills",question:"What technical skills do you already have? (Select all that apply)",options:["JavaScript","Python","Java","C#","C++","PHP","Ruby","Swift","TypeScript","SQL","NoSQL","HTML/CSS","React","Angular","Vue","Node.js","Django","Flask","Spring Boot",".NET","Docker","Kubernetes","AWS","Azure","Google Cloud","Machine Learning","Data Analysis","API Design","Testing","DevOps"],multiSelect:!0},{key:"improvement_areas",question:"Which areas would you like to improve? (Select all that apply)",options:["Frontend Development","Backend Development","Full Stack Development","Mobile Development","Cloud Computing","DevOps","Database Management","API Development","Machine Learning","Data Analysis","Cybersecurity","UI/UX Design","Game Development","Blockchain Development","Testing & QA","Project Management","Agile Methodologies","System Architecture","Performance Optimization","Microservices"],multiSelect:!0},{key:"course_format",question:"What learning format do you prefer?",options:["Video Courses","Interactive Coding","Reading Materials","Project-based","Instructor-led","Self-paced","Mixed Formats"]},{key:"time_commitment",question:"How much time can you commit weekly?",options:["1-3 hours","4-6 hours","7-10 hours","10+ hours","Flexible"]},{key:"course_style",question:"What learning style do you prefer?",options:["Beginner-friendly (step-by-step)","Comprehensive (deep dives)","Project-based (building real applications)","Problem-solving (challenges)","Quick & Practical (just the essentials)","Academic & Theoretical"]},{key:"primary_interest",question:"What is your primary area of interest?",options:["Web Development","Mobile Development","Data Science & Analytics","Machine Learning & AI","Game Development","Cybersecurity","Cloud Computing","DevOps & Infrastructure","UI/UX Design","Blockchain & Cryptocurrency","Internet of Things (IoT)","Augmented/Virtual Reality","Software Architecture","Database Administration"]},{key:"secondary_interest",question:"Any secondary areas of interest?",options:["Web Development","Mobile Development","Data Science & Analytics","Machine Learning & AI","Game Development","Cybersecurity","Cloud Computing","DevOps & Infrastructure","UI/UX Design","Blockchain & Cryptocurrency","Internet of Things (IoT)","Augmented/Virtual Reality","Software Architecture","Database Administration","None"]},{key:"experience_level",question:"What is your current experience level?",options:["Beginner (< 1 year)","Intermediate (1-3 years)","Advanced (3-5 years)","Expert (5+ years)"]},{key:"work_environment",question:"What work environment do you prefer or are currently in?",options:["Startup","Small/Medium Business","Large Tech Company","Enterprise/Corporate","Freelance/Independent","Agency","Remote Work","Academia/Research","Government","Non-profit"]},{key:"future_goal",question:"Where do you see yourself in 5 years?",options:["Senior Developer","Team Lead","Technical Architect","Project Manager","CTO/Technical Director","Entrepreneur/Founder","Specialized Expert","Consultant","Educator/Trainer","Researcher","Not Sure Yet"]},{key:"preparation_timeline",question:"When do you want to achieve your goal?",options:["As soon as possible (< 3 months)","Short-term (3-6 months)","Medium-term (6-12 months)","Long-term (1-2 years)","Extended timeline (2+ years)"]},{key:"soft_skills",question:"Which soft skills would you like to develop? (Select all that apply)",options:["Communication","Problem Solving","Teamwork","Time Management","Leadership","Critical Thinking","Adaptability","Creativity","Presentation Skills","Conflict Resolution"],multiSelect:!0}]}const sa=Tr(DA),pv=Tr(ne),Bv=({onComplete:e,initialPreferences:A,onBack:t,onViewPreferences:r})=>{const{user:n}=Ci(),{isRestarting:i,setTabIndex:a}=ah(),o=xA.useRef(!1),{colorMode:c}=$p(),[d,B]=xA.useState([]),[p,m]=xA.useState(""),[g,C]=xA.useState(0),[v,U]=xA.useState(!1),[F,x]=xA.useState(!1),[N,V]=xA.useState(!1),[q,Y]=xA.useState([]),[W,R]=xA.useState(!1),[k,$]=xA.useState(A||{}),[_,L]=xA.useState(new Set),[D,O]=xA.useState(0),[nA,sA]=xA.useState(null),[oA,tA]=xA.useState(!1),[cA,z]=xA.useState(!1),BA=Il(),Q=xA.useRef(null),j=xA.useRef(null),P=xA.useRef(!1),G=HA("white","gray.800"),X=HA("gray.200","gray.700"),eA=HA("gray.50","gray.700"),uA=HA("purple.500","purple.400"),aA=HA("purple.100","purple.900"),wA=HA("purple.500","purple.600");HA("white","white");const bA=HA("purple.100","purple.900");HA("blue.100","blue.900");const SA=HA("gray.500","gray.400");HA("gray.400","gray.500");const EA=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.08'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 20.83l2.83-2.83 1.41 1.41L1.41 22.24H0v-1.41zM0 3.07l2.83-2.83 1.41 1.41L1.41 4.48H0V3.07zM17.76 40l2.83-2.83 1.41 1.41L19.17 40h-1.41zM17.76 22.24l2.83-2.83 1.41 1.41L19.17 22.24h-1.41zM17.76 4.48l2.83-2.83 1.41 1.41L19.17 4.48h-1.41zM35.52 40l2.83-2.83 1.41 1.41L36.93 40h-1.41zM35.52 22.24l2.83-2.83 1.41 1.41L36.93 22.24h-1.41zM35.52 4.48l2.83-2.83 1.41 1.41L36.93 4.48h-1.41zM1.41 40l2.83-2.83 1.41 1.41L2.83 40H1.41zM1.41 22.24l2.83-2.83 1.41 1.41L2.83 22.24H1.41zM1.41 4.48l2.83-2.83 1.41 1.41L2.83 4.48H1.41zM19.17 40l2.83-2.83 1.41 1.41L20.59 40h-1.42zM19.17 22.24l2.83-2.83 1.41 1.41L20.59 22.24h-1.42zM19.17 4.48l2.83-2.83 1.41 1.41L20.59 4.48h-1.42zM36.93 40l2.83-2.83 1.41 1.41L38.34 40h-1.41zM36.93 22.24l2.83-2.83 1.41 1.41L38.34 22.24h-1.41zM36.93 4.48l2.83-2.83 1.41 1.41L38.34 4.48h-1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,XA=`url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 40 40'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.15'%3E%3Cpath d='M0 38.59l2.83-2.83 1.41 1.41L1.41 40H0v-1.41zM0 20.83l2.83-2.83 1.41 1.41L1.41 22.24H0v-1.41zM0 3.07l2.83-2.83 1.41 1.41L1.41 4.48H0V3.07zM17.76 40l2.83-2.83 1.41 1.41L19.17 40h-1.41zM17.76 22.24l2.83-2.83 1.41 1.41L19.17 22.24h-1.41zM17.76 4.48l2.83-2.83 1.41 1.41L19.17 4.48h-1.41zM35.52 40l2.83-2.83 1.41 1.41L36.93 40h-1.41zM35.52 22.24l2.83-2.83 1.41 1.41L36.93 22.24h-1.41zM35.52 4.48l2.83-2.83 1.41 1.41L36.93 4.48h-1.41zM1.41 40l2.83-2.83 1.41 1.41L2.83 40H1.41zM1.41 22.24l2.83-2.83 1.41 1.41L2.83 22.24H1.41zM1.41 4.48l2.83-2.83 1.41 1.41L2.83 4.48H1.41zM19.17 40l2.83-2.83 1.41 1.41L20.59 40h-1.42zM19.17 22.24l2.83-2.83 1.41 1.41L20.59 22.24h-1.42zM19.17 4.48l2.83-2.83 1.41 1.41L20.59 4.48h-1.42zM36.93 40l2.83-2.83 1.41 1.41L38.34 40h-1.41zM36.93 22.24l2.83-2.83 1.41 1.41L38.34 22.24h-1.41zM36.93 4.48l2.83-2.83 1.41 1.41L38.34 4.48h-1.41z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,gA=HA(.08,.15),K="radial-gradient(circle at center, rgba(159, 122, 234, 0.1) 0%, rgba(255, 255, 255, 0) 60%)",WA="radial-gradient(circle at center, rgba(159, 122, 234, 0.15) 0%, rgba(0, 0, 0, 0) 60%)",kA=HA("rgba(0,0,0,0.05)","rgba(255,255,255,0.05)"),QA=HA("rgba(0,0,0,0.2)","rgba(255,255,255,0.2)"),LA=HA("gray.100","gray.700"),TA=HA("gray.50","gray.900"),_A="purple.500",qA="purple.200",PA=gv(),se=$r` from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } `;$r` 0% { transform: scale(1); } 50% { transform: scale(1.05); } 100% { transform: scale(1); } `,$r` 0% { transform: translateY(0px); } 50% { transform: translateY(-10px); } 100% { transform: translateY(0px); } `;const he=$r` 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } `;$r` 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } `,HA("linear-gradient(135deg, purple.400, blue.400)","linear-gradient(135deg, purple.600, blue.800)"),HA("0 0 15px rgba(128, 90, 213, 0.2)","0 0 15px rgba(128, 90, 213, 0.4)"),HA("purple.50","purple.900"),HA("gray.50","gray.800"),console.log("ChatbotInterface received initialPreferences:",A),xA.useEffect(()=>(o.current&&d.length===0&&!P.current&&(console.log("Initializing chat for the first time"),pe()),()=>{console.log("ChatbotInterface initialization effect cleanup")}),[]),xA.useEffect(()=>{A&&Object.keys(A).length>0&&$(A)},[A?.user_id]),xA.useEffect(()=>{Se()},[d,oA]),xA.useEffect(()=>{g<PA.length&&PA[g]&&(R(!!PA[g].multiSelect),O(Math.min(100,Math.round(g/PA.length*100))))},[g,PA]),xA.useEffect(()=>{i&&er()},[i]),xA.useEffect(()=>{!oA&&!v&&g<PA.length?z(!0):z(!1)},[oA,v,g,PA.length]);const pe=()=>{if(!o.current){console.log("Component not mounted, skipping initialization");return}if(P.current){console.log("Chat already initialized, skipping");return}P.current=!0,console.log("Initializing chat..."),B([]),C(0),x(!1),V(!1),L(new Set),O(0),sA(null);const Ae=A||{};console.log("initializeChat using startingPreferences:",Ae),JSON.stringify(k)!==JSON.stringify(Ae)&&$(Ae),tA(!0);const re=A&&typeof A=="object"&&Object.entries(A).some(([YA,zA])=>YA==="user_id"?!1:Array.isArray(zA)?zA.length>0:zA!=null&&zA!==""&&typeof zA!="object");if(console.log("Initial preferences in initializeChat:",A),console.log("Has existing preferences in initializeChat:",re),re){let YA="";A?.career_goal&&(YA+=`• Career goal: ${A.career_goal} `),A?.technical_skills&&A.technical_skills.length>0&&(YA+=`• Technical skills: ${A.technical_skills.join(", ")} `),A?.primary_interest&&(YA+=`• Primary interest: ${A.primary_interest} `),A?.experience_level&&(YA+=`• Experience level: ${A.experience_level} `),setTimeout(()=>{GA({id:`welcome-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:`Welcome back! 👋 I see you've already completed the course preference questionnaire before. Here's a summary of your existing preferences: ${YA} Would you like to view your complete existing preferences or start a new questionnaire to update them?`,timestamp:new Date}),tA(!1),setTimeout(()=>{GA({id:`options-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"**Please select an option:**",timestamp:new Date,options:[{value:"view_preferences",label:"View my existing preferences"},{value:"new_questionnaire",label:"Start a new questionnaire"}]}),z(!0),R(!1)},1e3)},1500)}else setTimeout(()=>{GA({id:`welcome-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Hello! 👋 I'm your AI course recommendation assistant. I'll ask you a series of questions to understand your learning goals and preferences. Let's get started with the questionnaire!",timestamp:new Date}),tA(!1),setTimeout(()=>{PA.length>0&&le(0)},1e3)},1500)},Se=()=>{Q.current?.scrollIntoView({behavior:"smooth"})},GA=Ae=>{const re={...Ae,timestamp:Ae.timestamp instanceof Date?Ae.timestamp:new Date(Ae.timestamp)};B(YA=>[...YA,re])},le=Ae=>{if(Ae>=PA.length){NA();return}const re=PA[Ae];if(_.has(re.key)){console.log(`Skipping duplicate question: ${re.key}`),C(Ae+1),le(Ae+1);return}L(YA=>new Set(YA).add(re.key)),z(!1),Y([]),R(!!re.multiSelect),tA(!0),setTimeout(()=>{GA({id:`q-${Ae}-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:re.question,timestamp:new Date}),tA(!1),(!re.options||!re.options.length)&&setTimeout(()=>{j.current&&j.current.focus()},100),z(!0)},1e3)},NA=()=>{tA(!0),setTimeout(()=>{GA({id:`final-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Thanks for providing all the information! Here's a summary of your answers:",timestamp:new Date}),tA(!1),setTimeout(()=>{const Ae=PA.map(re=>{const YA=k[re.key];let zA="";return Array.isArray(YA)&&YA.length>0?zA=` • `+YA.join(` • `):YA?zA=YA:zA="Not provided",`**${re.question}** ${zA}`}).join(` `);if(GA({id:`summary-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:Ae,timestamp:new Date}),GA({id:`saving-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Saving your preferences and generating recommendations...",timestamp:new Date}),U(!0),sA(null),n){console.log("Saving user preferences:",k);const re={...k,certifications:Array.isArray(k.certifications)?k.certifications:k.certifications?[k.certifications]:[],technical_skills:Array.isArray(k.technical_skills)?k.technical_skills:k.technical_skills?[k.technical_skills]:[],improvement_areas:Array.isArray(k.improvement_areas)?k.improvement_areas:k.improvement_areas?[k.improvement_areas]:[],soft_skills:Array.isArray(k.soft_skills)?k.soft_skills:k.soft_skills?[k.soft_skills]:[]};console.log("Processed answers to save:",re),dv(n.id,re).then(YA=>{U(!1),YA?(GA({id:`success-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Your preferences have been saved! Here are your course recommendations based on your answers.",timestamp:new Date}),x(!0),V(!0),e&&e()):(sA("There was an issue saving your preferences"),GA({id:`error-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"There was an issue saving your preferences. Please try again later.",timestamp:new Date}))}).catch(YA=>{console.error("Error saving preferences:",YA),U(!1),sA("There was an error processing your request"),GA({id:`error-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"There was an error processing your request. Please try again later.",timestamp:new Date})})}else U(!1),GA({id:`no-user-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"To save your preferences and get personalized recommendations, please sign in first.",timestamp:new Date})},1e3)},1500)},ft=()=>{if(p.trim()===""||!cA)return;GA({id:`a-${g}-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"user",text:p.trim(),timestamp:new Date});const Ae=PA[g];Ae&&Ae.key?($(re=>({...re,[Ae.key]:p.trim()})),z(!1)):console.error("Cannot access question or question key is missing"),m(""),setTimeout(()=>{const re=g+1;C(re),re<PA.length?le(re):NA()},800)},ve=Ae=>{if(g>=PA.length||!cA)return;if(Ae.length===1&&(Ae[0]==="view_preferences"||Ae[0]==="new_questionnaire")){z(!1);const de=Ae[0],Ot=de==="view_preferences"?"View my existing preferences":"Start a new questionnaire";GA({id:`a-special-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"user",text:Ot,timestamp:new Date}),setTimeout(de==="view_preferences"?()=>{GA({id:`view-prefs-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Great! Redirecting you to the recommendations tab where you can see your full preferences and course recommendations.",timestamp:new Date}),setTimeout(()=>{Or()},1500)}:()=>{GA({id:`new-quest-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:"Great! I'll help you create a new profile with updated preferences. Your previous preferences will be replaced once you complete this questionnaire. Let's begin!",timestamp:new Date}),$({}),setTimeout(()=>{C(0),le(0)},1500)},1e3);return}const re=PA[g];if(!re||!re.key){console.error("Question or key is missing");return}z(!1);const YA=re.multiSelect?Ae:Ae[0];let zA="";Array.isArray(YA)?zA=YA.join(", "):zA=YA,GA({id:`a-${g}-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"user",text:zA,timestamp:new Date}),$(de=>{const Ot={...de};return re.key==="soft_skills"?(Ot[re.key]=Ae.filter(We=>We!=="None/Not Interested"),console.log(`Saving soft skills: ${Ot[re.key]}`)):re.multiSelect?Ot[re.key]=Ae.filter(We=>We!=="None"&&We!=="None/Not Interested"):Ot[re.key]=Ae[0],Ot}),setTimeout(()=>{const de=g+1;C(de),Y([]),de<PA.length?le(de):NA()},1e3)},zt=()=>{pe()},Le=Ae=>{Ae.key==="Enter"&&ft()},ke=g<PA.length&&PA[g]&&PA[g].options&&Array.isArray(PA[g].options)&&PA[g].options.length>0,er=()=>{if(!o.current){console.log("Component not mounted, skipping reset");return}console.log("Resetting chat completely"),P.current=!1,B([]),C(0),x(!1),V(!1),L(new Set),O(0),sA(null),tA(!1),$(A||{}),setTimeout(()=>{o.current&&pe()},100)},Fe=()=>u.jsxs(xa,{isOpen:BA.isOpen,onClose:BA.onClose,size:"lg",children:[u.jsx(Ua,{bg:"blackAlpha.300",backdropFilter:"blur(5px)"}),u.jsxs(Sa,{borderRadius:"xl",children:[u.jsxs(Ea,{bg:wA,color:"white",borderTopRadius:"xl",display:"flex",alignItems:"center",children:[u.jsx(xe,{as:$h,mr:2}),"AI Chat Assistant Help"]}),u.jsx(La,{color:"white"}),u.jsx(Ia,{py:6,children:u.jsxs(me,{spacing:5,align:"stretch",children:[u.jsxs(DA,{children:[u.jsx(fe,{size:"sm",mb:2,children:"How It Works"}),u.jsx(UA,{children:"Our AI assistant will ask you a series of questions to understand your learning goals, interests, and preferences. Based on your answers, we'll provide personalized course recommendations."})]}),u.jsx(Tt,{}),u.jsxs(DA,{children:[u.jsx(fe,{size:"sm",mb:2,children:"Tips for Best Results"}),u.jsxs(r1,{spacing:2,pl:4,children:[u.jsxs(aa,{children:[u.jsx(oa,{as:us,color:"green.500"}),"Answer questions as accurately as possible"]}),u.jsxs(aa,{children:[u.jsx(oa,{as:us,color:"green.500"}),"For multiple choice questions, select all that apply"]}),u.jsxs(aa,{children:[u.jsx(oa,{as:us,color:"green.500"}),"You can restart the chat at any time using the restart button"]}),u.jsxs(aa,{children:[u.jsx(oa,{as:us,color:"green.500"}),"Your preferences will be saved for future sessions"]})]})]}),u.jsx(Tt,{}),u.jsxs(DA,{children:[u.jsx(fe,{size:"sm",mb:2,children:"About Our AI"}),u.jsx(UA,{children:"Our course recommendation system uses advanced AI to analyze your preferences and match them with the most suitable learning resources. Your data is kept private and secure."})]})]})}),u.jsx(_a,{children:u.jsx(Ue,{colorScheme:"purple",onClick:BA.onClose,children:"Got it"})})]})]}),Or=()=>{console.log("Navigating to recommendations tab"),typeof r=="function"?r():a?a(2):(console.error("No method available to navigate to recommendations tab"),GA({id:`nav-error-${Date.now()}-${Math.random().toString(36).substr(2,9)}`,sender:"assistant",text:'I apologize, but I cannot redirect you to the recommendations page. Please click on the "Recommendations" tab at the top of the page to view your saved preferences.',timestamp:new Date}))},Ge=()=>u.jsxs(Ah,{children:[u.jsx(ds,{label:"Options",children:u.jsx(eh,{as:Vn,"aria-label":"Options",icon:u.jsx(S1,{size:20}),variant:"ghost"})}),u.jsxs(th,{zIndex:10,children:[u.jsx(pi,{icon:u.jsx(Na,{size:16}),onClick:er,children:"Restart Chat"}),u.jsx(pi,{icon:u.jsx(E1,{size:16}),onClick:Or,children:"View Preferences"}),u.jsx(pi,{icon:u.jsx($h,{size:16}),onClick:BA.onOpen,children:"Help"})]})]});return xA.useEffect(()=>(console.log("ChatbotInterface mounted"),o.current=!0,()=>{console.log("ChatbotInterface unmounted"),o.current=!1}),[]),u.jsxs(DA,{h:"100%",borderWidth:"1px",borderRadius:"xl",bg:G,borderColor:X,overflow:"hidden",position:"relative",display:"flex",flexDirection:"column",boxShadow:"lg",sx:{"&::before":{content:'""',position:"absolute",top:0,left:0,right:0,height:"100%",backgroundImage:c==="light"?EA:XA,opacity:gA,zIndex:0},overflow:"hidden","&::after":{content:'""',position:"absolute",top:"-50%",left:"-50%",width:"200%",height:"200%",background:c==="light"?K:WA,zIndex:0,opacity:.7}},children:[Fe(),u.jsxs(ne,{py:4,px:6,bgGradient:"linear(to-r, purple.600, blue.500)",color:"white",alignItems:"center",justifyContent:"space-between",boxShadow:"sm",position:"relative",overflow:"hidden",zIndex:1,sx:{"&::after":{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,backgroundImage:`url("data:image/svg+xml,%3Csvg width='20' height='20' viewBox='0 0 20 20' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.1' fill-rule='evenodd'%3E%3Ccircle cx='3' cy='3' r='1'/%3E%3Ccircle cx='13' cy='13' r='1'/%3E%3C/g%3E%3C/svg%3E")`,zIndex:1}},children:[u.jsxs(ne,{align:"center",zIndex:2,children:[t&&u.jsx(Vn,{"aria-label":"Go back",icon:u.jsx(jd,{size:18}),size:"sm",variant:"ghost",color:"white",mr:2,onClick:t,_hover:{bg:"rgba(255,255,255,0.2)"}}),u.jsx(sa,{animate:{y:[0,-5,0],rotate:[0,5,0]},transition:{duration:2,repeat:1/0,ease:"easeInOut"},mr:3,children:u.jsx(dl,{size:"sm",bg:bA,icon:u.jsx(xe,{as:Q1,boxSize:4,color:c==="light"?_A:qA}),children:u.jsx(A1,{boxSize:"1.0em",bg:"green.500"})})}),u.jsxs(DA,{children:[u.jsx(fe,{size:"md",fontWeight:"600",children:"CourseWise AI"}),u.jsx(UA,{fontSize:"xs",opacity:.8,children:"Your Smart Learning Assistant ✨"})]})]}),u.jsx(ge,{spacing:2,zIndex:2,children:Ge()})]}),u.jsxs(DA,{px:6,pt:4,zIndex:1,children:[u.jsxs(ne,{justify:"space-between",align:"center",mb:1,children:[u.jsxs(ge,{children:[u.jsxs(ht,{colorScheme:"purple",variant:"subtle",fontSize:"xs",borderRadius:"full",px:2,sx:{animation:`${se} 0.5s ease-out`},children:["Question ",g+1," of ",PA.length," 📝"]}),PA[g]&&u.jsx(ht,{colorScheme:PA[g].multiSelect?"blue":"green",variant:"subtle",fontSize:"xs",borderRadius:"full",px:2,sx:{animation:`${se} 0.5s ease-out`},children:PA[g].multiSelect?"Multiple Choice 🔄":"Single Choice ☝️"})]}),u.jsx(DA,{css:{opacity:0,transform:"translateY(10px)",animation:"fadeIn 0.5s forwards","@keyframes fadeIn":{to:{opacity:1,transform:"translateY(0)"}}},children:u.jsxs(UA,{fontSize:"xs",fontWeight:"medium",color:uA,children:[D,"% Complete 🚀"]})})]}),u.jsx(Ed,{value:D,size:"sm",colorScheme:"purple",borderRadius:"full",bg:aA,hasStripe:!0,isAnimated:!0,sx:{"& > div":{transition:"width 0.5s ease-in-out"}}})]}),u.jsxs(DA,{flex:"1",display:"flex",flexDirection:"column",position:"relative",zIndex:1,children:[u.jsxs(me,{flex:"1",p:6,spacing:4,align:"stretch",overflowY:"auto",maxH:"calc(100vh - 300px)",css:{"&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{width:"10px",background:kA,borderRadius:"24px"},"&::-webkit-scrollbar-thumb":{background:QA,borderRadius:"24px"}},children:[nA&&u.jsx(sa,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3},children:u.jsxs(Fa,{status:"error",borderRadius:"lg",mb:4,boxShadow:"md",children:[u.jsx(Qa,{}),u.jsxs(DA,{flex:"1",children:[u.jsx(gu,{children:"Error ❌"}),u.jsx(pu,{display:"block",children:nA})]}),u.jsx(Ue,{size:"sm",colorScheme:"red",onClick:zt,children:"Restart"})]})}),d.map((Ae,re)=>u.jsx(sa,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.3,delay:re*.1},children:u.jsx(av,{message:Ae,onOptionSelect:YA=>{(YA==="view_preferences"||YA==="new_questionnaire")&&ve([YA])}})},Ae.id)),oA&&u.jsxs(pv,{align:"flex-start",opacity:.8,initial:{opacity:0,y:10},animate:{opacity:1,y:0},transition:{duration:.3},children:[u.jsx(dl,{size:"sm",bg:bA,icon:u.jsx(x1,{size:16,color:c==="light"?_A:qA}),mr:2}),u.jsx(DA,{bg:LA,py:2,px:4,borderRadius:"lg",borderTopLeftRadius:"0",maxW:"80%",boxShadow:"sm",children:u.jsxs(UA,{color:SA,fontStyle:"italic",fontSize:"sm",children:["AI is thinking",u.jsxs(DA,{as:"span",sx:{display:"inline-flex","& > span":{width:"5px",height:"5px",marginLeft:"1px",marginRight:"1px",borderRadius:"50%",display:"inline-block",backgroundColor:SA,animation:`${he} 1.4s infinite both`},"& > span:nth-of-type(2)":{animationDelay:"0.2s"},"& > span:nth-of-type(3)":{animationDelay:"0.4s"}},children:[u.jsx(DA,{as:"span"}),u.jsx(DA,{as:"span"}),u.jsx(DA,{as:"span"})]})]})})]}),v&&u.jsx(ne,{justify:"center",py:4,children:u.jsx(sa,{animate:{rotate:360},transition:{duration:2,repeat:1/0,ease:"linear"},children:u.jsx($u,{color:"purple.500",size:"md",thickness:"3px"})})}),u.jsx("div",{ref:Q})]}),N&&u.jsx(sa,{p:6,borderTopWidth:"1px",borderColor:X,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},width:"100%",bg:HA("white","gray.800"),children:u.jsx(op,{onRestartChat:zt,preferences:k,loading:v})})]}),u.jsx(DA,{position:"relative",borderTop:"1px solid",borderColor:X,bg:TA,zIndex:3,children:ke?u.jsx(hv,{question:PA[g]?.question,options:PA[g]?.options||[],selectedOptions:q,multiSelect:W,isDisabled:!cA,onSelect:ve,subtitle:W?"Select all that apply":"Select one option"}):u.jsx(ne,{p:4,children:u.jsxs(e1,{size:"lg",children:[u.jsx(vr,{ref:j,placeholder:cA?"Type your answer here...":"Waiting for AI...",value:p,onChange:Ae=>m(Ae.target.value),onKeyPress:Le,bg:eA,borderRadius:"lg",_placeholder:{opacity:.7},isDisabled:!cA||v||F}),u.jsx(t1,{children:u.jsx(ds,{label:cA?"Send":"Please wait",placement:"top",children:u.jsx(Vn,{"aria-label":"Send message",icon:u.jsx(U1,{size:20}),isRound:!0,colorScheme:"blue",size:"sm",onClick:ft,isDisabled:!cA||p.trim()===""||v||F,_hover:{transform:"scale(1.1)"},transition:"all 0.2s ease"})})})]})})})]})};Tr(DA);const wv=Tr(ne),mv=Tr(me),vv=Tr(Et),Cv=({tabIndex:e,setTabIndex:A,userPreferences:t,isLoading:r,preferencesLoaded:n})=>{const i=sh(),a=HA("white","gray.800"),o=HA("white","gray.700");HA("blue.500","blue.300");const c=()=>{A(1)},d=()=>{A(2)},B=()=>{i("/academic-tools")};return u.jsx(DA,{bg:a,borderRadius:"xl",boxShadow:"lg",p:6,minH:"90vh",position:"relative",overflow:"hidden",_before:{content:'""',position:"absolute",top:0,left:0,right:0,bottom:0,bgGradient:HA("linear(to-br, rgba(240,249,255,0.8), rgba(230,245,255,0.9))","linear(to-br, rgba(20,30,48,0.8), rgba(15,22,36,0.9))"),zIndex:0,backgroundImage:HA(`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`,`url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%239C92AC' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E")`)},children:u.jsxs(DA,{position:"relative",zIndex:1,children:[u.jsx(ne,{justify:"flex-end",mb:4,children:u.jsx(Ue,{leftIcon:u.jsx(jd,{size:16}),onClick:B,size:"md",variant:"outline",colorScheme:"purple",borderRadius:"full",px:6,py:2,fontWeight:"medium",children:"Back to Tools"})}),u.jsxs(Qd,{index:e,onChange:A,variant:"soft-rounded",colorScheme:"blue",children:[u.jsxs(xd,{mb:4,justifyContent:"center",children:[u.jsx(pa,{children:u.jsxs(ge,{children:[u.jsx(xe,{as:Dc}),u.jsx(UA,{children:"Start"})]})}),u.jsx(pa,{children:u.jsxs(ge,{children:[u.jsx(xe,{as:Bl}),u.jsx(UA,{children:"AI Chat"})]})}),u.jsx(pa,{children:u.jsxs(ge,{children:[u.jsx(xe,{as:Af}),u.jsx(UA,{children:"Recommendations"})]})})]}),u.jsxs(Ud,{children:[u.jsx(Ba,{children:u.jsxs(mv,{spacing:8,align:"stretch",initial:{opacity:0},animate:{opacity:1},transition:{duration:.5},children:[u.jsxs(wv,{direction:"column",align:"center",textAlign:"center",mb:8,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5},children:[u.jsx(ht,{colorScheme:"purple",variant:"solid",px:4,py:2,borderRadius:"full",mb:6,fontSize:"md",boxShadow:"0 4px 12px rgba(128, 90, 213, 0.2)",children:u.jsxs(ge,{spacing:2,children:[u.jsx(xe,{as:Dc,size:18}),u.jsx(UA,{fontWeight:"bold",children:"AI-POWERED LEARNING"})]})}),u.jsxs(fe,{size:"2xl",mb:6,bgGradient:"linear(to-r, purple.400, blue.500)",bgClip:"text",fontWeight:"extrabold",letterSpacing:"tight",children:["Find Your Perfect Courses ",u.jsx("span",{role:"img","aria-label":"sparkle",children:"✨"})]}),u.jsxs(UA,{fontSize:"xl",maxW:"container.md",opacity:.9,lineHeight:"1.8",mb:8,children:["Our AI-powered recommendation system helps you discover courses perfectly aligned with your goals, interests, and learning style ",u.jsx("span",{role:"img","aria-label":"target",children:"🎯"})]}),u.jsx(Ue,{onClick:c,size:"lg",colorScheme:"purple",px:10,py:7,fontSize:"lg",fontWeight:"bold",borderRadius:"full",boxShadow:"0 10px 20px rgba(128, 90, 213, 0.3)",_hover:{transform:"translateY(-3px)",boxShadow:"0 15px 30px rgba(128, 90, 213, 0.4)"},rightIcon:u.jsx(Tc,{}),children:"Start Your Personalized Journey"})]}),u.jsxs(vv,{columns:{base:1,md:3},spacing:10,mb:12,initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.5,delay:.2},children:[u.jsx(Re,{bg:o,borderRadius:"xl",boxShadow:"md",_hover:{transform:"translateY(-5px)",boxShadow:"xl",transition:"all 0.3s ease"},borderWidth:"1px",borderColor:HA("gray.100","gray.700"),overflow:"hidden",children:u.jsxs(qe,{children:[u.jsx(DA,{bg:HA("purple.50","purple.900"),borderRadius:"full",p:4,width:"fit-content",mb:5,children:u.jsx(xe,{as:Dc,color:HA("purple.500","purple.300"),boxSize:8})}),u.jsx(fe,{size:"md",mb:3,fontWeight:"bold",children:"Personalized Analysis"}),u.jsx(UA,{lineHeight:"1.7",children:"Our AI analyzes your profile, preferences, and academic history to find courses that match your unique learning journey."})]})}),u.jsx(Re,{bg:o,borderRadius:"xl",boxShadow:"md",_hover:{transform:"translateY(-5px)",boxShadow:"xl",transition:"all 0.3s ease"},borderWidth:"1px",borderColor:HA("gray.100","gray.700"),overflow:"hidden",children:u.jsxs(qe,{children:[u.jsx(DA,{bg:HA("purple.50","purple.900"),borderRadius:"full",p:4,width:"fit-content",mb:5,children:u.jsx(xe,{as:Bl,color:HA("purple.500","purple.300"),boxSize:8})}),u.jsx(fe,{size:"md",mb:3,fontWeight:"bold",children:"Interactive AI Chat"}),u.jsx(UA,{lineHeight:"1.7",children:"Chat with our friendly AI assistant to refine your preferences and get personalized course suggestions through conversation."})]})}),u.jsx(Re,{bg:o,borderRadius:"xl",boxShadow:"md",_hover:{transform:"translateY(-5px)",boxShadow:"xl",transition:"all 0.3s ease"},borderWidth:"1px",borderColor:HA("gray.100","gray.700"),overflow:"hidden",children:u.jsxs(qe,{children:[u.jsx(DA,{bg:HA("purple.50","purple.900"),borderRadius:"full",p:4,width:"fit-content",mb:5,children:u.jsx(xe,{as:Af,color:HA("purple.500","purple.300"),boxSize:8})}),u.jsx(fe,{size:"md",mb:3,fontWeight:"bold",children:"Curated Recommendations"}),u.jsx(UA,{lineHeight:"1.7",children:"Get a carefully curated list of courses with detailed explanations of why each course is recommended specifically for you."})]})})]}),u.jsxs(Et,{columns:{base:1,md:2},spacing:8,mt:8,children:[u.jsx(Re,{direction:{base:"column",md:"row"},overflow:"hidden",variant:"outline",bg:o,borderRadius:"xl",boxShadow:"lg",_hover:{transform:"translateY(-5px)",boxShadow:"xl",transition:"all 0.3s ease"},children:u.jsxs(DA,{p:5,children:[u.jsx(fe,{size:"lg",mb:2,children:"Start AI Chat"}),u.jsx(UA,{mb:4,children:"Chat with our AI assistant to discuss your academic interests, goals, and preferences for personalized course recommendations."}),u.jsx(Ue,{onClick:c,colorScheme:"blue",rightIcon:u.jsx(Tc,{}),size:"lg",mt:2,children:"Start Chatting"})]})}),u.jsx(Re,{direction:{base:"column",md:"row"},overflow:"hidden",variant:"outline",bg:o,borderRadius:"xl",boxShadow:"lg",_hover:{transform:"translateY(-5px)",boxShadow:"xl",transition:"all 0.3s ease"},children:u.jsxs(DA,{p:5,children:[u.jsx(fe,{size:"lg",mb:2,children:"View Recommendations"}),u.jsx(UA,{mb:4,children:"See your personalized course recommendations based on your profile data and previous academic history."}),u.jsx(Ue,{onClick:d,colorScheme:"purple",rightIcon:u.jsx(Tc,{}),size:"lg",mt:2,children:"View Courses"})]})})]})]})}),u.jsx(Ba,{children:u.jsx(Re,{bg:o,borderRadius:"xl",boxShadow:"xl",overflow:"hidden",height:"75vh",children:u.jsx(qe,{p:0,children:n!==!1&&u.jsx(Bv,{initialPreferences:t!==null?t:null,onViewPreferences:()=>A(2)},`chat-interface-${t?.user_id||"new"}-${e}`)})})}),u.jsx(Ba,{children:u.jsx(Re,{bg:o,borderRadius:"xl",boxShadow:"xl",overflow:"hidden",children:u.jsx(qe,{children:u.jsx(op,{preferences:t?{interests:[],goals:[],...t}:void 0,loading:r})})})})]})]})]})})},bv=()=>{const[e,A]=xA.useState(0),{setTabIndex:t,isRestarting:r,setIsRestarting:n}=ah(),{user:i}=Ci(),[a,o]=xA.useState(null),[c,d]=xA.useState(!1),[B,p]=xA.useState(!1),m=xA.useRef(!1);xA.useEffect(()=>{if(m.current){console.log("Preferences already fetched during this session, skipping duplicate fetch");return}if(!i){console.log("No user logged in, skipping preference fetch"),o(null),d(!1),p(!0);return}m.current=!0,console.log("Fetching preferences for user:",i.id),d(!0),fv(i.id).then(C=>{const v=C&&Object.entries(C).some(([U,F])=>U==="user_id"?!1:Array.isArray(F)?F.length>0:F!=null&&F!==""&&typeof F!="object");console.log("Fetched user preferences:",C),console.log("Has actual preferences:",v),v?(o(C),console.log("Set userPreferences to:",C)):(o(null),console.log("Set userPreferences to null - no actual data found")),d(!1),p(!0)}).catch(C=>{console.error("Error fetching user preferences:",C),o(null),d(!1),p(!0)})},[i]),xA.useEffect(()=>{m.current=!1},[i?.id]);const g=C=>{console.log(`Changing tab from ${e} to ${C}`),C===1&&r&&n(!1),A(C)};return xA.useEffect(()=>{t(e)},[e,t]),u.jsxs(u.Fragment,{children:[u.jsx(I1,{}),u.jsx(Cv,{tabIndex:e,setTabIndex:g,userPreferences:a,isLoading:c,preferencesLoaded:B})]})},Hv=Object.freeze(Object.defineProperty({__proto__:null,default:bv},Symbol.toStringTag,{value:"Module"}));export{_v as A,Iv as C,I1 as N,Lv as P,Sv as a,Ev as b,Hv as c,Ci as u}; //# sourceMappingURL=academic-components-DF0R8Z3x.js.map
Close