PageSourceSearch

https://captured-wwwgoodnewsguyscom-b986c1e3.base44.app/assets/Booking-0xuAl7Ih.js

js captured-wwwgoodnewsguyscom-b986c1e3.base44.app collected 2026-10-03 03:13:14 UTC 485,252 bytes, 185 lines download raw bytes

1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index.es-CNUDsvFO.js","assets/index-Y6zZQBsM.js","assets/index-BOBDOosU.css","assets/PageMeta-Di8zbx97.js","assets/WaveDivider-BWL5OZfo.js","assets/calendar-check-Dq0Bk9TF.js","assets/arrow-right-BhQXg6tb.js","assets/calendar-days-Bu5mSgW7.js","assets/map-pin-CDr62JPQ.js","assets/shield-check-Bx8JEFnB.js","assets/eye-CNzvaSFh.js","assets/download-B3FJbaHe.js","assets/lock-BSLpiR3M.js","assets/external-link-JaY5YF54.js","assets/check-Bdy9URMh.js","assets/sparkles-CBuOk6Ho.js","assets/circle-alert-nZRKcqcr.js","assets/rotate-ccw-5ZP_jSsr.js"])))=>i.map(i=>d[i]);
2var pf=Object.defineProperty;var mf=(n,t,e)=>t in n?pf(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var Nt=(n,t,e)=>mf(n,typeof t!="symbol"?t+"":t,e);import{g as kl,j as p,r as Je,y as zr,f as Fi,C as si,X as gf,_ as Wo,n as bf,e as gc,I as vf}from"./index-Y6zZQBsM.js";import{P as Ho}from"./PageMeta-Di8zbx97.js";import{W as xf}from"./WaveDivider-BWL5OZfo.js";import{C as yf}from"./calendar-check-Dq0Bk9TF.js";import{A as wf}from"./arrow-right-BhQXg6tb.js";import{C as _f}from"./calendar-days-Bu5mSgW7.js";import{M as Nf}from"./map-pin-CDr62JPQ.js";import{D as Vo,S as io,F as Zs,P as Af,A as Sf,a as Lf}from"./shield-check-Bx8JEFnB.js";import{E as aa}from"./eye-CNzvaSFh.js";import{D as Ou}from"./download-B3FJbaHe.js";import{L as xa}from"./lock-BSLpiR3M.js";import{E as bc}from"./external-link-JaY5YF54.js";import{C as Ur}from"./check-Bdy9URMh.js";import{S as jf}from"./sparkles-CBuOk6Ho.js";import{C as es}from"./circle-alert-nZRKcqcr.js";import{R as vc}from"./rotate-ccw-5ZP_jSsr.js";/**
3 * @license lucide-react v0.475.0 - ISC
4 *
5 * This source code is licensed under the ISC license.
6 * See the LICENSE file in the root directory of this source tree.
7 */const kf=[["path",{d:"M6 22V4a2 2 0 0 1 2-2h8a2 2 0 0 1 2 2v18Z",key:"1b4qmf"}],["path",{d:"M6 12H4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h2",key:"i71pzd"}],["path",{d:"M18 9h2a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2h-2",key:"10jefs"}],["path",{d:"M10 6h4",key:"1itunk"}],["path",{d:"M10 10h4",key:"tcdvrf"}],["path",{d:"M10 14h4",key:"kelpxr"}],["path",{d:"M10 18h4",key:"1ulq68"}]],Pf=kl("Building2",kf);/**
8 * @license lucide-react v0.475.0 - ISC
9 *
10 * This source code is licensed under the ISC license.
11 * See the LICENSE file in the root directory of this source tree.
12 */const Ff=[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]],gl=kl("CreditCard",Ff);/**
13 * @license lucide-react v0.475.0 - ISC
14 *
15 * This source code is licensed under the ISC license.
16 * See the LICENSE file in the root directory of this source tree.
17 */const Cf=[["path",{d:"m7 21-4.3-4.3c-1-1-1-2.5 0-3.4l9.6-9.6c1-1 2.5-1 3.4 0l5.6 5.6c1 1 1 2.5 0 3.4L13 21",key:"182aya"}],["path",{d:"M22 21H7",key:"t4ddhn"}],["path",{d:"m5 11 9 9",key:"1mo9qw"}]],Ef=kl("Eraser",Cf),xc="https://media.base44.com/images/public/6a048c44cd85fbc1b986c1e3/f1a2b03da_Wisconsin.jpg";function If(){return p.jsxs("section",{className:"w-full overflow-hidden bg-[#051d70]",children:[p.jsxs("div",{className:"sm:hidden",children:[p.jsx("div",{className:"relative h-[180px] w-full overflow-hidden",children:p.jsx("img",{src:xc,alt:"Good News Guys live worship show on stage with Jordan and Vinnie, projection screens, and a seated audience",className:"w-full h-full object-cover",style:{objectPosition:"center 30%"}}
17)}),p.jsx("div",{className:"px-5 py-6 flex flex-col items-center text-center",children:p.jsxs("div",{className:"w-full max-w-xs",children:[p.jsx("p",{className:"text-[10px] font-black tracking-[0.18em] uppercase text-[#fff22c] mb-1.5",style:{fontFamily:"'Rubik', sans-serif"},children:"Let’s Get Ready to Praise Jesus!"}),p.jsx("h1",{className:"text-xl font-black text-white leading-tight mb-1.5",style:{fontFamily:"'Rubik', sans-serif"},children:"Complete Your Booking"}),p.jsx("p",{className:"text-xs text-white/85 leading-relaxed",children:"Review and complete the three steps below to finalize your Good News Guys event."})]})})]}),p.jsxs("div",{className:"hidden sm:flex h-[280px]",children:[p.jsx("div",{className:"w-1/2 flex flex-col items-center justify-center px-10 lg:px-16",children:p.jsxs("div",{className:"w-full max-w-md text-left",children:[p.jsx("p",{className:"text-xs font-black tracking-[0.18em] uppercase text-[#fff22c] mb-2.5",style:{fontFamily:"'Rubik', sans-serif"},children:"Let’s Get Ready to Praise Jesus!"}),p.jsx("h1",{className:"text-3xl lg:text-4xl font-black text-white leading-tight mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Complete Your Booking"}),p.jsx("p",{className:"text-sm lg:text-base text-white/85 leading-relaxed",children:"Review and complete the three steps below to finalize your Good News Guys event."})]})}),p.jsx("div",{className:"w-1/2 relative overflow-hidden",children:p.jsx("img",{src:xc,alt:"Good News Guys live worship show on stage with Jordan and Vinnie, projection screens, and a seated audience",className:"w-full h-full object-cover",style:{objectPosition:"center 30%"}}
17)})]}),p.jsx(xf,{fromColor:"#051d70",toColor:"#ffffff"})]})}const yc="We couldn't access that booking. Please check the information provided by the Good News Guys team or contact us for help.";function Of({initialToken:n,onAccess:t,initialError:e}){const[r,a]=Je.useState(""),[s,h]=Je.useState(""),[l,c]=Je.useState(!1),[d,g]=Je.useState(e||"");Je.useEffect(()=>{e&&g(e)},[e]);const w=async k=>{if(k.preventDefault(),!l){c(!0),g("");try{const m={email:s.trim()};n?m.token=n:m.code=r.trim();const F=await Fi.accessBooking(m),j=F.data||F;j!=null&&j.success&&(j!=null&&j.booking)?t(j.booking):g((j==null?void 0:j.error)||yc)}catch{g(yc)}finally{c(!1)}}};return p.jsx("section",{className:"bg-[#fff22c] min-h-[60vh] flex items-center py-12",children:p.jsx("div",{className:"max-w-lg mx-auto px-4 sm:px-6 w-full",children:p.jsxs("div",{className:"bg-white rounded-3xl shadow-2xl border-4 border-white p-6 sm:p-8",children:[p.jsxs("div",{className:"text-center mb-6",children:[p.jsx("div",{className:"inline-flex items-center justify-center w-14 h-14 rounded-2xl bg-[#2fc7ff]/15 mb-3",children:p.jsx(yf,{className:"w-7 h-7 text-[#051d70]"})}),p.jsx("h1",{className:"text-2xl sm:text-3xl font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:"Complete Your Event Booking"}),p.jsx("p",{className:"text-sm text-[#051d70]/75 leading-relaxed",children:"Currently finalizing an event with the Good News Guys? Enter the booking code and primary contact email provided by our team."})]}),d&&p.jsx("div",{className:"mb-4 p-3 rounded-xl bg-[#FF1F53]/10 border-2 border-[#FF1F53]/30",children:p.jsx("p",{className:"text-sm text-[#FF1F53] font-medium",children:d})}),p.jsxs("form",{onSubmit:w,className:"space-y-4",children:[!n&&p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-[#051d70] mb-1.5",children:"Booking code"}),p.jsx("input",{type:"text",value:r,onChange:k=>a(k.target.value),placeholder:"Enter your booking code",required:!0,autoCapitalize:"characters",className:"w-full px-4 py-3 rounded-xl border-2 border-[#051d70]/15 focus:border-[#2fc7ff] focus:outline-none text-sm"})]}),p.jsxs("div",{children:[p.jsx("label",{className:"block text-sm font-semibold text-[#051d70] mb-1.5",children:"Primary contact email"}),p.jsx("input",{type:"email",value:s,onChange:k=>h(k.target.value),placeholder:"[email protected]",required:!0,className:"w-full px-4 py-3 rounded-xl border-2 border-[#051d70]/15 focus:border-[#2fc7ff] focus:outline-none text-sm"})]}),p.jsx("button",{type:"submit",disabled:l,className:"w-full flex items-center justify-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-6 py-3.5 rounded-full hover:scale-105 transition-transform disabled:opacity-60 disabled:hover:scale-100 min-h-[44px]",children:l?p.jsxs(p.Fragment,{children:[p.jsx(zr,{className:"w-4 h-4 animate-spin"})," Accessing..."]}):p.jsxs(p.Fragment,{children:["Access My Booking ",p.jsx(wf,{className:"w-4 h-4"})]})})]}),p.jsxs("div",{className:"mt-6 pt-5 border-t border-[#051d70]/10 text-center",children:[p.jsx("p",{className:"text-xs text-[#051d70]/70 mb-2",children:"Interested in bringing the Good News Guys to your community?"}),p.jsx("a",{href:"/book-the-guys",className:"text-sm text-[#FF1F53] hover:underline font-bold",children:"Start an Event Inquiry"})]})]})})})}function Rf(n){if(!n)return"";try{return new Date(n+"T00:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function Bf({booking:n}){if(!n)return null;const t=[{icon:Pf,label:"Host Organization",value:n.host_organization_name},{icon:_f,label:"Event Date",value:Rf(n.approved_event_date)},{icon:Nf,label:"Venue",value:n.venue_name||n.venue_or_city},{icon:Vo,label:"Agreed Show Fee",value:n.agreed_show_fee},{icon:Vo,label:"Agreed Travel Charges",value:n.agreed_travel_charges},{icon:Vo,label:"Required Deposit",value:n.required_deposit_amount}].filter(e=>e.value);return p.jsxs("div",{className:"bg-white rounded-2xl border-2 border-[#051d70]/10 p-5 sm:p-6",children:[p.jsx("p",{className:"text-xs font-bold tracking-[0.15em] uppercase text-[#FF1F53] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Your Event"}),p.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3",children:t.map(e=>p.jsxs("div",{className:"flex items-start gap-2.5 p-3 rounded-xl bg-[#2fc7ff]/5 border border-[#051d70]/10",children:[p.jsx(e.icon,{className:"w-4 h-4 text-[#051d70]/50 flex-shrink-0 mt-0.5"}),p.jsxs("div",{children:[p.jsx("p",{className:"text-[10px] font-bold uppercase tracking-wide text-[#051d70]/50",children:e.label}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70] break-words",children:e.value||"Not specified"})]})]},e.label))})]})}const Tf="https://www.paypal.com/ncp/payment/F62SUY3CHVY3W",Df="https://drive.google.com/file/d/1HB3_hJyi8oM2XhIUZiCOoIt4QT_5I4Oo/view",Mf=[{value:"Indoor",label:"Indoor"},{value:"Outdoor",label:"Outdoor"}];async function Pl(n,t,e){if(!n)return;const r=(t||"Booking").replace(/[^a-zA-Z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,50)||"Booking",a=e||"",s=`Good-News-Guys-Booking-Agreement-${r}
17${a?"-"+a:""}.pdf`;try{const h=await fetch(n);if(!h.ok)throw new Error("Failed to fetch PDF");const l=await h.blob(),c=URL.createObjectURL(l),d=document.createElement("a");d.href=c,d.download=s,document.body.appendChild(d),d.click(),document.body.removeChild(d),setTimeout(()=>URL.revokeObjectURL(c),5e3)}catch{window.open(n,"_blank","noopener,noreferrer")}}function qf({status:n}){const t={"Not Started":"bg-[#051d70]/8 text-[#051d70]/70",Complete:"bg-[#2ABE68]/15 text-[#2ABE68]","Awaiting Payment Verification":"bg-[#fff22c]/40 text-[#051d70]"};return p.jsx("span",{className:`text-xs font-bold px-2.5 py-1 rounded-full ${t[n]||t["Not Started"]}`,children:n})}function Yo({number:n,title:t,description:e,status:r,done:a,locked:s,children:h}){return p.jsx("div",{className:`relative flex flex-col p-5 rounded-2xl border-2 transition-all ${a?"border-[#2ABE68]/30 bg-[#2ABE68]/5":s?"border-[#051d70]/10 bg-[#051d70]/[0.03]":"border-[#051d70]/15 bg-white"}`,children:p.jsxs("div",{className:"flex items-start gap-4",children:[p.jsx("div",{className:`w-10 h-10 rounded-xl flex items-center justify-center flex-shrink-0 font-black text-lg ${a?"bg-[#2ABE68] text-white":s?"bg-[#051d70]/10 text-[#051d70]/40":"bg-[#fff22c] text-[#051d70]"}`,style:{fontFamily:"'Rubik', sans-serif"},children:a?p.jsx(Ur,{className:"w-5 h-5"}):s?p.jsx(xa,{className:"w-4 h-4"}):n}),p.jsxs("div",{className:"flex-1 min-w-0",children:[p.jsxs("div",{className:"flex items-center justify-between gap-2 mb-1",children:[p.jsx("h3",{className:"text-base font-black text-[#051d70] leading-tight",style:{fontFamily:"'Rubik', sans-serif"},children:t}),p.jsx(qf,{status:r})]}),p.jsx("p",{className:"text-xs text-[#051d70]/70 leading-relaxed mb-3",children:e}),p.jsx("div",{children:h})]})]})})}function Bs({children:n,onClick:t,disabled:e,full:r}){return p.jsx("button",{type:"button",onClick:t,disabled:e,className:`inline-flex items-center justify-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-5 py-3 rounded-full hover:scale-105 transition-transform disabled:opacity-50 disabled:hover:scale-100 disabled:cursor-not-allowed min-h-[44px] ${r?"w-full":""}`,children:n})}function sa({children:n,onClick:t,disabled:e}){return p.jsx("button",{type:"button",onClick:t,disabled:e,className:"inline-flex items-center justify-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors disabled:opacity-50 min-h-[44px]",children:n})}function Uf({booking:n,onOpenSof:t,onOpenForm:e,onPayDeposit:r,onPaymentSubmitted:a,submittingPayment:s,onViewSof:h,onViewAgreement:l,onViewDeposit:c}){const d=n==null?void 0:n.sof_confirmed,g=n==null?void 0:n.agreement_submitted,w=n==null?void 0:n.payment_submitted,k=n==null?void 0:n.payment_verified,m=n==null?void 0:n.confirmed,F=((n==null?void 0:n.required_deposit_amount)||"").toLowerCase(),j=F.includes("waived")||F.includes("not required"),C=async()=>{a()},y=()=>{const z=n==null?void 0:n.agreement_pdf_url;z&&Pl(z,n.host_organization_name,n.approved_event_date)};return p.jsxs("div",{className:"space-y-4",children:[p.jsx(Yo,{number:1,title:"1. Review Our Statement of Faith",description:"Please review the beliefs that guide the Good News Guys ministry and confirm that you are authorized to agree on behalf of your organization.",status:d?"Complete":"Not Started",done:d,locked:!1,children:d&&(n!=null&&n.sof_data)?p.jsxs("div",{className:"space-y-3",children:[p.jsxs("p",{className:"text-xs font-semibold text-[#2ABE68] flex items-center gap-1.5",children:[p.jsx(si,{className:"w-4 h-4"})," Confirmed by ",n.sof_data.representative_name," on ",new Date(n.sof_data.acknowledgment_date).toLocaleDateString()]}),p.jsxs(sa,{onClick:h,children:[p.jsx(aa,{className:"w-4 h-4"})," View Statement of Faith"]})]}):p.jsxs(Bs,{onClick:t,children:[p.jsx(io,{className:"w-4 h-4"})," Review & Agree"]})}),p.jsx(Yo,{number:2,title:"2. Review & Sign the Agreement",description:"Confirm your event information, review the host requirements and booking terms, and sign on behalf of your organization.",status:g?"Complete":"Not Started",done:g,locked:!d,children:g?p.jsxs("div",{className:"space-y-3",children:[p.jsxs("p",{className:"text-xs font-semibold text-[#2ABE68] flex items-center gap-1.5",children:[p.jsx(si,{className:"w-4 h-4"})," Agreement signed. A copy has been emailed to you."]}),p.jsxs("div",{className:"flex flex-wrap gap-2",children:[p.jsxs(Bs,{onClick:l,children:[p.jsx(aa,{className:"w-4 h-4"})," View Signed Agreement"]}),p.jsxs(sa,{onClick:y,disabled:!(n!=null&&n.agreement_pdf_url),children:[p.jsx(Ou,{className:"w-4 h-4"})," Download PDF"]})]})]}):d?p.jsxs(Bs,{onClick:e,children:[p.jsx(Zs,{className:"w-4 h-4"})," Review & Sign"]}):p.jsxs("p",{className:"text-xs text-[#051d70]/60 flex items-center gap-1.5",children:[p.jsx(xa,{
17className:"w-3.5 h-3.5"})," Complete the Statement of Faith first."]})}),p.jsx(Yo,{number:3,title:"3. Submit Your Deposit",description:"Submit the required deposit to complete your booking.",status:k?"Complete":w?"Awaiting Payment Verification":"Not Started",done:k,locked:!g,children:k?p.jsxs("div",{className:"space-y-3",children:[p.jsxs("p",{className:"text-xs font-semibold text-[#2ABE68] flex items-center gap-1.5",children:[p.jsx(si,{className:"w-4 h-4"})," Deposit verified by our team."]}),p.jsxs(sa,{onClick:c,children:[p.jsx(aa,{className:"w-4 h-4"})," View Deposit Details"]})]}):g?n!=null&&n.is_test?p.jsxs("div",{className:"space-y-3",children:[p.jsxs("div",{className:"p-3 rounded-xl bg-[#FF1F53]/10 border-2 border-[#FF1F53]/30",children:[p.jsx("p",{className:"text-xs font-bold text-[#FF1F53] mb-1",children:"Test Mode"}),p.jsx("p",{className:"text-xs text-[#051d70]/70 leading-relaxed",children:"The PayPal payment button is disabled for test bookings. No real payment is required."})]}),p.jsxs(sa,{onClick:c,children:[p.jsx(aa,{className:"w-4 h-4"})," View Deposit Details"]})]}):j?p.jsxs("div",{className:"space-y-3",children:[p.jsx("div",{className:"p-3 rounded-xl bg-[#2ABE68]/8 border-2 border-[#2ABE68]/25",children:p.jsxs("p",{className:"text-xs font-semibold text-[#2ABE68] flex items-center gap-1.5",children:[p.jsx(si,{className:"w-3.5 h-3.5"})," No deposit payment is required for this booking. Our team will handle this."]})}),p.jsxs(sa,{onClick:c,children:[p.jsx(aa,{className:"w-4 h-4"})," View Deposit Details"]})]}):w?p.jsxs("div",{className:"space-y-3",children:[p.jsx("div",{className:"p-3 rounded-xl bg-[#fff22c]/15 border-2 border-[#fff22c]/50",children:p.jsxs("p",{className:"text-xs font-semibold text-[#051d70] flex items-center gap-1.5",children:[p.jsx(zr,{className:"w-3.5 h-3.5 animate-spin"})," Payment submitted — awaiting verification by our team."]})}),p.jsxs(sa,{onClick:c,children:[p.jsx(aa,{className:"w-4 h-4"})," View Deposit Details"]})]}):p.jsxs("div",{className:"space-y-3",children:[p.jsxs("div",{className:"flex items-center justify-between p-3 rounded-xl bg-[#2fc7ff]/5 border border-[#051d70]/10",children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Deposit Amount"}),p.jsx("span",{className:"text-sm font-black text-[#051d70]",children:(n==null?void 0:n.required_deposit_amount)||"Not specified"})]}),p.jsxs(Bs,{onClick:r,full:!0,children:[p.jsx(gl,{className:"w-4 h-4"})," Pay Deposit ",p.jsx(bc,{className:"w-3.5 h-3.5"})]}),p.jsx("p",{className:"text-xs text-[#051d70]/65 leading-relaxed",children:"Payment is completed securely through PayPal. After submitting your payment, click the button below so our team knows to verify it."}),p.jsx("button",{type:"button",onClick:C,disabled:s,className:"w-full inline-flex items-center justify-center gap-2 font-bold text-sm text-[#051d70] bg-[#fff22c] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#fff22c]/80 transition-colors disabled:opacity-50 min-h-[44px]",children:s?p.jsxs(p.Fragment,{children:[p.jsx(zr,{className:"w-4 h-4 animate-spin"})," Submitting..."]}):p.jsxs(p.Fragment,{children:[p.jsx(Ur,{className:"w-4 h-4"})," I've Submitted the Payment"]})})]}):p.jsxs("p",{className:"text-xs text-[#051d70]/60 flex items-center gap-1.5",children:[p.jsx(xa,{className:"w-3.5 h-3.5"})," Complete the agreement first."]})}),m?p.jsxs("div",{className:"p-5 rounded-2xl bg-[#2ABE68]/10 border-2 border-[#2ABE68]/30",children:[p.jsxs("div",{className:"flex items-start gap-2.5 mb-3",children:[p.jsx(Af,{className:"w-5 h-5 text-[#2ABE68] flex-shrink-0 mt-0.5"}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-bold text-[#051d70]",children:"Your event is confirmed!"}),p.jsx("p",{className:"text-xs text-[#051d70]/75 leading-relaxed mt-0.5",children:"We're excited to praise Jesus and share the Good News with your community."})]})]}),p.jsxs("div",{className:"pt-3 border-t border-[#2ABE68]/20",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[p.jsx(jf,{className:"w-4 h-4 text-[#2ABE68]"}),p.jsx("h4",{className:"font-bold text-[#051d70] text-sm",style:{fontFamily:"'Rubik', sans-serif"},children:"Event Promo Kit"})]}),p.jsx("p",{className:"text-xs text-[#051d70]/75 mb-3",children:"Your event is confirmed! Use these ready-to-share resources to help spread the word."}),p.jsxs("a",{href:Df,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 font-semibold text-sm text-[#051d70] bg-white border-2 border-[#051d70]/20 px-5 py-3 rounded-full hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:["Open Promo Kit ",p.jsx(bc,{className:"w-3.5 h-3.5"})]})]})]}):d&&g&&!k?p.jsxs("div",{className:"p-4 rounded-2xl bg-[#2ABE68]/8 border-2 border-[#2ABE68]/25 flex items-start gap-3",children:[p.jsx(si,{className:"w-5 h-5 text-[#2ABE68] flex-shrink-0 mt-0.5"}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm font-bold text-[#051d70]",children:"Documents Received"}),p.jsx("p",{className:"text-xs text-[#051d70]/75 leading-relaxed mt-0.5",children:"We've received your signed documents. Your event will be officially confirmed after our team verifies the deposit."})]})]}):null]})}function ya({open:n,onClose:t,children:e}){return Je.useEffect(()=>{if(!n)return;const r=a=>{a.key==="Escape"&&t()};return document.addEventListener("keydown",r),document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",r),document.body.style.overflow=""}},[n,t]),n?p.jsxs("div",{className:"fixed inset-0 z-50 flex items-start sm:items-center justify-center p-0 sm:p-4",children:[p.jsx("div",{className:"absolute inset-0 bg-[#051d70]/60 backdrop-blur-sm",onClick:t,"aria-hidden":"true"}),p.jsxs("div",{className:"relative w-full sm:max-w-3xl bg-white rounded-none sm:rounded-3xl shadow-2xl max-h-screen sm:max-h-[92vh] overflow-y-auto",children:[p.jsx("div",{className:"sticky top-0 z-10 flex justify-end p-3 bg-white sm:rounded-t-3xl",children:p.jsx("button",{type:"button",onClick:t,"aria-label":"Close",className:"w-10 h-10 rounded-full bg-white border-2 border-[#051d70]/15 flex items-center justify-center text-[#051d70] hover:bg-[#fff22c] transition-colors flex-shrink-0",children:p.jsx(gf,{className:"w-5 h-5"})})}),p.jsx("div",{className:"px-4 sm:px-6 pb-8",children:e})]})]}):null}function pn({label:n,required:t,error:e,children:r,hint:a,unit:s}){return p.jsxs("div",{children:[p.jsxs("label",{className:"block text-sm font-semibold text-[#051d70] mb-1.5",children:[n," ",t&&p.jsx("span",{className:"text-[#FF1F53]",children:"*"}),s&&p.jsxs("span",{className:"text-[#051d70]/50 font-normal ml-1",children:["(",s,")"]})]}),r,a&&p.jsx("p",{className:"text-xs text-[#051d70]/60 mt-1",children:a}),e&&p.jsx("p",{className:"text-xs text-[#FF1F53] mt-1 font-medium",role:"alert",children:e})]})}const Ru="w-full border-2 border-[#051d70]/15 rounded-xl px-4 py-3 bg-white text-[#051d70] placeholder:text-[#051d70]/40 focu
17s:outline-none focus:ring-2 focus:ring-[#2fc7ff] focus:border-[#2fc7ff] transition-colors";function Un({value:n="",onChange:t,type:e="text",placeholder:r,required:a,...s}){return p.jsx("input",{type:e,value:n,onChange:h=>t(h.target.value),placeholder:r,required:a,className:Ru,...s})}function zf({value:n="",onChange:t,placeholder:e,rows:r=4}){return p.jsx("textarea",{value:n,onChange:a=>t(a.target.value),placeholder:e,rows:r,className:Ru+" resize-y"})}function Ya({value:n,onChange:t,options:e,name:r}){return p.jsx("div",{className:"space-y-2.5",role:"radiogroup","aria-label":r,children:e.map(a=>{const s=n===a.value;return p.jsxs("label",{className:`flex items-start gap-3 p-3.5 rounded-xl border-2 cursor-pointer transition-all ${s?"border-[#2fc7ff] bg-[#2fc7ff]/10":"border-[#051d70]/15 bg-white hover:border-[#051d70]/30"}`,children:[p.jsx("input",{type:"radio",name:r,value:a.value,checked:s,onChange:()=>t(a.value),className:"mt-1 w-4 h-4 accent-[#2fc7ff] flex-shrink-0"}),p.jsx("span",{className:"text-sm text-[#051d70] leading-snug",children:a.label})]},a.value)})})}function Ka({checked:n,onChange:t,label:e,error:r,required:a}){return p.jsxs("div",{children:[p.jsxs("label",{className:"flex items-start gap-3 cursor-pointer p-3 rounded-xl border-2 border-[#051d70]/15 bg-white hover:border-[#051d70]/30 transition-colors",children:[p.jsx("input",{type:"checkbox",checked:n||!1,onChange:s=>t(s.target.checked),className:"mt-0.5 w-5 h-5 accent-[#2fc7ff] flex-shrink-0",required:a}),p.jsx("span",{className:"text-sm text-[#051d70] leading-snug",children:e})]}),r&&p.jsx("p",{className:"text-xs text-[#FF1F53] mt-1 font-medium ml-3",role:"alert",children:r})]})}const da={title:"What We Believe",intro:"The Good News Guys exist to share the Good News of Jesus and build strong foundations of faith in children and families.",paragraphs:["Good 
17News Guys believe in one God in three persons: Father, Son, and Holy Spirit. We believe that Jesus Christ is the Son of God and the Savior of the world. That Jesus was conceived of the Holy Spirit and the virgin Mary — fully God and fully man.","We believe that He lived a perfect and sinless life, gave up His life, died on the cross, was buried, and rose again on the third day. We believe that Jesus ascended to heaven and is seated at the right hand of the Father today!","We believe the Bible is God's Word and is the infallible truth. We believe the Bible teaches that we receive God's grace through faith in Jesus, repentance of sin, and living lives devoted to Christ.",'We believe if you confess with your mouth "Jesus is Lord", and believe in your heart that God raised Him from the dead, you will be saved (Romans 10:9).',"We believe there is only one way to our perfect God and that is through the saving grace of Jesus' blood. We believe God instructs us to go and make disciples of all nations (Matthew 28:19) — and our mission is to spread this Good News to kids all over the world!","To God be the Glory! And we pray that God is glorified through our songs and videos praising Him!"]},Bu="I have read the Good News Guys Statement of Faith and confirm that I am authorized to acknowledge it on behalf of the organization listed above.",yr={title:"Good News Guys Live Show Agreement",paymentInfo:["$250 deposit is due at time of booking.","Travel expenses are due 8 weeks prior to event date.","Mileage fees are due before travel ensues.","Balance is due the day of the show.","Please make checks payable to: GOOD NEWS GUYS.","To pay by PayPal or credit card, please visit GOODNEWSGUYS.COM (please add 3% of the deposit amount to cover processing when using PayPal)."],cancellationPolicy:["$250 of your deposit is applicable to your total, but is non-refundable by the time of submission.","If Good News Guys is not notified of a canceled event within at least 2 weeks prior to the event date, the agreed full amount is still due to Good News Guys."],termsAndConditions:["The Purchaser shall have supervision over the Good News Guys services and reserves the right to control the manner, means, and details of the event. Purchaser to work with Good News Guys to determine equipment requirements to power sources. Good News Guys shall use best efforts to conform to the Purchaser's requests.","Good News Guys executes this agreement as an independent contractor, not as an employee of the Purchaser. The obligation to perform is subject to detention by sickness, accidents, riots, strikes, inability to perform, means of transportation, acts of God, epidemics, unreasonable mandates, any act or order of public authority herein, or any other condition beyond his/her control.","In the unlikely event that the Good News Guys shall fail or refuse to perform, then all deposits and/or payments are refundable to the Purchaser.","Both Purchaser and Good News Guys agree to hold, its agents and employees, successors, and assigns safe and harmless from any and every claim, demand, suit, and payment in respect thereof, or in respect to any of them.","If the Purchaser cancels the contracted date, then Good News Guys will keep and hold all deposits and/or payments unless they can contract the same date with another Purchaser."],recordingAndPromo:["Good News Guys reserves the right to display any part of this show recording or photos for promotional purposes."]},Xa=[{key:"venue_access",text:"We can provide access to the venue at least two hours before doors open for setup and sound check."},{key:"presentation_display",text:"We can provide a projector, large television, or LED display that can be used for lyrics and presentation content."},{key:"sound_system",text:"Our sound system can support at least four input channels, two monitor channels, two vocal channels, one acoustic guitar channel, and one presentation-audio channel."},{key:"onsite_sound_support",text:"Someone familiar with the venue's sound system will be available to assist with setup, sound check, and volume control during the event."},{key:"presentation_connection",text:"Our presentation display can receive standard HDMI output from the Good News Guys MacBook, or the venue has ProPresenter 7 available."},{key:"merchandise",text:"The Good News Guys may sell merchandise before and after the show, and we can provide two to three tables in a visible, accessible location."},{key:"volunteers",text:"We can provide one volunteer to distribute glow sticks as guests arrive and one or tw
17o volunteers to help prevent children from entering or climbing onto the stage."},{key:"outdoor_covered",text:"We can provide a safe, covered performance area and an indoor or weather backup plan.",outdoorOnly:!0}],Gf=[{value:"yes",label:"Yes, we can provide this."},{value:"discuss",label:"We need to discuss this."}],Tu=[{title:"Wireless Microphones & In-Ear Monitors",items:["We can bring our own wireless microphone system and in-ear monitors if needed. If available, the venue may provide: two wireless headset packs and two wireless in-ear monitor packs."]},{title:"Presentation",items:["Our presentation is built in ProPresenter 7 and can be run from a church computer with ProPresenter 7 installed, or from our MacBook via standard HDMI output.","We will bring a team member to run the presentation. If you'd like to preload our slides into your ProPresenter system, please let us know — we can provide a current download link before the event."]},{title:"Security",label:"Recommended",items:["Our events draw many children and families. We highly recommend having a security team present to ensure a safe, welcoming environment for all."]},{title:"Show Flow",items:["Opening: We begin with a 5-minute countdown (hype video/music). Any welcome messages or announcements should happen before or during the countdown. After the countdown, our theme song plays and we run on stage to start the show!","Intermission: We will provide a few items to be given away during a short 5–10 minute intermission. The event coordinator, children's director, pastor, or another volunteer is welcome to come out and say a few words and give away the items.","Closing: Our theme song plays as we exit. An event coordinator, children's director, pastor, or volunteer is welcome to share closing remarks or instructions at this time."]},{title:"Hospitality Room",label:"Appreciated",items:["A small private space for prayer and preparation before the show is appreciated."]},{title:"Food & Hospitality",label:"Optional",items:["We are grateful for any hospitality offered but please don't feel obligated.","Allergies & Restrictions — Vinnie: Allergic to Red 40, Yellow 5 & 6, and Blue 1 food dyes. Please avoid foods with artificial coloring (e.g., Skittles, Twizzlers, certain sodas, colored frostings, etc.).","We enjoy: Pretzels, beef jerky, nuts, veggies, fresh fruit, pizza, pasta, soups, salads, sandwiches, burgers, chicken, turkey, beef, cheese, yogurt, and eggs."]}],Wf="I understand that our organization is responsible for having a weather plan and that the cancellation and rainout terms in this agreement still apply.",Qs=[{key:"confirm_info_accurate",text:"I have reviewed the agreed show fee, travel charges, deposit, balance, and cancellation terms."},{key:"agree_live_event_rider",text:"I have reviewed the performance, sound, access, and hosting responsibilities in the rider. I will contact the Good News Guys before signing if there is a requirement our organization may not be able to meet."},{key:"consent_electronic",text:"I have reviewed the recording, photography, and promotional-use terms."},{key:"authorized_to_sign",text:"I confirm that I am authorized to sign this agreement on behalf of the organization."},{key:"agree_live_show_agreement",text:"I agree to the complete Live Show Agreement and Event Rider."}],pa={name:"Sami Jo Sovis",email:"[email protected]",phone:"(989) 413-4514"},Hf=[{value:"Free to attend",label:"Free to attend"},{value:"Ticketed or paid admission",label:"Ticketed or paid admission"}],Vf=[{value:"Host organization",label:"Our organization will create and manage the registration page."},{value:"Good News Guys",label:"Good News Guys should create and manage the registration page."}],Du={"Free to attend":"Free to attend","Ticketed or paid admission":"Ticketed or paid admission",free_no_registration:"Free, no registration required",free_registration:"Free, registration required",ticketed:"Ticketed or paid admission",private:"Private or invitation-only",donation:"Free-will offering or donation event",not_finalized:"Not finalized yet"},Yf=[{value:"already_discussed",label:"We have already discussed this capacity with the Good News Guys booking team and received approval."}
17,{value:"need_to_discuss",label:"We need to discuss this capacity before signing."}],$f={already_discussed:"Already discussed and received approval",need_to_discuss:"Needs discussion before signing"},qr=500,wc="[email protected]";function Jf({open:n,onClose:t,onSuccess:e,booking:r}){const[a,s]=Je.useState(""),[h,l]=Je.useState(""),[c,d]=Je.useState(!1),[g,w]=Je.useState(!1),[k,m]=Je.useState("");if(!r)return null;const F=a.trim()&&h.trim()&&c,j=async()=>{if(!(!F||g)){w(!0),m("");try{const C=await Fi.submitStatementOfFaith({token:r.booking_token,email:r.primary_contact_email,representative_name:a.trim(),representative_title:h.trim(),representative_email:r.primary_contact_email}),y=C.data||C;y!=null&&y.success?(e({representative_name:a.trim(),acknowledgment_date:y.acknowledgment_date}),s(""),l(""),d(!1)):m((y==null?void 0:y.error)||"Submission failed. Please try again.")}catch(C){m((C==null?void 0:C.message)||"Submission failed. Please try again.")}finally{w(!1)}}};return p.jsx(ya,{open:n,onClose:t,children:p.jsxs("div",{className:"pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(io,{className:"w-6 h-6 text-[#FF1F53]"}),p.jsx("h2",{className:"text-lg sm:text-xl font-black text-[#051d70]",style:{fontFamily:"'Rubik', sans-serif"},children:"Statement of Faith"})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#2fc7ff]/5 border-2 border-[#051d70]/10 space-y-2",children:[p.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-[#051d70]/60",children:[p.jsx(xa,{className:"w-3 h-3"})," Read-only booking information"]}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-2",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Host Organization"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.host_organization_name})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Event Date"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.approved_event_date||"Not specified"})]})]})]}),k&&p.jsx("div",{className:"mb-4 p-3 rounded-xl bg-[#FF1F53]/10 border-2 border-[#FF1F53]/30",children:p.jsx("p",{className:"text-sm text-[#FF1F53] font-medium",children:k})}),p.jsxs("div",{className:"mb-5 p-5 rounded-2xl bg-white border-2 border-[#051d70]/10",children:[p.jsx("h3",{className:"text-base font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:da.title}),p.jsx("p",{className:"text-sm text-[#051d70]/70 italic mb-4",children:da.intro}),p.jsx("div",{className:"space-y-3",children:da.paragraphs.map((C,y)=>p.jsx("p",{className:"text-sm text-[#051d70] leading-relaxed",children:C},y))})]}),p.jsx("div",{className:"space-y-4",children:p.jsxs("div",{className:"p-4 rounded-2xl bg-[#fff22c]/15 border-2 border-[#fff22c]/50",children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70] mb-3",children:"Acknowledgment"}),p.jsx(pn,{label:"Authorized representative full name",required:!0,children:p.jsx(Un,{value:a,onChange:s,placeholder:"Full legal name"})}),p.jsx("div",{className:"mt-3",children:p.jsx(pn,{label:"Representative role or title",required:!0,children:p.jsx(Un,{value:h,onChange:l,placeholder:"e.g. Senior Pastor, Event Coordinator"})})}),p.jsxs("div",{className:"mt-3",children:[p.jsx("p",{className:"text-xs text-[#051d70]/60 mb-1.5",children:"Date of acknowledgment"}),p.jsx("div",{className:"px-4 py-3 rounded-xl border-2 border-[#051d70]/10 bg-[#051d70]/5 text-sm text-[#051d70]/70",children:new Date().toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})})]}),p.jsx("div",{className:"mt-3",children:p.jsx(Ka,{checked:c,onChange:d,label:Bu,required:!0})})]})}),p.jsxs("div",{className:"flex items-center justify-between mt-6 pt-5 border-t border-[#051d70]/10",children:[p.jsx("button",{type:"button",onClick:t,disabled:g,className:"inline-flex items-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors disabled:opacity-40 min-h-[44px]",children:"Close"}),p.jsx("button",{type:"button",onClick:j,disabled:!F||g,className:"inline-flex items-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-6 py-3.5 rounded-full hover:scale-105 transition-transform disabled:opacity-50 disabled:hover:scale-100 min-h-[44px]",children:g?p.jsxs(p.Fragment,{children:[p.jsx(zr,{className:"w-4 h-4 animate-spin"})," Confirming..."]}):p.jsxs(p.Fragment,{children:[p.jsx(Ur,{className:"w-4 h-4"})," Confirm Agreement"]})})]})]})})}function At(n){"@babel/helpers - typeof";return At=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},At(n)}var ar=Uint8Array,zn=Uint16Array,Fl=Int32Array,Cl=new ar([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]),El=new ar([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]),_c=new ar([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),Mu=function(n,t){for(var e=new zn(31),r=0;r<31;++r)e[r]=t+=1<<n[r-1];for(var a=new Fl(e[30]),r=1;r<30;++r)for(var s=e[r];s<e[r+1];++s)a[s]=s-e[r]<<5|r;return{b:e,r:a}},qu=Mu(Cl,2),Kf=qu.b,bl=qu.r;Kf[28]=258,bl[258]=28;var Xf=Mu(El,0),Nc=Xf.r,vl=new zn(32768);for(var Bt=0;Bt<32768;++Bt){var ii=(Bt&43690)>>1|(Bt&21845)<<1;ii=(ii&52428)>>2|(ii&13107)<<2,ii=(ii&61680)>>4|(ii&3855)<<4,vl[Bt]=((ii&65280)>>8|(ii&255)<<8)>>1}var $a=(function(n,t,e){for(var r=n.length,a=0,s=new zn(t);a<r;++a)n[a]&&++s[n[a]-1];var h=new zn(t);for(a=1;a<t;++a)h[a]=h[a-1]+s[a-1]<<1;var l;if(e){l=new zn(1<<t);var c=15-t;for(a=0;a<r;++a)if(n[a])for(var d=a<<4|n[a],g=t-n[a],w=h[n[a]-1]++<<g,k=w|(1<<g)-1;w<=k;++w)l[vl[w]>>c]=d}else for(l=new zn(r),a=0;a<r;++a)n[a]&&(l[a]=vl[h[n[a]-1]++]>>15-n[a]);return l}),Ei=new ar(288);for(var Bt=0;Bt<144;++Bt)Ei[Bt]=8;for(var Bt=144;Bt<256;++Bt)Ei[Bt]=9;for(var Bt=256;Bt<280;++Bt)Ei[Bt]=7;for(var Bt=280;Bt<288;++Bt)Ei[Bt]=8;var eo=new ar(32);for(var Bt=0;Bt<32;++Bt)eo[Bt]=5;var Zf=$a(Ei,9,0),Qf=$a(eo,5,0),Uu=function(n){return(n+7)/8|0},ed=function(n,t,e){return(e==null||e>n.length)&&(e=n.length),new ar(n.subarray(t,e))}
vendor: 12,996 bytes, lines 17-18
17,Tr=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8},Ha=function(n,t,e){e<<=t&7;var r=t/8|0;n[r]|=e,n[r+1]|=e>>8,n[r+2]|=e>>16},$o=function(n,t){for(var e=[],r=0;r<n.length;++r)n[r]&&e.push({s:r,f:n[r]});var a=e.length,s=e.slice();if(!a)return{t:Gu,l:0};if(a==1){var h=new ar(e[0].s+1);return h[e[0].s]=1,{t:h,l:1}}e.sort(function(ae,ge){return ae.f-ge.f}),e.push({s:-1,f:25001});var l=e[0],c=e[1],d=0,g=1,w=2;for(e[0]={s:-1,f:l.f+c.f,l,r:c};g!=a-1;)l=e[e[d].f<e[w].f?d++:w++],c=e[d!=g&&e[d].f<e[w].f?d++:w++],e[g++]={s:-1,f:l.f+c.f,l,r:c};for(var k=s[0].s,r=1;r<a;++r)s[r].s>k&&(k=s[r].s);var m=new zn(k+1),F=xl(e[g-1],m,0);if(F>t){var r=0,j=0,C=F-t,y=1<<C;for(s.sort(function(ge,se){return m[se.s]-m[ge.s]||ge.f-se.f});r<a;++r){var z=s[r].s;if(m[z]>t)j+=y-(1<<F-m[z]),m[z]=t;else break}for(j>>=C;j>0;){var D=s[r].s;m[D]<t?j-=1<<t-m[D]++-1:++r}for(;r>=0&&j;--r){var q=s[r].s;m[q]==t&&(--m[q],++j)}F=t}return{t:new ar(m),l:F}},xl=function(n,t,e){return n.s==-1?Math.max(xl(n.l,t,e+1),xl(n.r,t,e+1)):t[n.s]=e},Ac=function(n){for(var t=n.length;t&&!n[--t];);for(var e=new zn(++t),r=0,a=n[0],s=1,h=function(c){e[r++]=c},l=1;l<=t;++l)if(n[l]==a&&l!=t)++s;else{if(!a&&s>2){for(;s>138;s-=138)h(32754);s>2&&(h(s>10?s-11<<5|28690:s-3<<5|12305),s=0)}else if(s>3){for(h(a),--s;s>6;s-=6)h(8304);s>2&&(h(s-3<<5|8208),s=0)}for(;s--;)h(a);s=1,a=n[l]}return{c:e.subarray(0,r),n:t}},Va=function(n,t){for(var e=0,r=0;r<t.length;++r)e+=n[r]*t[r];return e},zu=function(n,t,e){var r=e.length,a=Uu(t+2);n[a]=r&255,n[a+1]=r>>8,n[a+2]=n[a]^255,n[a+3]=n[a+1]^255;for(var s=0;s<r;++s)n[a+s+4]=e[s];return(a+4+r)*8},Sc=function(n,t,e,r,a,s,h,l,c,d,g){Tr(t,g++,e),++a[256];for(var w=$o(a,15),k=w.t,m=w.l,F=$o(s,15),j=F.t,C=F.l,y=Ac(k),z=y.c,D=y.n,q=Ac(j),ae=q.c,ge=q.n,se=new zn(19),J=0;J<z.length;++J)++se[z[J]&31];for(var J=0;J<ae.length;++J)++se[ae[J]&31];for(var U=$o(se,7),Q=U.t,L=U.l,O=19;O>4&&!Q[_c[O-1]];--O);var V=d+5<<3,W=Va(a,Ei)+Va(s,eo)+h,ie=Va(a,k)+Va(s,j)+h+14+3*O+Va(se,Q)+2*se[16]+3*se[17]+7*se[18];if(c>=0&&V<=W&&V<=ie)return zu(t,g,n.subarray(c,c+d));var oe,ce,re,de;if(Tr(t,g,1+(ie<W)),g+=2,ie<W){oe=$a(k,m,0),ce=k,re=$a(j,C,0),de=j;var Ae=$a(Q,L,0);Tr(t,g,D-257),Tr(t,g+5,ge-1),Tr(t,g+10,O-4),g+=14;for(var J=0;J<O;++J)Tr(t,g+3*J,Q[_c[J]]);g+=3*O;for(var xe=[z,ae],A=0;A<2;++A)for(var R=xe[A],J=0;J<R.length;++J){var M=R[J]&31;Tr(t,g,Ae[M]),g+=Q[M],M>15&&(Tr(t,g,R[J]>>5&127),g+=R[J]>>12)}}else oe=Zf,ce=Ei,re=Qf,de=eo;for(var J=0;J<l;++J){var G=r[J];if(G>255){var M=G>>18&31;Ha(t,g,oe[M+257]),g+=ce[M+257],M>7&&(Tr(t,g,G>>23&31),g+=Cl[M]);var $=G&31;Ha(t,g,re[$]),g+=de[$],$>3&&(Ha(t,g,G>>5&8191),g+=El[$])}else Ha(t,g,oe[G]),g+=ce[G]}return Ha(t,g,oe[256]),g+ce[256]},td=new Fl([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),Gu=new ar(0),nd=function(n,t,e,r,a,s){var h=s.z||n.length,l=new ar(r+h+5*(1+Math.ceil(h/7e3))+a),c=l.subarray(r,l.length-a),d=s.l,g=(s.r||0)&7;if(t){g&&(c[0]=s.r>>3);for(var w=td[t-1],k=w>>13,m=w&8191,F=(1<<e)-1,j=s.p||new zn(32768),C=s.h||new zn(F+1),y=Math.ceil(e/3),z=2*y,D=function(qe){return(n[qe]^n[qe+1]<<y^n[qe+2]<<z)&F},q=new Fl(25e3),ae=new zn(288),ge=new zn(32),se=0,J=0,U=s.i||0,Q=0,L=s.w||0,O=0;U+2<h;++U){var V=D(U),W=U&32767,ie=C[V];if(j[W]=ie,C[V]=W,L<=U){var oe=h-U;if((se>7e3||Q>24576)&&(oe>423||!d)){g=Sc(n,c,0,q,ae,ge,J,Q,O,U-O,g),Q=se=J=0,O=U;for(var ce=0;ce<286;++ce)ae[ce]=0;for(var ce=0;ce<30;++ce)ge[ce]=0}var re=2,de=0,Ae=m,xe=W-ie&32767;if(oe>2&&V==D(U-xe))for(var A=Math.min(k,oe)-1,R=Math.min(32767,U),M=Math.min(258,oe);xe<=R&&--Ae&&W!=ie;){if(n[U+re]==n[U+re-xe]){for(var G=0;G<M&&n[U+G]==n[U+G-xe];++G);if(G>re){if(re=G,de=xe,G>A)break;for(var $=Math.min(xe,G-2),ee=0,ce=0;ce<$;++ce){var le=U-xe+ce&32767,ue=j[le],be=le-ue&32767;be>ee&&(ee=be,ie=le)}}}W=ie,ie=j[W],xe+=W-ie&32767}if(de){q[Q++]=268435456|bl[re]<<18|Nc[de];var Ne=bl[re]&31,ke=Nc[de]&31;J+=Cl[Ne]+El[ke],++ae[257+Ne],++ge[ke],L=U+re,++se}else q[Q++]=n[U],++ae[n[U]]}}for(U=Math.max(U,L);U<h;++U)q[Q++]=n[U],++ae[n[U]];g=Sc(n,c,d,q,ae,ge,J,Q,O,U-O,g),d||(s.r=g&7|c[g/8|0]<<3,g-=7,s.h=C,s.p=j,s.i=U,s.w=L)}else{for(var U=s.w||0;U<h+d;U+=65535){var je=U+65535;je>=h&&(c[g/8|0]=d,je=h),g=zu(c,g+1,n.subarray(U,je))}s.i=h}return ed(l,0,r+Uu(g)+a)},Wu=function(){var n=1,t=0;return{p:function(e){for(var r=n,a=t,s=e.length|0,h=0;h!=s;){for(var l=Math.min(h+2655,s);h<l;++h)a+=r+=e[h];r=(r&65535)+15*(r>>16),a=(a&65535)+15*(a>>16)}n=r,t=a},d:function(){return n%=65521,t%=65521,(n&255)<<24|(n&65280)<<8|(t&255)<<8|t>>8}}},rd=function(n,t,e,r,a){if(!a&&(a={l:1},t.dictionary)){var s=t.dictionary.subarray(-32768),h=new ar(s.length+n.length);h.set(s),h.set(n,s.length),n=h,a.w=s.length}return nd(n,t.level==null?6:t.level,t.mem==null?a.l?Math.ceil(Math.max(8,Math.min(13,Math.log(n.length)))*1.5):20:12+t.mem,e,r,a)},Hu=function(n,t,e){for(;e;++t)n[t]=e,e>>>=8},id=function(n,t){var e=t.level,r=e==0?0:e<6?1:e==9?3:2;if(n[0]=120,n[1]=r<<6|(t.dictionary&&32),n[1]|=31-(n[0]<<8|n[1])%31,t.dictionary){var a=Wu();a.p(t.dictionary),Hu(n,2,a.d())}};function yl(n,t){t||(t={});var e=Wu();e.p(n);var r=rd(n,t,t.dictionary?6:2,4);return id(r,t),Hu(r,r.length-4,e.d()),r}var ad=typeof TextDecoder<"u"&&new TextDecoder,sd=0;try{ad.decode(Gu,{stream:!0}),sd=1}catch{}function od(n){if(Array.isArray(n))return n}function ld(n,t){var e=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(e!=null){var r,a,s,h,l=[],c=!0,d=!1;try{if(s=(e=e.call(n)).next,t!==0)for(;!(c=(r=s.call(e)).done)&&(l.push(r.value),l.length!==t);c=!0);}catch(g){d=!0,a=g}finally{try{if(!c&&e.return!=null&&(h=e.return(),Object(h)!==h))return}finally{if(d)throw a}}return l}}function Lc(n,t){(t==null||t>n.length)&&(t=n.length);for(var e=0,r=Array(t);e<t;e++)r[e]=n[e];return r}function cd(n,t){if(n){if(typeof n=="string")return Lc(n,t);var e={}.toString.call(n).slice(8,-1);return e==="Object"&&n.constructor&&(e=n.constructor.name),e==="Map"||e==="Set"?Array.from(n):e==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?Lc(n,t):void 0}}function ud(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
18In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function jc(n,t){return od(n)||ld(n,t)||cd(n,t)||ud()}function kc(n,t="utf8"){return new TextDecoder(t).decode(n)}const hd=new TextEncoder;function fd(n){return hd.encode(n)}const dd=1024*8,pd=(()=>{const n=new Uint8Array(4),t=new Uint32Array(n.buffer);return!((t[0]=1)&n[0])})(),Jo={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array};class Il{constructor(t=dd,e={}){Nt(this,"buffer");Nt(this,"byteLength");Nt(this,"byteOffset");Nt(this,"length");Nt(this,"offset");Nt(this,"lastWrittenByte");Nt(this,"littleEndian");Nt(this,"_data");Nt(this,"_mark");Nt(this,"_marks");let r=!1;typeof t=="number"?t=new ArrayBuffer(t):(r=!0,this.lastWrittenByte=t.byteLength);const a=e.offset?e.offset>>>0:0,s=t.byteLength-a;let h=a;(ArrayBuffer.isView(t)||t instanceof Il)&&(t.byteLength!==t.buffer.byteLength&&(h=t.byteOffset+a),t=t.buffer),r?this.lastWrittenByte=s:this.lastWrittenByte=0,this.buffer=t,this.length=s,this.byteLength=s,this.byteOffset=h,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,h,s),this._mark=0,this._marks=[]}available(t=1){return this.offset+t<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(t=1){return this.offset+=t,this}back(t=1){return this.offset-=t,this}seek(t){return this.offset=t,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){const t=this._marks.pop();if(t===void 0)throw new Error("Mark stack empty");return this.seek(t),this}rewind(){return this.offset=0,this}ensureAvailable(t=1){if(!this.available(t)){const r=(this.offset+t)*2,a=new Uint8Array(r);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=r,this.byteLength=r,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(t=1){return this.readArray(t,"uint8")}readArray(t,e){const r=Jo[e].BYTES_PER_ELEMENT*t,a=this.byteOffset+this.offset,s=this.buffer.slice(a,a+r);if(this.littleEndian===pd&&e!=="uint8"&&e!=="int8"){const l=new Uint8Array(this.buffer.slice(a,a+r));l.reverse();const c=new Jo[e](l.buffer);return this.offset+=r,c.reverse(),c}const h=new Jo[e](s);return this.offset+=r,h}readInt16(){const t=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,t}readUint16(){const t=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,t}readInt32(){const t=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,t}readUint32(){const t=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat32(){const t=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,t}readFloat64(){const t=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,t}readBigInt64(){const t=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,t}readBigUint64(){const t=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,t}readChar(){return String.fromCharCode(this.readInt8())}readChars(t=1){let e="";for(let r=0;r<t;r++)e+=this.readChar();return e}readUtf8(t=1){return kc(this.readBytes(t))}decodeText(t=1,e="utf8"){return kc(this.readBytes(t),e)}writeBoolean(t){return this.writeUint8(t?255:0),this}writeInt8(t){return this.ensureAvailable(1),this._data.setInt8(this.offset++,t),this._updateLastWrittenByte(),this}writeUint8(t){return this.ensureAvailable(1),this._data.setUint8(this.offset++,t),this._updateLastWrittenByte(),this}writeByte(t){return this.writeUint8(t)}writeBytes(t){this.ensureAvailable(t.length);for(let e=0;e<t.length;e++)this._data.setUint8(this.offset++,t[e]);return this._updateLastWrittenByte(),this}writeInt16(t){return this.ensureAvailable(2),this._data.setInt16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeUint16(t){return this.ensureAvailable(2),this._data.setUint16(this.offset,t,this.littleEndian),this.offset+=2,this._updateLastWrittenByte(),this}writeInt32(t){return this.ensureAvailable(4),this._data.setInt32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeUint32(t){return this.ensureAvailable(4),this._data.setUint32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat32(t){return this.ensureAvailable(4),this._data.setFloat32(this.offset,t,this.littleEndian),this.offset+=4,this._updateLastWrittenByte(),this}writeFloat64(t){return this.ensureAvailable(8),this._data.setFloat64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigInt64(t){return this.ensureAvailable(8),this._data.setBigInt64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeBigUint64(t){return this.ensureAvailable(8),this._data.setBigUint64(this.offset,t,this.littleEndian),this.offset+=8,this._updateLastWrittenByte(),this}writeChar(t){return this.writeUint8(t.charCodeAt(0))}writeChars(t){for(let e=0;e<t.length;e++)this.writeUint8(t.charCodeAt(e));return this}writeUtf8(t){return this.writeBytes(fd(t))}toArray(){return new Uint8Array(this.buffer,this.byteOffset,this.lastWrittenByte)}getWrittenByteLength(){return this.lastWrittenByte-this.byteOffset}_updateLastWrittenByte(){this.offset>this.lastWrittenByte&&(this.lastWrittenByte=this.offset)}}function wa(n){let t=n.length;for(;--t>=0;)n[t]=0}const md=3,gd=258,Vu=29,bd=256,vd=bd+1+Vu,Yu=30,xd=512,yd=new Array((vd+2)*2);wa(yd);const wd=new Array(Yu*2);wa(wd);const _d=new Array(xd);wa(_d);const Nd=new Array(gd-md+1);wa(Nd);const Ad=new Array(Vu);wa(Ad);const Sd=new Array(Yu);wa(Sd);const Ld=(n,t,e,r)=>{let a=n&65535|0,s=n>>>16&65535|0,h=0;for(;e!==0;){h=e>2e3?2e3:e,e-=h;do a=a+t[r++]|0,s=s+a|0;while(--h);a%=65521,s%=65521}return a|s<<16|0};var wl=Ld;const jd=()=>{let n,t=[];for(var e=0;e<256;e++){n=e;for(var r=0;r<8;r++)n=n&1?3988292384^n>>>1:n>>>1;t[e]=n}return t},kd=new Uint32Array(jd()),Pd=(n,t,e,r)=>{const a=kd,s=r+e;n^=-1;for(let h=r;h<s;h++)n=n>>>8^a[(n^t[h])&255];return n^-1};var vr=Pd,_l={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},$u={Z_NO_FLUSH:0,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ER
vendor: 12,375 bytes, line 18
18ROR:-5,Z_DEFLATED:8};const Fd=(n,t)=>Object.prototype.hasOwnProperty.call(n,t);var Cd=function(n){const t=Array.prototype.slice.call(arguments,1);for(;t.length;){const e=t.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(const r in e)Fd(e,r)&&(n[r]=e[r])}}return n},Ed=n=>{let t=0;for(let r=0,a=n.length;r<a;r++)t+=n[r].length;const e=new Uint8Array(t);for(let r=0,a=0,s=n.length;r<s;r++){let h=n[r];e.set(h,a),a+=h.length}return e},Ju={assign:Cd,flattenChunks:Ed};let Ku=!0;try{String.fromCharCode.apply(null,new Uint8Array(1))}catch{Ku=!1}const Za=new Uint8Array(256);for(let n=0;n<256;n++)Za[n]=n>=252?6:n>=248?5:n>=240?4:n>=224?3:n>=192?2:1;Za[254]=Za[254]=1;var Id=n=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(n);let t,e,r,a,s,h=n.length,l=0;for(a=0;a<h;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<h&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),l+=e<128?1:e<2048?2:e<65536?3:4;for(t=new Uint8Array(l),s=0,a=0;s<l;a++)e=n.charCodeAt(a),(e&64512)===55296&&a+1<h&&(r=n.charCodeAt(a+1),(r&64512)===56320&&(e=65536+(e-55296<<10)+(r-56320),a++)),e<128?t[s++]=e:e<2048?(t[s++]=192|e>>>6,t[s++]=128|e&63):e<65536?(t[s++]=224|e>>>12,t[s++]=128|e>>>6&63,t[s++]=128|e&63):(t[s++]=240|e>>>18,t[s++]=128|e>>>12&63,t[s++]=128|e>>>6&63,t[s++]=128|e&63);return t};const Od=(n,t)=>{if(t<65534&&n.subarray&&Ku)return String.fromCharCode.apply(null,n.length===t?n:n.subarray(0,t));let e="";for(let r=0;r<t;r++)e+=String.fromCharCode(n[r]);return e};var Rd=(n,t)=>{const e=t||n.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(n.subarray(0,t));let r,a;const s=new Array(e*2);for(a=0,r=0;r<e;){let h=n[r++];if(h<128){s[a++]=h;continue}let l=Za[h];if(l>4){s[a++]=65533,r+=l-1;continue}for(h&=l===2?31:l===3?15:7;l>1&&r<e;)h=h<<6|n[r++]&63,l--;if(l>1){s[a++]=65533;continue}h<65536?s[a++]=h:(h-=65536,s[a++]=55296|h>>10&1023,s[a++]=56320|h&1023)}return Od(s,a)},Bd=(n,t)=>{t=t||n.length,t>n.length&&(t=n.length);let e=t-1;for(;e>=0&&(n[e]&192)===128;)e--;return e<0||e===0?t:e+Za[n[e]]>t?e:t},Nl={string2buf:Id,buf2string:Rd,utf8border:Bd};function Td(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var Dd=Td;const Ts=16209,Md=16191;var qd=function(t,e){let r,a,s,h,l,c,d,g,w,k,m,F,j,C,y,z,D,q,ae,ge,se,J,U,Q;const L=t.state;r=t.next_in,U=t.input,a=r+(t.avail_in-5),s=t.next_out,Q=t.output,h=s-(e-t.avail_out),l=s+(t.avail_out-257),c=L.dmax,d=L.wsize,g=L.whave,w=L.wnext,k=L.window,m=L.hold,F=L.bits,j=L.lencode,C=L.distcode,y=(1<<L.lenbits)-1,z=(1<<L.distbits)-1;e:do{F<15&&(m+=U[r++]<<F,F+=8,m+=U[r++]<<F,F+=8),D=j[m&y];t:for(;;){if(q=D>>>24,m>>>=q,F-=q,q=D>>>16&255,q===0)Q[s++]=D&65535;else if(q&16){ae=D&65535,q&=15,q&&(F<q&&(m+=U[r++]<<F,F+=8),ae+=m&(1<<q)-1,m>>>=q,F-=q),F<15&&(m+=U[r++]<<F,F+=8,m+=U[r++]<<F,F+=8),D=C[m&z];n:for(;;){if(q=D>>>24,m>>>=q,F-=q,q=D>>>16&255,q&16){if(ge=D&65535,q&=15,F<q&&(m+=U[r++]<<F,F+=8,F<q&&(m+=U[r++]<<F,F+=8)),ge+=m&(1<<q)-1,ge>c){t.msg="invalid distance too far back",L.mode=Ts;break e}if(m>>>=q,F-=q,q=s-h,ge>q){if(q=ge-q,q>g&&L.sane){t.msg="invalid distance too far back",L.mode=Ts;break e}if(se=0,J=k,w===0){if(se+=d-q,q<ae){ae-=q;do Q[s++]=k[se++];while(--q);se=s-ge,J=Q}}else if(w<q){if(se+=d+w-q,q-=w,q<ae){ae-=q;do Q[s++]=k[se++];while(--q);if(se=0,w<ae){q=w,ae-=q;do Q[s++]=k[se++];while(--q);se=s-ge,J=Q}}}else if(se+=w-q,q<ae){ae-=q;do Q[s++]=k[se++];while(--q);se=s-ge,J=Q}for(;ae>2;)Q[s++]=J[se++],Q[s++]=J[se++],Q[s++]=J[se++],ae-=3;ae&&(Q[s++]=J[se++],ae>1&&(Q[s++]=J[se++]))}else{se=s-ge;do Q[s++]=Q[se++],Q[s++]=Q[se++],Q[s++]=Q[se++],ae-=3;while(ae>2);ae&&(Q[s++]=Q[se++],ae>1&&(Q[s++]=Q[se++]))}}else if((q&64)===0){D=C[(D&65535)+(m&(1<<q)-1)];continue n}else{t.msg="invalid distance code",L.mode=Ts;break e}break}}else if((q&64)===0){D=j[(D&65535)+(m&(1<<q)-1)];continue t}else if(q&32){L.mode=Md;break e}else{t.msg="invalid literal/length code",L.mode=Ts;break e}break}}while(r<a&&s<l);ae=F>>3,r-=ae,F-=ae<<3,m&=(1<<F)-1,t.next_in=r,t.next_out=s,t.avail_in=r<a?5+(a-r):5-(r-a),t.avail_out=s<l?257+(l-s):257-(s-l),L.hold=m,L.bits=F};const oa=15,Pc=852,Fc=592,Cc=0,Ko=1,Ec=2,Ud=new Uint16Array([3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0]),zd=new Uint8Array([16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78]),Gd=new Uint16Array([1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0]),Wd=new Uint8Array([16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64]),Hd=(n,t,e,r,a,s,h,l)=>{const c=l.bits;let d=0,g=0,w=0,k=0,m=0,F=0,j=0,C=0,y=0,z=0,D,q,ae,ge,se,J=null,U;const Q=new Uint16Array(oa+1),L=new Uint16Array(oa+1);let O=null,V,W,ie;for(d=0;d<=oa;d++)Q[d]=0;for(g=0;g<r;g++)Q[t[e+g]]++;for(m=c,k=oa;k>=1&&Q[k]===0;k--);if(m>k&&(m=k),k===0)return a[s++]=1<<24|64<<16|0,a[s++]=1<<24|64<<16|0,l.bits=1,0;for(w=1;w<k&&Q[w]===0;w++);for(m<w&&(m=w),C=1,d=1;d<=oa;d++)if(C<<=1,C-=Q[d],C<0)return-1;if(C>0&&(n===Cc||k!==1))return-1;for(L[1]=0,d=1;d<oa;d++)L[d+1]=L[d]+Q[d];for(g=0;g<r;g++)t[e+g]!==0&&(h[L[t[e+g]]++]=g);if(n===Cc?(J=O=h,U=20):n===Ko?(J=Ud,O=zd,U=257):(J=Gd,O=Wd,U=0),z=0,g=0,d=w,se=s,F=m,j=0,ae=-1,y=1<<m,ge=y-1,n===Ko&&y>Pc||n===Ec&&y>Fc)return 1;for(;;){V=d-j,h[g]+1<U?(W=0,ie=h[g]):h[g]>=U?(W=O[h[g]-U],ie=J[h[g]-U]):(W=96,ie=0),D=1<<d-j,q=1<<F,w=q;do q-=D,a[se+(z>>j)+q]=V<<24|W<<16|ie|0;while(q!==0);for(D=1<<d-1;z&D;)D>>=1;if(D!==0?(z&=D-1,z+=D):z=0,g++,--Q[d]===0){if(d===k)break;d=t[e+h[g]]}if(d>m&&(z&ge)!==ae){for(j===0&&(j=m),se+=w,F=d-j,C=1<<F;F+j<k&&(C-=Q[F+j],!(C<=0));)F++,C<<=1;if(y+=1<<F,n===Ko&&y>Pc||n===Ec&&y>Fc)return 1;ae=z&ge,a[ae]=m<<24|F<<16|se-s|0}}return z!==0&&(a[se+z]=d-j<<24|64<<16|0),l.bits=m,0};var Ja=Hd;const Vd=0,Xu=1,Zu=2,{Z_FINISH:Ic,Z_BLOCK:Yd,Z_TREES:Ds,Z_OK:Ii,Z_STREAM_END:$d,Z_NEED_DICT:Jd,Z_STREAM_ERROR:Kn,Z_DATA_ERROR:Qu,Z_MEM_ERROR:eh,Z_BUF_ERROR:Kd,Z_DEFLATED:Oc}=$u,ao=16180,Rc=16181,Bc=16182,Tc=16183,Dc=16184,Mc=16185,qc=16186,Uc=16187,zc=16188,Gc=16189,to=16190,Dr=16191,Xo=16192,Wc=16193,Zo=16194,Hc=16195,Vc=16196,Yc=16197,$c=16198,Ms=16199,qs=16200,Jc=16201,Kc=16202,Xc=16203,Zc=16204,Qc=16205,Qo=16206,eu=16207,tu=16208,Mt=16209,th=16210,nh=16211,Xd=852,Zd=592,Qd=15,e1=Qd,nu=n=>(n>>>24&255)+(n>>>8&65280)+((n&65280)<<8)+((n&255)<<24);function t1(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}const Ri=n=>{if(!n)return 1;const t=n.state;return!t||t.strm!==n||t.mode<ao||t.mode>nh?1:0},rh=n=>{if(Ri(n))return Kn;const t=n.state;return n.total_in=n.total_out=t.total=0,n.msg="",t.wrap&&(n.adler=t.wrap&1),t.mode=ao,t.last=0,t.havedict=0,t.flags=-1,t.dmax=32768,t.head=null,t.hold=0,t.bits=0,t.lencode=t.lendyn=new Int32Array(Xd),t.distcode=t.distdyn=new Int32Array(Zd),t.sane=1,t.back=-1,Ii},ih=n=>{if(Ri(n))return Kn;const t=n.state;return t.wsize=0,t.whave=0,t.wnext=0,rh(n)},ah=(n,t)=>{let e;if(Ri(n))return Kn;const r=n.state;return t<0?(e=0,t=-t):(e=(t>>4)+5,t<48&&(t&=15)),t&&(t<8||t>15)?Kn:(r.window!==null&&r.wbits!==t&&(r.window=null),r.wrap=e,r.wbits=t,ih(n))},sh=(n,t)=>{if(!n)return Kn;const e=new t1;n.state=e,e.strm=n,e.window=null,e.mode=ao;const r=ah(n,t);return r!==Ii&&(n.state=null),r},n1=n=>sh(n,e1);let ru=!0,el,tl;const r1=n=>{if(ru){el=new Int32Array(512),tl=new Int32Array(32);let t=0;for(;t<144;)n.lens[t++]=8;for(;t<256;)n.lens[t++]=9;for(;t<280;)n.lens[t++]=7;for(;t<288;)n.lens[t++]=8;for(Ja(Xu,n.lens,0,288,el,0,n.work,{bits:9}),t=0;t<32;)n.lens[t++]=5;Ja(Zu,n.lens,0,32,tl,0,n.work,{bits:5}),ru=!1}n.lencode=el,n.lenbits=9,n.distcode=tl,n.distbits=5},oh=(n,t,e,r)=>{let a;const s=n.state;return s.window===null&&(s.wsize=1<<s.wbits,s.wnext=0,s.whave=0,s.window=new Uint8Array(s.wsize)),r>=s.wsize?(s.window.set(t.subarray(e-s.wsize,e),0),s.wnext=0,s.whave=s.wsize):(a=s.wsize-s.wnext,a>r&&(a=r),s.window.set(t.subarray(e-r,e-r+a),s.wnext),r-=a,r?(s.window.set(t.subarray(e-r,e),0),s.wnext=r,s.whave=s.wsize):(s.wnext+=a,s.wnext===s.wsize&&(s.wnext=0),s.whave<s.wsize&&(s.whave+=a))),0},i1=(n,t)=>{let e,r,a,s,h,l,c,d,g,w,k,m,F,j,C=0,y,z,D,q,ae,ge,se,J;const U=new Uint8Array(4);let Q,L;const O=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Ri(n)||!n.output||!n.input&&n.avail_in!==0)return Kn;e=n.state,e.mode===Dr&&(e.mode=Xo),h=n.next_out,a=n.output,c=n.avail_out,s=n.next_in,r=n.input,l=n.avail_in,d=e.hold,g=e.bits,w=l,k=c,J=Ii;e:for(;;)switch(e.mode){case ao:if(e.wrap===0){e.mode=Xo;break}for(;g<16;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(e.wrap&2&&d===35615){e.wbits===0&&(e.wbits=15),e.check=0,U[0]=d&255,U[1]=d>>>8&255,e.check=vr(e.check,U,2,0),d=0,g=0,e.mode=Rc;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){n.msg="incorrect header check",e.mode=Mt;break}if((d&15)!==Oc){n.msg="unknown compression method",e.mode=Mt;break}if(d>>>=4,g-=4,se=(d&15)+8,e.wbits===0&&(e.wbits=se),se>15||se>e.wbits){n.msg="invalid window size",e.mode=Mt;break}e.dmax=1<<e.wbits,e.flags=0,n.adler=e.check=1,e.mode=d&512?Gc:Dr,d=0,g=0;break;case Rc:for(;g<16;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(e.flags=d,(e.flags&255)!==Oc){n.msg="unknown compression method",e.mode=Mt;break}if(e.flags&57344){n.msg="unknown header flags set",e.mode=Mt;break}e.head&&(e.head.text=d>>8&1),e.flags&512&&e.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,e.check=vr(e.check,U,2,0)),d=0,g=0,e.mode=Bc;case Bc:for(;g<32;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.head&&(e.head.time=d),e.flags&512&&e.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,U[2]=d>>>16&255,U[3]=d>>>24&255,e.check=vr(e.check,U,4,0)),d=0,g=0,e.mode=Tc;case Tc:for(;g<16;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.head&&(e.head.xflags=d&255,e.head.os=d>>8),e.flags&512&&e.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,e.check=vr(e.check,U,2,0)),d=0,g=0,e.mode=Dc;case Dc:if(e.flags&1024){for(;g<16;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.length=d,e.head&&(e.head.extra_len=d),e.flags&512&&e.wrap&4&&(U[0]=d&255,U[1]=d>>>8&255,e.check=vr(e.check,U,2,0)),d=0,g=0}else e.head&&(e.head.extra=null);e.mode=Mc;case Mc:if(e.flags&1024&&(m=e.length,m>l&&(m=l),m&&(e.head&&(se=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(r.subarray(s,s+m),se)),e.flags&512&&e.wrap&4&&(e.check=vr(e.check,r,m,s)),l-=m,s+=m,e.length-=m),e.length))break e;e.length=0,e.mode=qc;case qc:if(e.flags&2048){if(l===0)break e;m=0;do se=r[s+m++],e.head&&se&&e.length<65536&&(e.head.name+=String.fromCharCode(se));while(se&&m<l);if(e.flags&512&&e.wrap&4&&(e.check=vr(e.check,r,m,s)),l-=m,s+=m,se)break e}else e.head&&(e.head.name=null);e.length=0,e.mode=Uc;case Uc:if(e.flags&4096){if(l===0)break e;m=0;do se=r[s+m++],e.head&&se&&e.length<65536&&(e.head.comment+=String.fromCharCode(se));while(se&&m<l);if(e.flags&512&&e.wrap&4&&(e.check=vr(e.check,r,m,s)),l-=m,s+=m,se)break e}else e.head&&(e.head.comment=null);e.mode=zc;case zc:if(e.flags&512){for(;g<16;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(e.wrap&4&&d!==(e.check&65535)){n.msg="header crc mismatch",e.mode=Mt;break}d=0,g=0}e.head&&(e.head.hcrc=e.flags>>9&1,e.head.done=!0),n.adler=e.check=0,e.mode=Dr;break;case Gc:for(;g<32;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}n.adler=e.check=nu(d),d=0,g=0,e.mode=to;case to:if(e.havedict===0)return n.next_out=h,n.avail_out=c,n.next_in=s,n.avail_in=l,e.hold=d,e.bits=g,Jd;n.adler=e.check=1,e.mode=Dr;case Dr:if(t===Yd||t===Ds)break e;case Xo:if(e.last){d>>>=g&7,g-=g&7,e.mode=Qo;break}for(;g<3;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}switch(e.last=d&1,d>>>=1,g-=1,d&3){case 0:e.mode=Wc;break;case 1:if(r1(e),e.mode=Ms,t===Ds){d>>>=2,g-=2;break e}break;case 2:e.mode=Vc;break;case 3:n.msg="invalid block type",e.mode=Mt}d>>>=2,g-=2;break;
vendor: 5,106 bytes, line 18
18case Wc:for(d>>>=g&7,g-=g&7;g<32;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if((d&65535)!==(d>>>16^65535)){n.msg="invalid stored block lengths",e.mode=Mt;break}if(e.length=d&65535,d=0,g=0,e.mode=Zo,t===Ds)break e;case Zo:e.mode=Hc;case Hc:if(m=e.length,m){if(m>l&&(m=l),m>c&&(m=c),m===0)break e;a.set(r.subarray(s,s+m),h),l-=m,s+=m,c-=m,h+=m,e.length-=m;break}e.mode=Dr;break;case Vc:for(;g<14;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(e.nlen=(d&31)+257,d>>>=5,g-=5,e.ndist=(d&31)+1,d>>>=5,g-=5,e.ncode=(d&15)+4,d>>>=4,g-=4,e.nlen>286||e.ndist>30){n.msg="too many length or distance symbols",e.mode=Mt;break}e.have=0,e.mode=Yc;case Yc:for(;e.have<e.ncode;){for(;g<3;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.lens[O[e.have++]]=d&7,d>>>=3,g-=3}for(;e.have<19;)e.lens[O[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,Q={bits:e.lenbits},J=Ja(Vd,e.lens,0,19,e.lencode,0,e.work,Q),e.lenbits=Q.bits,J){n.msg="invalid code lengths set",e.mode=Mt;break}e.have=0,e.mode=$c;case $c:for(;e.have<e.nlen+e.ndist;){for(;C=e.lencode[d&(1<<e.lenbits)-1],y=C>>>24,z=C>>>16&255,D=C&65535,!(y<=g);){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(D<16)d>>>=y,g-=y,e.lens[e.have++]=D;else{if(D===16){for(L=y+2;g<L;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(d>>>=y,g-=y,e.have===0){n.msg="invalid bit length repeat",e.mode=Mt;break}se=e.lens[e.have-1],m=3+(d&3),d>>>=2,g-=2}else if(D===17){for(L=y+3;g<L;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}d>>>=y,g-=y,se=0,m=3+(d&7),d>>>=3,g-=3}else{for(L=y+7;g<L;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}d>>>=y,g-=y,se=0,m=11+(d&127),d>>>=7,g-=7}if(e.have+m>e.nlen+e.ndist){n.msg="invalid bit length repeat",e.mode=Mt;break}for(;m--;)e.lens[e.have++]=se}}if(e.mode===Mt)break;if(e.lens[256]===0){n.msg="invalid code -- missing end-of-block",e.mode=Mt;break}if(e.lenbits=9,Q={bits:e.lenbits},J=Ja(Xu,e.lens,0,e.nlen,e.lencode,0,e.work,Q),e.lenbits=Q.bits,J){n.msg="invalid literal/lengths set",e.mode=Mt;break}if(e.distbits=6,e.distcode=e.distdyn,Q={bits:e.distbits},J=Ja(Zu,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,Q),e.distbits=Q.bits,J){n.msg="invalid distances set",e.mode=Mt;break}if(e.mode=Ms,t===Ds)break e;case Ms:e.mode=qs;case qs:if(l>=6&&c>=258){n.next_out=h,n.avail_out=c,n.next_in=s,n.avail_in=l,e.hold=d,e.bits=g,qd(n,k),h=n.next_out,a=n.output,c=n.avail_out,s=n.next_in,r=n.input,l=n.avail_in,d=e.hold,g=e.bits,e.mode===Dr&&(e.back=-1);break}for(e.back=0;C=e.lencode[d&(1<<e.lenbits)-1],y=C>>>24,z=C>>>16&255,D=C&65535,!(y<=g);){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(z&&(z&240)===0){for(q=y,ae=z,ge=D;C=e.lencode[ge+((d&(1<<q+ae)-1)>>q)],y=C>>>24,z=C>>>16&255,D=C&65535,!(q+y<=g);){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}d>>>=q,g-=q,e.back+=q}if(d>>>=y,g-=y,e.back+=y,e.length=D,z===0){e.mode=Qc;break}if(z&32){e.back=-1,e.mode=Dr;break}if(z&64){n.msg="invalid literal/length code",e.mode=Mt;break}e.extra=z&15,e.mode=Jc;case Jc:if(e.extra){for(L=e.extra;g<L;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.length+=d&(1<<e.extra)-1,d>>>=e.extra,g-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Kc;case Kc:for(;C=e.distcode[d&(1<<e.distbits)-1],y=C>>>24,z=C>>>16&255,D=C&65535,!(y<=g);){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if((z&240)===0){for(q=y,ae=z,ge=D;C=e.distcode[ge+((d&(1<<q+ae)-1)>>q)],y=C>>>24,z=C>>>16&255,D=C&65535,!(q+y<=g);){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}d>>>=q,g-=q,e.back+=q}if(d>>>=y,g-=y,e.back+=y,z&64){n.msg="invalid distance code",e.mode=Mt;break}e.offset=D,e.extra=z&15,e.mode=Xc;case Xc:if(e.extra){for(L=e.extra;g<L;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}e.offset+=d&(1<<e.extra)-1,d>>>=e.extra,g-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){n.msg="invalid distance too far back",e.mode=Mt;break}e.mode=Zc;case Zc:if(c===0)break e;if(m=k-c,e.offset>m){if(m=e.offset-m,m>e.whave&&e.sane){n.msg="invalid distance too far back",e.mode=Mt;break}m>e.wnext?(m-=e.wnext,F=e.wsize-m):F=e.wnext-m,m>e.length&&(m=e.length),j=e.window}else j=a,F=h-e.offset,m=e.length;m>c&&(m=c),c-=m,e.length-=m;do a[h++]=j[F++];while(--m);e.length===0&&(e.mode=qs);break;case Qc:if(c===0)break e;a[h++]=e.length,c--,e.mode=qs;break;case Qo:if(e.wrap){for(;g<32;){if(l===0)break e;l--,d|=r[s++]<<g,g+=8}if(k-=c,n.total_out+=k,e.total+=k,e.wrap&4&&k&&(n.adler=e.check=e.flags?vr(e.check,a,k,h-k):wl(e.check,a,k,h-k)),k=c,e.wrap&4&&(e.flags?d:nu(d))!==e.check){n.msg="incorrect data check",e.mode=Mt;break}d=0,g=0}e.mode=eu;case eu:if(e.wrap&&e.flags){for(;g<32;){if(l===0)break e;l--,d+=r[s++]<<g,g+=8}if(e.wrap&4&&d!==(e.total&4294967295)){n.msg="incorrect length check",e.mode=Mt;break}d=0,g=0}e.mode=tu;case tu:J=$d;break e;case Mt:J=Qu;break e;case th:return eh;case nh:default:return Kn}return n.next_out=h,n.avail_out=c,n.next_in=s,n.avail_in=l,e.hold=d,e.bits=g,(e.wsize||k!==n.avail_out&&e.mode<Mt&&(e.mode<Qo||t!==Ic))&&oh(n,n.output,n.next_out,k-n.avail_out),w-=n.avail_in,k-=n.avail_out,n.total_in+=w,n.total_out+=k,e.total+=k,e.wrap&4&&k&&(n.adler=e.check=e.flags?vr(e.check,a,k,n.next_out-k):wl(e.check,a,k,n.next_out-k)),n.data_type=e.bits+(e.last?64:0)+(e.mode===Dr?128:0)+(e.mode===Ms||e.mode===Zo?256:0),(w===0&&k===0||t===Ic)&&J===Ii&&(J=Kd),J},a1=n=>
vendor: 11,990 bytes, line 18
18{if(Ri(n))return Kn;let t=n.state;return t.window&&(t.window=null),n.state=null,Ii},s1=(n,t)=>{if(Ri(n))return Kn;const e=n.state;return(e.wrap&2)===0?Kn:(e.head=t,t.done=!1,Ii)},o1=(n,t)=>{const e=t.length;let r,a,s;return Ri(n)||(r=n.state,r.wrap!==0&&r.mode!==to)?Kn:r.mode===to&&(a=1,a=wl(a,t,e,0),a!==r.check)?Qu:(s=oh(n,t,e,e),s?(r.mode=th,eh):(r.havedict=1,Ii))};var l1=ih,c1=ah,u1=rh,h1=n1,f1=sh,d1=i1,p1=a1,m1=s1,g1=o1,b1="pako inflate (from Nodeca project)",Mr={inflateReset:l1,inflateReset2:c1,inflateResetKeep:u1,inflateInit:h1,inflateInit2:f1,inflate:d1,inflateEnd:p1,inflateGetHeader:m1,inflateSetDictionary:g1,inflateInfo:b1};function v1(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var x1=v1;const lh=Object.prototype.toString,{Z_NO_FLUSH:y1,Z_FINISH:w1,Z_OK:Qa,Z_STREAM_END:nl,Z_NEED_DICT:rl,Z_STREAM_ERROR:_1,Z_DATA_ERROR:iu,Z_MEM_ERROR:N1}=$u;function ts(n){this.options=Ju.assign({chunkSize:1024*64,windowBits:15,to:""},n||{});const t=this.options;t.raw&&t.windowBits>=0&&t.windowBits<16&&(t.windowBits=-t.windowBits,t.windowBits===0&&(t.windowBits=-15)),t.windowBits>=0&&t.windowBits<16&&!(n&&n.windowBits)&&(t.windowBits+=32),t.windowBits>15&&t.windowBits<48&&(t.windowBits&15)===0&&(t.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new Dd,this.strm.avail_out=0;let e=Mr.inflateInit2(this.strm,t.windowBits);if(e!==Qa)throw new Error(_l[e]);if(this.header=new x1,Mr.inflateGetHeader(this.strm,this.header),t.dictionary&&(typeof t.dictionary=="string"?t.dictionary=Nl.string2buf(t.dictionary):lh.call(t.dictionary)==="[object ArrayBuffer]"&&(t.dictionary=new Uint8Array(t.dictionary)),t.raw&&(e=Mr.inflateSetDictionary(this.strm,t.dictionary),e!==Qa)))throw new Error(_l[e])}ts.prototype.push=function(n,t){const e=this.strm,r=this.options.chunkSize,a=this.options.dictionary;let s,h,l;if(this.ended)return!1;for(t===~~t?h=t:h=t===!0?w1:y1,lh.call(n)==="[object ArrayBuffer]"?e.input=new Uint8Array(n):e.input=n,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(r),e.next_out=0,e.avail_out=r),s=Mr.inflate(e,h),s===rl&&a&&(s=Mr.inflateSetDictionary(e,a),s===Qa?s=Mr.inflate(e,h):s===iu&&(s=rl));e.avail_in>0&&s===nl&&e.state.wrap>0&&n[e.next_in]!==0;)Mr.inflateReset(e),s=Mr.inflate(e,h);switch(s){case _1:case iu:case rl:case N1:return this.onEnd(s),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||s===nl))if(this.options.to==="string"){let c=Nl.utf8border(e.output,e.next_out),d=e.next_out-c,g=Nl.buf2string(e.output,c);e.next_out=d,e.avail_out=r-d,d&&e.output.set(e.output.subarray(c,c+d),0),this.onData(g)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out));if(!(s===Qa&&l===0)){if(s===nl)return s=Mr.inflateEnd(this.strm),this.onEnd(s),this.ended=!0,!0;if(e.avail_in===0)break}}return!0};ts.prototype.onData=function(n){this.chunks.push(n)};ts.prototype.onEnd=function(n){n===Qa&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=Ju.flattenChunks(this.chunks)),this.chunks=[],this.err=n,this.msg=this.strm.msg};function A1(n,t){const e=new ts(t);if(e.push(n),e.err)throw e.msg||_l[e.err];return e.result}var S1=ts,L1=A1,j1={Inflate:S1,inflate:L1};const{Inflate:k1,inflate:P1}=j1;var au=k1,F1=P1;const ch=[];for(let n=0;n<256;n++){let t=n;for(let e=0;e<8;e++)t&1?t=3988292384^t>>>1:t=t>>>1;ch[n]=t}const su=4294967295;function C1(n,t,e){let r=n;for(let a=0;a<e;a++)r=ch[(r^t[a])&255]^r>>>8;return r}function E1(n,t){return(C1(su,n,t)^su)>>>0}function ou(n,t,e){const r=n.readUint32(),a=E1(new Uint8Array(n.buffer,n.byteOffset+n.offset-t-4,t),t);if(a!==r)throw new Error(`CRC mismatch for chunk ${e}. Expected ${r}, found ${a}`)}function uh(n,t,e){for(let r=0;r<e;r++)t[r]=n[r]}function hh(n,t,e,r){let a=0;for(;a<r;a++)t[a]=n[a];for(;a<e;a++)t[a]=n[a]+t[a-r]&255}function fh(n,t,e,r){let a=0;if(e.length===0)for(;a<r;a++)t[a]=n[a];else for(;a<r;a++)t[a]=n[a]+e[a]&255}function dh(n,t,e,r,a){let s=0;if(e.length===0){for(;s<a;s++)t[s]=n[s];for(;s<r;s++)t[s]=n[s]+(t[s-a]>>1)&255}else{for(;s<a;s++)t[s]=n[s]+(e[s]>>1)&255;for(;s<r;s++)t[s]=n[s]+(t[s-a]+e[s]>>1)&255}}function ph(n,t,e,r,a){let s=0;if(e.length===0){for(;s<a;s++)t[s]=n[s];for(;s<r;s++)t[s]=n[s]+t[s-a]&255}else{for(;s<a;s++)t[s]=n[s]+e[s]&255;for(;s<r;s++)t[s]=n[s]+I1(t[s-a],e[s],e[s-a])&255}}function I1(n,t,e){const r=n+t-e,a=Math.abs(r-n),s=Math.abs(r-t),h=Math.abs(r-e);return a<=s&&a<=h?n:s<=h?t:e}function O1(n,t,e,r,a,s){switch(n){case 0:uh(t,e,a);break;case 1:hh(t,e,a,s);break;case 2:fh(t,e,r,a);break;case 3:dh(t,e,r,a,s);break;case 4:ph(t,e,r,a,s);break;default:throw new Error(`Unsupported filter: ${n}`)}}const R1=new Uint16Array([255]),B1=new Uint8Array(R1.buffer),T1=B1[0]===255;function D1(n){const{data:t,width:e,height:r,channels:a,depth:s}=n,h=[{x:0,y:0,xStep:8,yStep:8},{x:4,y:0,xStep:8,yStep:8},{x:0,y:4,xStep:4,yStep:8},{x:2,y:0,xStep:4,yStep:4},{x:0,y:2,xStep:2,yStep:4},{x:1,y:0,xStep:2,yStep:2},{x:0,y:1,xStep:1,yStep:2}],l=Math.ceil(s/8)*a,c=new Uint8Array(r*e*l);let d=0;for(let g=0;g<7;g++){const w=h[g],k=Math.ceil((e-w.x)/w.xStep),m=Math.ceil((r-w.y)/w.yStep);if(k<=0||m<=0)continue;const F=k*l,j=new Uint8Array(F);for(let C=0;C<m;C++){const y=t[d++],z=t.subarray(d,d+F);d+=F;const D=new Uint8Array(F);O1(y,z,D,j,F,l),j.set(D);for(let q=0;q<k;q++){const ae=w.x+q*w.xStep,ge=w.y+C*w.yStep;if(!(ae>=e||ge>=r))for(let se=0;se<l;se++)c[(ge*e+ae)*l+se]=D[q*l+se]}}}if(s===16){const g=new Uint16Array(c.buffer);if(T1)for(let w=0;w<g.length;w++)g[w]=M1(g[w]);return g}else return c}function M1(n){return(n&255)<<8|n>>8&255}const q1=new Uint16Array([255]),U1=new Uint8Array(q1.buffer),z1=U1[0]===255,G1=new Uint8Array(0);function lu(n){const{data:t,width:e,height:r,channels:a,depth:s}=n,h=Math.ceil(s/8)*a,l=Math.ceil(s/8*a*e),c=new Uint8Array(r*l);let d=G1,g=0,w,k;for(let m=0;m<r;m++){switch(w=t.subarray(g+1,g+1+l),k=c.subarray(m*l,(m+1)*l),t[g]){case 0:uh(w,k,l);break;case 1:hh(w,k,l,h);break;case 2:fh(w,k,d,l);break;case 3:dh(w,k,d,l,h);break;case 4:ph(w,k,d,l,h);break;default:throw new Error(`Unsupported filter: ${t[g]}`)}d=k,g+=l+1}if(s===16){const m=new Uint16Array(c.buffer);if(z1)for(let F=0;F<m.length;F++)m[F]=W1(m[F]);return m}else return c}function W1(n){return(n&255)<<8|n>>8&255}const Vs=Uint8Array.of(137,80,78,71,13,10,26,10);function cu(n){if(!H1(n.readBytes(Vs.length)))throw new Error("wrong PNG signature")}function H1(n){if(n.length<Vs.length)return!1;for(let t=0;t<Vs.length;t++)if(n[t]!==Vs[t])return!1;return!0}const V1="tEXt",Y1=0,mh=new TextDecoder("latin1");function $1(n){if(K1(n),n.length===0||n.length>79)throw new Error("keyword length must be between 1 and 79")}const J1=/^[\u0000-\u00FF]*$/;function K1(n){if(!J1.test(n))throw new Error("invalid latin1 text")}function X1(n,t,e){const r=gh(t);n[r]=Z1(t,e-r.length-1)}function gh(n){for(n.mark();n.readByte()!==Y1;);const t=n.offset;n.reset();const e=mh.decode(n.readBytes(t-n.offset-1));return n.skip(1),$1(e),e}function Z1(n,t){return mh.decode(n.readBytes(t))}const qn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},il={UNKNOWN:-1,DEFLATE:0},uu={UNKNOWN:-1,ADAPTIVE:0},al={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},Us={NONE:0,BACKGROUND:1,PREVIOUS:2},sl={SOURCE:0,OVER:1};class Q1 extends Il{constructor(e,r={}){super(e);Nt(this,"_checkCrc");Nt(this,"_inflator");Nt(this,"_png");Nt(this,"_apng");Nt(this,"_end");Nt(this,"_hasPalette");Nt(this,"_palette");Nt(this,"_hasTransparency");Nt(this,"_transparency");Nt(this,"_compressionMethod");Nt(this,"_filterMethod");Nt(this,"_interlaceMethod");Nt(this,"_colorType");Nt(this,"_isAnimated");Nt(this,"_numberOfFrames");Nt(this,"_numberOfPlays");Nt(this,"_frames");Nt(this,"_writingDataChunks");const{checkCrc:a=!1}=r;this._checkCrc=a,this._inflator=new au,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=il.UNKNOWN,this._filterMethod=uu.UNKNOWN,this._interlaceMethod=al.UNKNOWN,this._colorType=qn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(cu(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeChunk(e,r)}return this.decodeImage(),this._png}decodeApng(){for(cu(this);!this._end;){const e=this.readUint32(),r=this.readChars(4);this.decodeApngChunk(e,r)}return this.decodeApngImage(),this._apng}decodeChunk(e,r){const a=this.offset;switch(r){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(e);break;case"IDAT":this.decodeIDAT(e);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(e);break;case"iCCP":this.decodeiCCP(e);break;case V1:X1(this._png.text,this,e);break;case"pHYs":this.decodepHYs();break;default:this.skip(e);break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ou(this,e+4,r):this.skip(4)}decodeApngChunk(e,r){const a=this.offset;switch(r!=="fdAT"&&r!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),r){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(e);break;default:this.decodeChunk(e,r),this.offset=a+e;break}if(this.offset-a!==e)throw new Error(`Length mismatch while decoding chunk ${r}`);this._checkCrc?ou(this,e+4,r):this.skip(4)}decodeIHDR(){const e=this._png;e.width=this.readUint32(),e.height=this.readUint32(),e.depth=e2(this.readUint8());const r=this.readUint8();this._colorType=r;let a;switch(r){case qn.GREYSCALE:a=1;break;case qn.TRUECOLOUR:a=3;break;case qn.INDEXED_COLOUR:a=1;break;case qn.GREYSCALE_ALPHA:a=2;break;case qn.TRUECOLOUR_ALPHA:a=4;break;case qn.UNKNOWN:default:throw new Error(`Unknown color type: ${r}`)}if(this._png.channels=a,this._compressionMethod=this.readUint8(),this._compressionMethod!==il.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){const e={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(e)}decodePLTE(e){if(e%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${e}`);const r=e/3;this._hasPalette=!0;const a=[];this._palette=a;for(let s=0;s<r;s++)a.push([this.readUint8(),this.readUint8(),this.readUint8()])}decodeIDAT(e){this._writingDataChunks=!0;const r=e,a=this.offset+this.byteOffset;if(this._inflator.push(new Uint8Array(this.buffer,a,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodeFDAT(e){this._writingDataChunks=!0;let r=e,a=this.offset+this.byteOffset;if(a+=4,r-=4,this._inflator.push(new Uint8Array(this.buffer,a,r)),this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);this.skip(e)}decodetRNS(e){switch(this._colorType){case qn.GREYSCALE:case qn.TRUECOLOUR:{if(e%2!==0)throw new RangeError(`tRNS chunk length must be a multiple of 2. Got ${e}`);if(e/2>this._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${e/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(e/2);for(let r=0;r<e/2;r++)this._transparency[r]=this.readUint16();break}case qn.INDEXED_COLOUR:{if(e>this._palette.length)throw new Error(`tRNS chunk contains more alph
18a values than there are palette colors (${e} vs ${this._palette.length})`);let r=0;for(;r<e;r++){const a=this.readByte();this._palette[r].push(a)}for(;r<this._palette.length;r++)this._palette[r].push(255);break}case qn.UNKNOWN:case qn.GREYSCALE_ALPHA:case qn.TRUECOLOUR_ALPHA:default:throw new Error(`tRNS chunk is not supported for color type ${this._colorType}`)}}decodeiCCP(e){const r=gh(this),a=this.readUint8();if(a!==il.DEFLATE)throw new Error(`Unsupported iCCP compression method: ${a}`);const s=this.readBytes(e-r.length-2);this._png.iccEmbeddedProfile={name:r,profile:F1(s)}}decodepHYs(){const e=this.readUint32(),r=this.readUint32(),a=this.readByte();this._png.resolution={x:e,y:r,unit:a}}decodeApngImage(){this._apng.width=this._png.width,this._apng.height=this._png.height,this._apng.channels=this._png.channels,this._apng.depth=this._png.depth,this._apng.numberOfFrames=this._numberOfFrames,this._apng.numberOfPlays=this._numberOfPlays,this._apng.text=this._png.text,this._apng.resolution=this._png.resolution;for(let e=0;e<this._numberOfFrames;e++){const r={sequenceNumber:this._frames[e].sequenceNumber,delayNumber:this._frames[e].delayNumber,delayDenominator:this._frames[e].delayDenominator,data:this._apng.depth===8?new Uint8Array(this._apng.width*this._apng.height*this._apng.channels):new Uint16Array(this._apng.width*this._apng.height*this._apng.channels)},a=this._frames.at(e);if(a){if(a.data=lu({data:a.data,width:a.width,height:a.height,channels:this._apng.channels,depth:this._apng.depth}),this._hasPalette&&(this._apng.palette=this._palette),this._hasTransparency&&(this._apng.transparency=this._transparency),e===0||a.xOffset===0&&a.yOffset===0&&a.width===this._png.width&&a.height===this._png.height)r.data=a.data;else{const s=this._apng.frames.at(e-1);this.disposeFrame(a,s,r),this.addFrameDataToCanvas(r,a)}this._apng.frames.push(r)}}return this._apng}disposeFrame(e,r,a){switch(e.disposeOp){case Us.NONE:break;case Us.BACKGROUND:for(let s=0;s<this._png.height;s++)for(let h=0;h<this._png.width;h++){const l=(s*e.width+h)*this._png.channels;for(let c=0;c<this._png.channels;c++)a.data[l+c]=0}break;case Us.PREVIOUS:a.data.set(r.data);break;default:throw new Error("Unknown disposeOp")}}addFrameDataToCanvas(e,r){const a=1<<this._png.depth,s=(h,l)=>{const c=((h+r.yOffset)*this._png.width+r.xOffset+l)*this._png.channels,d=(h*r.width+l)*this._png.channels;return{index:c,frameIndex:d}};switch(r.blendOp){case sl.SOURCE:for(let h=0;h<r.height;h++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:d}=s(h,l);for(let g=0;g<this._png.channels;g++)e.data[c+g]=r.data[d+g]}break;case sl.OVER:for(let h=0;h<r.height;h++)for(let l=0;l<r.width;l++){const{index:c,frameIndex:d}=s(h,l);for(let g=0;g<this._png.channels;g++){const w=r.data[d+this._png.channels-1]/a,k=g%(this._png.channels-1)===0?1:r.data[d+g],m=Math.floor(w*k+(1-w)*e.data[c+g]);e.data[c+g]+=m}}break;default:throw new Error("Unknown blendOp")}}decodeImage(){var r;if(this._inflator.err)throw new Error(`Error while decompressing the data: ${this._inflator.err}`);const e=this._isAnimated?((r=this._frames)==null?void 0:r.at(0)).data:this._inflator.result;if(this._filterMethod!==uu.ADAPTIVE)throw new Error(`Filter method ${this._filterMethod} not supported`);if(this._interlaceMethod===al.NO_INTERLACE)this._png.data=lu({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else if(this._interlaceMethod===al.ADAM7)this._png.data=D1({data:e,width:this._png.width,height:this._png.height,channels:this._png.channels,depth:this._png.depth});else throw new Error(`Interlace method ${this._interlaceMethod} not supported`);this._hasPalette&&(this._png.palette=this._palette),this._hasTransparency&&(this._png.transparency=this._transparency)}pushDataToFrame(){const e=this._inflator.result,r=this._frames.at(-1);r?r.data=e:this._frames.push({sequenceNumber:0,width:this._png.width,height:this._png.height,xOffset:0,yOffset:0,delayNumber:0,delayDenominator:0,disposeOp:Us.NONE,blendOp:sl.SOURCE,data:e}),this._inflator=new au,this._writingDataChunks=!1}}function e2(n){if(n!==1&&n!==2&&n!==4&&n!==8&&n!==16)throw new Error(`invalid bit depth: ${n}`);return n}var hu;(function(n){n[n.UNKNOWN=0]="UNKNOWN",n[n.METRE=1]="METRE"})(hu||(hu={}));function t2(n,t){return new Q1(n,t).decode()}var Xe=(function(){return typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:this})();function ol(){Xe.console&&typeof Xe.console.log=="function"&&Xe.console.log.apply(Xe.console,arguments)}var kt={log:ol,warn:function(n){Xe.console&&(typeof Xe.console.warn=="function"?Xe.console.warn.apply(Xe.console,arguments):ol.call(null,arguments))},error:function(n){Xe.console&&(typeof Xe.console.error=="function"?Xe.console.error.apply(Xe.console,arguments):ol(n))}};function ll(n,t,e){var r=new XMLHttpRequest;r.open("GET",n),r.responseType="blob",r.onload=function(){ki(r.response,t,e)},r.onerror=function(){kt.error("could not download file")},r.send()}function fu(n){var t=new XMLHttpRequest;t.open("HEAD",n,!1);try{t.send()}catch{}return t.status>=200&&t.status<=299}function zs(n){try{n.dispatchEvent(new MouseEvent("click"))}catch{var t=document.createEvent("MouseEvents");
vendor: 3,409 bytes, lines 18-23
18t.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),n.dispatchEvent(t)}}var ki=Xe.saveAs||((typeof window>"u"?"undefined":At(window))!=="object"||window!==Xe?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(n,t,e){var r=Xe.URL||Xe.webkitURL,a=document.createElement("a");t=t||n.name||"download",a.download=t,a.rel="noopener",typeof n=="string"?(a.href=n,a.origin!==location.origin?fu(a.href)?ll(n,t,e):zs(a,a.target="_blank"):zs(a)):(a.href=r.createObjectURL(n),setTimeout(function(){r.revokeObjectURL(a.href)},4e4),setTimeout(function(){zs(a)},0))}:"msSaveOrOpenBlob"in navigator?function(n,t,e){if(t=t||n.name||"download",typeof n=="string")if(fu(n))ll(n,t,e);else{var r=document.createElement("a");r.href=n,r.target="_blank",setTimeout(function(){zs(r)})}else navigator.msSaveOrOpenBlob((function(a,s){return s===void 0?s={autoBom:!1}:At(s)!=="object"&&(kt.warn("Deprecated: Expected third argument to be a object"),s={autoBom:!s}),s.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(n,e),t)}:function(n,t,e,r){if((r=r||open("","_blank"))&&(r.document.title=r.document.body.innerText="downloading..."),typeof n=="string")return ll(n,t,e);var a=n.type==="application/octet-stream",s=/constructor/i.test(Xe.HTMLElement)||Xe.safari,h=/CriOS\/[\d]+/.test(navigator.userAgent);if((h||a&&s)&&(typeof FileReader>"u"?"undefined":At(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var g=l.result;g=h?g:g.replace(/^data:[^;]*;/,"data:attachment/file;"),r?r.location.href=g:location=g,r=null},l.readAsDataURL(n)}else{var c=Xe.URL||Xe.webkitURL,d=c.createObjectURL(n);r?r.location=d:location.href=d,r=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});/**
19 * A class to parse color values
20 * @author Stoyan Stefanov <[email protected]>
21 * {@link   http://www.phpied.com/rgb-color-parser-in-javascript/}
22 * @license Use it if you like it
23 */function bh(n){var t;n=n||"",this.ok=!1,n.charAt(0)=="#"&&(n=n.substr(1,6)),n={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:"90ee9
230",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"}[n=(n=n.replace(/ /g,"")).toLowerCase()]||n;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],r=0;r<e.length;r++){var a=e[r].re,s=e[r].process,h=a.exec(n);h&&(t=s(h),this.r=t[0],this.g=t[1],this.b=t[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 l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}var Ys=Xe.atob.bind(Xe),du=Xe.btoa.bind(Xe);/**
24 * @license
25 * Joseph Myers does not specify a particular license for his work.
26 *
27 * Author: Joseph Myers
28 * Accessed from: http://www.myersdaily.org/joseph/javascript/md5.js
29 *
30 * Modified by: Owen Leong
31 */function cl(n,t){var e=n[0],r=n[1],a=n[2],s=n[3];e=yn(e,r,a,s,t[0],7,-680876936),s=yn(s,e,r,a,t[1],12,-389564586),a=yn(a,s,e,r,t[2],17,606105819),r=yn(r,a,s,e,t[3],22,-1044525330),e=yn(e,r,a,s,t[4],7,-176418897),s=yn(s,e,r,a,t[5],12,1200080426),a=yn(a,s,e,r,t[6],17,-1473231341),r=yn(r,a,s,e,t[7],22,-45705983),e=yn(e,r,a,s,t[8],7,1770035416),s=yn(s,e,r,a,t[9],12,-1958414417),a=yn(a,s,e,r,t[10],17,-42063),r=yn(r,a,s,e,t[11],22,-1990404162),e=yn(e,r,a,s,t[12],7,1804603682),s=yn(s,e,r,a,t[13],12,-40341101),a=yn(a,s,e,r,t[14],17,-1502002290),e=wn(e,r=yn(r,a,s,e,t[15],22,1236535329),a,s,t[1],5,-165796510),s=wn(s,e,r,a,t[6],9,-1069501632),a=wn(a,s,e,r,t[11],14,643717713),r=wn(r,a,s,e,t[0],20,-373897302),e=wn(e,r,a,s,t[5],5,-701558691),s=wn(s,e,r,a,t[10],9,38016083),a=wn(a,s,e,r,t[15],14,-660478335),r=wn(r,a,s,e,t[4],20,-405537848),e=wn(e,r,a,s,t[9],5,568446438),s=wn(s,e,r,a,t[14],9,-1019803690),a=wn(a,s,e,r,t[3],14,-187363961),r=wn(r,a,s,e,t[8],20,1163531501),e=wn(e,r,a,s,t[13],5,-1444681467),s=wn(s,e,r,a,t[2],9,-51403784),a=wn(a,s,e,r,t[7],14,1735328473),e=_n(e,r=wn(r,a,s,e,t[12],20,-1926607734),a,s,t[5],4,-378558),s=_n(s,e,r,a,t[8],11,-2022574463),a=_n(a,s,e,r,t[11],16,1839030562),r=_n(r,a,s,e,t[14],23,-35309556),e=_n(e,r,a,s,t[1],4,-1530992060),s=_n(s,e,r,a,t[4],11,1272893353),a=_n(a,s,e,r,t[7],16,-155497632),r=_n(r,a,s,e,t[10],23,-1094730640),e=_n(e,r,a,s,t[13],4,681279174),s=_n(s,e,r,a,t[0],11,-358537222),a=_n(a,s,e,r,t[3],16,-722521979),r=_n(r,a,s,e,t[6],23,76029189),e=_n(e,r,a,s,t[9],4,-640364487),s=_n(s,e,r,a,t[12],11,-421815835),a=_n(a,s,e,r,t[15],16,530742520),e=Nn(e,r=_n(r,a,s,e,t[2],23,-995338651),a,s,t[0],6,-198630844),s=Nn(s,e,r,a,t[7],10,1126891415),a=Nn(a,s,e,r,t[14],15,-1416354905),r=Nn(r,a,s,e,t[5],21,-57434055),e=Nn(e,r,a,s,t[12],6,1700485571),s=Nn(s,e,r,a,t[3],10,-1894986606),a=Nn(a,s,e,r,t[10],15,-1051523),r=Nn(r,a,s,e,t[1],21,-2054922799),e=Nn(e,r,a,s,t[8],6,1873313359),s=Nn(s,e,r,a,t[15],10,-30611744),a=Nn(a,s,e,r,t[6],15,-1560198380),r=Nn(r,a,s,e,t[13],21,1309151649),e=Nn(e,r,a,s,t[4],6,-145523070),s=Nn(s,e,r,a,t[11],10,-1120210379),a=Nn(a,s,e,r,t[2],15,718787259),r=Nn(r,a,s,e,t[9],21,-343485551),n[0]=oi(e,n[0]),n[1]=oi(r,n[1]),n[2]=oi(a,n[2]),n[3]=oi(s,n[3])}function so(n,t,e,r,a,s){return t=oi(oi(t,n),oi(r,s)),oi(t<<a|t>>>32-a,e)}function yn(n,t,e,r,a,s,h){return so(t&e|~t&r,n,t,a,s,h)}function wn(n,t,e,r,a,s,h){return so(t&r|e&~r,n,t,a,s,h)}function _n(n,t,e,r,a,s,h){return so(t^e^r,n,t,a,s,h)}function Nn(n,t,e,r,a,s,h){return so(e^(t|~r),n,t,a,s,h)}function vh(n){var t,e=n.length,r=[1732584193,-271733879,-1732584194,271733878];for(t=64;t<=n.length;t+=64)cl(r,n2(n.substring(t-64,t)));n=n.substring(t-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(t=0;t<n.length;t++)a[t>>2]|=n.charCodeAt(t)<<(t%4<<3);if(a[t>>2]|=128<<(t%4<<3),t>55)for(cl(r,a),t=0;t<16;t++)a[t]=0;return a[14]=8*e,cl(r,a),r}function n2(n){var t,e=[];for(t=0;t<64;t+=4)e[t>>2]=n.charCodeAt(t)+(n.charCodeAt(t+1)<<8)+(n.charCodeAt(t+2)<<16)+(n.charCodeAt(t+3)<<24);return e}var pu="0123456789abcdef".split("");function r2(n){for(var t="",e=0;e<4;e++)t+=pu[n>>8*e+4&15]+pu[n>>8*e&15];return t}function i2(n){return String.fromCharCode(255&n,(65280&n)>>8,(16711680&n)>>16,(4278190080&n)>>24)}function Al(n){return vh(n).map(i2).join("")}var a2=(function(n){for(var t=0;t<n.length;t++)n[t]=r2(n[t]);return n.join("")})(vh("hello"))!="5d41402abc4b2a76b9719d911017c592";function oi(n,t){if(a2){var e=(65535&n)+(65535&t);return(n>>16)+(t>>16)+(e>>16)<<16|65535&e}return n+t&4294967295}/**
32 * @license
33 * FPDF is released under a permissive license: there is no usage restriction.
34 * You may embed it freely in your application (commercial or not), with or
35 * without modifications.
36 *
37 * Reference: http://www.fpdf.org/en/script/script37.php
38 */function Sl(n,t){var e,r,a,s;if(n!==e){for(var h=(a=n,s=1+(256/n.length|0),new Array(s+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var g=l[c];
vendor: 5,760 bytes, lines 38-48
38d=(d+g+h.charCodeAt(c))%256,l[c]=l[d],l[d]=g}e=n,r=l}else l=r;var w=t.length,k=0,m=0,F="";for(c=0;c<w;c++)m=(m+(g=l[k=(k+1)%256]))%256,l[k]=l[m],l[m]=g,h=l[(l[k]+l[m])%256],F+=String.fromCharCode(t.charCodeAt(c)^h);return F}/**
39 * @license
40 * Licensed under the MIT License.
41 * http://opensource.org/licenses/mit-license
42 * Author: Owen Leong (@owenl131)
43 * Date: 15 Oct 2020
44 * References:
45 * https://www.cs.cmu.edu/~dst/Adobe/Gallery/anon21jul01-pdf-encryption.txt
46 * https://github.com/foliojs/pdfkit/blob/master/lib/security.js
47 * http://www.fpdf.org/en/script/script37.php
48 */var mu={print:4,modify:8,copy:16,"annot-forms":32};function ua(n,t,e,r){this.v=1,this.r=2;var a=192;n.forEach(function(l){if(mu.perm!==void 0)throw new Error("Invalid permission: "+l);a+=mu[l]}),this.padding="(¿N^NuŠAd\0NVÿú�\b..\0¶Ðh>€/\f©þdSiz";var s=(t+this.padding).substr(0,32),h=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(s,h),this.P=-(1+(255^a)),this.encryptionKey=Al(s+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(r)).substr(0,5),this.U=Sl(this.encryptionKey,this.padding)}function ha(n){if(/[^\u0000-\u00ff]/.test(n))throw new Error("Invalid PDF Name Object: "+n+", Only accept ASCII characters.");for(var t="",e=n.length,r=0;r<e;r++){var a=n.charCodeAt(r);t+=a<33||a===35||a===37||a===40||a===41||a===47||a===60||a===62||a===91||a===93||a===123||a===125||a>126?"#"+("0"+a.toString(16)).slice(-2):n[r]}return t}function gu(n){if(At(n)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var t={};this.subscribe=function(e,r,a){if(a=a||!1,typeof e!="string"||typeof r!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");t.hasOwnProperty(e)||(t[e]={});var s=Math.random().toString(35);return t[e][s]=[r,!!a],s},this.unsubscribe=function(e){for(var r in t)if(t[r][e])return delete t[r][e],Object.keys(t[r]).length===0&&delete t[r],!0;return!1},this.publish=function(e){if(t.hasOwnProperty(e)){var r=Array.prototype.slice.call(arguments,1),a=[];for(var s in t[e]){var h=t[e][s];try{h[0].apply(n,r)}catch(l){Xe.console&&kt.error("jsPDF PubSub Error",l.message,l)}h[1]&&a.push(s)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return t}}function no(n){if(!(this instanceof no))return new no(n);var t="opacity,stroke-opacity".split(",");for(var e in n)n.hasOwnProperty(e)&&t.indexOf(e)>=0&&(this[e]=n[e]);this.id="",this.objectNumber=-1}function xh(n,t){this.gState=n,this.matrix=t,this.id="",this.objectNumber=-1}function Pi(n,t,e,r,a){if(!(this instanceof Pi))return new Pi(n,t,e,r,a);this.type=n==="axial"?2:3,this.coords=t,this.colors=e,xh.call(this,r,a)}function fa(n,t,e,r,a){if(!(this instanceof fa))return new fa(n,t,e,r,a);this.boundingBox=n,this.xStep=t,this.yStep=e,this.stream="",this.cloneIndex=0,xh.call(this,r,a)}function De(n){var t,e=typeof arguments[0]=="string"?arguments[0]:"p",r=arguments[1],a=arguments[2],s=arguments[3],h=[],l=1,c=16,d="S",g=null;At(n=n||{})==="object"&&(e=n.orientation,r=n.unit||r,a=n.format||a,s=n.compress||n.compressPdf||s,(g=n.encryption||null)!==null&&(g.userPassword=g.userPassword||"",g.ownerPassword=g.ownerPassword||"",g.userPermissions=g.userPermissions||[]),l=typeof n.userUnit=="number"?Math.abs(n.userUnit):1,n.precision!==void 0&&(t=n.precision),n.floatPrecision!==void 0&&(c=n.floatPrecision),d=n.defaultPathOperation||"S"),h=n.filters||(s===!0?["FlateEncode"]:h),r=r||"mm",e=(""+(e||"P")).toLowerCase();var w=n.putOnlyUsedFonts||!1,k={},m={internal:{},__private__:{}};m.__private__.PubSub=gu;var F="1.3",j=m.__private__.getPdfVersion=function(){return F};m.__private__.setPdfVersion=function(u){F=u};var C={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]};m.__private__.getPageFormats=function(){return C};var y=m.__private__.getPageFormat=function(u){return C[u]};a=a||"a4";var z="compat",D="advanced",q=z;function ae(){this.saveGraphicsState(),E(new Ye(it,0,0,-it,0,mi()*it).toString()+" cm"),this.setFontSize(this.getFontSize()/it),d="n",q=D}function ge(){this.restoreGraphicsState(),d="S",q=z}var se=m.__private__.combineFontStyleAndFontWeight=function(u,v){if(u=="bold"&&v=="normal"||u=="bold"&&v==400||u=="normal"&&v=="italic"||u=="bold"&&v=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return v&&(u=v==400||v==="normal"?u==="italic"?"italic":"normal":v!=700&&v!=="bold"||u!=="normal"?(v==700?"bold":v)+""+u:"bold"),u};m.advancedAPI=function(u){var v=q===z;return v&&ae.call(this),typeof u!="function"||(u(this),v&&ge.call(this)),this},m.compatAPI=function(u){var v=q===D;return v&&ge.call(this),typeof u!="function"||(u(this),v&&ae.call(this)),this},m.isAdvancedAPI=function(){return q===D};var J,U=function(u){if(q!==D)throw new Error(u+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},Q=m.roundToPrecision=m.__private__.roundToPrecision=function(u,v){var I=t||v;if(isNaN(u)||isNaN(I))throw new Error("Invalid argument passed to 
48jsPDF.roundToPrecision");return u.toFixed(I).replace(/0+$/,"")};J=m.hpf=m.__private__.hpf=typeof c=="number"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(u,c)}:c==="smart"?function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(u,u>-1&&u<1?16:5)}:function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.hpf");return Q(u,16)};var L=m.f2=m.__private__.f2=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f2");return Q(u,2)},O=m.__private__.f3=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.f3");return Q(u,3)},V=m.scale=m.__private__.scale=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.scale");return q===z?u*it:q===D?u:void 0},W=function(u){return V((function(v){return q===z?mi()-v:q===D?v:void 0})(u))};m.__private__.setPrecision=m.setPrecision=function(u){typeof parseInt(u,10)=="number"&&(t=parseInt(u,10))};var ie,oe="00000000000000000000000000000000",ce=m.__private__.getFileId=function(){return oe},re=m.__private__.setFileId=function(u){return oe=u!==void 0&&/^[a-fA-F0-9]{32}$/.test(u)?u.toUpperCase():oe.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),g!==null&&(un=new ua(g.userPermissions,g.userPassword,g.ownerPassword,oe)),oe};m.setFileId=function(u){return re(u),this},m.getFileId=function(){return ce()};var de=m.__private__.convertDateToPDFDate=function(u){var v=u.getTimezoneOffset(),I=v<0?"+":"-",H=Math.floor(Math.abs(v/60)),X=Math.abs(v%60),he=[I,M(H),"'",M(X),"'"].join("");return["D:",u.getFullYear(),M(u.getMonth()+1),M(u.getDate()),M(u.getHours()),M(u.getMinutes()),M(u.getSeconds()),he].join("")},Ae=m.__private__.convertPDFDateToDate=function(u){var v=parseInt(u.substr(2,4),10),I=parseInt(u.substr(6,2),10)-1,H=parseInt(u.substr(8,2),10),X=parseInt(u.substr(10,2),10),he=parseInt(u.substr(12,2),10),ve=parseInt(u.substr(14,2),10);return new Date(v,I,H,X,he,ve,0)},xe=m.__private__.setCreationDate=function(u){var v;if(u===void 0&&(u=new Date),u instanceof Date)v=de(u);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(u))throw new Error("Invalid argument passed to jsPDF.setCreationDate");v=u}return ie=v},A=m.__private__.getCreationDate=function(u){var v=ie;return u==="jsDate"&&(v=Ae(ie)),v};m.setCreationDate=function(u){return xe(u),this},m.getCreationDate=function(u){return A(u)};var R,M=m.__private__.padd2=function(u){return("0"+parseInt(u)).slice(-2)},G=m.__private__.padd2Hex=function(u){return("00"+(u=u.toString())).substr(u.length)},$=0,ee=[],le=[],ue=0,be=[],Ne=[],ke=!1,je=le;m.__private__.setCustomOutputDestination=function(u){ke=!0,je=u};var qe=function(u){ke||(je=u)};m.__private__.resetCustomOutputDestination=function(){ke=!1,je=le};var E=m.__private__.out=function(u){return u=u.toString(),ue+=u.length+1,je.push(u),je},Le=m.__private__.write=function(u){return E(arguments.length===1?u.toString():Array.prototype.join.call(arguments," "))},ot=m.__private__.getArrayBuffer=function(u){for(var v=u.length,I=new ArrayBuffer(v),H=new Uint8Array(I);v--;)H[v]=u.charCodeAt(v);return I},We=[["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]];m.__private__.getStandardFonts=function(){return We};var we=n.fontSize||16;m.__private__.setFontSize=m.setFontSize=function(u){return we=q===D?u/it:u,this};var He,Fe=m.__private__.getFontSize=m.getFontSize=function(){return q===z?we:we*it},Ge=n.R2L||!1;m.__private__.setR2L=m.setR2L=function(u){return Ge=u,this},m.__private__.getR2L=m.getR2L=function(){return Ge};var Ue,xt=m.__private__.setZoomMode=function(u){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(u))He=u;else if(isNaN(u)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(u)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+u+'" is not recognized.');He=u}else He=parseInt(u,10)};m.__private__.getZoomMode=function(){return He};var ht,et=m.__private__.setPageMode=function(u){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(u)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+u+'" is not recognized.');Ue=u};m.__private__.getPageMode=function(){return Ue};var dt=m.__private__.setLayoutMode=function(u){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(u)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+u+'" is not recognized.');ht=u};m.__private__.getLayoutMode=function(){return ht},m.__private__.setDisplayMode=m.setDisplayMode=function(u,v,I){return xt(u),dt(v),et(I),this};var ft={title:"",subject:"",author:"",keywords:"",creator:""};m.__private__.getDocumentProperty=function(u){if(Object.keys(ft).indexOf(u)===-1)throw new Error("Invalid argument passed to 
48jsPDF.getDocumentProperty");return ft[u]},m.__private__.getDocumentProperties=function(){return ft},m.__private__.setDocumentProperties=m.setProperties=m.setDocumentProperties=function(u){for(var v in ft)ft.hasOwnProperty(v)&&u[v]&&(ft[v]=u[v]);return this},m.__private__.setDocumentProperty=function(u,v){if(Object.keys(ft).indexOf(u)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ft[u]=v};var Be,it,Me,Vt,bt,lt={},ct={},Tt=[],ze={},Pt={},$e={},tt={},Dt=null,ut=0,Ve=[],yt=new gu(m),ci=n.hotfixes||[],mn={},Nr={},lr=[],Ye=function u(v,I,H,X,he,ve){if(!(this instanceof u))return new u(v,I,H,X,he,ve);isNaN(v)&&(v=1),isNaN(I)&&(I=0),isNaN(H)&&(H=0),isNaN(X)&&(X=1),isNaN(he)&&(he=0),isNaN(ve)&&(ve=0),this._matrix=[v,I,H,X,he,ve]};Object.defineProperty(Ye.prototype,"sx",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Ye.prototype,"shy",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Ye.prototype,"shx",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Ye.prototype,"sy",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Ye.prototype,"tx",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Ye.prototype,"ty",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Ye.prototype,"a",{get:function(){return this._matrix[0]},set:function(u){this._matrix[0]=u}}),Object.defineProperty(Ye.prototype,"b",{get:function(){return this._matrix[1]},set:function(u){this._matrix[1]=u}}),Object.defineProperty(Ye.prototype,"c",{get:function(){return this._matrix[2]},set:function(u){this._matrix[2]=u}}),Object.defineProperty(Ye.prototype,"d",{get:function(){return this._matrix[3]},set:function(u){this._matrix[3]=u}}),Object.defineProperty(Ye.prototype,"e",{get:function(){return this._matrix[4]},set:function(u){this._matrix[4]=u}}),Object.defineProperty(Ye.prototype,"f",{get:function(){return this._matrix[5]},set:function(u){this._matrix[5]=u}}),Object.defineProperty(Ye.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Ye.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Ye.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Ye.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Ye.prototype.join=function(u){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(J).join(u)},Ye.prototype.multiply=function(u){var v=u.sx*this.sx+u.shy*this.shx,I=u.sx*this.shy+u.shy*this.sy,H=u.shx*this.sx+u.sy*this.shx,X=u.shx*this.shy+u.sy*this.sy,he=u.tx*this.sx+u.ty*this.shx+this.tx,ve=u.tx*this.shy+u.ty*this.sy+this.ty;return new Ye(v,I,H,X,he,ve)},Ye.prototype.decompose=function(){var u=this.sx,v=this.shy,I=this.shx,H=this.sy,X=this.tx,he=this.ty,ve=Math.sqrt(u*u+v*v),Ie=(u/=ve)*I+(v/=ve)*H;I-=u*Ie,H-=v*Ie;var Ee=Math.sqrt(I*I+H*H);return Ie/=Ee,u*(H/=Ee)<v*(I/=Ee)&&(u=-u,v=-v,Ie=-Ie,ve=-ve),{scale:new Ye(ve,0,0,Ee,0,0),translate:new Ye(1,0,0,1,X,he),rotate:new Ye(u,v,-v,u,0,0),skew:new Ye(1,0,Ie,1,0,0)}},Ye.prototype.toString=function(u){return this.join(" ")},Ye.prototype.inversed=function(){var u=this.sx,v=this.shy,I=this.shx,H=this.sy,X=this.tx,he=this.ty,ve=1/(u*H-v*I),Ie=H*ve,Ee=-v*ve,Ze=-I*ve,nt=u*ve;return new Ye(Ie,Ee,Ze,nt,-Ie*X-Ze*he,-Ee*X-nt*he)},Ye.prototype.applyToPoint=function(u){var v=u.x*this.sx+u.y*this.shx+this.tx,I=u.x*this.shy+u.y*this.sy+this.ty;return new pi(v,I)},Ye.prototype.applyToRectangle=function(u){var v=this.applyToPoint(u),I=this.applyToPoint(new pi(u.x+u.w,u.y+u.h));return new Fa(v.x,v.y,I.x-v.x,I.y-v.y)},Ye.prototype.clone=function(){var u=this.sx,v=this.shy,I=this.shx,H=this.sy,X=this.tx,he=this.ty;return new Ye(u,v,I,H,X,he)},m.Matrix=Ye;var Ar=m.matrixMult=function(u,v){return v.multiply(u)},Sr=new Ye(1,0,0,1,0,0);m.unitMatrix=m.identityMatrix=Sr;var Gn=function(u,v){if(!Pt[u]){var I=(v instanceof Pi?"Sh":"P")+(Object.keys(ze).length+1).toString(10);v.id=I,Pt[u]=I,ze[I]=v,yt.publish("addPattern",v)}};m.ShadingPattern=Pi,m.TilingPattern=fa,m.addShadingPattern=function(u,v){return U("addShadingPattern()"),Gn(u,v),this},m.beginTilingPattern=function(u){U("beginTilingPattern()"),Ca(u.boundingBox[0],u.boundingBox[1],u.boundingBox[2]-u.boundingBox[0],u.boundingBox[3]-u.boundingBox[1],u.matrix)},m.endTilingPattern=function(u,v){U("endTilingPattern()"),v.stream=Ne[R].join(`
49`),Gn(u,v),yt.publish("endTilingPattern",v),lr.pop().restore()};var Wn,zt=m.__private__.newObject=function(){var u=on();return cn(u,!0),u},on=m.__private__.newObjectDeferred=function(){return $++,ee[$]=function(){return ue},$},cn=function(u,v){return v=typeof v=="boolean"&&v,ee[u]=ue,v&&E(u+" 0 obj"),u},ui=m.__private__.newAdditionalObject=function(){var u={objId:on(),content:""};return be.push(u),u},Gr=on(),Xn=on(),cr=m.__private__.decodeColorString=function(u){var v=u.split(" ");if(v.length!==2||v[1]!=="g"&&v[1]!=="G")v.length!==5||v[4]!=="k"&&v[4]!=="K"||(v=[(1-v[0])*(1-v[3]),(1-v[1])*(1-v[3]),(1-v[2])*(1-v[3]),"r"]);else{var I=parseFloat(v[0]);v=[I,I,I,"r"]}for(var H="#",X=0;X<3;X++)H+=("0"+Math.floor(255*parseFloat(v[X])).toString(16)).slice(-2);return H},Zn=m.__private__.encodeColorString=function(u){var v;typeof u=="string"&&(u={ch1:u});var I=u.ch1,H=u.ch2,X=u.ch3,he=u.ch4,ve=u.pdfColorType==="draw"?["G","RG","K"]:["g","rg","k"];if(typeof I=="string"&&I.charAt(0)!=="#"){var Ie=new bh(I);if(Ie.ok)I=Ie.toHex();else if(!/^\d*\.?\d*$/.test(I))throw new Error('Invalid color "'+I+'" passed to jsPDF.encodeColorString.')}if(typeof I=="string"&&/^#[0-9A-Fa-f]{3}$/.test(I)&&(I="#"+I[1]+I[1]+I[2]+I[2]+I[3]+I[3]),typeof I=="string"&&/^#[0-9A-Fa-f]{6}$/.test(I)){var Ee=parseInt(I.substr(1),16);I=Ee>>16&255,H=Ee>>8&255,X=255&Ee}if(H===void 0||he===void 0&&I===H&&H===X)v=typeof I=="string"?I+" "+ve[0]:u.precision===2?L(I/255)+" "+ve[0]:O(I/255)+" "+ve[0];else if(he===void 0||At(he)==="object"){if(he&&!isNaN(he.a)&&he.a===0)return["1.","1.","1.",ve[1]].join(" ");v=typeof I=="string"?[I,H,X,ve[1]].join(" "):u.precision===2?[L(I/255),L(H/255),L(X/255),ve[1]].join(" "):[O(I/255),O(H/255),O(X/255),ve[1]].join(" ")}else v=typeof I=="string"?[I,H,X,he,ve[2]].join(" "):u.precision===2?[L(I),L(H),L(X),L(he),ve[2]].join(" "):[O(I),O(H),O(X),O(he),ve[2]].join(" ");return v},Qn=m.__private__.getFilters=function(){return h},Hn=m.__private__.putStream=function(u){var v=(u=u||{}).data||"",I=u.filters||Qn(),H=u.alreadyAppliedFilters||[],X=u.addLength1||!1,he=v.length,ve=u.objectId,Ie=function(Ot){return Ot};if(g!==null&&ve===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");g!==null&&(Ie=un.encryptor(ve,0));var Ee={};I===!0&&(I=["FlateEncode"]);var Ze=u.additionalKeyValues||[],nt=(Ee=De.API.processDataByFilters!==void 0?De.API.processDataByFilters(v,I):{data:v,reverseChain:[]}).reverseChain+(Array.isArray(H)?H.join(" "):H.toString());if(Ee.data.length!==0&&(Ze.push({key:"Length",value:Ee.data.length}),X===!0&&Ze.push({key:"Length1",value:he})),nt.length!=0)if(nt.split("/").length-1==1)Ze.push({key:"Filter",value:nt});else{Ze.push({key:"Filter",value:"["+nt+"]"});for(var mt=0;mt<Ze.length;mt+=1)if(Ze[mt].key==="DecodeParms"){for(var en=[],Lt=0;Lt<Ee.reverseChain.split("/").length-1;Lt+=1)en.push("null");en.push(Ze[mt].value),Ze[mt].value="["+en.join(" ")+"]"}}E("<<");for(var St=0;St<Ze.length;St++)E("/"+Ze[St].key+" "+Ze[St].value);E(">>"),Ee.data.length!==0&&(E("stream"),E(Ie(Ee.data)),E("endstream"))},hi=m.__private__.putPage=function(u){var v=u.number,I=u.data,H=u.objId,X=u.contentsObjId;cn(H,!0),E("<</Type /Page"),E("/Parent "+u.rootDictionaryObjId+" 0 R"),E("/Resources "+u.resourceDictionaryObjId+" 0 R"),E("/MediaBox ["+parseFloat(J(u.mediaBox.bottomLeftX))+" "+parseFloat(J(u.mediaBox.bottomLeftY))+" "+J(u.mediaBox.topRightX)+" "+J(u.mediaBox.topRightY)+"]"),u.cropBox!==null&&E("/CropBox ["+J(u.cropBox.bottomLeftX)+" "+J(u.cropBox.bottomLeftY)+" "+J(u.cropBox.topRightX)+" "+J(u.cropBox.topRightY)+"]"),u.bleedBox!==null&&E("/BleedBox ["+J(u.bleedBox.bottomLeftX)+" "+J(u.bleedBox.bottomLeftY)+" "+J(u.bleedBox.topRightX)+" "+J(u.bleedBox.topRightY)+"]"),u.trimBox!==null&&E("/TrimBox ["+J(u.trimBox.bottomLeftX)+" "+J(u.trimBox.bottomLeftY)+" "+J(u.trimBox.topRightX)+" "+J(u.trimBox.topRightY)+"]"),u.artBox!==null&&E("/ArtBox ["+J(u.artBox.bottomLeftX)+" "+J(u.artBox.bottomLeftY)+" "+J(u.artBox.topRightX)+" "+J(u.artBox.topRightY)+"]"),typeof u.userUnit=="number"&&u.userUnit!==1&&E("/UserUnit "+u.userUnit),yt.publish("putPage",{objId:H,pageContext:Ve[v],pageNumber:v,page:I}),E("/Contents "+X+" 0 R"),E(">>"),E("endobj");var he=I.join(`
50`);return q===D&&(he+=`
51Q`),cn(X,!0),Hn({data:he,filters:Qn(),objectId:X}
vendor: 13,955 bytes, lines 51-54
51),E("endobj"),H},ur=m.__private__.putPages=function(){var u,v,I=[];for(u=1;u<=ut;u++)Ve[u].objId=on(),Ve[u].contentsObjId=on();for(u=1;u<=ut;u++)I.push(hi({number:u,data:Ne[u],objId:Ve[u].objId,contentsObjId:Ve[u].contentsObjId,mediaBox:Ve[u].mediaBox,cropBox:Ve[u].cropBox,bleedBox:Ve[u].bleedBox,trimBox:Ve[u].trimBox,artBox:Ve[u].artBox,userUnit:Ve[u].userUnit,rootDictionaryObjId:Gr,resourceDictionaryObjId:Xn}));cn(Gr,!0),E("<</Type /Pages");var H="/Kids [";for(v=0;v<ut;v++)H+=I[v]+" 0 R ";E(H+"]"),E("/Count "+ut),E(">>"),E("endobj"),yt.publish("postPutPages")},fi=function(u){yt.publish("putFont",{font:u,out:E,newObject:zt,putStream:Hn}),u.isAlreadyPutted!==!0&&(u.objectNumber=zt(),E("<<"),E("/Type /Font"),E("/BaseFont /"+ha(u.postScriptName)),E("/Subtype /Type1"),typeof u.encoding=="string"&&E("/Encoding /"+u.encoding),E("/FirstChar 32"),E("/LastChar 255"),E(">>"),E("endobj"))},Ti=function(u){u.objectNumber=zt();var v=[];v.push({key:"Type",value:"/XObject"}),v.push({key:"Subtype",value:"/Form"}),v.push({key:"BBox",value:"["+[J(u.x),J(u.y),J(u.x+u.width),J(u.y+u.height)].join(" ")+"]"}),v.push({key:"Matrix",value:"["+u.matrix.toString()+"]"});var I=u.pages[1].join(`
52`);Hn({data:I,additionalKeyValues:v,objectId:u.objectNumber}),E("endobj")},Di=function(u,v){v||(v=21);var I=zt(),H=(function(ve,Ie){var Ee,Ze=[],nt=1/(Ie-1);for(Ee=0;Ee<1;Ee+=nt)Ze.push(Ee);if(Ze.push(1),ve[0].offset!=0){var mt={offset:0,color:ve[0].color};ve.unshift(mt)}if(ve[ve.length-1].offset!=1){var en={offset:1,color:ve[ve.length-1].color};ve.push(en)}for(var Lt="",St=0,Ot=0;Ot<Ze.length;Ot++){for(Ee=Ze[Ot];Ee>ve[St+1].offset;)St++;var qt=ve[St].offset,Ut=(Ee-qt)/(ve[St+1].offset-qt),gn=ve[St].color,Cr=ve[St+1].color;Lt+=G(Math.round((1-Ut)*gn[0]+Ut*Cr[0]).toString(16))+G(Math.round((1-Ut)*gn[1]+Ut*Cr[1]).toString(16))+G(Math.round((1-Ut)*gn[2]+Ut*Cr[2]).toString(16))}return Lt.trim()})(u.colors,v),X=[];X.push({key:"FunctionType",value:"0"}),X.push({key:"Domain",value:"[0.0 1.0]"}),X.push({key:"Size",value:"["+v+"]"}),X.push({key:"BitsPerSample",value:"8"}),X.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),X.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Hn({data:H,additionalKeyValues:X,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:I}),E("endobj"),u.objectNumber=zt(),E("<< /ShadingType "+u.type),E("/ColorSpace /DeviceRGB");var he="/Coords ["+J(parseFloat(u.coords[0]))+" "+J(parseFloat(u.coords[1]))+" ";u.type===2?he+=J(parseFloat(u.coords[2]))+" "+J(parseFloat(u.coords[3])):he+=J(parseFloat(u.coords[2]))+" "+J(parseFloat(u.coords[3]))+" "+J(parseFloat(u.coords[4]))+" "+J(parseFloat(u.coords[5])),E(he+="]"),u.matrix&&E("/Matrix ["+u.matrix.toString()+"]"),E("/Function "+I+" 0 R"),E("/Extend [true true]"),E(">>"),E("endobj")},Mi=function(u,v){var I=on(),H=zt();v.push({resourcesOid:I,objectOid:H}),u.objectNumber=H;var X=[];X.push({key:"Type",value:"/Pattern"}),X.push({key:"PatternType",value:"1"}),X.push({key:"PaintType",value:"1"}),X.push({key:"TilingType",value:"1"}),X.push({key:"BBox",value:"["+u.boundingBox.map(J).join(" ")+"]"}),X.push({key:"XStep",value:J(u.xStep)}),X.push({key:"YStep",value:J(u.yStep)}),X.push({key:"Resources",value:I+" 0 R"}),u.matrix&&X.push({key:"Matrix",value:"["+u.matrix.toString()+"]"}),Hn({data:u.stream,additionalKeyValues:X,objectId:u.objectNumber}),E("endobj")},lo=function(u){for(var v in u.objectNumber=zt(),E("<<"),u)switch(v){case"opacity":E("/ca "+L(u[v]));break;case"stroke-opacity":E("/CA "+L(u[v]))}E(">>"),E("endobj")},_a=function(u){cn(u.resourcesOid,!0),E("<<"),E("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var v in E("/Font <<"),lt)lt.hasOwnProperty(v)&&(w===!1||w===!0&&k.hasOwnProperty(v))&&E("/"+v+" "+lt[v].objectNumber+" 0 R");E(">>")})(),(function(){if(Object.keys(ze).length>0){for(var v in E("/Shading <<"),ze)ze.hasOwnProperty(v)&&ze[v]instanceof Pi&&ze[v].objectNumber>=0&&E("/"+v+" "+ze[v].objectNumber+" 0 R");yt.publish("putShadingPatternDict"),E(">>")}})(),(function(v){if(Object.keys(ze).length>0){for(var I in E("/Pattern <<"),ze)ze.hasOwnProperty(I)&&ze[I]instanceof m.TilingPattern&&ze[I].objectNumber>=0&&ze[I].objectNumber<v&&E("/"+I+" "+ze[I].objectNumber+" 0 R");yt.publish("putTilingPatternDict"),E(">>")}})(u.objectOid),(function(){if(Object.keys($e).length>0){var v;for(v in E("/ExtGState <<"),$e)$e.hasOwnProperty(v)&&$e[v].objectNumber>=0&&E("/"+v+" "+$e[v].objectNumber+" 0 R");yt.publish("putGStateDict"),E(">>")}})(),(function(){for(var v in E("/XObject <<"),mn)mn.hasOwnProperty(v)&&mn[v].objectNumber>=0&&E("/"+v+" "+mn[v].objectNumber+" 0 R");yt.publish("putXobjectDict"),E(">>")})(),E(">>"),E("endobj")},ns=function(u){ct[u.fontName]=ct[u.fontName]||{},ct[u.fontName][u.fontStyle]=u.id},rs=function(u,v,I,H,X){var he={id:"F"+(Object.keys(lt).length+1).toString(10),postScriptName:u,fontName:v,fontStyle:I,encoding:H,isStandardFont:X||!1,metadata:{}};return yt.publish("addFont",{font:he,instance:this}),lt[he.id]=he,ns(he),he.id},Vn=m.__private__.pdfEscape=m.pdfEscape=function(u,v){return(function(I,H){var X,he,ve,Ie,Ee,Ze,nt,mt,en;if(ve=(H=H||{}).sourceEncoding||"Unicode",Ee=H.outputEncoding,(H.autoencode||Ee)&&lt[Be].metadata&&lt[Be].metadata[ve]&&lt[Be].metadata[ve].encoding&&(Ie=lt[Be].metadata[ve].encoding,!Ee&&lt[Be].encoding&&(Ee=lt[Be].encoding),!Ee&&Ie.codePages&&(Ee=Ie.codePages[0]),typeof Ee=="string"&&(Ee=Ie[Ee]),Ee)){for(nt=!1,Ze=[],X=0,he=I.length;X<he;X++)(mt=Ee[I.charCodeAt(X)])?Ze.push(String.fromCharCode(mt)):Ze.push(I[X]),Ze[X].charCodeAt(0)>>8&&(nt=!0);I=Ze.join("")}for(X=I.length;nt===void 0&&X!==0;)I.charCodeAt(X-1)>>8&&(nt=!0),X--;if(!nt)return I;for(Ze=H.noBOM?[]:[254,255],X=0,he=I.length;X<he;X++){if((en=(mt=I.charCodeAt(X))>>8)>>8)throw new Error("Character at position "+X+" of string '"+I+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Ze.push(en),Ze.push(mt-(en<<8))}return String.fromCharCode.apply(void 0,Ze)})(u,v).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Na=m.__private__.beginPage=function(u){Ne[++ut]=[],Ve[ut]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(u[0]),topRightY:Number(u[1])}},as(ut),qe(Ne[R])},is=function(u,v){var I,H,X;switch(e=v||e,typeof u=="string"&&(I=y(u.toLowerCase()),Array.isArray(I)&&(H=I[0],X=I[1])),Array.isArray(u)&&(H=u[0]*it,X=u[1]*it),isNaN(H)&&(H=a[0],X=a[1]),(H>14400||X>14400)&&(kt.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),H=Math.min(14400,H),X=Math.min(14400,X)),a=[H,X],e.substr(0,1)){case"l":X>H&&(a=[X,H]);break;case"p":H>X&&(a=[X,H])}Na(a),xo(Ke),E(Hi),ka!==0&&E(ka+" J"),Vr!==0&&E(Vr+" j"),yt.publish("addPage",{pageNumber:ut})},Aa=function(u){u>0&&u<=ut&&(Ne.splice(u,1),Ve.splice(u,1),ut--,R>ut&&(R=ut),this.setPage(R))},as=function(u){u>0&&u<=ut&&(R=u)},ss=m.__private__.getNumberOfPages=m.getNumberOfPages=function(){return Ne.length-1},os=function(u,v,I){var H,X=void 0;return I=I||{},u=u!==void 0?u:lt[Be].fontName,v=v!==void 0?v:lt[Be].fontStyle,H=u.toLowerCase(),ct[H]!==void 0&&ct[H][v]!==void 0?X=ct[H][v]:ct[u]!==void 0&&ct[u][v]!==void 0?X=ct[u][v]:I.disableWarning===!1&&kt.warn("Unable to look up font label for font '"+u+"', '"+v+"'. Refer to getFontList() for available fonts."),X||I.noFallback||(X=ct.times[v])==null&&(X=ct.times.normal),X},hr=m.__private__.putInfo=function(){var u=zt(),v=function(H){return H};for(var I in g!==null&&(v=un.encryptor(u,0)),E("<<"),E("/Producer ("+Vn(v("jsPDF "+De.version))+")"),ft)ft.hasOwnProperty(I)&&ft[I]&&E("/"+I.substr(0,1).toUpperCase()+I.substr(1)+" ("+Vn(v(ft[I]))+")");E("/CreationDate ("+Vn(v(ie))+")"),E(">>"),E("endobj")},qi=m.__private__.putCatalog=function(u){var v=(u=u||{}).rootDictionaryObjId||Gr;switch(zt(),E("<<"),E("/Type /Catalog"),E("/Pages "+v+" 0 R"),He||(He="fullwidth"),He){case"fullwidth":E("/OpenAction [3 0 R /FitH null]");break;case"fullheight":E("/OpenAction [3 0 R /FitV null]");break;case"fullpage":E("/OpenAction [3 0 R /Fit]");break;case"original":E("/OpenAction [3 0 R /XYZ null null 1]");break;default:var I=""+He;I.substr(I.length-1)==="%"&&(He=parseInt(He)/100),typeof He=="number"&&E("/OpenAction [3 0 R /XYZ null null "+L(He)+"]")}switch(ht||(ht="continuous"),ht){case"continuous":E("/PageLayout /OneColumn");break;case"single":E("/PageLayout /SinglePage");break;case"two":case"twoleft":E("/PageLayout /TwoColumnLeft");break;case"tworight":E("/PageLayout /TwoColumnRight")}Ue&&E("/PageMode /"+Ue),yt.publish("putCatalog"),E(">>"),E("endobj")},co=m.__private__.putTrailer=function(){E("trailer"),E("<<"),E("/Size "+($+1)),E("/Root "+$+" 0 R"),E("/Info "+($-1)+" 0 R"),g!==null&&E("/Encrypt "+un.oid+" 0 R"),E("/ID [ <"+oe+"> <"+oe+"> ]"),E(">>")},Qt=m.__private__.putHeader=function(){E("%PDF-"+F),E("%ºß¬à")},ls=m.__private__.putXRef=function(){var u="0000000000";E("xref"),E("0 "+($+1)),E("0000000000 65535 f ");for(var v=1;v<=$;v++)typeof ee[v]=="function"?E((u+ee[v]()).slice(-10)+" 00000 n "):ee[v]!==void 0?E((u+ee[v]).slice(-10)+" 00000 n "):E("0000000000 00000 n ")},fr=m.__private__.buildDocument=function(){var u;$=0,ue=0,le=[],ee=[],be=[],Gr=on(),Xn=on(),qe(le),yt.publish("buildDocument"),Qt(),ur(),(function(){yt.publish("putAdditionalObjects");for(var I=0;I<be.length;I++){var H=be[I];cn(H.objId,!0),E(H.content),E("endobj")}yt.publish("postPutAdditionalObjects")})(),u=[],(function(){for(var I in lt)lt.hasOwnProperty(I)&&(w===!1||w===!0&&k.hasOwnProperty(I))&&fi(lt[I])})(),(function(){var I;for(I in $e)$e.hasOwnProperty(I)&&lo($e[I])})(),(function(){for(var I in mn)mn.hasOwnProperty(I)&&Ti(mn[I])})(),(function(I){var H;for(H in ze)ze.hasOwnProperty(H)&&(ze[H]instanceof Pi?Di(ze[H]):ze[H]instanceof fa&&Mi(ze[H],I))})(u),yt.publish("putResources"),u.forEach(_a),_a({resourcesOid:Xn,objectOid:Number.MAX_SAFE_INTEGER}),yt.publish("postPutResources"),g!==null&&(un.oid=zt(),E("<<"),E("/Filter /Standard"),E("/V "+un.v),E("/R "+un.r),E("/U <"+un.toHexString(un.U)+">"),E("/O <"+un.toHexString(un.O)+">"),E("/P "+un.P),E(">>"),E("endobj")),hr(),qi();var v=ue;return ls(),co(),E("startxref"),E(""+v),E("%%EOF"),qe(Ne[R]),le.join(`
53`)},Ui=m.__private__.getBlob=function(u){return new Blob([ot(u)],{type:"application/pdf"})},Sa=function(u){for(;u.firstChild;)u.removeChild(u.firstChild)},In=function(u){var v,I=u.document,H=I.documentElement,X=I.head,he=I.body;return X||(X=I.createElement("head"),H.appendChild(X)),he||(he=I.createElement("body"),H.appendChild(he)),Sa(X),Sa(he),(v=I.createElement("style")).appendChild(I.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),X.appendChild(v),{document:I,body:he}},zi=m.output=m.__private__.output=(Wn=function(u,v){switch(typeof(v=v||{})=="string"?v={filename:v}:v.filename=v.filename||"generated.pdf",u){case void 0:return fr();case"save":m.save(v.filename);break;case"arraybuffer":return ot(fr());case"blob":return Ui(fr());case"bloburi":case"bloburl":if(Xe.URL!==void 0&&typeof Xe.URL.createObjectURL=="function")return Xe.URL&&Xe.URL.createObjectURL(Ui(fr()))||void 0;kt.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var I="",H=fr();try{I=du(H)}catch{I=du(unescape(encodeURIComponent(H)))}return"data:application/pdf;filename="+encodeURIComponent(v.filename)+";base64,"+I;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Xe)==="[object Window]"){var X="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",he=!v.pdfObjectUrl;he||(X=v.pdfObjectUrl);var ve=Xe.open();if(ve!==null){var Ie=In(ve),Ee=Ie.document.createElement("script"),Ze=this;Ee.src=X,he&&(Ee.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ee.crossOrigin="anonymous"),Ee.onload=function(){ve.PDFObject.embed(Ze.output("dataurlstring"),v)},Ie.body.appendChild(Ee)}return ve}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Xe)==="[object Window]"){var nt=v.pdfJsUrl||"examples/PDF.js/web/viewer.html",mt=Xe.open();if(mt!==null){var en=In(mt),Lt=en.document.createElement("iframe"),St=nt.indexOf("?")===-1?"?":"&";Ze=this,Lt.id="pdfViewer",Lt.width="500px",Lt.height="400px",Lt.src=nt+St+"file=&downloadName="+encodeURIComponent(v.filename),Lt.onload=function(){mt.document.title=v.filename,Lt.contentWindow.PDFViewerApplication.open(Ze.output("bloburl"))},en.body.appendChild(Lt)}return mt}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Xe)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Ot=Xe.open();if(Ot!==null){var qt=In(Ot),Ut=qt.document.createElement("iframe");Ut.src=this.output("datauristring",v),qt.body.appendChild(Ut),Ot.document.title=v.filename}if(Ot||typeof safari>"u")return Ot;break;case"datauri":case"dataurl":return Xe.document.location.href=this.output("datauristring",v);default:return null}},Wn.foo=function(){try{return Wn.apply(this,arguments)}catch(I){var u=I.stack||"";~u.indexOf(" at ")&&(u=u.split(" at ")[1]);var v="Error in function "+u.split(`
54`)[0].split("<")[0]+": "+I.message;if(!Xe.console)throw new Error(v);Xe.console.error(v,I),Xe.alert&&alert(v)}},Wn.foo.bar=Wn,Wn.foo),Lr=function(u){return Array.isArray(ci)===!0&&ci.indexOf(u)>-1};switch(r){case"pt":it=1;break;case"mm":it=72/25.4;break;case"cm":it=72/2.54;break;case"in":it=72;break;case"px":it=Lr("px_scaling")==1?.75:96/72;break;case"pc":case"em":it=12;break;case"ex":it=6;break;default:if(typeof r!="number")throw new Error("Invalid unit: "+r);it=r}var un=null;xe(),re();var cs=m.__private__.getPageInfo=m.getPageInfo=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to 
54jsPDF.getPageInfo");return{objId:Ve[u].objId,pageNumber:u,pageContext:Ve[u]}},uo=m.__private__.getPageInfoByObjId=function(u){if(isNaN(u)||u%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var v in Ve)if(Ve[v].objId===u)break;return cs(v)},ho=m.__private__.getCurrentPageInfo=m.getCurrentPageInfo=function(){return{objId:Ve[R].objId,pageNumber:R,pageContext:Ve[R]}};m.addPage=function(){return is.apply(this,arguments),this},m.setPage=function(){return as.apply(this,arguments),qe.call(this,Ne[R]),this},m.insertPage=function(u){return this.addPage(),this.movePage(R,u),this},m.movePage=function(u,v){var I,H;if(u>v){I=Ne[u],H=Ve[u];for(var X=u;X>v;X--)Ne[X]=Ne[X-1],Ve[X]=Ve[X-1];Ne[v]=I,Ve[v]=H,this.setPage(v)}else if(u<v){I=Ne[u],H=Ve[u];for(var he=u;he<v;he++)Ne[he]=Ne[he+1],Ve[he]=Ve[he+1];Ne[v]=I,Ve[v]=H,this.setPage(v)}return this},m.deletePage=function(){return Aa.apply(this,arguments),this},m.__private__.text=m.text=function(u,v,I,H,X){var he,ve,Ie,Ee,Ze,nt,mt,en,Lt,St=(H=H||{}).scope||this;if(typeof u=="number"&&typeof v=="number"&&(typeof I=="string"||Array.isArray(I))){var Ot=I;I=v,v=u,u=Ot}if(arguments[3]instanceof Ye==0?(Ie=arguments[4],Ee=arguments[5],At(mt=arguments[3])==="object"&&mt!==null||(typeof Ie=="string"&&(Ee=Ie,Ie=null),typeof mt=="string"&&(Ee=mt,mt=null),typeof mt=="number"&&(Ie=mt,mt=null),H={flags:mt,angle:Ie,align:Ee})):(U("The transform parameter of text() with a Matrix value"),Lt=X),isNaN(v)||isNaN(I)||u==null)throw new Error("Invalid arguments passed to jsPDF.text");if(u.length===0)return St;var qt,Ut="",gn=typeof H.lineHeightFactor=="number"?H.lineHeightFactor:di,Cr=St.internal.scaleFactor;function Ea(Ft){return Ft=Ft.split("	").join(Array(H.TabLen||9).join(" ")),Vn(Ft,mt)}function gi(Ft){for(var Ct,Yt=Ft.concat(),nn=[],Ir=Yt.length;Ir--;)typeof(Ct=Yt.shift())=="string"?nn.push(Ct):Array.isArray(Ft)&&(Ct.length===1||Ct[1]===void 0&&Ct[2]===void 0)?nn.push(Ct[0]):nn.push([Ct[0],Ct[1],Ct[2]]);return nn}function bi(Ft,Ct){var Yt;if(typeof Ft=="string")Yt=Ct(Ft)[0];else if(Array.isArray(Ft)){for(var nn,Ir,Da=Ft.concat(),ra=[],xs=Da.length;xs--;)typeof(nn=Da.shift())=="string"?ra.push(Ct(nn)[0]):Array.isArray(nn)&&typeof nn[0]=="string"&&(Ir=Ct(nn[0],nn[1],nn[2]),ra.push([Ir[0],Ir[1],Ir[2]]));Yt=ra}return Yt}var Yr=!1,vi=!0;if(typeof u=="string")Yr=!0;else if(Array.isArray(u)){var Ji=u.concat();ve=[];for(var Ki,bn=Ji.length;bn--;)(typeof(Ki=Ji.shift())!="string"||Array.isArray(Ki)&&typeof Ki[0]!="string")&&(vi=!1);Yr=vi}if(Yr===!1)throw new Error('Type of text must be string or Array. "'+u+'" is not recognized.');typeof u=="string"&&(u=u.match(/[\r?\n]/)?u.split(/\r\n|\r|\n/g):[u]);var xi=we/St.internal.scaleFactor,yi=xi*(gn-1);switch(H.baseline){case"bottom":I-=yi;break;case"top":I+=xi-yi;break;case"hanging":I+=xi-2*yi;break;case"middle":I+=xi/2-yi}if((nt=H.maxWidth||0)>0&&(typeof u=="string"?u=St.splitTextToSize(u,nt):Object.prototype.toString.call(u)==="[object Array]"&&(u=u.reduce(function(Ft,Ct){return Ft.concat(St.splitTextToSize(Ct,nt))},[]))),he={text:u,x:v,y:I,options:H,mutex:{pdfEscape:Vn,activeFontKey:Be,fonts:lt,activeFontSize:we}},yt.publish("preProcessText",he),u=he.text,Ie=(H=he.options).angle,Lt instanceof Ye==0&&Ie&&typeof Ie=="number"){Ie*=Math.PI/180,H.rotationDirection===0&&(Ie=-Ie),q===D&&(Ie=-Ie);var Ia=Math.cos(Ie),mr=Math.sin(Ie);Lt=new Ye(Ia,mr,-mr,Ia,0,0)}else Ie&&Ie instanceof Ye&&(Lt=Ie);q!==D||Lt||(Lt=Sr),(Ze=H.charSpace||Vi)!==void 0&&(Ut+=J(V(Ze))+` Tc
55`,this.setCharSpace(this.getCharSpace()||0)),(en=H.horizontalScale)!==void 0&&(Ut+=J(100*en)+` Tz
56`),H.lang;var An=-1,bs=H.renderingMode!==void 0?H.renderingMode:H.stroke,Xi=St.internal.getCurrentPageInfo().pageContext;switch(bs){case 0:case!1:case"fill":An=0;break;case 1:case!0:case"stroke":An=1;break;case 2:case"fillThenStroke":An=2;break;case 3:case"invisible":An=3;break;case 4:case"fillAndAddForClipping":An=4;break;case 5:case"strokeAndAddPathForClipping":An=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":An=6;break;case 7:case"addToPathForClipping":An=7}var vs=Xi.usedRenderingMode!==void 0?Xi.usedRenderingMode:-1;An!==-1?Ut+=An+` Tr
57`:vs!==-1&&(Ut+=`0 Tr
58`),An!==-1&&(Xi.usedRenderingMode=An),Ee=H.align||"left";var Yn,wi=we*gn,Oa=St.internal.pageSize.getWidth(),Zi=lt[Be];Ze=H.charSpace||Vi,nt=H.maxWidth||0,mt=Object.assign({autoencode:!0,noBOM:!0},H.flags);var _i=[],Ra=function(Ft){return St.getStringUnitWidth(Ft,{font:Zi,charSpace:Ze,fontSize:we,doKerning:!1})*we/Cr};if(Object.prototype.toString.call(u)==="[object Array]"){var Sn;ve=gi(u),Ee!=="left"&&(Yn=ve.map(Ra));var Pn,Qi=0;
vendor: 6,123 bytes, lines 58-68
58if(Ee==="right"){v-=Yn[0],u=[],bn=ve.length;for(var $r=0;$r<bn;$r++)$r===0?(Pn=jr(v),Sn=kr(I)):(Pn=V(Qi-Yn[$r]),Sn=-wi),u.push([ve[$r],Pn,Sn]),Qi=Yn[$r]}else if(Ee==="center"){v-=Yn[0]/2,u=[],bn=ve.length;for(var Jr=0;Jr<bn;Jr++)Jr===0?(Pn=jr(v),Sn=kr(I)):(Pn=V((Qi-Yn[Jr])/2),Sn=-wi),u.push([ve[Jr],Pn,Sn]),Qi=Yn[Jr]}else if(Ee==="left"){u=[],bn=ve.length;for(var ea=0;ea<bn;ea++)u.push(ve[ea])}else if(Ee==="justify"&&Zi.encoding==="Identity-H"){u=[],bn=ve.length,nt=nt!==0?nt:Oa;for(var Ni=0,tn=0;tn<bn;tn++)if(Sn=tn===0?kr(I):-wi,Pn=tn===0?jr(v):Ni,tn<bn-1){var jo=V((nt-Yn[tn])/(ve[tn].split(" ").length-1)),gr=ve[tn].split(" ");u.push([gr[0]+" ",Pn,Sn]),Ni=0;for(var er=1;er<gr.length;er++){var Ai=(Ra(gr[er-1]+" "+gr[er])-Ra(gr[er]))*Cr+jo;er==gr.length-1?u.push([gr[er],Ai,0]):u.push([gr[er]+" ",Ai,0]),Ni-=Ai}}else u.push([ve[tn],Pn,Sn]);u.push(["",Ni,0])}else{if(Ee!=="justify")throw new Error('Unrecognized alignment option, use "left", "center", "right" or "justify".');for(u=[],bn=ve.length,nt=nt!==0?nt:Oa,tn=0;tn<bn;tn++){Sn=tn===0?kr(I):-wi,Pn=tn===0?jr(v):0;var Ba=ve[tn].split(" ").length-1,Ta=Ba>0?(nt-Yn[tn])/Ba:0;tn<bn-1?_i.push(J(V(Ta))):_i.push(0),u.push([ve[tn],Pn,Sn])}}}(typeof H.R2L=="boolean"?H.R2L:Ge)===!0&&(u=bi(u,function(Ft,Ct,Yt){return[Ft.split("").reverse().join(""),Ct,Yt]})),he={text:u,x:v,y:I,options:H,mutex:{pdfEscape:Vn,activeFontKey:Be,fonts:lt,activeFontSize:we}},yt.publish("postProcessText",he),u=he.text,qt=he.mutex.isHex||!1;var ta=lt[Be].encoding;ta!=="WinAnsiEncoding"&&ta!=="StandardEncoding"||(u=bi(u,function(Ft,Ct,Yt){return[Ea(Ft),Ct,Yt]})),ve=gi(u),u=[];for(var Si,Li,Kr,Er=Array.isArray(ve[0])?1:0,Xr="",na=function(Ft,Ct,Yt){var nn="";return Yt instanceof Ye?(Yt=typeof H.angle=="number"?Ar(Yt,new Ye(1,0,0,1,Ft,Ct)):Ar(new Ye(1,0,0,1,Ft,Ct),Yt),q===D&&(Yt=Ar(new Ye(1,0,0,-1,0,0),Yt)),nn=Yt.join(" ")+` Tm
59`):nn=J(Ft)+" "+J(Ct)+` Td
60`,nn},vn=0;vn<ve.length;vn++){switch(Xr="",Er){case 1:Kr=(qt?"<":"(")+ve[vn][0]+(qt?">":")"),Si=parseFloat(ve[vn][1]),Li=parseFloat(ve[vn][2]);break;case 0:Kr=(qt?"<":"(")+ve[vn]+(qt?">":")"),Si=jr(v),Li=kr(I)}_i!==void 0&&_i[vn]!==void 0&&(Xr=_i[vn]+` Tw
61`),vn===0?u.push(Xr+na(Si,Li,Lt)+Kr):Er===0?u.push(Xr+Kr):Er===1&&u.push(Xr+na(Si,Li,Lt)+Kr)}u=Er===0?u.join(` Tj
62T* `):u.join(` Tj
63`),u+=` Tj
64`;var br=`BT
65/`;return br+=Be+" "+we+` Tf
66`,br+=J(we*gn)+` TL
67`,br+=pr+`
68`,br+=Ut,br+=u,E(br+="ET"),k[Be]=!0,St};var fo=m.__private__.clip=m.clip=function(u){return E(u==="evenodd"?"W*":"W"),this};m.clipEvenOdd=function(){return fo("evenodd")},m.__private__.discardPath=m.discardPath=function(){return E("n"),this};var dr=m.__private__.isValidStyle=function(u){var v=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(u)!==-1&&(v=!0),v};m.__private__.setDefaultPathOperation=m.setDefaultPathOperation=function(u){return dr(u)&&(d=u),this};var us=m.__private__.getStyle=m.getStyle=function(u){var v=d;switch(u){case"D":case"S":v="S";break;case"F":v="f";break;case"FD":case"DF":v="B";break;case"f":case"f*":case"B":case"B*":v=u}return v},Gi=m.close=function(){return E("h"),this};m.stroke=function(){return E("S"),this},m.fill=function(u){return Wi("f",u),this},m.fillEvenOdd=function(u){return Wi("f*",u),this},m.fillStroke=function(u){return Wi("B",u),this},m.fillStrokeEvenOdd=function(u){return Wi("B*",u),this};var Wi=function(u,v){At(v)==="object"?mo(v,u):E(u)},La=function(u){u===null||q===D&&u===void 0||(u=us(u),E(u))};function po(u,v,I,H,X){var he=new fa(v||this.boundingBox,I||this.xStep,H||this.yStep,this.gState,X||this.matrix);he.stream=this.stream;var ve=u+"$$"+this.cloneIndex+++"$$";return Gn(ve,he),he}var mo=function(u,v){var I=Pt[u.key],H=ze[I];if(H instanceof Pi)E("q"),E(go(v)),H.gState&&m.setGState(H.gState),E(u.matrix.toString()+" cm"),E("/"+I+" sh"),E("Q");else if(H instanceof fa){var X=new Ye(1,0,0,-1,0,mi());u.matrix&&(X=X.multiply(u.matrix||Sr),I=po.call(H,u.key,u.boundingBox,u.xStep,u.yStep,X).id),E("q"),E("/Pattern cs"),E("/"+I+" scn"),H.gState&&m.setGState(H.gState),E(v),E("Q")}},go=function(u){switch(u){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Wr=m.moveTo=function(u,v){return E(J(V(u))+" "+J(W(v))+" m"),this},hs=m.lineTo=function(u,v){return E(J(V(u))+" "+J(W(v))+" l"),this},Hr=m.curveTo=function(u,v,I,H,X,he){return E([J(V(u)),J(W(v)),J(V(I)),J(W(H)),J(V(X)),J(W(he)),"c"].join(" ")),this};m.__private__.line=m.line=function(u,v,I,H,X){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(H)||!dr(X))throw new Error("Invalid arguments passed to jsPDF.line");return q===z?this.lines([[I-u,H-v]],u,v,[1,1],X||"S"):this.lines([[I-u,H-v]],u,v,[1,1]).stroke()},m.__private__.lines=m.lines=function(u,v,I,H,X,he){var ve,Ie,Ee,Ze,nt,mt,en,Lt,St,Ot,qt,Ut;if(typeof u=="number"&&(Ut=I,I=v,v=u,u=Ut),H=H||[1,1],he=he||!1,isNaN(v)||isNaN(I)||!Array.isArray(u)||!Array.isArray(H)||!dr(X)||typeof he!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Wr(v,I),ve=H[0],Ie=H[1],Ze=u.length,Ot=v,qt=I,Ee=0;Ee<Ze;Ee++)(nt=u[Ee]).length===2?(Ot=nt[0]*ve+Ot,qt=nt[1]*Ie+qt,hs(Ot,qt)):(mt=nt[0]*ve+Ot,en=nt[1]*Ie+qt,Lt=nt[2]*ve+Ot,St=nt[3]*Ie+qt,Ot=nt[4]*ve+Ot,qt=nt[5]*Ie+qt,Hr(mt,en,Lt,St,Ot,qt));return he&&Gi(),La(X),this},m.path=function(u){for(var v=0;v<u.length;v++){var I=u[v],H=I.c;switch(I.op){case"m":Wr(H[0],H[1]);break;case"l":hs(H[0],H[1]);break;case"c":Hr.apply(this,H);break;case"h":Gi()}}return this},m.__private__.rect=m.rect=function(u,v,I,H,X){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(H)||!dr(X))throw new Error("Invalid arguments passed to jsPDF.rect");return q===z&&(H=-H),E([J(V(u)),J(W(v)),J(V(I)),J(V(H)),"re"].join(" ")),La(X),this},m.__private__.triangle=m.triangle=function(u,v,I,H,X,he,ve){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(H)||isNaN(X)||isNaN(he)||!dr(ve))throw new Error("Invalid arguments passed to jsPDF.triangle");return this.lines([[I-u,H-v],[X-I,he-H],[u-X,v-he]],u,v,[1,1],ve,!0),this},m.__private__.roundedRect=m.roundedRect=function(u,v,I,H,X,he,ve){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(H)||isNaN(X)||isNaN(he)||!dr(ve))throw new Error("Invalid arguments passed to 
68jsPDF.roundedRect");var Ie=4/3*(Math.SQRT2-1);return X=Math.min(X,.5*I),he=Math.min(he,.5*H),this.lines([[I-2*X,0],[X*Ie,0,X,he-he*Ie,X,he],[0,H-2*he],[0,he*Ie,-X*Ie,he,-X,he],[2*X-I,0],[-X*Ie,0,-X,-he*Ie,-X,-he],[0,2*he-H],[0,-he*Ie,X*Ie,-he,X,-he]],u+X,v,[1,1],ve,!0),this},m.__private__.ellipse=m.ellipse=function(u,v,I,H,X){if(isNaN(u)||isNaN(v)||isNaN(I)||isNaN(H)||!dr(X))throw new Error("Invalid arguments passed to jsPDF.ellipse");var he=4/3*(Math.SQRT2-1)*I,ve=4/3*(Math.SQRT2-1)*H;return Wr(u+I,v),Hr(u+I,v-ve,u+he,v-H,u,v-H),Hr(u-he,v-H,u-I,v-ve,u-I,v),Hr(u-I,v+ve,u-he,v+H,u,v+H),Hr(u+he,v+H,u+I,v+ve,u+I,v),La(X),this},m.__private__.circle=m.circle=function(u,v,I,H){if(isNaN(u)||isNaN(v)||isNaN(I)||!dr(H))throw new Error("Invalid arguments passed to jsPDF.circle");return this.ellipse(u,v,I,I,H)},m.setFont=function(u,v,I){return I&&(v=se(v,I)),Be=os(u,v,{disableWarning:!1}),this};var bo=m.__private__.getFont=m.getFont=function(){return lt[os.apply(m,arguments)]};m.__private__.getFontList=m.getFontList=function(){var u,v,I={};for(u in ct)if(ct.hasOwnProperty(u))for(v in I[u]=[],ct[u])ct[u].hasOwnProperty(v)&&I[u].push(v);return I},m.addFont=function(u,v,I,H,X){var he=["StandardEncoding","MacRomanEncoding","Identity-H","WinAnsiEncoding"];return arguments[3]&&he.indexOf(arguments[3])!==-1?X=arguments[3]:arguments[3]&&he.indexOf(arguments[3])==-1&&(I=se(I,H)),rs.call(this,u,v,I,X=X||"Identity-H")};var di,Ke=n.lineWidth||.200025,vo=m.__private__.getLineWidth=m.getLineWidth=function(){return Ke},xo=m.__private__.setLineWidth=m.setLineWidth=function(u){return Ke=u,E(J(V(u))+" w"),this};m.__private__.setLineDash=De.API.setLineDash=De.API.setLineDashPattern=function(u,v){if(u=u||[],v=v||0,isNaN(v)||!Array.isArray(u))throw new Error("Invalid arguments passed to jsPDF.setLineDash");return u=u.map(function(I){return J(V(I))}).join(" "),v=J(V(v)),E("["+u+"] "+v+" d"),this};var yo=m.__private__.getLineHeight=m.getLineHeight=function(){return we*di};m.__private__.getLineHeight=m.getLineHeight=function(){return we*di};var wo=m.__private__.setLineHeightFactor=m.setLineHeightFactor=function(u){return typeof(u=u||1.15)=="number"&&(di=u),this},_o=m.__private__.getLineHeightFactor=m.getLineHeightFactor=function(){return di};wo(n.lineHeight);var jr=m.__private__.getHorizontalCoordinate=function(u){return V(u)},kr=m.__private__.getVerticalCoordinate=function(u){return q===D?u:Ve[R].mediaBox.topRightY-Ve[R].mediaBox.bottomLeftY-V(u)},No=m.__private__.getHorizontalCoordinateString=m.getHorizontalCoordinateString=function(u){return J(jr(u))},Ao=m.__private__.getVerticalCoordinateString=m.getVerticalCoordinateString=function(u){return J(kr(u))},Hi=n.strokeColor||"0 G";m.__private__.getStrokeColor=m.getDrawColor=function(){return cr(Hi)},m.__private__.setStrokeColor=m.setDrawColor=function(u,v,I,H){return Hi=Zn({ch1:u,ch2:v,ch3:I,ch4:H,pdfColorType:"draw",precision:2}),E(Hi),this};var ja=n.fillColor||"0 g";m.__private__.getFillColor=m.getFillColor=function(){return cr(ja)},m.__private__.setFillColor=m.setFillColor=function(u,v,I,H){return ja=Zn({ch1:u,ch2:v,ch3:I,ch4:H,pdfColorType:"fill",precision:2}),E(ja),this};var pr=n.textColor||"0 g",So=m.__private__.getTextColor=m.getTextColor=function(){return cr(pr)};m.__private__.setTextColor=m.setTextColor=function(u,v,I,H){return pr=Zn({ch1:u,ch2:v,ch3:I,ch4:H,pdfColorType:"text",precision:3}),this};var Vi=n.charSpace,Lo=m.__private__.getCharSpace=m.getCharSpace=function(){return parseFloat(Vi||0)};m.__private__.setCharSpace=m.setCharSpace=function(u){if(isNaN(u))throw new Error("Invalid argument passed to jsPDF.setCharSpace");return Vi=u,this};var ka=0;m.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},m.__private__.setLineCap=m.setLineCap=function(u){var v=m.CapJoinStyles[u];if(v===void 0)throw new Error("Line cap style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return ka=v,E(v+" J"),this};var Vr=0;m.__private__.setLineJoin=m.setLineJoin=function(u){var v=m.CapJoinStyles[u];if(v===void 0)throw new Error("Line join style of '"+u+"' is not recognized. See or extend .CapJoinStyles property for valid styles");return Vr=v,E(v+" j"),this},m.__private__.setLineMiterLimit=m.__private__.setMiterLimit=m.setLineMiterLimit=m.setMiterLimit=function(u){if(u=u||0,isNaN(u))throw new Error("Invalid argument passed to 
68jsPDF.setLineMiterLimit");return E(J(V(u))+" M"),this},m.GState=no,m.setGState=function(u){(u=typeof u=="string"?$e[tt[u]]:Pa(null,u)).equals(Dt)||(E("/"+u.id+" gs"),Dt=u)};var Pa=function(u,v){if(!u||!tt[u]){var I=!1;for(var H in $e)if($e.hasOwnProperty(H)&&$e[H].equals(v)){I=!0;break}if(I)v=$e[H];else{var X="GS"+(Object.keys($e).length+1).toString(10);$e[X]=v,v.id=X}return u&&(tt[u]=v.id),yt.publish("addGState",v),v}};m.addGState=function(u,v){return Pa(u,v),this},m.saveGraphicsState=function(){return E("q"),Tt.push({key:Be,size:we,color:pr}),this},m.restoreGraphicsState=function(){E("Q");var u=Tt.pop();return Be=u.key,we=u.size,pr=u.color,Dt=null,this},m.setCurrentTransformationMatrix=function(u){return E(u.toString()+" cm"),this},m.comment=function(u){return E("#"+u),this};var pi=function(u,v){var I=u||0;Object.defineProperty(this,"x",{enumerable:!0,get:function(){return I},set:function(he){isNaN(he)||(I=parseFloat(he))}});var H=v||0;Object.defineProperty(this,"y",{enumerable:!0,get:function(){return H},set:function(he){isNaN(he)||(H=parseFloat(he))}});var X="pt";return Object.defineProperty(this,"type",{enumerable:!0,get:function(){return X},set:function(he){X=he.toString()}}),this},Fa=function(u,v,I,H){pi.call(this,u,v),this.type="rect";var X=I||0;Object.defineProperty(this,"w",{enumerable:!0,get:function(){return X},set:function(ve){isNaN(ve)||(X=parseFloat(ve))}});var he=H||0;return Object.defineProperty(this,"h",{enumerable:!0,get:function(){return he},set:function(ve){isNaN(ve)||(he=parseFloat(ve))}}),this},Yi=function(){this.page=ut,this.currentPage=R,this.pages=Ne.slice(0),this.pagesContext=Ve.slice(0),this.x=Me,this.y=Vt,this.matrix=bt,this.width=fs(R),this.height=Fr(R),this.outputDestination=je,this.id="",this.objectNumber=-1};Yi.prototype.restore=function(){ut=this.page,R=this.currentPage,Ve=this.pagesContext,Ne=this.pages,Me=this.x,Vt=this.y,bt=this.matrix,Pr(R,this.width),ds(R,this.height),je=this.outputDestination};var Ca=function(u,v,I,H,X){lr.push(new Yi),ut=R=0,Ne=[],Me=u,Vt=v,bt=X,Na([I,H])};for(var $i in m.beginFormObject=function(u,v,I,H,X){return Ca(u,v,I,H,X),this},m.endFormObject=function(u){return(function(v){if(Nr[v])lr.pop().restore();else{var I=new Yi,H="Xo"+(Object.keys(mn).length+1).toString(10);I.id=H,Nr[v]=H,mn[H]=I,yt.publish("addFormObject",I),lr.pop().restore()}})(u),this},m.doFormObject=function(u,v){var I=mn[Nr[u]];return E("q"),E(v.toString()+" cm"),E("/"+I.id+" Do"),E("Q"),this},m.getFormObject=function(u){var v=mn[Nr[u]];return{x:v.x,y:v.y,width:v.width,height:v.height,matrix:v.matrix}},m.save=function(u,v){return u=u||"generated.pdf",(v=v||{}).returnPromise=v.returnPromise||!1,v.returnPromise===!1?(ki(Ui(fr()),u),typeof ki.unload=="function"&&Xe.setTimeout&&setTimeout(ki.unload,911),this):new Promise(function(I,H){try{var X=ki(Ui(fr()),u);typeof ki.unload=="function"&&Xe.setTimeout&&setTimeout(ki.unload,911),I(X)}catch(he){H(he.message)}})},De.API)De.API.hasOwnProperty($i)&&($i==="events"&&De.API.events.length?(function(u,v){var I,H,X;for(X=v.length-1;X!==-1;X--)I=v[X][0],H=v[X][1],u.subscribe.apply(u,[I].concat(typeof H=="function"?[H]:H))})(yt,De.API.events):m[$i]=De.API[$i]);function fs(u){return Ve[u].mediaBox.topRightX-Ve[u].mediaBox.bottomLeftX}function Pr(u,v){Ve[u].mediaBox.topRightX=v+Ve[u].mediaBox.bottomLeftX}function Fr(u){return Ve[u].mediaBox.topRightY-Ve[u].mediaBox.bottomLeftY}function ds(u,v){Ve[u].mediaBox.topRightY=v+Ve[u].mediaBox.bottomLeftY}var ps=m.getPageWidth=function(u){return fs(u=u||R)/it},ms=m.setPageWidth=function(u,v){Pr(u,v*it)},mi=m.getPageHeight=function(u){return Fr(u=u||R)/it},gs=m.setPageHeight=function(u,v){ds(u,v*it)};return m.internal={pdfEscape:Vn,getStyle:us,getFont:bo,getFontSize:Fe,getCharSpace:Lo,getTextColor:So,getLineHeight:yo,getLineHeightFactor:_o,getLineWidth:vo,write:Le,getHorizontalCoordinate:jr,getVerticalCoordinate:kr,getCoordinateString:No,getVerticalCoordinateString:Ao,collections:{},newObject:zt,newAdditionalObject:ui,newObjectDeferred:on,newObjectDeferredBegin:cn,getFilters:Qn,putStream:Hn,events:yt,scaleFactor:it,pageSize:{getWidth:function(){return ps(R)},setWidth:function(u){ms(R,u)},getHeight:function(){return mi(R)},setHeight:function(u){gs(R,u)}},encryptionOptions:g,encryption:un,getEncryptor:function(u){return g!==null?un.encryptor(u,0):function(v){return v}},output:zi,getNumberOfPages:ss,get pages(){return Ne},out:E,f2:L,f3:O,getPageInfo:cs,getPageInfoByObjId:uo,getCurrentPageInfo:ho,getPDFVersion:j,Point:pi,Rectangle:Fa,Matrix:Ye,hasHotfix:Lr},Object.defineProperty(m.internal.pageSize,"width",{get:function(){return ps(R)},set:function(u){ms(R,u)},enumerable:!0,configurable:!0}),Object.defineProperty(m.internal.pageSize,"height",{get:function(){return mi(R)},set:function(u){gs(R,u)},enumerable:!0,configurable:!0}),(function(u){for(var v=0,I=We.length;v<I;v++){var H=rs.call(this,u[v][0],u[v][1],u[v][2],We[v][3],!0);w===!1&&(k[H]=!0);var X=u[v][0].split("-");ns({id:H,fontName:X[0],fontStyle:X[1]||""})}yt.publish("addFonts",{fonts:lt,dictionary:ct})}).call(m,We),Be="F1",is(a,e),yt.publish("initialized"),m}ua.prototype.lsbFirstWord=function(n){return String.fromCharCode(255&n,n>>8&255,n>>16&255,n>>24&255)},ua.prototype.toHexString=function(n){return n.split("").map(function(t){return("0"+(255&t.charCodeAt(0)).toString(16)).slice(-2)}).join("")},ua.prototype.hexToBytes=function(n){for(var t=[],e=0;e<n.length;e+=2)t.push(String.fromCharCode(parseInt(n.substr(e,2),16)));return t.join("")},ua.prototype.processOwnerPassword=function(n,t){return Sl(Al(t).substr(0,5),n)},ua.prototype.encryptor=function(n,t){var e=Al(this.encryptionKey+String.fromCharCode(255&n,n>>8&255,n>>16&255,255&t,t>>8&255)).substr(0,10);return function(r){return Sl(e,r)}},no.prototype.equals=function(n){var t,e="id,objectNumber,equals";if(!n||At(n)!==At(this))return!1;var r=0;for(t in this)if(!(e.indexOf(t)>
vendor: 30,265 bytes, lines 68-87
68=0)){if(this.hasOwnProperty(t)&&!n.hasOwnProperty(t)||this[t]!==n[t])return!1;r++}for(t in n)n.hasOwnProperty(t)&&e.indexOf(t)<0&&r--;return r===0},De.API={events:[]},De.version="4.2.1";var Ht=De.API,Ol=1,Bi=function(n){return n.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},la=function(n){return n.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Oi=function(n){return n.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(t){var e=t.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},Qe=function(n){return n.toFixed(2)},ai=function(n){return n.toFixed(5)};Ht.__acroform__={};var En=function(n,t){n.prototype=Object.create(t.prototype),n.prototype.constructor=n},bu=function(n){return n*Ol},xr=function(n){var t=new wh,e=Ce.internal.getHeight(n)||0,r=Ce.internal.getWidth(n)||0;return t.BBox=[0,0,Number(Qe(r)),Number(Qe(e))],t},s2=Ht.__acroform__.setBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return n|1<<t},o2=Ht.__acroform__.clearBit=function(n,t){if(n=n||0,t=t||0,isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBit");return n&~(1<<t)},l2=Ht.__acroform__.getBit=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBit");return n&1<<t?1:0},Kt=Ht.__acroform__.getBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.getBitForPdf");return l2(n,t-1)},Xt=Ht.__acroform__.setBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBitForPdf");return s2(n,t-1)},Zt=Ht.__acroform__.clearBitForPdf=function(n,t){if(isNaN(n)||isNaN(t))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.clearBitForPdf");return o2(n,t-1)},c2=Ht.__acroform__.calculateCoordinates=function(n,t){var e=t.internal.getHorizontalCoordinate,r=t.internal.getVerticalCoordinate,a=n[0],s=n[1],h=n[2],l=n[3],c={};return c.lowerLeft_X=e(a)||0,c.lowerLeft_Y=r(s+l)||0,c.upperRight_X=e(a+h)||0,c.upperRight_Y=r(s)||0,[Number(Qe(c.lowerLeft_X)),Number(Qe(c.lowerLeft_Y)),Number(Qe(c.upperRight_X)),Number(Qe(c.upperRight_Y))]},u2=function(n){if(n.appearanceStreamContent)return n.appearanceStreamContent;if(n.V||n.DV){var t=[],e=n._V||n.DV,r=Ll(n,e),a=n.scope.internal.getFont(n.fontName,n.fontStyle).id;t.push("/Tx BMC"),t.push("q"),t.push("BT"),t.push(n.scope.__private__.encodeColorString(n.color)),t.push("/"+a+" "+Qe(r.fontSize)+" Tf"),t.push("1 0 0 1 0 0 Tm"),t.push(r.text),t.push("ET"),t.push("Q"),t.push("EMC");var s=xr(n);return s.scope=n.scope,s.stream=t.join(`
69`),s}},Ll=function(n,t){var e=n.fontSize===0?n.maxFontSize:n.fontSize,r={text:"",fontSize:""},a=(t=(t=t.substr(0,1)=="("?t.substr(1):t).substr(t.length-1)==")"?t.substr(0,t.length-1):t).split(" ");a=n.multiline?a.map(function(L){return L.split(`
70`)}):a.map(function(L){return[L]});var s=e,h=Ce.internal.getHeight(n)||0;h=h<0?-h:h;var l=Ce.internal.getWidth(n)||0;l=l<0?-l:l;var c=function(L,O,V){if(L+1<a.length){var W=O+" "+a[L+1][0];return Gs(W,n,V).width<=l-4}return!1};s++;e:for(;s>0;){t="",s--;var d,g,w=Gs("3",n,s).height,k=n.multiline?h-s:(h-w)/2,m=k+=2,F=0,j=0,C=0;if(s<=0){t=`(...) Tj
71`,t+="% Width of Text: "+Gs(t,n,s=12).width+", FieldWidth:"+l+`
72`;break}for(var y="",z=0,D=0;D<a.length;D++)if(a.hasOwnProperty(D)){var q=!1;if(a[D].length!==1&&C!==a[D].length-1){if((w+2)*(z+2)+2>h)continue e;y+=a[D][C],q=!0,j=D,D--}else{y=(y+=a[D][C]+" ").substr(y.length-1)==" "?y.substr(0,y.length-1):y;var ae=parseInt(D),ge=c(ae,y,s),se=D>=a.length-1;if(ge&&!se){y+=" ",C=0;continue}if(ge||se){if(se)j=ae;else if(n.multiline&&(w+2)*(z+2)+2>h)continue e}else{if(!n.multiline||(w+2)*(z+2)+2>h)continue e;j=ae}}for(var J="",U=F;U<=j;U++){var Q=a[U];if(n.multiline){if(U===j){J+=Q[C]+" ",C=(C+1)%Q.length;continue}if(U===F){J+=Q[Q.length-1]+" ";continue}}J+=Q[0]+" "}switch(J=J.substr(J.length-1)==" "?J.substr(0,J.length-1):J,g=Gs(J,n,s).width,n.textAlign){case"right":d=l-g-2;break;case"center":d=(l-g)/2;break;default:d=2}t+=Qe(d)+" "+Qe(m)+` Td
73`,t+="("+Bi(J)+`) Tj
74`,t+=-Qe(d)+` 0 Td
75`,m=-(s+2),g=0,F=q?j:j+1,z++,y=""}break}return r.text=t,r.fontSize=s,r},Gs=function(n,t,e){var r=t.scope.internal.getFont(t.fontName,t.fontStyle),a=t.scope.getStringUnitWidth(n,{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:t.scope.getStringUnitWidth("3",{font:r,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},h2={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},f2=function(n,t){var e={type:"reference",object:n};t.internal.getPageInfo(n.page).pageContext.annotations.find(function(r){return r.type===e.type&&r.object===e.object})===void 0&&t.internal.getPageInfo(n.page).pageContext.annotations.push(e)},d2=function(n,t){if(t.scope=n,n.internal!==void 0&&(n.internal.acroformPlugin===void 0||n.internal.acroformPlugin.isInitialized===!1)){if(sr.FieldNum=0,n.internal.acroformPlugin=JSON.parse(JSON.stringify(h2)),n.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");Ol=n.internal.scaleFactor,n.internal.acroformPlugin.acroFormDictionaryRoot=new _h,n.internal.acroformPlugin.acroFormDictionaryRoot.scope=n,n.internal.acroformPlugin.acroFormDictionaryRoot._eventID=n.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(n)}),n.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var r=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in r)if(r.hasOwnProperty(a)){var s=r[a];s.objId=void 0,s.hasAnnotation&&f2(s,e)}})(n)}),n.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(n)}),n.internal.events.subscribe("postPutPages",function(e){(function(r,a){var s=!r;for(var h in r||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),r=r||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(r.hasOwnProperty(h)){var l=r[h],c=[],d=l.Rect;if(l.Rect&&(l.Rect=c2(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=Ce.createDefaultAppearanceStream(l),At(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var g=u2(l);c.push({key:"AP",value:"<</N "+g+">>"}),a.internal.acroformPlugin.xForms.push(g)}if(l.appearanceStreamContent){var w="";for(var k in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(k)){var m=l.appearanceStreamContent[k];if(w+="/"+k+" ",w+="<<",Object.keys(m).length>=1||Array.isArray(m)){for(var h in m)if(m.hasOwnProperty(h)){var F=m[h];typeof F=="function"&&(F=F.call(a,l)),w+="/"+h+" "+F+" ",a.internal.acroformPlugin.xForms.indexOf(F)>=0||a.internal.acroformPlugin.xForms.push(F)}}else typeof(F=m)=="function"&&(F=F.call(a,l)),w+="/"+h+" "+F,a.internal.acroformPlugin.xForms.indexOf(F)>=0||a.internal.acroformPlugin.xForms.push(F);w+=">>"}c.push({key:"AP",value:`<<
76`+w+">>"})}a.internal.putStream({additionalKeyValues:c,objectId:l.objId}),a.internal.out("endobj")}s&&(function(j,C){for(var y in j)if(j.hasOwnProperty(y)){var z=y,D=j[y];C.internal.newObjectDeferredBegin(D.objId,!0),At(D)==="object"&&typeof D.putStream=="function"&&D.putStream(),delete j[z]}})(a.internal.acroformPlugin.xForms,a)})(e,n)}),n.internal.acroformPlugin.isInitialized=!0}},yh=Ht.__acroform__.arrayToPdfArray=function(n,t,e){var r=function(h){return h};if(Array.isArray(n)){for(var a="[",s=0;s<n.length;s++)switch(s!==0&&(a+=" "),At(n[s])){case"boolean":case"number":case"object":a+=n[s].toString();break;case"string":n[s].substr(0,1)==="/"?a+="/"+Oi(n[s].substr(1)):(t!==void 0&&e&&(r=e.internal.getEncryptor(t)),a+="("+Bi(r(n[s].toString()))+")")}return a+"]"}throw new Error("Invalid argument passed to jsPDF.__acroform__.arrayToPdfArray")},ul=function(n,t,e){var r=function(a){return a};return t!==void 0&&e&&(r=e.internal.getEncryptor(t)),(n=n||"").toString(),"("+Bi(r(n))+")"},wr=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(n){this._objId=n}}),Object.defineProperty(this,"scope",{value:this._scope,writable:!0})};wr.prototype.toString=function(){return this.objId+" 0 R"},wr.prototype.putStream=function(){var n=this.getKeyValueListForStream();this.scope.internal.putStream({data:this.stream,additionalKeyValues:n,objectId:this.objId}),this.scope.internal.out("endobj")},wr.prototype.getKeyValueListForStream=function(){var n=[],t=Object.getOwnPropertyNames(this).filter(function(s){return s!="content"&&s!="appearanceStreamContent"&&s!="scope"&&s!="objId"&&s.substring(0,1)!="_"});for(var e in t)if(Object.getOwnPropertyDescriptor(this,t[e]).configurable===!1){var r=t[e],a=this[r];a&&(Array.isArray(a)?n.push({key:r,value:yh(a,this.objId,this.scope)}):a instanceof wr?(a.scope=this.scope,n.push({key:r,value:a.objId+" 0 R"})):typeof a!="function"&&n.push({key:r,value:a}))}return n};var wh=function(){wr.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 n,t=[];Object.defineProperty(this,"BBox",{configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"Resources",{value:"2 0 R",configurable:!1,writable:!0}),Object.defineProperty(this,"stream",{enumerable:!1,configurable:!0,set:function(e){n=e.trim()},get:function(){return n||null}})};En(wh,wr);var _h=function(){wr.call(this);var n,t=[];Object.defineProperty(this,"Kids",{enumerable:!1,configurable:!0,get:function(){return t.length>0?t:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return t}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(n){var e=function(r){return r};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+Bi(e(n))+")"}},set:function(e){n=e}})};En(_h,wr);var sr=function n(){wr.call(this);var t=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return t},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute F supplied.');t=y}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Kt(t,3)},set:function(y){y?this.F=Xt(t,3):this.F=Zt(t,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(y){if(isNaN(y))throw new Error('Invalid value "'+y+'" for attribute Ff supplied.');e=y}});var r=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(r.length!==0)return r},set:function(y){r=y!==void 0?y:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[0])?0:r[0]},set:function(y){r[0]=y}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[1])?0:r[1]},set:function(y){r[1]=y}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[2])?0:r[2]},set:function(y){r[2]=y}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!r||isNaN(r[3])?0:r[3]},set:function(y){r[3]=y}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(y){switch(y){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=y;break;default:throw new Error('Invalid value "'+y+'" for attribute FT supplied.')}}});var s=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!s||s.length<1){if(this instanceof ro)return;s="FieldObject"+n.FieldNum++}var y=function(z){return z};return this.scope&&(y=this.scope.internal.getEncryptor(this.objId)),"("+Bi(y(s))+")"},set:function(y){s=y.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return s},set:function(y){s=y}});var h="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return h},set:function(y){h=y}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(y){l=y}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(y){c=y}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/Ol:d},set:function(y){d=y}});var g="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return g},set:function(y){g=y}});var w="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!w||this instanceof ro||this instanceof Ci))return ul(w,this.objId,this.scope)},set:function(y){y=y.toString(),w=y}});var k=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(k)return this instanceof ln==0?ul(k,this.objId,this.scope):k},set:function(y){y=y.toString(),k=this instanceof ln==0?y.substr(0,1)==="("?la(y.substr(1,y.length-2)):la(y):y}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof ln==1?la(k.substr(1,k.length-1)):k},set:function(y){y=y.toString(),k=this instanceof ln==1?"/"+Oi(y):y}});var m=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(m)return m},set:function(y){this.V=y}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(m)return this instanceof ln==0?ul(m,this.objId,this.scope):m},set:function(y){y=y.toString(),m=this instanceof ln==0?y.substr(0,1)==="("?la(y.substr(1,y.length-2)):la(y):y}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof ln==1?la(m.substr(1,m.length-1)):m},set:function(y){y=y.toString(),m=this instanceof ln==1?"/"+Oi(y):y}}),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 F,j=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return j},set:function(y){y=!!y,j=y}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(F)return F},set:function(y){F=y}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,1)},set:function(y){y?this.Ff=Xt(this.Ff,1):this.Ff=Zt(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,2)},set:function(y){y?this.Ff=Xt(this.Ff,2):this.Ff=Zt(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,3)},set:function(y){y?this.Ff=Xt(this.Ff,3):this.Ff=Zt(this.Ff,3)}});var C=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(C!==null)return C},set:function(y){if([0,1,2].indexOf(y)===-1)throw new Error('Invalid value "'+y+'" for attribute Q supplied.');C=y}}),Object.defineProperty(this,"textAlign",{get:function(){var y;switch(C){case 0:default:y="left";break;case 1:y="center";break;case 2:y="right"}return y},configurable:!0,enumerable:!0,set:function(y){switch(y){case"right":case 2:C=2;break;case"center":case 1:C=1;break;default:C=0}}})};En(sr,wr);var ma=function(){sr.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var n=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return n},set:function(e){n=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return n},set:function(e){n=e}});var t=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return yh(t,this.objId,this.scope)},set:function(e){var r,a;a=[],typeof(r=e)=="string"&&(a=(function(s,h,l){l||(l=1);for(var c,d=[];c=h.exec(s);)d.push(c[l]);return d})(r,/\((.*?)\)/g)),t=a}}),this.getOptions=function(){return t},this.setOptions=function(e){t=e,this.sort&&t.sort()},this.addOption=function(e){e=(e=e||"").toString(),t.push(e),this.sort&&t.sort()},this.removeOption=function(e,r){for(r=r||!1,e=(e=e||"").toString();t.indexOf(e)!==-1&&(t.splice(t.indexOf(e),1),r!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,18)},set:function(e){e?this.Ff=Xt(this.Ff,18):this.Ff=Zt(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=Xt(this.Ff,19):this.Ff=Zt(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,20)},set:function(e){e?(this.Ff=Xt(this.Ff,20),t.sort()):this.Ff=Zt(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,22)},set:function(e){e?this.Ff=Xt(this.Ff,22):this.Ff=Zt(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,23)},set:function(e){e?this.Ff=Xt(this.Ff,23):this.Ff=Zt(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,27)},set:function(e){e?this.Ff=Xt(this.Ff,27):this.Ff=Zt(this.Ff,27)}}),this.hasAppearanceStream=!1};En(ma,sr);var ga=function(){ma.call(this),this.fontName="helvetica",this.combo=!1};En(ga,ma);var ba=function(){ga.call(this),this.combo=!0};En(ba,ga);var $s=function(){ba.call(this),this.edit=!0};En($s,ba);var ln=function(){sr.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,15)},set:function(e){e?this.Ff=Xt(this.Ff,15):this.Ff=Zt(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,16)},set:function(e){e?this.Ff=Xt(this.Ff,16):this.Ff=Zt(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,17)},set:function(e){e?this.Ff=Xt(this.Ff,17):this.Ff=Zt(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,26)},set:function(e){e?this.Ff=Xt(this.Ff,26):this.Ff=Zt(this.Ff,26)}});var n,t={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(s){return s};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(t).length!==0){var r,a=[];for(r in a.push("<<"),t)a.push("/"+r+" ("+Bi(e(t[r]))+")");return a.push(">>"),a.join(`
77`)}},set:function(e){At(e)==="object"&&(t=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return t.CA||""},set:function(e){typeof e=="string"&&(t.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return n},set:function(e){var r=e==null?"":e.toString();r.substr(0,1)==="/"&&(r=r.substr(1)),n="/"+Oi(r)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return n.substr(1,n.length-1)},set:function(e){n="/"+Oi(e)}})};En(ln,sr);var Js=function(){ln.call(this),this.pushButton=!0};En(Js,ln);var va=function(){ln.call(this),this.radio=!0,this.pushButton=!1;var n=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t!==void 0?t:[]}})};En(va,ln);var ro=function(){var n,t;sr.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return n},set:function(a){n=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return t},set:function(a){t=a}});var e,r={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var s,h=[];for(s in h.push("<<"),r)h.push("/"+s+" ("+Bi(a(r[s]))+")");return h.push(">>"),h.join(`
78`)},set:function(a){At(a)==="object"&&(r=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return r.CA||""},set:function(a){typeof a=="string"&&(r.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),e="/"+Oi(s)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var s=a==null?"":a.toString();s.substr(0,1)==="/"&&(s=s.substr(1)),e="/"+Oi(s)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=Ce.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};En(ro,sr),va.prototype.setAppearance=function(n){if(!("createAppearanceStream"in n)||!("getCA"in n))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var t in this.Kids)if(this.Kids.hasOwnProperty(t)){var e=this.Kids[t];e.appearanceStreamContent=n.createAppearanceStream(e.optionName),e.caption=n.getCA()}},va.prototype.createOption=function(n){var t=new ro;return t.Parent=this,t.optionName=n,this.Kids.push(t),p2.call(this.scope,t),t};var Ks=function(){ln.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=Ce.CheckBox.createAppearanceStream()};En(Ks,ln);var Ci=function(){sr.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,13)},set:function(t){t?this.Ff=Xt(this.Ff,13):this.Ff=Zt(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,21)},set:function(t){t?this.Ff=Xt(this.Ff,21):this.Ff=Zt(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,23)},set:function(t){t?this.Ff=Xt(this.Ff,23):this.Ff=Zt(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,24)},set:function(t){t?this.Ff=Xt(this.Ff,24):this.Ff=Zt(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,25)},set:function(t){t?this.Ff=Xt(this.Ff,25):this.Ff=Zt(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,26)},set:function(t){t?this.Ff=Xt(this.Ff,26):this.Ff=Zt(this.Ff,26)}});var n=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return n},set:function(t){n=t}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return n},set:function(t){Number.isInteger(t)&&(n=t)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};En(Ci,sr);var Xs=function(){Ci.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Kt(this.Ff,14)},set:function(n){n?this.Ff=Xt(this.Ff,14):this.Ff=Zt(this.Ff,14)}}),this.password=!0};En(Xs,Ci);var Ce={CheckBox:{createAppearanceStream:function(){return{N:{On:Ce.CheckBox.YesNormal},D:{On:Ce.CheckBox.YesPushDown,Off:Ce.CheckBox.OffPushDown}}},YesPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=[],r=n.scope.internal.getFont(n.fontName,n.fontStyle).id,a=n.scope.__private__.encodeColorString(n.color),s=Ll(n,n.caption);return e.push("0.749023 g"),e.push("0 0 "+Qe(Ce.internal.getWidth(n))+" "+Qe(Ce.internal.getHeight(n))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+r+" "+Qe(s.fontSize)+" Tf "+a),e.push("BT"),e.push(s.text),e.push("ET"),e.push("Q"),e.push("EMC"),t.stream=e.join(`
79`),t},YesNormal:function(n){var t=xr(n);t.scope=n.scope;var e=n.scope.internal.getFont(n.fontName,n.fontStyle).id,r=n.scope.__private__.encodeColorString(n.color),a=[],s=Ce.internal.getHeight(n),h=Ce.internal.getWidth(n),l=Ll(n,n.caption);return a.push("1 g"),a.push("0 0 "+Qe(h)+" "+Qe(s)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Qe(h-1)+" "+Qe(s-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Qe(l.fontSize)+" Tf "+r),a.push(l.text),a.push("ET"),a.push("Q"),t.stream=a.join(`
80`),t},OffPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Qe(Ce.internal.getWidth(n))+" "+Qe(Ce.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
81`),t}},RadioButton:{Circle:{createAppearanceStream:function(n){var t={D:{Off:Ce.RadioButton.Circle.OffPushDown},N:{}};return t.N[n]=Ce.RadioButton.Circle.YesNormal,t.D[n]=Ce.RadioButton.Circle.YesPushDown,t},getCA:function(){return"l"},YesNormal:function(n){var t=xr(n);t.scope=n.scope;var e=[],r=Ce.internal.getWidth(n)<=Ce.internal.getHeight(n)?Ce.internal.getWidth(n)/4:Ce.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Ce.internal.Bezier_C,s=Number((r*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+ai(Ce.internal.getWidth(n)/2)+" "+ai(Ce.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+s+" "+s+" "+r+" 0 "+r+" c"),e.push("-"+s+" "+r+" -"+r+" "+s+" -"+r+" 0 c"),e.push("-"+r+" -"+s+" -"+s+" -"+r+" 0 -"+r+" c"),e.push(s+" -"+r+" "+r+" -"+s+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
82`),t},YesPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=[],r=Ce.internal.getWidth(n)<=Ce.internal.getHeight(n)?Ce.internal.getWidth(n)/4:Ce.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),s=Number((a*Ce.internal.Bezier_C).toFixed(5)),h=Number((r*Ce.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ai(Ce.internal.getWidth(n)/2)+" "+ai(Ce.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),e.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),e.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),e.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+ai(Ce.internal.getWidth(n)/2)+" "+ai(Ce.internal.getHeight(n)/2)+" cm"),e.push(r+" 0 m"),e.push(r+" "+h+" "+h+" "+r+" 0 "+r+" c"),e.push("-"+h+" "+r+" -"+r+" "+h+" -"+r+" 0 c"),e.push("-"+r+" -"+h+" -"+h+" -"+r+" 0 -"+r+" c"),e.push(h+" -"+r+" "+r+" -"+h+" "+r+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
83`),t},OffPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=[],r=Ce.internal.getWidth(n)<=Ce.internal.getHeight(n)?Ce.internal.getWidth(n)/4:Ce.internal.getHeight(n)/4;r=Number((.9*r).toFixed(5));var a=Number((2*r).toFixed(5)),s=Number((a*Ce.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+ai(Ce.internal.getWidth(n)/2)+" "+ai(Ce.internal.getHeight(n)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+s+" "+s+" "+a+" 0 "+a+" c"),e.push("-"+s+" "+a+" -"+a+" "+s+" -"+a+" 0 c"),e.push("-"+a+" -"+s+" -"+s+" -"+a+" 0 -"+a+" c"),e.push(s+" -"+a+" "+a+" -"+s+" "+a+" 0 c"),e.push("f"),e.push("Q"),t.stream=e.join(`
84`),t}},Cross:{createAppearanceStream:function(n){var t={D:{Off:Ce.RadioButton.Cross.OffPushDown},N:{}};return t.N[n]=Ce.RadioButton.Cross.YesNormal,t.D[n]=Ce.RadioButton.Cross.YesPushDown,t},getCA:function(){return"8"},YesNormal:function(n){var t=xr(n);t.scope=n.scope;var e=[],r=Ce.internal.calculateCross(n);return e.push("q"),e.push("1 1 "+Qe(Ce.internal.getWidth(n)-2)+" "+Qe(Ce.internal.getHeight(n)-2)+" re"),e.push("W"),e.push("n"),e.push(Qe(r.x1.x)+" "+Qe(r.x1.y)+" m"),e.push(Qe(r.x2.x)+" "+Qe(r.x2.y)+" l"),e.push(Qe(r.x4.x)+" "+Qe(r.x4.y)+" m"),e.push(Qe(r.x3.x)+" "+Qe(r.x3.y)+" l"),e.push("s"),e.push("Q"),t.stream=e.join(`
85`),t},YesPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=Ce.internal.calculateCross(n),r=[];return r.push("0.749023 g"),r.push("0 0 "+Qe(Ce.internal.getWidth(n))+" "+Qe(Ce.internal.getHeight(n))+" re"),r.push("f"),r.push("q"),r.push("1 1 "+Qe(Ce.internal.getWidth(n)-2)+" "+Qe(Ce.internal.getHeight(n)-2)+" re"),r.push("W"),r.push("n"),r.push(Qe(e.x1.x)+" "+Qe(e.x1.y)+" m"),r.push(Qe(e.x2.x)+" "+Qe(e.x2.y)+" l"),r.push(Qe(e.x4.x)+" "+Qe(e.x4.y)+" m"),r.push(Qe(e.x3.x)+" "+Qe(e.x3.y)+" l"),r.push("s"),r.push("Q"),t.stream=r.join(`
86`),t},OffPushDown:function(n){var t=xr(n);t.scope=n.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Qe(Ce.internal.getWidth(n))+" "+Qe(Ce.internal.getHeight(n))+" re"),e.push("f"),t.stream=e.join(`
87`),t}}},createDefaultAppearanceStream:function(n){var t=n.scope.internal.getFont(n.fontName,n.fontStyle).id,e=n.scope.__private__.encodeColorString(n.color);return"/"+t+" "+n.fontSize+" Tf "+e}};Ce.internal={Bezier_C:.551915024494,calculateCross:function(n){var t=Ce.internal.getWidth(n),e=Ce.internal.getHeight(n),r=Math.min(t,e);return{x1:{x:(t-r)/2,y:(e-r)/2+r},x2:{x:(t-r)/2+r,y:(e-r)/2},x3:{x:(t-r)/2,y:(e-r)/2},x4:{x:(t-r)/2+r,y:(e-r)/2+r}}}},Ce.internal.getWidth=function(n){var t=0;return At(n)==="object"&&(t=bu(n.Rect[2])),t},Ce.internal.getHeight=function(n){var t=0;return At(n)==="object"&&(t=bu(n.Rect[3])),t};var p2=Ht.addField=function(n){if(d2(this,n),!(n instanceof sr))throw new Error("Invalid argument passed to 
87jsPDF.addField.");var t;return(t=n).scope.internal.acroformPlugin.printedOut&&(t.scope.internal.acroformPlugin.printedOut=!1,t.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),t.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(t),n.page=n.scope.internal.getCurrentPageInfo().pageNumber,this};Ht.AcroFormChoiceField=ma,Ht.AcroFormListBox=ga,Ht.AcroFormComboBox=ba,Ht.AcroFormEditBox=$s,Ht.AcroFormButton=ln,Ht.AcroFormPushButton=Js,Ht.AcroFormRadioButton=va,Ht.AcroFormCheckBox=Ks,Ht.AcroFormTextField=Ci,Ht.AcroFormPasswordField=Xs,Ht.AcroFormAppearance=Ce,Ht.AcroForm={ChoiceField:ma,ListBox:ga,ComboBox:ba,EditBox:$s,Button:ln,PushButton:Js,RadioButton:va,CheckBox:Ks,TextField:Ci,PasswordField:Xs,Appearance:Ce},De.AcroForm={ChoiceField:ma,ListBox:ga,ComboBox:ba,EditBox:$s,Button:ln,PushButton:Js,RadioButton:va,CheckBox:Ks,TextField:Ci,PasswordField:Xs,Appearance:Ce};De.AcroForm;function Nh(n){return n.reduce(function(t,e,r){return t[e]=r,t},{})}(function(n){var t="addImage_";n.__addimage__={};var e="UNKNOWN",r={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]]},a=n.__addimage__.getImageFileTypeByImageData=function(L,O){var V,W,ie,oe,ce,re=e;if((O=O||e)==="RGBA"||L.data!==void 0&&L.data instanceof Uint8ClampedArray&&"height"in L&&"width"in L)return"RGBA";if(ge(L))for(ce in r)for(ie=r[ce],V=0;V<ie.length;V+=1){for(oe=!0,W=0;W<ie[V].length;W+=1)if(ie[V][W]!==void 0&&ie[V][W]!==L[W]){oe=!1;break}if(oe===!0){re=ce;break}}else for(ce in r)for(ie=r[ce],V=0;V<ie.length;V+=1){for(oe=!0,W=0;W<ie[V].length;W+=1)if(ie[V][W]!==void 0&&ie[V][W]!==L.charCodeAt(W)){oe=!1;break}if(oe===!0){re=ce;break}}return re===e&&O!==e&&(re=O),re},s=function L(O){for(var V=this.internal.write,W=this.internal.putStream,ie=(0,this.internal.getFilters)();ie.indexOf("FlateEncode")!==-1;)ie.splice(ie.indexOf("FlateEncode"),1);O.objectId=this.internal.newObject();var oe=[];if(oe.push({key:"Type",value:"/XObject"}),oe.push({key:"Subtype",value:"/Image"}),oe.push({key:"Width",value:O.width}),oe.push({key:"Height",value:O.height}),O.colorSpace===y.INDEXED?oe.push({key:"ColorSpace",value:"[/Indexed /DeviceRGB "+(O.palette.length/3-1)+" "+("sMask"in O&&O.sMask!==void 0?O.objectId+2:O.objectId+1)+" 0 R]"}):(oe.push({key:"ColorSpace",value:"/"+O.colorSpace}),O.colorSpace===y.DEVICE_CMYK&&oe.push({key:"Decode",value:"[1 0 1 0 1 0 1 0]"})),oe.push({key:"BitsPerComponent",value:O.bitsPerComponent}),"decodeParameters"in O&&O.decodeParameters!==void 0&&oe.push({key:"DecodeParms",value:"<<"+O.decodeParameters+">>"}),"transparency"in O&&Array.isArray(O.transparency)&&O.transparency.length>0){for(var ce="",re=0,de=O.transparency.length;re<de;re++)ce+=O.transparency[re]+" "+O.transparency[re]+" ";oe.push({key:"Mask",value:"["+ce+"]"})}O.sMask!==void 0&&oe.push({key:"SMask",value:O.objectId+1+" 0 R"});var Ae=O.filter!==void 0?["/"+O.filter]:void 0;if(W({data:O.data,additionalKeyValues:oe,alreadyAppliedFilters:Ae,objectId:O.objectId}),V("endobj"),"sMask"in O&&O.sMask!==void 0){var xe,A=(xe=O.sMaskBitsPerComponent)!==null&&xe!==void 0?xe:O.bitsPerComponent,R={width:O.width,height:O.height,colorSpace:"DeviceGray",bitsPerComponent:A,data:O.sMask};"filter"in O&&(R.decodeParameters="/Predictor ".concat(O.predictor," /Colors 1 /BitsPerComponent ").concat(A," /Columns ").concat(O.width),R.filter=O.filter),L.call(this,R)}if(O.colorSpace===y.INDEXED){var M=this.internal.newObject();W({data:J(new Uint8Array(O.palette)),objectId:M}),V("endobj")}},h=function(){var L=this.internal.collections[t+"images"];for(var O in L)s.call(this,L[O])},l=function(){var L,O=this.internal.collections[t+"images"],V=this.internal.write;for(var W in O)V("/I"+(L=O[W]).index,L.objectId,"0","R")},c=function(){this.internal.collections[t+"images"]||(this.internal.collections[t+"images"]={},this.internal.events.subscribe("putResources",h),this.internal.events.subscribe("putXobjectDict",l))},d=function(){var L=this.internal.collections[t+"images"];return c.call(this),L},g=function(){return Object.keys(this.internal.collections[t+"images"]).length},w=function(L){return typeof n["process"+L.toUpperCase()]=="function"},k=function(L){return At(L)==="object"&&L.nodeType===1},m=function(L,O){if(L.nodeName==="IMG"&&L.hasAttribute("src")){var V=""+L.getAttribute("src");if(V.indexOf("data:image/")===0)return Ys(unescape(V).split("base64,").pop());var W=n.loadFile(V,!0);if(W!==void 0)return W}if(L.nodeName==="CANVAS"){if(L.width===0||L.height===0)throw new Error("Given canvas must have data. Canvas width: "+L.width+", height: "+L.height);var ie;switch(O){case"PNG":ie="image/png";break;case"WEBP":ie="image/webp";break;default:ie="image/jpeg"}return Ys(L.toDataURL(ie,1).split("base64,").pop())}},F=function(L){var O=this.internal.collections[t+"images"];if(O){for(var V in O)if(L===O[V].alias)return O[V]}},j=function(L,O,V){return L||O||(L=-96,O=-96),L<0&&(L=-1*V.width*72/L/this.internal.scaleFactor),O<0&&(O=-1*V.height*72/O/this.internal.scaleFactor),L===0&&(L=O*V.width/V.height),O===0&&(O=L*V.height/V.width),[L,O]},C=function(L,O,V,W,ie,oe){var ce=j.call(this,V,W,ie),re=this.internal.getCoordinateString,de=this.internal.getVerticalCoordinateString,Ae=d.call(this);if(V=ce[0],W=ce[1],Ae[ie.index]=ie,oe){oe*=Math.PI/180;var xe=Math.cos(oe),A=Math.sin(oe),R=function(G){return G.toFixed(4)},M=[R(xe),R(A),R(-1*A),R(xe),0,0,"cm"]}this.internal.write("q"),oe?(this.internal.write([1,"0","0",1,re(L),de(O+W),"cm"].join(" ")),this.internal.write(M.join(" ")),this.internal.write([re(V),"0","0",re(W),"0","0","cm"].join(" "))):this.internal.write([re(V),"0","0",re(W),re(L),de(O+W),"cm"].join(" ")),this.isAdvancedAPI()&&this.internal.write([1,0,0,-1,0,0,"cm"].join(" ")),this.internal.write("/I"+ie.index+" Do"),this.internal.write("Q")},y=n.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"};n.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 z=n.image_compression={NONE:"NONE",FAST:"FAST",MEDIUM:"MEDIUM",SLOW:"SLOW"},D=n.__addimage__.sHashCode=function(L){var O,V,W=0;if(typeof L=="string")for(V=L.length,O=0;O<V;O++)W=(W<<5)-W+L.charCodeAt(O),W|=0;else if(ge(L))for(V=L.byteLength/2,O=0;O<V;O++)W=(W<<5)-W+L[O],W|=0;return W}
vendor: 61,988 bytes, lines 87-124
87,q=n.__addimage__.validateStringAsBase64=function(L){(L=L||"").toString().trim();var O=!0;return L.length===0&&(O=!1),L.length%4!=0&&(O=!1),/^[A-Za-z0-9+/]+$/.test(L.substr(0,L.length-2))===!1&&(O=!1),/^[A-Za-z0-9/][A-Za-z0-9+/]|[A-Za-z0-9+/]=|==$/.test(L.substr(-2))===!1&&(O=!1),O},ae=n.__addimage__.extractImageFromDataUrl=function(L){if(L==null||!(L=L.trim()).startsWith("data:"))return null;var O=L.indexOf(",");return O<0?null:L.substring(0,O).trim().endsWith("base64")?L.substring(O+1):null};n.__addimage__.isArrayBuffer=function(L){return L instanceof ArrayBuffer};var ge=n.__addimage__.isArrayBufferView=function(L){return L instanceof Int8Array||L instanceof Uint8Array||L instanceof Uint8ClampedArray||L instanceof Int16Array||L instanceof Uint16Array||L instanceof Int32Array||L instanceof Uint32Array||L instanceof Float32Array||L instanceof Float64Array},se=n.__addimage__.binaryStringToUint8Array=function(L){for(var O=L.length,V=new Uint8Array(O),W=0;W<O;W++)V[W]=L.charCodeAt(W);return V},J=n.__addimage__.arrayBufferToBinaryString=function(L){for(var O="",V=ge(L)?L:new Uint8Array(L),W=0;W<V.length;W+=8192)O+=String.fromCharCode.apply(null,V.subarray(W,W+8192));return O};n.addImage=function(){var L,O,V,W,ie,oe,ce,re,de;if(typeof arguments[1]=="number"?(O=e,V=arguments[1],W=arguments[2],ie=arguments[3],oe=arguments[4],ce=arguments[5],re=arguments[6],de=arguments[7]):(O=arguments[1],V=arguments[2],W=arguments[3],ie=arguments[4],oe=arguments[5],ce=arguments[6],re=arguments[7],de=arguments[8]),At(L=arguments[0])==="object"&&!k(L)&&"imageData"in L){var Ae=L;L=Ae.imageData,O=Ae.format||O||e,V=Ae.x||V||0,W=Ae.y||W||0,ie=Ae.w||Ae.width||ie,oe=Ae.h||Ae.height||oe,ce=Ae.alias||ce,re=Ae.compression||re,de=Ae.rotation||Ae.angle||de}var xe=this.internal.getFilters();if(re===void 0&&xe.indexOf("FlateEncode")!==-1&&(re="SLOW"),isNaN(V)||isNaN(W))throw new Error("Invalid coordinates passed to jsPDF.addImage");c.call(this);var A=U.call(this,L,O,ce,re);return C.call(this,V,W,ie,oe,A,de),this};var U=function(L,O,V,W){var ie,oe,ce;if(typeof L=="string"&&a(L)===e){L=unescape(L);var re=Q(L,!1);(re!==""||(re=n.loadFile(L,!0))!==void 0)&&(L=re)}if(k(L)&&(L=m(L,O)),O=a(L,O),!w(O))throw new Error("addImage does not support files of type '"+O+"', please ensure that a plugin for '"+O+"' support is added.");if(((ce=V)==null||ce.length===0)&&(V=(function(de){return typeof de=="string"||ge(de)?D(de):ge(de.data)?D(de.data):null})(L)),(ie=F.call(this,V))||(L instanceof Uint8Array||O==="RGBA"||(oe=L,L=se(L)),ie=this["process"+O.toUpperCase()](L,g.call(this),V,(function(de){return de&&typeof de=="string"&&(de=de.toUpperCase()),de in n.image_compression?de:z.NONE})(W),oe)),!ie)throw new Error("An unknown error occurred whilst processing the image.");return ie},Q=n.__addimage__.convertBase64ToBinaryString=function(L,O){O=typeof O!="boolean"||O;var V,W="";if(typeof L=="string"){var ie;V=(ie=ae(L))!==null&&ie!==void 0?ie:L;try{W=Ys(V)}catch(oe){if(O)throw q(V)?new Error("atob-Error in jsPDF.convertBase64ToBinaryString "+oe.message):new Error("Supplied Data is not a valid base64-String jsPDF.convertBase64ToBinaryString ")}}return W};n.getImageProperties=function(L){var O,V,W="";if(k(L)&&(L=m(L)),typeof L=="string"&&a(L)===e&&((W=Q(L,!1))===""&&(W=n.loadFile(L)||""),L=W),V=a(L),!w(V))throw new Error("addImage does not support files of type '"+V+"', please ensure that a plugin for '"+V+"' support is added.");if(L instanceof Uint8Array||(L=se(L)),!(O=this["process"+V.toUpperCase()](L)))throw new Error("An unknown error occurred whilst processing the image");return O.fileType=V,O}})(De.API),(function(n){var t=function(e){if(e!==void 0&&e!="")return!0};De.API.events.push(["addPage",function(e){this.internal.getPageInfo(e.pageNumber).pageContext.annotations=[]}]),n.events.push(["putPage",function(e){for(var r,a,s,h=this.internal.getCoordinateString,l=this.internal.getVerticalCoordinateString,c=this.internal.getPageInfoByObjId(e.objId),d=e.pageContext.annotations,g=!1,w=0;w<d.length&&!g;w++)switch((r=d[w]).type){case"link":(t(r.options.url)||t(r.options.pageNumber))&&(g=!0);break;case"reference":case"text":case"freetext":g=!0}if(g!=0){this.internal.write("/Annots [");for(var k=0;k<d.length;k++){r=d[k];var m=this.internal.pdfEscape,F=this.internal.getEncryptor(e.objId);switch(r.type){case"reference":this.internal.write(" "+r.object.objId+" 0 R ");break;case"text":var j=this.internal.newAdditionalObject(),C=this.internal.newAdditionalObject(),y=this.internal.getEncryptor(j.objId),z=r.title||"Note";s="<</Type /Annot /Subtype /Text "+(a="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y)+"] ")+"/Contents ("+m(y(r.contents))+")",s+=" /Popup "+C.objId+" 0 R",s+=" /P "+c.objId+" 0 R",s+=" /T ("+m(y(z))+") >>",j.content=s;var D=j.objId+" 0 R";s="<</Type /Annot /Subtype /Popup "+(a="/Rect ["+h(r.bounds.x+30)+" "+l(r.bounds.y+r.bounds.h)+" "+h(r.bounds.x+r.bounds.w+30)+" "+l(r.bounds.y)+"] ")+" /Parent "+D,r.open&&(s+=" /Open true"),s+=" >>",C.content=s,this.internal.write(j.objId,"0 R",C.objId,"0 R");break;case"freetext":a="/Rect ["+h(r.bounds.x)+" "+l(r.bounds.y)+" "+h(r.bounds.x+r.bounds.w)+" "+l(r.bounds.y+r.bounds.h)+"] ";var q="font: Helvetica,sans-serif 12.0pt; text-align:left; color:#"+(r.color||"#000000");s="<</Type /Annot /Subtype /FreeText "+a+"/Contents ("+m(F(r.contents))+")",s+=" /DS("+m(F(q))+")",s+=" /Border [0 0 0]",s+=" >>",this.internal.write(s);break;case"link":if(r.options.name){var ae=this.annotations._nameMap[r.options.name];r.options.pageNumber=ae.page,r.options.top=ae.y}else r.options.top||(r.options.top=0);if(a="/Rect ["+r.finalBounds.x+" "+r.finalBounds.y+" "+r.finalBounds.w+" "+r.finalBounds.h+"] ",s="",r.options.url)s="<</Type /Annot /Subtype /Link "+a+"/Border [0 0 0] /A <</S /URI /URI ("+m(F(r.options.url))+") >>";else if(r.options.pageNumber)switch(s="<</Type /Annot /Subtype /Link "+a+"/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":s+=" /Fit]";break;case"FitH":s+=" /FitH "+r.options.top+"]";break;case"FitV":r.options.left=r.options.left||0,s+=" /FitV "+r.options.left+"]";break;default:var ge=l(r.options.top);r.options.left=r.options.left||0,r.options.zoom===void 0&&(r.options.zoom=0),s+=" /XYZ "+r.options.left+" "+ge+" "+r.options.zoom+"]"}s!=""&&(s+=" >>",this.internal.write(s))}}this.internal.write("]")}}]),n.createAnnotation=function(e){var r=this.internal.getCurrentPageInfo();switch(e.type){case"link":this.link(e.bounds.x,e.bounds.y,e.bounds.w,e.bounds.h,e);break;case"text":case"freetext":r.pageContext.annotations.push(e)}},n.link=function(e,r,a,s,h){var l=this.internal.getCurrentPageInfo(),c=this.internal.getCoordinateString,d=this.internal.getVerticalCoordinateString;l.pageContext.annotations.push({finalBounds:{x:c(e),y:d(r),w:c(e+a),h:d(r+s)},options:h,type:"link"})},n.textWithLink=function(e,r,a,s){var h,l,c=this.getTextWidth(e),d=this.internal.getLineHeight()/this.internal.scaleFactor;if(s.maxWidth!==void 0){l=s.maxWidth;var g=this.splitTextToSize(e,l).length;h=Math.ceil(d*g)}else l=c,h=d;return this.text(e,r,a,s),a+=.2*d,s.align==="center"&&(r-=c/2),s.align==="right"&&(r-=c),this.link(r,a-d,l,h,s),c},n.getTextWidth=function(e){var r=this.internal.getFontSize();return this.getStringUnitWidth(e)*r/this.internal.scaleFactor}})(De.API),(function(n){var t={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]},e={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},a=[1570,1571,1573,1575];n.__arabicParser__={};var s=n.__arabicParser__.isInArabicSubstitutionA=function(j){return t[j.charCodeAt(0)]!==void 0},h=n.__arabicParser__.isArabicLetter=function(j){return typeof j=="string"&&/^[\u0600-\u06FF\u0750-\u077F\u08A0-\u08FF\uFB50-\uFDFF\uFE70-\uFEFF]+$/.test(j)},l=n.__arabicParser__.isArabicEndLetter=function(j){return h(j)&&s(j)&&t[j.charCodeAt(0)].length<=2},c=n.__arabicParser__.isArabicAlfLetter=function(j){return h(j)&&a.indexOf(j.charCodeAt(0))>=0};n.__arabicParser__.arabicLetterHasIsolatedForm=function(j){return h(j)&&s(j)&&t[j.charCodeAt(0)].length>=1};var d=n.__arabicParser__.arabicLetterHasFinalForm=function(j){return h(j)&&s(j)&&t[j.charCodeAt(0)].length>=2};n.__arabicParser__.arabicLetterHasInitialForm=function(j){return h(j)&&s(j)&&t[j.charCodeAt(0)].length>=3};var g=n.__arabicParser__.arabicLetterHasMedialForm=function(j){return h(j)&&s(j)&&t[j.charCodeAt(0)].length==4},w=n.__arabicParser__.resolveLigatures=function(j){var C=0,y=e,z="",D=0;for(C=0;C<j.length;C+=1)y[j.charCodeAt(C)]!==void 0?(D++,typeof(y=y[j.charCodeAt(C)])=="number"&&(z+=String.fromCharCode(y),y=e,D=0),C===j.length-1&&(y=e,z+=j.charAt(C-(D-1)),C-=D-1,D=0)):(y=e,z+=j.charAt(C-D),C-=D,D=0);return z};n.__arabicParser__.isArabicDiacritic=function(j){return j!==void 0&&r[j.charCodeAt(0)]!==void 0};var k=n.__arabicParser__.getCorrectForm=function(j,C,y){return h(j)?s(j)===!1?-1:!d(j)||!h(C)&&!h(y)||!h(y)&&l(C)||l(j)&&!h(C)||l(j)&&c(C)||l(j)&&l(C)?0:g(j)&&h(C)&&!l(C)&&h(y)&&d(y)?3:l(j)||!h(y)?1:2:-1},m=function(j){var C=0,y=0,z=0,D="",q="",ae="",ge=(j=j||"").split("\\s+"),se=[];for(C=0;C<ge.length;C+=1){for(se.push(""),y=0;y<ge[C].length;y+=1)D=ge[C][y],q=ge[C][y-1],ae=ge[C][y+1],h(D)?(z=k(D,q,ae),se[C]+=z!==-1?String.fromCharCode(t[D.charCodeAt(0)][z]):D):se[C]+=D;se[C]=w(se[C])}return se.join(" ")},F=n.__arabicParser__.processArabic=n.processArabic=function(){var j,C=typeof arguments[0]=="string"?arguments[0]:arguments[0].text,y=[];if(Array.isArray(C)){var z=0;for(y=[],z=0;z<C.length;z+=1)Array.isArray(C[z])?y.push([m(C[z][0]),C[z][1],C[z][2]]):y.push([m(C[z])]);j=y}else j=m(C);return typeof arguments[0]=="string"?j:(arguments[0].text=j,arguments[0])};n.events.push(["preProcessText",F])})(De.API),De.API.autoPrint=function(n){var t;return(n=n||{}).variant=n.variant||"non-conform",n.variant==="javascript"?this.addJS("print({});"):(this.internal.events.subscribe("postPutResources",function(){t=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 "+t+" 0 R")})),this},(function(n){var t=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var r=150;Object.defineProperty(this,"width",{get:function(){return r},set:function(l){r=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=r+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var s=[];Object.defineProperty(this,"childNodes",{get:function(){return s},set:function(l){s=l}});var h={};Object.defineProperty(this,"style",{get:function(){return h},set:function(l){h=l}}),Object.defineProperty(this,"parentNode",{})};t.prototype.getContext=function(e,r){var a;if((e=e||"2d")!=="2d")return null;for(a in r)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=r[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},t.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},n.events.push(["initialized",function(){this.canvas=new t,this.canvas.pdf=this}])})(De.API),(function(n){var t={left:0,top:0,bottom:0,right:0},e=!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({},t),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new s,this.internal.__cell__.pages=1},s=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(j){c=j}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(j){d=j}});var g=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return g},set:function(j){g=j}});var w=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return w},set:function(j){w=j}});var k=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return k},set:function(j){k=j}});var m=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return m},set:function(j){m=j}});var F=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return F},set:function(j){F=j}}),this};s.prototype.clone=function(){return new s(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},s.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},n.setHeaderFunction=function(c){return r.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},n.getTextDimensions=function(c,d){r.call(this);var g=(d=d||{}).fontSize||this.getFontSize(),w=d.font||this.getFont(),k=d.scaleFactor||this.internal.scaleFactor,m=0,F=0,j=0,C=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 y=d.maxWidth;y>0?typeof c=="string"?c=this.splitTextToSize(c,y):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function(D,q){return D.concat(C.splitTextToSize(q,y))},[])):c=Array.isArray(c)?c:[c];for(var z=0;z<c.length;z++)m<(j=this.getStringUnitWidth(c[z],{font:w})*g)&&(m=j);return m!==0&&(F=c.length),{w:m/=k,h:Math.max((F*g*this.getLineHeightFactor()-g*(this.getLineHeightFactor()-1))/k,0)}},n.cellAddPage=function(){r.call(this),this.addPage();var c=this.internal.__cell__.margins||t;return this.internal.__cell__.lastCell=new s(c.left,c.top,void 0,void 0),this.internal.__cell__.pages+=1,this};var h=n.cell=function(){var c;c=arguments[0]instanceof s?arguments[0]:new s(arguments[0],arguments[1],arguments[2],arguments[3],arguments[4],arguments[5],arguments[6]),r.call(this);var d=this.internal.__cell__.lastCell,g=this.internal.__cell__.padding,w=this.internal.__cell__.margins||t,k=this.internal.__cell__.tableHeaderRow,m=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+w.bottom>this.getPageHeight()?(this.cellAddPage(),c.y=w.top,m&&k&&(this.printHeaderRow(c.lineNumber,!0),c.y+=k[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,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-g,c.y+g,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+g,{align:"center",baseline:"top",maxWidth:c.width-g-g}):this.text(c.text,c.x+g,c.y+g,{align:"left",baseline:"top",maxWidth:c.width-g-g})),this.internal.__cell__.lastCell=c,this};n.table=function(c,d,g,w,k){if(r.call(this),!g)throw new Error("No data for PDF table.");var m,F,j,C,y=[],z=[],D=[],q={},ae={},ge=[],se=[],J=(k=k||{}).autoSize||!1,U=k.printHeaders!==!1,Q=k.css&&k.css["font-size"]!==void 0?16*k.css["font-size"]:k.fontSize||12,L=k.margins||Object.assign({width:this.getPageWidth()},t),O=typeof k.padding=="number"?k.padding:3,V=k.headerBackgroundColor||"#c8c8c8",W=k.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=U,this.internal.__cell__.margins=L,this.internal.__cell__.table_font_size=Q,this.internal.__cell__.padding=O,this.internal.__cell__.headerBackgroundColor=V,this.internal.__cell__.headerTextColor=W,this.setFontSize(Q),w==null)z=y=Object.keys(g[0]),D=y.map(function(){return"left"});else if(Array.isArray(w)&&At(w[0])==="object")for(y=w.map(function(Ae){return Ae.name}),z=w.map(function(Ae){return Ae.prompt||Ae.name||""}),D=w.map(function(Ae){return Ae.align||"left"}),m=0;m<w.length;m+=1)ae[w[m].name]=.7499990551181103*w[m].width;else Array.isArray(w)&&typeof w[0]=="string"&&(z=y=w,D=y.map(function(){return"left"}));if(J||Array.isArray(w)&&typeof w[0]=="string")for(m=0;m<y.length;m+=1){for(q[C=y[m]]=g.map(function(Ae){return Ae[C]}),this.setFont(void 0,"bold"),ge.push(this.getTextDimensions(z[m],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w),F=q[C],this.setFont(void 0,"normal"),j=0;j<F.length;j+=1)ge.push(this.getTextDimensions(F[j],{fontSize:this.internal.__cell__.table_font_size,scaleFactor:this.internal.scaleFactor}).w);ae[C]=Math.max.apply(null,ge)+O+O,ge=[]}if(U){var ie={};for(m=0;m<y.length;m+=1)ie[y[m]]={},ie[y[m]].text=z[m],ie[y[m]].align=D[m];var oe=l.call(this,ie,ae);se=y.map(function(Ae){return new s(c,d,ae[Ae],oe,ie[Ae].text,void 0,ie[Ae].align)}),this.setTableHeaderRow(se),this.printHeaderRow(1,!1)}var ce=w.reduce(function(Ae,xe){return Ae[xe.name]=xe.align,Ae},{});for(m=0;m<g.length;m+=1){"rowStart"in k&&k.rowStart instanceof Function&&k.rowStart({row:m,data:g[m]},this);var re=l.call(this,g[m],ae);for(j=0;j<y.length;j+=1){var de=g[m][y[j]];"cellStart"in k&&k.cellStart instanceof Function&&k.cellStart({row:m,col:j,data:de},this),h.call(this,new s(c,d,ae[y[j]],re,de,m+2,ce[y[j]]))}}return this.internal.__cell__.table_x=c,this.internal.__cell__.table_y=d,this};var l=function(c,d){var g=this.internal.__cell__.padding,w=this.internal.__cell__.table_font_size,k=this.internal.scaleFactor;return Object.keys(c).map(function(m){var F=c[m];return this.splitTextToSize(F.hasOwnProperty("text")?F.text:F,d[m]-g-g)},this).map(function(m){return this.getLineHeightFactor()*m.length*w/k+g+g},this).reduce(function(m,F){return Math.max(m,F)},0)};n.setTableHeaderRow=function(c){r.call(this),this.internal.__cell__.tableHeaderRow=c},n.printHeaderRow=function(c,d){if(r.call(this),!this.internal.__cell__.tableHeaderRow)throw new Error("Property tableHeaderRow does not exist.");var g;if(e=!0,typeof this.internal.__cell__.headerFunction=="function"){var w=this.internal.__cell__.headerFunction(this,this.internal.__cell__.pages);this.internal.__cell__.lastCell=new s(w[0],w[1],w[2],w[3],void 0,-1)}this.setFont(void 0,"bold");for(var k=[],m=0;m<this.internal.__cell__.tableHeaderRow.length;m+=1){g=this.internal.__cell__.tableHeaderRow[m].clone(),d&&(g.y=this.internal.__cell__.margins.top||0,k.push(g)),g.lineNumber=c;var F=this.getTextColor();this.setTextColor(this.internal.__cell__.headerTextColor),this.setFillColor(this.internal.__cell__.headerBackgroundColor),h.call(this,g),this.setTextColor(F)}k.length>0&&this.setTableHeaderRow(k),this.setFont(void 0,"normal"),e=!1}})(De.API);var Ah={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},Sh=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],jl=Nh(Sh),Lh=[100,200,300,400,500,600,700,800,900],m2=Nh(Lh);function hl(n){var t=n.family.replace(/"|'/g,"").toLowerCase(),e=(function(s){return Ah[s=s||"normal"]?s:"normal"})(n.style),r=(function(s){return s?typeof s=="number"?s>=100&&s<=900&&s%100==0?s:400:/^\d00$/.test(s)?parseInt(s):s==="bold"?700:400:400})(n.weight),a=(function(s){return typeof jl[s=s||"normal"]=="number"?s:"normal"})(n.stretch);return{family:t,style:e,weight:r,stretch:a,src:n.src||[],ref:n.ref||{name:t,style:[a,e,r].join(" ")}}}function vu(n,t,e,r){var a;for(a=e;a>=0&&a<t.length;a+=r)if(n[t[a]])return n[t[a]];for(a=e;a>=0&&a<t.length;a-=r)if(n[t[a]])return n[t[a]]}var g2={"sans-serif":"helvetica",fixed:"courier",monospace:"courier",terminal:"courier",cursive:"times",fantasy:"times",serif:"times"},xu={caption:"times",icon:"times",menu:"times","message-box":"times","small-caption":"times","status-bar":"times"};function yu(n){return[n.stretch,n.style,n.weight,n.family].join(" ")}function wu(n){return n.trimLeft()}function b2(n,t){for(var e=0;e<n.length;){if(n.charAt(e)===t)return[n.substring(0,e),n.substring(e+1)];e+=1}return null}function v2(n){var t=n.match(/^(-[a-z_]|[a-z_])[a-z0-9_-]*/i);return t===null?null:[t[0],n.substring(t[0].length)]}var ca,Ws,_u,Nu,Au,fl=["times"];function Su(n,t,e,r,a){var s=4,h=ju;switch(a){case De.API.image_compression.FAST:s=1,h=Lu;break;case De.API.image_compression.MEDIUM:s=6,h=ku;break;case De.API.image_compression.SLOW:s=9,h=Pu}n=(function(c,d,g,w){for(var k,m=c.length/d,F=new Uint8Array(c.length+m),j=[x2,Lu,ju,ku,Pu],C=0;C<m;C+=1){var y=C*d,z=c.subarray(y,y+d);if(w)F.set(w(z,g,k),y+C);else{for(var D=j.length,q=[],ae=0;ae<D;ae+=1)q[ae]=j[ae](z,g,k);var ge=w2(q.concat());F.set(q[ge],y+C)}k=z}return F})(n,t,Math.ceil(e*r/8),h);var l=yl(n,{level:s});return De.API.__addimage__.arrayBufferToBinaryString(l)}function x2(n){var t=Array.apply([],n);return t.unshift(0),t}function Lu(n,t){var e=n.length,r=[];r[0]=1;for(var a=0;a<e;a+=1){var s=n[a-t]||0;r[a+1]=n[a]-s+256&255}return r}function ju(n,t,e){var r=n.length,a=[];a[0]=2;for(var s=0;s<r;s+=1){var h=e&&e[s]||0;a[s+1]=n[s]-h+256&255}return a}function ku(n,t,e){var r=n.length,a=[];a[0]=3;for(var s=0;s<r;s+=1){var h=n[s-t]||0,l=e&&e[s]||0;a[s+1]=n[s]+256-(h+l>>>1)&255}return a}function Pu(n,t,e){var r=n.length,a=[];a[0]=4;for(var s=0;s<r;s+=1){var h=y2(n[s-t]||0,e&&e[s]||0,e&&e[s-t]||0);a[s+1]=n[s]-h+256&255}return a}function y2(n,t,e){if(n===t&&t===e)return n;var r=Math.abs(t-e),a=Math.abs(n-e),s=Math.abs(n+t-e-e);return r<=a&&r<=s?n:a<=s?t:e}function w2(n){var t=n.map(function(e){return e.reduce(function(r,a){return r+Math.abs(a)},0)});return t.indexOf(Math.min.apply(null,t))}function dl(n,t,e){var r=t*e,a=Math.floor(r/8),s=16-(r-8*a+e),h=(1<<e)-1;return jh(n,a)>>s&h}function Fu(n,t,e,r){var a=e*r,s=Math.floor(a/8),h=16-(a-8*s+r),l=(1<<r)-1,c=(t&l)<<h;(function(d,g,w){if(g+1<d.byteLength)d.setUint16(g,w,!1);else{var k=w>>8&255;d.setUint8(g,k)}})(n,s,jh(n,s)&~(l<<h)&65535|c)}function jh(n,t){return t+1<n.byteLength?n.getUint16(t,!1):n.getUint8(t)<<8}function _2(n){var t=0;if(n[t++]!==71||n[t++]!==73||n[t++]!==70||n[t++]!==56||(n[t++]+1&253)!=56||n[t++]!==97)throw new Error("Invalid GIF 87a/89a header.");var e=n[t++]|n[t++]<<8,r=n[t++]|n[t++]<<8,a=n[t++],s=a>>7,h=1<<1+(7&a);n[t++],n[t++];var l=null,c=null;s&&(l=t,c=h,t+=3*h);var d=!0,g=[],w=0,k=null,m=0,F=null;for(this.width=e,this.height=r;d&&t<n.length;)switch(n[t++]){case 33:switch(n[t++]){case 255:if(n[t]!==11||n[t+1]==78&&n[t+2]==69&&n[t+3]==84&&n[t+4]==83&&n[t+5]==67&&n[t+6]==65&&n[t+7]==80&&n[t+8]==69&&n[t+9]==50&&n[t+10]==46&&n[t+11]==48&&n[t+12]==3&&n[t+13]==1&&n[t+16]==0)t+=14,F=n[t++]|n[t++]<<8,t++;else for(t+=12;;){if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;case 249:if(n[t++]!==4||n[t+4]!==0)throw new Error("Invalid graphics extension block.");var j=n[t++];w=n[t++]|n[t++]<<8,k=n[t++],1&j||(k=null),m=j>>2&7,t++;break;case 254:for(;;){if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}break;default:throw new Error("Unknown graphic control label: 0x"+n[t-1].toString(16))}break;case 44:var C=n[t++]|n[t++]<<8,y=n[t++]|n[t++]<<8,z=n[t++]|n[t++]<<8,D=n[t++]|n[t++]<<8,q=n[t++],ae=q>>6&1,ge=1<<1+(7&q),se=l,J=c,U=!1;q>>7&&(U=!0,se=t,J=ge,t+=3*ge);var Q=t;for(t++;;){var L;if(!((L=n[t++])>=0))throw Error("Invalid block size");if(L===0)break;t+=L}g.push({x:C,y,width:z,height:D,has_local_palette:U,palette_offset:se,palette_size:J,data_offset:Q,data_length:t-Q,transparent_index:k,interlaced:!!ae,delay:w,disposal:m});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+n[t-1].toString(16))}this.numFrames=function(){return g.length},this.loopCount=function(){return F},this.frameInfo=function(O){if(O<0||O>=g.length)throw new Error("Frame index out of range.");return g[O]},this.decodeAndBlitFrameBGRA=function(O,V){var W=this.frameInfo(O),ie=W.width*W.height;if(ie>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(ie);Cu(n,W.data_offset,oe,ie);var ce=W.palette_offset,re=W.transparent_index;re===null&&(re=256);var de=W.width,Ae=e-de,xe=de,A=4*(W.y*e+W.x),R=4*((W.y+W.height)*e+W.x),M=A,G=4*Ae;W.interlaced===!0&&(G+=4*e*7);for(var $=8,ee=0,le=oe.length;ee<le;++ee){var ue=oe[ee];if(xe===0&&(xe=de,(M+=G)>=R&&(G=4*Ae+4*e*($-1),M=A+(de+Ae)*($<<1),$>>=1)),ue===re)M+=4;else{var be=n[ce+3*ue],Ne=n[ce+3*ue+1],ke=n[ce+3*ue+2];V[M++]=ke,V[M++]=Ne,V[M++]=be,V[M++]=255}--xe}},this.decodeAndBlitFrameRGBA=function(O,V){var W=this.frameInfo(O),ie=W.width*W.height;if(ie>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var oe=new Uint8Array(ie);Cu(n,W.data_offset,oe,ie);var ce=W.palette_offset,re=W.transparent_index;re===null&&(re=256);var de=W.width,Ae=e-de,xe=de,A=4*(W.y*e+W.x),R=4*((W.y+W.height)*e+W.x),M=A,G=4*Ae;W.interlaced===!0&&(G+=4*e*7);for(var $=8,ee=0,le=oe.length;ee<le;++ee){var ue=oe[ee];if(xe===0&&(xe=de,(M+=G)>=R&&(G=4*Ae+4*e*($-1),M=A+(de+Ae)*($<<1),$>>=1)),ue===re)M+=4;else{var be=n[ce+3*ue],Ne=n[ce+3*ue+1],ke=n[ce+3*ue+2];V[M++]=be,V[M++]=Ne,V[M++]=ke,V[M++]=255}--xe}}}function Cu(n,t,e,r){for(var a=n[t++],s=1<<a,h=s+1,l=h+1,c=a+1,d=(1<<c)-1,g=0,w=0,k=0,m=n[t++],F=new Int32Array(4096),j=null;;){for(;g<16&&m!==0;)w|=n[t++]<<g,g+=8,m===1?m=n[t++]:--m;if(g<c)break;var C=w&d;if(w>>=c,g-=c,C!==s){if(C===h)break;for(var y=C<l?C:j,z=0,D=y;D>s;)D=F[D]>>8,++z;var q=D;if(k+z+(y!==C?1:0)>r)return void kt.log("Warning, gif stream longer than expected.");e[k++]=q;var ae=k+=z;for(y!==C&&(e[k++]=q),D=y;z--;)D=F[D],e[--ae]=255&D,D>>=8;j!==null&&l<4096&&(F[l++]=j<<8|q,l>=d+1&&c<12&&(++c,d=d<<1|1)),j=C}else l=h+1,d=(1<<(c=a+1))-1,j=null}return k!==r&&kt.log("Warning, gif stream shorter than expected."),e}/**
88 * @license
89  Copyright (c) 2008, Adobe Systems Incorporated
90  All rights reserved.
91
92  Redistribution and use in source and binary forms, with or without 
93  modification, are permitted provided that the following conditions are
94  met:
95
96  * Redistributions of source code must retain the above copyright notice, 
97    this list of conditions and the following disclaimer.
98  
99  * Redistributions in binary form must reproduce the above copyright
100    notice, this list of conditions and the following disclaimer in the 
101    documentation and/or other materials provided with the distribution.
102  
103  * Neither the name of Adobe Systems Incorporated nor the names of its 
104    contributors may be used to endorse or promote products derived from 
105    this software without specific prior written permission.
106
107  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
108  IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
109  THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
110  PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR 
111  CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
112  EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
113  PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
114  PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
115  LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
116  NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
117  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
118*/function pl(n){var t,e,r,a,s,h=Math.floor,l=new Array(64),c=new Array(64),d=new Array(64),g=new Array(64),w=new Array(65535),k=new Array(65535),m=new Array(64),F=new Array(64),j=[],C=0,y=7,z=new Array(64),D=new Array(64),q=new Array(64),ae=new Array(256),ge=new Array(2048),se=[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],J=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],Q=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],L=[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],O=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],V=[0,1,2,3,4,5,6,7,8,9,10,11],W=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],ie=[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 oe(A,R){for(var M=0,G=0,$=new Array,ee=1;ee<=16;ee++){for(var le=1;le<=A[ee];le++)$[R[G]]=[],$[R[G]][0]=M,$[R[G]][1]=ee,G++,M++;M*=2}return $}function ce(A){for(var R=A[0],M=A[1]-1;M>=0;)R&1<<M&&(C|=1<<y),M--,--y<0&&(C==255?(re(255),re(0)):re(C),y=7,C=0)}function re(A){j.push(A)}function de(A){re(A>>8&255),re(255&A)}function Ae(A,R,M,G,$){for(var ee,le=$[0],ue=$[240],be=(function(we,He){var Fe,Ge,Ue,xt,ht,et,dt,ft,Be,it,Me=0;for(Be=0;Be<8;++Be){Fe=we[Me],Ge=we[Me+1],Ue=we[Me+2],xt=we[Me+3],ht=we[Me+4],et=we[Me+5],dt=we[Me+6];var Vt=Fe+(ft=we[Me+7]),bt=Fe-ft,lt=Ge+dt,ct=Ge-dt,Tt=Ue+et,ze=Ue-et,Pt=xt+ht,$e=xt-ht,tt=Vt+Pt,Dt=Vt-Pt,ut=lt+Tt,Ve=lt-Tt;we[Me]=tt+ut,we[Me+4]=tt-ut;var yt=.707106781*(Ve+Dt);we[Me+2]=Dt+yt,we[Me+6]=Dt-yt;var ci=.382683433*((tt=$e+ze)-(Ve=ct+bt)),mn=.5411961*tt+ci,Nr=1.306562965*Ve+ci,lr=.707106781*(ut=ze+ct),Ye=bt+lr,Ar=bt-lr;we[Me+5]=Ar+mn,we[Me+3]=Ar-mn,we[Me+1]=Ye+Nr,we[Me+7]=Ye-Nr,Me+=8}for(Me=0,Be=0;Be<8;++Be){Fe=we[Me],Ge=we[Me+8],Ue=we[Me+16],xt=we[Me+24],ht=we[Me+32],et=we[Me+40],dt=we[Me+48];var Sr=Fe+(ft=we[Me+56]),Gn=Fe-ft,Wn=Ge+dt,zt=Ge-dt,on=Ue+et,cn=Ue-et,ui=xt+ht,Gr=xt-ht,Xn=Sr+ui,cr=Sr-ui,Zn=Wn+on,Qn=Wn-on;we[Me]=Xn+Zn,we[Me+32]=Xn-Zn;var Hn=.707106781*(Qn+cr);we[Me+16]=cr+Hn,we[Me+48]=cr-Hn;var hi=.382683433*((Xn=Gr+cn)-(Qn=zt+Gn)),ur=.5411961*Xn+hi,fi=1.306562965*Qn+hi,Ti=.707106781*(Zn=cn+zt),Di=Gn+Ti,Mi=Gn-Ti;we[Me+40]=Mi+ur,we[Me+24]=Mi-ur,we[Me+8]=Di+fi,we[Me+56]=Di-fi,Me++}for(Be=0;Be<64;++Be)it=we[Be]*He[Be],m[Be]=it>0?it+.5|0:it-.5|0;return m})(A,R),Ne=0;Ne<64;++Ne)F[se[Ne]]=be[Ne];var ke=F[0]-M;M=F[0],ke==0?ce(G[0]):(ce(G[k[ee=32767+ke]]),ce(w[ee]));for(var je=63;je>0&&F[je]==0;)je--;if(je==0)return ce(le),M;for(var qe,E=1;E<=je;){for(var Le=E;F[E]==0&&E<=je;)++E;var ot=E-Le;if(ot>=16){qe=ot>>4;for(var We=1;We<=qe;++We)ce(ue);ot&=15}ee=32767+F[E],ce($[(ot<<4)+k[ee]]),ce(w[ee]),E++}return je!=63&&ce(le),M}function xe(A){A=Math.min(Math.max(A,1),100),s!=A&&((function(R){for(var M=[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 $=h((M[G]*R+50)/100);$=Math.min(Math.max($,1),255),l[se[G]]=$}for(var ee=[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],le=0;le<64;le++){var ue=h((ee[le]*R+50)/100);ue=Math.min(Math.max(ue,1),255),c[se[le]]=ue}for(var be=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],Ne=0,ke=0;ke<8;ke++)for(var je=0;je<8;je++)d[Ne]=1/(l[se[Ne]]*be[ke]*be[je]*8),g[Ne]=1/(c[se[Ne]]*be[ke]*be[je]*8),Ne++})(A<50?Math.floor(5e3/A):Math.floor(200-2*A)),s=A)}this.encode=function(A,R){R&&xe(R),j=new Array,C=0,y=7,de(65496),de(65504),de(16),re(74),re(70),re(73),re(70),re(0),re(1),re(1),re(0),de(1),de(1),re(0),re(0),(function(){de(65499),de(132),re(0);for(var Ge=0;Ge<64;Ge++)re(l[Ge]);re(1);for(var Ue=0;Ue<64;Ue++)re(c[Ue])})(),(function(Ge,Ue){de(65472),de(17),re(8),de(Ue),de(Ge),re(3),re(1),re(17),re(0),re(2),re(17),re(1),re(3),re(17),re(1)})(A.width,A.height),(function(){de(65476),de(418),re(0);for(var Ge=0;Ge<16;Ge++)re(J[Ge+1]);for(var Ue=0;Ue<=11;Ue++)re(U[Ue]);re(16);for(var xt=0;xt<16;xt++)re(Q[xt+1]);for(var ht=0;ht<=161;ht++)re(L[ht]);re(1);for(var et=0;et<16;et++)re(O[et+1]);for(var dt=0;dt<=11;dt++)re(V[dt]);re(17);for(var ft=0;ft<16;ft++)re(W[ft+1]);for(var Be=0;Be<=161;Be++)re(ie[Be])})(),de(65498),de(12),re(3),re(1),re(0),re(2),re(17),re(3),re(17),re(0),re(63),re(0);var M=0,G=0,$=0;C=0,y=7,this.encode.displayName="_encode_";for(var ee,le,ue,be,Ne,ke,je,qe,E,Le=A.data,ot=A.width,We=A.height,we=4*ot,He=0;He<We;){for(ee=0;ee<we;){for(Ne=we*He+ee,je=-1,qe=0,E=0;E<64;E++)ke=Ne+(qe=E>>3)*we+(je=4*(7&E)),He+qe>=We&&(ke-=we*(He+1+qe-We)),ee+je>=we&&(ke-=ee+je-we+4),le=Le[ke++],ue=Le[ke++],be=Le[ke++],z[E]=(ge[le]+ge[ue+256|0]+ge[be+512|0]>>16)-128,D[E]=(ge[le+768|0]+ge[ue+1024|0]+ge[be+1280|0]>>16)-128,q[E]=(ge[le+1280|0]+ge[ue+1536|0]+ge[be+1792|0]>>16)-128;M=Ae(z,d,M,t,r),G=Ae(D,g,G,e,a),$=Ae(q,g,$,e,a),ee+=32}He+=8}if(y>=0){var Fe=[];Fe[1]=y+1,Fe[0]=(1<<y+1)-1,ce(Fe)}return de(65497),new Uint8Array(j)},n=n||50,(function(){for(var A=String.fromCharCode,R=0;R<256;R++)ae[R]=A(R)})(),t=oe(J,U),e=oe(O,V),r=oe(Q,L),a=oe(W,ie),(function(){for(var A=1,R=2,M=1;M<=15;M++){for(var G=A;G<R;G++)k[32767+G]=M,w[32767+G]=[],w[32767+G][1]=M,w[32767+G][0]=G;for(var $=-(R-1);$<=-A;$++)k[32767+$]=M,w[32767+$]=[],w[32767+$][1]=M,w[32767+$][0]=R-1+$;A<<=1,R<<=1}})(),(function(){for(var A=0;A<256;A++)ge[A]=19595*A,ge[A+256|0]=38470*A,ge[A+512|0]=7471*A+32768,ge[A+768|0]=-11059*A,ge[A+1024|0]=-21709*A,ge[A+1280|0]=32768*A+8421375,ge[A+1536|0]=-27439*A,ge[A+1792|0]=-5329*A})(),xe(n)}/**
119 * @license
120 * Copyright (c) 2017 Aras Abbasi
121 *
122 * Licensed under the MIT License.
123 * http://opensource.org/licenses/mit-license
124 */function ir(n,t){if(this.pos=0,this.buffer=n,this.datav=new DataView(n.buffer),this.is_with_alpha=!!t,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 Eu(n){function t(U){if(!U)throw Error("assert :P")}function e(U,Q,L){for(var O=0;4>O;O++)if(U[Q+O]!=L.charCodeAt(O))return!0;return!1}function r(U,Q,L,O,V){for(var W=0;W<V;W++)U[Q+W]=L[O+W]}function a(U,Q,L,O){for(var V=0;V<O;V++)U[Q+V]=L}function s(U){return new Int32Array(U)}function h(U,Q){for(var L=[],O=0;O<U;O++)L.push(new Q);return L}function l(U,Q){var L=[];return(function O(V,W,ie){for(var oe=ie[W],ce=0;ce<oe&&(V.push(ie.length>W+1?[]:new Q),!(ie.length<W+1));ce++)O(V[ce],W+1,ie)})(L,0,U),L}var c=function(){var U=this;function Q(i,o){for(var f=1<<o-1>>>0;i&f;)f>>>=1;return f?(i&f-1)+f:i}function L(i,o,f,b,x){t(!(b%f));do i[o+(b-=f)]=x;while(0<b)}function O(i,o,f,b,x){if(t(2328>=x),512>=x)var _=s(512);else if((_=s(x))==null)return 0;return(function(N,S,P,B,Y,ne){var T,K,Z=S,fe=1<<P,te=s(16),pe=s(16);for(t(Y!=0),t(B!=null),t(N!=null),t(0<P),K=0;K<Y;++K){if(15<B[K])return 0;++te[B[K]]}if(te[0]==Y)return 0;for(pe[1]=0,T=1;15>T;++T){if(te[T]>1<<T)return 0;pe[T+1]=pe[T]+te[T]}for(K=0;K<Y;++K)T=B[K],0<B[K]&&(ne[pe[T]++]=K);if(pe[15]==1)return(B=new V).g=0,B.value=ne[0],L(N,Z,1,fe,B),fe;var me,_e=-1,ye=fe-1,Te=0,Pe=1,at=1,Oe=1<<P;for(K=0,T=1,Y=2;T<=P;++T,Y<<=1){if(Pe+=at<<=1,0>(at-=te[T]))return 0;for(;0<te[T];--te[T])(B=new V).g=T,B.value=ne[K++],L(N,Z+Te,Y,Oe,B),Te=Q(Te,T)}for(T=P+1,Y=2;15>=T;++T,Y<<=1){if(Pe+=at<<=1,0>(at-=te[T]))return 0;for(;0<te[T];--te[T]){if(B=new V,(Te&ye)!=_e){for(Z+=Oe,me=1<<(_e=T)-P;15>_e&&!(0>=(me-=te[_e]));)++_e,me<<=1;fe+=Oe=1<<(me=_e-P),N[S+(_e=Te&ye)].g=me+P,N[S+_e].value=Z-S-_e}B.g=T-P,B.value=ne[K++],L(N,Z+(Te>>P),Y,Oe,B),Te=Q(Te,T)}}return Pe!=2*pe[15]-1?0:fe})(i,o,f,b,x,_)}function V(){this.value=this.g=0}function W(){this.value=this.g=0}function ie(){this.G=h(5,V),this.H=s(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=h(Zi,W)}function oe(i,o,f,b){t(i!=null),t(o!=null),t(2147483648>b),i.Ca=254,i.I=0,i.b=-8,i.Ka=0,i.oa=o,i.pa=f,i.Jd=o,i.Yc=f+b,i.Zc=4<=b?f+b-4+1:f,le(i)}function ce(i,o){for(var f=0;0<o--;)f|=be(i,128)<<o;return f}function re(i,o){var f=ce(i,o);return ue(i)?-f:f}function de(i,o,f,b){var x,_=0;for(t(i!=null),t(o!=null),t(4294967288>b),i.Sb=b,i.Ra=0,i.u=0,i.h=0,4<b&&(b=4),x=0;x<b;++x)_+=o[f+x]<<8*x;i.Ra=_,i.bb=b,i.oa=o,i.pa=f}function Ae(i){for(;8<=i.u&&i.bb<i.Sb;)i.Ra>>>=8,i.Ra+=i.oa[i.pa+i.bb]<<Sn-8>>>0,++i.bb,i.u-=8;G(i)&&(i.h=1,i.u=0)}function xe(i,o){if(t(0<=o),!i.h&&o<=Ra){var f=M(i)&_i[o];return i.u+=o,Ae(i),f}return i.h=1,i.u=0}function A(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function M(i){return i.Ra>>>(i.u&Sn-1)>>>0}function G(i){return t(i.bb<=i.Sb),i.h||i.bb==i.Sb&&i.u>Sn}function $(i,o){i.u=o,i.h=G(i)}function ee(i){i.u>=Pn&&(t(i.u>=Pn),Ae(i))}function le(i){t(i!=null&&i.oa!=null),i.pa<i.Zc?(i.I=(i.oa[i.pa++]|i.I<<8)>>>0,i.b+=8):(t(i!=null&&i.oa!=null),i.pa<i.Yc?(i.b+=8,i.I=i.oa[i.pa++]|i.I<<8):i.Ka?i.b=0:(i.I<<=8,i.b+=8,i.Ka=1))}function ue(i){return ce(i,1)}function be(i,o){var f=i.Ca;0>i.b&&le(i);var b=i.b,x=f*o>>>8,_=(i.I>>>b>x)+0;for(_?(f-=x,i.I-=x+1<<b>>>0):f=x+1,b=f,x=0;256<=b;)x+=8,b>>=8;return b=7^x+Qi[b],i.b-=b,i.Ca=(f<<b)-1,_}function Ne(i,o,f){i[o+0]=f>>24&255,i[o+1]=f>>16&255,i[o+2]=f>>8&255,i[o+3]=255&f}function ke(i,o){return i[o+0]|i[o+1]<<8}function je(i,o){return ke(i,o)|i[o+2]<<16}function qe(i,o){return ke(i,o)|ke(i,o+2)<<16}function E(i,o){var f=1<<o;return t(i!=null),t(0<o),i.X=s(f),i.X==null?0:(i.Mb=32-o,i.Xa=o,1)}function Le(i,o){t(i!=null),t(o!=null),t(i.Xa==o.Xa),r(o.X,0,i.X,0,1<<o.Xa)}function ot(){this.X=[],this.Xa=this.Mb=0}function We(i,o,f,b){t(f!=null),t(b!=null);var x=f[0],_=b[0];return x==0&&(x=(i*_+o/2)/o),_==0&&(_=(o*x+i/2)/i),0>=x||0>=_?0:(f[0]=x,b[0]=_,1)}function we(i,o){return i+(1<<o)-1>>>o}function He(i,o){return((4278255360&i)+(4278255360&o)>>>0&4278255360)+((16711935&i)+(16711935&o)>>>0&16711935)>>>0}function Fe(i,o){U[o]=function(f,b,x,_,N,S,P){var B;for(B=0;B<N;++B){var Y=U[i](S[P+B-1],x,_+B);S[P+B]=He(f[b+B],Y)}}}function Ge(){this.ud=this.hd=this.jd=0}function Ue(i,o){return((4278124286&(i^o))>>>1)+(i&o)>>>0}function xt(i){return 0<=i&&256>i?i:0>i?0:255<i?255:void 0}function ht(i,o){return xt(i+(i-o+.5>>1))}function et(i,o,f){return Math.abs(o-f)-Math.abs(i-f)}function dt(i,o,f,b,x,_,N){for(b=_[N-1],f=0;f<x;++f)_[N+f]=b=He(i[o+f],b)}function ft(i,o,f,b,x){var _;for(_=0;_<f;++_){var N=i[o+_],S=N>>8&255,P=16711935&(P=(P=16711935&N)+((S<<16)+S));b[x+_]=(4278255360&N)+P>>>0}}function Be(i,o){o.jd=255&i,o.hd=i>>8&255,o.ud=i>>16&255}function it(i,o,f,b,x,_){var N;for(N=0;N<b;++N){var S=o[f+N],P=S>>>8,B=S,Y=255&(Y=(Y=S>>>16)+((i.jd<<24>>24)*(P<<24>>24)>>>5));B=255&(B=(B+=(i.hd<<24>>24)*(P<<24>>24)>>>5)+((i.ud<<24>>24)*(Y<<24>>24)>>>5)),x[_+N]=(4278255360&S)+(Y<<16)+B}}function Me(i,o,f,b,x){U[o]=function(_,N,S,P,B,Y,ne,T,K){for(P=ne;P<T;++P)for(ne=0;ne<K;++ne)B[Y++]=x(S[b(_[N++])])},U[i]=function(_,N,S,P,B,Y,ne){var T=8>>_.b,K=_.Ea,Z=_.K[0],fe=_.w;if(8>T)for(_=(1<<_.b)-1,fe=(1<<T)-1;N<S;++N){var te,pe=0;for(te=0;te<K;++te)te&_||(pe=b(P[B++])),Y[ne++]=x(Z[pe&fe]),pe>>=T}else U["VP8LMapColor"+f](P,B,Z,fe,Y,ne,N,S,K)}}function Vt(i,o,f,b,x){for(f=o+f;o<f;){var _=i[o++];b[x++]=_>>16&255,b[x++]=_>>8&255,b[x++]=255&_}}function bt(i,o,f,b,x){for(f=o+f;o<f;){var _=i[o++];b[x++]=_>>16&255,b[x++]=_>>8&255,b[x++]=255&_,b[x++]=_>>24&255}}function lt(i,o,f,b,x){for(f=o+f;o<f;){var _=(N=i[o++])>>16&240|N>>12&15,N=240&N|N>>28&15;b[x++]=_,b[x++]=N}}function ct(i,o,f,b,x){for(f=o+f;o<f;){var _=(N=i[o++])>>16&248|N>>13&7,N=N>>5&224|N>>3&31;b[x++]=_,b[x++]=N}}function Tt(i,o,f,b,x){for(f=o+f;o<f;){var _=i[o++];b[x++]=255&_,b[x++]=_>>8&255,b[x++]=_>>16&255}}function ze(i,o,f,b,x,_){if(_==0)for(f=o+f;o<f;)Ne(b,((_=i[o++])[0]>>24|_[1]>>8&65280|_[2]<<8&16711680|_[3]<<24)>>>0),x+=32;else r(b,x,i,o,f)}function Pt(i,o){U[o][0]=U[i+"0"],U[o][1]=U[i+"1"],U[o][2]=U[i+"2"],U[o][3]=U[i+"3"],U[o][4]=U[i+"4"],U[o][5]=U[i+"5"],U[o][6]=U[i+"6"],U[o][7]=U[i+"7"],U[o][8]=U[i+"8"],U[o][9]=U[i+"9"],U[o][10]=U[i+"10"],U[o][11]=U[i+"11"],U[o][12]=U[i+"12"],U[o][13]=U[i+"13"],U[o][14]=U[i+"0"],U[o][15]=U[i+"0"]}function $e(i){return i==Fo||i==Co||i==Ss||i==Eo}function tt(){this.eb=[],this.size=this.A=this.fb=0}function Dt(){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 ut(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new tt,this.f.kb=new Dt,this.sd=null}function Ve(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function yt(){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 ci(i){return alert("todo:WebPSamplerProcessPlane"),i.T}function mn(i,o){var f=i.T,b=o.ba.f.RGBA,x=b.eb,_=b.fb+i.ka*b.A,N=Jn[o.ba.S],S=i.y,P=i.O,B=i.f,Y=i.N,ne=i.ea,T=i.W,K=o.cc,Z=o.dc,fe=o.Mc,te=o.Nc,pe=i.ka,me=i.ka+i.T,_e=i.U,ye=_e+1>>1;for(pe==0?N(S,P,null,null,B,Y,ne,T,B,Y,ne,T,x,_,null,null,_e):(N(o.ec,o.fc,S,P,K,Z,fe,te,B,Y,ne,T,x,_-b.A,x,_,_e),++f);pe+2<me;pe+=2)K=B,Z=Y,fe=ne,te=T,Y+=i.Rc,T+=i.Rc,_+=2*b.A,N(S,(P+=2*i.fa)-i.fa,S,P,K,Z,fe,te,B,Y,ne,T,x,_-b.A,x,_,_e);return P+=i.fa,i.j+me<i.o?(r(o.ec,o.fc,S,P,_e),r(o.cc,o.dc,B,Y,ye),r(o.Mc,o.Nc,ne,T,ye),f--):1&me||N(S,P,null,null,B,Y,ne,T,B,Y,ne,T,x,_+b.A,null,null,_e),f}function Nr(i,o,f){var b=i.F,x=[i.J];if(b!=null){var _=i.U,N=o.ba.S,S=N==As||N==Ss;o=o.ba.f.RGBA;var P=[0],B=i.ka;P[0]=i.T,i.Kb&&(B==0?--P[0]:(--B,x[0]-=i.width),i.j+i.ka+i.T==i.o&&(P[0]=i.o-i.j-B));var Y=o.eb;B=o.fb+B*o.A,i=ql(b,x[0],i.width,_,P,Y,B+(S?0:3),o.A),t(f==P),i&&$e(N)&&Ma(Y,B,S,_,P,o.A)}return 0}function lr(i){var o=i.ma,f=o.ba.S,b=11>f,x=f==_s||f==Ns||f==As||f==Po||f==12||$e(f);if(o.memory=null,o.Ib=null,o.Jb=null,o.Nd=null,!Yn(o.Oa,i,x?11:12))return 0;if(x&&$e(f)&&Cr(),i.da)alert("todo:use_scaling");else{if(b){if(o.Ib=ci,i.Kb){if(f=i.U+1>>1,o.memory=s(i.U+2*f),o.memory==null)return 0;o.ec=o.memory,o.fc=0,o.cc=o.ec,o.dc=o.fc+i.U,o.Mc=o.cc,o.Nc=o.dc+f,o.Ib=mn,Cr()}}else alert("todo:EmitYUV");x&&(o.Jb=Nr,b&&Ut())}if(b&&!nc){for(i=0;256>i;++i)$h[i]=89858*(i-128)+js>>Ls,Xh[i]=-22014*(i-128)+js,Kh[i]=-45773*(i-128),Jh[i]=113618*(i-128)+js>>Ls;for(i=Ua;i<Ro;++i)o=76283*(i-16)+js>>Ls,Zh[i-Ua]=hr(o,255),Qh[i-Ua]=hr(o+8>>4,15);nc=1}return 1}function Ye(i){var o=i.ma,f=i.U,b=i.T;return t(!(1&i.ka)),0>=f||0>=b?0:(f=o.Ib(i,o),o.Jb!=null&&o.Jb(i,o,f),o.Dc+=f,1)}function Ar(i){i.ma.memory=null}function Sr(i,o,f,b){return xe(i,8)!=47?0:(o[0]=xe(i,14)+1,f[0]=xe(i,14)+1,b[0]=xe(i,1),xe(i,3)!=0?0:!i.h)}function Gn(i,o){if(4>i)return i+1;var f=i-2>>1;return(2+(1&i)<<f)+xe(o,f)+1}function Wn(i,o){return 120<o?o-120:1<=(f=((f=Oh[o-1])>>4)*i+(8-(15&f)))?f:1;var f}function zt(i,o,f){var b=M(f),x=i[o+=255&b].g-8;return 0<x&&($(f,f.u+8),b=M(f),o+=i[o].value,o+=b&(1<<x)-1),$(f,f.u+i[o].g),i[o].value}function on(i,o,f){return f.g+=i.g,f.value+=i.value<<o>>>0,t(8>=f.g),i.g}function cn(i,o,f){var b=i.xc;return t((o=b==0?0:i.vc[i.md*(f>>b)+(o>>b)])<i.Wb),i.Ya[o]}function ui(i,o,f,b){var x=i.ab,_=i.c*o,N=i.C;o=N+o;var S=f,P=b;for(b=i.Ta,f=i.Ua;0<x--;){var B=i.gc[x],Y=N,ne=o,T=S,K=P,Z=(P=b,S=f,B.Ea);switch(t(Y<ne),t(ne<=B.nc),B.hc){case 2:ea(T,K,(ne-Y)*Z,P,S);break;case 0:var fe=Y,te=ne,pe=P,me=S,_e=(Oe=B).Ea;fe==0&&($r(T,K,null,null,1,pe,me),dt(T,K+1,0,0,_e-1,pe,me+1),K+=_e,me+=_e,++fe);for(var ye=1<<Oe.b,Te=ye-1,Pe=we(_e,Oe.b),at=Oe.K,Oe=Oe.w+(fe>>Oe.b)*Pe;fe<te;){var pt=at,rn=Oe,st=1;for(Jr(T,K,pe,me-_e,1,pe,me);st<_e;){var Re=(st&~Te)+ye;Re>_e&&(Re=_e),(0,er[pt[rn++]>>8&15])(T,K+ +st,pe,me+st-_e,Re-st,pe,me+st),st=Re}K+=_e,me+=_e,++fe&Te||(Oe+=Pe)}ne!=B.nc&&r(P,S-Z,P,S+(ne-Y-1)*Z,Z);break;case 1:for(Z=T,te=K,_e=(T=B.Ea)-(me=T&~(pe=(K=1<<B.b)-1)),fe=we(T,B.b),ye=B.K,B=B.w+(Y>>B.b)*fe;Y<ne;){for(Te=ye,Pe=B,at=new Ge,Oe=te+me,pt=te+T;te<Oe;)Be(Te[Pe++],at),Ai(at,Z,te,K,P,S),te+=K,S+=K;te<pt&&(Be(Te[Pe++],at),Ai(at,Z,te,_e,P,S),te+=_e,S+=_e),++Y&pe||(B+=fe)}break;case 3:if(T==P&&K==S&&0<B.b){for(te=P,T=Z=S+(ne-Y)*Z-(me=(ne-Y)*we(B.Ea,B.b)),K=P,pe=S,fe=[],me=(_e=me)-1;0<=me;--me)fe[me]=K[pe+me];for(me=_e-1;0<=me;--me)te[T+me]=fe[me];Ni(B,Y,ne,P,Z,P,S)}else Ni(B,Y,ne,T,K,P,S)}S=b,P=f}P!=f&&r(b,f,S,P,_)}function Gr(i,o){var f=i.V,b=i.Ba+i.c*i.C,x=o-i.C;if(t(o<=i.l.o),t(16>=x),0<x){var _=i.l,N=i.Ta,S=i.Ua,P=_.width;if(ui(i,x,f,b),x=S=[S],t((f=i.C)<(b=o)),t(_.v<_.va),b>_.o&&(b=_.o),f<_.j){var B=_.j-f;f=_.j,x[0]+=B*P}if(f>=b?f=0:(x[0]+=4*_.v,_.ka=f-_.j,_.U=_.va-_.v,_.T=b-f,f=1),f){if(S=S[0],11>(f=i.ca).S){var Y=f.f.RGBA,ne=(b=f.S,x=_.U,_=_.T,B=Y.eb,Y.A),T=_;for(Y=Y.fb+i.Ma*Y.A;0<T--;){var K=N,Z=S,fe=x,te=B,pe=Y;switch(b){case ws:Ba(K,Z,fe,te,pe);break;case _s:Ta(K,Z,fe,te,pe);break;case Fo:Ta(K,Z,fe,te,pe),Ma(te,pe,0,fe,1,0);break;case Yl:Li(K,Z,fe,te,pe);break;case Ns:ze(K,Z,fe,te,pe,1);break;case Co:ze(K,Z,fe,te,pe,1),Ma(te,pe,0,fe,1,0);break;case As:ze(K,Z,fe,te,pe,0);break;case Ss:ze(K,Z,fe,te,pe,0),Ma(te,pe,1,fe,1,0);break;case Po:ta(K,Z,fe,te,pe);break;case Eo:ta(K,Z,fe,te,pe),Ml(te,pe,fe,1,0);break;case $l:Si(K,Z,fe,te,pe);break;default:t(0)}S+=P,Y+=ne}i.Ma+=_}else alert("todo:EmitRescaledRowsYUVA");t(i.Ma<=f.height)}}i.C=o,t(i.C<=i.i)}function Xn(i){var o;if(0<i.ua)return 0;for(o=0;o<i.Wb;++o){var f=i.Ya[o].G,b=i.Ya[o].H;if(0<f[1][b[1]+0].g||0<f[2][b[2]+0].g||0<f[3][b[3]+0].g)return 0}return 1}function cr(i,o,f,b,x,_){if(i.Z!=0){var N=i.qd,S=i.rd;for(t(Qr[i.Z]!=null);o<f;++o)Qr[i.Z](N,S,b,x,b,x,_),N=b,S=x,x+=_;i.qd=N,i.rd=S}}function Zn(i,o){var f=i.l.ma,b=f.Z==0||f.Z==1?i.l.j:i.C;if(b=i.C<b?b:i.C,t(o<=i.l.o),o>b){var x=i.l.width,_=f.ca,N=f.tb+x*b,S=i.V,P=i.Ba+i.c*b,B=i.gc;t(i.ab==1),t(B[0].hc==3),jo(B[0],b,o,S,P,_,N),cr(f,b,o,_,N,x)}i.C=i.Ma=o}function Qn(i,o,f,b,x,_,N){var S=i.$/b,P=i.$%b,B=i.m,Y=i.s,ne=f+i.$,T=ne;x=f+b*x;var K=f+b*_,Z=280+Y.ua,fe=i.Pb?S:16777216,te=0<Y.ua?Y.Wa:null,pe=Y.wc,me=ne<K?cn(Y,P,S):null;t(i.C<_),t(K<=x);var _e=!1;e:for(;;){for(;_e||ne<K;){var ye=0;if(S>=fe){var Te=ne-f;t((fe=i).Pb),fe.wd=fe.m,fe.xd=Te,0<fe.s.ua&&Le(fe.s.Wa,fe.s.vb),fe=S+Bh}if(P&pe||(me=cn(Y,P,S)),t(me!=null),me.Qb&&(o[ne]=me.qb,_e=!0),!_e)if(ee(B),me.jc){ye=B,Te=o;var Pe=ne,at=me.pd[M(ye)&Zi-1];t(me.jc),256>at.g?($(ye,ye.u+at.g),Te[Pe]=at.value,ye=0):($(ye,ye.u+at.g-256),t(256<=at.value),ye=at.value),ye==0&&(_e=!0)}else ye=zt(me.G[0],me.H[0],B);if(B.h)break;if(_e||256>ye){if(!_e)if(me.nd)o[ne]=(me.qb|ye<<8)>>>0;else{if(ee(B),_e=zt(me.G[1],me.H[1],B),ee(B),Te=zt(me.G[2],me.H[2],B),Pe=zt(me.G[3],me.H[3],B),B.h)break;o[ne]=(Pe<<24|_e<<16|ye<<8|Te)>>>0}if(_e=!1,++ne,++P>=b&&(P=0,++S,N!=null&&S<=_&&!(S%16)&&N(i,S),te!=null))for(;T<ne;)ye=o[T++],te.X[(506832829*ye&4294967295)>>>te.Mb]=ye}else if(280>ye){if(ye=Gn(ye-256,B),Te=zt(me.G[4],me.H[4],B),ee(B),Te=Wn(b,Te=Gn(Te,B)),B.h)break;if(ne-f<Te||x-ne<ye)break e;for(Pe=0;Pe<ye;++Pe)o[ne+Pe]=o[ne+Pe-Te];for(ne+=ye,P+=ye;P>=b;)P-=b,++S,N!=null&&S<=_&&!(S%16)&&N(i,S);if(t(ne<=x),P&pe&&(me=cn(Y,P,S)),te!=null)for(;T<ne;)ye=o[T++],te.X[(506832829*ye&4294967295)>>>te.Mb]=ye}else{if(!(ye<Z))break e;for(_e=ye-280,t(te!=null);T<ne;)ye=o[T++],te.X[(506832829*ye&4294967295)>>>te.Mb]=ye;ye=ne,t(!(_e>>>(Te=te).Xa)),o[ye]=Te.X[_e],_e=!0}_e||t(B.h==G(B))}if(i.Pb&&B.h&&ne<x)t(i.m.h),i.a=5,i.m=i.wd,i.$=i.xd,0<i.s.ua&&Le(i.s.vb,i.s.Wa);else{if(B.h)break e;N!=null&&N(i,S>_?_:S),i.a=0,i.$=ne-f}return 1}return i.a=3,0}function Hn(i){t(i!=null),i.vc=null,i.yc=null,i.Ya=null;var o=i.Wa;o!=null&&(o.X=null),i.vb=null,t(i!=null)}function hi(){var i=new Ie;return i==null?null:(i.a=0,i.xb=Xl,Pt("Predictor","VP8LPredictors"),Pt("Predictor","VP8LPredictors_C"),Pt("PredictorAdd","VP8LPredictorsAdd"),Pt("PredictorAdd","VP8LPredictorsAdd_C"),ea=ft,Ai=it,Ba=Vt,Ta=bt,ta=lt,Si=ct,Li=Tt,U.VP8LMapColor32b=tn,U.VP8LMapColor8b=gr,i)}function ur(i,o,f,b,x){var _=1,N=[i],S=[o],P=b.m,B=b.s,Y=null,ne=0;e:for(;;){if(f)for(;_&&xe(P,1);){var T=N,K=S,Z=b,fe=1,te=Z.m,pe=Z.gc[Z.ab],me=xe(te,2);if(Z.Oc&1<<me)_=0;else{switch(Z.Oc|=1<<me,pe.hc=me,pe.Ea=T[0],pe.nc=K[0],pe.K=[null],++Z.ab,t(4>=Z.ab),me){case 0:case 1:pe.b=xe(te,3)+2,fe=ur(we(pe.Ea,pe.b),we(pe.nc,pe.b),0,Z,pe.K),pe.K=pe.K[0];break;case 3:var _e,ye=xe(te,8)+1,Te=16<ye?0:4<ye?1:2<ye?2:3;if(T[0]=we(pe.Ea,Te),pe.b=Te,_e=fe=ur(ye,1,0,Z,pe.K)){var Pe,at=ye,Oe=pe,pt=1<<(8>>Oe.b),rn=s(pt);if(rn==null)_e=0;else{var st=Oe.K[0],Re=Oe.w;for(rn[0]=Oe.K[0][0],Pe=1;Pe<1*at;++Pe)rn[Pe]=He(st[Re+Pe],rn[Pe-1]);for(;Pe<4*pt;++Pe)rn[Pe]=0;Oe.K[0]=null,Oe.K[0]=rn,_e=1}}fe=_e;break;case 2:break;default:t(0)}_=fe}}if(N=N[0],S=S[0],_&&xe(P,1)&&!(_=1<=(ne=xe(P,4))&&11>=ne)){b.a=3;break e}var Se;if(Se=_)t:{var $t,rt,gt,Rt=b,hn=N,Ln=S,Gt=ne,xn=f,jn=Rt.m,an=Rt.s,vt=[null],wt=1,Wt=0,_t=Rh[Gt];n:for(;;){if(xn&&xe(jn,1)){var fn=xe(jn,3)+2,nr=we(hn,fn),Jt=we(Ln,fn),Fn=nr*Jt;if(!ur(nr,Jt,0,Rt,vt))break n;for(vt=vt[0],an.xc=fn,$t=0;$t<Fn;++$t){var jt=vt[$t]>>8&65535;vt[$t]=jt,jt>=wt&&(wt=jt+1)}}if(jn.h)break n;for(rt=0;5>rt;++rt){var sn=Jl[rt];!rt&&0<Gt&&(sn+=1<<Gt),Wt<sn&&(Wt=sn)}var Rn=h(wt*_t,V),kn=wt,Bn=h(kn,ie);if(Bn==null)var Tn=null;else t(65536>=kn),Tn=Bn;var Cn=s(Wt);if(Tn==null||Cn==null||Rn==null){Rt.a=1;break n}var Dn=Rn;for($t=gt=0;$t<wt;++$t){var Et=Tn[$t],Mn=Et.G,rr=Et.H,ji=0,Rr=1,dn=0;for(rt=0;5>rt;++rt){sn=Jl[rt],Mn[rt]=Dn,rr[rt]=gt,!rt&&0<Gt&&(sn+=1<<Gt);i:{var Ps,Bo=sn,Fs=Rt,za=Cn,nf=Dn,rf=gt,To=0,ei=Fs.m,af=xe(ei,1);if(a(za,0,0,Bo),af){var sf=xe(ei,1)+1,of=xe(ei,1),ac=xe(ei,of==0?1:8);za[ac]=1,sf==2&&(za[ac=xe(ei,8)]=1);var Cs=1}else{var sc=s(19),oc=xe(ei,4)+4;if(19<oc){Fs.a=3;var Es=0;break i}for(Ps=0;Ps<oc;++Ps)sc[Ih[Ps]]=xe(ei,3);var Do=void 0,Ga=void 0,lc=Fs,lf=sc,Is=Bo,cc=za,Mo=0,ti=lc.m,uc=8,hc=h(128,V);r:for(;O(hc,0,7,lf,19);){if(xe(ti,1)){var cf=2+2*xe(ti,3);if((Do=2+xe(ti,cf))>Is)break r}else Do=Is;for(Ga=0;Ga<Is&&Do--;){ee(ti);var fc=hc[0+(127&M(ti))];$(ti,ti.u+fc.g);var ia=fc.value;if(16>ia)cc[Ga++]=ia,ia!=0&&(uc=ia);else{var uf=ia==16,dc=ia-16,hf=Ch[dc],pc=xe(ti,Fh[dc])+hf;if(Ga+pc>Is)break r;for(var ff=uf?uc:0;0<pc--;)cc[Ga++]=ff}}Mo=1;break r}Mo||(lc.a=3),Cs=Mo}(Cs=Cs&&!ei.h)&&(To=O(nf,rf,8,za,Bo)),Cs&&To!=0?Es=To:(Fs.a=3,Es=0)}if(Es==0)break n;if(Rr&&Eh[rt]==1&&(Rr=Dn[gt].g==0),ji+=Dn[gt].g,gt+=Es,3>=rt){var Wa,qo=Cn[0];for(Wa=1;Wa<sn;++Wa)Cn[Wa]>qo&&(qo=Cn[Wa]);dn+=qo}}if(Et.nd=Rr,Et.Qb=0,Rr&&(Et.qb=(Mn[3][rr[3]+0].value<<24|Mn[1][rr[1]+0].value<<16|Mn[2][rr[2]+0].value)>>>0,ji==0&&256>Mn[0][rr[0]+0].value&&(Et.Qb=1,Et.qb+=Mn[0][rr[0]+0].value<<8)),Et.jc=!Et.Qb&&6>dn,Et.jc){var Os,Br=Et;for(Os=0;Os<Zi;++Os){var ni=Os,ri=Br.pd[ni],Rs=Br.G[0][Br.H[0]+ni];256<=Rs.value?(ri.g=Rs.g+256,ri.value=Rs.value):(ri.g=0,ri.value=0,ni>>=on(Rs,8,ri),ni>>=on(Br.G[1][Br.H[1]+ni],16,ri),ni>>=on(Br.G[2][Br.H[2]+ni],0,ri),on(Br.G[3][Br.H[3]+ni],24,ri))}}}an.vc=vt,an.Wb=wt,an.Ya=Tn,an.yc=Rn,Se=1;break t}Se=0}if(!(_=Se)){b.a=3;break e}if(0<ne){if(B.ua=1<<ne,!E(B.Wa,ne)){b.a=1,_=0;break e}}else B.ua=0;var Uo=b,mc=N,df=S,zo=Uo.s,Go=zo.xc;if(Uo.c=mc,Uo.i=df,zo.md=we(mc,Go),zo.wc=Go==0?-1:(1<<Go)-1,f){b.xb=Gh;break e}if((Y=s(N*S))==null){b.a=1,_=0;break e}_=(_=Qn(b,Y,0,N,S,S,null))&&!P.h;break e}return _?(x!=null?x[0]=Y:(t(Y==null),t(f)),b.$=0,f||Hn(B)):Hn(B),_}function fi(i,o){var f=i.c*i.i,b=f+o+16*o;return t(i.c<=o),i.V=s(b),i.V==null?(i.Ta=null,i.Ua=0,i.a=1,0):(i.Ta=i.V,i.Ua=i.Ba+f+o,1)}function Ti(i,o){var f=i.C,b=o-f,x=i.V,_=i.Ba+i.c*f;for(t(o<=i.l.o);0<b;){var N=16<b?16:b,S=i.l.ma,P=i.l.width,B=P*N,Y=S.ca,ne=S.tb+P*f,T=i.Ta,K=i.Ua;ui(i,N,x,_),Ul(T,K,Y,ne,B),cr(S,f,f+N,Y,ne,P),b-=N,x+=N*i.c,f+=N}t(f==o),i.C=i.Ma=o}function Di(){this.ub=this.yd=this.td=this.Rb=0}function Mi(){this.Kd=this.Ld=this.Ud=this.Td=this.i=this.c=0}function lo(){this.Fb=this.Bb=this.Cb=0,this.Zb=s(4),this.Lb=s(4)}function _a(){this.Yb=(function(){var i=[];return(function o(f,b,x){for(var _=x[b],N=0;N<_&&(f.push(x.length>b+1?[]:0),!(x.length<b+1));N++)o(f[N],b+1,x)})(i,0,[3,11]),i})()}function ns(){this.jb=s(3),this.Wc=l([4,8],_a),this.Xc=l([4,17],_a)}function rs(){this.Pc=this.wb=this.Tb=this.zd=0,this.vd=new s(4),this.od=new s(4)}function Vn(){this.ld=this.La=this.dd=this.tc=0}function Na(){this.Na=this.la=0}function is(){this.Sc=[0,0],this.Eb=[0,0],this.Qc=[0,0],this.ia=this.lc=0}function Aa(){this.ad=s(384),this.Za=0,this.Ob=s(16),this.$b=this.Ad=this.ia=this.Gc=this.Hc=this.Dd=0}function as(){this.uc=this.M=this.Nb=0,this.wa=Array(new Vn),this.Y=0,this.ya=Array(new Aa),this.aa=0,this.l=new qi}function ss(){this.y=s(16),this.f=s(8),this.ea=s(8)}function os(){this.cb=this.a=0,this.sc="",this.m=new A,this.Od=new Di,this.Kc=new Mi,this.ed=new rs,this.Qa=new lo,this.Ic=this.$c=this.Aa=0,this.D=new as,this.Xb=this.Va=this.Hb=this.zb=this.yb=this.Ub=this.za=0,this.Jc=h(8,A),this.ia=0,this.pb=h(4,is),this.Pa=new ns,this.Bd=this.kc=0,this.Ac=[],this.Bc=0,this.zc=[0,0,0,0],this.Gd=Array(new ss),this.Hd=0,this.rb=Array(new Na),this.sb=0,this.wa=Array(new Vn),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 Aa),this.L=this.aa=0,this.gd=l([4,2],Vn),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 hr(i,o){return 0>i?0:i>o?o:i}function qi(){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 co(){var i=new os;return i!=null&&(i.a=0,i.sc="OK",i.cb=0,i.Xb=0,qa||(qa=Ui)),i}function Qt(i,o,f){return i.a==0&&(i.a=o,i.sc=f,i.cb=0),0}function ls(i,o,f){return 3<=f&&i[o+0]==157&&i[o+1]==1&&i[o+2]==42}function fr(i,o){if(i==null)return 0;if(i.a=0,i.sc="OK",o==null)return Qt(i,2,"null VP8Io passed to VP8GetHeaders()");var f=o.data,b=o.w,x=o.ha;if(4>x)return Qt(i,7,"Truncated header.");var _=f[b+0]|f[b+1]<<8|f[b+2]<<16,N=i.Od;if(N.Rb=!(1&_),N.td=_>>1&7,N.yd=_>>4&1,N.ub=_>>5,3<N.td)return Qt(i,3,"Incorrect keyframe parameters.");if(!N.yd)return Qt(i,4,"Frame not displayable.");b+=3,x-=3;var S=i.Kc;if(N.Rb){if(7>x)return Qt(i,7,"cannot parse picture header");if(!ls(f,b,x))return Qt(i,3,"Bad code word");S.c=16383&(f[b+4]<<8|f[b+3]),S.Td=f[b+4]>>6,S.i=16383&(f[b+6]<<8|f[b+5]),S.Ud=f[b+6]>>6,b+=7,x-=7,i.za=S.c+15>>4,i.Ub=S.i+15>>4,o.width=S.c,o.height=S.i,o.Da=0,o.j=0,o.v=0,o.va=o.width,o.o=o.height,o.da=0,o.ib=o.width,o.hb=o.height,o.U=o.width,o.T=o.height,a((_=i.Pa).jb,0,255,_.jb.length),t((_=i.Qa)!=null),_.Cb=0,_.Bb=0,_.Fb=1,a(_.Zb,0,0,_.Zb.length),a(_.Lb,0,0,_.Lb)}if(N.ub>x)return Qt(i,7,"bad partition length");oe(_=i.m,f,b,N.ub),b+=N.ub,x-=N.ub,N.Rb&&(S.Ld=ue(_),S.Kd=ue(_)),S=i.Qa;var P,B=i.Pa;if(t(_!=null),t(S!=null),S.Cb=ue(_),S.Cb){if(S.Bb=ue(_),ue(_)){for(S.Fb=ue(_),P=0;4>P;++P)S.Zb[P]=ue(_)?re(_,7):0;for(P=0;4>P;++P)S.Lb[P]=ue(_)?re(_,6):0}if(S.Bb)for(P=0;3>P;++P)B.jb[P]=ue(_)?ce(_,8):255}else S.Bb=0;if(_.Ka)return Qt(i,3,"cannot parse segment header");if((S=i.ed).zd=ue(_),S.Tb=ce(_,6),S.wb=ce(_,3),S.Pc=ue(_),S.Pc&&ue(_)){for(B=0;4>B;++B)ue(_)&&(S.vd[B]=re(_,6));for(B=0;4>B;++B)ue(_)&&(S.od[B]=re(_,6))}if(i.L=S.Tb==0?0:S.zd?1:2,_.Ka)return Qt(i,3,"cannot parse filter header");var Y=x;if(x=P=b,b=P+Y,S=Y,i.Xb=(1<<ce(i.m,2))-1,Y<3*(B=i.Xb))f=7;else{for(P+=3*B,S-=3*B,Y=0;Y<B;++Y){var ne=f[x+0]|f[x+1]<<8|f[x+2]<<16;ne>S&&(ne=S),oe(i.Jc[+Y],f,P,ne),P+=ne,S-=ne,x+=3}oe(i.Jc[+B],f,P,S),f=P<b?0:5}if(f!=0)return Qt(i,f,"cannot parse partitions");for(f=ce(P=i.m,7),x=ue(P)?re(P,4):0,b=ue(P)?re(P,4):0,S=ue(P)?re(P,4):0,B=ue(P)?re(P,4):0,P=ue(P)?re(P,4):0,Y=i.Qa,ne=0;4>ne;++ne){if(Y.Cb){var T=Y.Zb[ne];Y.Fb||(T+=f)}else{if(0<ne){i.pb[ne]=i.pb[0];continue}T=f}var K=i.pb[ne];K.Sc[0]=Io[hr(T+x,127)],K.Sc[1]=Oo[hr(T+0,127)],K.Eb[0]=2*Io[hr(T+b,127)],K.Eb[1]=101581*Oo[hr(T+S,127)]>>16,8>K.Eb[1]&&(K.Eb[1]=8),K.Qc[0]=Io[hr(T+B,117)],K.Qc[1]=Oo[hr(T+P,127)],K.lc=T+P}if(!N.Rb)return Qt(i,4,"Not a key frame.");for(ue(_),N=i.Pa,f=0;4>f;++f){for(x=0;8>x;++x)for(b=0;3>b;++b)for(S=0;11>S;++S)B=be(_,Uh[f][x][b][S])?ce(_,8):Mh[f][x][b][S],N.Wc[f][x].Yb[b][S]=B;for(x=0;17>x;++x)N.Xc[f][x]=N.Wc[f][zh[x]]}return i.kc=ue(_),i.kc&&(i.Bd=ce(_,8)),i.cb=1}function Ui(i,o,f,b,x,_,N){var S=o[x].Yb[f];for(f=0;16>x;++x){if(!be(i,S[f+0]))return x;for(;!be(i,S[f+1]);)if(S=o[++x].Yb[0],f=0,x==16)return 16;var P=o[x+1].Yb;if(be(i,S[f+2])){var B=i,Y=0;if(be(B,(T=S)[(ne=f)+3]))if(be(B,T[ne+6])){for(S=0,ne=2*(Y=be(B,T[ne+8]))+(T=be(B,T[ne+9+Y])),Y=0,T=Th[ne];T[S];++S)Y+=Y+be(B,T[S]);Y+=3+(8<<ne)}else be(B,T[ne+7])?(Y=7+2*be(B,165),Y+=be(B,145)):Y=5+be(B,159);else Y=be(B,T[ne+4])?3+be(B,T[ne+5]):2;S=P[2]}else Y=1,S=P[1];P=N+Dh[x],0>(B=i).b&&le(B);var ne,T=B.b,K=(ne=B.Ca>>1)-(B.I>>T)>>31;--B.b,B.Ca+=K,B.Ca|=1,B.I-=(ne+1&K)<<T,_[P]=((Y^K)-K)*b[(0<x)+0]}return 16}function Sa(i){var o=i.rb[i.sb-1];o.la=0,o.Na=0,a(i.zc,0,0,i.zc.length),i.ja=0}function In(i,o,f,b,x){x=i[o+f+32*b]+(x>>3),i[o+f+32*b]=-256&x?0>x?0:255:x}function zi(i,o,f,b,x,_){In(i,o,0,f,b+x),In(i,o,1,f,b+_),In(i,o,2,f,b-_),In(i,o,3,f,b-x)}function Lr(i){return(20091*i>>16)+i}function un(i,o,f,b){var x,_=0,N=s(16);for(x=0;4>x;++x){var S=i[o+0]+i[o+8],P=i[o+0]-i[o+8],B=(35468*i[o+4]>>16)-Lr(i[o+12]),Y=Lr(i[o+4])+(35468*i[o+12]>>16);N[_+0]=S+Y,N[_+1]=P+B,N[_+2]=P-B,N[_+3]=S-Y,_+=4,o++}for(x=_=0;4>x;++x)S=(i=N[_+0]+4)+N[_+8],P=i-N[_+8],B=(35468*N[_+4]>>16)-Lr(N[_+12]),In(f,b,0,0,S+(Y=Lr(N[_+4])+(35468*N[_+12]>>16))),In(f,b,1,0,P+B),In(f,b,2,0,P-B),In(f,b,3,0,S-Y),_++,b+=32}function cs(i,o,f,b){var x=i[o+0]+4,_=35468*i[o+4]>>16,N=Lr(i[o+4]),S=35468*i[o+1]>>16;zi(f,b,0,x+N,i=Lr(i[o+1]),S),zi(f,b,1,x+_,i,S),zi(f,b,2,x-_,i,S),zi(f,b,3,x-N,i,S)}function uo(i,o,f,b,x){un(i,o,f,b),x&&un(i,o+16,f,b+4)}function ho(i,o,f,b){Er(i,o+0,f,b,1),Er(i,o+32,f,b+128,1)}function fo(i,o,f,b){var x;for(i=i[o+0]+4,x=0;4>x;++x)for(o=0;4>o;++o)In(f,b,o,x,i)}function dr(i,o,f,b){i[o+0]&&vn(i,o+0,f,b),i[o+16]&&vn(i,o+16,f,b+4),i[o+32]&&vn(i,o+32,f,b+128),i[o+48]&&vn(i,o+48,f,b+128+4)}function us(i,o,f,b){var x,_=s(16);for(x=0;4>x;++x){var N=i[o+0+x]+i[o+12+x],S=i[o+4+x]+i[o+8+x],P=i[o+4+x]-i[o+8+x],B=i[o+0+x]-i[o+12+x];_[0+x]=N+S,_[8+x]=N-S,_[4+x]=B+P,_[12+x]=B-P}for(x=0;4>x;++x)N=(i=_[0+4*x]+3)+_[3+4*x],S=_[1+4*x]+_[2+4*x],P=_[1+4*x]-_[2+4*x],B=i-_[3+4*x],f[b+0]=N+S>>3,f[b+16]=B+P>>3,f[b+32]=N-S>>3,f[b+48]=B-P>>3,b+=64}function Gi(i,o,f){var b,x=o-32,_=On,N=255-i[x-1];for(b=0;b<f;++b){var S,P=_,B=N+i[o-1];for(S=0;S<f;++S)i[o+S]=P[B+i[x+S]];o+=32}}function Wi(i,o){Gi(i,o,4)}function La(i,o){Gi(i,o,8)}function po(i,o){Gi(i,o,16)}function mo(i,o){var f;for(f=0;16>f;++f)r(i,o+32*f,i,o-32,16)}function go(i,o){var f;for(f=16;0<f;--f)a(i,o,i[o-1],16),o+=32}function Wr(i,o,f){var b;for(b=0;16>b;++b)a(o,f+32*b,i,16)}function hs(i,o){var f,b=16;for(f=0;16>f;++f)b+=i[o-1+32*f]+i[o+f-32];Wr(b>>5,i,o)}function Hr(i,o){var f,b=8;for(f=0;16>f;++f)b+=i[o-1+32*f];Wr(b>>4,i,o)}function bo(i,o){var f,b=8;for(f=0;16>f;++f)b+=i[o+f-32];Wr(b>>4,i,o)}function di(i,o){Wr(128,i,o)}function Ke(i,o,f){return i+2*o+f+2>>2}function vo(i,o){var f,b=o-32;for(b=new Uint8Array([Ke(i[b-1],i[b+0],i[b+1]),Ke(i[b+0],i[b+1],i[b+2]),Ke(i[b+1],i[b+2],i[b+3]),Ke(i[b+2],i[b+3],i[b+4])]),f=0;4>f;++f)r(i,o+32*f,b,0,b.length)}function xo(i,o){var f=i[o-1],b=i[o-1+32],x=i[o-1+64],_=i[o-1+96];Ne(i,o+0,16843009*Ke(i[o-1-32],f,b)),Ne(i,o+32,16843009*Ke(f,b,x)),Ne(i,o+64,16843009*Ke(b,x,_)),Ne(i,o+96,16843009*Ke(x,_,_))}function yo(i,o){var f,b=4;
vendor: 2,442 bytes, line 124
124for(f=0;4>f;++f)b+=i[o+f-32]+i[o-1+32*f];for(b>>=3,f=0;4>f;++f)a(i,o+32*f,b,4)}function wo(i,o){var f=i[o-1+0],b=i[o-1+32],x=i[o-1+64],_=i[o-1-32],N=i[o+0-32],S=i[o+1-32],P=i[o+2-32],B=i[o+3-32];i[o+0+96]=Ke(b,x,i[o-1+96]),i[o+1+96]=i[o+0+64]=Ke(f,b,x),i[o+2+96]=i[o+1+64]=i[o+0+32]=Ke(_,f,b),i[o+3+96]=i[o+2+64]=i[o+1+32]=i[o+0+0]=Ke(N,_,f),i[o+3+64]=i[o+2+32]=i[o+1+0]=Ke(S,N,_),i[o+3+32]=i[o+2+0]=Ke(P,S,N),i[o+3+0]=Ke(B,P,S)}function _o(i,o){var f=i[o+1-32],b=i[o+2-32],x=i[o+3-32],_=i[o+4-32],N=i[o+5-32],S=i[o+6-32],P=i[o+7-32];i[o+0+0]=Ke(i[o+0-32],f,b),i[o+1+0]=i[o+0+32]=Ke(f,b,x),i[o+2+0]=i[o+1+32]=i[o+0+64]=Ke(b,x,_),i[o+3+0]=i[o+2+32]=i[o+1+64]=i[o+0+96]=Ke(x,_,N),i[o+3+32]=i[o+2+64]=i[o+1+96]=Ke(_,N,S),i[o+3+64]=i[o+2+96]=Ke(N,S,P),i[o+3+96]=Ke(S,P,P)}function jr(i,o){var f=i[o-1+0],b=i[o-1+32],x=i[o-1+64],_=i[o-1-32],N=i[o+0-32],S=i[o+1-32],P=i[o+2-32],B=i[o+3-32];i[o+0+0]=i[o+1+64]=_+N+1>>1,i[o+1+0]=i[o+2+64]=N+S+1>>1,i[o+2+0]=i[o+3+64]=S+P+1>>1,i[o+3+0]=P+B+1>>1,i[o+0+96]=Ke(x,b,f),i[o+0+64]=Ke(b,f,_),i[o+0+32]=i[o+1+96]=Ke(f,_,N),i[o+1+32]=i[o+2+96]=Ke(_,N,S),i[o+2+32]=i[o+3+96]=Ke(N,S,P),i[o+3+32]=Ke(S,P,B)}function kr(i,o){var f=i[o+0-32],b=i[o+1-32],x=i[o+2-32],_=i[o+3-32],N=i[o+4-32],S=i[o+5-32],P=i[o+6-32],B=i[o+7-32];i[o+0+0]=f+b+1>>1,i[o+1+0]=i[o+0+64]=b+x+1>>1,i[o+2+0]=i[o+1+64]=x+_+1>>1,i[o+3+0]=i[o+2+64]=_+N+1>>1,i[o+0+32]=Ke(f,b,x),i[o+1+32]=i[o+0+96]=Ke(b,x,_),i[o+2+32]=i[o+1+96]=Ke(x,_,N),i[o+3+32]=i[o+2+96]=Ke(_,N,S),i[o+3+64]=Ke(N,S,P),i[o+3+96]=Ke(S,P,B)}function No(i,o){var f=i[o-1+0],b=i[o-1+32],x=i[o-1+64],_=i[o-1+96];i[o+0+0]=f+b+1>>1,i[o+2+0]=i[o+0+32]=b+x+1>>1,i[o+2+32]=i[o+0+64]=x+_+1>>1,i[o+1+0]=Ke(f,b,x),i[o+3+0]=i[o+1+32]=Ke(b,x,_),i[o+3+32]=i[o+1+64]=Ke(x,_,_),i[o+3+64]=i[o+2+64]=i[o+0+96]=i[o+1+96]=i[o+2+96]=i[o+3+96]=_}function Ao(i,o){var f=i[o-1+0],b=i[o-1+32],x=i[o-1+64],_=i[o-1+96],N=i[o-1-32],S=i[o+0-32],P=i[o+1-32],B=i[o+2-32];i[o+0+0]=i[o+2+32]=f+N+1>>1,i[o+0+32]=i[o+2+64]=b+f+1>>1,i[o+0+64]=i[o+2+96]=x+b+1>>1,i[o+0+96]=_+x+1>>1,i[o+3+0]=Ke(S,P,B),i[o+2+0]=Ke(N,S,P),i[o+1+0]=i[o+3+32]=Ke(f,N,S),i[o+1+32]=i[o+3+64]=Ke(b,f,N),i[o+1+64]=i[o+3+96]=Ke(x,b,f),i[o+1+96]=Ke(_,x,b)}function Hi(i,o){var f;for(f=0;8>f;++f)r(i,o+32*f,i,o-32,8)}function ja(i,o){var f;for(f=0;8>f;++f)a(i,o,i[o-1],8),o+=32}function pr(i,o,f){var b;for(b=0;8>b;++b)a(o,f+32*b,i,8)}function So(i,o){var f,b=8;for(f=0;8>f;++f)b+=i[o+f-32]+i[o-1+32*f];pr(b>>4,i,o)}function Vi(i,o){var f,b=4;
vendor: 16,061 bytes, line 124
124for(f=0;8>f;++f)b+=i[o+f-32];pr(b>>3,i,o)}function Lo(i,o){var f,b=4;for(f=0;8>f;++f)b+=i[o-1+32*f];pr(b>>3,i,o)}function ka(i,o){pr(128,i,o)}function Vr(i,o,f){var b=i[o-f],x=i[o+0],_=3*(x-b)+ko[1020+i[o-2*f]-i[o+f]],N=ys[112+(_+4>>3)];i[o-f]=On[255+b+ys[112+(_+3>>3)]],i[o+0]=On[255+x-N]}function Pa(i,o,f,b){var x=i[o+0],_=i[o+f];return $n[255+i[o-2*f]-i[o-f]]>b||$n[255+_-x]>b}function pi(i,o,f,b){return 4*$n[255+i[o-f]-i[o+0]]+$n[255+i[o-2*f]-i[o+f]]<=b}function Fa(i,o,f,b,x){var _=i[o-3*f],N=i[o-2*f],S=i[o-f],P=i[o+0],B=i[o+f],Y=i[o+2*f],ne=i[o+3*f];return 4*$n[255+S-P]+$n[255+N-B]>b?0:$n[255+i[o-4*f]-_]<=x&&$n[255+_-N]<=x&&$n[255+N-S]<=x&&$n[255+ne-Y]<=x&&$n[255+Y-B]<=x&&$n[255+B-P]<=x}function Yi(i,o,f,b){var x=2*b+1;for(b=0;16>b;++b)pi(i,o+b,f,x)&&Vr(i,o+b,f)}function Ca(i,o,f,b){var x=2*b+1;for(b=0;16>b;++b)pi(i,o+b*f,1,x)&&Vr(i,o+b*f,1)}function $i(i,o,f,b){var x;for(x=3;0<x;--x)Yi(i,o+=4*f,f,b)}function fs(i,o,f,b){var x;for(x=3;0<x;--x)Ca(i,o+=4,f,b)}function Pr(i,o,f,b,x,_,N,S){for(_=2*_+1;0<x--;){if(Fa(i,o,f,_,N))if(Pa(i,o,f,S))Vr(i,o,f);else{var P=i,B=o,Y=f,ne=P[B-2*Y],T=P[B-Y],K=P[B+0],Z=P[B+Y],fe=P[B+2*Y],te=27*(me=ko[1020+3*(K-T)+ko[1020+ne-Z]])+63>>7,pe=18*me+63>>7,me=9*me+63>>7;P[B-3*Y]=On[255+P[B-3*Y]+me],P[B-2*Y]=On[255+ne+pe],P[B-Y]=On[255+T+te],P[B+0]=On[255+K-te],P[B+Y]=On[255+Z-pe],P[B+2*Y]=On[255+fe-me]}o+=b}}function Fr(i,o,f,b,x,_,N,S){for(_=2*_+1;0<x--;){if(Fa(i,o,f,_,N))if(Pa(i,o,f,S))Vr(i,o,f);else{var P=i,B=o,Y=f,ne=P[B-Y],T=P[B+0],K=P[B+Y],Z=ys[112+(4+(fe=3*(T-ne))>>3)],fe=ys[112+(fe+3>>3)],te=Z+1>>1;P[B-2*Y]=On[255+P[B-2*Y]+te],P[B-Y]=On[255+ne+fe],P[B+0]=On[255+T-Z],P[B+Y]=On[255+K-te]}o+=b}}function ds(i,o,f,b,x,_){Pr(i,o,f,1,16,b,x,_)}function ps(i,o,f,b,x,_){Pr(i,o,1,f,16,b,x,_)}function ms(i,o,f,b,x,_){var N;for(N=3;0<N;--N)Fr(i,o+=4*f,f,1,16,b,x,_)}function mi(i,o,f,b,x,_){var N;for(N=3;0<N;--N)Fr(i,o+=4,1,f,16,b,x,_)}function gs(i,o,f,b,x,_,N,S){Pr(i,o,x,1,8,_,N,S),Pr(f,b,x,1,8,_,N,S)}function u(i,o,f,b,x,_,N,S){Pr(i,o,1,x,8,_,N,S),Pr(f,b,1,x,8,_,N,S)}function v(i,o,f,b,x,_,N,S){Fr(i,o+4*x,x,1,8,_,N,S),Fr(f,b+4*x,x,1,8,_,N,S)}function I(i,o,f,b,x,_,N,S){Fr(i,o+4,1,x,8,_,N,S),Fr(f,b+4,1,x,8,_,N,S)}function H(){this.ba=new ut,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new yt,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function X(){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 he(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function ve(){this.ua=0,this.Wa=new ot,this.vb=new ot,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new ie,this.yc=new V}function Ie(){this.xb=this.a=0,this.l=new qi,this.ca=new ut,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new ve,this.ab=0,this.gc=h(4,he),this.Oc=0}function Ee(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new qi,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Ze(i,o,f,b,x,_,N){for(i=i==null?0:i[o+0],o=0;o<N;++o)x[_+o]=i+f[b+o]&255,i=x[_+o]}function nt(i,o,f,b,x,_,N){var S;if(i==null)Ze(null,null,f,b,x,_,N);else for(S=0;S<N;++S)x[_+S]=i[o+S]+f[b+S]&255}function mt(i,o,f,b,x,_,N){if(i==null)Ze(null,null,f,b,x,_,N);else{var S,P=i[o+0],B=P,Y=P;for(S=0;S<N;++S)B=Y+(P=i[o+S])-B,Y=f[b+S]+(-256&B?0>B?0:255:B)&255,B=P,x[_+S]=Y}}function en(i,o,f,b){var x=o.width,_=o.o;if(t(i!=null&&o!=null),0>f||0>=b||f+b>_)return null;if(!i.Cc){if(i.ga==null){var N;if(i.ga=new Ee,(N=i.ga==null)||(N=o.width*o.o,t(i.Gb.length==0),i.Gb=s(N),i.Uc=0,i.Gb==null?N=0:(i.mb=i.Gb,i.nb=i.Uc,i.rc=null,N=1),N=!N),!N){N=i.ga;var S=i.Fa,P=i.P,B=i.qc,Y=i.mb,ne=i.nb,T=P+1,K=B-1,Z=N.l;if(t(S!=null&&Y!=null&&o!=null),Qr[0]=null,Qr[1]=Ze,Qr[2]=nt,Qr[3]=mt,N.ca=Y,N.tb=ne,N.c=o.width,N.i=o.height,t(0<N.c&&0<N.i),1>=B)o=0;else if(N.$a=3&S[P+0],N.Z=S[P+0]>>2&3,N.Lc=S[P+0]>>4&3,P=S[P+0]>>6&3,0>N.$a||1<N.$a||4<=N.Z||1<N.Lc||P)o=0;else if(Z.put=Ye,Z.ac=lr,Z.bc=Ar,Z.ma=N,Z.width=o.width,Z.height=o.height,Z.Da=o.Da,Z.v=o.v,Z.va=o.va,Z.j=o.j,Z.o=o.o,N.$a)e:{t(N.$a==1),o=hi();t:for(;;){if(o==null){o=0;break e}if(t(N!=null),N.mc=o,o.c=N.c,o.i=N.i,o.l=N.l,o.l.ma=N,o.l.width=N.c,o.l.height=N.i,o.a=0,de(o.m,S,T,K),!ur(N.c,N.i,1,o,null)||(o.ab==1&&o.gc[0].hc==3&&Xn(o.s)?(N.ic=1,S=o.c*o.i,o.Ta=null,o.Ua=0,o.V=s(S),o.Ba=0,o.V==null?(o.a=1,o=0):o=1):(N.ic=0,o=fi(o,N.c)),!o))break t;o=1;break e}N.mc=null,o=0}else o=K>=N.c*N.i;N=!o}if(N)return null;i.ga.Lc!=1?i.Ga=0:b=_-f}t(i.ga!=null),t(f+b<=_);e:{if(o=(S=i.ga).c,_=S.l.o,S.$a==0){if(T=i.rc,K=i.Vc,Z=i.Fa,P=i.P+1+f*o,B=i.mb,Y=i.nb+f*o,t(P<=i.P+i.qc),S.Z!=0)for(t(Qr[S.Z]!=null),N=0;N<b;++N)Qr[S.Z](T,K,Z,P,B,Y,o),T=B,K=Y,Y+=o,P+=o;else for(N=0;N<b;++N)r(B,Y,Z,P,o),T=B,K=Y,Y+=o,P+=o;i.rc=T,i.Vc=K}else{if(t(S.mc!=null),o=f+b,t((N=S.mc)!=null),t(o<=N.i),N.C>=o)o=1;else if(S.ic||Ut(),S.ic){S=N.V,T=N.Ba,K=N.c;var fe=N.i,te=(Z=1,P=N.$/K,B=N.$%K,Y=N.m,ne=N.s,N.$),pe=K*fe,me=K*o,_e=ne.wc,ye=te<me?cn(ne,B,P):null;t(te<=pe),t(o<=fe),t(Xn(ne));t:for(;;){for(;!Y.h&&te<me;){if(B&_e||(ye=cn(ne,B,P)),t(ye!=null),ee(Y),256>(fe=zt(ye.G[0],ye.H[0],Y)))S[T+te]=fe,++te,++B>=K&&(B=0,++P<=o&&!(P%16)&&Zn(N,P));else{if(!(280>fe)){Z=0;break t}fe=Gn(fe-256,Y);var Te,Pe=zt(ye.G[4],ye.H[4],Y);if(ee(Y),!(te>=(Pe=Wn(K,Pe=Gn(Pe,Y)))&&pe-te>=fe)){Z=0;break t}for(Te=0;Te<fe;++Te)S[T+te+Te]=S[T+te+Te-Pe];for(te+=fe,B+=fe;B>=K;)B-=K,++P<=o&&!(P%16)&&Zn(N,P);te<me&&B&_e&&(ye=cn(ne,B,P))}t(Y.h==G(Y))}Zn(N,P>o?o:P);break t}!Z||Y.h&&te<pe?(Z=0,N.a=Y.h?5:3):N.$=te,o=Z}else o=Qn(N,N.V,N.Ba,N.c,N.i,o,Ti);if(!o){b=0;break e}}f+b>=_&&(i.Cc=1),b=1}if(!b)return null;if(i.Cc&&((b=i.ga)!=null&&(b.mc=null),i.ga=null,0<i.Ga))return alert("todo:WebPDequantizeLevels"),null}return i.nb+f*x}function Lt(i,o,f,b,x,_){for(;0<x--;){var N,S=i,P=o+(f?1:0),B=i,Y=o+(f?0:3);for(N=0;N<b;++N){var ne=B[Y+4*N];ne!=255&&(ne*=32897,S[P+4*N+0]=S[P+4*N+0]*ne>>23,S[P+4*N+1]=S[P+4*N+1]*ne>>23,S[P+4*N+2]=S[P+4*N+2]*ne>>23)}o+=_}}function St(i,o,f,b,x){for(;0<b--;){var _;for(_=0;_<f;++_){var N=i[o+2*_+0],S=15&(B=i[o+2*_+1]),P=4369*S,B=(240&B|B>>4)*P>>16;i[o+2*_+0]=(240&N|N>>4)*P>>16&240|(15&N|N<<4)*P>>16>>4&15,i[o+2*_+1]=240&B|S}o+=x}}function Ot(i,o,f,b,x,_,N,S){var P,B,Y=255;for(B=0;B<x;++B){for(P=0;P<b;++P){var ne=i[o+P];_[N+4*P]=ne,Y&=ne}o+=f,N+=S}return Y!=255}function qt(i,o,f,b,x){var _;for(_=0;_<x;++_)f[b+_]=i[o+_]>>8}function Ut(){Ma=Lt,Ml=St,ql=Ot,Ul=qt}function gn(i,o,f){U[i]=function(b,x,_,N,S,P,B,Y,ne,T,K,Z,fe,te,pe,me,_e){var ye,Te=_e-1>>1,Pe=S[P+0]|B[Y+0]<<16,at=ne[T+0]|K[Z+0]<<16;t(b!=null);var Oe=3*Pe+at+131074>>2;for(o(b[x+0],255&Oe,Oe>>16,fe,te),_!=null&&(Oe=3*at+Pe+131074>>2,o(_[N+0],255&Oe,Oe>>16,pe,me)),ye=1;ye<=Te;++ye){var pt=S[P+ye]|B[Y+ye]<<16,rn=ne[T+ye]|K[Z+ye]<<16,st=Pe+pt+at+rn+524296,Re=st+2*(pt+at)>>3;Oe=Re+Pe>>1,Pe=(st=st+2*(Pe+rn)>>3)+pt>>1,o(b[x+2*ye-1],255&Oe,Oe>>16,fe,te+(2*ye-1)*f),o(b[x+2*ye-0],255&Pe,Pe>>16,fe,te+(2*ye-0)*f),_!=null&&(Oe=st+at>>1,Pe=Re+rn>>1,o(_[N+2*ye-1],255&Oe,Oe>>16,pe,me+(2*ye-1)*f),o(_[N+2*ye+0],255&Pe,Pe>>16,pe,me+(2*ye+0)*f)),Pe=pt,at=rn}1&_e||(Oe=3*Pe+at+131074>>2,o(b[x+_e-1],255&Oe,Oe>>16,fe,te+(_e-1)*f),_!=null&&(Oe=3*at+Pe+131074>>2,o(_[N+_e-1],255&Oe,Oe>>16,pe,me+(_e-1)*f)))}}function Cr(){Jn[ws]=Wh,Jn[_s]=Zl,Jn[Yl]=Hh,Jn[Ns]=Ql,Jn[As]=ec,Jn[Po]=tc,Jn[$l]=Vh,Jn[Fo]=Zl,Jn[Co]=Ql,Jn[Ss]=ec,Jn[Eo]=tc}function Ea(i){return i&-16384?0>i?0:255:i>>Yh}function gi(i,o){return Ea((19077*i>>8)+(26149*o>>8)-14234)}function bi(i,o,f){return Ea((19077*i>>8)-(6419*o>>8)-(13320*f>>8)+8708)}function Yr(i,o){return Ea((19077*i>>8)+(33050*o>>8)-17685)}function vi(i,o,f,b,x){b[x+0]=gi(i,f),b[x+1]=bi(i,o,f),b[x+2]=Yr(i,o)}function Ji(i,o,f,b,x){b[x+0]=Yr(i,o),b[x+1]=bi(i,o,f),b[x+2]=gi(i,f)}function Ki(i,o,f,b,x){var _=bi(i,o,f);o=_<<3&224|Yr(i,o)>>3,b[x+0]=248&gi(i,f)|_>>5,b[x+1]=o}function bn(i,o,f,b,x){var _=240&Yr(i,o)|15;b[x+0]=240&gi(i,f)|bi(i,o,f)>>4,b[x+1]=_}function xi(i,o,f,b,x){b[x+0]=255,vi(i,o,f,b,x+1)}function yi(i,o,f,b,x){Ji(i,o,f,b,x),b[x+3]=255}function Ia(i,o,f,b,x){vi(i,o,f,b,x),b[x+3]=255}function mr(i,o,f){U[i]=function(b,x,_,N,S,P,B,Y,ne){for(var T=Y+(-2&ne)*f;Y!=T;)o(b[x+0],_[N+0],S[P+0],B,Y),o(b[x+1],_[N+0],S[P+0],B,Y+f),x+=2,++N,++P,Y+=2*f;1&ne&&o(b[x+0],_[N+0],S[P+0],B,Y)}}function An(i,o,f){return f==0?i==0?o==0?6:5:o==0?4:0:f}function bs(i,o,f,b,x){switch(i>>>30){case 3:Er(o,f,b,x,0);break;case 2:Xr(o,f,b,x);break;case 1:vn(o,f,b,x)}}function Xi(i,o){var f,b,x=o.M,_=o.Nb,N=i.oc,S=i.pc+40,P=i.oc,B=i.pc+584,Y=i.oc,ne=i.pc+600;for(f=0;16>f;++f)N[S+32*f-1]=129;for(f=0;8>f;++f)P[B+32*f-1]=129,Y[ne+32*f-1]=129;for(0<x?N[S-1-32]=P[B-1-32]=Y[ne-1-32]=129:(a(N,S-32-1,127,21),a(P,B-32-1,127,9),a(Y,ne-32-1,127,9)),b=0;b<i.za;++b){var T=o.ya[o.aa+b];if(0<b){for(f=-1;16>f;++f)r(N,S+32*f-4,N,S+32*f+12,4);for(f=-1;8>f;++f)r(P,B+32*f-4,P,B+32*f+4,4),r(Y,ne+32*f-4,Y,ne+32*f+4,4)}var K=i.Gd,Z=i.Hd+b,fe=T.ad,te=T.Hc;if(0<x&&(r(N,S-32,K[Z].y,0,16),r(P,B-32,K[Z].f,0,8),r(Y,ne-32,K[Z].ea,0,8)),T.Za){var pe=N,me=S-32+16;for(0<x&&(b>=i.za-1?a(pe,me,K[Z].y[15],4):r(pe,me,K[Z+1].y,0,4)),f=0;4>f;f++)pe[me+128+f]=pe[me+256+f]=pe[me+384+f]=pe[me+0+f];for(f=0;16>f;++f,te<<=2)pe=N,me=S+rc[f],tr[T.Ob[f]](pe,me),bs(te,fe,16*+f,pe,me)}else if(pe=An(b,x,T.Ob[0]),Zr[pe](N,S),te!=0)for(f=0;16>f;++f,te<<=2)bs(te,fe,16*+f,N,S+rc[f]);for(f=T.Gc,pe=An(b,x,T.Dd),Or[pe](P,B),Or[pe](Y,ne),te=fe,pe=P,me=B,255&(T=0|f)&&(170&T?na(te,256,pe,me):br(te,256,pe,me)),T=Y,te=ne,255&(f>>=8)&&(170&f?na(fe,320,T,te):br(fe,320,T,te)),x<i.Ub-1&&(r(K[Z].y,0,N,S+480,16),r(K[Z].f,0,P,B+224,8),r(K[Z].ea,0,Y,ne+224,8)),f=8*_*i.B,K=i.sa,Z=i.ta+16*b+16*_*i.R,fe=i.qa,T=i.ra+8*b+f,te=i.Ha,pe=i.Ia+8*b+f,f=0;16>f;++f)r(K,Z+f*i.R,N,S+32*f,16);for(f=0;8>f;++f)r(fe,T+f*i.B,P,B+32*f,8),r(te,pe+f*i.B,Y,ne+32*f,8)}}function vs(i,o,f,b,x,_,N,S,P){var B=[0],Y=[0],ne=0,T=P!=null?P.kd:0,K=P??new X;if(i==null||12>f)return 7;K.data=i,K.w=o,K.ha=f,o=[o],f=[f],K.gb=[K.gb];e:{var Z=o,fe=f,te=K.gb;if(t(i!=null),t(fe!=null),t(te!=null),te[0]=0,12<=fe[0]&&!e(i,Z[0],"RIFF")){if(e(i,Z[0]+8,"WEBP")){te=3;break e}var pe=qe(i,Z[0]+4);if(12>pe||4294967286<pe){te=3;break e}if(T&&pe>fe[0]-8){te=7;break e}te[0]=pe,Z[0]+=12,fe[0]-=12}te=0}if(te!=0)return te;for(pe=0<K.gb[0],f=f[0];;){e:{var me=i;fe=o,te=f;var _e=B,ye=Y,Te=Z=[0];if((Oe=ne=[ne])[0]=0,8>te[0])te=7;else{if(!e(me,fe[0],"VP8X")){if(qe(me,fe[0]+4)!=10){te=3;break e}if(18>te[0]){te=7;break e}var Pe=qe(me,fe[0]+8),at=1+je(me,fe[0]+12);if(2147483648<=at*(me=1+je(me,fe[0]+15))){te=3;break e}Te!=null&&(Te[0]=Pe),_e!=null&&(_e[0]=at),ye!=null&&(ye[0]=me),fe[0]+=18,te[0]-=18,Oe[0]=1}te=0}}if(ne=ne[0],Z=Z[0],te!=0)return te;if(fe=!!(2&Z),!pe&&ne)return 3;if(_!=null&&(_[0]=!!(16&Z)),N!=null&&(N[0]=fe),S!=null&&(S[0]=0),N=B[0],Z=Y[0],ne&&fe&&P==null){te=0;break}if(4>f){te=7;break}if(pe&&ne||!pe&&!ne&&!e(i,o[0],"ALPH")){f=[f],K.na=[K.na],K.P=[K.P],K.Sa=[K.Sa];e:{Pe=i,te=o,pe=f;var Oe=K.gb;_e=K.na,ye=K.P,Te=K.Sa,at=22,t(Pe!=null),t(pe!=null),me=te[0];var pt=pe[0];for(t(_e!=null),t(Te!=null),_e[0]=null,ye[0]=null,Te[0]=0;;){if(te[0]=me,pe[0]=pt,8>pt){te=7;break e}var rn=qe(Pe,me+4);if(4294967286<rn){te=3;break e}var st=8+rn+1&-2;if(at+=st,0<Oe&&at>Oe){te=3;break e}if(!e(Pe,me,"VP8 ")||!e(Pe,me,"VP8L")){te=0;break e}if(pt[0]<st){te=7;break e}e(Pe,me,"ALPH")||(_e[0]=Pe,ye[0]=me+8,Te[0]=rn),me+=st,pt-=st}}if(f=f[0],K.na=K.na[0],K.P=K.P[0],K.Sa=K.Sa[0],te!=0)break}f=[f],K.Ja=[K.Ja],K.xa=[K.xa];e:if(Oe=i,te=o,pe=f,_e=K.gb[0],ye=K.Ja,Te=K.xa,Pe=te[0],me=!e(Oe,Pe,"VP8 "),at=!e(Oe,Pe,"VP8L"),t(Oe!=null),t(pe!=null),t(ye!=null),t(Te!=null),8>pe[0])te=7;else{if(me||at){if(Oe=qe(Oe,Pe+4),12<=_e&&Oe>_e-12){te=3;break e}if(T&&Oe>pe[0]-8){te=7;break e}ye[0]=Oe,te[0]+=8,pe[0]-=8,Te[0]=at}else Te[0]=5<=pe[0]&&Oe[Pe+0]==47&&!(Oe[Pe+4]>>5),ye[0]=pe[0];te=0}if(f=f[0],K.Ja=K.Ja[0],K.xa=K.xa[0],o=o[0],te!=0)break;if(4294967286<K.Ja)return 3;if(S==null||fe||(S[0]=K.xa?2:1),N=[N],Z=[Z],K.xa){if(5>f){te=7;break}S=N,T=Z,fe=_,i==null||5>f?i=0:5<=f&&i[o+0]==47&&!(i[o+4]>>5)?(pe=[0],Oe=[0],_e=[0],de(ye=new R,i,o,f),Sr(ye,pe,Oe,_e)?(S!=null&&(S[0]=pe[0]),T!=null&&(T[0]=Oe[0]),fe!=null&&(fe[0]=_e[0]),i=1):i=0):i=0}else{if(10>f){te=7;break}S=Z,i==null||10>f||!ls(i,o+3,f-3)?i=0:(T=i[o+0]|i[o+1]<<8|i[o+2]<<16,fe=16383&(i[o+7]<<8|i[o+6]),i=16383&(i[o+9]<<8|i[o+8]),1&T||3<(T>>1&7)||!(T>>4&1)||T>>5>=K.Ja||!fe||!i?i=0:(N&&(N[0]=fe),S&&(S[0]=i),i=1))}if(!i||(N=N[0],Z=Z[0],ne&&(B[0]!=N||Y[0]!=Z)))return 3;P!=null&&(P[0]=K,P.offset=o-P.w,t(4294967286>o-P.w),t(P.offset==P.ha-f));break}return te==0||te==7&&ne&&P==null?(_!=null&&(_[0]|=K.na!=null&&0<K.na.length),b!=null&&(b[0]=N),x!=null&&(x[0]=Z),0):te}function Yn(i,o,f){var b=o.width,x=o.height,_=0,N=0,S=b,P=x;if(o.Da=i!=null&&0<i.Da,o.Da&&(S=i.cd,P=i.bd,_=i.v,N=i.j,11>f||(_&=-2,N&=-2),0>_||0>N||0>=S||0>=P||_+S>b||N+P>x))return 0;if(o.v=_,o.j=N,o.va=_+S,o.o=N+P,o.U=S,o.T=P,o.da=i!=null&&0<i.da,o.da){if(!We(S,P,f=[i.ib],_=[i.hb]))return 0;o.ib=f[0],o.hb=_[0]}return o.ob=i!=null&&i.ob,o.Kb=i==null||!i.Sd,o.da&&(o.ob=o.ib<3*b/4&&o.hb<3*x/4,o.Kb=0),1}function wi(i){if(i==null)return 2;if(11>i.S){var o=i.f.RGBA;o.fb+=(i.height-1)*o.A,o.A=-o.A}else o=i.f.kb,i=i.height,o.O+=(i-1)*o.fa,o.fa=-o.fa,o.N+=(i-1>>1)*o.Ab,o.Ab=-o.Ab,o.W+=(i-1>>1)*o.Db,o.Db=-o.Db,o.F!=null&&(o.J+=(i-1)*o.lb,o.lb=-o.lb);return 0}function Oa(i,o,f,b){if(b==null||0>=i||0>=o)return 2;if(f!=null){if(f.Da){var x=f.cd,_=f.bd,N=-2&f.v,S=-2&f.j;if(0>N||0>S||0>=x||0>=_||N+x>i||S+_>o)return 2;i=x,o=_}if(f.da){if(!We(i,o,x=[f.ib],_=[f.hb]))return 2;i=x[0],o=_[0]}}b.width=i,b.height=o;e:{var P=b.width,B=b.height;if(i=b.S,0>=P||0>=B||!(i>=ws&&13>i))i=2;else{if(0>=b.Rd&&b.sd==null){N=_=x=o=0;var Y=(S=P*ic[i])*B;if(11>i||(_=(B+1)/2*(o=(P+1)/2),i==12&&(N=(x=P)*B)),(B=s(Y+2*_+N))==null){i=1;break e}b.sd=B,11>i?((P=b.f.RGBA).eb=B,P.fb=0,P.A=S,P.size=Y):((P=b.f.kb).y=B,P.O=0,P.fa=S,P.Fd=Y,P.f=B,P.N=0+Y,P.Ab=o,P.Cd=_,P.ea=B,P.W=0+Y+_,P.Db=o,P.Ed=_,i==12&&(P.F=B,P.J=0+Y+2*_),P.Tc=N,P.lb=x)}if(o=1,x=b.S,_=b.width,N=b.height,x>=ws&&13>x)if(11>x)i=b.f.RGBA,o&=(S=Math.abs(i.A))*(N-1)+_<=i.size,o&=S>=_*ic[x],o&=i.eb!=null;else{i=b.f.kb,S=(_+1)/2,Y=(N+1)/2,P=Math.abs(i.fa),B=Math.abs(i.Ab);var ne=Math.abs(i.Db),T=Math.abs(i.lb),K=T*(N-1)+_;o&=P*(N-1)+_<=i.Fd,o&=B*(Y-1)+S<=i.Cd,o=(o&=ne*(Y-1)+S<=i.Ed)&P>=_&B>=S&ne>=S,o&=i.y!=null,o&=i.f!=null,o&=i.ea!=null,x==12&&(o&=T>=_,o&=K<=i.Tc,o&=i.F!=null)}else o=0;i=o?0:2}}return i!=0||f!=null&&f.fd&&(i=wi(b)),i}var Zi=64,_i=[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],Ra=24,Sn=32,Pn=8,Qi=[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];Fe("Predictor0","PredictorAdd0"),U.Predictor0=function(){return 4278190080},U.Predictor1=function(i){return i},U.Predictor2=function(i,o,f){return o[f+0]},U.Predictor3=function(i,o,f){return o[f+1]},U.Predictor4=function(i,o,f){return o[f-1]},U.Predictor5=function(i,o,f){return Ue(Ue(i,o[f+1]),o[f+0])},U.Predictor6=function(i,o,f){return Ue(i,o[f-1])},U.Predictor7=function(i,o,f){return Ue(i,o[f+0])},U.Predictor8=function(i,o,f){return Ue(o[f-1],o[f+0])},U.Predictor9=function(i,o,f){return Ue(o[f+0],o[f+1])},U.Predictor10=function(i,o,f){return Ue(Ue(i,o[f-1]),Ue(o[f+0],o[f+1]))},U.Predictor11=function(i,o,f){var b=o[f+0];return 0>=et(b>>24&255,i>>24&255,(o=o[f-1])>>24&255)+et(b>>16&255,i>>16&255,o>>16&255)+et(b>>8&255,i>>8&255,o>>8&255)+et(255&b,255&i,255&o)?b:i},U.Predictor12=function(i,o,f){var b=o[f+0];return(xt((i>>24&255)+(b>>24&255)-((o=o[f-1])>>24&255))<<24|xt((i>>16&255)+(b>>16&255)-(o>>16&255))<<16|xt((i>>8&255)+(b>>8&255)-(o>>8&255))<<8|xt((255&i)+(255&b)-(255&o)))>>>0},U.Predictor13=function(i,o,f){var b=o[f-1];
vendor: 5,863 bytes, line 124
124return(ht((i=Ue(i,o[f+0]))>>24&255,b>>24&255)<<24|ht(i>>16&255,b>>16&255)<<16|ht(i>>8&255,b>>8&255)<<8|ht(255&i,255&b))>>>0};var $r=U.PredictorAdd0;U.PredictorAdd1=dt,Fe("Predictor2","PredictorAdd2"),Fe("Predictor3","PredictorAdd3"),Fe("Predictor4","PredictorAdd4"),Fe("Predictor5","PredictorAdd5"),Fe("Predictor6","PredictorAdd6"),Fe("Predictor7","PredictorAdd7"),Fe("Predictor8","PredictorAdd8"),Fe("Predictor9","PredictorAdd9"),Fe("Predictor10","PredictorAdd10"),Fe("Predictor11","PredictorAdd11"),Fe("Predictor12","PredictorAdd12"),Fe("Predictor13","PredictorAdd13");var Jr=U.PredictorAdd2;Me("ColorIndexInverseTransform","MapARGB","32b",function(i){return i>>8&255},function(i){return i}),Me("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(i){return i},function(i){return i>>8&255});var ea,Ni=U.ColorIndexInverseTransform,tn=U.MapARGB,jo=U.VP8LColorIndexInverseTransformAlpha,gr=U.MapAlpha,er=U.VP8LPredictorsAdd=[];er.length=16,(U.VP8LPredictors=[]).length=16,(U.VP8LPredictorsAdd_C=[]).length=16,(U.VP8LPredictors_C=[]).length=16;var Ai,Ba,Ta,ta,Si,Li,Kr,Er,Xr,na,vn,br,Ft,Ct,Yt,nn,Ir,Da,ra,xs,Rl,Bl,Tl,Dl,Ma,Ml,ql,Ul,zl=s(511),Gl=s(2041),Wl=s(225),Hl=s(767),Vl=0,ko=Gl,ys=Wl,On=Hl,$n=zl,ws=0,_s=1,Yl=2,Ns=3,As=4,Po=5,$l=6,Fo=7,Co=8,Ss=9,Eo=10,Fh=[2,3,7],Ch=[3,3,11],Jl=[280,256,256,256,40],Eh=[0,1,1,1,0],Ih=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],Oh=[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],Rh=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],Bh=8,Io=[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],Oo=[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],qa=null,Th=[[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]],Dh=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Kl=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],Mh=[[[[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,25
1245,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]]]],qh=[[[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,
1241,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]]],Uh=[[[[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,25
vendor: 11,399 bytes, line 124
1245,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]]]],zh=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Zr=[],tr=[],Or=[],Gh=1,Xl=2,Qr=[],Jn=[];gn("UpsampleRgbLinePair",vi,3),gn("UpsampleBgrLinePair",Ji,3),gn("UpsampleRgbaLinePair",Ia,4),gn("UpsampleBgraLinePair",yi,4),gn("UpsampleArgbLinePair",xi,4),gn("UpsampleRgba4444LinePair",bn,2),gn("UpsampleRgb565LinePair",Ki,2);var Wh=U.UpsampleRgbLinePair,Hh=U.UpsampleBgrLinePair,Zl=U.UpsampleRgbaLinePair,Ql=U.UpsampleBgraLinePair,ec=U.UpsampleArgbLinePair,tc=U.UpsampleRgba4444LinePair,Vh=U.UpsampleRgb565LinePair,Ls=16,js=1<<Ls-1,Ua=-227,Ro=482,Yh=6,nc=0,$h=s(256),Jh=s(256),Kh=s(256),Xh=s(256),Zh=s(Ro-Ua),Qh=s(Ro-Ua);mr("YuvToRgbRow",vi,3),mr("YuvToBgrRow",Ji,3),mr("YuvToRgbaRow",Ia,4),mr("YuvToBgraRow",yi,4),mr("YuvToArgbRow",xi,4),mr("YuvToRgba4444Row",bn,2),mr("YuvToRgb565Row",Ki,2);var rc=[0,4,8,12,128,132,136,140,256,260,264,268,384,388,392,396],ks=[0,2,8],ef=[8,7,6,4,4,2,2,2,1,1,1,1],tf=1;this.WebPDecodeRGBA=function(i,o,f,b,x){var _=_s,N=new H,S=new ut;N.ba=S,S.S=_,S.width=[S.width],S.height=[S.height];var P=S.width,B=S.height,Y=new Ve;if(Y==null||i==null)var ne=2;else t(Y!=null),ne=vs(i,o,f,Y.width,Y.height,Y.Pd,Y.Qd,Y.format,null);if(ne!=0?P=0:(P!=null&&(P[0]=Y.width[0]),B!=null&&(B[0]=Y.height[0]),P=1),P){S.width=S.width[0],S.height=S.height[0],b!=null&&(b[0]=S.width),x!=null&&(x[0]=S.height);e:{if(b=new qi,(x=new X).data=i,x.w=o,x.ha=f,x.kd=1,o=[0],t(x!=null),((i=vs(x.data,x.w,x.ha,null,null,null,o,null,x))==0||i==7)&&o[0]&&(i=4),(o=i)==0){if(t(N!=null),b.data=x.data,b.w=x.w+x.offset,b.ha=x.ha-x.offset,b.put=Ye,b.ac=lr,b.bc=Ar,b.ma=N,x.xa){if((i=hi())==null){N=1;break e}if((function(T,K){var Z=[0],fe=[0],te=[0];t:for(;;){if(T==null)return 0;if(K==null)return T.a=2,0;if(T.l=K,T.a=0,de(T.m,K.data,K.w,K.ha),!Sr(T.m,Z,fe,te)){T.a=3;break t}if(T.xb=Xl,K.width=Z[0],K.height=fe[0],!ur(Z[0],fe[0],1,T,null))break t;return 1}return t(T.a!=0),0})(i,b)){if(b=(o=Oa(b.width,b.height,N.Oa,N.ba))==0){t:{b=i;n:for(;;){if(b==null){b=0;break t}if(t(b.s.yc!=null),t(b.s.Ya!=null),t(0<b.s.Wb),t((f=b.l)!=null),t((x=f.ma)!=null),b.xb!=0){if(b.ca=x.ba,b.tb=x.tb,t(b.ca!=null),!Yn(x.Oa,f,Ns)){b.a=2;break n}if(!fi(b,f.width)||f.da)break n;if((f.da||$e(b.ca.S))&&Ut(),11>b.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),b.ca.f.kb.F!=null&&Ut()),b.Pb&&0<b.s.ua&&b.s.vb.X==null&&!E(b.s.vb,b.s.Wa.Xa)){b.a=1;break n}b.xb=0}if(!Qn(b,b.V,b.Ba,b.c,b.i,f.o,Gr))break n;x.Dc=b.Ma,b=1;break t}t(b.a!=0),b=0}b=!b}b&&(o=i.a)}else o=i.a}else{if((i=new co)==null){N=1;break e}if(i.Fa=x.na,i.P=x.P,i.qc=x.Sa,fr(i,b)){if((o=Oa(b.width,b.height,N.Oa,N.ba))==0){if(i.Aa=0,f=N.Oa,t((x=i)!=null),f!=null){if(0<(P=0>(P=f.Md)?0:100<P?255:255*P/100)){for(B=Y=0;4>B;++B)12>(ne=x.pb[B]).lc&&(ne.ia=P*ef[0>ne.lc?0:ne.lc]>>3),Y|=ne.ia;Y&&(alert("todo:VP8InitRandom"),x.ia=1)}x.Ga=f.Id,100<x.Ga?x.Ga=100:0>x.Ga&&(x.Ga=0)}(function(T,K){if(T==null)return 0;if(K==null)return Qt(T,2,"NULL VP8Io parameter in VP8Decode().");if(!T.cb&&!fr(T,K))return 0;if(t(T.cb),K.ac==null||K.ac(K)){K.ob&&(T.L=0);var Z=ks[T.L];if(T.L==2?(T.yb=0,T.zb=0):(T.yb=K.v-Z>>4,T.zb=K.j-Z>>4,0>T.yb&&(T.yb=0),0>T.zb&&(T.zb=0)),T.Va=K.o+15+Z>>4,T.Hb=K.va+15+Z>>4,T.Hb>T.za&&(T.Hb=T.za),T.Va>T.Ub&&(T.Va=T.Ub),0<T.L){var fe=T.ed;for(Z=0;4>Z;++Z){var te;if(T.Qa.Cb){var pe=T.Qa.Lb[Z];T.Qa.Fb||(pe+=fe.Tb)}else pe=fe.Tb;for(te=0;1>=te;++te){var me=T.gd[Z][te],_e=pe;if(fe.Pc&&(_e+=fe.vd[0],te&&(_e+=fe.od[0])),0<(_e=0>_e?0:63<_e?63:_e)){var ye=_e;0<fe.wb&&(ye=4<fe.wb?ye>>2:ye>>1)>9-fe.wb&&(ye=9-fe.wb),1>ye&&(ye=1),me.dd=ye,me.tc=2*_e+ye,me.ld=40<=_e?2:15<=_e?1:0}else me.tc=0;me.La=te}}}Z=0}else Qt(T,6,"Frame setup failed"),Z=T.a;if(Z=Z==0){if(Z){T.$c=0,0<T.Aa||(T.Ic=tf);t:{Z=T.Ic,fe=4*(ye=T.za);var Te=32*ye,Pe=ye+1,at=0<T.L?ye*(0<T.Aa?2:1):0,Oe=(T.Aa==2?2:1)*ye;if((me=fe+832+(te=3*(16*Z+ks[T.L])/2*Te)+(pe=T.Fa!=null&&0<T.Fa.length?T.Kc.c*T.Kc.i:0))!=me)Z=0;else{if(me>T.Vb){if(T.Vb=0,T.Ec=s(me),T.Fc=0,T.Ec==null){Z=Qt(T,1,"no memory during frame initialization.");break t}T.Vb=me}me=T.Ec,_e=T.Fc,T.Ac=me,T.Bc=_e,_e+=fe,T.Gd=h(Te,ss),T.Hd=0,T.rb=h(Pe+1,Na),T.sb=1,T.wa=at?h(at,Vn):null,T.Y=0,T.D.Nb=0,T.D.wa=T.wa,T.D.Y=T.Y,0<T.Aa&&(T.D.Y+=ye),t(!0),T.oc=me,T.pc=_e,_e+=832,T.ya=h(Oe,Aa),T.aa=0,T.D.ya=T.ya,T.D.aa=T.aa,T.Aa==2&&(T.D.aa+=ye),T.R=16*ye,T.B=8*ye,ye=(Te=ks[T.L])*T.R,Te=Te/2*T.B,T.sa=me,T.ta=_e+ye,T.qa=T.sa,T.ra=T.ta+16*Z*T.R+Te,T.Ha=T.qa,T.Ia=T.ra+8*Z*T.B+Te,T.$c=0,_e+=te,T.mb=pe?me:null,T.nb=pe?_e:null,t(_e+pe<=T.Fc+T.Vb),Sa(T),a(T.Ac,T.Bc,0,fe),Z=1}}if(Z){if(K.ka=0,K.y=T.sa,K.O=T.ta,K.f=T.qa,K.N=T.ra,K.ea=T.Ha,K.Vd=T.Ia,K.fa=T.R,K.Rc=T.B,K.F=null,K.J=0,!Vl){for(Z=-255;255>=Z;++Z)zl[255+Z]=0>Z?-Z:Z;for(Z=-1020;1020>=Z;++Z)Gl[1020+Z]=-128>Z?-128:127<Z?127:Z;for(Z=-112;112>=Z;++Z)Wl[112+Z]=-16>Z?-16:15<Z?15:Z;for(Z=-255;510>=Z;++Z)Hl[255+Z]=0>Z?0:255<Z?255:Z;Vl=1}Kr=us,Er=uo,na=ho,vn=fo,br=dr,Xr=cs,Ft=ds,Ct=ps,Yt=gs,nn=u,Ir=ms,Da=mi,ra=v,xs=I,Rl=Yi,Bl=Ca,Tl=$i,Dl=fs,tr[0]=yo,tr[1]=Wi,tr[2]=vo,tr[3]=xo,tr[4]=wo,tr[5]=jr,tr[6]=_o,tr[7]=kr,tr[8]=Ao,tr[9]=No,Zr[0]=hs,Zr[1]=po,Zr[2]=mo,Zr[3]=go,Zr[4]=Hr,Zr[5]=bo,Zr[6]=di,Or[0]=So,Or[1]=La,Or[2]=Hi,Or[3]=ja,Or[4]=Lo,Or[5]=Vi,Or[6]=ka,Z=1}else Z=0}Z&&(Z=(function(pt,rn){for(pt.M=0;pt.M<pt.Va;++pt.M){var st,Re=pt.Jc[pt.M&pt.Xb],Se=pt.m,$t=pt;for(st=0;st<$t.za;++st){var rt=Se,gt=$t,Rt=gt.Ac,hn=gt.Bc+4*st,Ln=gt.zc,Gt=gt.ya[gt.aa+st];if(gt.Qa.Bb?Gt.$b=be(rt,gt.Pa.jb[0])?2+be(rt,gt.Pa.jb[2]):be(rt,gt.Pa.jb[1]):Gt.$b=0,gt.kc&&(Gt.Ad=be(rt,gt.Bd)),Gt.Za=!be(rt,145)+0,Gt.Za){var xn=Gt.Ob,jn=0;for(gt=0;4>gt;++gt){var an,vt=Ln[0+gt];for(an=0;4>an;++an){vt=qh[Rt[hn+an]][vt];for(var wt=Kl[be(rt,vt[0])];0<wt;)wt=Kl[2*wt+be(rt,vt[wt])];vt=-wt,Rt[hn+an]=vt}r(xn,jn,Rt,hn,4),jn+=4,Ln[0+gt]=vt}}else vt=be(rt,156)?be(rt,128)?1:3:be(rt,163)?2:0,Gt.Ob[0]=vt,a(Rt,hn,vt,4),a(Ln,0,vt,4);Gt.Dd=be(rt,142)?be(rt,114)?be(rt,183)?1:3:2:0}if($t.m.Ka)return Qt(pt,7,"Premature end-of-partition0 encountered.");for(;pt.ja<pt.za;++pt.ja){if($t=Re,rt=(Se=pt).rb[Se.sb-1],Rt=Se.rb[Se.sb+Se.ja],st=Se.ya[Se.aa+Se.ja],hn=Se.kc?st.Ad:0)rt.la=Rt.la=0,st.Za||(rt.Na=Rt.Na=0),st.Hc=0,st.Gc=0,st.ia=0;else{var Wt,_t;if(rt=Rt,Rt=$t,hn=Se.Pa.Xc,Ln=Se.ya[Se.aa+Se.ja],Gt=Se.pb[Ln.$b],gt=Ln.ad,xn=0,jn=Se.rb[Se.sb-1],vt=an=0,a(gt,xn,0,384),Ln.Za)var fn=0,nr=hn[3];else{wt=s(16);var Jt=rt.Na+jn.Na;if(Jt=qa(Rt,hn[1],Jt,Gt.Eb,0,wt,0),rt.Na=jn.Na=(0<Jt)+0,1<Jt)Kr(wt,0,gt,xn);else{var Fn=wt[0]+3>>3;for(wt=0;256>wt;wt+=16)gt[xn+wt]=Fn}fn=1,nr=hn[0]}var jt=15&rt.la,sn=15&jn.la;for(wt=0;4>wt;++wt){var Rn=1&sn;for(Fn=_t=0;4>Fn;++Fn)jt=jt>>1|(Rn=(Jt=qa(Rt,nr,Jt=Rn+(1&jt),Gt.Sc,fn,gt,xn))>fn)<<7,_t=_t<<2|(3<Jt?3:1<Jt?2:gt[xn+0]!=0),xn+=16;jt>>=4,sn=sn>>1|Rn<<7,an=(an<<8|_t)>>>0}for(nr=jt,fn=sn>>4,Wt=0;4>Wt;Wt+=2){for(_t=0,jt=rt.la>>4+Wt,sn=jn.la>>4+Wt,wt=0;2>wt;++wt){for(Rn=1&sn,Fn=0;2>Fn;++Fn)Jt=Rn+(1&jt),jt=jt>>1|(Rn=0<(Jt=qa(Rt,hn[2],Jt,Gt.Qc,0,gt,xn)))<<3,_t=_t<<2|(3<Jt?3:1<Jt?2:gt[xn+0]!=0),xn+=16;jt>>=2,sn=sn>>1|Rn<<5}vt|=_t<<4*Wt,nr|=jt<<4<<Wt,fn|=(240&sn)<<Wt}rt.la=nr,jn.la=fn,Ln.Hc=an,Ln.Gc=vt,Ln.ia=43690&vt?0:Gt.ia,hn=!(an|vt)}if(0<Se.L&&(Se.wa[Se.Y+Se.ja]=Se.gd[st.$b][st.Za],Se.wa[Se.Y+Se.ja].La|=!hn),$t.Ka)return Qt(pt,7,"Premature end-of-file encountered.")}if(Sa(pt),Se=rn,$t=1,st=(Re=pt).D,rt=0<Re.L&&Re.M>=Re.zb&&Re.M<=Re.Va,Re.Aa==0)t:{if(st.M=Re.M,st.uc=rt,Xi(Re,st),$t=1,st=(_t=Re.D).Nb,rt=(vt=ks[Re.L])*Re.R,Rt=vt/2*Re.B,wt=16*st*Re.R,Fn=8*st*Re.B,hn=Re.sa,Ln=Re.ta-rt+wt,Gt=Re.qa,gt=Re.ra-Rt+Fn,xn=Re.Ha,jn=Re.Ia-Rt+Fn,sn=(jt=_t.M)==0,an=jt>=Re.Va-1,Re.Aa==2&&Xi(Re,_t),_t.uc)for(Rn=(Jt=Re).D.M,t(Jt.D.uc),_t=Jt.yb;_t<Jt.Hb;++_t){fn=_t,nr=Rn;var kn=(Bn=(dn=Jt).D).Nb;Wt=dn.R;var Bn=Bn.wa[Bn.Y+fn],Tn=dn.sa,Cn=dn.ta+16*kn*Wt+16*fn,Dn=Bn.dd,Et=Bn.tc;if(Et!=0)if(t(3<=Et),dn.L==1)0<fn&&Bl(Tn,Cn,Wt,Et+4),Bn.La&&Dl(Tn,Cn,Wt,Et),0<nr&&Rl(Tn,Cn,Wt,Et+4),Bn.La&&Tl(Tn,Cn,Wt,Et);else{var Mn=dn.B,rr=dn.qa,ji=dn.ra+8*kn*Mn+8*fn,Rr=dn.Ha,dn=dn.Ia+8*kn*Mn+8*fn;kn=Bn.ld,0<fn&&(Ct(Tn,Cn,Wt,Et+4,Dn,kn),nn(rr,ji,Rr,dn,Mn,Et+4,Dn,kn)),Bn.La&&(Da(Tn,Cn,Wt,Et,Dn,kn),xs(rr,ji,Rr,dn,Mn,Et,Dn,kn)),0<nr&&(Ft(Tn,Cn,Wt,Et+4,Dn,kn),Yt(rr,ji,Rr,dn,Mn,Et+4,Dn,kn)),Bn.La&&(Ir(Tn,Cn,Wt,Et,Dn,kn),ra(rr,ji,Rr,dn,Mn,Et,Dn,kn))}}if(Re.ia&&alert("todo:DitherRow"),Se.put!=null){if(_t=16*jt,jt=16*(jt+1),sn?(Se.y=Re.sa,Se.O=Re.ta+wt,Se.f=Re.qa,Se.N=Re.ra+Fn,Se.ea=Re.Ha,Se.W=Re.Ia+Fn):(_t-=vt,Se.y=hn,Se.O=Ln,Se.f=Gt,Se.N=gt,Se.ea=xn,Se.W=jn),an||(jt-=vt),jt>Se.o&&(jt=Se.o),Se.F=null,Se.J=null,Re.Fa!=null&&0<Re.Fa.length&&_t<jt&&(Se.J=en(Re,Se,_t,jt-_t),Se.F=Re.mb,Se.F==null&&Se.F.length==0)){$t=Qt(Re,3,"Could not decode alpha data.");break t}_t<Se.j&&(vt=Se.j-_t,_t=Se.j,t(!(1&vt)),Se.O+=Re.R*vt,Se.N+=Re.B*(vt>>1),Se.W+=Re.B*(vt>>1),Se.F!=null&&(Se.J+=Se.width*vt)),_t<jt&&(Se.O+=Se.v,Se.N+=Se.v>>1,Se.W+=Se.v>>1,Se.F!=null&&(Se.J+=Se.v),Se.ka=_t-Se.j,Se.U=Se.va-Se.v,Se.T=jt-_t,$t=Se.put(Se))}st+1!=Re.Ic||an||(r(Re.sa,Re.ta-rt,hn,Ln+16*Re.R,rt),r(Re.qa,Re.ra-Rt,Gt,gt+8*Re.B,Rt),r(Re.Ha,Re.Ia-Rt,xn,jn+8*Re.B,Rt))}if(!$t)return Qt(pt,6,"Output aborted.")}return 1})(T,K)),K.bc!=null&&K.bc(K),Z&=1}return Z?(T.cb=0,Z):0})(i,b)||(o=i.a)}}else o=i.a}o==0&&N.Oa!=null&&N.Oa.fd&&(o=wi(N.ba))}N=o}_=N!=0?null:11>_?S.f.RGBA.eb:S.f.kb.y}else _=null;return _};var ic=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(U,Q){for(var L="",O=0;O<4;O++)L+=String.fromCharCode(U[Q++]);return L}function g(U,Q){return U[Q+0]|U[Q+1]<<8}function w(U,Q){return(U[Q+0]|U[Q+1]<<8|U[Q+2]<<16)>>>0}function k(U,Q){return(U[Q+0]|U[Q+1]<<8|U[Q+2]<<16|U[Q+3]<<24)>>>0}new c;var m=[0],F=[0],j=[],C=new c,y=n,z=(function(U,Q){var L={},O=0,V=!1,W=0,ie=0;if(L.frames=[],!(function(A,R){for(var M=0;M<4;M++)if(A[R+M]!="RIFF".charCodeAt(M))return!0;return!1})(U,Q)){for(k(U,Q+=4),Q+=8;Q<U.length;){var oe=d(U,Q),ce=k(U,Q+=4);Q+=4;var re=ce+(1&ce);switch(oe){case"VP8 ":case"VP8L":L.frames[O]===void 0&&(L.frames[O]={}),(xe=L.frames[O]).src_off=V?ie:Q-8,xe.src_size=W+ce+8,O++,V&&(V=!1,W=0,ie=0);break;case"VP8X":(xe=L.header={}).feature_flags=U[Q];var de=Q+4;xe.canvas_width=1+w(U,de),de+=3,xe.canvas_height=1+w(U,de),de+=3;break;case"ALPH":V=!0,W=re+8,ie=Q-8;break;case"ANIM":(xe=L.header).bgcolor=k(U,Q),de=Q+4,xe.loop_count=g(U,de),de+=2;break;case"ANMF":var Ae,xe;(xe=L.frames[O]={}).offset_x=2*w(U,Q),Q+=3,xe.offset_y=2*w(U,Q),Q+=3,xe.width=1+w(U,Q),Q+=3,xe.height=1+w(U,Q),Q+=3,xe.duration=w(U,Q),Q+=3,Ae=U[Q++],xe.dispose=1&Ae,xe.blend=Ae>>1&1}oe!="ANMF"&&(Q+=re)}return L}})(y,0);z.response=y,z.rgbaoutput=!0,z.dataurl=!1;var D=z.header?z.header:null,q=z.frames?z.frames:null;if(D){D.loop_counter=D.loop_count,m=[D.canvas_height],F=[D.canvas_width];for(var ae=0;ae<q.length&&q[ae].blend!=0;ae++);}var ge=q[0],se=C.WebPDecodeRGBA(y,ge.src_off,ge.src_size,F,m);ge.rgba=se,ge.imgwidth=F[0],ge.imgheight=m[0];for(var J=0;
vendor: 4,955 bytes, lines 124-148
124J<F[0]*m[0]*4;J++)j[J]=se[J];return this.width=F,this.height=m,this.data=j,this}/** ====================================================================
125 * @license
126 * jsPDF XMP metadata plugin
127 * Copyright (c) 2016 Jussi Utunen, [email protected]
128 *
129 * Permission is hereby granted, free of charge, to any person obtaining
130 * a copy of this software and associated documentation files (the
131 * "Software"), to deal in the Software without restriction, including
132 * without limitation the rights to use, copy, modify, merge, publish,
133 * distribute, sublicense, and/or sell copies of the Software, and to
134 * permit persons to whom the Software is furnished to do so, subject to
135 * the following conditions:
136 *
137 * The above copyright notice and this permission notice shall be
138 * included in all copies or substantial portions of the Software.
139 *
140 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
141 * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
142 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
143 * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
144 * LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
145 * OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
146 * WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
147 * ====================================================================
148 */function N2(){var n,t=this.internal.__metadata__.metadata,e=unescape(encodeURIComponent(t));n=this.internal.__metadata__.rawXml?e:'<x:xmpmeta xmlns:x="adobe:ns:meta/"><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>'+e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")+"</jspdf:metadata></rdf:Description></rdf:RDF></x:xmpmeta>",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+n.length+" >>"),this.internal.write("stream"),this.internal.write(n),this.internal.write("endstream"),this.internal.write("endobj")}function A2(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(n){var t,e,r,a,s,h,l,c,d,g=function(A){return A=A||{},this.isStrokeTransparent=A.isStrokeTransparent||!1,this.strokeOpacity=A.strokeOpacity||1,this.strokeStyle=A.strokeStyle||"#000000",this.fillStyle=A.fillStyle||"#000000",this.isFillTransparent=A.isFillTransparent||!1,this.fillOpacity=A.fillOpacity||1,this.font=A.font||"10px sans-serif",this.textBaseline=A.textBaseline||"alphabetic",this.textAlign=A.textAlign||"left",this.lineWidth=A.lineWidth||1,this.lineJoin=A.lineJoin||"miter",this.lineCap=A.lineCap||"butt",this.path=A.path||[],this.transform=A.transform!==void 0?A.transform.clone():new c,this.globalCompositeOperation=A.globalCompositeOperation||"normal",this.globalAlpha=A.globalAlpha||1,this.clip_path=A.clip_path||[],this.currentPoint=A.currentPoint||new h,this.miterLimit=A.miterLimit||10,this.lastPoint=A.lastPoint||new h,this.lineDashOffset=A.lineDashOffset||0,this.lineDash=A.lineDash||[],this.margin=A.margin||[0,0,0,0],this.prevPageLastElemOffset=A.prevPageLastElemOffset||0,this.ignoreClearRect=typeof A.ignoreClearRect!="boolean"||A.ignoreClearRect,this};n.events.push(["initialized",function(){this.context2d=new w(this),t=this.internal.f2,e=this.internal.getCoordinateString,r=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,s=this.internal.getVerticalCoordinate,h=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,d=new g}]);var w=function(A){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=A;Object.defineProperty(this,"pdf",{get:function(){return R}});var M=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return M},set:function(E){M=!!E}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(E){G=!!E}});var $=0;Object.defineProperty(this,"posX",{get:function(){return $},set:function(E){isNaN(E)||($=E)}});var ee=0;Object.defineProperty(this,"posY",{get:function(){return ee},set:function(E){isNaN(E)||(ee=E)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(E){var Le;typeof E=="number"?Le=[E,E,E,E]:((Le=new Array(4))[0]=E[0],Le[1]=E.length>=2?E[1]:Le[0],Le[2]=E.length>=3?E[2]:Le[0],Le[3]=E.length>=4?E[3]:Le[1]),d.margin=Le}});var le=!1;Object.defineProperty(this,"autoPaging",{get:function(){return le},set:function(E){le=E}});var ue=0;Object.defineProperty(this,"lastBreak",{get:function(){return ue},set:function(E){ue=E}});var be=[];Object.defineProperty(this,"pageBreaks",{get:function(){return be},set:function(E){be=E}}),Object.defineProperty(this,"ctx",{get:function(){return d}
vendor: 10,353 bytes, line 148
148,set:function(E){E instanceof g&&(d=E)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(E){d.path=E}});var Ne=[];Object.defineProperty(this,"ctxStack",{get:function(){return Ne},set:function(E){Ne=E}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(E){var Le;Le=k(E),this.ctx.fillStyle=Le.style,this.ctx.isFillTransparent=Le.a===0,this.ctx.fillOpacity=Le.a,this.pdf.setFillColor(Le.r,Le.g,Le.b,{a:Le.a}),this.pdf.setTextColor(Le.r,Le.g,Le.b,{a:Le.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(E){var Le=k(E);this.ctx.strokeStyle=Le.style,this.ctx.isStrokeTransparent=Le.a===0,this.ctx.strokeOpacity=Le.a,Le.a===0?this.pdf.setDrawColor(255,255,255):(Le.a,this.pdf.setDrawColor(Le.r,Le.g,Le.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(E){["butt","round","square"].indexOf(E)!==-1&&(this.ctx.lineCap=E,this.pdf.setLineCap(E))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(E){isNaN(E)||(this.ctx.lineWidth=E,this.pdf.setLineWidth(E))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(E){["bevel","round","miter"].indexOf(E)!==-1&&(this.ctx.lineJoin=E,this.pdf.setLineJoin(E))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(E){isNaN(E)||(this.ctx.miterLimit=E,this.pdf.setMiterLimit(E))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(E){this.ctx.textBaseline=E}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(E){["right","end","center","left","start"].indexOf(E)!==-1&&(this.ctx.textAlign=E)}});var ke=null,je=null,qe=null;Object.defineProperty(this,"fontFaces",{get:function(){return qe},set:function(E){ke=null,je=null,qe=E}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(E){var Le;if(this.ctx.font=E,(Le=/^\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-z0-9]+?)\s*$/i.exec(E))!==null){var ot=Le[1];Le[2];var We=Le[3],we=Le[4];Le[5];var He=Le[6],Fe=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(we)[2];we=Math.floor(Fe==="px"?parseFloat(we)*this.pdf.internal.scaleFactor:Fe==="em"?parseFloat(we)*this.pdf.getFontSize():parseFloat(we)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(we);var Ge=(function(Me){var Vt,bt,lt=[],ct=Me.trim();if(ct==="")return fl;if(ct in xu)return[xu[ct]];for(;ct!=="";){switch(bt=null,Vt=(ct=wu(ct)).charAt(0)){case'"':case"'":bt=b2(ct.substring(1),Vt);break;default:bt=v2(ct)}if(bt===null||(lt.push(bt[0]),(ct=wu(bt[1]))!==""&&ct.charAt(0)!==","))return fl;ct=ct.replace(/^,/,"")}return lt})(He);if(this.fontFaces){var Ue=(function(Me,Vt){var bt=Me.getFontList(),lt=JSON.stringify(bt);if(ke===null||je!==lt){var ct=(function(Tt){var ze=[];return Object.keys(Tt).forEach(function(Pt){Tt[Pt].forEach(function($e){var tt=null;switch($e){case"bold":tt={family:Pt,weight:"bold"};break;case"italic":tt={family:Pt,style:"italic"};break;case"bolditalic":tt={family:Pt,weight:"bold",style:"italic"};break;case"":case"normal":tt={family:Pt}}tt!==null&&(tt.ref={name:Pt,style:$e},ze.push(tt))})}),ze})(bt);ke=(function(Tt){for(var ze={},Pt=0;Pt<Tt.length;++Pt){var $e=hl(Tt[Pt]),tt=$e.family,Dt=$e.stretch,ut=$e.style,Ve=$e.weight;ze[tt]=ze[tt]||{},ze[tt][Dt]=ze[tt][Dt]||{},ze[tt][Dt][ut]=ze[tt][Dt][ut]||{},ze[tt][Dt][ut][Ve]=$e}return ze})(ct.concat(Vt)),je=lt}return ke})(this.pdf,this.fontFaces),xt=Ge.map(function(Me){return{family:Me,stretch:"normal",weight:We,style:ot}}),ht=(function(Me,Vt,bt){for(var lt=(bt=bt||{}).defaultFontFamily||"times",ct=Object.assign({},g2,bt.genericFontFamilies||{}),Tt=null,ze=null,Pt=0;Pt<Vt.length;++Pt)if(ct[(Tt=hl(Vt[Pt])).family]&&(Tt.family=ct[Tt.family]),Me.hasOwnProperty(Tt.family)){ze=Me[Tt.family];break}if(!(ze=ze||Me[lt]))throw new Error("Could not find a font-family for the rule '"+yu(Tt)+"' and default family '"+lt+"'.");if(ze=(function($e,tt){if(tt[$e])return tt[$e];var Dt=jl[$e],ut=Dt<=jl.normal?-1:1,Ve=vu(tt,Sh,Dt,ut);if(!Ve)throw new Error("Could not find a matching font-stretch value for "+$e);return Ve})(Tt.stretch,ze),ze=(function($e,tt){if(tt[$e])return tt[$e];for(var Dt=Ah[$e],ut=0;ut<Dt.length;++ut)if(tt[Dt[ut]])return tt[Dt[ut]];throw new Error("Could not find a matching font-style for "+$e)})(Tt.style,ze),!(ze=(function($e,tt){if(tt[$e])return tt[$e];if($e===400&&tt[500])return tt[500];if($e===500&&tt[400])return tt[400];var Dt=m2[$e],ut=vu(tt,Lh,Dt,$e<400?-1:1);if(!ut)throw new Error("Could not find a matching font-weight for value "+$e);return ut})(Tt.weight,ze)))throw new Error("Failed to resolve a font for the rule '"+yu(Tt)+"'.");return ze})(Ue,xt);this.pdf.setFont(ht.ref.name,ht.ref.style)}else{var et="";(We==="bold"||parseInt(We,10)>=700||ot==="bold")&&(et="bold"),ot==="italic"&&(et+="italic"),et.length===0&&(et="normal");for(var dt="",ft={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"},Be=0;Be<Ge.length;Be++){if(this.pdf.internal.getFont(Ge[Be],et,{noFallback:!0,disableWarning:!0})!==void 0){dt=Ge[Be];break}if(et==="bolditalic"&&this.pdf.internal.getFont(Ge[Be],"bold",{noFallback:!0,disableWarning:!0})!==void 0)dt=Ge[Be],et="bold";else if(this.pdf.internal.getFont(Ge[Be],"normal",{noFallback:!0,disableWarning:!0})!==void 0){dt=Ge[Be],et="normal";break}}if(dt===""){for(var it=0;it<Ge.length;it++)if(ft[Ge[it]]){dt=ft[Ge[it]];break}}dt=dt===""?"Times":dt,this.pdf.setFont(dt,et)}}}}),Object.defineProperty(this,"globalCompositeOperation",{get:function(){return this.ctx.globalCompositeOperation},set:function(E){this.ctx.globalCompositeOperation=E}}),Object.defineProperty(this,"globalAlpha",{get:function(){return this.ctx.globalAlpha},set:function(E){this.ctx.globalAlpha=E}}),Object.defineProperty(this,"lineDashOffset",{get:function(){return this.ctx.lineDashOffset},set:function(E){this.ctx.lineDashOffset=E,xe.call(this)}}),Object.defineProperty(this,"lineDash",{get:function(){return this.ctx.lineDash},set:function(E){this.ctx.lineDash=E,xe.call(this)}}),Object.defineProperty(this,"ignoreClearRect",{get:function(){return this.ctx.ignoreClearRect},set:function(E){this.ctx.ignoreClearRect=!!E}})};w.prototype.setLineDash=function(A){this.lineDash=A},w.prototype.getLineDash=function(){return this.lineDash.length%2?this.lineDash.concat(this.lineDash):this.lineDash.slice()},w.prototype.fill=function(){q.call(this,"fill",!1)},w.prototype.stroke=function(){q.call(this,"stroke",!1)},w.prototype.beginPath=function(){this.path=[{type:"begin"}]},w.prototype.moveTo=function(A,R){if(isNaN(A)||isNaN(R))throw kt.error("jsPDF.context2d.moveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.moveTo");var M=this.ctx.transform.applyToPoint(new h(A,R));this.path.push({type:"mt",x:M.x,y:M.y}),this.ctx.lastPoint=new h(A,R)},w.prototype.closePath=function(){var A=new h(0,0),R=0;for(R=this.path.length-1;R!==-1;R--)if(this.path[R].type==="begin"&&At(this.path[R+1])==="object"&&typeof this.path[R+1].x=="number"){A=new h(this.path[R+1].x,this.path[R+1].y);break}this.path.push({type:"close"}),this.ctx.lastPoint=new h(A.x,A.y)},w.prototype.lineTo=function(A,R){if(isNaN(A)||isNaN(R))throw kt.error("jsPDF.context2d.lineTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.lineTo");var M=this.ctx.transform.applyToPoint(new h(A,R));this.path.push({type:"lt",x:M.x,y:M.y}),this.ctx.lastPoint=new h(M.x,M.y)},w.prototype.clip=function(){this.ctx.clip_path=JSON.parse(JSON.stringify(this.path)),q.call(this,null,!0)},w.prototype.quadraticCurveTo=function(A,R,M,G){if(isNaN(M)||isNaN(G)||isNaN(A)||isNaN(R))throw kt.error("jsPDF.context2d.quadraticCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.quadraticCurveTo");var $=this.ctx.transform.applyToPoint(new h(M,G)),ee=this.ctx.transform.applyToPoint(new h(A,R));this.path.push({type:"qct",x1:ee.x,y1:ee.y,x:$.x,y:$.y}),this.ctx.lastPoint=new h($.x,$.y)},w.prototype.bezierCurveTo=function(A,R,M,G,$,ee){if(isNaN($)||isNaN(ee)||isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G))throw kt.error("jsPDF.context2d.bezierCurveTo: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.bezierCurveTo");var le=this.ctx.transform.applyToPoint(new h($,ee)),ue=this.ctx.transform.applyToPoint(new h(A,R)),be=this.ctx.transform.applyToPoint(new h(M,G));this.path.push({type:"bct",x1:ue.x,y1:ue.y,x2:be.x,y2:be.y,x:le.x,y:le.y}),this.ctx.lastPoint=new h(le.x,le.y)},w.prototype.arc=function(A,R,M,G,$,ee){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G)||isNaN($))throw kt.error("jsPDF.context2d.arc: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.arc");if(ee=!!ee,!this.ctx.transform.isIdentity){var le=this.ctx.transform.applyToPoint(new h(A,R));A=le.x,R=le.y;var ue=this.ctx.transform.applyToPoint(new h(0,M)),be=this.ctx.transform.applyToPoint(new h(0,0));M=Math.sqrt(Math.pow(ue.x-be.x,2)+Math.pow(ue.y-be.y,2))}Math.abs($-G)>=2*Math.PI&&(G=0,$=2*Math.PI),this.path.push({type:"arc",x:A,y:R,radius:M,startAngle:G,endAngle:$,counterclockwise:ee})},w.prototype.arcTo=function(A,R,M,G,$){throw new Error("arcTo not implemented.")},w.prototype.rect=function(A,R,M,G){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G))throw kt.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(A,R),this.lineTo(A+M,R),this.lineTo(A+M,R+G),this.lineTo(A,R+G),this.lineTo(A,R),this.lineTo(A+M,R),this.lineTo(A,R)},w.prototype.fillRect=function(A,R,M,G){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G))throw kt.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to 
148jsPDF.context2d.fillRect");if(!m.call(this)){var $={};this.lineCap!=="butt"&&($.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&($.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(A,R,M,G),this.fill(),$.hasOwnProperty("lineCap")&&(this.lineCap=$.lineCap),$.hasOwnProperty("lineJoin")&&(this.lineJoin=$.lineJoin)}},w.prototype.strokeRect=function(A,R,M,G){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G))throw kt.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");F.call(this)||(this.beginPath(),this.rect(A,R,M,G),this.stroke())},w.prototype.clearRect=function(A,R,M,G){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G))throw kt.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(A,R,M,G))},w.prototype.save=function(A){A=typeof A!="boolean"||A;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("q");if(this.pdf.setPage(R),A){this.ctx.fontSize=this.pdf.internal.getFontSize();var G=new g(this.ctx);this.ctxStack.push(this.ctx),this.ctx=G}},w.prototype.restore=function(A){A=typeof A!="boolean"||A;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,M=0;M<this.pdf.internal.getNumberOfPages();M++)this.pdf.setPage(M+1),this.pdf.internal.out("Q");this.pdf.setPage(R),A&&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)},w.prototype.toDataURL=function(){throw new Error("toDataUrl not implemented.")};var k=function(A){var R,M,G,$;if(A.isCanvasGradient===!0&&(A=A.getColor()),!A)return{r:0,g:0,b:0,a:0,style:A};if(/transparent|rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*0+\s*\)/.test(A))R=0,M=0,G=0,$=0;else{var ee=/rgb\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(A);if(ee!==null)R=parseInt(ee[1]),M=parseInt(ee[2]),G=parseInt(ee[3]),$=1;else if((ee=/rgba\s*\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*([\d.]+)\s*\)/.exec(A))!==null)R=parseInt(ee[1]),M=parseInt(ee[2]),G=parseInt(ee[3]),$=parseFloat(ee[4]);else{if($=1,typeof A=="string"&&A.charAt(0)!=="#"){var le=new bh(A);A=le.ok?le.toHex():"#000000"}A.length===4?(R=A.substring(1,2),R+=R,M=A.substring(2,3),M+=M,G=A.substring(3,4),G+=G):(R=A.substring(1,3),M=A.substring(3,5),G=A.substring(5,7)),R=parseInt(R,16),M=parseInt(M,16),G=parseInt(G,16)}}return{r:R,g:M,b:G,a:$,style:A}},m=function(){return this.ctx.isFillTransparent||this.globalAlpha==0},F=function(){return!!(this.ctx.isStrokeTransparent||this.globalAlpha==0)};w.prototype.fillText=function(A,R,M,G){if(isNaN(R)||isNaN(M)||typeof A!="string")throw kt.error("jsPDF.context2d.fillText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillText");if(G=isNaN(G)?void 0:G,!m.call(this)){var $=re(this.ctx.transform.rotation),ee=this.ctx.transform.scaleX;O.call(this,{text:A,x:R,y:M,scale:ee,angle:$,align:this.textAlign,maxWidth:G})}},w.prototype.strokeText=function(A,R,M,G){if(isNaN(R)||isNaN(M)||typeof A!="string")throw kt.error("jsPDF.context2d.strokeText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeText");if(!F.call(this)){G=isNaN(G)?void 0:G;var $=re(this.ctx.transform.rotation),ee=this.ctx.transform.scaleX;O.call(this,{text:A,x:R,y:M,scale:ee,renderingMode:"stroke",angle:$,align:this.textAlign,maxWidth:G})}},w.prototype.measureText=function(A){if(typeof A!="string")throw kt.error("jsPDF.context2d.measureText: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.measureText");var R=this.pdf,M=this.pdf.internal.scaleFactor,G=R.internal.getFontSize(),$=R.getStringUnitWidth(A)*G/R.internal.scaleFactor;return new function(ee){var le=(ee=ee||{}).width||0;return Object.defineProperty(this,"width",{get:function(){return le}}),this}({width:$*=Math.round(96*M/72*1e4)/1e4})},w.prototype.scale=function(A,R){if(isNaN(A)||isNaN(R))throw kt.error("jsPDF.context2d.scale: Invalid arguments",arguments),new Error("Invalid arguments passed to 
148jsPDF.context2d.scale");var M=new c(A,0,0,R,0,0);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.rotate=function(A){if(isNaN(A))throw kt.error("jsPDF.context2d.rotate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rotate");var R=new c(Math.cos(A),Math.sin(A),-Math.sin(A),Math.cos(A),0,0);this.ctx.transform=this.ctx.transform.multiply(R)},w.prototype.translate=function(A,R){if(isNaN(A)||isNaN(R))throw kt.error("jsPDF.context2d.translate: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.translate");var M=new c(1,0,0,1,A,R);this.ctx.transform=this.ctx.transform.multiply(M)},w.prototype.transform=function(A,R,M,G,$,ee){if(isNaN(A)||isNaN(R)||isNaN(M)||isNaN(G)||isNaN($)||isNaN(ee))throw kt.error("jsPDF.context2d.transform: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.transform");var le=new c(A,R,M,G,$,ee);this.ctx.transform=this.ctx.transform.multiply(le)},w.prototype.setTransform=function(A,R,M,G,$,ee){A=isNaN(A)?1:A,R=isNaN(R)?0:R,M=isNaN(M)?0:M,G=isNaN(G)?1:G,$=isNaN($)?0:$,ee=isNaN(ee)?0:ee,this.ctx.transform=new c(A,R,M,G,$,ee)};var j=function(){return this.margin[0]>0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};w.prototype.drawImage=function(A,R,M,G,$,ee,le,ue,be){var Ne=this.pdf.getImageProperties(A),ke=1,je=1,qe=1,E=1;G!==void 0&&ue!==void 0&&(qe=ue/G,E=be/$,ke=Ne.width/G*ue/G,je=Ne.he
vendor: 13,937 bytes, line 148
148ight/$*be/$),ee===void 0&&(ee=R,le=M,R=0,M=0),G!==void 0&&ue===void 0&&(ue=G,be=$),G===void 0&&ue===void 0&&(ue=Ne.width,be=Ne.height);var Le=this.ctx.transform.decompose(),ot=re(Le.rotate.shx),We=new c,we=(We=(We=(We=We.multiply(Le.translate)).multiply(Le.skew)).multiply(Le.scale)).applyToRectangle(new l(ee-R*qe,le-M*E,G*ke,$*je));if(this.autoPaging){for(var He,Fe=C.call(this,we),Ge=[],Ue=0;Ue<Fe.length;Ue+=1)Ge.indexOf(Fe[Ue])===-1&&Ge.push(Fe[Ue]);D(Ge);for(var xt=Ge[0],ht=Ge[Ge.length-1],et=xt;et<ht+1;et++){this.pdf.setPage(et);var dt=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],ft=et===1?this.posY+this.margin[0]:this.margin[0],Be=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],it=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],Me=et===1?0:Be+(et-2)*it;if(this.ctx.clip_path.length!==0){var Vt=this.path;He=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(He,this.posX+this.margin[3],-Me+ft+this.ctx.prevPageLastElemOffset),ae.call(this,"fill",!0),this.path=Vt}var bt=JSON.parse(JSON.stringify(we));bt=z([bt],this.posX+this.margin[3],-Me+ft+this.ctx.prevPageLastElemOffset)[0];var lt=(et>xt||et<ht)&&j.call(this);lt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],dt,it,null).clip().discardPath()),this.pdf.addImage(A,"JPEG",bt.x,bt.y,bt.w,bt.h,null,null,ot),lt&&this.pdf.restoreGraphicsState()}}else this.pdf.addImage(A,"JPEG",we.x,we.y,we.w,we.h,null,null,ot)};var C=function(A,R,M){var G=[];R=R||this.pdf.internal.pageSize.width,M=M||this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2];var $=this.posY+this.ctx.prevPageLastElemOffset;switch(A.type){default:case"mt":case"lt":G.push(Math.floor((A.y+$)/M)+1);break;case"arc":G.push(Math.floor((A.y+$-A.radius)/M)+1),G.push(Math.floor((A.y+$+A.radius)/M)+1);break;case"qct":var ee=de(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x,A.y);G.push(Math.floor((ee.y+$)/M)+1),G.push(Math.floor((ee.y+ee.h+$)/M)+1);break;case"bct":var le=Ae(this.ctx.lastPoint.x,this.ctx.lastPoint.y,A.x1,A.y1,A.x2,A.y2,A.x,A.y);G.push(Math.floor((le.y+$)/M)+1),G.push(Math.floor((le.y+le.h+$)/M)+1);break;case"rect":G.push(Math.floor((A.y+$)/M)+1),G.push(Math.floor((A.y+A.h+$)/M)+1)}for(var ue=0;ue<G.length;ue+=1)for(;this.pdf.internal.getNumberOfPages()<G[ue];)y.call(this);return G},y=function(){var A=this.fillStyle,R=this.strokeStyle,M=this.font,G=this.lineCap,$=this.lineWidth,ee=this.lineJoin;this.pdf.addPage(),this.fillStyle=A,this.strokeStyle=R,this.font=M,this.lineCap=G,this.lineWidth=$,this.lineJoin=ee},z=function(A,R,M){for(var G=0;G<A.length;G++)switch(A[G].type){case"bct":A[G].x2+=R,A[G].y2+=M;case"qct":A[G].x1+=R,A[G].y1+=M;default:A[G].x+=R,A[G].y+=M}return A},D=function(A){return A.sort(function(R,M){return R-M})},q=function(A,R){var M=this.fillStyle,G=this.strokeStyle,$=this.lineCap,ee=this.lineWidth,le=Math.abs(ee*this.ctx.transform.scaleX),ue=this.lineJoin;if(this.autoPaging){for(var be,Ne,ke=JSON.parse(JSON.stringify(this.path)),je=JSON.parse(JSON.stringify(this.path)),qe=[],E=0;E<je.length;E++)if(je[E].x!==void 0)for(var Le=C.call(this,je[E]),ot=0;ot<Le.length;ot+=1)qe.indexOf(Le[ot])===-1&&qe.push(Le[ot]);for(var We=0;We<qe.length;We++)for(;this.pdf.internal.getNumberOfPages()<qe[We];)y.call(this);D(qe);for(var we=qe[0],He=qe[qe.length-1],Fe=we;Fe<He+1;Fe++){this.pdf.setPage(Fe),this.fillStyle=M,this.strokeStyle=G,this.lineCap=$,this.lineWidth=le,this.lineJoin=ue;var Ge=this.pdf.internal.pageSize.width-this.margin[3]-this.margin[1],Ue=Fe===1?this.posY+this.margin[0]:this.margin[0],xt=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],ht=this.pdf.internal.pageSize.height-this.margin[0]-this.margin[2],et=Fe===1?0:xt+(Fe-2)*ht;if(this.ctx.clip_path.length!==0){var dt=this.path;be=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(be,this.posX+this.margin[3],-et+Ue+this.ctx.prevPageLastElemOffset),ae.call(this,A,!0),this.path=dt}if(Ne=JSON.parse(JSON.stringify(ke)),this.path=z(Ne,this.posX+this.margin[3],-et+Ue+this.ctx.prevPageLastElemOffset),R===!1||Fe===0){var ft=(Fe>we||Fe<He)&&j.call(this);ft&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],Ge,ht,null).clip().discardPath()),ae.call(this,A,R),ft&&this.pdf.restoreGraphicsState()}this.lineWidth=ee}this.path=ke}else this.lineWidth=le,ae.call(this,A,R),this.lineWidth=ee},ae=function(A,R){if((A!=="stroke"||R||!F.call(this))&&(A==="stroke"||R||!m.call(this))){for(var M,G,$=[],ee=this.path,le=0;le<ee.length;le++){var ue=ee[le];switch(ue.type){case"begin":$.push({begin:!0});break;case"close":$.push({close:!0});break;case"mt":$.push({start:ue,deltas:[],abs:[]});break;case"lt":var be=$.length;if(ee[le-1]&&!isNaN(ee[le-1].x)&&(M=[ue.x-ee[le-1].x,ue.y-ee[le-1].y],be>0)){for(;be>=0;be--)if($[be-1].close!==!0&&$[be-1].begin!==!0){$[be-1].deltas.push(M),$[be-1].abs.push(ue);break}}break;case"bct":M=[ue.x1-ee[le-1].x,ue.y1-ee[le-1].y,ue.x2-ee[le-1].x,ue.y2-ee[le-1].y,ue.x-ee[le-1].x,ue.y-ee[le-1].y],$[$.length-1].deltas.push(M);break;case"qct":var Ne=ee[le-1].x+2/3*(ue.x1-ee[le-1].x),ke=ee[le-1].y+2/3*(ue.y1-ee[le-1].y),je=ue.x+2/3*(ue.x1-ue.x),qe=ue.y+2/3*(ue.y1-ue.y),E=ue.x,Le=ue.y;M=[Ne-ee[le-1].x,ke-ee[le-1].y,je-ee[le-1].x,qe-ee[le-1].y,E-ee[le-1].x,Le-ee[le-1].y],$[$.length-1].deltas.push(M);break;case"arc":$.push({deltas:[],abs:[],arc:!0}),Array.isArray($[$.length-1].abs)&&$[$.length-1].abs.push(ue)}}G=R?null:A==="stroke"?"stroke":"fill";for(var ot=!1,We=0;We<$.length;We++)if($[We].arc)for(var we=$[We].abs,He=0;He<we.length;He++){var Fe=we[He];Fe.type==="arc"?J.call(this,Fe.x,Fe.y,Fe.radius,Fe.startAngle,Fe.endAngle,Fe.counterclockwise,void 0,R,!ot):V.call(this,Fe.x,Fe.y),ot=!0}else if($[We].close===!0)this.pdf.internal.out("h"),ot=!1;else if($[We].begin!==!0){var Ge=$[We].start.x,Ue=$[We].start.y;W.call(this,$[We].deltas,Ge,Ue),ot=!0}G&&U.call(this,G),R&&Q.call(this)}},ge=function(A){var R=this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor,M=R*(this.pdf.internal.getLineHeightFactor()-1);switch(this.ctx.textBaseline){case"bottom":return A-M;case"top":return A+R-M;case"hanging":return A+R-2*M;case"middle":return A+R/2-M;default:return A}},se=function(A){return A+this.pdf.internal.getFontSize()/this.pdf.internal.scaleFactor*(this.pdf.internal.getLineHeightFactor()-1)};w.prototype.createLinearGradient=function(){var A=function(){};return A.colorStops=[],A.addColorStop=function(R,M){this.colorStops.push([R,M])},A.getColor=function(){return this.colorStops.length===0?"#000000":this.colorStops[0][1]},A.isCanvasGradient=!0,A},w.prototype.createPattern=function(){return this.createLinearGradient()},w.prototype.createRadialGradient=function(){return this.createLinearGradient()};var J=function(A,R,M,G,$,ee,le,ue,be){for(var Ne=oe.call(this,M,G,$,ee),ke=0;ke<Ne.length;ke++){var je=Ne[ke];ke===0&&(be?L.call(this,je.x1+A,je.y1+R):V.call(this,je.x1+A,je.y1+R)),ie.call(this,A,R,je.x2,je.y2,je.x3,je.y3,je.x4,je.y4)}ue?Q.call(this):U.call(this,le)},U=function(A){switch(A){case"stroke":this.pdf.internal.out("S");break;case"fill":this.pdf.internal.out("f")}},Q=function(){this.pdf.clip(),this.pdf.discardPath()},L=function(A,R){this.pdf.internal.out(e(A)+" "+r(R)+" m")},O=function(A){var R;switch(A.align){case"right":case"end":R="right";break;case"center":R="center";break;default:R="left"}var M,G,$,ee=this.pdf.getTextDimensions(A.text),le=ge.call(this,A.y),ue=se.call(this,le)-ee.h,be=this.ctx.transform.applyToPoint(new h(A.x,le));if(this.autoPaging){var Ne=this.ctx.transform.decompose(),ke=new c;ke=(ke=(ke=ke.multiply(Ne.translate)).multiply(Ne.skew)).multiply(Ne.scale);for(var je=this.ctx.transform.applyToRectangle(new l(A.x,le,ee.w,ee.h)),qe=ke.applyToRectangle(new l(A.x,ue,ee.w,ee.h)),E=C.call(this,qe),Le=[],ot=0;ot<E.length;ot+=1)Le.indexOf(E[ot])===-1&&Le.push(E[ot]);D(Le);for(var We=Le[0],we=Le[Le.length-1],He=We;He<we+1;He++){this.pdf.setPage(He);var Fe=He===1?this.posY+this.margin[0]:this.margin[0],Ge=this.pdf.internal.pageSize.height-this.posY-this.margin[0]-this.margin[2],Ue=this.pdf.internal.pageSize.height-this.margin[2],xt=Ue-this.margin[0],ht=this.pdf.internal.pageSize.width-this.margin[1],et=ht-this.margin[3],dt=He===1?0:Ge+(He-2)*xt;if(this.ctx.clip_path.length!==0){var ft=this.path;M=JSON.parse(JSON.stringify(this.ctx.clip_path)),this.path=z(M,this.posX+this.margin[3],-1*dt+Fe),ae.call(this,"fill",!0),this.path=ft}var Be=z([JSON.parse(JSON.stringify(qe))],this.posX+this.margin[3],-dt+Fe+this.ctx.prevPageLastElemOffset)[0];A.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*A.scale),$=this.lineWidth,this.lineWidth=$*A.scale);var it=this.autoPaging!=="text";if(it||Be.y+Be.h<=Ue){if(it||Be.y>=Fe&&Be.x<=ht){var Me=it?A.text:this.pdf.splitTextToSize(A.text,A.maxWidth||ht-Be.x)[0],Vt=z([JSON.parse(JSON.stringify(je))],this.posX+this.margin[3],-dt+Fe+this.ctx.prevPageLastElemOffset)[0],bt=it&&(He>We||He<we)&&j.call(this);bt&&(this.pdf.saveGraphicsState(),this.pdf.rect(this.margin[3],this.margin[0],et,xt,null).clip().discardPath()),this.pdf.text(Me,Vt.x,Vt.y,{angle:A.angle,align:R,renderingMode:A.renderingMode}),bt&&this.pdf.restoreGraphicsState()}}else Be.y<Ue&&(this.ctx.prevPageLastElemOffset+=Ue-Be.y);A.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)}}else A.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*A.scale),$=this.lineWidth,this.lineWidth=$*A.scale),this.pdf.text(A.text,be.x+this.posX,be.y+this.posY,{angle:A.angle,align:R,renderingMode:A.renderingMode,maxWidth:A.maxWidth}),A.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=$)},V=function(A,R,M,G){M=M||0,G=G||0,this.pdf.internal.out(e(A+M)+" "+r(R+G)+" l")},W=function(A,R,M){return this.pdf.lines(A,R,M,null,null)},ie=function(A,R,M,G,$,ee,le,ue){this.pdf.internal.out([t(a(M+A)),t(s(G+R)),t(a($+A)),t(s(ee+R)),t(a(le+A)),t(s(ue+R)),"c"].join(" "))},oe=function(A,R,M,G){for(var $=2*Math.PI,ee=Math.PI/2;R>M;)R-=$;var le=Math.abs(M-R);le<$&&G&&(le=$-le);for(var ue=[],be=G?-1:1,Ne=R;le>1e-5;){var ke=Ne+be*Math.min(le,ee);ue.push(ce.call(this,A,Ne,ke)),le-=Math.abs(ke-Ne),Ne=ke}return ue},ce=function(A,R,M){var G=(M-R)/2,$=A*Math.cos(G),ee=A*Math.sin(G),le=$,ue=-ee,be=le*le+ue*ue,Ne=be+le*$+ue*ee,ke=4/3*(Math.sqrt(2*be*Ne)-Ne)/(le*ee-ue*$),je=le-ke*ue,qe=ue+ke*le,E=je,Le=-qe,ot=G+R,We=Math.cos(ot),we=Math.sin(ot);return{x1:A*Math.cos(R),y1:A*Math.sin(R),x2:je*We-qe*we,y2:je*we+qe*We,x3:E*We-Le*we,y3:E*we+Le*We,x4:A*Math.cos(M),y4:A*Math.sin(M)}},re=function(A){return 180*A/Math.PI},de=function(A,R,M,G,$,ee){var le=A+.5*(M-A),ue=R+.5*(G-R),be=$+.5*(M-$),Ne=ee+.5*(G-ee),ke=Math.min(A,$,le,be),je=Math.max(A,$,le,be),qe=Math.min(R,ee,ue,Ne),E=Math.max(R,ee,ue,Ne);return new l(ke,qe,je-ke,E-qe)},Ae=function(A,R,M,G,$,ee,le,ue){var be,Ne,ke,je,qe,E,Le,ot,We,we,He,Fe,Ge,Ue,xt=M-A,ht=G-R,et=$-M,dt=ee-G,ft=le-$,Be=ue-ee;for(Ne=0;Ne<41;Ne++)We=(Le=(ke=A+(be=Ne/40)*xt)+be*((qe=M+be*et)-ke))+be*(qe+be*($+be*ft-qe)-Le),we=(ot=(je=R+be*ht)+be*((E=G+be*dt)-je))+be*(E+be*(ee+be*Be-E)-ot),Ne==0?(He=We,Fe=we,Ge=We,Ue=we):(He=Math.min(He,We),Fe=Math.min(Fe,we),Ge=Math.max(Ge,We),Ue=Math.max(Ue,we));return new l(Math.round(He),Math.round(Fe),Math.round(Ge-He),Math.round(Ue-Fe))},xe=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var A,R,M=(A=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:A,lineDashOffset:R}));this.prevLineDash!==M&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=M)}}})(De.API),(function(n){var t=function(h){var l,c,d,g,w,k,m,F,j,C;for(c=[],d=0,g=(h+=l="\0\0\0\0".slice(h.length%4||4)).length;g>d;d+=4)(w=(h.charCodeAt(d)<<24)+(h.charCodeAt(d+1)<<16)+(h.charCodeAt(d+2)<<8)+h.charCodeAt(d+3))!==0?(k=(w=((w=((w=((w=(w-(C=w%85))/85)-(j=w%85))/85)-(F=w%85))/85)-(m=w%85))/85)%85,c.push(k+33,m+33,F+33,j+33,C+33)):c.push(122);return(function(y,z){for(var D=z;D>0;D--)y.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(h){var l,c,d,g,w,k=String,m="length",F=255,j="charCodeAt",C="slice",y="replace";for(h[C](-2),h=h[C](0,-2)[y](/\s/g,"")[y]("z","!!!!!"),d=[],g=0,w=(h+=l="uuuuu"[C](h[m]%5||5))[m];w>g;g+=5)c=52200625*(h[j](g)-33)+614125*(h[j](g+1)-33)+7225*(h[j](g+2)-33)+85*(h[j](g+3)-33)+(h[j](g+4)-33),d.push(F&c>>24,F&c>>16,F&c>>8,F&c);return(function(z,D){for(var q=D;q>0;q--)z.pop()})(d,l[m]),k.fromCharCode.apply(k,d)},r=function(h){return h.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(h){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((h=h.replace(/\s/g,"")).indexOf(">")!==-1&&(h=h.substr(0,h.indexOf(">"))),h.length%2&&(h+="0"),l.test(h)===!1)return"";for(var c="",d=0;d<h.length;d+=2)c+=String.fromCharCode("0x"+(h[d]+h[d+1]));return c},s=function(h){for(var l=new Uint8Array(h.length),c=h.length;c--;)l[c]=h.charCodeAt(c);return(l=yl(l)).reduce(function(d,g){return d+String.fromCharCode(g)},"")};n.processDataByFilters=function(h,l){var c=0,d=h||"",g=[];for(typeof(l=l||[])=="string"&&(l=[l]),c=0;c<l.length;c+=1)switch(l[c]){case"ASCII85Decode":case"/ASCII85Decode":d=e(d),g.push("/ASCII85Encode");break;case"ASCII85Encode":case"/ASCII85Encode":d=t(d),g.push("/ASCII85Decode");break;case"ASCIIHexDecode":case"/ASCIIHexDecode":d=a(d),g.push("/ASCIIHexEncode");break;case"ASCIIHexEncode":case"/ASCIIHexEncode":d=r(d),g.push("/ASCIIHexDecode");break;case"FlateEncode":case"/FlateEncode":d=s(d),g.push("/FlateDecode");break;default:throw new Error('The filter: "'+l[c]+'" is not implemented')}return{data:d,reverseChain:g.reverse().join(" ")}}})(De.API),(function(n){n.loadFile=function(t,e,r){return(function(a,s,h){s=s!==!1,h=typeof h=="function"?h:function(){};var l=void 0;try{l=(function(c,d,g){var w=new XMLHttpRequest,k=0,m=function(F){var j=F.length,C=[],y=String.fromCharCode;for(k=0;k<j;k+=1)C.push(y(255&F.charCodeAt(k)));return C.join("")};if(w.open("GET",c,!d),w.overrideMimeType("text/plain;
148 charset=x-user-defined"),d===!1&&(w.onload=function(){w.status===200?g(m(this.responseText)):g(void 0)}),w.send(null),d&&w.status===200)return m(w.responseText)})(a,s,h)}catch{}return l})(t,e,r)},n.allowFsRead=void 0,n.loadImageFile=n.loadFile})(De.API),(function(n){function t(){return(Xe.html2canvas?Promise.resolve(Xe.html2canvas):Wo(()=>import("./html2canvas.esm-QH1iLAAe.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load html2canvas: "+l))}).then(function(l){return l.default?l.default:l})}function e(){return(Xe.DOMPurify?Promise.resolve(Xe.DOMPurify):Wo(()=>import("./purify.es-B9ZVCkUG.js"),[])).catch(function(l){return Promise.reject(new Error("Could not load dompurify: "+l))}).then(function(l){return l.default?l.default:l})}var r=function(l){var c=At(l);return c==="undefined"?"undefined":c==="string"||l instanceof String?"string":c==="number"||l instanceof Number?"number":c==="function"||l instanceof Function?"function":l&&l.constructor===Array?"array":l&&l.nodeType===1?"element":c==="object"?"object":"unknown"},a=function(l,c){var d=document.createElement(l);for(var g in c.className&&(d.className=c.className),c.innerHTML&&c.dompurify&&(d.innerHTML=c.dompurify.sanitize(c.innerHTML)),c.style)d.style[g]=c.style[g];return d},s=function l(c,d){for(var g=c.nodeType===3?document.createTextNode(c.nodeValue):c.cloneNode(!1),w=c.firstChild;w;w=w.nextSibling)d!==!0&&w.nodeType===1&&w.nodeName==="SCRIPT"||g.appendChild(l(w,d));return c.nodeType===1&&(c.nodeName==="CANVAS"?(g.width=c.width,g.height=c.height,g.getContext("2d").drawImage(c,0,0)):c.nodeName!=="TEXTAREA"&&c.nodeName!=="SELECT"||(g.value=c.value),g.addEventListener("load",function(){g.scrollTop=c.scrollTop,g.scrollLeft=c.scrollLeft},!0)),g},h=function l(c){var d=Object.assign(l.convert(Promise.resolve()),JSON.parse(JSON.stringify(l.template))),g=l.convert(Promise.resolve(),d);return(g=g.setProgress(1,l,1,[l])).set(c)};(h.prototype=Object.create(Promise.prototype)).constructor=h,h.convert=function(l,c){return l.__proto__=c||h.prototype,l},h.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"}},h.prototype.from=function(l,c){return this.then(function(){switch(c=c||(function(d){switch(r(d)){case"string":return"string";case"element":return d.nodeName.toLowerCase()==="canvas"?"canvas":"element";default:return"unknown"}})(l),c){case"string":return this.then(e).then(function(d){return this.set({src:a("div",{innerHTML:l,dompurify:d})})});case"element":return this.set({src:l});case"canvas":return this.set({canvas:l});case"img":return this.set({img:l});default:return this.error("Unknown source type.")}})},h.prototype.to=function(l){switch(l){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.")}},h.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 l={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},c=s(this.prop.src,this.opt.html2canvas.javascriptEnabled);c.tagName==="BODY"&&(l.height=Math.max(document.body.scrollHeight,document.body.offsetHeight,document.documentElement.clientHeight,document.documentElement.scrollHeight,document.documentElement.offsetHeight)+"px"),this.prop.overlay=a("div",{className:"html2pdf__overlay",style:{position:"fixed",overflow:"hidden",zIndex:1e3,left:"-100000px",right:0,bottom:0,top:0}}),this.prop.container=a("div",{className:"html2pdf__container",style:l}),this.prop.container.appendChild(c),this.prop.container.firstChild.appendChild(a("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"})},h.prototype.toCanvas=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var d=Object.assign({},this.opt.html2canvas);return delete d.onrendered,c(this.prop.container,d)}).then(function(c){(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toContext2d=function(){var l=[function(){return document.body.contains(this.prop.container)||this.toContainer()}];return this.thenList(l).then(t).then(function(c){var d=this.opt.jsPDF,g=this.opt.fontFaces,w=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,k=Object.assign({async:!0,allowTaint:!0,scale:w,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 k.onrendered,d.context2d.autoPaging=this.opt.autoPaging===void 0||this.opt.autoPaging,d.context2d.posX=this.opt.x,d.context2d.posY=this.opt.y,d.context2d.margin=this.opt.margin,d.context2d.fontFaces=g,g)for(var m=0;m<g.length;++m){var F=g[m],j=F.src.find(function(C){return C.format==="truetype"});j&&d.addFont(j.url,F.ref.name,F.ref.style)}
vendor: 23,393 bytes, lines 148-154
148return k.windowHeight=k.windowHeight||0,k.windowHeight=k.windowHeight==0?Math.max(this.prop.container.clientHeight,this.prop.container.scrollHeight,this.prop.container.offsetHeight):k.windowHeight,d.context2d.save(!0),c(this.prop.container,k)}).then(function(c){this.opt.jsPDF.context2d.restore(!0),(this.opt.html2canvas.onrendered||function(){})(c),this.prop.canvas=c,document.body.removeChild(this.prop.overlay)})},h.prototype.toImg=function(){return this.thenList([function(){return this.prop.canvas||this.toCanvas()}]).then(function(){var l=this.prop.canvas.toDataURL("image/"+this.opt.image.type,this.opt.image.quality);this.prop.img=document.createElement("img"),this.prop.img.src=l})},h.prototype.toPdf=function(){return this.thenList([function(){return this.toContext2d()}]).then(function(){this.prop.pdf=this.prop.pdf||this.opt.jsPDF})},h.prototype.output=function(l,c,d){return(d=d||"pdf").toLowerCase()==="img"||d.toLowerCase()==="image"?this.outputImg(l,c):this.outputPdf(l,c)},h.prototype.outputPdf=function(l,c){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){return this.prop.pdf.output(l,c)})},h.prototype.outputImg=function(l){return this.thenList([function(){return this.prop.img||this.toImg()}]).then(function(){switch(l){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 "'+l+'" is not supported.'}})},h.prototype.save=function(l){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).set(l?{filename:l}:null).then(function(){this.prop.pdf.save(this.opt.filename)})},h.prototype.doCallback=function(){return this.thenList([function(){return this.prop.pdf||this.toPdf()}]).then(function(){this.prop.callback(this.prop.pdf)})},h.prototype.set=function(l){if(r(l)!=="object")return this;var c=Object.keys(l||{}).map(function(d){if(d in h.template.prop)return function(){this.prop[d]=l[d]};switch(d){case"margin":return this.setMargin.bind(this,l.margin);case"jsPDF":return function(){return this.opt.jsPDF=l.jsPDF,this.setPageSize()};case"pageSize":return this.setPageSize.bind(this,l.pageSize);default:return function(){this.opt[d]=l[d]}}},this);return this.then(function(){return this.thenList(c)})},h.prototype.get=function(l,c){return this.then(function(){var d=l in h.template.prop?this.prop[l]:this.opt[l];return c?c(d):d})},h.prototype.setMargin=function(l){return this.then(function(){switch(r(l)){case"number":l=[l,l,l,l];case"array":if(l.length===2&&(l=[l[0],l[1],l[0],l[1]]),l.length===4)break;default:return this.error("Invalid margin array.")}this.opt.margin=l}).then(this.setPageSize)},h.prototype.setPageSize=function(l){function c(d,g){return Math.floor(d*g/72*96)}return this.then(function(){(l=l||De.getPageSize(this.opt.jsPDF)).hasOwnProperty("inner")||(l.inner={width:l.width-this.opt.margin[1]-this.opt.margin[3],height:l.height-this.opt.margin[0]-this.opt.margin[2]},l.inner.px={width:c(l.inner.width,l.k),height:c(l.inner.height,l.k)},l.inner.ratio=l.inner.height/l.inner.width),this.prop.pageSize=l})},h.prototype.setProgress=function(l,c,d,g){return l!=null&&(this.progress.val=l),c!=null&&(this.progress.state=c),d!=null&&(this.progress.n=d),g!=null&&(this.progress.stack=g),this.progress.ratio=this.progress.val/this.progress.state,this},h.prototype.updateProgress=function(l,c,d,g){return this.setProgress(l?this.progress.val+l:null,c||null,d?this.progress.n+d:null,g?this.progress.stack.concat(g):null)},h.prototype.then=function(l,c){var d=this;return this.thenCore(l,c,function(g,w){return d.updateProgress(null,null,1,[g]),Promise.prototype.then.call(this,function(k){return d.updateProgress(null,g),k}).then(g,w).then(function(k){return d.updateProgress(1),k})})},h.prototype.thenCore=function(l,c,d){d=d||Promise.prototype.then;var g=this;l&&(l=l.bind(g)),c&&(c=c.bind(g));var w=Promise.toString().indexOf("[native code]")!==-1&&Promise.name==="Promise"?g:h.convert(Object.assign({},g),Promise.prototype),k=d.call(w,l,c);return h.convert(k,g.__proto__)},h.prototype.thenExternal=function(l,c){return Promise.prototype.then.call(this,l,c)},h.prototype.thenList=function(l){var c=this;return l.forEach(function(d){c=c.thenCore(d)}),c},h.prototype.catch=function(l){l&&(l=l.bind(this));var c=Promise.prototype.catch.call(this,l);return h.convert(c,this)},h.prototype.catchExternal=function(l){return Promise.prototype.catch.call(this,l)},h.prototype.error=function(l){return this.then(function(){throw new Error(l)})},h.prototype.using=h.prototype.set,h.prototype.saveAs=h.prototype.save,h.prototype.export=h.prototype.output,h.prototype.run=h.prototype.then,De.getPageSize=function(l,c,d){if(At(l)==="object"){var g=l;l=g.orientation,c=g.unit||c,d=g.format||d}c=c||"mm",d=d||"a4",l=(""+(l||"P")).toLowerCase();var w,k=(""+d).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(c){case"pt":w=1;break;case"mm":w=72/25.4;break;case"cm":w=72/2.54;break;case"in":w=72;break;case"px":w=.75;break;case"pc":case"em":w=12;break;case"ex":w=6;break;default:throw"Invalid unit: "+c}var F,j=0,C=0;if(m.hasOwnProperty(k))j=m[k][1]/w,C=m[k][0]/w;else try{j=d[1],C=d[0]}catch{throw new Error("Invalid format: "+d)}if(l==="p"||l==="portrait")l="p",C>j&&(F=C,C=j,j=F);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",j>C&&(F=C,C=j,j=F)}return{width:C,height:j,unit:c,k:w,orientation:l}},n.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(hl):null;var d=new h(c);return c.worker?d:d.from(l).doCallback()}})(De.API),De.API.addJS=function(n){var t,e,r=(function(a){for(var s="",h=0;h<a.length;h++){var l=a[h];if(l==="("||l===")"){for(var c=0,d=h-1;d>=0&&a[d]==="\\";d--)c++;s+=c%2==0?"\\"+l:l}else s+=l}return s})(n);return this.internal.events.subscribe("postPutResources",function(){t=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(t+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+r+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){t!==void 0&&e!==void 0&&this.internal.out("/Names <</JavaScript "+t+" 0 R>>")}),this},(function(n){var t;n.events.push(["postPutResources",function(){var e=this,r=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),s=0;s<a.length;s++){var h=a[s],l=r.exec(h);if(l!=null){var c=l[1];e.internal.newObjectDeferredBegin(c,!1)}e.internal.write(h)}if(this.outline.createNamedDestinations){var d=this.internal.pages.length,g=[];for(s=0;s<d;s++){var w=e.internal.newObject();g.push(w);var k=e.internal.getPageInfo(s+1);e.internal.write("<< /D["+k.objId+" 0 R /XYZ null null null]>> endobj")}var m=e.internal.newObject();for(e.internal.write("<< /Names [ "),s=0;s<g.length;s++)e.internal.write("(page_"+(s+1)+")"+g[s]+" 0 R");e.internal.write(" ] >>","endobj"),t=e.internal.newObject(),e.internal.write("<< /Dests "+m+" 0 R"),e.internal.write(">>","endobj")}}]),n.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+t+" 0 R"))}]),n.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(r,a,s){var h={title:a,options:s,children:[]};return r==null&&(r=this.root),r.children.push(h),h},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(r){r.id=e.internal.newObjectDeferred();for(var a=0;a<r.children.length;a++)this.genIds_r(r.children[a])},e.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()},e.outline.renderItems=function(r){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,s=0;s<r.children.length;s++){var h=r.children[s];this.objStart(h),this.line("/Title "+this.makeString(h.title)),this.line("/Parent "+this.makeRef(r)),s>0&&this.line("/Prev "+this.makeRef(r.children[s-1])),s<r.children.length-1&&this.line("/Next "+this.makeRef(r.children[s+1])),h.children.length>0&&(this.line("/First "+this.makeRef(h.children[0])),this.line("/Last "+this.makeRef(h.children[h.children.length-1])));var l=this.count=this.count_r({count:0},h);if(l>0&&this.line("/Count "+l),h.options&&h.options.pageNumber){var c=e.internal.getPageInfo(h.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d<r.children.length;d++)this.renderItems(r.children[d])},e.outline.line=function(r){this.ctx.val+=r+`\r
149`},e.outline.makeRef=function(r){return r.id+" 0 R"},e.outline.makeString=function(r){return"("+e.internal.pdfEscape(r)+")"},e.outline.objStart=function(r){this.ctx.val+=`\r
150`+r.id+` 0 obj\r
151<<\r
152`},e.outline.objEnd=function(){this.ctx.val+=`>> \r
153endobj\r
154`},e.outline.count_r=function(r,a){for(var s=0;s<a.children.length;s++)r.count++,this.count_r(r,a.children[s]);return r.count}}])})(De.API),(function(n){var t=[192,193,194,195,196,197,198,199];n.processJPEG=function(e,r,a,s,h,l){var c,d=this.decode.DCT_DECODE,g=null;if(typeof e=="string"||this.__addimage__.isArrayBuffer(e)||this.__addimage__.isArrayBufferView(e)){switch(e=h||e,e=this.__addimage__.isArrayBuffer(e)?new Uint8Array(e):e,c=(function(w){for(var k,m=256*w.charCodeAt(4)+w.charCodeAt(5),F=w.length,j={width:0,height:0,numcomponents:1},C=4;C<F;C+=2){if(C+=m,t.indexOf(w.charCodeAt(C+1))!==-1){k=256*w.charCodeAt(C+5)+w.charCodeAt(C+6),j={width:256*w.charCodeAt(C+7)+w.charCodeAt(C+8),height:k,numcomponents:w.charCodeAt(C+9)};break}m=256*w.charCodeAt(C+2)+w.charCodeAt(C+3)}return j})(e=this.__addimage__.isArrayBufferView(e)?this.__addimage__.arrayBufferToBinaryString(e):e),c.numcomponents){case 1:l=this.color_spaces.DEVICE_GRAY;break;case 4:l=this.color_spaces.DEVICE_CMYK;break;case 3:l=this.color_spaces.DEVICE_RGB}g={data:e,width:c.width,height:c.height,colorSpace:l,bitsPerComponent:8,filter:d,index:r,alias:a}}return g}})(De.API),De.API.processPNG=function(n,t,e,r){if(this.__addimage__.isArrayBuffer(n)&&(n=new Uint8Array(n)),this.__addimage__.isArrayBufferView(n)){var a,s=t2(n,{checkCrc:!0}),h=s.width,l=s.height,c=s.channels,d=s.palette,g=s.depth;a=d&&c===1?(function(J){for(var U=J.width,Q=J.height,L=J.data,O=J.palette,V=J.depth,W=!1,ie=[],oe=[],ce=void 0,re=!1,de=0,Ae=0;Ae<O.length;Ae++){var xe=jc(O[Ae],4),A=xe[0],R=xe[1],M=xe[2],G=xe[3];ie.push(A,R,M),G!=null&&(G===0?(de++,oe.length<1&&oe.push(Ae)):G<255&&(re=!0))}if(re||de>1){W=!0,oe=void 0;var $=U*Q;ce=new Uint8Array($);for(var ee=new DataView(L.buffer),le=0;le<$;le++){var ue=dl(ee,le,V),be=jc(O[ue],4)[3];ce[le]=be}}else de===0&&(oe=void 0);return{colorSpace:"Indexed",colorsPerPixel:1,sMaskBitsPerComponent:W?8:void 0,colorBytes:L,alphaBytes:ce,needSMask:W,palette:ie,mask:oe}})(s):c===2||c===4?(function(J){for(var U=J.data,Q=J.width,L=J.height,O=J.channels,V=J.depth,W=O===2?"DeviceGray":"DeviceRGB",ie=O-1,oe=Q*L,ce=ie,re=oe*ce,de=1*oe,Ae=Math.ceil(re*V/8),xe=Math.ceil(de*V/8),A=new Uint8Array(Ae),R=new Uint8Array(xe),M=new DataView(U.buffer),G=new DataView(A.buffer),$=new DataView(R.buffer),ee=!1,le=0;le<oe;le++){for(var ue=le*O,be=0;be<ce;be++)Fu(G,dl(M,ue+be,V),le*ce+be,V);var Ne=dl(M,ue+ce,V);Ne<(1<<V)-1&&(ee=!0),Fu($,Ne,1*le,V)}return{colorSpace:W,colorsPerPixel:ie,sMaskBitsPerComponent:ee?V:void 0,colorBytes:A,alphaBytes:R,needSMask:ee}})(s):(function(J){var U=J.data,Q=J.channels===1?"DeviceGray":"DeviceRGB";return{colorSpace:Q,colorsPerPixel:Q==="DeviceGray"?1:3,colorBytes:U instanceof Uint16Array?(function(L){for(var O=L.length,V=new Uint8Array(2*O),W=new DataView(V.buffer,V.byteOffset,V.byteLength),ie=0;ie<O;ie++)W.setUint16(2*ie,L[ie],!1);return V})(U):U,needSMask:!1}})(s);var w,k,m,F=a,j=F.colorSpace,C=F.colorsPerPixel,y=F.sMaskBitsPerComponent,z=F.colorBytes,D=F.alphaBytes,q=F.needSMask,ae=F.palette,ge=F.mask,se=null;return r!==De.API.image_compression.NONE&&typeof yl=="function"?(se=(function(J){var U;switch(J){case De.API.image_compression.FAST:U=11;break;case De.API.image_compression.MEDIUM:U=13;break;case De.API.image_compression.SLOW:U=14;break;default:U=12}return U})(r),w=this.decode.FLATE_DECODE,k="/Predictor ".concat(se," /Colors ").concat(C," /BitsPerComponent ").concat(g," /Columns ").concat(h),n=Su(z,Math.ceil(h*C*g/8),C,g,r),q&&(m=Su(D,Math.ceil(h*y/8),1,y,r))):(w=void 0,k=void 0,n=z,q&&(m=D)),(this.__addimage__.isArrayBuffer(n)||this.__addimage__.isArrayBufferView(n))&&(n=this.__addimage__.arrayBufferToBinaryString(n)),(m&&this.__addimage__.isArrayBuffer(m)||this.__addimage__.isArrayBufferView(m))&&(m=this.__addimage__.arrayBufferToBinaryString(m)),{alias:e,data:n,index:t,filter:w,decodeParameters:k,transparency:ge,palette:ae,sMask:m,predictor:se,width:h,height:l,bitsPerComponent:g,sMaskBitsPerComponent:y,colorSpace:j}}},(function(n){n.processGIF89A=function(t,e,r,a){var s=new _2(t),h=s.width,l=s.height,c=[];s.decodeAndBlitFrameRGBA(0,c);var d={data:c,width:h,height:l},g=new pl(100).encode(d,100);return n.processJPEG.call(this,g,e,r,a)},n.processGIF87A=n.processGIF89A})(De.API),ir.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 n=this.colors===0?1<<this.bitPP:this.colors;this.palette=new Array(n);for(var t=0;t<n;t++){var e=this.datav.getUint8(this.pos++,!0),r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0);this.palette[t]={red:a,green:r,blue:e,quad:s}}}this.height<0&&(this.height*=-1,this.bottom_up=!1)},ir.prototype.parseBGR=function(){this.pos=this.offset;var n="bit"+this.bitPP,t=this.width*this.height*4;if(t>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(t);try{this[n]()}catch(e){kt.log("bit decode error:"+e)}},ir.prototype.bit1=function(){var n,t=Math.ceil(this.width/8),e=t%4;for(n=this.height-1;n>=0;n--){for(var r=this.bottom_up?n:this.height-1-n,a=0;a<t;a++)for(var s=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+8*a*4,l=0;l<8&&8*a+l<this.width;l++){var c=this.palette[s>>7-l&1];this.data[h+4*l]=c.blue,this.data[h+4*l+1]=c.green,this.data[h+4*l+2]=c.red,this.data[h+4*l+3]=255}e!==0&&(this.pos+=4-e)}},ir.prototype.bit4=function(){for(var n=Math.ceil(this.width/2),t=n%4,e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<n;a++){var s=this.datav.getUint8(this.pos++,!0),h=r*this.width*4+2*a*4,l=s>>4,c=15&s,d=this.palette[l];if(this.data[h]=d.blue,this.data[h+1]=d.green,this.data[h+2]=d.red,this.data[h+3]=255,2*a+1>=this.width)break;d=this.palette[c],this.data[h+4]=d.blue,this.data[h+4+1]=d.green,this.data[h+4+2]=d.red,this.data[h+4+3]=255}t!==0&&(this.pos+=4-t)}},ir.prototype.bit8=function(){for(var n=this.width%4,t=this.height-1;t>=0;t--){for(var e=this.bottom_up?t:this.height-1-t,r=0;r<this.width;r++){var a=this.datav.getUint8(this.pos++,!0),s=e*this.width*4+4*r;if(a<this.palette.length){var h=this.palette[a];this.data[s]=h.red,this.data[s+1]=h.green,this.data[s+2]=h.blue,this.data[s+3]=255}else this.data[s]=255,this.data[s+1]=255,this.data[s+2]=255,this.data[s+3]=255}n!==0&&(this.pos+=4-n)}},ir.prototype.bit15=function(){for(var n=this.width%3,t=parseInt("11111",2),e=this.height-1;e>=0;e--){for(var r=this.bottom_up?e:this.height-1-e,a=0;a<this.width;a++){var s=this.datav.getUint16(this.pos,!0);this.pos+=2;var h=(s&t)/t*255|0,l=(s>>5&t)/t*255|0,c=(s>>10&t)/t*255|0,d=s>>15?255:0,g=r*this.width*4+4*a;this.data[g]=c,this.data[g+1]=l,this.data[g+2]=h,this.data[g+3]=d}this.pos+=n}},ir.prototype.bit16=function(){for(var n=this.width%3,t=parseInt("11111",2),e=parseInt("111111",2),r=this.height-1;r>=0;r--){for(var a=this.bottom_up?r:this.height-1-r,s=0;s<this.width;s++){var h=this.datav.getUint16(this.pos,!0);this.pos+=2;var l=(h&t)/t*255|0,c=(h>>5&e)/e*255|0,d=(h>>11)/t*255|0,g=a*this.width*4+4*s;this.data[g]=d,this.data[g+1]=c,this.data[g+2]=l,this.data[g+3]=255}this.pos+=n}},ir.prototype.bit24=function(){for(var n=this.height-1;n>=0;n--){for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),h=t*this.width*4+4*e;this.data[h]=s,this.data[h+1]=a,this.data[h+2]=r,this.data[h+3]=255}this.pos+=this.width%4}},ir.prototype.bit32=function(){for(var n=this.height-1;n>=0;n--)for(var t=this.bottom_up?n:this.height-1-n,e=0;e<this.width;e++){var r=this.datav.getUint8(this.pos++,!0),a=this.datav.getUint8(this.pos++,!0),s=this.datav.getUint8(this.pos++,!0),h=this.datav.getUint8(this.pos++,!0),l=t*this.width*4+4*e;this.data[l]=s,this.data[l+1]=a,this.data[l+2]=r,this.data[l+3]=h}},ir.prototype.getData=function(){return this.data},(function(n){n.processBMP=function(t,e,r,a){var s=new ir(t,!1),h=s.width,l=s.height,c={data:s.getData(),width:h,height:l},d=new pl(100).encode(c,100);return n.processJPEG.call(this,d,e,r,a)}})(De.API),Eu.prototype.getData=function(){return this.data},(function(n){n.processWEBP=function(t,e,r,a){var s=new Eu(t),h=s.width,l=s.height,c={data:s.getData(),width:h,height:l},d=new pl(100).encode(c,100);return n.processJPEG.call(this,d,e,r,a)}})(De.API),De.API.processRGBA=function(n,t,e){for(var r=n.data,a=r.length,s=new Uint8Array(a/4*3),h=new Uint8Array(a/4),l=0,c=0,d=0;d<a;d+=4){var g=r[d],w=r[d+1],k=r[d+2],m=r[d+3];s[l++]=g,s[l++]=w,s[l++]=k,h[c++]=m}var F=this.__addimage__.arrayBufferToBinaryString(s);return{alpha:this.__addimage__.arrayBufferToBinaryString(h),data:F,index:t,alias:e,colorSpace:"DeviceRGB",bitsPerComponent:8,width:n.width,height:n.height}},De.API.setLanguage=function(n){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 (Sp
154ain)","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"}[n]!==void 0&&(this.internal.languageSettings.languageCode=n,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},ca=De.API,Ws=ca.getCharWidthsArray=function(n,t){var e,r,a=(t=t||{}).font||this.internal.getFont(),s=t.fontSize||this.internal.getFontSize(),h=t.charSpace||this.internal.getCharSpace(),l=t.widths?t.widths:a.metadata.Unicode.widths,c=l.fof?l.fof:1,d=t.kerning?t.kerning:a.metadata.Unicode.kerning,g=d.fof?d.fof:1,w=t.doKerning!==!1,k=0,m=n.length,F=0,j=l[0]||c,C=[];for(e=0;e<m;e++)r=n.charCodeAt(e),typeof a.metadata.widthOfString=="function"?C.push((a.metadata.widthOfGlyph(a.metadata.characterToGlyph(r))+h*(1e3/s)||0)/1e3):(k=w&&At(d[r])==="object"&&!isNaN(parseInt(d[r][F],10))?d[r][F]/g:0,C.push((l[r]||j)/c+k)),F=r;return C},_u=ca.getStringUnitWidth=function(n,t){var e=(t=t||{}).fontSize||this.internal.getFontSize(),r=t.font||this.internal.getFont(),a=t.charSpace||this.internal.getCharSpace();return ca.processArabic&&(n=ca.processArabic(n)),typeof r.metadata.widthOfString=="function"?r.metadata.widthOfString(n,e,a)/e:Ws.apply(this,arguments).reduce(function(s,h){return s+h},0)},Nu=function(n,t,e,r){for(var a=[],s=0,h=n.length,l=0;s!==h&&l+t[s]<e;)l+=t[s],s++;a.push(n.slice(0,s));var c=s;for(l=0;s!==h;)l+t[s]>r&&(a.push(n.slice(c,s)),l=0,c=s),l+=t[s],s++;return c!==s&&a.push(n.slice(c,s)),a},Au=function(n,t,e){e||(e={});var r,a,s,h,l,c,d,g=[],w=[g],k=e.textIndent||0,m=0,F=0,j=n.split(" "),C=Ws.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?j[0].length+2:e.lineIndent||0){var y=Array(c).join(" "),z=[];j.map(function(q){(q=q.split(/\s*\n/)).length>1?z=z.concat(q.map(function(ae,ge){return(ge&&ae.length?`
155`:"")+ae})):z.push(q[0])}),j=z,c=_u.apply(this,[y,e])}for(s=0,h=j.length;s<h;s++){var D=0;if(r=j[s],c&&r[0]==`
156`&&(r=r.substr(1),D=1),k+m+(F=(a=Ws.apply(this,[r,e])).reduce(function(q,ae){return q+ae},0))>t||D){if(F>t){for(l=Nu.apply(this,[r,a,t-(k+m),t]),g.push(l.shift()),g=[l.pop()];l.length;)w.push([l.shift()]);F=a.slice(r.length-(g[0]?g[0].length:0)).reduce(function(q,ae){return q+ae},0)}else g=[r];w.push(g),k=F+c,m=C}else g.push(r),k+=m+F,m=C}return d=c?function(q,ae){return(ae?y:"")+q.join(" ")}:function(q){return q.join(" ")},w.map(d)},ca.splitTextToSize=function(n,t,e){var r,a=(e=e||{}).fontSize||this.internal.getFontSize(),s=(function(g){if(g.widths&&g.kerning)return{widths:g.widths,kerning:g.kerning};var w=this.internal.getFont(g.fontName,g.fontStyle),k="Unicode";return w.metadata[k]?{widths:w.metadata[k].widths||{0:1},kerning:w.metadata[k].kerning||{}}:{font:w.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}).call(this,e);r=Array.isArray(n)?n:String(n).split(/\r?\n/);var h=1*this.internal.scaleFactor*t/a;s.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,s.lineIndent=e.lineIndent;var l,c,d=[];for(l=0,c=r.length;l<c;l++)d=d.concat(Au.apply(this,[r[l],h,s]));return d},(function(n){n.__fontmetrics__=n.__fontmetrics__||{};for(var t="0123456789abcdef",e="klmnopqrstuvwxyz",r={},a={},s=0;s<16;s++)r[e[s]]=t[s],a[t[s]]=e[s];var h=function(k){return"0x"+parseInt(k,10).toString(16)},l=n.__fontmetrics__.compress=function(k){var m,F,j,C,y=["{"];for(var z in k){if(m=k[z],isNaN(parseInt(z,10))?F="'"+z+"'":(z=parseInt(z,10),F=(F=h(z).slice(2)).slice(0,-1)+a[F.slice(-1)]),typeof m=="number")m<0?(j=h(m).slice(3),C="-"):(j=h(m).slice(2),C=""),j=C+j.slice(0,-1)+a[j.slice(-1)];else{if(At(m)!=="object")throw new Error("Don't know what to do with value type "+At(m)+".");j=l(m)}y.push(F+j)}return y.push("}"),y.join("")},c=n.__fontmetrics__.uncompress=function(k){if(typeof k!="string")throw new Error("Invalid argument passed to uncompress.");for(var m,F,j,C,y={},z=1,D=y,q=[],ae="",ge="",se=k.length-1,J=1;J<se;J+=1)(C=k[J])=="'"?m?(j=m.join(""),m=void 0):m=[]:m?m.push(C):C=="{"?(q.push([D,j]),D={},j=void 0):C=="}"?((F=q.pop())[0][F[1]]=D,j=void 0,D=F[0]):C=="-"?z=-1:j===void 0?r.hasOwnProperty(C)?(ae+=r[C],j=parseInt(ae,16)*z,z=1,ae=""):ae+=C:r.hasOwnProperty(C)?(ge+=r[C],D[j]=parseInt(ge,16)*z,z=1,j=void 0,ge=""):ge+=C;return y},d={codePages:["WinAnsiEncoding"],WinAnsiEncoding:c("{19m8n201n9q201o9r201s9l201t9m201u8m201w9n201x9o201y8o202k8q202l8r202m9p202q8p20aw8k203k8t203t8v203u9v2cq8s212m9t15m8w15n9w2dw9s16k8u16l9u17s9z17x8y17y9y}")},g={Unicode:{Courier:d,"Courier-Bold":d,"Courier-BoldOblique":d,"Courier-Oblique":d,Helvetica:d,"Helvetica-Bold":d,"Helvetica-BoldOblique":d,"Helvetica-Oblique":d,"Times-Roman":d,"Times-Bold":d,"Times-BoldItalic":d,"Times-Italic":d}},w
vendor: 14,693 bytes, line 156
156={Unicode:{"Courier-Oblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-BoldItalic":c("{'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":c("{'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:c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-BoldOblique":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Bold":c("{'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:c("{'widths'{k3uaw4r19m3m2k1t2l2l202m2y2n3m2p5n202q6o3k3m2s2l2t2l2v3r2w1t3m3m2y1t2z1wbk2sbl3r'fof'6o3n3m3o3m3p3m3q3m3r3m3s3m3t3m3u1w3v1w3w3r3x3r3y3r3z2wbp3t3l3m5v2l5x2l5z3m2q4yfr3r7v3k7w1o7x3k}'kerning'{'fof'-6o}}"),Helvetica:c("{'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":c("{'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:c("{'widths'{k4u2k1w'fof'6o}'kerning'{'fof'-6o}}"),"Courier-Bold":c("{'widths'{k3w'fof'6o}'kerning'{'fof'-6o}}"),"Times-Italic":c("{'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":c("{'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":c("{'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}}}")}};
vendor: 41,033 bytes, lines 156-184
156n.events.push(["addFont",function(k){var m=k.font,F=w.Unicode[m.postScriptName];F&&(m.metadata.Unicode={},m.metadata.Unicode.widths=F.widths,m.metadata.Unicode.kerning=F.kerning);var j=g.Unicode[m.postScriptName];j&&(m.metadata.Unicode.encoding=j,m.encoding=j.codePages[0])}])})(De.API),(function(n){var t=function(e){for(var r=e.length,a=new Uint8Array(r),s=0;s<r;s++)a[s]=e.charCodeAt(s);return a};n.API.events.push(["addFont",function(e){var r=void 0,a=e.font,s=e.instance;if(!a.isStandardFont){if(s===void 0)throw new Error("Font does not exist in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");if(typeof(r=s.existsFileInVFS(a.postScriptName)===!1?s.loadFile(a.postScriptName):s.getFileFromVFS(a.postScriptName))!="string")throw new Error("Font is not stored as string-data in vFS, import fonts or remove declaration doc.addFont('"+a.postScriptName+"').");(function(h,l){l=/^\x00\x01\x00\x00/.test(l)?t(l):t(Ys(l)),h.metadata=n.API.TTFFont.open(l),h.metadata.Unicode=h.metadata.Unicode||{encoding:{},kerning:{},widths:[]},h.metadata.glyIdsUsed=[0]})(a,r)}}])})(De),De.API.addSvgAsImage=function(n,t,e,r,a,s,h,l){if(isNaN(t)||isNaN(e))throw kt.error("jsPDF.addSvgAsImage: Invalid coordinates",arguments),new Error("Invalid coordinates passed to jsPDF.addSvgAsImage");if(isNaN(r)||isNaN(a))throw kt.error("jsPDF.addSvgAsImage: Invalid measurements",arguments),new Error("Invalid measurements (width and/or height) passed to jsPDF.addSvgAsImage");var c=document.createElement("canvas");c.width=r,c.height=a;var d=c.getContext("2d");d.fillStyle="#fff",d.fillRect(0,0,c.width,c.height);var g={ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0},w=this;return(Xe.canvg?Promise.resolve(Xe.canvg):Wo(()=>import("./index.es-CNUDsvFO.js"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17]))).catch(function(k){return Promise.reject(new Error("Could not load canvg: "+k))}).then(function(k){return k.default?k.default:k}).then(function(k){return k.fromString(d,n,g)},function(){return Promise.reject(new Error("Could not load canvg."))}).then(function(k){return k.render(g)}).then(function(){w.addImage(c.toDataURL("image/jpeg",1),t,e,r,a,h,l)})},De.API.putTotalPages=function(n){var t,e=0;parseInt(this.internal.getFont().id.substr(1),10)<15?(t=new RegExp(n,"g"),e=this.internal.getNumberOfPages()):(t=new RegExp(this.pdfEscape16(n,this.internal.getFont()),"g"),e=this.pdfEscape16(this.internal.getNumberOfPages()+"",this.internal.getFont()));for(var r=1;r<=this.internal.getNumberOfPages();r++)for(var a=0;a<this.internal.pages[r].length;a++)this.internal.pages[r][a]=this.internal.pages[r][a].replace(t,e);return this},De.API.viewerPreferences=function(n,t){var e;n=n||{},t=t||!1;var r,a,s,h={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}},l=Object.keys(h),c=[],d=0,g=0,w=0;function k(F,j){var C,y=!1;for(C=0;C<F.length;C+=1)F[C]===j&&(y=!0);return y}if(this.internal.viewerpreferences===void 0&&(this.internal.viewerpreferences={},this.internal.viewerpreferences.configuration=JSON.parse(JSON.stringify(h)),this.internal.viewerpreferences.isSubscribed=!1),e=this.internal.viewerpreferences.configuration,n==="reset"||t===!0){var m=l.length;for(w=0;w<m;w+=1)e[l[w]].value=e[l[w]].defaultValue,e[l[w]].explicitSet=!1}if(At(n)==="object"){for(a in n)if(s=n[a],k(l,a)&&s!==void 0){if(e[a].type==="boolean"&&typeof s=="boolean")e[a].value=s;else if(e[a].type==="name"&&k(e[a].valueSet,s))e[a].value=s;else if(e[a].type==="integer"&&Number.isInteger(s))e[a].value=s;else if(e[a].type==="array"){for(d=0;d<s.length;d+=1)if(r=!0,s[d].length===1&&typeof s[d][0]=="number")c.push(String(s[d]-1));else if(s[d].length>1){for(g=0;g<s[d].length;g+=1)typeof s[d][g]!="number"&&(r=!1);r===!0&&c.push([s[d][0]-1,s[d][1]-1].join(" "))}e[a].value="["+c.join(" ")+"]"}else e[a].value=e[a].defaultValue;e[a].explicitSet=!0}}return this.internal.viewerpreferences.isSubscribed===!1&&(this.internal.events.subscribe("putCatalog",function(){var F,j=[];for(F in e)e[F].explicitSet===!0&&(e[F].type==="name"?j.push("/"+F+" /"+e[F].value):j.push("/"+F+" "+e[F].value));j.length!==0&&this.internal.write(`/ViewerPreferences
157<<
158`+j.join(`
159`)+`
160>>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},De.API.addMetadata=function(n,t){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:n,namespaceUri:t??"http://jspdf.default.namespaceuri/",rawXml:typeof t=="boolean"&&t},this.internal.events.subscribe("putCatalog",A2),this.internal.events.subscribe("postPutResources",N2)),this},(function(n){var t=n.API,e=t.pdfEscape16=function(s,h){for(var l,c=h.metadata.Unicode.widths,d=["","0","00","000","0000"],g=[""],w=0,k=s.length;w<k;++w){if(l=h.metadata.characterToGlyph(s.charCodeAt(w)),h.metadata.glyIdsUsed.push(l),h.metadata.toUnicode[l]=s.charCodeAt(w),c.indexOf(l)==-1&&(c.push(l),c.push([parseInt(h.metadata.widthOfGlyph(l),10)])),l=="0")return g.join("");l=l.toString(16),g.push(d[4-l.length],l)}return g.join("")},r=function(s){var h,l,c,d,g,w,k;for(g=`/CIDInit /ProcSet findresource begin
16112 dict begin
162begincmap
163/CIDSystemInfo <<
164  /Registry (Adobe)
165  /Ordering (UCS)
166  /Supplement 0
167>> def
168/CMapName /Adobe-Identity-UCS def
169/CMapType 2 def
1701 begincodespacerange
171<0000><ffff>
172endcodespacerange`,c=[],w=0,k=(l=Object.keys(s).sort(function(m,F){return m-F})).length;w<k;w++)h=l[w],c.length>=100&&(g+=`
173`+c.length+` beginbfchar
174`+c.join(`
175`)+`
176endbfchar`,c=[]),s[h]!==void 0&&s[h]!==null&&typeof s[h].toString=="function"&&(d=("0000"+s[h].toString(16)).slice(-4),h=("0000"+(+h).toString(16)).slice(-4),c.push("<"+h+"><"+d+">"));return c.length&&(g+=`
177`+c.length+` beginbfchar
178`+c.join(`
179`)+`
180endbfchar
181`),g+`endcmap
182CMapName currentdict /CMap defineresource pop
183end
184end`};t.events.push(["putFont",function(s){(function(h){var l=h.font,c=h.out,d=h.newObject,g=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="Identity-H"){for(var w=l.metadata.Unicode.widths,k=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),m="",F=0;F<k.length;F++)m+=String.fromCharCode(k[F]);var j=d();g({data:m,addLength1:!0,objectId:j}),c("endobj");var C=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:C}),c("endobj");var y=d();c("<<"),c("/Type /FontDescriptor"),c("/FontName /"+ha(l.fontName)),c("/FontFile2 "+j+" 0 R"),c("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),c("/Flags "+l.metadata.flags),c("/StemV "+l.metadata.stemV),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c(">>"),c("endobj");var z=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+ha(l.fontName)),c("/FontDescriptor "+y+" 0 R"),c("/W "+n.API.PDFObject.convert(w)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+C+" 0 R"),c("/BaseFont /"+ha(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+z+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(s)}]),t.events.push(["putFont",function(s){(function(h){var l=h.font,c=h.out,d=h.newObject,g=h.putStream;if(l.metadata instanceof n.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var w=l.metadata.rawData,k="",m=0;m<w.length;m++)k+=String.fromCharCode(w[m]);var F=d();g({data:k,addLength1:!0,objectId:F}),c("endobj");var j=d();g({data:r(l.metadata.toUnicode),addLength1:!0,objectId:j}),c("endobj");var C=d();c("<<"),c("/Descent "+l.metadata.decender),c("/CapHeight "+l.metadata.capHeight),c("/StemV "+l.metadata.stemV),c("/Type /FontDescriptor"),c("/FontFile2 "+F+" 0 R"),c("/Flags 96"),c("/FontBBox "+n.API.PDFObject.convert(l.metadata.bbox)),c("/FontName /"+ha(l.fontName)),c("/ItalicAngle "+l.metadata.italicAngle),c("/Ascent "+l.metadata.ascender),c(">>"),c("endobj"),l.objectNumber=d();for(var y=0;y<l.metadata.hmtx.widths.length;y++)l.metadata.hmtx.widths[y]=parseInt(l.metadata.hmtx.widths[y]*(1e3/l.metadata.head.unitsPerEm));c("<</Subtype/TrueType/Type/Font/ToUnicode "+j+" 0 R/BaseFont/"+ha(l.fontName)+"/FontDescriptor "+C+" 0 R/Encoding/"+l.encoding+" /FirstChar 29 /LastChar 255 /Widths "+n.API.PDFObject.convert(l.metadata.hmtx.widths)+">>"),c("endobj"),l.isAlreadyPutted=!0}})(s)}]);var a=function(s){var h,l=s.text||"",c=s.x,d=s.y,g=s.options||{},w=s.mutex||{},k=w.pdfEscape,m=w.activeFontKey,F=w.fonts,j=m,C="",y=0,z="",D=F[j].encoding;if(F[j].encoding!=="Identity-H")return{text:l,x:c,y:d,options:g,mutex:w};for(z=l,j=m,Array.isArray(l)&&(z=l[0]),y=0;y<z.length;y+=1)F[j].metadata.hasOwnProperty("cmap")&&(h=F[j].metadata.cmap.unicode.codeMap[z[y].charCodeAt(0)]),h||z[y].charCodeAt(0)<256&&F[j].metadata.hasOwnProperty("Unicode")?C+=z[y]:C+="";var q="";return parseInt(j.slice(1))<14||D==="WinAnsiEncoding"?q=k(C,j).split("").map(function(ae){return ae.charCodeAt(0).toString(16)}).join(""):D==="Identity-H"&&(q=e(C,F[j])),w.isHex=!0,{text:q,x:c,y:d,options:g,mutex:w}};t.events.push(["postProcessText",function(s){var h=s.text||"",l=[],c={text:h,x:s.x,y:s.y,options:s.options,mutex:s.mutex};if(Array.isArray(h)){var d=0;for(d=0;d<h.length;d+=1)Array.isArray(h[d])&&h[d].length===3?l.push([a(Object.assign({},c,{text:h[d][0]})).text,h[d][1],h[d][2]]):l.push(a(Object.assign({},c,{text:h[d]})).text);s.text=l}else s.text=a(Object.assign({},c,{text:h})).text}])})(De),(function(n){var t=function(){return this.internal.vFS===void 0&&(this.internal.vFS={}),!0};n.existsFileInVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0},n.addFileToVFS=function(e,r){return t.call(this),this.internal.vFS[e]=r,this},n.getFileFromVFS=function(e){return t.call(this),this.internal.vFS[e]!==void 0?this.internal.vFS[e]:null}})(De.API),(function(n){n.__bidiEngine__=n.prototype.__bidiEngine__=function(r){var a,s,h,l,c,d,g,w=t,k=[[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]],m=[[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]],F={L:0,R:1,EN:2,AN:3,N:4,B:5,S:6},j={0:0,5:1,6:2,7:3,32:4,251:5,254:6,255:7},C=["(",")","(","<",">","<","[","]","[","{","}","{","«","»","«","‹","›","‹","⁅","⁆","⁅","⁽","⁾","⁽","₍","₎","₍","≤","≥","≤","〈","〉","〈","﹙","﹚","﹙","﹛","﹜","﹛","﹝","﹞","﹝","﹤","﹥","﹤"],y=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)$/),z=!1,D=0;this.__bidiEngine__={};var q=function(L){var O=L.charCodeAt(),V=O>>8,W=j[V];return W!==void 0?w[256*W+(255&O)]:V===252||V===253?"AL":y.test(V)?"L":V===8?"R":"N"},ae=function(L){for(var O,V=0;V<L.length;V++){if((O=q(L.charAt(V)))==="L")return!1;if(O==="R")return!0}return!1},ge=function(L,O,V,W){var ie,oe,ce,re,de=O[W];switch(de){case"L":case"R":case"LRE":case"RLE":case"LRO":case"RLO":case"PDF":z=!1;break;case"N":case"AN":break;case"EN":z&&(de="AN");break;case"AL":z=!0,de="R";break;case"WS":case"BN":de="N";break;case"CS":W<1||W+1>=O.length||(ie=V[W-1])!=="EN"&&ie!=="AN"||(oe=O[W+1])!=="EN"&&oe!=="AN"?de="N":z&&(oe="AN"),de=oe===ie?oe:"N";break;case"ES":de=(ie=W>0?V[W-1]:"B")==="EN"&&W+1<O.length&&O[W+1]==="EN"?"EN":"N";break;case"ET":if(W>0&&V[W-1]==="EN"){de="EN";break}if(z){de="N";break}for(ce=W+1,re=O.length;ce<re&&O[ce]==="ET";)ce++;de=ce<re&&O[ce]==="EN"?"EN":"N";break;case"NSM":if(h&&!l){for(re=O.length,ce=W+1;ce<re&&O[ce]==="NSM";)ce++;if(ce<re){var Ae=L[W],xe=Ae>=1425&&Ae<=2303||Ae===64286;if(ie=O[ce],xe&&(ie==="R"||ie==="AL")){de="R";break}}}de=W<1||(ie=O[W-1])==="B"?"N":V[W-1];break;case"B":z=!1,a=!0,de=D;break;case"S":s=!0,de="N"}return de},se=function(L,O,V){var W=L.split("");return V&&J(W,V,{hiLevel:D}),W.reverse(),O&&O.reverse(),W.join("")},J=function(L,O,V){var W,ie,oe,ce,re,de=-1,Ae=L.length,xe=0,A=[],R=D?m:k,M=[];for(z=!1,a=!1,s=!1,ie=0;ie<Ae;ie++)M[ie]=q(L[ie]);for(oe=0;oe<Ae;oe++){if(re=xe,A[oe]=ge(L,M,A,oe),W=240&(xe=R[re][F[A[oe]]]),xe&=15,O[oe]=ce=R[xe][5],W>0)if(W===16){for(ie=de;ie<oe;ie++)O[ie]=1;de=-1}else de=-1;if(R[xe][6])de===-1&&(de=oe);else if(de>-1){for(ie=de;ie<oe;ie++)O[ie]=ce;de=-1}M[oe]==="B"&&(O[oe]=0),V.hiLevel|=ce}s&&(function(G,$,ee){for(var le=0;le<ee;le++)if(G[le]==="S"){$[le]=D;for(var ue=le-1;ue>=0&&G[ue]==="WS";ue--)$[ue]=D}})(M,O,Ae)},U=function(L,O,V,W,ie){if(!(ie.hiLevel<L)){if(L===1&&D===1&&!a)return O.reverse(),void(V&&V.reverse());for(var oe,ce,re,de,Ae=O.length,xe=0;xe<Ae;){if(W[xe]>=L){for(re=xe+1;re<Ae&&W[re]>=L;)re++;for(de=xe,ce=re-1;de<ce;de++,ce--)oe=O[de],O[de]=O[ce],O[ce]=oe,V&&(oe=V[de],V[de]=V[ce],V[ce]=oe);xe=re}xe++}}},Q=function(L,O,V){var W=L.split(""),ie={hiLevel:D};return V||(V=[]),J(W,V,ie),(function(oe,ce,re){if(re.hiLevel!==0&&g)for(var de,Ae=0;Ae<oe.length;Ae++)ce[Ae]===1&&(de=C.indexOf(oe[Ae]))>=0&&(oe[Ae]=C[de+1])})(W,V,ie),U(2,W,O,V,ie),U(1,W,O,V,ie),W.join("")};return this.__bidiEngine__.doBidiReorder=function(L,O,V){if((function(ie,oe){if(oe)for(var ce=0;ce<ie.length;ce++)oe[ce]=ce;l===void 0&&(l=ae(ie)),d===void 0&&(d=ae(ie))})(L,O),h||!c||d)if(h&&c&&l^d)D=l?1:0,L=se(L,O,V);else if(!h&&c&&d)D=l?1:0,L=Q(L,O,V),L=se(L,O);else if(!h||l||c||d){if(h&&!c&&l^d)L=se(L,O),l?(D=0,L=Q(L,O,V)):(D=1,L=Q(L,O,V),L=se(L,O));else if(h&&l&&!c&&d)D=1,L=Q(L,O,V),L=se(L,O);else if(!h&&!c&&l^d){var W=g;l?(D=1,L=Q(L,O,V),D=0,g=!1,L=Q(L,O,V),g=W):(D=0,L=Q(L,O,V),L=se(L,O),D=1,g=!1,L=Q(L,O,V),g=W,L=se(L,O))}}else D=0,L=Q(L,O,V);else D=l?1:0,L=Q(L,O,V);return L},this.__bidiEngine__.setOptions=function(L){L&&(h=L.isInputVisual,c=L.isOutputVisual,l=L.isInputRtl,d=L.isOutputRtl,g=L.isSymmetricSwapping)},this.__bidiEngine__.setOptions(r),this.__bidiEngine__};var t=["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"],e=new n.__bidiEngine__({isInputVisual:!0});n.API.events.push(["postProcessText",function(r){var a=r.text;r.x,r.y;var s=r.options||{};r.mutex,s.lang;var h=[];if(s.isInputVisual=typeof s.isInputVisual!="boolean"||s.isInputVisual,e.setOptions(s),Object.prototype.toString.call(a)==="[object Array]"){var l=0;for(h=[],l=0;l<a.length;l+=1)Object.prototype.toString.call(a[l])==="[object Array]"?h.push([e.doBidiReorder(a[l][0]),a[l][1],a[l][2]]):h.push([e.doBidiReorder(a[l])]);r.text=h}else r.text=e.doBidiReorder(a);e.setOptions({isInputVisual:!0})}])})(De),De.API.TTFFont=(function(){function n(t){var e;if(this.rawData=t,e=this.contents=new li(t),this.contents.pos=4,e.readString(4)==="ttcf")throw new Error("TTCF not supported.");e.pos=0,this.parse(),this.subset=new M2(this),this.registerTTF()}return n.open=function(t){return new n(t)},n.prototype.parse=function(){return this.directory=new S2(this.contents),this.head=new j2(this),this.name=new E2(this),this.cmap=new kh(this),this.toUnicode={},this.hhea=new k2(this),this.maxp=new I2(this),this.hmtx=new O2(this),this.post=new F2(this),this.os2=new P2(this),this.loca=new D2(this),this.glyf=new R2(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]},n.prototype.registerTTF=function(){var t,e,r,a,s;if(this.scaleFactor=1e3/this.head.unitsPerEm,this.bbox=(function(){var h,l,c,d;for(d=[],h=0,l=(c=this.bbox).length;h<l;h++)t=c[h],d.push(Math.round(t*this.scaleFactor));return d}).call(this),this.stemV=0,this.post.exists?(r=255&(a=this.post.italic_angle),32768&(e=a>>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+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=(s=this.familyClass)===1||s===2||s===3||s===4||s===5||s===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")},n.prototype.characterToGlyph=function(t){var e;return((e=this.cmap.unicode)!=null?e.codeMap[t]:void 0)||0},n.prototype.widthOfGlyph=function(t){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(t).advance*e},n.prototype.widthOfString=function(t,e,r){var a,s,h,l;for(h=0,s=0,l=(t=""+t).length;0<=l?s<l:s>l;s=0<=l?++s:--s)a=t.charCodeAt(s),h+=this.widthOfGlyph(this.characterToGlyph(a))+r*(1e3/e)||0;return h*(e/1e3)},n.prototype.lineHeight=function(t,e){var r;return e==null&&(e=!1),r=e?this.lineGap:0,(this.ascender+r-this.decender)/1e3*t},n})();var or,li=(function(){function n(t){this.data=t??[],this.pos=0,this.length=this.data.length}return n.prototype.readByte=function(){return this.data[this.pos++]},n.prototype.writeByte=function(t){return this.data[this.pos++]=t},n.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},n.prototype.writeUInt32=function(t){return this.writeByte(t>>>24&255),this.writeByte(t>>16&255),this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt32=function(){var t;return(t=this.readUInt32())>=2147483648?t-4294967296:t},n.prototype.writeInt32=function(t){return t<0&&(t+=4294967296),this.writeUInt32(t)},n.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},n.prototype.writeUInt16=function(t){return this.writeByte(t>>8&255),this.writeByte(255&t)},n.prototype.readInt16=function(){var t;return(t=this.readUInt16())>=32768?t-65536:t},n.prototype.writeInt16=function(t){return t<0&&(t+=65536),this.writeUInt16(t)},n.prototype.readString=function(t){var e,r;for(r=[],e=0;0<=t?e<t:e>t;e=0<=t?++e:--e)r[e]=String.fromCharCode(this.readByte());return r.join("")},n.prototype.writeString=function(t){var e,r,a;for(a=[],e=0,r=t.length;0<=r?e<r:e>r;e=0<=r?++e:--e)a.push(this.writeByte(t.charCodeAt(e)));return a},n.prototype.readShort=function(){return this.readInt16()},n.prototype.writeShort=function(t){return this.writeInt16(t)},n.prototype.readLongLong=function(){var t,e,r,a,s,h,l,c;return t=this.readByte(),e=this.readByte(),r=this.readByte(),a=this.readByte(),s=this.readByte(),h=this.readByte(),l=this.readByte(),c=this.readByte(),128&t?-1*(72057594037927940*(255^t)+281474976710656*(255^e)+1099511627776*(255^r)+4294967296*(255^a)+16777216*(255^s)+65536*(255^h)+256*(255^l)+(255^c)+1):72057594037927940*t+281474976710656*e+1099511627776*r+4294967296*a+16777216*s+65536*h+256*l+c},n.prototype.writeLongLong=function(t){var e,r;return e=Math.floor(t/4294967296),r=4294967295&t,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(r>>24&255),this.writeByte(r>>16&255),this.writeByte(r>>8&255),this.writeByte(255&r)},n.prototype.readInt=function(){return this.readInt32()},n.prototype.writeInt=function(t){return this.writeInt32(t)},n.prototype.read=function(t){var e,r;for(e=[],r=0;0<=t?r<t:r>t;r=0<=t?++r:--r)e.push(this.readByte());return e},n.prototype.write=function(t){var e,r,a,s;for(s=[],r=0,a=t.length;r<a;r++)e=t[r],s.push(this.writeByte(e));return s},n})(),S2=(function(){var n;function t(e){var r,a,s;for(this.scalarType=e.readInt(),this.tableCount=e.readShort(),this.searchRange=e.readShort(),this.entrySelector=e.readShort(),this.rangeShift=e.readShort(),this.tables={},a=0,s=this.tableCount;0<=s?a<s:a>s;a=0<=s?++a:--a)r={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[r.tag]=r}return t.prototype.encode=function(e){var r,a,s,h,l,c,d,g,w,k,m,F,j;for(j in m=Object.keys(e).length,c=Math.log(2),w=16*Math.floor(Math.log(m)/c),h=Math.floor(w/c),g=16*m-w,(a=new li).writeInt(this.scalarType),a.writeShort(m),a.writeShort(w),a.writeShort(h),a.writeShort(g),s=16*m,d=a.pos+s,l=null,F=[],e)for(k=e[j],a.writeString(j),a.writeInt(n(k)),a.writeInt(d),a.writeInt(k.length),F=F.concat(k),j==="head"&&(l=d),d+=k.length;d%4;)F.push(0),d++;return a.write(F),r=2981146554-n(a.data),a.pos=l+8,a.writeUInt32(r),a.data},n=function(e){var r,a,s,h;for(e=Ph.call(e);e.length%4;)e.push(0);for(s=new li(e),a=0,r=0,h=e.length;r<h;r=r+=4)a+=s.readUInt32();return 4294967295&a},t})(),L2={}.hasOwnProperty,_r=function(n,t){for(var e in t)L2.call(t,e)&&(n[e]=t[e]);function r(){this.constructor=n}return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};or=(function(){function n(t){var e;this.file=t,e=this.file.directory.tables[this.tag],this.exists=!!e,e&&(this.offset=e.offset,this.length=e.length,this.parse(this.file.contents))}return n.prototype.parse=function(){},n.prototype.encode=function(){},n.prototype.raw=function(){return this.exists?(this.file.contents.pos=this.offset,this.file.contents.read(this.length)):null},n})();var j2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="head",n.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()},n.prototype.encode=function(t){var e;return(e=new li).writeInt(this.version),e.writeInt(this.revision),e.writeInt(this.checkSumAdjustment),e.writeInt(this.magicNumber),e.writeShort(this.flags),e.writeShort(this.unitsPerEm),e.writeLongLong(this.created),e.writeLongLong(this.modified),e.writeShort(this.xMin),e.writeShort(this.yMin),e.writeShort(this.xMax),e.writeShort(this.yMax),e.writeShort(this.macStyle),e.writeShort(this.lowestRecPPEM),e.writeShort(this.fontDirectionHint),e.writeShort(t),e.writeShort(this.glyphDataFormat),e.data},n})(),Iu=(function(){function n(t,e){var r,a,s,h,l,c,d,g,w,k,m,F,j,C,y,z,D;switch(this.platformID=t.readUInt16(),this.encodingID=t.readShort(),this.offset=e+t.readInt(),w=t.pos,t.pos=this.offset,this.format=t.readUInt16(),this.length=t.readUInt16(),this.language=t.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]=t.readByte();break;case 4:for(m=t.readUInt16(),k=m/2,t.pos+=6,s=(function(){var q,ae;for(ae=[],c=q=0;0<=k?q<k:q>k;c=0<=k?++q:--q)ae.push(t.readUInt16());return ae})(),t.pos+=2,j=(function(){var q,ae;for(ae=[],c=q=0;0<=k?q<k:q>k;c=0<=k?++q:--q)ae.push(t.readUInt16());return ae})(),d=(function(){var q,ae;for(ae=[],c=q=0;0<=k?q<k:q>k;c=0<=k?++q:--q)ae.push(t.readUInt16());return ae})(),g=(function(){var q,ae;for(ae=[],c=q=0;0<=k?q<k:q>k;c=0<=k?++q:--q)ae.push(t.readUInt16());return ae})(),a=(this.length-t.pos+this.offset)/2,l=(function(){var q,ae;for(ae=[],c=q=0;0<=a?q<a:q>a;c=0<=a?++q:--q)ae.push(t.readUInt16());return ae})(),c=y=0,D=s.length;y<D;c=++y)for(C=s[c],r=z=F=j[c];F<=C?z<=C:z>=C;r=F<=C?++z:--z)g[c]===0?h=r+d[c]:(h=l[g[c]/2+(r-F)-(k-c)]||0)!==0&&(h+=d[c]),this.codeMap[r]=65535&h}t.pos=w}return n.encode=function(t,e){var r,a,s,h,l,c,d,g,w,k,m,F,j,C,y,z,D,q,ae,ge,se,J,U,Q,L,O,V,W,ie,oe,ce,re,de,Ae,xe,A,R,M,G,$,ee,le,ue,be,Ne,ke;switch(W=new li,h=Object.keys(t).sort(function(je,qe){return je-qe}),e){case"macroman":for(j=0,C=(function(){var je=[];for(F=0;F<256;++F)je.push(0);return je})(),z={0:0},s={},ie=0,de=h.length;ie<de;ie++)z[ue=t[a=h[ie]]]==null&&(z[ue]=++j),s[a]={old:t[a],new:z[t[a]]},C[a]=z[t[a]];return W.writeUInt16(1),W.writeUInt16(0),W.writeUInt32(12),W.writeUInt16(0),W.writeUInt16(262),W.writeUInt16(0),W.write(C),{charMap:s,subtable:W.data,maxGlyphID:j+1};case"unicode":for(O=[],w=[],D=0,z={},r={},y=d=null,oe=0,Ae=h.length;oe<Ae;oe++)z[ae=t[a=h[oe]]]==null&&(z[ae]=++D),r[a]={old:ae,new:z[ae]},l=z[ae]-a,y!=null&&l===d||(y&&w.push(y),O.push(a),d=l),y=a;for(y&&w.push(y),w.push(65535),O.push(65535),Q=2*(U=O.length),J=2*Math.pow(Math.log(U)/Math.LN2,2),k=Math.log(J/2)/Math.LN2,se=2*U-J,c=[],ge=[],m=[],F=ce=0,xe=O.length;ce<xe;F=++ce){if(L=O[F],g=w[F],L===65535){c.push(0),ge.push(0);break}if(L-(V=r[L].new)>=32768)for(c.push(0),ge.push(2*(m.length+U-F)),a=re=L;L<=g?re<=g:re>=g;a=L<=g?++re:--re)m.push(r[a].new);else c.push(V-L),ge.push(0)}for(W.writeUInt16(3),W.writeUInt16(1),W.writeUInt32(12),W.writeUInt16(4),W.writeUInt16(16+8*U+2*m.length),W.writeUInt16(0),W.writeUInt16(Q),W.writeUInt16(J),W.writeUInt16(k),W.writeUInt16(se),ee=0,A=w.length;ee<A;ee++)a=w[ee],W.writeUInt16(a);for(W.writeUInt16(0),le=0,R=O.length;le<R;le++)a=O[le],W.writeUInt16(a);for(be=0,M=c.length;be<M;be++)l=c[be],W.writeUInt16(l);for(Ne=0,G=ge.length;Ne<G;Ne++)q=ge[Ne],W.writeUInt16(q);for(ke=0,$=m.length;ke<$;ke++)j=m[ke],W.writeUInt16(j);return{charMap:r,subtable:W.data,maxGlyphID:D+1}}},n})(),kh=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="cmap",n.prototype.parse=function(t){var e,r,a;for(t.pos=this.offset,this.version=t.readUInt16(),a=t.readUInt16(),this.tables=[],this.unicode=null,r=0;0<=a?r<a:r>a;r=0<=a?++r:--r)e=new Iu(t,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},n.encode=function(t,e){var r,a;return e==null&&(e="macroman"),r=Iu.encode(t,e),(a=new li).writeUInt16(0),a.writeUInt16(1),r.table=a.data.concat(r.subtable),r},n})(),k2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="hhea",n.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()},n})(),P2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="OS/2",n.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 e,r;for(r=[],e=0;e<10;++e)r.push(t.readByte());return r})(),this.charRange=(function(){var e,r;for(r=[],e=0;e<4;++e)r.push(t.readInt());return r})(),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 e,r;for(r=[],e=0;e<2;e=++e)r.push(t.readInt());return r})(),this.version>1))return this.xHeight=t.readShort(),this.capHeight=t.readShort(),this.defaultChar=t.readShort(),this.breakChar=t.readShort(),this.maxContext=t.readShort()},n})(),F2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="post",n.prototype.parse=function(t){var e,r,a;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:case 196608:break;case 131072:var s;for(r=t.readUInt16(),this.glyphNameIndex=[],s=0;0<=r?s<r:s>r;s=0<=r?++s:--s)this.glyphNameIndex.push(t.readUInt16());for(this.names=[],a=[];t.pos<this.offset+this.length;)e=t.readByte(),a.push(this.names.push(t.readString(e)));return a;case 151552:return r=t.readUInt16(),this.offsets=t.read(r);case 262144:return this.map=(function(){var h,l,c;for(c=[],s=h=0,l=this.file.maxp.numGlyphs;0<=l?h<l:h>l;s=0<=l?++h:--h)c.push(t.readUInt32());return c}).call(this)}},n})(),C2=function(n,t){this.raw=n,this.length=n.length,this.platformID=t.platformID,this.encodingID=t.encodingID,this.languageID=t.languageID},E2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="name",n.prototype.parse=function(t){var e,r,a,s,h,l,c,d,g,w,k;for(t.pos=this.offset,t.readShort(),e=t.readShort(),l=t.readShort(),r=[],s=0;0<=e?s<e:s>e;s=0<=e?++s:--s)r.push({platformID:t.readShort(),encodingID:t.readShort(),languageID:t.readShort(),nameID:t.readShort(),length:t.readShort(),offset:this.offset+l+t.readShort()});for(c={},s=g=0,w=r.length;g<w;s=++g)a=r[s],t.pos=a.offset,d=t.readString(a.length),h=new C2(d,a),c[k=a.nameID]==null&&(c[k]=[]),c[a.nameID].push(h);this.strings=c,this.copyright=c[0],this.fontFamily=c[1],this.fontSubfam
184ily=c[2],this.uniqueSubfamily=c[3],this.fontName=c[4],this.version=c[5];try{this.postscriptName=c[6][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}catch{this.postscriptName=c[4][0].raw.replace(/[\x00-\x19\x80-\xff]/g,"")}return this.trademark=c[7],this.manufacturer=c[8],this.designer=c[9],this.description=c[10],this.vendorUrl=c[11],this.designerUrl=c[12],this.license=c[13],this.licenseUrl=c[14],this.preferredFamily=c[15],this.preferredSubfamily=c[17],this.compatibleFull=c[18],this.sampleText=c[19]},n})(),I2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="maxp",n.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()},n})(),O2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="hmtx",n.prototype.parse=function(t){var e,r,a,s,h,l,c;for(t.pos=this.offset,this.metrics=[],e=0,l=this.file.hhea.numberOfMetrics;0<=l?e<l:e>l;e=0<=l?++e:--e)this.metrics.push({advance:t.readUInt16(),lsb:t.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,g;for(g=[],e=d=0;0<=a?d<a:d>a;e=0<=a?++d:--d)g.push(t.readInt16());return g})(),this.widths=(function(){var d,g,w,k;for(k=[],d=0,g=(w=this.metrics).length;d<g;d++)s=w[d],k.push(s.advance);return k}).call(this),r=this.widths[this.widths.length-1],c=[],e=h=0;0<=a?h<a:h>a;e=0<=a?++h:--h)c.push(this.widths.push(r));return c},n.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]}},n})(),Ph=[].slice,R2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="glyf",n.prototype.parse=function(){return this.cache={}},n.prototype.glyphFor=function(t){var e,r,a,s,h,l,c,d,g,w;return t in this.cache?this.cache[t]:(s=this.file.loca,e=this.file.contents,r=s.indexOf(t),(a=s.lengthOf(t))===0?this.cache[t]=null:(e.pos=this.offset+r,h=(l=new li(e.read(a))).readShort(),d=l.readShort(),w=l.readShort(),c=l.readShort(),g=l.readShort(),this.cache[t]=h===-1?new T2(l,d,w,c,g):new B2(l,h,d,w,c,g),this.cache[t]))},n.prototype.encode=function(t,e,r){var a,s,h,l,c;for(h=[],s=[],l=0,c=e.length;l<c;l++)a=t[e[l]],s.push(h.length),a&&(h=h.concat(a.encode(r)));return s.push(h.length),{table:h,offsets:s}},n})(),B2=(function(){function n(t,e,r,a,s,h){this.raw=t,this.numberOfContours=e,this.xMin=r,this.yMin=a,this.xMax=s,this.yMax=h,this.compound=!1}return n.prototype.encode=function(){return this.raw.data},n})(),T2=(function(){function n(t,e,r,a,s){var h,l;for(this.raw=t,this.xMin=e,this.yMin=r,this.xMax=a,this.yMax=s,this.compound=!0,this.glyphIDs=[],this.glyphOffsets=[],h=this.raw;l=h.readShort(),this.glyphOffsets.push(h.pos),this.glyphIDs.push(h.readUInt16()),32&l;)h.pos+=1&l?4:2,128&l?h.pos+=8:64&l?h.pos+=4:8&l&&(h.pos+=2)}return n.prototype.encode=function(){var t,e,r;for(e=new li(Ph.call(this.raw.data)),t=0,r=this.glyphIDs.length;t<r;++t)e.pos=this.glyphOffsets[t];return e.data},n})(),D2=(function(){function n(){return n.__super__.constructor.apply(this,arguments)}return _r(n,or),n.prototype.tag="loca",n.prototype.parse=function(t){var e,r;return t.pos=this.offset,e=this.file.head.indexToLocFormat,this.offsets=e===0?(function(){var a,s;for(s=[],r=0,a=this.length;r<a;r+=2)s.push(2*t.readUInt16());return s}).call(this):(function(){var a,s;for(s=[],r=0,a=this.length;r<a;r+=4)s.push(t.readUInt32());return s}).call(this)},n.prototype.indexOf=function(t){return this.offsets[t]},n.prototype.lengthOf=function(t){return this.offsets[t+1]-this.offsets[t]}
184,n.prototype.encode=function(t,e){for(var r=new Uint32Array(this.offsets.length),a=0,s=0,h=0;h<r.length;++h)if(r[h]=a,s<e.length&&e[s]==h){++s,r[h]=a;var l=this.offsets[h],c=this.offsets[h+1]-l;c>0&&(a+=c)}for(var d=new Array(4*r.length),g=0;g<r.length;++g)d[4*g+3]=255&r[g],d[4*g+2]=(65280&r[g])>>8,d[4*g+1]=(16711680&r[g])>>16,d[4*g]=(4278190080&r[g])>>24;return d},n})(),M2=(function(){function n(t){this.font=t,this.subset={},this.unicodes={},this.next=33}return n.prototype.generateCmap=function(){var t,e,r,a,s;for(e in a=this.font.cmap.tables[0].codeMap,t={},s=this.subset)r=s[e],t[e]=a[r];return t},n.prototype.glyphsFor=function(t){var e,r,a,s,h,l,c;for(a={},h=0,l=t.length;h<l;h++)a[s=t[h]]=this.font.glyf.glyphFor(s);for(s in e=[],a)(r=a[s])!=null&&r.compound&&e.push.apply(e,r.glyphIDs);if(e.length>0)for(s in c=this.glyphsFor(e))r=c[s],a[s]=r;return a},n.prototype.encode=function(t,e){var r,a,s,h,l,c,d,g,w,k,m,F,j,C,y;for(a in r=kh.encode(this.generateCmap(),"unicode"),h=this.glyphsFor(t),m={0:0},y=r.charMap)m[(c=y[a]).old]=c.new;for(F in k=r.maxGlyphID,h)F in m||(m[F]=k++);return g=(function(z){var D,q;for(D in q={},z)q[z[D]]=D;return q})(m),w=Object.keys(g).sort(function(z,D){return z-D}),j=(function(){var z,D,q;for(q=[],z=0,D=w.length;z<D;z++)l=w[z],q.push(g[l]);return q})(),s=this.font.glyf.encode(h,j,m),d=this.font.loca.encode(s.offsets,j),C={cmap:this.font.cmap.raw(),glyf:s.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(e)},this.font.os2.exists&&(C["OS/2"]=this.font.os2.raw()),this.font.directory.encode(C)},n})();De.API.PDFObject=(function(){var n;function t(){}return n=function(e,r){return(Array(r+1).join("0")+e).slice(-r)},t.convert=function(e){var r,a,s,h;if(Array.isArray(e))return"["+(function(){var l,c,d;for(d=[],l=0,c=e.length;l<c;l++)r=e[l],d.push(t.convert(r));return d})().join(" ")+"]";if(typeof e=="string")return"/"+e;if(e!=null&&e.isString)return"("+e+")";if(e instanceof Date)return"(D:"+n(e.getUTCFullYear(),4)+n(e.getUTCMonth(),2)+n(e.getUTCDate(),2)+n(e.getUTCHours(),2)+n(e.getUTCMinutes(),2)+n(e.getUTCSeconds(),2)+"Z)";if({}.toString.call(e)==="[object Object]"){for(a in s=["<<"],e)h=e[a],s.push("/"+a+" "+t.convert(h));return s.push(">>"),s.join(`
185`)}return""+e},t})();const Hs="#051d70",q2="#fff22c",U2="#2fc7ff";function z2(n,t,e,r){const a=new De({unit:"pt",format:"letter"}),s=a.internal.pageSize.getWidth(),h=a.internal.pageSize.getHeight(),l=48;let c=l;a.setFillColor(Hs),a.rect(0,0,s,64,"F"),a.setFillColor(q2),a.rect(0,64,s,6,"F"),a.setTextColor("#FFFFFF"),a.setFont("helvetica","bold"),a.setFontSize(18),a.text("Good News Guys",l,40),a.setFontSize(11),a.setFont("helvetica","normal"),a.text("Live Show Agreement & Event Rider",l,56),a.setTextColor(Hs),c=92,a.setFontSize(10),a.setFont("helvetica","normal"),a.text("Confirmation Number: Pending",l,c),a.text(`Submitted: ${new Date().toLocaleString()}`,s-l,c,{align:"right"}),c+=24;const d=y=>{c+y>h-l-60&&(a.addPage(),c=l)},g=y=>{d(40),a.setFillColor(U2),a.rect(l,c-12,4,16,"F"),a.setFont("helvetica","bold"),a.setFontSize(13),a.text(y,l+12,c),c+=14,a.setDrawColor(220,220,220),a.line(l,c,s-l,c),c+=14,a.setFont("helvetica","normal"),a.setFontSize(10)},w=(y,z=4)=>{const D=a.splitTextToSize(y,s-l*2-z);d(D.length*13+4),a.text(D,l+z,c),c+=D.length*13+4};g("Booking Details");const k=[["Host Organization",n.host_organization_name],["Event Date",n.show_date],["Venue",n.venue_name||n.venue_or_city],["Official Maximum Seated Capacity",n.venue_capacity?String(n.venue_capacity):""],["Capacity Confirmed as Official",n.capacity_confirmed?"Yes":""],["500-Seat Requirement Met",n.capacity_requirement_met?"Yes":"No"],["Below 500 Response",n.capacity_below_500_response==="already_discussed"?"Already discussed and received approval":n.capacity_below_500_response==="need_to_discuss"?"Needs discussion before signing":""],["Expected Attendance",n.expected_attendance?String(n.expected_attendance):""],["Admission",n.admission_type?Du[n.admission_type]||n.admission_type:""],["Registration Owner",n.registration_owner||""],["Agreed Show Fee",n.agreed_show_fee],["Agreed Travel Charges",n.agreed_travel_charges],["Deposit Amount",n.deposit_amount]];for(const[y,z]of k)!z&&z!=="No"||w(`${y}: ${z}`);c+=8,g("Contact Information");const m=[["Authorized Representative",n.primary_contact_name],["Title",n.primary_contact_title],["Phone",n.primary_contact_phone],["Email",n.primary_contact_email],["Secondary Contact",n.secondary_contact_name],["Secondary Contact Phone",n.secondary_contact_phone],["Secondary Contact Email",n.secondary_contact_email]];for(const[y,z]of m)z&&w(`${y}: ${z}`);c+=8,n.indoor_outdoor&&(g("Event Setting"),w(`Indoor or Outdoor: ${n.indo
185or_outdoor}`),n.indoor_outdoor==="Outdoor"&&n.outdoor_weather_plan&&w(`Weather or Indoor Backup Plan: ${n.outdoor_weather_plan}`),c+=8),g("Payment Information");for(const y of yr.paymentInfo)w(`• ${y}`);c+=8,g("Cancellation Policy");for(const y of yr.cancellationPolicy)w(`• ${y}`);c+=8,g("Terms and Conditions");for(const y of yr.termsAndConditions)w(y);c+=8,g("Recording & Promotional Use");for(const y of yr.recordingAndPromo)w(y);c+=8,g("Requirements to Confirm");let F={};try{F=typeof n.rider_confirmations=="string"?JSON.parse(n.rider_confirmations):n.rider_confirmations||{}}catch{F={}}for(const y of Xa){if(y.outdoorOnly&&n.indoor_outdoor!=="Outdoor")continue;const z=F[y.key]||"Not confirmed",D=z==="yes"?"Yes, we can provide this.":z==="discuss"?"We need to discuss this.":"Not confirmed";d(20),a.setFont("helvetica","bold"),a.setFontSize(10),w(`• ${y.text}`),a.setFont("helvetica","normal"),w(`  Confirmation: ${D}`),c+=2}c+=6,g("Additional Show Information");for(const y of Tu){d(20),a.setFont("helvetica","bold"),a.setFontSize(10),w(y.title+(y.label?` (${y.label})`:"")),a.setFont("helvetica","normal");for(const z of y.items)w(`• ${z}`);c+=2}
185d(20),w(`Day-of Contact: ${pa.name} — ${pa.email} — ${pa.phone}`),c+=8,r&&r.representative_name&&(g("Statement of Faith Acknowledgment"),w(`Representative: ${r.representative_name} (${r.representative_title||""})`),w(`Date: ${r.acknowledgment_date?new Date(r.acknowledgment_date).toLocaleString():""}`),c+=8),g("Required Acknowledgments");for(const y of Qs){const z=n[y.key]?"[x]":"[ ]";w(`${z} ${y.text}`)}n.indoor_outdoor==="Outdoor"&&n.outdoor_acknowledgment&&w("[x] I understand that our organization is responsible for having a weather plan and that the cancellation and rainout terms in this agreement still apply."),c+=8,g("Electronic Signature");const j=[["Authorized Representative Full Legal Name",n.signer_full_name],["Representative Title",n.signer_title],["Organization",n.signer_organization||n.host_organization_name],["Signature Date",n.signature_date||new Date().toISOString().slice(0,10)]];for(const[y,z]of j)z&&w(`${y}: ${z}`);if(t){d(130),a.setFont("helvetica","bold"),a.setFontSize(11),a.text("Drawn Signature:",l+4,c),c+=8;try{a.addImage(t,"PNG",l+4,c,240,90),c+=100}catch{a.text("(Signature image attached)",l+4,c+20),c+=30}}const C=a.internal.getNumberOfPages();for(let y=1;y<=C;y++)a.setPage(y),a.setDrawColor(220,220,220),a.line(l,h-40,s-l,h-40),a.setFont("helvetica","normal"),a.setFontSize(8),a.setTextColor(120,120,120),a.text("Good News Guys Live Show Agreement & Event Rider",l,h-26),a.text(`Page ${y} of ${C}`,s-l,h-26,{align:"right"}),a.setTextColor(Hs);if(n.is_test)for(let y=1;y<=C;y++)a.setPage(y),a.setTextColor(255,0,0),a.setFontSize(60),a.setFont("helvetica","bold"),a.text("TEST SUBMISSION",s/2,h/2,{align:"center",angle:45}),a.setTextColor(Hs);return a.output("blob")}function G2({value:n,onChange:t}){const e=Je.useRef(null),r=Je.useRef(!1),a=Je.useRef(null),s=Je.useRef(!1),[h,l]=Je.useState(!1),c=Je.useRef(t);Je.useEffect(()=>{c.current=t},[t]);const d=Je.useCallback(j=>{const C=e.current;if(!C)return;const y=window.devicePixelRatio||1,z=C.getBoundingClientRect();if(z.width===0||z.height===0)return;let D=null;if(j&&s.current)try{D=C.toDataURL("image/png")}catch{}C.width=z.width*y,C.height=z.height*y;const q=C.getContext("2d");if(q.scale(y,y),q.lineCap="round",q.lineJoin="round",q.lineWidth=2.5,q.strokeStyle="#051d70",q.fillStyle="#ffffff",q.fillRect(0,0,z.width,z.height),D){const ae=new Image;ae.onload=()=>{var se;const ge=(se=e.current)==null?void 0:se.getContext("2d");ge&&ge.drawImage(ae,0,0,z.width,z.height)},ae.src=D}},[]);Je.useEffect(()=>{d(!1);const j=()=>d(!0);return window.addEventListener("resize",j),()=>window.removeEventListener("resize",j)},[d]),Je.useEffect(()=>{if(!n||!n.startsWith("data:"))return;const j=e.current;if(!j)return;const C=j.getContext("2d"),y=j.getBoundingClientRect(),z=new Image;z.onload=()=>{C.fillStyle="#ffffff",C.fillRect(0,0,y.width,y.height),C.drawImage(z,0,0,y.width,y.height),s.current=!0,l(!0)},z.src=n},[]);const g=j=>{const y=e.current.getBoundingClientRect();return{x:j.clientX-y.left,y:j.clientY-y.top}},w=j=>{var C;j.preventDefault(),r.current=!0,a.current=g(j);try{(C=e.current)==null||C.setPointerCapture(j.pointerId)}catch{}},k=j=>{var z;if(!r.current)return;j.preventDefault();const C=(z=e.current)==null?void 0:z.getContext("2d");if(!C)return;const y=g(j);C.beginPath(),C.moveTo(a.current.x,a.current.y),C.lineTo(y.x,y.y),C.stroke(),a.current=y,s.current=!0},m=j=>{var C;if(j&&j.preventDefault(),!!r.current){r.current=!1;try{(C=e.current)==null||C.releasePointerCapture(j.pointerId)}catch{}if(s.current){const y=e.current.toDataURL("image/png");l(!0),c.current(y)}}},F=()=>{const j=e.current,C=j==null?void 0:j.getContext("2d"),y=j==null?void 0:j.getBoundingClientRect();!C||!y||(C.fillStyle="#ffffff",C.fillRect(0,0,y.width,y.height),s.current=!1,l(!1),c.current(""))};return p.jsxs("div",{children:[p.jsxs("div",{className:"relative rounded-2xl border-2 border-[#051d70]/20 bg-white overflow-hidden",children:[p.jsx("canvas",{ref:e,className:"w-full h-44 cursor-crosshair block",style:{touchAction:"none"},onPointerDown:w,onPointerMove:k,onPointerUp:m,onPointerLeave:m,onPointerCancel:m,"aria-label":"Signature drawing pad"}),!h&&p.jsx("span",{className:"absolute left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2 text-[#051d70]/30 text-sm font-medium pointer-events-none select-none",children:"Draw your signature here"})]}),p.jsxs("div",{className:"flex items-center justify-between mt-2",children:[p.jsx("p",{className:"text-xs text-[#051d70]/60",children:"Use your finger or mouse to sign. Your signature is saved automatically."}),p.jsxs("button",{type:"button",onClick:F,className:"inline-flex items-center gap-1.5 text-xs font-semibold text-[#051d70] bg-[#fff22c] hover:bg-[#fff22c]/80 rounded-full px-3 py-1.5 transition-colors",children:[p.jsx(Ef,{className:"w-3.5 h-3.5"})," Clear"]})]})]})}function oo({compact:n=!1}){return p.jsx("div",{className:`rounded-2xl bg-[#fff22c]/15 border-2 border-[#fff22c]/50 ${n?"p-3":"p-4"}`,children:p.jsxs("div",{className:"flex items-start gap-2.5",children:[p.jsx(es,{className:"w-4 h-4 text-[#051d70] flex-shrink-0 mt-0.5"}),p.jsxs("p",{className:`text-[#051d70] leading-relaxed ${n?"text-xs":"text-sm"}`,children:["Something doesn’t look right, or is there a rider requirement your organization may not be able to meet? Please contact"," ",p.jsxs("a",{href:`mailto:${wc}
185`,className:"font-bold underline hover:text-[#FF1F53] inline-flex items-center gap-0.5",children:[p.jsx(bf,{className:"w-3 h-3"}),wc]})," ","before signing."]})]})})}function W2({form:n,set:t,errors:e,capacityExceptionApproved:r}){const a=n.venue_capacity?Number(n.venue_capacity):0,s=a>0,h=s&&a>=qr,l=s&&a<qr;return Je.useEffect(()=>{l&&r&&!n.capacity_below_500_response&&t("capacity_below_500_response","already_discussed")},[l,r,n.capacity_below_500_response,t]),p.jsxs("div",{className:"space-y-5",children:[p.jsxs("div",{children:[p.jsx(pn,{label:"What is the venue's official maximum seated capacity?",required:!0,error:e.venue_capacity,hint:"Please enter the official seated capacity provided by your venue or facilities team. Do not enter an estimate or your expected attendance.",children:p.jsx(Un,{type:"number",value:n.venue_capacity||"",onChange:c=>{t("venue_capacity",c);const d=Number(c);c&&d>0&&d>=qr&&n.capacity_below_500_response&&t("capacity_below_500_response","")},placeholder:"e.g. 500"})}),s&&p.jsx("div",{className:"mt-3",children:p.jsx(Ka,{checked:n.capacity_confirmed,onChange:c=>t("capacity_confirmed",c),label:"I confirm that this is the venue's official maximum seated capacity, not an attendance estimate.",error:e.capacity_confirmed,required:!0})}),h&&p.jsxs("div",{className:"mt-3 flex items-center gap-2 p-3 rounded-xl bg-[#2ABE68]/10 border-2 border-[#2ABE68]/30",children:[p.jsx("div",{className:"w-5 h-5 rounded-full bg-[#2ABE68] flex items-center justify-center flex-shrink-0",children:p.jsx(Ur,{className:"w-3.5 h-3.5 text-white"})}),p.jsx("p",{className:"text-sm font-semibold text-[#2ABE68]",children:"Confirmed. This venue meets the required minimum capacity of 500 seats."})]}),l&&p.jsxs("div",{className:"mt-3 space-y-3",children:[p.jsxs("div",{className:"flex items-center gap-2 p-3 rounded-xl bg-[#FF1F53]/8 border-2 border-[#FF1F53]/25",children:[p.jsx(es,{className:"w-5 h-5 text-[#FF1F53] flex-shrink-0"}),p.jsx("p",{className:"text-sm font-semibold text-[#FF1F53]",children:"Your venue is below the required minimum capacity of 500 seats. Please choose one:"})]}),p.jsxs("div",{children:[p.jsx(Ya,{value:n.capacity_below_500_response||"",onChange:c=>t("capacity_below_500_response",c),options:Yf,name:"capacity_below_500_response"}),e.capacity_below_500_response&&p.jsx("p",{className:"text-xs text-[#FF1F53] mt-1.5 font-medium",role:"alert",children:e.capacity_below_500_response})]}),n.capacity_below_500_response==="need_to_discuss"&&p.jsx(oo,{})]})]}),p.jsx("div",{children:p.jsx(pn,{label:"Approximately how many guests do you expect? (estimate)",required:!0,error:e.expected_attendance,hint:"This is an estimate and does not need to match the venue's official capacity.",children:p.jsx(Un,{type:"number",value:n.expected_attendance||"",onChange:c=>t("expected_attendance",c),placeholder:"e.g. 350"})})}),p.jsx("div",{children:p.jsx(pn,{label:"Will this event be free to attend or will guests purchase tickets?",required:!0,error:e.admission_type,children:p.jsx(Ya,{value:n.admission_type||"",onChange:c=>{t("admission_type",c),n.registration_owner&&t("registration_owner",""),n.ticketing_acknowledgment&&t("ticketing_acknowledgment",!1)},options:Hf,name:"admission_type"})})}),n.admission_type==="Free to attend"&&p.jsxs("div",{className:"p-4 rounded-2xl bg-[#2fc7ff]/8 border-2 border-[#2fc7ff]/25 space-y-3",children:[p.jsx(pn,{label:"Who will create and manage the registration page?",required:!0,error:e.registration_owner,children:p.jsx(Ya,{value:n.registration_owner||"",onChange:c=>t("registration_owner",c),options:Vf,name:"registration_owner"})}),p.jsx("p",{className:"text-xs text-[#051d70]/70 leading-relaxed",children:"All free public events must have a registration page. If your organization is not creating one, the Good News Guys team will create it."})]}),n.admission_type==="Ticketed or paid admission"&&p.jsxs("div",{className:"p-4 rounded-2xl bg-[#2fc7ff]/8 border-2 border-[#2fc7ff]/25 space-y-3",children:[p.jsx("p",{className:"text-xs text-[#051d70]/70 leading-relaxed",children:"Your organization will be responsible for creating and managing ticket sales unless another arrangement has been approved by the Good News Guys."}),p.jsx(Ka,{checked:n.ticketing_acknowledgment,onChange:c=>t("ticketing_acknowledgment",c),label:"I understand that our organization is responsible for managing ticket sales for this event.",error:e.ticketing_acknowledgment,required:!0})]})]})}function H2({form:n,set:t,errors:e,indoorOutdoor:r}){const a=Xa.filter(h=>!h.outdoorOnly||r==="Outdoor"),s=a.some(h=>n[`rider_${h.key}`]==="discuss");return p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-black text-[#051d70] mb-1",style:{fontFamily:"'Rubik', sans-serif"},children:"Requirements to Confirm"}),p.jsx("p",{className:"text-xs text-[#051d70]/70 mb-4",children:"Please confirm each requirement below. If any requirement needs discu
185ssion, please contact the Good News Guys before signing."}),p.jsx("div",{className:"space-y-3",children:a.map(h=>{const l=n[`rider_${h.key}`],c=l==="yes",d=l==="discuss",g=e[`rider_${h.key}`];return p.jsxs("div",{className:`p-4 rounded-2xl border-2 transition-all ${c?"border-[#2ABE68]/30 bg-[#2ABE68]/5":d?"border-[#F0A500]/50 bg-[#F0A500]/8":"border-[#051d70]/15 bg-white"}`,children:[p.jsxs("div",{className:"flex items-start gap-2.5 mb-3",children:[c?p.jsx("div",{className:"w-6 h-6 rounded-full bg-[#2ABE68] flex items-center justify-center flex-shrink-0 mt-0.5",children:p.jsx(Ur,{className:"w-4 h-4 text-white"})}):d?p.jsx("div",{className:"w-6 h-6 rounded-full bg-[#F0A500] flex items-center justify-center flex-shrink-0 mt-0.5",children:p.jsx(es,{className:"w-4 h-4 text-white"})}):p.jsx("div",{className:"w-6 h-6 rounded-full border-2 border-[#051d70]/20 flex-shrink-0 mt-0.5"}),p.jsx("p",{className:"text-sm text-[#051d70] leading-snug font-medium flex-1",children:h.text})]}),p.jsxs("div",{className:"ml-8",children:[p.jsx(Ya,{value:l||"",onChange:w=>t(`rider_${h.key}`,w),options:Gf,name:`rider_${h.key}`}),g&&p.jsx("p",{className:"text-xs text-[#FF1F53] mt-1.5 font-medium",role:"alert",children:g})]})]},h.key)})}),s&&p.jsx("div",{className:"mt-4",children:p.jsx(oo,{compact:!0})})]})}const V2={primary_contact_name:"",primary_contact_title:"",primary_contact_phone:"",primary_contact_email:"",secondary_contact_name:"",secondary_contact_phone:"",secondary_contact_email:"",indoor_outdoor:"",venue_capacity:"",capacity_confirmed:!1,capacity_below_500_response:"",expected_attendance:"",admission_type:"",registration_owner:"",ticketing_acknowledgment:!1,outdoor_weather_plan:"",outdoor_acknowledgment:!1,rider_venue_access:"",rider_presentation_display:"",rider_sound_system:"",rider_onsite_sound_support:"",rider_presentation_connection:"",rider_merchandise:"",rider_volunteers:"",rider_outdoor_covered:"",confirm_info_accurate:!1,agree_live_event_rider:!1,consent_electronic:!1,authorized_to_sign:!1,agree_live_show_agreement:!1,signer_full_name:"",signer_title:"",signature_image_url:"",typed_signature:""};function Y2(n,t,e){const[r,a]=n.split(","),s=atob(a),h=new Uint8Array(s.length);for(let l=0;l<s.length;l++)h[l]=s.charCodeAt(l);return new File([h],t,{type:e})}function $2(n){const t=(n||"").toLowerCase();return t.includes("waived")||t.includes("not required")?[`Deposit: ${n}`,"Travel expenses are due 8 weeks prior to event date.","Mileage fees are due before travel ensues.","Balance is due the day of the show.","Please make checks payable to: GOOD NEWS GUYS."]:[n?`${n} deposit is due at time of booking.`:yr.paymentInfo[0],...yr.paymentInfo.slice(1)]}function J2({booking:n,onSuccess:t,onClose:e}){const[r,a]=Je.useState(()=>({...V2,primary_contact_name:(n==null?void 0:n.primary_contact_name)||"",primary_contact_email:(n==null?void 0:n.primary_contact_email)||"",signer_organization:(n==null?void 0:n.host_organization_name)||"",show_date:(n==null?void 0:n.approved_event_date)||"",agreed_show_fee:(n==null?void 0:n.agreed_show_fee)||"",agreed_travel_charges:(n==null?void 0:n.agreed_travel_charges)||"",deposit_amount:(n==null?void 0:n.required_deposit_amount)||"",signature_date:new Date().toISOString().slice(0,10)})),[s,h]=Je.useState({}),[l,c]=Je.useState(!1),[d,g]=Je.useState(""),[w,k]=Je.useState(""),m=Je.useRef(null),F=(D,q)=>a(ae=>({...ae,[D]:q})),j=()=>{var D;return(D=m.current)==null?void 0:D.scrollIntoView({behavior:"smooth",block:"start"})},C=()=>{const D={},q=se=>{(!r[se]||String(r[se]).trim()==="")&&(D[se]="This field is required.")};q("primary_contact_name"),q("primary_contact_title"),q("primary_contact_phone"),q("primary_contact_email"),q("indoor_outdoor"),q("venue_capacity"),q("expected_attendance"),q("admission_type"),q("signer_full_name"),q("signer_title"),r.signature_image_url||(D.signature_image_url="Please draw your signature."),r.primary_contact_email&&!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(r.primary_contact_email.trim())&&(D.primary_contact_email="Please enter a valid email address.");const ae=Number(r.venue_capacity);r.venue_capacity&&ae>0&&!r.capacity_confirmed&&(D.capacity_confirmed="Please confirm this is the venue's official maximum seated capacity."),r.venue_capacity&&ae>0&&ae<qr&&(r.capacity_below_500_response?r.capacity_below_500_response==="need_to_discu
185ss"&&(D.capacity_below_500_response="Please contact the Good News Guys to discuss this capacity before signing."):D.capacity_below_500_response="Please choose one option before signing."),r.admission_type==="Free to attend"?r.registration_owner||(D.registration_owner="Please select who will create and manage the registration page."):r.admission_type==="Ticketed or paid admission"&&(r.ticketing_acknowledgment||(D.ticketing_acknowledgment="This acknowledgment is required for ticketed events."));const ge=Xa.filter(se=>!se.outdoorOnly||r.indoor_outdoor==="Outdoor");for(const se of ge){const J=`rider_${se.key}`;r[J]?r[J]==="discuss"&&(D[J]="Please contact the Good News Guys about this requirement before signing."):D[J]="Please confirm this requirement."}r.indoor_outdoor==="Outdoor"&&((!r.outdoor_weather_plan||!r.outdoor_weather_plan.trim())&&(D.outdoor_weather_plan="Please describe your weather or indoor backup plan."),r.outdoor_acknowledgment||(D.outdoor_acknowledgment="This acknowledgment is required."));for(const se of Qs)r[se.key]||(D[se.key]="This acknowledgment is required.");return D},y=async()=>{var q,ae,ge,se;const D=C();if(h(D),Object.keys(D).length){j();return}if(!w){c(!0),g("");try{const J={};for(const ie of Xa){const oe=`rider_${ie.key}`;r[oe]&&(J[ie.key]=r[oe])}const U={...r,rider_confirmations:JSON.stringify(J),signer_full_name:r.signer_full_name||r.primary_contact_name,signer_title:r.signer_title||r.primary_contact_title,typed_signature:r.signer_full_name,host_organization_name:n.host_organization_name,show_date:n.approved_event_date||"",agreed_show_fee:n.agreed_show_fee||"",agreed_travel_charges:n.agreed_travel_charges||"",deposit_amount:n.required_deposit_amount||"",signer_organization:n.host_organization_name,venue_name:n.venue_name||"",venue_or_city:n.venue_or_city||"",capacity_requirement_met:Number(r.venue_capacity)>=qr,capacity_exception_used:Number(r.venue_capacity)>0&&Number(r.venue_capacity)<qr&&r.capacity_below_500_response==="already_discussed",capacity_below_500_response:r.capacity_below_500_response,is_test:!!(n!=null&&n.is_test)};let Q="";if(r.signature_image_url&&r.signature_image_url.startsWith("data:")){const ie=Y2(r.signature_image_url,"signature.png","image/png"),oe=await gc.integrations.Core.UploadFile({file:ie});Q=oe.file_url||((q=oe.data)==null?void 0:q.file_url)||""}else r.signature_image_url&&(Q=r.signature_image_url);let L="";try{const ie=z2(U,r.signature_image_url,"",n==null?void 0:n.sof_data),oe=new File([ie],"booking-agreement.pdf",{type:"application/pdf"}),ce=await gc.integrations.Core.UploadFile({file:oe});L=ce.file_url||((ae=ce.data)==null?void 0:ae.file_url)||""}catch{}const O={primary_contact_name:r.primary_contact_name,primary_contact_title:r.primary_contact_title,primary_contact_phone:r.primary_contact_phone,primary_contact_email:r.primary_contact_email,secondary_contact_name:r.secondary_contact_name,secondary_contact_phone:r.secondary_contact_phone,secondary_contact_email:r.secondary_contact_email,indoor_outdoor:r.indoor_outdoor,venue_capacity:Number(r.venue_capacity)||0,capacity_confirmed:r.capacity_confirmed,capacity_requirement_met:Number(r.venue_capacity)>=qr,capacity_exception_used:Number(r.venue_capacity)>0&&Number(r.venue_capacity)<qr&&r.capacity_below_500_response==="already_discussed",capacity_below_500_response:r.capacity_below_500_response,expected_attendance:Number(r.expected_attendance)||0,admission_type:r.admission_type,registration_owner:r.admission_type==="Free to attend"?r.registration_owner:"",ticketing_acknowledgment:r.admission_type==="Ticketed or paid admission"?r.ticketing_acknowledgment:!1,rider_confirmations:JSON.stringify(J),outdoor_weather_plan:r.indoor_outdoor==="Outdoor"?r.outdoor_weather_plan:"",outdoor_acknowledgment:r.indoor_outdoor==="Outdoor"?r.outdoor_acknowledgment:!1,confirm_info_accurate:r.confirm_info_accurate,agree_live_event_rider:r.agree_live_event_rider,consent_electronic:r.consent_electronic,authorized_to_sign:r.authorized_to_sign,agree_live_show_agreement:r.agree_live_show_agreement,signer_full_name:r.signer_full_name||r.primary_contact_name,signer_title:r.signer_title||r.primary_contact_title,typed_signature:r.signer_full_name,signature_date:r.signature_date},V=await Fi.submitBookingAgreement({data:O,signatureImageUrl:Q,pdfUrl:L,honeypot:w,booking_token:n==null?void 0:n.booking_token}),W=V.data||V;
185if(!W||!W.success)throw new Error((W==null?void 0:W.error)||"Submission failed. Please review the form and try again.");t({confirmationNumber:W.confirmationNumber,pdfUrl:W.pdfUrl||L})}catch(J){const U=((se=(ge=J==null?void 0:J.response)==null?void 0:ge.data)==null?void 0:se.error)||(J==null?void 0:J.message)||"Submission failed. Please try again.";g(U),c(!1),j()}}},z=$2(n==null?void 0:n.required_deposit_amount);return p.jsxs("div",{ref:m,className:"pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(Zs,{className:"w-6 h-6 text-[#FF1F53]"}),p.jsx("h2",{className:"text-lg sm:text-xl font-black text-[#051d70]",style:{fontFamily:"'Rubik', sans-serif"},children:"Good News Guys Live Show Agreement & Event Rider"})]}),d&&p.jsxs("div",{className:"mb-5 flex items-start gap-2 p-4 rounded-2xl bg-[#FF1F53]/10 border-2 border-[#FF1F53]/40",role:"alert",children:[p.jsx(es,{className:"w-5 h-5 text-[#FF1F53] flex-shrink-0 mt-0.5"}),p.jsx("p",{className:"text-sm text-[#051d70]",children:d})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#2fc7ff]/5 border-2 border-[#051d70]/10",children:[p.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-[#051d70]/60 mb-3",children:[p.jsx(xa,{className:"w-3 h-3"})," Booking details from your Good News Guys record"]}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Host Organization"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:n.host_organization_name})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Event Date"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:K2(n.approved_event_date)||"Not specified"})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Venue"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:n.venue_name||n.venue_or_city||"Not specified"})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Agreed Show Fee"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:n.agreed_show_fee||"Not specified"})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Agreed Travel Charges"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:n.agreed_travel_charges||"Not specified"})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Required Deposit"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:n.required_deposit_amount||"Not specified"})]})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Contact Information"}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-4",children:[p.jsx(pn,{label:"Authorized representative's full name",required:!0,error:s.primary_contact_name,children:p.jsx(Un,{value:r.primary_contact_name,onChange:D=>F("primary_contact_name",D),placeholder:"Full legal name"})}),p.jsx(pn,{label:"Representative's title",required:!0,error:s.primary_contact_title,children:p.jsx(Un,{value:r.primary_contact_title,onChange:D=>F("primary_contact_title",D),placeholder:"e.g. Senior Pastor, Event Coordinator"})}),p.jsx(pn,{label:"Primary phone number",required:!0,error:s.primary_contact_phone,children:p.jsx(Un,{type:"tel",value:r.primary_contact_phone,onChange:D=>F("primary_contact_phone",D),placeholder:"(555) 123-4567"})}),p.jsx(pn,{label:"Primary email address",required:!0,error:s.primary_contact_email,children:p.jsx(Un,{type:"email",value:r.primary_contact_email,onChange:D=>F("primary_contact_email",D),placeholder:"[email protected]"})})]}),p.jsxs("div",{className:"mt-4 p-4 rounded-2xl bg-[#fff22c]/10 border-2 border-[#fff22c]/40",children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70] mb-3",children:"Optional Secondary Contact"}),p.jsxs("div",{className:"grid sm:grid-cols-3 gap-4",children:[p.jsx(pn,{label:"Secondary contact name",children:p.jsx(Un,{value:r.secondary_contact_name,onChange:D=>F("secondary_contact_name",D),placeholder:"Full name"})}),p.jsx(pn,{label:"Secondary contact phone",children:p.jsx(Un,{type:"tel",value:r.secondary_contact_phone,onChange:D=>F("secondary_contact_phone",D),placeholder:"(555) 123-4567"})}),p.jsx(pn,{label:"Secondary contact email",children:p.jsx(Un,{type:"email",value:r.secondary_contact_email,onChange:D=>F("secondary_contact_email",D),placeholder:"[email protected]"})})]})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx(pn,{label:"Will the show take place indoors or outdoors?",required:!0,error:s.indoor_outdoor,children:p.jsx(Ya,{value:r.
185indoor_outdoor,onChange:D=>F("indoor_outdoor",D),options:Mf,name:"indoor_outdoor"})}),r.indoor_outdoor==="Outdoor"&&p.jsxs("div",{className:"mt-4 p-4 rounded-2xl bg-[#2fc7ff]/10 border-2 border-[#2fc7ff]/30 space-y-4",children:[p.jsx(pn,{label:"Weather or indoor backup plan",required:!0,error:s.outdoor_weather_plan,children:p.jsx(zf,{value:r.outdoor_weather_plan,onChange:D=>F("outdoor_weather_plan",D),placeholder:"Describe your weather plan or indoor backup location",rows:3})}),p.jsx(Ka,{checked:r.outdoor_acknowledgment,onChange:D=>F("outdoor_acknowledgment",D),label:Wf,error:s.outdoor_acknowledgment,required:!0})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Event Details"}),p.jsx(W2,{form:r,set:F,errors:s,capacityExceptionApproved:!!(n!=null&&n.capacity_exception_approved)})]}),p.jsxs("div",{className:"mb-5 p-5 rounded-2xl bg-white border-2 border-[#051d70]/10 space-y-5",children:[p.jsxs("div",{children:[p.jsx("h3",{className:"text-sm font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:yr.title}),p.jsx("p",{className:"text-xs font-bold text-[#051d70]/60 uppercase tracking-wide mb-2",children:"Payment Information"}),p.jsx("ul",{className:"space-y-1.5",children:z.map((D,q)=>p.jsxs("li",{className:"text-sm text-[#051d70] leading-relaxed flex items-start gap-2",children:[p.jsx("span",{className:"text-[#FF1F53] flex-shrink-0 mt-0.5",children:"•"})," ",D]},q))})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70]/60 uppercase tracking-wide mb-2",children:"Cancellation Policy"}),p.jsx("ul",{className:"space-y-1.5",children:yr.cancellationPolicy.map((D,q)=>p.jsxs("li",{className:"text-sm text-[#051d70] leading-relaxed flex items-start gap-2",children:[p.jsx("span",{className:"text-[#FF1F53] flex-shrink-0 mt-0.5",children:"•"})," ",D]},q))})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70]/60 uppercase tracking-wide mb-2",children:"Terms and Conditions"}),p.jsx("div",{className:"space-y-2",children:yr.termsAndConditions.map((D,q)=>p.jsx("p",{className:"text-sm text-[#051d70] leading-relaxed",children:D},q))})]}),p.jsxs("div",{children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70]/60 uppercase tracking-wide mb-2",children:"Recording & Promotional Use"}),p.jsx("p",{className:"text-sm text-[#051d70] leading-relaxed",children:yr.recordingAndPromo[0]})]})]}),p.jsx("div",{className:"mb-5 p-5 rounded-2xl bg-white border-2 border-[#051d70]/10",children:p.jsx(H2,{form:r,set:F,errors:s,indoorOutdoor:r.indoor_outdoor})}),p.jsxs("div",{className:"mb-5 p-5 rounded-2xl bg-[#2fc7ff]/5 border-2 border-[#051d70]/10",children:[p.jsx("h3",{className:"text-sm font-black text-[#051d70] mb-1",style:{fontFamily:"'Rubik', sans-serif"},children:"Additional Show Information"}),p.jsx("p",{className:"text-xs text-[#051d70]/70 mb-4",children:"The following information is for your reference. No confirmation is required for these items."}),p.jsxs("div",{className:"space-y-4",children:[Tu.map(D=>p.jsxs("div",{children:[p.jsxs("div",{className:"flex items-center gap-2 mb-1.5",children:[p.jsx("p",{className:"text-xs font-bold text-[#FF1F53] uppercase tracking-wide",style:{fontFamily:"'Rubik', sans-serif"},children:D.title}),D.label&&p.jsx("span",{className:"text-[10px] font-bold text-[#051d70]/60 bg-[#fff22c]/20 border border-[#fff22c]/40 rounded-full px-2 py-0.5",children:D.label})]}),p.jsx("ul",{className:"space-y-1.5",children:D.items.map((q,ae)=>p.jsxs("li",{className:"text-sm text-[#051d70] leading-relaxed flex items-start gap-2",children:[p.jsx("span",{className:"text-[#2fc7ff] flex-shrink-0 mt-0.5",children:"•"})," ",q]},ae))})]},D.title)),p.jsxs("div",{className:"pt-3 border-t border-[#051d70]/10",children:[p.jsx("p",{className:"text-xs font-bold text-[#FF1F53] uppercase tracking-wide mb-1.5",style:{fontFamily:"'Rubik', sans-serif"},children:"Day-of Contact"}),p.jsxs("p",{className:"text-sm text-[#051d70]",children:[pa.name," — ",pa.email," — ",pa.phone]})]})]})]}),p.jsx("div",{className:"mb-5",children:p.jsx(oo,{})}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Required Acknowledgments"}),p.jsx("div",{className:"space-y-3",children:Qs.map(D=>p.jsx(Ka,{checked:r[D.key],onChange:q=>F(D.key,q),label:D.text,error:s[D.key],required:!0},D.key))})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#fff22c]/10 border-2 border-[#fff22c]/40",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Signature"}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-4 mb-4",children:[p.jsx(pn,{label:"Authorized representative's full legal name",required:!0,error:s.signer_full_name,children:p.jsx(Un,{value:r.signer_full_name,onChange:D=>F("signer_full_name",D),placeholder:"Full legal name"})}),p.jsx(pn,{label:"Representative's title",required:!0,error:s.signer_title,children:p.jsx(Un,{value:r.signer_title,onChange:D=>F("signer_title",D),placeholder:"e.g. Senior Pastor"})})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("p",{className:"text-xs text-[#051d70]/60 mb-1.5",children:"Organization"}),p.jsx("div",{className:"px-4 py-3 rounded-xl border-2 border-[#051d70]/10 bg-[#051d70]/5 text-sm text-[#051d70] font-semibold",children:n.host_organization_name})]}),p.jsxs("div",{className:"mb-4",children:[p.jsx("p",{className:"text-xs text-[#051d70]/60 mb-1.5",children:"Signature date (auto)"}),p.jsx("div",{className:"px-4 py-3 rounded-xl border-2 border-[#051d70]/10 bg-[#051d70]/5 text-sm text-[#051d70]/70",children:new Date().toLocaleDateString(void 0,{month:"long",day:"numeric",year:"numeric"})})]}),p.jsxs("div",{children:[p.jsxs("label",{className:"block text-sm font-semibold text-[#051d70] mb-1.5",children:["Draw your signature ",p.jsx("span",{className:"text-[#FF1F53]",children:"*"})]}),p.jsx(G2,{value:r.signature_image_url,onChange:D=>F("signature_image_url",D)}),s.signature_image_url&&p.jsx("p",{className:"text-xs text-[#FF1F53] mt-1 font-medium",role:"alert",children:s.signature_image_url})]})]}),p.jsx("input",{type:"text",value:w,onChange:D=>k(D.target.value),className:"hidden",tabIndex:-1,autoComplete:"off","aria-hidden":"true"}),p.jsxs("div",{className:"flex items-center justify-between mt-6 pt-5 border-t border-[#051d70]/10",children:[p.jsx("button",{type:"button",onClick:e,disabled:l,className:"inline-flex items-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors disabled:opacity-40 min-h-[44px]",children:"Cancel"}),p.jsx("button",{type:"button",onClick:y,disabled:l,className:"inline-flex items-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-6 py-3.5 rounded-full hover:scale-105 transition-transform disabled:opacity-60 min-h-[44px]",children:l?p.jsxs(p.Fragment,{children:[p.jsx(zr,{className:"w-4 h-4 animate-spin"})," Submitting..."]}):p.jsxs(p.Fragment,{children:[p.jsx(Ur,{className:"w-4 h-4"})," Sign & Submit Agreement"]})})]})]})}function K2(n){if(!n)return"";try{return new Date(n+"T00:00:00").toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function X2({open:n,onClose:t,onConfirm:e,loading:r}){return n?p.jsx("div",{className:"fixed inset-0 z-50 flex items-center justify-center bg-black/50 p-4",children:p.jsx("div",{className:"bg-white rounded-2xl shadow-2xl max-w-md w-full overflow-hidden",children:p.jsxs("div",{className:"p-5 sm:p-6 text-center",children:[p.jsx("div",{className:"w-12 h-12 rounded-full bg-[#FF1F53]/10 flex items-center justify-center mx-auto mb-4",children:p.jsx(vc,{className:"w-6 h-6 text-[#FF1F53]"})}),p.jsx("h3",{className:"text-lg font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:"Restart this demo?"}),p.jsx("p",{className:"text-sm text-[#051d70]/70 leading-relaxed mb-5",children:"This will clear only the test booking so the booking experience can be completed again."}),p.jsxs("div",{className:"flex gap-3",children:[p.jsx("button",{type:"button",onClick:t,disabled:r,className:"flex-1 inline-flex items-center justify-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors disabled:opacity-40 min-h-[44px]",children:"Cancel"}),p.jsx("button",{type:"button",onClick:e,disabled:r,className:"flex-1 inline-flex items-center justify-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-5 py-3.5 rounded-full hover:scale-105 transition-transform disabled:opacity-60 disabled:hover:scale-100 min-h-[44px]",children:r?p.jsxs(p.Fragment,{children:[p.jsx(zr,{className:"w-4 h-4 animate-spin"})," Restarting..."]}):p.jsxs(p.Fragment,{children:[p.jsx(vc,{className:"w-4 h-4"})," Restart Demo"]})})]})]})})}):null}function Z2(n){if(!n)return"";try{return new Date(n).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function Q2({open:n,onClose:t,booking:e}){if(!(e!=null&&e.sof_data))return null;const r=e.sof_data;return p.jsx(ya,{open:n,onClose:t,children:p.jsxs("div",{className:"pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(io,{className:"w-6 h-6 text-[#2ABE68]"}),p.jsx("h2",{className:"text-lg sm:text-xl font-black text-[#051d70]",style:{fontFamily:"'Rubik', sans-serif"},children:"Statement of Faith"})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#2ABE68]/8 border-2 border-[#2ABE68]/25",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[p.jsx(si,{className:"w-5 h-5 text-[#2ABE68]"}),p.jsx("p",{className:"text-sm font-bold text-[#2ABE68]",children:"Acknowledged"})]}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Representative"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.representative_name})]}),r.representative_title&&p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Title"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.representative_title})]}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Acceptance Date"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:Z2(r.acknowledgment_date)})]}),r.version&&p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Version"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.version})]})]})]}),p.jsxs("div",{className:"mb-5 p-5 rounded-2xl bg-white border-2 border-[#051d70]/10",children:[p.jsx("h3",{className:"text-base font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:da.title}),p.jsx("p",{className:"text-sm text-[#051d70]/70 italic mb-4",children:da.intro}),p.jsx("div",{className:"space-y-3",children:da.paragraphs.map((a,s)=>p.jsx("p",{className:"text-sm text-[#051d70] leading-relaxed",children:a},s))})]}),p.jsxs("div",{className:"p-4 rounded-2xl bg-[#051d70]/5 border-2 border-[#051d70]/10",children:[p.jsx("p",{className:"text-xs font-bold text-[#051d70] mb-2",children:"Acknowledgment"}),p.jsx("p",{className:"text-sm text-[#051d70]/80 leading-relaxed",children:Bu})]}),p.jsx("div",{className:"flex justify-end mt-6 pt-5 border-t border-[#051d70]/10",children:p.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:"Close"})})]})})}function ml(n){if(!n)return"";try{return new Date(n+(n.length===10?"T00:00:00":"")).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})}catch{return n}}function It({label:n,value:t}
185){if(!t&&t!==0&&t!==!1)return null;const e=typeof t=="boolean"?t?"Yes":"No":String(t);return p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:n}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70] break-words",children:e})]})}function e5({open:n,onClose:t,booking:e}){if(!(e!=null&&e.agreement))return null;const r=e.agreement;let a={};try{a=typeof r.rider_confirmations=="string"?JSON.parse(r.rider_confirmations):r.rider_confirmations||{}}catch{a={}}const s=Xa.filter(d=>!d.outdoorOnly||r.indoor_outdoor==="Outdoor"),h=r.venue_capacity?Number(r.venue_capacity):0,l=h>0&&h<qr,c=()=>{Pl(r.pdf_url,e.host_organization_name,e.approved_event_date)};return p.jsx(ya,{open:n,onClose:t,children:p.jsxs("div",{className:"pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(Zs,{className:"w-6 h-6 text-[#2ABE68]"}),p.jsx("h2",{className:"text-lg sm:text-xl font-black text-[#051d70]",style:{fontFamily:"'Rubik', sans-serif"},children:"Signed Agreement & Rider"})]}),p.jsxs("div",{className:"mb-4 p-3 rounded-xl bg-[#2ABE68]/8 border-2 border-[#2ABE68]/25 flex items-center gap-2",children:[p.jsx(Ur,{className:"w-4 h-4 text-[#2ABE68]"}),p.jsxs("p",{className:"text-sm font-semibold text-[#2ABE68]",children:["Signed on ",ml(r.signature_date||r.submitted_at)]})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#2fc7ff]/5 border-2 border-[#051d70]/10",children:[p.jsxs("div",{className:"flex items-center gap-1.5 text-xs text-[#051d70]/60 mb-3",children:[p.jsx(xa,{className:"w-3 h-3"})," Booking details"]}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3",children:[p.jsx(It,{label:"Host Organization",value:e.host_organization_name}),p.jsx(It,{label:"Event Date",value:ml(e.approved_event_date)}),p.jsx(It,{label:"Venue",value:e.venue_name||e.venue_or_city}),p.jsx(It,{label:"Agreed Show Fee",value:e.agreed_show_fee}),p.jsx(It,{label:"Agreed Travel Charges",value:e.agreed_travel_charges}),p.jsx(It,{label:"Required Deposit",value:e.required_deposit_amount})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Contact Information"}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 p-4 rounded-2xl bg-white border-2 border-[#051d70]/10",children:[p.jsx(It,{label:"Authorized Representative",value:r.primary_contact_name}),p.jsx(It,{label:"Title",value:r.primary_contact_title}),p.jsx(It,{label:"Phone",value:r.primary_contact_phone}),p.jsx(It,{label:"Email",value:r.primary_contact_email}),r.secondary_contact_name&&p.jsx(It,{label:"Secondary Contact",value:r.secondary_contact_name}),r.secondary_contact_phone&&p.jsx(It,{label:"Secondary Phone",value:r.secondary_contact_phone}),r.secondary_contact_email&&p.jsx(It,{label:"Secondary Email",value:r.secondary_contact_email})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Event Details"}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 p-4 rounded-2xl bg-white border-2 border-[#051d70]/10",children:[p.jsx(It,{label:"Indoor or Outdoor",value:r.indoor_outdoor}),p.jsx(It,{label:"Official Maximum Seated Capacity",value:r.venue_capacity}),p.jsx(It,{label:"Capacity Confirmed as Official",value:r.capacity_confirmed}),p.jsx(It,{label:"Meets 500-Seat Minimum",value:r.capacity_requirement_met?"Yes":"No"}),l&&r.capacity_below_500_response&&p.jsx(It,{label:"Below 500 Response",value:$f[r.capacity_below_500_response]||r.capacity_below_500_response}),p.jsx(It,{label:"Expected Attendance (estimate)",value:r.expected_attendance}),p.jsx(It,{label:"Admission",value:Du[r.admission_type]||r.admission_type}),r.registration_owner&&p.jsx(It,{label:"Registration Owner",value:r.registration_owner}),r.ticketing_acknowledgment&&p.jsx(It,{label:"Ticketing Acknowledgment",value:r.ticketing_acknowledgment}),r.indoor_outdoor==="Outdoor"&&r.outdoor_weather_plan&&p.jsxs("div",{className:"sm:col-span-2",children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Weather or Indoor Backup Plan"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:r.outdoor_weather_plan})]})]})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Requirements Confirmed"}),p.jsx("div",{className:"space-y-2",children:s.map(d=>{const g=a[d.key]||"Not confirmed";return p.jsxs("div",{className:`p-3 rounded-xl border-2 flex items-start gap-2.5 ${g==="yes"?"border-[#2ABE68]/30 bg-[#2ABE68]/5":"border-[#F0A500]/40 bg-[#F0A500]/5"}`,children:[g==="yes"?p.jsx(Ur,{className:"w-4 h-4 text-[#2ABE68] flex-shrink-0 mt-0.5"}):p.jsx(es,{className:"w-4 h-4 text-[#F0A500] flex-shrink-0 mt-0.5"}),p.jsxs("div",{children:[p.jsx("p",{className:"text-sm text-[#051d70] leading-snug",children:d.text}),p.jsx("p",{className:"text-xs font-semibold mt-0.5",style:{color:g==="yes"?"#2ABE68":"#F0A500"},children:g==="yes"?"Yes, we can provide this.":"We need to discu
185ss this."})]})]},d.key)})})]}),p.jsxs("div",{className:"mb-5",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Acknowledgments"}),p.jsx("div",{className:"space-y-2 p-4 rounded-2xl bg-white border-2 border-[#051d70]/10",children:Qs.map(d=>p.jsxs("div",{className:"flex items-start gap-2",children:[p.jsx("span",{className:`flex-shrink-0 ${r[d.key]?"text-[#2ABE68]":"text-[#051d70]/30"}`,children:r[d.key]?p.jsx(Ur,{className:"w-4 h-4 mt-0.5"}):"○"}),p.jsx("p",{className:"text-sm text-[#051d70] leading-snug",children:d.text})]},d.key))})]}),p.jsxs("div",{className:"mb-5 p-4 rounded-2xl bg-[#fff22c]/10 border-2 border-[#fff22c]/40",children:[p.jsx("h3",{className:"text-sm font-bold text-[#051d70] mb-3",style:{fontFamily:"'Rubik', sans-serif"},children:"Signature"}),p.jsxs("div",{className:"grid sm:grid-cols-2 gap-3 mb-3",children:[p.jsx(It,{label:"Authorized Representative",value:r.signer_full_name}),p.jsx(It,{label:"Title",value:r.signer_title}),p.jsx(It,{label:"Organization",value:e.host_organization_name}),p.jsx(It,{label:"Signature Date",value:ml(r.signature_date)})]}),r.signature_image_url&&p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Drawn Signature"}),p.jsx("div",{className:"mt-1 p-3 rounded-xl bg-white border-2 border-[#051d70]/10",children:p.jsx("img",{src:r.signature_image_url,alt:"Signature",className:"max-h-24 object-contain"})})]})]}),r.pdf_url&&p.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-end mt-6 pt-5 border-t border-[#051d70]/10",children:[p.jsxs("button",{type:"button",onClick:c,className:"inline-flex items-center justify-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-6 py-3.5 rounded-full hover:scale-105 transition-transform min-h-[44px]",children:[p.jsx(Zs,{className:"w-4 h-4"})," Download PDF"]}),p.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center justify-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:"Close"})]}),!r.pdf_url&&p.jsx("div",{className:"flex justify-end mt-6 pt-5 border-t border-[#051d70]/10",children:p.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:"Close"})})]})})}function t5({open:n,onClose:t,booking:e}){if(!e)return null;const r=e.required_deposit_amount||"Not specified",a=r.toLowerCase(),s=a.includes("waived")||a.includes("not required"),h=e.payment_submitted,l=e.payment_verified;let c="Not Submitted",d="#051d70",g=gl;return l?(c="Payment Verified",d="#2ABE68",g=si):h?(c="Awaiting Payment Verification",d="#051d70",g=zr):s&&(c="Deposit Waived",d="#2ABE68",g=io),p.jsx(ya,{open:n,onClose:t,children:p.jsxs("div",{className:"pt-2",children:[p.jsxs("div",{className:"flex items-center gap-2 mb-4",children:[p.jsx(gl,{className:"w-6 h-6 text-[#FF1F53]"}),p.jsx("h2",{className:"text-lg sm:text-xl font-black text-[#051d70]",style:{fontFamily:"'Rubik', sans-serif"},children:"Deposit Details"})]}),p.jsxs("div",{className:"space-y-4",children:[p.jsxs("div",{className:"p-4 rounded-2xl bg-[#2fc7ff]/5 border-2 border-[#051d70]/10",children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Deposit Amount"}),p.jsx("p",{className:"text-lg font-black text-[#051d70]",children:r})]}),p.jsxs("div",{className:"p-4 rounded-2xl border-2",style:{borderColor:`${d}40`,background:`${d}0d`},children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsx(g,{className:`w-5 h-5 ${h&&!l?"animate-spin":""}`,style:{color:d}}),p.jsxs("div",{children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Current Status"}),p.jsx("p",{className:"text-sm font-bold",style:{color:d},children:c})]})]}),h&&!l&&p.jsx("p",{className:"text-xs text-[#051d70]/70 mt-2 leading-relaxed",children:"Our team has received your payment submission and is verifying your deposit. You will be notified once it is verified."}),l&&p.jsx("p",{className:"text-xs text-[#051d70]/70 mt-2 leading-relaxed",children:"Your deposit has been verified by our team. Your booking is one step closer to confirmation!"}),s&&p.jsx("p",{className:"text-xs text-[#051d70]/70 mt-2 leading-relaxed",children:"No deposit payment is required for this booking. Our team will handle this."})]}),e.payment_submitted_at&&p.jsxs("div",{className:"p-4 rounded-2xl bg-[#051d70]/5 border-2 border-[#051d70]/10",children:[p.jsx("span",{className:"text-xs font-semibold text-[#051d70]/60",children:"Payment Submitted On"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:new Date(e.payment_submitted_at).toLocaleDateString("en-US",{month:"long",day:"numeric",year:"numeric"})})]})]}),p.jsx("div",{className:"flex justify-end mt-6 pt-5 border-t border-[#051d70]/10",children:p.jsx("button",{type:"button",onClick:t,className:"inline-flex items-center gap-2 font-semibold text-sm text-[#051d70] px-5 py-3 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:"Close"})})]})})}function n5({open:n,onClose:t,pdfUrl:e,orgName:r,eventDate:a}){if(!n)return null;const s=()=>{Pl(e,r,a)};return p.jsx(ya,{open:n,onClose:t,children:p.jsxs("div",{className:"pt-2 text-center py-6",children:[p.jsx("div",{className:"w-16 h-16 rounded-full bg-[#2ABE68]/15 flex items-center justify-center mx-auto mb-5",children:p.jsx(si,{className:"w-9 h-9 text-[#2ABE68]"})}),p.jsx("h2",{className:"text-xl font-black text-[#051d70] mb-2",style:{fontFamily:"'Rubik', sans-serif"},children:"Your agreement has been signed successfully."}),p.jsx("p",{className:"text-sm text-[#051d70]/70 leading-relaxed mb-6 max-w-md mx-auto",children:"A copy has been emailed to you. You can download your completed agreement below or return to your booking page."}),p.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 justify-center",children:[p.jsxs("button",{type:"button",onClick:s,disabled:!e,className:"inline-flex items-center justify-center gap-2 font-bold text-sm text-white bg-[#FF1F53] px-6 py-3.5 rounded-full hover:scale-105 transition-transform disabled:opacity-50 disabled:hover:scale-100 min-h-[44px]",children:[p.jsx(Ou,{className:"w-4 h-4"})," Download Completed Agreement"]}),p.jsxs("button",{type:"button",onClick:t,className:"inline-flex items-center justify-center gap-2 font-semibold text-sm text-[#051d70] px-6 py-3.5 rounded-full border-2 border-[#051d70]/20 hover:bg-[#051d70]/5 transition-colors min-h-[44px]",children:[p.jsx(Sf,{className:"w-4 h-4"})," Return to Booking"]})]})]})})}function r5(){const[n,t]=Je.useState(null),[e,r]=Je.useState(!1),[a,s]=Je.useState(!1),[h,l]=Je.useState(!1),[c,d]=Je.useState(""),[g,w]=Je.useState(""),[k,m]=Je.useState(!1),[F,j]=Je.useState(""),C=Je.useRef(!1),[y,z]=Je.useState(!1),[D,q]=Je.useState(!1),[ae,ge]=Je.useState(!1),[se,J]=Je.useState(!1),[U,Q]=Je.useState(!1),[L,O]=Je.useState(!1),[V,W]=Je.useState("");Je.useEffect(()=>{const R=new URLSearchParams(window.location.search);w(R.get("invite")||"")},[]),Je.useEffect(()=>{if(!g||n||C.current)return;C.current=!0,m(!0);const R=setTimeout(()=>{m(!1),j(M=>
185M||"We couldn't open your secure link. Please use your booking code and email below.")},15e3);Fi.accessBooking({token:g}).then(M=>{clearTimeout(R);const G=M.data||M;G!=null&&G.success&&(G!=null&&G.booking)?t(G.booking):j((G==null?void 0:G.error)||"We couldn't open your secure link. Please use your booking code and email below.")}).catch(()=>{clearTimeout(R),j("We couldn't open your secure link. Please use your booking code and email below.")}).finally(()=>m(!1))},[g,n]),Je.useEffect(()=>{if(!c)return;const R=setTimeout(()=>d(""),5e3);return()=>clearTimeout(R)},[c]);const ie=Je.useCallback(async()=>{if(n!=null&&n.booking_token)try{const R=await Fi.accessBooking({token:n.booking_token,email:n.primary_contact_email}),M=R.data||R;M!=null&&M.success&&(M!=null&&M.booking)&&t(M.booking)}catch{}},[n==null?void 0:n.booking_token,n==null?void 0:n.primary_contact_email]),oe=R=>{t(R);const M=new URL(window.location.href);!M.searchParams.has("invite")&&R.booking_token&&(M.searchParams.set("invite",R.booking_token),window.history.replaceState({},"",M.toString()))},ce=R=>{r(!1),d(`Statement of Faith confirmed by ${R.representative_name}. Thank you!`),ie()},re=R=>{s(!1),W(R.pdfUrl||""),O(!0),ie()},de=()=>{n!=null&&n.is_test||(window.open(Tf,"_blank","noopener,noreferrer"),d("Payment page opened in a new tab. After submitting your payment, click 'I've Submitted the Payment' below."))},Ae=async()=>{var R,M;l(!0);try{const G=await Fi.submitPaymentConfirmation({token:n.booking_token,email:n.primary_contact_email}),$=G.data||G;$!=null&&$.success?(d("Payment submission received! Our team will verify your deposit shortly."),ie()):d(($==null?void 0:$.error)||"Submission failed. Please try again.")}catch(G){d(((M=(R=G==null?void 0:G.response)==null?void 0:R.data)==null?void 0:M.error)||"Submission failed. Please try again.")}finally{l(!1)}},xe=async()=>{var R,M;q(!0);try{const G=await Fi.resetTestBooking({booking_token:n.booking_token}),$=G.data||G;$!=null&&$.success?(z(!1),d("Demo restarted. You can now complete the booking experience again."),await ie()):d(($==null?void 0:$.error)||"Failed to restart demo. Please try again.")}catch(G){d(((M=(R=G==null?void 0:G.response)==null?void 0:R.data)==null?void 0:M.error)||"Failed to restart demo. Please try again.")}finally{q(!1)}};if(k)return p.jsxs(p.Fragment,{children:[p.jsx(Ho,{title:"Opening Your Booking",description:"Opening your Good News Guys booking.",path:"/booking",noindex:!0}),p.jsx("main",{id:"main-content",className:"min-h-[60vh] flex items-center justify-center bg-white",children:p.jsxs("div",{className:"text-center",children:[p.jsx(zr,{className:"w-8 h-8 text-[#051d70] animate-spin mx-auto mb-3"}),p.jsx("p",{className:"text-sm font-semibold text-[#051d70]",children:"Opening your booking..."})]})})]});if(!n)return p.jsxs(p.Fragment,{children:[p.jsx(Ho,{title:"Complete Your Good News Guys Booking",description:"This page is for churches and organizations currently finalizing an event with the Good News Guys. Enter the booking code and primary contact email provided by our team.",path:"/booking",noindex:!0}),p.jsx("main",{id:"main-content",children:p.jsx(Of,{initialToken:F?"":g,initialError:F,onAccess:oe})})]});const A=(n==null?void 0:n.is_test)||(n==null?void 0:n.is_test_booking);return p.jsxs(p.Fragment,{children:[p.jsx(Ho,{title:"Complete Your Good News Guys Booking",description:"Complete your Good News Guys booking steps: confirm your Statement of Faith, sign your booking agreement, and submit your deposit.",path:"/booking",noindex:!0}),p.jsxs("main",{id:"main-content",className:"bg-white",children:[p.jsx(If,{}),A&&p.jsx("div",{className:"bg-[#FF1F53]/8 border-b-2 border-[#FF1F53]/20",children:p.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 py-3 flex items-center justify-between gap-3 flex-wrap",children:[p.jsxs("div",{className:"flex items-center gap-2",children:[p.jsxs("span",{className:"inline-flex items-center gap-1.5 text-xs font-black uppercase tracking-wide text-white bg-[#FF1F53] px-2.5 py-1 rounded-full",children:[p.jsx(Lf,{className:"w-3 h-3"})," Test Mode"]}),p.jsxs("p",{className:"text-xs text-[#051d70]/70 flex items-center gap-1",children:[p.jsx(vf,{className:"w-3 h-3 flex-shrink-0"}),"Emails are suppressed during this demo."]})]}),(n==null?void 0:n.is_test_booking)&&p.jsxs("button",{type:"button",onClick:()=>z(!0),className:"inline-flex items-center gap-1.5 text-xs font-bold text-[#FF1F53] border-2 border-[#FF1F53]/30 rounded-full px-3.5 py-1.5 hover:bg-[#FF1F53]/8 transition-colors min-h-[36px]",children:[p.jsx(zr,{className:"w-3 h-3"})," Restart Demo"]})]})}),p.jsx("section",{className:"py-6 sm:py-8",children:p.jsxs("div",{className:"max-w-2xl mx-auto px-4 sm:px-6 space-y-5",children:[p.jsx(oo,{}),p.jsx(Bf,{booking:n}),p.jsx(Uf,{booking:n,onOpenSof:()=>r(!0),onOpenForm:()=>s(!0),onPayDeposit:de,onPaymentSubmitted:Ae,submittingPayment:h,onViewSof:()=>ge(!0),onViewAgreement:()=>J(!0),onViewDeposit:()=>Q(!0)}),p.jsx("p",{className:"text-center text-xs text-[#051d70]/55 max-w-xl mx-auto pt-2",children:"Your privacy matters. The information you submit here is only used to coordinate and fulfill your Good News Guys event booking."})]})})]}),p.jsx(Jf,{open:e,onClose:()=>r(!1),onSuccess:ce,booking:n}),p.jsx(ya,{open:a,onClose:()=>s(!1),children:p.jsx(J2,{booking:n,onSuccess:re,onClose:()=>s(!1)})}),p.jsx(X2,{open:y,onClose:()=>z(!1),onConfirm:xe,loading:D}),p.jsx(Q2,{open:ae,onClose:()=>ge(!1),booking:n}),p.jsx(e5,{open:se,onClose:()=>J(!1),booking:n}),p.jsx(t5,{open:U,onClose:()=>Q(!1),booking:n}),p.jsx(n5,{open:L,onClose:()=>O(!1),pdfUrl:V,orgName:n.host_organization_name,eventDate:n.approved_event_date}),c&&p.jsx("div",{className:"fixed bottom-6 left-1/2 -translate-x-1/2 z-50 max-w-md w-[calc(100%-2rem)]",children:p.jsx("div",{className:"bg-[#051d70] text-white text-sm font-medium px-5 py-3.5 rounded-2xl shadow-2xl border-2 border-[#fff22c]/40",children:c})})]})}const w5=Object.freeze(Object.defineProperty({__proto__:null,default:r5},Symbol.toStringTag,{value:"Module"}));
185export{w5 as B,At as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.